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

Curl_api_multi_is_in_callback:
  161|  9.06k|{
  162|  9.06k|  if(multi && multi->callstack.count) {
  ------------------
  |  Branch (162:6): [True: 9.06k, False: 0]
  |  Branch (162:15): [True: 7.00k, False: 2.06k]
  ------------------
  163|  7.00k|    size_t i;
  164|  14.0k|    for(i = 0; i < multi->callstack.count; ++i) {
  ------------------
  |  Branch (164:16): [True: 11.9k, False: 2.02k]
  ------------------
  165|  11.9k|      if(multi->callstack.calls[i] >= CURL_CBAPI_FN_START)
  ------------------
  |  |  102|  11.9k|#define CURL_CBAPI_FN_START        (16 * 1024)
  ------------------
  |  Branch (165:10): [True: 4.98k, False: 7.00k]
  ------------------
  166|  4.98k|        return TRUE;
  ------------------
  |  | 1053|  4.98k|#define TRUE true
  ------------------
  167|  11.9k|    }
  168|  7.00k|  }
  169|  4.08k|  return FALSE;
  ------------------
  |  | 1056|  4.08k|#define FALSE false
  ------------------
  170|  9.06k|}
Curl_api_is_in_callback:
  173|  9.06k|{
  174|  9.06k|  if(data && data->multi) {
  ------------------
  |  Branch (174:6): [True: 9.06k, False: 0]
  |  Branch (174:14): [True: 9.06k, False: 0]
  ------------------
  175|  9.06k|    return Curl_api_multi_is_in_callback(data->multi);
  176|  9.06k|  }
  177|      0|  return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  178|  9.06k|}
Curl_eapi_enter:
  184|   271k|{
  185|   271k|  struct Curl_easy *data = curl;
  186|   271k|  const struct Curl_eapi_fn_props *fn_props;
  187|   271k|  CURLcode result = CURLE_OK;
  188|       |
  189|   271k|  guard->depth = 0;
  190|       |
  191|       |  /* Verify that we got an easy handle we can work with. */
  192|   271k|  if(!GOOD_EASY_HANDLE(data)) {
  ------------------
  |  |   34|   271k|  (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  |   28|   271k|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  |  |  ------------------
  |  |                 (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1053|   271k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (34:5): [True: 271k, False: 0]
  |  |  |  Branch (34:12): [True: 271k, False: 0]
  |  |  ------------------
  |  |   35|   271k|   (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (192:6): [True: 0, False: 271k]
  |  Branch (192:7): [True: 0, False: 0]
  |  Branch (192:7): [True: 0, False: 0]
  ------------------
  193|      0|    result = CURLE_BAD_FUNCTION_ARGUMENT;
  194|      0|    goto out;
  195|      0|  }
  196|       |  /* verify that is either not added to a multi handle OR has a
  197|       |   * GOOD multi handle that knows `data` for `data->mid`. */
  198|   271k|  if(data->mid != UINT32_MAX) {
  ------------------
  |  Branch (198:6): [True: 13.5k, False: 257k]
  ------------------
  199|  13.5k|    if(GOOD_MULTI_HANDLE(data->multi)) {
  ------------------
  |  |   48|  13.5k|  (((x) && (x)->magic == CURLMULTI_MAGIC_NUMBER) ? TRUE : \
  |  |  ------------------
  |  |  |  |   41|  13.5k|#define CURLMULTI_MAGIC_NUMBER 0x000bab1e
  |  |  ------------------
  |  |                 (((x) && (x)->magic == CURLMULTI_MAGIC_NUMBER) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1053|  13.5k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (48:3): [True: 13.5k, False: 0]
  |  |  |  Branch (48:5): [True: 13.5k, False: 0]
  |  |  |  Branch (48:12): [True: 13.5k, False: 0]
  |  |  ------------------
  |  |   49|  13.5k|  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                 (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (199:8): [True: 0, False: 0]
  |  Branch (199:8): [True: 0, False: 0]
  ------------------
  200|  13.5k|      if(!Curl_multi_knows_easy(data->multi, data)) {
  ------------------
  |  Branch (200:10): [True: 0, False: 13.5k]
  ------------------
  201|       |        /* But multi does not know it, something is fishy, better deny call */
  202|      0|        DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (202:9): [Folded, False: 0]
  |  Branch (202:9): [Folded, False: 0]
  ------------------
  203|      0|        result = CURLE_BAD_FUNCTION_ARGUMENT;
  204|      0|        goto out;
  205|      0|      }
  206|  13.5k|    }
  207|      0|    else {
  208|      0|      DEBUGASSERT(0); /* data needs to have a GOOD multi handle */
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (208:7): [Folded, False: 0]
  |  Branch (208:7): [Folded, False: 0]
  ------------------
  209|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
  210|      0|      goto out;
  211|      0|    }
  212|  13.5k|  }
  213|   257k|  else if(data->multi) {
  ------------------
  |  Branch (213:11): [True: 0, False: 257k]
  ------------------
  214|      0|    DEBUGASSERT(0); /* data should not have a multi handle */
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (214:5): [Folded, False: 0]
  |  Branch (214:5): [Folded, False: 0]
  ------------------
  215|      0|    result = CURLE_BAD_FUNCTION_ARGUMENT;
  216|      0|    goto out;
  217|      0|  }
  218|       |  /* verify that the call `fn` we're about to enter is known
  219|       |   * and check call properties to be admitting. */
  220|   271k|  if(fn >= CURL_EAPI_FN_LAST) {
  ------------------
  |  Branch (220:6): [True: 0, False: 271k]
  ------------------
  221|      0|    result = CURLE_BAD_FUNCTION_ARGUMENT;
  222|      0|    goto out;
  223|      0|  }
  224|   271k|  fn_props = &eapi_fn_props[fn];
  225|   271k|  DEBUGASSERT(fn_props->fn == fn);
  ------------------
  |  | 1083|   271k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (225:3): [True: 0, False: 271k]
  |  Branch (225:3): [True: 271k, False: 0]
  ------------------
  226|   271k|  if(!fn_props->recurse) {
  ------------------
  |  Branch (226:6): [True: 9.97k, False: 261k]
  ------------------
  227|  9.97k|    if(data->callstack.count) {
  ------------------
  |  Branch (227:8): [True: 0, False: 9.97k]
  ------------------
  228|      0|#ifdef CURLVERBOSE
  229|      0|      DEBUGF(curl_mfprintf(stderr,
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  ------------------
  230|      0|        "EAPI guard: calling %hu with call to %u ongoing\n", (uint16_t)fn,
  231|      0|        data->callstack.calls[data->callstack.count-1]));
  232|      0|#endif
  233|      0|      result = CURLE_RECURSIVE_API_CALL;
  234|      0|      goto out;
  235|      0|    }
  236|  9.97k|    if(data->multi && data->multi->callstack.count) {
  ------------------
  |  Branch (236:8): [True: 0, False: 9.97k]
  |  Branch (236:23): [True: 0, False: 0]
  ------------------
  237|      0|#ifdef CURLVERBOSE
  238|       |
  239|      0|      DEBUGF(curl_mfprintf(stderr,
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  ------------------
  240|      0|        "EAPI guard: calling %hu with multi call to %u ongoing\n",
  241|      0|        (uint16_t)fn,
  242|      0|        data->multi->callstack.calls[data->multi->callstack.count-1]));
  243|      0|#endif
  244|      0|      result = CURLE_RECURSIVE_API_CALL;
  245|      0|      goto out;
  246|      0|    }
  247|  9.97k|  }
  248|       |
  249|   271k|  if(fn_props->no_event_cb && eapi_in_event_cb(data)) {
  ------------------
  |  Branch (249:6): [True: 0, False: 271k]
  |  Branch (249:31): [True: 0, False: 0]
  ------------------
  250|       |    /* Not allowed to be invoked while an event cb is ongoing */
  251|      0|#ifdef CURLVERBOSE
  252|      0|      DEBUGF(curl_mfprintf(stderr,
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  ------------------
  253|      0|        "EAPI guard: calling %hu while event callback ongoing\n",
  254|      0|        (uint16_t)fn));
  255|      0|#endif
  256|      0|    result = CURLE_RECURSIVE_API_CALL;
  257|      0|    goto out;
  258|      0|  }
  259|       |
  260|   271k|#if defined(USE_SSL) && defined(USE_MUTEX)
  261|   271k|  if(fn_props->no_scache_lock &&
  ------------------
  |  Branch (261:6): [True: 11.8k, False: 259k]
  ------------------
  262|  11.8k|     Curl_ssl_scache_is_locked_by_current_thread(data)) {
  ------------------
  |  Branch (262:6): [True: 0, False: 11.8k]
  ------------------
  263|      0|#ifdef CURLVERBOSE
  264|      0|      DEBUGF(curl_mfprintf(stderr,
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  ------------------
  265|      0|        "EAPI guard: calling %hu while vtls_scache is locked by "
  266|      0|        "current thread\n", (uint16_t)fn));
  267|      0|#endif
  268|      0|    result = CURLE_RECURSIVE_API_CALL;
  269|      0|    goto out;
  270|      0|  }
  271|   271k|#endif
  272|       |
  273|       |  /* all fine, add to data's callstack */
  274|   271k|  if(data->callstack.count >= CURL_EAPI_MAX_RECURSION) {
  ------------------
  |  |  138|   271k|#define CURL_EAPI_MAX_RECURSION       7
  ------------------
  |  Branch (274:6): [True: 0, False: 271k]
  ------------------
  275|      0|    result = CURLE_RECURSIVE_API_CALL;
  276|      0|    goto out;
  277|      0|  }
  278|   271k|  data->callstack.calls[data->callstack.count] = (uint16_t)fn;
  279|   271k|  ++data->callstack.count;
  280|   271k|  guard->depth = data->callstack.count;
  281|   271k|  guard->data = fn_props->data_is_killed ? NULL : data;
  ------------------
  |  Branch (281:17): [True: 9.97k, False: 261k]
  ------------------
  282|       |
  283|   271k|out:
  284|   271k|  if(presult)
  ------------------
  |  Branch (284:6): [True: 261k, False: 9.97k]
  ------------------
  285|   261k|    *presult = result;
  286|   271k|  return guard->depth > 0;
  287|   271k|}
Curl_eapi_leave:
  290|   271k|{
  291|   271k|  if(guard->depth) {
  ------------------
  |  Branch (291:6): [True: 271k, False: 0]
  ------------------
  292|       |    /* guard->data is set when handle is supposed to stay alive during call */
  293|   271k|    if(guard->data && GOOD_EASY_HANDLE(guard->data)) {
  ------------------
  |  |   34|   261k|  (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  |   28|   261k|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  |  |  ------------------
  |  |                 (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1053|   261k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (34:3): [True: 261k, False: 0]
  |  |  |  Branch (34:5): [True: 261k, False: 0]
  |  |  |  Branch (34:12): [True: 261k, False: 0]
  |  |  ------------------
  |  |   35|   261k|   (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (293:8): [True: 261k, False: 9.97k]
  |  Branch (293:23): [True: 0, False: 0]
  |  Branch (293:23): [True: 0, False: 0]
  ------------------
  294|   261k|      if(guard->depth > guard->data->callstack.count) {
  ------------------
  |  Branch (294:10): [True: 0, False: 261k]
  ------------------
  295|      0|        DEBUGASSERT(0); /* something very wrong */
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (295:9): [Folded, False: 0]
  |  Branch (295:9): [Folded, False: 0]
  ------------------
  296|      0|      }
  297|   261k|      else {
  298|   261k|        if(guard->depth < guard->data->callstack.count) {
  ------------------
  |  Branch (298:12): [True: 0, False: 261k]
  ------------------
  299|      0|          DEBUGASSERT(0); /* someone forgot to clean up */
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (299:11): [Folded, False: 0]
  |  Branch (299:11): [Folded, False: 0]
  ------------------
  300|      0|        }
  301|       |        /* reset to depth the guard was entered in */
  302|   261k|        guard->data->callstack.count = (uint16_t)(guard->depth - 1);
  303|   261k|      }
  304|   261k|    }
  305|   271k|  }
  306|   271k|}
Curl_mapi_enter:
  330|   326k|{
  331|   326k|  struct Curl_multi *multi = m;
  332|   326k|  const struct Curl_mapi_fn_props *fn_props;
  333|   326k|  CURLMcode mresult = CURLM_OK;
  334|       |
  335|   326k|  guard->depth = 0;
  336|       |
  337|       |  /* Verify that we got an easy handle we can work with. */
  338|   326k|  if(!GOOD_MULTI_HANDLE(multi)) {
  ------------------
  |  |   48|   326k|  (((x) && (x)->magic == CURLMULTI_MAGIC_NUMBER) ? TRUE : \
  |  |  ------------------
  |  |  |  |   41|   326k|#define CURLMULTI_MAGIC_NUMBER 0x000bab1e
  |  |  ------------------
  |  |                 (((x) && (x)->magic == CURLMULTI_MAGIC_NUMBER) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1053|   326k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (48:5): [True: 326k, False: 0]
  |  |  |  Branch (48:12): [True: 326k, False: 0]
  |  |  ------------------
  |  |   49|   326k|  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                 (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (338:6): [True: 0, False: 326k]
  |  Branch (338:7): [True: 0, False: 0]
  |  Branch (338:7): [True: 0, False: 0]
  ------------------
  339|      0|    mresult = CURLM_BAD_HANDLE;
  340|      0|    goto out;
  341|      0|  }
  342|   326k|  if(fn >= CURL_MAPI_FN_LAST) {
  ------------------
  |  Branch (342:6): [True: 0, False: 326k]
  ------------------
  343|      0|    mresult = CURLM_BAD_FUNCTION_ARGUMENT;
  344|      0|    goto out;
  345|      0|  }
  346|   326k|  fn_props = &mapi_fn_props[fn];
  347|   326k|  DEBUGASSERT(fn_props->fn == fn);
  ------------------
  |  | 1083|   326k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (347:3): [True: 0, False: 326k]
  |  Branch (347:3): [True: 326k, False: 0]
  ------------------
  348|   326k|  if(fn_props->allow_ntfy_cb && mapi_in_ntfy_cb(multi)) {
  ------------------
  |  Branch (348:6): [True: 163k, False: 163k]
  |  Branch (348:33): [True: 0, False: 163k]
  ------------------
  349|       |    /* explicitly allowed, even though normal recursion may not */
  350|      0|  }
  351|   326k|  else if(!fn_props->recurse && multi->callstack.count) {
  ------------------
  |  Branch (351:11): [True: 326k, False: 0]
  |  Branch (351:33): [True: 0, False: 326k]
  ------------------
  352|      0|#ifdef CURLVERBOSE
  353|      0|      DEBUGF(curl_mfprintf(stderr,
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  ------------------
  354|      0|        "MAPI guard: calling %hu with call to %u ongoing\n", (uint16_t)fn,
  355|      0|        multi->callstack.calls[multi->callstack.count-1]));
  356|      0|#endif
  357|      0|    mresult = CURLM_RECURSIVE_API_CALL;
  358|      0|    goto out;
  359|      0|  }
  360|       |
  361|   326k|#if defined(USE_SSL) && defined(USE_MUTEX)
  362|   326k|  if(fn_props->no_scache_lock && multi->ssl_scache &&
  ------------------
  |  Branch (362:6): [True: 163k, False: 163k]
  |  Branch (362:34): [True: 163k, False: 0]
  ------------------
  363|   163k|     Curl_ssl_scache_is_locked_by_current_thread(multi->admin)) {
  ------------------
  |  Branch (363:6): [True: 0, False: 163k]
  ------------------
  364|      0|#ifdef CURLVERBOSE
  365|      0|      DEBUGF(curl_mfprintf(stderr,
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  ------------------
  366|      0|        "MAPI guard: calling %hu while its vtls_scache is locked by "
  367|      0|        "current thread\n", (uint16_t)fn));
  368|      0|#endif
  369|      0|    mresult = CURLM_RECURSIVE_API_CALL;
  370|      0|    goto out;
  371|      0|  }
  372|   326k|#endif
  373|       |
  374|       |  /* all fine, add to data's callstack */
  375|   326k|  if(multi->callstack.count >= CURL_MAPI_MAX_RECURSION) {
  ------------------
  |  |  167|   326k|#define CURL_MAPI_MAX_RECURSION       15
  ------------------
  |  Branch (375:6): [True: 0, False: 326k]
  ------------------
  376|      0|    mresult = CURLM_RECURSIVE_API_CALL;
  377|      0|    goto out;
  378|      0|  }
  379|   326k|  multi->callstack.calls[multi->callstack.count] = (uint16_t)fn;
  380|   326k|  ++multi->callstack.count;
  381|   326k|  guard->depth = multi->callstack.count;
  382|   326k|  guard->multi = fn_props->multi_is_killed ? NULL : multi;
  ------------------
  |  Branch (382:18): [True: 9.97k, False: 316k]
  ------------------
  383|       |
  384|   326k|out:
  385|   326k|  if(pmresult)
  ------------------
  |  Branch (385:6): [True: 326k, False: 0]
  ------------------
  386|   326k|    *pmresult = mresult;
  387|   326k|  return guard->depth > 0;
  388|   326k|}
Curl_mapi_leave:
  391|   417k|{
  392|   417k|  if(guard->depth) {
  ------------------
  |  Branch (392:6): [True: 417k, False: 0]
  ------------------
  393|       |    /* guard->data is set when handle is supposed to stay alive during call */
  394|   417k|    if(guard->multi && GOOD_MULTI_HANDLE(guard->multi)) {
  ------------------
  |  |   48|   407k|  (((x) && (x)->magic == CURLMULTI_MAGIC_NUMBER) ? TRUE : \
  |  |  ------------------
  |  |  |  |   41|   407k|#define CURLMULTI_MAGIC_NUMBER 0x000bab1e
  |  |  ------------------
  |  |                 (((x) && (x)->magic == CURLMULTI_MAGIC_NUMBER) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1053|   407k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (48:3): [True: 407k, False: 0]
  |  |  |  Branch (48:5): [True: 407k, False: 0]
  |  |  |  Branch (48:12): [True: 407k, False: 0]
  |  |  ------------------
  |  |   49|   407k|  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                 (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (394:8): [True: 407k, False: 9.97k]
  |  Branch (394:24): [True: 0, False: 0]
  |  Branch (394:24): [True: 0, False: 0]
  ------------------
  395|   407k|      if(guard->depth > guard->multi->callstack.count) {
  ------------------
  |  Branch (395:10): [True: 0, False: 407k]
  ------------------
  396|      0|        DEBUGASSERT(0); /* something very wrong */
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (396:9): [Folded, False: 0]
  |  Branch (396:9): [Folded, False: 0]
  ------------------
  397|      0|      }
  398|   407k|      else {
  399|   407k|        if(guard->depth < guard->multi->callstack.count) {
  ------------------
  |  Branch (399:12): [True: 0, False: 407k]
  ------------------
  400|      0|          DEBUGASSERT(0); /* someone forgot to clean up */
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (400:11): [Folded, False: 0]
  |  Branch (400:11): [Folded, False: 0]
  ------------------
  401|      0|        }
  402|       |        /* reset to depth the guard was entered in */
  403|   407k|        guard->multi->callstack.count = (uint16_t)(guard->depth - 1);
  404|   407k|      }
  405|   407k|    }
  406|   417k|  }
  407|   417k|}
Curl_cbapi_enter:
  413|  90.4k|{
  414|  90.4k|  guard->depth = 0;
  415|       |
  416|  90.4k|  if(!multi)
  ------------------
  |  Branch (416:6): [True: 90.4k, False: 0]
  ------------------
  417|  90.4k|    multi = data ? data->multi : NULL;
  ------------------
  |  Branch (417:13): [True: 90.4k, False: 0]
  ------------------
  418|       |  /* if not multi is involved here, just leave */
  419|  90.4k|  if(!multi)
  ------------------
  |  Branch (419:6): [True: 0, False: 90.4k]
  ------------------
  420|      0|    return;
  421|       |  /* invalid callback specifier? */
  422|  90.4k|  if((fn >= CURL_CBAPI_FN_LAST) || (fn < CURL_CBAPI_FN_START)) {
  ------------------
  |  |  102|  90.4k|#define CURL_CBAPI_FN_START        (16 * 1024)
  ------------------
  |  Branch (422:6): [True: 0, False: 90.4k]
  |  Branch (422:36): [True: 0, False: 90.4k]
  ------------------
  423|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (423:5): [Folded, False: 0]
  |  Branch (423:5): [Folded, False: 0]
  ------------------
  424|      0|    return;
  425|      0|  }
  426|  90.4k|  DEBUGASSERT(cbapi_fn_props[fn - CURL_CBAPI_FN_START].fn == fn);
  ------------------
  |  | 1083|  90.4k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (426:3): [True: 0, False: 90.4k]
  |  Branch (426:3): [True: 90.4k, False: 0]
  ------------------
  427|  90.4k|  if(multi->callstack.count) {
  ------------------
  |  Branch (427:6): [True: 90.4k, False: 0]
  ------------------
  428|  90.4k|    size_t i;
  429|   180k|    for(i = multi->callstack.count; i; --i) {
  ------------------
  |  Branch (429:37): [True: 90.4k, False: 90.4k]
  ------------------
  430|  90.4k|      if(multi->callstack.calls[i - 1] == fn) {
  ------------------
  |  Branch (430:10): [True: 0, False: 90.4k]
  ------------------
  431|       |        /* recursive invocation of the same callback */
  432|      0|        DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (432:9): [Folded, False: 0]
  |  Branch (432:9): [Folded, False: 0]
  ------------------
  433|      0|        return;
  434|      0|      }
  435|  90.4k|    }
  436|  90.4k|  }
  437|       |
  438|       |  /* all fine, add to data's callstack */
  439|       |  /* if multi callstack already at max depth, leave */
  440|  90.4k|  if(multi->callstack.count >= CURL_MAPI_MAX_RECURSION)
  ------------------
  |  |  167|  90.4k|#define CURL_MAPI_MAX_RECURSION       15
  ------------------
  |  Branch (440:6): [True: 0, False: 90.4k]
  ------------------
  441|      0|    return;
  442|  90.4k|  multi->callstack.calls[multi->callstack.count] = (uint16_t)fn;
  443|  90.4k|  ++multi->callstack.count;
  444|  90.4k|  guard->depth = multi->callstack.count;
  445|  90.4k|  guard->multi = multi;
  446|  90.4k|}
Curl_cbapi_leave:
  449|  90.4k|{
  450|  90.4k|  Curl_mapi_leave(guard);
  451|  90.4k|}
api.c:mapi_in_ntfy_cb:
  149|   163k|{
  150|   163k|  if(multi && multi->callstack.count) {
  ------------------
  |  Branch (150:6): [True: 163k, False: 0]
  |  Branch (150:15): [True: 0, False: 163k]
  ------------------
  151|      0|    size_t i;
  152|      0|    for(i = 0; i < multi->callstack.count; ++i) {
  ------------------
  |  Branch (152:16): [True: 0, False: 0]
  ------------------
  153|      0|      if(multi->callstack.calls[i] == CURL_CBAPI_FN_multi_ntfy_cb)
  ------------------
  |  Branch (153:10): [True: 0, False: 0]
  ------------------
  154|      0|        return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  155|      0|    }
  156|      0|  }
  157|   163k|  return FALSE;
  ------------------
  |  | 1056|   163k|#define FALSE false
  ------------------
  158|   163k|}

Curl_bufcp_init:
  148|  4.41k|{
  149|  4.41k|  DEBUGASSERT(chunk_size > 0);
  ------------------
  |  | 1083|  4.41k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (149:3): [True: 0, False: 4.41k]
  |  Branch (149:3): [True: 4.41k, False: 0]
  ------------------
  150|  4.41k|  DEBUGASSERT(spare_max > 0);
  ------------------
  |  | 1083|  4.41k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (150:3): [True: 0, False: 4.41k]
  |  Branch (150:3): [True: 4.41k, False: 0]
  ------------------
  151|  4.41k|  memset(pool, 0, sizeof(*pool));
  152|  4.41k|  pool->chunk_size = chunk_size;
  153|  4.41k|  pool->spare_max = spare_max;
  154|  4.41k|}
Curl_bufcp_free:
  201|  4.41k|{
  202|  4.41k|  chunk_list_free(&pool->spare);
  203|  4.41k|  pool->spare_count = 0;
  204|  4.41k|}
Curl_bufq_init2:
  220|  14.6k|{
  221|       |  bufq_init(q, NULL, chunk_size, max_chunks, opts);
  222|  14.6k|}
Curl_bufq_initp:
  231|  13.2k|{
  232|  13.2k|  bufq_init(q, pool, pool->chunk_size, max_chunks, opts);
  233|  13.2k|}
Curl_bufq_free:
  236|  27.9k|{
  237|  27.9k|  chunk_list_free(&q->head);
  238|  27.9k|  chunk_list_free(&q->spare);
  239|       |  q->tail = NULL;
  240|  27.9k|  q->chunk_count = 0;
  241|  27.9k|}
Curl_bufq_reset:
  244|  15.2k|{
  245|  15.2k|  struct buf_chunk *chunk;
  246|  15.3k|  while(q->head) {
  ------------------
  |  Branch (246:9): [True: 95, False: 15.2k]
  ------------------
  247|     95|    chunk = q->head;
  248|     95|    q->head = chunk->next;
  249|     95|    chunk->next = q->spare;
  250|     95|    q->spare = chunk;
  251|     95|  }
  252|       |  q->tail = NULL;
  253|  15.2k|}
Curl_bufq_len:
  256|  15.4k|{
  257|  15.4k|  const struct buf_chunk *chunk = q->head;
  258|  15.4k|  size_t len = 0;
  259|  28.1k|  while(chunk) {
  ------------------
  |  Branch (259:9): [True: 12.6k, False: 15.4k]
  ------------------
  260|  12.6k|    len += chunk_len(chunk);
  261|  12.6k|    chunk = chunk->next;
  262|  12.6k|  }
  263|  15.4k|  return len;
  264|  15.4k|}
Curl_bufq_is_empty:
  267|   562k|{
  268|   562k|  return !q->head || chunk_is_empty(q->head);
  ------------------
  |  Branch (268:10): [True: 408k, False: 154k]
  |  Branch (268:22): [True: 76.2k, False: 78.0k]
  ------------------
  269|   562k|}
Curl_bufq_is_full:
  272|  23.7k|{
  273|  23.7k|  if(!q->tail || q->spare)
  ------------------
  |  Branch (273:6): [True: 8.99k, False: 14.7k]
  |  Branch (273:18): [True: 0, False: 14.7k]
  ------------------
  274|  8.99k|    return FALSE;
  ------------------
  |  | 1056|  8.99k|#define FALSE false
  ------------------
  275|  14.7k|  if(q->chunk_count < q->max_chunks)
  ------------------
  |  Branch (275:6): [True: 1.53k, False: 13.2k]
  ------------------
  276|  1.53k|    return FALSE;
  ------------------
  |  | 1056|  1.53k|#define FALSE false
  ------------------
  277|  13.2k|  if(q->chunk_count > q->max_chunks)
  ------------------
  |  Branch (277:6): [True: 403, False: 12.8k]
  ------------------
  278|    403|    return TRUE;
  ------------------
  |  | 1053|    403|#define TRUE true
  ------------------
  279|       |  /* we have no spares and cannot make more, is the tail full? */
  280|  12.8k|  return chunk_is_full(q->tail);
  281|  13.2k|}
Curl_bufq_write:
  370|  1.32M|{
  371|  1.32M|  struct buf_chunk *tail;
  372|  1.32M|  size_t n;
  373|       |
  374|  1.32M|  DEBUGASSERT(q->max_chunks > 0);
  ------------------
  |  | 1083|  1.32M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (374:3): [True: 0, False: 1.32M]
  |  Branch (374:3): [True: 1.32M, False: 0]
  ------------------
  375|  1.32M|  *pnwritten = 0;
  376|  2.64M|  while(len) {
  ------------------
  |  Branch (376:9): [True: 1.32M, False: 1.32M]
  ------------------
  377|  1.32M|    tail = get_non_full_tail(q);
  378|  1.32M|    if(!tail) {
  ------------------
  |  Branch (378:8): [True: 942, False: 1.31M]
  ------------------
  379|    942|      if((q->chunk_count < q->max_chunks) || (q->opts & BUFQ_OPT_SOFT_LIMIT))
  ------------------
  |  |  111|    942|#define BUFQ_OPT_SOFT_LIMIT  (1 << 0)
  ------------------
  |  Branch (379:10): [True: 0, False: 942]
  |  Branch (379:46): [True: 0, False: 942]
  ------------------
  380|       |        /* should have gotten a tail, but did not */
  381|      0|        return CURLE_OUT_OF_MEMORY;
  382|    942|      break;
  383|    942|    }
  384|  1.31M|    n = chunk_append(tail, buf, len);
  385|  1.31M|    if(!n)
  ------------------
  |  Branch (385:8): [True: 0, False: 1.31M]
  ------------------
  386|      0|      break;
  387|  1.31M|    *pnwritten += n;
  388|  1.31M|    buf += n;
  389|  1.31M|    len -= n;
  390|  1.31M|  }
  391|  1.32M|  return (!*pnwritten && len) ? CURLE_AGAIN : CURLE_OK;
  ------------------
  |  Branch (391:11): [True: 4.30k, False: 1.31M]
  |  Branch (391:26): [True: 427, False: 3.87k]
  ------------------
  392|  1.32M|}
Curl_bufq_cwrite:
  397|  1.50k|{
  398|  1.50k|  return Curl_bufq_write(q, (const uint8_t *)buf, len, pnwritten);
  399|  1.50k|}
Curl_bufq_read:
  403|  1.27k|{
  404|  1.27k|  *pnread = 0;
  405|  2.03k|  while(len && q->head) {
  ------------------
  |  Branch (405:9): [True: 1.57k, False: 457]
  |  Branch (405:16): [True: 754, False: 821]
  ------------------
  406|    754|    size_t n = chunk_read(q->head, buf, len);
  407|    754|    if(n) {
  ------------------
  |  Branch (407:8): [True: 754, False: 0]
  ------------------
  408|    754|      *pnread += n;
  409|    754|      buf += n;
  410|    754|      len -= n;
  411|    754|    }
  412|    754|    prune_head(q);
  413|    754|  }
  414|  1.27k|  return (!*pnread) ? CURLE_AGAIN : CURLE_OK;
  ------------------
  |  Branch (414:10): [True: 524, False: 754]
  ------------------
  415|  1.27k|}
Curl_bufq_cread:
  419|    196|{
  420|    196|  return Curl_bufq_read(q, (uint8_t *)buf, len, pnread);
  421|    196|}
Curl_bufq_peek:
  425|  91.1k|{
  426|  91.1k|  if(q->head && chunk_is_empty(q->head)) {
  ------------------
  |  Branch (426:6): [True: 73.1k, False: 17.9k]
  |  Branch (426:17): [True: 4, False: 73.1k]
  ------------------
  427|      4|    prune_head(q);
  428|      4|  }
  429|  91.1k|  if(q->head && !chunk_is_empty(q->head)) {
  ------------------
  |  Branch (429:6): [True: 73.1k, False: 17.9k]
  |  Branch (429:17): [True: 73.1k, False: 0]
  ------------------
  430|  73.1k|    chunk_peek(q->head, pbuf, plen);
  431|  73.1k|    return TRUE;
  ------------------
  |  | 1053|  73.1k|#define TRUE true
  ------------------
  432|  73.1k|  }
  433|  17.9k|  *pbuf = NULL;
  434|  17.9k|  *plen = 0;
  435|       |  return FALSE;
  ------------------
  |  | 1056|  17.9k|#define FALSE false
  ------------------
  436|  91.1k|}
Curl_bufq_skip:
  462|  67.2k|{
  463|  67.2k|  size_t n;
  464|       |
  465|   125k|  while(amount && q->head) {
  ------------------
  |  Branch (465:9): [True: 58.6k, False: 67.2k]
  |  Branch (465:19): [True: 58.6k, False: 0]
  ------------------
  466|  58.6k|    n = chunk_skip(q->head, amount);
  467|  58.6k|    amount -= n;
  468|  58.6k|    prune_head(q);
  469|  58.6k|  }
  470|  67.2k|}
Curl_bufq_pass:
  474|  18.1k|{
  475|  18.1k|  const uint8_t *buf;
  476|  18.1k|  size_t blen;
  477|  18.1k|  CURLcode result = CURLE_OK;
  478|       |
  479|  18.1k|  *pwritten = 0;
  480|  31.6k|  while(Curl_bufq_peek(q, &buf, &blen)) {
  ------------------
  |  Branch (480:9): [True: 18.5k, False: 13.0k]
  ------------------
  481|  18.5k|    size_t chunk_written;
  482|       |
  483|  18.5k|    result = writer(writer_ctx, buf, blen, &chunk_written);
  484|  18.5k|    if(result) {
  ------------------
  |  Branch (484:8): [True: 5.09k, False: 13.4k]
  ------------------
  485|  5.09k|      if((result == CURLE_AGAIN) && *pwritten) {
  ------------------
  |  Branch (485:10): [True: 5.09k, False: 0]
  |  Branch (485:37): [True: 454, False: 4.64k]
  ------------------
  486|       |        /* blocked on subsequent write, report success */
  487|    454|        result = CURLE_OK;
  488|    454|      }
  489|  5.09k|      break;
  490|  5.09k|    }
  491|  13.4k|    if(!chunk_written) {
  ------------------
  |  Branch (491:8): [True: 0, False: 13.4k]
  ------------------
  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|  13.4k|    *pwritten += chunk_written;
  499|  13.4k|    Curl_bufq_skip(q, chunk_written);
  500|  13.4k|  }
  501|  18.1k|  return result;
  502|  18.1k|}
Curl_bufq_write_pass:
  508|  16.1k|{
  509|  16.1k|  CURLcode result = CURLE_OK;
  510|  16.1k|  size_t n;
  511|       |
  512|  16.1k|  *pwritten = 0;
  513|  30.2k|  while(len) {
  ------------------
  |  Branch (513:9): [True: 16.6k, False: 13.6k]
  ------------------
  514|  16.6k|    if(Curl_bufq_is_full(q)) {
  ------------------
  |  Branch (514:8): [True: 2.84k, False: 13.7k]
  ------------------
  515|       |      /* try to make room in case we are full */
  516|  2.84k|      result = Curl_bufq_pass(q, writer, writer_ctx, &n);
  517|  2.84k|      if(result) {
  ------------------
  |  Branch (517:10): [True: 2.00k, False: 846]
  ------------------
  518|  2.00k|        if(result != CURLE_AGAIN) {
  ------------------
  |  Branch (518:12): [True: 0, False: 2.00k]
  ------------------
  519|       |          /* real error, fail */
  520|      0|          return result;
  521|      0|        }
  522|       |        /* would block, bufq is full, give up */
  523|  2.00k|        break;
  524|  2.00k|      }
  525|  2.84k|    }
  526|       |
  527|       |    /* Add to bufq as much as there is room for */
  528|  14.6k|    result = Curl_bufq_write(q, buf, len, &n);
  529|  14.6k|    if(result) {
  ------------------
  |  Branch (529:8): [True: 427, False: 14.1k]
  ------------------
  530|    427|      if(result != CURLE_AGAIN)
  ------------------
  |  Branch (530:10): [True: 0, False: 427]
  ------------------
  531|       |        /* real error, fail */
  532|      0|        return result;
  533|       |      /* result == CURLE_AGAIN */
  534|    427|      if(*pwritten)
  ------------------
  |  Branch (534:10): [True: 194, False: 233]
  ------------------
  535|       |        /* we did write successfully before */
  536|    194|        result = CURLE_OK;
  537|    427|      return result;
  538|    427|    }
  539|  14.1k|    else if(n == 0)
  ------------------
  |  Branch (539:13): [True: 0, False: 14.1k]
  ------------------
  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|  14.1k|    buf += n;
  546|  14.1k|    len -= n;
  547|  14.1k|    *pwritten += n;
  548|  14.1k|  }
  549|       |
  550|  15.6k|  return (!*pwritten && len) ? CURLE_AGAIN : CURLE_OK;
  ------------------
  |  Branch (550:11): [True: 1.99k, False: 13.6k]
  |  Branch (550:25): [True: 1.99k, False: 0]
  ------------------
  551|  16.1k|}
Curl_bufq_sipn:
  556|  35.7k|{
  557|  35.7k|  struct buf_chunk *tail = NULL;
  558|       |
  559|  35.7k|  *pnread = 0;
  560|  35.7k|  tail = get_non_full_tail(q);
  561|  35.7k|  if(!tail) {
  ------------------
  |  Branch (561:6): [True: 0, False: 35.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|  35.7k|  return chunk_slurpn(tail, max_len, reader, reader_ctx, pnread);
  569|  35.7k|}
Curl_bufq_slurp:
  617|  3.17k|{
  618|  3.17k|  return bufq_slurpn(q, 0, reader, reader_ctx, pnread);
  619|  3.17k|}
bufq.c:chunk_list_free:
  137|  60.3k|{
  138|  60.3k|  struct buf_chunk *chunk;
  139|  71.4k|  while(*anchor) {
  ------------------
  |  Branch (139:9): [True: 11.1k, False: 60.3k]
  ------------------
  140|  11.1k|    chunk = *anchor;
  141|  11.1k|    *anchor = chunk->next;
  142|  11.1k|    curlx_free(chunk);
  ------------------
  |  | 1482|  11.1k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  143|  11.1k|  }
  144|  60.3k|}
bufq.c:bufq_init:
  208|  27.9k|{
  209|  27.9k|  DEBUGASSERT(chunk_size > 0);
  ------------------
  |  | 1083|  27.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (209:3): [True: 0, False: 27.9k]
  |  Branch (209:3): [True: 27.9k, False: 0]
  ------------------
  210|  27.9k|  DEBUGASSERT(max_chunks > 0);
  ------------------
  |  | 1083|  27.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (210:3): [True: 0, False: 27.9k]
  |  Branch (210:3): [True: 27.9k, False: 0]
  ------------------
  211|  27.9k|  memset(q, 0, sizeof(*q));
  212|  27.9k|  q->chunk_size = chunk_size;
  213|  27.9k|  q->max_chunks = max_chunks;
  214|  27.9k|  q->pool = pool;
  215|  27.9k|  q->opts = opts;
  216|  27.9k|}
bufq.c:chunk_len:
   39|  12.6k|{
   40|  12.6k|  return chunk->w_offset - chunk->r_offset;
   41|  12.6k|}
bufq.c:chunk_is_empty:
   29|   359k|{
   30|   359k|  return chunk->r_offset >= chunk->w_offset;
   31|   359k|}
bufq.c:chunk_is_full:
   34|  1.33M|{
   35|  1.33M|  return chunk->w_offset >= chunk->dlen;
   36|  1.33M|}
bufq.c:get_non_full_tail:
  347|  1.35M|{
  348|  1.35M|  struct buf_chunk *chunk;
  349|       |
  350|  1.35M|  if(q->tail && !chunk_is_full(q->tail))
  ------------------
  |  Branch (350:6): [True: 1.31M, False: 36.6k]
  |  Branch (350:17): [True: 1.31M, False: 1.04k]
  ------------------
  351|  1.31M|    return q->tail;
  352|  37.6k|  chunk = get_spare(q);
  353|  37.6k|  if(chunk) {
  ------------------
  |  Branch (353:6): [True: 36.7k, False: 942]
  ------------------
  354|       |    /* new tail, and possibly new head */
  355|  36.7k|    if(q->tail) {
  ------------------
  |  Branch (355:8): [True: 104, False: 36.6k]
  ------------------
  356|    104|      q->tail->next = chunk;
  357|    104|      q->tail = chunk;
  358|    104|    }
  359|  36.6k|    else {
  360|  36.6k|      DEBUGASSERT(!q->head);
  ------------------
  |  | 1083|  36.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (360:7): [True: 0, False: 36.6k]
  |  Branch (360:7): [True: 36.6k, False: 0]
  ------------------
  361|  36.6k|      q->head = q->tail = chunk;
  362|  36.6k|    }
  363|  36.7k|  }
  364|  37.6k|  return chunk;
  365|  37.6k|}
bufq.c:get_spare:
  284|  37.6k|{
  285|  37.6k|  struct buf_chunk *chunk = NULL;
  286|       |
  287|  37.6k|  if(q->spare) {
  ------------------
  |  Branch (287:6): [True: 4.67k, False: 32.9k]
  ------------------
  288|  4.67k|    chunk = q->spare;
  289|  4.67k|    q->spare = chunk->next;
  290|  4.67k|    chunk_reset(chunk);
  291|  4.67k|    return chunk;
  292|  4.67k|  }
  293|       |
  294|  32.9k|  if(q->chunk_count >= q->max_chunks && (!(q->opts & BUFQ_OPT_SOFT_LIMIT)))
  ------------------
  |  |  111|    984|#define BUFQ_OPT_SOFT_LIMIT  (1 << 0)
  ------------------
  |  Branch (294:6): [True: 984, False: 32.0k]
  |  Branch (294:41): [True: 942, False: 42]
  ------------------
  295|    942|    return NULL;
  296|       |
  297|  32.0k|  if(q->pool) {
  ------------------
  |  Branch (297:6): [True: 29.6k, False: 2.42k]
  ------------------
  298|  29.6k|    if(bufcp_take(q->pool, &chunk))
  ------------------
  |  Branch (298:8): [True: 0, False: 29.6k]
  ------------------
  299|      0|      return NULL;
  300|  29.6k|    ++q->chunk_count;
  301|  29.6k|    return chunk;
  302|  29.6k|  }
  303|  2.42k|  else {
  304|       |    /* Check for integer overflow before allocation */
  305|  2.42k|    if(q->chunk_size > SIZE_MAX - sizeof(*chunk)) {
  ------------------
  |  Branch (305:8): [True: 0, False: 2.42k]
  ------------------
  306|      0|      return NULL;
  307|      0|    }
  308|       |
  309|  2.42k|    chunk = curlx_calloc(1, sizeof(*chunk) + q->chunk_size);
  ------------------
  |  | 1479|  2.42k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  310|  2.42k|    if(!chunk)
  ------------------
  |  Branch (310:8): [True: 0, False: 2.42k]
  ------------------
  311|      0|      return NULL;
  312|  2.42k|    chunk->dlen = q->chunk_size;
  313|  2.42k|    ++q->chunk_count;
  314|  2.42k|    return chunk;
  315|  2.42k|  }
  316|  32.0k|}
bufq.c:chunk_reset:
   44|  50.9k|{
   45|       |  chunk->next = NULL;
   46|  50.9k|  chunk->r_offset = chunk->w_offset = 0;
   47|  50.9k|}
bufq.c:bufcp_take:
  158|  29.6k|{
  159|  29.6k|  struct buf_chunk *chunk = NULL;
  160|       |
  161|  29.6k|  if(pool->spare) {
  ------------------
  |  Branch (161:6): [True: 20.8k, False: 8.79k]
  ------------------
  162|  20.8k|    chunk = pool->spare;
  163|  20.8k|    pool->spare = chunk->next;
  164|  20.8k|    --pool->spare_count;
  165|  20.8k|    chunk_reset(chunk);
  166|  20.8k|    *pchunk = chunk;
  167|  20.8k|    return CURLE_OK;
  168|  20.8k|  }
  169|       |
  170|       |  /* Check for integer overflow before allocation */
  171|  8.79k|  if(pool->chunk_size > SIZE_MAX - sizeof(*chunk)) {
  ------------------
  |  Branch (171:6): [True: 0, False: 8.79k]
  ------------------
  172|      0|    *pchunk = NULL;
  173|      0|    return CURLE_OUT_OF_MEMORY;
  174|      0|  }
  175|       |
  176|  8.79k|  chunk = curlx_calloc(1, sizeof(*chunk) + pool->chunk_size);
  ------------------
  |  | 1479|  8.79k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  177|  8.79k|  if(!chunk) {
  ------------------
  |  Branch (177:6): [True: 0, False: 8.79k]
  ------------------
  178|      0|    *pchunk = NULL;
  179|      0|    return CURLE_OUT_OF_MEMORY;
  180|      0|  }
  181|  8.79k|  chunk->dlen = pool->chunk_size;
  182|  8.79k|  *pchunk = chunk;
  183|  8.79k|  return CURLE_OK;
  184|  8.79k|}
bufq.c:chunk_append:
   51|  1.31M|{
   52|  1.31M|  uint8_t *p = &chunk->x.data[chunk->w_offset];
   53|  1.31M|  size_t n = chunk->dlen - chunk->w_offset;
   54|  1.31M|  DEBUGASSERT(chunk->dlen >= chunk->w_offset);
  ------------------
  |  | 1083|  1.31M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (54:3): [True: 0, False: 1.31M]
  |  Branch (54:3): [True: 1.31M, False: 0]
  ------------------
   55|  1.31M|  if(n) {
  ------------------
  |  Branch (55:6): [True: 1.31M, False: 0]
  ------------------
   56|  1.31M|    n = CURLMIN(n, len);
  ------------------
  |  | 1296|  1.31M|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1296:24): [True: 619, False: 1.31M]
  |  |  ------------------
  ------------------
   57|  1.31M|    memcpy(p, buf, n);
   58|  1.31M|    chunk->w_offset += n;
   59|  1.31M|  }
   60|  1.31M|  return n;
   61|  1.31M|}
bufq.c:chunk_read:
   65|    754|{
   66|    754|  uint8_t *p = &chunk->x.data[chunk->r_offset];
   67|    754|  size_t n = chunk->w_offset - chunk->r_offset;
   68|    754|  DEBUGASSERT(chunk->w_offset >= chunk->r_offset);
  ------------------
  |  | 1083|    754|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (68:3): [True: 0, False: 754]
  |  Branch (68:3): [True: 754, False: 0]
  ------------------
   69|    754|  if(!n) {
  ------------------
  |  Branch (69:6): [True: 0, False: 754]
  ------------------
   70|      0|    return 0;
   71|      0|  }
   72|    754|  else if(n <= len) {
  ------------------
  |  Branch (72:11): [True: 747, False: 7]
  ------------------
   73|    747|    memcpy(buf, p, n);
   74|    747|    chunk->r_offset = chunk->w_offset = 0;
   75|    747|    return n;
   76|    747|  }
   77|      7|  else {
   78|      7|    memcpy(buf, p, len);
   79|      7|    chunk->r_offset += len;
   80|      7|    return len;
   81|      7|  }
   82|    754|}
bufq.c:prune_head:
  319|  59.4k|{
  320|  59.4k|  struct buf_chunk *chunk;
  321|       |
  322|  90.8k|  while(q->head && chunk_is_empty(q->head)) {
  ------------------
  |  Branch (322:9): [True: 59.5k, False: 31.3k]
  |  Branch (322:20): [True: 31.4k, False: 28.0k]
  ------------------
  323|  31.4k|    chunk = q->head;
  324|  31.4k|    q->head = chunk->next;
  325|  31.4k|    if(q->tail == chunk)
  ------------------
  |  Branch (325:8): [True: 31.3k, False: 91]
  ------------------
  326|  31.3k|      q->tail = q->head;
  327|  31.4k|    if(q->pool) {
  ------------------
  |  Branch (327:8): [True: 25.4k, False: 5.99k]
  ------------------
  328|  25.4k|      bufcp_put(q->pool, chunk);
  329|  25.4k|      --q->chunk_count;
  330|  25.4k|    }
  331|  5.99k|    else if((q->chunk_count > q->max_chunks) ||
  ------------------
  |  Branch (331:13): [True: 36, False: 5.95k]
  ------------------
  332|  5.95k|            (q->opts & BUFQ_OPT_NO_SPARES)) {
  ------------------
  |  |  115|  5.95k|#define BUFQ_OPT_NO_SPARES   (1 << 1)
  ------------------
  |  Branch (332:13): [True: 0, False: 5.95k]
  ------------------
  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|     36|      curlx_free(chunk);
  ------------------
  |  | 1482|     36|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  337|     36|      --q->chunk_count;
  338|     36|    }
  339|  5.95k|    else {
  340|  5.95k|      chunk->next = q->spare;
  341|  5.95k|      q->spare = chunk;
  342|  5.95k|    }
  343|  31.4k|  }
  344|  59.4k|}
bufq.c:bufcp_put:
  188|  25.4k|{
  189|  25.4k|  if(pool->spare_count >= pool->spare_max) {
  ------------------
  |  Branch (189:6): [True: 0, False: 25.4k]
  ------------------
  190|      0|    curlx_free(chunk);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  191|      0|  }
  192|  25.4k|  else {
  193|  25.4k|    chunk_reset(chunk);
  194|  25.4k|    chunk->next = pool->spare;
  195|  25.4k|    pool->spare = chunk;
  196|  25.4k|    ++pool->spare_count;
  197|  25.4k|  }
  198|  25.4k|}
bufq.c:chunk_peek:
  108|  73.1k|{
  109|  73.1k|  DEBUGASSERT(chunk->w_offset >= chunk->r_offset);
  ------------------
  |  | 1083|  73.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (109:3): [True: 0, False: 73.1k]
  |  Branch (109:3): [True: 73.1k, False: 0]
  ------------------
  110|  73.1k|  *pbuf = &chunk->x.data[chunk->r_offset];
  111|  73.1k|  *plen = chunk->w_offset - chunk->r_offset;
  112|  73.1k|}
bufq.c:chunk_skip:
  124|  58.6k|{
  125|  58.6k|  size_t n = chunk->w_offset - chunk->r_offset;
  126|  58.6k|  DEBUGASSERT(chunk->w_offset >= chunk->r_offset);
  ------------------
  |  | 1083|  58.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (126:3): [True: 0, False: 58.6k]
  |  Branch (126:3): [True: 58.6k, False: 0]
  ------------------
  127|  58.6k|  if(n) {
  ------------------
  |  Branch (127:6): [True: 58.6k, False: 0]
  ------------------
  128|  58.6k|    n = CURLMIN(n, amount);
  ------------------
  |  | 1296|  58.6k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1296:24): [True: 0, False: 58.6k]
  |  |  ------------------
  ------------------
  129|  58.6k|    chunk->r_offset += n;
  130|  58.6k|    if(chunk->r_offset == chunk->w_offset)
  ------------------
  |  Branch (130:8): [True: 30.7k, False: 27.9k]
  ------------------
  131|  30.7k|      chunk->r_offset = chunk->w_offset = 0;
  132|  58.6k|  }
  133|  58.6k|  return n;
  134|  58.6k|}
bufq.c:chunk_slurpn:
   87|  35.7k|{
   88|  35.7k|  uint8_t *p = &chunk->x.data[chunk->w_offset];
   89|  35.7k|  size_t n = chunk->dlen - chunk->w_offset; /* free amount */
   90|  35.7k|  CURLcode result;
   91|       |
   92|  35.7k|  *pnread = 0;
   93|  35.7k|  DEBUGASSERT(chunk->dlen >= chunk->w_offset);
  ------------------
  |  | 1083|  35.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (93:3): [True: 0, False: 35.7k]
  |  Branch (93:3): [True: 35.7k, False: 0]
  ------------------
   94|  35.7k|  if(!n)
  ------------------
  |  Branch (94:6): [True: 0, False: 35.7k]
  ------------------
   95|      0|    return CURLE_AGAIN;
   96|  35.7k|  if(max_len && n > max_len)
  ------------------
  |  Branch (96:6): [True: 0, False: 35.7k]
  |  Branch (96:17): [True: 0, False: 0]
  ------------------
   97|      0|    n = max_len;
   98|  35.7k|  result = reader(reader_ctx, p, n, pnread);
   99|  35.7k|  if(!result) {
  ------------------
  |  Branch (99:6): [True: 21.9k, False: 13.8k]
  ------------------
  100|  21.9k|    DEBUGASSERT(*pnread <= n);
  ------------------
  |  | 1083|  21.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (100:5): [True: 0, False: 21.9k]
  |  Branch (100:5): [True: 21.9k, False: 0]
  ------------------
  101|  21.9k|    chunk->w_offset += *pnread;
  102|  21.9k|  }
  103|  35.7k|  return result;
  104|  35.7k|}
bufq.c:bufq_slurpn:
  582|  3.17k|{
  583|  3.17k|  CURLcode result;
  584|       |
  585|  3.17k|  *pnread = 0;
  586|  3.17k|  while(1) {
  ------------------
  |  Branch (586:9): [True: 3.17k, Folded]
  ------------------
  587|  3.17k|    size_t n;
  588|  3.17k|    result = Curl_bufq_sipn(q, max_len, reader, reader_ctx, &n);
  589|  3.17k|    if(result) {
  ------------------
  |  Branch (589:8): [True: 1.62k, False: 1.54k]
  ------------------
  590|  1.62k|      if(!*pnread || result != CURLE_AGAIN) {
  ------------------
  |  Branch (590:10): [True: 1.62k, False: 0]
  |  Branch (590:22): [True: 0, False: 0]
  ------------------
  591|       |        /* blocked on first read or real error, fail */
  592|  1.62k|        return result;
  593|  1.62k|      }
  594|      0|      result = CURLE_OK;
  595|      0|      break;
  596|  1.62k|    }
  597|  1.54k|    else if(n == 0) {
  ------------------
  |  Branch (597:13): [True: 0, False: 1.54k]
  ------------------
  598|       |      /* eof, result remains CURLE_OK */
  599|      0|      break;
  600|      0|    }
  601|  1.54k|    *pnread += n;
  602|  1.54k|    if(max_len) {
  ------------------
  |  Branch (602:8): [True: 0, False: 1.54k]
  ------------------
  603|      0|      DEBUGASSERT(n <= max_len);
  ------------------
  |  | 1083|      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.54k|    if(q->tail && !chunk_is_full(q->tail))
  ------------------
  |  Branch (609:8): [True: 1.54k, False: 0]
  |  Branch (609:19): [True: 1.54k, False: 0]
  ------------------
  610|  1.54k|      break;
  611|  1.54k|  }
  612|  1.54k|  return result;
  613|  3.17k|}

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

Curl_cf_ip_happy_insert_after:
 1039|  10.1k|{
 1040|  10.1k|  struct Curl_cfilter *cf;
 1041|  10.1k|  CURLcode result;
 1042|       |
 1043|       |  /* Need to be first */
 1044|  10.1k|  DEBUGASSERT(cf_at);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1044:3): [True: 0, False: 10.1k]
  |  Branch (1044:3): [True: 10.1k, False: 0]
  ------------------
 1045|  10.1k|  result = cf_ip_happy_create(&cf, data, origin, peer, transport_peer,
 1046|  10.1k|                              cf_at->conn, tunnel_peer, tunnel_transport);
 1047|  10.1k|  if(result)
  ------------------
  |  Branch (1047:6): [True: 0, False: 10.1k]
  ------------------
 1048|      0|    return result;
 1049|       |
 1050|  10.1k|  Curl_conn_cf_insert_after(cf_at, cf);
 1051|  10.1k|  return CURLE_OK;
 1052|  10.1k|}
cf-ip-happy.c:cf_ip_happy_destroy:
  967|  10.1k|{
  968|  10.1k|  struct cf_ip_happy_ctx *ctx = cf->ctx;
  969|       |
  970|  10.1k|  CURL_TRC_CF(data, cf, "destroy");
  ------------------
  |  |  153|  10.1k|  do {                                          \
  |  |  154|  10.1k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  10.1k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  20.2k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 10.1k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 10.1k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  20.2k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  10.1k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  10.1k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  10.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 10.1k]
  |  |  ------------------
  ------------------
  971|  10.1k|  if(ctx) {
  ------------------
  |  Branch (971:6): [True: 10.1k, False: 0]
  ------------------
  972|  10.1k|    cf_ip_happy_ctx_clear(ctx, data);
  973|  10.1k|    cf_ip_happy_ctx_destroy(ctx, data);
  974|  10.1k|  }
  975|  10.1k|}
cf-ip-happy.c:cf_ip_happy_ctx_clear:
  790|  29.6k|{
  791|  29.6k|  DEBUGASSERT(ctx);
  ------------------
  |  | 1083|  29.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (791:3): [True: 0, False: 29.6k]
  |  Branch (791:3): [True: 29.6k, False: 0]
  ------------------
  792|  29.6k|  if(ctx)
  ------------------
  |  Branch (792:6): [True: 29.6k, False: 0]
  ------------------
  793|  29.6k|    cf_ip_ballers_clear(data, &ctx->ballers);
  794|  29.6k|}
cf-ip-happy.c:cf_ip_ballers_clear:
  321|  29.6k|{
  322|  30.4k|  while(bs->running) {
  ------------------
  |  Branch (322:9): [True: 813, False: 29.6k]
  ------------------
  323|    813|    struct cf_ip_attempt *a = bs->running;
  324|    813|    bs->running = a->next;
  325|    813|    cf_ip_attempt_free(a, data);
  326|    813|  }
  327|  29.6k|  cf_ip_attempt_free(bs->winner, data);
  328|       |  bs->winner = NULL;
  329|  29.6k|  Curl_peer_unlink(&bs->origin);
  330|  29.6k|  Curl_peer_unlink(&bs->peer);
  331|  29.6k|  Curl_peer_unlink(&bs->tunnel_peer);
  332|  29.6k|}
cf-ip-happy.c:cf_ip_attempt_free:
  182|  30.4k|{
  183|  30.4k|  if(a) {
  ------------------
  |  Branch (183:6): [True: 10.1k, False: 20.2k]
  ------------------
  184|  10.1k|    if(a->cf)
  ------------------
  |  Branch (184:8): [True: 0, False: 10.1k]
  ------------------
  185|      0|      Curl_conn_cf_discard_chain(&a->cf, data);
  186|  10.1k|    Curl_peer_unlink(&a->origin);
  187|  10.1k|    Curl_peer_unlink(&a->peer);
  188|  10.1k|    Curl_peer_unlink(&a->tunnel_peer);
  189|  10.1k|    curlx_free(a);
  ------------------
  |  | 1482|  10.1k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  190|  10.1k|  }
  191|  30.4k|}
cf-ip-happy.c:cf_ip_happy_ctx_destroy:
  798|  10.1k|{
  799|  10.1k|  if(ctx) {
  ------------------
  |  Branch (799:6): [True: 10.1k, False: 0]
  ------------------
  800|  10.1k|    cf_ip_happy_ctx_clear(ctx, data);
  801|  10.1k|    curlx_free(ctx);
  ------------------
  |  | 1482|  10.1k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  802|  10.1k|  }
  803|  10.1k|}
cf-ip-happy.c:cf_ip_happy_connect:
  841|  10.1k|{
  842|  10.1k|  struct cf_ip_happy_ctx *ctx = cf->ctx;
  843|  10.1k|  CURLcode result = CURLE_OK;
  844|       |
  845|       |  /* -Werror=null-dereference finds false positives suddenly. */
  846|  10.1k|  if(!data)
  ------------------
  |  Branch (846:6): [True: 0, False: 10.1k]
  ------------------
  847|      0|    return CURLE_FAILED_INIT;
  848|       |
  849|  10.1k|  if(cf->connected) {
  ------------------
  |  Branch (849:6): [True: 0, False: 10.1k]
  ------------------
  850|      0|    *done = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  851|      0|    return CURLE_OK;
  852|      0|  }
  853|       |
  854|  10.1k|  DEBUGASSERT(ctx);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (854:3): [True: 0, False: 10.1k]
  |  Branch (854:3): [True: 10.1k, False: 0]
  ------------------
  855|  10.1k|  *done = FALSE;
  ------------------
  |  | 1056|  10.1k|#define FALSE false
  ------------------
  856|       |
  857|  10.1k|  if(!ctx->dns_resolved) {
  ------------------
  |  Branch (857:6): [True: 10.1k, False: 0]
  ------------------
  858|  10.1k|    result = Curl_conn_dns_addr_result(cf->conn, cf->sockindex,
  859|  10.1k|                                       ctx->ballers.peer);
  860|  10.1k|    if(!result)
  ------------------
  |  Branch (860:8): [True: 10.1k, False: 0]
  ------------------
  861|  10.1k|      ctx->dns_resolved = TRUE;
  ------------------
  |  | 1053|  10.1k|#define TRUE true
  ------------------
  862|      0|    else if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (862:13): [True: 0, False: 0]
  ------------------
  863|      0|      result = CURLE_OK;
  864|      0|    }
  865|      0|    else /* real error */
  866|      0|      goto out;
  867|  10.1k|  }
  868|       |
  869|  10.1k|  switch(ctx->state) {
  ------------------
  |  Branch (869:10): [True: 10.1k, False: 0]
  ------------------
  870|  10.1k|  case SCFST_INIT:
  ------------------
  |  Branch (870:3): [True: 10.1k, False: 0]
  ------------------
  871|  10.1k|    DEBUGASSERT(CURL_SOCKET_BAD == Curl_conn_cf_get_socket(cf, data));
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (871:5): [True: 0, False: 10.1k]
  |  Branch (871:5): [True: 10.1k, False: 0]
  ------------------
  872|  10.1k|    DEBUGASSERT(!cf->connected);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (872:5): [True: 0, False: 10.1k]
  |  Branch (872:5): [True: 10.1k, False: 0]
  ------------------
  873|  10.1k|    result = cf_ip_happy_init(cf, data);
  874|  10.1k|    if(result)
  ------------------
  |  Branch (874:8): [True: 0, False: 10.1k]
  ------------------
  875|      0|      goto out;
  876|  10.1k|    ctx->state = SCFST_WAITING;
  877|  10.1k|    FALLTHROUGH();
  ------------------
  |  |  823|  10.1k|#  define FALLTHROUGH()  __attribute__((fallthrough))
  ------------------
  878|  10.1k|  case SCFST_WAITING:
  ------------------
  |  Branch (878:3): [True: 0, False: 10.1k]
  ------------------
  879|  10.1k|    result = is_connected(cf, data, done);
  880|  10.1k|    if(!result && *done) {
  ------------------
  |  Branch (880:8): [True: 9.33k, False: 813]
  |  Branch (880:19): [True: 9.33k, False: 0]
  ------------------
  881|  9.33k|      DEBUGASSERT(ctx->ballers.winner);
  ------------------
  |  | 1083|  9.33k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (881:7): [True: 0, False: 9.33k]
  |  Branch (881:7): [True: 9.33k, False: 0]
  ------------------
  882|  9.33k|      DEBUGASSERT(ctx->ballers.winner->cf);
  ------------------
  |  | 1083|  9.33k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (882:7): [True: 0, False: 9.33k]
  |  Branch (882:7): [True: 9.33k, False: 0]
  ------------------
  883|  9.33k|      DEBUGASSERT(ctx->ballers.winner->cf->connected);
  ------------------
  |  | 1083|  9.33k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (883:7): [True: 0, False: 9.33k]
  |  Branch (883:7): [True: 9.33k, False: 0]
  ------------------
  884|       |      /* we have a winner. Install and activate it.
  885|       |       * close/free all others. */
  886|  9.33k|      ctx->state = SCFST_DONE;
  887|  9.33k|      cf->connected = TRUE;
  ------------------
  |  | 1053|  9.33k|#define TRUE true
  ------------------
  888|  9.33k|      cf->next = ctx->ballers.winner->cf;
  889|  9.33k|      ctx->ballers.winner->cf = NULL;
  890|       |
  891|  9.33k|      if(cf->conn->scheme->protocol & PROTO_FAMILY_SSH)
  ------------------
  |  |   90|  9.33k|#define PROTO_FAMILY_SSH  (CURLPROTO_SCP | CURLPROTO_SFTP)
  |  |  ------------------
  |  |  |  | 1090|  9.33k|#define CURLPROTO_SCP     (1L << 4)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_SSH  (CURLPROTO_SCP | CURLPROTO_SFTP)
  |  |  ------------------
  |  |  |  | 1091|  9.33k|#define CURLPROTO_SFTP    (1L << 5)
  |  |  ------------------
  ------------------
  |  Branch (891:10): [True: 0, False: 9.33k]
  ------------------
  892|      0|        Curl_pgrsTime(data, TIMER_APPCONNECT); /* we are connected already */
  893|  9.33k|#ifdef CURLVERBOSE
  894|  9.33k|      if(Curl_trc_cf_is_verbose(cf, data)) {
  ------------------
  |  |  326|  9.33k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  ------------------
  |  |  |  |  322|  18.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 9.33k, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 9.33k]
  |  |  |  |  ------------------
  |  |  |  |  323|  18.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  327|  9.33k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  ------------------
  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  ------------------
  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  895|      0|        struct ip_quadruple ipquad;
  896|      0|        bool is_ipv6;
  897|      0|        if(!Curl_conn_cf_get_ip_info(cf->next, data, &is_ipv6, &ipquad)) {
  ------------------
  |  Branch (897:12): [True: 0, False: 0]
  ------------------
  898|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  899|      0|                      ctx->ballers.peer->hostname,
  900|      0|                      ipquad.remote_ip, ipquad.remote_port);
  901|      0|        }
  902|      0|      }
  903|  9.33k|#endif
  904|  9.33k|      cf_ip_happy_ctx_clear(ctx, data);
  905|  9.33k|      Curl_expire_done(data, EXPIRE_HAPPY_EYEBALLS);
  906|       |      /* whatever errors were reported by ballers, clear our errorbuf */
  907|  9.33k|      Curl_reset_fail(data);
  908|  9.33k|      data->info.numconnects++; /* to track the # of connections made */
  909|  9.33k|    }
  910|  10.1k|    break;
  911|  10.1k|  case SCFST_DONE:
  ------------------
  |  Branch (911:3): [True: 0, False: 10.1k]
  ------------------
  912|      0|    *done = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  913|      0|    break;
  914|  10.1k|  }
  915|  10.1k|out:
  916|  10.1k|  return result;
  917|  10.1k|}
cf-ip-happy.c:cf_ip_happy_init:
  759|  10.1k|{
  760|  10.1k|  struct cf_ip_happy_ctx *ctx = cf->ctx;
  761|       |
  762|  10.1k|  if(Curl_timeleft_ms(data) < 0) {
  ------------------
  |  Branch (762:6): [True: 0, False: 10.1k]
  ------------------
  763|       |    /* a precaution, no need to continue if time already is up */
  764|      0|    failf(data, "Connection time-out");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  765|      0|    return CURLE_OPERATION_TIMEDOUT;
  766|      0|  }
  767|       |
  768|  10.1k|  if(ctx->ballers.transport_peer == TRNSPRT_UNIX) {
  ------------------
  |  |  240|  10.1k|#define TRNSPRT_UNIX 6
  ------------------
  |  Branch (768:6): [True: 0, False: 10.1k]
  ------------------
  769|      0|#ifdef USE_UNIX_SOCKETS
  770|      0|    cf_ai_iter_init(&ctx->ballers.addr_iter, cf, ctx->ballers.peer, AF_UNIX);
  771|       |#else
  772|       |    return CURLE_UNSUPPORTED_PROTOCOL;
  773|       |#endif
  774|      0|  }
  775|  10.1k|  else { /* TCP/UDP/QUIC */
  776|  10.1k|#ifdef USE_IPV6
  777|  10.1k|    cf_ai_iter_init(&ctx->ballers.ipv6_iter, cf, ctx->ballers.peer, AF_INET6);
  778|  10.1k|#endif
  779|  10.1k|    cf_ai_iter_init(&ctx->ballers.addr_iter, cf, ctx->ballers.peer, AF_INET);
  780|  10.1k|  }
  781|       |
  782|  10.1k|  CURL_TRC_CF(data, cf, "init ip ballers for transport %u",
  ------------------
  |  |  153|  10.1k|  do {                                          \
  |  |  154|  10.1k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  10.1k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  20.2k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 10.1k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 10.1k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  20.2k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  10.1k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  10.1k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  10.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 10.1k]
  |  |  ------------------
  ------------------
  783|  10.1k|              ctx->ballers.transport_peer);
  784|  10.1k|  ctx->started = *Curl_pgrs_now(data);
  785|  10.1k|  return CURLE_OK;
  786|  10.1k|}
cf-ip-happy.c:cf_ai_iter_init:
  130|  20.2k|{
  131|  20.2k|  iter->cf = cf;
  132|  20.2k|  iter->peer = peer; /* not linked, ctx->ballers owns and has same lifetime */
  133|  20.2k|  iter->ai_family = ai_family;
  134|  20.2k|  iter->n = 0;
  135|  20.2k|}
cf-ip-happy.c:is_connected:
  699|  10.1k|{
  700|  10.1k|  struct cf_ip_happy_ctx *ctx = cf->ctx;
  701|  10.1k|  struct connectdata *conn = cf->conn;
  702|  10.1k|  CURLcode result;
  703|       |
  704|  10.1k|  result = cf_ip_ballers_run(&ctx->ballers, cf, data,
  705|  10.1k|                             (bool)ctx->dns_resolved, connected);
  706|       |
  707|  10.1k|  if(!result)
  ------------------
  |  Branch (707:6): [True: 9.33k, False: 813]
  ------------------
  708|  9.33k|    return CURLE_OK;
  709|    813|  else {
  710|    813|    struct Curl_peer *peer = NULL, *proxy_peer = NULL;
  711|    813|    char viamsg[160];
  712|       |
  713|    813|    peer = Curl_conn_get_first_peer(conn, cf->sockindex);
  714|    813|    if(!conn->origin || !peer)
  ------------------
  |  Branch (714:8): [True: 0, False: 813]
  |  Branch (714:25): [True: 0, False: 813]
  ------------------
  715|      0|      return CURLE_FAILED_INIT;
  716|       |
  717|    813|#ifndef CURL_DISABLE_PROXY
  718|    813|    if(conn->socks_proxy.peer)
  ------------------
  |  Branch (718:8): [True: 0, False: 813]
  ------------------
  719|      0|      proxy_peer = conn->socks_proxy.peer;
  720|    813|    else if(conn->http_proxy.peer)
  ------------------
  |  Branch (720:13): [True: 0, False: 813]
  ------------------
  721|      0|      proxy_peer = conn->http_proxy.peer;
  722|    813|#endif
  723|       |
  724|    813|    viamsg[0] = 0;
  725|    813|    if(!Curl_peer_equal(peer, conn->origin) &&
  ------------------
  |  Branch (725:8): [True: 803, False: 10]
  ------------------
  726|    803|       !Curl_peer_equal(peer, proxy_peer)) {
  ------------------
  |  Branch (726:8): [True: 803, False: 0]
  ------------------
  727|    803|#ifdef USE_UNIX_SOCKETS
  728|    803|      if(peer->unix_socket)
  ------------------
  |  Branch (728:10): [True: 0, False: 803]
  ------------------
  729|      0|        curl_msnprintf(viamsg, sizeof(viamsg), " over unix://%s",
  730|      0|                       peer->hostname);
  731|    803|      else
  732|    803|#endif
  733|    803|      curl_msnprintf(viamsg, sizeof(viamsg), " via %s:%u",
  734|    803|                     peer->hostname, peer->port);
  735|    803|    }
  736|       |
  737|    813|    failf(data, "Failed to connect to %s:%u%s %s%s%safter "
  ------------------
  |  |   62|    813|#define failf Curl_failf
  ------------------
  738|    813|          "%" FMT_TIMEDIFF_T " ms: %s",
  739|    813|          conn->origin->hostname, conn->origin->port, viamsg,
  740|    813|          proxy_peer ? "over proxy " : "",
  ------------------
  |  Branch (740:11): [True: 0, False: 813]
  ------------------
  741|    813|          proxy_peer ? proxy_peer->hostname : "",
  ------------------
  |  Branch (741:11): [True: 0, False: 813]
  ------------------
  742|    813|          proxy_peer ? " " : "",
  ------------------
  |  Branch (742:11): [True: 0, False: 813]
  ------------------
  743|    813|          Curl_pgrs_since_ms(data, NULL, TIMER_STARTSINGLE),
  744|    813|          curl_easy_strerror(result));
  745|       |
  746|    813|#ifdef SOCKETIMEDOUT
  747|    813|    if(SOCKETIMEDOUT == data->state.os_errno)
  ------------------
  |  | 1137|    813|#define SOCKETIMEDOUT     ETIMEDOUT
  ------------------
  |  Branch (747:8): [True: 0, False: 813]
  ------------------
  748|      0|      result = CURLE_OPERATION_TIMEDOUT;
  749|    813|#endif
  750|       |
  751|    813|    return result;
  752|    813|  }
  753|  10.1k|}
cf-ip-happy.c:cf_ip_ballers_run:
  396|  10.1k|{
  397|  10.1k|  CURLcode result = CURLE_OK;
  398|  10.1k|  struct cf_ip_attempt *a = NULL, **panchor;
  399|  10.1k|  bool do_more;
  400|  10.1k|  timediff_t next_expire_ms;
  401|  10.1k|  uint32_t inconclusive, ongoing;
  402|  10.1k|  VERBOSE(int i);
  ------------------
  |  | 1617|  10.1k|#define VERBOSE(x) x
  ------------------
  403|       |
  404|  10.1k|  if(bs->winner)
  ------------------
  |  Branch (404:6): [True: 0, False: 10.1k]
  ------------------
  405|      0|    return CURLE_OK;
  406|       |
  407|  20.2k|evaluate:
  408|  20.2k|  ongoing = inconclusive = 0;
  409|       |
  410|       |  /* check if a running baller connects now */
  411|  20.2k|  VERBOSE(i = -1);
  ------------------
  |  | 1617|  20.2k|#define VERBOSE(x) x
  ------------------
  412|  21.1k|  for(panchor = &bs->running; *panchor; panchor = &((*panchor)->next)) {
  ------------------
  |  Branch (412:31): [True: 10.1k, False: 10.9k]
  ------------------
  413|  10.1k|    VERBOSE(++i);
  ------------------
  |  | 1617|  10.1k|#define VERBOSE(x) x
  ------------------
  414|  10.1k|    a = *panchor;
  415|  10.1k|    a->result = cf_ip_attempt_connect(a, data, connected);
  416|  10.1k|    if(!a->result) {
  ------------------
  |  Branch (416:8): [True: 9.33k, False: 813]
  ------------------
  417|  9.33k|      if(*connected) {
  ------------------
  |  Branch (417:10): [True: 9.33k, False: 0]
  ------------------
  418|       |        /* connected, declare the winner, remove from running,
  419|       |         * clear remaining running list. */
  420|  9.33k|        CURL_TRC_CF(data, cf, "connect attempt #%d successful", i);
  ------------------
  |  |  153|  9.33k|  do {                                          \
  |  |  154|  9.33k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  9.33k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  18.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 9.33k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 9.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  18.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  9.33k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  9.33k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  9.33k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 9.33k]
  |  |  ------------------
  ------------------
  421|  9.33k|        bs->winner = a;
  422|  9.33k|        *panchor = a->next;
  423|  9.33k|        a->next = NULL;
  424|  9.33k|        while(bs->running) {
  ------------------
  |  Branch (424:15): [True: 0, False: 9.33k]
  ------------------
  425|      0|          a = bs->running;
  426|      0|          bs->running = a->next;
  427|      0|          cf_ip_attempt_free(a, data);
  428|      0|        }
  429|  9.33k|        return CURLE_OK;
  430|  9.33k|      }
  431|       |      /* still running */
  432|      0|      ++ongoing;
  433|      0|    }
  434|    813|    else if(a->inconclusive) /* failed, but inconclusive */
  ------------------
  |  Branch (434:13): [True: 0, False: 813]
  ------------------
  435|      0|      ++inconclusive;
  436|  10.1k|  }
  437|  10.9k|  if(bs->running)
  ------------------
  |  Branch (437:6): [True: 813, False: 10.1k]
  ------------------
  438|    813|    CURL_TRC_CF(data, cf, "checked connect attempts: "
  ------------------
  |  |  153|    813|  do {                                          \
  |  |  154|    813|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|    813|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  1.62k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 813, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 813]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  1.62k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    813|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    813|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    813|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 813]
  |  |  ------------------
  ------------------
  439|  10.9k|                "%u ongoing, %u inconclusive", ongoing, inconclusive);
  440|       |
  441|       |  /* no attempt connected yet, start another one? */
  442|  10.9k|  if(!ongoing) {
  ------------------
  |  Branch (442:6): [True: 10.9k, False: 0]
  ------------------
  443|  10.9k|    if(!bs->started.tv_sec && !bs->started.tv_usec)
  ------------------
  |  Branch (443:8): [True: 10.1k, False: 813]
  |  Branch (443:31): [True: 10.1k, False: 0]
  ------------------
  444|  10.1k|      bs->started = *Curl_pgrs_now(data);
  445|  10.9k|    do_more = TRUE;
  ------------------
  |  | 1053|  10.9k|#define TRUE true
  ------------------
  446|  10.9k|  }
  447|      0|  else {
  448|      0|    bool more_possible = cf_ai_iter_has_more(&bs->addr_iter, data);
  449|      0|#ifdef USE_IPV6
  450|      0|    if(!more_possible)
  ------------------
  |  Branch (450:8): [True: 0, False: 0]
  ------------------
  451|      0|      more_possible = cf_ai_iter_has_more(&bs->ipv6_iter, data);
  452|      0|#endif
  453|      0|    do_more = more_possible &&
  ------------------
  |  Branch (453:15): [True: 0, False: 0]
  ------------------
  454|      0|      (curlx_ptimediff_ms(Curl_pgrs_now(data), &bs->last_attempt_started) >=
  ------------------
  |  Branch (454:7): [True: 0, False: 0]
  ------------------
  455|      0|       bs->attempt_delay_ms);
  456|      0|    if(do_more)
  ------------------
  |  Branch (456:8): [True: 0, False: 0]
  ------------------
  457|      0|      CURL_TRC_CF(data, cf, "happy eyeballs timeout expired, "
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  458|      0|                  "start next attempt");
  459|      0|  }
  460|       |
  461|  10.9k|  if(do_more) {
  ------------------
  |  Branch (461:6): [True: 10.9k, False: 0]
  ------------------
  462|       |    /* start the next attempt if there is another ip address to try.
  463|       |     * Alternate between address families when possible. */
  464|  10.9k|    const struct Curl_addrinfo *ai = NULL;
  465|  10.9k|    int ai_family = 0;
  466|  10.9k|    CURL_TRC_CF(data, cf, "want to do more");
  ------------------
  |  |  153|  10.9k|  do {                                          \
  |  |  154|  10.9k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  10.9k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  21.9k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 10.9k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 10.9k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  21.9k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  10.9k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  10.9k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  10.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 10.9k]
  |  |  ------------------
  ------------------
  467|  10.9k|#ifdef USE_IPV6
  468|  10.9k|    if((bs->last_attempt_ai_family == AF_INET) ||
  ------------------
  |  Branch (468:8): [True: 10.9k, False: 0]
  ------------------
  469|  10.9k|       !cf_ai_iter_has_more(&bs->addr_iter, data)) {
  ------------------
  |  Branch (469:8): [True: 0, False: 0]
  ------------------
  470|  10.9k|      ai = cf_ai_iter_next(&bs->ipv6_iter, data);
  471|  10.9k|      ai_family = bs->ipv6_iter.ai_family;
  472|  10.9k|      CURL_TRC_CF(data, cf, "check for next AAAA address: %s",
  ------------------
  |  |  153|  10.9k|  do {                                          \
  |  |  154|  10.9k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  10.9k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  21.9k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 10.9k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 10.9k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  21.9k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  10.9k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  10.9k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (155:35): [True: 0, False: 0]
  |  |  ------------------
  |  |  156|  10.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 10.9k]
  |  |  ------------------
  ------------------
  473|  10.9k|                  ai ? "found" : "none");
  474|  10.9k|    }
  475|  10.9k|#endif
  476|  10.9k|    if(!ai) {
  ------------------
  |  Branch (476:8): [True: 10.9k, False: 0]
  ------------------
  477|  10.9k|      ai = cf_ai_iter_next(&bs->addr_iter, data);
  478|  10.9k|      ai_family = bs->addr_iter.ai_family;
  479|  10.9k|      CURL_TRC_CF(data, cf, "check for next A address: %s",
  ------------------
  |  |  153|  10.9k|  do {                                          \
  |  |  154|  10.9k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  10.9k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  21.9k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 10.9k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 10.9k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  21.9k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  10.9k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  10.9k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (155:35): [True: 0, False: 0]
  |  |  ------------------
  |  |  156|  10.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 10.9k]
  |  |  ------------------
  ------------------
  480|  10.9k|                  ai ? "found" : "none");
  481|  10.9k|    }
  482|       |    /* We are (re-)starting attempts. We are not interested in
  483|       |     * keeping old failure information. The new attempt will either
  484|       |     * succeed or persist new failure. */
  485|  10.9k|    Curl_reset_fail(data);
  486|       |
  487|  10.9k|    if(ai) {  /* try another address */
  ------------------
  |  Branch (487:8): [True: 10.1k, False: 813]
  ------------------
  488|  10.1k|      struct Curl_sockaddr_ex addr;
  489|       |
  490|       |      /* Discard oldest to make room for new attempt */
  491|  10.1k|      if(bs->max_concurrent)
  ------------------
  |  Branch (491:10): [True: 10.1k, False: 0]
  ------------------
  492|  10.1k|        cf_ip_ballers_prune(bs, cf, data, bs->max_concurrent - 1);
  493|       |
  494|  10.1k|      result = Curl_socket_addr_from_ai(&addr, ai, bs->transport_peer);
  495|  10.1k|      if(result)
  ------------------
  |  Branch (495:10): [True: 0, False: 10.1k]
  ------------------
  496|      0|        goto out;
  497|       |
  498|  10.1k|      result = cf_ip_attempt_new(&a, data, cf, bs->origin, bs->peer,
  499|  10.1k|                                 bs->transport_peer, &addr, ai_family,
  500|  10.1k|                                 bs->tunnel_peer, bs->tunnel_transport,
  501|  10.1k|                                 bs->cf_create);
  502|  10.1k|      CURL_TRC_CF(data, cf, "starting %s attempt for ipv%s -> %d",
  ------------------
  |  |  153|  10.1k|  do {                                          \
  |  |  154|  10.1k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  10.1k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  20.2k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 10.1k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 10.1k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  20.2k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  10.1k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  10.1k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (155:35): [True: 0, False: 0]
  |  |  |  Branch (155:35): [True: 0, False: 0]
  |  |  ------------------
  |  |  156|  10.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 10.1k]
  |  |  ------------------
  ------------------
  503|  10.1k|                  bs->running ? "next" : "first",
  504|  10.1k|                  (ai_family == AF_INET) ? "4" : "6", (int)result);
  505|  10.1k|      if(result)
  ------------------
  |  Branch (505:10): [True: 0, False: 10.1k]
  ------------------
  506|      0|        goto out;
  507|  10.1k|      DEBUGASSERT(a);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (507:7): [True: 0, False: 10.1k]
  |  Branch (507:7): [True: 10.1k, False: 0]
  ------------------
  508|       |
  509|       |      /* append to running list */
  510|  10.1k|      panchor = &bs->running;
  511|  10.1k|      while(*panchor)
  ------------------
  |  Branch (511:13): [True: 0, False: 10.1k]
  ------------------
  512|      0|        panchor = &((*panchor)->next);
  513|  10.1k|      *panchor = a;
  514|  10.1k|      bs->last_attempt_started = *Curl_pgrs_now(data);
  515|  10.1k|      bs->last_attempt_ai_family = ai_family;
  516|       |      /* and run everything again */
  517|  10.1k|      goto evaluate;
  518|  10.1k|    }
  519|    813|    else if(inconclusive) {
  ------------------
  |  Branch (519:13): [True: 0, False: 813]
  ------------------
  520|       |      /* tried all addresses, no success but some where inconclusive.
  521|       |       * Let's restart the inconclusive ones. */
  522|      0|      timediff_t since_ms =
  523|      0|        curlx_ptimediff_ms(Curl_pgrs_now(data), &bs->last_attempt_started);
  524|      0|      timediff_t delay_ms = bs->attempt_delay_ms - since_ms;
  525|      0|      if(delay_ms <= 0) {
  ------------------
  |  Branch (525:10): [True: 0, False: 0]
  ------------------
  526|      0|        CURL_TRC_CF(data, cf, "all attempts inconclusive, restarting one");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  527|      0|        VERBOSE(i = -1);
  ------------------
  |  | 1617|      0|#define VERBOSE(x) x
  ------------------
  528|      0|        for(a = bs->running; a; a = a->next) {
  ------------------
  |  Branch (528:30): [True: 0, False: 0]
  ------------------
  529|      0|          VERBOSE(++i);
  ------------------
  |  | 1617|      0|#define VERBOSE(x) x
  ------------------
  530|      0|          if(!a->inconclusive)
  ------------------
  |  Branch (530:14): [True: 0, False: 0]
  ------------------
  531|      0|            continue;
  532|      0|          result = cf_ip_attempt_restart(a, cf, data);
  533|      0|          CURL_TRC_CF(data, cf, "restarted baller %d -> %d", i, (int)result);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  534|      0|          if(result) /* serious failure */
  ------------------
  |  Branch (534:14): [True: 0, False: 0]
  ------------------
  535|      0|            goto out;
  536|      0|          bs->last_attempt_started = *Curl_pgrs_now(data);
  537|      0|          goto evaluate;
  538|      0|        }
  539|      0|        DEBUGASSERT(0); /* should not come here */
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (539:9): [Folded, False: 0]
  |  Branch (539:9): [Folded, False: 0]
  ------------------
  540|      0|      }
  541|      0|      else {
  542|       |        /* let's wait some more before restarting */
  543|      0|        infof(data, "connect attempts inconclusive, retrying "
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  544|      0|                    "in %" FMT_TIMEDIFF_T "ms", delay_ms);
  545|      0|        Curl_expire(data, delay_ms, EXPIRE_HAPPY_EYEBALLS);
  546|      0|      }
  547|       |      /* attempt timeout for restart has not expired yet */
  548|      0|      goto out;
  549|      0|    }
  550|    813|    else if(!ongoing && dns_resolved) {
  ------------------
  |  Branch (550:13): [True: 813, False: 0]
  |  Branch (550:25): [True: 813, False: 0]
  ------------------
  551|       |      /* no more addresses, no inconclusive attempts */
  552|    813|      CURL_TRC_CF(data, cf, "no more attempts to try");
  ------------------
  |  |  153|    813|  do {                                          \
  |  |  154|    813|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|    813|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  1.62k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 813, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 813]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  1.62k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    813|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    813|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    813|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 813]
  |  |  ------------------
  ------------------
  553|    813|      result = CURLE_COULDNT_CONNECT;
  554|    813|      VERBOSE(i = 0);
  ------------------
  |  | 1617|    813|#define VERBOSE(x) x
  ------------------
  555|  1.62k|      for(a = bs->running; a; a = a->next) {
  ------------------
  |  Branch (555:28): [True: 813, False: 813]
  ------------------
  556|    813|        CURL_TRC_CF(data, cf, "baller %d: result=%d", i, (int)a->result);
  ------------------
  |  |  153|    813|  do {                                          \
  |  |  154|    813|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|    813|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  1.62k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 813, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 813]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  1.62k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    813|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    813|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    813|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 813]
  |  |  ------------------
  ------------------
  557|    813|        if(a->result)
  ------------------
  |  Branch (557:12): [True: 813, False: 0]
  ------------------
  558|    813|          result = a->result;
  559|    813|      }
  560|    813|    }
  561|  10.9k|  }
  562|       |
  563|    813|out:
  564|    813|  if(!result) {
  ------------------
  |  Branch (564:6): [True: 0, False: 813]
  ------------------
  565|      0|    bool more_possible;
  566|       |
  567|       |    /* when do we need to be called again? */
  568|      0|    next_expire_ms = Curl_timeleft_ms(data);
  569|      0|    if(next_expire_ms < 0) {
  ------------------
  |  Branch (569:8): [True: 0, False: 0]
  ------------------
  570|      0|      failf(data, "Connection timeout after %" FMT_OFF_T " ms",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  571|      0|            Curl_pgrs_since_ms(data, NULL, TIMER_STARTSINGLE));
  572|      0|      return CURLE_OPERATION_TIMEDOUT;
  573|      0|    }
  574|       |
  575|      0|    more_possible = cf_ai_iter_has_more(&bs->addr_iter, data);
  576|      0|#ifdef USE_IPV6
  577|      0|    if(!more_possible)
  ------------------
  |  Branch (577:8): [True: 0, False: 0]
  ------------------
  578|      0|      more_possible = cf_ai_iter_has_more(&bs->ipv6_iter, data);
  579|      0|#endif
  580|      0|    if(more_possible) {
  ------------------
  |  Branch (580:8): [True: 0, False: 0]
  ------------------
  581|      0|      timediff_t expire_ms, elapsed_ms;
  582|      0|      elapsed_ms =
  583|      0|        curlx_ptimediff_ms(Curl_pgrs_now(data), &bs->last_attempt_started);
  584|      0|      expire_ms = CURLMAX(bs->attempt_delay_ms - elapsed_ms, 0);
  ------------------
  |  | 1295|      0|#define CURLMAX(x, y) ((x) > (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1295:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  585|      0|      next_expire_ms = CURLMIN(next_expire_ms, expire_ms);
  ------------------
  |  | 1296|      0|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1296:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  586|      0|      if(next_expire_ms <= 0) {
  ------------------
  |  Branch (586:10): [True: 0, False: 0]
  ------------------
  587|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  588|      0|        goto evaluate;
  589|      0|      }
  590|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  591|      0|                  "ms", next_expire_ms);
  592|      0|      Curl_expire(data, next_expire_ms, EXPIRE_HAPPY_EYEBALLS);
  593|      0|    }
  594|      0|  }
  595|    813|  return result;
  596|    813|}
cf-ip-happy.c:cf_ip_attempt_connect:
  248|  10.1k|{
  249|  10.1k|  *connected = (bool)a->connected;
  250|  10.1k|  if(!a->result && !*connected) {
  ------------------
  |  Branch (250:6): [True: 10.1k, False: 0]
  |  Branch (250:20): [True: 10.1k, False: 0]
  ------------------
  251|       |    /* evaluate again */
  252|  10.1k|    a->result = Curl_conn_cf_connect(a->cf, data, connected);
  253|       |
  254|  10.1k|    if(!a->result) {
  ------------------
  |  Branch (254:8): [True: 9.33k, False: 813]
  ------------------
  255|  9.33k|      if(*connected) {
  ------------------
  |  Branch (255:10): [True: 9.33k, False: 0]
  ------------------
  256|  9.33k|        a->connected = TRUE;
  ------------------
  |  | 1053|  9.33k|#define TRUE true
  ------------------
  257|  9.33k|      }
  258|  9.33k|    }
  259|    813|    else {
  260|    813|      if(a->result == CURLE_WEIRD_SERVER_REPLY)
  ------------------
  |  Branch (260:10): [True: 0, False: 813]
  ------------------
  261|      0|        a->inconclusive = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  262|    813|      if(a->cf)
  ------------------
  |  Branch (262:10): [True: 813, False: 0]
  ------------------
  263|    813|        Curl_conn_cf_discard_chain(&a->cf, data);
  264|    813|    }
  265|  10.1k|  }
  266|  10.1k|  return a->result;
  267|  10.1k|}
cf-ip-happy.c:cf_ai_iter_next:
  139|  21.9k|{
  140|  21.9k|  const struct Curl_addrinfo *addr;
  141|       |
  142|  21.9k|  if(!iter->cf)
  ------------------
  |  Branch (142:6): [True: 0, False: 21.9k]
  ------------------
  143|      0|    return NULL;
  144|       |
  145|  21.9k|  addr = Curl_conn_dns_get_ai(data, iter->peer, iter->cf->sockindex,
  146|  21.9k|                              iter->ai_family, iter->n);
  147|  21.9k|  if(addr)
  ------------------
  |  Branch (147:6): [True: 10.1k, False: 11.7k]
  ------------------
  148|  10.1k|    iter->n++;
  149|  21.9k|  return addr;
  150|  21.9k|}
cf-ip-happy.c:cf_ip_ballers_prune:
  366|  10.1k|{
  367|  10.1k|  struct cf_ip_attempt *a = NULL, **panchor;
  368|  10.1k|  uint32_t ongoing = 0;
  369|       |
  370|  10.1k|  for(a = bs->running; a; a = a->next) {
  ------------------
  |  Branch (370:24): [True: 0, False: 10.1k]
  ------------------
  371|      0|    if(!a->result && !a->connected)
  ------------------
  |  Branch (371:8): [True: 0, False: 0]
  |  Branch (371:22): [True: 0, False: 0]
  ------------------
  372|      0|      ++ongoing;
  373|      0|  }
  374|       |
  375|  10.1k|  panchor = &bs->running;
  376|  10.1k|  while(*panchor && (ongoing > max_concurrent)) {
  ------------------
  |  Branch (376:9): [True: 0, False: 10.1k]
  |  Branch (376:21): [True: 0, False: 0]
  ------------------
  377|      0|    a = *panchor;
  378|      0|    if(!a->result && !a->connected) {
  ------------------
  |  Branch (378:8): [True: 0, False: 0]
  |  Branch (378:22): [True: 0, False: 0]
  ------------------
  379|      0|      *panchor = a->next;
  380|      0|      a->next = NULL;
  381|      0|      cf_ip_attempt_free(a, data);
  382|      0|      --ongoing;
  383|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  384|      0|    }
  385|      0|    else {
  386|      0|      panchor = &a->next;
  387|      0|    }
  388|      0|  }
  389|  10.1k|}
cf-ip-happy.c:cf_ip_attempt_new:
  204|  10.1k|{
  205|  10.1k|  struct Curl_cfilter *wcf;
  206|  10.1k|  struct cf_ip_attempt *a;
  207|  10.1k|  CURLcode result = CURLE_OK;
  208|       |
  209|  10.1k|  *pa = NULL;
  210|  10.1k|  a = curlx_calloc(1, sizeof(*a));
  ------------------
  |  | 1479|  10.1k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  211|  10.1k|  if(!a)
  ------------------
  |  Branch (211:6): [True: 0, False: 10.1k]
  ------------------
  212|      0|    return CURLE_OUT_OF_MEMORY;
  213|       |
  214|  10.1k|  Curl_peer_link(&a->origin, origin);
  215|  10.1k|  Curl_peer_link(&a->peer, peer);
  216|  10.1k|  a->transport_peer = transport_peer;
  217|  10.1k|  Curl_peer_link(&a->tunnel_peer, tunnel_peer);
  218|  10.1k|  a->tunnel_transport = tunnel_transport;
  219|  10.1k|  a->addr = *addr;
  220|  10.1k|  a->ai_family = ai_family;
  221|  10.1k|  a->result = CURLE_OK;
  222|  10.1k|  a->cf_create = cf_create;
  223|  10.1k|  *pa = a;
  224|       |
  225|  10.1k|  result = a->cf_create(&a->cf, data, a->origin, a->peer, a->transport_peer,
  226|  10.1k|                        cf->conn, &a->addr, a->tunnel_peer,
  227|  10.1k|                        a->tunnel_transport);
  228|  10.1k|  if(result)
  ------------------
  |  Branch (228:6): [True: 0, False: 10.1k]
  ------------------
  229|      0|    goto out;
  230|       |
  231|       |  /* the new filter might have sub-filters */
  232|  20.2k|  for(wcf = a->cf; wcf; wcf = wcf->next) {
  ------------------
  |  Branch (232:20): [True: 10.1k, False: 10.1k]
  ------------------
  233|  10.1k|    wcf->conn = cf->conn;
  234|  10.1k|    wcf->sockindex = cf->sockindex;
  235|  10.1k|  }
  236|       |
  237|  10.1k|out:
  238|  10.1k|  if(result) {
  ------------------
  |  Branch (238:6): [True: 0, False: 10.1k]
  ------------------
  239|      0|    cf_ip_attempt_free(a, data);
  240|       |    *pa = NULL;
  241|      0|  }
  242|  10.1k|  return result;
  243|  10.1k|}
cf-ip-happy.c:cf_ip_happy_adjust_pollset:
  826|  6.51k|{
  827|  6.51k|  struct cf_ip_happy_ctx *ctx = cf->ctx;
  828|  6.51k|  CURLcode result = CURLE_OK;
  829|       |
  830|  6.51k|  if(!cf->connected) {
  ------------------
  |  Branch (830:6): [True: 0, False: 6.51k]
  ------------------
  831|      0|    result = cf_ip_ballers_pollset(&ctx->ballers, data, ps);
  832|      0|    CURL_TRC_CF(data, cf, "adjust_pollset -> %d, %u socks", (int)result,
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  833|      0|                ps->n);
  834|      0|  }
  835|  6.51k|  return result;
  836|  6.51k|}
cf-ip-happy.c:cf_ip_happy_query:
  933|  48.9k|{
  934|  48.9k|  struct cf_ip_happy_ctx *ctx = cf->ctx;
  935|       |
  936|  48.9k|  if(!cf->connected) {
  ------------------
  |  Branch (936:6): [True: 11.7k, False: 37.1k]
  ------------------
  937|  11.7k|    switch(query) {
  938|      0|    case CF_QUERY_CONNECT_REPLY_MS: {
  ------------------
  |  |  162|      0|#define CF_QUERY_CONNECT_REPLY_MS   2  /* number     -        */
  ------------------
  |  Branch (938:5): [True: 0, False: 11.7k]
  ------------------
  939|      0|      *pres1 = cf_ip_ballers_min_reply_ms(&ctx->ballers, data);
  940|      0|      CURL_TRC_CF(data, cf, "query connect reply: %dms", *pres1);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  941|      0|      return CURLE_OK;
  942|      0|    }
  943|    813|    case CF_QUERY_TIMER_CONNECT: {
  ------------------
  |  |  164|    813|#define CF_QUERY_TIMER_CONNECT      4  /* -          struct curltime */
  ------------------
  |  Branch (943:5): [True: 813, False: 10.9k]
  ------------------
  944|    813|      struct curltime *when = pres2;
  945|    813|      *when = cf_ip_ballers_max_time(&ctx->ballers, data,
  946|    813|                                     CF_QUERY_TIMER_CONNECT);
  ------------------
  |  |  164|    813|#define CF_QUERY_TIMER_CONNECT      4  /* -          struct curltime */
  ------------------
  947|    813|      return CURLE_OK;
  948|      0|    }
  949|    813|    case CF_QUERY_TIMER_APPCONNECT: {
  ------------------
  |  |  165|    813|#define CF_QUERY_TIMER_APPCONNECT   5  /* -          struct curltime */
  ------------------
  |  Branch (949:5): [True: 813, False: 10.9k]
  ------------------
  950|    813|      struct curltime *when = pres2;
  951|    813|      *when = cf_ip_ballers_max_time(&ctx->ballers, data,
  952|    813|                                     CF_QUERY_TIMER_APPCONNECT);
  ------------------
  |  |  165|    813|#define CF_QUERY_TIMER_APPCONNECT   5  /* -          struct curltime */
  ------------------
  953|    813|      return CURLE_OK;
  954|      0|    }
  955|  10.1k|    default:
  ------------------
  |  Branch (955:5): [True: 10.1k, False: 1.62k]
  ------------------
  956|  10.1k|      break;
  957|  11.7k|    }
  958|  11.7k|  }
  959|       |
  960|  47.3k|  return cf->next ?
  ------------------
  |  Branch (960:10): [True: 37.1k, False: 10.1k]
  ------------------
  961|  37.1k|    cf->next->cft->query(cf->next, data, query, pres1, pres2) :
  962|  47.3k|    CURLE_UNKNOWN_OPTION;
  963|  48.9k|}
cf-ip-happy.c:cf_ip_ballers_max_time:
  651|  1.62k|{
  652|  1.62k|  struct curltime t, tmax;
  653|  1.62k|  struct cf_ip_attempt *a;
  654|       |
  655|  1.62k|  memset(&tmax, 0, sizeof(tmax));
  656|  3.25k|  for(a = bs->running; a; a = a->next) {
  ------------------
  |  Branch (656:24): [True: 1.62k, False: 1.62k]
  ------------------
  657|  1.62k|    memset(&t, 0, sizeof(t));
  658|  1.62k|    if(a->cf && !a->cf->cft->query(a->cf, data, query, NULL, &t)) {
  ------------------
  |  Branch (658:8): [True: 0, False: 1.62k]
  |  Branch (658:17): [True: 0, False: 0]
  ------------------
  659|      0|      if((t.tv_sec || t.tv_usec) && curlx_ptimediff_us(&t, &tmax) > 0)
  ------------------
  |  Branch (659:11): [True: 0, False: 0]
  |  Branch (659:23): [True: 0, False: 0]
  |  Branch (659:37): [True: 0, False: 0]
  ------------------
  660|      0|        tmax = t;
  661|      0|    }
  662|  1.62k|  }
  663|  1.62k|  return tmax;
  664|  1.62k|}
cf-ip-happy.c:cf_ip_happy_create:
 1002|  10.1k|{
 1003|  10.1k|  struct cf_ip_happy_ctx *ctx = NULL;
 1004|  10.1k|  CURLcode result;
 1005|       |
 1006|  10.1k|  (void)data;
 1007|  10.1k|  (void)conn;
 1008|  10.1k|  *pcf = NULL;
 1009|  10.1k|  ctx = curlx_calloc(1, sizeof(*ctx));
  ------------------
  |  | 1479|  10.1k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
 1010|  10.1k|  if(!ctx) {
  ------------------
  |  Branch (1010:6): [True: 0, False: 10.1k]
  ------------------
 1011|      0|    result = CURLE_OUT_OF_MEMORY;
 1012|      0|    goto out;
 1013|      0|  }
 1014|  10.1k|  result = cf_ip_ballers_init(&ctx->ballers, data,
 1015|  10.1k|                              origin, peer, transport_peer,
 1016|  10.1k|                              tunnel_peer, tunnel_transport,
 1017|  10.1k|                              data->set.happy_eyeballs_timeout,
 1018|  10.1k|                              IP_HE_MAX_CONCURRENT_ATTEMPTS);
  ------------------
  |  |  755|  10.1k|#define IP_HE_MAX_CONCURRENT_ATTEMPTS     6
  ------------------
 1019|  10.1k|  if(result)
  ------------------
  |  Branch (1019:6): [True: 0, False: 10.1k]
  ------------------
 1020|      0|    goto out;
 1021|       |
 1022|  10.1k|  result = Curl_cf_create(pcf, &Curl_cft_ip_happy, ctx);
 1023|       |
 1024|  10.1k|out:
 1025|  10.1k|  if(result) {
  ------------------
  |  Branch (1025:6): [True: 0, False: 10.1k]
  ------------------
 1026|       |    curlx_safefree(*pcf);
  ------------------
  |  | 1340|      0|  do {                      \
  |  | 1341|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|      0|    (ptr) = NULL;           \
  |  | 1343|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1027|      0|    cf_ip_happy_ctx_destroy(ctx, data);
 1028|      0|  }
 1029|  10.1k|  return result;
 1030|  10.1k|}
cf-ip-happy.c:cf_ip_ballers_init:
  343|  10.1k|{
  344|  10.1k|  memset(bs, 0, sizeof(*bs));
  345|  10.1k|  bs->cf_create = get_cf_create(transport_peer, !!tunnel_peer);
  346|  10.1k|  if(!bs->cf_create) {
  ------------------
  |  Branch (346:6): [True: 0, False: 10.1k]
  ------------------
  347|      0|    failf(data, "unsupported transport type %u%s",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  348|      0|          transport_peer, tunnel_peer ? " to proxy" : "");
  ------------------
  |  Branch (348:27): [True: 0, False: 0]
  ------------------
  349|      0|    return CURLE_UNSUPPORTED_PROTOCOL;
  350|      0|  }
  351|  10.1k|  Curl_peer_link(&bs->origin, origin);
  352|  10.1k|  Curl_peer_link(&bs->peer, peer);
  353|  10.1k|  bs->transport_peer = transport_peer;
  354|  10.1k|  Curl_peer_link(&bs->tunnel_peer, tunnel_peer);
  355|  10.1k|  bs->tunnel_transport = tunnel_transport;
  356|  10.1k|  bs->attempt_delay_ms = attempt_delay_ms;
  357|  10.1k|  bs->max_concurrent = max_concurrent;
  358|       |  bs->last_attempt_ai_family = AF_INET; /* so AF_INET6 is next */
  359|  10.1k|  return CURLE_OK;
  360|  10.1k|}
cf-ip-happy.c:get_cf_create:
   93|  10.1k|{
   94|  10.1k|  size_t i;
   95|  10.1k|  for(i = 0; i < CURL_ARRAYSIZE(transport_providers); ++i) {
  ------------------
  |  | 1307|  10.1k|#define CURL_ARRAYSIZE(A) (sizeof(A) / sizeof((A)[0]))
  ------------------
  |  Branch (95:14): [True: 10.1k, False: 0]
  ------------------
   96|  10.1k|    if((transport == transport_providers[i].transport) &&
  ------------------
  |  Branch (96:8): [True: 10.1k, False: 0]
  ------------------
   97|  10.1k|       (tunnel == transport_providers[i].tunnel))
  ------------------
  |  Branch (97:8): [True: 10.1k, False: 0]
  ------------------
   98|  10.1k|      return transport_providers[i].cf_create;
   99|  10.1k|  }
  100|      0|  return NULL;
  101|  10.1k|}

Curl_cf_setup_add:
  451|  10.1k|{
  452|  10.1k|  struct Curl_cfilter *cf;
  453|  10.1k|  CURLcode result = CURLE_OK;
  454|       |
  455|  10.1k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (455:3): [True: 0, False: 10.1k]
  |  Branch (455:3): [True: 10.1k, False: 0]
  ------------------
  456|  10.1k|  result = cf_setup_create(&cf, data, transport, ssl_mode);
  457|  10.1k|  if(result)
  ------------------
  |  Branch (457:6): [True: 0, False: 10.1k]
  ------------------
  458|      0|    goto out;
  459|  10.1k|  Curl_conn_cf_add(data, conn, sockindex, cf);
  460|  10.1k|out:
  461|  10.1k|  return result;
  462|  10.1k|}
cf-setup.c:cf_setup_destroy:
  390|  10.1k|{
  391|  10.1k|  struct cf_setup_ctx *ctx = cf->ctx;
  392|       |
  393|  10.1k|  CURL_TRC_CF(data, cf, "destroy");
  ------------------
  |  |  153|  10.1k|  do {                                          \
  |  |  154|  10.1k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  10.1k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  20.2k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 10.1k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 10.1k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  20.2k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  10.1k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  10.1k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  10.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 10.1k]
  |  |  ------------------
  ------------------
  394|       |  curlx_safefree(ctx);
  ------------------
  |  | 1340|  10.1k|  do {                      \
  |  | 1341|  10.1k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  10.1k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  10.1k|    (ptr) = NULL;           \
  |  | 1343|  10.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 10.1k]
  |  |  ------------------
  ------------------
  395|  10.1k|}
cf-setup.c:cf_setup_connect:
  364|  16.3k|{
  365|  16.3k|  struct cf_setup_ctx *ctx = cf->ctx;
  366|  16.3k|  CURLcode result;
  367|       |
  368|       |  /* In some situations, a server/proxy may close the connection and
  369|       |   * we need to connect again (HTTP/1.x proxy auth, for example).
  370|       |   * We used to close the filters and reuse them for another attempt,
  371|       |   * however that complicates filter code and it is simpler to tear them
  372|       |   * all down and start over. */
  373|  16.3k|retry:
  374|  16.3k|  result = cf_setup_connect_steps(cf, data, done);
  375|       |
  376|  16.3k|  if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (376:6): [True: 0, False: 16.3k]
  ------------------
  377|      0|    ++ctx->retry_count;
  378|      0|    if(ctx->retry_count > 5) /* arbitrary limit, better just timeout? */
  ------------------
  |  Branch (378:8): [True: 0, False: 0]
  ------------------
  379|      0|      return CURLE_COULDNT_CONNECT;
  380|       |
  381|      0|    CURL_TRC_CF(data, cf, "retrying connect, %d. time", ctx->retry_count);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  382|      0|    Curl_conn_cf_discard_chain(&cf->next, data);
  383|      0|    ctx->state = CF_SETUP_INIT;
  384|      0|    goto retry;
  385|      0|  }
  386|  16.3k|  return result;
  387|  16.3k|}
cf-setup.c:cf_setup_connect_steps:
  302|  16.3k|{
  303|  16.3k|  struct cf_setup_ctx *ctx = cf->ctx;
  304|  16.3k|  CURLcode result = CURLE_OK;
  305|       |
  306|  16.3k|  if(cf->connected) {
  ------------------
  |  Branch (306:6): [True: 0, False: 16.3k]
  ------------------
  307|      0|    *done = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  308|      0|    return CURLE_OK;
  309|      0|  }
  310|       |
  311|       |  /* connect current sub-chain */
  312|  26.8k|connect_sub_chain:
  313|  26.8k|  VERBOSE(Curl_conn_trc_filters(data, cf->sockindex, "cf_setup_connect"));
  ------------------
  |  | 1617|  26.8k|#define VERBOSE(x) x
  ------------------
  314|       |
  315|  26.8k|  if(cf->next && !cf->next->connected) {
  ------------------
  |  Branch (315:6): [True: 16.6k, False: 10.1k]
  |  Branch (315:18): [True: 16.6k, False: 0]
  ------------------
  316|  16.6k|    result = Curl_conn_cf_connect(cf->next, data, done);
  317|  16.6k|    if(result || !*done)
  ------------------
  |  Branch (317:8): [True: 818, False: 15.8k]
  |  Branch (317:18): [True: 6.51k, False: 9.33k]
  ------------------
  318|  7.33k|      return result;
  319|  16.6k|  }
  320|       |
  321|  19.4k|  result = cf_setup_add_ip_happy(cf, data);
  322|  19.4k|  if(result)
  ------------------
  |  Branch (322:6): [True: 0, False: 19.4k]
  ------------------
  323|      0|    return result;
  324|  19.4k|  if(!cf->next || !cf->next->connected)
  ------------------
  |  Branch (324:6): [True: 0, False: 19.4k]
  |  Branch (324:19): [True: 10.1k, False: 9.33k]
  ------------------
  325|  10.1k|    goto connect_sub_chain;
  326|       |
  327|  9.33k|#ifndef CURL_DISABLE_PROXY
  328|  9.33k|  result = cf_setup_add_socks(cf, data);
  329|  9.33k|  if(result)
  ------------------
  |  Branch (329:6): [True: 0, False: 9.33k]
  ------------------
  330|      0|    return result;
  331|  9.33k|  if(!cf->next || !cf->next->connected)
  ------------------
  |  Branch (331:6): [True: 0, False: 9.33k]
  |  Branch (331:19): [True: 0, False: 9.33k]
  ------------------
  332|      0|    goto connect_sub_chain;
  333|       |
  334|  9.33k|#ifndef CURL_DISABLE_HTTP
  335|  9.33k|  result = cf_setup_add_http_proxy(cf, data);
  336|  9.33k|  if(result)
  ------------------
  |  Branch (336:6): [True: 0, False: 9.33k]
  ------------------
  337|      0|    return result;
  338|  9.33k|  if(!cf->next || !cf->next->connected)
  ------------------
  |  Branch (338:6): [True: 0, False: 9.33k]
  |  Branch (338:19): [True: 0, False: 9.33k]
  ------------------
  339|      0|    goto connect_sub_chain;
  340|  9.33k|#endif /* !CURL_DISABLE_HTTP */
  341|       |
  342|  9.33k|  result = cf_setup_add_haproxy(cf, data);
  343|  9.33k|  if(result)
  ------------------
  |  Branch (343:6): [True: 0, False: 9.33k]
  ------------------
  344|      0|    return result;
  345|  9.33k|  if(!cf->next || !cf->next->connected)
  ------------------
  |  Branch (345:6): [True: 0, False: 9.33k]
  |  Branch (345:19): [True: 0, False: 9.33k]
  ------------------
  346|      0|    goto connect_sub_chain;
  347|  9.33k|#endif /* !CURL_DISABLE_PROXY */
  348|       |
  349|  9.33k|  result = cf_setup_add_origin_filters(cf, data);
  350|  9.33k|  if(result)
  ------------------
  |  Branch (350:6): [True: 9, False: 9.32k]
  ------------------
  351|      9|    return result;
  352|  9.32k|  if(!cf->next || !cf->next->connected)
  ------------------
  |  Branch (352:6): [True: 0, False: 9.32k]
  |  Branch (352:19): [True: 347, False: 8.97k]
  ------------------
  353|    347|    goto connect_sub_chain;
  354|       |
  355|  8.97k|  ctx->state = CF_SETUP_DONE;
  356|  8.97k|  cf->connected = TRUE;
  ------------------
  |  | 1053|  8.97k|#define TRUE true
  ------------------
  357|       |  *done = TRUE;
  ------------------
  |  | 1053|  8.97k|#define TRUE true
  ------------------
  358|  8.97k|  return CURLE_OK;
  359|  9.32k|}
cf-setup.c:cf_setup_add_ip_happy:
  175|  19.4k|{
  176|  19.4k|  struct cf_setup_ctx *ctx = cf->ctx;
  177|  19.4k|  CURLcode result = CURLE_OK;
  178|       |
  179|  19.4k|  if(ctx->state < CF_SETUP_CNNCT_EYEBALLS) {
  ------------------
  |  Branch (179:6): [True: 10.1k, False: 9.33k]
  ------------------
  180|       |    /* What is the first hop we directly connect to and what transport
  181|       |     * do we use for it? Only on the first hop we can do Happy Eyeballs.
  182|       |     * first_origin and first_peer differ on --connect-to. */
  183|  10.1k|    struct Curl_peer *first_origin =
  184|  10.1k|      conn_get_first_origin(cf->conn, cf->sockindex);
  185|  10.1k|    struct Curl_peer *first_peer =
  186|  10.1k|      Curl_conn_get_first_peer(cf->conn, cf->sockindex);
  187|  10.1k|    struct Curl_peer *tunnel_peer = NULL;
  188|  10.1k|    uint8_t first_transport = ctx->transport;
  189|       |
  190|  10.1k|    if(!first_peer)
  ------------------
  |  Branch (190:8): [True: 0, False: 10.1k]
  ------------------
  191|      0|      return CURLE_FAILED_INIT;
  192|       |
  193|  10.1k|#if !defined(CURL_DISABLE_PROXY) && !defined(CURL_DISABLE_HTTP)
  194|  10.1k|    if(cf->conn->http_proxy.peer && !cf->conn->bits.origin_is_proxy) {
  ------------------
  |  Branch (194:8): [True: 0, False: 10.1k]
  |  Branch (194:37): [True: 0, False: 0]
  ------------------
  195|      0|      first_transport =
  196|      0|        Curl_http_proxy_transport(cf->conn->http_proxy.proxytype);
  197|      0|      tunnel_peer = Curl_conn_get_destination(cf->conn, cf->sockindex);
  198|      0|      if((first_transport == TRNSPRT_QUIC) && cf->conn->socks_proxy.peer) {
  ------------------
  |  |  239|      0|#define TRNSPRT_QUIC 5
  ------------------
  |  Branch (198:10): [True: 0, False: 0]
  |  Branch (198:47): [True: 0, False: 0]
  ------------------
  199|      0|        failf(data, "HTTP/3 proxy not possible via SOCKS");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  200|      0|        return CURLE_UNSUPPORTED_PROTOCOL;
  201|      0|      }
  202|      0|    }
  203|  10.1k|#endif /* !CURL_DISABLE_PROXY && !CURL_DISABLE_HTTP */
  204|       |
  205|  10.1k|    result = Curl_cf_ip_happy_insert_after(cf, data, first_origin, first_peer,
  206|  10.1k|                                           first_transport,
  207|  10.1k|                                           tunnel_peer, ctx->transport);
  208|  10.1k|    if(result) {
  ------------------
  |  Branch (208:8): [True: 0, False: 10.1k]
  ------------------
  209|      0|      CURL_TRC_CF(data, cf, "adding happy eyeballs failed -> %d", (int)result);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  210|      0|      return result;
  211|      0|    }
  212|       |
  213|  10.1k|    if(tunnel_peer && (first_transport == TRNSPRT_QUIC)) {
  ------------------
  |  |  239|      0|#define TRNSPRT_QUIC 5
  ------------------
  |  Branch (213:8): [True: 0, False: 10.1k]
  |  Branch (213:23): [True: 0, False: 0]
  ------------------
  214|      0|      CURL_TRC_CF(data, cf, "happy eyeballing to HTTP/3 proxy %s:%u",
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  215|      0|                  first_peer->hostname, first_peer->port);
  216|      0|      ctx->state = CF_SETUP_CNNCT_HTTP_PROXY;
  217|      0|    }
  218|  10.1k|    else {
  219|  10.1k|      CURL_TRC_CF(data, cf, "happy eyeballing to %s %s:%u",
  ------------------
  |  |  153|  10.1k|  do {                                          \
  |  |  154|  10.1k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  10.1k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  20.2k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 10.1k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 10.1k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  20.2k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  10.1k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  10.1k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (155:35): [True: 0, False: 0]
  |  |  ------------------
  |  |  156|  10.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 10.1k]
  |  |  ------------------
  ------------------
  220|  10.1k|                  tunnel_peer ? "proxy" : "origin",
  221|  10.1k|                  first_peer->hostname, first_peer->port);
  222|  10.1k|      ctx->state = CF_SETUP_CNNCT_EYEBALLS;
  223|  10.1k|    }
  224|  10.1k|  }
  225|  19.4k|  return result;
  226|  19.4k|}
cf-setup.c:conn_get_first_origin:
  163|  10.1k|{
  164|  10.1k|#ifndef CURL_DISABLE_PROXY
  165|  10.1k|  if(conn->socks_proxy.peer)
  ------------------
  |  Branch (165:6): [True: 0, False: 10.1k]
  ------------------
  166|      0|    return conn->socks_proxy.peer;
  167|  10.1k|  if(conn->http_proxy.peer)
  ------------------
  |  Branch (167:6): [True: 0, False: 10.1k]
  ------------------
  168|      0|    return conn->http_proxy.peer;
  169|  10.1k|#endif
  170|  10.1k|  return (sockindex == SECONDARYSOCKET) ? conn->origin2 : conn->origin;
  ------------------
  |  |  234|  10.1k|#define SECONDARYSOCKET 1
  ------------------
  |  Branch (170:10): [True: 0, False: 10.1k]
  ------------------
  171|  10.1k|}
cf-setup.c:cf_setup_add_socks:
   86|  9.33k|{
   87|  9.33k|  struct cf_setup_ctx *ctx = cf->ctx;
   88|  9.33k|  CURLcode result = CURLE_OK;
   89|  9.33k|  if(ctx->state < CF_SETUP_CNNCT_SOCKS && cf->conn->socks_proxy.peer) {
  ------------------
  |  Branch (89:6): [True: 9.33k, False: 0]
  |  Branch (89:43): [True: 0, False: 9.33k]
  ------------------
   90|       |    /* Add a SOCKS proxy to go through `first_peer` to `second_peer`*/
   91|      0|    struct Curl_peer *second_peer;
   92|       |
   93|      0|    if(cf->conn->http_proxy.peer)
  ------------------
  |  Branch (93:8): [True: 0, False: 0]
  ------------------
   94|      0|      second_peer = cf->conn->http_proxy.peer;
   95|      0|    else
   96|      0|      second_peer = Curl_conn_get_destination(cf->conn, cf->sockindex);
   97|      0|    if(!second_peer)
  ------------------
  |  Branch (97:8): [True: 0, False: 0]
  ------------------
   98|      0|      return CURLE_FAILED_INIT;
   99|       |
  100|      0|    result = Curl_cf_socks_proxy_insert_after(
  101|      0|      cf, data, second_peer, cf->conn->ip_version,
  102|      0|      cf->conn->socks_proxy.proxytype,
  103|      0|      cf->conn->socks_proxy.creds);
  104|      0|    if(result) {
  ------------------
  |  Branch (104:8): [True: 0, False: 0]
  ------------------
  105|      0|      CURL_TRC_CF(data, cf, "adding SOCKS filter failed -> %d", (int)result);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  106|      0|      return result;
  107|      0|    }
  108|       |
  109|      0|    CURL_TRC_CF(data, cf, "added SOCKS filter to %s:%u",
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  110|      0|                second_peer->hostname, second_peer->port);
  111|      0|    ctx->state = CF_SETUP_CNNCT_SOCKS;
  112|      0|  }
  113|  9.33k|  return result;
  114|  9.33k|}
cf-setup.c:cf_setup_add_http_proxy:
  119|  9.33k|{
  120|  9.33k|  struct cf_setup_ctx *ctx = cf->ctx;
  121|  9.33k|  CURLcode result = CURLE_OK;
  122|       |
  123|  9.33k|  if(ctx->state < CF_SETUP_CNNCT_HTTP_PROXY &&
  ------------------
  |  Branch (123:6): [True: 9.33k, False: 0]
  ------------------
  124|  9.33k|     cf->conn->http_proxy.peer && !cf->conn->bits.origin_is_proxy) {
  ------------------
  |  Branch (124:6): [True: 0, False: 9.33k]
  |  Branch (124:35): [True: 0, False: 0]
  ------------------
  125|      0|    struct Curl_peer *peer = cf->conn->http_proxy.peer;
  126|      0|    struct Curl_peer *tunnel_peer =
  127|      0|      Curl_conn_get_destination(cf->conn, cf->sockindex);
  128|       |
  129|      0|#ifdef USE_SSL
  130|      0|    if(CURL_PROXY_IS_HTTPS(cf->conn->http_proxy.proxytype) &&
  ------------------
  |  |   42|      0|  (((t) == CURLPROXY_HTTPS) ||  \
  |  |  ------------------
  |  |  |  |  794|      0|#define CURLPROXY_HTTPS           2L /* HTTPS but stick to HTTP/1
  |  |  ------------------
  |  |  |  Branch (42:4): [True: 0, False: 0]
  |  |  ------------------
  |  |   43|      0|   ((t) == CURLPROXY_HTTPS2) || \
  |  |  ------------------
  |  |  |  |  796|      0|#define CURLPROXY_HTTPS2          3L /* HTTPS and attempt HTTP/2
  |  |  ------------------
  |  |  |  Branch (43:4): [True: 0, False: 0]
  |  |  ------------------
  |  |   44|      0|   ((t) == CURLPROXY_HTTPS3))
  |  |  ------------------
  |  |  |  |  805|      0|#define CURLPROXY_HTTPS3          8L /* HTTPS and attempt HTTP/3
  |  |  ------------------
  |  |  |  Branch (44:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  131|      0|       !Curl_conn_is_ssl(cf->conn, cf->sockindex)) {
  ------------------
  |  Branch (131:8): [True: 0, False: 0]
  ------------------
  132|      0|      result = Curl_cf_ssl_proxy_insert_after(
  133|      0|        cf, data, cf->conn->http_proxy.peer);
  134|      0|      if(result) {
  ------------------
  |  Branch (134:10): [True: 0, False: 0]
  ------------------
  135|      0|        CURL_TRC_CF(data, cf, "adding SSL filter for HTTP proxy failed -> %d",
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  136|      0|                    (int)result);
  137|      0|        return result;
  138|      0|      }
  139|      0|      CURL_TRC_CF(data, cf, "added SSL filter for HTTP proxy");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  140|      0|    }
  141|      0|#endif /* USE_SSL */
  142|       |
  143|      0|    result = Curl_cf_http_proxy_insert_after(
  144|      0|      cf, data, peer, tunnel_peer,
  145|      0|      ctx->transport, cf->conn->http_proxy.proxytype);
  146|      0|    if(result) {
  ------------------
  |  Branch (146:8): [True: 0, False: 0]
  ------------------
  147|      0|      CURL_TRC_CF(data, cf, "adding HTTP proxy tunnel filter failed -> %d",
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  148|      0|                  (int)result);
  149|      0|      return result;
  150|      0|    }
  151|      0|    CURL_TRC_CF(data, cf, "added HTTP proxy tunnel filter");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  152|      0|    ctx->state = CF_SETUP_CNNCT_HTTP_PROXY;
  153|      0|  }
  154|  9.33k|  return result;
  155|  9.33k|}
cf-setup.c:cf_setup_add_haproxy:
   61|  9.33k|{
   62|  9.33k|  struct cf_setup_ctx *ctx = cf->ctx;
   63|  9.33k|  CURLcode result = CURLE_OK;
   64|       |
   65|  9.33k|  if(ctx->state < CF_SETUP_CNNCT_HAPROXY) {
  ------------------
  |  Branch (65:6): [True: 9.33k, False: 0]
  ------------------
   66|  9.33k|    if(data->set.haproxyprotocol) {
  ------------------
  |  Branch (66:8): [True: 0, False: 9.33k]
  ------------------
   67|      0|      if(ctx->transport == TRNSPRT_QUIC) {
  ------------------
  |  |  239|      0|#define TRNSPRT_QUIC 5
  ------------------
  |  Branch (67:10): [True: 0, False: 0]
  ------------------
   68|      0|        failf(data, "haproxy protocol does not support QUIC");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
   69|      0|        return CURLE_UNSUPPORTED_PROTOCOL;
   70|      0|      }
   71|      0|      result = Curl_cf_haproxy_insert_after(cf, data);
   72|      0|      if(result) {
  ------------------
  |  Branch (72:10): [True: 0, False: 0]
  ------------------
   73|      0|        CURL_TRC_CF(data, cf, "adding HAPROXY filter failed -> %d",
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
   74|      0|                    (int)result);
   75|      0|        return result;
   76|      0|      }
   77|      0|      CURL_TRC_CF(data, cf, "added HAPROXY filter");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
   78|      0|    }
   79|  9.33k|    ctx->state = CF_SETUP_CNNCT_HAPROXY;
   80|  9.33k|  }
   81|  9.33k|  return result;
   82|  9.33k|}
cf-setup.c:cf_setup_add_origin_filters:
  230|  9.33k|{
  231|  9.33k|  struct cf_setup_ctx *ctx = cf->ctx;
  232|  9.33k|  CURLcode result = CURLE_OK;
  233|       |
  234|  9.33k|  (void)data; /* not used in all builds */
  235|  9.33k|  if(ctx->state < CF_SETUP_CNNCT_SSL) {
  ------------------
  |  Branch (235:6): [True: 9.33k, False: 0]
  ------------------
  236|       |#if !defined(CURL_DISABLE_HTTP) && defined(USE_HTTP3) && \
  237|       |    !defined(CURL_DISABLE_PROXY)
  238|       |
  239|       |    /* Wanting QUIC with an HTTP tunneling filter, we now need to add
  240|       |     * the QUIC filter on top. Without tunneling, this has already
  241|       |     * happened in the Happy Eyeball filter. */
  242|       |    if(ctx->transport == TRNSPRT_QUIC &&
  243|       |       cf->conn->http_proxy.peer && !cf->conn->bits.origin_is_proxy) {
  244|       |      struct Curl_peer *origin = Curl_conn_get_origin(cf->conn, cf->sockindex);
  245|       |      struct Curl_peer *peer =
  246|       |        Curl_conn_get_destination(cf->conn, cf->sockindex);
  247|       |
  248|       |      result = Curl_cf_capsule_insert_after(cf, data);
  249|       |      if(result) {
  250|       |        CURL_TRC_CF(data, cf, "adding capsule filter failed -> %d",
  251|       |                    (int)result);
  252|       |        return result;
  253|       |      }
  254|       |      result = Curl_cf_quic_insert_after(cf, data, origin, peer);
  255|       |      if(result) {
  256|       |        CURL_TRC_CF(data, cf, "adding QUIC filter failed -> %d", (int)result);
  257|       |        return result;
  258|       |      }
  259|       |      CURL_TRC_CF(data, cf, "added QUIC filter for origin");
  260|       |    }
  261|       |    else
  262|       |#endif /* !CURL_DISABLE_HTTP && USE_HTTP3 && CURL_DISABLE_PROXY */
  263|  9.33k|#ifdef USE_SSL
  264|  9.33k|    if((ctx->ssl_mode == CURL_CF_SSL_ENABLE ||
  ------------------
  |  |  357|  18.6k|#define CURL_CF_SSL_ENABLE   1
  ------------------
  |  Branch (264:9): [True: 0, False: 9.33k]
  ------------------
  265|  9.33k|        (ctx->ssl_mode != CURL_CF_SSL_DISABLE &&
  ------------------
  |  |  356|  18.6k|#define CURL_CF_SSL_DISABLE  0
  ------------------
  |  Branch (265:10): [True: 9.33k, False: 0]
  ------------------
  266|  9.33k|         cf->conn->scheme->flags & PROTOPT_SSL)) && /* we want SSL */
  ------------------
  |  |  207|  9.33k|#define PROTOPT_SSL (1 << 0)       /* uses SSL */
  ------------------
  |  Branch (266:10): [True: 356, False: 8.97k]
  ------------------
  267|    356|       !Curl_conn_is_ssl(cf->conn, cf->sockindex)) { /* it is missing */
  ------------------
  |  Branch (267:8): [True: 356, False: 0]
  ------------------
  268|       |
  269|    356|#ifndef CURL_DISABLE_PROXY
  270|    356|      if(cf->conn->bits.origin_is_proxy) {
  ------------------
  |  Branch (270:10): [True: 0, False: 356]
  ------------------
  271|      0|        result = Curl_cf_ssl_proxy_insert_after(cf, data, cf->conn->origin);
  272|      0|      }
  273|    356|      else
  274|    356|#endif
  275|    356|      {
  276|       |        /* FTP is a bitch. Wherever we really connect to on the DATA
  277|       |         * (secondary) connection, many servers require TLS sessions reuse
  278|       |         * to prove they are talking to the same client.
  279|       |         * For the TLS session lookup to work, we need to instantiate
  280|       |         * the SSL filter with the same peers as FIRSTSOCKET. See #22225
  281|       |         * Meaning: cf->sockindex does not matter here. */
  282|    356|        result = Curl_cf_ssl_insert_after(cf, data,
  283|    356|          Curl_conn_get_origin(cf->conn, FIRSTSOCKET),
  ------------------
  |  |  233|    356|#define FIRSTSOCKET     0
  ------------------
  284|    356|          Curl_conn_get_destination(cf->conn, FIRSTSOCKET));
  ------------------
  |  |  233|    356|#define FIRSTSOCKET     0
  ------------------
  285|    356|      }
  286|    356|      if(result) {
  ------------------
  |  Branch (286:10): [True: 9, False: 347]
  ------------------
  287|      9|        CURL_TRC_CF(data, cf, "adding SSL filter for origin failed -> %d",
  ------------------
  |  |  153|      9|  do {                                          \
  |  |  154|      9|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      9|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|     18|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 9, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 9]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|     18|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      9|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      9|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      9|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 9]
  |  |  ------------------
  ------------------
  288|      9|                    (int)result);
  289|      9|        return result;
  290|      9|      }
  291|    347|      CURL_TRC_CF(data, cf, "added SSL filter for origin");
  ------------------
  |  |  153|    347|  do {                                          \
  |  |  154|    347|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|    347|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    694|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 347, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 347]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    694|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    347|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    347|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    347|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 347]
  |  |  ------------------
  ------------------
  292|    347|    }
  293|  9.32k|#endif /* USE_SSL */
  294|  9.32k|    ctx->state = CF_SETUP_CNNCT_SSL;
  295|  9.32k|  }
  296|  9.32k|  return result;
  297|  9.33k|}
cf-setup.c:cf_setup_create:
  418|  10.1k|{
  419|  10.1k|  struct Curl_cfilter *cf = NULL;
  420|  10.1k|  struct cf_setup_ctx *ctx;
  421|  10.1k|  CURLcode result = CURLE_OK;
  422|       |
  423|  10.1k|  (void)data;
  424|  10.1k|  ctx = curlx_calloc(1, sizeof(*ctx));
  ------------------
  |  | 1479|  10.1k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  425|  10.1k|  if(!ctx) {
  ------------------
  |  Branch (425:6): [True: 0, False: 10.1k]
  ------------------
  426|      0|    result = CURLE_OUT_OF_MEMORY;
  427|      0|    goto out;
  428|      0|  }
  429|  10.1k|  ctx->state = CF_SETUP_INIT;
  430|  10.1k|  ctx->ssl_mode = ssl_mode;
  431|  10.1k|  ctx->transport = transport;
  432|       |
  433|  10.1k|  result = Curl_cf_create(&cf, &Curl_cft_setup, ctx);
  434|  10.1k|  if(result)
  ------------------
  |  Branch (434:6): [True: 0, False: 10.1k]
  ------------------
  435|      0|    goto out;
  436|  10.1k|  ctx = NULL;
  437|       |
  438|  10.1k|out:
  439|  10.1k|  *pcf = result ? NULL : cf;
  ------------------
  |  Branch (439:10): [True: 0, False: 10.1k]
  ------------------
  440|  10.1k|  if(ctx) {
  ------------------
  |  Branch (440:6): [True: 0, False: 10.1k]
  ------------------
  441|      0|    curlx_free(ctx);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  442|      0|  }
  443|  10.1k|  return result;
  444|  10.1k|}

sockaddr2string:
   96|  27.6k|{
   97|  27.6k|  struct sockaddr_in *si = NULL;
   98|  27.6k|#ifdef USE_IPV6
   99|  27.6k|  struct sockaddr_in6 *si6 = NULL;
  100|  27.6k|#endif
  101|  27.6k|#ifdef USE_UNIX_SOCKETS
  102|  27.6k|  struct sockaddr_un *su = NULL;
  103|       |#else
  104|       |  (void)salen;
  105|       |#endif
  106|       |
  107|  27.6k|  switch(sa->sa_family) {
  108|  9.33k|  case AF_INET:
  ------------------
  |  Branch (108:3): [True: 9.33k, False: 18.3k]
  ------------------
  109|  9.33k|    si = (struct sockaddr_in *)(void *)sa;
  110|  9.33k|    if(curlx_inet_ntop(sa->sa_family, &si->sin_addr, addr, MAX_IPADR_LEN)) {
  ------------------
  |  |   41|  9.33k|#define MAX_IPADR_LEN sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")
  ------------------
  |  Branch (110:8): [True: 9.33k, False: 0]
  ------------------
  111|  9.33k|      *port = ntohs(si->sin_port);
  112|  9.33k|      return TRUE;
  ------------------
  |  | 1053|  9.33k|#define TRUE true
  ------------------
  113|  9.33k|    }
  114|      0|    break;
  115|      0|#ifdef USE_IPV6
  116|      0|  case AF_INET6:
  ------------------
  |  Branch (116:3): [True: 0, False: 27.6k]
  ------------------
  117|      0|    si6 = (struct sockaddr_in6 *)(void *)sa;
  118|      0|    if(curlx_inet_ntop(sa->sa_family, &si6->sin6_addr, addr, MAX_IPADR_LEN)) {
  ------------------
  |  |   41|      0|#define MAX_IPADR_LEN sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")
  ------------------
  |  Branch (118:8): [True: 0, False: 0]
  ------------------
  119|      0|      *port = ntohs(si6->sin6_port);
  120|      0|      return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  121|      0|    }
  122|      0|    break;
  123|      0|#endif
  124|      0|#ifdef USE_UNIX_SOCKETS
  125|  18.3k|  case AF_UNIX:
  ------------------
  |  Branch (125:3): [True: 18.3k, False: 9.33k]
  ------------------
  126|  18.3k|    if(salen > (curl_socklen_t)sizeof(CURL_SA_FAMILY_T)) {
  ------------------
  |  Branch (126:8): [True: 0, False: 18.3k]
  ------------------
  127|      0|      su = (struct sockaddr_un *)sa;
  128|      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")
  ------------------
  129|      0|    }
  130|  18.3k|    else
  131|  18.3k|      addr[0] = 0; /* socket with no name */
  132|  18.3k|    *port = 0;
  133|  18.3k|    return TRUE;
  ------------------
  |  | 1053|  18.3k|#define TRUE true
  ------------------
  134|      0|#endif
  135|      0|  default:
  ------------------
  |  Branch (135:3): [True: 0, False: 27.6k]
  ------------------
  136|      0|    break;
  137|  27.6k|  }
  138|       |
  139|      0|  addr[0] = '\0';
  140|      0|  *port = 0;
  141|      0|  errno = SOCKEAFNOSUPPORT;
  ------------------
  |  | 1126|      0|#define SOCKEAFNOSUPPORT  EAFNOSUPPORT
  ------------------
  142|       |  return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  143|  27.6k|}
Curl_socket_addr_from_ai:
  340|  10.1k|{
  341|       |  /*
  342|       |   * The Curl_sockaddr_ex structure is libcurl's external API
  343|       |   * curl_sockaddr structure with enough space available to directly hold
  344|       |   * any protocol-specific address structures. The variable declared here
  345|       |   * will be used to pass / receive data to/from the fopensocket callback
  346|       |   * if this has been set, before that, it is initialized from parameters.
  347|       |   */
  348|  10.1k|  addr->family = ai->ai_family;
  349|  10.1k|  addr->socktype = Curl_socktype_for_transport(transport);
  350|  10.1k|  addr->protocol = Curl_protocol_for_transport(transport);
  351|  10.1k|  addr->addrlen = (unsigned int)ai->ai_addrlen;
  352|       |
  353|  10.1k|  DEBUGASSERT(addr->addrlen <= sizeof(addr->curl_sa_addrbuf));
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (353:3): [True: 0, False: 10.1k]
  |  Branch (353:3): [True: 10.1k, False: 0]
  ------------------
  354|  10.1k|  if(addr->addrlen > sizeof(addr->curl_sa_addrbuf))
  ------------------
  |  |   36|  10.1k|#define curl_sa_addrbuf addr.buf
  ------------------
  |  Branch (354:6): [True: 0, False: 10.1k]
  ------------------
  355|      0|    return CURLE_TOO_LARGE;
  356|       |
  357|  10.1k|  memcpy(&addr->curl_sa_addrbuf, ai->ai_addr, addr->addrlen);
  ------------------
  |  |   36|  10.1k|#define curl_sa_addrbuf addr.buf
  ------------------
  358|  10.1k|  return CURLE_OK;
  359|  10.1k|}
Curl_cf_tcp_create:
 1860|  10.1k|{
 1861|  10.1k|  struct cf_socket_ctx *ctx = NULL;
 1862|  10.1k|  struct Curl_cfilter *cf = NULL;
 1863|  10.1k|  CURLcode result;
 1864|       |
 1865|  10.1k|  (void)data;
 1866|  10.1k|  (void)origin;
 1867|  10.1k|  (void)conn;
 1868|  10.1k|  (void)tunnel_peer;
 1869|  10.1k|  (void)tunnel_transport;
 1870|  10.1k|  DEBUGASSERT(transport_peer == TRNSPRT_TCP);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1870:3): [True: 0, False: 10.1k]
  |  Branch (1870:3): [True: 10.1k, False: 0]
  ------------------
 1871|  10.1k|  if(!addr) {
  ------------------
  |  Branch (1871:6): [True: 0, False: 10.1k]
  ------------------
 1872|      0|    result = CURLE_BAD_FUNCTION_ARGUMENT;
 1873|      0|    goto out;
 1874|      0|  }
 1875|       |
 1876|  10.1k|  ctx = curlx_calloc(1, sizeof(*ctx));
  ------------------
  |  | 1479|  10.1k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
 1877|  10.1k|  if(!ctx) {
  ------------------
  |  Branch (1877:6): [True: 0, False: 10.1k]
  ------------------
 1878|      0|    result = CURLE_OUT_OF_MEMORY;
 1879|      0|    goto out;
 1880|      0|  }
 1881|       |
 1882|  10.1k|  result = cf_socket_ctx_init(ctx, peer, addr, transport_peer);
 1883|  10.1k|  if(result)
  ------------------
  |  Branch (1883:6): [True: 0, False: 10.1k]
  ------------------
 1884|      0|    goto out;
 1885|       |
 1886|  10.1k|  result = Curl_cf_create(&cf, &Curl_cft_tcp, ctx);
 1887|       |
 1888|  10.1k|out:
 1889|  10.1k|  *pcf = (!result) ? cf : NULL;
  ------------------
  |  Branch (1889:10): [True: 10.1k, False: 0]
  ------------------
 1890|  10.1k|  if(result) {
  ------------------
  |  Branch (1890:6): [True: 0, False: 10.1k]
  ------------------
 1891|      0|    curlx_safefree(cf);
  ------------------
  |  | 1340|      0|  do {                      \
  |  | 1341|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|      0|    (ptr) = NULL;           \
  |  | 1343|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1892|      0|    cf_socket_ctx_free(ctx);
 1893|      0|  }
 1894|       |
 1895|  10.1k|  return result;
 1896|  10.1k|}
cf-socket.c:socket_open:
  416|  10.1k|{
  417|  10.1k|  char errbuf[STRERROR_LEN];
  418|       |
  419|  10.1k|#ifdef SOCK_CLOEXEC
  420|  10.1k|  addr->socktype |= SOCK_CLOEXEC;
  421|  10.1k|#endif
  422|       |
  423|  10.1k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (423:3): [True: 0, False: 10.1k]
  |  Branch (423:3): [True: 10.1k, False: 0]
  ------------------
  424|  10.1k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (424:3): [True: 0, False: 10.1k]
  |  Branch (424:3): [True: 10.1k, False: 0]
  ------------------
  425|  10.1k|  if(data->set.fopensocket) {
  ------------------
  |  Branch (425:6): [True: 10.1k, False: 0]
  ------------------
  426|       |    /*
  427|       |     * If the opensocket callback is set, all the destination address
  428|       |     * information is passed to the callback. Depending on this information the
  429|       |     * callback may opt to abort the connection, this is indicated returning
  430|       |     * CURL_SOCKET_BAD; otherwise it will return a not-connected socket. When
  431|       |     * the callback returns a valid socket the destination address information
  432|       |     * might have been changed and this 'new' address will actually be used
  433|       |     * here to connect.
  434|       |     */
  435|  10.1k|    struct Curl_mapi_guard guard;
  436|  10.1k|    CURL_CBAPI_START(&guard, data, easy_fopensocket);
  ------------------
  |  |  200|  10.1k|  Curl_cbapi_enter((g), (d), NULL, CURL_CBAPI_FN_##fn)
  ------------------
  437|  10.1k|    *sockfd = data->set.fopensocket(data->set.opensocket_client,
  438|  10.1k|                                    CURLSOCKTYPE_IPCXN,
  439|  10.1k|                                    (struct curl_sockaddr *)addr);
  440|  10.1k|    CURL_CBAPI_END(&guard);
  ------------------
  |  |  204|  10.1k|  Curl_cbapi_leave(g)
  ------------------
  441|  10.1k|  }
  442|      0|  else {
  443|       |    /* opensocket callback not set, so create the socket now */
  444|      0|#ifdef DEBUGBUILD
  445|      0|    if((addr->family == AF_INET6) && getenv("CURL_DBG_SOCK_FAIL_IPV6")) {
  ------------------
  |  Branch (445:8): [True: 0, False: 0]
  |  Branch (445:38): [True: 0, False: 0]
  ------------------
  446|      0|      failf(data, "CURL_DBG_SOCK_FAIL_IPV6: failed to open socket");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  447|      0|      return CURLE_COULDNT_CONNECT;
  448|      0|    }
  449|      0|#endif
  450|      0|    *sockfd = CURL_SOCKET(addr->family, addr->socktype, addr->protocol);
  ------------------
  |  | 1435|      0|  curl_dbg_socket((int)(domain), type, protocol, __LINE__, __FILE__)
  ------------------
  451|      0|    if((*sockfd == CURL_SOCKET_BAD) && (SOCKERRNO == SOCKENOMEM))
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
                  if((*sockfd == CURL_SOCKET_BAD) && (SOCKERRNO == SOCKENOMEM))
  ------------------
  |  | 1097|      0|#define SOCKERRNO         errno
  ------------------
                  if((*sockfd == CURL_SOCKET_BAD) && (SOCKERRNO == SOCKENOMEM))
  ------------------
  |  | 1135|      0|#define SOCKENOMEM        ENOMEM
  ------------------
  |  Branch (451:8): [True: 0, False: 0]
  |  Branch (451:40): [True: 0, False: 0]
  ------------------
  452|      0|      return CURLE_OUT_OF_MEMORY;
  453|      0|  }
  454|       |
  455|  10.1k|  if(*sockfd == CURL_SOCKET_BAD) {
  ------------------
  |  |  145|  10.1k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (455:6): [True: 813, False: 9.33k]
  ------------------
  456|       |    /* no socket, no connection */
  457|    813|    failf(data, "failed to open socket: %s",
  ------------------
  |  |   62|    813|#define failf Curl_failf
  ------------------
  458|    813|          curlx_strerror(SOCKERRNO, errbuf, sizeof(errbuf)));
  ------------------
  |  | 1097|    813|#define SOCKERRNO         errno
  ------------------
  459|    813|    return CURLE_COULDNT_CONNECT;
  460|    813|  }
  461|       |
  462|       |#ifdef USE_SO_NOSIGPIPE
  463|       |  if(Curl_sock_nosigpipe(*sockfd) < 0) {
  464|       |    failf(data, "setsockopt enable SO_NOSIGPIPE: %s",
  465|       |          curlx_strerror(SOCKERRNO, errbuf, sizeof(errbuf)));
  466|       |    sclose(*sockfd);
  467|       |    *sockfd = CURL_SOCKET_BAD;
  468|       |    return CURLE_COULDNT_CONNECT;
  469|       |  }
  470|       |#endif /* USE_SO_NOSIGPIPE */
  471|       |
  472|       |#if defined(HAVE_FCNTL) && !defined(SOCK_CLOEXEC)
  473|       |  if(fcntl(*sockfd, F_SETFD, FD_CLOEXEC) < 0) {
  474|       |    failf(data, "fcntl set CLOEXEC: %s",
  475|       |          curlx_strerror(SOCKERRNO, errbuf, sizeof(errbuf)));
  476|       |    sclose(*sockfd);
  477|       |    *sockfd = CURL_SOCKET_BAD;
  478|       |    return CURLE_COULDNT_CONNECT;
  479|       |  }
  480|       |#endif
  481|       |
  482|  9.33k|#if defined(USE_IPV6) && defined(HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID)
  483|  9.33k|  if(addr->family == AF_INET6) {
  ------------------
  |  Branch (483:6): [True: 0, False: 9.33k]
  ------------------
  484|      0|    struct sockaddr_in6 * const sa6 = (void *)&addr->curl_sa_addr;
  ------------------
  |  |   35|      0|#define curl_sa_addr    addr.sa
  ------------------
  485|      0|    sa6->sin6_scope_id = get_scope_id(data, sa6);
  486|      0|  }
  487|  9.33k|#endif
  488|  9.33k|  return CURLE_OK;
  489|  10.1k|}
cf-socket.c:socket_close:
  522|  9.33k|{
  523|  9.33k|  if(sock == CURL_SOCKET_BAD)
  ------------------
  |  |  145|  9.33k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (523:6): [True: 0, False: 9.33k]
  ------------------
  524|      0|    return 0;
  525|       |
  526|  9.33k|  if(use_callback && conn && conn->fclosesocket) {
  ------------------
  |  Branch (526:6): [True: 9.33k, False: 0]
  |  Branch (526:22): [True: 9.33k, False: 0]
  |  Branch (526:30): [True: 0, False: 9.33k]
  ------------------
  527|      0|    struct Curl_mapi_guard guard;
  528|      0|    int rc;
  529|      0|    Curl_multi_will_close(data, sock);
  530|      0|    CURL_CBAPI_START(&guard, data, easy_closesocket);
  ------------------
  |  |  200|      0|  Curl_cbapi_enter((g), (d), NULL, CURL_CBAPI_FN_##fn)
  ------------------
  531|      0|    rc = conn->fclosesocket(conn->closesocket_client, sock);
  532|      0|    CURL_CBAPI_END(&guard);
  ------------------
  |  |  204|      0|  Curl_cbapi_leave(g)
  ------------------
  533|      0|    return rc;
  534|      0|  }
  535|       |
  536|  9.33k|  if(conn)
  ------------------
  |  Branch (536:6): [True: 9.33k, False: 0]
  ------------------
  537|       |    /* tell the multi-socket code about this */
  538|  9.33k|    Curl_multi_will_close(data, sock);
  539|       |
  540|  9.33k|  sclose(sock);
  ------------------
  |  | 1427|  9.33k|#define sclose(sockfd) curl_dbg_sclose(sockfd, __LINE__, __FILE__)
  ------------------
  541|       |
  542|  9.33k|  return 0;
  543|  9.33k|}
cf-socket.c:cf_socket_destroy:
 1062|  10.1k|{
 1063|  10.1k|  struct cf_socket_ctx *ctx = cf->ctx;
 1064|       |
 1065|  10.1k|  CURL_TRC_CF(data, cf, "destroy");
  ------------------
  |  |  153|  10.1k|  do {                                          \
  |  |  154|  10.1k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  10.1k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  20.2k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 10.1k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 10.1k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  20.2k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  10.1k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  10.1k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  10.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 10.1k]
  |  |  ------------------
  ------------------
 1066|  10.1k|  if(ctx) {
  ------------------
  |  Branch (1066:6): [True: 10.1k, False: 0]
  ------------------
 1067|  10.1k|    if(ctx->sock != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|  10.1k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (1067:8): [True: 9.33k, False: 813]
  ------------------
 1068|  9.33k|      CURL_TRC_CF(data, cf, "cf_socket_close, fd=%" FMT_SOCKET_T, ctx->sock);
  ------------------
  |  |  153|  9.33k|  do {                                          \
  |  |  154|  9.33k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  9.33k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  18.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 9.33k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 9.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  18.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  9.33k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  9.33k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  9.33k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 9.33k]
  |  |  ------------------
  ------------------
 1069|  9.33k|      if(ctx->sock == cf->conn->sock[cf->sockindex])
  ------------------
  |  Branch (1069:10): [True: 8.97k, False: 356]
  ------------------
 1070|  8.97k|        cf->conn->sock[cf->sockindex] = CURL_SOCKET_BAD;
  ------------------
  |  |  145|  8.97k|#define CURL_SOCKET_BAD (-1)
  ------------------
 1071|  9.33k|      socket_close(data, cf->conn, !ctx->accepted, ctx->sock);
 1072|  9.33k|    }
 1073|  10.1k|    cf_socket_ctx_free(ctx);
 1074|  10.1k|  }
 1075|  10.1k|}
cf-socket.c:cf_tcp_connect:
 1409|  10.1k|{
 1410|  10.1k|  struct cf_socket_ctx *ctx = cf->ctx;
 1411|  10.1k|  CURLcode result = CURLE_COULDNT_CONNECT;
 1412|  10.1k|  int rc = 0;
 1413|       |
 1414|  10.1k|  if(cf->connected) {
  ------------------
  |  Branch (1414:6): [True: 0, False: 10.1k]
  ------------------
 1415|      0|    *done = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1416|      0|    return CURLE_OK;
 1417|      0|  }
 1418|       |
 1419|  10.1k|  *done = FALSE; /* a negative world view is best */
  ------------------
  |  | 1056|  10.1k|#define FALSE false
  ------------------
 1420|  10.1k|  if(ctx->sock == CURL_SOCKET_BAD) {
  ------------------
  |  |  145|  10.1k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (1420:6): [True: 10.1k, False: 0]
  ------------------
 1421|  10.1k|    int sockerr;
 1422|       |
 1423|  10.1k|    result = cf_socket_open(cf, data);
 1424|  10.1k|    if(result)
  ------------------
  |  Branch (1424:8): [True: 813, False: 9.33k]
  ------------------
 1425|    813|      goto out;
 1426|       |
 1427|  9.33k|    if(cf->connected) {
  ------------------
  |  Branch (1427:8): [True: 9.33k, False: 0]
  ------------------
 1428|  9.33k|      *done = TRUE;
  ------------------
  |  | 1053|  9.33k|#define TRUE true
  ------------------
 1429|  9.33k|      return CURLE_OK;
 1430|  9.33k|    }
 1431|       |
 1432|       |    /* Connect TCP socket */
 1433|      0|    rc = do_connect(cf, data, (bool)cf->conn->bits.tcp_fastopen);
 1434|      0|    sockerr = SOCKERRNO;
  ------------------
  |  | 1097|      0|#define SOCKERRNO         errno
  ------------------
 1435|      0|    set_local_ip(cf, data);
 1436|      0|    CURL_TRC_CF(data, cf, "local address %s port %d...",
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1437|      0|                ctx->ip.local_ip, ctx->ip.local_port);
 1438|      0|    if(rc == -1) {
  ------------------
  |  Branch (1438:8): [True: 0, False: 0]
  ------------------
 1439|      0|      ctx->sockerr = sockerr;
 1440|      0|      result = socket_connect_result(data, ctx->ip.remote_ip, sockerr);
 1441|      0|      goto out;
 1442|      0|    }
 1443|      0|  }
 1444|       |
 1445|       |#ifdef mpeix
 1446|       |  /* Call this function once now, and ignore the results. We do this to
 1447|       |     "clear" the error state on the socket so that we can later read it
 1448|       |     reliably. This is reported necessary on the MPE/iX operating
 1449|       |     system. */
 1450|       |  (void)verifyconnect(ctx->sock, NULL);
 1451|       |#endif
 1452|       |  /* check socket for connect */
 1453|      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)
  |  |  ------------------
  ------------------
 1454|       |
 1455|      0|  if(rc == 0) { /* no connection yet */
  ------------------
  |  Branch (1455:6): [True: 0, False: 0]
  ------------------
 1456|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1457|      0|    return CURLE_OK;
 1458|      0|  }
 1459|      0|  else if(rc == CURL_CSELECT_OUT || cf->conn->bits.tcp_fastopen) {
  ------------------
  |  |  291|      0|#define CURL_CSELECT_OUT  0x02
  ------------------
  |  Branch (1459:11): [True: 0, False: 0]
  |  Branch (1459:37): [True: 0, False: 0]
  ------------------
 1460|      0|    if(verifyconnect(ctx->sock, &ctx->sockerr)) {
  ------------------
  |  Branch (1460:8): [True: 0, False: 0]
  ------------------
 1461|       |      /* we are connected with TCP, awesome! */
 1462|      0|      ctx->connected_at = *Curl_pgrs_now(data);
 1463|      0|      set_local_ip(cf, data);
 1464|      0|      *done = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1465|      0|      cf->connected = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1466|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1467|      0|      return CURLE_OK;
 1468|      0|    }
 1469|      0|  }
 1470|      0|  else if(rc & CURL_CSELECT_ERR) {
  ------------------
  |  |  292|      0|#define CURL_CSELECT_ERR  0x04
  ------------------
  |  Branch (1470:11): [True: 0, False: 0]
  ------------------
 1471|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1472|      0|    (void)verifyconnect(ctx->sock, &ctx->sockerr);
 1473|      0|    result = CURLE_COULDNT_CONNECT;
 1474|      0|  }
 1475|       |
 1476|    813|out:
 1477|    813|  if(result) {
  ------------------
  |  Branch (1477:6): [True: 813, False: 0]
  ------------------
 1478|    813|    VERBOSE(char buffer[STRERROR_LEN]);
  ------------------
  |  | 1617|    813|#define VERBOSE(x) x
  ------------------
 1479|    813|    set_local_ip(cf, data);
 1480|    813|    if(ctx->sockerr) {
  ------------------
  |  Branch (1480:8): [True: 0, False: 813]
  ------------------
 1481|      0|      data->state.os_errno = ctx->sockerr;
 1482|      0|      SET_SOCKERRNO(ctx->sockerr);
  ------------------
  |  | 1098|      0|#define SET_SOCKERRNO(x)  (errno = (x))
  ------------------
 1483|      0|      VERBOSE(curlx_strerror(ctx->sockerr, buffer, sizeof(buffer)));
  ------------------
  |  | 1617|      0|#define VERBOSE(x) x
  ------------------
 1484|      0|    }
 1485|    813|    else {
 1486|    813|      VERBOSE(curlx_strcopy(buffer, sizeof(buffer), STRCONST("peer closed")));
  ------------------
  |  | 1617|    813|#define VERBOSE(x) x
  ------------------
 1487|    813|    }
 1488|    813|    if(ctx->sock != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|    813|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (1488:8): [True: 0, False: 813]
  ------------------
 1489|      0|      socket_close(data, cf->conn, TRUE, ctx->sock);
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1490|      0|      ctx->sock = CURL_SOCKET_BAD;
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
 1491|      0|    }
 1492|    813|    infof(data, "connect to %s port %u from %s port %d failed: %s",
  ------------------
  |  |  143|    813|  do {                               \
  |  |  144|    813|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|    813|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 813, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 813]
  |  |  |  |  ------------------
  |  |  |  |  323|    813|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    813|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    813|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 813]
  |  |  ------------------
  ------------------
 1493|    813|          ctx->ip.remote_ip, ctx->ip.remote_port,
 1494|    813|          ctx->ip.local_ip, ctx->ip.local_port,
 1495|    813|          curlx_strerror(ctx->sockerr, buffer, sizeof(buffer)));
 1496|       |    *done = FALSE;
  ------------------
  |  | 1056|    813|#define FALSE false
  ------------------
 1497|    813|  }
 1498|    813|  return result;
 1499|      0|}
cf-socket.c:cf_socket_open:
 1193|  10.1k|{
 1194|  10.1k|  struct cf_socket_ctx *ctx = cf->ctx;
 1195|  10.1k|  int error = 0;
 1196|  10.1k|  bool isconnected = FALSE;
  ------------------
  |  | 1056|  10.1k|#define FALSE false
  ------------------
 1197|  10.1k|  CURLcode result = CURLE_COULDNT_CONNECT;
 1198|  10.1k|  bool is_tcp;
 1199|       |
 1200|  10.1k|  DEBUGASSERT(ctx->sock == CURL_SOCKET_BAD);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1200:3): [True: 0, False: 10.1k]
  |  Branch (1200:3): [True: 10.1k, False: 0]
  ------------------
 1201|  10.1k|  ctx->started_at = *Curl_pgrs_now(data);
 1202|  10.1k|#ifdef SOCK_NONBLOCK
 1203|       |  /* Do not tuck SOCK_NONBLOCK into socktype when opensocket callback is set
 1204|       |   * because we would not know how socketype is about to be used in the
 1205|       |   * callback, SOCK_NONBLOCK might get factored out before calling socket().
 1206|       |   */
 1207|  10.1k|  if(!data->set.fopensocket)
  ------------------
  |  Branch (1207:6): [True: 0, False: 10.1k]
  ------------------
 1208|      0|    ctx->addr.socktype |= SOCK_NONBLOCK;
 1209|  10.1k|#endif
 1210|  10.1k|  result = socket_open(data, &ctx->addr, &ctx->sock);
 1211|  10.1k|#ifdef SOCK_NONBLOCK
 1212|       |  /* Restore the socktype after the socket is created. */
 1213|  10.1k|  if(!data->set.fopensocket)
  ------------------
  |  Branch (1213:6): [True: 0, False: 10.1k]
  ------------------
 1214|      0|    ctx->addr.socktype &= ~SOCK_NONBLOCK;
 1215|  10.1k|#endif
 1216|  10.1k|  if(result)
  ------------------
  |  Branch (1216:6): [True: 813, False: 9.33k]
  ------------------
 1217|    813|    goto out;
 1218|       |
 1219|  9.33k|  result = set_remote_ip(cf, data);
 1220|  9.33k|  if(result)
  ------------------
  |  Branch (1220:6): [True: 0, False: 9.33k]
  ------------------
 1221|      0|    goto out;
 1222|       |
 1223|  9.33k|#ifdef USE_IPV6
 1224|  9.33k|  if(ctx->addr.family == AF_INET6) {
  ------------------
  |  Branch (1224:6): [True: 0, False: 9.33k]
  ------------------
 1225|       |#ifdef USE_WINSOCK
 1226|       |    /* Turn on support for IPv4-mapped IPv6 addresses.
 1227|       |     * Linux kernel, NetBSD, FreeBSD, Darwin, lwIP: default is off;
 1228|       |     * Windows Vista and later: default is on;
 1229|       |     * DragonFly BSD: acts like off, and dummy setting;
 1230|       |     * OpenBSD and earlier Windows: unsupported.
 1231|       |     * Linux: controlled by /proc/sys/net/ipv6/bindv6only.
 1232|       |     */
 1233|       |    int on = 0;
 1234|       |    (void)setsockopt(ctx->sock, IPPROTO_IPV6, IPV6_V6ONLY,
 1235|       |                     (void *)&on, sizeof(on));
 1236|       |#endif
 1237|      0|#ifdef HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
 1238|      0|    {
 1239|      0|      struct sockaddr_in6 *sa6 = (void *)&ctx->addr.curl_sa_addr;
  ------------------
  |  |   35|      0|#define curl_sa_addr    addr.sa
  ------------------
 1240|      0|      if(sa6->sin6_scope_id)
  ------------------
  |  Branch (1240:10): [True: 0, False: 0]
  ------------------
 1241|      0|        infof(data, "  Trying [%s]:%d scope_id=%lu...",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1242|      0|              ctx->ip.remote_ip, ctx->ip.remote_port,
 1243|      0|              (unsigned long)sa6->sin6_scope_id);
 1244|      0|      else
 1245|      0|#endif
 1246|      0|        infof(data, "  Trying [%s]:%d...",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1247|      0|              ctx->ip.remote_ip, ctx->ip.remote_port);
 1248|      0|#ifdef HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
 1249|      0|    }
 1250|      0|#endif
 1251|      0|  }
 1252|  9.33k|  else
 1253|  9.33k|#endif
 1254|  9.33k|    infof(data, "  Trying %s:%d...", ctx->ip.remote_ip, ctx->ip.remote_port);
  ------------------
  |  |  143|  9.33k|  do {                               \
  |  |  144|  9.33k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|  9.33k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 9.33k, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 9.33k]
  |  |  |  |  ------------------
  |  |  |  |  323|  9.33k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  9.33k|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|  9.33k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 9.33k]
  |  |  ------------------
  ------------------
 1255|       |
 1256|  9.33k|#ifdef USE_IPV6
 1257|  9.33k|  is_tcp = (ctx->addr.family == AF_INET ||
  ------------------
  |  Branch (1257:13): [True: 9.33k, False: 0]
  ------------------
 1258|      0|            ctx->addr.family == AF_INET6) &&
  ------------------
  |  Branch (1258:13): [True: 0, False: 0]
  ------------------
 1259|  9.33k|    cf_socktype(ctx->addr.socktype) == SOCK_STREAM;
  ------------------
  |  Branch (1259:5): [True: 9.33k, False: 0]
  ------------------
 1260|       |#else
 1261|       |  is_tcp = (ctx->addr.family == AF_INET) &&
 1262|       |    cf_socktype(ctx->addr.socktype) == SOCK_STREAM;
 1263|       |#endif
 1264|  9.33k|  if(is_tcp) {
  ------------------
  |  Branch (1264:6): [True: 9.33k, False: 0]
  ------------------
 1265|  9.33k|    if(data->set.tcp_nodelay)
  ------------------
  |  Branch (1265:8): [True: 9.33k, False: 0]
  ------------------
 1266|  9.33k|      tcpnodelay(cf, data, ctx->sock);
 1267|       |
 1268|  9.33k|    if(data->set.tcp_keepalive)
  ------------------
  |  Branch (1268:8): [True: 0, False: 9.33k]
  ------------------
 1269|      0|      tcpkeepalive(cf, data, ctx->sock);
 1270|       |
 1271|  9.33k|    tcplocalhost(cf, ctx->sock);
 1272|  9.33k|  }
 1273|       |
 1274|  9.33k|  if(data->set.fsockopt) {
  ------------------
  |  Branch (1274:6): [True: 9.33k, False: 0]
  ------------------
 1275|       |    /* activate callback for setting socket options */
 1276|  9.33k|    struct Curl_mapi_guard guard;
 1277|  9.33k|    CURL_CBAPI_START(&guard, data, easy_fsockopt);
  ------------------
  |  |  200|  9.33k|  Curl_cbapi_enter((g), (d), NULL, CURL_CBAPI_FN_##fn)
  ------------------
 1278|  9.33k|    error = data->set.fsockopt(data->set.sockopt_client,
 1279|  9.33k|                               ctx->sock,
 1280|  9.33k|                               CURLSOCKTYPE_IPCXN);
 1281|  9.33k|    CURL_CBAPI_END(&guard);
  ------------------
  |  |  204|  9.33k|  Curl_cbapi_leave(g)
  ------------------
 1282|       |
 1283|  9.33k|    if(error == CURL_SOCKOPT_ALREADY_CONNECTED)
  ------------------
  |  |  421|  9.33k|#define CURL_SOCKOPT_ALREADY_CONNECTED 2
  ------------------
  |  Branch (1283:8): [True: 9.33k, False: 0]
  ------------------
 1284|  9.33k|      isconnected = TRUE;
  ------------------
  |  | 1053|  9.33k|#define TRUE true
  ------------------
 1285|      0|    else if(error) {
  ------------------
  |  Branch (1285:13): [True: 0, False: 0]
  ------------------
 1286|      0|      result = CURLE_ABORTED_BY_CALLBACK;
 1287|      0|      goto out;
 1288|      0|    }
 1289|  9.33k|  }
 1290|       |
 1291|  9.33k|#ifndef CURL_DISABLE_BINDLOCAL
 1292|       |  /* possibly bind the local end to an IP, interface or port */
 1293|  9.33k|  if(ctx->addr.family == AF_INET
  ------------------
  |  Branch (1293:6): [True: 9.33k, False: 0]
  ------------------
 1294|      0|#ifdef USE_IPV6
 1295|      0|     || ctx->addr.family == AF_INET6
  ------------------
  |  Branch (1295:9): [True: 0, False: 0]
  ------------------
 1296|  9.33k|#endif
 1297|  9.33k|    ) {
 1298|  9.33k|    result = bindlocal(data, cf->conn, ctx->sock, ctx->addr.family,
 1299|  9.33k|                       Curl_ipv6_scope(&ctx->addr.curl_sa_addr),
  ------------------
  |  |   35|  9.33k|#define curl_sa_addr    addr.sa
  ------------------
 1300|  9.33k|                       ctx->transport);
 1301|  9.33k|    if(result) {
  ------------------
  |  Branch (1301:8): [True: 0, False: 9.33k]
  ------------------
 1302|      0|      if(result == CURLE_UNSUPPORTED_PROTOCOL) {
  ------------------
  |  Branch (1302:10): [True: 0, False: 0]
  ------------------
 1303|       |        /* The address family is not supported on this interface.
 1304|       |           We can continue trying addresses */
 1305|      0|        result = CURLE_COULDNT_CONNECT;
 1306|      0|      }
 1307|      0|      goto out;
 1308|      0|    }
 1309|  9.33k|  }
 1310|  9.33k|#endif
 1311|       |
 1312|       |#ifndef SOCK_NONBLOCK
 1313|       |  /* Set socket non-blocking, must be a non-blocking socket for
 1314|       |   * a non-blocking connect. */
 1315|       |  error = curlx_nonblock(ctx->sock, TRUE);
 1316|       |  if(error < 0) {
 1317|       |    result = CURLE_UNSUPPORTED_PROTOCOL;
 1318|       |    ctx->sockerr = SOCKERRNO;
 1319|       |    goto out;
 1320|       |  }
 1321|       |#else
 1322|  9.33k|  if(data->set.fopensocket) {
  ------------------
  |  Branch (1322:6): [True: 9.33k, False: 0]
  ------------------
 1323|       |    /* Set socket non-blocking, must be a non-blocking socket for
 1324|       |     * a non-blocking connect. */
 1325|  9.33k|    error = curlx_nonblock(ctx->sock, TRUE);
  ------------------
  |  | 1053|  9.33k|#define TRUE true
  ------------------
 1326|  9.33k|    if(error < 0) {
  ------------------
  |  Branch (1326:8): [True: 0, False: 9.33k]
  ------------------
 1327|      0|      result = CURLE_UNSUPPORTED_PROTOCOL;
 1328|      0|      ctx->sockerr = SOCKERRNO;
  ------------------
  |  | 1097|      0|#define SOCKERRNO         errno
  ------------------
 1329|      0|      goto out;
 1330|      0|    }
 1331|  9.33k|  }
 1332|  9.33k|#endif
 1333|  9.33k|  ctx->sock_connected = (cf_socktype(ctx->addr.socktype) != SOCK_DGRAM);
 1334|  10.1k|out:
 1335|  10.1k|  if(result) {
  ------------------
  |  Branch (1335:6): [True: 813, False: 9.33k]
  ------------------
 1336|    813|    if(ctx->sock != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|    813|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (1336:8): [True: 0, False: 813]
  ------------------
 1337|      0|      socket_close(data, cf->conn, TRUE, ctx->sock);
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1338|      0|      ctx->sock = CURL_SOCKET_BAD;
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
 1339|      0|    }
 1340|    813|  }
 1341|  9.33k|  else if(isconnected) {
  ------------------
  |  Branch (1341:11): [True: 9.33k, False: 0]
  ------------------
 1342|  9.33k|    set_local_ip(cf, data);
 1343|  9.33k|    ctx->connected_at = *Curl_pgrs_now(data);
 1344|  9.33k|    cf->connected = TRUE;
  ------------------
  |  | 1053|  9.33k|#define TRUE true
  ------------------
 1345|  9.33k|  }
 1346|  10.1k|  CURL_TRC_CF(data, cf, "cf_socket_open() -> %d, fd=%" FMT_SOCKET_T,
  ------------------
  |  |  153|  10.1k|  do {                                          \
  |  |  154|  10.1k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  10.1k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  20.2k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 10.1k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 10.1k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  20.2k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  10.1k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  10.1k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  10.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 10.1k]
  |  |  ------------------
  ------------------
 1347|  10.1k|              (int)result, ctx->sock);
 1348|  10.1k|  return result;
 1349|  9.33k|}
cf-socket.c:set_remote_ip:
 1111|  9.33k|{
 1112|  9.33k|  struct cf_socket_ctx *ctx = cf->ctx;
 1113|       |
 1114|       |  /* store remote address and port used in this connection attempt */
 1115|  9.33k|  ctx->ip.transport = ctx->transport;
 1116|  9.33k|  if(!sockaddr2string(&ctx->addr.curl_sa_addr,
  ------------------
  |  |   35|  9.33k|#define curl_sa_addr    addr.sa
  ------------------
  |  Branch (1116:6): [True: 0, False: 9.33k]
  ------------------
 1117|  9.33k|                      (curl_socklen_t)ctx->addr.addrlen,
 1118|  9.33k|                      ctx->ip.remote_ip, &ctx->ip.remote_port)) {
 1119|      0|    char buffer[STRERROR_LEN];
 1120|       |
 1121|       |    /* using bare errno instead of SOCKERRNO is safe here, because
 1122|       |       sockaddr2string() calls curlx_inet_ntop(), and they both report failures
 1123|       |       via errno (even on Windows builds). */
 1124|      0|    ctx->sockerr = errno;
 1125|       |    /* malformed address or bug in inet_ntop, try next address */
 1126|      0|    failf(data, "curl_sa_addr inet_ntop() failed with errno %d: %s",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1127|      0|          errno, curlx_strerror(errno, buffer, sizeof(buffer)));
 1128|      0|    return CURLE_FAILED_INIT;
 1129|      0|  }
 1130|  9.33k|  return CURLE_OK;
 1131|  9.33k|}
cf-socket.c:cf_socktype:
 1136|  18.6k|{
 1137|  18.6k|#ifdef SOCK_CLOEXEC
 1138|  18.6k|  x &= ~SOCK_CLOEXEC;
 1139|  18.6k|#endif
 1140|  18.6k|#ifdef SOCK_NONBLOCK
 1141|       |  x &= ~SOCK_NONBLOCK;
 1142|  18.6k|#endif
 1143|  18.6k|  return x;
 1144|  18.6k|}
cf-socket.c:tcpnodelay:
  148|  9.33k|{
  149|  9.33k|#if defined(TCP_NODELAY) && defined(CURL_TCP_NODELAY_SUPPORTED)
  150|  9.33k|  curl_socklen_t onoff = (curl_socklen_t)1;
  151|  9.33k|  int level = IPPROTO_TCP;
  152|  9.33k|  VERBOSE(char buffer[STRERROR_LEN]);
  ------------------
  |  | 1617|  9.33k|#define VERBOSE(x) x
  ------------------
  153|       |
  154|  9.33k|  if(setsockopt(sockfd, level, TCP_NODELAY, (void *)&onoff, sizeof(onoff)) < 0)
  ------------------
  |  Branch (154:6): [True: 9.33k, False: 0]
  ------------------
  155|  9.33k|    CURL_TRC_CF(data, cf, "Could not set TCP_NODELAY: %s",
  ------------------
  |  |  153|  9.33k|  do {                                          \
  |  |  154|  9.33k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  9.33k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  18.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 9.33k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 9.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  18.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  9.33k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  9.33k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  9.33k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 9.33k]
  |  |  ------------------
  ------------------
  156|  9.33k|                curlx_strerror(SOCKERRNO, buffer, sizeof(buffer)));
  157|       |#else
  158|       |  (void)cf;
  159|       |  (void)data;
  160|       |  (void)sockfd;
  161|       |#endif
  162|  9.33k|}
cf-socket.c:bindlocal:
  640|  9.33k|{
  641|  9.33k|  struct Curl_sockaddr_storage sa;
  642|  9.33k|  struct sockaddr *sock = (struct sockaddr *)&sa;  /* bind to this address */
  643|  9.33k|  curl_socklen_t sizeof_sa = 0; /* size of the data sock points to */
  644|  9.33k|  struct sockaddr_in *si4 = (struct sockaddr_in *)&sa;
  645|  9.33k|#ifdef USE_IPV6
  646|  9.33k|  struct sockaddr_in6 *si6 = (struct sockaddr_in6 *)&sa;
  647|  9.33k|#endif
  648|       |
  649|  9.33k|  struct Curl_dns_entry *h = NULL;
  650|  9.33k|  unsigned short port = data->set.localport; /* use this port number, 0 for
  651|       |                                                "random" */
  652|       |  /* how many port numbers to try to bind to, increasing one at a time */
  653|  9.33k|  int portnum = data->set.localportrange;
  654|  9.33k|  const char *dev = data->set.str[STRING_DEVICE];
  655|  9.33k|  const char *iface_input = data->set.str[STRING_INTERFACE];
  656|  9.33k|  const char *host_input = data->set.str[STRING_BINDHOST];
  657|  9.33k|  const char *iface = iface_input ? iface_input : dev;
  ------------------
  |  Branch (657:23): [True: 0, False: 9.33k]
  ------------------
  658|  9.33k|  const char *host = host_input ? host_input : dev;
  ------------------
  |  Branch (658:22): [True: 0, False: 9.33k]
  ------------------
  659|  9.33k|  int sockerr;
  660|  9.33k|#ifdef IP_BIND_ADDRESS_NO_PORT
  661|  9.33k|  int on = 1;
  662|  9.33k|#endif
  663|       |#ifndef USE_IPV6
  664|       |  (void)scope;
  665|       |#endif
  666|       |
  667|       |  /*************************************************************
  668|       |   * Select device to bind socket to
  669|       |   *************************************************************/
  670|  9.33k|  if(!iface && !host && !port)
  ------------------
  |  Branch (670:6): [True: 9.33k, False: 0]
  |  Branch (670:16): [True: 9.33k, False: 0]
  |  Branch (670:25): [True: 9.33k, False: 0]
  ------------------
  671|       |    /* no local kind of binding was requested */
  672|  9.33k|    return CURLE_OK;
  673|      0|  else if(iface && (strlen(iface) >= 255))
  ------------------
  |  Branch (673:11): [True: 0, False: 0]
  |  Branch (673:20): [True: 0, False: 0]
  ------------------
  674|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  675|       |
  676|      0|  memset(&sa, 0, sizeof(struct Curl_sockaddr_storage));
  677|       |
  678|      0|  if(iface || host) {
  ------------------
  |  Branch (678:6): [True: 0, False: 0]
  |  Branch (678:15): [True: 0, False: 0]
  ------------------
  679|      0|    char myhost[256] = "";
  680|      0|    int done = 0; /* -1 for error, 1 for address found */
  681|      0|    if2ip_result_t if2ip_result = IF2IP_NOT_FOUND;
  682|       |
  683|      0|#ifdef SO_BINDTODEVICE
  684|      0|    if(iface) {
  ------------------
  |  Branch (684:8): [True: 0, False: 0]
  ------------------
  685|       |      /*
  686|       |       * This binds the local socket to a particular interface. This will
  687|       |       * force even requests to other local interfaces to go out the external
  688|       |       * interface. Only bind to the interface when specified as interface,
  689|       |       * not as a hostname or ip address.
  690|       |       *
  691|       |       * The interface might be a VRF, eg: vrf-blue, which means it cannot be
  692|       |       * converted to an IP address and would fail Curl_if2ip. Try to
  693|       |       * use it straight away.
  694|       |       */
  695|      0|      if(setsockopt(sockfd, SOL_SOCKET, SO_BINDTODEVICE,
  ------------------
  |  Branch (695:10): [True: 0, False: 0]
  ------------------
  696|      0|                    iface, (curl_socklen_t)strlen(iface) + 1) == 0) {
  697|       |        /* This is often "errno 1, error: Operation not permitted" if you are
  698|       |         * not running as root or another suitable privileged user. If it
  699|       |         * succeeds it means the parameter was a valid interface and not an IP
  700|       |         * address. Return immediately.
  701|       |         */
  702|      0|        if(!host_input) {
  ------------------
  |  Branch (702:12): [True: 0, False: 0]
  ------------------
  703|      0|          infof(data, "socket successfully bound to interface '%s'", iface);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  704|      0|          return CURLE_OK;
  705|      0|        }
  706|      0|      }
  707|      0|    }
  708|      0|#endif
  709|      0|    if(!host_input) {
  ------------------
  |  Branch (709:8): [True: 0, False: 0]
  ------------------
  710|       |      /* Discover IP from input device, then bind to it */
  711|      0|      if2ip_result = Curl_if2ip(af,
  712|      0|#ifdef USE_IPV6
  713|      0|                                scope, conn->scope_id,
  714|      0|#endif
  715|      0|                                iface, myhost, sizeof(myhost));
  716|      0|    }
  717|      0|    switch(if2ip_result) {
  ------------------
  |  Branch (717:12): [True: 0, False: 0]
  ------------------
  718|      0|    case IF2IP_NOT_FOUND:
  ------------------
  |  Branch (718:5): [True: 0, False: 0]
  ------------------
  719|      0|      if(iface_input && !host_input) {
  ------------------
  |  Branch (719:10): [True: 0, False: 0]
  |  Branch (719:25): [True: 0, False: 0]
  ------------------
  720|       |        /* Do not fall back to treating it as a hostname */
  721|      0|        char buffer[STRERROR_LEN];
  722|      0|        data->state.os_errno = sockerr = SOCKERRNO;
  ------------------
  |  | 1097|      0|#define SOCKERRNO         errno
  ------------------
  723|      0|        failf(data, "Could not bind to interface '%s' with errno %d: %s",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  724|      0|              iface, sockerr, curlx_strerror(sockerr, buffer, sizeof(buffer)));
  725|      0|        return CURLE_INTERFACE_FAILED;
  726|      0|      }
  727|      0|      break;
  728|      0|    case IF2IP_AF_NOT_SUPPORTED:
  ------------------
  |  Branch (728:5): [True: 0, False: 0]
  ------------------
  729|       |      /* Signal the caller to try another address family if available */
  730|      0|      return CURLE_UNSUPPORTED_PROTOCOL;
  731|      0|    case IF2IP_FOUND:
  ------------------
  |  Branch (731:5): [True: 0, False: 0]
  ------------------
  732|       |      /*
  733|       |       * We now have the numerical IP address in the 'myhost' buffer
  734|       |       */
  735|      0|      host = myhost;
  736|      0|      infof(data, "Local Interface %s is ip %s using address family %d",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  737|      0|            iface, host, af);
  738|      0|      done = 1;
  739|      0|      break;
  740|      0|    }
  741|      0|    if(!iface_input || host_input) {
  ------------------
  |  Branch (741:8): [True: 0, False: 0]
  |  Branch (741:24): [True: 0, False: 0]
  ------------------
  742|       |      /*
  743|       |       * This was not an interface, resolve the name as a hostname
  744|       |       * or IP number
  745|       |       *
  746|       |       * Temporarily force name resolution to use only the address type
  747|       |       * of the connection. The resolve functions should really be changed
  748|       |       * to take a type parameter instead.
  749|       |       */
  750|      0|      uint8_t dns_queries = (af == AF_INET) ?
  ------------------
  |  Branch (750:29): [True: 0, False: 0]
  ------------------
  751|      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)
  ------------------
  752|      0|#ifdef USE_IPV6
  753|      0|      if(af == AF_INET6)
  ------------------
  |  Branch (753:10): [True: 0, False: 0]
  ------------------
  754|      0|        dns_queries = CURL_DNSQ_AAAA;
  ------------------
  |  |   52|      0|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  755|      0|#endif
  756|       |
  757|      0|      (void)Curl_resolv_blocking(data, dns_queries, host, 80, transport, &h);
  758|      0|      if(h) {
  ------------------
  |  Branch (758:10): [True: 0, False: 0]
  ------------------
  759|      0|        int h_af = h->addr->ai_family;
  760|       |        /* convert the resolved address, sizeof myhost >= INET_ADDRSTRLEN */
  761|      0|        Curl_printable_address(h->addr, myhost, sizeof(myhost));
  762|      0|        infof(data, "Name '%s' family %d resolved to '%s' family %d",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  763|      0|              host, af, myhost, h_af);
  764|      0|        Curl_dns_entry_unlink(data, &h); /* this will NULL, potential free h */
  765|      0|        if(af != h_af) {
  ------------------
  |  Branch (765:12): [True: 0, False: 0]
  ------------------
  766|       |          /* bad IP version combo, signal the caller to try another address
  767|       |             family if available */
  768|      0|          return CURLE_UNSUPPORTED_PROTOCOL;
  769|      0|        }
  770|      0|        done = 1;
  771|      0|      }
  772|      0|      else {
  773|       |        /*
  774|       |         * provided dev was no interface (or interfaces are not supported
  775|       |         * e.g. Solaris) no ip address and no domain we fail here
  776|       |         */
  777|      0|        done = -1;
  778|      0|      }
  779|      0|    }
  780|       |
  781|      0|    if(done > 0) {
  ------------------
  |  Branch (781:8): [True: 0, False: 0]
  ------------------
  782|      0|#ifdef USE_IPV6
  783|       |      /* IPv6 address */
  784|      0|      if(af == AF_INET6) {
  ------------------
  |  Branch (784:10): [True: 0, False: 0]
  ------------------
  785|      0|#ifdef HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
  786|      0|        char *scope_ptr = strchr(myhost, '%');
  787|      0|        if(scope_ptr)
  ------------------
  |  Branch (787:12): [True: 0, False: 0]
  ------------------
  788|      0|          *(scope_ptr++) = '\0';
  789|      0|#endif
  790|      0|        if(curlx_inet_pton(AF_INET6, myhost, &si6->sin6_addr) > 0) {
  ------------------
  |  Branch (790:12): [True: 0, False: 0]
  ------------------
  791|      0|          si6->sin6_family = AF_INET6;
  792|      0|          si6->sin6_port = htons(port);
  793|      0|#ifdef HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
  794|      0|          if(scope_ptr) {
  ------------------
  |  Branch (794:14): [True: 0, False: 0]
  ------------------
  795|       |            /* The "myhost" string either comes from Curl_if2ip or from
  796|       |               Curl_printable_address. The latter returns only numeric scope
  797|       |               IDs and the former returns none at all. Making the scope ID,
  798|       |               if present, known to be numeric */
  799|      0|            curl_off_t scope_id;
  800|      0|            if(curlx_str_number((const char **)CURL_UNCONST(&scope_ptr),
  ------------------
  |  |  864|      0|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
  |  Branch (800:16): [True: 0, False: 0]
  ------------------
  801|      0|                                &scope_id, UINT_MAX))
  802|      0|              return CURLE_UNSUPPORTED_PROTOCOL;
  803|      0|            si6->sin6_scope_id = (unsigned int)scope_id;
  804|      0|          }
  805|      0|#endif
  806|      0|        }
  807|      0|        sizeof_sa = sizeof(struct sockaddr_in6);
  808|      0|      }
  809|      0|      else
  810|      0|#endif
  811|       |      /* IPv4 address */
  812|      0|      if((af == AF_INET) &&
  ------------------
  |  Branch (812:10): [True: 0, False: 0]
  ------------------
  813|      0|         (curlx_inet_pton(AF_INET, myhost, &si4->sin_addr) > 0)) {
  ------------------
  |  Branch (813:10): [True: 0, False: 0]
  ------------------
  814|      0|        si4->sin_family = AF_INET;
  815|      0|        si4->sin_port = htons(port);
  816|      0|        sizeof_sa = sizeof(struct sockaddr_in);
  817|      0|      }
  818|      0|    }
  819|       |
  820|      0|    if(done < 1) {
  ------------------
  |  Branch (820:8): [True: 0, False: 0]
  ------------------
  821|       |      /* errorbuf is set false so failf will overwrite any message already in
  822|       |         the error buffer, so the user receives this error message instead of a
  823|       |         generic resolve error. */
  824|      0|      char buffer[STRERROR_LEN];
  825|      0|      data->state.errorbuf = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  826|      0|      data->state.os_errno = sockerr = SOCKERRNO;
  ------------------
  |  | 1097|      0|#define SOCKERRNO         errno
  ------------------
  827|      0|      failf(data, "Could not bind to '%s' with errno %d: %s", host,
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  828|      0|            sockerr, curlx_strerror(sockerr, buffer, sizeof(buffer)));
  829|      0|      return CURLE_INTERFACE_FAILED;
  830|      0|    }
  831|      0|  }
  832|      0|  else {
  833|       |    /* no device was given, prepare sa to match af's needs */
  834|      0|#ifdef USE_IPV6
  835|      0|    if(af == AF_INET6) {
  ------------------
  |  Branch (835:8): [True: 0, False: 0]
  ------------------
  836|      0|      si6->sin6_family = AF_INET6;
  837|      0|      si6->sin6_port = htons(port);
  838|      0|      sizeof_sa = sizeof(struct sockaddr_in6);
  839|      0|    }
  840|      0|    else
  841|      0|#endif
  842|      0|    if(af == AF_INET) {
  ------------------
  |  Branch (842:8): [True: 0, False: 0]
  ------------------
  843|      0|      si4->sin_family = AF_INET;
  844|      0|      si4->sin_port = htons(port);
  845|      0|      sizeof_sa = sizeof(struct sockaddr_in);
  846|      0|    }
  847|      0|  }
  848|      0|#ifdef IP_BIND_ADDRESS_NO_PORT
  849|      0|  (void)setsockopt(sockfd, SOL_IP, IP_BIND_ADDRESS_NO_PORT, &on, sizeof(on));
  850|      0|#endif
  851|      0|  for(;;) {
  852|      0|    if(bind(sockfd, sock, sizeof_sa) >= 0) {
  ------------------
  |  Branch (852:8): [True: 0, False: 0]
  ------------------
  853|       |      /* we succeeded to bind */
  854|      0|      infof(data, "Local port: %hu", port);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  855|      0|      conn->bits.bound = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  856|      0|      return CURLE_OK;
  857|      0|    }
  858|       |
  859|      0|    if(--portnum > 0) {
  ------------------
  |  Branch (859:8): [True: 0, False: 0]
  ------------------
  860|      0|      port++; /* try next port */
  861|      0|      if(port == 0)
  ------------------
  |  Branch (861:10): [True: 0, False: 0]
  ------------------
  862|      0|        break;
  863|      0|      infof(data, "Bind to local port %d failed, trying next", port - 1);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  864|       |      /* We reuse/clobber the port variable here below */
  865|      0|      if(sock->sa_family == AF_INET)
  ------------------
  |  Branch (865:10): [True: 0, False: 0]
  ------------------
  866|      0|        si4->sin_port = htons(port);
  867|      0|#ifdef USE_IPV6
  868|      0|      else
  869|      0|        si6->sin6_port = htons(port);
  870|      0|#endif
  871|      0|    }
  872|      0|    else
  873|      0|      break;
  874|      0|  }
  875|      0|  {
  876|      0|    char buffer[STRERROR_LEN];
  877|      0|    data->state.os_errno = sockerr = SOCKERRNO;
  ------------------
  |  | 1097|      0|#define SOCKERRNO         errno
  ------------------
  878|      0|    failf(data, "bind failed with errno %d: %s",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  879|      0|          sockerr, curlx_strerror(sockerr, buffer, sizeof(buffer)));
  880|      0|  }
  881|       |
  882|      0|  return CURLE_INTERFACE_FAILED;
  883|      0|}
cf-socket.c:cf_socket_shutdown:
 1042|  3.30k|{
 1043|  3.30k|  if(cf->connected) {
  ------------------
  |  Branch (1043:6): [True: 3.30k, False: 0]
  ------------------
 1044|  3.30k|    struct cf_socket_ctx *ctx = cf->ctx;
 1045|       |
 1046|  3.30k|    CURL_TRC_CF(data, cf, "cf_socket_shutdown, fd=%" FMT_SOCKET_T, ctx->sock);
  ------------------
  |  |  153|  3.30k|  do {                                          \
  |  |  154|  3.30k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  3.30k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  6.60k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 3.30k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 3.30k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  6.60k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  3.30k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  3.30k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  3.30k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 3.30k]
  |  |  ------------------
  ------------------
 1047|       |    /* On TCP, and when the socket looks well and non-blocking mode
 1048|       |     * can be enabled, receive dangling bytes before close to avoid
 1049|       |     * entering RST states unnecessarily. */
 1050|  3.30k|    if(ctx->sock != CURL_SOCKET_BAD &&
  ------------------
  |  |  145|  6.60k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (1050:8): [True: 3.30k, False: 0]
  ------------------
 1051|  3.30k|       ctx->transport == TRNSPRT_TCP &&
  ------------------
  |  |  237|  6.60k|#define TRNSPRT_TCP  3
  ------------------
  |  Branch (1051:8): [True: 3.30k, False: 0]
  ------------------
 1052|  3.30k|       (curlx_nonblock(ctx->sock, TRUE) >= 0)) {
  ------------------
  |  | 1053|  3.30k|#define TRUE true
  ------------------
  |  Branch (1052:8): [True: 3.30k, False: 0]
  ------------------
 1053|  3.30k|      unsigned char buf[1024];
 1054|  3.30k|      (void)sread(ctx->sock, buf, sizeof(buf));
  ------------------
  |  |  952|  3.30k|#define sread(x, y, z) (ssize_t)recv((RECV_TYPE_ARG1)(x), \
  |  |  953|  3.30k|                                     (RECV_TYPE_ARG2)(y), \
  |  |  954|  3.30k|                                     (RECV_TYPE_ARG3)(z), \
  |  |  955|  3.30k|                                     (RECV_TYPE_ARG4)(0))
  ------------------
 1055|  3.30k|    }
 1056|  3.30k|  }
 1057|       |  *done = TRUE;
  ------------------
  |  | 1053|  3.30k|#define TRUE true
  ------------------
 1058|  3.30k|  return CURLE_OK;
 1059|  3.30k|}
cf-socket.c:cf_socket_adjust_pollset:
 1504|   138k|{
 1505|   138k|  struct cf_socket_ctx *ctx = cf->ctx;
 1506|   138k|  CURLcode result = CURLE_OK;
 1507|       |
 1508|   138k|  if(ctx->sock != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|   138k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (1508:6): [True: 138k, False: 0]
  ------------------
 1509|       |    /* A listening socket filter needs to be connected before the accept
 1510|       |     * for some weird FTP interaction. This should be rewritten, so that
 1511|       |     * FTP no longer does the socket checks and accept calls and delegates
 1512|       |     * all that to the filter. */
 1513|   138k|    if(ctx->listening) {
  ------------------
  |  Branch (1513:8): [True: 0, False: 138k]
  ------------------
 1514|      0|      result = Curl_pollset_set_in_only(data, ps, ctx->sock);
  ------------------
  |  |  170|      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
  |  |  ------------------
  ------------------
 1515|      0|      CURL_TRC_CF(data, cf, "adjust_pollset, listening, POLLIN fd=%"
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1516|      0|                  FMT_SOCKET_T, ctx->sock);
 1517|      0|    }
 1518|   138k|    else if(!cf->connected) {
  ------------------
  |  Branch (1518:13): [True: 0, False: 138k]
  ------------------
 1519|      0|      result = Curl_pollset_set_out_only(data, ps, ctx->sock);
  ------------------
  |  |  172|      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
  |  |  ------------------
  ------------------
 1520|      0|      CURL_TRC_CF(data, cf, "adjust_pollset, !connected, POLLOUT fd=%"
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1521|      0|                  FMT_SOCKET_T, ctx->sock);
 1522|      0|    }
 1523|   138k|    else if(!ctx->active) {
  ------------------
  |  Branch (1523:13): [True: 6.51k, False: 132k]
  ------------------
 1524|  6.51k|      result = Curl_pollset_add_in(data, ps, ctx->sock);
  ------------------
  |  |  160|  6.51k|  Curl_pollset_change(data, ps, sock, CURL_POLL_IN, 0)
  |  |  ------------------
  |  |  |  |  283|  6.51k|#define CURL_POLL_IN     1
  |  |  ------------------
  ------------------
 1525|  6.51k|      CURL_TRC_CF(data, cf, "adjust_pollset, !active, POLLIN fd=%"
  ------------------
  |  |  153|  6.51k|  do {                                          \
  |  |  154|  6.51k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  6.51k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  13.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 6.51k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 6.51k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  13.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  6.51k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  6.51k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  6.51k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 6.51k]
  |  |  ------------------
  ------------------
 1526|  6.51k|                  FMT_SOCKET_T, ctx->sock);
 1527|  6.51k|    }
 1528|   138k|  }
 1529|   138k|  return result;
 1530|   138k|}
cf-socket.c:cf_socket_send:
 1563|  38.6k|{
 1564|  38.6k|  struct cf_socket_ctx *ctx = cf->ctx;
 1565|  38.6k|  curl_socket_t fdsave;
 1566|  38.6k|  ssize_t rv;
 1567|  38.6k|  CURLcode result = CURLE_OK;
 1568|  38.6k|  VERBOSE(size_t orig_len = len);
  ------------------
  |  | 1617|  38.6k|#define VERBOSE(x) x
  ------------------
 1569|       |
 1570|  38.6k|  (void)eos;
 1571|  38.6k|  *pnwritten = 0;
 1572|  38.6k|  fdsave = cf->conn->sock[cf->sockindex];
 1573|  38.6k|  cf->conn->sock[cf->sockindex] = ctx->sock;
 1574|       |
 1575|  38.6k|#ifdef DEBUGBUILD
 1576|       |  /* simulate network blocking/partial writes */
 1577|  38.6k|  if(ctx->wblock_percent > 0) {
  ------------------
  |  Branch (1577:6): [True: 0, False: 38.6k]
  ------------------
 1578|      0|    unsigned char c = 0;
 1579|      0|    Curl_rand_bytes(data, FALSE, &c, 1);
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1580|      0|    if(c >= ((100 - ctx->wblock_percent) * 256 / 100)) {
  ------------------
  |  Branch (1580:8): [True: 0, False: 0]
  ------------------
 1581|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1582|      0|      cf->conn->sock[cf->sockindex] = fdsave;
 1583|      0|      return CURLE_AGAIN;
 1584|      0|    }
 1585|      0|  }
 1586|  38.6k|  if(cf->cft != &Curl_cft_udp && ctx->wpartial_percent > 0 && len > 8) {
  ------------------
  |  Branch (1586:6): [True: 38.6k, False: 0]
  |  Branch (1586:34): [True: 0, False: 38.6k]
  |  Branch (1586:63): [True: 0, False: 0]
  ------------------
 1587|      0|    len = len * ctx->wpartial_percent / 100;
 1588|      0|    if(!len)
  ------------------
  |  Branch (1588:8): [True: 0, False: 0]
  ------------------
 1589|      0|      len = 1;
 1590|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1591|      0|                orig_len, len);
 1592|      0|  }
 1593|  38.6k|#endif
 1594|       |
 1595|       |#if defined(MSG_FASTOPEN) && !defined(TCP_FASTOPEN_CONNECT) /* Linux */
 1596|       |  if(cf->conn->bits.tcp_fastopen) {
 1597|       |    rv = sendto(ctx->sock, buf, len, MSG_FASTOPEN,
 1598|       |                &ctx->addr.curl_sa_addr, ctx->addr.addrlen);
 1599|       |    cf->conn->bits.tcp_fastopen = FALSE;
 1600|       |  }
 1601|       |  else
 1602|       |#endif
 1603|  38.6k|    rv = swrite(ctx->sock, buf, len);
  ------------------
  |  |  974|  38.6k|#define swrite(x, y, z) (ssize_t)send((SEND_TYPE_ARG1)(x), \
  |  |  975|  38.6k|                                      (const SEND_TYPE_ARG2)(y), \
  |  |  976|  38.6k|                                      (SEND_TYPE_ARG3)(z), \
  |  |  977|  38.6k|                                      (SEND_TYPE_ARG4)(SEND_4TH_ARG))
  |  |  ------------------
  |  |  |  |  917|  38.6k|#define SEND_4TH_ARG MSG_NOSIGNAL
  |  |  ------------------
  ------------------
 1604|       |
 1605|  38.6k|  if(!curlx_sztouz(rv, pnwritten)) {
  ------------------
  |  Branch (1605:6): [True: 14.1k, False: 24.5k]
  ------------------
 1606|  14.1k|    int sockerr = SOCKERRNO;
  ------------------
  |  | 1097|  14.1k|#define SOCKERRNO         errno
  ------------------
 1607|  14.1k|    if(SOCK_EAGAIN(sockerr)
  ------------------
  |  | 1148|  28.2k|#define SOCK_EAGAIN(e) ((e) == SOCKEWOULDBLOCK)
  |  |  ------------------
  |  |  |  | 1139|  14.1k|#define SOCKEWOULDBLOCK   EWOULDBLOCK
  |  |  ------------------
  |  |  |  Branch (1148:24): [True: 14.1k, False: 0]
  |  |  ------------------
  ------------------
 1608|      0|#ifndef USE_WINSOCK
 1609|      0|       || (sockerr == SOCKEINTR) || (sockerr == SOCKEINPROGRESS)
  ------------------
  |  | 1131|      0|#define SOCKEINTR         EINTR
  ------------------
                     || (sockerr == SOCKEINTR) || (sockerr == SOCKEINPROGRESS)
  ------------------
  |  | 1130|      0|#define SOCKEINPROGRESS   EINPROGRESS
  ------------------
  |  Branch (1609:11): [True: 0, False: 0]
  |  Branch (1609:37): [True: 0, False: 0]
  ------------------
 1610|  14.1k|#endif
 1611|  14.1k|      ) {
 1612|  14.1k|      result = CURLE_AGAIN;  /* EWOULDBLOCK */
 1613|  14.1k|    }
 1614|      0|    else {
 1615|      0|      char buffer[STRERROR_LEN];
 1616|      0|      failf(data, "Send failure: %s",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1617|      0|            curlx_strerror(sockerr, buffer, sizeof(buffer)));
 1618|      0|      data->state.os_errno = sockerr;
 1619|      0|      result = CURLE_SEND_ERROR;
 1620|      0|    }
 1621|  14.1k|  }
 1622|       |
 1623|       |#ifdef USE_WINSOCK
 1624|       |  if(!result)
 1625|       |    win_update_sndbuf_size(data, ctx);
 1626|       |#endif
 1627|       |
 1628|  38.6k|  CURL_TRC_CF(data, cf, "send(len=%zu) -> %d, %zu",
  ------------------
  |  |  153|  38.6k|  do {                                          \
  |  |  154|  38.6k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  38.6k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  77.3k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 38.6k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 38.6k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  77.3k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  38.6k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  38.6k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  38.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 38.6k]
  |  |  ------------------
  ------------------
 1629|  38.6k|              orig_len, (int)result, *pnwritten);
 1630|  38.6k|  cf->conn->sock[cf->sockindex] = fdsave;
 1631|  38.6k|  return result;
 1632|  38.6k|}
cf-socket.c:cf_socket_recv:
 1636|   166k|{
 1637|   166k|  struct cf_socket_ctx *ctx = cf->ctx;
 1638|   166k|  CURLcode result = CURLE_OK;
 1639|   166k|  ssize_t rv;
 1640|       |
 1641|   166k|  *pnread = 0;
 1642|   166k|#ifdef DEBUGBUILD
 1643|       |  /* simulate network blocking/partial reads */
 1644|   166k|  if(cf->cft != &Curl_cft_udp && ctx->rblock_percent > 0) {
  ------------------
  |  Branch (1644:6): [True: 166k, False: 0]
  |  Branch (1644:34): [True: 0, False: 166k]
  ------------------
 1645|      0|    unsigned char c = 0;
 1646|      0|    Curl_rand(data, &c, 1);
  ------------------
  |  |   33|      0|#define Curl_rand(a, b, c) Curl_rand_bytes(a, TRUE, b, c)
  |  |  ------------------
  |  |  |  | 1053|      0|#define TRUE true
  |  |  ------------------
  ------------------
 1647|      0|    if(c >= ((100 - ctx->rblock_percent) * 256 / 100)) {
  ------------------
  |  Branch (1647:8): [True: 0, False: 0]
  ------------------
 1648|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1649|      0|      return CURLE_AGAIN;
 1650|      0|    }
 1651|      0|  }
 1652|   166k|  if(cf->cft != &Curl_cft_udp && ctx->recv_max && ctx->recv_max < len) {
  ------------------
  |  Branch (1652:6): [True: 166k, False: 0]
  |  Branch (1652:34): [True: 0, False: 166k]
  |  Branch (1652:51): [True: 0, False: 0]
  ------------------
 1653|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1654|      0|                len, ctx->recv_max);
 1655|      0|    len = ctx->recv_max;
 1656|      0|  }
 1657|   166k|#endif
 1658|       |
 1659|   166k|  rv = sread(ctx->sock, buf, len);
  ------------------
  |  |  952|   166k|#define sread(x, y, z) (ssize_t)recv((RECV_TYPE_ARG1)(x), \
  |  |  953|   166k|                                     (RECV_TYPE_ARG2)(y), \
  |  |  954|   166k|                                     (RECV_TYPE_ARG3)(z), \
  |  |  955|   166k|                                     (RECV_TYPE_ARG4)(0))
  ------------------
 1660|       |
 1661|   166k|  if(!curlx_sztouz(rv, pnread)) {
  ------------------
  |  Branch (1661:6): [True: 135k, False: 30.7k]
  ------------------
 1662|   135k|    int sockerr = SOCKERRNO;
  ------------------
  |  | 1097|   135k|#define SOCKERRNO         errno
  ------------------
 1663|   135k|    if(SOCK_EAGAIN(sockerr)
  ------------------
  |  | 1148|   271k|#define SOCK_EAGAIN(e) ((e) == SOCKEWOULDBLOCK)
  |  |  ------------------
  |  |  |  | 1139|   135k|#define SOCKEWOULDBLOCK   EWOULDBLOCK
  |  |  ------------------
  |  |  |  Branch (1148:24): [True: 135k, False: 0]
  |  |  ------------------
  ------------------
 1664|      0|#ifndef USE_WINSOCK
 1665|      0|       || (sockerr == SOCKEINTR)
  ------------------
  |  | 1131|      0|#define SOCKEINTR         EINTR
  ------------------
  |  Branch (1665:11): [True: 0, False: 0]
  ------------------
 1666|   135k|#endif
 1667|   135k|      ) {
 1668|   135k|      result = CURLE_AGAIN;  /* EWOULDBLOCK */
 1669|   135k|    }
 1670|      0|    else {
 1671|      0|      char buffer[STRERROR_LEN];
 1672|      0|      failf(data, "Recv failure: %s",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1673|      0|            curlx_strerror(sockerr, buffer, sizeof(buffer)));
 1674|      0|      data->state.os_errno = sockerr;
 1675|      0|      result = CURLE_RECV_ERROR;
 1676|      0|    }
 1677|   135k|  }
 1678|       |
 1679|   166k|  CURL_TRC_CF(data, cf, "recv(len=%zu) -> %d, %zu", len, (int)result, *pnread);
  ------------------
  |  |  153|   166k|  do {                                          \
  |  |  154|   166k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|   166k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|   333k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 166k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 166k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|   333k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|   166k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|   166k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|   166k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 166k]
  |  |  ------------------
  ------------------
 1680|   166k|  if(!result && !ctx->got_first_byte) {
  ------------------
  |  Branch (1680:6): [True: 30.7k, False: 135k]
  |  Branch (1680:17): [True: 8.90k, False: 21.8k]
  ------------------
 1681|  8.90k|    ctx->first_byte_at = *Curl_pgrs_now(data);
 1682|       |    ctx->got_first_byte = TRUE;
  ------------------
  |  | 1053|  8.90k|#define TRUE true
  ------------------
 1683|  8.90k|  }
 1684|   166k|  return result;
 1685|   166k|}
cf-socket.c:cf_socket_cntrl:
 1714|  39.4k|{
 1715|  39.4k|  struct cf_socket_ctx *ctx = cf->ctx;
 1716|       |
 1717|  39.4k|  (void)arg1;
 1718|  39.4k|  (void)arg2;
 1719|  39.4k|  switch(event) {
  ------------------
  |  Branch (1719:10): [True: 13.0k, False: 26.3k]
  ------------------
 1720|  8.97k|  case CF_CTRL_CONN_INFO_UPDATE:
  ------------------
  |  |  121|  8.97k|#define CF_CTRL_CONN_INFO_UPDATE (256 + 0) /* 0          NULL     ignored */
  ------------------
  |  Branch (1720:3): [True: 8.97k, False: 30.4k]
  ------------------
 1721|  8.97k|    cf_socket_active(cf, data);
 1722|  8.97k|    cf_socket_update_data(cf, data);
 1723|  8.97k|    break;
 1724|  4.10k|  case CF_CTRL_DATA_SETUP:
  ------------------
  |  |  115|  4.10k|#define CF_CTRL_DATA_SETUP              4  /* 0          NULL     first fail */
  ------------------
  |  Branch (1724:3): [True: 4.10k, False: 35.3k]
  ------------------
 1725|  4.10k|    cf_socket_update_data(cf, data);
 1726|  4.10k|    break;
 1727|      0|  case CF_CTRL_FORGET_SOCKET:
  ------------------
  |  |  122|      0|#define CF_CTRL_FORGET_SOCKET    (256 + 1) /* 0          NULL     ignored */
  ------------------
  |  Branch (1727:3): [True: 0, False: 39.4k]
  ------------------
 1728|      0|    ctx->sock = CURL_SOCKET_BAD;
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
 1729|      0|    break;
 1730|  39.4k|  }
 1731|  39.4k|  return CURLE_OK;
 1732|  39.4k|}
cf-socket.c:cf_socket_active:
 1698|  8.97k|{
 1699|  8.97k|  struct cf_socket_ctx *ctx = cf->ctx;
 1700|       |
 1701|       |  /* use this socket from now on */
 1702|  8.97k|  cf->conn->sock[cf->sockindex] = ctx->sock;
 1703|  8.97k|  set_local_ip(cf, data);
 1704|  8.97k|#ifdef USE_IPV6
 1705|  8.97k|  if(cf->sockindex == FIRSTSOCKET)
  ------------------
  |  |  233|  8.97k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (1705:6): [True: 8.97k, False: 0]
  ------------------
 1706|  8.97k|    cf->conn->bits.ipv6 = (ctx->addr.family == AF_INET6);
 1707|  8.97k|#endif
 1708|       |  ctx->active = TRUE;
  ------------------
  |  | 1053|  8.97k|#define TRUE true
  ------------------
 1709|  8.97k|}
cf-socket.c:cf_socket_update_data:
 1689|  13.0k|{
 1690|       |  /* Update the IP info held in the transfer, if we have that. */
 1691|  13.0k|  if(cf->connected && (cf->sockindex == FIRSTSOCKET)) {
  ------------------
  |  |  233|  13.0k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (1691:6): [True: 13.0k, False: 0]
  |  Branch (1691:23): [True: 13.0k, False: 0]
  ------------------
 1692|  13.0k|    struct cf_socket_ctx *ctx = cf->ctx;
 1693|  13.0k|    data->info.primary = ctx->ip;
 1694|  13.0k|  }
 1695|  13.0k|}
cf-socket.c:cf_socket_conn_is_alive:
 1737|    897|{
 1738|    897|  struct cf_socket_ctx *ctx = cf->ctx;
 1739|    897|  struct pollfd pfd[1];
 1740|    897|  int r;
 1741|       |
 1742|    897|  *input_pending = FALSE;
  ------------------
  |  | 1056|    897|#define FALSE false
  ------------------
 1743|       |
 1744|    897|  if(!ctx || ctx->sock == CURL_SOCKET_BAD)
  ------------------
  |  |  145|    897|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (1744:6): [True: 0, False: 897]
  |  Branch (1744:14): [True: 0, False: 897]
  ------------------
 1745|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1746|       |
 1747|       |  /* Check with 0 timeout if there are any events pending on the socket */
 1748|    897|  pfd[0].fd = ctx->sock;
 1749|    897|  pfd[0].events = POLLRDNORM | POLLIN | POLLRDBAND | POLLPRI;
 1750|    897|  pfd[0].revents = 0;
 1751|       |
 1752|    897|  r = Curl_poll(pfd, 1, 0);
 1753|    897|  if(r < 0) {
  ------------------
  |  Branch (1753:6): [True: 0, False: 897]
  ------------------
 1754|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1755|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1756|      0|  }
 1757|    897|  else if(r == 0) {
  ------------------
  |  Branch (1757:11): [True: 772, False: 125]
  ------------------
 1758|    772|    CURL_TRC_CF(data, cf, "is_alive: poll timeout, assume alive");
  ------------------
  |  |  153|    772|  do {                                          \
  |  |  154|    772|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|    772|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  1.54k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 772, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 772]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  1.54k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    772|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    772|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    772|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 772]
  |  |  ------------------
  ------------------
 1759|    772|    return TRUE;
  ------------------
  |  | 1053|    772|#define TRUE true
  ------------------
 1760|    772|  }
 1761|    125|  else if(pfd[0].revents & (POLLERR | POLLHUP | POLLPRI | POLLNVAL)) {
  ------------------
  |  Branch (1761:11): [True: 0, False: 125]
  ------------------
 1762|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1763|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1764|      0|  }
 1765|       |
 1766|    125|  CURL_TRC_CF(data, cf, "is_alive: valid events, looks alive");
  ------------------
  |  |  153|    125|  do {                                          \
  |  |  154|    125|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|    125|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    250|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 125, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 125]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    250|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    125|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    125|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    125|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 125]
  |  |  ------------------
  ------------------
 1767|    125|  *input_pending = TRUE;
  ------------------
  |  | 1053|    125|#define TRUE true
  ------------------
 1768|       |  return TRUE;
  ------------------
  |  | 1053|    125|#define TRUE true
  ------------------
 1769|    897|}
cf-socket.c:cf_socket_query:
 1774|   325k|{
 1775|   325k|  struct cf_socket_ctx *ctx = cf->ctx;
 1776|       |
 1777|   325k|  switch(query) {
 1778|  22.9k|  case CF_QUERY_SOCKET:
  ------------------
  |  |  163|  22.9k|#define CF_QUERY_SOCKET             3  /* -          curl_socket_t */
  ------------------
  |  Branch (1778:3): [True: 22.9k, False: 302k]
  ------------------
 1779|  22.9k|    DEBUGASSERT(pres2);
  ------------------
  |  | 1083|  22.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1779:5): [True: 0, False: 22.9k]
  |  Branch (1779:5): [True: 22.9k, False: 0]
  ------------------
 1780|  22.9k|    *((curl_socket_t *)pres2) = ctx->sock;
 1781|  22.9k|    return CURLE_OK;
 1782|      0|  case CF_QUERY_TRANSPORT:
  ------------------
  |  |  176|      0|#define CF_QUERY_TRANSPORT         14  /* TRNSPRT_*  - * */
  ------------------
  |  Branch (1782:3): [True: 0, False: 325k]
  ------------------
 1783|      0|    DEBUGASSERT(pres1);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1783:5): [True: 0, False: 0]
  |  Branch (1783:5): [True: 0, False: 0]
  ------------------
 1784|      0|    *pres1 = ctx->transport;
 1785|      0|    return CURLE_OK;
 1786|      0|  case CF_QUERY_REMOTE_ADDR:
  ------------------
  |  |  172|      0|#define CF_QUERY_REMOTE_ADDR       10  /* -          `Curl_sockaddr_ex *` */
  ------------------
  |  Branch (1786:3): [True: 0, False: 325k]
  ------------------
 1787|      0|    DEBUGASSERT(pres2);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1787:5): [True: 0, False: 0]
  |  Branch (1787:5): [True: 0, False: 0]
  ------------------
 1788|      0|    *((const struct Curl_sockaddr_ex **)pres2) = cf->connected ?
  ------------------
  |  Branch (1788:50): [True: 0, False: 0]
  ------------------
 1789|      0|                                                 &ctx->addr : NULL;
 1790|      0|    return CURLE_OK;
 1791|      0|  case CF_QUERY_CONNECT_REPLY_MS:
  ------------------
  |  |  162|      0|#define CF_QUERY_CONNECT_REPLY_MS   2  /* number     -        */
  ------------------
  |  Branch (1791:3): [True: 0, False: 325k]
  ------------------
 1792|      0|    if(ctx->got_first_byte) {
  ------------------
  |  Branch (1792:8): [True: 0, False: 0]
  ------------------
 1793|      0|      timediff_t ms = curlx_ptimediff_ms(&ctx->first_byte_at,
 1794|      0|                                         &ctx->started_at);
 1795|      0|      *pres1 = (ms < INT_MAX) ? (int)ms : INT_MAX;
  ------------------
  |  Branch (1795:16): [True: 0, False: 0]
  ------------------
 1796|      0|    }
 1797|      0|    else
 1798|      0|      *pres1 = -1;
 1799|      0|    return CURLE_OK;
 1800|  8.99k|  case CF_QUERY_TIMER_CONNECT: {
  ------------------
  |  |  164|  8.99k|#define CF_QUERY_TIMER_CONNECT      4  /* -          struct curltime */
  ------------------
  |  Branch (1800:3): [True: 8.99k, False: 316k]
  ------------------
 1801|  8.99k|    struct curltime *when = pres2;
 1802|  8.99k|    switch(ctx->transport) {
 1803|      0|    case TRNSPRT_UDP:
  ------------------
  |  |  238|      0|#define TRNSPRT_UDP  4
  ------------------
  |  Branch (1803:5): [True: 0, False: 8.99k]
  ------------------
 1804|      0|    case TRNSPRT_QUIC:
  ------------------
  |  |  239|      0|#define TRNSPRT_QUIC 5
  ------------------
  |  Branch (1804:5): [True: 0, False: 8.99k]
  ------------------
 1805|       |      /* Since UDP connected sockets work different from TCP, we use the
 1806|       |       * time of the first byte from the peer as the "connect" time. */
 1807|      0|      if(ctx->got_first_byte) {
  ------------------
  |  Branch (1807:10): [True: 0, False: 0]
  ------------------
 1808|      0|        *when = ctx->first_byte_at;
 1809|      0|        break;
 1810|      0|      }
 1811|      0|      FALLTHROUGH();
  ------------------
  |  |  823|      0|#  define FALLTHROUGH()  __attribute__((fallthrough))
  ------------------
 1812|  8.99k|    default:
  ------------------
  |  Branch (1812:5): [True: 8.99k, False: 0]
  ------------------
 1813|  8.99k|      *when = ctx->connected_at;
 1814|  8.99k|      break;
 1815|  8.99k|    }
 1816|  8.99k|    return CURLE_OK;
 1817|  8.99k|  }
 1818|      0|  case CF_QUERY_IP_INFO:
  ------------------
  |  |  168|      0|#define CF_QUERY_IP_INFO            8  /* TRUE/FALSE struct ip_quadruple */
  ------------------
  |  Branch (1818:3): [True: 0, False: 325k]
  ------------------
 1819|      0|#ifdef USE_IPV6
 1820|      0|    *pres1 = (ctx->addr.family == AF_INET6);
 1821|       |#else
 1822|       |    *pres1 = FALSE;
 1823|       |#endif
 1824|      0|    *(struct ip_quadruple *)pres2 = ctx->ip;
 1825|      0|    return CURLE_OK;
 1826|   293k|  default:
  ------------------
  |  Branch (1826:3): [True: 293k, False: 31.9k]
  ------------------
 1827|   293k|    break;
 1828|   325k|  }
 1829|   293k|  return cf->next ?
  ------------------
  |  Branch (1829:10): [True: 0, False: 293k]
  ------------------
 1830|      0|    cf->next->cft->query(cf->next, data, query, pres1, pres2) :
 1831|   293k|    CURLE_UNKNOWN_OPTION;
 1832|   325k|}
cf-socket.c:cf_socket_ctx_init:
  992|  10.1k|{
  993|  10.1k|  memset(ctx, 0, sizeof(*ctx));
  994|  10.1k|  Curl_peer_link(&ctx->peer, peer);
  995|  10.1k|  ctx->sock = CURL_SOCKET_BAD;
  ------------------
  |  |  145|  10.1k|#define CURL_SOCKET_BAD (-1)
  ------------------
  996|  10.1k|  ctx->transport = transport;
  997|  10.1k|  ctx->addr = *addr;
  998|       |
  999|  10.1k|#ifdef DEBUGBUILD
 1000|  10.1k|  {
 1001|  10.1k|    const char *p = getenv("CURL_DBG_SOCK_WBLOCK");
 1002|  10.1k|    if(p) {
  ------------------
  |  Branch (1002:8): [True: 0, False: 10.1k]
  ------------------
 1003|      0|      curl_off_t l;
 1004|      0|      if(!curlx_str_number(&p, &l, 100))
  ------------------
  |  Branch (1004:10): [True: 0, False: 0]
  ------------------
 1005|      0|        ctx->wblock_percent = (int)l;
 1006|      0|    }
 1007|  10.1k|    p = getenv("CURL_DBG_SOCK_WPARTIAL");
 1008|  10.1k|    if(p) {
  ------------------
  |  Branch (1008:8): [True: 0, False: 10.1k]
  ------------------
 1009|      0|      curl_off_t l;
 1010|      0|      if(!curlx_str_number(&p, &l, 100))
  ------------------
  |  Branch (1010:10): [True: 0, False: 0]
  ------------------
 1011|      0|        ctx->wpartial_percent = (int)l;
 1012|      0|    }
 1013|  10.1k|    p = getenv("CURL_DBG_SOCK_RBLOCK");
 1014|  10.1k|    if(p) {
  ------------------
  |  Branch (1014:8): [True: 0, False: 10.1k]
  ------------------
 1015|      0|      curl_off_t l;
 1016|      0|      if(!curlx_str_number(&p, &l, 100))
  ------------------
  |  Branch (1016:10): [True: 0, False: 0]
  ------------------
 1017|      0|        ctx->rblock_percent = (int)l;
 1018|      0|    }
 1019|  10.1k|    p = getenv("CURL_DBG_SOCK_RMAX");
 1020|  10.1k|    if(p) {
  ------------------
  |  Branch (1020:8): [True: 0, False: 10.1k]
  ------------------
 1021|      0|      curl_off_t l;
 1022|      0|      if(!curlx_str_number(&p, &l, CURL_OFF_T_MAX))
  ------------------
  |  |  596|      0|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  |  Branch (1022:10): [True: 0, False: 0]
  ------------------
 1023|      0|        ctx->recv_max = (size_t)l;
 1024|      0|    }
 1025|  10.1k|  }
 1026|  10.1k|#endif
 1027|       |
 1028|  10.1k|  return CURLE_OK;
 1029|  10.1k|}
cf-socket.c:cf_socket_ctx_free:
 1032|  10.1k|{
 1033|  10.1k|  if(ctx) {
  ------------------
  |  Branch (1033:6): [True: 10.1k, False: 0]
  ------------------
 1034|  10.1k|    Curl_peer_unlink(&ctx->peer);
 1035|  10.1k|    curlx_free(ctx);
  ------------------
  |  | 1482|  10.1k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1036|  10.1k|  }
 1037|  10.1k|}
cf-socket.c:set_local_ip:
 1079|  19.1k|{
 1080|  19.1k|  struct cf_socket_ctx *ctx = cf->ctx;
 1081|  19.1k|  ctx->ip.local_ip[0] = 0;
 1082|  19.1k|  ctx->ip.local_port = 0;
 1083|       |
 1084|  19.1k|#ifdef HAVE_GETSOCKNAME
 1085|  19.1k|  if((ctx->sock != CURL_SOCKET_BAD) &&
  ------------------
  |  |  145|  19.1k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (1085:6): [True: 18.3k, False: 813]
  ------------------
 1086|  18.3k|     !(data->conn->scheme->protocol & CURLPROTO_TFTP)) {
  ------------------
  |  | 1097|  18.3k|#define CURLPROTO_TFTP    (1L << 11)
  ------------------
  |  Branch (1086:6): [True: 18.3k, False: 0]
  ------------------
 1087|       |    /* TFTP does not connect, so it cannot get the IP like this */
 1088|  18.3k|    struct Curl_sockaddr_storage ssloc;
 1089|  18.3k|    curl_socklen_t slen = sizeof(struct Curl_sockaddr_storage);
 1090|  18.3k|    VERBOSE(char buffer[STRERROR_LEN]);
  ------------------
  |  | 1617|  18.3k|#define VERBOSE(x) x
  ------------------
 1091|       |
 1092|  18.3k|    memset(&ssloc, 0, sizeof(ssloc));
 1093|  18.3k|    if(getsockname(ctx->sock, (struct sockaddr *)&ssloc, &slen)) {
  ------------------
  |  Branch (1093:8): [True: 0, False: 18.3k]
  ------------------
 1094|      0|      VERBOSE(int sockerr = SOCKERRNO);
  ------------------
  |  | 1617|      0|#define VERBOSE(x) x
  ------------------
 1095|      0|      infof(data, "getsockname() failed with errno %d: %s",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1096|      0|            sockerr, curlx_strerror(sockerr, buffer, sizeof(buffer)));
 1097|      0|    }
 1098|  18.3k|    else if(!sockaddr2string((struct sockaddr *)&ssloc, slen,
  ------------------
  |  Branch (1098:13): [True: 0, False: 18.3k]
  ------------------
 1099|  18.3k|                             ctx->ip.local_ip, &ctx->ip.local_port)) {
 1100|      0|      infof(data, "ssloc inet_ntop() failed with errno %d: %s",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1101|      0|            errno, curlx_strerror(errno, buffer, sizeof(buffer)));
 1102|      0|    }
 1103|  18.3k|  }
 1104|       |#else
 1105|       |  (void)data;
 1106|       |#endif
 1107|  19.1k|}

Curl_cf_def_data_pending:
   79|   252k|{
   80|   252k|  return cf->next ?
  ------------------
  |  Branch (80:10): [True: 0, False: 252k]
  ------------------
   81|      0|    cf->next->cft->has_data_pending(cf->next, data) : FALSE;
  ------------------
  |  | 1056|   252k|#define FALSE false
  ------------------
   82|   252k|}
Curl_cf_def_send:
   87|    342|{
   88|    342|  if(cf->next)
  ------------------
  |  Branch (88:6): [True: 342, False: 0]
  ------------------
   89|    342|    return cf->next->cft->do_send(cf->next, data, buf, len, eos, pnwritten);
   90|      0|  *pnwritten = 0;
   91|      0|  return CURLE_RECV_ERROR;
   92|    342|}
Curl_cf_def_recv:
   96|  6.51k|{
   97|  6.51k|  if(cf->next)
  ------------------
  |  Branch (97:6): [True: 6.51k, False: 0]
  ------------------
   98|  6.51k|    return cf->next->cft->do_recv(cf->next, data, buf, len, pnread);
   99|      0|  *pnread = 0;
  100|      0|  return CURLE_SEND_ERROR;
  101|  6.51k|}
Curl_cf_def_query:
  123|  84.8k|{
  124|  84.8k|  return cf->next ?
  ------------------
  |  Branch (124:10): [True: 74.7k, False: 10.1k]
  ------------------
  125|  74.7k|    cf->next->cft->query(cf->next, data, query, pres1, pres2) :
  126|  84.8k|    CURLE_UNKNOWN_OPTION;
  127|  84.8k|}
Curl_conn_trc_filters:
  132|  45.5k|{
  133|  45.5k|  if(CURL_TRC_M_is_verbose(data) && data->conn) {
  ------------------
  |  |  135|  45.5k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  ------------------
  |  |  |  |  329|  91.1k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  91.1k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 45.5k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 45.5k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  91.1k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  91.1k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (133:37): [True: 0, False: 0]
  ------------------
  134|      0|    struct Curl_cfilter *cf = data->conn->cfilter[sockindex];
  135|       |
  136|      0|    if(cf) {
  ------------------
  |  Branch (136:8): [True: 0, False: 0]
  ------------------
  137|      0|      char msg[256], *buf;
  138|      0|      int blen, n;
  139|       |
  140|      0|      buf = msg;
  141|      0|      blen = sizeof(msg) - 1;
  142|      0|      n = curl_msnprintf(buf, blen, "%s [%d]", info, sockindex);
  143|      0|      buf += n;
  144|      0|      blen -= n;
  145|      0|      for(; cf && blen; cf = cf->next) {
  ------------------
  |  Branch (145:13): [True: 0, False: 0]
  |  Branch (145:19): [True: 0, False: 0]
  ------------------
  146|      0|        n = curl_msnprintf(buf, blen, "[%s%s]",
  147|      0|                           cf->connected ? "" : "!", cf->cft->name);
  ------------------
  |  Branch (147:28): [True: 0, False: 0]
  ------------------
  148|      0|        buf += n;
  149|      0|        blen -= n;
  150|      0|      }
  151|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330: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]
  |  |  ------------------
  ------------------
  152|      0|    }
  153|      0|    else
  154|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  155|      0|  }
  156|  45.5k|}
Curl_conn_cf_discard_chain:
  161|  49.8k|{
  162|  49.8k|  struct Curl_cfilter *cfn, *cf = *pcf;
  163|       |
  164|  49.8k|  if(cf) {
  ------------------
  |  Branch (164:6): [True: 10.9k, False: 38.8k]
  ------------------
  165|  10.9k|    *pcf = NULL;
  166|  29.3k|    while(cf) {
  ------------------
  |  Branch (166:11): [True: 18.4k, False: 10.9k]
  ------------------
  167|  18.4k|      cfn = cf->next;
  168|       |      /* prevent destroying filter to mess with its sub-chain, since
  169|       |       * we have the reference now and will call destroy on it.
  170|       |       */
  171|  18.4k|      cf->next = NULL;
  172|  18.4k|      cf->cft->destroy(cf, data);
  173|  18.4k|      curlx_free(cf);
  ------------------
  |  | 1482|  18.4k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  174|  18.4k|      cf = cfn;
  175|  18.4k|    }
  176|  10.9k|  }
  177|  49.8k|}
Curl_conn_cf_discard_all:
  181|  48.9k|{
  182|  48.9k|  struct curltime *pt = &conn->shutdown.start[sockindex];
  183|  48.9k|  memset(pt, 0, sizeof(*pt));
  184|  48.9k|  Curl_conn_cf_discard_chain(&conn->cfilter[sockindex], data);
  185|  48.9k|}
Curl_conn_shutdown:
  188|  3.35k|{
  189|  3.35k|  struct Curl_cfilter *cf;
  190|  3.35k|  CURLcode result = CURLE_OK;
  191|  3.35k|  timediff_t timeout_ms;
  192|       |
  193|  3.35k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1083|  3.35k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (193:3): [True: 0, False: 3.35k]
  |  Branch (193:3): [True: 3.35k, False: 0]
  ------------------
  194|       |
  195|  3.35k|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  310|  3.35k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (310:36): [True: 3.35k, False: 0]
  |  |  |  Branch (310:50): [True: 3.35k, False: 0]
  |  |  ------------------
  ------------------
  196|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  197|       |
  198|       |  /* Get the first connected filter that is not shut down already. */
  199|  3.35k|  cf = data->conn->cfilter[sockindex];
  200|  3.35k|  while(cf && (!cf->connected || cf->shutdown))
  ------------------
  |  Branch (200:9): [True: 3.35k, False: 0]
  |  Branch (200:16): [True: 0, False: 3.35k]
  |  Branch (200:34): [True: 0, False: 3.35k]
  ------------------
  201|      0|    cf = cf->next;
  202|       |
  203|  3.35k|  if(!cf) {
  ------------------
  |  Branch (203:6): [True: 0, False: 3.35k]
  ------------------
  204|      0|    *done = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  205|      0|    return CURLE_OK;
  206|      0|  }
  207|       |
  208|  3.35k|  *done = FALSE;
  ------------------
  |  | 1056|  3.35k|#define FALSE false
  ------------------
  209|  3.35k|  if(!Curl_shutdown_started(data->conn, sockindex)) {
  ------------------
  |  Branch (209:6): [True: 0, False: 3.35k]
  ------------------
  210|      0|    Curl_shutdown_start(data, sockindex, 0);
  211|      0|  }
  212|  3.35k|  else {
  213|  3.35k|    timeout_ms = Curl_shutdown_timeleft(data, data->conn, sockindex);
  214|  3.35k|    if(timeout_ms < 0) {
  ------------------
  |  Branch (214:8): [True: 0, False: 3.35k]
  ------------------
  215|       |      /* info message, since this might be regarded as acceptable */
  216|      0|      infof(data, "shutdown timeout");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  217|      0|      return CURLE_OPERATION_TIMEDOUT;
  218|      0|    }
  219|  3.35k|  }
  220|       |
  221|  7.42k|  while(cf) {
  ------------------
  |  Branch (221:9): [True: 4.11k, False: 3.30k]
  ------------------
  222|  4.11k|    if(!cf->shutdown) {
  ------------------
  |  Branch (222:8): [True: 4.11k, False: 0]
  ------------------
  223|  4.11k|      bool cfdone = FALSE;
  ------------------
  |  | 1056|  4.11k|#define FALSE false
  ------------------
  224|  4.11k|      result = cf->cft->do_shutdown(cf, data, &cfdone);
  225|  4.11k|      if(result) {
  ------------------
  |  Branch (225:10): [True: 0, False: 4.11k]
  ------------------
  226|      0|        CURL_TRC_CF(data, cf, "shut down failed with %d", (int)result);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  227|      0|        return result;
  228|      0|      }
  229|  4.11k|      else if(!cfdone) {
  ------------------
  |  Branch (229:15): [True: 52, False: 4.06k]
  ------------------
  230|     52|        CURL_TRC_CF(data, cf, "shut down not done yet");
  ------------------
  |  |  153|     52|  do {                                          \
  |  |  154|     52|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|     52|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    104|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 52, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 52]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    104|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|     52|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  231|     52|        return CURLE_OK;
  232|     52|      }
  233|  4.06k|      CURL_TRC_CF(data, cf, "shut down successfully");
  ------------------
  |  |  153|  4.06k|  do {                                          \
  |  |  154|  4.06k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  4.06k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  8.13k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 4.06k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 4.06k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  8.13k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  4.06k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  4.06k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  4.06k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 4.06k]
  |  |  ------------------
  ------------------
  234|  4.06k|      cf->shutdown = TRUE;
  ------------------
  |  | 1053|  4.06k|#define TRUE true
  ------------------
  235|  4.06k|    }
  236|  4.06k|    cf = cf->next;
  237|  4.06k|  }
  238|  3.30k|  *done = (!result);
  239|  3.30k|  return result;
  240|  3.35k|}
Curl_cf_recv:
  244|   149k|{
  245|   149k|  struct Curl_cfilter *cf;
  246|       |
  247|   149k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|   149k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (247:3): [True: 0, False: 149k]
  |  Branch (247:3): [True: 149k, False: 0]
  ------------------
  248|   149k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1083|   149k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (248:3): [True: 0, False: 149k]
  |  Branch (248:3): [True: 149k, False: 0]
  ------------------
  249|   149k|  cf = data->conn->cfilter[sockindex];
  250|   149k|  while(cf && !cf->connected)
  ------------------
  |  Branch (250:9): [True: 149k, False: 0]
  |  Branch (250:15): [True: 0, False: 149k]
  ------------------
  251|      0|    cf = cf->next;
  252|   149k|  if(cf)
  ------------------
  |  Branch (252:6): [True: 149k, False: 0]
  ------------------
  253|   149k|    return cf->cft->do_recv(cf, data, buf, len, pnread);
  254|      0|  failf(data, "recv: no filter connected");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  255|      0|  DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (255:3): [Folded, False: 0]
  |  Branch (255:3): [Folded, False: 0]
  ------------------
  256|      0|  *pnread = 0;
  257|      0|  return CURLE_FAILED_INIT;
  258|      0|}
Curl_cf_send:
  263|  24.3k|{
  264|  24.3k|  struct Curl_cfilter *cf;
  265|       |
  266|  24.3k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|  24.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (266:3): [True: 0, False: 24.3k]
  |  Branch (266:3): [True: 24.3k, False: 0]
  ------------------
  267|  24.3k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1083|  24.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (267:3): [True: 0, False: 24.3k]
  |  Branch (267:3): [True: 24.3k, False: 0]
  ------------------
  268|  24.3k|  cf = data->conn->cfilter[sockindex];
  269|  24.3k|  while(cf && !cf->connected)
  ------------------
  |  Branch (269:9): [True: 24.3k, False: 0]
  |  Branch (269:15): [True: 0, False: 24.3k]
  ------------------
  270|      0|    cf = cf->next;
  271|  24.3k|  if(cf) {
  ------------------
  |  Branch (271:6): [True: 24.3k, False: 0]
  ------------------
  272|  24.3k|    return cf->cft->do_send(cf, data, buf, len, eos, pnwritten);
  273|  24.3k|  }
  274|      0|  failf(data, "send: no filter connected");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  275|      0|  DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (275:3): [Folded, False: 0]
  |  Branch (275:3): [Folded, False: 0]
  ------------------
  276|      0|  *pnwritten = 0;
  277|      0|  return CURLE_FAILED_INIT;
  278|      0|}
Curl_cf_recv_bufq:
  298|  27.5k|{
  299|  27.5k|  struct cf_io_ctx io;
  300|       |
  301|  27.5k|  if(!cf || !data) {
  ------------------
  |  Branch (301:6): [True: 0, False: 27.5k]
  |  Branch (301:13): [True: 0, False: 27.5k]
  ------------------
  302|      0|    *pnread = 0;
  303|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  304|      0|  }
  305|  27.5k|  io.data = data;
  306|  27.5k|  io.cf = cf;
  307|  27.5k|  return Curl_bufq_sipn(bufq, maxlen, cf_bufq_reader, &io, pnread);
  308|  27.5k|}
Curl_cf_send_bufq:
  323|  31.3k|{
  324|  31.3k|  struct cf_io_ctx io;
  325|       |
  326|  31.3k|  if(!cf || !data) {
  ------------------
  |  Branch (326:6): [True: 0, False: 31.3k]
  |  Branch (326:13): [True: 0, False: 31.3k]
  ------------------
  327|      0|    *pnwritten = 0;
  328|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  329|      0|  }
  330|  31.3k|  io.data = data;
  331|  31.3k|  io.cf = cf;
  332|  31.3k|  if(buf && blen)
  ------------------
  |  Branch (332:6): [True: 16.1k, False: 15.2k]
  |  Branch (332:13): [True: 16.1k, False: 0]
  ------------------
  333|  16.1k|    return Curl_bufq_write_pass(bufq, buf, blen, cf_bufq_writer, &io,
  334|  16.1k|                                pnwritten);
  335|  15.2k|  else
  336|  15.2k|    return Curl_bufq_pass(bufq, cf_bufq_writer, &io, pnwritten);
  337|  31.3k|}
Curl_cf_create:
  342|  45.3k|{
  343|  45.3k|  struct Curl_cfilter *cf;
  344|  45.3k|  CURLcode result = CURLE_OUT_OF_MEMORY;
  345|       |
  346|  45.3k|  DEBUGASSERT(cft);
  ------------------
  |  | 1083|  45.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (346:3): [True: 0, False: 45.3k]
  |  Branch (346:3): [True: 45.3k, False: 0]
  ------------------
  347|  45.3k|  cf = curlx_calloc(1, sizeof(*cf));
  ------------------
  |  | 1479|  45.3k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  348|  45.3k|  if(!cf)
  ------------------
  |  Branch (348:6): [True: 0, False: 45.3k]
  ------------------
  349|      0|    goto out;
  350|       |
  351|  45.3k|  cf->cft = cft;
  352|  45.3k|  cf->ctx = ctx;
  353|  45.3k|  result = CURLE_OK;
  354|  45.3k|out:
  355|  45.3k|  *pcf = cf;
  356|  45.3k|  return result;
  357|  45.3k|}
Curl_conn_cf_add:
  363|  24.7k|{
  364|  24.7k|  DEBUGASSERT(conn);
  ------------------
  |  | 1083|  24.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (364:3): [True: 0, False: 24.7k]
  |  Branch (364:3): [True: 24.7k, False: 0]
  ------------------
  365|  24.7k|  DEBUGASSERT(!cf->conn);
  ------------------
  |  | 1083|  24.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (365:3): [True: 0, False: 24.7k]
  |  Branch (365:3): [True: 24.7k, False: 0]
  ------------------
  366|  24.7k|  DEBUGASSERT(!cf->next);
  ------------------
  |  | 1083|  24.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (366:3): [True: 0, False: 24.7k]
  |  Branch (366:3): [True: 24.7k, False: 0]
  ------------------
  367|       |
  368|  24.7k|  cf->next = conn->cfilter[sockindex];
  369|  24.7k|  cf->conn = conn;
  370|  24.7k|  cf->sockindex = sockindex;
  371|  24.7k|  conn->cfilter[sockindex] = cf;
  372|  24.7k|  CURL_TRC_CF(data, cf, "added");
  ------------------
  |  |  153|  24.7k|  do {                                          \
  |  |  154|  24.7k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  24.7k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  49.4k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 24.7k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 24.7k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  49.4k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  24.7k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  24.7k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  24.7k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 24.7k]
  |  |  ------------------
  ------------------
  373|  24.7k|}
Curl_conn_cf_insert_after:
  377|  10.4k|{
  378|  10.4k|  struct Curl_cfilter *tail, **pnext;
  379|       |
  380|  10.4k|  DEBUGASSERT(cf_at);
  ------------------
  |  | 1083|  10.4k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (380:3): [True: 0, False: 10.4k]
  |  Branch (380:3): [True: 10.4k, False: 0]
  ------------------
  381|  10.4k|  DEBUGASSERT(cf_new);
  ------------------
  |  | 1083|  10.4k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (381:3): [True: 0, False: 10.4k]
  |  Branch (381:3): [True: 10.4k, False: 0]
  ------------------
  382|  10.4k|  DEBUGASSERT(!cf_new->conn);
  ------------------
  |  | 1083|  10.4k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (382:3): [True: 0, False: 10.4k]
  |  Branch (382:3): [True: 10.4k, False: 0]
  ------------------
  383|       |
  384|  10.4k|  tail = cf_at->next;
  385|  10.4k|  cf_at->next = cf_new;
  386|  10.4k|  do {
  387|  10.4k|    cf_new->conn = cf_at->conn;
  388|  10.4k|    cf_new->sockindex = cf_at->sockindex;
  389|  10.4k|    pnext = &cf_new->next;
  390|  10.4k|    cf_new = cf_new->next;
  391|  10.4k|  } while(cf_new);
  ------------------
  |  Branch (391:11): [True: 0, False: 10.4k]
  ------------------
  392|  10.4k|  *pnext = tail;
  393|  10.4k|}
Curl_conn_cf_connect:
  422|  47.5k|{
  423|  47.5k|  if(cf)
  ------------------
  |  Branch (423:6): [True: 47.5k, False: 0]
  ------------------
  424|  47.5k|    return cf->cft->do_connect(cf, data, done);
  425|      0|  return CURLE_FAILED_INIT;
  426|  47.5k|}
Curl_conn_cf_send:
  431|  18.9k|{
  432|  18.9k|  if(cf)
  ------------------
  |  Branch (432:6): [True: 18.9k, False: 0]
  ------------------
  433|  18.9k|    return cf->cft->do_send(cf, data, buf, len, eos, pnwritten);
  434|      0|  *pnwritten = 0;
  435|      0|  return CURLE_SEND_ERROR;
  436|  18.9k|}
Curl_conn_cf_recv:
  440|  34.0k|{
  441|  34.0k|  if(cf)
  ------------------
  |  Branch (441:6): [True: 34.0k, False: 0]
  ------------------
  442|  34.0k|    return cf->cft->do_recv(cf, data, buf, len, pnread);
  443|      0|  *pnread = 0;
  444|      0|  return CURLE_RECV_ERROR;
  445|  34.0k|}
Curl_conn_cntrl_update_info:
  466|  8.97k|{
  467|  8.97k|  cf_cntrl_all(conn, data, TRUE, CF_CTRL_CONN_INFO_UPDATE, 0, NULL);
  ------------------
  |  | 1053|  8.97k|#define TRUE true
  ------------------
                cf_cntrl_all(conn, data, TRUE, CF_CTRL_CONN_INFO_UPDATE, 0, NULL);
  ------------------
  |  |  121|  8.97k|#define CF_CTRL_CONN_INFO_UPDATE (256 + 0) /* 0          NULL     ignored */
  ------------------
  468|  8.97k|}
Curl_conn_remove_setup_filters:
  472|  8.97k|{
  473|  8.97k|  struct Curl_cfilter **anchor = &data->conn->cfilter[sockindex];
  474|  44.8k|  while(*anchor) {
  ------------------
  |  Branch (474:9): [True: 35.9k, False: 8.97k]
  ------------------
  475|  35.9k|    struct Curl_cfilter *cf = *anchor;
  476|  35.9k|    if(cf->connected && (cf->cft->flags & CF_TYPE_SETUP)) {
  ------------------
  |  |  207|  35.9k|#define CF_TYPE_SETUP       (1 << 5)
  ------------------
  |  Branch (476:8): [True: 35.9k, False: 0]
  |  Branch (476:25): [True: 26.9k, False: 8.97k]
  ------------------
  477|  26.9k|      *anchor = cf->next;
  478|  26.9k|      cf->next = NULL;
  479|  26.9k|      CURL_TRC_CF(data, cf, "removing connected setup filter");
  ------------------
  |  |  153|  26.9k|  do {                                          \
  |  |  154|  26.9k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  26.9k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  53.8k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 26.9k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 26.9k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  53.8k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  26.9k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  26.9k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  26.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 26.9k]
  |  |  ------------------
  ------------------
  480|  26.9k|      cf->cft->destroy(cf, data);
  481|  26.9k|      curlx_free(cf);
  ------------------
  |  | 1482|  26.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  482|  26.9k|    }
  483|  8.97k|    else
  484|  8.97k|      anchor = &cf->next;
  485|  35.9k|  }
  486|  8.97k|}
Curl_conn_is_connected:
  496|   238k|{
  497|   238k|  struct Curl_cfilter *cf;
  498|       |
  499|   238k|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  310|   238k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (310:36): [True: 238k, False: 0]
  |  |  |  Branch (310:50): [True: 238k, False: 0]
  |  |  ------------------
  ------------------
  500|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  501|   238k|  cf = conn->cfilter[sockindex];
  502|   238k|  if(cf)
  ------------------
  |  Branch (502:6): [True: 235k, False: 3.35k]
  ------------------
  503|   235k|    return (bool)cf->connected;
  504|  3.35k|  else if(conn->scheme->flags & PROTOPT_NONETWORK)
  ------------------
  |  |  214|  3.35k|#define PROTOPT_NONETWORK (1 << 4) /* protocol does not use the network! */
  ------------------
  |  Branch (504:11): [True: 0, False: 3.35k]
  ------------------
  505|      0|    return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  506|  3.35k|  return FALSE;
  ------------------
  |  | 1056|  3.35k|#define FALSE false
  ------------------
  507|   238k|}
Curl_conn_is_ssl:
  565|  21.7k|{
  566|  21.7k|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  310|  21.7k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (310:36): [True: 21.7k, False: 0]
  |  |  |  Branch (310:50): [True: 21.7k, False: 0]
  |  |  ------------------
  ------------------
  567|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  568|  21.7k|  return conn ? cf_is_ssl(conn->cfilter[sockindex]) : FALSE;
  ------------------
  |  | 1056|  21.7k|#define FALSE false
  ------------------
  |  Branch (568:10): [True: 21.7k, False: 0]
  ------------------
  569|  21.7k|}
Curl_conn_is_multiplex:
  600|   163k|{
  601|   163k|  struct Curl_cfilter *cf;
  602|       |
  603|   163k|  if(!conn || !CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  310|   163k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (310:36): [True: 163k, False: 0]
  |  |  |  Branch (310:50): [True: 163k, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (603:6): [True: 0, False: 163k]
  ------------------
  604|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  605|   165k|  for(cf = conn->cfilter[sockindex]; cf; cf = cf->next) {
  ------------------
  |  Branch (605:38): [True: 164k, False: 813]
  ------------------
  606|   164k|    if(cf->cft->flags & CF_TYPE_MULTIPLEX)
  ------------------
  |  |  204|   164k|#define CF_TYPE_MULTIPLEX   (1 << 2)
  ------------------
  |  Branch (606:8): [True: 21.0k, False: 143k]
  ------------------
  607|  21.0k|      return TRUE;
  ------------------
  |  | 1053|  21.0k|#define TRUE true
  ------------------
  608|   143k|    if(cf->cft->flags & (CF_TYPE_IP_CONNECT | CF_TYPE_SSL))
  ------------------
  |  |  202|   143k|#define CF_TYPE_IP_CONNECT  (1 << 0)
  ------------------
                  if(cf->cft->flags & (CF_TYPE_IP_CONNECT | CF_TYPE_SSL))
  ------------------
  |  |  203|   143k|#define CF_TYPE_SSL         (1 << 1)
  ------------------
  |  Branch (608:8): [True: 141k, False: 2.44k]
  ------------------
  609|   141k|      return FALSE;
  ------------------
  |  | 1056|   141k|#define FALSE false
  ------------------
  610|   143k|  }
  611|    813|  return FALSE;
  ------------------
  |  | 1056|    813|#define FALSE false
  ------------------
  612|   163k|}
Curl_socktype_for_transport:
  622|  10.1k|{
  623|  10.1k|  switch(transport) {
  624|  10.1k|  case TRNSPRT_TCP:
  ------------------
  |  |  237|  10.1k|#define TRNSPRT_TCP  3
  ------------------
  |  Branch (624:3): [True: 10.1k, False: 0]
  ------------------
  625|  10.1k|    return SOCK_STREAM;
  626|      0|  case TRNSPRT_UNIX:
  ------------------
  |  |  240|      0|#define TRNSPRT_UNIX 6
  ------------------
  |  Branch (626:3): [True: 0, False: 10.1k]
  ------------------
  627|      0|    return SOCK_STREAM;
  628|      0|  default: /* UDP and QUIC */
  ------------------
  |  Branch (628:3): [True: 0, False: 10.1k]
  ------------------
  629|       |    return SOCK_DGRAM;
  630|  10.1k|  }
  631|  10.1k|}
Curl_protocol_for_transport:
  634|  10.1k|{
  635|  10.1k|  switch(transport) {
  636|  10.1k|  case TRNSPRT_TCP:
  ------------------
  |  |  237|  10.1k|#define TRNSPRT_TCP  3
  ------------------
  |  Branch (636:3): [True: 10.1k, False: 0]
  ------------------
  637|  10.1k|    return IPPROTO_TCP;
  638|      0|  case TRNSPRT_UNIX:
  ------------------
  |  |  240|      0|#define TRNSPRT_UNIX 6
  ------------------
  |  Branch (638:3): [True: 0, False: 10.1k]
  ------------------
  639|      0|    return IPPROTO_IP;
  640|      0|  default: /* UDP and QUIC */
  ------------------
  |  Branch (640:3): [True: 0, False: 10.1k]
  ------------------
  641|       |    return IPPROTO_UDP;
  642|  10.1k|  }
  643|  10.1k|}
Curl_conn_get_alpn_negotiated:
  647|  8.97k|{
  648|  8.97k|  struct Curl_cfilter *cf = conn->cfilter[FIRSTSOCKET];
  ------------------
  |  |  233|  8.97k|#define FIRSTSOCKET     0
  ------------------
  649|  8.97k|  return Curl_conn_cf_get_alpn_negotiated(cf, data);
  650|  8.97k|}
Curl_conn_http_version:
  654|  31.1k|{
  655|  31.1k|  struct Curl_cfilter *cf;
  656|  31.1k|  CURLcode result = CURLE_UNKNOWN_OPTION;
  657|  31.1k|  unsigned char v = 0;
  658|       |
  659|  31.1k|  cf = conn->cfilter[FIRSTSOCKET];
  ------------------
  |  |  233|  31.1k|#define FIRSTSOCKET     0
  ------------------
  660|  31.1k|  for(; cf; cf = cf->next) {
  ------------------
  |  Branch (660:9): [True: 31.1k, False: 0]
  ------------------
  661|  31.1k|    if(cf->cft->flags & CF_TYPE_HTTP) {
  ------------------
  |  |  206|  31.1k|#define CF_TYPE_HTTP        (1 << 4)
  ------------------
  |  Branch (661:8): [True: 4.86k, False: 26.2k]
  ------------------
  662|  4.86k|      int value = 0;
  663|  4.86k|      result = cf->cft->query(cf, data, CF_QUERY_HTTP_VERSION, &value, NULL);
  ------------------
  |  |  169|  4.86k|#define CF_QUERY_HTTP_VERSION       9  /* number (10/11/20/30)   - */
  ------------------
  664|  4.86k|      if(!result && ((value < 0) || (value > 255)))
  ------------------
  |  Branch (664:10): [True: 4.86k, False: 0]
  |  Branch (664:22): [True: 0, False: 4.86k]
  |  Branch (664:37): [True: 0, False: 4.86k]
  ------------------
  665|      0|        result = CURLE_FAILED_INIT;
  666|  4.86k|      else
  667|  4.86k|        v = (unsigned char)value;
  668|  4.86k|      break;
  669|  4.86k|    }
  670|  26.2k|    if(cf->cft->flags & (CF_TYPE_IP_CONNECT | CF_TYPE_SSL))
  ------------------
  |  |  202|  26.2k|#define CF_TYPE_IP_CONNECT  (1 << 0)
  ------------------
                  if(cf->cft->flags & (CF_TYPE_IP_CONNECT | CF_TYPE_SSL))
  ------------------
  |  |  203|  26.2k|#define CF_TYPE_SSL         (1 << 1)
  ------------------
  |  Branch (670:8): [True: 26.2k, False: 0]
  ------------------
  671|  26.2k|      break;
  672|  26.2k|  }
  673|  31.1k|  return (unsigned char)(result ? 0 : v);
  ------------------
  |  Branch (673:26): [True: 26.2k, False: 4.86k]
  ------------------
  674|  31.1k|}
Curl_conn_data_pending:
  677|   252k|{
  678|   252k|  struct Curl_cfilter *cf;
  679|       |
  680|   252k|  (void)data;
  681|   252k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|   252k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (681:3): [True: 0, False: 252k]
  |  Branch (681:3): [True: 252k, False: 0]
  ------------------
  682|   252k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1083|   252k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (682:3): [True: 0, False: 252k]
  |  Branch (682:3): [True: 252k, False: 0]
  ------------------
  683|   252k|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  310|   252k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (310:36): [True: 252k, False: 0]
  |  |  |  Branch (310:50): [True: 252k, False: 0]
  |  |  ------------------
  ------------------
  684|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  685|       |
  686|   252k|  cf = data->conn->cfilter[sockindex];
  687|   252k|  while(cf && !cf->connected) {
  ------------------
  |  Branch (687:9): [True: 252k, False: 0]
  |  Branch (687:15): [True: 0, False: 252k]
  ------------------
  688|      0|    cf = cf->next;
  689|      0|  }
  690|   252k|  if(cf) {
  ------------------
  |  Branch (690:6): [True: 252k, False: 0]
  ------------------
  691|   252k|    return cf->cft->has_data_pending(cf, data);
  692|   252k|  }
  693|      0|  return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  694|   252k|}
Curl_conn_cf_needs_flush:
  698|   282k|{
  699|   282k|  CURLcode result;
  700|   282k|  int pending = 0;
  701|   282k|  result = cf ? cf->cft->query(cf, data, CF_QUERY_NEED_FLUSH,
  ------------------
  |  |  167|   282k|#define CF_QUERY_NEED_FLUSH         7  /* TRUE/FALSE - */
  ------------------
  |  Branch (701:12): [True: 282k, False: 0]
  ------------------
  702|   282k|                               &pending, NULL) : CURLE_UNKNOWN_OPTION;
  703|   282k|  return (result || !pending) ? FALSE : TRUE;
  ------------------
  |  | 1056|   282k|#define FALSE false
  ------------------
                return (result || !pending) ? FALSE : TRUE;
  ------------------
  |  | 1053|   282k|#define TRUE true
  ------------------
  |  Branch (703:11): [True: 280k, False: 2.28k]
  |  Branch (703:21): [True: 0, False: 2.28k]
  ------------------
  704|   282k|}
Curl_conn_needs_flush:
  707|   282k|{
  708|   282k|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  310|   282k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (310:36): [True: 282k, False: 0]
  |  |  |  Branch (310:50): [True: 282k, False: 0]
  |  |  ------------------
  ------------------
  709|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  710|   282k|  return Curl_conn_cf_needs_flush(data->conn->cfilter[sockindex], data);
  711|   282k|}
Curl_conn_cf_adjust_pollset:
  716|   138k|{
  717|   138k|  CURLcode result = CURLE_OK;
  718|       |  /* Go through all filters, top to bottom, and let them manage the pollset
  719|       |   * - connected filters can do so
  720|       |   * - CF_TYPE_DNS filters can
  721|       |   * - unconnected filters without next or connect next can
  722|       |   */
  723|   313k|  for(; cf && !result; cf = cf->next) {
  ------------------
  |  Branch (723:9): [True: 174k, False: 138k]
  |  Branch (723:15): [True: 174k, False: 0]
  ------------------
  724|   174k|    if(cf->shutdown)
  ------------------
  |  Branch (724:8): [True: 0, False: 174k]
  ------------------
  725|      0|      continue;
  726|   174k|    if(cf->connected || (cf->cft->flags & CF_TYPE_DNS) ||
  ------------------
  |  |  208|  19.5k|#define CF_TYPE_DNS         (1 << 6)
  ------------------
  |  Branch (726:8): [True: 155k, False: 19.5k]
  |  Branch (726:25): [True: 6.51k, False: 13.0k]
  ------------------
  727|  13.0k|       !cf->next || cf->next->connected)
  ------------------
  |  Branch (727:8): [True: 0, False: 13.0k]
  |  Branch (727:21): [True: 6.51k, False: 6.51k]
  ------------------
  728|   168k|      result = cf->cft->adjust_pollset(cf, data, ps);
  729|   174k|  }
  730|   138k|  return result;
  731|   138k|}
Curl_conn_adjust_pollset:
  736|   141k|{
  737|   141k|  CURLcode result = CURLE_OK;
  738|   141k|  bool want_io = !!ps->n;
  739|   141k|  int i;
  740|       |
  741|   141k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|   141k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (741:3): [True: 0, False: 141k]
  |  Branch (741:3): [True: 141k, False: 0]
  ------------------
  742|   141k|  DEBUGASSERT(conn);
  ------------------
  |  | 1083|   141k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (742:3): [True: 0, False: 141k]
  |  Branch (742:3): [True: 141k, False: 0]
  ------------------
  743|       |  /* During connect time, connection filters may add sockets to the pollset
  744|       |   * even when the transfer neither wants to send nor receive. And those
  745|       |   * sockets, when having events, are served. The same applies to a
  746|       |   * filter chain whose shutdown has started.
  747|       |   * Once a filter chain is connected however and before its shutdown
  748|       |   * starts, a transfer that neither wants to send nor receive
  749|       |   * will never call the connection filters. Any sockets added by the filters
  750|       |   * will not change state and POLLIN/POLLOUT events will trigger forever,
  751|       |   * making us busy loop. See #21671.
  752|       |   * Gate each filter chain on its own state, so that one chain being in
  753|       |   * connect or shutdown does not add poll events for the other. Check
  754|       |   * against the transfer's own interest, before any chain added sockets
  755|       |   * of its own. */
  756|   425k|  for(i = 0; (i < (int)CURL_ARRAYSIZE(conn->cfilter)) && !result; ++i) {
  ------------------
  |  | 1307|   425k|#define CURL_ARRAYSIZE(A) (sizeof(A) / sizeof((A)[0]))
  ------------------
  |  Branch (756:14): [True: 283k, False: 141k]
  |  Branch (756:58): [True: 283k, False: 0]
  ------------------
  757|   283k|    if(conn->cfilter[i] &&
  ------------------
  |  Branch (757:8): [True: 141k, False: 141k]
  ------------------
  758|   141k|       (want_io || !Curl_conn_is_connected(conn, i) ||
  ------------------
  |  Branch (758:9): [True: 138k, False: 3.06k]
  |  Branch (758:20): [True: 0, False: 3.06k]
  ------------------
  759|  3.06k|        Curl_shutdown_started(conn, i)))
  ------------------
  |  Branch (759:9): [True: 0, False: 3.06k]
  ------------------
  760|   138k|      result = Curl_conn_cf_adjust_pollset(conn->cfilter[i], data, ps);
  761|   283k|  }
  762|   141k|  return result;
  763|   141k|}
Curl_conn_cf_cntrl:
  845|   101k|{
  846|   101k|  CURLcode result = CURLE_OK;
  847|       |
  848|   180k|  for(; cf; cf = cf->next) {
  ------------------
  |  Branch (848:9): [True: 80.0k, False: 100k]
  ------------------
  849|  80.0k|    if(cf->cft->cntrl == Curl_cf_def_cntrl)
  ------------------
  |  Branch (849:8): [True: 20.2k, False: 59.7k]
  ------------------
  850|  20.2k|      continue;
  851|  59.7k|    result = cf->cft->cntrl(cf, data, event, arg1, arg2);
  852|  59.7k|    if(!ignore_result && result)
  ------------------
  |  Branch (852:8): [True: 5.61k, False: 54.1k]
  |  Branch (852:26): [True: 1.05k, False: 4.55k]
  ------------------
  853|  1.05k|      break;
  854|  59.7k|  }
  855|   101k|  return result;
  856|   101k|}
Curl_conn_cf_get_socket:
  860|  33.0k|{
  861|  33.0k|  curl_socket_t sock;
  862|  33.0k|  if(cf && !cf->cft->query(cf, data, CF_QUERY_SOCKET, NULL, &sock))
  ------------------
  |  |  163|  33.0k|#define CF_QUERY_SOCKET             3  /* -          curl_socket_t */
  ------------------
  |  Branch (862:6): [True: 33.0k, False: 0]
  |  Branch (862:12): [True: 22.9k, False: 10.1k]
  ------------------
  863|  22.9k|    return sock;
  864|  10.1k|  return CURL_SOCKET_BAD;
  ------------------
  |  |  145|  10.1k|#define CURL_SOCKET_BAD (-1)
  ------------------
  865|  33.0k|}
Curl_conn_cf_get_alpn_negotiated:
  878|  8.97k|{
  879|  8.97k|  const char *alpn = NULL;
  880|  8.97k|  CURL_TRC_CF(data, cf, "query ALPN");
  ------------------
  |  |  153|  8.97k|  do {                                          \
  |  |  154|  8.97k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  8.97k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  17.9k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 8.97k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 8.97k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  17.9k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  8.97k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  8.97k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  8.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 8.97k]
  |  |  ------------------
  ------------------
  881|  8.97k|  if(cf && !cf->cft->query(cf, data, CF_QUERY_ALPN_NEGOTIATED, NULL,
  ------------------
  |  |  177|  8.97k|#define CF_QUERY_ALPN_NEGOTIATED   15  /* -          const char * */
  ------------------
  |  Branch (881:6): [True: 8.97k, False: 0]
  |  Branch (881:12): [True: 0, False: 8.97k]
  ------------------
  882|  8.97k|                           CURL_UNCONST(&alpn)))
  ------------------
  |  |  864|  8.97k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
  883|      0|    return alpn;
  884|  8.97k|  return NULL;
  885|  8.97k|}
Curl_conn_get_first_socket:
  912|  6.51k|{
  913|  6.51k|  struct Curl_cfilter *cf;
  914|       |
  915|  6.51k|  if(!data->conn)
  ------------------
  |  Branch (915:6): [True: 0, False: 6.51k]
  ------------------
  916|      0|    return CURL_SOCKET_BAD;
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  917|       |
  918|  6.51k|  cf = data->conn->cfilter[FIRSTSOCKET];
  ------------------
  |  |  233|  6.51k|#define FIRSTSOCKET     0
  ------------------
  919|       |  /* if the top filter has not connected, ask it (and its sub-filters)
  920|       |   * for the socket. Otherwise conn->sock[sockindex] should have it. */
  921|  6.51k|  if(cf && !cf->connected)
  ------------------
  |  Branch (921:6): [True: 6.51k, False: 0]
  |  Branch (921:12): [True: 6.51k, False: 0]
  ------------------
  922|  6.51k|    return Curl_conn_cf_get_socket(cf, data);
  923|      0|  return data->conn->sock[FIRSTSOCKET];
  ------------------
  |  |  233|      0|#define FIRSTSOCKET     0
  ------------------
  924|  6.51k|}
Curl_conn_ev_data_setup:
  936|  14.2k|{
  937|  14.2k|  return cf_cntrl_all(data->conn, data, FALSE, CF_CTRL_DATA_SETUP, 0, NULL);
  ------------------
  |  | 1056|  14.2k|#define FALSE false
  ------------------
                return cf_cntrl_all(data->conn, data, FALSE, CF_CTRL_DATA_SETUP, 0, NULL);
  ------------------
  |  |  115|  14.2k|#define CF_CTRL_DATA_SETUP              4  /* 0          NULL     first fail */
  ------------------
  938|  14.2k|}
Curl_conn_flush:
  941|  1.27k|{
  942|  1.27k|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  310|  1.27k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (310:36): [True: 1.27k, False: 0]
  |  |  |  Branch (310:50): [True: 1.27k, False: 0]
  |  |  ------------------
  ------------------
  943|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  944|  1.27k|  return Curl_conn_cf_cntrl(data->conn->cfilter[sockindex], data, FALSE,
  ------------------
  |  | 1056|  1.27k|#define FALSE false
  ------------------
  945|  1.27k|                            CF_CTRL_FLUSH, 0, NULL);
  ------------------
  |  |  123|  1.27k|#define CF_CTRL_FLUSH            (256 + 2) /* 0          NULL     first fail */
  ------------------
  946|  1.27k|}
Curl_conn_ev_data_done_send:
  953|  12.7k|{
  954|  12.7k|  cf_cntrl_all(data->conn, data, TRUE, CF_CTRL_DATA_DONE_SEND, 0, NULL);
  ------------------
  |  | 1053|  12.7k|#define TRUE true
  ------------------
                cf_cntrl_all(data->conn, data, TRUE, CF_CTRL_DATA_DONE_SEND, 0, NULL);
  ------------------
  |  |  119|  12.7k|#define CF_CTRL_DATA_DONE_SEND          8  /* 0          NULL     ignored */
  ------------------
  955|  12.7k|}
Curl_conn_ev_data_done:
  962|  14.2k|{
  963|  14.2k|  cf_cntrl_all(data->conn, data, TRUE, CF_CTRL_DATA_DONE, premature, NULL);
  ------------------
  |  | 1053|  14.2k|#define TRUE true
  ------------------
                cf_cntrl_all(data->conn, data, TRUE, CF_CTRL_DATA_DONE, premature, NULL);
  ------------------
  |  |  118|  14.2k|#define CF_CTRL_DATA_DONE               7  /* premature  NULL     ignored */
  ------------------
  964|  14.2k|}
Curl_conn_is_alive:
  974|    897|{
  975|    897|  struct Curl_cfilter *cf = conn->cfilter[FIRSTSOCKET];
  ------------------
  |  |  233|    897|#define FIRSTSOCKET     0
  ------------------
  976|    897|  return cf && !cf->conn->bits.close &&
  ------------------
  |  Branch (976:10): [True: 897, False: 0]
  |  Branch (976:16): [True: 897, False: 0]
  ------------------
  977|    897|         cf->cft->is_alive(cf, data, input_pending);
  ------------------
  |  Branch (977:10): [True: 897, False: 0]
  ------------------
  978|    897|}
Curl_conn_get_max_concurrent:
  997|  5.89k|{
  998|  5.89k|  struct Curl_cfilter *cf;
  999|  5.89k|  CURLcode result;
 1000|  5.89k|  int n = -1;
 1001|       |
 1002|  5.89k|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  310|  5.89k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (310:36): [True: 5.89k, False: 0]
  |  |  |  Branch (310:50): [True: 5.89k, False: 0]
  |  |  ------------------
  ------------------
 1003|      0|    return 0;
 1004|       |
 1005|  5.89k|  cf = conn->cfilter[sockindex];
 1006|  5.89k|  result = cf ? cf->cft->query(cf, data, CF_QUERY_MAX_CONCURRENT,
  ------------------
  |  |  161|  5.89k|#define CF_QUERY_MAX_CONCURRENT     1  /* number     -        */
  ------------------
  |  Branch (1006:12): [True: 5.89k, False: 0]
  ------------------
 1007|  5.89k|                               &n, NULL) : CURLE_UNKNOWN_OPTION;
 1008|       |  /* If no filter answered the query, the default is a non-multiplexed
 1009|       |   * connection with limit 1. Otherwise, the query may return 0
 1010|       |   * for connections that are in shutdown, e.g. server HTTP/2 GOAWAY. */
 1011|  5.89k|  return (result || n < 0) ? 1 : (size_t)n;
  ------------------
  |  Branch (1011:11): [True: 5.13k, False: 759]
  |  Branch (1011:21): [True: 0, False: 759]
  ------------------
 1012|  5.89k|}
Curl_conn_get_stream_error:
 1017|    432|{
 1018|    432|  struct Curl_cfilter *cf;
 1019|    432|  CURLcode result;
 1020|    432|  int n = 0;
 1021|       |
 1022|    432|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  310|    432|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (310:36): [True: 432, False: 0]
  |  |  |  Branch (310:50): [True: 432, False: 0]
  |  |  ------------------
  ------------------
 1023|      0|    return 0;
 1024|       |
 1025|    432|  cf = conn->cfilter[sockindex];
 1026|    432|  result = cf ? cf->cft->query(cf, data, CF_QUERY_STREAM_ERROR,
  ------------------
  |  |  166|    432|#define CF_QUERY_STREAM_ERROR       6  /* error code - */
  ------------------
  |  Branch (1026:12): [True: 432, False: 0]
  ------------------
 1027|    432|                               &n, NULL) : CURLE_UNKNOWN_OPTION;
 1028|    432|  return (result || n < 0) ? 0 : n;
  ------------------
  |  Branch (1028:11): [True: 0, False: 432]
  |  Branch (1028:21): [True: 170, False: 262]
  ------------------
 1029|    432|}
Curl_conn_recv:
 1041|   149k|{
 1042|   149k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|   149k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1042:3): [True: 0, False: 149k]
  |  Branch (1042:3): [True: 149k, False: 0]
  ------------------
 1043|   149k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1083|   149k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1043:3): [True: 0, False: 149k]
  |  Branch (1043:3): [True: 149k, False: 0]
  ------------------
 1044|   149k|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  310|   149k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (310:36): [True: 149k, False: 0]
  |  |  |  Branch (310:50): [True: 149k, False: 0]
  |  |  ------------------
  ------------------
 1045|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
 1046|   149k|  if(data && data->conn && data->conn->recv[sockindex])
  ------------------
  |  Branch (1046:6): [True: 149k, False: 0]
  |  Branch (1046:14): [True: 149k, False: 0]
  |  Branch (1046:28): [True: 149k, False: 0]
  ------------------
 1047|   149k|    return data->conn->recv[sockindex](data, sockindex, buf, len, pnread);
 1048|      0|  *pnread = 0;
 1049|      0|  return CURLE_FAILED_INIT;
 1050|   149k|}
Curl_conn_send:
 1055|  24.3k|{
 1056|  24.3k|  size_t write_len = len;
 1057|       |
 1058|  24.3k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|  24.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1058:3): [True: 0, False: 24.3k]
  |  Branch (1058:3): [True: 24.3k, False: 0]
  ------------------
 1059|  24.3k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1083|  24.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1059:3): [True: 0, False: 24.3k]
  |  Branch (1059:3): [True: 24.3k, False: 0]
  ------------------
 1060|  24.3k|  DEBUGASSERT(CONN_SOCK_IDX_VALID(sockindex));
  ------------------
  |  | 1083|  24.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1060:3): [True: 0, False: 24.3k]
  |  Branch (1060:3): [True: 0, False: 0]
  |  Branch (1060:3): [True: 24.3k, False: 0]
  |  Branch (1060:3): [True: 24.3k, False: 0]
  ------------------
 1061|  24.3k|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  310|  24.3k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (310:36): [True: 24.3k, False: 0]
  |  |  |  Branch (310:50): [True: 24.3k, False: 0]
  |  |  ------------------
  ------------------
 1062|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
 1063|  24.3k|#ifdef DEBUGBUILD
 1064|  24.3k|  if(write_len) {
  ------------------
  |  Branch (1064:6): [True: 24.1k, False: 198]
  ------------------
 1065|       |    /* Allow debug builds to override this logic to force short sends */
 1066|  24.1k|    const char *p = getenv("CURL_SMALLSENDS");
 1067|  24.1k|    if(p) {
  ------------------
  |  Branch (1067:8): [True: 0, False: 24.1k]
  ------------------
 1068|      0|      curl_off_t altsize;
 1069|      0|      if(!curlx_str_number(&p, &altsize, write_len)) {
  ------------------
  |  Branch (1069:10): [True: 0, False: 0]
  ------------------
 1070|      0|        write_len = (size_t)altsize;
 1071|      0|        if(write_len != len)
  ------------------
  |  Branch (1071:12): [True: 0, False: 0]
  ------------------
 1072|      0|          eos = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1073|      0|      }
 1074|      0|    }
 1075|  24.1k|  }
 1076|  24.3k|#endif
 1077|  24.3k|  if(data && data->conn && data->conn->send[sockindex])
  ------------------
  |  Branch (1077:6): [True: 24.3k, False: 0]
  |  Branch (1077:14): [True: 24.3k, False: 0]
  |  Branch (1077:28): [True: 24.3k, False: 0]
  ------------------
 1078|  24.3k|    return data->conn->send[sockindex](data, sockindex, buf, write_len, eos,
 1079|  24.3k|                                       pnwritten);
 1080|      0|  *pnwritten = 0;
 1081|      0|  return CURLE_FAILED_INIT;
 1082|  24.3k|}
cfilters.c:cf_bufq_reader:
  288|  27.5k|{
  289|  27.5k|  struct cf_io_ctx *io = writer_ctx;
  290|  27.5k|  return Curl_conn_cf_recv(io->cf, io->data, (char *)buf, blen, pnread);
  291|  27.5k|}
cfilters.c:cf_bufq_writer:
  313|  18.5k|{
  314|  18.5k|  struct cf_io_ctx *io = writer_ctx;
  315|       |  return Curl_conn_cf_send(io->cf, io->data, buf, buflen, FALSE, pnwritten);
  ------------------
  |  | 1056|  18.5k|#define FALSE false
  ------------------
  316|  18.5k|}
cfilters.c:cf_cntrl_all:
  451|  50.1k|{
  452|  50.1k|  CURLcode result = CURLE_OK;
  453|  50.1k|  int i;
  454|       |
  455|   150k|  for(i = 0; i < (int)CURL_ARRAYSIZE(conn->cfilter); ++i) {
  ------------------
  |  | 1307|   150k|#define CURL_ARRAYSIZE(A) (sizeof(A) / sizeof((A)[0]))
  ------------------
  |  Branch (455:14): [True: 100k, False: 50.1k]
  ------------------
  456|   100k|    result = Curl_conn_cf_cntrl(conn->cfilter[i], data, ignore_result,
  457|   100k|                                event, arg1, arg2);
  458|   100k|    if(!ignore_result && result)
  ------------------
  |  Branch (458:8): [True: 28.5k, False: 71.8k]
  |  Branch (458:26): [True: 0, False: 28.5k]
  ------------------
  459|      0|      break;
  460|   100k|  }
  461|  50.1k|  return result;
  462|  50.1k|}
cfilters.c:cf_is_ssl:
  552|  21.7k|{
  553|  27.2k|  for(; cf; cf = cf->next) {
  ------------------
  |  Branch (553:9): [True: 27.2k, False: 0]
  ------------------
  554|       |    /* A tunneling proxy does not offer end2end encryption, even if
  555|       |     * it does SSL itself (e.g. QUIC H3 proxy) */
  556|  27.2k|    if((cf->cft->flags & CF_TYPE_SSL) && !(cf->cft->flags & CF_TYPE_PROXY))
  ------------------
  |  |  203|  27.2k|#define CF_TYPE_SSL         (1 << 1)
  ------------------
                  if((cf->cft->flags & CF_TYPE_SSL) && !(cf->cft->flags & CF_TYPE_PROXY))
  ------------------
  |  |  205|      0|#define CF_TYPE_PROXY       (1 << 3)
  ------------------
  |  Branch (556:8): [True: 0, False: 27.2k]
  |  Branch (556:42): [True: 0, False: 0]
  ------------------
  557|      0|      return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  558|  27.2k|    if(cf->cft->flags & CF_TYPE_IP_CONNECT)
  ------------------
  |  |  202|  27.2k|#define CF_TYPE_IP_CONNECT  (1 << 0)
  ------------------
  |  Branch (558:8): [True: 21.7k, False: 5.51k]
  ------------------
  559|  21.7k|      return FALSE;
  ------------------
  |  | 1056|  21.7k|#define FALSE false
  ------------------
  560|  27.2k|  }
  561|      0|  return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  562|  21.7k|}

Curl_cpool_init:
  117|  9.97k|{
  118|  9.97k|  Curl_hash_init(&cpool->dest2bundle, size, Curl_hash_str,
  119|  9.97k|                 curlx_str_key_compare, cpool_bundle_free_entry);
  120|       |
  121|  9.97k|  DEBUGASSERT(idata);
  ------------------
  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (121:3): [True: 0, False: 9.97k]
  |  Branch (121:3): [True: 9.97k, False: 0]
  ------------------
  122|       |
  123|  9.97k|  cpool->idata = idata;
  124|  9.97k|  cpool->share = share;
  125|       |  cpool->initialized = TRUE;
  ------------------
  |  | 1053|  9.97k|#define TRUE true
  ------------------
  126|  9.97k|}
Curl_cpool_destroy:
  232|  9.97k|{
  233|  9.97k|  if(cpool && cpool->initialized && cpool->idata) {
  ------------------
  |  Branch (233:6): [True: 9.97k, False: 0]
  |  Branch (233:15): [True: 9.97k, False: 0]
  |  Branch (233:37): [True: 9.97k, False: 0]
  ------------------
  234|  9.97k|    struct connectdata *conn;
  235|  9.97k|    struct Curl_sigpipe_ctx pipe_ctx;
  236|       |
  237|  9.97k|    CURL_TRC_M(cpool->idata, "%s[CPOOL] destroy, %zu connections",
  ------------------
  |  |  148|  9.97k|  do {                                   \
  |  |  149|  9.97k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  9.97k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  9.97k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  19.9k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 9.97k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 9.97k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  19.9k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  9.97k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  9.97k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (150:28): [True: 0, False: 0]
  |  |  ------------------
  |  |  151|  9.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 9.97k]
  |  |  ------------------
  ------------------
  238|  9.97k|               cpool->share ? "[SHARE] " : "", cpool->num_conn);
  239|       |    /* Move all connections to the shutdown list */
  240|  9.97k|    sigpipe_init(&pipe_ctx);
  241|  9.97k|    CPOOL_LOCK(cpool, cpool->idata);
  ------------------
  |  |   42|  9.97k|  do {                                                                  \
  |  |   43|  9.97k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (43:8): [True: 9.97k, False: 0]
  |  |  ------------------
  |  |   44|  9.97k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  9.97k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 9.97k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|  9.97k|        Curl_share_lock((d), CURL_LOCK_DATA_CONNECT,                    \
  |  |   46|      0|                        CURL_LOCK_ACCESS_SINGLE);                       \
  |  |   47|  9.97k|      DEBUGASSERT(!(c)->locked);                                        \
  |  |  ------------------
  |  |  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   48|  9.97k|      (c)->locked = TRUE;                                               \
  |  |  ------------------
  |  |  |  | 1053|  9.97k|#define TRUE true
  |  |  ------------------
  |  |   49|  9.97k|    }                                                                   \
  |  |   50|  9.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (50:11): [Folded, False: 9.97k]
  |  |  ------------------
  ------------------
  |  Branch (241:5): [True: 0, False: 9.97k]
  |  Branch (241:5): [True: 9.97k, False: 0]
  ------------------
  242|  9.97k|    conn = cpool_get_first(cpool);
  243|  9.97k|    if(conn)
  ------------------
  |  Branch (243:8): [True: 1.20k, False: 8.77k]
  ------------------
  244|  1.20k|      sigpipe_apply(cpool->idata, &pipe_ctx);
  245|  11.1k|    while(conn) {
  ------------------
  |  Branch (245:11): [True: 1.20k, False: 9.97k]
  ------------------
  246|  1.20k|      cpool_remove_conn(cpool, conn);
  247|  1.20k|      cpool_discard_conn(cpool, cpool->idata, conn, FALSE);
  ------------------
  |  | 1056|  1.20k|#define FALSE false
  ------------------
  248|  1.20k|      conn = cpool_get_first(cpool);
  249|  1.20k|    }
  250|  9.97k|    CPOOL_UNLOCK(cpool, cpool->idata);
  ------------------
  |  |   53|  9.97k|  do {                                                                  \
  |  |   54|  9.97k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (54:8): [True: 9.97k, False: 0]
  |  |  ------------------
  |  |   55|  9.97k|      DEBUGASSERT((c)->locked);                                         \
  |  |  ------------------
  |  |  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   56|  9.97k|      (c)->locked = FALSE;                                              \
  |  |  ------------------
  |  |  |  | 1056|  9.97k|#define FALSE false
  |  |  ------------------
  |  |   57|  9.97k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  9.97k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 9.97k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|  9.97k|        Curl_share_unlock((d), CURL_LOCK_DATA_CONNECT);                 \
  |  |   59|  9.97k|    }                                                                   \
  |  |   60|  9.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (60:11): [Folded, False: 9.97k]
  |  |  ------------------
  ------------------
  |  Branch (250:5): [True: 0, False: 9.97k]
  |  Branch (250:5): [True: 9.97k, False: 0]
  ------------------
  251|  9.97k|    sigpipe_restore(&pipe_ctx);
  252|  9.97k|    Curl_hash_destroy(&cpool->dest2bundle);
  253|  9.97k|  }
  254|  9.97k|}
Curl_cpool_xfer_init:
  270|  9.97k|{
  271|  9.97k|  struct cpool *cpool = cpool_get_instance(data);
  272|       |
  273|  9.97k|  if(cpool) {
  ------------------
  |  Branch (273:6): [True: 9.97k, False: 0]
  ------------------
  274|  9.97k|    CPOOL_LOCK(cpool, data);
  ------------------
  |  |   42|  9.97k|  do {                                                                  \
  |  |   43|  9.97k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (43:8): [True: 9.97k, False: 0]
  |  |  ------------------
  |  |   44|  9.97k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  9.97k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 9.97k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|  9.97k|        Curl_share_lock((d), CURL_LOCK_DATA_CONNECT,                    \
  |  |   46|      0|                        CURL_LOCK_ACCESS_SINGLE);                       \
  |  |   47|  9.97k|      DEBUGASSERT(!(c)->locked);                                        \
  |  |  ------------------
  |  |  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   48|  9.97k|      (c)->locked = TRUE;                                               \
  |  |  ------------------
  |  |  |  | 1053|  9.97k|#define TRUE true
  |  |  ------------------
  |  |   49|  9.97k|    }                                                                   \
  |  |   50|  9.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (50:11): [Folded, False: 9.97k]
  |  |  ------------------
  ------------------
  |  Branch (274:5): [True: 0, False: 9.97k]
  |  Branch (274:5): [True: 9.97k, False: 0]
  ------------------
  275|       |    /* the identifier inside the connection cache */
  276|  9.97k|    data->id = cpool->next_easy_id++;
  277|  9.97k|    if(cpool->next_easy_id <= 0)
  ------------------
  |  Branch (277:8): [True: 0, False: 9.97k]
  ------------------
  278|      0|      cpool->next_easy_id = 0;
  279|  9.97k|    data->state.lastconnect_id = -1;
  280|       |
  281|  9.97k|    CPOOL_UNLOCK(cpool, data);
  ------------------
  |  |   53|  9.97k|  do {                                                                  \
  |  |   54|  9.97k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (54:8): [True: 9.97k, False: 0]
  |  |  ------------------
  |  |   55|  9.97k|      DEBUGASSERT((c)->locked);                                         \
  |  |  ------------------
  |  |  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   56|  9.97k|      (c)->locked = FALSE;                                              \
  |  |  ------------------
  |  |  |  | 1056|  9.97k|#define FALSE false
  |  |  ------------------
  |  |   57|  9.97k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  9.97k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 9.97k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|  9.97k|        Curl_share_unlock((d), CURL_LOCK_DATA_CONNECT);                 \
  |  |   59|  9.97k|    }                                                                   \
  |  |   60|  9.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (60:11): [Folded, False: 9.97k]
  |  |  ------------------
  ------------------
  |  Branch (281:5): [True: 0, False: 9.97k]
  |  Branch (281:5): [True: 9.97k, False: 0]
  ------------------
  282|  9.97k|  }
  283|      0|  else {
  284|       |    /* We should not get here, but in a non-debug build, do something */
  285|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (285:5): [Folded, False: 0]
  |  Branch (285:5): [Folded, False: 0]
  ------------------
  286|      0|    data->id = 0;
  287|      0|    data->state.lastconnect_id = -1;
  288|      0|  }
  289|  9.97k|}
Curl_cpool_check_limits:
  388|  10.1k|{
  389|  10.1k|  struct cpool *cpool = cpool_get_instance(data);
  390|  10.1k|  struct cpool_bundle *bundle;
  391|  10.1k|  size_t dest_limit = 0;
  392|  10.1k|  size_t total_limit = 0;
  393|  10.1k|  size_t shutdowns;
  394|  10.1k|  int res = CPOOL_LIMIT_OK;
  ------------------
  |  |   90|  10.1k|#define CPOOL_LIMIT_OK     0
  ------------------
  395|       |
  396|  10.1k|  if(!cpool)
  ------------------
  |  Branch (396:6): [True: 0, False: 10.1k]
  ------------------
  397|      0|    return CPOOL_LIMIT_OK;
  ------------------
  |  |   90|      0|#define CPOOL_LIMIT_OK     0
  ------------------
  398|       |
  399|       |  /* multi determines the limits, no matter who owns the pool */
  400|  10.1k|  if(data->multi) {
  ------------------
  |  Branch (400:6): [True: 10.1k, False: 0]
  ------------------
  401|  10.1k|    dest_limit = data->multi->max_host_connections;
  402|  10.1k|    total_limit = data->multi->max_total_connections;
  403|  10.1k|  }
  404|       |
  405|  10.1k|  if(!dest_limit && !total_limit)
  ------------------
  |  Branch (405:6): [True: 10.1k, False: 0]
  |  Branch (405:21): [True: 10.1k, False: 0]
  ------------------
  406|  10.1k|    return CPOOL_LIMIT_OK;
  ------------------
  |  |   90|  10.1k|#define CPOOL_LIMIT_OK     0
  ------------------
  407|       |
  408|      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);                                        \
  |  |  ------------------
  |  |  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   48|      0|      (c)->locked = TRUE;                                               \
  |  |  ------------------
  |  |  |  | 1053|      0|#define TRUE true
  |  |  ------------------
  |  |   49|      0|    }                                                                   \
  |  |   50|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (50:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (408:3): [True: 0, False: 0]
  |  Branch (408:3): [True: 0, False: 0]
  ------------------
  409|      0|  if(dest_limit) {
  ------------------
  |  Branch (409:6): [True: 0, False: 0]
  ------------------
  410|      0|    size_t live;
  411|       |
  412|      0|    bundle = cpool_find_bundle(cpool, conn);
  413|      0|    live = bundle ? Curl_llist_count(&bundle->conns) : 0;
  ------------------
  |  Branch (413:12): [True: 0, False: 0]
  ------------------
  414|      0|    shutdowns = Curl_cshutdn_dest_count(data, conn->destination);
  415|      0|    while((live + shutdowns) >= dest_limit) {
  ------------------
  |  Branch (415:11): [True: 0, False: 0]
  ------------------
  416|      0|      if(shutdowns) {
  ------------------
  |  Branch (416:10): [True: 0, False: 0]
  ------------------
  417|       |        /* close one connection in shutdown right away, if we can */
  418|      0|        if(!Curl_cshutdn_close_oldest(data, conn->destination))
  ------------------
  |  Branch (418:12): [True: 0, False: 0]
  ------------------
  419|      0|          break;
  420|      0|      }
  421|      0|      else if(!bundle)
  ------------------
  |  Branch (421:15): [True: 0, False: 0]
  ------------------
  422|      0|        break;
  423|      0|      else {
  424|      0|        struct connectdata *oldest_idle = NULL;
  425|       |        /* The bundle is full. Extract the oldest connection that may
  426|       |         * be removed now, if there is one. */
  427|      0|        oldest_idle = cpool_bundle_get_oldest_idle(bundle,
  428|      0|                                                   Curl_pgrs_now(data));
  429|      0|        if(!oldest_idle)
  ------------------
  |  Branch (429:12): [True: 0, False: 0]
  ------------------
  430|      0|          break;
  431|       |        /* disconnect the old conn and continue */
  432|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  433|      0|                   " from %zu to reach destination limit of %zu",
  434|      0|                   oldest_idle->connection_id,
  435|      0|                   Curl_llist_count(&bundle->conns), dest_limit);
  436|      0|        cpool_evict_conn(cpool, data, oldest_idle);
  437|       |
  438|       |        /* in case the bundle was destroyed in disconnect, look it up again */
  439|      0|        bundle = cpool_find_bundle(cpool, conn);
  440|      0|        live = bundle ? Curl_llist_count(&bundle->conns) : 0;
  ------------------
  |  Branch (440:16): [True: 0, False: 0]
  ------------------
  441|      0|      }
  442|      0|      shutdowns = Curl_cshutdn_dest_count(data, conn->destination);
  443|      0|    }
  444|      0|    if((live + shutdowns) >= dest_limit) {
  ------------------
  |  Branch (444:8): [True: 0, False: 0]
  ------------------
  445|      0|      res = CPOOL_LIMIT_DEST;
  ------------------
  |  |   91|      0|#define CPOOL_LIMIT_DEST   1
  ------------------
  446|      0|      goto out;
  447|      0|    }
  448|      0|  }
  449|       |
  450|      0|  if(total_limit) {
  ------------------
  |  Branch (450:6): [True: 0, False: 0]
  ------------------
  451|      0|    shutdowns = Curl_cshutdn_count(data);
  452|      0|    while((cpool->num_conn + shutdowns) >= total_limit) {
  ------------------
  |  Branch (452:11): [True: 0, False: 0]
  ------------------
  453|      0|      if(shutdowns) {
  ------------------
  |  Branch (453:10): [True: 0, False: 0]
  ------------------
  454|       |        /* close one connection in shutdown right away, if we can */
  455|      0|        if(!Curl_cshutdn_close_oldest(data, NULL))
  ------------------
  |  Branch (455:12): [True: 0, False: 0]
  ------------------
  456|      0|          break;
  457|      0|      }
  458|      0|      else {
  459|      0|        struct connectdata *oldest_idle =
  460|      0|          cpool_get_oldest_idle(cpool, Curl_pgrs_now(data));
  461|      0|        if(!oldest_idle)
  ------------------
  |  Branch (461:12): [True: 0, False: 0]
  ------------------
  462|      0|          break;
  463|       |        /* disconnect the old conn and continue */
  464|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  465|      0|                   FMT_OFF_T " from %zu to reach total "
  466|      0|                   "limit of %zu",
  467|      0|                   oldest_idle->connection_id, cpool->num_conn, total_limit);
  468|      0|        cpool_evict_conn(cpool, data, oldest_idle);
  469|      0|      }
  470|      0|      shutdowns = Curl_cshutdn_count(data);
  471|      0|    }
  472|      0|    if((cpool->num_conn + shutdowns) >= total_limit) {
  ------------------
  |  Branch (472:8): [True: 0, False: 0]
  ------------------
  473|      0|      res = CPOOL_LIMIT_TOTAL;
  ------------------
  |  |   92|      0|#define CPOOL_LIMIT_TOTAL  2
  ------------------
  474|      0|      goto out;
  475|      0|    }
  476|      0|  }
  477|       |
  478|      0|out:
  479|      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);                                         \
  |  |  ------------------
  |  |  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   56|      0|      (c)->locked = FALSE;                                              \
  |  |  ------------------
  |  |  |  | 1056|      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 (479:3): [True: 0, False: 0]
  |  Branch (479:3): [True: 0, False: 0]
  ------------------
  480|      0|  return res;
  481|      0|}
Curl_cpool_add:
  485|  10.1k|{
  486|  10.1k|  CURLcode result = CURLE_OK;
  487|  10.1k|  struct cpool_bundle *bundle = NULL;
  488|  10.1k|  struct cpool *cpool = cpool_get_instance(data);
  489|  10.1k|  DEBUGASSERT(conn);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (489:3): [True: 0, False: 10.1k]
  |  Branch (489:3): [True: 10.1k, False: 0]
  ------------------
  490|       |
  491|  10.1k|  DEBUGASSERT(cpool);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (491:3): [True: 0, False: 10.1k]
  |  Branch (491:3): [True: 10.1k, False: 0]
  ------------------
  492|  10.1k|  if(!cpool)
  ------------------
  |  Branch (492:6): [True: 0, False: 10.1k]
  ------------------
  493|      0|    return CURLE_FAILED_INIT;
  494|       |
  495|  10.1k|  CPOOL_LOCK(cpool, data);
  ------------------
  |  |   42|  10.1k|  do {                                                                  \
  |  |   43|  10.1k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (43:8): [True: 10.1k, False: 0]
  |  |  ------------------
  |  |   44|  10.1k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  10.1k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 10.1k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|  10.1k|        Curl_share_lock((d), CURL_LOCK_DATA_CONNECT,                    \
  |  |   46|      0|                        CURL_LOCK_ACCESS_SINGLE);                       \
  |  |   47|  10.1k|      DEBUGASSERT(!(c)->locked);                                        \
  |  |  ------------------
  |  |  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   48|  10.1k|      (c)->locked = TRUE;                                               \
  |  |  ------------------
  |  |  |  | 1053|  10.1k|#define TRUE true
  |  |  ------------------
  |  |   49|  10.1k|    }                                                                   \
  |  |   50|  10.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (50:11): [Folded, False: 10.1k]
  |  |  ------------------
  ------------------
  |  Branch (495:3): [True: 0, False: 10.1k]
  |  Branch (495:3): [True: 10.1k, False: 0]
  ------------------
  496|  10.1k|  bundle = cpool_find_bundle(cpool, conn);
  497|  10.1k|  if(!bundle) {
  ------------------
  |  Branch (497:6): [True: 10.1k, False: 27]
  ------------------
  498|  10.1k|    bundle = cpool_add_bundle(cpool, conn);
  499|  10.1k|    if(!bundle) {
  ------------------
  |  Branch (499:8): [True: 0, False: 10.1k]
  ------------------
  500|      0|      result = CURLE_OUT_OF_MEMORY;
  501|      0|      goto out;
  502|      0|    }
  503|  10.1k|  }
  504|       |
  505|  10.1k|  cpool_bundle_add(bundle, conn);
  506|  10.1k|  conn->connection_id = cpool->next_connection_id++;
  507|  10.1k|  cpool->num_conn++;
  508|  10.1k|  CURL_TRC_M(data, "[CPOOL] added connection %" FMT_OFF_T ". "
  ------------------
  |  |  148|  10.1k|  do {                                   \
  |  |  149|  10.1k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  10.1k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  10.1k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  20.2k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 10.1k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 10.1k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  20.2k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  10.1k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  10.1k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  10.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 10.1k]
  |  |  ------------------
  ------------------
  509|  10.1k|             "The cache now contains %zu members",
  510|  10.1k|             conn->connection_id, cpool->num_conn);
  511|  10.1k|out:
  512|  10.1k|  CPOOL_UNLOCK(cpool, data);
  ------------------
  |  |   53|  10.1k|  do {                                                                  \
  |  |   54|  10.1k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (54:8): [True: 10.1k, False: 0]
  |  |  ------------------
  |  |   55|  10.1k|      DEBUGASSERT((c)->locked);                                         \
  |  |  ------------------
  |  |  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   56|  10.1k|      (c)->locked = FALSE;                                              \
  |  |  ------------------
  |  |  |  | 1056|  10.1k|#define FALSE false
  |  |  ------------------
  |  |   57|  10.1k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  10.1k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 10.1k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|  10.1k|        Curl_share_unlock((d), CURL_LOCK_DATA_CONNECT);                 \
  |  |   59|  10.1k|    }                                                                   \
  |  |   60|  10.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (60:11): [Folded, False: 10.1k]
  |  |  ------------------
  ------------------
  |  Branch (512:3): [True: 0, False: 10.1k]
  |  Branch (512:3): [True: 10.1k, False: 0]
  ------------------
  513|       |
  514|  10.1k|  return result;
  515|  10.1k|}
Curl_cpool_conn_now_idle:
  572|  5.88k|{
  573|  5.88k|  unsigned int maxconnects;
  574|  5.88k|  struct connectdata *oldest_idle = NULL;
  575|  5.88k|  struct cpool *cpool = cpool_get_instance(data);
  576|  5.88k|  bool kept = TRUE;
  ------------------
  |  | 1053|  5.88k|#define TRUE true
  ------------------
  577|       |
  578|  5.88k|  if(!data || !data->multi)
  ------------------
  |  Branch (578:6): [True: 0, False: 5.88k]
  |  Branch (578:15): [True: 0, False: 5.88k]
  ------------------
  579|      0|    return kept;
  580|       |
  581|  5.88k|  if(!data->multi->maxconnects) {
  ------------------
  |  Branch (581:6): [True: 5.88k, False: 0]
  ------------------
  582|  5.88k|    unsigned int running = Curl_multi_xfers_running(data->multi);
  583|  5.88k|    maxconnects = (running <= UINT_MAX / 4) ? running * 4 : UINT_MAX;
  ------------------
  |  Branch (583:19): [True: 5.88k, False: 0]
  ------------------
  584|  5.88k|  }
  585|      0|  else {
  586|      0|    maxconnects = data->multi->maxconnects;
  587|      0|  }
  588|       |
  589|  5.88k|  conn->lastused = *Curl_pgrs_now(data); /* it was used up until now */
  590|  5.88k|  if(cpool && maxconnects) {
  ------------------
  |  Branch (590:6): [True: 5.88k, False: 0]
  |  Branch (590:15): [True: 5.88k, False: 0]
  ------------------
  591|       |    /* may be called form a callback already under lock */
  592|  5.88k|    bool do_lock = !CPOOL_IS_LOCKED(cpool);
  ------------------
  |  |   39|  5.88k|#define CPOOL_IS_LOCKED(c)    ((c) && (c)->locked)
  |  |  ------------------
  |  |  |  Branch (39:32): [True: 5.88k, False: 0]
  |  |  |  Branch (39:39): [True: 5.88k, False: 0]
  |  |  ------------------
  ------------------
  593|  5.88k|    if(do_lock)
  ------------------
  |  Branch (593:8): [True: 0, False: 5.88k]
  ------------------
  594|      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);                                        \
  |  |  ------------------
  |  |  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   48|      0|      (c)->locked = TRUE;                                               \
  |  |  ------------------
  |  |  |  | 1053|      0|#define TRUE true
  |  |  ------------------
  |  |   49|      0|    }                                                                   \
  |  |   50|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (50:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (594:7): [True: 0, False: 0]
  |  Branch (594:7): [True: 0, False: 0]
  ------------------
  595|  5.88k|    if(cpool->num_conn > maxconnects) {
  ------------------
  |  Branch (595:8): [True: 0, False: 5.88k]
  ------------------
  596|      0|      infof(data, "Connection pool is full, closing the oldest of %zu/%u",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  597|      0|            cpool->num_conn, maxconnects);
  598|       |
  599|      0|      oldest_idle = cpool_get_oldest_idle(cpool, Curl_pgrs_now(data));
  600|      0|      kept = (oldest_idle != conn);
  601|      0|      if(oldest_idle) {
  ------------------
  |  Branch (601:10): [True: 0, False: 0]
  ------------------
  602|      0|        cpool_evict_conn(cpool, data, oldest_idle);
  603|      0|      }
  604|      0|    }
  605|  5.88k|    if(do_lock)
  ------------------
  |  Branch (605:8): [True: 0, False: 5.88k]
  ------------------
  606|      0|      CPOOL_UNLOCK(cpool, data);
  ------------------
  |  |   53|      0|  do {                                                                  \
  |  |   54|      0|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (54:8): [True: 0, False: 0]
  |  |  ------------------
  |  |   55|      0|      DEBUGASSERT((c)->locked);                                         \
  |  |  ------------------
  |  |  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   56|      0|      (c)->locked = FALSE;                                              \
  |  |  ------------------
  |  |  |  | 1056|      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 (606:7): [True: 0, False: 0]
  |  Branch (606:7): [True: 0, False: 0]
  ------------------
  607|  5.88k|  }
  608|       |
  609|  5.88k|  return kept;
  610|  5.88k|}
Curl_cpool_find:
  617|  13.7k|{
  618|  13.7k|  struct cpool *cpool = cpool_get_instance(data);
  619|  13.7k|  struct cpool_bundle *bundle;
  620|  13.7k|  bool found = FALSE;
  ------------------
  |  | 1056|  13.7k|#define FALSE false
  ------------------
  621|       |
  622|  13.7k|  DEBUGASSERT(cpool);
  ------------------
  |  | 1083|  13.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (622:3): [True: 0, False: 13.7k]
  |  Branch (622:3): [True: 13.7k, False: 0]
  ------------------
  623|  13.7k|  DEBUGASSERT(conn_cb);
  ------------------
  |  | 1083|  13.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (623:3): [True: 0, False: 13.7k]
  |  Branch (623:3): [True: 13.7k, False: 0]
  ------------------
  624|  13.7k|  if(!cpool)
  ------------------
  |  Branch (624:6): [True: 0, False: 13.7k]
  ------------------
  625|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  626|       |
  627|  13.7k|  CPOOL_LOCK(cpool, data);
  ------------------
  |  |   42|  13.7k|  do {                                                                  \
  |  |   43|  13.7k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (43:8): [True: 13.7k, False: 0]
  |  |  ------------------
  |  |   44|  13.7k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  13.7k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 13.7k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|  13.7k|        Curl_share_lock((d), CURL_LOCK_DATA_CONNECT,                    \
  |  |   46|      0|                        CURL_LOCK_ACCESS_SINGLE);                       \
  |  |   47|  13.7k|      DEBUGASSERT(!(c)->locked);                                        \
  |  |  ------------------
  |  |  |  | 1083|  13.7k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   48|  13.7k|      (c)->locked = TRUE;                                               \
  |  |  ------------------
  |  |  |  | 1053|  13.7k|#define TRUE true
  |  |  ------------------
  |  |   49|  13.7k|    }                                                                   \
  |  |   50|  13.7k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (50:11): [Folded, False: 13.7k]
  |  |  ------------------
  ------------------
  |  Branch (627:3): [True: 0, False: 13.7k]
  |  Branch (627:3): [True: 13.7k, False: 0]
  ------------------
  628|  13.7k|  bundle = Curl_hash_pick(&cpool->dest2bundle,
  629|  13.7k|                          CURL_UNCONST(destination),
  ------------------
  |  |  864|  13.7k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
  630|  13.7k|                          strlen(destination) + 1);
  631|  13.7k|  if(bundle) {
  ------------------
  |  Branch (631:6): [True: 4.24k, False: 9.51k]
  ------------------
  632|  4.24k|    struct Curl_llist_node *curr = Curl_llist_head(&bundle->conns);
  633|  4.38k|    while(curr) {
  ------------------
  |  Branch (633:11): [True: 4.24k, False: 137]
  ------------------
  634|  4.24k|      struct connectdata *conn = Curl_node_elem(curr);
  635|       |      /* Get next node now. callback might discard current */
  636|  4.24k|      curr = Curl_node_next(curr);
  637|       |
  638|  4.24k|      if(conn_cb(conn, userdata)) {
  ------------------
  |  Branch (638:10): [True: 4.10k, False: 137]
  ------------------
  639|  4.10k|        found = TRUE;
  ------------------
  |  | 1053|  4.10k|#define TRUE true
  ------------------
  640|  4.10k|        break;
  641|  4.10k|      }
  642|  4.24k|    }
  643|  4.24k|  }
  644|       |
  645|  13.7k|  if(done_cb) {
  ------------------
  |  Branch (645:6): [True: 13.7k, False: 0]
  ------------------
  646|  13.7k|    found = done_cb(userdata);
  647|  13.7k|  }
  648|  13.7k|  CPOOL_UNLOCK(cpool, data);
  ------------------
  |  |   53|  13.7k|  do {                                                                  \
  |  |   54|  13.7k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (54:8): [True: 13.7k, False: 0]
  |  |  ------------------
  |  |   55|  13.7k|      DEBUGASSERT((c)->locked);                                         \
  |  |  ------------------
  |  |  |  | 1083|  13.7k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   56|  13.7k|      (c)->locked = FALSE;                                              \
  |  |  ------------------
  |  |  |  | 1056|  13.7k|#define FALSE false
  |  |  ------------------
  |  |   57|  13.7k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  13.7k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 13.7k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|  13.7k|        Curl_share_unlock((d), CURL_LOCK_DATA_CONNECT);                 \
  |  |   59|  13.7k|    }                                                                   \
  |  |   60|  13.7k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (60:11): [Folded, False: 13.7k]
  |  |  ------------------
  ------------------
  |  Branch (648:3): [True: 0, False: 13.7k]
  |  Branch (648:3): [True: 13.7k, False: 0]
  ------------------
  649|  13.7k|  return found;
  650|  13.7k|}
Curl_conn_terminate:
  655|  8.94k|{
  656|  8.94k|  struct cpool *cpool = cpool_get_instance(data);
  657|  8.94k|  bool do_lock;
  658|       |
  659|  8.94k|  DEBUGASSERT(cpool);
  ------------------
  |  | 1083|  8.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (659:3): [True: 0, False: 8.94k]
  |  Branch (659:3): [True: 8.94k, False: 0]
  ------------------
  660|  8.94k|  DEBUGASSERT(data && !data->conn);
  ------------------
  |  | 1083|  8.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (660:3): [True: 0, False: 8.94k]
  |  Branch (660:3): [True: 0, False: 0]
  |  Branch (660:3): [True: 8.94k, False: 0]
  |  Branch (660:3): [True: 8.94k, False: 0]
  ------------------
  661|  8.94k|  if(!cpool)
  ------------------
  |  Branch (661:6): [True: 0, False: 8.94k]
  ------------------
  662|      0|    return;
  663|       |
  664|       |  /* If this connection is not marked to force-close, leave it open if there
  665|       |   * are other users of it */
  666|  8.94k|  if(CONN_INUSE(conn) && !aborted) {
  ------------------
  |  |  272|  17.8k|#define CONN_INUSE(c) (!!(c)->attached_xfers)
  |  |  ------------------
  |  |  |  Branch (272:23): [True: 0, False: 8.94k]
  |  |  ------------------
  ------------------
  |  Branch (666:26): [True: 0, False: 0]
  ------------------
  667|      0|    DEBUGASSERT(0); /* does this ever happen? */
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (667:5): [Folded, False: 0]
  |  Branch (667:5): [Folded, False: 0]
  ------------------
  668|      0|    DEBUGF(infof(data, "conn terminate when inuse: %u", conn->attached_xfers));
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [Folded, False: 0]
  |  |  ------------------
  ------------------
  669|      0|    return;
  670|      0|  }
  671|       |
  672|       |  /* This method may be called while we are under lock, e.g. from a
  673|       |   * user callback in find. */
  674|  8.94k|  do_lock = !CPOOL_IS_LOCKED(cpool);
  ------------------
  |  |   39|  8.94k|#define CPOOL_IS_LOCKED(c)    ((c) && (c)->locked)
  |  |  ------------------
  |  |  |  Branch (39:32): [True: 8.94k, False: 0]
  |  |  |  Branch (39:39): [True: 8.48k, False: 456]
  |  |  ------------------
  ------------------
  675|  8.94k|  if(do_lock)
  ------------------
  |  Branch (675:6): [True: 456, False: 8.48k]
  ------------------
  676|    456|    CPOOL_LOCK(cpool, data);
  ------------------
  |  |   42|    456|  do {                                                                  \
  |  |   43|    456|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (43:8): [True: 456, False: 0]
  |  |  ------------------
  |  |   44|    456|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|    456|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 456]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|    456|        Curl_share_lock((d), CURL_LOCK_DATA_CONNECT,                    \
  |  |   46|      0|                        CURL_LOCK_ACCESS_SINGLE);                       \
  |  |   47|    456|      DEBUGASSERT(!(c)->locked);                                        \
  |  |  ------------------
  |  |  |  | 1083|    456|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   48|    456|      (c)->locked = TRUE;                                               \
  |  |  ------------------
  |  |  |  | 1053|    456|#define TRUE true
  |  |  ------------------
  |  |   49|    456|    }                                                                   \
  |  |   50|    456|  } while(0)
  |  |  ------------------
  |  |  |  Branch (50:11): [Folded, False: 456]
  |  |  ------------------
  ------------------
  |  Branch (676:5): [True: 0, False: 456]
  |  Branch (676:5): [True: 456, False: 0]
  ------------------
  677|       |
  678|  8.94k|  if(conn->bits.in_cpool) {
  ------------------
  |  Branch (678:6): [True: 8.94k, False: 0]
  ------------------
  679|  8.94k|    cpool_remove_conn(cpool, conn);
  680|  8.94k|    DEBUGASSERT(!conn->bits.in_cpool);
  ------------------
  |  | 1083|  8.94k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (680:5): [True: 0, False: 8.94k]
  |  Branch (680:5): [True: 8.94k, False: 0]
  ------------------
  681|  8.94k|  }
  682|       |
  683|       |  /* treat the connection as aborted in CONNECT_ONLY situations,
  684|       |   * so no graceful shutdown is attempted. */
  685|  8.94k|  if(conn->bits.connect_only)
  ------------------
  |  Branch (685:6): [True: 489, False: 8.45k]
  ------------------
  686|    489|    aborted = TRUE;
  ------------------
  |  | 1053|    489|#define TRUE true
  ------------------
  687|       |
  688|  8.94k|  if(data->multi) {
  ------------------
  |  Branch (688:6): [True: 8.94k, False: 0]
  ------------------
  689|       |    /* Add it to the multi's cpool for shutdown handling */
  690|  8.94k|    infof(data, "%s connection #%" FMT_OFF_T,
  ------------------
  |  |  143|  8.94k|  do {                               \
  |  |  144|  8.94k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|  8.94k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 8.94k, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 8.94k]
  |  |  |  |  ------------------
  |  |  |  |  323|  8.94k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  8.94k|      Curl_infof(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  ------------------
  |  |  146|  8.94k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 8.94k]
  |  |  ------------------
  ------------------
  691|  8.94k|          aborted ? "closing" : "shutting down", conn->connection_id);
  692|  8.94k|    cpool_discard_conn(&data->multi->cpool, data, conn, aborted);
  693|  8.94k|  }
  694|      0|  else {
  695|       |    /* No multi available, terminate */
  696|      0|    infof(data, "closing connection #%" FMT_OFF_T, conn->connection_id);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  697|      0|    Curl_cshutdn_terminate(cpool->idata, conn, !aborted);
  698|      0|  }
  699|       |
  700|  8.94k|  if(do_lock)
  ------------------
  |  Branch (700:6): [True: 456, False: 8.48k]
  ------------------
  701|       |    CPOOL_UNLOCK(cpool, data);
  ------------------
  |  |   53|    456|  do {                                                                  \
  |  |   54|    456|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (54:8): [True: 456, False: 0]
  |  |  ------------------
  |  |   55|    456|      DEBUGASSERT((c)->locked);                                         \
  |  |  ------------------
  |  |  |  | 1083|    456|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   56|    456|      (c)->locked = FALSE;                                              \
  |  |  ------------------
  |  |  |  | 1056|    456|#define FALSE false
  |  |  ------------------
  |  |   57|    456|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|    456|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 456]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|    456|        Curl_share_unlock((d), CURL_LOCK_DATA_CONNECT);                 \
  |  |   59|    456|    }                                                                   \
  |  |   60|    456|  } while(0)
  |  |  ------------------
  |  |  |  Branch (60:11): [Folded, False: 456]
  |  |  ------------------
  ------------------
  |  Branch (701:5): [True: 0, False: 456]
  |  Branch (701:5): [True: 456, False: 0]
  ------------------
  702|  8.94k|}
Curl_cpool_prune_dead:
  734|  13.7k|{
  735|  13.7k|  struct cpool *cpool = cpool_get_instance(data);
  736|  13.7k|  timediff_t elapsed;
  737|       |
  738|  13.7k|  if(!cpool)
  ------------------
  |  Branch (738:6): [True: 0, False: 13.7k]
  ------------------
  739|      0|    return;
  740|       |
  741|  13.7k|  CPOOL_LOCK(cpool, data);
  ------------------
  |  |   42|  13.7k|  do {                                                                  \
  |  |   43|  13.7k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (43:8): [True: 13.7k, False: 0]
  |  |  ------------------
  |  |   44|  13.7k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  13.7k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 13.7k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|  13.7k|        Curl_share_lock((d), CURL_LOCK_DATA_CONNECT,                    \
  |  |   46|      0|                        CURL_LOCK_ACCESS_SINGLE);                       \
  |  |   47|  13.7k|      DEBUGASSERT(!(c)->locked);                                        \
  |  |  ------------------
  |  |  |  | 1083|  13.7k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   48|  13.7k|      (c)->locked = TRUE;                                               \
  |  |  ------------------
  |  |  |  | 1053|  13.7k|#define TRUE true
  |  |  ------------------
  |  |   49|  13.7k|    }                                                                   \
  |  |   50|  13.7k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (50:11): [Folded, False: 13.7k]
  |  |  ------------------
  ------------------
  |  Branch (741:3): [True: 0, False: 13.7k]
  |  Branch (741:3): [True: 13.7k, False: 0]
  ------------------
  742|  13.7k|  elapsed = curlx_ptimediff_ms(Curl_pgrs_now(data), &cpool->last_cleanup);
  743|       |
  744|  13.7k|  if(elapsed >= 1000L) {
  ------------------
  |  Branch (744:6): [True: 8.85k, False: 4.90k]
  ------------------
  745|  8.85k|    struct cpool_reaper_ctx reaper;
  746|       |
  747|  8.85k|    memset(&reaper, 0, sizeof(reaper));
  748|  8.85k|    reaper.now = *Curl_pgrs_now(data);
  749|  8.86k|    while(cpool_foreach(data, cpool, &reaper, cpool_reap_dead_cb))
  ------------------
  |  Branch (749:11): [True: 10, False: 8.85k]
  ------------------
  750|     10|      ;
  751|  8.85k|    cpool->last_cleanup = *Curl_pgrs_now(data);
  752|  8.85k|  }
  753|       |  CPOOL_UNLOCK(cpool, data);
  ------------------
  |  |   53|  13.7k|  do {                                                                  \
  |  |   54|  13.7k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (54:8): [True: 13.7k, False: 0]
  |  |  ------------------
  |  |   55|  13.7k|      DEBUGASSERT((c)->locked);                                         \
  |  |  ------------------
  |  |  |  | 1083|  13.7k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   56|  13.7k|      (c)->locked = FALSE;                                              \
  |  |  ------------------
  |  |  |  | 1056|  13.7k|#define FALSE false
  |  |  ------------------
  |  |   57|  13.7k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  13.7k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 13.7k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|  13.7k|        Curl_share_unlock((d), CURL_LOCK_DATA_CONNECT);                 \
  |  |   59|  13.7k|    }                                                                   \
  |  |   60|  13.7k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (60:11): [Folded, False: 13.7k]
  |  |  ------------------
  ------------------
  |  Branch (753:3): [True: 0, False: 13.7k]
  |  Branch (753:3): [True: 13.7k, False: 0]
  ------------------
  754|  13.7k|}
Curl_cpool_get_conn:
  812|  5.72k|{
  813|  5.72k|  struct cpool *cpool = cpool_get_instance(data);
  814|  5.72k|  struct cpool_find_ctx fctx;
  815|       |
  816|  5.72k|  if(!cpool)
  ------------------
  |  Branch (816:6): [True: 0, False: 5.72k]
  ------------------
  817|      0|    return NULL;
  818|  5.72k|  fctx.id = conn_id;
  819|  5.72k|  fctx.conn = NULL;
  820|  5.72k|  CPOOL_LOCK(cpool, data);
  ------------------
  |  |   42|  5.72k|  do {                                                                  \
  |  |   43|  5.72k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (43:8): [True: 5.72k, False: 0]
  |  |  ------------------
  |  |   44|  5.72k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  5.72k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 5.72k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|  5.72k|        Curl_share_lock((d), CURL_LOCK_DATA_CONNECT,                    \
  |  |   46|      0|                        CURL_LOCK_ACCESS_SINGLE);                       \
  |  |   47|  5.72k|      DEBUGASSERT(!(c)->locked);                                        \
  |  |  ------------------
  |  |  |  | 1083|  5.72k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   48|  5.72k|      (c)->locked = TRUE;                                               \
  |  |  ------------------
  |  |  |  | 1053|  5.72k|#define TRUE true
  |  |  ------------------
  |  |   49|  5.72k|    }                                                                   \
  |  |   50|  5.72k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (50:11): [Folded, False: 5.72k]
  |  |  ------------------
  ------------------
  |  Branch (820:3): [True: 0, False: 5.72k]
  |  Branch (820:3): [True: 5.72k, False: 0]
  ------------------
  821|  5.72k|  cpool_foreach(data, cpool, &fctx, cpool_find_conn);
  822|  5.72k|  CPOOL_UNLOCK(cpool, data);
  ------------------
  |  |   53|  5.72k|  do {                                                                  \
  |  |   54|  5.72k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (54:8): [True: 5.72k, False: 0]
  |  |  ------------------
  |  |   55|  5.72k|      DEBUGASSERT((c)->locked);                                         \
  |  |  ------------------
  |  |  |  | 1083|  5.72k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   56|  5.72k|      (c)->locked = FALSE;                                              \
  |  |  ------------------
  |  |  |  | 1056|  5.72k|#define FALSE false
  |  |  ------------------
  |  |   57|  5.72k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  5.72k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 5.72k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|  5.72k|        Curl_share_unlock((d), CURL_LOCK_DATA_CONNECT);                 \
  |  |   59|  5.72k|    }                                                                   \
  |  |   60|  5.72k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (60:11): [Folded, False: 5.72k]
  |  |  ------------------
  ------------------
  |  Branch (822:3): [True: 0, False: 5.72k]
  |  Branch (822:3): [True: 5.72k, False: 0]
  ------------------
  823|  5.72k|  return fctx.conn;
  824|  5.72k|}
Curl_cpool_do_locked:
  829|  14.2k|{
  830|  14.2k|  struct cpool *cpool = cpool_get_instance(data);
  831|  14.2k|  if(cpool) {
  ------------------
  |  Branch (831:6): [True: 14.2k, False: 0]
  ------------------
  832|  14.2k|    CPOOL_LOCK(cpool, data);
  ------------------
  |  |   42|  14.2k|  do {                                                                  \
  |  |   43|  14.2k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (43:8): [True: 14.2k, False: 0]
  |  |  ------------------
  |  |   44|  14.2k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  14.2k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 14.2k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|  14.2k|        Curl_share_lock((d), CURL_LOCK_DATA_CONNECT,                    \
  |  |   46|      0|                        CURL_LOCK_ACCESS_SINGLE);                       \
  |  |   47|  14.2k|      DEBUGASSERT(!(c)->locked);                                        \
  |  |  ------------------
  |  |  |  | 1083|  14.2k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   48|  14.2k|      (c)->locked = TRUE;                                               \
  |  |  ------------------
  |  |  |  | 1053|  14.2k|#define TRUE true
  |  |  ------------------
  |  |   49|  14.2k|    }                                                                   \
  |  |   50|  14.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (50:11): [Folded, False: 14.2k]
  |  |  ------------------
  ------------------
  |  Branch (832:5): [True: 0, False: 14.2k]
  |  Branch (832:5): [True: 14.2k, False: 0]
  ------------------
  833|  14.2k|    cb(conn, data, cbdata);
  834|  14.2k|    CPOOL_UNLOCK(cpool, data);
  ------------------
  |  |   53|  14.2k|  do {                                                                  \
  |  |   54|  14.2k|    if(c) {                                                             \
  |  |  ------------------
  |  |  |  Branch (54:8): [True: 14.2k, False: 0]
  |  |  ------------------
  |  |   55|  14.2k|      DEBUGASSERT((c)->locked);                                         \
  |  |  ------------------
  |  |  |  | 1083|  14.2k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |   56|  14.2k|      (c)->locked = FALSE;                                              \
  |  |  ------------------
  |  |  |  | 1056|  14.2k|#define FALSE false
  |  |  ------------------
  |  |   57|  14.2k|      if(CURL_SHARE_KEEP_CONNECT((c)->share))                           \
  |  |  ------------------
  |  |  |  |   41|  14.2k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:4): [True: 0, False: 14.2k]
  |  |  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|  14.2k|        Curl_share_unlock((d), CURL_LOCK_DATA_CONNECT);                 \
  |  |   59|  14.2k|    }                                                                   \
  |  |   60|  14.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (60:11): [Folded, False: 14.2k]
  |  |  ------------------
  ------------------
  |  Branch (834:5): [True: 0, False: 14.2k]
  |  Branch (834:5): [True: 14.2k, False: 0]
  ------------------
  835|  14.2k|  }
  836|      0|  else
  837|      0|    cb(conn, data, cbdata);
  838|  14.2k|}
Curl_cpool_conn_seems_healthy:
  909|  4.22k|{
  910|  4.22k|  bool healthy = TRUE;
  ------------------
  |  | 1053|  4.22k|#define TRUE true
  ------------------
  911|       |
  912|  4.22k|  DEBUGASSERT(!data->conn);
  ------------------
  |  | 1083|  4.22k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (912:3): [True: 0, False: 4.22k]
  |  Branch (912:3): [True: 4.22k, False: 0]
  ------------------
  913|  4.22k|  if(!CONN_INUSE(conn) && cpool_conn_maxage(data, conn, pnow)) /* too old? */
  ------------------
  |  |  272|  8.45k|#define CONN_INUSE(c) (!!(c)->attached_xfers)
  ------------------
  |  Branch (913:6): [True: 4.22k, False: 0]
  |  Branch (913:27): [True: 0, False: 4.22k]
  ------------------
  914|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  915|  4.22k|  else if(curlx_ptimediff_ms(pnow, &conn->lastchecked) < 1000)
  ------------------
  |  Branch (915:11): [True: 3.33k, False: 897]
  ------------------
  916|  3.33k|    return TRUE;
  ------------------
  |  | 1053|  3.33k|#define TRUE true
  ------------------
  917|    897|  else if(conn->scheme->run->connection_is_dead) {
  ------------------
  |  Branch (917:11): [True: 0, False: 897]
  ------------------
  918|      0|    Curl_attach_connection(data, conn);
  919|      0|    healthy = !conn->scheme->run->connection_is_dead(data, conn);
  920|      0|    Curl_detach_connection(data);
  921|      0|  }
  922|    897|  else {
  923|    897|    bool input_pending = FALSE;
  ------------------
  |  | 1056|    897|#define FALSE false
  ------------------
  924|       |
  925|    897|    Curl_attach_connection(data, conn);
  926|    897|    healthy = Curl_conn_is_alive(data, conn, &input_pending);
  927|    897|    Curl_detach_connection(data);
  928|    897|    if(healthy && input_pending &&
  ------------------
  |  Branch (928:8): [True: 897, False: 0]
  |  Branch (928:19): [True: 121, False: 776]
  ------------------
  929|    121|       !CONN_INUSE(conn) && !Curl_conn_is_multiplex(conn, FIRSTSOCKET)) {
  ------------------
  |  |  272|  1.01k|#define CONN_INUSE(c) (!!(c)->attached_xfers)
  ------------------
                     !CONN_INUSE(conn) && !Curl_conn_is_multiplex(conn, FIRSTSOCKET)) {
  ------------------
  |  |  233|    121|#define FIRSTSOCKET     0
  ------------------
  |  Branch (929:8): [True: 121, False: 0]
  |  Branch (929:29): [True: 121, False: 0]
  ------------------
  930|       |      /* Non-multiplexed connections without attached transfers should
  931|       |       * not have input pending. The input might be a TLS Notify Close,
  932|       |       * for all we know. */
  933|    121|      DEBUGF(infof(data, "connection has no transfer but input, not healthy"));
  ------------------
  |  | 1069|    847|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1069:19): [True: 121, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 121]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [Folded, False: 121]
  |  |  ------------------
  ------------------
  934|    121|      healthy = FALSE;
  ------------------
  |  | 1056|    121|#define FALSE false
  ------------------
  935|    121|    }
  936|    897|  }
  937|       |
  938|    897|  if(healthy)
  ------------------
  |  Branch (938:6): [True: 776, False: 121]
  ------------------
  939|    776|    conn->lastchecked = *pnow;
  940|    897|  return healthy;
  941|  4.22k|}
conncache.c:cpool_bundle_free_entry:
  109|  10.1k|{
  110|  10.1k|  cpool_bundle_destroy((struct cpool_bundle *)freethis);
  111|  10.1k|}
conncache.c:cpool_bundle_destroy:
   84|  10.1k|{
   85|  10.1k|  DEBUGASSERT(!Curl_llist_count(&bundle->conns));
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (85:3): [True: 0, False: 10.1k]
  |  Branch (85:3): [True: 10.1k, False: 0]
  ------------------
   86|  10.1k|  curlx_free(bundle);
  ------------------
  |  | 1482|  10.1k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   87|  10.1k|}
conncache.c:cpool_get_first:
  130|  11.1k|{
  131|  11.1k|  struct Curl_hash_iterator iter;
  132|  11.1k|  struct Curl_hash_element *he;
  133|  11.1k|  struct cpool_bundle *bundle;
  134|  11.1k|  struct Curl_llist_node *conn_node;
  135|       |
  136|  11.1k|  Curl_hash_start_iterate(&cpool->dest2bundle, &iter);
  137|  11.1k|  for(he = Curl_hash_next_element(&iter); he;
  ------------------
  |  Branch (137:43): [True: 1.20k, False: 9.97k]
  ------------------
  138|  11.1k|      he = Curl_hash_next_element(&iter)) {
  139|  1.20k|    bundle = he->ptr;
  140|  1.20k|    conn_node = Curl_llist_head(&bundle->conns);
  141|  1.20k|    if(conn_node)
  ------------------
  |  Branch (141:8): [True: 1.20k, False: 0]
  ------------------
  142|  1.20k|      return Curl_node_elem(conn_node);
  143|  1.20k|  }
  144|  9.97k|  return NULL;
  145|  11.1k|}
conncache.c:cpool_remove_conn:
  164|  10.1k|{
  165|  10.1k|  struct Curl_llist *list = Curl_node_llist(&conn->cpool_node);
  166|  10.1k|  DEBUGASSERT(cpool);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (166:3): [True: 0, False: 10.1k]
  |  Branch (166:3): [True: 10.1k, False: 0]
  ------------------
  167|  10.1k|  if(list) {
  ------------------
  |  Branch (167:6): [True: 10.1k, False: 0]
  ------------------
  168|       |    /* The connection is certainly in the pool, but where? */
  169|  10.1k|    struct cpool_bundle *bundle = cpool_find_bundle(cpool, conn);
  170|  10.1k|    if(bundle && (list == &bundle->conns)) {
  ------------------
  |  Branch (170:8): [True: 10.1k, False: 0]
  |  Branch (170:18): [True: 10.1k, False: 0]
  ------------------
  171|  10.1k|      cpool_bundle_remove(bundle, conn);
  172|  10.1k|      if(!Curl_llist_count(&bundle->conns))
  ------------------
  |  Branch (172:10): [True: 10.1k, False: 27]
  ------------------
  173|  10.1k|        cpool_remove_bundle(cpool, bundle);
  174|  10.1k|      conn->bits.in_cpool = FALSE;
  ------------------
  |  | 1056|  10.1k|#define FALSE false
  ------------------
  175|  10.1k|      cpool->num_conn--;
  176|  10.1k|    }
  177|      0|    else {
  178|       |      /* Should have been in the bundle list */
  179|       |      DEBUGASSERT(NULL);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (179:7): [True: 0, False: 0]
  |  Branch (179:7): [True: 0, False: 0]
  ------------------
  180|      0|    }
  181|  10.1k|  }
  182|  10.1k|}
conncache.c:cpool_bundle_remove:
  101|  10.1k|{
  102|  10.1k|  (void)bundle;
  103|  10.1k|  DEBUGASSERT(Curl_node_llist(&conn->cpool_node) == &bundle->conns);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (103:3): [True: 0, False: 10.1k]
  |  Branch (103:3): [True: 10.1k, False: 0]
  ------------------
  104|  10.1k|  Curl_node_remove(&conn->cpool_node);
  105|       |  conn->bits.in_cpool = FALSE;
  ------------------
  |  | 1056|  10.1k|#define FALSE false
  ------------------
  106|  10.1k|}
conncache.c:cpool_remove_bundle:
  156|  10.1k|{
  157|  10.1k|  if(!cpool)
  ------------------
  |  Branch (157:6): [True: 0, False: 10.1k]
  ------------------
  158|      0|    return;
  159|  10.1k|  Curl_hash_delete(&cpool->dest2bundle, bundle->dest, bundle->dest_len);
  160|  10.1k|}
conncache.c:cpool_discard_conn:
  188|  10.1k|{
  189|  10.1k|  bool done = FALSE;
  ------------------
  |  | 1056|  10.1k|#define FALSE false
  ------------------
  190|       |
  191|  10.1k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (191:3): [True: 0, False: 10.1k]
  |  Branch (191:3): [True: 10.1k, False: 0]
  ------------------
  192|  10.1k|  DEBUGASSERT(!data->conn);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (192:3): [True: 0, False: 10.1k]
  |  Branch (192:3): [True: 10.1k, False: 0]
  ------------------
  193|  10.1k|  DEBUGASSERT(cpool);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (193:3): [True: 0, False: 10.1k]
  |  Branch (193:3): [True: 10.1k, False: 0]
  ------------------
  194|  10.1k|  DEBUGASSERT(!conn->bits.in_cpool);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (194:3): [True: 0, False: 10.1k]
  |  Branch (194:3): [True: 10.1k, 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|  10.1k|  if(CONN_INUSE(conn) && !aborted) {
  ------------------
  |  |  272|  20.2k|#define CONN_INUSE(c) (!!(c)->attached_xfers)
  |  |  ------------------
  |  |  |  Branch (272:23): [True: 0, False: 10.1k]
  |  |  ------------------
  ------------------
  |  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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330: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|  10.1k|  if(conn->bits.connect_only)
  ------------------
  |  Branch (209:6): [True: 489, False: 9.65k]
  ------------------
  210|    489|    aborted = TRUE;
  ------------------
  |  | 1053|    489|#define TRUE true
  ------------------
  211|  10.1k|  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|  10.1k|  if(aborted)
  ------------------
  |  Branch (218:6): [True: 6.81k, False: 3.32k]
  ------------------
  219|  6.81k|    done = TRUE;
  ------------------
  |  | 1053|  6.81k|#define TRUE true
  ------------------
  220|  10.1k|  if(!done) {
  ------------------
  |  Branch (220:6): [True: 3.32k, False: 6.81k]
  ------------------
  221|       |    /* Attempt to shutdown the connection right away. */
  222|  3.32k|    Curl_cshutdn_run_once(cpool->idata, conn, &done);
  223|  3.32k|  }
  224|       |
  225|  10.1k|  if(done || !data->multi)
  ------------------
  |  Branch (225:6): [True: 10.1k, False: 26]
  |  Branch (225:14): [True: 0, False: 26]
  ------------------
  226|  10.1k|    Curl_cshutdn_terminate(cpool->idata, conn, FALSE);
  ------------------
  |  | 1056|  10.1k|#define FALSE false
  ------------------
  227|     26|  else
  228|     26|    Curl_cshutdn_add(&data->multi->cshutdn, conn, cpool->num_conn);
  229|  10.1k|}
conncache.c:cpool_get_instance:
  257|  92.5k|{
  258|  92.5k|  if(data) {
  ------------------
  |  Branch (258:6): [True: 92.5k, False: 0]
  ------------------
  259|  92.5k|    if(CURL_SHARE_KEEP_CONNECT(data->share))
  ------------------
  |  |   41|  92.5k|  ((s) && ((s)->specifier & (1 << CURL_LOCK_DATA_CONNECT)))
  |  |  ------------------
  |  |  |  Branch (41:4): [True: 0, False: 92.5k]
  |  |  |  Branch (41:11): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  260|      0|      return &data->share->cpool;
  261|  92.5k|    else if(data->multi_easy)
  ------------------
  |  Branch (261:13): [True: 0, False: 92.5k]
  ------------------
  262|      0|      return &data->multi_easy->cpool;
  263|  92.5k|    else if(data->multi)
  ------------------
  |  Branch (263:13): [True: 92.5k, False: 0]
  ------------------
  264|  92.5k|      return &data->multi->cpool;
  265|  92.5k|  }
  266|      0|  return NULL;
  267|  92.5k|}
conncache.c:cpool_find_bundle:
  149|  20.2k|{
  150|  20.2k|  return Curl_hash_pick(&cpool->dest2bundle,
  151|  20.2k|                        conn->destination, strlen(conn->destination) + 1);
  152|  20.2k|}
conncache.c:cpool_add_bundle:
  293|  10.1k|{
  294|  10.1k|  struct cpool_bundle *bundle;
  295|       |
  296|  10.1k|  bundle = cpool_bundle_create(conn->destination);
  297|  10.1k|  if(!bundle)
  ------------------
  |  Branch (297:6): [True: 0, False: 10.1k]
  ------------------
  298|      0|    return NULL;
  299|       |
  300|  10.1k|  if(!Curl_hash_add(&cpool->dest2bundle,
  ------------------
  |  Branch (300:6): [True: 0, False: 10.1k]
  ------------------
  301|  10.1k|                    bundle->dest, bundle->dest_len, bundle)) {
  302|      0|    cpool_bundle_destroy(bundle);
  303|      0|    return NULL;
  304|      0|  }
  305|  10.1k|  return bundle;
  306|  10.1k|}
conncache.c:cpool_bundle_create:
   70|  10.1k|{
   71|  10.1k|  struct cpool_bundle *bundle;
   72|  10.1k|  size_t dest_len = strlen(dest) + 1;
   73|       |
   74|  10.1k|  bundle = curlx_calloc(1, sizeof(*bundle) + dest_len - 1);
  ------------------
  |  | 1479|  10.1k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
   75|  10.1k|  if(!bundle)
  ------------------
  |  Branch (75:6): [True: 0, False: 10.1k]
  ------------------
   76|      0|    return NULL;
   77|  10.1k|  Curl_llist_init(&bundle->conns, NULL);
   78|  10.1k|  bundle->dest_len = dest_len;
   79|  10.1k|  memcpy(bundle->dest, dest, bundle->dest_len);
   80|  10.1k|  return bundle;
   81|  10.1k|}
conncache.c:cpool_bundle_add:
   92|  10.1k|{
   93|  10.1k|  DEBUGASSERT(!Curl_node_llist(&conn->cpool_node));
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (93:3): [True: 0, False: 10.1k]
  |  Branch (93:3): [True: 10.1k, False: 0]
  ------------------
   94|  10.1k|  Curl_llist_append(&bundle->conns, conn, &conn->cpool_node);
   95|       |  conn->bits.in_cpool = TRUE;
  ------------------
  |  | 1053|  10.1k|#define TRUE true
  ------------------
   96|  10.1k|}
conncache.c:cpool_foreach:
  534|  14.5k|{
  535|  14.5k|  struct Curl_hash_iterator iter;
  536|  14.5k|  struct Curl_hash_element *he;
  537|       |
  538|  14.5k|  if(!cpool)
  ------------------
  |  Branch (538:6): [True: 0, False: 14.5k]
  ------------------
  539|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  540|       |
  541|  14.5k|  Curl_hash_start_iterate(&cpool->dest2bundle, &iter);
  542|       |
  543|  14.5k|  he = Curl_hash_next_element(&iter);
  544|  14.5k|  while(he) {
  ------------------
  |  Branch (544:9): [True: 5.73k, False: 8.85k]
  ------------------
  545|  5.73k|    struct Curl_llist_node *curr;
  546|  5.73k|    struct cpool_bundle *bundle = he->ptr;
  547|  5.73k|    he = Curl_hash_next_element(&iter);
  548|       |
  549|  5.73k|    curr = Curl_llist_head(&bundle->conns);
  550|  5.73k|    while(curr) {
  ------------------
  |  Branch (550:11): [True: 5.73k, False: 0]
  ------------------
  551|       |      /* Yes, we need to update curr before calling func(), because func()
  552|       |         might decide to remove the connection */
  553|  5.73k|      struct connectdata *conn = Curl_node_elem(curr);
  554|  5.73k|      curr = Curl_node_next(curr);
  555|       |
  556|  5.73k|      if(func(data, conn, param) == 1) {
  ------------------
  |  Branch (556:10): [True: 5.73k, False: 0]
  ------------------
  557|  5.73k|        return TRUE;
  ------------------
  |  | 1053|  5.73k|#define TRUE true
  ------------------
  558|  5.73k|      }
  559|  5.73k|    }
  560|  5.73k|  }
  561|  8.85k|  return FALSE;
  ------------------
  |  | 1056|  8.85k|#define FALSE false
  ------------------
  562|  14.5k|}
conncache.c:cpool_reap_dead_cb:
  711|     10|{
  712|     10|  struct cpool_reaper_ctx *reaper = param;
  713|       |
  714|     10|  if(!CONN_INUSE(conn)) {
  ------------------
  |  |  272|     10|#define CONN_INUSE(c) (!!(c)->attached_xfers)
  ------------------
  |  Branch (714:6): [True: 10, False: 0]
  ------------------
  715|     10|    if(conn->bits.no_reuse || conn->bits.close ||
  ------------------
  |  Branch (715:8): [True: 0, False: 10]
  |  Branch (715:31): [True: 0, False: 10]
  ------------------
  716|     10|       !Curl_cpool_conn_seems_healthy(conn, data, &reaper->now)) {
  ------------------
  |  Branch (716:8): [True: 10, False: 0]
  ------------------
  717|       |      /* terminate conn and stop the iteration */
  718|     10|      reaper->reaped++;
  719|     10|      Curl_conn_terminate(data, conn, FALSE);
  ------------------
  |  | 1056|     10|#define FALSE false
  ------------------
  720|     10|      return 1;
  721|     10|    }
  722|     10|  }
  723|      0|  return 0; /* continue iteration */
  724|     10|}
conncache.c:cpool_find_conn:
  800|  5.72k|{
  801|  5.72k|  struct cpool_find_ctx *fctx = param;
  802|  5.72k|  (void)data;
  803|  5.72k|  if(conn->connection_id == fctx->id) {
  ------------------
  |  Branch (803:6): [True: 5.72k, False: 0]
  ------------------
  804|  5.72k|    fctx->conn = conn;
  805|  5.72k|    return 1;
  806|  5.72k|  }
  807|      0|  return 0;
  808|  5.72k|}
conncache.c:cpool_conn_maxage:
  879|  4.22k|{
  880|  4.22k|  timediff_t age_ms;
  881|       |
  882|  4.22k|  if(data->set.conn_max_idle_ms) {
  ------------------
  |  Branch (882:6): [True: 4.22k, False: 0]
  ------------------
  883|  4.22k|    age_ms = curlx_ptimediff_ms(pnow, &conn->lastused);
  884|  4.22k|    if(age_ms > data->set.conn_max_idle_ms) {
  ------------------
  |  Branch (884:8): [True: 0, False: 4.22k]
  ------------------
  885|      0|      infof(data, "Too old connection (%" FMT_TIMEDIFF_T
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  886|      0|            " ms idle, max idle is %" FMT_TIMEDIFF_T " ms), disconnect it",
  887|      0|            age_ms, data->set.conn_max_idle_ms);
  888|      0|      return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  889|      0|    }
  890|  4.22k|  }
  891|       |
  892|  4.22k|  if(data->set.conn_max_age_ms) {
  ------------------
  |  Branch (892:6): [True: 4.22k, False: 0]
  ------------------
  893|  4.22k|    age_ms = curlx_ptimediff_ms(pnow, &conn->created);
  894|  4.22k|    if(age_ms > data->set.conn_max_age_ms) {
  ------------------
  |  Branch (894:8): [True: 0, False: 4.22k]
  ------------------
  895|      0|      infof(data,
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  896|      0|            "Too old connection (created %" FMT_TIMEDIFF_T
  897|      0|            " ms ago, max lifetime is %" FMT_TIMEDIFF_T " ms), disconnect it",
  898|      0|            age_ms, data->set.conn_max_age_ms);
  899|      0|      return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  900|      0|    }
  901|  4.22k|  }
  902|       |
  903|  4.22k|  return FALSE;
  ------------------
  |  | 1056|  4.22k|#define FALSE false
  ------------------
  904|  4.22k|}

timeleft_now_ms:
   74|   396k|{
   75|   396k|  timediff_t timeleft_ms = 0;
   76|   396k|  timediff_t ctimeleft_ms = 0;
   77|       |
   78|   396k|  if(data->conn && Curl_shutdown_started(data->conn, FIRSTSOCKET))
  ------------------
  |  |  233|   380k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (78:6): [True: 380k, False: 15.5k]
  |  Branch (78:20): [True: 0, False: 380k]
  ------------------
   79|      0|    return Curl_shutdown_timeleft(data, data->conn, FIRSTSOCKET);
  ------------------
  |  |  233|      0|#define FIRSTSOCKET     0
  ------------------
   80|   396k|  else if(Curl_is_connecting(data)) {
  ------------------
  |  Branch (80:11): [True: 76.2k, False: 320k]
  ------------------
   81|  76.2k|    timediff_t ctimeout_ms = (data->set.connecttimeout > 0) ?
  ------------------
  |  Branch (81:30): [True: 76.2k, False: 0]
  ------------------
   82|  76.2k|      data->set.connecttimeout : DEFAULT_CONNECT_TIMEOUT;
  ------------------
  |  |   40|      0|#define DEFAULT_CONNECT_TIMEOUT 300000 /* milliseconds == five minutes */
  ------------------
   83|  76.2k|    ctimeleft_ms = ctimeout_ms -
   84|  76.2k|      Curl_pgrs_since_ms(data, pnow, TIMER_STARTSINGLE);
   85|  76.2k|    if(!ctimeleft_ms)
  ------------------
  |  Branch (85:8): [True: 253, False: 75.9k]
  ------------------
   86|    253|      ctimeleft_ms = -1; /* 0 is "no limit", fake 1 ms expiry */
   87|  76.2k|  }
   88|   320k|  else if(!data->set.timeout || data->set.connect_only) {
  ------------------
  |  Branch (88:11): [True: 0, False: 320k]
  |  Branch (88:33): [True: 10.8k, False: 309k]
  ------------------
   89|  10.8k|    return 0; /* no timeout in place or checked, return "no limit" */
   90|  10.8k|  }
   91|       |
   92|   385k|  if(data->set.timeout) {
  ------------------
  |  Branch (92:6): [True: 385k, False: 0]
  ------------------
   93|   385k|    timeleft_ms = data->set.timeout -
   94|   385k|                  Curl_pgrs_since_ms(data, pnow, TIMER_STARTOP);
   95|   385k|    if(!timeleft_ms)
  ------------------
  |  Branch (95:8): [True: 137, False: 385k]
  ------------------
   96|    137|      timeleft_ms = -1; /* 0 is "no limit", fake 1 ms expiry */
   97|   385k|  }
   98|       |
   99|   385k|  if(!ctimeleft_ms)
  ------------------
  |  Branch (99:6): [True: 309k, False: 76.2k]
  ------------------
  100|   309k|    return timeleft_ms;
  101|  76.2k|  else if(!timeleft_ms)
  ------------------
  |  Branch (101:11): [True: 0, False: 76.2k]
  ------------------
  102|      0|    return ctimeleft_ms;
  103|  76.2k|  return CURLMIN(ctimeleft_ms, timeleft_ms);
  ------------------
  |  | 1296|  76.2k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1296:24): [True: 76.2k, False: 4]
  |  |  ------------------
  ------------------
  104|   385k|}
Curl_timeleft_ms:
  107|   396k|{
  108|   396k|  return timeleft_now_ms(data, Curl_pgrs_now(data));
  109|   396k|}
Curl_shutdown_start:
  113|  3.32k|{
  114|  3.32k|  struct connectdata *conn = data->conn;
  115|       |
  116|  3.32k|  DEBUGASSERT(conn);
  ------------------
  |  | 1083|  3.32k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (116:3): [True: 0, False: 3.32k]
  |  Branch (116:3): [True: 3.32k, False: 0]
  ------------------
  117|  3.32k|  conn->shutdown.start[sockindex] = *Curl_pgrs_now(data);
  118|  3.32k|  conn->shutdown.timeout_ms = (timeout_ms > 0) ?
  ------------------
  |  Branch (118:31): [True: 0, False: 3.32k]
  ------------------
  119|      0|    (timediff_t)timeout_ms :
  120|  3.32k|    ((data->set.shutdowntimeout > 0) ?
  ------------------
  |  Branch (120:6): [True: 0, False: 3.32k]
  ------------------
  121|  3.32k|     data->set.shutdowntimeout : DEFAULT_SHUTDOWN_TIMEOUT_MS);
  ------------------
  |  |   42|  3.32k|#define DEFAULT_SHUTDOWN_TIMEOUT_MS   (2 * 1000)
  ------------------
  122|       |  /* Set a timer, unless we operate on the admin handle */
  123|  3.32k|  if(data->mid)
  ------------------
  |  Branch (123:6): [True: 0, False: 3.32k]
  ------------------
  124|      0|    Curl_expire_ex(data, conn->shutdown.timeout_ms, EXPIRE_SHUTDOWN);
  125|  3.32k|  CURL_TRC_M(data, "shutdown start on%s connection",
  ------------------
  |  |  148|  3.32k|  do {                                   \
  |  |  149|  3.32k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  3.32k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  3.32k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  6.65k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 3.32k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 3.32k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  6.65k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  3.32k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  3.32k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (150:28): [True: 0, False: 0]
  |  |  ------------------
  |  |  151|  3.32k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 3.32k]
  |  |  ------------------
  ------------------
  126|  3.32k|             sockindex ? " secondary" : "");
  127|  3.32k|}
Curl_shutdown_timeleft:
  132|  3.38k|{
  133|  3.38k|  timediff_t left_ms;
  134|       |
  135|  3.38k|  if(!conn->shutdown.start[sockindex].tv_sec ||
  ------------------
  |  Branch (135:6): [True: 0, False: 3.38k]
  ------------------
  136|  3.38k|     (conn->shutdown.timeout_ms <= 0))
  ------------------
  |  Branch (136:6): [True: 0, False: 3.38k]
  ------------------
  137|      0|    return 0; /* not started or no limits */
  138|       |
  139|  3.38k|  left_ms = conn->shutdown.timeout_ms -
  140|  3.38k|            curlx_ptimediff_ms(Curl_pgrs_now(data),
  141|  3.38k|                               &conn->shutdown.start[sockindex]);
  142|  3.38k|  return left_ms ? left_ms : -1;
  ------------------
  |  Branch (142:10): [True: 3.38k, False: 0]
  ------------------
  143|  3.38k|}
Curl_conn_shutdown_timeleft:
  147|     26|{
  148|     26|  timediff_t left_ms = 0, ms;
  149|     26|  int i;
  150|       |
  151|     78|  for(i = 0; conn->shutdown.timeout_ms && (i < 2); ++i) {
  ------------------
  |  Branch (151:14): [True: 78, False: 0]
  |  Branch (151:43): [True: 52, False: 26]
  ------------------
  152|     52|    if(!conn->shutdown.start[i].tv_sec)
  ------------------
  |  Branch (152:8): [True: 26, False: 26]
  ------------------
  153|     26|      continue;
  154|     26|    ms = Curl_shutdown_timeleft(data, conn, i);
  155|     26|    if(ms && (!left_ms || ms < left_ms))
  ------------------
  |  Branch (155:8): [True: 26, False: 0]
  |  Branch (155:15): [True: 26, False: 0]
  |  Branch (155:27): [True: 0, False: 0]
  ------------------
  156|     26|      left_ms = ms;
  157|     26|  }
  158|     26|  return left_ms;
  159|     26|}
Curl_shutdown_started:
  168|   535k|{
  169|   535k|  const struct curltime *pt = &conn->shutdown.start[sockindex];
  170|   535k|  return (pt->tv_sec > 0) || (pt->tv_usec > 0);
  ------------------
  |  Branch (170:10): [True: 3.38k, False: 532k]
  |  Branch (170:30): [True: 0, False: 532k]
  ------------------
  171|   535k|}
Curl_getconnectinfo:
  181|  5.79k|{
  182|  5.79k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|  5.79k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (182:3): [True: 0, False: 5.79k]
  |  Branch (182:3): [True: 5.79k, False: 0]
  ------------------
  183|       |
  184|       |  /* this works for an easy handle:
  185|       |   * - that has been used for curl_easy_perform()
  186|       |   * - that is associated with a multi handle, and whose connection
  187|       |   *   was detached with CURLOPT_CONNECT_ONLY
  188|       |   */
  189|  5.79k|  if(data->state.lastconnect_id != -1) {
  ------------------
  |  Branch (189:6): [True: 5.72k, False: 73]
  ------------------
  190|  5.72k|    struct connectdata *conn;
  191|       |
  192|  5.72k|    conn = Curl_cpool_get_conn(data, data->state.lastconnect_id);
  193|  5.72k|    if(!conn) {
  ------------------
  |  Branch (193:8): [True: 0, False: 5.72k]
  ------------------
  194|      0|      data->state.lastconnect_id = -1;
  195|      0|      if(connp)
  ------------------
  |  Branch (195:10): [True: 0, False: 0]
  ------------------
  196|      0|        *connp = NULL;
  197|      0|      return CURL_SOCKET_BAD;
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  198|      0|    }
  199|       |
  200|  5.72k|    if(connp)
  ------------------
  |  Branch (200:8): [True: 5.72k, False: 0]
  ------------------
  201|  5.72k|      *connp = conn;
  202|  5.72k|    return conn->sock[FIRSTSOCKET];
  ------------------
  |  |  233|  5.72k|#define FIRSTSOCKET     0
  ------------------
  203|  5.72k|  }
  204|     73|  if(connp)
  ------------------
  |  Branch (204:6): [True: 73, False: 0]
  ------------------
  205|     73|    *connp = NULL;
  206|     73|  return CURL_SOCKET_BAD;
  ------------------
  |  |  145|     73|#define CURL_SOCKET_BAD (-1)
  ------------------
  207|  5.79k|}
Curl_conncontrol:
  210|  20.8k|{
  211|  20.8k|  if(!conn) {
  ------------------
  |  Branch (211:6): [True: 0, False: 20.8k]
  ------------------
  212|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (212:5): [Folded, False: 0]
  |  Branch (212:5): [Folded, False: 0]
  ------------------
  213|      0|    return;
  214|      0|  }
  215|  20.8k|  switch(ctrl) {
  216|      0|    case CONNCTRL_CONN_KEEP:
  ------------------
  |  |   81|      0|#define CONNCTRL_CONN_KEEP       0
  ------------------
  |  Branch (216:5): [True: 0, False: 20.8k]
  ------------------
  217|      0|      conn->bits.close = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  218|      0|      break;
  219|  13.9k|    case CONNCTRL_CONN_CLOSE:
  ------------------
  |  |   82|  13.9k|#define CONNCTRL_CONN_CLOSE      1
  ------------------
  |  Branch (219:5): [True: 13.9k, False: 6.82k]
  ------------------
  220|  13.9k|      conn->bits.close = TRUE;
  ------------------
  |  | 1053|  13.9k|#define TRUE true
  ------------------
  221|  13.9k|      break;
  222|  6.82k|    case CONNCTRL_STREAM_CLOSE:
  ------------------
  |  |   83|  6.82k|#define CONNCTRL_STREAM_CLOSE    2
  ------------------
  |  Branch (222:5): [True: 6.82k, False: 13.9k]
  ------------------
  223|       |      /* stream close when multiplexing does not affect connection */
  224|  6.82k|      if(!Curl_conn_is_multiplex(conn, FIRSTSOCKET))
  ------------------
  |  |  233|  6.82k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (224:10): [True: 2.91k, False: 3.91k]
  ------------------
  225|  2.91k|        conn->bits.close = TRUE;
  ------------------
  |  | 1053|  2.91k|#define TRUE true
  ------------------
  226|  6.82k|      break;
  227|      0|    default:
  ------------------
  |  Branch (227:5): [True: 0, False: 20.8k]
  ------------------
  228|      0|      DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (228:7): [Folded, False: 0]
  |  Branch (228:7): [Folded, False: 0]
  ------------------
  229|      0|      break;
  230|  20.8k|  }
  231|  20.8k|}
Curl_conn_setup:
  237|  10.1k|{
  238|  10.1k|  struct Curl_peer *first_peer = Curl_conn_get_first_peer(conn, sockindex);
  239|  10.1k|  CURLcode result = CURLE_OK;
  240|  10.1k|  uint8_t dns_queries;
  241|       |
  242|  10.1k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (242:3): [True: 0, False: 10.1k]
  |  Branch (242:3): [True: 10.1k, False: 0]
  ------------------
  243|  10.1k|  DEBUGASSERT(conn->scheme);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (243:3): [True: 0, False: 10.1k]
  |  Branch (243:3): [True: 10.1k, False: 0]
  ------------------
  244|  10.1k|  DEBUGASSERT(!conn->cfilter[sockindex]);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (244:3): [True: 0, False: 10.1k]
  |  Branch (244:3): [True: 10.1k, False: 0]
  ------------------
  245|       |
  246|  10.1k|  if(!first_peer)
  ------------------
  |  Branch (246:6): [True: 0, False: 10.1k]
  ------------------
  247|      0|    return CURLE_FAILED_INIT;
  248|       |
  249|  10.1k|#ifndef CURL_DISABLE_HTTP
  250|  10.1k|  if(!conn->cfilter[sockindex] &&
  ------------------
  |  Branch (250:6): [True: 10.1k, False: 0]
  ------------------
  251|  10.1k|     conn->scheme->protocol == CURLPROTO_HTTPS) {
  ------------------
  |  | 1087|  10.1k|#define CURLPROTO_HTTPS   (1L << 1)
  ------------------
  |  Branch (251:6): [True: 0, False: 10.1k]
  ------------------
  252|      0|    DEBUGASSERT(ssl_mode != CURL_CF_SSL_DISABLE);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (252:5): [True: 0, False: 0]
  |  Branch (252:5): [True: 0, False: 0]
  ------------------
  253|      0|    result = Curl_cf_https_setup(
  254|      0|      data, Curl_conn_get_destination(conn, sockindex), conn, sockindex);
  255|      0|    if(result)
  ------------------
  |  Branch (255:8): [True: 0, False: 0]
  ------------------
  256|      0|      goto out;
  257|      0|  }
  258|  10.1k|#endif /* !CURL_DISABLE_HTTP */
  259|       |
  260|       |  /* Still no cfilter set, apply default. */
  261|  10.1k|  if(!conn->cfilter[sockindex]) {
  ------------------
  |  Branch (261:6): [True: 10.1k, False: 0]
  ------------------
  262|  10.1k|    result = Curl_cf_setup_add(data, conn, sockindex,
  263|  10.1k|                               conn->transport_wanted, ssl_mode);
  264|  10.1k|    if(result)
  ------------------
  |  Branch (264:8): [True: 0, False: 10.1k]
  ------------------
  265|      0|      goto out;
  266|  10.1k|  }
  267|       |
  268|       |  /* Whatever the filter chain will be in the end, it will need the
  269|       |   * resolving of `first_peer`. Add that now so the resolve is started
  270|       |   * right away. */
  271|  10.1k|  dns_queries = Curl_resolv_dns_queries(data, conn->ip_version);
  272|  10.1k|  result = Curl_conn_dns_add_addr_resolve(data, conn, sockindex,
  273|  10.1k|                                          first_peer, dns_queries,
  274|  10.1k|                                          conn->transport_wanted);
  275|  10.1k|  if(result)
  ------------------
  |  Branch (275:6): [True: 0, False: 10.1k]
  ------------------
  276|      0|    goto out;
  277|       |
  278|  10.1k|  DEBUGASSERT(conn->cfilter[sockindex]);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (278:3): [True: 0, False: 10.1k]
  |  Branch (278:3): [True: 10.1k, False: 0]
  ------------------
  279|  10.1k|out:
  280|  10.1k|  return result;
  281|  10.1k|}
Curl_conn_connect:
  332|  20.4k|{
  333|  20.4k|#define CF_CONN_NUM_POLLS_ON_STACK 5
  334|  20.4k|  struct pollfd a_few_on_stack[CF_CONN_NUM_POLLS_ON_STACK];
  335|  20.4k|  struct easy_pollset ps;
  336|  20.4k|  struct curl_pollfds cpfds;
  337|  20.4k|  struct Curl_cfilter *cf;
  338|  20.4k|  CURLcode result = CURLE_OK;
  339|       |
  340|  20.4k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|  20.4k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (340:3): [True: 0, False: 20.4k]
  |  Branch (340:3): [True: 20.4k, False: 0]
  ------------------
  341|  20.4k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1083|  20.4k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (341:3): [True: 0, False: 20.4k]
  |  Branch (341:3): [True: 20.4k, False: 0]
  ------------------
  342|  20.4k|  if(!CONN_SOCK_IDX_VALID(sockindex))
  ------------------
  |  |  310|  20.4k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (310:36): [True: 20.4k, False: 0]
  |  |  |  Branch (310:50): [True: 20.4k, False: 0]
  |  |  ------------------
  ------------------
  343|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  344|       |
  345|  20.4k|  if(data->conn->scheme->flags & PROTOPT_NONETWORK) {
  ------------------
  |  |  214|  20.4k|#define PROTOPT_NONETWORK (1 << 4) /* protocol does not use the network! */
  ------------------
  |  Branch (345:6): [True: 0, False: 20.4k]
  ------------------
  346|      0|    *done = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  347|      0|    return CURLE_OK;
  348|      0|  }
  349|       |
  350|  20.4k|  cf = data->conn->cfilter[sockindex];
  351|  20.4k|  if(!cf) {
  ------------------
  |  Branch (351:6): [True: 0, False: 20.4k]
  ------------------
  352|      0|    *done = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  353|      0|    return CURLE_FAILED_INIT;
  354|      0|  }
  355|       |
  356|  20.4k|  *done = (bool)cf->connected;
  357|  20.4k|  if(*done)
  ------------------
  |  Branch (357:6): [True: 4.10k, False: 16.3k]
  ------------------
  358|  4.10k|    return CURLE_OK;
  359|       |
  360|  16.3k|  Curl_pollset_init(&ps);
  361|  16.3k|  Curl_pollfds_init(&cpfds, a_few_on_stack, CF_CONN_NUM_POLLS_ON_STACK);
  ------------------
  |  |  333|  16.3k|#define CF_CONN_NUM_POLLS_ON_STACK 5
  ------------------
  362|  16.3k|  while(!*done) {
  ------------------
  |  Branch (362:9): [True: 16.3k, False: 0]
  ------------------
  363|  16.3k|    if(Curl_conn_needs_flush(data, sockindex)) {
  ------------------
  |  Branch (363:8): [True: 0, False: 16.3k]
  ------------------
  364|      0|      DEBUGF(infof(data, "Curl_conn_connect(index=%d), flush", sockindex));
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [Folded, False: 0]
  |  |  ------------------
  ------------------
  365|      0|      result = Curl_conn_flush(data, sockindex);
  366|      0|      if(result && (result != CURLE_AGAIN))
  ------------------
  |  Branch (366:10): [True: 0, False: 0]
  |  Branch (366:20): [True: 0, False: 0]
  ------------------
  367|      0|        goto out;
  368|      0|    }
  369|       |
  370|  16.3k|    result = cf->cft->do_connect(cf, data, done);
  371|  16.3k|    CURL_TRC_CF(data, cf, "Curl_conn_connect(block=%d) -> %d, done=%d",
  ------------------
  |  |  153|  16.3k|  do {                                          \
  |  |  154|  16.3k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  16.3k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  32.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 16.3k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 16.3k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  32.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  16.3k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  16.3k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  16.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 16.3k]
  |  |  ------------------
  ------------------
  372|  16.3k|                blocking, (int)result, *done);
  373|  16.3k|    if(!result && *done) {
  ------------------
  |  Branch (373:8): [True: 15.4k, False: 827]
  |  Branch (373:19): [True: 8.97k, False: 6.51k]
  ------------------
  374|       |      /* A final sanity check on connection security */
  375|  8.97k|      if((data->state.origin->scheme->flags & PROTOPT_SSL) &&
  ------------------
  |  |  207|  8.97k|#define PROTOPT_SSL (1 << 0)       /* uses SSL */
  ------------------
  |  Branch (375:10): [True: 0, False: 8.97k]
  ------------------
  376|      0|         (sockindex == FIRSTSOCKET) &&
  ------------------
  |  |  233|      0|#define FIRSTSOCKET     0
  ------------------
  |  Branch (376:10): [True: 0, False: 0]
  ------------------
  377|      0|         !Curl_conn_is_ssl(data->conn, FIRSTSOCKET)) {
  ------------------
  |  |  233|      0|#define FIRSTSOCKET     0
  ------------------
  |  Branch (377:10): [True: 0, False: 0]
  ------------------
  378|      0|        DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (378:9): [Folded, False: 0]
  |  Branch (378:9): [Folded, False: 0]
  ------------------
  379|      0|        failf(data, "transfer requires SSL, but not connected via SSL");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  380|      0|        result = CURLE_FAILED_INIT;
  381|      0|        goto out;
  382|      0|      }
  383|       |      /* Now that the complete filter chain is connected, let all filters
  384|       |       * persist information at the connection. E.g. cf-socket sets the
  385|       |       * socket and ip related information. */
  386|  8.97k|      Curl_conn_cntrl_update_info(data, data->conn);
  387|  8.97k|      conn_report_connect_stats(cf, data);
  388|  8.97k|      data->conn->keepalive = *Curl_pgrs_now(data);
  389|  8.97k|      VERBOSE(result = conn_connect_trace(data, cf));
  ------------------
  |  | 1617|  8.97k|#define VERBOSE(x) x
  ------------------
  390|  8.97k|      VERBOSE(Curl_conn_trc_filters(data, sockindex, "connected"));
  ------------------
  |  | 1617|  8.97k|#define VERBOSE(x) x
  ------------------
  391|  8.97k|      Curl_conn_remove_setup_filters(data, sockindex);
  392|  8.97k|      VERBOSE(Curl_conn_trc_filters(data, sockindex, "reduced to"));
  ------------------
  |  | 1617|  8.97k|#define VERBOSE(x) x
  ------------------
  393|  8.97k|      goto out;
  394|  8.97k|    }
  395|  7.34k|    else if(result) {
  ------------------
  |  Branch (395:13): [True: 827, False: 6.51k]
  ------------------
  396|    827|      CURL_TRC_CF(data, cf, "Curl_conn_connect(), filter returned %d",
  ------------------
  |  |  153|    827|  do {                                          \
  |  |  154|    827|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|    827|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  1.65k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 827, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 827]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  1.65k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    827|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    827|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    827|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 827]
  |  |  ------------------
  ------------------
  397|    827|                  (int)result);
  398|    827|      VERBOSE(Curl_conn_trc_filters(data, sockindex, "failed to connect"));
  ------------------
  |  | 1617|    827|#define VERBOSE(x) x
  ------------------
  399|    827|      conn_report_connect_stats(cf, data);
  400|    827|      goto out;
  401|    827|    }
  402|       |
  403|  6.51k|    if(!blocking)
  ------------------
  |  Branch (403:8): [True: 6.51k, False: 0]
  ------------------
  404|  6.51k|      goto out;
  405|      0|    else {
  406|       |      /* check allowed time left */
  407|      0|      const timediff_t timeout_ms = Curl_timeleft_ms(data);
  408|      0|      curl_socket_t sockfd = Curl_conn_cf_get_socket(cf, data);
  409|      0|      int rc;
  410|       |
  411|      0|      if(timeout_ms < 0) {
  ------------------
  |  Branch (411:10): [True: 0, False: 0]
  ------------------
  412|       |        /* no need to continue if time already is up */
  413|      0|        failf(data, "connect timeout");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  414|      0|        result = CURLE_OPERATION_TIMEDOUT;
  415|      0|        goto out;
  416|      0|      }
  417|       |
  418|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  419|      0|      Curl_pollset_reset(&ps);
  420|      0|      Curl_pollfds_reset(&cpfds);
  421|       |      /* In general, we want to send after connect, wait on that. */
  422|      0|      if(sockfd != CURL_SOCKET_BAD)
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (422:10): [True: 0, False: 0]
  ------------------
  423|      0|        result = Curl_pollset_set_out_only(data, &ps, sockfd);
  ------------------
  |  |  172|      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
  |  |  ------------------
  ------------------
  424|      0|      if(!result)
  ------------------
  |  Branch (424:10): [True: 0, False: 0]
  ------------------
  425|      0|        result = Curl_conn_adjust_pollset(data, data->conn, &ps);
  426|      0|      if(result)
  ------------------
  |  Branch (426:10): [True: 0, False: 0]
  ------------------
  427|      0|        goto out;
  428|      0|      result = Curl_pollfds_add_ps(&cpfds, &ps);
  429|      0|      if(result)
  ------------------
  |  Branch (429:10): [True: 0, False: 0]
  ------------------
  430|      0|        goto out;
  431|       |
  432|      0|      rc = Curl_poll(cpfds.pfds, cpfds.n,
  433|      0|                     CURLMIN(timeout_ms, (cpfds.n ? 1000 : 10)));
  ------------------
  |  | 1296|      0|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1296:24): [True: 0, False: 0]
  |  |  |  Branch (1296:31): [True: 0, False: 0]
  |  |  |  Branch (1296:43): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  434|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  435|      0|                  rc);
  436|      0|      if(rc < 0) {
  ------------------
  |  Branch (436:10): [True: 0, False: 0]
  ------------------
  437|      0|        result = CURLE_COULDNT_CONNECT;
  438|      0|        goto out;
  439|      0|      }
  440|       |      /* continue iterating */
  441|      0|    }
  442|  6.51k|  }
  443|       |
  444|  16.3k|out:
  445|  16.3k|  Curl_pollset_cleanup(&ps);
  446|  16.3k|  Curl_pollfds_cleanup(&cpfds);
  447|  16.3k|  return result;
  448|  16.3k|}
Curl_conn_set_multiplex:
  451|  4.41k|{
  452|  4.41k|  if(!conn->bits.multiplex) {
  ------------------
  |  Branch (452:6): [True: 4.41k, False: 0]
  ------------------
  453|  4.41k|    conn->bits.multiplex = TRUE;
  ------------------
  |  | 1053|  4.41k|#define TRUE true
  ------------------
  454|  4.41k|    if(conn->attached_multi) {
  ------------------
  |  Branch (454:8): [True: 4.41k, False: 0]
  ------------------
  455|  4.41k|      Curl_multi_connchanged(conn->attached_multi);
  456|  4.41k|    }
  457|  4.41k|  }
  458|  4.41k|}
Curl_conn_get_origin:
  462|    356|{
  463|    356|  return (sockindex == SECONDARYSOCKET) ?
  ------------------
  |  |  234|    356|#define SECONDARYSOCKET 1
  ------------------
  |  Branch (463:10): [True: 0, False: 356]
  ------------------
  464|    356|    conn->origin2 : conn->origin;
  465|    356|}
Curl_conn_get_destination:
  469|  14.6k|{
  470|  14.6k|  return (sockindex == SECONDARYSOCKET) ?
  ------------------
  |  |  234|  14.6k|#define SECONDARYSOCKET 1
  ------------------
  |  Branch (470:10): [True: 0, False: 14.6k]
  ------------------
  471|      0|    (conn->via_peer2 ? conn->via_peer2 : conn->origin2) :
  ------------------
  |  Branch (471:6): [True: 0, False: 0]
  ------------------
  472|  14.6k|    (conn->via_peer ? conn->via_peer : conn->origin);
  ------------------
  |  Branch (472:6): [True: 14.5k, False: 87]
  ------------------
  473|  14.6k|}
Curl_conn_get_first_peer:
  477|  35.3k|{
  478|  35.3k|#ifndef CURL_DISABLE_PROXY
  479|  35.3k|  if(conn->socks_proxy.peer)
  ------------------
  |  Branch (479:6): [True: 0, False: 35.3k]
  ------------------
  480|      0|    return conn->socks_proxy.peer;
  481|  35.3k|  if(conn->http_proxy.peer)
  ------------------
  |  Branch (481:6): [True: 0, False: 35.3k]
  ------------------
  482|      0|    return conn->http_proxy.peer;
  483|  35.3k|#endif
  484|  35.3k|  return (sockindex == SECONDARYSOCKET) ?
  ------------------
  |  |  234|  35.3k|#define SECONDARYSOCKET 1
  ------------------
  |  Branch (484:10): [True: 0, False: 35.3k]
  ------------------
  485|      0|    (conn->via_peer2 ? conn->via_peer2 : conn->origin2) :
  ------------------
  |  Branch (485:6): [True: 0, False: 0]
  ------------------
  486|  35.3k|    (conn->via_peer ? conn->via_peer : conn->origin);
  ------------------
  |  Branch (486:6): [True: 35.2k, False: 144]
  ------------------
  487|  35.3k|}
connect.c:conn_report_connect_stats:
  311|  9.80k|{
  312|  9.80k|  if(cf) {
  ------------------
  |  Branch (312:6): [True: 9.80k, False: 0]
  ------------------
  313|  9.80k|    struct curltime connected;
  314|  9.80k|    struct curltime appconnected;
  315|       |
  316|  9.80k|    memset(&connected, 0, sizeof(connected));
  317|  9.80k|    cf->cft->query(cf, data, CF_QUERY_TIMER_CONNECT, NULL, &connected);
  ------------------
  |  |  164|  9.80k|#define CF_QUERY_TIMER_CONNECT      4  /* -          struct curltime */
  ------------------
  318|  9.80k|    if(connected.tv_sec || connected.tv_usec)
  ------------------
  |  Branch (318:8): [True: 8.99k, False: 813]
  |  Branch (318:28): [True: 0, False: 813]
  ------------------
  319|  8.99k|      Curl_pgrsTimeWas(data, TIMER_CONNECT, connected);
  320|       |
  321|  9.80k|    memset(&appconnected, 0, sizeof(appconnected));
  322|  9.80k|    cf->cft->query(cf, data, CF_QUERY_TIMER_APPCONNECT, NULL, &appconnected);
  ------------------
  |  |  165|  9.80k|#define CF_QUERY_TIMER_APPCONNECT   5  /* -          struct curltime */
  ------------------
  323|  9.80k|    if(appconnected.tv_sec || appconnected.tv_usec)
  ------------------
  |  Branch (323:8): [True: 0, False: 9.80k]
  |  Branch (323:31): [True: 0, False: 9.80k]
  ------------------
  324|      0|      Curl_pgrsTimeWas(data, TIMER_APPCONNECT, appconnected);
  325|  9.80k|  }
  326|  9.80k|}
connect.c:conn_connect_trace:
  286|  8.97k|{
  287|  8.97k|  if(Curl_trc_is_verbose(data)) {
  ------------------
  |  |  322|  8.97k|  ((data) && (data)->set.verbose &&                        \
  |  |  ------------------
  |  |  |  Branch (322:4): [True: 8.97k, False: 0]
  |  |  |  Branch (322:14): [True: 0, False: 8.97k]
  |  |  ------------------
  |  |  323|  8.97k|   (!(data)->state.feat ||                                 \
  |  |  ------------------
  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  ------------------
  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  ------------------
  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  288|      0|    struct ip_quadruple ipquad;
  289|      0|    bool is_ipv6;
  290|      0|    CURLcode result;
  291|       |
  292|      0|    result = Curl_conn_cf_get_ip_info(cf, data, &is_ipv6, &ipquad);
  293|      0|    if(result)
  ------------------
  |  Branch (293:8): [True: 0, False: 0]
  ------------------
  294|      0|      return result;
  295|       |
  296|      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))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324: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]
  |  |  ------------------
  ------------------
  297|      0|          (cf->sockindex == SECONDARYSOCKET) ? "2nd " : "",
  298|      0|          CURL_CONN_HOST_DISPNAME(data->conn),
  299|      0|          ipquad.remote_ip, ipquad.remote_port,
  300|      0|          ipquad.local_ip, ipquad.local_port);
  301|      0|  }
  302|  8.97k|  return CURLE_OK;
  303|  8.97k|}

Curl_get_content_encodings:
  659|  3.74k|{
  660|  3.74k|  struct dynbuf enc;
  661|  3.74k|  const struct Curl_cwtype * const *cep;
  662|  3.74k|  CURLcode result = CURLE_OK;
  663|  3.74k|  curlx_dyn_init(&enc, 255);
  664|       |
  665|  18.7k|  for(cep = general_unencoders; *cep && !result; cep++) {
  ------------------
  |  Branch (665:33): [True: 14.9k, False: 3.74k]
  |  Branch (665:41): [True: 14.9k, False: 0]
  ------------------
  666|  14.9k|    const struct Curl_cwtype *ce = *cep;
  667|  14.9k|    if(!curl_strequal(ce->name, CONTENT_ENCODING_DEFAULT)) {
  ------------------
  |  |   54|  14.9k|#define CONTENT_ENCODING_DEFAULT  "identity"
  ------------------
  |  Branch (667:8): [True: 11.2k, False: 3.74k]
  ------------------
  668|  11.2k|      if(curlx_dyn_len(&enc))
  ------------------
  |  Branch (668:10): [True: 7.48k, False: 3.74k]
  ------------------
  669|  7.48k|        result = curlx_dyn_addn(&enc, ", ", 2);
  670|  11.2k|      if(!result)
  ------------------
  |  Branch (670:10): [True: 11.2k, False: 0]
  ------------------
  671|  11.2k|        result = curlx_dyn_add(&enc, ce->name);
  672|  11.2k|    }
  673|  14.9k|  }
  674|  3.74k|  if(!result && !curlx_dyn_len(&enc))
  ------------------
  |  Branch (674:6): [True: 3.74k, False: 0]
  |  Branch (674:17): [True: 0, False: 3.74k]
  ------------------
  675|      0|    result = curlx_dyn_add(&enc, CONTENT_ENCODING_DEFAULT);
  ------------------
  |  |   54|      0|#define CONTENT_ENCODING_DEFAULT  "identity"
  ------------------
  676|       |
  677|  3.74k|  if(!result)
  ------------------
  |  Branch (677:6): [True: 3.74k, False: 0]
  ------------------
  678|  3.74k|    return curlx_dyn_ptr(&enc);
  679|      0|  return NULL;
  680|  3.74k|}
Curl_build_unencoding_stack:
  753|    798|{
  754|    798|  Curl_cwriter_phase phase = is_transfer ?
  ------------------
  |  Branch (754:30): [True: 259, False: 539]
  ------------------
  755|    539|    CURL_CW_TRANSFER_DECODE : CURL_CW_CONTENT_DECODE;
  756|    798|  CURLcode result;
  757|    798|  bool has_chunked = FALSE;
  ------------------
  |  | 1056|    798|#define FALSE false
  ------------------
  758|       |
  759|    898|  do {
  760|    898|    const char *name;
  761|    898|    size_t namelen;
  762|    898|    bool is_chunked = FALSE;
  ------------------
  |  | 1056|    898|#define FALSE false
  ------------------
  763|       |
  764|       |    /* Parse a single encoding name. */
  765|  2.38k|    while(ISBLANK(*enclist) || *enclist == ',')
  ------------------
  |  |   43|  4.77k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (43:22): [True: 799, False: 1.58k]
  |  |  |  Branch (43:38): [True: 320, False: 1.26k]
  |  |  ------------------
  ------------------
  |  Branch (765:32): [True: 368, False: 898]
  ------------------
  766|  1.48k|      enclist++;
  767|       |
  768|    898|    name = enclist;
  769|       |
  770|  5.46k|    for(namelen = 0; *enclist && *enclist != ','; enclist++)
  ------------------
  |  Branch (770:22): [True: 4.67k, False: 789]
  |  Branch (770:34): [True: 4.56k, False: 109]
  ------------------
  771|  4.56k|      if(*enclist > ' ')
  ------------------
  |  Branch (771:10): [True: 2.34k, False: 2.22k]
  ------------------
  772|  2.34k|        namelen = enclist - name + 1;
  773|       |
  774|    898|    if(namelen) {
  ------------------
  |  Branch (774:8): [True: 377, False: 521]
  ------------------
  775|    377|      const struct Curl_cwtype *cwt;
  776|    377|      struct Curl_cwriter *writer;
  777|       |
  778|    377|      CURL_TRC_WRITE(data, "looking for %s decoder: %.*s",
  ------------------
  |  |  158|    377|  do {                                                     \
  |  |  159|    377|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  329|    377|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    754|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 377, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 377]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    754|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    377|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|    377|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  ------------------
  |  |  |  Branch (160:28): [True: 0, False: 0]
  |  |  ------------------
  |  |  161|    377|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 377]
  |  |  ------------------
  ------------------
  779|    377|                     is_transfer ? "transfer" : "content", (int)namelen, name);
  780|    377|      is_chunked = (is_transfer && (namelen == 7) &&
  ------------------
  |  Branch (780:21): [True: 253, False: 124]
  |  Branch (780:36): [True: 235, False: 18]
  ------------------
  781|    235|                    curl_strnequal(name, "chunked", 7));
  ------------------
  |  Branch (781:21): [True: 234, False: 1]
  ------------------
  782|       |      /* if we skip the decoding in this phase, do not look further.
  783|       |       * Exception is "chunked" transfer-encoding which always must happen */
  784|    377|      if((is_transfer && !data->set.http_transfer_encoding && !is_chunked) ||
  ------------------
  |  Branch (784:11): [True: 253, False: 124]
  |  Branch (784:26): [True: 253, False: 0]
  |  Branch (784:63): [True: 19, False: 234]
  ------------------
  785|    358|         (!is_transfer && data->set.http_ce_skip)) {
  ------------------
  |  Branch (785:11): [True: 124, False: 234]
  |  Branch (785:27): [True: 0, False: 124]
  ------------------
  786|     19|        bool is_identity = (namelen == 8) &&
  ------------------
  |  Branch (786:28): [True: 2, False: 17]
  ------------------
  787|      2|                           curl_strnequal(name, "identity", 8);
  ------------------
  |  Branch (787:28): [True: 0, False: 2]
  ------------------
  788|       |        /* not requested, ignore */
  789|     19|        CURL_TRC_WRITE(data, "decoder not requested, ignored: %.*s",
  ------------------
  |  |  158|     19|  do {                                                     \
  |  |  159|     19|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  329|     19|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|     38|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 19, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 19]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|     38|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|     19|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|     19|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|     19|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 19]
  |  |  ------------------
  ------------------
  790|     19|                       (int)namelen, name);
  791|     19|        if(is_transfer && !data->set.http_te_skip) {
  ------------------
  |  Branch (791:12): [True: 19, False: 0]
  |  Branch (791:27): [True: 19, False: 0]
  ------------------
  792|     19|          if(has_chunked)
  ------------------
  |  Branch (792:14): [True: 5, False: 14]
  ------------------
  793|      5|            failf(data, "A Transfer-Encoding (%.*s) was listed after chunked",
  ------------------
  |  |   62|      5|#define failf Curl_failf
  ------------------
  794|      5|                  (int)namelen, name);
  795|     14|          else if(is_identity)
  ------------------
  |  Branch (795:19): [True: 0, False: 14]
  ------------------
  796|      0|            continue;
  797|     14|          else
  798|     14|            failf(data, "Unsolicited Transfer-Encoding (%.*s) found",
  ------------------
  |  |   62|     14|#define failf Curl_failf
  ------------------
  799|     14|                  (int)namelen, name);
  800|     19|          return CURLE_BAD_CONTENT_ENCODING;
  801|     19|        }
  802|      0|        return CURLE_OK;
  803|     19|      }
  804|       |
  805|    358|      if(Curl_cwriter_count(data, phase) >= MAX_ENCODE_STACK) {
  ------------------
  |  |   59|    358|#define MAX_ENCODE_STACK 5
  ------------------
  |  Branch (805:10): [True: 9, False: 349]
  ------------------
  806|      9|        failf(data, "Reject response exceeding limit of %d %s encodings",
  ------------------
  |  |   62|      9|#define failf Curl_failf
  ------------------
  807|      9|              MAX_ENCODE_STACK,
  ------------------
  |  |   59|      9|#define MAX_ENCODE_STACK 5
  ------------------
  808|      9|              is_transfer ? "transfer" : "content");
  ------------------
  |  Branch (808:15): [True: 0, False: 9]
  ------------------
  809|      9|        return CURLE_BAD_CONTENT_ENCODING;
  810|      9|      }
  811|       |
  812|    349|      cwt = find_unencode_writer(name, namelen, phase);
  813|    349|      if(is_transfer && !is_chunked &&
  ------------------
  |  Branch (813:10): [True: 234, False: 115]
  |  Branch (813:25): [True: 0, False: 234]
  ------------------
  814|      0|         Curl_cwriter_get_by_name(data, "chunked")) {
  ------------------
  |  Branch (814:10): [True: 0, False: 0]
  ------------------
  815|       |        /* RFC 9112, ch. 6.1:
  816|       |         * "If any transfer coding other than chunked is applied to a
  817|       |         *  response's content, the sender MUST either apply chunked as the
  818|       |         *  final transfer coding or terminate the message by closing the
  819|       |         *  connection."
  820|       |         * "chunked" must be the last added to be the first in its phase,
  821|       |         *  reject this.
  822|       |         */
  823|      0|        failf(data, "Reject response due to 'chunked' not being the last "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  824|      0|              "Transfer-Encoding");
  825|      0|        return CURLE_BAD_CONTENT_ENCODING;
  826|      0|      }
  827|    349|      if(cwt && is_chunked && Curl_cwriter_get_by_type(data, cwt)) {
  ------------------
  |  Branch (827:10): [True: 234, False: 115]
  |  Branch (827:17): [True: 234, False: 0]
  |  Branch (827:31): [True: 13, False: 221]
  ------------------
  828|       |        /* A 'chunked' transfer encoding has already been added.
  829|       |         * Ignore duplicates. See #13451.
  830|       |         * Also RFC 9112, ch. 6.1:
  831|       |         * "A sender MUST NOT apply the chunked transfer coding more than
  832|       |         *  once to a message body."
  833|       |         */
  834|     13|        CURL_TRC_WRITE(data, "ignoring duplicate 'chunked' decoder");
  ------------------
  |  |  158|     13|  do {                                                     \
  |  |  159|     13|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  329|     13|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|     26|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 13, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 13]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|     26|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|     13|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|     13|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|     13|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 13]
  |  |  ------------------
  ------------------
  835|     13|      }
  836|    336|      else {
  837|    336|        if(!cwt)
  ------------------
  |  Branch (837:12): [True: 115, False: 221]
  ------------------
  838|    115|          cwt = &error_writer; /* Defer error at use. */
  839|       |
  840|    336|        result = Curl_cwriter_create(&writer, data, cwt, phase);
  841|    336|        CURL_TRC_WRITE(data, "added %s decoder %s -> %d",
  ------------------
  |  |  158|    336|  do {                                                     \
  |  |  159|    336|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  329|    336|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    672|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 336, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 336]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    672|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    336|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|    336|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  ------------------
  |  |  |  Branch (160:28): [True: 0, False: 0]
  |  |  ------------------
  |  |  161|    336|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 336]
  |  |  ------------------
  ------------------
  842|    336|                       is_transfer ? "transfer" : "content", cwt->name,
  843|    336|                       (int)result);
  844|    336|        if(result)
  ------------------
  |  Branch (844:12): [True: 0, False: 336]
  ------------------
  845|      0|          return result;
  846|       |
  847|    336|        result = Curl_cwriter_add(data, writer);
  848|    336|        if(result) {
  ------------------
  |  Branch (848:12): [True: 0, False: 336]
  ------------------
  849|      0|          Curl_cwriter_free(data, writer);
  850|      0|          return result;
  851|      0|        }
  852|    336|      }
  853|    349|      if(is_chunked)
  ------------------
  |  Branch (853:10): [True: 234, False: 115]
  ------------------
  854|    234|        has_chunked = TRUE;
  ------------------
  |  | 1053|    234|#define TRUE true
  ------------------
  855|    349|    }
  856|    898|  } while(*enclist);
  ------------------
  |  Branch (856:11): [True: 100, False: 770]
  ------------------
  857|       |
  858|    770|  return CURLE_OK;
  859|    798|}
content_encoding.c:find_unencode_writer:
  727|    349|{
  728|    349|  const struct Curl_cwtype * const *cep;
  729|       |
  730|    349|  if(phase == CURL_CW_TRANSFER_DECODE) {
  ------------------
  |  Branch (730:6): [True: 234, False: 115]
  ------------------
  731|    234|    for(cep = transfer_unencoders; *cep; cep++) {
  ------------------
  |  Branch (731:36): [True: 234, False: 0]
  ------------------
  732|    234|      const struct Curl_cwtype *ce = *cep;
  733|    234|      if((curl_strnequal(name, ce->name, len) && !ce->name[len]) ||
  ------------------
  |  Branch (733:11): [True: 234, False: 0]
  |  Branch (733:50): [True: 234, False: 0]
  ------------------
  734|      0|         (ce->alias && curl_strnequal(name, ce->alias, len) &&
  ------------------
  |  Branch (734:11): [True: 0, False: 0]
  |  Branch (734:24): [True: 0, False: 0]
  ------------------
  735|      0|          !ce->alias[len]))
  ------------------
  |  Branch (735:11): [True: 0, False: 0]
  ------------------
  736|    234|        return ce;
  737|    234|    }
  738|    234|  }
  739|       |  /* look among the general decoders */
  740|    575|  for(cep = general_unencoders; *cep; cep++) {
  ------------------
  |  Branch (740:33): [True: 460, False: 115]
  ------------------
  741|    460|    const struct Curl_cwtype *ce = *cep;
  742|    460|    if((curl_strnequal(name, ce->name, len) && !ce->name[len]) ||
  ------------------
  |  Branch (742:9): [True: 23, False: 437]
  |  Branch (742:48): [True: 0, False: 23]
  ------------------
  743|    460|       (ce->alias && curl_strnequal(name, ce->alias, len) && !ce->alias[len]))
  ------------------
  |  Branch (743:9): [True: 230, False: 230]
  |  Branch (743:22): [True: 26, False: 204]
  |  Branch (743:62): [True: 0, False: 26]
  ------------------
  744|      0|      return ce;
  745|    460|  }
  746|    115|  return NULL;
  747|    115|}
content_encoding.c:error_do_init:
  685|    115|{
  686|    115|  (void)data;
  687|    115|  (void)writer;
  688|    115|  return CURLE_OK;
  689|    115|}
content_encoding.c:error_do_write:
  694|    761|{
  695|    761|  (void)writer;
  696|    761|  (void)buf;
  697|    761|  (void)nbytes;
  698|       |
  699|    761|  if(!(type & CLIENTWRITE_BODY) || !nbytes)
  ------------------
  |  |   43|    761|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  |  Branch (699:6): [True: 747, False: 14]
  |  Branch (699:36): [True: 12, False: 2]
  ------------------
  700|    759|    return Curl_cwriter_write(data, writer->next, type, buf, nbytes);
  ------------------
  |  |  188|    759|  ((w) ? (w)->cwt->do_write((d), (w), (t), (b), (n)) : CURLE_WRITE_ERROR)
  |  |  ------------------
  |  |  |  Branch (188:4): [True: 759, False: 0]
  |  |  ------------------
  ------------------
  701|      2|  failf(data, "Unrecognized content encoding type");
  ------------------
  |  |   62|      2|#define failf Curl_failf
  ------------------
  702|      2|  return CURLE_BAD_CONTENT_ENCODING;
  703|    761|}
content_encoding.c:error_do_close:
  707|    115|{
  708|    115|  (void)data;
  709|    115|  (void)writer;
  710|    115|}

Curl_cookie_add:
  993|  6.71k|{
  994|  6.71k|  struct Cookie comem;
  995|  6.71k|  struct Cookie *co;
  996|  6.71k|  size_t myhash;
  997|  6.71k|  CURLcode result;
  998|  6.71k|  bool replaces = FALSE;
  ------------------
  |  | 1056|  6.71k|#define FALSE false
  ------------------
  999|  6.71k|  bool okay;
 1000|       |
 1001|  6.71k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|  6.71k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1001:3): [True: 0, False: 6.71k]
  |  Branch (1001:3): [True: 6.71k, False: 0]
  ------------------
 1002|  6.71k|  DEBUGASSERT(MAX_SET_COOKIE_AMOUNT <= 255); /* counter is an unsigned char */
  ------------------
  |  | 1083|  6.71k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1002:3): [True: 0, Folded]
  |  Branch (1002:3): [True: 6.71k, Folded]
  ------------------
 1003|  6.71k|  if(data->req.setcookies >= MAX_SET_COOKIE_AMOUNT)
  ------------------
  |  |   90|  6.71k|#define MAX_SET_COOKIE_AMOUNT 50
  ------------------
  |  Branch (1003:6): [True: 372, False: 6.34k]
  ------------------
 1004|    372|    return CURLE_OK; /* silently ignore */
 1005|       |
 1006|  6.34k|  co = &comem;
 1007|  6.34k|  memset(co, 0, sizeof(comem));
 1008|       |
 1009|  6.34k|  if(flags & COOKIE_HTTPHEADER)
  ------------------
  |  |  114|  6.34k|#define COOKIE_HTTPHEADER (1<<0) /* if HTTP header-style line */
  ------------------
  |  Branch (1009:6): [True: 6.34k, False: 0]
  ------------------
 1010|  6.34k|    result = parse_cookie_header(data, co, ci, &okay,
 1011|  6.34k|                                 lineptr, domain, path, flags & COOKIE_SECURE);
  ------------------
  |  |  116|  6.34k|#define COOKIE_SECURE     (1<<2) /* connection is over secure origin */
  ------------------
 1012|      0|  else
 1013|      0|    result = parse_netscape(co, ci, &okay, lineptr, flags & COOKIE_SECURE);
  ------------------
  |  |  116|      0|#define COOKIE_SECURE     (1<<2) /* connection is over secure origin */
  ------------------
 1014|       |
 1015|  6.34k|  if(result || !okay)
  ------------------
  |  Branch (1015:6): [True: 0, False: 6.34k]
  |  Branch (1015:16): [True: 2.92k, False: 3.42k]
  ------------------
 1016|  2.92k|    goto fail;
 1017|       |
 1018|  3.42k|  if(co->prefix_secure && !co->secure)
  ------------------
  |  Branch (1018:6): [True: 0, False: 3.42k]
  |  Branch (1018:27): [True: 0, False: 0]
  ------------------
 1019|       |    /* The __Secure- prefix only requires that the cookie be set secure */
 1020|      0|    goto fail;
 1021|       |
 1022|  3.42k|  if(co->prefix_host) {
  ------------------
  |  Branch (1022:6): [True: 0, False: 3.42k]
  ------------------
 1023|       |    /*
 1024|       |     * The __Host- prefix requires the cookie to be secure, have a "/" path
 1025|       |     * and not have a domain set.
 1026|       |     */
 1027|      0|    if(co->secure && co->path && !strcmp(co->path, "/") && !co->tailmatch)
  ------------------
  |  Branch (1027:8): [True: 0, False: 0]
  |  Branch (1027:22): [True: 0, False: 0]
  |  Branch (1027:34): [True: 0, False: 0]
  |  Branch (1027:60): [True: 0, False: 0]
  ------------------
 1028|      0|      ;
 1029|      0|    else
 1030|      0|      goto fail;
 1031|      0|  }
 1032|       |
 1033|  3.42k|  if(!ci->running &&    /* read from a file */
  ------------------
  |  Branch (1033:6): [True: 0, False: 3.42k]
  ------------------
 1034|      0|     ci->newsession &&  /* clean session cookies */
  ------------------
  |  Branch (1034:6): [True: 0, False: 0]
  ------------------
 1035|      0|     !co->expires)      /* this is a session cookie */
  ------------------
  |  Branch (1035:6): [True: 0, False: 0]
  ------------------
 1036|      0|    goto fail;
 1037|       |
 1038|  3.42k|  co->livecookie = ci->running;
 1039|  3.42k|  co->creationtime = ++ci->lastct;
 1040|       |
 1041|       |
 1042|  3.42k|  if(!(flags & COOKIE_NOEXPIRE))
  ------------------
  |  |  115|  3.42k|#define COOKIE_NOEXPIRE   (1<<1) /* skip remove_expired() */
  ------------------
  |  Branch (1042:6): [True: 3.42k, False: 0]
  ------------------
 1043|  3.42k|    remove_expired(ci);
 1044|       |
 1045|  3.42k|  if(!(flags & COOKIE_NOPSL) && is_public_suffix(data, co, domain))
  ------------------
  |  |  117|  3.42k|#define COOKIE_NOPSL      (1<<3) /* skip PSL check */
  ------------------
  |  Branch (1045:6): [True: 3.42k, False: 0]
  |  Branch (1045:33): [True: 0, False: 3.42k]
  ------------------
 1046|      0|    goto fail;
 1047|       |
 1048|       |  /*
 1049|       |   * Now we have parsed the incoming line, we must now check if this supersedes
 1050|       |   * an already existing cookie, which it may if the previous have the same
 1051|       |   * domain and path as this.
 1052|       |   */
 1053|  3.42k|  if(!replace_existing(data, co, ci, flags & COOKIE_SECURE, &replaces))
  ------------------
  |  |  116|  3.42k|#define COOKIE_SECURE     (1<<2) /* connection is over secure origin */
  ------------------
  |  Branch (1053:6): [True: 0, False: 3.42k]
  ------------------
 1054|      0|    goto fail;
 1055|       |
 1056|       |  /* clone the stack struct into heap */
 1057|  3.42k|  co = curlx_memdup(&comem, sizeof(comem));
 1058|  3.42k|  if(!co) {
  ------------------
  |  Branch (1058:6): [True: 0, False: 3.42k]
  ------------------
 1059|      0|    co = &comem;
 1060|      0|    result = CURLE_OUT_OF_MEMORY;
 1061|      0|    goto fail; /* bail out if we are this low on memory */
 1062|      0|  }
 1063|       |
 1064|       |  /* add this cookie to the list */
 1065|  3.42k|  myhash = cookiehash(co->domain);
 1066|  3.42k|  Curl_llist_append(&ci->cookielist[myhash], co, &co->node);
 1067|       |
 1068|  3.42k|  if(ci->running)
  ------------------
  |  Branch (1068:6): [True: 3.42k, False: 0]
  ------------------
 1069|       |    /* Only show this when NOT reading the cookies from a file */
 1070|  3.42k|    infof(data, "%s cookie %s=\"%s\" for domain %s, path %s, "
  ------------------
  |  |  143|  3.42k|  do {                               \
  |  |  144|  3.42k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|  3.42k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 3.42k, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 3.42k]
  |  |  |  |  ------------------
  |  |  |  |  323|  3.42k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  3.42k|      Curl_infof(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  ------------------
  |  |  146|  3.42k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 3.42k]
  |  |  ------------------
  ------------------
 1071|  3.42k|          "expire %" FMT_OFF_T,
 1072|  3.42k|          replaces ? "Replaced" : "Added", co->name, co->value,
 1073|  3.42k|          co->domain, co->path, co->expires);
 1074|       |
 1075|  3.42k|  if(!replaces)
  ------------------
  |  Branch (1075:6): [True: 430, False: 2.99k]
  ------------------
 1076|    430|    ci->numcookies++; /* one more cookie in the jar */
 1077|       |
 1078|       |  /*
 1079|       |   * Now that we have added a new cookie to the jar, update the expiration
 1080|       |   * tracker in case it is the next one to expire.
 1081|       |   */
 1082|  3.42k|  if(co->expires && (co->expires < ci->next_expiration))
  ------------------
  |  Branch (1082:6): [True: 0, False: 3.42k]
  |  Branch (1082:21): [True: 0, False: 0]
  ------------------
 1083|      0|    ci->next_expiration = co->expires;
 1084|       |
 1085|  3.42k|  if(flags & COOKIE_HTTPHEADER)
  ------------------
  |  |  114|  3.42k|#define COOKIE_HTTPHEADER (1<<0) /* if HTTP header-style line */
  ------------------
  |  Branch (1085:6): [True: 3.42k, False: 0]
  ------------------
 1086|  3.42k|    data->req.setcookies++;
 1087|       |
 1088|  3.42k|  return result;
 1089|  2.92k|fail:
 1090|       |  freecookie(co, FALSE);
  ------------------
  |  | 1056|  2.92k|#define FALSE false
  ------------------
 1091|  2.92k|  return result;
 1092|  3.42k|}
Curl_cookie_init:
 1109|  9.97k|{
 1110|  9.97k|  int i;
 1111|  9.97k|  struct CookieInfo *ci = curlx_calloc(1, sizeof(struct CookieInfo));
  ------------------
  |  | 1479|  9.97k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
 1112|  9.97k|  if(!ci)
  ------------------
  |  Branch (1112:6): [True: 0, False: 9.97k]
  ------------------
 1113|      0|    return NULL;
 1114|       |
 1115|       |  /* This does not use the destructor callback since we want to add
 1116|       |     and remove to lists while keeping the cookie struct intact */
 1117|   638k|  for(i = 0; i < COOKIE_HASH_SIZE; i++)
  ------------------
  |  |   54|   638k|#define COOKIE_HASH_SIZE 63
  ------------------
  |  Branch (1117:14): [True: 628k, False: 9.97k]
  ------------------
 1118|   628k|    Curl_llist_init(&ci->cookielist[i], NULL);
 1119|       |  /*
 1120|       |   * Initialize the next_expiration time to signal that we do not have enough
 1121|       |   * information yet.
 1122|       |   */
 1123|  9.97k|  ci->next_expiration = CURL_OFF_T_MAX;
  ------------------
  |  |  596|  9.97k|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
 1124|       |
 1125|  9.97k|  return ci;
 1126|  9.97k|}
Curl_cookie_loadfiles:
 1217|  9.97k|{
 1218|  9.97k|  CURLcode result = CURLE_OK;
 1219|  9.97k|  struct curl_slist *list = data->state.cookielist;
 1220|  9.97k|  if(list) {
  ------------------
  |  Branch (1220:6): [True: 0, False: 9.97k]
  ------------------
 1221|      0|    Curl_share_lock(data, CURL_LOCK_DATA_COOKIE, CURL_LOCK_ACCESS_SINGLE);
 1222|      0|    if(!data->cookies)
  ------------------
  |  Branch (1222:8): [True: 0, False: 0]
  ------------------
 1223|      0|      data->cookies = Curl_cookie_init();
 1224|      0|    if(!data->cookies)
  ------------------
  |  Branch (1224:8): [True: 0, False: 0]
  ------------------
 1225|      0|      result = CURLE_OUT_OF_MEMORY;
 1226|      0|    else {
 1227|      0|      data->state.cookie_engine = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1228|      0|      while(list) {
  ------------------
  |  Branch (1228:13): [True: 0, False: 0]
  ------------------
 1229|      0|        result = cookie_load(data, list->data, data->cookies, flags);
 1230|      0|        if(result)
  ------------------
  |  Branch (1230:12): [True: 0, False: 0]
  ------------------
 1231|      0|          break;
 1232|      0|        list = list->next;
 1233|      0|      }
 1234|      0|    }
 1235|      0|    Curl_share_unlock(data, CURL_LOCK_DATA_COOKIE);
 1236|      0|  }
 1237|  9.97k|  return result;
 1238|  9.97k|}
Curl_secure_context:
 1293|  19.8k|{
 1294|  19.8k|  return Curl_xfer_is_secure(data) ||
  ------------------
  |  Branch (1294:10): [True: 0, False: 19.8k]
  ------------------
 1295|  19.8k|    curl_strequal("localhost", host) ||
  ------------------
  |  Branch (1295:5): [True: 0, False: 19.8k]
  ------------------
 1296|  19.8k|    !strcmp(host, "127.0.0.1") ||
  ------------------
  |  Branch (1296:5): [True: 555, False: 19.2k]
  ------------------
 1297|  19.2k|    !strcmp(host, "::1");
  ------------------
  |  Branch (1297:5): [True: 5, False: 19.2k]
  ------------------
 1298|  19.8k|}
Curl_cookie_getlist:
 1314|  13.0k|{
 1315|  13.0k|  size_t matches = 0;
 1316|  13.0k|  const bool is_ip = Curl_host_is_ipnum(host);
 1317|  13.0k|  const size_t myhash = cookiehash(host);
 1318|  13.0k|  struct Curl_llist_node *n;
 1319|  13.0k|  const bool secure = Curl_secure_context(data, host);
 1320|  13.0k|  struct CookieInfo *ci = data->cookies;
 1321|  13.0k|  const char *path = data->state.up.path;
 1322|  13.0k|  CURLcode result = CURLE_OK;
 1323|  13.0k|  *okay = FALSE;
  ------------------
  |  | 1056|  13.0k|#define FALSE false
  ------------------
 1324|       |
 1325|  13.0k|  Curl_llist_init(list, NULL);
 1326|       |
 1327|  13.0k|  if(!ci || !Curl_llist_count(&ci->cookielist[myhash]))
  ------------------
  |  Branch (1327:6): [True: 0, False: 13.0k]
  |  Branch (1327:13): [True: 13.0k, False: 0]
  ------------------
 1328|  13.0k|    return CURLE_OK; /* no cookie struct or no cookies in the struct */
 1329|       |
 1330|       |  /* at first, remove expired cookies */
 1331|      0|  remove_expired(ci);
 1332|       |
 1333|      0|  for(n = Curl_llist_head(&ci->cookielist[myhash]); n; n = Curl_node_next(n)) {
  ------------------
  |  Branch (1333:53): [True: 0, False: 0]
  ------------------
 1334|      0|    struct Cookie *co = Curl_node_elem(n);
 1335|       |
 1336|       |    /* if the cookie requires we are secure we must only continue if we are! */
 1337|      0|    if(co->secure ? secure : TRUE) {
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  |  Branch (1337:8): [True: 0, False: 0]
  |  Branch (1337:8): [True: 0, False: 0]
  ------------------
 1338|       |
 1339|       |      /* now check if the domain is correct */
 1340|      0|      if(!co->domain ||
  ------------------
  |  Branch (1340:10): [True: 0, False: 0]
  ------------------
 1341|      0|         (co->tailmatch && !is_ip &&
  ------------------
  |  Branch (1341:11): [True: 0, False: 0]
  |  Branch (1341:28): [True: 0, False: 0]
  ------------------
 1342|      0|          cookie_tailmatch(co->domain, strlen(co->domain), host)) ||
  ------------------
  |  Branch (1342:11): [True: 0, False: 0]
  ------------------
 1343|      0|         ((!co->tailmatch || is_ip) && curl_strequal(host, co->domain))) {
  ------------------
  |  Branch (1343:12): [True: 0, False: 0]
  |  Branch (1343:30): [True: 0, False: 0]
  |  Branch (1343:40): [True: 0, False: 0]
  ------------------
 1344|       |        /*
 1345|       |         * the right part of the host matches the domain stuff in the
 1346|       |         * cookie data
 1347|       |         */
 1348|       |
 1349|       |        /*
 1350|       |         * now check the left part of the path with the cookies path
 1351|       |         * requirement
 1352|       |         */
 1353|      0|        if(!co->path || pathmatch(co->path, path)) {
  ------------------
  |  Branch (1353:12): [True: 0, False: 0]
  |  Branch (1353:25): [True: 0, False: 0]
  ------------------
 1354|       |
 1355|       |          /*
 1356|       |           * This is a match and we add it to the return-linked-list
 1357|       |           */
 1358|      0|          Curl_llist_append(list, co, &co->getnode);
 1359|      0|          matches++;
 1360|      0|          if(matches >= MAX_COOKIE_SEND_AMOUNT) {
  ------------------
  |  |  102|      0|#define MAX_COOKIE_SEND_AMOUNT 150
  ------------------
  |  Branch (1360:14): [True: 0, False: 0]
  ------------------
 1361|      0|            infof(data, "Included max number of cookies (%zu) in request!",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1362|      0|                  matches);
 1363|      0|            break;
 1364|      0|          }
 1365|      0|        }
 1366|      0|      }
 1367|      0|    }
 1368|      0|  }
 1369|       |
 1370|      0|  if(matches) {
  ------------------
  |  Branch (1370:6): [True: 0, False: 0]
  ------------------
 1371|       |    /*
 1372|       |     * Now we need to make sure that if there is a name appearing more than
 1373|       |     * once, the longest specified path version comes first. To make this the
 1374|       |     * swiftest way, we sort them all based on path length.
 1375|       |     */
 1376|      0|    struct Cookie **array;
 1377|      0|    size_t i;
 1378|       |
 1379|       |    /* alloc an array and store all cookie pointers */
 1380|      0|    array = curlx_malloc(sizeof(struct Cookie *) * matches);
  ------------------
  |  | 1477|      0|#define curlx_malloc(size)         curl_dbg_malloc(size, __LINE__, __FILE__)
  ------------------
 1381|      0|    if(!array) {
  ------------------
  |  Branch (1381:8): [True: 0, False: 0]
  ------------------
 1382|      0|      result = CURLE_OUT_OF_MEMORY;
 1383|      0|      goto fail;
 1384|      0|    }
 1385|       |
 1386|      0|    n = Curl_llist_head(list);
 1387|       |
 1388|      0|    for(i = 0; n; n = Curl_node_next(n))
  ------------------
  |  Branch (1388:16): [True: 0, False: 0]
  ------------------
 1389|      0|      array[i++] = Curl_node_elem(n);
 1390|       |
 1391|       |    /* now sort the cookie pointers in path length order */
 1392|      0|    qsort(array, matches, sizeof(struct Cookie *), cookie_sort);
 1393|       |
 1394|       |    /* remake the linked list order according to the new order */
 1395|      0|    Curl_llist_destroy(list, NULL);
 1396|       |
 1397|      0|    for(i = 0; i < matches; i++)
  ------------------
  |  Branch (1397:16): [True: 0, False: 0]
  ------------------
 1398|      0|      Curl_llist_append(list, array[i], &array[i]->getnode);
 1399|       |
 1400|      0|    curlx_free(array); /* remove the temporary data again */
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1401|      0|  }
 1402|       |
 1403|      0|  *okay = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1404|      0|  return CURLE_OK; /* success */
 1405|       |
 1406|      0|fail:
 1407|       |  /* failure, clear up the allocated chain and return NULL */
 1408|       |  Curl_llist_destroy(list, NULL);
 1409|      0|  return result; /* error */
 1410|      0|}
Curl_cookie_clearall:
 1418|  9.97k|{
 1419|  9.97k|  if(ci) {
  ------------------
  |  Branch (1419:6): [True: 9.97k, False: 0]
  ------------------
 1420|  9.97k|    unsigned int i;
 1421|   638k|    for(i = 0; i < COOKIE_HASH_SIZE; i++) {
  ------------------
  |  |   54|   638k|#define COOKIE_HASH_SIZE 63
  ------------------
  |  Branch (1421:16): [True: 628k, False: 9.97k]
  ------------------
 1422|   628k|      struct Curl_llist_node *n;
 1423|   628k|      for(n = Curl_llist_head(&ci->cookielist[i]); n;) {
  ------------------
  |  Branch (1423:52): [True: 430, False: 628k]
  ------------------
 1424|    430|        struct Cookie *c = Curl_node_elem(n);
 1425|    430|        struct Curl_llist_node *e = Curl_node_next(n);
 1426|    430|        Curl_node_remove(n);
 1427|       |        freecookie(c, TRUE);
  ------------------
  |  | 1053|    430|#define TRUE true
  ------------------
 1428|    430|        n = e;
 1429|    430|      }
 1430|   628k|    }
 1431|  9.97k|    ci->numcookies = 0;
 1432|  9.97k|  }
 1433|  9.97k|}
Curl_cookie_cleanup:
 1469|  9.97k|{
 1470|  9.97k|  if(ci) {
  ------------------
  |  Branch (1470:6): [True: 9.97k, False: 0]
  ------------------
 1471|  9.97k|    Curl_cookie_clearall(ci);
 1472|  9.97k|    curlx_free(ci); /* free the base struct as well */
  ------------------
  |  | 1482|  9.97k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1473|  9.97k|  }
 1474|  9.97k|}
Curl_flush_cookies:
 1662|  19.9k|{
 1663|  19.9k|  Curl_share_lock(data, CURL_LOCK_DATA_COOKIE, CURL_LOCK_ACCESS_SINGLE);
 1664|       |  /* only save the cookie file if a transfer was started (cookies->running is
 1665|       |     set), as otherwise the cookies were not completely initialized and there
 1666|       |     might be cookie files that were not loaded so saving the file is the
 1667|       |     wrong thing. */
 1668|  19.9k|  if(data->cookies) {
  ------------------
  |  Branch (1668:6): [True: 9.97k, False: 9.97k]
  ------------------
 1669|  9.97k|    if(data->set.str[STRING_COOKIEJAR] && data->cookies->running) {
  ------------------
  |  Branch (1669:8): [True: 9.97k, False: 0]
  |  Branch (1669:43): [True: 9.97k, False: 0]
  ------------------
 1670|       |      /* if we have a destination file for all the cookies to get dumped to */
 1671|  9.97k|      CURLcode result = cookie_output(data, data->cookies,
 1672|  9.97k|                                      data->set.str[STRING_COOKIEJAR]);
 1673|  9.97k|      if(result)
  ------------------
  |  Branch (1673:10): [True: 0, False: 9.97k]
  ------------------
 1674|      0|        infof(data, "WARNING: failed to save cookies in %s: %s",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1675|  9.97k|              data->set.str[STRING_COOKIEJAR], curl_easy_strerror(result));
 1676|  9.97k|    }
 1677|       |
 1678|  9.97k|    if(cleanup && (!data->share || (data->cookies != data->share->cookies))) {
  ------------------
  |  Branch (1678:8): [True: 9.97k, False: 0]
  |  Branch (1678:20): [True: 9.97k, False: 0]
  |  Branch (1678:36): [True: 0, False: 0]
  ------------------
 1679|  9.97k|      Curl_cookie_cleanup(data->cookies);
 1680|       |      data->cookies = NULL;
 1681|  9.97k|    }
 1682|  9.97k|  }
 1683|  19.9k|  Curl_share_unlock(data, CURL_LOCK_DATA_COOKIE);
 1684|  19.9k|}
Curl_cookie_run:
 1687|  9.97k|{
 1688|  9.97k|  Curl_share_lock(data, CURL_LOCK_DATA_COOKIE, CURL_LOCK_ACCESS_SINGLE);
 1689|  9.97k|  if(data->cookies)
  ------------------
  |  Branch (1689:6): [True: 9.97k, False: 0]
  ------------------
 1690|  9.97k|    data->cookies->running = TRUE;
  ------------------
  |  | 1053|  9.97k|#define TRUE true
  ------------------
 1691|  9.97k|  Curl_share_unlock(data, CURL_LOCK_DATA_COOKIE);
 1692|  9.97k|}
cookie.c:parse_cookie_header:
  597|  6.34k|{
  598|       |  /* This line was read off an HTTP-header */
  599|  6.34k|  time_t now = 0;
  600|  6.34k|  size_t linelength = strlen(ptr);
  601|  6.34k|  CURLcode result = CURLE_OK;
  602|  6.34k|  struct Curl_str cookie[COOKIE_PIECES];
  603|  6.34k|  *okay = FALSE;
  ------------------
  |  | 1056|  6.34k|#define FALSE false
  ------------------
  604|  6.34k|  if(linelength > MAX_COOKIE_LINE)
  ------------------
  |  |   81|  6.34k|#define MAX_COOKIE_LINE 5000
  ------------------
  |  Branch (604:6): [True: 0, False: 6.34k]
  ------------------
  605|       |    /* discard overly long lines at once */
  606|      0|    return CURLE_OK;
  607|       |
  608|       |  /* memset instead of initializer because gcc 4.8.1 is silly */
  609|  6.34k|  memset(cookie, 0, sizeof(cookie));
  610|  10.2k|  do {
  611|  10.2k|    struct Curl_str name;
  612|       |
  613|       |    /* we have a <name>=<value> pair or a stand-alone word here */
  614|  10.2k|    if(!curlx_str_cspn(&ptr, &name, ";\t\r\n=")) {
  ------------------
  |  Branch (614:8): [True: 8.98k, False: 1.26k]
  ------------------
  615|  8.98k|      struct Curl_str val;
  616|  8.98k|      bool sep = FALSE;
  ------------------
  |  | 1056|  8.98k|#define FALSE false
  ------------------
  617|  8.98k|      curlx_str_trimblanks(&name);
  618|       |
  619|  8.98k|      if(invalid_octets(curlx_str(&name), curlx_strlen(&name))) {
  ------------------
  |  |   49|  8.98k|#define curlx_str(x)    ((x)->str)
  ------------------
                    if(invalid_octets(curlx_str(&name), curlx_strlen(&name))) {
  ------------------
  |  |   50|  8.98k|#define curlx_strlen(x) ((x)->len)
  ------------------
  |  Branch (619:10): [True: 0, False: 8.98k]
  ------------------
  620|      0|        infof(data, "invalid octets in name, cookie dropped");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  621|      0|        return CURLE_OK;
  622|      0|      }
  623|       |
  624|  8.98k|      if(!curlx_str_single(&ptr, '=')) {
  ------------------
  |  Branch (624:10): [True: 4.28k, False: 4.70k]
  ------------------
  625|  4.28k|        sep = TRUE; /* a '=' was used */
  ------------------
  |  | 1053|  4.28k|#define TRUE true
  ------------------
  626|  4.28k|        if(!curlx_str_cspn(&ptr, &val, ";\r\n"))
  ------------------
  |  Branch (626:12): [True: 3.97k, False: 310]
  ------------------
  627|  3.97k|          curlx_str_trimblanks(&val);
  628|       |
  629|  4.28k|        if(invalid_octets(curlx_str(&val), curlx_strlen(&val))) {
  ------------------
  |  |   49|  4.28k|#define curlx_str(x)    ((x)->str)
  ------------------
                      if(invalid_octets(curlx_str(&val), curlx_strlen(&val))) {
  ------------------
  |  |   50|  4.28k|#define curlx_strlen(x) ((x)->len)
  ------------------
  |  Branch (629:12): [True: 39, False: 4.24k]
  ------------------
  630|     39|          infof(data, "invalid octets in value, cookie dropped");
  ------------------
  |  |  143|     39|  do {                               \
  |  |  144|     39|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|     39|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 39, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 39]
  |  |  |  |  ------------------
  |  |  |  |  323|     39|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     39|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     39|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 39]
  |  |  ------------------
  ------------------
  631|     39|          return CURLE_OK;
  632|     39|        }
  633|  4.28k|      }
  634|  4.70k|      else
  635|  4.70k|        curlx_str_init(&val);
  636|       |
  637|  8.94k|      if(!curlx_strlen(&cookie[COOKIE_NAME])) {
  ------------------
  |  |   50|  8.94k|#define curlx_strlen(x) ((x)->len)
  ------------------
  |  Branch (637:10): [True: 6.30k, False: 2.64k]
  ------------------
  638|  6.30k|        if(!parse_first_pair(data, co, cookie, &name, &val, sep))
  ------------------
  |  Branch (638:12): [True: 2.88k, False: 3.42k]
  ------------------
  639|  2.88k|          return CURLE_OK;
  640|  6.30k|      }
  641|  2.64k|      else if(!sep) {
  ------------------
  |  Branch (641:15): [True: 2.11k, False: 529]
  ------------------
  642|  2.11k|        if(!parse_flag(data, co, ci, &name, secure_origin))
  ------------------
  |  Branch (642:12): [True: 0, False: 2.11k]
  ------------------
  643|      0|          return CURLE_OK;
  644|  2.11k|      }
  645|    529|      else if(curlx_str_casecompare(&name, "path"))
  ------------------
  |  Branch (645:15): [True: 0, False: 529]
  ------------------
  646|      0|        cookie[COOKIE_PATH] = val;
  ------------------
  |  |  366|      0|#define COOKIE_PATH   3
  ------------------
  647|    529|      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 (647:15): [True: 0, False: 529]
  ------------------
  648|      0|        if(!parse_domain(data, co, &cookie[COOKIE_DOMAIN], &val, &domain))
  ------------------
  |  |  365|      0|#define COOKIE_DOMAIN 2
  ------------------
  |  Branch (648:12): [True: 0, False: 0]
  ------------------
  649|      0|          return CURLE_OK;
  650|      0|      }
  651|    529|      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 (651:15): [True: 0, False: 529]
  ------------------
  652|      0|        parse_maxage(co, &val, &now);
  653|    529|      else if(curlx_str_casecompare(&name, "expires") && curlx_strlen(&val))
  ------------------
  |  |   50|      0|#define curlx_strlen(x) ((x)->len)
  |  |  ------------------
  |  |  |  Branch (50:25): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (653:15): [True: 0, False: 529]
  ------------------
  654|      0|        parse_expires(co, &val, &now);
  655|  8.94k|    }
  656|  10.2k|  } while(!curlx_str_single(&ptr, ';'));
  ------------------
  |  Branch (656:11): [True: 3.90k, False: 3.42k]
  ------------------
  657|       |
  658|  3.42k|  if(curlx_strlen(&cookie[COOKIE_NAME])) {
  ------------------
  |  |   50|  3.42k|#define curlx_strlen(x) ((x)->len)
  |  |  ------------------
  |  |  |  Branch (50:25): [True: 3.42k, False: 0]
  |  |  ------------------
  ------------------
  659|       |    /* the header was fine, now store the data */
  660|  3.42k|    result = storecookie(co, &cookie[0], path, domain);
  661|  3.42k|    if(!result)
  ------------------
  |  Branch (661:8): [True: 3.42k, False: 0]
  ------------------
  662|  3.42k|      *okay = TRUE;
  ------------------
  |  | 1053|  3.42k|#define TRUE true
  ------------------
  663|  3.42k|  }
  664|  3.42k|  return result;
  665|  6.34k|}
cookie.c:invalid_octets:
  346|  13.2k|{
  347|  13.2k|  const unsigned char *p = (const unsigned char *)ptr;
  348|       |  /* Reject all bytes \x01 - \x1f + \x7f */
  349|  88.2k|  while(len && *p) {
  ------------------
  |  Branch (349:9): [True: 75.0k, False: 13.2k]
  |  Branch (349:16): [True: 75.0k, False: 0]
  ------------------
  350|  75.0k|    if((*p < 0x20) || (*p == 0x7f))
  ------------------
  |  Branch (350:8): [True: 39, False: 75.0k]
  |  Branch (350:23): [True: 0, False: 75.0k]
  ------------------
  351|     39|      return TRUE;
  ------------------
  |  | 1053|     39|#define TRUE true
  ------------------
  352|  75.0k|    p++;
  353|  75.0k|    len--;
  354|  75.0k|  }
  355|  13.2k|  return FALSE;
  ------------------
  |  | 1056|  13.2k|#define FALSE false
  ------------------
  356|  13.2k|}
cookie.c:parse_first_pair:
  423|  6.30k|{
  424|       |  /* The first name/value pair is the actual cookie name */
  425|  6.30k|  if(!sep || !curlx_strlen(name)) {
  ------------------
  |  |   50|  3.72k|#define curlx_strlen(x) ((x)->len)
  ------------------
  |  Branch (425:6): [True: 2.58k, False: 3.72k]
  |  Branch (425:14): [True: 297, False: 3.42k]
  ------------------
  426|  2.88k|    infof(data, "invalid cookie, dropped");
  ------------------
  |  |  143|  2.88k|  do {                               \
  |  |  144|  2.88k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|  2.88k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 2.88k, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 2.88k]
  |  |  |  |  ------------------
  |  |  |  |  323|  2.88k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  2.88k|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|  2.88k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 2.88k]
  |  |  ------------------
  ------------------
  427|  2.88k|    return FALSE;
  ------------------
  |  | 1056|  2.88k|#define FALSE false
  ------------------
  428|  2.88k|  }
  429|       |
  430|       |  /*
  431|       |   * Check for too long individual name or contents. Chrome and Firefox
  432|       |   * support 4095 or 4096 bytes combo
  433|       |   */
  434|  3.42k|  if((curlx_strlen(name) + curlx_strlen(val)) > MAX_NAME) {
  ------------------
  |  |   50|  3.42k|#define curlx_strlen(x) ((x)->len)
  ------------------
                if((curlx_strlen(name) + curlx_strlen(val)) > MAX_NAME) {
  ------------------
  |  |   50|  3.42k|#define curlx_strlen(x) ((x)->len)
  ------------------
                if((curlx_strlen(name) + curlx_strlen(val)) > MAX_NAME) {
  ------------------
  |  |   85|  3.42k|#define MAX_NAME 4096
  ------------------
  |  Branch (434:6): [True: 0, False: 3.42k]
  ------------------
  435|      0|    infof(data, "oversized cookie dropped, name/val %zu + %zu bytes",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  436|      0|          curlx_strlen(name), curlx_strlen(val));
  437|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  438|      0|  }
  439|       |
  440|       |  /* Check if we have a reserved prefix set. */
  441|  3.42k|  if(!strncmp("__Secure-", curlx_str(name), 9))
  ------------------
  |  |   49|  3.42k|#define curlx_str(x)    ((x)->str)
  ------------------
  |  Branch (441:6): [True: 0, False: 3.42k]
  ------------------
  442|      0|    co->prefix_secure = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  443|  3.42k|  else if(!strncmp("__Host-", curlx_str(name), 7))
  ------------------
  |  |   49|  3.42k|#define curlx_str(x)    ((x)->str)
  ------------------
  |  Branch (443:11): [True: 0, False: 3.42k]
  ------------------
  444|      0|    co->prefix_host = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  445|       |
  446|  3.42k|  cookie[COOKIE_NAME] = *name;
  ------------------
  |  |  363|  3.42k|#define COOKIE_NAME   0
  ------------------
  447|  3.42k|  cookie[COOKIE_VALUE] = *val;
  ------------------
  |  |  364|  3.42k|#define COOKIE_VALUE  1
  ------------------
  448|       |  return TRUE;
  ------------------
  |  | 1053|  3.42k|#define TRUE true
  ------------------
  449|  3.42k|}
cookie.c:parse_flag:
  454|  2.11k|{
  455|       |  /*
  456|       |   * secure cookies are only allowed to be set when the connection is
  457|       |   * using a secure protocol, or when the cookie is being set by
  458|       |   * reading from file
  459|       |   */
  460|  2.11k|  if(curlx_str_casecompare(name, "secure")) {
  ------------------
  |  Branch (460:6): [True: 0, False: 2.11k]
  ------------------
  461|      0|    if(secure || !ci->running)
  ------------------
  |  Branch (461:8): [True: 0, False: 0]
  |  Branch (461:18): [True: 0, False: 0]
  ------------------
  462|      0|      co->secure = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  463|      0|    else {
  464|      0|      infof(data, "skipped cookie because not 'secure'");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  465|      0|      return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  466|      0|    }
  467|      0|  }
  468|  2.11k|  else if(curlx_str_casecompare(name, "httponly"))
  ------------------
  |  Branch (468:11): [True: 0, False: 2.11k]
  ------------------
  469|      0|    co->httponly = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  470|       |
  471|  2.11k|  return TRUE;
  ------------------
  |  | 1053|  2.11k|#define TRUE true
  ------------------
  472|  2.11k|}
cookie.c:storecookie:
  372|  3.42k|{
  373|  3.42k|  CURLcode result;
  374|  3.42k|  result = strstore(&co->name, curlx_str(&cp[COOKIE_NAME]),
  ------------------
  |  |   49|  3.42k|#define curlx_str(x)    ((x)->str)
  ------------------
  375|  3.42k|                    curlx_strlen(&cp[COOKIE_NAME]));
  ------------------
  |  |   50|  3.42k|#define curlx_strlen(x) ((x)->len)
  ------------------
  376|  3.42k|  if(!result)
  ------------------
  |  Branch (376:6): [True: 3.42k, False: 0]
  ------------------
  377|  3.42k|    result = strstore(&co->value, curlx_str(&cp[COOKIE_VALUE]),
  ------------------
  |  |   49|  3.42k|#define curlx_str(x)    ((x)->str)
  ------------------
  378|  3.42k|                      curlx_strlen(&cp[COOKIE_VALUE]));
  ------------------
  |  |   50|  3.42k|#define curlx_strlen(x) ((x)->len)
  ------------------
  379|  3.42k|  if(!result) {
  ------------------
  |  Branch (379:6): [True: 3.42k, False: 0]
  ------------------
  380|  3.42k|    size_t plen = 0;
  381|  3.42k|    if(curlx_strlen(&cp[COOKIE_PATH])) {
  ------------------
  |  |   50|  3.42k|#define curlx_strlen(x) ((x)->len)
  |  |  ------------------
  |  |  |  Branch (50:25): [True: 0, False: 3.42k]
  |  |  ------------------
  ------------------
  382|      0|      path = curlx_str(&cp[COOKIE_PATH]);
  ------------------
  |  |   49|      0|#define curlx_str(x)    ((x)->str)
  ------------------
  383|      0|      plen = curlx_strlen(&cp[COOKIE_PATH]);
  ------------------
  |  |   50|      0|#define curlx_strlen(x) ((x)->len)
  ------------------
  384|      0|    }
  385|  3.42k|    else if(path) {
  ------------------
  |  Branch (385:13): [True: 3.42k, False: 0]
  ------------------
  386|       |      /* No path was given in the header line, set the default */
  387|  3.42k|      const char *endslash = strrchr(path, '/');
  388|  3.42k|      if(endslash)
  ------------------
  |  Branch (388:10): [True: 3.42k, False: 0]
  ------------------
  389|  3.42k|        plen = endslash - path + 1; /* include end slash */
  390|      0|      else
  391|      0|        plen = strlen(path);
  392|  3.42k|    }
  393|       |
  394|  3.42k|    if(path) {
  ------------------
  |  Branch (394:8): [True: 3.42k, False: 0]
  ------------------
  395|  3.42k|      co->path = sanitize_cookie_path(path, plen);
  396|  3.42k|      if(!co->path)
  ------------------
  |  Branch (396:10): [True: 0, False: 3.42k]
  ------------------
  397|      0|        result = CURLE_OUT_OF_MEMORY;
  398|  3.42k|    }
  399|  3.42k|  }
  400|  3.42k|  if(!result) {
  ------------------
  |  Branch (400:6): [True: 3.42k, False: 0]
  ------------------
  401|  3.42k|    if(curlx_strlen(&cp[COOKIE_DOMAIN]))
  ------------------
  |  |   50|  3.42k|#define curlx_strlen(x) ((x)->len)
  |  |  ------------------
  |  |  |  Branch (50:25): [True: 0, False: 3.42k]
  |  |  ------------------
  ------------------
  402|      0|      result = strstore(&co->domain, curlx_str(&cp[COOKIE_DOMAIN]),
  ------------------
  |  |   49|      0|#define curlx_str(x)    ((x)->str)
  ------------------
  403|      0|                        curlx_strlen(&cp[COOKIE_DOMAIN]));
  ------------------
  |  |   50|      0|#define curlx_strlen(x) ((x)->len)
  ------------------
  404|  3.42k|    else if(domain) {
  ------------------
  |  Branch (404:13): [True: 3.42k, False: 0]
  ------------------
  405|       |      /* no domain was given in the header line, set the default */
  406|  3.42k|      co->domain = curlx_strdup(domain);
  ------------------
  |  | 1476|  3.42k|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  407|  3.42k|      if(!co->domain)
  ------------------
  |  Branch (407:10): [True: 0, False: 3.42k]
  ------------------
  408|      0|        result = CURLE_OUT_OF_MEMORY;
  409|  3.42k|    }
  410|  3.42k|  }
  411|  3.42k|  return result;
  412|  3.42k|}
cookie.c:strstore:
  256|  6.84k|{
  257|  6.84k|  DEBUGASSERT(str);
  ------------------
  |  | 1083|  6.84k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (257:3): [True: 0, False: 6.84k]
  |  Branch (257:3): [True: 6.84k, False: 0]
  ------------------
  258|  6.84k|  *str = curlx_memdup0(newstr, len);
  259|  6.84k|  if(!*str)
  ------------------
  |  Branch (259:6): [True: 0, False: 6.84k]
  ------------------
  260|      0|    return CURLE_OUT_OF_MEMORY;
  261|  6.84k|  return CURLE_OK;
  262|  6.84k|}
cookie.c:sanitize_cookie_path:
  227|  3.42k|{
  228|       |  /* some sites send path attribute within '"'. */
  229|  3.42k|  if(len && (cookie_path[0] == '\"')) {
  ------------------
  |  Branch (229:6): [True: 3.42k, False: 0]
  |  Branch (229:13): [True: 0, False: 3.42k]
  ------------------
  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|  3.42k|  if(!len || (cookie_path[0] != '/'))
  ------------------
  |  Branch (238:6): [True: 0, False: 3.42k]
  |  Branch (238:14): [True: 0, False: 3.42k]
  ------------------
  239|       |    /* Let cookie-path be the default-path. */
  240|      0|    return curlx_strdup("/");
  ------------------
  |  | 1476|      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|  3.42k|  if(len > 1 && cookie_path[len - 1] == '/')
  ------------------
  |  Branch (244:6): [True: 126, False: 3.29k]
  |  Branch (244:17): [True: 126, False: 0]
  ------------------
  245|    126|    len--;
  246|       |
  247|  3.42k|  return curlx_memdup0(cookie_path, len);
  248|  3.42k|}
cookie.c:remove_expired:
  274|  13.3k|{
  275|  13.3k|  struct Cookie *co;
  276|  13.3k|  curl_off_t now = (curl_off_t)time(NULL);
  277|  13.3k|  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|  13.3k|  if(now < ci->next_expiration &&
  ------------------
  |  Branch (287:6): [True: 13.3k, False: 0]
  ------------------
  288|  13.3k|     ci->next_expiration != CURL_OFF_T_MAX)
  ------------------
  |  |  596|  13.3k|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  |  Branch (288:6): [True: 0, False: 13.3k]
  ------------------
  289|      0|    return;
  290|  13.3k|  else
  291|  13.3k|    ci->next_expiration = CURL_OFF_T_MAX;
  ------------------
  |  |  596|  13.3k|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  292|       |
  293|   857k|  for(i = 0; i < COOKIE_HASH_SIZE; i++) {
  ------------------
  |  |   54|   857k|#define COOKIE_HASH_SIZE 63
  ------------------
  |  Branch (293:14): [True: 844k, False: 13.3k]
  ------------------
  294|   844k|    struct Curl_llist_node *n;
  295|   844k|    struct Curl_llist_node *e = NULL;
  296|       |
  297|   849k|    for(n = Curl_llist_head(&ci->cookielist[i]); n; n = e) {
  ------------------
  |  Branch (297:50): [True: 5.48k, False: 844k]
  ------------------
  298|  5.48k|      co = Curl_node_elem(n);
  299|  5.48k|      e = Curl_node_next(n);
  300|  5.48k|      if(co->expires) {
  ------------------
  |  Branch (300:10): [True: 0, False: 5.48k]
  ------------------
  301|      0|        if(co->expires < now) {
  ------------------
  |  Branch (301:12): [True: 0, False: 0]
  ------------------
  302|      0|          Curl_node_remove(n);
  303|      0|          freecookie(co, TRUE);
  ------------------
  |  | 1053|      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|  5.48k|    }
  314|   844k|  }
  315|  13.3k|}
cookie.c:is_public_suffix:
  803|  3.42k|{
  804|       |#ifdef USE_LIBPSL
  805|       |  /*
  806|       |   * Check if the domain is a Public Suffix and if yes, ignore the cookie.
  807|       |   * 'domain' is NULL when the cookie is loaded from file or
  808|       |   * CURLOPT_COOKIELIST.
  809|       |   */
  810|       |  DEBUGASSERT(data);
  811|       |  DEBUGASSERT(co);
  812|       |  DEBUGF(infof(data, "PSL check set-cookie '%s' for domain=%s in %s",
  813|       |               co->name, co->domain ? co->domain : "[blank]",
  814|       |               domain ? domain : "[file]"));
  815|       |  if(!co->domain || Curl_host_is_ipnum(co->domain))
  816|       |    return FALSE;
  817|       |
  818|       |  else {
  819|       |    bool acceptable = FALSE;
  820|       |    char lcase[256];
  821|       |    char lcookie[256];
  822|       |    size_t dlen = domain ? strlen(domain) : 0;
  823|       |    size_t clen = strlen(co->domain);
  824|       |
  825|       |    /* trim trailing dots */
  826|       |    if(dlen && (domain[dlen - 1] == '.'))
  827|       |      dlen--;
  828|       |    if(clen && (co->domain[clen - 1] == '.'))
  829|       |      clen--;
  830|       |
  831|       |    if((dlen < sizeof(lcase)) && (clen < sizeof(lcookie))) {
  832|       |      const psl_ctx_t *psl = Curl_psl_use(data);
  833|       |      if(psl) {
  834|       |        /* the PSL check requires lowercase domain name and pattern */
  835|       |        Curl_strntolower(lcookie, co->domain, clen);
  836|       |        lcookie[clen] = 0;
  837|       |        if(domain) {
  838|       |          Curl_strntolower(lcase, domain, dlen);
  839|       |          lcase[dlen] = 0;
  840|       |          acceptable = psl_is_cookie_domain_acceptable(psl, lcase, lcookie);
  841|       |        }
  842|       |        else
  843|       |          /* note that this PSL function returns the opposite value than
  844|       |             psl_is_cookie_domain_acceptable() does */
  845|       |          acceptable = !psl_is_public_suffix(psl, lcookie);
  846|       |        Curl_psl_release(data);
  847|       |      }
  848|       |      else
  849|       |        infof(data, "libpsl problem, rejecting cookie for safety");
  850|       |    }
  851|       |
  852|       |    if(!acceptable) {
  853|       |      infof(data, "cookie '%s' dropped, domain '%s' must not "
  854|       |            "set cookies for '%s'", co->name,
  855|       |            domain ? domain : "[file]", co->domain);
  856|       |      return TRUE;
  857|       |    }
  858|       |  }
  859|       |#else
  860|  3.42k|  (void)data;
  861|  3.42k|  (void)co;
  862|  3.42k|  (void)domain;
  863|  3.42k|  DEBUGF(infof(data, "NO PSL to check set-cookie '%s' for domain=%s in %s",
  ------------------
  |  | 1069|  23.9k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1069:19): [True: 3.42k, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 3.42k]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [Folded, False: 3.42k]
  |  |  ------------------
  ------------------
  864|  3.42k|               co->name, co->domain, domain ? domain : "[file]"));
  865|  3.42k|#endif
  866|       |  return FALSE;
  ------------------
  |  | 1056|  3.42k|#define FALSE false
  ------------------
  867|  3.42k|}
cookie.c:replace_existing:
  875|  3.42k|{
  876|  3.42k|  bool replace_old = FALSE;
  ------------------
  |  | 1056|  3.42k|#define FALSE false
  ------------------
  877|  3.42k|  struct Curl_llist_node *replace_n = NULL;
  878|  3.42k|  struct Curl_llist_node *n;
  879|  3.42k|  size_t myhash = cookiehash(co->domain);
  880|  8.48k|  for(n = Curl_llist_head(&ci->cookielist[myhash]); n; n = Curl_node_next(n)) {
  ------------------
  |  Branch (880:53): [True: 5.05k, False: 3.42k]
  ------------------
  881|  5.05k|    struct Cookie *clist = Curl_node_elem(n);
  882|  5.05k|    if(!strcmp(clist->name, co->name)) {
  ------------------
  |  Branch (882:8): [True: 2.99k, False: 2.06k]
  ------------------
  883|       |      /* the names are identical */
  884|  2.99k|      bool matching_domains = FALSE;
  ------------------
  |  | 1056|  2.99k|#define FALSE false
  ------------------
  885|       |
  886|  2.99k|      if(clist->domain && co->domain) {
  ------------------
  |  Branch (886:10): [True: 2.99k, False: 0]
  |  Branch (886:27): [True: 2.99k, False: 0]
  ------------------
  887|  2.99k|        if(cookie_tailmatch(clist->domain, strlen(clist->domain),
  ------------------
  |  Branch (887:12): [True: 2.99k, False: 0]
  ------------------
  888|  2.99k|                            co->domain) ||
  889|      0|           cookie_tailmatch(co->domain, strlen(co->domain), clist->domain))
  ------------------
  |  Branch (889:12): [True: 0, False: 0]
  ------------------
  890|       |          /* The existing one is a tail of the new or vice versa */
  891|  2.99k|          matching_domains = TRUE;
  ------------------
  |  | 1053|  2.99k|#define TRUE true
  ------------------
  892|  2.99k|      }
  893|      0|      else if(!clist->domain && !co->domain)
  ------------------
  |  Branch (893:15): [True: 0, False: 0]
  |  Branch (893:33): [True: 0, False: 0]
  ------------------
  894|      0|        matching_domains = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  895|       |
  896|  2.99k|      if(matching_domains && /* the domains were identical */
  ------------------
  |  Branch (896:10): [True: 2.99k, False: 0]
  ------------------
  897|  2.99k|         clist->path && co->path && /* both have paths */
  ------------------
  |  Branch (897:10): [True: 2.99k, False: 0]
  |  Branch (897:25): [True: 2.99k, False: 0]
  ------------------
  898|  2.99k|         clist->secure && !co->secure && !secure) {
  ------------------
  |  Branch (898:10): [True: 0, False: 2.99k]
  |  Branch (898:27): [True: 0, False: 0]
  |  Branch (898:42): [True: 0, False: 0]
  ------------------
  899|      0|        size_t cllen;
  900|      0|        const char *sep = NULL;
  901|       |
  902|       |        /*
  903|       |         * A non-secure cookie may not overlay an existing secure cookie.
  904|       |         * For an existing cookie "a" with path "/login", refuse a new
  905|       |         * cookie "a" with for example path "/login/en", while the path
  906|       |         * "/loginhelper" is ok.
  907|       |         */
  908|       |
  909|      0|        DEBUGASSERT(clist->path[0]);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (909:9): [True: 0, False: 0]
  |  Branch (909:9): [True: 0, False: 0]
  ------------------
  910|      0|        if(clist->path[0])
  ------------------
  |  Branch (910:12): [True: 0, False: 0]
  ------------------
  911|      0|          sep = strchr(clist->path + 1, '/');
  912|      0|        if(sep)
  ------------------
  |  Branch (912:12): [True: 0, False: 0]
  ------------------
  913|      0|          cllen = sep - clist->path;
  914|      0|        else
  915|      0|          cllen = strlen(clist->path);
  916|       |
  917|      0|        if(!strncmp(clist->path, co->path, cllen)) {
  ------------------
  |  Branch (917:12): [True: 0, False: 0]
  ------------------
  918|      0|          infof(data, "cookie '%s' for domain '%s' dropped, would "
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  919|      0|                "overlay an existing cookie", co->name, co->domain);
  920|      0|          return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  921|      0|        }
  922|      0|      }
  923|  2.99k|    }
  924|       |
  925|  5.05k|    if(!replace_n && !strcmp(clist->name, co->name)) {
  ------------------
  |  Branch (925:8): [True: 4.75k, False: 304]
  |  Branch (925:22): [True: 2.99k, False: 1.76k]
  ------------------
  926|       |      /* the names are identical */
  927|       |
  928|  2.99k|      if(clist->domain && co->domain) {
  ------------------
  |  Branch (928:10): [True: 2.99k, False: 0]
  |  Branch (928:27): [True: 2.99k, False: 0]
  ------------------
  929|  2.99k|        if(curl_strequal(clist->domain, co->domain) &&
  ------------------
  |  Branch (929:12): [True: 2.99k, False: 0]
  ------------------
  930|  2.99k|           (clist->tailmatch == co->tailmatch))
  ------------------
  |  Branch (930:12): [True: 2.99k, False: 0]
  ------------------
  931|       |          /* The domains are identical */
  932|  2.99k|          replace_old = TRUE;
  ------------------
  |  | 1053|  2.99k|#define TRUE true
  ------------------
  933|  2.99k|      }
  934|      0|      else if(!clist->domain && !co->domain)
  ------------------
  |  Branch (934:15): [True: 0, False: 0]
  |  Branch (934:33): [True: 0, False: 0]
  ------------------
  935|      0|        replace_old = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  936|       |
  937|  2.99k|      if(replace_old) {
  ------------------
  |  Branch (937:10): [True: 2.99k, False: 0]
  ------------------
  938|       |        /* the domains were identical */
  939|       |
  940|  2.99k|        if(clist->path && co->path &&
  ------------------
  |  Branch (940:12): [True: 2.99k, False: 0]
  |  Branch (940:27): [True: 2.99k, False: 0]
  ------------------
  941|  2.99k|           strcmp(clist->path, co->path))
  ------------------
  |  Branch (941:12): [True: 0, False: 2.99k]
  ------------------
  942|      0|          replace_old = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  943|  2.99k|        else if(!clist->path != !co->path)
  ------------------
  |  Branch (943:17): [True: 0, False: 2.99k]
  ------------------
  944|      0|          replace_old = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  945|  2.99k|      }
  946|       |
  947|  2.99k|      if(replace_old && !co->livecookie && clist->livecookie) {
  ------------------
  |  Branch (947:10): [True: 2.99k, False: 0]
  |  Branch (947:25): [True: 0, False: 2.99k]
  |  Branch (947:44): [True: 0, False: 0]
  ------------------
  948|       |        /*
  949|       |         * Both cookies matched fine, except that the already present cookie
  950|       |         * is "live", which means it was set from a header, while the new one
  951|       |         * was read from a file and thus is not "live". "live" cookies are
  952|       |         * preferred so the new cookie is freed.
  953|       |         */
  954|      0|        return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  955|      0|      }
  956|  2.99k|      if(replace_old)
  ------------------
  |  Branch (956:10): [True: 2.99k, False: 0]
  ------------------
  957|  2.99k|        replace_n = n;
  958|  2.99k|    }
  959|  5.05k|  }
  960|  3.42k|  if(replace_n) {
  ------------------
  |  Branch (960:6): [True: 2.99k, False: 430]
  ------------------
  961|  2.99k|    struct Cookie *repl = Curl_node_elem(replace_n);
  962|       |
  963|       |    /* when replacing, creationtime is kept from old */
  964|  2.99k|    co->creationtime = repl->creationtime;
  965|       |
  966|       |    /* unlink the old */
  967|  2.99k|    Curl_node_remove(replace_n);
  968|       |
  969|       |    /* free the old cookie */
  970|  2.99k|    freecookie(repl, TRUE);
  ------------------
  |  | 1053|  2.99k|#define TRUE true
  ------------------
  971|  2.99k|  }
  972|  3.42k|  *replacep = replace_old;
  973|       |  return TRUE;
  ------------------
  |  | 1053|  3.42k|#define TRUE true
  ------------------
  974|  3.42k|}
cookie.c:cookiehash:
  212|  19.9k|{
  213|  19.9k|  const char *top;
  214|  19.9k|  size_t len;
  215|       |
  216|  19.9k|  if(!domain || Curl_host_is_ipnum(domain))
  ------------------
  |  Branch (216:6): [True: 0, False: 19.9k]
  |  Branch (216:17): [True: 5.61k, False: 14.3k]
  ------------------
  217|  5.61k|    return 0;
  218|       |
  219|  14.3k|  top = get_top_domain(domain, &len);
  220|  14.3k|  return cookie_hash_domain(top, len);
  221|  19.9k|}
cookie.c:get_top_domain:
  162|  14.3k|{
  163|  14.3k|  size_t len = 0;
  164|  14.3k|  const char *first = NULL, *last;
  165|       |
  166|  14.3k|  if(domain) {
  ------------------
  |  Branch (166:6): [True: 14.3k, False: 0]
  ------------------
  167|  14.3k|    len = strlen(domain);
  168|  14.3k|    last = memrchr(domain, '.', len);
  169|  14.3k|    if(last) {
  ------------------
  |  Branch (169:8): [True: 2.46k, False: 11.8k]
  ------------------
  170|  2.46k|      first = memrchr(domain, '.', (last - domain));
  171|  2.46k|      if(first)
  ------------------
  |  Branch (171:10): [True: 1.63k, False: 833]
  ------------------
  172|  1.63k|        len -= (++first - domain);
  173|  2.46k|    }
  174|  14.3k|  }
  175|       |
  176|  14.3k|  if(outlen)
  ------------------
  |  Branch (176:6): [True: 14.3k, False: 0]
  ------------------
  177|  14.3k|    *outlen = len;
  178|       |
  179|  14.3k|  return first ? first : domain;
  ------------------
  |  Branch (179:10): [True: 1.63k, False: 12.6k]
  ------------------
  180|  14.3k|}
cookie.c:cookie_hash_domain:
  191|  14.3k|{
  192|  14.3k|  const char *end = domain + len;
  193|  14.3k|  size_t h = 5381;
  194|       |
  195|   358k|  while(domain < end) {
  ------------------
  |  Branch (195:9): [True: 344k, False: 14.3k]
  ------------------
  196|   344k|    size_t j = (size_t)Curl_raw_toupper(*domain++);
  197|   344k|    h += h << 5;
  198|   344k|    h ^= j;
  199|   344k|  }
  200|       |
  201|  14.3k|  return (h % COOKIE_HASH_SIZE);
  ------------------
  |  |   54|  14.3k|#define COOKIE_HASH_SIZE 63
  ------------------
  202|  14.3k|}
cookie.c:freecookie:
   64|  6.34k|{
   65|  6.34k|  curlx_free(co->domain);
  ------------------
  |  | 1482|  6.34k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   66|  6.34k|  curlx_free(co->path);
  ------------------
  |  | 1482|  6.34k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   67|  6.34k|  curlx_free(co->name);
  ------------------
  |  | 1482|  6.34k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   68|  6.34k|  curlx_free(co->value);
  ------------------
  |  | 1482|  6.34k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   69|  6.34k|  if(maintoo)
  ------------------
  |  Branch (69:6): [True: 3.42k, False: 2.92k]
  ------------------
   70|  3.42k|    curlx_free(co);
  ------------------
  |  | 1482|  3.42k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   71|  6.34k|}
cookie.c:cookie_tailmatch:
   76|  2.99k|{
   77|  2.99k|  size_t hostname_len = strlen(hostname);
   78|       |
   79|  2.99k|  if(hostname_len < cookie_domain_len)
  ------------------
  |  Branch (79:6): [True: 0, False: 2.99k]
  ------------------
   80|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
   81|       |
   82|  2.99k|  if(!curl_strnequal(cookie_domain,
  ------------------
  |  Branch (82:6): [True: 0, False: 2.99k]
  ------------------
   83|  2.99k|                     hostname + hostname_len - cookie_domain_len,
   84|  2.99k|                     cookie_domain_len))
   85|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
   86|       |
   87|       |  /*
   88|       |   * A lead char of cookie_domain is not '.'.
   89|       |   * RFC6265 4.1.2.3. The Domain Attribute says:
   90|       |   * For example, if the value of the Domain attribute is
   91|       |   * "example.com", the user agent will include the cookie in the Cookie
   92|       |   * header when making HTTP requests to example.com, www.example.com, and
   93|       |   * www.corp.example.com.
   94|       |   */
   95|  2.99k|  if(hostname_len == cookie_domain_len)
  ------------------
  |  Branch (95:6): [True: 2.99k, False: 0]
  ------------------
   96|  2.99k|    return TRUE;
  ------------------
  |  | 1053|  2.99k|#define TRUE true
  ------------------
   97|      0|  if('.' == *(hostname + hostname_len - cookie_domain_len - 1))
  ------------------
  |  Branch (97:6): [True: 0, False: 0]
  ------------------
   98|      0|    return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
   99|      0|  return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  100|      0|}
cookie.c:get_netscape_format:
 1484|    430|{
 1485|    430|  return curl_maprintf(
 1486|    430|    "%s"               /* httponly preamble */
 1487|    430|    "%s%s\t"           /* domain */
 1488|    430|    "%s\t"             /* tailmatch */
 1489|    430|    "%s\t"             /* path */
 1490|    430|    "%s\t"             /* secure */
 1491|    430|    "%" FMT_OFF_T "\t" /* expires */
 1492|    430|    "%s\t"             /* name */
 1493|    430|    "%s",              /* value */
 1494|    430|    co->httponly ? "#HttpOnly_" : "",
  ------------------
  |  Branch (1494:5): [True: 0, False: 430]
  ------------------
 1495|       |    /*
 1496|       |     * Make sure all domains are prefixed with a dot if they allow
 1497|       |     * tailmatching. This is Mozilla-style.
 1498|       |     */
 1499|    430|    (co->tailmatch && co->domain && co->domain[0] != '.') ? "." : "",
  ------------------
  |  Branch (1499:6): [True: 0, False: 430]
  |  Branch (1499:23): [True: 0, False: 0]
  |  Branch (1499:37): [True: 0, False: 0]
  ------------------
 1500|    430|    co->domain ? co->domain : "unknown",
  ------------------
  |  Branch (1500:5): [True: 430, False: 0]
  ------------------
 1501|    430|    co->tailmatch ? "TRUE" : "FALSE",
  ------------------
  |  Branch (1501:5): [True: 0, False: 430]
  ------------------
 1502|    430|    co->path ? co->path : "/",
  ------------------
  |  Branch (1502:5): [True: 430, False: 0]
  ------------------
 1503|    430|    co->secure ? "TRUE" : "FALSE",
  ------------------
  |  Branch (1503:5): [True: 0, False: 430]
  ------------------
 1504|    430|    co->expires,
 1505|    430|    co->name,
 1506|    430|    co->value ? co->value : "");
  ------------------
  |  Branch (1506:5): [True: 430, False: 0]
  ------------------
 1507|    430|}
cookie.c:cookie_output:
 1520|  9.97k|{
 1521|  9.97k|  FILE *out = NULL;
 1522|  9.97k|  bool use_stdout = FALSE;
  ------------------
  |  | 1056|  9.97k|#define FALSE false
  ------------------
 1523|  9.97k|  char *tempstore = NULL;
 1524|  9.97k|  CURLcode result = CURLE_OK;
 1525|       |
 1526|  9.97k|  if(!ci)
  ------------------
  |  Branch (1526:6): [True: 0, False: 9.97k]
  ------------------
 1527|       |    /* no cookie engine alive */
 1528|      0|    return CURLE_OK;
 1529|       |
 1530|       |  /* at first, remove expired cookies */
 1531|  9.97k|  remove_expired(ci);
 1532|       |
 1533|  9.97k|  if(!strcmp("-", filename)) {
  ------------------
  |  Branch (1533:6): [True: 0, False: 9.97k]
  ------------------
 1534|       |    /* use stdout */
 1535|      0|    out = stdout;
 1536|      0|    use_stdout = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1537|      0|  }
 1538|  9.97k|  else {
 1539|  9.97k|    result = Curl_fopen(data, filename, &out, &tempstore);
 1540|  9.97k|    if(result)
  ------------------
  |  Branch (1540:8): [True: 0, False: 9.97k]
  ------------------
 1541|      0|      goto error;
 1542|  9.97k|  }
 1543|       |
 1544|  9.97k|  fputs("# Netscape HTTP Cookie File\n"
 1545|  9.97k|        "# https://curl.se/docs/http-cookies.html\n"
 1546|  9.97k|        "# This file was generated by libcurl! Edit at your own risk.\n\n",
 1547|  9.97k|        out);
 1548|       |
 1549|  9.97k|  if(ci->numcookies) {
  ------------------
  |  Branch (1549:6): [True: 245, False: 9.73k]
  ------------------
 1550|    245|    unsigned int i;
 1551|    245|    size_t nvalid = 0;
 1552|    245|    struct Cookie **array;
 1553|    245|    struct Curl_llist_node *n;
 1554|       |
 1555|    245|    array = curlx_calloc(1, sizeof(struct Cookie *) * ci->numcookies);
  ------------------
  |  | 1479|    245|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
 1556|    245|    if(!array) {
  ------------------
  |  Branch (1556:8): [True: 0, False: 245]
  ------------------
 1557|      0|      result = CURLE_OUT_OF_MEMORY;
 1558|      0|      goto error;
 1559|      0|    }
 1560|       |
 1561|       |    /* only sort the cookies with a domain property */
 1562|  15.6k|    for(i = 0; i < COOKIE_HASH_SIZE; i++) {
  ------------------
  |  |   54|  15.6k|#define COOKIE_HASH_SIZE 63
  ------------------
  |  Branch (1562:16): [True: 15.4k, False: 245]
  ------------------
 1563|  15.8k|      for(n = Curl_llist_head(&ci->cookielist[i]); n; n = Curl_node_next(n)) {
  ------------------
  |  Branch (1563:52): [True: 430, False: 15.4k]
  ------------------
 1564|    430|        struct Cookie *co = Curl_node_elem(n);
 1565|    430|        if(!co->domain)
  ------------------
  |  Branch (1565:12): [True: 0, False: 430]
  ------------------
 1566|      0|          continue;
 1567|    430|        array[nvalid++] = co;
 1568|    430|      }
 1569|  15.4k|    }
 1570|       |
 1571|    245|    qsort(array, nvalid, sizeof(struct Cookie *), cookie_sort_ct);
 1572|       |
 1573|    675|    for(i = 0; i < nvalid; i++) {
  ------------------
  |  Branch (1573:16): [True: 430, False: 245]
  ------------------
 1574|    430|      char *format_ptr = get_netscape_format(array[i]);
 1575|    430|      if(!format_ptr) {
  ------------------
  |  Branch (1575:10): [True: 0, False: 430]
  ------------------
 1576|      0|        curlx_free(array);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1577|      0|        result = CURLE_OUT_OF_MEMORY;
 1578|      0|        goto error;
 1579|      0|      }
 1580|    430|      curl_mfprintf(out, "%s\n", format_ptr);
 1581|    430|      curlx_free(format_ptr);
  ------------------
  |  | 1482|    430|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1582|    430|    }
 1583|       |
 1584|    245|    curlx_free(array);
  ------------------
  |  | 1482|    245|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1585|    245|  }
 1586|       |
 1587|  9.97k|  if(!use_stdout) {
  ------------------
  |  Branch (1587:6): [True: 9.97k, False: 0]
  ------------------
 1588|  9.97k|    curlx_fclose(out);
  ------------------
  |  |   79|  9.97k|#define curlx_fclose(file)      curl_dbg_fclose(file, __LINE__, __FILE__)
  ------------------
 1589|  9.97k|    out = NULL;
 1590|  9.97k|    if(tempstore && curlx_rename(tempstore, filename)) {
  ------------------
  |  |   70|      0|#define curlx_rename            rename
  ------------------
  |  Branch (1590:8): [True: 0, False: 9.97k]
  |  Branch (1590:21): [True: 0, False: 0]
  ------------------
 1591|      0|      result = CURLE_WRITE_ERROR;
 1592|      0|      goto error;
 1593|      0|    }
 1594|  9.97k|  }
 1595|       |
 1596|       |  /*
 1597|       |   * If we reach here we have successfully written a cookie file so there is
 1598|       |   * no need to inspect the error, any error case should have jumped into the
 1599|       |   * error block below.
 1600|       |   */
 1601|  9.97k|  curlx_free(tempstore);
  ------------------
  |  | 1482|  9.97k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1602|  9.97k|  return CURLE_OK;
 1603|       |
 1604|      0|error:
 1605|      0|  if(out && !use_stdout)
  ------------------
  |  Branch (1605:6): [True: 0, False: 0]
  |  Branch (1605:13): [True: 0, False: 0]
  ------------------
 1606|      0|    curlx_fclose(out);
  ------------------
  |  |   79|      0|#define curlx_fclose(file)      curl_dbg_fclose(file, __LINE__, __FILE__)
  ------------------
 1607|      0|  if(tempstore) {
  ------------------
  |  Branch (1607:6): [True: 0, False: 0]
  ------------------
 1608|      0|    unlink(tempstore);
 1609|      0|    curlx_free(tempstore);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1610|      0|  }
 1611|      0|  return result;
 1612|  9.97k|}
cookie.c:cookie_sort_ct:
 1285|    305|{
 1286|    305|  const struct Cookie *c1 = *(const struct Cookie * const *)p1;
 1287|    305|  const struct Cookie *c2 = *(const struct Cookie * const *)p2;
 1288|       |
 1289|    305|  return (c2->creationtime > c1->creationtime) ? 1 : -1;
  ------------------
  |  Branch (1289:10): [True: 259, False: 46]
  ------------------
 1290|    305|}

Curl_creds_create:
   41|  14.3k|{
   42|  14.3k|  struct Curl_creds *creds = NULL;
   43|  14.3k|  size_t ulen = user ? strlen(user) : 0;
  ------------------
  |  Branch (43:17): [True: 1.09k, False: 13.2k]
  ------------------
   44|  14.3k|  size_t plen = passwd ? strlen(passwd) : 0;
  ------------------
  |  Branch (44:17): [True: 400, False: 13.9k]
  ------------------
   45|  14.3k|  size_t olen = oauth_bearer ? strlen(oauth_bearer) : 0;
  ------------------
  |  Branch (45:17): [True: 0, False: 14.3k]
  ------------------
   46|  14.3k|  size_t salen = sasl_authzid ? strlen(sasl_authzid) : 0;
  ------------------
  |  Branch (46:18): [True: 0, False: 14.3k]
  ------------------
   47|  14.3k|  size_t sslen = sasl_service ? strlen(sasl_service) : 0;
  ------------------
  |  Branch (47:18): [True: 0, False: 14.3k]
  ------------------
   48|  14.3k|  char *s, *buf;
   49|  14.3k|  size_t bufsize;
   50|  14.3k|  CURLcode result = CURLE_OK;
   51|       |
   52|  14.3k|  Curl_creds_unlink(pcreds);
   53|       |
   54|       |  /* Everything empty/NULL, this is the NULL credential */
   55|  14.3k|  if(!user && !passwd && !olen && !salen && !sslen)
  ------------------
  |  Branch (55:6): [True: 13.2k, False: 1.09k]
  |  Branch (55:15): [True: 13.2k, False: 0]
  |  Branch (55:26): [True: 13.2k, False: 0]
  |  Branch (55:35): [True: 13.2k, False: 0]
  |  Branch (55:45): [True: 13.2k, False: 0]
  ------------------
   56|  13.2k|    goto out;
   57|       |
   58|  1.09k|  if((ulen > CURL_MAX_INPUT_LENGTH) ||
  ------------------
  |  |   45|  1.09k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
  |  Branch (58:6): [True: 0, False: 1.09k]
  ------------------
   59|  1.09k|     (plen > CURL_MAX_INPUT_LENGTH) ||
  ------------------
  |  |   45|  1.09k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
  |  Branch (59:6): [True: 0, False: 1.09k]
  ------------------
   60|  1.09k|     (olen > CURL_MAX_INPUT_LENGTH) ||
  ------------------
  |  |   45|  1.09k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
  |  Branch (60:6): [True: 0, False: 1.09k]
  ------------------
   61|  1.09k|     (salen > CURL_MAX_INPUT_LENGTH) ||
  ------------------
  |  |   45|  1.09k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
  |  Branch (61:6): [True: 0, False: 1.09k]
  ------------------
   62|  1.09k|     (sslen > CURL_MAX_INPUT_LENGTH)) {
  ------------------
  |  |   45|  1.09k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
  |  Branch (62:6): [True: 0, False: 1.09k]
  ------------------
   63|      0|    result = CURLE_BAD_FUNCTION_ARGUMENT;
   64|      0|    goto out;
   65|      0|  }
   66|       |
   67|       |  /* null-terminator for user already part of struct */
   68|  1.09k|  bufsize = ulen + plen + 1 + olen + 1 + salen + 1 + sslen + 1;
   69|  1.09k|  creds = curlx_calloc(1, sizeof(*creds) + bufsize);
  ------------------
  |  | 1479|  1.09k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
   70|  1.09k|  if(!creds) {
  ------------------
  |  Branch (70:6): [True: 0, False: 1.09k]
  ------------------
   71|      0|    result = CURLE_OUT_OF_MEMORY;
   72|      0|    goto out;
   73|      0|  }
   74|       |
   75|  1.09k|  creds->bufsize = bufsize;
   76|  1.09k|  creds->refcount = 1;
   77|  1.09k|  creds->source = source;
   78|       |  /* Some compilers try to be too smart about our dynamic struct size */
   79|  1.09k|  buf = ((char *)creds) + offsetof(struct Curl_creds, buf);
   80|  1.09k|  creds->user = s = buf;
   81|  1.09k|  if(ulen)
  ------------------
  |  Branch (81:6): [True: 522, False: 577]
  ------------------
   82|    522|    memcpy(s, user, ulen + 1);
   83|  1.09k|  creds->passwd = s = buf + ulen + 1;
   84|  1.09k|  if(plen)
  ------------------
  |  Branch (84:6): [True: 379, False: 720]
  ------------------
   85|    379|    memcpy(s, passwd, plen + 1);
   86|  1.09k|  creds->oauth_bearer = s = buf + ulen + 1 + plen + 1;
   87|  1.09k|  if(olen)
  ------------------
  |  Branch (87:6): [True: 0, False: 1.09k]
  ------------------
   88|      0|    memcpy(s, oauth_bearer, olen + 1);
   89|  1.09k|  creds->sasl_authzid = s = buf + ulen + 1 + plen + 1 + olen + 1;
   90|  1.09k|  if(salen)
  ------------------
  |  Branch (90:6): [True: 0, False: 1.09k]
  ------------------
   91|      0|    memcpy(s, sasl_authzid, salen + 1);
   92|  1.09k|  creds->sasl_service = s = buf + ulen + 1 + plen + 1 + olen + 1 + salen + 1;
   93|  1.09k|  if(sslen)
  ------------------
  |  Branch (93:6): [True: 0, False: 1.09k]
  ------------------
   94|      0|    memcpy(s, sasl_service, sslen + 1);
   95|       |
   96|  14.3k|out:
   97|  14.3k|  if(!result)
  ------------------
  |  Branch (97:6): [True: 14.3k, False: 0]
  ------------------
   98|  14.3k|    *pcreds = creds;
   99|      0|  else
  100|      0|    Curl_creds_unlink(&creds);
  101|  14.3k|  return result;
  102|  1.09k|}
Curl_creds_merge:
  109|  14.3k|{
  110|  14.3k|  struct Curl_creds *creds_out = NULL;
  111|  14.3k|  CURLcode result;
  112|       |
  113|  14.3k|  if(!creds_in) {
  ------------------
  |  Branch (113:6): [True: 14.3k, False: 0]
  ------------------
  114|  14.3k|    result = Curl_creds_create(user, passwd, NULL, NULL, NULL,
  115|  14.3k|                               source, &creds_out);
  116|  14.3k|  }
  117|      0|  else {
  118|      0|    result = Curl_creds_create(user ? user : Curl_creds_user(creds_in),
  ------------------
  |  |   81|      0|#define Curl_creds_user(c)               ((c) ? (c)->user : "")
  |  |  ------------------
  |  |  |  Branch (81:43): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (118:32): [True: 0, False: 0]
  ------------------
  119|      0|                               passwd ? passwd : Curl_creds_passwd(creds_in),
  ------------------
  |  |   82|      0|#define Curl_creds_passwd(c)             ((c) ? (c)->passwd : "")
  |  |  ------------------
  |  |  |  Branch (82:43): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (119:32): [True: 0, False: 0]
  ------------------
  120|      0|                               Curl_creds_oauth_bearer(creds_in),
  ------------------
  |  |   83|      0|#define Curl_creds_oauth_bearer(c)       ((c) ? (c)->oauth_bearer : "")
  |  |  ------------------
  |  |  |  Branch (83:43): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  121|      0|                               Curl_creds_sasl_authzid(creds_in),
  ------------------
  |  |   84|      0|#define Curl_creds_sasl_authzid(c)       ((c) ? (c)->sasl_authzid : "")
  |  |  ------------------
  |  |  |  Branch (84:43): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  122|      0|                               Curl_creds_sasl_service(creds_in),
  ------------------
  |  |   85|      0|#define Curl_creds_sasl_service(c)       ((c) ? (c)->sasl_service : "")
  |  |  ------------------
  |  |  |  Branch (85:43): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  123|      0|                               source, &creds_out);
  124|      0|  }
  125|  14.3k|  Curl_creds_link(pcreds_out, creds_out);
  126|  14.3k|  Curl_creds_unlink(&creds_out);
  127|  14.3k|  return result;
  128|  14.3k|}
Curl_creds_link:
  131|  22.9k|{
  132|  22.9k|  if(*pdest != src) {
  ------------------
  |  Branch (132:6): [True: 1.43k, False: 21.4k]
  ------------------
  133|  1.43k|    Curl_creds_unlink(pdest);
  134|  1.43k|    *pdest = src;
  135|  1.43k|    if(src) {
  ------------------
  |  Branch (135:8): [True: 1.43k, False: 2]
  ------------------
  136|  1.43k|      DEBUGASSERT(src->refcount < UINT32_MAX);
  ------------------
  |  | 1083|  1.43k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (136:7): [True: 0, False: 1.43k]
  |  Branch (136:7): [True: 1.43k, False: 0]
  ------------------
  137|  1.43k|      src->refcount++;
  138|  1.43k|    }
  139|  1.43k|  }
  140|  22.9k|}
Curl_creds_unlink:
  143|   161k|{
  144|   161k|  if(*pcreds) {
  ------------------
  |  Branch (144:6): [True: 2.53k, False: 159k]
  ------------------
  145|  2.53k|    struct Curl_creds *creds = *pcreds;
  146|       |
  147|  2.53k|    DEBUGASSERT(creds->refcount);
  ------------------
  |  | 1083|  2.53k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (147:5): [True: 0, False: 2.53k]
  |  Branch (147:5): [True: 2.53k, False: 0]
  ------------------
  148|  2.53k|    *pcreds = NULL;
  149|  2.53k|    if(creds->refcount)
  ------------------
  |  Branch (149:8): [True: 2.53k, False: 0]
  ------------------
  150|  2.53k|      creds->refcount--;
  151|  2.53k|    if(!creds->refcount) {
  ------------------
  |  Branch (151:8): [True: 1.09k, False: 1.43k]
  ------------------
  152|  1.09k|      curlx_memzero(creds, sizeof(*creds) + creds->bufsize);
  153|  1.09k|      curlx_free(creds);
  ------------------
  |  | 1482|  1.09k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  154|  1.09k|    }
  155|  2.53k|  }
  156|   161k|}
Curl_creds_same:
  159|  27.0k|{
  160|  27.0k|  return (c1 == c2) ||
  ------------------
  |  Branch (160:10): [True: 25.9k, False: 1.10k]
  ------------------
  161|  1.10k|         (c1 && c2 &&
  ------------------
  |  Branch (161:11): [True: 770, False: 331]
  |  Branch (161:17): [True: 768, False: 2]
  ------------------
  162|    768|          !Curl_timestrcmp(c1->user, c2->user) &&
  ------------------
  |  Branch (162:11): [True: 763, False: 5]
  ------------------
  163|    763|          !Curl_timestrcmp(c1->passwd, c2->passwd) &&
  ------------------
  |  Branch (163:11): [True: 762, False: 1]
  ------------------
  164|    762|          !Curl_timestrcmp(c1->oauth_bearer, c2->oauth_bearer) &&
  ------------------
  |  Branch (164:11): [True: 762, False: 0]
  ------------------
  165|    762|          !Curl_timestrcmp(c1->sasl_authzid, c2->sasl_authzid) &&
  ------------------
  |  Branch (165:11): [True: 762, False: 0]
  ------------------
  166|    762|          !Curl_timestrcmp(c1->sasl_service, c2->sasl_service));
  ------------------
  |  Branch (166:11): [True: 762, False: 0]
  ------------------
  167|  27.0k|}
Curl_creds_equal:
  170|  14.3k|{
  171|  14.3k|  return Curl_creds_same(c1, c2) &&
  ------------------
  |  Branch (171:10): [True: 14.0k, False: 339]
  ------------------
  172|  14.0k|         ((c1 == c2) || (c1 && c2 && (c1->source == c2->source)));
  ------------------
  |  Branch (172:11): [True: 13.2k, False: 762]
  |  Branch (172:26): [True: 762, False: 0]
  |  Branch (172:32): [True: 762, False: 0]
  |  Branch (172:38): [True: 762, False: 0]
  ------------------
  173|  14.3k|}
Curl_creds_trace:
  178|  14.3k|{
  179|  14.3k|  if(creds) {
  ------------------
  |  Branch (179:6): [True: 770, False: 13.5k]
  ------------------
  180|    770|    CURL_TRC_M(data, "%s: user=%s, passwd=%s, "
  ------------------
  |  |  148|    770|  do {                                   \
  |  |  149|    770|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|    770|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|    770|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  1.54k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 770, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 770]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  1.54k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|    770|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|    770|      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|    770|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 770]
  |  |  ------------------
  ------------------
  181|    770|               "sasl_authzid=%s, oauth_bearer=%s, source=%d",
  182|    770|               msg,
  183|    770|               Curl_creds_user(creds),
  184|    770|               Curl_creds_has_passwd(creds) ? "***" : "",
  185|    770|               Curl_creds_sasl_authzid(creds),
  186|    770|               Curl_creds_has_oauth_bearer(creds) ? "***" : "",
  187|    770|               creds->source);
  188|    770|  }
  189|  13.5k|  else
  190|  13.5k|    CURL_TRC_M(data, "%s: -", msg);
  ------------------
  |  |  148|  13.5k|  do {                                   \
  |  |  149|  13.5k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  13.5k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  13.5k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  27.1k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 13.5k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 13.5k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  27.1k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  13.5k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  13.5k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  13.5k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 13.5k]
  |  |  ------------------
  ------------------
  191|  14.3k|}

Curl_cshutdn_run_once:
  113|  3.35k|{
  114|  3.35k|  DEBUGASSERT(!data->conn);
  ------------------
  |  | 1083|  3.35k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (114:3): [True: 0, False: 3.35k]
  |  Branch (114:3): [True: 3.35k, False: 0]
  ------------------
  115|  3.35k|  Curl_attach_connection(data, conn);
  116|  3.35k|  cshutdn_run_once(data, conn, done);
  117|  3.35k|  CURL_TRC_M(data, "[SHUTDOWN] shutdown, done=%d", *done);
  ------------------
  |  |  148|  3.35k|  do {                                   \
  |  |  149|  3.35k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  3.35k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  3.35k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  6.71k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 3.35k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 3.35k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  6.71k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  3.35k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  3.35k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  3.35k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 3.35k]
  |  |  ------------------
  ------------------
  118|  3.35k|  Curl_detach_connection(data);
  119|  3.35k|}
Curl_cshutdn_terminate:
  124|  10.1k|{
  125|  10.1k|  struct Curl_easy *admin = data;
  126|  10.1k|  bool done;
  127|       |
  128|       |  /* there must be a connection to close */
  129|  10.1k|  DEBUGASSERT(conn);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (129:3): [True: 0, False: 10.1k]
  |  Branch (129:3): [True: 10.1k, False: 0]
  ------------------
  130|       |  /* it must be removed from the connection pool */
  131|  10.1k|  DEBUGASSERT(!conn->bits.in_cpool);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (131:3): [True: 0, False: 10.1k]
  |  Branch (131:3): [True: 10.1k, False: 0]
  ------------------
  132|       |  /* the transfer must be detached from the connection */
  133|  10.1k|  DEBUGASSERT(data && !data->conn);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (133:3): [True: 0, False: 10.1k]
  |  Branch (133:3): [True: 0, False: 0]
  |  Branch (133:3): [True: 10.1k, False: 0]
  |  Branch (133:3): [True: 10.1k, 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|  10.1k|  if(data->multi && data->multi->admin)
  ------------------
  |  Branch (139:6): [True: 10.1k, False: 0]
  |  Branch (139:21): [True: 10.1k, False: 0]
  ------------------
  140|  10.1k|    admin = data->multi->admin;
  141|       |
  142|  10.1k|  Curl_attach_connection(admin, conn);
  143|       |
  144|  10.1k|  cshutdn_run_conn_handler(admin, conn);
  145|  10.1k|  if(do_shutdown) {
  ------------------
  |  Branch (145:6): [True: 0, False: 10.1k]
  ------------------
  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|  10.1k|  CURL_TRC_M(admin, "[SHUTDOWN] %sclosing connection #%" FMT_OFF_T,
  ------------------
  |  |  148|  10.1k|  do {                                   \
  |  |  149|  10.1k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  10.1k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  10.1k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  20.2k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 10.1k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 10.1k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  20.2k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  10.1k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  10.1k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (150:28): [True: 0, False: 0]
  |  |  ------------------
  |  |  151|  10.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 10.1k]
  |  |  ------------------
  ------------------
  151|  10.1k|             conn->bits.shutdown_filters ? "" : "force ",
  152|  10.1k|             conn->connection_id);
  153|  10.1k|  Curl_conn_cf_discard_all(admin, conn, SECONDARYSOCKET);
  ------------------
  |  |  234|  10.1k|#define SECONDARYSOCKET 1
  ------------------
  154|  10.1k|  Curl_conn_cf_discard_all(admin, conn, FIRSTSOCKET);
  ------------------
  |  |  233|  10.1k|#define FIRSTSOCKET     0
  ------------------
  155|  10.1k|  Curl_detach_connection(admin);
  156|       |
  157|  10.1k|  if(data->multi)
  ------------------
  |  Branch (157:6): [True: 10.1k, False: 0]
  ------------------
  158|  10.1k|    Curl_multi_ev_conn_done(data->multi, data, conn);
  159|  10.1k|  Curl_conn_free(admin, conn);
  160|       |
  161|  10.1k|  if(data->multi) {
  ------------------
  |  Branch (161:6): [True: 10.1k, False: 0]
  ------------------
  162|  10.1k|    CURL_TRC_M(data, "[SHUTDOWN] trigger multi connchanged");
  ------------------
  |  |  148|  10.1k|  do {                                   \
  |  |  149|  10.1k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  10.1k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  10.1k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  20.2k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 10.1k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 10.1k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  20.2k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  10.1k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  10.1k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  10.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 10.1k]
  |  |  ------------------
  ------------------
  163|  10.1k|    Curl_multi_connchanged(data->multi);
  164|  10.1k|  }
  165|  10.1k|}
Curl_cshutdn_init:
  321|  9.97k|{
  322|  9.97k|  DEBUGASSERT(multi);
  ------------------
  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (322:3): [True: 0, False: 9.97k]
  |  Branch (322:3): [True: 9.97k, False: 0]
  ------------------
  323|  9.97k|  cshutdn->multi = multi;
  324|  9.97k|  Curl_llist_init(&cshutdn->list, NULL);
  325|       |  cshutdn->initialized = TRUE;
  ------------------
  |  | 1053|  9.97k|#define TRUE true
  ------------------
  326|  9.97k|  return 0; /* good */
  327|  9.97k|}
Curl_cshutdn_destroy:
  331|  9.97k|{
  332|  9.97k|  if(cshutdn->initialized && data) {
  ------------------
  |  Branch (332:6): [True: 9.97k, False: 0]
  |  Branch (332:30): [True: 9.97k, False: 0]
  ------------------
  333|  9.97k|    int timeout_ms = 0;
  334|       |    /* for testing, run graceful shutdown */
  335|  9.97k|#ifdef DEBUGBUILD
  336|  9.97k|    {
  337|  9.97k|      const char *p = getenv("CURL_GRACEFUL_SHUTDOWN");
  338|  9.97k|      if(p) {
  ------------------
  |  Branch (338:10): [True: 0, False: 9.97k]
  ------------------
  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|  9.97k|    }
  344|  9.97k|#endif
  345|       |
  346|  9.97k|    CURL_TRC_M(data, "[SHUTDOWN] destroy, %zu connections, timeout=%dms",
  ------------------
  |  |  148|  9.97k|  do {                                   \
  |  |  149|  9.97k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  9.97k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  9.97k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  19.9k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 9.97k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 9.97k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  19.9k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  9.97k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  9.97k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  9.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 9.97k]
  |  |  ------------------
  ------------------
  347|  9.97k|               Curl_llist_count(&cshutdn->list), timeout_ms);
  348|  9.97k|    cshutdn_terminate_all(cshutdn, data, timeout_ms);
  349|  9.97k|  }
  350|       |  cshutdn->multi = NULL;
  351|  9.97k|}
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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330: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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330: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);
  ------------------
  |  | 1056|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|     26|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|     52|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 26, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 26]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|     52|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|     26|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330: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|   153k|{
  430|   153k|  cshutdn_perform(cshutdn, data, sigpipe_ctx);
  431|   153k|}
Curl_cshutdn_setfds:
  438|   143k|{
  439|   143k|  if(Curl_llist_head(&cshutdn->list)) {
  ------------------
  |  Branch (439:6): [True: 0, False: 143k]
  ------------------
  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))
  ------------------
  |  |   99|      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|   143k|}
cshutdn.c:cshutdn_run_once:
   72|  3.35k|{
   73|  3.35k|  CURLcode r1, r2;
   74|  3.35k|  bool done1, done2;
   75|       |
   76|       |  /* We expect to be attached when called */
   77|  3.35k|  DEBUGASSERT(data->conn == conn);
  ------------------
  |  | 1083|  3.35k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (77:3): [True: 0, False: 3.35k]
  |  Branch (77:3): [True: 3.35k, False: 0]
  ------------------
   78|       |
   79|  3.35k|  if(!Curl_shutdown_started(conn, FIRSTSOCKET)) {
  ------------------
  |  |  233|  3.35k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (79:6): [True: 3.32k, False: 26]
  ------------------
   80|  3.32k|    Curl_shutdown_start(data, FIRSTSOCKET, 0);
  ------------------
  |  |  233|  3.32k|#define FIRSTSOCKET     0
  ------------------
   81|  3.32k|  }
   82|       |
   83|  3.35k|  cshutdn_run_conn_handler(data, conn);
   84|       |
   85|  3.35k|  if(conn->bits.shutdown_filters) {
  ------------------
  |  Branch (85:6): [True: 0, False: 3.35k]
  ------------------
   86|      0|    *done = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
   87|      0|    return;
   88|      0|  }
   89|       |
   90|  3.35k|  if(!conn->bits.connect_only && Curl_conn_is_connected(conn, FIRSTSOCKET))
  ------------------
  |  |  233|  3.35k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (90:6): [True: 3.35k, False: 0]
  |  Branch (90:34): [True: 3.35k, False: 0]
  ------------------
   91|  3.35k|    r1 = Curl_conn_shutdown(data, FIRSTSOCKET, &done1);
  ------------------
  |  |  233|  3.35k|#define FIRSTSOCKET     0
  ------------------
   92|      0|  else {
   93|      0|    r1 = CURLE_OK;
   94|      0|    done1 = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
   95|      0|  }
   96|       |
   97|  3.35k|  if(!conn->bits.connect_only && Curl_conn_is_connected(conn, SECONDARYSOCKET))
  ------------------
  |  |  234|  3.35k|#define SECONDARYSOCKET 1
  ------------------
  |  Branch (97:6): [True: 3.35k, False: 0]
  |  Branch (97:34): [True: 0, False: 3.35k]
  ------------------
   98|      0|    r2 = Curl_conn_shutdown(data, SECONDARYSOCKET, &done2);
  ------------------
  |  |  234|      0|#define SECONDARYSOCKET 1
  ------------------
   99|  3.35k|  else {
  100|  3.35k|    r2 = CURLE_OK;
  101|  3.35k|    done2 = TRUE;
  ------------------
  |  | 1053|  3.35k|#define TRUE true
  ------------------
  102|  3.35k|  }
  103|       |
  104|       |  /* we are done when any failed or both report success */
  105|  3.35k|  *done = (r1 || r2 || (done1 && done2));
  ------------------
  |  Branch (105:12): [True: 0, False: 3.35k]
  |  Branch (105:18): [True: 0, False: 3.35k]
  |  Branch (105:25): [True: 3.30k, False: 52]
  |  Branch (105:34): [True: 3.30k, False: 0]
  ------------------
  106|  3.35k|  if(*done)
  ------------------
  |  Branch (106:6): [True: 3.30k, False: 52]
  ------------------
  107|  3.30k|    conn->bits.shutdown_filters = TRUE;
  ------------------
  |  | 1053|  3.30k|#define TRUE true
  ------------------
  108|  3.35k|}
cshutdn.c:cshutdn_run_conn_handler:
   43|  13.5k|{
   44|  13.5k|  if(!conn->bits.shutdown_handler) {
  ------------------
  |  Branch (44:6): [True: 10.1k, False: 3.35k]
  ------------------
   45|       |
   46|  10.1k|    if(conn->scheme && conn->scheme->run->disconnect) {
  ------------------
  |  Branch (46:8): [True: 10.1k, False: 0]
  |  Branch (46:24): [True: 0, False: 10.1k]
  ------------------
   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;
  ------------------
  |  |   42|      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
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069: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;
  ------------------
  |  | 1053|  10.1k|#define TRUE true
  ------------------
   66|  10.1k|  }
   67|  13.5k|}
cshutdn.c:cshutdn_terminate_all:
  269|  9.97k|{
  270|  9.97k|  struct curltime started = *Curl_pgrs_now(data);
  271|  9.97k|  struct Curl_llist_node *e;
  272|  9.97k|  struct Curl_sigpipe_ctx sigpipe_ctx;
  273|       |
  274|  9.97k|  DEBUGASSERT(cshutdn);
  ------------------
  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (274:3): [True: 0, False: 9.97k]
  |  Branch (274:3): [True: 9.97k, False: 0]
  ------------------
  275|  9.97k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (275:3): [True: 0, False: 9.97k]
  |  Branch (275:3): [True: 9.97k, False: 0]
  ------------------
  276|       |
  277|  9.97k|  CURL_TRC_M(data, "[SHUTDOWN] shutdown all");
  ------------------
  |  |  148|  9.97k|  do {                                   \
  |  |  149|  9.97k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  9.97k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  9.97k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  19.9k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 9.97k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 9.97k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  19.9k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  9.97k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  9.97k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  9.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 9.97k]
  |  |  ------------------
  ------------------
  278|  9.97k|  sigpipe_init(&sigpipe_ctx);
  279|       |
  280|  9.97k|  while(Curl_llist_head(&cshutdn->list)) {
  ------------------
  |  Branch (280:9): [True: 26, False: 9.94k]
  ------------------
  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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330: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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|     26|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|     52|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 26, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 26]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|     52|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|     26|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330: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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330: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|  9.97k|  e = Curl_llist_head(&cshutdn->list);
  308|  10.0k|  while(e) {
  ------------------
  |  Branch (308:9): [True: 26, False: 9.97k]
  ------------------
  309|     26|    struct connectdata *conn = Curl_node_elem(e);
  310|     26|    Curl_node_remove(e);
  311|     26|    Curl_cshutdn_terminate(data, conn, FALSE);
  ------------------
  |  | 1056|     26|#define FALSE false
  ------------------
  312|     26|    e = Curl_llist_head(&cshutdn->list);
  313|     26|  }
  314|  9.97k|  DEBUGASSERT(!Curl_llist_count(&cshutdn->list));
  ------------------
  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (314:3): [True: 0, False: 9.97k]
  |  Branch (314:3): [True: 9.97k, False: 0]
  ------------------
  315|       |
  316|  9.97k|  sigpipe_restore(&sigpipe_ctx);
  317|  9.97k|}
cshutdn.c:cshutdn_perform:
  231|   153k|{
  232|   153k|  struct Curl_llist_node *e = Curl_llist_head(&cshutdn->list);
  233|   153k|  struct Curl_llist_node *enext;
  234|   153k|  struct connectdata *conn;
  235|   153k|  timediff_t next_expire_ms = 0, ms;
  236|   153k|  bool done;
  237|       |
  238|   153k|  if(!e)
  ------------------
  |  Branch (238:6): [True: 153k, False: 26]
  ------------------
  239|   153k|    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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|     26|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|     52|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 26, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 26]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|     52|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|     26|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330: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);
  ------------------
  |  | 1056|      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 && (!next_expire_ms || (ms < next_expire_ms)))
  ------------------
  |  Branch (256:10): [True: 26, False: 0]
  |  Branch (256:17): [True: 26, False: 0]
  |  Branch (256:36): [True: 0, False: 0]
  ------------------
  257|     26|        next_expire_ms = ms;
  258|     26|    }
  259|     26|    e = enext;
  260|     26|  }
  261|       |
  262|     26|  if(next_expire_ms)
  ------------------
  |  Branch (262:6): [True: 26, False: 0]
  ------------------
  263|     26|    Curl_expire_ex(data, next_expire_ms, EXPIRE_SHUTDOWN);
  264|     26|}

Curl_freeaddrinfo:
   72|  9.33k|{
   73|  9.33k|  struct Curl_addrinfo *vqualifier canext;
   74|  9.33k|  struct Curl_addrinfo *ca;
   75|       |
   76|  18.6k|  for(ca = cahead; ca; ca = canext) {
  ------------------
  |  Branch (76:20): [True: 9.33k, False: 9.33k]
  ------------------
   77|  9.33k|    canext = ca->ai_next;
   78|  9.33k|    curlx_free(ca);
  ------------------
  |  | 1482|  9.33k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   79|  9.33k|  }
   80|  9.33k|}
Curl_addrinfo_get:
   85|  21.9k|{
   86|  21.9k|  unsigned int i;
   87|  33.6k|  for(i = 0; ai; ai = ai->ai_next) {
  ------------------
  |  Branch (87:14): [True: 21.9k, False: 11.7k]
  ------------------
   88|  21.9k|    if(ai->ai_family == ai_family) {
  ------------------
  |  Branch (88:8): [True: 10.9k, False: 10.9k]
  ------------------
   89|  10.9k|      if(i == n)
  ------------------
  |  Branch (89:10): [True: 10.1k, False: 813]
  ------------------
   90|  10.1k|        return ai;
   91|    813|      ++i;
   92|    813|    }
   93|  21.9k|  }
   94|  11.7k|  return NULL;
   95|  21.9k|}
Curl_str2addr:
  425|  9.33k|{
  426|  9.33k|  struct in_addr in;
  427|  9.33k|  if(curlx_inet_pton(AF_INET, dotted, &in) > 0)
  ------------------
  |  Branch (427:6): [True: 9.33k, False: 0]
  ------------------
  428|       |    /* This is a dotted IP address 123.123.123.123-style */
  429|  9.33k|    return ip2addr(addrp, AF_INET, &in, dotted, port);
  430|      0|#ifdef USE_IPV6
  431|      0|  {
  432|      0|    struct in6_addr in6;
  433|      0|    if(curlx_inet_pton(AF_INET6, dotted, &in6) > 0)
  ------------------
  |  Branch (433:8): [True: 0, False: 0]
  ------------------
  434|       |      /* This is a dotted IPv6 address ::1-style */
  435|      0|      return ip2addr(addrp, AF_INET6, &in6, dotted, port);
  436|      0|  }
  437|      0|#endif
  438|      0|  return CURLE_BAD_FUNCTION_ARGUMENT; /* bad input format */
  439|      0|}
Curl_is_ipv4addr:
  442|  19.4k|{
  443|  19.4k|  struct in_addr in;
  444|       |  return (curlx_inet_pton(AF_INET, address, &in) > 0);
  445|  19.4k|}
Curl_is_ipaddr:
  448|  9.33k|{
  449|  9.33k|  if(Curl_is_ipv4addr(address))
  ------------------
  |  Branch (449:6): [True: 9.33k, False: 0]
  ------------------
  450|  9.33k|    return TRUE;
  ------------------
  |  | 1053|  9.33k|#define TRUE true
  ------------------
  451|      0|#ifdef USE_IPV6
  452|      0|  {
  453|      0|    struct in6_addr in6;
  454|      0|    if(curlx_inet_pton(AF_INET6, address, &in6) > 0)
  ------------------
  |  Branch (454:8): [True: 0, False: 0]
  ------------------
  455|       |      /* This is a dotted IPv6 address ::1-style */
  456|      0|      return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  457|      0|  }
  458|      0|#endif
  459|      0|  return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  460|      0|}
Curl_looks_like_ipv6:
  464|  1.31k|{
  465|  1.31k|  const char *zonep = NULL;
  466|  1.31k|  size_t i = 0, hlen = 0, zlen = 0;
  467|       |
  468|  1.31k|  if(host)
  ------------------
  |  Branch (468:6): [True: 1.31k, False: 0]
  ------------------
  469|  1.31k|    memset(host, 0, sizeof(*host));
  470|  1.31k|  if(zone)
  ------------------
  |  Branch (470:6): [True: 1.31k, False: 0]
  ------------------
  471|  1.31k|    memset(zone, 0, sizeof(*zone));
  472|       |
  473|  13.3k|  for(i = 0; i < len; ++i, ++hlen) {
  ------------------
  |  Branch (473:14): [True: 12.0k, False: 1.31k]
  ------------------
  474|  12.0k|    if(!s[i] || !(ISXDIGIT(s[i]) || (s[i] == ':') || (s[i] == '.')))
  ------------------
  |  |   37|  24.1k|#define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   42|  24.1k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (42:22): [True: 11.9k, False: 126]
  |  |  |  |  |  Branch (42:38): [True: 2.33k, False: 9.60k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   27|  21.7k|#define ISLOWHEXALPHA(x) (((x) >= 'a') && ((x) <= 'f'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (27:27): [True: 3.78k, False: 5.94k]
  |  |  |  |  |  Branch (27:43): [True: 3.78k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   28|  5.94k|#define ISUPHEXALPHA(x)  (((x) >= 'A') && ((x) <= 'F'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (28:27): [True: 1.27k, False: 4.66k]
  |  |  |  |  |  Branch (28:43): [True: 1.27k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (474:8): [True: 0, False: 12.0k]
  |  Branch (474:37): [True: 4.53k, False: 126]
  |  Branch (474:54): [True: 126, False: 0]
  ------------------
  475|      0|      break;
  476|  12.0k|  }
  477|       |
  478|  1.31k|  if((i < len) && (s[i] == '%')) { /* address followed by a zone? */
  ------------------
  |  Branch (478:6): [True: 0, False: 1.31k]
  |  Branch (478:19): [True: 0, False: 0]
  ------------------
  479|      0|    i += 1;
  480|      0|    if(maybe_url_encoded && !strncmp("25", s + i, 2))
  ------------------
  |  Branch (480:8): [True: 0, False: 0]
  |  Branch (480:29): [True: 0, False: 0]
  ------------------
  481|      0|      i += 2;
  482|      0|    zonep = s + i;
  483|      0|    for(; i < len; ++i, ++zlen) {
  ------------------
  |  Branch (483:11): [True: 0, False: 0]
  ------------------
  484|       |      /* Allow unreserved characters as defined in RFC 3986 */
  485|      0|      if(!s[i] || !(ISALPHA(s[i]) || ISXDIGIT(s[i]) || (s[i] == '-') ||
  ------------------
  |  |   36|      0|#define ISALPHA(x)  (ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   41|      0|#define ISLOWER(x)  (((x) >= 'a') && ((x) <= 'z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:22): [True: 0, False: 0]
  |  |  |  |  |  Branch (41:38): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISALPHA(x)  (ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   40|      0|#define ISUPPER(x)  (((x) >= 'A') && ((x) <= 'Z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (40:22): [True: 0, False: 0]
  |  |  |  |  |  Branch (40:38): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                    if(!s[i] || !(ISALPHA(s[i]) || ISXDIGIT(s[i]) || (s[i] == '-') ||
  ------------------
  |  |   37|      0|#define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   42|      0|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (42:22): [True: 0, False: 0]
  |  |  |  |  |  Branch (42: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 (485:10): [True: 0, False: 0]
  |  Branch (485:56): [True: 0, False: 0]
  ------------------
  486|      0|                    (s[i] == '.') || (s[i] == '_') || (s[i] == '~')))
  ------------------
  |  Branch (486:21): [True: 0, False: 0]
  |  Branch (486:38): [True: 0, False: 0]
  |  Branch (486:55): [True: 0, False: 0]
  ------------------
  487|      0|        break;
  488|      0|    }
  489|      0|  }
  490|       |
  491|  1.31k|  if(i != len)
  ------------------
  |  Branch (491:6): [True: 0, False: 1.31k]
  ------------------
  492|      0|    return FALSE; /* invalid chars in zone */
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  493|  1.31k|  if(host && hlen) {
  ------------------
  |  Branch (493:6): [True: 1.31k, False: 0]
  |  Branch (493:14): [True: 1.31k, False: 0]
  ------------------
  494|  1.31k|    host->str = s;
  495|  1.31k|    host->len = hlen;
  496|  1.31k|  }
  497|  1.31k|  if(zone && zlen) {
  ------------------
  |  Branch (497:6): [True: 1.31k, False: 0]
  |  Branch (497:14): [True: 0, False: 1.31k]
  ------------------
  498|      0|    zone->str = zonep;
  499|      0|    zone->len = zlen;
  500|      0|  }
  501|       |  return TRUE;
  ------------------
  |  | 1053|  1.31k|#define TRUE true
  ------------------
  502|  1.31k|}
curl_addrinfo.c:ip2addr:
  359|  9.33k|{
  360|  9.33k|  struct Curl_addrinfo *ai;
  361|  9.33k|  size_t addrsize;
  362|  9.33k|  size_t namelen;
  363|  9.33k|  struct sockaddr_in *addr;
  364|  9.33k|#ifdef USE_IPV6
  365|  9.33k|  struct sockaddr_in6 *addr6;
  366|  9.33k|#endif
  367|       |
  368|  9.33k|  DEBUGASSERT(inaddr && hostname);
  ------------------
  |  | 1083|  9.33k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (368:3): [True: 0, False: 9.33k]
  |  Branch (368:3): [True: 0, False: 0]
  |  Branch (368:3): [True: 9.33k, False: 0]
  |  Branch (368:3): [True: 9.33k, False: 0]
  ------------------
  369|       |
  370|  9.33k|  namelen = strlen(hostname) + 1;
  371|  9.33k|  *addrp = NULL;
  372|       |
  373|  9.33k|  if(af == AF_INET)
  ------------------
  |  Branch (373:6): [True: 9.33k, False: 0]
  ------------------
  374|  9.33k|    addrsize = sizeof(struct sockaddr_in);
  375|      0|#ifdef USE_IPV6
  376|      0|  else if(af == AF_INET6)
  ------------------
  |  Branch (376:11): [True: 0, False: 0]
  ------------------
  377|      0|    addrsize = sizeof(struct sockaddr_in6);
  378|      0|#endif
  379|      0|  else
  380|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  381|       |
  382|       |  /* allocate memory to hold the struct, the address and the name */
  383|  9.33k|  ai = curlx_calloc(1, sizeof(struct Curl_addrinfo) + addrsize + namelen);
  ------------------
  |  | 1479|  9.33k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  384|  9.33k|  if(!ai)
  ------------------
  |  Branch (384:6): [True: 0, False: 9.33k]
  ------------------
  385|      0|    return CURLE_OUT_OF_MEMORY;
  386|       |  /* put the address after the struct */
  387|  9.33k|  ai->ai_addr = (void *)((char *)ai + sizeof(struct Curl_addrinfo));
  388|       |  /* then put the name after the address */
  389|  9.33k|  ai->ai_canonname = (char *)ai->ai_addr + addrsize;
  390|  9.33k|  memcpy(ai->ai_canonname, hostname, namelen);
  391|  9.33k|  ai->ai_family = af;
  392|  9.33k|  ai->ai_socktype = SOCK_STREAM;
  393|  9.33k|  ai->ai_addrlen = (curl_socklen_t)addrsize;
  394|       |  /* leave the rest of the struct filled with zero */
  395|       |
  396|  9.33k|  switch(af) {
  ------------------
  |  Branch (396:10): [True: 9.33k, False: 0]
  ------------------
  397|  9.33k|  case AF_INET:
  ------------------
  |  Branch (397:3): [True: 9.33k, False: 0]
  ------------------
  398|  9.33k|    addr = (void *)ai->ai_addr; /* storage area for this info */
  399|       |
  400|  9.33k|    memcpy(&addr->sin_addr, inaddr, sizeof(struct in_addr));
  401|  9.33k|    addr->sin_family = (CURL_SA_FAMILY_T)af;
  402|  9.33k|    addr->sin_port = htons((unsigned short)port);
  403|  9.33k|    break;
  404|       |
  405|      0|#ifdef USE_IPV6
  406|      0|  case AF_INET6:
  ------------------
  |  Branch (406:3): [True: 0, False: 9.33k]
  ------------------
  407|      0|    addr6 = (void *)ai->ai_addr; /* storage area for this info */
  408|       |
  409|      0|    memcpy(&addr6->sin6_addr, inaddr, sizeof(struct in6_addr));
  410|      0|    addr6->sin6_family = (CURL_SA_FAMILY_T)af;
  411|      0|    addr6->sin6_port = htons((unsigned short)port);
  412|      0|    break;
  413|  9.33k|#endif
  414|  9.33k|  }
  415|  9.33k|  *addrp = ai;
  416|  9.33k|  return CURLE_OK;
  417|  9.33k|}

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

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

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

Curl_thread_get_current_id:
  190|    342|{
  191|    342|  return pthread_self();
  192|    342|}

Curl_debug:
  128|  78.6k|{
  129|  78.6k|  if(data->set.verbose) {
  ------------------
  |  Branch (129:6): [True: 0, False: 78.6k]
  ------------------
  130|      0|    static const char s_infotype[CURLINFO_END][3] = {
  131|      0|      "* ", "< ", "> ", "{ ", "} ", "{ ", "} " };
  132|      0|    char buf[TRC_LINE_MAX];
  133|      0|    size_t len;
  134|      0|    if(data->set.fdebug) {
  ------------------
  |  Branch (134:8): [True: 0, False: 0]
  ------------------
  135|      0|      struct Curl_mapi_guard guard;
  136|      0|      if(CURL_TRC_IDS(data) && (size < TRC_LINE_MAX)) {
  ------------------
  |  |   90|      0|  (Curl_trc_is_verbose(data) && \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324: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 (136:32): [True: 0, False: 0]
  ------------------
  137|      0|        len = trc_print_ids(data, buf, TRC_LINE_MAX);
  ------------------
  |  |   78|      0|#define TRC_LINE_MAX 2048
  ------------------
  138|      0|        len += curl_msnprintf(buf + len, TRC_LINE_MAX - len, "%.*s",
  ------------------
  |  |   78|      0|#define TRC_LINE_MAX 2048
  ------------------
  139|      0|                              (int)size, ptr);
  140|      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);
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  141|      0|        CURL_CBAPI_START(&guard, data, easy_fdebug);
  ------------------
  |  |  200|      0|  Curl_cbapi_enter((g), (d), NULL, CURL_CBAPI_FN_##fn)
  ------------------
  142|      0|        (void)(*data->set.fdebug)(data, type, buf, len, data->set.debugdata);
  143|      0|        CURL_CBAPI_END(&guard);
  ------------------
  |  |  204|      0|  Curl_cbapi_leave(g)
  ------------------
  144|      0|      }
  145|      0|      else {
  146|      0|        CURL_CBAPI_START(&guard, data, easy_fdebug);
  ------------------
  |  |  200|      0|  Curl_cbapi_enter((g), (d), NULL, CURL_CBAPI_FN_##fn)
  ------------------
  147|      0|        (void)(*data->set.fdebug)(data, type, CURL_UNCONST(ptr),
  ------------------
  |  |  864|      0|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
  148|      0|                                  size, data->set.debugdata);
  149|      0|        CURL_CBAPI_END(&guard);
  ------------------
  |  |  204|      0|  Curl_cbapi_leave(g)
  ------------------
  150|      0|      }
  151|      0|    }
  152|      0|    else {
  153|      0|      switch(type) {
  154|      0|      case CURLINFO_TEXT:
  ------------------
  |  Branch (154:7): [True: 0, False: 0]
  ------------------
  155|      0|      case CURLINFO_HEADER_OUT:
  ------------------
  |  Branch (155:7): [True: 0, False: 0]
  ------------------
  156|      0|      case CURLINFO_HEADER_IN:
  ------------------
  |  Branch (156:7): [True: 0, False: 0]
  ------------------
  157|      0|#ifndef CURL_DISABLE_VERBOSE_STRINGS
  158|      0|        if(CURL_TRC_IDS(data)) {
  ------------------
  |  |   90|      0|  (Curl_trc_is_verbose(data) && \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324: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]
  |  |  ------------------
  ------------------
  159|      0|          len = trc_print_ids(data, buf, TRC_LINE_MAX);
  ------------------
  |  |   78|      0|#define TRC_LINE_MAX 2048
  ------------------
  160|      0|          fwrite(buf, len, 1, data->set.err);
  161|      0|        }
  162|      0|#endif
  163|      0|        fwrite(s_infotype[type], 2, 1, data->set.err);
  164|      0|        fwrite(ptr, size, 1, data->set.err);
  165|      0|        break;
  166|      0|      default: /* nada */
  ------------------
  |  Branch (166:7): [True: 0, False: 0]
  ------------------
  167|      0|        break;
  168|      0|      }
  169|      0|    }
  170|      0|  }
  171|  78.6k|}
Curl_failf:
  177|  19.5k|{
  178|  19.5k|  DEBUGASSERT(!strchr(fmt, '\n'));
  ------------------
  |  | 1083|  19.5k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (178:3): [True: 0, False: 19.5k]
  |  Branch (178:3): [True: 19.5k, False: 0]
  ------------------
  179|  19.5k|  if(data->set.verbose || data->set.errorbuffer) {
  ------------------
  |  Branch (179:6): [True: 0, False: 19.5k]
  |  Branch (179:27): [True: 0, False: 19.5k]
  ------------------
  180|      0|    va_list ap;
  181|      0|    size_t len;
  182|      0|    char error[CURL_ERROR_SIZE + 2];
  183|      0|    va_start(ap, fmt);
  184|      0|    len = curl_mvsnprintf(error, CURL_ERROR_SIZE, fmt, ap);
  ------------------
  |  |  875|      0|#define CURL_ERROR_SIZE 256
  ------------------
  185|       |
  186|      0|    if(data->set.errorbuffer && !data->state.errorbuf) {
  ------------------
  |  Branch (186:8): [True: 0, False: 0]
  |  Branch (186:33): [True: 0, False: 0]
  ------------------
  187|      0|      curlx_strcopy(data->set.errorbuffer, CURL_ERROR_SIZE, error, len);
  ------------------
  |  |  875|      0|#define CURL_ERROR_SIZE 256
  ------------------
  188|      0|      data->state.errorbuf = TRUE; /* wrote error string */
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  189|      0|    }
  190|      0|    error[len++] = '\n';
  191|      0|    error[len] = '\0';
  192|      0|    trc_write(data, CURLINFO_TEXT, error, len);
  193|       |    va_end(ap);
  194|      0|  }
  195|  19.5k|}
Curl_reset_fail:
  198|  20.2k|{
  199|  20.2k|  if(data->set.errorbuffer)
  ------------------
  |  Branch (199:6): [True: 0, False: 20.2k]
  ------------------
  200|      0|    data->set.errorbuffer[0] = 0;
  201|       |  data->state.errorbuf = FALSE;
  ------------------
  |  | 1056|  20.2k|#define FALSE false
  ------------------
  202|  20.2k|}
Curl_trc_opt:
  669|      2|{
  670|      2|  CURLcode result = config ? trc_opt(config) : CURLE_OK;
  ------------------
  |  Branch (670:21): [True: 0, False: 2]
  ------------------
  671|      2|#ifdef DEBUGBUILD
  672|       |  /* CURL_DEBUG can override anything */
  673|      2|  if(!result) {
  ------------------
  |  Branch (673:6): [True: 2, False: 0]
  ------------------
  674|      2|    const char *dbg_config = getenv("CURL_DEBUG");
  675|      2|    if(dbg_config)
  ------------------
  |  Branch (675:8): [True: 0, False: 2]
  ------------------
  676|      0|      result = trc_opt(dbg_config);
  677|      2|  }
  678|      2|#endif /* DEBUGBUILD */
  679|      2|  return result;
  680|      2|}
Curl_trc_init:
  683|      2|{
  684|      2|#ifdef DEBUGBUILD
  685|      2|  return Curl_trc_opt(NULL);
  686|       |#else
  687|       |  return CURLE_OK;
  688|       |#endif
  689|      2|}

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

curlx_dyn_init:
   39|   209k|{
   40|   209k|  DEBUGASSERT(s);
  ------------------
  |  | 1083|   209k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (40:3): [True: 0, False: 209k]
  |  Branch (40:3): [True: 209k, False: 0]
  ------------------
   41|   209k|  DEBUGASSERT(toobig);
  ------------------
  |  | 1083|   209k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (41:3): [True: 0, False: 209k]
  |  Branch (41:3): [True: 209k, False: 0]
  ------------------
   42|   209k|  DEBUGASSERT(toobig <= MAX_DYNBUF_SIZE); /* catch crazy mistakes */
  ------------------
  |  | 1083|   209k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (42:3): [True: 0, False: 209k]
  |  Branch (42:3): [True: 209k, False: 0]
  ------------------
   43|   209k|  s->bufr = NULL;
   44|   209k|  s->leng = 0;
   45|   209k|  s->allc = 0;
   46|   209k|  s->toobig = toobig;
   47|   209k|#ifdef DEBUGBUILD
   48|   209k|  s->init = DYNINIT;
  ------------------
  |  |   32|   209k|#define DYNINIT 0xbee51da /* random pattern */
  ------------------
   49|   209k|#endif
   50|   209k|}
curlx_dyn_free:
   57|   139k|{
   58|   139k|  DEBUGASSERT(s);
  ------------------
  |  | 1083|   139k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (58:3): [True: 0, False: 139k]
  |  Branch (58:3): [True: 139k, False: 0]
  ------------------
   59|   139k|  DEBUGASSERT(s->init == DYNINIT);
  ------------------
  |  | 1083|   139k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (59:3): [True: 0, False: 139k]
  |  Branch (59:3): [True: 139k, False: 0]
  ------------------
   60|   139k|  curlx_safefree(s->bufr);
  ------------------
  |  | 1340|   139k|  do {                      \
  |  | 1341|   139k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|   139k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|   139k|    (ptr) = NULL;           \
  |  | 1343|   139k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 139k]
  |  |  ------------------
  ------------------
   61|   139k|  s->leng = s->allc = 0;
   62|   139k|}
curlx_dyn_reset:
  126|   183k|{
  127|   183k|  DEBUGASSERT(s);
  ------------------
  |  | 1083|   183k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (127:3): [True: 0, False: 183k]
  |  Branch (127:3): [True: 183k, False: 0]
  ------------------
  128|   183k|  DEBUGASSERT(s->init == DYNINIT);
  ------------------
  |  | 1083|   183k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (128:3): [True: 0, False: 183k]
  |  Branch (128:3): [True: 183k, False: 0]
  ------------------
  129|   183k|  DEBUGASSERT(!s->leng || s->bufr);
  ------------------
  |  | 1083|   183k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (129:3): [True: 183k, False: 0]
  |  Branch (129:3): [True: 0, False: 0]
  |  Branch (129:3): [True: 112k, False: 71.6k]
  |  Branch (129:3): [True: 71.6k, False: 0]
  ------------------
  130|   183k|  if(s->leng)
  ------------------
  |  Branch (130:6): [True: 71.6k, False: 112k]
  ------------------
  131|  71.6k|    s->bufr[0] = 0;
  132|   183k|  s->leng = 0;
  133|   183k|}
curlx_dyn_addn:
  163|  10.9M|{
  164|  10.9M|  DEBUGASSERT(s);
  ------------------
  |  | 1083|  10.9M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (164:3): [True: 0, False: 10.9M]
  |  Branch (164:3): [True: 10.9M, False: 0]
  ------------------
  165|  10.9M|  DEBUGASSERT(s->init == DYNINIT);
  ------------------
  |  | 1083|  10.9M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (165:3): [True: 0, False: 10.9M]
  |  Branch (165:3): [True: 10.9M, False: 0]
  ------------------
  166|  10.9M|  DEBUGASSERT(!s->leng || s->bufr);
  ------------------
  |  | 1083|  10.9M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (166:3): [True: 10.9M, False: 0]
  |  Branch (166:3): [True: 0, False: 0]
  |  Branch (166:3): [True: 229k, False: 10.7M]
  |  Branch (166:3): [True: 10.7M, False: 0]
  ------------------
  167|  10.9M|  return dyn_nappend(s, mem, len);
  168|  10.9M|}
curlx_dyn_add:
  174|  65.0k|{
  175|  65.0k|  size_t n;
  176|  65.0k|  DEBUGASSERT(str);
  ------------------
  |  | 1083|  65.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (176:3): [True: 0, False: 65.0k]
  |  Branch (176:3): [True: 65.0k, False: 0]
  ------------------
  177|  65.0k|  DEBUGASSERT(s);
  ------------------
  |  | 1083|  65.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (177:3): [True: 0, False: 65.0k]
  |  Branch (177:3): [True: 65.0k, False: 0]
  ------------------
  178|  65.0k|  DEBUGASSERT(s->init == DYNINIT);
  ------------------
  |  | 1083|  65.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (178:3): [True: 0, False: 65.0k]
  |  Branch (178:3): [True: 65.0k, False: 0]
  ------------------
  179|  65.0k|  DEBUGASSERT(!s->leng || s->bufr);
  ------------------
  |  | 1083|  65.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (179:3): [True: 65.0k, False: 0]
  |  Branch (179:3): [True: 0, False: 0]
  |  Branch (179:3): [True: 3.74k, False: 61.2k]
  |  Branch (179:3): [True: 61.2k, False: 0]
  ------------------
  180|  65.0k|  n = strlen(str);
  181|  65.0k|  return dyn_nappend(s, (const unsigned char *)str, n);
  182|  65.0k|}
curlx_dyn_vaddf:
  188|  46.7k|{
  189|  46.7k|#ifdef BUILDING_LIBCURL
  190|  46.7k|  int rc;
  191|  46.7k|  DEBUGASSERT(s);
  ------------------
  |  | 1083|  46.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (191:3): [True: 0, False: 46.7k]
  |  Branch (191:3): [True: 46.7k, False: 0]
  ------------------
  192|  46.7k|  DEBUGASSERT(s->init == DYNINIT);
  ------------------
  |  | 1083|  46.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (192:3): [True: 0, False: 46.7k]
  |  Branch (192:3): [True: 46.7k, False: 0]
  ------------------
  193|  46.7k|  DEBUGASSERT(!s->leng || s->bufr);
  ------------------
  |  | 1083|  46.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (193:3): [True: 46.7k, False: 0]
  |  Branch (193:3): [True: 0, False: 0]
  |  Branch (193:3): [True: 20.2k, False: 26.4k]
  |  Branch (193:3): [True: 26.4k, False: 0]
  ------------------
  194|  46.7k|  DEBUGASSERT(fmt);
  ------------------
  |  | 1083|  46.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (194:3): [True: 0, False: 46.7k]
  |  Branch (194:3): [True: 46.7k, False: 0]
  ------------------
  195|  46.7k|  rc = curlx_dyn_vprintf(s, fmt, ap);
  196|       |
  197|  46.7k|  if(!rc)
  ------------------
  |  Branch (197:6): [True: 46.7k, False: 9]
  ------------------
  198|  46.7k|    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|  46.7k|}
curlx_dyn_addf:
  221|  46.7k|{
  222|  46.7k|  CURLcode result;
  223|  46.7k|  va_list ap;
  224|  46.7k|  DEBUGASSERT(s);
  ------------------
  |  | 1083|  46.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (224:3): [True: 0, False: 46.7k]
  |  Branch (224:3): [True: 46.7k, False: 0]
  ------------------
  225|  46.7k|  DEBUGASSERT(s->init == DYNINIT);
  ------------------
  |  | 1083|  46.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (225:3): [True: 0, False: 46.7k]
  |  Branch (225:3): [True: 46.7k, False: 0]
  ------------------
  226|  46.7k|  DEBUGASSERT(!s->leng || s->bufr);
  ------------------
  |  | 1083|  46.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (226:3): [True: 46.7k, False: 0]
  |  Branch (226:3): [True: 0, False: 0]
  |  Branch (226:3): [True: 20.2k, False: 26.4k]
  |  Branch (226:3): [True: 26.4k, False: 0]
  ------------------
  227|  46.7k|  DEBUGASSERT(strcmp(fmt, "%s")); /* use curlx_dyn_add instead */
  ------------------
  |  | 1083|  46.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (227:3): [True: 0, False: 46.7k]
  |  Branch (227:3): [True: 46.7k, False: 0]
  ------------------
  228|  46.7k|  va_start(ap, fmt);
  229|  46.7k|  result = curlx_dyn_vaddf(s, fmt, ap);
  230|       |  va_end(ap);
  231|  46.7k|  return result;
  232|  46.7k|}
curlx_dyn_ptr:
  238|   335k|{
  239|   335k|  DEBUGASSERT(s);
  ------------------
  |  | 1083|   335k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (239:3): [True: 0, False: 335k]
  |  Branch (239:3): [True: 335k, False: 0]
  ------------------
  240|   335k|  DEBUGASSERT(s->init == DYNINIT);
  ------------------
  |  | 1083|   335k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (240:3): [True: 0, False: 335k]
  |  Branch (240:3): [True: 335k, False: 0]
  ------------------
  241|   335k|  DEBUGASSERT(!s->leng || s->bufr);
  ------------------
  |  | 1083|   335k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (241:3): [True: 335k, False: 0]
  |  Branch (241:3): [True: 0, False: 0]
  |  Branch (241:3): [True: 19.9k, False: 315k]
  |  Branch (241:3): [True: 315k, False: 0]
  ------------------
  242|   335k|  return s->bufr;
  243|   335k|}
curlx_dyn_take:
  246|  13.4k|{
  247|  13.4k|  char *ptr = s->bufr;
  248|  13.4k|  DEBUGASSERT(s);
  ------------------
  |  | 1083|  13.4k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (248:3): [True: 0, False: 13.4k]
  |  Branch (248:3): [True: 13.4k, False: 0]
  ------------------
  249|  13.4k|  DEBUGASSERT(s->init == DYNINIT);
  ------------------
  |  | 1083|  13.4k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (249:3): [True: 0, False: 13.4k]
  |  Branch (249:3): [True: 13.4k, False: 0]
  ------------------
  250|  13.4k|  *plen = s->leng;
  251|       |  s->bufr = NULL;
  252|  13.4k|  s->leng = 0;
  253|  13.4k|  s->allc = 0;
  254|  13.4k|  return ptr;
  255|  13.4k|}
curlx_dyn_len:
  272|   327k|{
  273|   327k|  DEBUGASSERT(s);
  ------------------
  |  | 1083|   327k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (273:3): [True: 0, False: 327k]
  |  Branch (273:3): [True: 327k, False: 0]
  ------------------
  274|   327k|  DEBUGASSERT(s->init == DYNINIT);
  ------------------
  |  | 1083|   327k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (274:3): [True: 0, False: 327k]
  |  Branch (274:3): [True: 327k, False: 0]
  ------------------
  275|   327k|  DEBUGASSERT(!s->leng || s->bufr);
  ------------------
  |  | 1083|   327k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (275:3): [True: 327k, False: 0]
  |  Branch (275:3): [True: 0, False: 0]
  |  Branch (275:3): [True: 101k, False: 226k]
  |  Branch (275:3): [True: 226k, False: 0]
  ------------------
  276|   327k|  return s->leng;
  277|   327k|}
curlx_dyn_setlen:
  283|  2.29k|{
  284|  2.29k|  DEBUGASSERT(s);
  ------------------
  |  | 1083|  2.29k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (284:3): [True: 0, False: 2.29k]
  |  Branch (284:3): [True: 2.29k, False: 0]
  ------------------
  285|  2.29k|  DEBUGASSERT(s->init == DYNINIT);
  ------------------
  |  | 1083|  2.29k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (285:3): [True: 0, False: 2.29k]
  |  Branch (285:3): [True: 2.29k, False: 0]
  ------------------
  286|  2.29k|  DEBUGASSERT(!s->leng || s->bufr);
  ------------------
  |  | 1083|  2.29k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (286:3): [True: 2.29k, False: 0]
  |  Branch (286:3): [True: 0, False: 0]
  |  Branch (286:3): [True: 0, False: 2.29k]
  |  Branch (286:3): [True: 2.29k, False: 0]
  ------------------
  287|  2.29k|  if(set > s->leng)
  ------------------
  |  Branch (287:6): [True: 0, False: 2.29k]
  ------------------
  288|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  289|  2.29k|  s->leng = set;
  290|  2.29k|  s->bufr[s->leng] = 0;
  291|  2.29k|  return CURLE_OK;
  292|  2.29k|}
dynbuf.c:dyn_nappend:
   69|  11.0M|{
   70|  11.0M|  size_t idx = s->leng;
   71|  11.0M|  size_t a = s->allc;
   72|  11.0M|  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|  11.0M|  DEBUGASSERT(s->init == DYNINIT);
  ------------------
  |  | 1083|  11.0M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (75:3): [True: 0, False: 11.0M]
  |  Branch (75:3): [True: 11.0M, False: 0]
  ------------------
   76|  11.0M|  DEBUGASSERT(s->toobig);
  ------------------
  |  | 1083|  11.0M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (76:3): [True: 0, False: 11.0M]
  |  Branch (76:3): [True: 11.0M, False: 0]
  ------------------
   77|  11.0M|  DEBUGASSERT(idx < s->toobig);
  ------------------
  |  | 1083|  11.0M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (77:3): [True: 0, False: 11.0M]
  |  Branch (77:3): [True: 11.0M, False: 0]
  ------------------
   78|  11.0M|  DEBUGASSERT(!s->leng || s->bufr);
  ------------------
  |  | 1083|  11.0M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (78:3): [True: 11.0M, False: 0]
  |  Branch (78:3): [True: 0, False: 0]
  |  Branch (78:3): [True: 233k, False: 10.7M]
  |  Branch (78:3): [True: 10.7M, False: 0]
  ------------------
   79|  11.0M|  DEBUGASSERT(a <= s->toobig);
  ------------------
  |  | 1083|  11.0M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (79:3): [True: 0, False: 11.0M]
  |  Branch (79:3): [True: 11.0M, False: 0]
  ------------------
   80|  11.0M|  DEBUGASSERT(!len || mem);
  ------------------
  |  | 1083|  11.0M|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (80:3): [True: 11.0M, False: 0]
  |  Branch (80:3): [True: 0, False: 0]
  |  Branch (80:3): [True: 18.5k, False: 10.9M]
  |  Branch (80:3): [True: 10.9M, False: 0]
  ------------------
   81|       |
   82|  11.0M|  if(fit > s->toobig) {
  ------------------
  |  Branch (82:6): [True: 11, False: 11.0M]
  ------------------
   83|     11|    curlx_dyn_free(s);
   84|     11|    return CURLE_TOO_LARGE;
   85|     11|  }
   86|  11.0M|  else if(!a) {
  ------------------
  |  Branch (86:11): [True: 169k, False: 10.8M]
  ------------------
   87|   169k|    DEBUGASSERT(!idx);
  ------------------
  |  | 1083|   169k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (87:5): [True: 0, False: 169k]
  |  Branch (87:5): [True: 169k, False: 0]
  ------------------
   88|       |    /* first invoke */
   89|   169k|    if(MIN_FIRST_ALLOC > s->toobig)
  ------------------
  |  |   29|   169k|#define MIN_FIRST_ALLOC 32
  ------------------
  |  Branch (89:8): [True: 10.0k, False: 159k]
  ------------------
   90|  10.0k|      a = s->toobig;
   91|   159k|    else if(fit < MIN_FIRST_ALLOC)
  ------------------
  |  |   29|   159k|#define MIN_FIRST_ALLOC 32
  ------------------
  |  Branch (91:13): [True: 155k, False: 4.06k]
  ------------------
   92|   155k|      a = MIN_FIRST_ALLOC;
  ------------------
  |  |   29|   155k|#define MIN_FIRST_ALLOC 32
  ------------------
   93|  4.06k|    else
   94|  4.06k|      a = fit;
   95|   169k|  }
   96|  10.8M|  else {
   97|  10.8M|    while(a < fit)
  ------------------
  |  Branch (97:11): [True: 53.3k, False: 10.8M]
  ------------------
   98|  53.3k|      a *= 2;
   99|  10.8M|    if(a > s->toobig)
  ------------------
  |  Branch (99:8): [True: 156, False: 10.8M]
  ------------------
  100|       |      /* no point in allocating a larger buffer than this is allowed to use */
  101|    156|      a = s->toobig;
  102|  10.8M|  }
  103|       |
  104|  11.0M|  if(a != s->allc) {
  ------------------
  |  Branch (104:6): [True: 218k, False: 10.7M]
  ------------------
  105|   218k|    void *p = curlx_realloc(s->bufr, a);
  ------------------
  |  | 1481|   218k|  curl_dbg_realloc(ptr, size, __LINE__, __FILE__)
  ------------------
  106|   218k|    if(!p) {
  ------------------
  |  Branch (106:8): [True: 0, False: 218k]
  ------------------
  107|      0|      curlx_dyn_free(s);
  108|      0|      return CURLE_OUT_OF_MEMORY;
  109|      0|    }
  110|   218k|    s->bufr = p;
  111|   218k|    s->allc = a;
  112|   218k|  }
  113|       |
  114|  11.0M|  if(len)
  ------------------
  |  Branch (114:6): [True: 10.9M, False: 18.5k]
  ------------------
  115|  10.9M|    memcpy(&s->bufr[idx], mem, len);
  116|  11.0M|  s->leng = idx + len;
  117|  11.0M|  s->bufr[s->leng] = 0;
  118|  11.0M|  return CURLE_OK;
  119|  11.0M|}

curlx_inet_ntop:
  209|  12.8k|{
  210|  12.8k|  switch(af) {
  211|  9.33k|  case AF_INET:
  ------------------
  |  Branch (211:3): [True: 9.33k, False: 3.54k]
  ------------------
  212|  9.33k|    return inet_ntop4((const unsigned char *)src, buf, size);
  213|  3.54k|  case AF_INET6:
  ------------------
  |  Branch (213:3): [True: 3.54k, False: 9.33k]
  ------------------
  214|  3.54k|    return inet_ntop6((const unsigned char *)src, buf, size);
  215|      0|  default:
  ------------------
  |  Branch (215:3): [True: 0, False: 12.8k]
  ------------------
  216|      0|    errno = SOCKEAFNOSUPPORT;
  ------------------
  |  | 1126|      0|#define SOCKEAFNOSUPPORT  EAFNOSUPPORT
  ------------------
  217|       |    return NULL;
  218|  12.8k|  }
  219|  12.8k|}
inet_ntop.c:inet_ntop4:
   57|  10.3k|{
   58|  10.3k|  char tmp[sizeof("255.255.255.255")];
   59|  10.3k|  size_t len;
   60|       |
   61|  10.3k|  DEBUGASSERT(size >= 16);
  ------------------
  |  | 1083|  10.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (61:3): [True: 0, False: 10.3k]
  |  Branch (61:3): [True: 10.3k, False: 0]
  ------------------
   62|       |
   63|       |  /* this snprintf() does not overflow the buffer. */
   64|  10.3k|  SNPRINTF(tmp, sizeof(tmp), "%d.%d.%d.%d",
  ------------------
  |  |   43|  10.3k|#define SNPRINTF curl_msnprintf
  ------------------
   65|  10.3k|           ((int)((unsigned char)src[0])) & 0xff,
   66|  10.3k|           ((int)((unsigned char)src[1])) & 0xff,
   67|  10.3k|           ((int)((unsigned char)src[2])) & 0xff,
   68|  10.3k|           ((int)((unsigned char)src[3])) & 0xff);
   69|       |
   70|  10.3k|  len = strlen(tmp);
   71|  10.3k|  if(len == 0 || len >= size) {
  ------------------
  |  Branch (71:6): [True: 0, False: 10.3k]
  |  Branch (71:18): [True: 0, False: 10.3k]
  ------------------
   72|       |#ifdef USE_WINSOCK
   73|       |    errno = WSAEINVAL;
   74|       |#else
   75|      0|    errno = ENOSPC;
   76|      0|#endif
   77|      0|    return NULL;
   78|      0|  }
   79|  10.3k|  curlx_strcopy(dst, size, tmp, len);
   80|  10.3k|  return dst;
   81|  10.3k|}
inet_ntop.c:inet_ntop6:
   87|  3.54k|{
   88|       |  /*
   89|       |   * Note that int32_t and int16_t need only be "at least" large enough
   90|       |   * to contain a value of the specified size. On some systems, like
   91|       |   * Crays, there is no such thing as an integer variable with 16 bits.
   92|       |   * Keep this in mind if you think this function should have been coded
   93|       |   * to use pointer overlays. All the world's not a VAX.
   94|       |   */
   95|  3.54k|  char tmp[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
   96|  3.54k|  char *tp;
   97|  3.54k|  struct {
   98|  3.54k|    int base;
   99|  3.54k|    int len;
  100|  3.54k|  } best, cur;
  101|  3.54k|  unsigned int words[IN6ADDRSZ / INT16SZ];
  102|  3.54k|  int i;
  103|       |
  104|       |  /* Preprocess:
  105|       |   *  Copy the input (bytewise) array into a wordwise array.
  106|       |   *  Find the longest run of 0x00's in src[] for :: shorthanding.
  107|       |   */
  108|  3.54k|  memset(words, '\0', sizeof(words));
  109|  60.2k|  for(i = 0; i < IN6ADDRSZ; i++)
  ------------------
  |  |   35|  60.2k|#define IN6ADDRSZ       16
  ------------------
  |  Branch (109:14): [True: 56.7k, False: 3.54k]
  ------------------
  110|  56.7k|    words[i / 2] |= ((unsigned int)src[i] << ((1 - (i % 2)) << 3));
  111|       |
  112|  3.54k|  best.base = -1;
  113|  3.54k|  cur.base = -1;
  114|  3.54k|  best.len = 0;
  115|  3.54k|  cur.len = 0;
  116|       |
  117|  31.8k|  for(i = 0; i < (IN6ADDRSZ / INT16SZ); i++) {
  ------------------
  |  |   35|  31.8k|#define IN6ADDRSZ       16
  ------------------
                for(i = 0; i < (IN6ADDRSZ / INT16SZ); i++) {
  ------------------
  |  |   37|  31.8k|#define INT16SZ          2
  ------------------
  |  Branch (117:14): [True: 28.3k, False: 3.54k]
  ------------------
  118|  28.3k|    if(words[i] == 0) {
  ------------------
  |  Branch (118:8): [True: 19.4k, False: 8.88k]
  ------------------
  119|  19.4k|      if(cur.base == -1) {
  ------------------
  |  Branch (119:10): [True: 4.19k, False: 15.2k]
  ------------------
  120|  4.19k|        cur.base = i;
  121|  4.19k|        cur.len = 1;
  122|  4.19k|      }
  123|  15.2k|      else
  124|  15.2k|        cur.len++;
  125|  19.4k|    }
  126|  8.88k|    else if(cur.base != -1) {
  ------------------
  |  Branch (126:13): [True: 3.20k, False: 5.68k]
  ------------------
  127|  3.20k|      if(best.base == -1 || cur.len > best.len)
  ------------------
  |  Branch (127:10): [True: 2.76k, False: 439]
  |  Branch (127:29): [True: 102, False: 337]
  ------------------
  128|  2.86k|        best = cur;
  129|  3.20k|      cur.base = -1;
  130|  3.20k|    }
  131|  28.3k|  }
  132|  3.54k|  if((cur.base != -1) && (best.base == -1 || cur.len > best.len))
  ------------------
  |  Branch (132:6): [True: 993, False: 2.55k]
  |  Branch (132:27): [True: 566, False: 427]
  |  Branch (132:46): [True: 210, False: 217]
  ------------------
  133|    776|    best = cur;
  134|  3.54k|  if(best.base != -1 && best.len < 2)
  ------------------
  |  Branch (134:6): [True: 3.32k, False: 216]
  |  Branch (134:25): [True: 150, False: 3.17k]
  ------------------
  135|    150|    best.base = -1;
  136|       |  /* Format the result. */
  137|  3.54k|  tp = tmp;
  138|  29.9k|  for(i = 0; i < (IN6ADDRSZ / INT16SZ); i++) {
  ------------------
  |  |   35|  29.9k|#define IN6ADDRSZ       16
  ------------------
                for(i = 0; i < (IN6ADDRSZ / INT16SZ); i++) {
  ------------------
  |  |   37|  29.9k|#define INT16SZ          2
  ------------------
  |  Branch (138:14): [True: 27.3k, False: 2.57k]
  ------------------
  139|       |    /* Are we inside the best run of 0x00's? */
  140|  27.3k|    if(best.base != -1 && i >= best.base && i < (best.base + best.len)) {
  ------------------
  |  Branch (140:8): [True: 24.4k, False: 2.92k]
  |  Branch (140:27): [True: 22.2k, False: 2.25k]
  |  Branch (140:45): [True: 18.4k, False: 3.77k]
  ------------------
  141|  18.4k|      if(i == best.base)
  ------------------
  |  Branch (141:10): [True: 3.17k, False: 15.2k]
  ------------------
  142|  3.17k|        *tp++ = ':';
  143|  18.4k|      continue;
  144|  18.4k|    }
  145|       |
  146|       |    /* Are we following an initial run of 0x00s or any real hex?
  147|       |     */
  148|  8.95k|    if(i)
  ------------------
  |  Branch (148:8): [True: 7.47k, False: 1.48k]
  ------------------
  149|  7.47k|      *tp++ = ':';
  150|       |
  151|       |    /* Is this address an encapsulated IPv4?
  152|       |     */
  153|  8.95k|    if(i == 6 && best.base == 0 &&
  ------------------
  |  Branch (153:8): [True: 1.86k, False: 7.08k]
  |  Branch (153:18): [True: 1.16k, False: 703]
  ------------------
  154|  1.16k|       (best.len == 6 || (best.len == 5 && words[5] == 0xffff))) {
  ------------------
  |  Branch (154:9): [True: 896, False: 266]
  |  Branch (154:27): [True: 173, False: 93]
  |  Branch (154:44): [True: 73, False: 100]
  ------------------
  155|    969|      if(!inet_ntop4(src + 12, tp, sizeof(tmp) - (tp - tmp))) {
  ------------------
  |  Branch (155:10): [True: 0, False: 969]
  ------------------
  156|      0|        return NULL;
  157|      0|      }
  158|    969|      tp += strlen(tp);
  159|    969|      break;
  160|    969|    }
  161|  7.98k|    else {
  162|       |      /* Lower-case digits. Cannot use the set from mprintf.c since this
  163|       |         needs to work as a curlx function */
  164|  7.98k|      static const unsigned char ldigits[] = "0123456789abcdef";
  165|       |
  166|  7.98k|      unsigned int w = words[i];
  167|       |      /* output lowercase 16-bit hex number but ignore leading zeroes */
  168|  7.98k|      if(w & 0xf000)
  ------------------
  |  Branch (168:10): [True: 1.15k, False: 6.83k]
  ------------------
  169|  1.15k|        *tp++ = ldigits[(w & 0xf000) >> 12];
  170|  7.98k|      if(w & 0xff00)
  ------------------
  |  Branch (170:10): [True: 2.46k, False: 5.51k]
  ------------------
  171|  2.46k|        *tp++ = ldigits[(w & 0x0f00) >> 8];
  172|  7.98k|      if(w & 0xfff0)
  ------------------
  |  Branch (172:10): [True: 4.05k, False: 3.93k]
  ------------------
  173|  4.05k|        *tp++ = ldigits[(w & 0x00f0) >> 4];
  174|  7.98k|      *tp++ = ldigits[(w & 0x000f)];
  175|  7.98k|    }
  176|  8.95k|  }
  177|       |
  178|       |  /* Was it a trailing run of 0x00's?
  179|       |   */
  180|  3.54k|  if(best.base != -1 && (best.base + best.len) == (IN6ADDRSZ / INT16SZ))
  ------------------
  |  |   35|  3.17k|#define IN6ADDRSZ       16
  ------------------
                if(best.base != -1 && (best.base + best.len) == (IN6ADDRSZ / INT16SZ))
  ------------------
  |  |   37|  3.17k|#define INT16SZ          2
  ------------------
  |  Branch (180:6): [True: 3.17k, False: 366]
  |  Branch (180:25): [True: 752, False: 2.42k]
  ------------------
  181|    752|    *tp++ = ':';
  182|       |
  183|       |  /* Check for overflow, copy, and we are done. */
  184|  3.54k|  if((size_t)(tp - tmp) >= size) {
  ------------------
  |  Branch (184:6): [True: 951, False: 2.59k]
  ------------------
  185|       |#ifdef USE_WINSOCK
  186|       |    errno = WSAEINVAL;
  187|       |#else
  188|    951|    errno = ENOSPC;
  189|    951|#endif
  190|    951|    return NULL;
  191|    951|  }
  192|       |
  193|  2.59k|  curlx_strcopy(dst, size, tmp, tp - tmp);
  194|  2.59k|  return dst;
  195|  3.54k|}

curlx_inet_pton:
  207|  92.4k|{
  208|  92.4k|  switch(af) {
  209|  62.1k|  case AF_INET:
  ------------------
  |  Branch (209:3): [True: 62.1k, False: 30.3k]
  ------------------
  210|  62.1k|    return inet_pton4(src, (unsigned char *)dst);
  211|  30.3k|  case AF_INET6:
  ------------------
  |  Branch (211:3): [True: 30.3k, False: 62.1k]
  ------------------
  212|  30.3k|    return inet_pton6(src, (unsigned char *)dst);
  213|      0|  default:
  ------------------
  |  Branch (213:3): [True: 0, False: 92.4k]
  ------------------
  214|      0|    errno = SOCKEAFNOSUPPORT;
  ------------------
  |  | 1126|      0|#define SOCKEAFNOSUPPORT  EAFNOSUPPORT
  ------------------
  215|      0|    return -1;
  216|  92.4k|  }
  217|       |  /* NOTREACHED */
  218|  92.4k|}
inet_pton.c:inet_pton4:
   63|  65.2k|{
   64|  65.2k|  int saw_digit, octets, ch;
   65|  65.2k|  unsigned char tmp[INADDRSZ], *tp;
   66|       |
   67|  65.2k|  saw_digit = 0;
   68|  65.2k|  octets = 0;
   69|  65.2k|  tp = tmp;
   70|  65.2k|  *tp = 0;
   71|   466k|  while((ch = (unsigned char)*src++) != '\0') {
  ------------------
  |  Branch (71:9): [True: 430k, False: 35.7k]
  ------------------
   72|   430k|    if(ISDIGIT(ch)) {
  ------------------
  |  |   42|   430k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (42:22): [True: 313k, False: 117k]
  |  |  |  Branch (42:38): [True: 290k, False: 22.8k]
  |  |  ------------------
  ------------------
   73|   290k|      unsigned int val = (*tp * 10) + (ch - '0');
   74|       |
   75|   290k|      if(saw_digit && *tp == 0)
  ------------------
  |  Branch (75:10): [True: 134k, False: 155k]
  |  Branch (75:23): [True: 523, False: 134k]
  ------------------
   76|    523|        return 0;
   77|   289k|      if(val > 255)
  ------------------
  |  Branch (77:10): [True: 2.55k, False: 287k]
  ------------------
   78|  2.55k|        return 0;
   79|   287k|      *tp = (unsigned char)val;
   80|   287k|      if(!saw_digit) {
  ------------------
  |  Branch (80:10): [True: 155k, False: 131k]
  ------------------
   81|   155k|        if(++octets > 4)
  ------------------
  |  Branch (81:12): [True: 0, False: 155k]
  ------------------
   82|      0|          return 0;
   83|   155k|        saw_digit = 1;
   84|   155k|      }
   85|   287k|    }
   86|   140k|    else if(ch == '.' && saw_digit) {
  ------------------
  |  Branch (86:13): [True: 115k, False: 24.9k]
  |  Branch (86:26): [True: 114k, False: 846]
  ------------------
   87|   114k|      if(octets == 4)
  ------------------
  |  Branch (87:10): [True: 658, False: 113k]
  ------------------
   88|    658|        return 0;
   89|   113k|      *++tp = 0;
   90|   113k|      saw_digit = 0;
   91|   113k|    }
   92|  25.8k|    else
   93|  25.8k|      return 0;
   94|   430k|  }
   95|  35.7k|  if(octets < 4)
  ------------------
  |  Branch (95:6): [True: 1, False: 35.7k]
  ------------------
   96|      1|    return 0;
   97|  35.7k|  memcpy(dst, tmp, INADDRSZ);
  ------------------
  |  |   36|  35.7k|#define INADDRSZ         4
  ------------------
   98|  35.7k|  return 1;
   99|  35.7k|}
inet_pton.c:inet_pton6:
  114|  30.3k|{
  115|  30.3k|  unsigned char tmp[IN6ADDRSZ], *tp, *endp, *colonp;
  116|  30.3k|  const char *curtok;
  117|  30.3k|  int ch, saw_xdigit;
  118|  30.3k|  size_t val;
  119|       |
  120|  30.3k|  memset((tp = tmp), 0, IN6ADDRSZ);
  ------------------
  |  |   35|  30.3k|#define IN6ADDRSZ       16
  ------------------
  121|  30.3k|  endp = tp + IN6ADDRSZ;
  ------------------
  |  |   35|  30.3k|#define IN6ADDRSZ       16
  ------------------
  122|  30.3k|  colonp = NULL;
  123|       |  /* Leading :: requires some special handling. */
  124|  30.3k|  if(*src == ':')
  ------------------
  |  Branch (124:6): [True: 4.10k, False: 26.2k]
  ------------------
  125|  4.10k|    if(*++src != ':')
  ------------------
  |  Branch (125:8): [True: 4, False: 4.09k]
  ------------------
  126|      4|      return 0;
  127|  30.3k|  curtok = src;
  128|  30.3k|  saw_xdigit = 0;
  129|  30.3k|  val = 0;
  130|   102k|  while((ch = (unsigned char)*src++) != '\0') {
  ------------------
  |  Branch (130:9): [True: 92.1k, False: 10.4k]
  ------------------
  131|  92.1k|    if(ISXDIGIT(ch)) {
  ------------------
  |  |   37|  92.1k|#define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   42|   184k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (42:22): [True: 86.9k, False: 5.22k]
  |  |  |  |  |  Branch (42:38): [True: 22.4k, False: 64.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   27|   161k|#define ISLOWHEXALPHA(x) (((x) >= 'a') && ((x) <= 'f'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (27:27): [True: 31.3k, False: 38.4k]
  |  |  |  |  |  Branch (27:43): [True: 20.4k, False: 10.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   28|  49.2k|#define ISUPHEXALPHA(x)  (((x) >= 'A') && ((x) <= 'F'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (28:27): [True: 26.0k, False: 23.2k]
  |  |  |  |  |  Branch (28:43): [True: 12.1k, False: 13.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  132|  55.0k|      val <<= 4;
  133|  55.0k|      val |= curlx_hexval(ch);
  ------------------
  |  |  111|  55.0k|#define curlx_hexval(x) (unsigned char)(curlx_hexasciitable[(x) - '0'] & 0x0f)
  ------------------
  134|  55.0k|      if(++saw_xdigit > 4)
  ------------------
  |  Branch (134:10): [True: 763, False: 54.2k]
  ------------------
  135|    763|        return 0;
  136|  54.2k|      continue;
  137|  55.0k|    }
  138|  37.1k|    if(ch == ':') {
  ------------------
  |  Branch (138:8): [True: 18.0k, False: 19.1k]
  ------------------
  139|  18.0k|      curtok = src;
  140|  18.0k|      if(!saw_xdigit) {
  ------------------
  |  Branch (140:10): [True: 6.00k, False: 12.0k]
  ------------------
  141|  6.00k|        if(colonp)
  ------------------
  |  Branch (141:12): [True: 1, False: 6.00k]
  ------------------
  142|      1|          return 0;
  143|  6.00k|        colonp = tp;
  144|  6.00k|        continue;
  145|  6.00k|      }
  146|  12.0k|      if(tp + INT16SZ > endp)
  ------------------
  |  |   37|  12.0k|#define INT16SZ          2
  ------------------
  |  Branch (146:10): [True: 1, False: 12.0k]
  ------------------
  147|      1|        return 0;
  148|  12.0k|      *tp++ = (unsigned char)((val >> 8) & 0xff);
  149|  12.0k|      *tp++ = (unsigned char)(val & 0xff);
  150|  12.0k|      saw_xdigit = 0;
  151|  12.0k|      val = 0;
  152|  12.0k|      continue;
  153|  12.0k|    }
  154|  19.1k|    if(ch == '.' && ((tp + INADDRSZ) <= endp) &&
  ------------------
  |  |   36|  3.10k|#define INADDRSZ         4
  ------------------
  |  Branch (154:8): [True: 3.10k, False: 15.9k]
  |  Branch (154:21): [True: 3.10k, False: 1]
  ------------------
  155|  3.10k|       inet_pton4(curtok, tp) > 0) {
  ------------------
  |  Branch (155:8): [True: 271, False: 2.83k]
  ------------------
  156|    271|      tp += INADDRSZ;
  ------------------
  |  |   36|    271|#define INADDRSZ         4
  ------------------
  157|    271|      saw_xdigit = 0;
  158|    271|      break;    /* '\0' was seen by inet_pton4(). */
  159|    271|    }
  160|  18.8k|    return 0;
  161|  19.1k|  }
  162|  10.7k|  if(saw_xdigit) {
  ------------------
  |  Branch (162:6): [True: 9.04k, False: 1.66k]
  ------------------
  163|  9.04k|    if(tp + INT16SZ > endp)
  ------------------
  |  |   37|  9.04k|#define INT16SZ          2
  ------------------
  |  Branch (163:8): [True: 1, False: 9.04k]
  ------------------
  164|      1|      return 0;
  165|  9.04k|    *tp++ = (unsigned char)((val >> 8) & 0xff);
  166|  9.04k|    *tp++ = (unsigned char)(val & 0xff);
  167|  9.04k|  }
  168|  10.7k|  if(colonp) {
  ------------------
  |  Branch (168:6): [True: 5.99k, False: 4.71k]
  ------------------
  169|       |    /*
  170|       |     * Since some memmove()'s erroneously fail to handle
  171|       |     * overlapping regions, we do the shift by hand.
  172|       |     */
  173|  5.99k|    const ssize_t n = tp - colonp;
  174|  5.99k|    ssize_t i;
  175|       |
  176|  5.99k|    if(tp == endp)
  ------------------
  |  Branch (176:8): [True: 1, False: 5.99k]
  ------------------
  177|      1|      return 0;
  178|  25.1k|    for(i = 1; i <= n; i++) {
  ------------------
  |  Branch (178:16): [True: 19.1k, False: 5.99k]
  ------------------
  179|  19.1k|      *(endp - i) = *(colonp + n - i);
  180|  19.1k|      *(colonp + n - i) = 0;
  181|  19.1k|    }
  182|  5.99k|    tp = endp;
  183|  5.99k|  }
  184|  10.7k|  if(tp != endp)
  ------------------
  |  Branch (184:6): [True: 4.24k, False: 6.46k]
  ------------------
  185|  4.24k|    return 0;
  186|  6.46k|  memcpy(dst, tmp, IN6ADDRSZ);
  ------------------
  |  |   35|  6.46k|#define IN6ADDRSZ       16
  ------------------
  187|  6.46k|  return 1;
  188|  10.7k|}

curlx_nonblock:
   47|  12.6k|{
   48|  12.6k|#ifdef HAVE_FCNTL_O_NONBLOCK
   49|       |  /* most recent Unix versions */
   50|  12.6k|  int flags;
   51|  12.6k|  flags = sfcntl(sockfd, F_GETFL, 0);
  ------------------
  |  | 1006|  12.6k|#  define sfcntl  fcntl
  ------------------
   52|  12.6k|  if(flags < 0)
  ------------------
  |  Branch (52:6): [True: 0, False: 12.6k]
  ------------------
   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|  12.6k|  if(!!(flags & O_NONBLOCK) == !!nonblock)
  ------------------
  |  Branch (57:6): [True: 3.30k, False: 9.33k]
  ------------------
   58|  3.30k|    return 0;
   59|  9.33k|  if(nonblock)
  ------------------
  |  Branch (59:6): [True: 9.33k, False: 0]
  ------------------
   60|  9.33k|    flags |= O_NONBLOCK;
   61|      0|  else
   62|      0|    flags &= ~O_NONBLOCK;
   63|  9.33k|  return sfcntl(sockfd, F_SETFL, flags);
  ------------------
  |  | 1006|  9.33k|#  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|  12.6k|}

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

curlx_memdup:
   65|  3.42k|{
   66|  3.42k|  void *buffer = curlx_malloc(length);
  ------------------
  |  | 1477|  3.42k|#define curlx_malloc(size)         curl_dbg_malloc(size, __LINE__, __FILE__)
  ------------------
   67|  3.42k|  if(!buffer)
  ------------------
  |  Branch (67:6): [True: 0, False: 3.42k]
  ------------------
   68|      0|    return NULL; /* fail */
   69|       |
   70|  3.42k|  memcpy(buffer, src, length);
   71|       |
   72|  3.42k|  return buffer;
   73|  3.42k|}
curlx_memdup0:
   86|  79.3k|{
   87|  79.3k|  char *buf = (length < SIZE_MAX) ? curlx_malloc(length + 1) : NULL;
  ------------------
  |  | 1477|  79.3k|#define curlx_malloc(size)         curl_dbg_malloc(size, __LINE__, __FILE__)
  ------------------
  |  Branch (87:15): [True: 79.3k, False: 0]
  ------------------
   88|  79.3k|  if(!buf)
  ------------------
  |  Branch (88:6): [True: 0, False: 79.3k]
  ------------------
   89|      0|    return NULL;
   90|  79.3k|  if(length) {
  ------------------
  |  Branch (90:6): [True: 75.5k, False: 3.80k]
  ------------------
   91|  75.5k|    DEBUGASSERT(src); /* must never be NULL */
  ------------------
  |  | 1083|  75.5k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (91:5): [True: 0, False: 75.5k]
  |  Branch (91:5): [True: 75.5k, False: 0]
  ------------------
   92|  75.5k|    memcpy(buf, src, length);
   93|  75.5k|  }
   94|  79.3k|  buf[length] = 0;
   95|  79.3k|  return buf;
   96|  79.3k|}
curlx_memzero:
  113|  31.0k|{
  114|  31.0k|  if(buf)
  ------------------
  |  Branch (114:6): [True: 31.0k, False: 0]
  ------------------
  115|  31.0k|    curlx_memzero_low(buf, size);
  ------------------
  |  | 1650|  31.0k|#define curlx_memzero_low(buf, size)  explicit_bzero(buf, size)
  ------------------
  116|  31.0k|}
curlx_strzero:
  120|   195k|{
  121|   195k|  if(buf)
  ------------------
  |  Branch (121:6): [True: 1.12k, False: 194k]
  ------------------
  122|  1.12k|    curlx_memzero_low(buf, strlen(buf));
  ------------------
  |  | 1650|  1.12k|#define curlx_memzero_low(buf, size)  explicit_bzero(buf, size)
  ------------------
  123|   195k|}

curlx_strerror:
  249|    813|{
  250|       |#ifdef _WIN32
  251|       |  DWORD old_win_err = GetLastError();
  252|       |#endif
  253|    813|  int old_errno = errno;
  254|    813|  char *p;
  255|       |
  256|    813|  if(!buflen)
  ------------------
  |  Branch (256:6): [True: 0, False: 813]
  ------------------
  257|      0|    return NULL;
  258|       |
  259|    813|#ifndef _WIN32
  260|    813|  DEBUGASSERT(err >= 0);
  ------------------
  |  | 1083|    813|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (260:3): [True: 0, False: 813]
  |  Branch (260:3): [True: 813, False: 0]
  ------------------
  261|    813|#endif
  262|       |
  263|    813|  *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, (unsigned int)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|    813|  {
  292|    813|    char buffer[256];
  293|    813|    const char *msg = strerror_r(err, buffer, sizeof(buffer));
  294|    813|    if(msg && buflen > 1)
  ------------------
  |  Branch (294:8): [True: 813, False: 0]
  |  Branch (294:15): [True: 813, False: 0]
  ------------------
  295|    813|      SNPRINTF(buf, buflen, "%s", msg);
  ------------------
  |  |   43|    813|#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|    813|  }
  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|    813|#endif /* _WIN32 */
  311|       |
  312|       |  /* strip trailing '\r\n' or '\n'. */
  313|    813|  p = strrchr(buf, '\n');
  314|    813|  if(p && (p - buf) >= 2)
  ------------------
  |  Branch (314:6): [True: 0, False: 813]
  |  Branch (314:11): [True: 0, False: 0]
  ------------------
  315|      0|    *p = '\0';
  316|    813|  p = strrchr(buf, '\r');
  317|    813|  if(p && (p - buf) >= 1)
  ------------------
  |  Branch (317:6): [True: 0, False: 813]
  |  Branch (317:11): [True: 0, False: 0]
  ------------------
  318|      0|    *p = '\0';
  319|       |
  320|    813|  if(errno != old_errno)
  ------------------
  |  Branch (320:6): [True: 0, False: 813]
  ------------------
  321|    813|    errno = old_errno;
  322|       |
  323|       |#ifdef _WIN32
  324|       |  if(old_win_err != GetLastError())
  325|       |    SetLastError(old_win_err);
  326|       |#endif
  327|       |
  328|    813|  return buf;
  329|    813|}

curlx_str_init:
   27|  34.1k|{
   28|       |  out->str = NULL;
   29|  34.1k|  out->len = 0;
   30|  34.1k|}
curlx_str_assign:
   33|  28.8k|{
   34|  28.8k|  out->str = str;
   35|  28.8k|  out->len = len;
   36|  28.8k|}
curlx_str_until:
   51|  19.6k|{
   52|  19.6k|  const char *s;
   53|  19.6k|  size_t len = 0;
   54|  19.6k|  DEBUGASSERT(linep);
  ------------------
  |  | 1083|  19.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (54:3): [True: 0, False: 19.6k]
  |  Branch (54:3): [True: 19.6k, False: 0]
  ------------------
   55|  19.6k|  DEBUGASSERT(*linep);
  ------------------
  |  | 1083|  19.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (55:3): [True: 0, False: 19.6k]
  |  Branch (55:3): [True: 19.6k, False: 0]
  ------------------
   56|  19.6k|  DEBUGASSERT(out);
  ------------------
  |  | 1083|  19.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (56:3): [True: 0, False: 19.6k]
  |  Branch (56:3): [True: 19.6k, False: 0]
  ------------------
   57|  19.6k|  DEBUGASSERT(delim);
  ------------------
  |  | 1083|  19.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (57:3): [True: 0, False: 19.6k]
  |  Branch (57:3): [True: 19.6k, False: 0]
  ------------------
   58|  19.6k|  s = *linep;
   59|       |
   60|  19.6k|  curlx_str_init(out);
   61|   109k|  while(*s && (*s != delim)) {
  ------------------
  |  Branch (61:9): [True: 99.4k, False: 9.97k]
  |  Branch (61:15): [True: 91.3k, False: 8.09k]
  ------------------
   62|  91.3k|    s++;
   63|  91.3k|    if(++len > max) {
  ------------------
  |  Branch (63:8): [True: 1.61k, False: 89.7k]
  ------------------
   64|  1.61k|      return STRE_BIG;
  ------------------
  |  |   29|  1.61k|#define STRE_BIG      1
  ------------------
   65|  1.61k|    }
   66|  91.3k|  }
   67|  18.0k|  if(!len)
  ------------------
  |  Branch (67:6): [True: 0, False: 18.0k]
  ------------------
   68|      0|    return STRE_SHORT;
  ------------------
  |  |   30|      0|#define STRE_SHORT    2
  ------------------
   69|  18.0k|  out->str = *linep;
   70|  18.0k|  out->len = len;
   71|  18.0k|  *linep = s; /* point to the first byte after the word */
   72|  18.0k|  return STRE_OK;
  ------------------
  |  |   28|  18.0k|#define STRE_OK       0
  ------------------
   73|  18.0k|}
curlx_str_word:
   78|  9.97k|{
   79|  9.97k|  return curlx_str_until(linep, out, max, ' ');
   80|  9.97k|}
curlx_str_untilnl:
   86|  6.77k|{
   87|  6.77k|  const char *s = *linep;
   88|  6.77k|  size_t len = 0;
   89|  6.77k|  DEBUGASSERT(linep && *linep && out && max);
  ------------------
  |  | 1083|  6.77k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (89:3): [True: 0, False: 6.77k]
  |  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: 6.77k, False: 0]
  |  Branch (89:3): [True: 6.77k, False: 0]
  |  Branch (89:3): [True: 6.77k, False: 0]
  |  Branch (89:3): [True: 6.77k, False: 0]
  ------------------
   90|       |
   91|  6.77k|  curlx_str_init(out);
   92|   169k|  while(*s && !ISNEWLINE(*s)) {
  ------------------
  |  |   48|   169k|#define ISNEWLINE(x)    (((x) == '\n') || (x) == '\r')
  |  |  ------------------
  |  |  |  Branch (48:26): [True: 3.45k, False: 166k]
  |  |  |  Branch (48:43): [True: 3.32k, False: 163k]
  |  |  ------------------
  ------------------
  |  Branch (92:9): [True: 169k, False: 0]
  ------------------
   93|   163k|    s++;
   94|   163k|    if(++len > max)
  ------------------
  |  Branch (94:8): [True: 0, False: 163k]
  ------------------
   95|      0|      return STRE_BIG;
  ------------------
  |  |   29|      0|#define STRE_BIG      1
  ------------------
   96|   163k|  }
   97|  6.77k|  if(!len)
  ------------------
  |  Branch (97:6): [True: 25, False: 6.75k]
  ------------------
   98|     25|    return STRE_SHORT;
  ------------------
  |  |   30|     25|#define STRE_SHORT    2
  ------------------
   99|  6.75k|  out->str = *linep;
  100|  6.75k|  out->len = len;
  101|  6.75k|  *linep = s; /* point to the first byte after the word */
  102|  6.75k|  return STRE_OK;
  ------------------
  |  |   28|  6.75k|#define STRE_OK       0
  ------------------
  103|  6.77k|}
curlx_str_quotedword:
  109|  1.37k|{
  110|  1.37k|  const char *s = *linep;
  111|  1.37k|  size_t len = 0;
  112|  1.37k|  DEBUGASSERT(linep && *linep && out && max);
  ------------------
  |  | 1083|  1.37k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (112:3): [True: 0, False: 1.37k]
  |  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: 1.37k, False: 0]
  |  Branch (112:3): [True: 1.37k, False: 0]
  |  Branch (112:3): [True: 1.37k, False: 0]
  |  Branch (112:3): [True: 1.37k, False: 0]
  ------------------
  113|       |
  114|  1.37k|  curlx_str_init(out);
  115|  1.37k|  if(*s != '\"')
  ------------------
  |  Branch (115:6): [True: 0, False: 1.37k]
  ------------------
  116|      0|    return STRE_BEGQUOTE;
  ------------------
  |  |   31|      0|#define STRE_BEGQUOTE 3
  ------------------
  117|  1.37k|  s++;
  118|  2.94k|  while(*s && (*s != '\"')) {
  ------------------
  |  Branch (118:9): [True: 2.82k, False: 113]
  |  Branch (118:15): [True: 1.56k, False: 1.26k]
  ------------------
  119|  1.56k|    if(*s == '\\' && s[1]) {
  ------------------
  |  Branch (119:8): [True: 295, False: 1.27k]
  |  Branch (119:22): [True: 291, False: 4]
  ------------------
  120|    291|      s++;
  121|    291|      if(++len > max)
  ------------------
  |  Branch (121:10): [True: 0, False: 291]
  ------------------
  122|      0|        return STRE_BIG;
  ------------------
  |  |   29|      0|#define STRE_BIG      1
  ------------------
  123|    291|    }
  124|  1.56k|    s++;
  125|  1.56k|    if(++len > max)
  ------------------
  |  Branch (125:8): [True: 0, False: 1.56k]
  ------------------
  126|      0|      return STRE_BIG;
  ------------------
  |  |   29|      0|#define STRE_BIG      1
  ------------------
  127|  1.56k|  }
  128|  1.37k|  if(*s != '\"')
  ------------------
  |  Branch (128:6): [True: 113, False: 1.26k]
  ------------------
  129|    113|    return STRE_ENDQUOTE;
  ------------------
  |  |   32|    113|#define STRE_ENDQUOTE 4
  ------------------
  130|  1.26k|  out->str = (*linep) + 1;
  131|  1.26k|  out->len = len;
  132|  1.26k|  *linep = s + 1;
  133|  1.26k|  return STRE_OK;
  ------------------
  |  |   28|  1.26k|#define STRE_OK       0
  ------------------
  134|  1.37k|}
curlx_str_single:
  139|  43.9k|{
  140|  43.9k|  DEBUGASSERT(linep && *linep);
  ------------------
  |  | 1083|  43.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (140:3): [True: 0, False: 43.9k]
  |  Branch (140:3): [True: 0, False: 0]
  |  Branch (140:3): [True: 43.9k, False: 0]
  |  Branch (140:3): [True: 43.9k, False: 0]
  ------------------
  141|  43.9k|  if(**linep != byte)
  ------------------
  |  Branch (141:6): [True: 28.8k, False: 15.1k]
  ------------------
  142|  28.8k|    return STRE_BYTE;
  ------------------
  |  |   33|  28.8k|#define STRE_BYTE     5
  ------------------
  143|  15.1k|  (*linep)++; /* move over it */
  144|  15.1k|  return STRE_OK;
  ------------------
  |  |   28|  15.1k|#define STRE_OK       0
  ------------------
  145|  43.9k|}
curlx_str_singlespace:
  150|  9.97k|{
  151|  9.97k|  return curlx_str_single(linep, ' ');
  152|  9.97k|}
curlx_str_number:
  209|   203k|{
  210|   203k|  return str_num_base(linep, nump, max, 10);
  211|   203k|}
curlx_str_hex:
  216|    542|{
  217|    542|  return str_num_base(linep, nump, max, 16);
  218|    542|}
curlx_str_octal:
  223|  10.5k|{
  224|  10.5k|  return str_num_base(linep, nump, max, 8);
  225|  10.5k|}
curlx_str_numblanks:
  232|  1.13k|{
  233|  1.13k|  curlx_str_passblanks(str);
  234|  1.13k|  return curlx_str_number(str, num, CURL_OFF_T_MAX);
  ------------------
  |  |  596|  1.13k|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  235|  1.13k|}
curlx_str_newline:
  240|    732|{
  241|    732|  DEBUGASSERT(linep && *linep);
  ------------------
  |  | 1083|    732|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (241:3): [True: 0, False: 732]
  |  Branch (241:3): [True: 0, False: 0]
  |  Branch (241:3): [True: 732, False: 0]
  |  Branch (241:3): [True: 732, False: 0]
  ------------------
  242|    732|  if(ISNEWLINE(**linep)) {
  ------------------
  |  |   48|    732|#define ISNEWLINE(x)    (((x) == '\n') || (x) == '\r')
  |  |  ------------------
  |  |  |  Branch (48:26): [True: 91, False: 641]
  |  |  |  Branch (48:43): [True: 633, False: 8]
  |  |  ------------------
  ------------------
  243|    724|    (*linep)++;
  244|    724|    return STRE_OK; /* yessir */
  ------------------
  |  |   28|    724|#define STRE_OK       0
  ------------------
  245|    724|  }
  246|      8|  return STRE_NEWLINE;
  ------------------
  |  |   34|      8|#define STRE_NEWLINE  6
  ------------------
  247|    732|}
curlx_str_casecompare:
  253|  6.68k|{
  254|  6.68k|  size_t clen = check ? strlen(check) : 0;
  ------------------
  |  Branch (254:17): [True: 6.68k, False: 0]
  ------------------
  255|  6.68k|  return ((str->len == clen) && curl_strnequal(str->str, check, clen));
  ------------------
  |  Branch (255:11): [True: 115, False: 6.56k]
  |  Branch (255:33): [True: 0, False: 115]
  ------------------
  256|  6.68k|}
curlx_str_nudge:
  272|  13.7k|{
  273|  13.7k|  if(num <= str->len) {
  ------------------
  |  Branch (273:6): [True: 13.7k, False: 0]
  ------------------
  274|  13.7k|    str->str += num;
  275|  13.7k|    str->len -= num;
  276|  13.7k|    return STRE_OK;
  ------------------
  |  |   28|  13.7k|#define STRE_OK       0
  ------------------
  277|  13.7k|  }
  278|      0|  return STRE_OVERFLOW;
  ------------------
  |  |   35|      0|#define STRE_OVERFLOW 7
  ------------------
  279|  13.7k|}
curlx_str_cspn:
  285|  16.5k|{
  286|  16.5k|  const char *s = *linep;
  287|  16.5k|  size_t len;
  288|  16.5k|  DEBUGASSERT(linep && *linep);
  ------------------
  |  | 1083|  16.5k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (288:3): [True: 0, False: 16.5k]
  |  Branch (288:3): [True: 0, False: 0]
  |  Branch (288:3): [True: 16.5k, False: 0]
  |  Branch (288:3): [True: 16.5k, False: 0]
  ------------------
  289|       |
  290|  16.5k|  len = strcspn(s, reject);
  291|  16.5k|  if(len) {
  ------------------
  |  Branch (291:6): [True: 14.9k, False: 1.58k]
  ------------------
  292|  14.9k|    out->str = s;
  293|  14.9k|    out->len = len;
  294|  14.9k|    *linep = &s[len];
  295|  14.9k|    return STRE_OK;
  ------------------
  |  |   28|  14.9k|#define STRE_OK       0
  ------------------
  296|  14.9k|  }
  297|  1.58k|  curlx_str_init(out);
  298|  1.58k|  return STRE_SHORT;
  ------------------
  |  |   30|  1.58k|#define STRE_SHORT    2
  ------------------
  299|  16.5k|}
curlx_str_trimblanks:
  303|  21.3k|{
  304|  35.1k|  while(out->len && ISBLANK(*out->str))
  ------------------
  |  |   43|  31.0k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (43:22): [True: 13.5k, False: 17.5k]
  |  |  |  Branch (43:38): [True: 267, False: 17.3k]
  |  |  ------------------
  ------------------
  |  Branch (304:9): [True: 31.0k, False: 4.04k]
  ------------------
  305|  13.7k|    curlx_str_nudge(out, 1);
  306|       |
  307|       |  /* trim trailing spaces and tabs */
  308|  23.1k|  while(out->len && ISBLANK(out->str[out->len - 1]))
  ------------------
  |  |   43|  19.1k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (43:22): [True: 354, False: 18.7k]
  |  |  |  Branch (43:38): [True: 1.44k, False: 17.3k]
  |  |  ------------------
  ------------------
  |  Branch (308:9): [True: 19.1k, False: 4.04k]
  ------------------
  309|  1.79k|    out->len--;
  310|  21.3k|}
curlx_str_passblanks:
  314|  40.5k|{
  315|  52.2k|  while(ISBLANK(**linep))
  ------------------
  |  |   43|  52.2k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (43:22): [True: 11.1k, False: 41.1k]
  |  |  |  Branch (43:38): [True: 586, False: 40.5k]
  |  |  ------------------
  ------------------
  316|  11.7k|    (*linep)++; /* move over it */
  317|  40.5k|}
strparse.c:str_num_base:
  172|   214k|{
  173|   214k|  curl_off_t num = 0;
  174|   214k|  const char *p;
  175|   214k|  int m = (base == 10) ? '9' :   /* the largest digit possible */
  ------------------
  |  Branch (175:11): [True: 203k, False: 11.0k]
  ------------------
  176|   214k|    (base == 16) ? 'f' : '7';
  ------------------
  |  Branch (176:5): [True: 542, False: 10.5k]
  ------------------
  177|   214k|  DEBUGASSERT(linep && *linep && nump);
  ------------------
  |  | 1083|   214k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (177:3): [True: 0, False: 214k]
  |  Branch (177:3): [True: 0, False: 0]
  |  Branch (177:3): [True: 0, False: 0]
  |  Branch (177:3): [True: 214k, False: 0]
  |  Branch (177:3): [True: 214k, False: 0]
  |  Branch (177:3): [True: 214k, False: 0]
  ------------------
  178|   214k|  DEBUGASSERT((base == 8) || (base == 10) || (base == 16));
  ------------------
  |  | 1083|   214k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (178:3): [True: 214k, False: 0]
  |  Branch (178:3): [True: 0, False: 0]
  |  Branch (178:3): [True: 0, False: 0]
  |  Branch (178:3): [True: 10.5k, False: 203k]
  |  Branch (178:3): [True: 203k, False: 542]
  |  Branch (178:3): [True: 542, False: 0]
  ------------------
  179|   214k|  DEBUGASSERT(max >= 0); /* mostly to catch SIZE_MAX, which is too large */
  ------------------
  |  | 1083|   214k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (179:3): [True: 0, False: 214k]
  |  Branch (179:3): [True: 214k, False: 0]
  ------------------
  180|   214k|  *nump = 0;
  181|   214k|  p = *linep;
  182|   214k|  if(!valid_digit(*p, m))
  ------------------
  |  |  156|   214k|  (((x) >= '0') && ((x) <= (m)) && curlx_hexasciitable[(x) - '0'])
  |  |  ------------------
  |  |  |  Branch (156:4): [True: 205k, False: 8.29k]
  |  |  |  Branch (156:20): [True: 42.4k, False: 163k]
  |  |  |  Branch (156:36): [True: 42.3k, False: 119]
  |  |  ------------------
  ------------------
  183|   171k|    return STRE_NO_NUM;
  ------------------
  |  |   36|   171k|#define STRE_NO_NUM   8
  ------------------
  184|  42.3k|  if(max < base) {
  ------------------
  |  Branch (184:6): [True: 0, False: 42.3k]
  ------------------
  185|       |    /* special-case low max scenario because check needs to be different */
  186|      0|    do {
  187|      0|      int n = curlx_hexval(*p++);
  ------------------
  |  |  111|      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|  42.3k|  else {
  194|   104k|    do {
  195|   104k|      int n = curlx_hexval(*p++);
  ------------------
  |  |  111|   104k|#define curlx_hexval(x) (unsigned char)(curlx_hexasciitable[(x) - '0'] & 0x0f)
  ------------------
  196|   104k|      if(num > ((max - n) / base))
  ------------------
  |  Branch (196:10): [True: 722, False: 103k]
  ------------------
  197|    722|        return STRE_OVERFLOW;
  ------------------
  |  |   35|    722|#define STRE_OVERFLOW 7
  ------------------
  198|   103k|      num = (num * base) + n;
  199|   103k|    } while(valid_digit(*p, m));
  ------------------
  |  |  156|   103k|  (((x) >= '0') && ((x) <= (m)) && curlx_hexasciitable[(x) - '0'])
  |  |  ------------------
  |  |  |  Branch (156:4): [True: 75.7k, False: 27.8k]
  |  |  |  Branch (156:20): [True: 62.1k, False: 13.6k]
  |  |  |  Branch (156:36): [True: 62.0k, False: 89]
  |  |  ------------------
  ------------------
  200|  42.3k|  }
  201|  41.6k|  *nump = num;
  202|  41.6k|  *linep = p;
  203|  41.6k|  return STRE_OK;
  ------------------
  |  |   28|  41.6k|#define STRE_OK       0
  ------------------
  204|  42.3k|}

curlx_pnow:
   54|  2.48M|{
   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|  2.48M|  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|  2.48M|#ifdef HAVE_CLOCK_GETTIME_MONOTONIC_RAW
   77|  2.48M|  if(
   78|       |#if defined(__APPLE__) && defined(HAVE_BUILTIN_AVAILABLE) && \
   79|       |  (HAVE_BUILTIN_AVAILABLE == 1)
   80|       |    have_clock_gettime &&
   81|       |#endif
   82|  2.48M|    (clock_gettime(CLOCK_MONOTONIC_RAW, &tsnow) == 0)) {
  ------------------
  |  Branch (82:5): [True: 2.48M, False: 0]
  ------------------
   83|  2.48M|    pnow->tv_sec = tsnow.tv_sec;
   84|  2.48M|    pnow->tv_usec = (int)(tsnow.tv_nsec / 1000);
   85|  2.48M|  }
   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|  2.48M|}
curlx_ptimediff_ms:
  190|   972k|{
  191|   972k|  timediff_t diff = (timediff_t)newer->tv_sec - older->tv_sec;
  192|   972k|  if(diff >= (TIMEDIFF_T_MAX / 1000))
  ------------------
  |  |   33|   972k|#define TIMEDIFF_T_MAX CURL_OFF_T_MAX
  |  |  ------------------
  |  |  |  |  596|   972k|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  |  |  ------------------
  ------------------
  |  Branch (192:6): [True: 0, False: 972k]
  ------------------
  193|      0|    return TIMEDIFF_T_MAX;
  ------------------
  |  |   33|      0|#define TIMEDIFF_T_MAX CURL_OFF_T_MAX
  |  |  ------------------
  |  |  |  |  596|      0|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  |  |  ------------------
  ------------------
  194|   972k|  else if(diff <= (TIMEDIFF_T_MIN / 1000))
  ------------------
  |  |   34|   972k|#define TIMEDIFF_T_MIN CURL_OFF_T_MIN
  |  |  ------------------
  |  |  |  |  598|   972k|#define CURL_OFF_T_MIN (-CURL_OFF_T_MAX - 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  596|   972k|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (194:11): [True: 0, False: 972k]
  ------------------
  195|      0|    return TIMEDIFF_T_MIN;
  ------------------
  |  |   34|      0|#define TIMEDIFF_T_MIN CURL_OFF_T_MIN
  |  |  ------------------
  |  |  |  |  598|      0|#define CURL_OFF_T_MIN (-CURL_OFF_T_MAX - 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  596|      0|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  196|   972k|  return (diff * 1000) + ((newer->tv_usec - older->tv_usec) / 1000);
  197|   972k|}
curlx_ptimediff_us:
  225|  2.73M|{
  226|  2.73M|  timediff_t diff = (timediff_t)newer->tv_sec - older->tv_sec;
  227|  2.73M|  if(diff >= (TIMEDIFF_T_MAX / 1000000))
  ------------------
  |  |   33|  2.73M|#define TIMEDIFF_T_MAX CURL_OFF_T_MAX
  |  |  ------------------
  |  |  |  |  596|  2.73M|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  |  |  ------------------
  ------------------
  |  Branch (227:6): [True: 0, False: 2.73M]
  ------------------
  228|      0|    return TIMEDIFF_T_MAX;
  ------------------
  |  |   33|      0|#define TIMEDIFF_T_MAX CURL_OFF_T_MAX
  |  |  ------------------
  |  |  |  |  596|      0|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  |  |  ------------------
  ------------------
  229|  2.73M|  else if(diff <= (TIMEDIFF_T_MIN / 1000000))
  ------------------
  |  |   34|  2.73M|#define TIMEDIFF_T_MIN CURL_OFF_T_MIN
  |  |  ------------------
  |  |  |  |  598|  2.73M|#define CURL_OFF_T_MIN (-CURL_OFF_T_MAX - 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  596|  2.73M|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (229:11): [True: 0, False: 2.73M]
  ------------------
  230|      0|    return TIMEDIFF_T_MIN;
  ------------------
  |  |   34|      0|#define TIMEDIFF_T_MIN CURL_OFF_T_MIN
  |  |  ------------------
  |  |  |  |  598|      0|#define CURL_OFF_T_MIN (-CURL_OFF_T_MAX - 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  596|      0|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  231|  2.73M|  return (diff * 1000000) + newer->tv_usec - older->tv_usec;
  232|  2.73M|}

curlx_uztosi:
   73|  8.03k|{
   74|       |#ifdef __INTEL_COMPILER
   75|       |#pragma warning(push)
   76|       |#pragma warning(disable:810) /* conversion may lose significant bits */
   77|       |#endif
   78|       |
   79|  8.03k|  DEBUGASSERT(uznum <= (size_t)CURL_MASK_SINT);
  ------------------
  |  | 1083|  8.03k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (79:3): [True: 0, False: 8.03k]
  |  Branch (79:3): [True: 8.03k, False: 0]
  ------------------
   80|  8.03k|  return (int)(uznum & (size_t)CURL_MASK_SINT);
  ------------------
  |  |   44|  8.03k|#define CURL_MASK_SINT    (CURL_MASK_UINT >> 1)
  |  |  ------------------
  |  |  |  |   43|  8.03k|#define CURL_MASK_UINT    ((unsigned int)~0)
  |  |  ------------------
  ------------------
   81|       |
   82|       |#ifdef __INTEL_COMPILER
   83|       |#pragma warning(pop)
   84|       |#endif
   85|  8.03k|}
curlx_sotouz:
  210|    161|{
  211|       |#ifdef __INTEL_COMPILER
  212|       |#pragma warning(push)
  213|       |#pragma warning(disable:810) /* conversion may lose significant bits */
  214|       |#endif
  215|       |
  216|    161|  DEBUGASSERT(sonum >= 0);
  ------------------
  |  | 1083|    161|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (216:3): [True: 0, False: 161]
  |  Branch (216:3): [True: 161, False: 0]
  ------------------
  217|    161|  return (size_t)(sonum & (curl_off_t)CURL_MASK_USIZE_T);
  ------------------
  |  |   48|    161|#define CURL_MASK_USIZE_T ((size_t)~0)
  ------------------
  218|       |
  219|       |#ifdef __INTEL_COMPILER
  220|       |#pragma warning(pop)
  221|       |#endif
  222|    161|}
curlx_uitouz:
  282|   154k|{
  283|   154k|  return (size_t)uinum;
  284|   154k|}
curlx_sotouz_range:
  287|  8.89k|{
  288|  8.89k|  if(sonum < 0)
  ------------------
  |  Branch (288:6): [True: 0, False: 8.89k]
  ------------------
  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.89k|  return CURLMIN(CURLMAX((size_t)sonum, uzmin), uzmax);
  ------------------
  |  | 1296|  17.7k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1296:24): [True: 8.36k, False: 527]
  |  |  |  Branch (1296:25): [True: 6.79k, False: 2.09k]
  |  |  |  Branch (1296:37): [True: 6.26k, False: 2.09k]
  |  |  ------------------
  ------------------
  295|  8.89k|}
curlx_sztouz:
  298|   217k|{
  299|   217k|  if(sznum < 0) {
  ------------------
  |  Branch (299:6): [True: 150k, False: 67.5k]
  ------------------
  300|   150k|    *puznum = 0;
  301|   150k|    return FALSE;
  ------------------
  |  | 1056|   150k|#define FALSE false
  ------------------
  302|   150k|  }
  303|  67.5k|  *puznum = (size_t)sznum;
  304|       |  return TRUE;
  ------------------
  |  | 1053|  67.5k|#define TRUE true
  ------------------
  305|   217k|}
curlx_uztoso:
  335|  12.0k|{
  336|  12.0k|#if SIZEOF_SIZE_T >= SIZEOF_CURL_OFF_T
  337|  12.0k|  if(uznum > (size_t)CURL_OFF_T_MAX)
  ------------------
  |  |  596|  12.0k|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  |  Branch (337:6): [True: 0, False: 12.0k]
  ------------------
  338|      0|    return CURL_OFF_T_MAX;
  ------------------
  |  |  596|      0|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  339|  12.0k|#endif
  340|  12.0k|  return (curl_off_t)uznum;
  341|  12.0k|}

Curl_cw_out_done:
  491|  14.2k|{
  492|  14.2k|  struct Curl_cwriter *cw_out;
  493|  14.2k|  CURLcode result = CURLE_OK;
  494|       |
  495|  14.2k|  cw_out = Curl_cwriter_get_by_type(data, &Curl_cwt_out);
  496|  14.2k|  if(cw_out) {
  ------------------
  |  Branch (496:6): [True: 14.2k, False: 0]
  ------------------
  497|  14.2k|    CURL_TRC_WRITE(data, "[OUT] done");
  ------------------
  |  |  158|  14.2k|  do {                                                     \
  |  |  159|  14.2k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  329|  14.2k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  28.5k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 14.2k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 14.2k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  28.5k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  14.2k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|  14.2k|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|  14.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 14.2k]
  |  |  ------------------
  ------------------
  498|  14.2k|    result = Curl_client_flush(data);
  499|  14.2k|    if(!result)
  ------------------
  |  Branch (499:8): [True: 14.0k, False: 161]
  ------------------
  500|  14.0k|      result = cw_out_do_flush(data, cw_out, TRUE);
  ------------------
  |  | 1053|  14.0k|#define TRUE true
  ------------------
  501|  14.2k|  }
  502|  14.2k|  return result;
  503|  14.2k|}
cw-out.c:cw_out_init:
  105|  14.2k|{
  106|  14.2k|  struct cw_out_ctx *ctx = writer->ctx;
  107|  14.2k|  (void)data;
  108|       |  ctx->buf = NULL;
  109|  14.2k|  return CURLE_OK;
  110|  14.2k|}
cw-out.c:cw_out_write:
  427|  69.7k|{
  428|  69.7k|  struct cw_out_ctx *ctx = writer->ctx;
  429|  69.7k|  CURLcode result;
  430|  69.7k|  bool flush_all = !!(type & CLIENTWRITE_EOS);
  ------------------
  |  |   50|  69.7k|#define CLIENTWRITE_EOS     (1 << 7) /* End Of transfer download Stream */
  ------------------
  431|       |
  432|  69.7k|  if((type & CLIENTWRITE_BODY) ||
  ------------------
  |  |   43|  69.7k|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  |  Branch (432:6): [True: 6.04k, False: 63.7k]
  ------------------
  433|  63.7k|     ((type & CLIENTWRITE_HEADER) && data->set.include_header)) {
  ------------------
  |  |   45|  63.7k|#define CLIENTWRITE_HEADER  (1 << 2) /* meta information, HEADER */
  ------------------
  |  Branch (433:7): [True: 63.7k, False: 0]
  |  Branch (433:38): [True: 321, False: 63.4k]
  ------------------
  434|  6.36k|    cw_out_type otype = (!blen && (type & CLIENTWRITE_0LEN)) ?
  ------------------
  |  |   51|  3.77k|#define CLIENTWRITE_0LEN    (1 << 8) /* write even 0-length buffers */
  ------------------
  |  Branch (434:26): [True: 3.77k, False: 2.58k]
  |  Branch (434:35): [True: 3.52k, False: 250]
  ------------------
  435|  3.52k|                        CW_OUT_BODY_0LEN : CW_OUT_BODY;
  436|  6.36k|    result = cw_out_do_write(ctx, data, otype, flush_all, buf, blen);
  437|  6.36k|    if(result)
  ------------------
  |  Branch (437:8): [True: 0, False: 6.36k]
  ------------------
  438|      0|      return result;
  439|  6.36k|  }
  440|       |
  441|  69.7k|  if(type & (CLIENTWRITE_HEADER | CLIENTWRITE_INFO)) {
  ------------------
  |  |   45|  69.7k|#define CLIENTWRITE_HEADER  (1 << 2) /* meta information, HEADER */
  ------------------
                if(type & (CLIENTWRITE_HEADER | CLIENTWRITE_INFO)) {
  ------------------
  |  |   44|  69.7k|#define CLIENTWRITE_INFO    (1 << 1) /* meta information, not a HEADER */
  ------------------
  |  Branch (441:6): [True: 63.7k, False: 6.04k]
  ------------------
  442|  63.7k|    result = cw_out_do_write(ctx, data, CW_OUT_HDS, flush_all, buf, blen);
  443|  63.7k|    if(result)
  ------------------
  |  Branch (443:8): [True: 0, False: 63.7k]
  ------------------
  444|      0|      return result;
  445|  63.7k|  }
  446|       |
  447|  69.7k|  return CURLE_OK;
  448|  69.7k|}
cw-out.c:cw_out_do_write:
  377|  70.0k|{
  378|  70.0k|  CURLcode result = CURLE_OK;
  379|       |
  380|       |  /* if we have buffered data and it is a different type than what
  381|       |   * we are writing now, try to flush all */
  382|  70.0k|  if(ctx->buf && ctx->buf->type != otype) {
  ------------------
  |  Branch (382:6): [True: 0, False: 70.0k]
  |  Branch (382:18): [True: 0, False: 0]
  ------------------
  383|      0|    result = cw_out_flush_chain(ctx, data, &ctx->buf, TRUE);
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  384|      0|    if(result)
  ------------------
  |  Branch (384:8): [True: 0, False: 0]
  ------------------
  385|      0|      goto out;
  386|      0|  }
  387|       |
  388|  70.0k|  if(ctx->buf) {
  ------------------
  |  Branch (388:6): [True: 0, False: 70.0k]
  ------------------
  389|       |    /* still have buffered data, append and flush */
  390|      0|    result = cw_out_append(ctx, data, otype, buf, blen);
  391|      0|    if(result)
  ------------------
  |  Branch (391:8): [True: 0, False: 0]
  ------------------
  392|      0|      goto out;
  393|      0|    result = cw_out_flush_chain(ctx, data, &ctx->buf, flush_all);
  394|      0|    if(result)
  ------------------
  |  Branch (394:8): [True: 0, False: 0]
  ------------------
  395|      0|      goto out;
  396|      0|  }
  397|  70.0k|  else {
  398|       |    /* nothing buffered, try direct write */
  399|  70.0k|    size_t consumed;
  400|  70.0k|    result = cw_out_ptr_flush(ctx, data, otype, flush_all,
  401|  70.0k|                              buf, blen, &consumed);
  402|  70.0k|    if(result && (result != CURLE_AGAIN))
  ------------------
  |  Branch (402:8): [True: 0, False: 70.0k]
  |  Branch (402:18): [True: 0, False: 0]
  ------------------
  403|      0|      return result;
  404|  70.0k|    result = CURLE_OK;
  405|  70.0k|    if(consumed < blen) {
  ------------------
  |  Branch (405:8): [True: 0, False: 70.0k]
  ------------------
  406|       |      /* did not write all, append the rest */
  407|      0|      result = cw_out_append(ctx, data, otype,
  408|      0|                             buf + consumed, blen - consumed);
  409|      0|      if(result)
  ------------------
  |  Branch (409:10): [True: 0, False: 0]
  ------------------
  410|      0|        goto out;
  411|      0|    }
  412|  70.0k|  }
  413|       |
  414|  70.0k|out:
  415|  70.0k|  if(result) {
  ------------------
  |  Branch (415:6): [True: 0, False: 70.0k]
  ------------------
  416|       |    /* We do not want to invoked client callbacks a second time after
  417|       |     * encountering an error. See issue #13337 */
  418|       |    ctx->errored = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  419|      0|    cw_out_bufs_free(ctx);
  420|      0|  }
  421|  70.0k|  return result;
  422|  70.0k|}
cw-out.c:cw_out_ptr_flush:
  228|  70.0k|{
  229|  70.0k|  curl_write_callback wcb = NULL;
  230|  70.0k|  void *wcb_data;
  231|  70.0k|  size_t max_write, min_write;
  232|  70.0k|  size_t wlen, nwritten = 0;
  233|  70.0k|  CURLcode result = CURLE_OK;
  234|       |
  235|       |  /* If we errored once, we do not invoke the client callback again */
  236|  70.0k|  if(ctx->errored)
  ------------------
  |  Branch (236:6): [True: 0, False: 70.0k]
  ------------------
  237|      0|    return CURLE_WRITE_ERROR;
  238|       |
  239|       |  /* write callbacks may get NULLed by the client between calls. */
  240|  70.0k|  cw_get_writefunc(data, otype, &wcb, &wcb_data, &max_write, &min_write);
  241|  70.0k|  if(!wcb) {
  ------------------
  |  Branch (241:6): [True: 0, False: 70.0k]
  ------------------
  242|      0|    *pconsumed = blen;
  243|      0|    return CURLE_OK;
  244|      0|  }
  245|       |
  246|  70.0k|  *pconsumed = 0;
  247|  70.0k|  if(otype == CW_OUT_BODY_0LEN) {
  ------------------
  |  Branch (247:6): [True: 3.52k, False: 66.5k]
  ------------------
  248|  3.52k|    DEBUGASSERT(!blen);
  ------------------
  |  | 1083|  3.52k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (248:5): [True: 0, False: 3.52k]
  |  Branch (248:5): [True: 3.52k, False: 0]
  ------------------
  249|  3.52k|    return cw_out_cb_write(data, wcb, wcb_data, otype,
  250|  3.52k|                           buf, blen, &nwritten);
  251|  3.52k|  }
  252|  66.5k|  else {
  253|   132k|    while(blen && !data->req.writer.paused) {
  ------------------
  |  Branch (253:11): [True: 66.3k, False: 66.5k]
  |  Branch (253:19): [True: 66.3k, False: 0]
  ------------------
  254|  66.3k|      if(!flush_all && blen < min_write)
  ------------------
  |  Branch (254:10): [True: 66.3k, False: 0]
  |  Branch (254:24): [True: 0, False: 66.3k]
  ------------------
  255|      0|        break;
  256|  66.3k|      wlen = max_write ? CURLMIN(blen, max_write) : blen;
  ------------------
  |  | 1296|  2.58k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1296:24): [True: 2.58k, False: 8]
  |  |  ------------------
  ------------------
  |  Branch (256:14): [True: 2.58k, False: 63.7k]
  ------------------
  257|  66.3k|      if(otype == CW_OUT_BODY)
  ------------------
  |  Branch (257:10): [True: 2.58k, False: 63.7k]
  ------------------
  258|  2.58k|        result = Curl_pgrs_deliver_check(data, wlen);
  259|  66.3k|      if(!result)
  ------------------
  |  Branch (259:10): [True: 66.3k, False: 0]
  ------------------
  260|  66.3k|        result = cw_out_cb_write(data, wcb, wcb_data, otype,
  261|  66.3k|                                 buf, wlen, &nwritten);
  262|  66.3k|      if(result)
  ------------------
  |  Branch (262:10): [True: 0, False: 66.3k]
  ------------------
  263|      0|        return result;
  264|  66.3k|      if(otype == CW_OUT_BODY)
  ------------------
  |  Branch (264:10): [True: 2.58k, False: 63.7k]
  ------------------
  265|  2.58k|        Curl_pgrs_deliver_inc(data, nwritten);
  266|  66.3k|      *pconsumed += nwritten;
  267|  66.3k|      blen -= nwritten;
  268|  66.3k|      buf += nwritten;
  269|  66.3k|    }
  270|  66.5k|  }
  271|  66.5k|  return CURLE_OK;
  272|  70.0k|}
cw-out.c:cw_get_writefunc:
  146|  70.0k|{
  147|  70.0k|  switch(otype) {
  148|  2.83k|  case CW_OUT_BODY:
  ------------------
  |  Branch (148:3): [True: 2.83k, False: 67.2k]
  ------------------
  149|  6.36k|  case CW_OUT_BODY_0LEN:
  ------------------
  |  Branch (149:3): [True: 3.52k, False: 66.5k]
  ------------------
  150|  6.36k|    *pwcb = data->set.fwrite_func;
  151|  6.36k|    *pwcb_data = data->set.out;
  152|  6.36k|    *pmax_write = CURL_MAX_WRITE_SIZE;
  ------------------
  |  |  265|  6.36k|#define CURL_MAX_WRITE_SIZE 16384
  ------------------
  153|       |    /* if we ever want buffering of BODY output, we can set `min_write`
  154|       |     * the preferred size. The default should always be to pass data
  155|       |     * to the client as it comes without delay */
  156|  6.36k|    *pmin_write = 0;
  157|  6.36k|    break;
  158|  63.7k|  case CW_OUT_HDS:
  ------------------
  |  Branch (158:3): [True: 63.7k, False: 6.36k]
  ------------------
  159|  63.7k|    *pwcb = data->set.fwrite_header ? data->set.fwrite_header :
  ------------------
  |  Branch (159:13): [True: 63.7k, False: 0]
  ------------------
  160|  63.7k|             (data->set.writeheader ? data->set.fwrite_func : NULL);
  ------------------
  |  Branch (160:15): [True: 0, False: 0]
  ------------------
  161|  63.7k|    *pwcb_data = data->set.writeheader;
  162|  63.7k|    *pmax_write = 0; /* do not chunk-write headers, write them as they are */
  163|  63.7k|    *pmin_write = 0;
  164|  63.7k|    break;
  165|      0|  default:
  ------------------
  |  Branch (165:3): [True: 0, False: 70.0k]
  ------------------
  166|      0|    *pwcb = NULL;
  167|      0|    *pwcb_data = NULL;
  168|      0|    *pmax_write = CURL_MAX_WRITE_SIZE;
  ------------------
  |  |  265|      0|#define CURL_MAX_WRITE_SIZE 16384
  ------------------
  169|      0|    *pmin_write = 0;
  170|  70.0k|  }
  171|  70.0k|}
cw-out.c:cw_out_cb_write:
  179|  69.8k|{
  180|  69.8k|  size_t nwritten;
  181|  69.8k|  CURLcode result;
  182|       |
  183|  69.8k|  NOVERBOSE((void)otype);
  ------------------
  |  | 1618|  69.8k|#define NOVERBOSE(x) Curl_nop_stmt
  |  |  ------------------
  |  |  |  | 1191|  69.8k|#define Curl_nop_stmt do {} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1191:35): [Folded, False: 69.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  184|       |
  185|  69.8k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1083|  69.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (185:3): [True: 0, False: 69.8k]
  |  Branch (185:3): [True: 69.8k, False: 0]
  ------------------
  186|  69.8k|  *pnwritten = 0;
  187|  69.8k|  {
  188|  69.8k|    struct Curl_mapi_guard guard;
  189|  69.8k|    CURL_CBAPI_START(&guard, data, easy_cw_out_cb);
  ------------------
  |  |  200|  69.8k|  Curl_cbapi_enter((g), (d), NULL, CURL_CBAPI_FN_##fn)
  ------------------
  190|  69.8k|    nwritten = wcb((char *)CURL_UNCONST(buf), 1, blen, wcb_data);
  ------------------
  |  |  864|  69.8k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
  191|  69.8k|    CURL_CBAPI_END(&guard);
  ------------------
  |  |  204|  69.8k|  Curl_cbapi_leave(g)
  ------------------
  192|  69.8k|  }
  193|  69.8k|  CURL_TRC_WRITE(data, "[OUT] wrote %zu %s bytes, type=%x -> %zu",
  ------------------
  |  |  158|  69.8k|  do {                                                     \
  |  |  159|  69.8k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  329|  69.8k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|   139k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 69.8k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 69.8k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|   139k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  69.8k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|  69.8k|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  ------------------
  |  |  |  Branch (160:28): [True: 0, False: 0]
  |  |  ------------------
  |  |  161|  69.8k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 69.8k]
  |  |  ------------------
  ------------------
  194|  69.8k|                 blen, (otype == CW_OUT_HDS) ? "header" : "body",
  195|  69.8k|                 (unsigned int)otype, nwritten);
  196|  69.8k|  if(nwritten == CURL_WRITEFUNC_PAUSE) {
  ------------------
  |  |  277|  69.8k|#define CURL_WRITEFUNC_PAUSE 0x10000001
  ------------------
  |  Branch (196:6): [True: 0, False: 69.8k]
  ------------------
  197|      0|    if(data->conn->scheme->flags & PROTOPT_NONETWORK) {
  ------------------
  |  |  214|      0|#define PROTOPT_NONETWORK (1 << 4) /* protocol does not use the network! */
  ------------------
  |  Branch (197:8): [True: 0, False: 0]
  ------------------
  198|       |      /* Protocols that work without network cannot be paused. This is
  199|       |         actually only file:// now, and it cannot pause since the transfer is
  200|       |         not done using the "normal" procedure. */
  201|      0|      failf(data, "Write callback asked for PAUSE when not supported");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  202|      0|      return CURLE_WRITE_ERROR;
  203|      0|    }
  204|      0|    data->req.writer.paused = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  205|      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)) \
  |  |  ------------------
  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|      0|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  206|      0|    result = Curl_xfer_pause_recv(data, TRUE);
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  207|      0|    return result ? result : CURLE_AGAIN;
  ------------------
  |  Branch (207:12): [True: 0, False: 0]
  ------------------
  208|      0|  }
  209|  69.8k|  else if(nwritten == CURL_WRITEFUNC_ERROR) {
  ------------------
  |  |  281|  69.8k|#define CURL_WRITEFUNC_ERROR 0xFFFFFFFF
  ------------------
  |  Branch (209:11): [True: 0, False: 69.8k]
  ------------------
  210|      0|    failf(data, "client returned ERROR on write of %zu bytes", blen);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  211|      0|    return CURLE_WRITE_ERROR;
  212|      0|  }
  213|  69.8k|  else if(nwritten != blen) {
  ------------------
  |  Branch (213:11): [True: 0, False: 69.8k]
  ------------------
  214|      0|    failf(data, "Failure writing output to destination, "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  215|      0|          "passed %zu returned %zu", blen, nwritten);
  216|      0|    return CURLE_WRITE_ERROR;
  217|      0|  }
  218|  69.8k|  *pnwritten = nwritten;
  219|  69.8k|  return CURLE_OK;
  220|  69.8k|}
cw-out.c:cw_out_bufs_free:
  113|  14.2k|{
  114|  14.2k|  while(ctx->buf) {
  ------------------
  |  Branch (114:9): [True: 0, False: 14.2k]
  ------------------
  115|      0|    struct cw_out_buf *next = ctx->buf->next;
  116|      0|    cw_out_buf_free(ctx->buf);
  117|      0|    ctx->buf = next;
  118|      0|  }
  119|  14.2k|}
cw-out.c:cw_out_flush:
  475|  17.7k|{
  476|       |  return cw_out_do_flush(data, writer, FALSE);
  ------------------
  |  | 1056|  17.7k|#define FALSE false
  ------------------
  477|  17.7k|}
cw-out.c:cw_out_close:
  133|  14.2k|{
  134|  14.2k|  struct cw_out_ctx *ctx = writer->ctx;
  135|       |
  136|  14.2k|  (void)data;
  137|  14.2k|  cw_out_bufs_free(ctx);
  138|  14.2k|}
cw-out.c:cw_out_do_flush:
  453|  31.8k|{
  454|  31.8k|  struct cw_out_ctx *ctx = (struct cw_out_ctx *)cw_out;
  455|       |
  456|  31.8k|  if(ctx->errored)
  ------------------
  |  Branch (456:6): [True: 0, False: 31.8k]
  ------------------
  457|      0|    return CURLE_WRITE_ERROR;
  458|       |
  459|  31.8k|  if(!data->req.writer.paused && ctx->buf) {
  ------------------
  |  Branch (459:6): [True: 31.8k, False: 0]
  |  Branch (459:34): [True: 0, False: 31.8k]
  ------------------
  460|      0|    CURLcode result;
  461|       |
  462|      0|    CURL_TRC_WRITE(data, "[OUT] flush");
  ------------------
  |  |  158|      0|  do {                                                     \
  |  |  159|      0|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|      0|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  463|      0|    result = cw_out_flush_chain(ctx, data, &ctx->buf, flush_all);
  464|      0|    if(result) {
  ------------------
  |  Branch (464:8): [True: 0, False: 0]
  ------------------
  465|      0|      ctx->errored = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  466|      0|      cw_out_bufs_free(ctx);
  467|      0|      return result;
  468|      0|    }
  469|      0|  }
  470|  31.8k|  return CURLE_OK;
  471|  31.8k|}

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

curl_global_init:
  199|      2|{
  200|      2|  CURLcode result;
  201|      2|  global_init_lock();
  ------------------
  |  |   88|      2|#define global_init_lock()   curl_simple_lock_lock(&s_lock)
  ------------------
  202|       |
  203|      2|  result = global_init(flags, TRUE);
  ------------------
  |  | 1053|      2|#define TRUE true
  ------------------
  204|       |
  205|      2|  global_init_unlock();
  ------------------
  |  |   89|      2|#define global_init_unlock() curl_simple_lock_unlock(&s_lock)
  ------------------
  206|       |
  207|      2|  return result;
  208|      2|}
curl_easy_init:
  333|  19.9k|{
  334|  19.9k|  CURLcode result;
  335|  19.9k|  struct Curl_easy *data;
  336|       |
  337|       |  /* Make sure we inited the global SSL stuff */
  338|  19.9k|  global_init_lock();
  ------------------
  |  |   88|  19.9k|#define global_init_lock()   curl_simple_lock_lock(&s_lock)
  ------------------
  339|       |
  340|  19.9k|  if(!initialized) {
  ------------------
  |  Branch (340:6): [True: 0, False: 19.9k]
  ------------------
  341|      0|    result = global_init(CURL_GLOBAL_DEFAULT, TRUE);
  ------------------
  |  | 3046|      0|#define CURL_GLOBAL_DEFAULT CURL_GLOBAL_ALL
  |  |  ------------------
  |  |  |  | 3044|      0|#define CURL_GLOBAL_ALL (CURL_GLOBAL_SSL | CURL_GLOBAL_WIN32)
  |  |  |  |  ------------------
  |  |  |  |  |  | 3042|      0|#define CURL_GLOBAL_SSL (1 << 0) /* no purpose since 7.57.0 */
  |  |  |  |  ------------------
  |  |  |  |               #define CURL_GLOBAL_ALL (CURL_GLOBAL_SSL | CURL_GLOBAL_WIN32)
  |  |  |  |  ------------------
  |  |  |  |  |  | 3043|      0|#define CURL_GLOBAL_WIN32 (1 << 1)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  result = global_init(CURL_GLOBAL_DEFAULT, TRUE);
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  342|      0|    if(result) {
  ------------------
  |  Branch (342:8): [True: 0, False: 0]
  ------------------
  343|       |      /* something in the global init failed, return nothing */
  344|      0|      DEBUGF(curl_mfprintf(stderr, "Error: curl_global_init failed\n"));
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  ------------------
  345|      0|      global_init_unlock();
  ------------------
  |  |   89|      0|#define global_init_unlock() curl_simple_lock_unlock(&s_lock)
  ------------------
  346|      0|      return NULL;
  347|      0|    }
  348|      0|  }
  349|  19.9k|  global_init_unlock();
  ------------------
  |  |   89|  19.9k|#define global_init_unlock() curl_simple_lock_unlock(&s_lock)
  ------------------
  350|       |
  351|       |  /* We use Curl_open() with undefined URL so far */
  352|  19.9k|  result = Curl_open(&data);
  353|  19.9k|  if(result) {
  ------------------
  |  Branch (353:6): [True: 0, False: 19.9k]
  ------------------
  354|      0|    DEBUGF(curl_mfprintf(stderr, "Error: Curl_open failed\n"));
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  ------------------
  355|      0|    return NULL;
  356|      0|  }
  357|       |
  358|  19.9k|  return data;
  359|  19.9k|}
curl_easy_cleanup:
  851|  9.97k|{
  852|  9.97k|  struct Curl_eapi_guard guard;
  853|       |
  854|  9.97k|  if(CURL_EAPI_ENTER(&guard, curl, easy_cleanup, NULL)) {
  ------------------
  |  |  162|  9.97k|  Curl_eapi_enter((g), (curl), CURL_EAPI_FN_##fn, (r)) && (curl)
  |  |  ------------------
  |  |  |  Branch (162:3): [True: 9.97k, False: 0]
  |  |  |  Branch (162:59): [True: 9.97k, False: 0]
  |  |  ------------------
  ------------------
  855|  9.97k|    struct Curl_easy *data = curl;
  856|  9.97k|    struct Curl_sigpipe_ctx sigpipe_ctx;
  857|  9.97k|    sigpipe_ignore(data, &sigpipe_ctx);
  858|  9.97k|    Curl_close(&data);
  859|  9.97k|    sigpipe_restore(&sigpipe_ctx);
  860|  9.97k|  }
  861|  9.97k|  CURL_EAPI_LEAVE(&guard);
  ------------------
  |  |  164|  9.97k|  Curl_eapi_leave(g)
  ------------------
  862|  9.97k|}
Curl_easy_recv:
 1251|  3.17k|{
 1252|  3.17k|  CURLcode result;
 1253|  3.17k|  struct connectdata *c;
 1254|       |
 1255|  3.17k|  result = easy_connection(data, &c);
 1256|  3.17k|  if(result)
  ------------------
  |  Branch (1256:6): [True: 13, False: 3.15k]
  ------------------
 1257|     13|    return result;
 1258|       |
 1259|  3.15k|  if(!data->conn)
  ------------------
  |  Branch (1259:6): [True: 446, False: 2.71k]
  ------------------
 1260|       |    /* on first invoke, the transfer has been detached from the connection and
 1261|       |       needs to be reattached */
 1262|    446|    Curl_attach_connection(data, c);
 1263|       |
 1264|  3.15k|  *n = 0;
 1265|  3.15k|  return Curl_conn_recv(data, FIRSTSOCKET, buffer, buflen, n);
  ------------------
  |  |  233|  3.15k|#define FIRSTSOCKET     0
  ------------------
 1266|  3.17k|}
Curl_senddata:
 1306|  1.68k|{
 1307|  1.68k|  CURLcode result;
 1308|  1.68k|  struct connectdata *c = NULL;
 1309|  1.68k|  struct Curl_sigpipe_ctx sigpipe_ctx;
 1310|       |
 1311|  1.68k|  *n = 0;
 1312|  1.68k|  result = easy_connection(data, &c);
 1313|  1.68k|  if(result)
  ------------------
  |  Branch (1313:6): [True: 20, False: 1.66k]
  ------------------
 1314|     20|    return result;
 1315|       |
 1316|  1.66k|  if(!data->conn)
  ------------------
  |  Branch (1316:6): [True: 0, False: 1.66k]
  ------------------
 1317|       |    /* on first invoke, the transfer has been detached from the connection and
 1318|       |       needs to be reattached */
 1319|      0|    Curl_attach_connection(data, c);
 1320|       |
 1321|  1.66k|  sigpipe_ignore(data, &sigpipe_ctx);
 1322|  1.66k|  result = Curl_conn_send(data, FIRSTSOCKET, buffer, buflen, FALSE, n);
  ------------------
  |  |  233|  1.66k|#define FIRSTSOCKET     0
  ------------------
                result = Curl_conn_send(data, FIRSTSOCKET, buffer, buflen, FALSE, n);
  ------------------
  |  | 1056|  1.66k|#define FALSE false
  ------------------
 1323|  1.66k|  sigpipe_restore(&sigpipe_ctx);
 1324|       |
 1325|  1.66k|  if(result && result != CURLE_AGAIN)
  ------------------
  |  Branch (1325:6): [True: 301, False: 1.36k]
  |  Branch (1325:16): [True: 0, False: 301]
  ------------------
 1326|      0|    return CURLE_SEND_ERROR;
 1327|  1.66k|  return result;
 1328|  1.66k|}
Curl_meta_remove:
 1427|  9.97k|{
 1428|  9.97k|  Curl_hash_delete(&data->meta_hash, CURL_UNCONST(key), strlen(key) + 1);
  ------------------
  |  |  864|  9.97k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
 1429|  9.97k|}
easy.c:global_init:
  126|      2|{
  127|      2|  if(initialized++)
  ------------------
  |  Branch (127:6): [True: 0, False: 2]
  ------------------
  128|      0|    return CURLE_OK;
  129|       |
  130|      2|  if(memoryfuncs) {
  ------------------
  |  Branch (130:6): [True: 2, False: 0]
  ------------------
  131|       |    /* Setup the default memory functions here (again) */
  132|      2|    Curl_cmalloc = (curl_malloc_callback)malloc;
  133|      2|    Curl_cfree = (curl_free_callback)free;
  134|      2|    Curl_crealloc = (curl_realloc_callback)realloc;
  135|      2|    Curl_cstrdup = (curl_strdup_callback)CURLX_STRDUP_LOW;
  ------------------
  |  | 1471|      2|#define CURLX_STRDUP_LOW strdup
  ------------------
  136|      2|    Curl_ccalloc = (curl_calloc_callback)calloc;
  137|      2|  }
  138|       |
  139|      2|  if(Curl_trc_init()) {
  ------------------
  |  Branch (139:6): [True: 0, False: 2]
  ------------------
  140|      0|    DEBUGF(curl_mfprintf(stderr, "Error: Curl_trc_init failed\n"));
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  ------------------
  141|      0|    goto fail;
  142|      0|  }
  143|       |
  144|      2|  if(!Curl_ssl_init()) {
  ------------------
  |  Branch (144:6): [True: 0, False: 2]
  ------------------
  145|      0|    DEBUGF(curl_mfprintf(stderr, "Error: Curl_ssl_init failed\n"));
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  ------------------
  146|      0|    goto fail;
  147|      0|  }
  148|       |
  149|      2|  if(!Curl_vquic_init()) {
  ------------------
  |  |   84|      2|#define Curl_vquic_init() 1
  ------------------
  |  Branch (149:6): [Folded, False: 2]
  ------------------
  150|      0|    DEBUGF(curl_mfprintf(stderr, "Error: Curl_vquic_init failed\n"));
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  ------------------
  151|      0|    goto fail;
  152|      0|  }
  153|       |
  154|      2|  if(Curl_win32_init(flags)) {
  ------------------
  |  |   32|      2|#define Curl_win32_init(x) CURLE_OK
  |  |  ------------------
  |  |  |  Branch (32:28): [Folded, False: 2]
  |  |  ------------------
  ------------------
  155|      0|    DEBUGF(curl_mfprintf(stderr, "Error: win32_init failed\n"));
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  ------------------
  156|      0|    goto fail;
  157|      0|  }
  158|       |
  159|      2|  if(Curl_amiga_init()) {
  ------------------
  |  |   36|      2|#define Curl_amiga_init()    CURLE_OK
  |  |  ------------------
  |  |  |  Branch (36:30): [Folded, False: 2]
  |  |  ------------------
  ------------------
  160|      0|    DEBUGF(curl_mfprintf(stderr, "Error: Curl_amiga_init failed\n"));
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  ------------------
  161|      0|    goto fail;
  162|      0|  }
  163|       |
  164|      2|  if(Curl_macos_init()) {
  ------------------
  |  |   31|      2|#define Curl_macos_init() CURLE_OK
  |  |  ------------------
  |  |  |  Branch (31:27): [Folded, False: 2]
  |  |  ------------------
  ------------------
  165|      0|    DEBUGF(curl_mfprintf(stderr, "Error: Curl_macos_init failed\n"));
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  ------------------
  166|      0|    goto fail;
  167|      0|  }
  168|       |
  169|      2|  if(Curl_async_global_init()) {
  ------------------
  |  Branch (169:6): [True: 0, False: 2]
  ------------------
  170|      0|    DEBUGF(curl_mfprintf(stderr, "Error: resolver_global_init failed\n"));
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  ------------------
  171|      0|    goto fail;
  172|      0|  }
  173|       |
  174|      2|  if(Curl_ssh_init()) {
  ------------------
  |  |  259|      2|#define Curl_ssh_init() 0
  |  |  ------------------
  |  |  |  Branch (259:25): [Folded, False: 2]
  |  |  ------------------
  ------------------
  175|      0|    DEBUGF(curl_mfprintf(stderr, "Error: Curl_ssh_init failed\n"));
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  ------------------
  176|      0|    goto fail;
  177|      0|  }
  178|       |
  179|      2|  easy_init_flags = flags;
  180|       |
  181|      2|#ifdef DEBUGBUILD
  182|      2|  if(getenv("CURL_GLOBAL_INIT"))
  ------------------
  |  Branch (182:6): [True: 0, False: 2]
  ------------------
  183|       |    /* alloc data that will leak if *cleanup() is not called! */
  184|      0|    leakpointer = curlx_malloc(1);
  ------------------
  |  | 1477|      0|#define curlx_malloc(size)         curl_dbg_malloc(size, __LINE__, __FILE__)
  ------------------
  185|      2|#endif
  186|       |
  187|      2|  return CURLE_OK;
  188|       |
  189|      0|fail:
  190|      0|  initialized--; /* undo the increase */
  191|      0|  return CURLE_FAILED_INIT;
  192|      2|}
easy.c:easy_connection:
 1221|  4.85k|{
 1222|  4.85k|  curl_socket_t sfd;
 1223|       |
 1224|  4.85k|  if(!data)
  ------------------
  |  Branch (1224:6): [True: 0, False: 4.85k]
  ------------------
 1225|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
 1226|       |
 1227|       |  /* only allow these to be called on handles with CURLOPT_CONNECT_ONLY */
 1228|  4.85k|  if(!data->set.connect_only) {
  ------------------
  |  Branch (1228:6): [True: 0, False: 4.85k]
  ------------------
 1229|      0|    failf(data, "CONNECT_ONLY is required");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1230|      0|    return CURLE_UNSUPPORTED_PROTOCOL;
 1231|      0|  }
 1232|       |
 1233|  4.85k|  sfd = Curl_getconnectinfo(data, connp);
 1234|       |
 1235|  4.85k|  if(sfd == CURL_SOCKET_BAD) {
  ------------------
  |  |  145|  4.85k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (1235:6): [True: 33, False: 4.82k]
  ------------------
 1236|     33|    failf(data, "Failed to get last socket used for connection #%" FMT_OFF_T,
  ------------------
  |  |   62|     33|#define failf Curl_failf
  ------------------
                  failf(data, "Failed to get last socket used for connection #%" FMT_OFF_T,
  ------------------
  |  |  600|     33|#define FMT_OFF_T  CURL_FORMAT_CURL_OFF_T
  |  |  ------------------
  |  |  |  |  341|     33|#    define CURL_FORMAT_CURL_OFF_T     "ld"
  |  |  ------------------
  ------------------
 1237|     33|          data->state.lastconnect_id);
 1238|     33|    return CURLE_UNSUPPORTED_PROTOCOL;
 1239|     33|  }
 1240|       |
 1241|  4.82k|  return CURLE_OK;
 1242|  4.85k|}

easy.c:curl_simple_lock_lock:
   64|  19.9k|{
   65|  19.9k|  for(;;) {
   66|  19.9k|    if(!atomic_exchange_explicit(lock, true, memory_order_acquire))
  ------------------
  |  Branch (66:8): [True: 19.9k, False: 0]
  ------------------
   67|  19.9k|      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|  19.9k|}
easy.c:curl_simple_lock_unlock:
   83|  19.9k|{
   84|  19.9k|  atomic_store_explicit(lock, false, memory_order_release);
   85|  19.9k|}

curl_easy_escape:
   51|  3.47k|{
   52|  3.47k|  size_t len;
   53|  3.47k|  struct dynbuf d;
   54|  3.47k|  (void)curl;
   55|       |
   56|  3.47k|  if(!string || (length < 0))
  ------------------
  |  Branch (56:6): [True: 0, False: 3.47k]
  |  Branch (56:17): [True: 0, False: 3.47k]
  ------------------
   57|      0|    return NULL;
   58|       |
   59|  3.47k|  len = (length ? (size_t)length : strlen(string));
  ------------------
  |  Branch (59:10): [True: 0, False: 3.47k]
  ------------------
   60|  3.47k|  if(!len)
  ------------------
  |  Branch (60:6): [True: 0, False: 3.47k]
  ------------------
   61|      0|    return curlx_strdup("");
  ------------------
  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
   62|       |
   63|  3.47k|  if(len > SIZE_MAX / 16)
  ------------------
  |  Branch (63:6): [True: 0, False: 3.47k]
  ------------------
   64|      0|    return NULL;
   65|       |
   66|  3.47k|  curlx_dyn_init(&d, (len * 3) + 1);
   67|       |
   68|   158k|  while(len--) {
  ------------------
  |  Branch (68:9): [True: 155k, False: 3.47k]
  ------------------
   69|       |    /* treat the characters unsigned */
   70|   155k|    unsigned char in = (unsigned char)*string++;
   71|       |
   72|   155k|    if(ISUNRESERVED(in)) {
  ------------------
  |  |   47|   155k|#define ISUNRESERVED(x) (ISALNUM(x) || ISURLPUNTCS(x))
  |  |  ------------------
  |  |  |  |   39|   310k|#define ISALNUM(x)  (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x))
  |  |  |  |  ------------------
  |  |  |  |  |  |   42|   310k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (42:22): [True: 150k, False: 4.58k]
  |  |  |  |  |  |  |  Branch (42:38): [True: 8.46k, False: 142k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define ISALNUM(x)  (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x))
  |  |  |  |  ------------------
  |  |  |  |  |  |   41|   301k|#define ISLOWER(x)  (((x) >= 'a') && ((x) <= 'z'))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (41:22): [True: 139k, False: 7.72k]
  |  |  |  |  |  |  |  Branch (41:38): [True: 138k, False: 563]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define ISALNUM(x)  (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x))
  |  |  |  |  ------------------
  |  |  |  |  |  |   40|  8.28k|#define ISUPPER(x)  (((x) >= 'A') && ((x) <= 'Z'))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (40:22): [True: 3.69k, False: 4.58k]
  |  |  |  |  |  |  |  Branch (40:38): [True: 2.65k, False: 1.04k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISUNRESERVED(x) (ISALNUM(x) || ISURLPUNTCS(x))
  |  |  ------------------
  |  |  |  |   46|  5.63k|  (((x) == '-') || ((x) == '.') || ((x) == '_') || ((x) == '~'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (46:4): [True: 427, False: 5.20k]
  |  |  |  |  |  Branch (46:20): [True: 4.16k, False: 1.04k]
  |  |  |  |  |  Branch (46:36): [True: 479, False: 563]
  |  |  |  |  |  Branch (46:52): [True: 553, False: 10]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   73|       |      /* append this */
   74|   155k|      if(curlx_dyn_addn(&d, &in, 1))
  ------------------
  |  Branch (74:10): [True: 0, False: 155k]
  ------------------
   75|      0|        return NULL;
   76|   155k|    }
   77|     10|    else {
   78|       |      /* encode it */
   79|     10|      unsigned char out[3] = { '%' };
   80|     10|      Curl_hexbyte(&out[1], in);
   81|     10|      if(curlx_dyn_addn(&d, out, 3))
  ------------------
  |  Branch (81:10): [True: 0, False: 10]
  ------------------
   82|      0|        return NULL;
   83|     10|    }
   84|   155k|  }
   85|       |
   86|  3.47k|  return curlx_dyn_ptr(&d);
   87|  3.47k|}
Curl_urldecode:
  108|  3.04k|{
  109|  3.04k|  size_t alloc;
  110|  3.04k|  char *ns;
  111|       |
  112|  3.04k|  DEBUGASSERT(string);
  ------------------
  |  | 1083|  3.04k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (112:3): [True: 0, False: 3.04k]
  |  Branch (112:3): [True: 3.04k, False: 0]
  ------------------
  113|  3.04k|  DEBUGASSERT(ctrl >= REJECT_NADA); /* crash on TRUE/FALSE */
  ------------------
  |  | 1083|  3.04k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (113:3): [True: 0, False: 3.04k]
  |  Branch (113:3): [True: 3.04k, False: 0]
  ------------------
  114|       |
  115|  3.04k|  alloc = (length ? length : strlen(string));
  ------------------
  |  Branch (115:12): [True: 0, False: 3.04k]
  ------------------
  116|  3.04k|  ns = curlx_malloc(alloc + 1);
  ------------------
  |  | 1477|  3.04k|#define curlx_malloc(size)         curl_dbg_malloc(size, __LINE__, __FILE__)
  ------------------
  117|       |
  118|  3.04k|  if(!ns)
  ------------------
  |  Branch (118:6): [True: 0, False: 3.04k]
  ------------------
  119|      0|    return CURLE_OUT_OF_MEMORY;
  120|       |
  121|       |  /* store output string */
  122|  3.04k|  *ostring = ns;
  123|       |
  124|   169k|  while(alloc) {
  ------------------
  |  Branch (124:9): [True: 166k, False: 3.03k]
  ------------------
  125|   166k|    unsigned char in = (unsigned char)*string;
  126|   166k|    if(('%' == in) && (alloc > 2) &&
  ------------------
  |  Branch (126:8): [True: 10.7k, False: 155k]
  |  Branch (126:23): [True: 10.4k, False: 330]
  ------------------
  127|  10.4k|       ISXDIGIT(string[1]) && ISXDIGIT(string[2])) {
  ------------------
  |  |   37|   176k|#define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   42|  20.9k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (42:22): [True: 9.22k, False: 1.23k]
  |  |  |  |  |  Branch (42:38): [True: 2.03k, False: 7.19k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   27|  18.8k|#define ISLOWHEXALPHA(x) (((x) >= 'a') && ((x) <= 'f'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (27:27): [True: 3.62k, False: 4.80k]
  |  |  |  |  |  Branch (27:43): [True: 2.67k, False: 947]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   28|  5.75k|#define ISUPHEXALPHA(x)  (((x) >= 'A') && ((x) <= 'F'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (28:27): [True: 4.48k, False: 1.26k]
  |  |  |  |  |  Branch (28:43): [True: 3.45k, False: 1.03k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                     ISXDIGIT(string[1]) && ISXDIGIT(string[2])) {
  ------------------
  |  |   37|  8.16k|#define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   42|  16.3k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (42:22): [True: 7.22k, False: 938]
  |  |  |  |  |  Branch (42:38): [True: 2.28k, False: 4.93k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   27|  14.0k|#define ISLOWHEXALPHA(x) (((x) >= 'a') && ((x) <= 'f'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (27:27): [True: 1.88k, False: 3.99k]
  |  |  |  |  |  Branch (27:43): [True: 909, False: 976]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   28|  4.96k|#define ISUPHEXALPHA(x)  (((x) >= 'A') && ((x) <= 'F'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (28:27): [True: 3.99k, False: 969]
  |  |  |  |  |  Branch (28:43): [True: 2.98k, False: 1.01k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  128|       |      /* this is two hexadecimal digits following a '%' */
  129|  6.18k|      in = (unsigned char)((curlx_hexval(string[1]) << 4) |
  ------------------
  |  |  111|  6.18k|#define curlx_hexval(x) (unsigned char)(curlx_hexasciitable[(x) - '0'] & 0x0f)
  ------------------
  130|  6.18k|                           curlx_hexval(string[2]));
  ------------------
  |  |  111|  6.18k|#define curlx_hexval(x) (unsigned char)(curlx_hexasciitable[(x) - '0'] & 0x0f)
  ------------------
  131|  6.18k|      string += 3;
  132|  6.18k|      alloc -= 3;
  133|  6.18k|    }
  134|   160k|    else {
  135|   160k|      string++;
  136|   160k|      alloc--;
  137|   160k|    }
  138|       |
  139|   166k|    if(((ctrl == REJECT_CTRL) && (in < 0x20)) ||
  ------------------
  |  Branch (139:9): [True: 46.5k, False: 119k]
  |  Branch (139:34): [True: 14, False: 46.5k]
  ------------------
  140|   166k|       ((ctrl == REJECT_ZERO) && (in == 0))) {
  ------------------
  |  Branch (140:9): [True: 119k, False: 46.5k]
  |  Branch (140:34): [True: 2, False: 119k]
  ------------------
  141|     16|      curlx_safefree(*ostring);
  ------------------
  |  | 1340|     16|  do {                      \
  |  | 1341|     16|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|     16|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|     16|    (ptr) = NULL;           \
  |  | 1343|     16|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 16]
  |  |  ------------------
  ------------------
  142|     16|      return CURLE_URL_MALFORMAT;
  143|     16|    }
  144|       |
  145|   166k|    *ns++ = (char)in;
  146|   166k|  }
  147|  3.03k|  *ns = 0; /* terminate it */
  148|       |
  149|  3.03k|  if(olen)
  ------------------
  |  Branch (149:6): [True: 1.53k, False: 1.49k]
  ------------------
  150|       |    /* store output size */
  151|  1.53k|    *olen = ns - *ostring;
  152|       |
  153|  3.03k|  return CURLE_OK;
  154|  3.04k|}
curl_free:
  191|  20.2k|{
  192|  20.2k|  curlx_free(p);
  ------------------
  |  | 1482|  20.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  193|  20.2k|}
Curl_hexbyte:
  225|  1.84M|{
  226|  1.84M|  dest[0] = Curl_udigits[val >> 4];
  227|  1.84M|  dest[1] = Curl_udigits[val & 0x0F];
  228|  1.84M|}

Curl_wildcard_dtor:
  189|  29.9k|{
  190|  29.9k|  struct WildcardData *wc = *wcp;
  191|  29.9k|  if(!wc)
  ------------------
  |  Branch (191:6): [True: 29.9k, False: 0]
  ------------------
  192|  29.9k|    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;
  ------------------
  |  | 1166|      0|#define ZERO_NULL 0
  ------------------
  197|      0|    wc->ftpwc = NULL;
  198|      0|  }
  199|      0|  DEBUGASSERT(!wc->ftpwc);
  ------------------
  |  | 1083|      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);
  ------------------
  |  | 1340|      0|  do {                      \
  |  | 1341|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|      0|    (ptr) = NULL;           \
  |  | 1343|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  203|      0|  curlx_safefree(wc->pattern);
  ------------------
  |  | 1340|      0|  do {                      \
  |  | 1341|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|      0|    (ptr) = NULL;           \
  |  | 1343|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  204|      0|  wc->state = CURLWC_INIT;
  205|      0|  curlx_free(wc);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  206|       |  *wcp = NULL;
  207|      0|}

curl_getenv:
   27|  75.5k|{
   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|  75.5k|  char *env = getenv(variable);
   67|  75.5k|  return (env && env[0]) ? curlx_strdup(env) : NULL;
  ------------------
  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  |  Branch (67:11): [True: 0, False: 75.5k]
  |  Branch (67:18): [True: 0, False: 0]
  ------------------
   68|  75.5k|#endif
   69|  75.5k|}

Curl_initinfo:
   42|  29.9k|{
   43|  29.9k|  struct Progress *pro = &data->progress;
   44|  29.9k|  struct PureInfo *info = &data->info;
   45|       |
   46|  29.9k|  memset(&pro->delta, 0, sizeof(pro->delta));
   47|  29.9k|  memset(&pro->total, 0, sizeof(pro->total));
   48|  29.9k|  pro->startransfer_added = FALSE;
  ------------------
  |  | 1056|  29.9k|#define FALSE false
  ------------------
   49|       |
   50|  29.9k|  info->httpcode = 0;
   51|  29.9k|  info->httpproxycode = 0;
   52|  29.9k|  info->httpversion = 0;
   53|  29.9k|  info->filetime = -1; /* -1 is an illegal time and thus means unknown */
   54|  29.9k|  info->timecond = FALSE;
  ------------------
  |  | 1056|  29.9k|#define FALSE false
  ------------------
   55|       |
   56|  29.9k|  info->header_size = 0;
   57|  29.9k|  info->request_size = 0;
   58|  29.9k|  info->proxyauthavail = 0;
   59|  29.9k|  info->httpauthavail = 0;
   60|  29.9k|  info->proxyauthpicked = 0;
   61|  29.9k|  info->httpauthpicked = 0;
   62|  29.9k|  info->numconnects = 0;
   63|       |
   64|  29.9k|  curlx_safefree(info->contenttype);
  ------------------
  |  | 1340|  29.9k|  do {                      \
  |  | 1341|  29.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  29.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  29.9k|    (ptr) = NULL;           \
  |  | 1343|  29.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 29.9k]
  |  |  ------------------
  ------------------
   65|  29.9k|  curlx_safefree(info->wouldredirect);
  ------------------
  |  | 1340|  29.9k|  do {                      \
  |  | 1341|  29.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  29.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  29.9k|    (ptr) = NULL;           \
  |  | 1343|  29.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 29.9k]
  |  |  ------------------
  ------------------
   66|       |
   67|  29.9k|  memset(&info->primary, 0, sizeof(info->primary));
   68|  29.9k|  info->retry_after = 0;
   69|       |
   70|  29.9k|  info->conn_scheme = 0;
   71|  29.9k|  info->conn_protocol = 0;
   72|  29.9k|  info->used_proxy = 0;
   73|       |
   74|  29.9k|#ifdef USE_SSL
   75|  29.9k|  Curl_ssl_free_certinfo(data);
   76|  29.9k|#endif
   77|  29.9k|}

Curl_hash_init:
   82|  74.1k|{
   83|  74.1k|  DEBUGASSERT(h);
  ------------------
  |  | 1083|  74.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (83:3): [True: 0, False: 74.1k]
  |  Branch (83:3): [True: 74.1k, False: 0]
  ------------------
   84|  74.1k|  DEBUGASSERT(slots);
  ------------------
  |  | 1083|  74.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (84:3): [True: 0, False: 74.1k]
  |  Branch (84:3): [True: 74.1k, False: 0]
  ------------------
   85|  74.1k|  DEBUGASSERT(hfunc);
  ------------------
  |  | 1083|  74.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (85:3): [True: 0, False: 74.1k]
  |  Branch (85:3): [True: 74.1k, False: 0]
  ------------------
   86|  74.1k|  DEBUGASSERT(comparator);
  ------------------
  |  | 1083|  74.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (86:3): [True: 0, False: 74.1k]
  |  Branch (86:3): [True: 74.1k, False: 0]
  ------------------
   87|  74.1k|  DEBUGASSERT(dtor);
  ------------------
  |  | 1083|  74.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (87:3): [True: 0, False: 74.1k]
  |  Branch (87:3): [True: 74.1k, False: 0]
  ------------------
   88|       |
   89|  74.1k|  h->table = NULL;
   90|  74.1k|  h->hash_func = hfunc;
   91|  74.1k|  h->comp_func = comparator;
   92|  74.1k|  h->dtor = dtor;
   93|  74.1k|  h->size = 0;
   94|  74.1k|  h->slots = slots;
   95|  74.1k|#ifdef DEBUGBUILD
   96|  74.1k|  h->init = HASHINIT;
  ------------------
  |  |   30|  74.1k|#define HASHINIT 0x7017e781
  ------------------
   97|  74.1k|#endif
   98|  74.1k|}
Curl_hash_add2:
  163|  21.0k|{
  164|  21.0k|  struct Curl_hash_element *he, **slot;
  165|       |
  166|  21.0k|  DEBUGASSERT(h);
  ------------------
  |  | 1083|  21.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (166:3): [True: 0, False: 21.0k]
  |  Branch (166:3): [True: 21.0k, False: 0]
  ------------------
  167|  21.0k|  DEBUGASSERT(h->slots);
  ------------------
  |  | 1083|  21.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (167:3): [True: 0, False: 21.0k]
  |  Branch (167:3): [True: 21.0k, False: 0]
  ------------------
  168|  21.0k|  DEBUGASSERT(h->init == HASHINIT);
  ------------------
  |  | 1083|  21.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (168:3): [True: 0, False: 21.0k]
  |  Branch (168:3): [True: 21.0k, False: 0]
  ------------------
  169|  21.0k|  if(!h->table) {
  ------------------
  |  Branch (169:6): [True: 20.2k, False: 793]
  ------------------
  170|  20.2k|    h->table = curlx_calloc(h->slots, sizeof(struct Curl_hash_element *));
  ------------------
  |  | 1479|  20.2k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  171|  20.2k|    if(!h->table)
  ------------------
  |  Branch (171:8): [True: 0, False: 20.2k]
  ------------------
  172|      0|      return NULL; /* OOM */
  173|  20.2k|  }
  174|       |
  175|  21.0k|  slot = CURL_HASH_SLOT_ADDR(h, key, key_len);
  ------------------
  |  |  159|  21.0k|#define CURL_HASH_SLOT_ADDR(x, y, z) &CURL_HASH_SLOT(x, y, z)
  |  |  ------------------
  |  |  |  |  158|  21.0k|#define CURL_HASH_SLOT(x, y, z)      x->table[(x)->hash_func(y, z, (x)->slots)]
  |  |  ------------------
  ------------------
  176|  21.0k|  for(he = *slot; he; he = he->next) {
  ------------------
  |  Branch (176:19): [True: 3, False: 21.0k]
  ------------------
  177|      3|    if(h->comp_func(he->key, he->key_len, key, key_len)) {
  ------------------
  |  Branch (177:8): [True: 0, False: 3]
  ------------------
  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|      3|  }
  185|       |
  186|  21.0k|  he = hash_elem_create(key, key_len, p, dtor);
  187|  21.0k|  if(!he)
  ------------------
  |  Branch (187:6): [True: 0, False: 21.0k]
  ------------------
  188|      0|    return NULL; /* OOM */
  189|       |
  190|  21.0k|  hash_elem_link(h, slot, he);
  191|  21.0k|  return p; /* return the new entry */
  192|  21.0k|}
Curl_hash_add:
  203|  19.4k|{
  204|       |  return Curl_hash_add2(h, key, key_len, p, NULL);
  205|  19.4k|}
Curl_hash_delete:
  213|  30.2k|{
  214|  30.2k|  DEBUGASSERT(h);
  ------------------
  |  | 1083|  30.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (214:3): [True: 0, False: 30.2k]
  |  Branch (214:3): [True: 30.2k, False: 0]
  ------------------
  215|  30.2k|  DEBUGASSERT(h->slots);
  ------------------
  |  | 1083|  30.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (215:3): [True: 0, False: 30.2k]
  |  Branch (215:3): [True: 30.2k, False: 0]
  ------------------
  216|  30.2k|  DEBUGASSERT(h->init == HASHINIT);
  ------------------
  |  | 1083|  30.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (216:3): [True: 0, False: 30.2k]
  |  Branch (216:3): [True: 30.2k, False: 0]
  ------------------
  217|  30.2k|  if(h->table) {
  ------------------
  |  Branch (217:6): [True: 11.7k, False: 18.5k]
  ------------------
  218|  11.7k|    struct Curl_hash_element *he, **he_anchor;
  219|       |
  220|  11.7k|    he_anchor = CURL_HASH_SLOT_ADDR(h, key, key_len);
  ------------------
  |  |  159|  11.7k|#define CURL_HASH_SLOT_ADDR(x, y, z) &CURL_HASH_SLOT(x, y, z)
  |  |  ------------------
  |  |  |  |  158|  11.7k|#define CURL_HASH_SLOT(x, y, z)      x->table[(x)->hash_func(y, z, (x)->slots)]
  |  |  ------------------
  ------------------
  221|  11.7k|    while(*he_anchor) {
  ------------------
  |  Branch (221:11): [True: 10.1k, False: 1.61k]
  ------------------
  222|  10.1k|      he = *he_anchor;
  223|  10.1k|      if(h->comp_func(he->key, he->key_len, key, key_len)) {
  ------------------
  |  Branch (223:10): [True: 10.1k, False: 0]
  ------------------
  224|  10.1k|        hash_elem_unlink(h, he_anchor, he);
  225|  10.1k|        hash_elem_destroy(h, he);
  226|  10.1k|        return 0;
  227|  10.1k|      }
  228|      0|      he_anchor = &he->next;
  229|      0|    }
  230|  11.7k|  }
  231|  20.1k|  return 1;
  232|  30.2k|}
Curl_hash_pick:
  239|  77.2k|{
  240|  77.2k|  DEBUGASSERT(h);
  ------------------
  |  | 1083|  77.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (240:3): [True: 0, False: 77.2k]
  |  Branch (240:3): [True: 77.2k, False: 0]
  ------------------
  241|  77.2k|  DEBUGASSERT(h->init == HASHINIT);
  ------------------
  |  | 1083|  77.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (241:3): [True: 0, False: 77.2k]
  |  Branch (241:3): [True: 77.2k, False: 0]
  ------------------
  242|  77.2k|  if(h->table) {
  ------------------
  |  Branch (242:6): [True: 38.3k, False: 38.8k]
  ------------------
  243|  38.3k|    struct Curl_hash_element *he;
  244|  38.3k|    DEBUGASSERT(h->slots);
  ------------------
  |  | 1083|  38.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (244:5): [True: 0, False: 38.3k]
  |  Branch (244:5): [True: 38.3k, False: 0]
  ------------------
  245|  38.3k|    he = CURL_HASH_SLOT(h, key, key_len);
  ------------------
  |  |  158|  38.3k|#define CURL_HASH_SLOT(x, y, z)      x->table[(x)->hash_func(y, z, (x)->slots)]
  ------------------
  246|  38.4k|    while(he) {
  ------------------
  |  Branch (246:11): [True: 36.9k, False: 1.46k]
  ------------------
  247|  36.9k|      if(h->comp_func(he->key, he->key_len, key, key_len)) {
  ------------------
  |  Branch (247:10): [True: 36.9k, False: 4]
  ------------------
  248|  36.9k|        return he->ptr;
  249|  36.9k|      }
  250|      4|      he = he->next;
  251|      4|    }
  252|  38.3k|  }
  253|  40.3k|  return NULL;
  254|  77.2k|}
Curl_hash_destroy:
  264|  74.1k|{
  265|  74.1k|  DEBUGASSERT(h->init == HASHINIT);
  ------------------
  |  | 1083|  74.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (265:3): [True: 0, False: 74.1k]
  |  Branch (265:3): [True: 74.1k, False: 0]
  ------------------
  266|  74.1k|  if(h->table) {
  ------------------
  |  Branch (266:6): [True: 20.2k, False: 53.9k]
  ------------------
  267|  20.2k|    Curl_hash_clean(h);
  268|  20.2k|    curlx_safefree(h->table);
  ------------------
  |  | 1340|  20.2k|  do {                      \
  |  | 1341|  20.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  20.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  20.2k|    (ptr) = NULL;           \
  |  | 1343|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  269|  20.2k|  }
  270|  74.1k|  DEBUGASSERT(h->size == 0);
  ------------------
  |  | 1083|  74.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (270:3): [True: 0, False: 74.1k]
  |  Branch (270:3): [True: 74.1k, False: 0]
  ------------------
  271|  74.1k|  h->slots = 0;
  272|  74.1k|}
Curl_hash_clean:
  279|  20.2k|{
  280|  20.2k|  if(h && h->table) {
  ------------------
  |  Branch (280:6): [True: 20.2k, False: 0]
  |  Branch (280:11): [True: 20.2k, False: 0]
  ------------------
  281|  20.2k|    struct Curl_hash_element *he, **he_anchor;
  282|  20.2k|    size_t i;
  283|  20.2k|    DEBUGASSERT(h->init == HASHINIT);
  ------------------
  |  | 1083|  20.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (283:5): [True: 0, False: 20.2k]
  |  Branch (283:5): [True: 20.2k, False: 0]
  ------------------
  284|  1.62M|    for(i = 0; i < h->slots; ++i) {
  ------------------
  |  Branch (284:16): [True: 1.60M, False: 20.2k]
  ------------------
  285|  1.60M|      he_anchor = &h->table[i];
  286|  1.61M|      while(*he_anchor) {
  ------------------
  |  Branch (286:13): [True: 10.9k, False: 1.60M]
  ------------------
  287|  10.9k|        he = *he_anchor;
  288|  10.9k|        hash_elem_unlink(h, he_anchor, he);
  289|  10.9k|        hash_elem_destroy(h, he);
  290|  10.9k|      }
  291|  1.60M|    }
  292|  20.2k|  }
  293|  20.2k|}
Curl_hash_count:
  296|  14.2k|{
  297|  14.2k|  DEBUGASSERT(h->init == HASHINIT);
  ------------------
  |  | 1083|  14.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (297:3): [True: 0, False: 14.2k]
  |  Branch (297:3): [True: 14.2k, False: 0]
  ------------------
  298|  14.2k|  return h->size;
  299|  14.2k|}
Curl_hash_clean_with_criterium:
  304|  14.2k|{
  305|  14.2k|  size_t i;
  306|       |
  307|  14.2k|  if(!h || !h->table)
  ------------------
  |  Branch (307:6): [True: 0, False: 14.2k]
  |  Branch (307:12): [True: 0, False: 14.2k]
  ------------------
  308|      0|    return;
  309|       |
  310|  14.2k|  DEBUGASSERT(h->init == HASHINIT);
  ------------------
  |  | 1083|  14.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (310:3): [True: 0, False: 14.2k]
  |  Branch (310:3): [True: 14.2k, False: 0]
  ------------------
  311|  1.02M|  for(i = 0; i < h->slots; ++i) {
  ------------------
  |  Branch (311:14): [True: 1.01M, False: 14.2k]
  ------------------
  312|  1.01M|    struct Curl_hash_element *he, **he_anchor = &h->table[i];
  313|  1.02M|    while(*he_anchor) {
  ------------------
  |  Branch (313:11): [True: 14.2k, False: 1.01M]
  ------------------
  314|       |      /* ask the callback function if we shall remove this entry or not */
  315|  14.2k|      if(!comp || comp(user, (*he_anchor)->ptr)) {
  ------------------
  |  Branch (315:10): [True: 0, False: 14.2k]
  |  Branch (315:19): [True: 0, False: 14.2k]
  ------------------
  316|      0|        he = *he_anchor;
  317|      0|        hash_elem_unlink(h, he_anchor, he);
  318|      0|        hash_elem_destroy(h, he);
  319|      0|      }
  320|  14.2k|      else
  321|  14.2k|        he_anchor = &(*he_anchor)->next;
  322|  14.2k|    }
  323|  1.01M|  }
  324|  14.2k|}
Curl_hash_str:
  327|  71.2k|{
  328|  71.2k|  const char *key_str = (const char *)key;
  329|  71.2k|  const char *end = key_str + key_length;
  330|  71.2k|  size_t h = 5381;
  331|       |
  332|  1.23M|  while(key_str < end) {
  ------------------
  |  Branch (332:9): [True: 1.16M, False: 71.2k]
  ------------------
  333|  1.16M|    size_t j = (size_t)*key_str++;
  334|  1.16M|    h += h << 5;
  335|  1.16M|    h ^= j;
  336|  1.16M|  }
  337|       |
  338|  71.2k|  return (h % slots_num);
  339|  71.2k|}
curlx_str_key_compare:
  343|  47.0k|{
  344|  47.0k|  if((key1_len == key2_len) && !memcmp(k1, k2, key1_len))
  ------------------
  |  Branch (344:6): [True: 47.0k, False: 2]
  |  Branch (344:32): [True: 47.0k, False: 5]
  ------------------
  345|  47.0k|    return 1;
  346|       |
  347|      7|  return 0;
  348|  47.0k|}
Curl_hash_start_iterate:
  352|  25.7k|{
  353|  25.7k|  DEBUGASSERT(hash->init == HASHINIT);
  ------------------
  |  | 1083|  25.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (353:3): [True: 0, False: 25.7k]
  |  Branch (353:3): [True: 25.7k, False: 0]
  ------------------
  354|  25.7k|  iter->hash = hash;
  355|  25.7k|  iter->slot_index = 0;
  356|  25.7k|  iter->current = NULL;
  357|  25.7k|#ifdef DEBUGBUILD
  358|  25.7k|  iter->init = ITERINIT;
  ------------------
  |  |   31|  25.7k|#define ITERINIT 0x5FEDCBA9
  ------------------
  359|  25.7k|#endif
  360|  25.7k|}
Curl_hash_next_element:
  364|  31.4k|{
  365|  31.4k|  struct Curl_hash *h;
  366|  31.4k|  DEBUGASSERT(iter->init == ITERINIT);
  ------------------
  |  | 1083|  31.4k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (366:3): [True: 0, False: 31.4k]
  |  Branch (366:3): [True: 31.4k, False: 0]
  ------------------
  367|  31.4k|  h = iter->hash;
  368|  31.4k|  if(!h->table)
  ------------------
  |  Branch (368:6): [True: 9.48k, False: 22.0k]
  ------------------
  369|  9.48k|    return NULL; /* empty hash, nothing to return */
  370|       |
  371|       |  /* Get the next element in the current list, if any */
  372|  22.0k|  if(iter->current)
  ------------------
  |  Branch (372:6): [True: 5.73k, False: 16.2k]
  ------------------
  373|  5.73k|    iter->current = iter->current->next;
  374|       |
  375|       |  /* If we have reached the end of the list, find the next one */
  376|  22.0k|  if(!iter->current) {
  ------------------
  |  Branch (376:6): [True: 22.0k, False: 0]
  ------------------
  377|  22.0k|    size_t i;
  378|  1.56M|    for(i = iter->slot_index; i < h->slots; i++) {
  ------------------
  |  Branch (378:31): [True: 1.54M, False: 15.0k]
  ------------------
  379|  1.54M|      if(h->table[i]) {
  ------------------
  |  Branch (379:10): [True: 6.93k, False: 1.54M]
  ------------------
  380|  6.93k|        iter->current = h->table[i];
  381|  6.93k|        iter->slot_index = i + 1;
  382|  6.93k|        break;
  383|  6.93k|      }
  384|  1.54M|    }
  385|  22.0k|  }
  386|       |
  387|  22.0k|  return iter->current;
  388|  31.4k|}
hash.c:hash_elem_clear_ptr:
  122|  21.0k|{
  123|  21.0k|  DEBUGASSERT(h);
  ------------------
  |  | 1083|  21.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (123:3): [True: 0, False: 21.0k]
  |  Branch (123:3): [True: 21.0k, False: 0]
  ------------------
  124|  21.0k|  DEBUGASSERT(he);
  ------------------
  |  | 1083|  21.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (124:3): [True: 0, False: 21.0k]
  |  Branch (124:3): [True: 21.0k, False: 0]
  ------------------
  125|  21.0k|  if(he->ptr) {
  ------------------
  |  Branch (125:6): [True: 21.0k, False: 0]
  ------------------
  126|  21.0k|    if(he->dtor)
  ------------------
  |  Branch (126:8): [True: 1.61k, False: 19.4k]
  ------------------
  127|  1.61k|      he->dtor(he->key, he->key_len, he->ptr);
  128|  19.4k|    else
  129|  19.4k|      h->dtor(he->ptr);
  130|       |    he->ptr = NULL;
  131|  21.0k|  }
  132|  21.0k|}
hash.c:hash_elem_create:
  104|  21.0k|{
  105|  21.0k|  struct Curl_hash_element *he;
  106|       |
  107|       |  /* allocate the struct plus memory after it to store the key */
  108|  21.0k|  he = curlx_malloc(sizeof(struct Curl_hash_element) + key_len);
  ------------------
  |  | 1477|  21.0k|#define curlx_malloc(size)         curl_dbg_malloc(size, __LINE__, __FILE__)
  ------------------
  109|  21.0k|  if(he) {
  ------------------
  |  Branch (109:6): [True: 21.0k, False: 0]
  ------------------
  110|  21.0k|    he->next = NULL;
  111|       |    /* copy the key */
  112|  21.0k|    memcpy(he->key, key, key_len);
  113|  21.0k|    he->key_len = key_len;
  114|  21.0k|    he->ptr = CURL_UNCONST(p);
  ------------------
  |  |  864|  21.0k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
  115|  21.0k|    he->dtor = dtor;
  116|  21.0k|  }
  117|  21.0k|  return he;
  118|  21.0k|}
hash.c:hash_elem_link:
  152|  21.0k|{
  153|  21.0k|  he->next = *he_anchor;
  154|  21.0k|  *he_anchor = he;
  155|  21.0k|  ++h->size;
  156|  21.0k|}
hash.c:hash_elem_unlink:
  144|  21.0k|{
  145|  21.0k|  *he_anchor = he->next;
  146|  21.0k|  --h->size;
  147|  21.0k|}
hash.c:hash_elem_destroy:
  136|  21.0k|{
  137|  21.0k|  hash_elem_clear_ptr(h, he);
  138|  21.0k|  curlx_free(he);
  ------------------
  |  | 1482|  21.0k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  139|  21.0k|}

Curl_headers_push:
  255|  57.0k|{
  256|  57.0k|  char *value = NULL;
  257|  57.0k|  char *name = NULL;
  258|  57.0k|  struct Curl_header_store *hs;
  259|  57.0k|  CURLcode result = CURLE_OUT_OF_MEMORY;
  260|  57.0k|  const size_t ilen = hlen;
  261|       |
  262|  57.0k|  if((header[0] == '\r') || (header[0] == '\n'))
  ------------------
  |  Branch (262:6): [True: 6.95k, False: 50.1k]
  |  Branch (262:29): [True: 126, False: 50.0k]
  ------------------
  263|       |    /* ignore the body separator */
  264|  7.07k|    return CURLE_OK;
  265|       |
  266|       |  /* trim off newline characters */
  267|  50.0k|  if(hlen && (header[hlen - 1] == '\n'))
  ------------------
  |  Branch (267:6): [True: 50.0k, False: 0]
  |  Branch (267:14): [True: 48.2k, False: 1.80k]
  ------------------
  268|  48.2k|    hlen--;
  269|  50.0k|  if(hlen && (header[hlen - 1] == '\r'))
  ------------------
  |  Branch (269:6): [True: 50.0k, False: 0]
  |  Branch (269:14): [True: 44.4k, False: 5.58k]
  ------------------
  270|  44.4k|    hlen--;
  271|  50.0k|  if(hlen == ilen)
  ------------------
  |  Branch (271:6): [True: 601, False: 49.4k]
  ------------------
  272|       |    /* neither CR nor LF as terminator is not a valid header */
  273|    601|    return CURLE_WEIRD_SERVER_REPLY;
  274|       |
  275|  49.4k|  if(ISBLANK(header[0])) {
  ------------------
  |  |   43|  49.4k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (43:22): [True: 31, False: 49.3k]
  |  |  |  Branch (43:38): [True: 11, False: 49.3k]
  |  |  ------------------
  ------------------
  276|       |    /* pass leading blanks */
  277|    525|    while(hlen && ISBLANK(*header)) {
  ------------------
  |  |   43|    522|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (43:22): [True: 237, False: 285]
  |  |  |  Branch (43:38): [True: 246, False: 39]
  |  |  ------------------
  ------------------
  |  Branch (277:11): [True: 522, False: 3]
  ------------------
  278|    483|      header++;
  279|    483|      hlen--;
  280|    483|    }
  281|     42|    if(!hlen)
  ------------------
  |  Branch (281:8): [True: 3, False: 39]
  ------------------
  282|      3|      return CURLE_WEIRD_SERVER_REPLY;
  283|     42|  }
  284|  49.4k|  if(Curl_llist_count(&data->state.httphdrs) >= MAX_HTTP_RESP_HEADER_COUNT) {
  ------------------
  |  |  162|  49.4k|#define MAX_HTTP_RESP_HEADER_COUNT 5000
  ------------------
  |  Branch (284:6): [True: 0, False: 49.4k]
  ------------------
  285|      0|    failf(data, "Too many response headers, %d is max",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  286|      0|          MAX_HTTP_RESP_HEADER_COUNT);
  ------------------
  |  |  162|      0|#define MAX_HTTP_RESP_HEADER_COUNT 5000
  ------------------
  287|      0|    return CURLE_TOO_LARGE;
  288|      0|  }
  289|       |
  290|  49.4k|  hs = curlx_calloc(1, sizeof(*hs) + hlen);
  ------------------
  |  | 1479|  49.4k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  291|  49.4k|  if(!hs)
  ------------------
  |  Branch (291:6): [True: 0, False: 49.4k]
  ------------------
  292|      0|    return CURLE_OUT_OF_MEMORY;
  293|  49.4k|  memcpy(hs->buffer, header, hlen);
  294|  49.4k|  hs->buffer[hlen] = 0; /* null-terminate */
  295|       |
  296|  49.4k|  result = namevalue(hs->buffer, hlen, type, &name, &value);
  297|  49.4k|  if(!result) {
  ------------------
  |  Branch (297:6): [True: 49.3k, False: 78]
  ------------------
  298|  49.3k|    hs->name = name;
  299|  49.3k|    hs->value = value;
  300|  49.3k|    hs->type = type;
  301|  49.3k|    hs->request = data->state.requests;
  302|       |
  303|       |    /* insert this node into the list of headers */
  304|  49.3k|    Curl_llist_append(&data->state.httphdrs, hs, &hs->node);
  305|  49.3k|  }
  306|     78|  else {
  307|     78|    failf(data, "Invalid response header");
  ------------------
  |  |   62|     78|#define failf Curl_failf
  ------------------
  308|     78|    curlx_free(hs);
  ------------------
  |  | 1482|     78|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  309|     78|  }
  310|  49.4k|  return result;
  311|  49.4k|}
Curl_headers_init:
  356|  23.2k|{
  357|  23.2k|  struct Curl_cwriter *writer;
  358|  23.2k|  CURLcode result;
  359|       |
  360|  23.2k|  if(data->conn && (data->conn->scheme->protocol & PROTO_FAMILY_HTTP)) {
  ------------------
  |  |   84|  23.2k|#define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1086|  23.2k|#define CURLPROTO_HTTP    (1L << 0)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1087|  23.2k|#define CURLPROTO_HTTPS   (1L << 1)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  |   63|  23.2k|#define CURLPROTO_WS     (1L << 30)
  |  |  ------------------
  |  |   85|  23.2k|                           CURLPROTO_WSS)
  |  |  ------------------
  |  |  |  |   64|  23.2k|#define CURLPROTO_WSS    ((curl_prot_t)1 << 31)
  |  |  ------------------
  ------------------
  |  Branch (360:6): [True: 23.2k, False: 0]
  |  Branch (360:20): [True: 23.2k, False: 0]
  ------------------
  361|       |    /* avoid installing it twice */
  362|  23.2k|    if(Curl_cwriter_get_by_name(data, hds_cw_collect.name))
  ------------------
  |  Branch (362:8): [True: 8.97k, False: 14.2k]
  ------------------
  363|  8.97k|      return CURLE_OK;
  364|       |
  365|  14.2k|    result = Curl_cwriter_create(&writer, data, &hds_cw_collect,
  366|  14.2k|                                 CURL_CW_PROTOCOL);
  367|  14.2k|    if(result)
  ------------------
  |  Branch (367:8): [True: 0, False: 14.2k]
  ------------------
  368|      0|      return result;
  369|       |
  370|  14.2k|    result = Curl_cwriter_add(data, writer);
  371|  14.2k|    if(result) {
  ------------------
  |  Branch (371:8): [True: 0, False: 14.2k]
  ------------------
  372|      0|      Curl_cwriter_free(data, writer);
  373|      0|      return result;
  374|      0|    }
  375|  14.2k|  }
  376|  14.2k|  return CURLE_OK;
  377|  23.2k|}
Curl_headers_cleanup:
  383|  29.9k|{
  384|  29.9k|  struct Curl_llist_node *e;
  385|  29.9k|  struct Curl_llist_node *n;
  386|       |
  387|  79.2k|  for(e = Curl_llist_head(&data->state.httphdrs); e; e = n) {
  ------------------
  |  Branch (387:51): [True: 49.3k, False: 29.9k]
  ------------------
  388|  49.3k|    struct Curl_header_store *hs = Curl_node_elem(e);
  389|  49.3k|    n = Curl_node_next(e);
  390|  49.3k|    curlx_free(hs);
  ------------------
  |  | 1482|  49.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  391|  49.3k|  }
  392|  29.9k|  headers_reset(data);
  393|  29.9k|  return CURLE_OK;
  394|  29.9k|}
headers.c:namevalue:
  214|  49.4k|{
  215|  49.4k|  char *end = header + hlen - 1; /* point to the last byte */
  216|  49.4k|  DEBUGASSERT(hlen);
  ------------------
  |  | 1083|  49.4k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (216:3): [True: 0, False: 49.4k]
  |  Branch (216:3): [True: 49.4k, False: 0]
  ------------------
  217|  49.4k|  *name = header;
  218|       |
  219|  49.4k|  if(type == CURLH_PSEUDO) {
  ------------------
  |  |   45|  49.4k|#define CURLH_PSEUDO    (1 << 4) /* pseudo headers */
  ------------------
  |  Branch (219:6): [True: 1.19k, False: 48.2k]
  ------------------
  220|  1.19k|    if(*header != ':')
  ------------------
  |  Branch (220:8): [True: 0, False: 1.19k]
  ------------------
  221|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
  222|  1.19k|    header++;
  223|  1.19k|  }
  224|       |
  225|       |  /* Find the end of the header name */
  226|   557k|  while(*header && (*header != ':'))
  ------------------
  |  Branch (226:9): [True: 557k, False: 78]
  |  Branch (226:20): [True: 507k, False: 49.3k]
  ------------------
  227|   507k|    ++header;
  228|       |
  229|  49.4k|  if(*header)
  ------------------
  |  Branch (229:6): [True: 49.3k, False: 78]
  ------------------
  230|       |    /* Skip over colon, null it */
  231|  49.3k|    *header++ = 0;
  232|     78|  else
  233|     78|    return CURLE_BAD_FUNCTION_ARGUMENT;
  234|       |
  235|       |  /* skip all leading blank letters */
  236|  95.8k|  while(ISBLANK(*header))
  ------------------
  |  |   43|  95.8k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (43:22): [True: 45.6k, False: 50.1k]
  |  |  |  Branch (43:38): [True: 869, False: 49.3k]
  |  |  ------------------
  ------------------
  237|  46.5k|    header++;
  238|       |
  239|  49.3k|  *value = header;
  240|       |
  241|       |  /* skip all trailing space letters */
  242|  51.7k|  while((end > header) && ISBLANK(*end))
  ------------------
  |  |   43|  32.9k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (43:22): [True: 607, False: 32.3k]
  |  |  |  Branch (43:38): [True: 1.84k, False: 30.4k]
  |  |  ------------------
  ------------------
  |  Branch (242:9): [True: 32.9k, False: 18.8k]
  ------------------
  243|  2.45k|    *end-- = 0; /* null-terminate */
  244|  49.3k|  return CURLE_OK;
  245|  49.4k|}
headers.c:hds_cw_collect_write:
  328|  68.4k|{
  329|  68.4k|  if((type & CLIENTWRITE_HEADER) && !(type & CLIENTWRITE_STATUS)) {
  ------------------
  |  |   45|  68.4k|#define CLIENTWRITE_HEADER  (1 << 2) /* meta information, HEADER */
  ------------------
                if((type & CLIENTWRITE_HEADER) && !(type & CLIENTWRITE_STATUS)) {
  ------------------
  |  |   46|  64.4k|#define CLIENTWRITE_STATUS  (1 << 3) /* a special status HEADER */
  ------------------
  |  Branch (329:6): [True: 64.4k, False: 3.99k]
  |  Branch (329:37): [True: 55.8k, False: 8.52k]
  ------------------
  330|  55.8k|    unsigned char htype = (unsigned char)
  331|  55.8k|      (type & CLIENTWRITE_CONNECT ? CURLH_CONNECT :
  ------------------
  |  |   47|  55.8k|#define CLIENTWRITE_CONNECT (1 << 4) /* a CONNECT related HEADER */
  ------------------
                    (type & CLIENTWRITE_CONNECT ? CURLH_CONNECT :
  ------------------
  |  |   43|      0|#define CURLH_CONNECT   (1 << 2) /* CONNECT headers */
  ------------------
  |  Branch (331:8): [True: 0, False: 55.8k]
  ------------------
  332|  55.8k|       (type & CLIENTWRITE_1XX ? CURLH_1XX :
  ------------------
  |  |   48|  55.8k|#define CLIENTWRITE_1XX     (1 << 5) /* a 1xx response related HEADER */
  ------------------
                     (type & CLIENTWRITE_1XX ? CURLH_1XX :
  ------------------
  |  |   44|  7.05k|#define CURLH_1XX       (1 << 3) /* 1xx headers */
  ------------------
  |  Branch (332:9): [True: 7.05k, False: 48.8k]
  ------------------
  333|  55.8k|        (type & CLIENTWRITE_TRAILER ? CURLH_TRAILER :
  ------------------
  |  |   49|  48.8k|#define CLIENTWRITE_TRAILER (1 << 6) /* a trailer HEADER */
  ------------------
                      (type & CLIENTWRITE_TRAILER ? CURLH_TRAILER :
  ------------------
  |  |   42|    604|#define CURLH_TRAILER   (1 << 1) /* trailers */
  ------------------
  |  Branch (333:10): [True: 604, False: 48.2k]
  ------------------
  334|  48.8k|         CURLH_HEADER)));
  ------------------
  |  |   41|  48.2k|#define CURLH_HEADER    (1 << 0) /* plain server header */
  ------------------
  335|  55.8k|    CURLcode result = Curl_headers_push(data, buf, blen, htype);
  336|  55.8k|    CURL_TRC_WRITE(data, "header_collect pushed(type=%x, len=%zu) -> %d",
  ------------------
  |  |  158|  55.8k|  do {                                                     \
  |  |  159|  55.8k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  329|  55.8k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|   111k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 55.8k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 55.8k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|   111k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  55.8k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|  55.8k|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|  55.8k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 55.8k]
  |  |  ------------------
  ------------------
  337|  55.8k|                   htype, blen, (int)result);
  338|  55.8k|    if(result)
  ------------------
  |  Branch (338:8): [True: 682, False: 55.2k]
  ------------------
  339|    682|      return result;
  340|  55.8k|  }
  341|  67.7k|  return Curl_cwriter_write(data, writer->next, type, buf, blen);
  ------------------
  |  |  188|  67.7k|  ((w) ? (w)->cwt->do_write((d), (w), (t), (b), (n)) : CURLE_WRITE_ERROR)
  |  |  ------------------
  |  |  |  Branch (188:4): [True: 67.7k, False: 0]
  |  |  ------------------
  ------------------
  342|  68.4k|}
headers.c:headers_reset:
  317|  29.9k|{
  318|       |  Curl_llist_init(&data->state.httphdrs, NULL);
  319|  29.9k|}

Curl_hsts_init:
   67|  9.97k|{
   68|  9.97k|  struct hsts *h = curlx_calloc(1, sizeof(struct hsts));
  ------------------
  |  | 1479|  9.97k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
   69|  9.97k|  if(h) {
  ------------------
  |  Branch (69:6): [True: 9.97k, False: 0]
  ------------------
   70|       |    Curl_llist_init(&h->list, NULL);
   71|  9.97k|  }
   72|  9.97k|  return h;
   73|  9.97k|}
Curl_hsts_cleanup:
   78|  19.9k|{
   79|  19.9k|  struct hsts *h = *hp;
   80|  19.9k|  if(h) {
  ------------------
  |  Branch (80:6): [True: 9.97k, False: 9.97k]
  ------------------
   81|  9.97k|    struct Curl_llist_node *e;
   82|  9.97k|    struct Curl_llist_node *n;
   83|  9.97k|    for(e = Curl_llist_head(&h->list); e; e = n) {
  ------------------
  |  Branch (83:40): [True: 0, False: 9.97k]
  ------------------
   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)
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  ------------------
   87|      0|    }
   88|  9.97k|    curlx_free(h->filename);
  ------------------
  |  | 1482|  9.97k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   89|  9.97k|    curlx_free(h);
  ------------------
  |  | 1482|  9.97k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   90|       |    *hp = NULL;
   91|  9.97k|  }
   92|  19.9k|}
hsts_check:
  165|  12.2k|{
  166|  12.2k|  struct stsentry *bestsub = NULL;
  167|  12.2k|  if(h) {
  ------------------
  |  Branch (167:6): [True: 12.2k, False: 0]
  ------------------
  168|  12.2k|    time_t now = time(NULL);
  ------------------
  |  |   63|  12.2k|#define time(x) hsts_debugtime(x)
  ------------------
  169|  12.2k|    struct Curl_llist_node *e;
  170|  12.2k|    struct Curl_llist_node *n;
  171|  12.2k|    size_t blen = 0;
  172|       |
  173|  12.2k|    if((hlen > MAX_HSTS_HOSTLEN) || !hlen)
  ------------------
  |  |   42|  12.2k|#define MAX_HSTS_HOSTLEN 2048
  ------------------
  |  Branch (173:8): [True: 56, False: 12.2k]
  |  Branch (173:37): [True: 0, False: 12.2k]
  ------------------
  174|     56|      return NULL;
  175|  12.2k|    if(hostname[hlen - 1] == '.')
  ------------------
  |  Branch (175:8): [True: 217, False: 12.0k]
  ------------------
  176|       |      /* remove the trailing dot */
  177|    217|      --hlen;
  178|       |
  179|  12.2k|    for(e = Curl_llist_head(&h->list); e; e = n) {
  ------------------
  |  Branch (179:40): [True: 0, False: 12.2k]
  ------------------
  180|      0|      struct stsentry *sts = Curl_node_elem(e);
  181|      0|      size_t ntail;
  182|      0|      n = Curl_node_next(e);
  183|      0|      if(sts->expires <= now) {
  ------------------
  |  Branch (183:10): [True: 0, False: 0]
  ------------------
  184|       |        /* remove expired entries */
  185|      0|        Curl_node_remove(&sts->node);
  186|      0|        hsts_free(sts);
  ------------------
  |  |   75|      0|#define hsts_free(x) curlx_free(x)
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  ------------------
  187|      0|        continue;
  188|      0|      }
  189|      0|      ntail = strlen(sts->host);
  190|      0|      if((subdomain && sts->includeSubDomains) && (ntail < hlen)) {
  ------------------
  |  Branch (190:11): [True: 0, False: 0]
  |  Branch (190:24): [True: 0, False: 0]
  |  Branch (190:51): [True: 0, False: 0]
  ------------------
  191|      0|        size_t offs = hlen - ntail;
  192|      0|        if((hostname[offs - 1] == '.') &&
  ------------------
  |  Branch (192:12): [True: 0, False: 0]
  ------------------
  193|      0|           curl_strnequal(&hostname[offs], sts->host, ntail) &&
  ------------------
  |  Branch (193:12): [True: 0, False: 0]
  ------------------
  194|      0|           (ntail > blen)) {
  ------------------
  |  Branch (194:12): [True: 0, False: 0]
  ------------------
  195|       |          /* save the tail match with the longest tail */
  196|      0|          bestsub = sts;
  197|      0|          blen = ntail;
  198|      0|        }
  199|      0|      }
  200|       |      /* avoid curl_strequal because the hostname is not null-terminated */
  201|      0|      if((hlen == ntail) && curl_strnequal(hostname, sts->host, hlen))
  ------------------
  |  Branch (201:10): [True: 0, False: 0]
  |  Branch (201:29): [True: 0, False: 0]
  ------------------
  202|      0|        return sts;
  203|      0|    }
  204|  12.2k|  }
  205|  12.2k|  return bestsub;
  206|  12.2k|}
Curl_hsts_save:
  368|  19.9k|{
  369|  19.9k|  struct Curl_llist_node *e;
  370|  19.9k|  struct Curl_llist_node *n;
  371|  19.9k|  CURLcode result = CURLE_OK;
  372|  19.9k|  FILE *out;
  373|  19.9k|  char *tempstore = NULL;
  374|       |
  375|  19.9k|  if(!h)
  ------------------
  |  Branch (375:6): [True: 9.97k, False: 9.97k]
  ------------------
  376|       |    /* no cache activated */
  377|  9.97k|    return CURLE_OK;
  378|       |
  379|       |  /* if no new name is given, use the one we stored from the load */
  380|  9.97k|  if(!file && h->filename)
  ------------------
  |  Branch (380:6): [True: 0, False: 9.97k]
  |  Branch (380:15): [True: 0, False: 0]
  ------------------
  381|      0|    file = h->filename;
  382|       |
  383|  9.97k|  if((h->flags & CURLHSTS_READONLYFILE) || !file || !file[0])
  ------------------
  |  | 1082|  9.97k|#define CURLHSTS_READONLYFILE (1L << 1)
  ------------------
  |  Branch (383:6): [True: 0, False: 9.97k]
  |  Branch (383:44): [True: 0, False: 9.97k]
  |  Branch (383:53): [True: 0, False: 9.97k]
  ------------------
  384|       |    /* marked as read-only, no file or zero length filename */
  385|      0|    goto skipsave;
  386|       |
  387|  9.97k|  result = Curl_fopen(data, file, &out, &tempstore);
  388|  9.97k|  if(!result) {
  ------------------
  |  Branch (388:6): [True: 9.97k, False: 0]
  ------------------
  389|  9.97k|    fputs("# Your HSTS cache. https://curl.se/docs/hsts.html\n"
  390|  9.97k|          "# This file was generated by libcurl! Edit at your own risk.\n",
  391|  9.97k|          out);
  392|  9.97k|    for(e = Curl_llist_head(&h->list); e; e = n) {
  ------------------
  |  Branch (392:40): [True: 0, False: 9.97k]
  ------------------
  393|      0|      struct stsentry *sts = Curl_node_elem(e);
  394|      0|      n = Curl_node_next(e);
  395|      0|      result = hsts_out(sts, out);
  396|      0|      if(result)
  ------------------
  |  Branch (396:10): [True: 0, False: 0]
  ------------------
  397|      0|        break;
  398|      0|    }
  399|  9.97k|    curlx_fclose(out);
  ------------------
  |  |   79|  9.97k|#define curlx_fclose(file)      curl_dbg_fclose(file, __LINE__, __FILE__)
  ------------------
  400|  9.97k|    if(!result && tempstore && curlx_rename(tempstore, file))
  ------------------
  |  |   70|      0|#define curlx_rename            rename
  ------------------
  |  Branch (400:8): [True: 9.97k, False: 0]
  |  Branch (400:19): [True: 0, False: 9.97k]
  |  Branch (400:32): [True: 0, False: 0]
  ------------------
  401|      0|      result = CURLE_WRITE_ERROR;
  402|       |
  403|  9.97k|    if(result && tempstore)
  ------------------
  |  Branch (403:8): [True: 0, False: 9.97k]
  |  Branch (403:18): [True: 0, False: 0]
  ------------------
  404|      0|      unlink(tempstore);
  405|  9.97k|  }
  406|  9.97k|  curlx_free(tempstore);
  ------------------
  |  | 1482|  9.97k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  407|  9.97k|skipsave:
  408|  9.97k|  if(data->set.hsts_write) {
  ------------------
  |  Branch (408:6): [True: 0, False: 9.97k]
  ------------------
  409|       |    /* if there is a write callback */
  410|      0|    struct curl_index i; /* count */
  411|      0|    i.total = Curl_llist_count(&h->list);
  412|      0|    i.index = 0;
  413|      0|    for(e = Curl_llist_head(&h->list); e; e = n) {
  ------------------
  |  Branch (413:40): [True: 0, False: 0]
  ------------------
  414|      0|      struct stsentry *sts = Curl_node_elem(e);
  415|      0|      bool stop;
  416|      0|      n = Curl_node_next(e);
  417|      0|      result = hsts_push(data, &i, sts, &stop);
  418|      0|      if(result || stop)
  ------------------
  |  Branch (418:10): [True: 0, False: 0]
  |  Branch (418:20): [True: 0, False: 0]
  ------------------
  419|      0|        break;
  420|      0|      i.index++;
  421|      0|    }
  422|      0|  }
  423|  9.97k|  return result;
  424|  9.97k|}
Curl_hsts_loadfile:
  603|  9.97k|{
  604|  9.97k|  DEBUGASSERT(h);
  ------------------
  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (604:3): [True: 0, False: 9.97k]
  |  Branch (604:3): [True: 9.97k, False: 0]
  ------------------
  605|  9.97k|  (void)data;
  606|  9.97k|  return hsts_load(h, file);
  607|  9.97k|}
Curl_hsts_loadcb:
  613|  9.97k|{
  614|  9.97k|  if(h)
  ------------------
  |  Branch (614:6): [True: 9.97k, False: 0]
  ------------------
  615|  9.97k|    return hsts_pull(data, h);
  616|      0|  return CURLE_OK;
  617|  9.97k|}
Curl_hsts_loadfiles:
  620|  9.97k|{
  621|  9.97k|  CURLcode result = CURLE_OK;
  622|  9.97k|  struct curl_slist *l = data->state.hstslist;
  623|  9.97k|  if(l) {
  ------------------
  |  Branch (623:6): [True: 9.97k, False: 0]
  ------------------
  624|  9.97k|    Curl_share_lock(data, CURL_LOCK_DATA_HSTS, CURL_LOCK_ACCESS_SINGLE);
  625|       |
  626|  19.9k|    while(l) {
  ------------------
  |  Branch (626:11): [True: 9.97k, False: 9.97k]
  ------------------
  627|  9.97k|      result = Curl_hsts_loadfile(data, data->hsts, l->data);
  628|  9.97k|      if(result)
  ------------------
  |  Branch (628:10): [True: 0, False: 9.97k]
  ------------------
  629|      0|        break;
  630|  9.97k|      l = l->next;
  631|  9.97k|    }
  632|  9.97k|    Curl_share_unlock(data, CURL_LOCK_DATA_HSTS);
  633|  9.97k|  }
  634|  9.97k|  return result;
  635|  9.97k|}
Curl_hsts_applies:
  638|  12.2k|{
  639|       |  return !!hsts_check(h, dest->hostname, strlen(dest->hostname), TRUE);
  ------------------
  |  | 1053|  12.2k|#define TRUE true
  ------------------
  640|  12.2k|}
hsts.c:hsts_debugtime:
   51|  12.2k|{
   52|  12.2k|  const char *timestr = getenv("CURL_TIME");
   53|  12.2k|  (void)unused;
   54|  12.2k|  if(timestr) {
  ------------------
  |  Branch (54:6): [True: 0, False: 12.2k]
  ------------------
   55|      0|    curl_off_t val;
   56|      0|    if(!curlx_str_number(&timestr, &val, TIME_T_MAX))
  ------------------
  |  |  616|      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|  12.2k|  return time(NULL);
   61|  12.2k|}
hsts.c:hsts_load:
  558|  9.97k|{
  559|  9.97k|  CURLcode result = CURLE_OK;
  560|  9.97k|  FILE *fp;
  561|       |
  562|       |  /* we need a private copy of the filename so that the hsts cache file
  563|       |     name survives an easy handle reset */
  564|  9.97k|  curlx_free(h->filename);
  ------------------
  |  | 1482|  9.97k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  565|  9.97k|  h->filename = curlx_strdup(file);
  ------------------
  |  | 1476|  9.97k|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  566|  9.97k|  if(!h->filename)
  ------------------
  |  Branch (566:6): [True: 0, False: 9.97k]
  ------------------
  567|      0|    return CURLE_OUT_OF_MEMORY;
  568|       |
  569|  9.97k|  fp = curlx_fopen(file, FOPEN_READTEXT);
  ------------------
  |  |   74|  9.97k|#define curlx_fopen(file, mode) curl_dbg_fopen(file, mode, __LINE__, __FILE__)
  ------------------
  570|  9.97k|  if(fp) {
  ------------------
  |  Branch (570:6): [True: 9.97k, False: 0]
  ------------------
  571|  9.97k|    curlx_struct_stat stat;
  ------------------
  |  |   63|  9.97k|#define curlx_struct_stat       struct stat
  ------------------
  572|  9.97k|    if((curlx_fstat(fileno(fp), &stat) == -1) || !S_ISDIR(stat.st_mode)) {
  ------------------
  |  |   62|  9.97k|#define curlx_fstat             fstat
  ------------------
  |  Branch (572:8): [True: 0, False: 9.97k]
  |  Branch (572:50): [True: 9.97k, False: 0]
  ------------------
  573|  9.97k|      struct dynbuf buf;
  574|  9.97k|      bool eof = FALSE;
  ------------------
  |  | 1056|  9.97k|#define FALSE false
  ------------------
  575|  9.97k|      curlx_dyn_init(&buf, MAX_HSTS_LINE);
  ------------------
  |  |   41|  9.97k|#define MAX_HSTS_LINE    4095
  ------------------
  576|  9.97k|      do {
  577|  9.97k|        result = Curl_get_line(&buf, fp, &eof);
  578|  9.97k|        if(!result) {
  ------------------
  |  Branch (578:12): [True: 9.97k, False: 0]
  ------------------
  579|  9.97k|          const char *lineptr = curlx_dyn_ptr(&buf);
  580|  9.97k|          curlx_str_passblanks(&lineptr);
  581|       |
  582|       |          /* Skip empty or commented lines, since we know the line will have
  583|       |             a trailing newline from Curl_get_line we can treat length 1 as
  584|       |             empty. */
  585|  9.97k|          if((*lineptr == '#') || strlen(lineptr) <= 1)
  ------------------
  |  Branch (585:14): [True: 0, False: 9.97k]
  |  Branch (585:35): [True: 9.97k, False: 0]
  ------------------
  586|  9.97k|            continue;
  587|       |
  588|      0|          hsts_add(h, lineptr);
  589|      0|        }
  590|  9.97k|      } while(!result && !eof);
  ------------------
  |  Branch (590:15): [True: 9.97k, False: 0]
  |  Branch (590:26): [True: 0, False: 9.97k]
  ------------------
  591|  9.97k|      curlx_dyn_free(&buf); /* free the line buffer */
  592|  9.97k|    }
  593|  9.97k|    curlx_fclose(fp);
  ------------------
  |  |   79|  9.97k|#define curlx_fclose(file)      curl_dbg_fclose(file, __LINE__, __FILE__)
  ------------------
  594|  9.97k|  }
  595|  9.97k|  return result;
  596|  9.97k|}
hsts.c:hsts_pull:
  510|  9.97k|{
  511|       |  /* if the HSTS read callback is set, use it */
  512|  9.97k|  if(data->set.hsts_read) {
  ------------------
  |  Branch (512:6): [True: 0, False: 9.97k]
  ------------------
  513|      0|    CURLSTScode sc;
  514|      0|    DEBUGASSERT(h);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (514:5): [True: 0, False: 0]
  |  Branch (514:5): [True: 0, False: 0]
  ------------------
  515|      0|    do {
  516|      0|      char buffer[MAX_HSTS_HOSTLEN + 1];
  517|      0|      struct curl_hstsentry e;
  518|      0|      e.name = buffer;
  519|      0|      e.namelen = sizeof(buffer) - 1;
  520|      0|      e.includeSubDomains = FALSE; /* default */
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  521|      0|      e.expire[0] = 0;
  522|      0|      e.expire[MAX_HSTS_DATELEN] = 0;
  ------------------
  |  |   43|      0|#define MAX_HSTS_DATELEN 17
  ------------------
  523|      0|      e.name[0] = 0; /* to make it clean */
  524|      0|      e.name[MAX_HSTS_HOSTLEN] = 0;
  ------------------
  |  |   42|      0|#define MAX_HSTS_HOSTLEN 2048
  ------------------
  525|      0|      sc = data->set.hsts_read(data, &e, data->set.hsts_read_userp);
  526|      0|      if(sc == CURLSTS_OK) {
  ------------------
  |  Branch (526:10): [True: 0, False: 0]
  ------------------
  527|      0|        CURLcode result;
  528|      0|        const char *date = e.expire;
  529|      0|        if(!e.name[0] || e.expire[MAX_HSTS_DATELEN] ||
  ------------------
  |  |   43|      0|#define MAX_HSTS_DATELEN 17
  ------------------
  |  Branch (529:12): [True: 0, False: 0]
  |  Branch (529:26): [True: 0, False: 0]
  ------------------
  530|      0|           e.name[MAX_HSTS_HOSTLEN])
  ------------------
  |  |   42|      0|#define MAX_HSTS_HOSTLEN 2048
  ------------------
  |  Branch (530:12): [True: 0, False: 0]
  ------------------
  531|       |          /* bail out if no name was stored or if a null-terminator is gone */
  532|      0|          return CURLE_BAD_FUNCTION_ARGUMENT;
  533|      0|        if(!date[0])
  ------------------
  |  Branch (533:12): [True: 0, False: 0]
  ------------------
  534|      0|          date = UNLIMITED;
  ------------------
  |  |   44|      0|#define UNLIMITED        "unlimited"
  ------------------
  535|      0|        result = hsts_add_host_expire(h, e.name, strlen(e.name),
  536|      0|                                      date, strlen(date),
  537|       |                                      /* bitfield to bool conversion: */
  538|      0|                                      e.includeSubDomains ? TRUE : FALSE);
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
                                                    e.includeSubDomains ? TRUE : FALSE);
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  |  Branch (538:39): [True: 0, False: 0]
  ------------------
  539|      0|        if(result)
  ------------------
  |  Branch (539:12): [True: 0, False: 0]
  ------------------
  540|      0|          return result;
  541|      0|      }
  542|      0|      else if(sc == CURLSTS_FAIL)
  ------------------
  |  Branch (542:15): [True: 0, False: 0]
  ------------------
  543|      0|        return CURLE_ABORTED_BY_CALLBACK;
  544|      0|    } while(sc == CURLSTS_OK);
  ------------------
  |  Branch (544:13): [True: 0, False: 0]
  ------------------
  545|      0|  }
  546|  9.97k|  return CURLE_OK;
  547|  9.97k|}

Curl_http_neg_init:
   89|  9.97k|{
   90|  9.97k|  memset(neg, 0, sizeof(*neg));
   91|  9.97k|  neg->accept_09 = data->set.http09_allowed;
   92|  9.97k|  switch(data->set.httpwant) {
   93|     15|  case CURL_HTTP_VERSION_1_0:
  ------------------
  |  | 2339|     15|#define CURL_HTTP_VERSION_1_0   1L /* please use HTTP 1.0 in the request */
  ------------------
  |  Branch (93:3): [True: 15, False: 9.96k]
  ------------------
   94|     15|    neg->wanted = neg->allowed = (CURL_HTTP_V1x);
  ------------------
  |  |   40|     15|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
   95|     15|    neg->only_10 = TRUE;
  ------------------
  |  | 1053|     15|#define TRUE true
  ------------------
   96|     15|    break;
   97|     15|  case CURL_HTTP_VERSION_1_1:
  ------------------
  |  | 2340|     15|#define CURL_HTTP_VERSION_1_1   2L /* please use HTTP 1.1 in the request */
  ------------------
  |  Branch (97:3): [True: 15, False: 9.96k]
  ------------------
   98|     15|    neg->wanted = neg->allowed = (CURL_HTTP_V1x);
  ------------------
  |  |   40|     15|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
   99|     15|    break;
  100|     91|  case CURL_HTTP_VERSION_2_0:
  ------------------
  |  | 2341|     91|#define CURL_HTTP_VERSION_2_0   3L /* please use HTTP 2 in the request */
  ------------------
  |  Branch (100:3): [True: 91, False: 9.88k]
  ------------------
  101|     91|    neg->wanted = neg->allowed = (CURL_HTTP_V1x | CURL_HTTP_V2x);
  ------------------
  |  |   40|     91|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
                  neg->wanted = neg->allowed = (CURL_HTTP_V1x | CURL_HTTP_V2x);
  ------------------
  |  |   41|     91|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
  102|     91|    neg->h2_upgrade = TRUE;
  ------------------
  |  | 1053|     91|#define TRUE true
  ------------------
  103|     91|    break;
  104|      2|  case CURL_HTTP_VERSION_2TLS:
  ------------------
  |  | 2342|      2|#define CURL_HTTP_VERSION_2TLS  4L /* use version 2 for HTTPS, version 1.1 for
  ------------------
  |  Branch (104:3): [True: 2, False: 9.97k]
  ------------------
  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|  4.41k|  case CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE:
  ------------------
  |  | 2344|  4.41k|#define CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE 5L /* please use HTTP 2 without
  ------------------
  |  Branch (107:3): [True: 4.41k, False: 5.55k]
  ------------------
  108|  4.41k|    neg->wanted = neg->allowed = (CURL_HTTP_V2x);
  ------------------
  |  |   41|  4.41k|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
  109|  4.41k|    data->state.http_neg.h2_prior_knowledge = TRUE;
  ------------------
  |  | 1053|  4.41k|#define TRUE true
  ------------------
  110|  4.41k|    break;
  111|      0|  case CURL_HTTP_VERSION_3:
  ------------------
  |  | 2346|      0|#define CURL_HTTP_VERSION_3     30L /* Use HTTP/3, fallback to HTTP/2 or
  ------------------
  |  Branch (111:3): [True: 0, False: 9.97k]
  ------------------
  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:
  ------------------
  |  | 2350|      0|#define CURL_HTTP_VERSION_3ONLY 31L /* Use HTTP/3 without fallback. For
  ------------------
  |  Branch (115:3): [True: 0, False: 9.97k]
  ------------------
  116|      0|    neg->wanted = neg->allowed = (CURL_HTTP_V3x);
  ------------------
  |  |   42|      0|#define CURL_HTTP_V3x   (1 << 2)
  ------------------
  117|      0|    break;
  118|  5.43k|  case CURL_HTTP_VERSION_NONE:
  ------------------
  |  | 2336|  5.43k|#define CURL_HTTP_VERSION_NONE  0L /* setting this means we do not care, and
  ------------------
  |  Branch (118:3): [True: 5.43k, False: 4.53k]
  ------------------
  119|  5.43k|  default:
  ------------------
  |  Branch (119:3): [True: 0, False: 9.97k]
  ------------------
  120|  5.43k|    neg->wanted = (CURL_HTTP_V1x | CURL_HTTP_V2x);
  ------------------
  |  |   40|  5.43k|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
                  neg->wanted = (CURL_HTTP_V1x | CURL_HTTP_V2x);
  ------------------
  |  |   41|  5.43k|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
  121|  5.43k|    neg->allowed = (CURL_HTTP_V1x | CURL_HTTP_V2x | CURL_HTTP_V3x);
  ------------------
  |  |   40|  5.43k|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
                  neg->allowed = (CURL_HTTP_V1x | CURL_HTTP_V2x | CURL_HTTP_V3x);
  ------------------
  |  |   41|  5.43k|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
                  neg->allowed = (CURL_HTTP_V1x | CURL_HTTP_V2x | CURL_HTTP_V3x);
  ------------------
  |  |   42|  5.43k|#define CURL_HTTP_V3x   (1 << 2)
  ------------------
  122|  5.43k|    break;
  123|  9.97k|  }
  124|  9.97k|}
Curl_http_setup_conn:
  128|  14.2k|{
  129|       |  /* allocate the HTTP-specific struct for the Curl_easy, only to survive
  130|       |     during this request */
  131|  14.2k|  if(data->state.http_neg.wanted == CURL_HTTP_V3x) {
  ------------------
  |  |   42|  14.2k|#define CURL_HTTP_V3x   (1 << 2)
  ------------------
  |  Branch (131:6): [True: 0, False: 14.2k]
  ------------------
  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|  14.2k|  return CURLE_OK;
  138|  14.2k|}
Curl_copy_header_value:
  228|  6.77k|{
  229|  6.77k|  struct Curl_str out;
  230|       |
  231|       |  /* find the end of the header name */
  232|  6.77k|  if(!curlx_str_until(&header, &out, MAX_HTTP_RESP_HEADER_SIZE, ':') &&
  ------------------
  |  |  157|  6.77k|#define MAX_HTTP_RESP_HEADER_SIZE (300 * 1024)
  ------------------
  |  Branch (232:6): [True: 6.77k, False: 0]
  ------------------
  233|  6.77k|     !curlx_str_single(&header, ':')) {
  ------------------
  |  Branch (233:6): [True: 6.77k, False: 0]
  ------------------
  234|  6.77k|    curlx_str_untilnl(&header, &out, MAX_HTTP_RESP_HEADER_SIZE);
  ------------------
  |  |  157|  6.77k|#define MAX_HTTP_RESP_HEADER_SIZE (300 * 1024)
  ------------------
  235|  6.77k|    curlx_str_trimblanks(&out);
  236|  6.77k|    return curlx_memdup0(curlx_str(&out), curlx_strlen(&out));
  ------------------
  |  |   49|  6.77k|#define curlx_str(x)    ((x)->str)
  ------------------
                  return curlx_memdup0(curlx_str(&out), curlx_strlen(&out));
  ------------------
  |  |   50|  6.77k|#define curlx_strlen(x) ((x)->len)
  ------------------
  237|  6.77k|  }
  238|       |  /* bad input, should never happen */
  239|      0|  DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (239:3): [Folded, False: 0]
  |  Branch (239:3): [Folded, False: 0]
  ------------------
  240|      0|  return NULL;
  241|      0|}
Curl_http_auth_act:
  556|  5.18k|{
  557|  5.18k|  struct connectdata *conn = data->conn;
  558|  5.18k|  bool pickhost = FALSE;
  ------------------
  |  | 1056|  5.18k|#define FALSE false
  ------------------
  559|  5.18k|  bool pickproxy = FALSE;
  ------------------
  |  | 1056|  5.18k|#define FALSE false
  ------------------
  560|  5.18k|  CURLcode result = CURLE_OK;
  561|  5.18k|  unsigned long authmask = ~0UL;
  562|       |
  563|  5.18k|  if(!Curl_creds_has_oauth_bearer(data->state.creds))
  ------------------
  |  |   79|  5.18k|#define Curl_creds_has_oauth_bearer(c)   ((c) && (c)->oauth_bearer[0])
  |  |  ------------------
  |  |  |  Branch (79:43): [True: 712, False: 4.47k]
  |  |  |  Branch (79:50): [True: 0, False: 712]
  |  |  ------------------
  ------------------
  564|  5.18k|    authmask &= (unsigned long)~CURLAUTH_BEARER;
  ------------------
  |  |  844|  5.18k|#define CURLAUTH_BEARER       (((unsigned long)1) << 6)
  ------------------
  565|       |
  566|  5.18k|  if(100 <= data->req.httpcode && data->req.httpcode <= 199)
  ------------------
  |  Branch (566:6): [True: 5.18k, False: 0]
  |  Branch (566:35): [True: 0, False: 5.18k]
  ------------------
  567|       |    /* this is a transient response code, ignore */
  568|      0|    return CURLE_OK;
  569|       |
  570|  5.18k|  if(data->state.authproblem)
  ------------------
  |  Branch (570:6): [True: 0, False: 5.18k]
  ------------------
  571|      0|    return data->set.http_fail_on_error ? CURLE_HTTP_RETURNED_ERROR : CURLE_OK;
  ------------------
  |  Branch (571:12): [True: 0, False: 0]
  ------------------
  572|       |
  573|  5.18k|  if(data->state.creds &&
  ------------------
  |  Branch (573:6): [True: 712, False: 4.47k]
  ------------------
  574|    712|     ((data->req.httpcode == 401) ||
  ------------------
  |  Branch (574:7): [True: 3, False: 709]
  ------------------
  575|    709|      (data->req.authneg && data->req.httpcode < 300))) {
  ------------------
  |  Branch (575:8): [True: 0, False: 709]
  |  Branch (575:29): [True: 0, False: 0]
  ------------------
  576|      3|    pickhost = pickoneauth(&data->state.authhost, authmask, data->state.creds);
  577|      3|    if(!pickhost)
  ------------------
  |  Branch (577:8): [True: 3, False: 0]
  ------------------
  578|      3|      data->state.authproblem = TRUE;
  ------------------
  |  | 1053|      3|#define TRUE true
  ------------------
  579|      0|    else
  580|      0|      data->info.httpauthpicked = data->state.authhost.picked;
  581|      3|    if(data->state.authhost.picked == CURLAUTH_NTLM &&
  ------------------
  |  |  838|      6|#define CURLAUTH_NTLM         (((unsigned long)1) << 3)
  ------------------
  |  Branch (581:8): [True: 0, False: 3]
  ------------------
  582|      0|       (data->req.httpversion_sent > 11)) {
  ------------------
  |  Branch (582:8): [True: 0, False: 0]
  ------------------
  583|      0|      infof(data, "Forcing HTTP/1.1 for NTLM");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  584|      0|      connclose(conn);
  ------------------
  |  |   88|      0|#define connclose(x)   Curl_conncontrol((x), CONNCTRL_CONN_CLOSE)
  |  |  ------------------
  |  |  |  |   82|      0|#define CONNCTRL_CONN_CLOSE      1
  |  |  ------------------
  ------------------
  585|      0|      data->state.http_neg.wanted = CURL_HTTP_V1x;
  ------------------
  |  |   40|      0|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
  586|      0|      data->state.http_neg.allowed = CURL_HTTP_V1x;
  ------------------
  |  |   40|      0|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
  587|      0|    }
  588|      3|  }
  589|  5.18k|#ifndef CURL_DISABLE_PROXY
  590|  5.18k|  if(conn->http_proxy.creds &&
  ------------------
  |  Branch (590:6): [True: 0, False: 5.18k]
  ------------------
  591|      0|     ((data->req.httpcode == 407) ||
  ------------------
  |  Branch (591:7): [True: 0, False: 0]
  ------------------
  592|      0|      (data->req.authneg && data->req.httpcode < 300))) {
  ------------------
  |  Branch (592:8): [True: 0, False: 0]
  |  Branch (592:29): [True: 0, False: 0]
  ------------------
  593|      0|    pickproxy = pickoneauth(&data->state.authproxy,
  594|      0|                            authmask & ~CURLAUTH_BEARER,
  ------------------
  |  |  844|      0|#define CURLAUTH_BEARER       (((unsigned long)1) << 6)
  ------------------
  595|      0|                            conn->http_proxy.creds);
  596|      0|    if(!pickproxy)
  ------------------
  |  Branch (596:8): [True: 0, False: 0]
  ------------------
  597|      0|      data->state.authproblem = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  598|      0|    else
  599|      0|      data->info.proxyauthpicked = data->state.authproxy.picked;
  600|      0|  }
  601|  5.18k|#endif
  602|       |
  603|  5.18k|  if(pickhost || pickproxy) {
  ------------------
  |  Branch (603:6): [True: 0, False: 5.18k]
  |  Branch (603:18): [True: 0, False: 5.18k]
  ------------------
  604|      0|    result = http_perhapsrewind(data, conn);
  605|      0|    if(result)
  ------------------
  |  Branch (605:8): [True: 0, False: 0]
  ------------------
  606|      0|      return result;
  607|       |
  608|       |    /* In case this is GSS auth, the newurl field is already allocated so
  609|       |       we must make sure to free it before allocating a new one. As figured
  610|       |       out in bug #2284386 */
  611|      0|    curlx_free(data->req.newurl);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  612|       |    /* clone URL */
  613|      0|    data->req.newurl = Curl_bufref_dup(&data->state.url);
  ------------------
  |  |   49|      0|#define Curl_bufref_dup(x) curlx_strdup(Curl_bufref_ptr(x))
  |  |  ------------------
  |  |  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  ------------------
  614|      0|    if(!data->req.newurl)
  ------------------
  |  Branch (614:8): [True: 0, False: 0]
  ------------------
  615|      0|      return CURLE_OUT_OF_MEMORY;
  616|      0|  }
  617|  5.18k|  else if((data->req.httpcode < 300) &&
  ------------------
  |  Branch (617:11): [True: 398, False: 4.78k]
  ------------------
  618|    398|          !data->state.authhost.done &&
  ------------------
  |  Branch (618:11): [True: 0, False: 398]
  ------------------
  619|      0|          data->req.authneg) {
  ------------------
  |  Branch (619:11): [True: 0, False: 0]
  ------------------
  620|       |    /* no (known) authentication available,
  621|       |       authentication is not "done" yet and
  622|       |       no authentication seems to be required and
  623|       |       we did not try HEAD or GET */
  624|      0|    if((data->state.httpreq != HTTPREQ_GET) &&
  ------------------
  |  Branch (624:8): [True: 0, False: 0]
  ------------------
  625|      0|       (data->state.httpreq != HTTPREQ_HEAD)) {
  ------------------
  |  Branch (625:8): [True: 0, False: 0]
  ------------------
  626|       |      /* clone URL */
  627|      0|      data->req.newurl = Curl_bufref_dup(&data->state.url);
  ------------------
  |  |   49|      0|#define Curl_bufref_dup(x) curlx_strdup(Curl_bufref_ptr(x))
  |  |  ------------------
  |  |  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  ------------------
  628|      0|      if(!data->req.newurl)
  ------------------
  |  Branch (628:10): [True: 0, False: 0]
  ------------------
  629|      0|        return CURLE_OUT_OF_MEMORY;
  630|      0|      data->state.authhost.done = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  631|      0|    }
  632|      0|  }
  633|  5.18k|  if(http_should_fail(data, data->req.httpcode)) {
  ------------------
  |  Branch (633:6): [True: 1, False: 5.18k]
  ------------------
  634|      1|    failf(data, "The requested URL returned error: %d",
  ------------------
  |  |   62|      1|#define failf Curl_failf
  ------------------
  635|      1|          data->req.httpcode);
  636|      1|    result = CURLE_HTTP_RETURNED_ERROR;
  637|      1|  }
  638|       |
  639|  5.18k|  return result;
  640|  5.18k|}
Curl_http_output_auth:
  797|  13.0k|{
  798|  13.0k|  CURLcode result = CURLE_OK;
  799|  13.0k|  struct auth *authhost;
  800|  13.0k|  struct auth *authproxy;
  801|  13.0k|  const char *path_and_query = path;
  802|  13.0k|  char *tmp_str = NULL;
  803|       |
  804|  13.0k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|  13.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (804:3): [True: 0, False: 13.0k]
  |  Branch (804:3): [True: 13.0k, False: 0]
  ------------------
  805|  13.0k|  authhost = &data->state.authhost;
  806|  13.0k|  authproxy = &data->state.authproxy;
  807|       |
  808|  13.0k|  if(
  809|  13.0k|#ifndef CURL_DISABLE_PROXY
  810|  13.0k|    (!conn->http_proxy.peer || !conn->http_proxy.creds) &&
  ------------------
  |  Branch (810:6): [True: 13.0k, False: 0]
  |  Branch (810:32): [True: 0, False: 0]
  ------------------
  811|  13.0k|#endif
  812|       |#ifdef USE_SPNEGO
  813|       |    !(authhost->want & CURLAUTH_NEGOTIATE) &&
  814|       |    !(authproxy->want & CURLAUTH_NEGOTIATE) &&
  815|       |#endif
  816|       |#ifndef CURL_DISABLE_HTTPSIG
  817|       |    !(authhost->want & CURLAUTH_HTTPSIG) &&
  818|       |#endif
  819|  13.0k|    !data->state.creds) {
  ------------------
  |  Branch (819:5): [True: 12.1k, False: 976]
  ------------------
  820|       |    /* no authentication with no user or password */
  821|  12.1k|    authhost->done = TRUE;
  ------------------
  |  | 1053|  12.1k|#define TRUE true
  ------------------
  822|  12.1k|    authproxy->done = TRUE;
  ------------------
  |  | 1053|  12.1k|#define TRUE true
  ------------------
  823|  12.1k|    result = CURLE_OK;
  824|  12.1k|    goto out;
  825|  12.1k|  }
  826|       |
  827|    976|  if(query) {
  ------------------
  |  Branch (827:6): [True: 98, False: 878]
  ------------------
  828|     98|    tmp_str = curl_maprintf("%s?%s", path, query);
  829|     98|    if(!tmp_str) {
  ------------------
  |  Branch (829:8): [True: 0, False: 98]
  ------------------
  830|      0|      result = CURLE_OUT_OF_MEMORY;
  831|      0|      goto out;
  832|      0|    }
  833|     98|    path_and_query = tmp_str;
  834|     98|  }
  835|       |
  836|    976|  if(authhost->want && !authhost->picked)
  ------------------
  |  Branch (836:6): [True: 976, False: 0]
  |  Branch (836:24): [True: 320, False: 656]
  ------------------
  837|       |    /* The app has selected one or more methods, but none has been picked
  838|       |       so far by a server round-trip. Then we set the picked one to the
  839|       |       want one, and if this is one single bit it will be used instantly. */
  840|    320|    authhost->picked = authhost->want;
  841|       |
  842|    976|  if(authproxy->want && !authproxy->picked)
  ------------------
  |  Branch (842:6): [True: 976, False: 0]
  |  Branch (842:25): [True: 320, False: 656]
  ------------------
  843|       |    /* The app has selected one or more methods, but none has been picked so
  844|       |       far by a proxy round-trip. Then we set the picked one to the want one,
  845|       |       and if this is one single bit it will be used instantly. */
  846|    320|    authproxy->picked = authproxy->want;
  847|       |
  848|    976|#ifndef CURL_DISABLE_PROXY
  849|       |  /* Send proxy authentication header if needed */
  850|    976|  if(conn->bits.origin_is_proxy || is_connect) {
  ------------------
  |  Branch (850:6): [True: 0, False: 976]
  |  Branch (850:36): [True: 0, False: 976]
  ------------------
  851|      0|    result = output_auth_headers(data, conn, authproxy, request,
  852|      0|                                 path_and_query, TRUE);
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  853|      0|    if(result)
  ------------------
  |  Branch (853:8): [True: 0, False: 0]
  ------------------
  854|      0|      goto out;
  855|      0|  }
  856|    976|  else
  857|       |#else
  858|       |  (void)is_connect;
  859|       |#endif /* CURL_DISABLE_PROXY */
  860|       |    /* we have no proxy so let's pretend we are done authenticating
  861|       |       with it */
  862|    976|    authproxy->done = TRUE;
  ------------------
  |  | 1053|    976|#define TRUE true
  ------------------
  863|       |
  864|       |  /* Either we have credentials for the origin we talk to or
  865|       |     performing authentication is allowed here */
  866|    976|  if(data->state.creds || Curl_auth_allowed_to_host(data))
  ------------------
  |  Branch (866:6): [True: 976, False: 0]
  |  Branch (866:27): [True: 0, False: 0]
  ------------------
  867|    976|    result = output_auth_headers(data, conn, authhost, request,
  868|    976|                                 path_and_query, FALSE);
  ------------------
  |  | 1056|    976|#define FALSE false
  ------------------
  869|      0|  else
  870|      0|    authhost->done = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  871|       |
  872|    976|  if(((authhost->multipass && !authhost->done) ||
  ------------------
  |  Branch (872:8): [True: 0, False: 976]
  |  Branch (872:31): [True: 0, False: 0]
  ------------------
  873|    976|      (authproxy->multipass && !authproxy->done)) &&
  ------------------
  |  Branch (873:8): [True: 0, False: 976]
  |  Branch (873:32): [True: 0, False: 0]
  ------------------
  874|      0|     (httpreq != HTTPREQ_GET) &&
  ------------------
  |  Branch (874:6): [True: 0, False: 0]
  ------------------
  875|      0|     (httpreq != HTTPREQ_HEAD)) {
  ------------------
  |  Branch (875:6): [True: 0, False: 0]
  ------------------
  876|       |    /* Auth is required and we are not authenticated yet. Make a PUT or POST
  877|       |       with content-length zero as a "probe". */
  878|      0|    data->req.authneg = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  879|      0|  }
  880|    976|  else
  881|    976|    data->req.authneg = FALSE;
  ------------------
  |  | 1056|    976|#define FALSE false
  ------------------
  882|       |
  883|  13.0k|out:
  884|  13.0k|  curlx_free(tmp_str);
  ------------------
  |  | 1482|  13.0k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  885|  13.0k|  return result;
  886|    976|}
Curl_http_follow:
 1169|  5.35k|{
 1170|  5.35k|  bool disallowport = FALSE;
  ------------------
  |  | 1056|  5.35k|#define FALSE false
  ------------------
 1171|  5.35k|  bool reachedmax = FALSE;
  ------------------
  |  | 1056|  5.35k|#define FALSE false
  ------------------
 1172|  5.35k|  char *follow_url = NULL;
 1173|  5.35k|  CURLUcode uc;
 1174|  5.35k|  CURLcode rewind_result;
 1175|  5.35k|  bool switch_to_get = FALSE;
  ------------------
  |  | 1056|  5.35k|#define FALSE false
  ------------------
 1176|       |
 1177|  5.35k|  DEBUGASSERT(type != FOLLOW_NONE);
  ------------------
  |  | 1083|  5.35k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1177:3): [True: 0, False: 5.35k]
  |  Branch (1177:3): [True: 5.35k, False: 0]
  ------------------
 1178|       |
 1179|  5.35k|  if(type != FOLLOW_FAKE)
  ------------------
  |  Branch (1179:6): [True: 5.00k, False: 353]
  ------------------
 1180|  5.00k|    data->state.requests++; /* count all real follows */
 1181|  5.35k|  if(type == FOLLOW_REDIR) {
  ------------------
  |  Branch (1181:6): [True: 4.38k, False: 968]
  ------------------
 1182|  4.38k|    if((data->set.maxredirs != -1) &&
  ------------------
  |  Branch (1182:8): [True: 4.35k, False: 34]
  ------------------
 1183|  4.35k|       (data->state.followlocation >= data->set.maxredirs)) {
  ------------------
  |  Branch (1183:8): [True: 9, False: 4.34k]
  ------------------
 1184|      9|      reachedmax = TRUE;
  ------------------
  |  | 1053|      9|#define TRUE true
  ------------------
 1185|      9|      type = FOLLOW_FAKE; /* switch to fake to store the would-be-redirected
 1186|       |                             to URL */
 1187|      9|    }
 1188|  4.37k|    else {
 1189|  4.37k|      data->state.followlocation++; /* count redirect-followings, including
 1190|       |                                       auth reloads */
 1191|       |
 1192|  4.37k|      if(data->set.http_auto_referer) {
  ------------------
  |  Branch (1192:10): [True: 852, False: 3.52k]
  ------------------
 1193|    852|        CURLU *u;
 1194|    852|        char *referer = NULL;
 1195|       |
 1196|       |        /* We are asked to automatically set the previous URL as the referer
 1197|       |           when we get the next URL. We pick the ->url field, which may or may
 1198|       |           not be 100% correct */
 1199|    852|        Curl_bufref_free(&data->state.referer);
 1200|       |
 1201|       |        /* Make a copy of the URL without credentials and fragment */
 1202|    852|        u = curl_url();
 1203|    852|        if(!u)
  ------------------
  |  Branch (1203:12): [True: 0, False: 852]
  ------------------
 1204|      0|          return CURLE_OUT_OF_MEMORY;
 1205|       |
 1206|    852|        uc = curl_url_set(u, CURLUPART_URL,
 1207|    852|                          Curl_bufref_ptr(&data->state.url), 0);
 1208|    852|        if(!uc)
  ------------------
  |  Branch (1208:12): [True: 851, False: 1]
  ------------------
 1209|    851|          uc = curl_url_set(u, CURLUPART_FRAGMENT, NULL, 0);
 1210|    852|        if(!uc)
  ------------------
  |  Branch (1210:12): [True: 851, False: 1]
  ------------------
 1211|    851|          uc = curl_url_set(u, CURLUPART_USER, NULL, 0);
 1212|    852|        if(!uc)
  ------------------
  |  Branch (1212:12): [True: 851, False: 1]
  ------------------
 1213|    851|          uc = curl_url_set(u, CURLUPART_PASSWORD, NULL, 0);
 1214|    852|        if(!uc)
  ------------------
  |  Branch (1214:12): [True: 851, False: 1]
  ------------------
 1215|    851|          uc = curl_url_get(u, CURLUPART_URL, &referer, 0);
 1216|       |
 1217|    852|        curl_url_cleanup(u);
 1218|       |
 1219|    852|        if(uc || !referer)
  ------------------
  |  Branch (1219:12): [True: 1, False: 851]
  |  Branch (1219:18): [True: 0, False: 851]
  ------------------
 1220|      1|          return CURLE_OUT_OF_MEMORY;
 1221|       |
 1222|    851|        Curl_bufref_set(&data->state.referer, referer, 0, curl_free);
 1223|    851|      }
 1224|  4.37k|    }
 1225|  4.38k|  }
 1226|       |
 1227|  5.35k|  if((type != FOLLOW_RETRY) &&
  ------------------
  |  Branch (1227:6): [True: 4.74k, False: 615]
  ------------------
 1228|  4.74k|     (data->req.httpcode != 401) && (data->req.httpcode != 407) &&
  ------------------
  |  Branch (1228:6): [True: 4.72k, False: 13]
  |  Branch (1228:37): [True: 4.72k, False: 2]
  ------------------
 1229|  4.72k|     Curl_is_absolute_url(newurl, NULL, 0, FALSE)) {
  ------------------
  |  | 1056|  4.72k|#define FALSE false
  ------------------
  |  Branch (1229:6): [True: 157, False: 4.56k]
  ------------------
 1230|       |    /* If this is not redirect due to a 401 or 407 response and an absolute
 1231|       |       URL: do not allow a custom port number */
 1232|    157|    disallowport = TRUE;
  ------------------
  |  | 1053|    157|#define TRUE true
  ------------------
 1233|    157|  }
 1234|       |
 1235|  5.35k|  DEBUGASSERT(data->state.uh);
  ------------------
  |  | 1083|  5.35k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1235:3): [True: 0, False: 5.35k]
  |  Branch (1235:3): [True: 5.35k, False: 0]
  ------------------
 1236|  5.35k|  uc = curl_url_set(data->state.uh, CURLUPART_URL, newurl, (unsigned int)
 1237|  5.35k|                    ((type == FOLLOW_FAKE) ? CURLU_NON_SUPPORT_SCHEME :
  ------------------
  |  |   91|    362|#define CURLU_NON_SUPPORT_SCHEME (1 << 3) /* allow non-supported scheme */
  ------------------
  |  Branch (1237:22): [True: 362, False: 4.99k]
  ------------------
 1238|  5.35k|                     ((type == FOLLOW_REDIR) ? CURLU_URLENCODE : 0) |
  ------------------
  |  |   95|  4.37k|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
  |  Branch (1238:23): [True: 4.37k, False: 615]
  ------------------
 1239|  4.99k|                     CURLU_ALLOW_SPACE |
  ------------------
  |  |  100|  4.99k|#define CURLU_ALLOW_SPACE (1 << 11)       /* Allow spaces in the URL */
  ------------------
 1240|  4.99k|                     (data->set.path_as_is ? CURLU_PATH_AS_IS : 0)));
  ------------------
  |  |   92|      0|#define CURLU_PATH_AS_IS (1 << 4)         /* leave dot sequences */
  ------------------
  |  Branch (1240:23): [True: 0, False: 4.99k]
  ------------------
 1241|  5.35k|  if(uc) {
  ------------------
  |  Branch (1241:6): [True: 101, False: 5.25k]
  ------------------
 1242|    101|    if((uc == CURLUE_OUT_OF_MEMORY) || (type != FOLLOW_FAKE)) {
  ------------------
  |  Branch (1242:8): [True: 0, False: 101]
  |  Branch (1242:40): [True: 28, False: 73]
  ------------------
 1243|     28|      failf(data, "The redirect target URL could not be parsed: %s",
  ------------------
  |  |   62|     28|#define failf Curl_failf
  ------------------
 1244|     28|            curl_url_strerror(uc));
 1245|     28|      return Curl_uc_to_curlcode(uc);
 1246|     28|    }
 1247|       |
 1248|       |    /* the URL could not be parsed for some reason, but since this is FAKE
 1249|       |       mode, duplicate the field as-is */
 1250|     73|    follow_url = curlx_strdup(newurl);
  ------------------
  |  | 1476|     73|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
 1251|     73|    if(!follow_url)
  ------------------
  |  Branch (1251:8): [True: 0, False: 73]
  ------------------
 1252|      0|      return CURLE_OUT_OF_MEMORY;
 1253|     73|  }
 1254|  5.25k|  else {
 1255|  5.25k|    CURLU *u = curl_url();
 1256|  5.25k|    if(!u)
  ------------------
  |  Branch (1256:8): [True: 0, False: 5.25k]
  ------------------
 1257|      0|      return CURLE_OUT_OF_MEMORY;
 1258|  5.25k|    uc = curl_url_set(u, CURLUPART_URL,
 1259|  5.25k|                      Curl_bufref_ptr(&data->state.url),
 1260|  5.25k|                      CURLU_URLENCODE | CURLU_ALLOW_SPACE);
  ------------------
  |  |   95|  5.25k|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
                                    CURLU_URLENCODE | CURLU_ALLOW_SPACE);
  ------------------
  |  |  100|  5.25k|#define CURLU_ALLOW_SPACE (1 << 11)       /* Allow spaces in the URL */
  ------------------
 1261|  5.25k|    if(!uc)
  ------------------
  |  Branch (1261:8): [True: 5.24k, False: 5]
  ------------------
 1262|  5.24k|      uc = curl_url_get(data->state.uh, CURLUPART_URL, &follow_url, 0);
 1263|  5.25k|    if(uc) {
  ------------------
  |  Branch (1263:8): [True: 5, False: 5.24k]
  ------------------
 1264|      5|      curl_url_cleanup(u);
 1265|      5|      return Curl_uc_to_curlcode(uc);
 1266|      5|    }
 1267|       |
 1268|  5.24k|#ifndef CURL_DISABLE_DIGEST_AUTH
 1269|  5.24k|    {
 1270|  5.24k|      bool same_origin = Curl_url_same_origin(u, data->state.uh);
 1271|  5.24k|      curl_url_cleanup(u);
 1272|  5.24k|      if(!same_origin)
  ------------------
  |  Branch (1272:10): [True: 130, False: 5.11k]
  ------------------
 1273|    130|        Curl_auth_digest_cleanup(&data->state.digest);
 1274|  5.24k|    }
 1275|       |#else
 1276|       |    curl_url_cleanup(u);
 1277|       |#endif
 1278|  5.24k|  }
 1279|  5.32k|  DEBUGASSERT(follow_url);
  ------------------
  |  | 1083|  5.32k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1279:3): [True: 0, False: 5.32k]
  |  Branch (1279:3): [True: 5.32k, False: 0]
  ------------------
 1280|       |
 1281|  5.32k|  if(type == FOLLOW_FAKE) {
  ------------------
  |  Branch (1281:6): [True: 361, False: 4.96k]
  ------------------
 1282|       |    /* we are only figuring out the new URL if we would have followed locations
 1283|       |       but now we are done so we can get out! */
 1284|    361|    data->info.wouldredirect = follow_url;
 1285|       |
 1286|    361|    if(reachedmax) {
  ------------------
  |  Branch (1286:8): [True: 9, False: 352]
  ------------------
 1287|      9|      failf(data, "Maximum (%d) redirects followed", data->set.maxredirs);
  ------------------
  |  |   62|      9|#define failf Curl_failf
  ------------------
 1288|      9|      return CURLE_TOO_MANY_REDIRECTS;
 1289|      9|    }
 1290|    352|    return CURLE_OK;
 1291|    361|  }
 1292|       |
 1293|  4.96k|  if(disallowport)
  ------------------
  |  Branch (1293:6): [True: 54, False: 4.90k]
  ------------------
 1294|     54|    data->state.allow_port = FALSE;
  ------------------
  |  | 1056|     54|#define FALSE false
  ------------------
 1295|       |
 1296|  4.96k|  Curl_bufref_set(&data->state.url, follow_url, 0, curl_free);
 1297|  4.96k|  rewind_result = Curl_req_soft_reset(&data->req, data);
 1298|  4.96k|  infof(data, "Issue another request to this URL: '%s'", follow_url);
  ------------------
  |  |  143|  4.96k|  do {                               \
  |  |  144|  4.96k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|  4.96k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 4.96k, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 4.96k]
  |  |  |  |  ------------------
  |  |  |  |  323|  4.96k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  4.96k|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|  4.96k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 4.96k]
  |  |  ------------------
  ------------------
 1299|  4.96k|  if((data->set.http_follow_mode == CURLFOLLOW_FIRSTONLY) &&
  ------------------
  |  |  186|  4.96k|#define CURLFOLLOW_FIRSTONLY 3L
  ------------------
  |  Branch (1299:6): [True: 0, False: 4.96k]
  ------------------
 1300|      0|     data->set.str[STRING_CUSTOMREQUEST] &&
  ------------------
  |  Branch (1300:6): [True: 0, False: 0]
  ------------------
 1301|      0|     !data->state.http_ignorecustom) {
  ------------------
  |  Branch (1301:6): [True: 0, False: 0]
  ------------------
 1302|      0|    data->state.http_ignorecustom = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1303|      0|    infof(data, "Drop custom request method for next request");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1304|      0|  }
 1305|       |
 1306|       |  /*
 1307|       |   * We get here when the HTTP code is 300-399 (and 401). We need to perform
 1308|       |   * differently based on exactly what return code there was.
 1309|       |   *
 1310|       |   * News from 7.10.6: we can also get here on a 401 or 407, in case we act on
 1311|       |   * an HTTP (proxy-) authentication scheme other than Basic.
 1312|       |   */
 1313|  4.96k|  switch(data->info.httpcode) {
 1314|       |    /* 401 - Act on a WWW-Authenticate, we keep on moving and do the
 1315|       |       Authorization: XXXX header in the HTTP request code snippet */
 1316|       |    /* 407 - Act on a Proxy-Authenticate, we keep on moving and do the
 1317|       |       Proxy-Authorization: XXXX header in the HTTP request code snippet */
 1318|       |    /* 300 - Multiple Choices */
 1319|       |    /* 306 - Not used */
 1320|       |    /* 307 - Temporary Redirect */
 1321|    190|  default: /* for all above (and the unknown ones) */
  ------------------
  |  Branch (1321:3): [True: 190, False: 4.77k]
  ------------------
 1322|       |    /* Some codes are explicitly mentioned since I have checked RFC2616 and
 1323|       |     * they seem to be OK to POST to.
 1324|       |     */
 1325|    190|    break;
 1326|    650|  case 301: /* Moved Permanently */
  ------------------
  |  Branch (1326:3): [True: 650, False: 4.31k]
  ------------------
 1327|       |    /* (quote from RFC7231, section 6.4.2)
 1328|       |     *
 1329|       |     * Note: For historical reasons, a user agent MAY change the request
 1330|       |     * method from POST to GET for the subsequent request. If this
 1331|       |     * behavior is undesired, the 307 (Temporary Redirect) status code
 1332|       |     * can be used instead.
 1333|       |     *
 1334|       |     * ----
 1335|       |     *
 1336|       |     * Many webservers expect this, so these servers often answers to a POST
 1337|       |     * request with an error page. To be sure that libcurl gets the page that
 1338|       |     * most user agents would get, libcurl has to force GET.
 1339|       |     *
 1340|       |     * This behavior is forbidden by RFC1945 and the obsolete RFC2616, and
 1341|       |     * can be overridden with CURLOPT_POSTREDIR.
 1342|       |     */
 1343|    650|    if(HTTPREQ_IS_POST(data) && !data->set.post301) {
  ------------------
  |  | 1163|  1.30k|  ((data)->state.httpreq == HTTPREQ_POST ||      \
  |  |  ------------------
  |  |  |  Branch (1163:4): [True: 11, False: 639]
  |  |  ------------------
  |  | 1164|    650|   (data)->state.httpreq == HTTPREQ_POST_FORM || \
  |  |  ------------------
  |  |  |  Branch (1164:4): [True: 0, False: 639]
  |  |  ------------------
  |  | 1165|  1.30k|   (data)->state.httpreq == HTTPREQ_POST_MIME)
  |  |  ------------------
  |  |  |  Branch (1165:4): [True: 0, False: 639]
  |  |  ------------------
  ------------------
  |  Branch (1343:33): [True: 11, False: 0]
  ------------------
 1344|     11|      http_switch_to_get(data, 301);
 1345|     11|      switch_to_get = TRUE;
  ------------------
  |  | 1053|     11|#define TRUE true
  ------------------
 1346|     11|    }
 1347|    650|    break;
 1348|     12|  case 302: /* Found */
  ------------------
  |  Branch (1348:3): [True: 12, False: 4.94k]
  ------------------
 1349|       |    /* (quote from RFC7231, section 6.4.3)
 1350|       |     *
 1351|       |     * Note: For historical reasons, a user agent MAY change the request
 1352|       |     * method from POST to GET for the subsequent request. If this
 1353|       |     * behavior is undesired, the 307 (Temporary Redirect) status code
 1354|       |     * can be used instead.
 1355|       |     *
 1356|       |     * ----
 1357|       |     *
 1358|       |     * Many webservers expect this, so these servers often answers to a POST
 1359|       |     * request with an error page. To be sure that libcurl gets the page that
 1360|       |     * most user agents would get, libcurl has to force GET.
 1361|       |     *
 1362|       |     * This behavior is forbidden by RFC1945 and the obsolete RFC2616, and
 1363|       |     * can be overridden with CURLOPT_POSTREDIR.
 1364|       |     */
 1365|     12|    if(HTTPREQ_IS_POST(data) && !data->set.post302) {
  ------------------
  |  | 1163|     24|  ((data)->state.httpreq == HTTPREQ_POST ||      \
  |  |  ------------------
  |  |  |  Branch (1163:4): [True: 1, False: 11]
  |  |  ------------------
  |  | 1164|     12|   (data)->state.httpreq == HTTPREQ_POST_FORM || \
  |  |  ------------------
  |  |  |  Branch (1164:4): [True: 0, False: 11]
  |  |  ------------------
  |  | 1165|     24|   (data)->state.httpreq == HTTPREQ_POST_MIME)
  |  |  ------------------
  |  |  |  Branch (1165:4): [True: 0, False: 11]
  |  |  ------------------
  ------------------
  |  Branch (1365:33): [True: 1, False: 0]
  ------------------
 1366|      1|      http_switch_to_get(data, 302);
 1367|      1|      switch_to_get = TRUE;
  ------------------
  |  | 1053|      1|#define TRUE true
  ------------------
 1368|      1|    }
 1369|     12|    break;
 1370|       |
 1371|     50|  case 303: /* See Other */
  ------------------
  |  Branch (1371:3): [True: 50, False: 4.91k]
  ------------------
 1372|       |    /* 'See Other' location is not the resource but a substitute for the
 1373|       |     * resource. In this case we switch the method to GET/HEAD, unless the
 1374|       |     * method is POST and the user specified to keep it as POST.
 1375|       |     */
 1376|     50|    if(!HTTPREQ_IS_POST(data) || !data->set.post303) {
  ------------------
  |  | 1163|    100|  ((data)->state.httpreq == HTTPREQ_POST ||      \
  |  |  ------------------
  |  |  |  Branch (1163:4): [True: 2, False: 48]
  |  |  ------------------
  |  | 1164|     50|   (data)->state.httpreq == HTTPREQ_POST_FORM || \
  |  |  ------------------
  |  |  |  Branch (1164:4): [True: 0, False: 48]
  |  |  ------------------
  |  | 1165|    100|   (data)->state.httpreq == HTTPREQ_POST_MIME)
  |  |  ------------------
  |  |  |  Branch (1165:4): [True: 0, False: 48]
  |  |  ------------------
  ------------------
  |  Branch (1376:34): [True: 2, False: 0]
  ------------------
 1377|     50|      http_switch_to_get(data, 303);
 1378|     50|      switch_to_get = TRUE;
  ------------------
  |  | 1053|     50|#define TRUE true
  ------------------
 1379|     50|    }
 1380|     50|    break;
 1381|  4.05k|  case 304: /* Not Modified */
  ------------------
  |  Branch (1381:3): [True: 4.05k, False: 903]
  ------------------
 1382|       |    /* 304 means we did a conditional request and it was "Not modified".
 1383|       |     * We should not get any Location: header in this response!
 1384|       |     */
 1385|  4.05k|    break;
 1386|      1|  case 305: /* Use Proxy */
  ------------------
  |  Branch (1386:3): [True: 1, False: 4.96k]
  ------------------
 1387|       |    /* (quote from RFC2616, section 10.3.6):
 1388|       |     * "The requested resource MUST be accessed through the proxy given
 1389|       |     * by the Location field. The Location field gives the URI of the
 1390|       |     * proxy. The recipient is expected to repeat this single request
 1391|       |     * via the proxy. 305 responses MUST only be generated by origin
 1392|       |     * servers."
 1393|       |     */
 1394|      1|    break;
 1395|  4.96k|  }
 1396|       |
 1397|       |  /* When rewind of upload data failed and we are not switching to GET,
 1398|       |   * we need to fail the follow, as we cannot send the data again. */
 1399|  4.96k|  if(rewind_result && !switch_to_get)
  ------------------
  |  Branch (1399:6): [True: 24, False: 4.93k]
  |  Branch (1399:23): [True: 19, False: 5]
  ------------------
 1400|     19|    return rewind_result;
 1401|       |
 1402|  4.94k|  Curl_pgrsTime(data, TIMER_REDIRECT);
 1403|  4.94k|  Curl_pgrsResetTransferSizes(data);
 1404|       |
 1405|  4.94k|  return CURLE_OK;
 1406|  4.96k|}
Curl_compareheader:
 1421|  1.61k|{
 1422|       |  /* RFC2616, section 4.2 says: "Each header field consists of a name followed
 1423|       |   * by a colon (":") and the field value. Field names are case-insensitive.
 1424|       |   * The field value MAY be preceded by any amount of LWS, though a single SP
 1425|       |   * is preferred." */
 1426|       |
 1427|  1.61k|  const char *p;
 1428|  1.61k|  struct Curl_str val;
 1429|  1.61k|  DEBUGASSERT(hlen);
  ------------------
  |  | 1083|  1.61k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1429:3): [True: 0, False: 1.61k]
  |  Branch (1429:3): [True: 1.61k, False: 0]
  ------------------
 1430|  1.61k|  DEBUGASSERT(clen);
  ------------------
  |  | 1083|  1.61k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1430:3): [True: 0, False: 1.61k]
  |  Branch (1430:3): [True: 1.61k, False: 0]
  ------------------
 1431|  1.61k|  DEBUGASSERT(header);
  ------------------
  |  | 1083|  1.61k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1431:3): [True: 0, False: 1.61k]
  |  Branch (1431:3): [True: 1.61k, False: 0]
  ------------------
 1432|  1.61k|  DEBUGASSERT(content);
  ------------------
  |  | 1083|  1.61k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1432:3): [True: 0, False: 1.61k]
  |  Branch (1432:3): [True: 1.61k, False: 0]
  ------------------
 1433|       |
 1434|  1.61k|  if(!curl_strnequal(headerline, header, hlen))
  ------------------
  |  Branch (1434:6): [True: 0, False: 1.61k]
  ------------------
 1435|      0|    return FALSE; /* does not start with header */
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1436|       |
 1437|       |  /* pass the header */
 1438|  1.61k|  p = &headerline[hlen];
 1439|       |
 1440|  1.61k|  if(curlx_str_cspn(&p, &val, "\r\n"))
  ------------------
  |  Branch (1440:6): [True: 0, False: 1.61k]
  ------------------
 1441|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1442|  1.61k|  curlx_str_trimblanks(&val);
 1443|       |
 1444|       |  /* find the content string in the rest of the line */
 1445|  1.61k|  if(curlx_strlen(&val) >= clen) {
  ------------------
  |  |   50|  1.61k|#define curlx_strlen(x) ((x)->len)
  ------------------
  |  Branch (1445:6): [True: 1.61k, False: 0]
  ------------------
 1446|  1.61k|    size_t len;
 1447|  1.61k|    p = curlx_str(&val);
  ------------------
  |  |   49|  1.61k|#define curlx_str(x)    ((x)->str)
  ------------------
 1448|  1.61k|    for(len = curlx_strlen(&val); len >= clen;) {
  ------------------
  |  |   50|  1.61k|#define curlx_strlen(x) ((x)->len)
  ------------------
  |  Branch (1448:35): [True: 1.61k, False: 0]
  ------------------
 1449|  1.61k|      struct Curl_str next;
 1450|  1.61k|      const char *o = p;
 1451|       |      /* after a match there must be a comma, space, newline or null byte */
 1452|  1.61k|      if(curl_strnequal(p, content, clen) &&
  ------------------
  |  Branch (1452:10): [True: 0, False: 1.61k]
  ------------------
 1453|      0|         ((p[clen] == ',') || ISBLANK(p[clen]) || ISNEWLINE(p[clen]) ||
  ------------------
  |  |   43|      0|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (43:22): [True: 0, False: 0]
  |  |  |  Branch (43:38): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                       ((p[clen] == ',') || ISBLANK(p[clen]) || ISNEWLINE(p[clen]) ||
  ------------------
  |  |   48|      0|#define ISNEWLINE(x)    (((x) == '\n') || (x) == '\r')
  |  |  ------------------
  |  |  |  Branch (48:26): [True: 0, False: 0]
  |  |  |  Branch (48:43): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1453:11): [True: 0, False: 0]
  ------------------
 1454|      0|          !p[clen]))
  ------------------
  |  Branch (1454:11): [True: 0, False: 0]
  ------------------
 1455|      0|        return TRUE; /* match! */
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1456|       |      /* advance to the next comma */
 1457|  1.61k|      if(curlx_str_until(&p, &next, len, ',') ||
  ------------------
  |  Branch (1457:10): [True: 1.61k, False: 0]
  ------------------
 1458|      0|         curlx_str_single(&p, ','))
  ------------------
  |  Branch (1458:10): [True: 0, False: 0]
  ------------------
 1459|  1.61k|        break; /* no comma, get out */
 1460|       |
 1461|       |      /* if there are more dummy commas, move over them as well */
 1462|      0|      do
 1463|      0|        curlx_str_passblanks(&p);
 1464|      0|      while(!curlx_str_single(&p, ','));
  ------------------
  |  Branch (1464:13): [True: 0, False: 0]
  ------------------
 1465|       |      /* trailing blanks may move the parsing point past the value end,
 1466|       |         then there is nothing left to match */
 1467|      0|      if((size_t)(p - o) > len)
  ------------------
  |  Branch (1467:10): [True: 0, False: 0]
  ------------------
 1468|      0|        break;
 1469|      0|      len -= (p - o);
 1470|      0|    }
 1471|  1.61k|  }
 1472|  1.61k|  return FALSE; /* no match */
  ------------------
  |  | 1056|  1.61k|#define FALSE false
  ------------------
 1473|  1.61k|}
Curl_http_perform_pollset:
 1626|   135k|{
 1627|   135k|  struct connectdata *conn = data->conn;
 1628|   135k|  CURLcode result = CURLE_OK;
 1629|       |
 1630|   135k|  if(CURL_REQ_WANT_RECV(data)) {
  ------------------
  |  |   40|   135k|#define CURL_REQ_WANT_RECV(d)  ((d)->req.io_flags & REQ_IO_RECV)
  |  |  ------------------
  |  |  |  |   35|   135k|#define REQ_IO_RECV       (1 << 0) /* there is or may be data to read */
  |  |  ------------------
  |  |  |  Branch (40:32): [True: 124k, False: 10.7k]
  |  |  ------------------
  ------------------
 1631|   124k|    result = Curl_pollset_add_in(data, ps, conn->sock[FIRSTSOCKET]);
  ------------------
  |  |  160|   124k|  Curl_pollset_change(data, ps, sock, CURL_POLL_IN, 0)
  |  |  ------------------
  |  |  |  |  283|   124k|#define CURL_POLL_IN     1
  |  |  ------------------
  ------------------
 1632|   124k|  }
 1633|       |
 1634|       |  /* on a "Expect: 100-continue" timed wait, do not poll for outgoing */
 1635|   135k|  if(!result && Curl_req_want_send(data) && !http_exp100_is_waiting(data)) {
  ------------------
  |  Branch (1635:6): [True: 135k, False: 0]
  |  Branch (1635:17): [True: 13.0k, False: 122k]
  |  Branch (1635:45): [True: 9.83k, False: 3.17k]
  ------------------
 1636|  9.83k|    result = Curl_pollset_add_out(data, ps, conn->sock[FIRSTSOCKET]);
  ------------------
  |  |  164|  9.83k|  Curl_pollset_change(data, ps, sock, CURL_POLL_OUT, 0)
  |  |  ------------------
  |  |  |  |  284|  9.83k|#define CURL_POLL_OUT    2
  |  |  ------------------
  ------------------
 1637|  9.83k|  }
 1638|   135k|  return result;
 1639|   135k|}
Curl_http_done:
 1675|  13.0k|{
 1676|  13.0k|  struct connectdata *conn = data->conn;
 1677|       |
 1678|       |  /* Clear multipass flag. If authentication is not done yet, then it will get
 1679|       |   * a chance to be set back to true when we output the next auth header */
 1680|  13.0k|  data->state.authhost.multipass = FALSE;
  ------------------
  |  | 1056|  13.0k|#define FALSE false
  ------------------
 1681|  13.0k|  data->state.authproxy.multipass = FALSE;
  ------------------
  |  | 1056|  13.0k|#define FALSE false
  ------------------
 1682|       |
 1683|  13.0k|  if(curlx_dyn_len(&data->state.headerb)) {
  ------------------
  |  Branch (1683:6): [True: 785, False: 12.2k]
  ------------------
 1684|    785|    (void)http_write_header(data, curlx_dyn_ptr(&data->state.headerb),
 1685|    785|                            curlx_dyn_len(&data->state.headerb));
 1686|    785|  }
 1687|  13.0k|  curlx_dyn_reset(&data->state.headerb);
 1688|       |
 1689|  13.0k|  if(status)
  ------------------
  |  Branch (1689:6): [True: 5.85k, False: 7.23k]
  ------------------
 1690|  5.85k|    return status;
 1691|       |
 1692|  7.23k|  if(!premature && /* this check is pointless when DONE is called before the
  ------------------
  |  Branch (1692:6): [True: 7.21k, False: 14]
  ------------------
 1693|       |                      entire operation is complete */
 1694|  7.21k|     !conn->bits.retry &&
  ------------------
  |  Branch (1694:6): [True: 6.62k, False: 596]
  ------------------
 1695|  6.62k|     !data->set.connect_only &&
  ------------------
  |  Branch (1695:6): [True: 6.16k, False: 458]
  ------------------
 1696|  6.16k|     (data->req.bytecount +
  ------------------
  |  Branch (1696:6): [True: 649, False: 5.51k]
  ------------------
 1697|  6.16k|      data->req.headerbytecount -
 1698|  6.16k|      data->req.deductheadercount) <= 0) {
 1699|       |    /* If this connection is not closed to be retried, AND nothing was
 1700|       |       read from the HTTP server (that counts), this cannot be right so we
 1701|       |       return an error here */
 1702|    649|    failf(data, "Empty reply from server");
  ------------------
  |  |   62|    649|#define failf Curl_failf
  ------------------
 1703|       |    /* Mark it as closed to avoid the "left intact" message */
 1704|    649|    streamclose(conn);
  ------------------
  |  |   87|    649|#define streamclose(x) Curl_conncontrol((x), CONNCTRL_STREAM_CLOSE)
  |  |  ------------------
  |  |  |  |   83|    649|#define CONNCTRL_STREAM_CLOSE    2
  |  |  ------------------
  ------------------
 1705|    649|    return CURLE_GOT_NOTHING;
 1706|    649|  }
 1707|       |
 1708|  6.58k|  return CURLE_OK;
 1709|  7.23k|}
Curl_add_custom_headers:
 1758|  13.0k|{
 1759|  13.0k|  struct curl_slist *h[2];
 1760|  13.0k|  struct curl_slist *headers;
 1761|  13.0k|  int numlists = 1; /* by default */
 1762|  13.0k|  int i;
 1763|       |
 1764|  13.0k|#ifndef CURL_DISABLE_PROXY
 1765|  13.0k|  enum Curl_proxy_use proxy;
 1766|       |
 1767|  13.0k|  if(is_connect)
  ------------------
  |  Branch (1767:6): [True: 0, False: 13.0k]
  ------------------
 1768|      0|    proxy = HEADER_CONNECT;
 1769|  13.0k|  else
 1770|  13.0k|    proxy = data->conn->bits.origin_is_proxy ? HEADER_PROXY : HEADER_SERVER;
  ------------------
  |  Branch (1770:13): [True: 0, False: 13.0k]
  ------------------
 1771|       |
 1772|  13.0k|  switch(proxy) {
  ------------------
  |  Branch (1772:10): [True: 13.0k, False: 0]
  ------------------
 1773|  13.0k|  case HEADER_SERVER:
  ------------------
  |  Branch (1773:3): [True: 13.0k, False: 0]
  ------------------
 1774|  13.0k|    h[0] = data->set.headers;
 1775|  13.0k|    break;
 1776|      0|  case HEADER_PROXY:
  ------------------
  |  Branch (1776:3): [True: 0, False: 13.0k]
  ------------------
 1777|      0|    h[0] = data->set.headers;
 1778|      0|    if(data->set.sep_headers) {
  ------------------
  |  Branch (1778:8): [True: 0, False: 0]
  ------------------
 1779|      0|      h[1] = data->set.proxyheaders;
 1780|      0|      numlists++;
 1781|      0|    }
 1782|      0|    break;
 1783|      0|  case HEADER_CONNECT:
  ------------------
  |  Branch (1783:3): [True: 0, False: 13.0k]
  ------------------
 1784|      0|    if(data->set.sep_headers)
  ------------------
  |  Branch (1784:8): [True: 0, False: 0]
  ------------------
 1785|      0|      h[0] = data->set.proxyheaders;
 1786|      0|    else
 1787|      0|      h[0] = data->set.headers;
 1788|      0|    break;
 1789|      0|  case HEADER_CONNECT_UDP:
  ------------------
  |  Branch (1789:3): [True: 0, False: 13.0k]
  ------------------
 1790|      0|    if(data->set.sep_headers)
  ------------------
  |  Branch (1790:8): [True: 0, False: 0]
  ------------------
 1791|      0|      h[0] = data->set.proxyheaders;
 1792|      0|    else
 1793|      0|      h[0] = data->set.headers;
 1794|      0|    break;
 1795|  13.0k|  }
 1796|       |#else
 1797|       |  (void)is_connect;
 1798|       |  h[0] = data->set.headers;
 1799|       |#endif
 1800|       |
 1801|       |  /* loop through one or two lists */
 1802|  26.1k|  for(i = 0; i < numlists; i++) {
  ------------------
  |  Branch (1802:14): [True: 13.0k, False: 13.0k]
  ------------------
 1803|  13.0k|    for(headers = h[i]; headers; headers = headers->next) {
  ------------------
  |  Branch (1803:25): [True: 0, False: 13.0k]
  ------------------
 1804|      0|      CURLcode result = CURLE_OK;
 1805|      0|      bool blankheader = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1806|      0|      struct Curl_str name;
 1807|      0|      const char *p = headers->data;
 1808|      0|      const char *origp = p;
 1809|      0|      size_t hlen = strlen(origp);
 1810|       |
 1811|       |      /* explicitly asked to send header without content is done by a header
 1812|       |         that ends with a semicolon, but there must be no colon present in the
 1813|       |         name */
 1814|      0|      if(!curlx_str_until(&p, &name, hlen, ';') &&
  ------------------
  |  Branch (1814:10): [True: 0, False: 0]
  ------------------
 1815|      0|         !curlx_str_single(&p, ';') &&
  ------------------
  |  Branch (1815:10): [True: 0, False: 0]
  ------------------
 1816|      0|         !curlx_str_single(&p, '\0') &&
  ------------------
  |  Branch (1816:10): [True: 0, False: 0]
  ------------------
 1817|      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 (1817:10): [True: 0, False: 0]
  ------------------
 1818|      0|        blankheader = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1819|      0|      else {
 1820|      0|        p = origp;
 1821|      0|        if(!curlx_str_until(&p, &name, hlen, ':') &&
  ------------------
  |  Branch (1821:12): [True: 0, False: 0]
  ------------------
 1822|      0|           !curlx_str_single(&p, ':')) {
  ------------------
  |  Branch (1822:12): [True: 0, False: 0]
  ------------------
 1823|      0|          struct Curl_str val;
 1824|      0|          curlx_str_untilnl(&p, &val, hlen);
 1825|      0|          curlx_str_trimblanks(&val);
 1826|      0|          if(!curlx_strlen(&val))
  ------------------
  |  |   50|      0|#define curlx_strlen(x) ((x)->len)
  ------------------
  |  Branch (1826:14): [True: 0, False: 0]
  ------------------
 1827|       |            /* no content, do not send this */
 1828|      0|            continue;
 1829|      0|        }
 1830|      0|        else
 1831|       |          /* no colon */
 1832|      0|          continue;
 1833|      0|      }
 1834|       |
 1835|       |      /* a field name is a token and carries no surrounding whitespace, so
 1836|       |         trim the parsed name before matching. Otherwise `Authorization :`
 1837|       |         (space before the colon) slips past the Authorization/Cookie check
 1838|       |         below and gets forwarded to another host on a redirect. */
 1839|      0|      curlx_str_trimblanks(&name);
 1840|       |
 1841|       |      /* only send this if the contents was non-blank or done special */
 1842|       |
 1843|      0|      if(data->state.aptr.host &&
  ------------------
  |  Branch (1843:10): [True: 0, False: 0]
  ------------------
 1844|       |         /* a Host: header was sent already, do not pass on any custom
 1845|       |            Host: header as that will produce *two* in the same
 1846|       |            request! */
 1847|      0|         curlx_str_casecompare(&name, "Host"))
  ------------------
  |  Branch (1847:10): [True: 0, False: 0]
  ------------------
 1848|      0|        ;
 1849|      0|      else if(data->state.httpreq == HTTPREQ_POST_FORM &&
  ------------------
  |  Branch (1849:15): [True: 0, False: 0]
  ------------------
 1850|       |              /* this header (extended by formdata.c) is sent later */
 1851|      0|              curlx_str_casecompare(&name, "Content-Type"))
  ------------------
  |  Branch (1851:15): [True: 0, False: 0]
  ------------------
 1852|      0|        ;
 1853|      0|      else if(data->state.httpreq == HTTPREQ_POST_MIME &&
  ------------------
  |  Branch (1853:15): [True: 0, False: 0]
  ------------------
 1854|       |              /* this header is sent later */
 1855|      0|              curlx_str_casecompare(&name, "Content-Type"))
  ------------------
  |  Branch (1855:15): [True: 0, False: 0]
  ------------------
 1856|      0|        ;
 1857|      0|      else if(data->req.authneg &&
  ------------------
  |  Branch (1857:15): [True: 0, False: 0]
  ------------------
 1858|       |              /* while doing auth neg, do not allow the custom length since
 1859|       |                 we will force length zero then */
 1860|      0|              curlx_str_casecompare(&name, "Content-Length"))
  ------------------
  |  Branch (1860:15): [True: 0, False: 0]
  ------------------
 1861|      0|        ;
 1862|      0|      else if(curlx_str_casecompare(&name, "Connection"))
  ------------------
  |  Branch (1862:15): [True: 0, False: 0]
  ------------------
 1863|       |        /* Connection headers are handled specially */
 1864|      0|        ;
 1865|      0|      else if((httpversion >= 20) &&
  ------------------
  |  Branch (1865:15): [True: 0, False: 0]
  ------------------
 1866|      0|              curlx_str_casecompare(&name, "Transfer-Encoding"))
  ------------------
  |  Branch (1866:15): [True: 0, False: 0]
  ------------------
 1867|       |        /* HTTP/2 does not support chunked requests */
 1868|      0|        ;
 1869|      0|      else if((curlx_str_casecompare(&name, "Authorization") ||
  ------------------
  |  Branch (1869:16): [True: 0, False: 0]
  ------------------
 1870|      0|               curlx_str_casecompare(&name, "Cookie")) &&
  ------------------
  |  Branch (1870:16): [True: 0, False: 0]
  ------------------
 1871|       |              /* be careful of sending this potentially sensitive header to
 1872|       |                 other hosts */
 1873|      0|              !Curl_auth_allowed_to_host(data))
  ------------------
  |  Branch (1873:15): [True: 0, False: 0]
  ------------------
 1874|      0|        ;
 1875|      0|      else if(blankheader) {
  ------------------
  |  Branch (1875:15): [True: 0, False: 0]
  ------------------
 1876|      0|        result = curlx_dyn_addn(req, curlx_str(&name), curlx_strlen(&name));
  ------------------
  |  |   49|      0|#define curlx_str(x)    ((x)->str)
  ------------------
                      result = curlx_dyn_addn(req, curlx_str(&name), curlx_strlen(&name));
  ------------------
  |  |   50|      0|#define curlx_strlen(x) ((x)->len)
  ------------------
 1877|      0|        if(!result)
  ------------------
  |  Branch (1877:12): [True: 0, False: 0]
  ------------------
 1878|      0|          result = curlx_dyn_addn(req, STRCONST(":\r\n"));
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 1879|      0|      }
 1880|      0|      else
 1881|      0|        result = curlx_dyn_addf(req, "%s\r\n", origp);
 1882|       |
 1883|      0|      if(result)
  ------------------
  |  Branch (1883:10): [True: 0, False: 0]
  ------------------
 1884|      0|        return result;
 1885|      0|    }
 1886|  13.0k|  }
 1887|       |
 1888|  13.0k|  return CURLE_OK;
 1889|  13.0k|}
Curl_add_timecondition:
 1894|  13.0k|{
 1895|  13.0k|  const struct tm *tm;
 1896|  13.0k|  struct tm keeptime;
 1897|  13.0k|  CURLcode result;
 1898|  13.0k|  char datestr[80];
 1899|  13.0k|  const char *condp;
 1900|  13.0k|  size_t len;
 1901|       |
 1902|  13.0k|  if(data->set.timecondition == CURL_TIMECOND_NONE)
  ------------------
  |  | 2434|  13.0k|#define CURL_TIMECOND_NONE         0L
  ------------------
  |  Branch (1902:6): [True: 13.0k, False: 0]
  ------------------
 1903|       |    /* no condition was asked for */
 1904|  13.0k|    return CURLE_OK;
 1905|       |
 1906|      0|  result = curlx_gmtime(data->set.timevalue, &keeptime);
 1907|      0|  if(result) {
  ------------------
  |  Branch (1907:6): [True: 0, False: 0]
  ------------------
 1908|      0|    failf(data, "Invalid TIMEVALUE");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1909|      0|    return result;
 1910|      0|  }
 1911|      0|  tm = &keeptime;
 1912|       |
 1913|      0|  switch(data->set.timecondition) {
 1914|      0|  default:
  ------------------
  |  Branch (1914:3): [True: 0, False: 0]
  ------------------
 1915|      0|    DEBUGF(infof(data, "invalid time condition"));
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1916|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
 1917|       |
 1918|      0|  case CURL_TIMECOND_IFMODSINCE:
  ------------------
  |  | 2435|      0|#define CURL_TIMECOND_IFMODSINCE   1L
  ------------------
  |  Branch (1918:3): [True: 0, False: 0]
  ------------------
 1919|      0|    condp = "If-Modified-Since";
 1920|      0|    len = 17;
 1921|      0|    break;
 1922|      0|  case CURL_TIMECOND_IFUNMODSINCE:
  ------------------
  |  | 2436|      0|#define CURL_TIMECOND_IFUNMODSINCE 2L
  ------------------
  |  Branch (1922:3): [True: 0, False: 0]
  ------------------
 1923|      0|    condp = "If-Unmodified-Since";
 1924|      0|    len = 19;
 1925|      0|    break;
 1926|      0|  case CURL_TIMECOND_LASTMOD:
  ------------------
  |  | 2437|      0|#define CURL_TIMECOND_LASTMOD      3L
  ------------------
  |  Branch (1926:3): [True: 0, False: 0]
  ------------------
 1927|      0|    condp = "Last-Modified";
 1928|      0|    len = 13;
 1929|      0|    break;
 1930|      0|  }
 1931|       |
 1932|      0|  if(Curl_checkheaders(data, condp, len)) {
  ------------------
  |  Branch (1932:6): [True: 0, False: 0]
  ------------------
 1933|       |    /* A custom header was specified; it will be sent instead. */
 1934|      0|    return CURLE_OK;
 1935|      0|  }
 1936|       |
 1937|       |  /* The If-Modified-Since header family should have their times set in
 1938|       |   * GMT as RFC2616 defines: "All HTTP date/time stamps MUST be
 1939|       |   * represented in Greenwich Mean Time (GMT), without exception. For the
 1940|       |   * purposes of HTTP, GMT is exactly equal to UTC (Coordinated Universal
 1941|       |   * Time)." (see page 20 of RFC2616).
 1942|       |   */
 1943|       |
 1944|       |  /* format: "Tue, 15 Nov 1994 12:45:26 GMT" */
 1945|      0|  curl_msnprintf(datestr, sizeof(datestr),
 1946|      0|                 "%s: %s, %02d %s %4d %02d:%02d:%02d GMT\r\n",
 1947|      0|                 condp,
 1948|      0|                 Curl_wkday[tm->tm_wday ? tm->tm_wday - 1 : 6],
  ------------------
  |  Branch (1948:29): [True: 0, False: 0]
  ------------------
 1949|      0|                 tm->tm_mday,
 1950|      0|                 Curl_month[tm->tm_mon],
 1951|      0|                 tm->tm_year + 1900,
 1952|      0|                 tm->tm_hour,
 1953|      0|                 tm->tm_min,
 1954|      0|                 tm->tm_sec);
 1955|       |
 1956|      0|  result = curlx_dyn_add(req, datestr);
 1957|      0|  return result;
 1958|      0|}
Curl_http_method:
 1972|  13.0k|{
 1973|  13.0k|  Curl_HttpReq httpreq = (Curl_HttpReq)data->state.httpreq;
 1974|  13.0k|  const char *request;
 1975|  13.0k|#ifndef CURL_DISABLE_WEBSOCKETS
 1976|  13.0k|  if(data->conn->scheme->protocol & (CURLPROTO_WS | CURLPROTO_WSS))
  ------------------
  |  |   63|  13.0k|#define CURLPROTO_WS     (1L << 30)
  ------------------
                if(data->conn->scheme->protocol & (CURLPROTO_WS | CURLPROTO_WSS))
  ------------------
  |  |   64|  13.0k|#define CURLPROTO_WSS    ((curl_prot_t)1 << 31)
  ------------------
  |  Branch (1976:6): [True: 1.61k, False: 11.4k]
  ------------------
 1977|  1.61k|    httpreq = HTTPREQ_GET;
 1978|  11.4k|  else
 1979|  11.4k|#endif
 1980|  11.4k|  if((data->conn->scheme->protocol & (PROTO_FAMILY_HTTP | CURLPROTO_FTP)) &&
  ------------------
  |  |   84|  11.4k|#define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1086|  11.4k|#define CURLPROTO_HTTP    (1L << 0)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1087|  11.4k|#define CURLPROTO_HTTPS   (1L << 1)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  |   63|  11.4k|#define CURLPROTO_WS     (1L << 30)
  |  |  ------------------
  |  |   85|  11.4k|                           CURLPROTO_WSS)
  |  |  ------------------
  |  |  |  |   64|  11.4k|#define CURLPROTO_WSS    ((curl_prot_t)1 << 31)
  |  |  ------------------
  ------------------
                if((data->conn->scheme->protocol & (PROTO_FAMILY_HTTP | CURLPROTO_FTP)) &&
  ------------------
  |  | 1088|  11.4k|#define CURLPROTO_FTP     (1L << 2)
  ------------------
  |  Branch (1980:6): [True: 11.4k, False: 0]
  ------------------
 1981|  11.4k|     data->state.upload)
  ------------------
  |  Branch (1981:6): [True: 566, False: 10.9k]
  ------------------
 1982|    566|    httpreq = HTTPREQ_PUT;
 1983|       |
 1984|       |  /* Now set the 'request' pointer to the proper request string */
 1985|  13.0k|  if(data->set.str[STRING_CUSTOMREQUEST] &&
  ------------------
  |  Branch (1985:6): [True: 226, False: 12.8k]
  ------------------
 1986|    226|     !data->state.http_ignorecustom) {
  ------------------
  |  Branch (1986:6): [True: 226, False: 0]
  ------------------
 1987|    226|    request = data->set.str[STRING_CUSTOMREQUEST];
 1988|    226|  }
 1989|  12.8k|  else {
 1990|  12.8k|    if(data->req.no_body)
  ------------------
  |  Branch (1990:8): [True: 260, False: 12.5k]
  ------------------
 1991|    260|      request = "HEAD";
 1992|  12.5k|    else {
 1993|  12.5k|      DEBUGASSERT((httpreq >= HTTPREQ_GET) && (httpreq <= HTTPREQ_HEAD));
  ------------------
  |  | 1083|  12.5k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1993:7): [True: 0, False: 12.5k]
  |  Branch (1993:7): [True: 0, False: 0]
  |  Branch (1993:7): [True: 12.5k, False: 0]
  |  Branch (1993:7): [True: 12.5k, False: 0]
  ------------------
 1994|  12.5k|      switch(httpreq) {
 1995|    857|      case HTTPREQ_POST:
  ------------------
  |  Branch (1995:7): [True: 857, False: 11.7k]
  ------------------
 1996|    857|      case HTTPREQ_POST_FORM:
  ------------------
  |  Branch (1996:7): [True: 0, False: 12.5k]
  ------------------
 1997|    857|      case HTTPREQ_POST_MIME:
  ------------------
  |  Branch (1997:7): [True: 0, False: 12.5k]
  ------------------
 1998|    857|        request = "POST";
 1999|    857|        break;
 2000|    559|      case HTTPREQ_PUT:
  ------------------
  |  Branch (2000:7): [True: 559, False: 12.0k]
  ------------------
 2001|    559|        request = "PUT";
 2002|    559|        break;
 2003|      0|      default: /* this should never happen */
  ------------------
  |  Branch (2003:7): [True: 0, False: 12.5k]
  ------------------
 2004|  11.1k|      case HTTPREQ_GET:
  ------------------
  |  Branch (2004:7): [True: 11.1k, False: 1.41k]
  ------------------
 2005|  11.1k|        request = "GET";
 2006|  11.1k|        break;
 2007|      0|      case HTTPREQ_HEAD:
  ------------------
  |  Branch (2007:7): [True: 0, False: 12.5k]
  ------------------
 2008|      0|        request = "HEAD";
 2009|      0|        break;
 2010|  12.5k|      }
 2011|  12.5k|    }
 2012|  12.8k|  }
 2013|  13.0k|  *method = request;
 2014|  13.0k|  *reqp = httpreq;
 2015|  13.0k|}
Curl_http:
 3071|  13.0k|{
 3072|  13.0k|  CURLcode result = CURLE_OK;
 3073|  13.0k|  Curl_HttpReq httpreq;
 3074|  13.0k|  const char *method;
 3075|  13.0k|  struct dynbuf req;
 3076|  13.0k|  unsigned char httpversion;
 3077|  13.0k|  size_t hd_id;
 3078|       |
 3079|       |  /* Always consider the DO phase done after this function call, even if there
 3080|       |     may be parts of the request that are not yet sent, since we can deal with
 3081|       |     the rest of the request in the PERFORM phase. */
 3082|  13.0k|  *done = TRUE;
  ------------------
  |  | 1053|  13.0k|#define TRUE true
  ------------------
 3083|       |  /* initialize a dynamic send-buffer */
 3084|  13.0k|  curlx_dyn_init(&req, DYN_HTTP_REQUEST);
  ------------------
  |  |   69|  13.0k|#define DYN_HTTP_REQUEST    (1024 * 1024)
  ------------------
 3085|       |  /* make sure the header buffer is reset - if there are leftovers from a
 3086|       |     previous transfer */
 3087|  13.0k|  curlx_dyn_reset(&data->state.headerb);
 3088|  13.0k|  data->state.maybe_folded = FALSE;
  ------------------
  |  | 1056|  13.0k|#define FALSE false
  ------------------
 3089|       |
 3090|  13.0k|  if(!data->conn->bits.reuse) {
  ------------------
  |  Branch (3090:6): [True: 8.97k, False: 4.10k]
  ------------------
 3091|  8.97k|    result = http_check_new_conn(data);
 3092|  8.97k|    if(result)
  ------------------
  |  Branch (3092:8): [True: 0, False: 8.97k]
  ------------------
 3093|      0|      goto out;
 3094|  8.97k|  }
 3095|       |
 3096|       |  /* Add collecting of headers written to client. For a new connection,
 3097|       |   * we might have done that already, but reuse
 3098|       |   * or multiplex needs it here as well. */
 3099|  13.0k|  result = Curl_headers_init(data);
 3100|  13.0k|  if(result)
  ------------------
  |  Branch (3100:6): [True: 0, False: 13.0k]
  ------------------
 3101|      0|    goto out;
 3102|       |
 3103|  13.0k|  data->state.http_hd_te = FALSE;
  ------------------
  |  | 1056|  13.0k|#define FALSE false
  ------------------
 3104|  13.0k|  data->state.http_hd_upgrade = FALSE;
  ------------------
  |  | 1056|  13.0k|#define FALSE false
  ------------------
 3105|  13.0k|  data->state.http_hd_h2_settings = FALSE;
  ------------------
  |  | 1056|  13.0k|#define FALSE false
  ------------------
 3106|       |
 3107|       |  /* what kind of request do we need to send? */
 3108|  13.0k|  Curl_http_method(data, &method, &httpreq);
 3109|       |
 3110|       |  /* select host to send */
 3111|  13.0k|  result = http_set_aptr_host(data);
 3112|       |  /* setup the authentication headers, how that method and host are known */
 3113|  13.0k|  if(!result)
  ------------------
  |  Branch (3113:6): [True: 13.0k, False: 0]
  ------------------
 3114|  13.0k|    result = Curl_http_output_auth(data, data->conn, method, httpreq,
 3115|  13.0k|                                   data->state.up.path,
 3116|  13.0k|                                   data->state.up.query, FALSE);
  ------------------
  |  | 1056|  13.0k|#define FALSE false
  ------------------
 3117|  13.0k|  if(!result)
  ------------------
  |  Branch (3117:6): [True: 13.0k, False: 0]
  ------------------
 3118|  13.0k|    result = http_useragent(data);
 3119|       |  /* Setup input reader, resume information and ranges */
 3120|  13.0k|  if(!result)
  ------------------
  |  Branch (3120:6): [True: 13.0k, False: 0]
  ------------------
 3121|  13.0k|    result = set_reader(data, httpreq);
 3122|  13.0k|  if(!result)
  ------------------
  |  Branch (3122:6): [True: 13.0k, False: 0]
  ------------------
 3123|  13.0k|    result = http_resume(data, httpreq);
 3124|  13.0k|  if(!result)
  ------------------
  |  Branch (3124:6): [True: 13.0k, False: 0]
  ------------------
 3125|  13.0k|    result = http_range(data, httpreq);
 3126|  13.0k|  if(result)
  ------------------
  |  Branch (3126:6): [True: 0, False: 13.0k]
  ------------------
 3127|      0|    goto out;
 3128|       |
 3129|  13.0k|  httpversion = http_request_version(data);
 3130|       |  /* Add request line and all headers to `req` */
 3131|   274k|  for(hd_id = 0; hd_id <= H1_HD_LAST; ++hd_id) {
  ------------------
  |  Branch (3131:18): [True: 261k, False: 13.0k]
  ------------------
 3132|   261k|    result = http_add_hd(data, &req, (http_hd_t)hd_id,
 3133|   261k|                         httpversion, method, httpreq);
 3134|   261k|    if(result)
  ------------------
  |  Branch (3134:8): [True: 1, False: 261k]
  ------------------
 3135|      1|      goto out;
 3136|   261k|  }
 3137|       |
 3138|       |  /* setup variables for the upcoming transfer and send */
 3139|  13.0k|  Curl_xfer_setup_sendrecv(data, FIRSTSOCKET, -1);
  ------------------
  |  |  233|  13.0k|#define FIRSTSOCKET     0
  ------------------
 3140|  13.0k|  result = Curl_req_send(data, &req, httpversion);
 3141|       |
 3142|  13.0k|  if((httpversion >= 20) && data->req.upload_chunky)
  ------------------
  |  Branch (3142:6): [True: 4.40k, False: 8.67k]
  |  Branch (3142:29): [True: 0, False: 4.40k]
  ------------------
 3143|       |    /* upload_chunky was set above to set up the request in a chunky fashion,
 3144|       |       but is disabled here again to avoid that the chunked encoded version is
 3145|       |       actually used when sending the request body over h2 */
 3146|      0|    data->req.upload_chunky = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 3147|       |
 3148|  13.0k|out:
 3149|  13.0k|  if(result == CURLE_TOO_LARGE)
  ------------------
  |  Branch (3149:6): [True: 0, False: 13.0k]
  ------------------
 3150|      0|    failf(data, "HTTP request too large");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3151|       |
 3152|  13.0k|  curlx_dyn_free(&req);
 3153|  13.0k|  return result;
 3154|  13.0k|}
Curl_verify_header:
 3866|  56.3k|{
 3867|  56.3k|  struct SingleRequest *k = &data->req;
 3868|  56.3k|  const char *ptr = memchr(hd, 0x00, hdlen);
 3869|  56.3k|  if(ptr) {
  ------------------
  |  Branch (3869:6): [True: 8, False: 56.3k]
  ------------------
 3870|       |    /* this is bad, bail out */
 3871|      8|    failf(data, "Nul byte in header");
  ------------------
  |  |   62|      8|#define failf Curl_failf
  ------------------
 3872|      8|    return CURLE_WEIRD_SERVER_REPLY;
 3873|      8|  }
 3874|  56.3k|  if(hdlen > 2) {
  ------------------
  |  Branch (3874:6): [True: 56.3k, False: 19]
  ------------------
 3875|  56.3k|    ptr = memchr(hd, '\r', hdlen - 2);
 3876|  56.3k|    if(ptr) {
  ------------------
  |  Branch (3876:8): [True: 6, False: 56.3k]
  ------------------
 3877|       |      /* CR may only precede the LF, nothing else */
 3878|      6|      failf(data, "Carriage return found in header");
  ------------------
  |  |   62|      6|#define failf Curl_failf
  ------------------
 3879|      6|      return CURLE_WEIRD_SERVER_REPLY;
 3880|      6|    }
 3881|  56.3k|  }
 3882|  56.3k|  if(k->headerline < 2)
  ------------------
  |  Branch (3882:6): [True: 8.52k, False: 47.8k]
  ------------------
 3883|       |    /* the first "header" is the status-line and it has no colon */
 3884|  8.52k|    return CURLE_OK;
 3885|  47.8k|  if(((hd[0] == ' ') || (hd[0] == '\t')) && k->headerline > 2)
  ------------------
  |  Branch (3885:7): [True: 25, False: 47.8k]
  |  Branch (3885:25): [True: 1, False: 47.8k]
  |  Branch (3885:45): [True: 10, False: 16]
  ------------------
 3886|       |    /* line folding, cannot happen on line 2 */
 3887|     10|    ;
 3888|  47.8k|  else {
 3889|  47.8k|    ptr = memchr(hd, ':', hdlen);
 3890|  47.8k|    if(!ptr) {
  ------------------
  |  Branch (3890:8): [True: 31, False: 47.7k]
  ------------------
 3891|       |      /* this is bad, bail out */
 3892|     31|      failf(data, "Header without colon");
  ------------------
  |  |   62|     31|#define failf Curl_failf
  ------------------
 3893|     31|      return CURLE_WEIRD_SERVER_REPLY;
 3894|     31|    }
 3895|  47.8k|  }
 3896|  47.8k|  return CURLE_OK;
 3897|  47.8k|}
Curl_bump_headersize:
 3902|  63.1k|{
 3903|  63.1k|  size_t bad = 0;
 3904|  63.1k|  unsigned int max = MAX_HTTP_RESP_HEADER_SIZE;
  ------------------
  |  |  157|  63.1k|#define MAX_HTTP_RESP_HEADER_SIZE (300 * 1024)
  ------------------
 3905|  63.1k|  if(delta < MAX_HTTP_RESP_HEADER_SIZE) {
  ------------------
  |  |  157|  63.1k|#define MAX_HTTP_RESP_HEADER_SIZE (300 * 1024)
  ------------------
  |  Branch (3905:6): [True: 63.1k, False: 0]
  ------------------
 3906|  63.1k|    data->info.header_size += (unsigned int)delta;
 3907|  63.1k|    data->req.allheadercount += (unsigned int)delta;
 3908|  63.1k|    if(!connect_only)
  ------------------
  |  Branch (3908:8): [True: 63.1k, False: 0]
  ------------------
 3909|  63.1k|      data->req.headerbytecount += (unsigned int)delta;
 3910|  63.1k|    if(data->req.allheadercount > max)
  ------------------
  |  Branch (3910:8): [True: 0, False: 63.1k]
  ------------------
 3911|      0|      bad = data->req.allheadercount;
 3912|  63.1k|    else if(data->info.header_size > (max * 20)) {
  ------------------
  |  Branch (3912:13): [True: 0, False: 63.1k]
  ------------------
 3913|      0|      bad = data->info.header_size;
 3914|      0|      max *= 20;
 3915|      0|    }
 3916|  63.1k|  }
 3917|      0|  else
 3918|      0|    bad = data->req.allheadercount + delta;
 3919|  63.1k|  if(bad) {
  ------------------
  |  Branch (3919:6): [True: 0, False: 63.1k]
  ------------------
 3920|      0|    failf(data, "Too large response headers: %zu > %u", bad, max);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3921|      0|    return CURLE_RECV_ERROR;
 3922|      0|  }
 3923|  63.1k|  return CURLE_OK;
 3924|  63.1k|}
Curl_http_to_fold:
 4442|    750|{
 4443|    750|  size_t len = curlx_dyn_len(bf);
 4444|    750|  const char *hd = curlx_dyn_ptr(bf);
 4445|    750|  if(len && (hd[len - 1] == '\n'))
  ------------------
  |  Branch (4445:6): [True: 750, False: 0]
  |  Branch (4445:13): [True: 750, False: 0]
  ------------------
 4446|    750|    len--;
 4447|    750|  if(len && (hd[len - 1] == '\r'))
  ------------------
  |  Branch (4447:6): [True: 750, False: 0]
  |  Branch (4447:13): [True: 169, False: 581]
  ------------------
 4448|    169|    len--;
 4449|  2.88k|  while(len && ISBLANK(hd[len - 1])) /* strip off trailing whitespace */
  ------------------
  |  |   43|  2.82k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (43:22): [True: 877, False: 1.94k]
  |  |  |  Branch (43:38): [True: 1.26k, False: 688]
  |  |  ------------------
  ------------------
  |  Branch (4449:9): [True: 2.82k, False: 62]
  ------------------
 4450|  2.13k|    len--;
 4451|    750|  curlx_dyn_setlen(bf, len);
 4452|    750|}
Curl_http_write_resp_hd:
 4635|  35.4k|{
 4636|  35.4k|  CURLcode result;
 4637|  35.4k|  size_t consumed;
 4638|  35.4k|  char tmp = 0;
 4639|  35.4k|  DEBUGASSERT(!hd[hdlen]); /* null-terminated */
  ------------------
  |  | 1083|  35.4k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4639:3): [True: 0, False: 35.4k]
  |  Branch (4639:3): [True: 35.4k, False: 0]
  ------------------
 4640|       |
 4641|  35.4k|  result = http_rw_hd(data, hd, hdlen, &tmp, 0, &consumed);
 4642|  35.4k|  if(!result && is_eos) {
  ------------------
  |  Branch (4642:6): [True: 35.3k, False: 95]
  |  Branch (4642:17): [True: 0, False: 35.3k]
  ------------------
 4643|      0|    result = Curl_client_write(data, (CLIENTWRITE_BODY | CLIENTWRITE_EOS),
  ------------------
  |  |   43|      0|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
                  result = Curl_client_write(data, (CLIENTWRITE_BODY | CLIENTWRITE_EOS),
  ------------------
  |  |   50|      0|#define CLIENTWRITE_EOS     (1 << 7) /* End Of transfer download Stream */
  ------------------
 4644|      0|                               &tmp, 0);
 4645|      0|  }
 4646|  35.4k|  return result;
 4647|  35.4k|}
Curl_http_write_resp_hds:
 4656|  14.3k|{
 4657|  14.3k|  if(!data->req.header) {
  ------------------
  |  Branch (4657:6): [True: 3.52k, False: 10.7k]
  ------------------
 4658|  3.52k|    *pconsumed = 0;
 4659|  3.52k|    return CURLE_OK;
 4660|  3.52k|  }
 4661|  10.7k|  else {
 4662|  10.7k|    CURLcode result;
 4663|       |
 4664|  10.7k|    result = http_parse_headers(data, buf, blen, pconsumed);
 4665|  10.7k|    if(!result && !data->req.header) {
  ------------------
  |  Branch (4665:8): [True: 10.1k, False: 605]
  |  Branch (4665:19): [True: 6.41k, False: 3.77k]
  ------------------
 4666|  6.41k|      if(!data->req.no_body && curlx_dyn_len(&data->state.headerb)) {
  ------------------
  |  Branch (4666:10): [True: 6.20k, False: 208]
  |  Branch (4666:32): [True: 9, False: 6.19k]
  ------------------
 4667|       |        /* leftover from parsing something that turned out not
 4668|       |         * to be a header, only happens if we allow for
 4669|       |         * HTTP/0.9 like responses */
 4670|      9|        result = Curl_client_write(data, CLIENTWRITE_BODY,
  ------------------
  |  |   43|      9|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
 4671|      9|                                   curlx_dyn_ptr(&data->state.headerb),
 4672|      9|                                   curlx_dyn_len(&data->state.headerb));
 4673|      9|      }
 4674|  6.41k|      curlx_dyn_free(&data->state.headerb);
 4675|  6.41k|    }
 4676|  10.7k|    return result;
 4677|  10.7k|  }
 4678|  14.3k|}
Curl_http_write_resp:
 4683|  14.3k|{
 4684|  14.3k|  CURLcode result;
 4685|  14.3k|  size_t consumed;
 4686|  14.3k|  int flags;
 4687|       |
 4688|  14.3k|  result = Curl_http_write_resp_hds(data, buf, blen, &consumed);
 4689|  14.3k|  if(result || data->req.done)
  ------------------
  |  Branch (4689:6): [True: 605, False: 13.7k]
  |  Branch (4689:16): [True: 119, False: 13.5k]
  ------------------
 4690|    724|    goto out;
 4691|       |
 4692|  13.5k|  DEBUGASSERT(consumed <= blen);
  ------------------
  |  | 1083|  13.5k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4692:3): [True: 0, False: 13.5k]
  |  Branch (4692:3): [True: 13.5k, False: 0]
  ------------------
 4693|  13.5k|  blen -= consumed;
 4694|  13.5k|  buf += consumed;
 4695|       |  /* either all was consumed in header parsing, or we have data left
 4696|       |   * and are done with headers, e.g. it is BODY data */
 4697|  13.5k|  DEBUGASSERT(!blen || !data->req.header);
  ------------------
  |  | 1083|  13.5k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4697:3): [True: 13.5k, False: 0]
  |  Branch (4697:3): [True: 0, False: 0]
  |  Branch (4697:3): [True: 10.6k, False: 2.97k]
  |  Branch (4697:3): [True: 2.97k, False: 0]
  ------------------
 4698|  13.5k|  if(!data->req.header && (blen || is_eos)) {
  ------------------
  |  Branch (4698:6): [True: 9.81k, False: 3.77k]
  |  Branch (4698:28): [True: 2.97k, False: 6.84k]
  |  Branch (4698:36): [True: 942, False: 5.89k]
  ------------------
 4699|       |    /* BODY data after header been parsed, write and consume */
 4700|  3.91k|    flags = CLIENTWRITE_BODY;
  ------------------
  |  |   43|  3.91k|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
 4701|  3.91k|    if(is_eos)
  ------------------
  |  Branch (4701:8): [True: 942, False: 2.97k]
  ------------------
 4702|    942|      flags |= CLIENTWRITE_EOS;
  ------------------
  |  |   50|    942|#define CLIENTWRITE_EOS     (1 << 7) /* End Of transfer download Stream */
  ------------------
 4703|  3.91k|    result = Curl_client_write(data, flags, buf, blen);
 4704|  3.91k|  }
 4705|  14.3k|out:
 4706|  14.3k|  return result;
 4707|  13.5k|}
Curl_http_decode_status:
 4711|  1.19k|{
 4712|  1.19k|  CURLcode result = CURLE_BAD_FUNCTION_ARGUMENT;
 4713|  1.19k|  int status = 0;
 4714|  1.19k|  int i;
 4715|       |
 4716|  1.19k|  if(len != 3)
  ------------------
  |  Branch (4716:6): [True: 0, False: 1.19k]
  ------------------
 4717|      0|    goto out;
 4718|       |
 4719|  4.79k|  for(i = 0; i < 3; ++i) {
  ------------------
  |  Branch (4719:14): [True: 3.59k, False: 1.19k]
  ------------------
 4720|  3.59k|    char c = s[i];
 4721|       |
 4722|  3.59k|    if(c < '0' || c > '9')
  ------------------
  |  Branch (4722:8): [True: 0, False: 3.59k]
  |  Branch (4722:19): [True: 0, False: 3.59k]
  ------------------
 4723|      0|      goto out;
 4724|       |
 4725|  3.59k|    status *= 10;
 4726|  3.59k|    status += c - '0';
 4727|  3.59k|  }
 4728|  1.19k|  result = CURLE_OK;
 4729|  1.19k|out:
 4730|  1.19k|  *pstatus = result ? -1 : status;
  ------------------
  |  Branch (4730:14): [True: 0, False: 1.19k]
  ------------------
 4731|  1.19k|  return result;
 4732|  1.19k|}
Curl_http_req_make:
 4739|  4.39k|{
 4740|  4.39k|  struct httpreq *req;
 4741|  4.39k|  CURLcode result = CURLE_OUT_OF_MEMORY;
 4742|       |
 4743|  4.39k|  DEBUGASSERT(method && m_len);
  ------------------
  |  | 1083|  4.39k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4743:3): [True: 0, False: 4.39k]
  |  Branch (4743:3): [True: 0, False: 0]
  |  Branch (4743:3): [True: 4.39k, False: 0]
  |  Branch (4743:3): [True: 4.39k, False: 0]
  ------------------
 4744|       |
 4745|  4.39k|  req = curlx_calloc(1, sizeof(*req) + m_len);
  ------------------
  |  | 1479|  4.39k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
 4746|  4.39k|  if(!req)
  ------------------
  |  Branch (4746:6): [True: 0, False: 4.39k]
  ------------------
 4747|      0|    goto out;
 4748|       |#if defined(__GNUC__) && __GNUC__ >= 13
 4749|       |#pragma GCC diagnostic push
 4750|       |/* error: 'memcpy' offset [137, 142] from the object at 'req' is out of
 4751|       |   the bounds of referenced subobject 'method' with type 'char[1]' at
 4752|       |   offset 136 */
 4753|       |#pragma GCC diagnostic ignored "-Warray-bounds"
 4754|       |#endif
 4755|  4.39k|  memcpy(req->method, method, m_len);
 4756|       |#if defined(__GNUC__) && __GNUC__ >= 13
 4757|       |#pragma GCC diagnostic pop
 4758|       |#endif
 4759|  4.39k|  if(scheme) {
  ------------------
  |  Branch (4759:6): [True: 0, False: 4.39k]
  ------------------
 4760|      0|    req->scheme = curlx_memdup0(scheme, s_len);
 4761|      0|    if(!req->scheme)
  ------------------
  |  Branch (4761:8): [True: 0, False: 0]
  ------------------
 4762|      0|      goto out;
 4763|      0|  }
 4764|  4.39k|  if(authority) {
  ------------------
  |  Branch (4764:6): [True: 1, False: 4.39k]
  ------------------
 4765|      1|    req->authority = curlx_memdup0(authority, a_len);
 4766|      1|    if(!req->authority)
  ------------------
  |  Branch (4766:8): [True: 0, False: 1]
  ------------------
 4767|      0|      goto out;
 4768|      1|  }
 4769|  4.39k|  if(path) {
  ------------------
  |  Branch (4769:6): [True: 4.39k, False: 1]
  ------------------
 4770|  4.39k|    req->path = curlx_memdup0(path, p_len);
 4771|  4.39k|    if(!req->path)
  ------------------
  |  Branch (4771:8): [True: 0, False: 4.39k]
  ------------------
 4772|      0|      goto out;
 4773|  4.39k|  }
 4774|  4.39k|  Curl_dynhds_init(&req->headers, 0, DYN_HTTP_REQUEST);
  ------------------
  |  |   69|  4.39k|#define DYN_HTTP_REQUEST    (1024 * 1024)
  ------------------
 4775|  4.39k|  Curl_dynhds_init(&req->trailers, 0, DYN_HTTP_REQUEST);
  ------------------
  |  |   69|  4.39k|#define DYN_HTTP_REQUEST    (1024 * 1024)
  ------------------
 4776|  4.39k|  result = CURLE_OK;
 4777|       |
 4778|  4.39k|out:
 4779|  4.39k|  if(result && req)
  ------------------
  |  Branch (4779:6): [True: 0, False: 4.39k]
  |  Branch (4779:16): [True: 0, False: 0]
  ------------------
 4780|      0|    Curl_http_req_free(req);
 4781|  4.39k|  *preq = result ? NULL : req;
  ------------------
  |  Branch (4781:11): [True: 0, False: 4.39k]
  ------------------
 4782|  4.39k|  return result;
 4783|  4.39k|}
Curl_http_req_free:
 4907|  8.81k|{
 4908|  8.81k|  if(req) {
  ------------------
  |  Branch (4908:6): [True: 4.39k, False: 4.42k]
  ------------------
 4909|  4.39k|    curlx_free(req->scheme);
  ------------------
  |  | 1482|  4.39k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 4910|  4.39k|    curlx_free(req->authority);
  ------------------
  |  | 1482|  4.39k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 4911|  4.39k|    curlx_free(req->path);
  ------------------
  |  | 1482|  4.39k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 4912|  4.39k|    Curl_dynhds_free(&req->headers);
 4913|  4.39k|    Curl_dynhds_free(&req->trailers);
 4914|  4.39k|    curlx_free(req);
  ------------------
  |  | 1482|  4.39k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 4915|  4.39k|  }
 4916|  8.81k|}
Curl_http_req_to_h2:
 4974|  4.38k|{
 4975|  4.38k|  const char *scheme = NULL, *authority = NULL;
 4976|  4.38k|  struct dynhds_entry *e;
 4977|  4.38k|  size_t i;
 4978|  4.38k|  CURLcode result;
 4979|       |
 4980|  4.38k|  DEBUGASSERT(req);
  ------------------
  |  | 1083|  4.38k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4980:3): [True: 0, False: 4.38k]
  |  Branch (4980:3): [True: 4.38k, False: 0]
  ------------------
 4981|  4.38k|  DEBUGASSERT(h2_headers);
  ------------------
  |  | 1083|  4.38k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4981:3): [True: 0, False: 4.38k]
  |  Branch (4981:3): [True: 4.38k, False: 0]
  ------------------
 4982|       |
 4983|  4.38k|  if(req->scheme) {
  ------------------
  |  Branch (4983:6): [True: 0, False: 4.38k]
  ------------------
 4984|      0|    scheme = req->scheme;
 4985|      0|  }
 4986|  4.38k|  else if(strcmp("CONNECT", req->method)) {
  ------------------
  |  Branch (4986:11): [True: 4.38k, False: 0]
  ------------------
 4987|  4.38k|    scheme = Curl_checkheaders(data, STRCONST(HTTP_PSEUDO_SCHEME));
  ------------------
  |  | 1305|  4.38k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  4.38k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 4988|  4.38k|    if(scheme) {
  ------------------
  |  Branch (4988:8): [True: 0, False: 4.38k]
  ------------------
 4989|      0|      scheme += sizeof(HTTP_PSEUDO_SCHEME);
  ------------------
  |  |  230|      0|#define HTTP_PSEUDO_SCHEME    ":scheme"
  ------------------
 4990|      0|      curlx_str_passblanks(&scheme);
 4991|      0|      infof(data, "set pseudo header %s to %s", HTTP_PSEUDO_SCHEME, scheme);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 4992|      0|    }
 4993|  4.38k|    else {
 4994|  4.38k|      scheme = data->state.origin->scheme->name;
 4995|  4.38k|    }
 4996|  4.38k|  }
 4997|       |
 4998|  4.38k|  if(req->authority) {
  ------------------
  |  Branch (4998:6): [True: 1, False: 4.38k]
  ------------------
 4999|      1|    authority = req->authority;
 5000|      1|  }
 5001|  4.38k|  else {
 5002|  4.38k|    e = Curl_dynhds_get(&req->headers, STRCONST("Host"));
  ------------------
  |  | 1305|  4.38k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  4.38k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 5003|  4.38k|    if(e)
  ------------------
  |  Branch (5003:8): [True: 4.38k, False: 0]
  ------------------
 5004|  4.38k|      authority = e->value;
 5005|  4.38k|  }
 5006|       |
 5007|  4.38k|  Curl_dynhds_reset(h2_headers);
 5008|  4.38k|  Curl_dynhds_set_opts(h2_headers, DYNHDS_OPT_LOWERCASE);
  ------------------
  |  |   54|  4.38k|#define DYNHDS_OPT_LOWERCASE     (1 << 0)
  ------------------
 5009|  4.38k|  result = Curl_dynhds_add(h2_headers, STRCONST(HTTP_PSEUDO_METHOD),
  ------------------
  |  | 1305|  4.38k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  4.38k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 5010|  4.38k|                           req->method, strlen(req->method));
 5011|  4.38k|  if(!result && scheme) {
  ------------------
  |  Branch (5011:6): [True: 4.38k, False: 0]
  |  Branch (5011:17): [True: 4.38k, False: 0]
  ------------------
 5012|  4.38k|    result = Curl_dynhds_add(h2_headers, STRCONST(HTTP_PSEUDO_SCHEME),
  ------------------
  |  | 1305|  4.38k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  4.38k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 5013|  4.38k|                             scheme, strlen(scheme));
 5014|  4.38k|  }
 5015|  4.38k|  if(!result && authority) {
  ------------------
  |  Branch (5015:6): [True: 4.38k, False: 0]
  |  Branch (5015:17): [True: 4.38k, False: 0]
  ------------------
 5016|  4.38k|    result = Curl_dynhds_add(h2_headers, STRCONST(HTTP_PSEUDO_AUTHORITY),
  ------------------
  |  | 1305|  4.38k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  4.38k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 5017|  4.38k|                             authority, strlen(authority));
 5018|  4.38k|  }
 5019|  4.38k|  if(!result && req->path) {
  ------------------
  |  Branch (5019:6): [True: 4.38k, False: 0]
  |  Branch (5019:17): [True: 4.38k, False: 1]
  ------------------
 5020|  4.38k|    result = Curl_dynhds_add(h2_headers, STRCONST(HTTP_PSEUDO_PATH),
  ------------------
  |  | 1305|  4.38k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  4.38k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 5021|  4.38k|                             req->path, strlen(req->path));
 5022|  4.38k|  }
 5023|  53.8k|  for(i = 0; !result && i < Curl_dynhds_count(&req->headers); ++i) {
  ------------------
  |  Branch (5023:14): [True: 53.8k, False: 0]
  |  Branch (5023:25): [True: 49.4k, False: 4.38k]
  ------------------
 5024|  49.4k|    e = Curl_dynhds_getn(&req->headers, i);
 5025|       |    /* "TE" is special in that it is only permissible when it
 5026|       |     * has only value "trailers". RFC 9113 ch. 8.2.2 */
 5027|  49.4k|    if(e->namelen == 2 && curl_strequal("TE", e->name)) {
  ------------------
  |  Branch (5027:8): [True: 7.97k, False: 41.4k]
  |  Branch (5027:27): [True: 253, False: 7.72k]
  ------------------
 5028|    253|      if(http_TE_has_token(e->value, "trailers"))
  ------------------
  |  Branch (5028:10): [True: 0, False: 253]
  ------------------
 5029|      0|        result = Curl_dynhds_add(h2_headers, e->name, e->namelen,
 5030|      0|                                 "trailers", CURL_CSTRLEN("trailers"));
  ------------------
  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  ------------------
 5031|    253|    }
 5032|  49.1k|    else if(h2_permissible_field(e)) {
  ------------------
  |  Branch (5032:13): [True: 44.7k, False: 4.45k]
  ------------------
 5033|  44.7k|      result = Curl_dynhds_add(h2_headers, e->name, e->namelen,
 5034|  44.7k|                               e->value, e->valuelen);
 5035|  44.7k|    }
 5036|  49.4k|  }
 5037|       |
 5038|  4.38k|  return result;
 5039|  4.38k|}
http.c:pickoneauth:
  351|      3|{
  352|      3|  bool have_user_pass = Curl_creds_has_user_or_pass(creds);
  ------------------
  |  |   78|      3|    ((c) && ((c)->user[0] || (c)->passwd[0]))
  |  |  ------------------
  |  |  |  Branch (78:6): [True: 3, False: 0]
  |  |  |  Branch (78:14): [True: 1, False: 2]
  |  |  |  Branch (78:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
  353|      3|  bool picked;
  354|       |  /* only deal with authentication we want */
  355|      3|  unsigned long avail = pick->avail & pick->want & mask;
  356|      3|  picked = TRUE;
  ------------------
  |  | 1053|      3|#define TRUE true
  ------------------
  357|       |
  358|       |  /* The order of these checks is highly relevant, as this will be the order
  359|       |     of preference in case of the existence of multiple accepted types. */
  360|      3|  if(avail & CURLAUTH_NEGOTIATE)  /* available on empty creds */
  ------------------
  |  |  833|      3|#define CURLAUTH_NEGOTIATE    (((unsigned long)1) << 2)
  ------------------
  |  Branch (360:6): [True: 0, False: 3]
  ------------------
  361|      0|    pick->picked = CURLAUTH_NEGOTIATE;
  ------------------
  |  |  833|      0|#define CURLAUTH_NEGOTIATE    (((unsigned long)1) << 2)
  ------------------
  362|      3|#ifndef CURL_DISABLE_BEARER_AUTH
  363|      3|  else if((avail & CURLAUTH_BEARER) && Curl_creds_has_oauth_bearer(creds))
  ------------------
  |  |  844|      3|#define CURLAUTH_BEARER       (((unsigned long)1) << 6)
  ------------------
                else if((avail & CURLAUTH_BEARER) && Curl_creds_has_oauth_bearer(creds))
  ------------------
  |  |   79|      0|#define Curl_creds_has_oauth_bearer(c)   ((c) && (c)->oauth_bearer[0])
  |  |  ------------------
  |  |  |  Branch (79:43): [True: 0, False: 0]
  |  |  |  Branch (79:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (363:11): [True: 0, False: 3]
  ------------------
  364|      0|    pick->picked = CURLAUTH_BEARER;
  ------------------
  |  |  844|      0|#define CURLAUTH_BEARER       (((unsigned long)1) << 6)
  ------------------
  365|      3|#endif
  366|      3|#ifndef CURL_DISABLE_DIGEST_AUTH
  367|      3|  else if((avail & CURLAUTH_DIGEST) && have_user_pass)
  ------------------
  |  |  832|      3|#define CURLAUTH_DIGEST       (((unsigned long)1) << 1)
  ------------------
  |  Branch (367:11): [True: 0, False: 3]
  |  Branch (367:40): [True: 0, False: 0]
  ------------------
  368|      0|    pick->picked = CURLAUTH_DIGEST;
  ------------------
  |  |  832|      0|#define CURLAUTH_DIGEST       (((unsigned long)1) << 1)
  ------------------
  369|      3|#endif
  370|      3|  else if(avail & CURLAUTH_NTLM)
  ------------------
  |  |  838|      3|#define CURLAUTH_NTLM         (((unsigned long)1) << 3)
  ------------------
  |  Branch (370:11): [True: 0, False: 3]
  ------------------
  371|      0|    pick->picked = CURLAUTH_NTLM;
  ------------------
  |  |  838|      0|#define CURLAUTH_NTLM         (((unsigned long)1) << 3)
  ------------------
  372|      3|#ifndef CURL_DISABLE_BASIC_AUTH
  373|      3|  else if((avail & CURLAUTH_BASIC) && have_user_pass)
  ------------------
  |  |  831|      3|#define CURLAUTH_BASIC        (((unsigned long)1) << 0)
  ------------------
  |  Branch (373:11): [True: 0, False: 3]
  |  Branch (373:39): [True: 0, False: 0]
  ------------------
  374|      0|    pick->picked = CURLAUTH_BASIC;
  ------------------
  |  |  831|      0|#define CURLAUTH_BASIC        (((unsigned long)1) << 0)
  ------------------
  375|      3|#endif
  376|      3|#ifndef CURL_DISABLE_AWS
  377|      3|  else if(avail & CURLAUTH_AWS_SIGV4)
  ------------------
  |  |  845|      3|#define CURLAUTH_AWS_SIGV4    (((unsigned long)1) << 7)
  ------------------
  |  Branch (377:11): [True: 0, False: 3]
  ------------------
  378|      0|    pick->picked = CURLAUTH_AWS_SIGV4;
  ------------------
  |  |  845|      0|#define CURLAUTH_AWS_SIGV4    (((unsigned long)1) << 7)
  ------------------
  379|      3|#endif
  380|       |#ifndef CURL_DISABLE_HTTPSIG
  381|       |  else if(avail & CURLAUTH_HTTPSIG)
  382|       |    pick->picked = CURLAUTH_HTTPSIG;
  383|       |#endif
  384|      3|  else {
  385|      3|    pick->picked = CURLAUTH_PICKNONE; /* we select to use nothing */
  ------------------
  |  |  128|      3|#define CURLAUTH_PICKNONE (1 << 30) /* do not use auth */
  ------------------
  386|      3|    picked = FALSE;
  ------------------
  |  | 1056|      3|#define FALSE false
  ------------------
  387|      3|  }
  388|      3|  pick->avail = CURLAUTH_NONE; /* clear it here */
  ------------------
  |  |  830|      3|#define CURLAUTH_NONE         ((unsigned long)0)
  ------------------
  389|       |
  390|      3|  return picked;
  391|      3|}
http.c:http_perhapsrewind:
  403|  4.40k|{
  404|  4.40k|  curl_off_t bytessent = data->req.writebytecount;
  405|  4.40k|  curl_off_t expectsend = Curl_creader_total_length(data);
  406|  4.40k|  curl_off_t upload_remain = (expectsend >= 0) ? (expectsend - bytessent) : -1;
  ------------------
  |  Branch (406:30): [True: 4.39k, False: 9]
  ------------------
  407|  4.40k|  bool little_upload_remains = (upload_remain >= 0 && upload_remain < 2000);
  ------------------
  |  Branch (407:33): [True: 4.39k, False: 9]
  |  Branch (407:55): [True: 4.34k, False: 54]
  ------------------
  408|  4.40k|  bool needs_rewind = Curl_creader_needs_rewind(data);
  409|       |  /* By default, we would like to abort the transfer when little or unknown
  410|       |   * amount remains. This may be overridden by authentications further
  411|       |   * below! */
  412|  4.40k|  bool abort_upload = (!data->req.upload_done && !little_upload_remains);
  ------------------
  |  Branch (412:24): [True: 216, False: 4.18k]
  |  Branch (412:50): [True: 63, False: 153]
  ------------------
  413|  4.40k|  VERBOSE(const char *ongoing_auth = NULL);
  ------------------
  |  | 1617|  4.40k|#define VERBOSE(x) x
  ------------------
  414|       |
  415|       |  /* We need a rewind before uploading client read data again. The
  416|       |   * checks below influence of the upload is to be continued
  417|       |   * or aborted early.
  418|       |   * This depends on how much remains to be sent and in what state
  419|       |   * the authentication is. Some auth schemes such as NTLM do not work
  420|       |   * for a new connection. */
  421|  4.40k|  if(needs_rewind) {
  ------------------
  |  Branch (421:6): [True: 164, False: 4.23k]
  ------------------
  422|    164|    infof(data, "Need to rewind upload for next request");
  ------------------
  |  |  143|    164|  do {                               \
  |  |  144|    164|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|    164|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 164, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 164]
  |  |  |  |  ------------------
  |  |  |  |  323|    164|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    164|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    164|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 164]
  |  |  ------------------
  ------------------
  423|    164|    Curl_creader_set_rewind(data, TRUE);
  ------------------
  |  | 1053|    164|#define TRUE true
  ------------------
  424|    164|  }
  425|       |
  426|  4.40k|  if(conn->bits.close)
  ------------------
  |  Branch (426:6): [True: 4, False: 4.39k]
  ------------------
  427|       |    /* If we already decided to close this connection, we cannot veto. */
  428|      4|    return CURLE_OK;
  429|       |
  430|  4.39k|  if(abort_upload) {
  ------------------
  |  Branch (430:6): [True: 62, False: 4.33k]
  ------------------
  431|       |    /* We would like to abort the upload - but should we? */
  432|       |#ifdef USE_NTLM
  433|       |    if((data->state.authproxy.picked == CURLAUTH_NTLM) ||
  434|       |       (data->state.authhost.picked == CURLAUTH_NTLM)) {
  435|       |      VERBOSE(ongoing_auth = "NTLM");
  436|       |      if((conn->http_ntlm_state != NTLMSTATE_NONE) ||
  437|       |         (conn->proxy_ntlm_state != NTLMSTATE_NONE)) {
  438|       |        /* The NTLM-negotiation has started, keep on sending.
  439|       |         * Need to do further work on same connection */
  440|       |        abort_upload = FALSE;
  441|       |      }
  442|       |    }
  443|       |#endif
  444|       |#ifdef USE_SPNEGO
  445|       |    /* There is still data left to send */
  446|       |    if((data->state.authproxy.picked == CURLAUTH_NEGOTIATE) ||
  447|       |       (data->state.authhost.picked == CURLAUTH_NEGOTIATE)) {
  448|       |      VERBOSE(ongoing_auth = "NEGOTIATE");
  449|       |      if((conn->http_negotiate_state != GSS_AUTHNONE) ||
  450|       |         (conn->proxy_negotiate_state != GSS_AUTHNONE)) {
  451|       |        /* The NEGOTIATE-negotiation has started, keep on sending.
  452|       |         * Need to do further work on same connection */
  453|       |        abort_upload = FALSE;
  454|       |      }
  455|       |    }
  456|       |#endif
  457|     62|  }
  458|       |
  459|  4.39k|  if(abort_upload) {
  ------------------
  |  Branch (459:6): [True: 62, False: 4.33k]
  ------------------
  460|     62|    if(upload_remain >= 0)
  ------------------
  |  Branch (460:8): [True: 53, False: 9]
  ------------------
  461|     53|      infof(data, "%s%sclose instead of sending %" FMT_OFF_T " more bytes",
  ------------------
  |  |  143|     53|  do {                               \
  |  |  144|     53|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|     53|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 53, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 53]
  |  |  |  |  ------------------
  |  |  |  |  323|     53|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     53|      Curl_infof(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  ------------------
  |  |  146|     53|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 53]
  |  |  ------------------
  ------------------
  462|     62|            ongoing_auth ? ongoing_auth : "",
  463|     62|            ongoing_auth ? " send, " : "",
  464|     62|            upload_remain);
  465|      9|    else
  466|      9|      infof(data, "%s%sclose instead of sending unknown amount "
  ------------------
  |  |  143|      9|  do {                               \
  |  |  144|      9|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      9|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 9, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 9]
  |  |  |  |  ------------------
  |  |  |  |  323|      9|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      9|      Curl_infof(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  ------------------
  |  |  146|      9|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 9]
  |  |  ------------------
  ------------------
  467|     62|            "of more bytes",
  468|     62|            ongoing_auth ? ongoing_auth : "",
  469|     62|            ongoing_auth ? " send, " : "");
  470|       |    /* We decided to abort the ongoing transfer */
  471|     62|    streamclose(conn);
  ------------------
  |  |   87|     62|#define streamclose(x) Curl_conncontrol((x), CONNCTRL_STREAM_CLOSE)
  |  |  ------------------
  |  |  |  |   83|     62|#define CONNCTRL_STREAM_CLOSE    2
  |  |  ------------------
  ------------------
  472|     62|    data->req.size = 0; /* do not download any more than 0 bytes */
  473|       |    data->req.http_bodyless = TRUE;
  ------------------
  |  | 1053|     62|#define TRUE true
  ------------------
  474|     62|  }
  475|  4.39k|  return CURLE_OK;
  476|  4.40k|}
http.c:http_should_fail:
  487|  10.3k|{
  488|  10.3k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|  10.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (488:3): [True: 0, False: 10.3k]
  |  Branch (488:3): [True: 10.3k, False: 0]
  ------------------
  489|  10.3k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1083|  10.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (489:3): [True: 0, False: 10.3k]
  |  Branch (489:3): [True: 10.3k, False: 0]
  ------------------
  490|       |
  491|       |  /*
  492|       |   * If we have not been asked to fail on error,
  493|       |   * do not fail.
  494|       |   */
  495|  10.3k|  if(!data->set.http_fail_on_error)
  ------------------
  |  Branch (495:6): [True: 10.2k, False: 122]
  ------------------
  496|  10.2k|    return FALSE;
  ------------------
  |  | 1056|  10.2k|#define FALSE false
  ------------------
  497|       |
  498|       |  /*
  499|       |   * Any code < 400 is never terminal.
  500|       |   */
  501|    122|  if(httpcode < 400)
  ------------------
  |  Branch (501:6): [True: 116, False: 6]
  ------------------
  502|    116|    return FALSE;
  ------------------
  |  | 1056|    116|#define FALSE false
  ------------------
  503|       |
  504|       |  /*
  505|       |   * A 416 response to a resume request is presumably because the file is
  506|       |   * already completely downloaded and thus not actually a fail.
  507|       |   */
  508|      6|  if(data->state.resume_from && data->state.httpreq == HTTPREQ_GET &&
  ------------------
  |  Branch (508:6): [True: 0, False: 6]
  |  Branch (508:33): [True: 0, False: 0]
  ------------------
  509|      0|     httpcode == 416)
  ------------------
  |  Branch (509:6): [True: 0, False: 0]
  ------------------
  510|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  511|       |
  512|       |  /*
  513|       |   * Any code >= 400 that is not 401 or 407 is always
  514|       |   * a terminal error
  515|       |   */
  516|      6|  if((httpcode != 401) && (httpcode != 407))
  ------------------
  |  Branch (516:6): [True: 3, False: 3]
  |  Branch (516:27): [True: 2, False: 1]
  ------------------
  517|      2|    return TRUE;
  ------------------
  |  | 1053|      2|#define TRUE true
  ------------------
  518|       |
  519|       |  /*
  520|       |   * All we have left to deal with is 401 and 407
  521|       |   */
  522|      4|  DEBUGASSERT((httpcode == 401) || (httpcode == 407));
  ------------------
  |  | 1083|      4|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (522:3): [True: 4, False: 0]
  |  Branch (522:3): [True: 0, False: 0]
  |  Branch (522:3): [True: 3, False: 1]
  |  Branch (522:3): [True: 1, False: 0]
  ------------------
  523|       |
  524|       |  /*
  525|       |   * Examine the current authentication state to see if this is an error. The
  526|       |   * idea is for this function to get called after processing all the headers
  527|       |   * in a response message. If we have been to asked to authenticate
  528|       |   * a particular stage, and we have done it, we are OK. If we are already
  529|       |   * completely authenticated, it is not OK to get another 401 or 407.
  530|       |   *
  531|       |   * It is possible for authentication to go stale such that the client needs
  532|       |   * to reauthenticate. Once that info is available, use it here.
  533|       |   */
  534|       |
  535|       |  /*
  536|       |   * Either we are not authenticating, or we are supposed to be authenticating
  537|       |   * something else. This is an error.
  538|       |   */
  539|      4|  if((httpcode == 401) && !data->state.creds)
  ------------------
  |  Branch (539:6): [True: 3, False: 1]
  |  Branch (539:27): [True: 1, False: 2]
  ------------------
  540|      1|    return TRUE;
  ------------------
  |  | 1053|      1|#define TRUE true
  ------------------
  541|      3|#ifndef CURL_DISABLE_PROXY
  542|      3|  if((httpcode == 407) && !data->conn->http_proxy.creds)
  ------------------
  |  Branch (542:6): [True: 1, False: 2]
  |  Branch (542:27): [True: 1, False: 0]
  ------------------
  543|      1|    return TRUE;
  ------------------
  |  | 1053|      1|#define TRUE true
  ------------------
  544|      2|#endif
  545|       |
  546|      2|  return (bool)data->state.authproblem;
  547|      3|}
http.c:output_auth_headers:
  653|    976|{
  654|    976|  const char *auth = NULL;
  655|    976|  CURLcode result = CURLE_OK;
  656|    976|  (void)conn;
  657|       |
  658|       |#ifdef CURL_DISABLE_DIGEST_AUTH
  659|       |  (void)request;
  660|       |  (void)path;
  661|       |#endif
  662|    976|#ifndef CURL_DISABLE_AWS
  663|    976|  if((authstatus->picked == CURLAUTH_AWS_SIGV4) && !proxy) {
  ------------------
  |  |  845|    976|#define CURLAUTH_AWS_SIGV4    (((unsigned long)1) << 7)
  ------------------
  |  Branch (663:6): [True: 0, False: 976]
  |  Branch (663:52): [True: 0, False: 0]
  ------------------
  664|       |    /* this method is never for proxy */
  665|      0|    auth = "AWS_SIGV4";
  666|      0|    result = Curl_output_aws_sigv4(data);
  667|      0|    if(result)
  ------------------
  |  Branch (667:8): [True: 0, False: 0]
  ------------------
  668|      0|      return result;
  669|      0|  }
  670|    976|  else
  671|    976|#endif
  672|       |#ifndef CURL_DISABLE_HTTPSIG
  673|       |  if((authstatus->picked == CURLAUTH_HTTPSIG) && !proxy) {
  674|       |    /* HTTPSIG uses its own configured key material rather than
  675|       |       data->state.creds. Do not let unrelated credentials from a
  676|       |       redirected URL bypass the cross-host auth boundary. */
  677|       |    if(Curl_auth_allowed_to_host(data)) {
  678|       |      auth = "HTTPSIG";
  679|       |      result = Curl_output_httpsig(data);
  680|       |      if(result)
  681|       |        return result;
  682|       |    }
  683|       |    else
  684|       |      authstatus->done = TRUE;
  685|       |  }
  686|       |  else
  687|       |#endif
  688|       |#ifdef USE_SPNEGO
  689|       |  if(authstatus->picked == CURLAUTH_NEGOTIATE) {
  690|       |    auth = "Negotiate";
  691|       |    result = Curl_output_negotiate(data, conn, proxy);
  692|       |    if(result)
  693|       |      return result;
  694|       |  }
  695|       |  else
  696|       |#endif
  697|       |#ifdef USE_NTLM
  698|       |  if(authstatus->picked == CURLAUTH_NTLM) {
  699|       |    auth = "NTLM";
  700|       |    result = Curl_output_ntlm(data, proxy);
  701|       |    if(result)
  702|       |      return result;
  703|       |  }
  704|       |  else
  705|       |#endif
  706|    976|#ifndef CURL_DISABLE_DIGEST_AUTH
  707|    976|  if(authstatus->picked == CURLAUTH_DIGEST) {
  ------------------
  |  |  832|    976|#define CURLAUTH_DIGEST       (((unsigned long)1) << 1)
  ------------------
  |  Branch (707:6): [True: 0, False: 976]
  ------------------
  708|      0|    auth = "Digest";
  709|      0|    result = Curl_output_digest(data,
  710|      0|                                proxy,
  711|      0|                                (const unsigned char *)request,
  712|      0|                                (const unsigned char *)path);
  713|      0|    if(result)
  ------------------
  |  Branch (713:8): [True: 0, False: 0]
  ------------------
  714|      0|      return result;
  715|      0|  }
  716|    976|  else
  717|    976|#endif
  718|    976|#ifndef CURL_DISABLE_BASIC_AUTH
  719|    976|  if(authstatus->picked == CURLAUTH_BASIC) {
  ------------------
  |  |  831|    976|#define CURLAUTH_BASIC        (((unsigned long)1) << 0)
  ------------------
  |  Branch (719:6): [True: 976, False: 0]
  ------------------
  720|       |    /* Basic */
  721|    976|    if(
  722|    976|#ifndef CURL_DISABLE_PROXY
  723|    976|       (proxy && conn->http_proxy.creds &&
  ------------------
  |  Branch (723:9): [True: 0, False: 976]
  |  Branch (723:18): [True: 0, False: 0]
  ------------------
  724|      0|        Curl_creds_has_user_or_pass(conn->http_proxy.creds) &&
  ------------------
  |  |   78|    976|    ((c) && ((c)->user[0] || (c)->passwd[0]))
  |  |  ------------------
  |  |  |  Branch (78:6): [True: 0, False: 0]
  |  |  |  Branch (78:14): [True: 0, False: 0]
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  725|      0|        !Curl_checkProxyheaders(data, conn,
  ------------------
  |  Branch (725:9): [True: 0, False: 0]
  ------------------
  726|      0|                                STRCONST("Proxy-authorization"))) ||
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  727|    976|#endif
  728|    976|       (!proxy && data->state.creds &&
  ------------------
  |  Branch (728:9): [True: 976, False: 0]
  |  Branch (728:19): [True: 976, False: 0]
  ------------------
  729|    976|        Curl_creds_has_user_or_pass(data->state.creds) &&
  ------------------
  |  |   78|  1.95k|    ((c) && ((c)->user[0] || (c)->passwd[0]))
  |  |  ------------------
  |  |  |  Branch (78:6): [True: 976, False: 0]
  |  |  |  Branch (78:14): [True: 455, False: 521]
  |  |  |  Branch (78:30): [True: 292, False: 229]
  |  |  ------------------
  ------------------
  730|    747|        !Curl_checkheaders(data, STRCONST("Authorization")))) {
  ------------------
  |  | 1305|    747|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|    747|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  |  Branch (730:9): [True: 747, False: 0]
  ------------------
  731|    747|      auth = "Basic";
  732|    747|      result = http_output_basic(data, conn, proxy);
  733|    747|      if(result)
  ------------------
  |  Branch (733:10): [True: 0, False: 747]
  ------------------
  734|      0|        return result;
  735|    747|    }
  736|       |
  737|       |    /* NOTE: this function should set 'done' TRUE, as the other auth
  738|       |       functions work that way */
  739|    976|    authstatus->done = TRUE;
  ------------------
  |  | 1053|    976|#define TRUE true
  ------------------
  740|    976|  }
  741|    976|#endif
  742|    976|#ifndef CURL_DISABLE_BEARER_AUTH
  743|    976|  if(authstatus->picked == CURLAUTH_BEARER) {
  ------------------
  |  |  844|    976|#define CURLAUTH_BEARER       (((unsigned long)1) << 6)
  ------------------
  |  Branch (743:6): [True: 0, False: 976]
  ------------------
  744|       |    /* Bearer */
  745|      0|    if(!proxy && Curl_creds_has_oauth_bearer(data->state.creds) &&
  ------------------
  |  |   79|      0|#define Curl_creds_has_oauth_bearer(c)   ((c) && (c)->oauth_bearer[0])
  |  |  ------------------
  |  |  |  Branch (79:43): [True: 0, False: 0]
  |  |  |  Branch (79:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (745:8): [True: 0, False: 0]
  ------------------
  746|      0|       !Curl_checkheaders(data, STRCONST("Authorization"))) {
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  |  Branch (746:8): [True: 0, False: 0]
  ------------------
  747|      0|      auth = "Bearer";
  748|      0|      result = http_output_bearer(data);
  749|      0|      if(result)
  ------------------
  |  Branch (749:10): [True: 0, False: 0]
  ------------------
  750|      0|        return result;
  751|      0|    }
  752|       |
  753|       |    /* NOTE: this function should set 'done' TRUE, as the other auth
  754|       |       functions work that way */
  755|      0|    authstatus->done = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  756|      0|  }
  757|    976|#endif
  758|       |
  759|    976|  if(auth) {
  ------------------
  |  Branch (759:6): [True: 747, False: 229]
  ------------------
  760|    747|#ifndef CURL_DISABLE_PROXY
  761|    747|    if(proxy)
  ------------------
  |  Branch (761:8): [True: 0, False: 747]
  ------------------
  762|      0|      data->info.proxyauthpicked = authstatus->picked;
  763|    747|    else
  764|    747|      data->info.httpauthpicked = authstatus->picked;
  765|    747|    infof(data, "%s auth using %s with user '%s'",
  ------------------
  |  |  143|    747|  do {                               \
  |  |  144|    747|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|    747|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 747, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 747]
  |  |  |  |  ------------------
  |  |  |  |  323|    747|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    747|      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|    747|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 747]
  |  |  ------------------
  ------------------
  766|    747|          proxy ? "Proxy" : "Server", auth,
  767|    747|          proxy ? (conn->http_proxy.creds ?
  768|    747|                   conn->http_proxy.creds->user : "") :
  769|    747|          (data->state.creds ?
  770|    747|           data->state.creds->user : ""));
  771|       |#else
  772|       |    (void)proxy;
  773|       |    infof(data, "Server auth using %s with user '%s'",
  774|       |          auth, data->state.creds ?
  775|       |          data->state.creds->user : "");
  776|       |#endif
  777|    747|    authstatus->multipass = !authstatus->done;
  778|    747|  }
  779|    229|  else {
  780|    229|    authstatus->multipass = FALSE;
  ------------------
  |  | 1056|    229|#define FALSE false
  ------------------
  781|    229|    if(proxy)
  ------------------
  |  Branch (781:8): [True: 0, False: 229]
  ------------------
  782|      0|      data->info.proxyauthpicked = 0;
  783|    229|    else
  784|    229|      data->info.httpauthpicked = 0;
  785|    229|  }
  786|       |
  787|    976|  return result;
  788|    976|}
http.c:http_output_basic:
  254|    747|{
  255|    747|  size_t size = 0;
  256|    747|  char *authorization = NULL;
  257|    747|  char **p_hd;
  258|    747|  CURLcode result;
  259|    747|  struct Curl_creds *creds = NULL;
  260|    747|  char *out;
  261|       |
  262|       |  /* credentials are unique per transfer for HTTP, do not use the ones for the
  263|       |     connection */
  264|    747|  if(proxy) {
  ------------------
  |  Branch (264:6): [True: 0, False: 747]
  ------------------
  265|      0|#ifndef CURL_DISABLE_PROXY
  266|      0|    p_hd = &data->req.hd_proxy_auth;
  267|      0|    creds = conn->http_proxy.creds;
  268|       |#else
  269|       |    (void)conn;
  270|       |    return CURLE_NOT_BUILT_IN;
  271|       |#endif
  272|      0|  }
  273|    747|  else {
  274|    747|    p_hd = &data->req.hd_auth;
  275|    747|    creds = data->state.creds;
  276|    747|  }
  277|       |
  278|    747|  if(!creds) {
  ------------------
  |  Branch (278:6): [True: 0, False: 747]
  ------------------
  279|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (279:5): [Folded, False: 0]
  |  Branch (279:5): [Folded, False: 0]
  ------------------
  280|      0|    return CURLE_FAILED_INIT;
  281|      0|  }
  282|       |
  283|    747|  out = curl_maprintf("%s:%s", creds->user, creds->passwd);
  284|    747|  if(!out)
  ------------------
  |  Branch (284:6): [True: 0, False: 747]
  ------------------
  285|      0|    return CURLE_OUT_OF_MEMORY;
  286|       |
  287|    747|  result = curlx_base64_encode((uint8_t *)out, strlen(out),
  288|    747|                               &authorization, &size);
  289|    747|  if(result)
  ------------------
  |  Branch (289:6): [True: 0, False: 747]
  ------------------
  290|      0|    goto fail;
  291|       |
  292|    747|  if(!authorization) {
  ------------------
  |  Branch (292:6): [True: 0, False: 747]
  ------------------
  293|      0|    result = CURLE_REMOTE_ACCESS_DENIED;
  294|      0|    goto fail;
  295|      0|  }
  296|       |
  297|    747|  curlx_free(*p_hd);
  ------------------
  |  | 1482|    747|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  298|    747|  *p_hd = curl_maprintf("%sAuthorization: Basic %s\r\n",
  299|    747|                        proxy ? "Proxy-" : "",
  ------------------
  |  Branch (299:25): [True: 0, False: 747]
  ------------------
  300|    747|                        authorization);
  301|    747|  curlx_free(authorization);
  ------------------
  |  | 1482|    747|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  302|    747|  if(!*p_hd) {
  ------------------
  |  Branch (302:6): [True: 0, False: 747]
  ------------------
  303|      0|    result = CURLE_OUT_OF_MEMORY;
  304|      0|    goto fail;
  305|      0|  }
  306|       |
  307|    747|fail:
  308|    747|  curlx_free(out);
  ------------------
  |  | 1482|    747|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  309|    747|  return result;
  310|    747|}
http.c:http_switch_to_get:
 1146|     62|{
 1147|     62|  const char *req = data->set.str[STRING_CUSTOMREQUEST];
 1148|       |
 1149|     62|  if((req || data->state.httpreq != HTTPREQ_GET) &&
  ------------------
  |  Branch (1149:7): [True: 11, False: 51]
  |  Branch (1149:14): [True: 29, False: 22]
  ------------------
 1150|     40|     (data->set.http_follow_mode == CURLFOLLOW_OBEYCODE)) {
  ------------------
  |  |  183|     40|#define CURLFOLLOW_OBEYCODE  2L
  ------------------
  |  Branch (1150:6): [True: 0, False: 40]
  ------------------
 1151|      0|    NOVERBOSE((void)code);
  ------------------
  |  | 1618|      0|#define NOVERBOSE(x) Curl_nop_stmt
  |  |  ------------------
  |  |  |  | 1191|      0|#define Curl_nop_stmt do {} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1191:35): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1152|      0|    infof(data, "Switch to GET because of %d response", code);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1153|      0|    data->state.http_ignorecustom = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1154|      0|  }
 1155|     62|  else if(req && (data->set.http_follow_mode != CURLFOLLOW_FIRSTONLY))
  ------------------
  |  |  186|     11|#define CURLFOLLOW_FIRSTONLY 3L
  ------------------
  |  Branch (1155:11): [True: 11, False: 51]
  |  Branch (1155:18): [True: 11, False: 0]
  ------------------
 1156|     11|    infof(data, "Stick to %s instead of GET", req);
  ------------------
  |  |  143|     11|  do {                               \
  |  |  144|     11|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|     11|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 11, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 11]
  |  |  |  |  ------------------
  |  |  |  |  323|     11|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     11|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     11|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 11]
  |  |  ------------------
  ------------------
 1157|       |
 1158|     62|  data->state.httpreq = HTTPREQ_GET;
 1159|       |  Curl_creader_set_rewind(data, FALSE);
  ------------------
  |  | 1056|     62|#define FALSE false
  ------------------
 1160|     62|}
http.c:http_exp100_is_waiting:
 1592|  13.0k|{
 1593|  13.0k|  struct Curl_creader *r = Curl_creader_get_by_type(data, &cr_exp100);
 1594|  13.0k|  if(r) {
  ------------------
  |  Branch (1594:6): [True: 5.44k, False: 7.57k]
  ------------------
 1595|  5.44k|    struct cr_exp100_ctx *ctx = r->ctx;
 1596|  5.44k|    return ctx->state == EXP100_AWAITING_CONTINUE;
 1597|  5.44k|  }
 1598|  7.57k|  return FALSE;
  ------------------
  |  | 1056|  7.57k|#define FALSE false
  ------------------
 1599|  13.0k|}
http.c:cr_exp100_read:
 1497|  3.80k|{
 1498|  3.80k|  struct cr_exp100_ctx *ctx = reader->ctx;
 1499|  3.80k|  timediff_t ms;
 1500|       |
 1501|  3.80k|  switch(ctx->state) {
 1502|    603|  case EXP100_SENDING_REQUEST:
  ------------------
  |  Branch (1502:3): [True: 603, False: 3.20k]
  ------------------
 1503|    603|    if(!Curl_req_sendbuf_empty(data)) {
  ------------------
  |  Branch (1503:8): [True: 539, False: 64]
  ------------------
 1504|       |      /* The initial request data has not been fully sent yet. Do
 1505|       |       * not start the timer yet. */
 1506|    539|      DEBUGF(infof(data, "cr_exp100_read, request not full sent yet"));
  ------------------
  |  | 1069|  3.77k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1069:19): [True: 539, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 539]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [Folded, False: 539]
  |  |  ------------------
  ------------------
 1507|    539|      *nread = 0;
 1508|    539|      *eos = FALSE;
  ------------------
  |  | 1056|    539|#define FALSE false
  ------------------
 1509|    539|      return CURLE_OK;
 1510|    539|    }
 1511|       |    /* We are now waiting for a reply from the server or
 1512|       |     * a timeout on our side IFF the request has been fully sent. */
 1513|     64|    DEBUGF(infof(data, "cr_exp100_read, start AWAITING_CONTINUE, "
  ------------------
  |  | 1069|    448|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1069:19): [True: 64, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 64]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [Folded, False: 64]
  |  |  ------------------
  ------------------
 1514|     64|                 "timeout %dms", data->set.expect_100_timeout));
 1515|     64|    ctx->state = EXP100_AWAITING_CONTINUE;
 1516|     64|    ctx->start = *Curl_pgrs_now(data);
 1517|     64|    Curl_expire(data, data->set.expect_100_timeout, EXPIRE_100_TIMEOUT);
 1518|     64|    *nread = 0;
 1519|     64|    *eos = FALSE;
  ------------------
  |  | 1056|     64|#define FALSE false
  ------------------
 1520|     64|    return CURLE_OK;
 1521|      0|  case EXP100_FAILED:
  ------------------
  |  Branch (1521:3): [True: 0, False: 3.80k]
  ------------------
 1522|      0|    DEBUGF(infof(data, "cr_exp100_read, expectation failed, error"));
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1523|      0|    *nread = 0;
 1524|      0|    *eos = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1525|      0|    return CURLE_READ_ERROR;
 1526|  3.14k|  case EXP100_AWAITING_CONTINUE:
  ------------------
  |  Branch (1526:3): [True: 3.14k, False: 658]
  ------------------
 1527|  3.14k|    ms = curlx_ptimediff_ms(Curl_pgrs_now(data), &ctx->start);
 1528|  3.14k|    if(ms < data->set.expect_100_timeout) {
  ------------------
  |  Branch (1528:8): [True: 3.11k, False: 31]
  ------------------
 1529|  3.11k|      DEBUGF(infof(data, "cr_exp100_read, AWAITING_CONTINUE, not expired"));
  ------------------
  |  | 1069|  21.7k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1069:19): [True: 3.11k, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 3.11k]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [Folded, False: 3.11k]
  |  |  ------------------
  ------------------
 1530|  3.11k|      *nread = 0;
 1531|  3.11k|      *eos = FALSE;
  ------------------
  |  | 1056|  3.11k|#define FALSE false
  ------------------
 1532|  3.11k|      return CURLE_OK;
 1533|  3.11k|    }
 1534|       |    /* we have waited long enough, continue anyway */
 1535|     31|    http_exp100_continue(data, reader);
 1536|     31|    infof(data, "Done waiting for 100-continue");
  ------------------
  |  |  143|     31|  do {                               \
  |  |  144|     31|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|     31|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 31, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 31]
  |  |  |  |  ------------------
  |  |  |  |  323|     31|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     31|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     31|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 31]
  |  |  ------------------
  ------------------
 1537|     31|    FALLTHROUGH();
  ------------------
  |  |  823|     31|#  define FALLTHROUGH()  __attribute__((fallthrough))
  ------------------
 1538|     86|  default:
  ------------------
  |  Branch (1538:3): [True: 55, False: 3.74k]
  ------------------
 1539|     86|    DEBUGF(infof(data, "cr_exp100_read, pass through"));
  ------------------
  |  | 1069|    602|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1069:19): [True: 86, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 86]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [Folded, False: 86]
  |  |  ------------------
  ------------------
 1540|     86|    return Curl_creader_read(data, reader->next, buf, blen, nread, eos);
 1541|  3.80k|  }
 1542|  3.80k|}
http.c:http_exp100_continue:
 1485|     67|{
 1486|     67|  struct cr_exp100_ctx *ctx = reader->ctx;
 1487|     67|  if(ctx->state > EXP100_SEND_DATA) {
  ------------------
  |  Branch (1487:6): [True: 47, False: 20]
  ------------------
 1488|     47|    ctx->state = EXP100_SEND_DATA;
 1489|     47|    Curl_expire_done(data, EXPIRE_100_TIMEOUT);
 1490|     47|  }
 1491|     67|}
http.c:cr_exp100_done:
 1546|    175|{
 1547|    175|  struct cr_exp100_ctx *ctx = reader->ctx;
 1548|    175|  ctx->state = premature ? EXP100_FAILED : EXP100_SEND_DATA;
  ------------------
  |  Branch (1548:16): [True: 151, False: 24]
  ------------------
 1549|    175|  Curl_expire_done(data, EXPIRE_100_TIMEOUT);
 1550|    175|}
http.c:http_write_header:
 1643|  7.78k|{
 1644|  7.78k|  CURLcode result;
 1645|  7.78k|  int writetype;
 1646|       |
 1647|       |  /* now, only output this if the header AND body are requested:
 1648|       |   */
 1649|  7.78k|  Curl_debug(data, CURLINFO_HEADER_IN, hd, hdlen);
 1650|       |
 1651|  7.78k|  writetype = CLIENTWRITE_HEADER |
  ------------------
  |  |   45|  7.78k|#define CLIENTWRITE_HEADER  (1 << 2) /* meta information, HEADER */
  ------------------
 1652|  7.78k|    ((data->req.httpcode / 100 == 1) ? CLIENTWRITE_1XX : 0);
  ------------------
  |  |   48|  1.83k|#define CLIENTWRITE_1XX     (1 << 5) /* a 1xx response related HEADER */
  ------------------
  |  Branch (1652:6): [True: 1.83k, False: 5.95k]
  ------------------
 1653|       |
 1654|  7.78k|  result = Curl_client_write(data, writetype, hd, hdlen);
 1655|  7.78k|  if(result)
  ------------------
  |  Branch (1655:6): [True: 679, False: 7.10k]
  ------------------
 1656|    679|    return result;
 1657|       |
 1658|  7.10k|  result = Curl_bump_headersize(data, hdlen, FALSE);
  ------------------
  |  | 1056|  7.10k|#define FALSE false
  ------------------
 1659|  7.10k|  if(result)
  ------------------
  |  Branch (1659:6): [True: 0, False: 7.10k]
  ------------------
 1660|      0|    return result;
 1661|       |
 1662|  7.10k|  data->req.deductheadercount = (100 <= data->req.httpcode &&
  ------------------
  |  Branch (1662:34): [True: 7.08k, False: 25]
  ------------------
 1663|  7.08k|                                 199 >= data->req.httpcode) ?
  ------------------
  |  Branch (1663:34): [True: 1.81k, False: 5.27k]
  ------------------
 1664|  5.29k|    data->req.headerbytecount : 0;
 1665|  7.10k|  return result;
 1666|  7.10k|}
http.c:http_check_new_conn:
 2774|  8.97k|{
 2775|  8.97k|  struct connectdata *conn = data->conn;
 2776|  8.97k|  const char *info_version = NULL;
 2777|  8.97k|  const char *alpn;
 2778|  8.97k|  CURLcode result;
 2779|       |
 2780|  8.97k|  alpn = Curl_conn_get_alpn_negotiated(data, conn);
 2781|  8.97k|  if(alpn && !strcmp("h3", alpn)) {
  ------------------
  |  Branch (2781:6): [True: 0, False: 8.97k]
  |  Branch (2781:14): [True: 0, False: 0]
  ------------------
 2782|      0|#ifndef CURL_DISABLE_PROXY
 2783|      0|    if(!conn->bits.origin_is_proxy)
  ------------------
  |  Branch (2783:8): [True: 0, False: 0]
  ------------------
 2784|      0|#endif
 2785|      0|      DEBUGASSERT(Curl_conn_http_version(data, conn) == 30);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2785:7): [True: 0, False: 0]
  |  Branch (2785:7): [True: 0, False: 0]
  ------------------
 2786|      0|    info_version = "HTTP/3";
 2787|      0|  }
 2788|  8.97k|  else if(alpn && !strcmp("h2", alpn)) {
  ------------------
  |  Branch (2788:11): [True: 0, False: 8.97k]
  |  Branch (2788:19): [True: 0, False: 0]
  ------------------
 2789|      0|#ifndef CURL_DISABLE_PROXY
 2790|      0|    if((Curl_conn_http_version(data, conn) != 20) &&
  ------------------
  |  Branch (2790:8): [True: 0, False: 0]
  ------------------
 2791|      0|       conn->bits.origin_is_proxy) {
  ------------------
  |  Branch (2791:8): [True: 0, False: 0]
  ------------------
 2792|      0|      result = Curl_http2_switch(data);
 2793|      0|      if(result)
  ------------------
  |  Branch (2793:10): [True: 0, False: 0]
  ------------------
 2794|      0|        return result;
 2795|      0|    }
 2796|      0|    else
 2797|      0|#endif
 2798|      0|    DEBUGASSERT(Curl_conn_http_version(data, conn) == 20);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2798:5): [True: 0, False: 0]
  |  Branch (2798:5): [True: 0, False: 0]
  ------------------
 2799|      0|    info_version = "HTTP/2";
 2800|      0|  }
 2801|  8.97k|  else {
 2802|       |    /* Check if user wants to use HTTP/2 with clear TCP */
 2803|  8.97k|    if(Curl_http2_may_switch(data)) {
  ------------------
  |  Branch (2803:8): [True: 4.39k, False: 4.58k]
  ------------------
 2804|  4.39k|      DEBUGF(infof(data, "HTTP/2 over clean TCP"));
  ------------------
  |  | 1069|  30.7k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1069:19): [True: 4.39k, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 4.39k]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [Folded, False: 4.39k]
  |  |  ------------------
  ------------------
 2805|  4.39k|      result = Curl_http2_switch(data);
 2806|  4.39k|      if(result)
  ------------------
  |  Branch (2806:10): [True: 0, False: 4.39k]
  ------------------
 2807|      0|        return result;
 2808|  4.39k|      info_version = "HTTP/2";
 2809|       |      /* There is no ALPN here, but the connection is now definitely h2 */
 2810|  4.39k|      conn->httpversion_seen = 20;
 2811|  4.39k|      Curl_conn_set_multiplex(conn);
 2812|  4.39k|    }
 2813|  4.58k|    else
 2814|  4.58k|      info_version = "HTTP/1.x";
 2815|  8.97k|  }
 2816|       |
 2817|  8.97k|  if(info_version)
  ------------------
  |  Branch (2817:6): [True: 8.97k, False: 0]
  ------------------
 2818|  8.97k|    infof(data, "using %s", info_version);
  ------------------
  |  |  143|  8.97k|  do {                               \
  |  |  144|  8.97k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|  8.97k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 8.97k, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 8.97k]
  |  |  |  |  ------------------
  |  |  |  |  323|  8.97k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  8.97k|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|  8.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 8.97k]
  |  |  ------------------
  ------------------
 2819|  8.97k|  return CURLE_OK;
 2820|  8.97k|}
http.c:http_set_aptr_host:
 2029|  13.0k|{
 2030|  13.0k|  struct connectdata *conn = data->conn;
 2031|  13.0k|  struct dynamically_allocated_data *aptr = &data->state.aptr;
 2032|  13.0k|  const char *ptr = NULL;
 2033|       |
 2034|  13.0k|  curlx_safefree(aptr->host);
  ------------------
  |  | 1340|  13.0k|  do {                      \
  |  | 1341|  13.0k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  13.0k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  13.0k|    (ptr) = NULL;           \
  |  | 1343|  13.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 13.0k]
  |  |  ------------------
  ------------------
 2035|  13.0k|#ifndef CURL_DISABLE_COOKIES
 2036|  13.0k|  curlx_safefree(data->req.cookiehost);
  ------------------
  |  | 1340|  13.0k|  do {                      \
  |  | 1341|  13.0k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  13.0k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  13.0k|    (ptr) = NULL;           \
  |  | 1343|  13.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 13.0k]
  |  |  ------------------
  ------------------
 2037|  13.0k|#endif
 2038|       |
 2039|  13.0k|  if(Curl_peer_equal(data->state.initial_origin, data->state.origin))
  ------------------
  |  Branch (2039:6): [True: 13.0k, False: 0]
  ------------------
 2040|  13.0k|    ptr = Curl_checkheaders(data, STRCONST("Host"));
  ------------------
  |  | 1305|  13.0k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  13.0k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 2041|       |
 2042|  13.0k|  if(ptr) {
  ------------------
  |  Branch (2042:6): [True: 0, False: 13.0k]
  ------------------
 2043|      0|#ifndef CURL_DISABLE_COOKIES
 2044|       |    /* If we have a given custom Host: header, we extract the hostname in
 2045|       |       order to possibly use it for cookie reasons later on. We only allow the
 2046|       |       custom Host: header if this is NOT a redirect, as setting Host: in the
 2047|       |       redirected request is being out on thin ice. Except if the hostname
 2048|       |       is the same as the first one! */
 2049|      0|    char *cookiehost;
 2050|      0|    CURLcode result = copy_custom_value(ptr, &cookiehost);
 2051|      0|    if(result)
  ------------------
  |  Branch (2051:8): [True: 0, False: 0]
  ------------------
 2052|      0|      return result;
 2053|      0|    if(!*cookiehost)
  ------------------
  |  Branch (2053:8): [True: 0, False: 0]
  ------------------
 2054|       |      /* ignore empty data */
 2055|      0|      curlx_free(cookiehost);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2056|      0|    else {
 2057|       |      /* If the host begins with '[', we start searching for the port after
 2058|       |         the bracket has been closed */
 2059|      0|      if(*cookiehost == '[') {
  ------------------
  |  Branch (2059:10): [True: 0, False: 0]
  ------------------
 2060|      0|        char *closingbracket;
 2061|       |        /* since the 'cookiehost' is an allocated memory area that will be
 2062|       |           freed later we cannot increment the pointer */
 2063|      0|        memmove(cookiehost, cookiehost + 1, strlen(cookiehost) - 1);
 2064|      0|        closingbracket = strchr(cookiehost, ']');
 2065|      0|        if(closingbracket)
  ------------------
  |  Branch (2065:12): [True: 0, False: 0]
  ------------------
 2066|      0|          *closingbracket = 0;
 2067|      0|      }
 2068|      0|      else {
 2069|      0|        int startsearch = 0;
 2070|      0|        char *colon = strchr(cookiehost + startsearch, ':');
 2071|      0|        if(colon)
  ------------------
  |  Branch (2071:12): [True: 0, False: 0]
  ------------------
 2072|      0|          *colon = 0; /* The host must not include an embedded port number */
 2073|      0|      }
 2074|      0|      data->req.cookiehost = cookiehost;
 2075|      0|    }
 2076|      0|#endif
 2077|       |
 2078|      0|    if(!curl_strequal("Host:", ptr)) {
  ------------------
  |  Branch (2078:8): [True: 0, False: 0]
  ------------------
 2079|      0|      aptr->host = curl_maprintf("Host:%s", &ptr[5]);
 2080|      0|      if(!aptr->host)
  ------------------
  |  Branch (2080:10): [True: 0, False: 0]
  ------------------
 2081|      0|        return CURLE_OUT_OF_MEMORY;
 2082|      0|    }
 2083|      0|  }
 2084|  13.0k|  else {
 2085|       |    /* This is the  HTTP Host: header, so we want
 2086|       |     * - for IPv6 origins: "[ipv6-address]" where the IPv6 address is
 2087|       |     *  found in origin->hostname, stripped of zoneid/scopeid.
 2088|       |     * - the (IDN converted) origin->hostname (DNS name or IPv4) otherwise.
 2089|       |     * Note: zoneid/scopeid  only applies to local routing and has no
 2090|       |     * meaning on the remote HTTP server (eg. would confuse it). */
 2091|  13.0k|    bool ipv6 = (bool)data->state.origin->ipv6;
 2092|  13.0k|    struct dynbuf tmp;
 2093|  13.0k|    size_t hlen;
 2094|  13.0k|    CURLcode result;
 2095|       |
 2096|  13.0k|    curlx_dyn_init(&tmp, DYN_HTTP_REQUEST);
  ------------------
  |  |   69|  13.0k|#define DYN_HTTP_REQUEST    (1024 * 1024)
  ------------------
 2097|  13.0k|    result = curlx_dyn_addn(&tmp, STRCONST("Host: "));
  ------------------
  |  | 1305|  13.0k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  13.0k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 2098|  13.0k|    if(!result && ipv6)
  ------------------
  |  Branch (2098:8): [True: 13.0k, False: 0]
  |  Branch (2098:19): [True: 1.14k, False: 11.9k]
  ------------------
 2099|  1.14k|      result = curlx_dyn_addn(&tmp, STRCONST("["));
  ------------------
  |  | 1305|  1.14k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  1.14k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 2100|  13.0k|    if(!result)
  ------------------
  |  Branch (2100:8): [True: 13.0k, False: 0]
  ------------------
 2101|  13.0k|      result = curlx_dyn_add(&tmp, data->state.origin->hostname);
 2102|  13.0k|    if(!result && ipv6)
  ------------------
  |  Branch (2102:8): [True: 13.0k, False: 0]
  |  Branch (2102:19): [True: 1.14k, False: 11.9k]
  ------------------
 2103|  1.14k|      result = curlx_dyn_addn(&tmp, STRCONST("]"));
  ------------------
  |  | 1305|  1.14k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  1.14k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 2104|  13.0k|    if(!result &&
  ------------------
  |  Branch (2104:8): [True: 13.0k, False: 0]
  ------------------
 2105|  13.0k|       ((data->state.origin->port != data->state.origin->scheme->defport) ||
  ------------------
  |  Branch (2105:9): [True: 364, False: 12.7k]
  ------------------
 2106|  12.7k|       (data->state.origin->scheme->family != conn->scheme->family))) {
  ------------------
  |  Branch (2106:8): [True: 0, False: 12.7k]
  ------------------
 2107|    364|      result = curlx_dyn_addf(&tmp, ":%u", data->state.origin->port);
 2108|    364|    }
 2109|       |
 2110|  13.0k|    aptr->host = result ? NULL : curlx_dyn_take(&tmp, &hlen);
  ------------------
  |  Branch (2110:18): [True: 0, False: 13.0k]
  ------------------
 2111|  13.0k|    curlx_dyn_free(&tmp);
 2112|  13.0k|    return result;
 2113|  13.0k|  }
 2114|      0|  return CURLE_OK;
 2115|  13.0k|}
http.c:http_useragent:
 2018|  13.0k|{
 2019|       |  /* The User-Agent string might have been allocated already, because
 2020|       |     it might have been used in the proxy connect, but if we have got a header
 2021|       |     with the user-agent string specified, we erase the previously made string
 2022|       |     here. */
 2023|  13.0k|  if(Curl_checkheaders(data, STRCONST("User-Agent")))
  ------------------
  |  | 1305|  13.0k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  13.0k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  |  Branch (2023:6): [True: 0, False: 13.0k]
  ------------------
 2024|       |    curlx_safefree(data->state.aptr.uagent);
  ------------------
  |  | 1340|      0|  do {                      \
  |  | 1341|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|      0|    (ptr) = NULL;           \
  |  | 1343|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2025|  13.0k|  return CURLE_OK;
 2026|  13.0k|}
http.c:set_reader:
 2322|  13.0k|{
 2323|  13.0k|  CURLcode result = CURLE_OK;
 2324|  13.0k|  curl_off_t postsize = data->state.infilesize;
 2325|       |
 2326|  13.0k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1083|  13.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2326:3): [True: 0, False: 13.0k]
  |  Branch (2326:3): [True: 13.0k, False: 0]
  ------------------
 2327|       |
 2328|  13.0k|  if(data->req.authneg) {
  ------------------
  |  Branch (2328:6): [True: 0, False: 13.0k]
  ------------------
 2329|      0|    return Curl_creader_set_null(data);
 2330|      0|  }
 2331|       |
 2332|  13.0k|  switch(httpreq) {
 2333|    566|  case HTTPREQ_PUT: /* Let's PUT the data to the server! */
  ------------------
  |  Branch (2333:3): [True: 566, False: 12.5k]
  ------------------
 2334|    566|    return postsize ? Curl_creader_set_fread(data, postsize) :
  ------------------
  |  Branch (2334:12): [True: 519, False: 47]
  ------------------
 2335|    566|      Curl_creader_set_null(data);
 2336|       |
 2337|      0|#if !defined(CURL_DISABLE_MIME) || !defined(CURL_DISABLE_FORM_API)
 2338|      0|  case HTTPREQ_POST_FORM:
  ------------------
  |  Branch (2338:3): [True: 0, False: 13.0k]
  ------------------
 2339|      0|  case HTTPREQ_POST_MIME:
  ------------------
  |  Branch (2339:3): [True: 0, False: 13.0k]
  ------------------
 2340|      0|    return set_post_reader(data, httpreq);
 2341|      0|#endif
 2342|       |
 2343|    867|  case HTTPREQ_POST:
  ------------------
  |  Branch (2343:3): [True: 867, False: 12.2k]
  ------------------
 2344|       |    /* this is the simple POST, using x-www-form-urlencoded style */
 2345|       |    /* the size of the post body */
 2346|    867|    if(!postsize) {
  ------------------
  |  Branch (2346:8): [True: 347, False: 520]
  ------------------
 2347|    347|      result = Curl_creader_set_null(data);
 2348|    347|    }
 2349|    520|    else if(data->set.postfields) {
  ------------------
  |  Branch (2349:13): [True: 230, False: 290]
  ------------------
 2350|    230|      size_t plen = curlx_sotouz_range(postsize, 0, SIZE_MAX);
 2351|    230|      if(plen == SIZE_MAX)
  ------------------
  |  Branch (2351:10): [True: 0, False: 230]
  ------------------
 2352|      0|        return CURLE_OUT_OF_MEMORY;
 2353|    230|      else if(plen)
  ------------------
  |  Branch (2353:15): [True: 230, False: 0]
  ------------------
 2354|    230|        result = Curl_creader_set_buf(data, data->set.postfields, plen);
 2355|      0|      else
 2356|      0|        result = Curl_creader_set_null(data);
 2357|    230|    }
 2358|    290|    else {
 2359|       |      /* we read the bytes from the callback. In case "chunked" encoding
 2360|       |       * is forced by the application, we disregard `postsize`. This is
 2361|       |       * a backward compatibility decision to earlier versions where
 2362|       |       * chunking disregarded this. See issue #13229. */
 2363|    290|      bool chunked = FALSE;
  ------------------
  |  | 1056|    290|#define FALSE false
  ------------------
 2364|    290|      char *ptr = Curl_checkheaders(data, STRCONST("Transfer-Encoding"));
  ------------------
  |  | 1305|    290|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|    290|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 2365|    290|      if(ptr) {
  ------------------
  |  Branch (2365:10): [True: 0, False: 290]
  ------------------
 2366|       |        /* Some kind of TE is requested, check if 'chunked' is chosen */
 2367|      0|        chunked = Curl_compareheader(ptr, STRCONST("Transfer-Encoding:"),
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 2368|      0|                                     STRCONST("chunked"));
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 2369|      0|      }
 2370|    290|      result = Curl_creader_set_fread(data, chunked ? -1 : postsize);
  ------------------
  |  Branch (2370:45): [True: 0, False: 290]
  ------------------
 2371|    290|    }
 2372|    867|    return result;
 2373|       |
 2374|  11.6k|  default:
  ------------------
  |  Branch (2374:3): [True: 11.6k, False: 1.43k]
  ------------------
 2375|       |    /* HTTP GET/HEAD download, has no body, needs no Content-Length */
 2376|  11.6k|    data->state.infilesize = 0;
 2377|  11.6k|    return Curl_creader_set_null(data);
 2378|  13.0k|  }
 2379|       |  /* not reached */
 2380|  13.0k|}
http.c:http_resume:
 2383|  13.0k|{
 2384|  13.0k|  if((HTTPREQ_POST == httpreq || HTTPREQ_PUT == httpreq) &&
  ------------------
  |  Branch (2384:7): [True: 867, False: 12.2k]
  |  Branch (2384:34): [True: 566, False: 11.6k]
  ------------------
 2385|  1.43k|     data->state.resume_from) {
  ------------------
  |  Branch (2385:6): [True: 0, False: 1.43k]
  ------------------
 2386|       |    /**********************************************************************
 2387|       |     * Resuming upload in HTTP means that we PUT or POST and that we have
 2388|       |     * got a resume_from value set. The resume value has already created
 2389|       |     * a Range: header that will be passed along. We need to "fast forward"
 2390|       |     * the file the given number of bytes and decrease the assume upload
 2391|       |     * file size before we continue this venture in the dark lands of HTTP.
 2392|       |     * Resuming mime/form posting at an offset > 0 has no sense and is ignored.
 2393|       |     *********************************************************************/
 2394|       |
 2395|      0|    if(data->state.resume_from < 0) {
  ------------------
  |  Branch (2395:8): [True: 0, False: 0]
  ------------------
 2396|       |      /*
 2397|       |       * This is meant to get the size of the present remote-file by itself.
 2398|       |       * We do not support this now. Bail out!
 2399|       |       */
 2400|      0|      data->state.resume_from = 0;
 2401|      0|    }
 2402|       |
 2403|      0|    if(data->state.resume_from && !data->req.authneg) {
  ------------------
  |  Branch (2403:8): [True: 0, False: 0]
  |  Branch (2403:35): [True: 0, False: 0]
  ------------------
 2404|       |      /* only act on the first request */
 2405|      0|      CURLcode result;
 2406|      0|      result = Curl_creader_resume_from(data, data->state.resume_from);
 2407|      0|      if(result) {
  ------------------
  |  Branch (2407:10): [True: 0, False: 0]
  ------------------
 2408|      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,
  ------------------
  |  |  600|      0|#define FMT_OFF_T  CURL_FORMAT_CURL_OFF_T
  |  |  ------------------
  |  |  |  |  341|      0|#    define CURL_FORMAT_CURL_OFF_T     "ld"
  |  |  ------------------
  ------------------
 2409|      0|              data->state.resume_from);
 2410|      0|        return result;
 2411|      0|      }
 2412|      0|    }
 2413|      0|  }
 2414|  13.0k|  return CURLE_OK;
 2415|  13.0k|}
http.c:http_range:
 2654|  13.0k|{
 2655|  13.0k|  if(data->state.use_range) {
  ------------------
  |  Branch (2655:6): [True: 0, False: 13.0k]
  ------------------
 2656|       |    /*
 2657|       |     * A range is selected. We use different headers whether we are downloading
 2658|       |     * or uploading and we always let customized headers override our internal
 2659|       |     * ones if any such are specified.
 2660|       |     */
 2661|      0|    if(((httpreq == HTTPREQ_GET) || (httpreq == HTTPREQ_HEAD)) &&
  ------------------
  |  Branch (2661:9): [True: 0, False: 0]
  |  Branch (2661:37): [True: 0, False: 0]
  ------------------
 2662|      0|       !Curl_checkheaders(data, STRCONST("Range"))) {
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  |  Branch (2662:8): [True: 0, False: 0]
  ------------------
 2663|       |      /* if a line like this was already allocated, free the previous one */
 2664|      0|      curlx_free(data->state.aptr.rangeline);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2665|      0|      data->state.aptr.rangeline = curl_maprintf("Range: bytes=%s\r\n",
 2666|      0|                                                 data->state.range);
 2667|      0|      if(!data->state.aptr.rangeline)
  ------------------
  |  Branch (2667:10): [True: 0, False: 0]
  ------------------
 2668|      0|        return CURLE_OUT_OF_MEMORY;
 2669|      0|    }
 2670|      0|    else if((httpreq == HTTPREQ_POST || httpreq == HTTPREQ_PUT) &&
  ------------------
  |  Branch (2670:14): [True: 0, False: 0]
  |  Branch (2670:41): [True: 0, False: 0]
  ------------------
 2671|      0|            !Curl_checkheaders(data, STRCONST("Content-Range"))) {
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  |  Branch (2671:13): [True: 0, False: 0]
  ------------------
 2672|      0|      curl_off_t req_clen = Curl_creader_total_length(data);
 2673|       |      /* if a line like this was already allocated, free the previous one */
 2674|      0|      curlx_free(data->state.aptr.rangeline);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2675|       |
 2676|      0|      if(data->set.set_resume_from < 0) {
  ------------------
  |  Branch (2676:10): [True: 0, False: 0]
  ------------------
 2677|       |        /* Upload resume was asked for, but we do not know the size of the
 2678|       |           remote part so we tell the server (and act accordingly) that we
 2679|       |           upload the whole file (again) */
 2680|      0|        data->state.aptr.rangeline =
 2681|      0|          curl_maprintf("Content-Range: bytes 0-%" FMT_OFF_T "/"
 2682|      0|                        "%" FMT_OFF_T "\r\n", req_clen - 1, req_clen);
 2683|      0|      }
 2684|      0|      else if(data->state.resume_from) {
  ------------------
  |  Branch (2684:15): [True: 0, False: 0]
  ------------------
 2685|       |        /* This is because "resume" was selected */
 2686|       |        /* Not sure if we want to send this header during authentication
 2687|       |         * negotiation, but test1084 checks for it. In which case we have a
 2688|       |         * "null" client reader installed that gives an unexpected length. */
 2689|      0|        curl_off_t total_len = data->req.authneg ?
  ------------------
  |  Branch (2689:32): [True: 0, False: 0]
  ------------------
 2690|      0|                               data->state.infilesize :
 2691|      0|                               (data->state.resume_from + req_clen);
 2692|      0|        data->state.aptr.rangeline =
 2693|      0|          curl_maprintf("Content-Range: bytes %s%" FMT_OFF_T "/"
 2694|      0|                        "%" FMT_OFF_T "\r\n",
 2695|      0|                        data->state.range, total_len - 1, total_len);
 2696|      0|      }
 2697|      0|      else {
 2698|       |        /* Range was selected and then we pass the incoming range and append
 2699|       |           total size */
 2700|      0|        data->state.aptr.rangeline =
 2701|      0|          curl_maprintf("Content-Range: bytes %s/%" FMT_OFF_T "\r\n",
 2702|      0|                        data->state.range, req_clen);
 2703|      0|      }
 2704|      0|      if(!data->state.aptr.rangeline)
  ------------------
  |  Branch (2704:10): [True: 0, False: 0]
  ------------------
 2705|      0|        return CURLE_OUT_OF_MEMORY;
 2706|      0|    }
 2707|      0|  }
 2708|  13.0k|  return CURLE_OK;
 2709|  13.0k|}
http.c:http_request_version:
 1732|  13.0k|{
 1733|  13.0k|  unsigned char v = Curl_conn_http_version(data, data->conn);
 1734|  13.0k|  if(!v) {
  ------------------
  |  Branch (1734:6): [True: 8.67k, False: 4.40k]
  ------------------
 1735|       |    /* No specific HTTP connection filter installed. */
 1736|  8.67k|    v = http_may_use_1_1(data) ? 11 : 10;
  ------------------
  |  Branch (1736:9): [True: 8.59k, False: 83]
  ------------------
 1737|  8.67k|  }
 1738|  13.0k|  return v;
 1739|  13.0k|}
http.c:http_may_use_1_1:
 1713|  8.67k|{
 1714|  8.67k|  const struct connectdata *conn = data->conn;
 1715|       |  /* We have seen a previous response for *this* transfer with 1.0,
 1716|       |   * on another connection or the same one. */
 1717|  8.67k|  if(data->state.http_neg.rcvd_min == 10)
  ------------------
  |  Branch (1717:6): [True: 0, False: 8.67k]
  ------------------
 1718|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1719|       |  /* We have seen a previous response on *this* connection with 1.0. */
 1720|  8.67k|  if(conn && conn->httpversion_seen == 10)
  ------------------
  |  Branch (1720:6): [True: 8.67k, False: 0]
  |  Branch (1720:14): [True: 0, False: 8.67k]
  ------------------
 1721|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1722|       |  /* We want 1.0 and have seen no previous response on *this* connection
 1723|       |     with a higher version (maybe no response at all yet). */
 1724|  8.67k|  if((data->state.http_neg.only_10) &&
  ------------------
  |  Branch (1724:6): [True: 83, False: 8.59k]
  ------------------
 1725|     83|     (!conn || conn->httpversion_seen <= 10))
  ------------------
  |  Branch (1725:7): [True: 0, False: 83]
  |  Branch (1725:16): [True: 15, False: 68]
  ------------------
 1726|     15|    return FALSE;
  ------------------
  |  | 1056|     15|#define FALSE false
  ------------------
 1727|       |  /* We are not restricted to use 1.0 only. */
 1728|  8.66k|  return !data->state.http_neg.only_10;
 1729|  8.67k|}
http.c:http_add_hd:
 2919|   261k|{
 2920|   261k|  CURLcode result = CURLE_OK;
 2921|   261k|#if !defined(CURL_DISABLE_ALTSVC) || \
 2922|   261k|  !defined(CURL_DISABLE_PROXY) || \
 2923|   261k|  !defined(CURL_DISABLE_WEBSOCKETS)
 2924|   261k|  struct connectdata *conn = data->conn;
 2925|   261k|#endif
 2926|   261k|  switch(id) {
  ------------------
  |  Branch (2926:10): [True: 261k, False: 0]
  ------------------
 2927|  13.0k|  case H1_HD_REQUEST:
  ------------------
  |  Branch (2927:3): [True: 13.0k, False: 248k]
  ------------------
 2928|       |    /* add the main request stuff */
 2929|       |    /* GET/HEAD/POST/PUT */
 2930|  13.0k|    result = curlx_dyn_addf(req, "%s ", method);
 2931|  13.0k|    if(!result)
  ------------------
  |  Branch (2931:8): [True: 13.0k, False: 0]
  ------------------
 2932|  13.0k|      result = http_target(data, req);
 2933|  13.0k|    if(!result)
  ------------------
  |  Branch (2933:8): [True: 13.0k, False: 0]
  ------------------
 2934|  13.0k|      result = curlx_dyn_addf(req, " HTTP/%s\r\n",
 2935|  13.0k|                              get_http_string(httpversion));
 2936|  13.0k|    break;
 2937|       |
 2938|  13.0k|  case H1_HD_HOST:
  ------------------
  |  Branch (2938:3): [True: 13.0k, False: 248k]
  ------------------
 2939|  13.0k|    if(data->state.aptr.host) {
  ------------------
  |  Branch (2939:8): [True: 13.0k, False: 0]
  ------------------
 2940|  13.0k|      result = curlx_dyn_add(req, data->state.aptr.host);
 2941|  13.0k|      if(!result)
  ------------------
  |  Branch (2941:10): [True: 13.0k, False: 0]
  ------------------
 2942|  13.0k|        result = curlx_dyn_addn(req, STRCONST("\r\n"));
  ------------------
  |  | 1305|  13.0k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  13.0k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 2943|  13.0k|    }
 2944|  13.0k|    break;
 2945|       |
 2946|      0|#ifndef CURL_DISABLE_PROXY
 2947|  13.0k|  case H1_HD_PROXY_AUTH:
  ------------------
  |  Branch (2947:3): [True: 13.0k, False: 248k]
  ------------------
 2948|  13.0k|    if(data->req.hd_proxy_auth)
  ------------------
  |  Branch (2948:8): [True: 0, False: 13.0k]
  ------------------
 2949|      0|      result = curlx_dyn_add(req, data->req.hd_proxy_auth);
 2950|  13.0k|    break;
 2951|      0|#endif
 2952|       |
 2953|  13.0k|  case H1_HD_AUTH:
  ------------------
  |  Branch (2953:3): [True: 13.0k, False: 248k]
  ------------------
 2954|  13.0k|    if(data->req.hd_auth)
  ------------------
  |  Branch (2954:8): [True: 747, False: 12.3k]
  ------------------
 2955|    747|      result = curlx_dyn_add(req, data->req.hd_auth);
 2956|  13.0k|    break;
 2957|       |
 2958|  13.0k|  case H1_HD_RANGE:
  ------------------
  |  Branch (2958:3): [True: 13.0k, False: 248k]
  ------------------
 2959|  13.0k|    if(data->state.use_range && data->state.aptr.rangeline)
  ------------------
  |  Branch (2959:8): [True: 0, False: 13.0k]
  |  Branch (2959:33): [True: 0, False: 0]
  ------------------
 2960|      0|      result = curlx_dyn_add(req, data->state.aptr.rangeline);
 2961|  13.0k|    break;
 2962|       |
 2963|  13.0k|  case H1_HD_USER_AGENT:
  ------------------
  |  Branch (2963:3): [True: 13.0k, False: 248k]
  ------------------
 2964|  13.0k|    if(data->set.str[STRING_USERAGENT] && /* User-Agent: */
  ------------------
  |  Branch (2964:8): [True: 851, False: 12.2k]
  ------------------
 2965|    851|       *data->set.str[STRING_USERAGENT] &&
  ------------------
  |  Branch (2965:8): [True: 556, False: 295]
  ------------------
 2966|    556|       data->state.aptr.uagent)
  ------------------
  |  Branch (2966:8): [True: 556, False: 0]
  ------------------
 2967|    556|      result = curlx_dyn_add(req, data->state.aptr.uagent);
 2968|  13.0k|    break;
 2969|       |
 2970|  13.0k|  case H1_HD_ACCEPT:
  ------------------
  |  Branch (2970:3): [True: 13.0k, False: 248k]
  ------------------
 2971|  13.0k|    if(!Curl_checkheaders(data, STRCONST("Accept")))
  ------------------
  |  | 1305|  13.0k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  13.0k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  |  Branch (2971:8): [True: 13.0k, False: 0]
  ------------------
 2972|  13.0k|      result = curlx_dyn_add(req, "Accept: */*\r\n");
 2973|  13.0k|    break;
 2974|       |
 2975|  13.0k|  case H1_HD_TE:
  ------------------
  |  Branch (2975:3): [True: 13.0k, False: 248k]
  ------------------
 2976|  13.0k|#ifdef HAVE_LIBZ
 2977|  13.0k|    if(!Curl_checkheaders(data, STRCONST("TE")) &&
  ------------------
  |  | 1305|  13.0k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  13.0k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  |  Branch (2977:8): [True: 13.0k, False: 0]
  ------------------
 2978|  13.0k|       data->set.http_transfer_encoding) {
  ------------------
  |  Branch (2978:8): [True: 0, False: 13.0k]
  ------------------
 2979|      0|      data->state.http_hd_te = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2980|      0|      result = curlx_dyn_add(req, "TE: gzip\r\n");
 2981|      0|    }
 2982|  13.0k|#endif
 2983|  13.0k|    break;
 2984|       |
 2985|  13.0k|  case H1_HD_ACCEPT_ENCODING:
  ------------------
  |  Branch (2985:3): [True: 13.0k, False: 248k]
  ------------------
 2986|  13.0k|    curlx_safefree(data->state.aptr.accept_encoding);
  ------------------
  |  | 1340|  13.0k|  do {                      \
  |  | 1341|  13.0k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  13.0k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  13.0k|    (ptr) = NULL;           \
  |  | 1343|  13.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 13.0k]
  |  |  ------------------
  ------------------
 2987|  13.0k|    if(!Curl_checkheaders(data, STRCONST("Accept-Encoding")) &&
  ------------------
  |  | 1305|  13.0k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  13.0k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  |  Branch (2987:8): [True: 13.0k, False: 0]
  ------------------
 2988|  13.0k|       data->set.str[STRING_ENCODING])
  ------------------
  |  Branch (2988:8): [True: 949, False: 12.1k]
  ------------------
 2989|    949|      result = curlx_dyn_addf(req, "Accept-Encoding: %s\r\n",
 2990|    949|                              data->set.str[STRING_ENCODING]);
 2991|  13.0k|    break;
 2992|       |
 2993|  13.0k|  case H1_HD_REFERER:
  ------------------
  |  Branch (2993:3): [True: 13.0k, False: 248k]
  ------------------
 2994|  13.0k|    curlx_safefree(data->state.aptr.ref);
  ------------------
  |  | 1340|  13.0k|  do {                      \
  |  | 1341|  13.0k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  13.0k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  13.0k|    (ptr) = NULL;           \
  |  | 1343|  13.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 13.0k]
  |  |  ------------------
  ------------------
 2995|  13.0k|    if(Curl_bufref_ptr(&data->state.referer) &&
  ------------------
  |  Branch (2995:8): [True: 1.45k, False: 11.6k]
  ------------------
 2996|  1.45k|       !Curl_checkheaders(data, STRCONST("Referer")))
  ------------------
  |  | 1305|  1.45k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  1.45k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  |  Branch (2996:8): [True: 1.45k, False: 0]
  ------------------
 2997|  1.45k|      result = curlx_dyn_addf(req, "Referer: %s\r\n",
 2998|  1.45k|                              Curl_bufref_ptr(&data->state.referer));
 2999|  13.0k|    break;
 3000|       |
 3001|      0|#ifndef CURL_DISABLE_PROXY
 3002|  13.0k|  case H1_HD_PROXY_CONNECTION:
  ------------------
  |  Branch (3002:3): [True: 13.0k, False: 248k]
  ------------------
 3003|  13.0k|    if(conn->bits.origin_is_proxy &&
  ------------------
  |  Branch (3003:8): [True: 0, False: 13.0k]
  ------------------
 3004|      0|       !Curl_checkheaders(data, STRCONST("Proxy-Connection")) &&
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  |  Branch (3004:8): [True: 0, False: 0]
  ------------------
 3005|      0|       !Curl_checkProxyheaders(data, data->conn, STRCONST("Proxy-Connection")))
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  |  Branch (3005:8): [True: 0, False: 0]
  ------------------
 3006|      0|      result = curlx_dyn_add(req, "Proxy-Connection: Keep-Alive\r\n");
 3007|  13.0k|    break;
 3008|      0|#endif
 3009|       |
 3010|  13.0k|  case H1_HD_TRANSFER_ENCODING:
  ------------------
  |  Branch (3010:3): [True: 13.0k, False: 248k]
  ------------------
 3011|  13.0k|    result = http_req_set_TE(data, req, httpversion);
 3012|  13.0k|    break;
 3013|       |
 3014|      0|#ifndef CURL_DISABLE_ALTSVC
 3015|  13.0k|  case H1_HD_ALT_USED:
  ------------------
  |  Branch (3015:3): [True: 13.0k, False: 248k]
  ------------------
 3016|  13.0k|    if(conn->bits.altused && conn->via_peer &&
  ------------------
  |  Branch (3016:8): [True: 0, False: 13.0k]
  |  Branch (3016:30): [True: 0, False: 0]
  ------------------
 3017|      0|       !Curl_checkheaders(data, STRCONST("Alt-Used")))
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  |  Branch (3017:8): [True: 0, False: 0]
  ------------------
 3018|      0|      result = curlx_dyn_addf(req, "Alt-Used: %s:%u\r\n",
 3019|      0|                              conn->via_peer->hostname, conn->via_peer->port);
 3020|  13.0k|    break;
 3021|      0|#endif
 3022|       |
 3023|  13.0k|  case H1_HD_UPGRADE:
  ------------------
  |  Branch (3023:3): [True: 13.0k, False: 248k]
  ------------------
 3024|  13.0k|    if(!Curl_conn_is_ssl(data->conn, FIRSTSOCKET) && (httpversion < 20) &&
  ------------------
  |  |  233|  13.0k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (3024:8): [True: 13.0k, False: 0]
  |  Branch (3024:54): [True: 8.67k, False: 4.40k]
  ------------------
 3025|  8.67k|       (data->state.http_neg.wanted & CURL_HTTP_V2x) &&
  ------------------
  |  |   41|  8.67k|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
  |  Branch (3025:8): [True: 6.90k, False: 1.77k]
  ------------------
 3026|  6.90k|       data->state.http_neg.h2_upgrade) {
  ------------------
  |  Branch (3026:8): [True: 332, False: 6.57k]
  ------------------
 3027|       |      /* append HTTP2 upgrade magic stuff to the HTTP request if it is not done
 3028|       |         over SSL */
 3029|    332|      result = Curl_http2_request_upgrade(req, data);
 3030|    332|    }
 3031|  13.0k|#ifndef CURL_DISABLE_WEBSOCKETS
 3032|  13.0k|    if(!result && conn->scheme->protocol & (CURLPROTO_WS | CURLPROTO_WSS))
  ------------------
  |  |   63|  13.0k|#define CURLPROTO_WS     (1L << 30)
  ------------------
                  if(!result && conn->scheme->protocol & (CURLPROTO_WS | CURLPROTO_WSS))
  ------------------
  |  |   64|  13.0k|#define CURLPROTO_WSS    ((curl_prot_t)1 << 31)
  ------------------
  |  Branch (3032:8): [True: 13.0k, False: 0]
  |  Branch (3032:19): [True: 1.61k, False: 11.4k]
  ------------------
 3033|  1.61k|      result = Curl_ws_request(data, req);
 3034|  13.0k|#endif
 3035|  13.0k|    break;
 3036|       |
 3037|  13.0k|  case H1_HD_COOKIES:
  ------------------
  |  Branch (3037:3): [True: 13.0k, False: 248k]
  ------------------
 3038|  13.0k|    result = http_cookies(data, req);
 3039|  13.0k|    break;
 3040|       |
 3041|  13.0k|  case H1_HD_CONDITIONALS:
  ------------------
  |  Branch (3041:3): [True: 13.0k, False: 248k]
  ------------------
 3042|  13.0k|    result = Curl_add_timecondition(data, req);
 3043|  13.0k|    break;
 3044|       |
 3045|  13.0k|  case H1_HD_CUSTOM:
  ------------------
  |  Branch (3045:3): [True: 13.0k, False: 248k]
  ------------------
 3046|  13.0k|    result = Curl_add_custom_headers(data, FALSE, httpversion, req);
  ------------------
  |  | 1056|  13.0k|#define FALSE false
  ------------------
 3047|  13.0k|    break;
 3048|       |
 3049|  13.0k|  case H1_HD_CONTENT:
  ------------------
  |  Branch (3049:3): [True: 13.0k, False: 248k]
  ------------------
 3050|  13.0k|    result = http_add_content_hds(data, req, httpversion, httpreq);
 3051|  13.0k|    break;
 3052|       |
 3053|  13.0k|  case H1_HD_CONNECTION: {
  ------------------
  |  Branch (3053:3): [True: 13.0k, False: 248k]
  ------------------
 3054|  13.0k|    result = http_add_connection_hd(data, req);
 3055|  13.0k|    break;
 3056|      0|  }
 3057|       |
 3058|  13.0k|  case H1_HD_LAST:
  ------------------
  |  Branch (3058:3): [True: 13.0k, False: 248k]
  ------------------
 3059|  13.0k|    result = curlx_dyn_addn(req, STRCONST("\r\n"));
  ------------------
  |  | 1305|  13.0k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  13.0k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 3060|  13.0k|    break;
 3061|   261k|  }
 3062|   261k|  return result;
 3063|   261k|}
http.c:http_target:
 2122|  13.0k|{
 2123|  13.0k|  CURLcode result = CURLE_OK;
 2124|  13.0k|  const char *path = data->state.up.path;
 2125|  13.0k|  const char *query = data->state.up.query;
 2126|  13.0k|#ifndef CURL_DISABLE_PROXY
 2127|  13.0k|  struct connectdata *conn = data->conn;
 2128|  13.0k|#endif
 2129|       |
 2130|  13.0k|  if(data->set.str[STRING_TARGET]) {
  ------------------
  |  Branch (2130:6): [True: 0, False: 13.0k]
  ------------------
 2131|      0|    path = data->set.str[STRING_TARGET];
 2132|      0|    query = NULL;
 2133|      0|  }
 2134|       |
 2135|  13.0k|#ifndef CURL_DISABLE_PROXY
 2136|  13.0k|  if(conn->bits.origin_is_proxy) {
  ------------------
  |  Branch (2136:6): [True: 0, False: 13.0k]
  ------------------
 2137|       |    /* Using a proxy but does not tunnel through it */
 2138|       |
 2139|       |    /* The path sent to the proxy is in fact the entire URL, but if the remote
 2140|       |       host is a IDN-name, we must make sure that the request we produce only
 2141|       |       uses the decoded hostname! */
 2142|       |
 2143|       |    /* and no fragment part */
 2144|      0|    CURLUcode uc;
 2145|      0|    char *url;
 2146|      0|    CURLU *h = curl_url_dup(data->state.uh);
 2147|      0|    if(!h)
  ------------------
  |  Branch (2147:8): [True: 0, False: 0]
  ------------------
 2148|      0|      return CURLE_OUT_OF_MEMORY;
 2149|       |
 2150|      0|    if(!data->state.origin->ipv6 &&
  ------------------
  |  Branch (2150:8): [True: 0, False: 0]
  ------------------
 2151|      0|       (data->state.origin->user_hostname != data->state.origin->hostname)) {
  ------------------
  |  Branch (2151:8): [True: 0, False: 0]
  ------------------
 2152|      0|      uc = curl_url_set(h, CURLUPART_HOST, data->state.origin->hostname, 0);
 2153|      0|      if(uc) {
  ------------------
  |  Branch (2153:10): [True: 0, False: 0]
  ------------------
 2154|      0|        curl_url_cleanup(h);
 2155|      0|        return CURLE_OUT_OF_MEMORY;
 2156|      0|      }
 2157|      0|    }
 2158|      0|    uc = curl_url_set(h, CURLUPART_FRAGMENT, NULL, 0);
 2159|      0|    if(uc) {
  ------------------
  |  Branch (2159:8): [True: 0, False: 0]
  ------------------
 2160|      0|      curl_url_cleanup(h);
 2161|      0|      return CURLE_OUT_OF_MEMORY;
 2162|      0|    }
 2163|       |
 2164|      0|    if(data->state.origin->scheme == &Curl_scheme_http) {
  ------------------
  |  Branch (2164:8): [True: 0, False: 0]
  ------------------
 2165|       |      /* when getting HTTP, we do not want the userinfo the URL */
 2166|      0|      uc = curl_url_set(h, CURLUPART_USER, NULL, 0);
 2167|      0|      if(uc) {
  ------------------
  |  Branch (2167:10): [True: 0, False: 0]
  ------------------
 2168|      0|        curl_url_cleanup(h);
 2169|      0|        return CURLE_OUT_OF_MEMORY;
 2170|      0|      }
 2171|      0|      uc = curl_url_set(h, CURLUPART_PASSWORD, NULL, 0);
 2172|      0|      if(uc) {
  ------------------
  |  Branch (2172:10): [True: 0, False: 0]
  ------------------
 2173|      0|        curl_url_cleanup(h);
 2174|      0|        return CURLE_OUT_OF_MEMORY;
 2175|      0|      }
 2176|      0|    }
 2177|      0|    else if(data->state.creds && (data->state.creds->source != CREDS_URL)) {
  ------------------
  |  |   30|      0|#define CREDS_URL    1 /* username/passwd from URL */
  ------------------
  |  Branch (2177:13): [True: 0, False: 0]
  |  Branch (2177:34): [True: 0, False: 0]
  ------------------
 2178|       |        /* credentials not from the URL need to be set */
 2179|      0|      uc = curl_url_set(h, CURLUPART_USER,
 2180|      0|                        data->state.creds->user, CURLU_URLENCODE);
  ------------------
  |  |   95|      0|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
 2181|      0|      if(!uc)
  ------------------
  |  Branch (2181:10): [True: 0, False: 0]
  ------------------
 2182|      0|        uc = curl_url_set(h, CURLUPART_PASSWORD,
 2183|      0|                          data->state.creds->passwd, CURLU_URLENCODE);
  ------------------
  |  |   95|      0|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
 2184|      0|      if(uc) {
  ------------------
  |  Branch (2184:10): [True: 0, False: 0]
  ------------------
 2185|      0|        curl_url_cleanup(h);
 2186|      0|        return Curl_uc_to_curlcode(uc);
 2187|      0|      }
 2188|      0|    }
 2189|       |
 2190|       |    /* Extract the URL to use in the request. */
 2191|      0|    uc = curl_url_get(h, CURLUPART_URL, &url, CURLU_NO_DEFAULT_PORT);
  ------------------
  |  |   86|      0|#define CURLU_NO_DEFAULT_PORT (1 << 1)    /* act as if no port number was set,
  ------------------
 2192|      0|    if(uc) {
  ------------------
  |  Branch (2192:8): [True: 0, False: 0]
  ------------------
 2193|      0|      curl_url_cleanup(h);
 2194|      0|      return CURLE_OUT_OF_MEMORY;
 2195|      0|    }
 2196|       |
 2197|      0|    curl_url_cleanup(h);
 2198|       |
 2199|       |    /* target or URL */
 2200|      0|    result = curlx_dyn_add(r, data->set.str[STRING_TARGET] ?
  ------------------
  |  Branch (2200:31): [True: 0, False: 0]
  ------------------
 2201|      0|      data->set.str[STRING_TARGET] : url);
 2202|      0|    curlx_free(url);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2203|      0|    if(result)
  ------------------
  |  Branch (2203:8): [True: 0, False: 0]
  ------------------
 2204|      0|      return result;
 2205|       |
 2206|      0|    if((data->state.origin->scheme == &Curl_scheme_ftp) &&
  ------------------
  |  Branch (2206:8): [True: 0, False: 0]
  ------------------
 2207|      0|       data->set.proxy_transfer_mode) {
  ------------------
  |  Branch (2207:8): [True: 0, False: 0]
  ------------------
 2208|       |      /* when doing ftp, append ;type=<a|i> if not present */
 2209|      0|      size_t len = strlen(path);
 2210|      0|      bool type_present = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 2211|      0|      if((len >= 7) && !memcmp(&path[len - 7], ";type=", 6)) {
  ------------------
  |  Branch (2211:10): [True: 0, False: 0]
  |  Branch (2211:24): [True: 0, False: 0]
  ------------------
 2212|      0|        switch(Curl_raw_toupper(path[len - 1])) {
  ------------------
  |  Branch (2212:16): [True: 0, False: 0]
  ------------------
 2213|      0|        case 'A':
  ------------------
  |  Branch (2213:9): [True: 0, False: 0]
  ------------------
 2214|      0|        case 'D':
  ------------------
  |  Branch (2214:9): [True: 0, False: 0]
  ------------------
 2215|      0|        case 'I':
  ------------------
  |  Branch (2215:9): [True: 0, False: 0]
  ------------------
 2216|      0|          type_present = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2217|      0|          break;
 2218|      0|        }
 2219|      0|      }
 2220|      0|      if(!type_present) {
  ------------------
  |  Branch (2220:10): [True: 0, False: 0]
  ------------------
 2221|      0|        result = curlx_dyn_addf(r, ";type=%c",
 2222|      0|                                data->state.prefer_ascii ? 'a' : 'i');
  ------------------
  |  Branch (2222:33): [True: 0, False: 0]
  ------------------
 2223|      0|        if(result)
  ------------------
  |  Branch (2223:12): [True: 0, False: 0]
  ------------------
 2224|      0|          return result;
 2225|      0|      }
 2226|      0|    }
 2227|      0|  }
 2228|       |
 2229|  13.0k|  else
 2230|  13.0k|#endif
 2231|  13.0k|  {
 2232|  13.0k|    result = curlx_dyn_add(r, path);
 2233|  13.0k|    if(result)
  ------------------
  |  Branch (2233:8): [True: 0, False: 13.0k]
  ------------------
 2234|      0|      return result;
 2235|  13.0k|    if(query)
  ------------------
  |  Branch (2235:8): [True: 466, False: 12.6k]
  ------------------
 2236|    466|      result = curlx_dyn_addf(r, "?%s", query);
 2237|  13.0k|  }
 2238|       |
 2239|  13.0k|  return result;
 2240|  13.0k|}
http.c:get_http_string:
 1742|  13.0k|{
 1743|  13.0k|  switch(httpversion) {
 1744|      0|  case 30:
  ------------------
  |  Branch (1744:3): [True: 0, False: 13.0k]
  ------------------
 1745|      0|    return "3";
 1746|  4.40k|  case 20:
  ------------------
  |  Branch (1746:3): [True: 4.40k, False: 8.67k]
  ------------------
 1747|  4.40k|    return "2";
 1748|  8.59k|  case 11:
  ------------------
  |  Branch (1748:3): [True: 8.59k, False: 4.48k]
  ------------------
 1749|  8.59k|    return "1.1";
 1750|     83|  default:
  ------------------
  |  Branch (1750:3): [True: 83, False: 12.9k]
  ------------------
 1751|     83|    return "1.0";
 1752|  13.0k|  }
 1753|  13.0k|}
http.c:http_req_set_TE:
 2420|  13.0k|{
 2421|  13.0k|  CURLcode result = CURLE_OK;
 2422|  13.0k|  const char *ptr;
 2423|       |
 2424|  13.0k|  ptr = Curl_checkheaders(data, STRCONST("Transfer-Encoding"));
  ------------------
  |  | 1305|  13.0k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  13.0k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 2425|  13.0k|  if(ptr) {
  ------------------
  |  Branch (2425:6): [True: 0, False: 13.0k]
  ------------------
 2426|       |    /* Some kind of TE is requested, check if 'chunked' is chosen */
 2427|      0|    data->req.upload_chunky =
 2428|      0|      Curl_compareheader(ptr,
 2429|      0|                         STRCONST("Transfer-Encoding:"), STRCONST("chunked"));
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
                                       STRCONST("Transfer-Encoding:"), STRCONST("chunked"));
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 2430|      0|    if(data->req.upload_chunky && (httpversion >= 20)) {
  ------------------
  |  Branch (2430:8): [True: 0, False: 0]
  |  Branch (2430:35): [True: 0, False: 0]
  ------------------
 2431|      0|      infof(data, "suppressing chunked transfer encoding on connection "
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2432|      0|            "using HTTP version 2 or higher");
 2433|      0|      data->req.upload_chunky = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 2434|      0|    }
 2435|      0|  }
 2436|  13.0k|  else {
 2437|  13.0k|    curl_off_t req_clen = Curl_creader_total_length(data);
 2438|       |
 2439|  13.0k|    if(req_clen < 0) {
  ------------------
  |  Branch (2439:8): [True: 524, False: 12.5k]
  ------------------
 2440|       |      /* indeterminate request content length */
 2441|    524|      if(httpversion > 10) {
  ------------------
  |  Branch (2441:10): [True: 523, False: 1]
  ------------------
 2442|       |        /* On HTTP/1.1, enable chunked, on HTTP/2 and later we do not
 2443|       |         * need it */
 2444|    523|        data->req.upload_chunky = (httpversion < 20);
 2445|    523|      }
 2446|      1|      else {
 2447|      1|        failf(data, "Chunky upload is not supported by HTTP 1.0");
  ------------------
  |  |   62|      1|#define failf Curl_failf
  ------------------
 2448|      1|        return CURLE_UPLOAD_FAILED;
 2449|      1|      }
 2450|    524|    }
 2451|  12.5k|    else {
 2452|       |      /* else, no chunky upload */
 2453|  12.5k|      data->req.upload_chunky = FALSE;
  ------------------
  |  | 1056|  12.5k|#define FALSE false
  ------------------
 2454|  12.5k|    }
 2455|       |
 2456|  13.0k|    if(data->req.upload_chunky)
  ------------------
  |  Branch (2456:8): [True: 167, False: 12.9k]
  ------------------
 2457|    167|      result = curlx_dyn_add(req, "Transfer-Encoding: chunked\r\n");
 2458|  13.0k|  }
 2459|  13.0k|  return result;
 2460|  13.0k|}
http.c:http_cookies:
 2580|  13.0k|{
 2581|  13.0k|  CURLcode result = CURLE_OK;
 2582|  13.0k|  char *addcookies = NULL;
 2583|  13.0k|  bool linecap = FALSE;
  ------------------
  |  | 1056|  13.0k|#define FALSE false
  ------------------
 2584|  13.0k|  if(data->set.str[STRING_COOKIE] &&
  ------------------
  |  Branch (2584:6): [True: 0, False: 13.0k]
  ------------------
 2585|      0|     !Curl_checkheaders(data, STRCONST("Cookie")) &&
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  |  Branch (2585:6): [True: 0, False: 0]
  ------------------
 2586|      0|     Curl_auth_allowed_to_host(data))
  ------------------
  |  Branch (2586:6): [True: 0, False: 0]
  ------------------
 2587|      0|    addcookies = data->set.str[STRING_COOKIE];
 2588|       |
 2589|  13.0k|  if(data->cookies || addcookies) {
  ------------------
  |  Branch (2589:6): [True: 13.0k, False: 0]
  |  Branch (2589:23): [True: 0, False: 0]
  ------------------
 2590|  13.0k|    struct Curl_llist list;
 2591|  13.0k|    int count = 0;
 2592|       |
 2593|  13.0k|    if(data->cookies && data->state.cookie_engine) {
  ------------------
  |  Branch (2593:8): [True: 13.0k, False: 0]
  |  Branch (2593:25): [True: 13.0k, False: 0]
  ------------------
 2594|  13.0k|      bool okay;
 2595|  13.0k|      const char *host = data->req.cookiehost ?
  ------------------
  |  Branch (2595:26): [True: 0, False: 13.0k]
  ------------------
 2596|  13.0k|        data->req.cookiehost : data->state.origin->hostname;
 2597|  13.0k|      Curl_share_lock(data, CURL_LOCK_DATA_COOKIE, CURL_LOCK_ACCESS_SINGLE);
 2598|  13.0k|      result = Curl_cookie_getlist(data, &okay, host, &list);
 2599|  13.0k|      if(!result && okay) {
  ------------------
  |  Branch (2599:10): [True: 13.0k, False: 0]
  |  Branch (2599:21): [True: 0, False: 13.0k]
  ------------------
 2600|      0|        struct Curl_llist_node *n;
 2601|      0|        size_t clen = 8; /* hold the size of the generated Cookie: header */
 2602|       |
 2603|       |        /* loop through all cookies that matched */
 2604|      0|        for(n = Curl_llist_head(&list); n; n = Curl_node_next(n)) {
  ------------------
  |  Branch (2604:41): [True: 0, False: 0]
  ------------------
 2605|      0|          struct Cookie *co = Curl_node_elem(n);
 2606|      0|          if(co->value) {
  ------------------
  |  Branch (2606:14): [True: 0, False: 0]
  ------------------
 2607|      0|            size_t add;
 2608|      0|            if(!count) {
  ------------------
  |  Branch (2608:16): [True: 0, False: 0]
  ------------------
 2609|      0|              result = curlx_dyn_addn(r, STRCONST("Cookie: "));
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 2610|      0|              if(result)
  ------------------
  |  Branch (2610:18): [True: 0, False: 0]
  ------------------
 2611|      0|                break;
 2612|      0|            }
 2613|      0|            add = strlen(co->name) + strlen(co->value) + 1;
 2614|      0|            if(clen + add >= MAX_COOKIE_HEADER_LEN) {
  ------------------
  |  |   97|      0|#define MAX_COOKIE_HEADER_LEN 8190
  ------------------
  |  Branch (2614:16): [True: 0, False: 0]
  ------------------
 2615|      0|              infof(data, "Restricted outgoing cookies due to header size, "
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2616|      0|                    "'%s' not sent", co->name);
 2617|      0|              linecap = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2618|      0|              break;
 2619|      0|            }
 2620|      0|            result = curlx_dyn_addf(r, "%s%s=%s", count ? "; " : "",
  ------------------
  |  Branch (2620:51): [True: 0, False: 0]
  ------------------
 2621|      0|                                    co->name, co->value);
 2622|      0|            if(result)
  ------------------
  |  Branch (2622:16): [True: 0, False: 0]
  ------------------
 2623|      0|              break;
 2624|      0|            clen += add + (count ? 2 : 0);
  ------------------
  |  Branch (2624:28): [True: 0, False: 0]
  ------------------
 2625|      0|            count++;
 2626|      0|          }
 2627|      0|        }
 2628|      0|        Curl_llist_destroy(&list, NULL);
 2629|      0|      }
 2630|  13.0k|      Curl_share_unlock(data, CURL_LOCK_DATA_COOKIE);
 2631|  13.0k|    }
 2632|  13.0k|    if(addcookies && !result && !linecap) {
  ------------------
  |  Branch (2632:8): [True: 0, False: 13.0k]
  |  Branch (2632:22): [True: 0, False: 0]
  |  Branch (2632:33): [True: 0, False: 0]
  ------------------
 2633|      0|      if(!count)
  ------------------
  |  Branch (2633:10): [True: 0, False: 0]
  ------------------
 2634|      0|        result = curlx_dyn_addn(r, STRCONST("Cookie: "));
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 2635|      0|      if(!result) {
  ------------------
  |  Branch (2635:10): [True: 0, False: 0]
  ------------------
 2636|      0|        result = curlx_dyn_addf(r, "%s%s", count ? "; " : "", addcookies);
  ------------------
  |  Branch (2636:44): [True: 0, False: 0]
  ------------------
 2637|      0|        count++;
 2638|      0|      }
 2639|      0|    }
 2640|  13.0k|    if(count && !result)
  ------------------
  |  Branch (2640:8): [True: 0, False: 13.0k]
  |  Branch (2640:17): [True: 0, False: 0]
  ------------------
 2641|      0|      result = curlx_dyn_addn(r, STRCONST("\r\n"));
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 2642|       |
 2643|  13.0k|    if(result)
  ------------------
  |  Branch (2643:8): [True: 0, False: 13.0k]
  ------------------
 2644|      0|      return result;
 2645|  13.0k|  }
 2646|  13.0k|  return result;
 2647|  13.0k|}
http.c:http_add_content_hds:
 2501|  13.0k|{
 2502|  13.0k|  CURLcode result = CURLE_OK;
 2503|  13.0k|  curl_off_t req_clen;
 2504|  13.0k|  bool announced_exp100 = FALSE;
  ------------------
  |  | 1056|  13.0k|#define FALSE false
  ------------------
 2505|       |
 2506|  13.0k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1083|  13.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2506:3): [True: 0, False: 13.0k]
  |  Branch (2506:3): [True: 13.0k, False: 0]
  ------------------
 2507|  13.0k|  if(data->req.upload_chunky) {
  ------------------
  |  Branch (2507:6): [True: 167, False: 12.9k]
  ------------------
 2508|    167|    result = Curl_httpchunk_add_reader(data);
 2509|    167|    if(result)
  ------------------
  |  Branch (2509:8): [True: 0, False: 167]
  ------------------
 2510|      0|      return result;
 2511|    167|  }
 2512|       |
 2513|       |  /* Get the request body length that has been set up */
 2514|  13.0k|  req_clen = Curl_creader_total_length(data);
 2515|  13.0k|  switch(httpreq) {
 2516|    565|  case HTTPREQ_PUT:
  ------------------
  |  Branch (2516:3): [True: 565, False: 12.5k]
  ------------------
 2517|  1.43k|  case HTTPREQ_POST:
  ------------------
  |  Branch (2517:3): [True: 867, False: 12.2k]
  ------------------
 2518|  1.43k|#if !defined(CURL_DISABLE_MIME) || !defined(CURL_DISABLE_FORM_API)
 2519|  1.43k|  case HTTPREQ_POST_FORM:
  ------------------
  |  Branch (2519:3): [True: 0, False: 13.0k]
  ------------------
 2520|  1.43k|  case HTTPREQ_POST_MIME:
  ------------------
  |  Branch (2520:3): [True: 0, False: 13.0k]
  ------------------
 2521|  1.43k|#endif
 2522|       |    /* We only set Content-Length and allow a custom Content-Length if
 2523|       |       we do not upload data chunked, as RFC2616 forbids us to set both
 2524|       |       kinds of headers (Transfer-Encoding: chunked and Content-Length).
 2525|       |       We do not override a custom "Content-Length" header, but during
 2526|       |       authentication negotiation that header is suppressed.
 2527|       |     */
 2528|  1.43k|    if(req_clen >= 0 && !data->req.upload_chunky &&
  ------------------
  |  Branch (2528:8): [True: 909, False: 523]
  |  Branch (2528:25): [True: 909, False: 0]
  ------------------
 2529|    909|       (data->req.authneg ||
  ------------------
  |  Branch (2529:9): [True: 0, False: 909]
  ------------------
 2530|    909|        !Curl_checkheaders(data, STRCONST("Content-Length")))) {
  ------------------
  |  | 1305|    909|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|    909|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  |  Branch (2530:9): [True: 909, False: 0]
  ------------------
 2531|       |      /* we allow replacing this header if not during auth negotiation,
 2532|       |         although it is not wise to actually set your own */
 2533|    909|      result = curlx_dyn_addf(r, "Content-Length: %" FMT_OFF_T "\r\n",
 2534|    909|                              req_clen);
 2535|    909|    }
 2536|  1.43k|    if(result)
  ------------------
  |  Branch (2536:8): [True: 0, False: 1.43k]
  ------------------
 2537|      0|      goto out;
 2538|       |
 2539|  1.43k|#ifndef CURL_DISABLE_MIME
 2540|       |    /* Output mime-generated headers. */
 2541|  1.43k|    if(data->state.mimepost &&
  ------------------
  |  Branch (2541:8): [True: 0, False: 1.43k]
  ------------------
 2542|      0|       ((httpreq == HTTPREQ_POST_FORM) || (httpreq == HTTPREQ_POST_MIME))) {
  ------------------
  |  Branch (2542:9): [True: 0, False: 0]
  |  Branch (2542:43): [True: 0, False: 0]
  ------------------
 2543|      0|      struct curl_slist *hdr;
 2544|       |
 2545|      0|      for(hdr = data->state.mimepost->curlheaders; hdr; hdr = hdr->next) {
  ------------------
  |  Branch (2545:52): [True: 0, False: 0]
  ------------------
 2546|      0|        result = curlx_dyn_addf(r, "%s\r\n", hdr->data);
 2547|      0|        if(result)
  ------------------
  |  Branch (2547:12): [True: 0, False: 0]
  ------------------
 2548|      0|          goto out;
 2549|      0|      }
 2550|      0|    }
 2551|  1.43k|#endif
 2552|  1.43k|    if(httpreq == HTTPREQ_POST) {
  ------------------
  |  Branch (2552:8): [True: 867, False: 565]
  ------------------
 2553|    867|      if(!Curl_checkheaders(data, STRCONST("Content-Type"))) {
  ------------------
  |  | 1305|    867|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|    867|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  |  Branch (2553:10): [True: 867, False: 0]
  ------------------
 2554|    867|        result = curlx_dyn_addn(r, STRCONST("Content-Type: application/"
  ------------------
  |  | 1305|    867|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|    867|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 2555|    867|                                            "x-www-form-urlencoded\r\n"));
 2556|    867|        if(result)
  ------------------
  |  Branch (2556:12): [True: 0, False: 867]
  ------------------
 2557|      0|          goto out;
 2558|    867|      }
 2559|    867|    }
 2560|  1.43k|    result = addexpect(data, r, httpversion, &announced_exp100);
 2561|  1.43k|    if(result)
  ------------------
  |  Branch (2561:8): [True: 0, False: 1.43k]
  ------------------
 2562|      0|      goto out;
 2563|  1.43k|    break;
 2564|  11.6k|  default:
  ------------------
  |  Branch (2564:3): [True: 11.6k, False: 1.43k]
  ------------------
 2565|  11.6k|    break;
 2566|  13.0k|  }
 2567|       |
 2568|  13.0k|  Curl_pgrsSetUploadSize(data, req_clen);
 2569|  13.0k|  if(announced_exp100)
  ------------------
  |  Branch (2569:6): [True: 253, False: 12.8k]
  ------------------
 2570|    253|    result = http_exp100_add_reader(data);
 2571|       |
 2572|  13.0k|out:
 2573|  13.0k|  return result;
 2574|  13.0k|}
http.c:addexpect:
 2464|  1.43k|{
 2465|  1.43k|  CURLcode result;
 2466|  1.43k|  char *ptr;
 2467|       |
 2468|  1.43k|  *announced_exp100 = FALSE;
  ------------------
  |  | 1056|  1.43k|#define FALSE false
  ------------------
 2469|       |  /* Avoid Expect: 100-continue if Upgrade: is used */
 2470|  1.43k|  if(data->req.upgr101 != UPGR101_NONE)
  ------------------
  |  Branch (2470:6): [True: 73, False: 1.35k]
  ------------------
 2471|     73|    return CURLE_OK;
 2472|       |
 2473|       |  /* For really small puts we do not use Expect: headers at all, and for
 2474|       |     the somewhat bigger ones we allow the app to disable it. Make
 2475|       |     sure that the expect100header is always set to the preferred value
 2476|       |     here. */
 2477|  1.35k|  ptr = Curl_checkheaders(data, STRCONST("Expect"));
  ------------------
  |  | 1305|  1.35k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  1.35k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 2478|  1.35k|  if(ptr) {
  ------------------
  |  Branch (2478:6): [True: 0, False: 1.35k]
  ------------------
 2479|      0|    *announced_exp100 =
 2480|      0|      Curl_compareheader(ptr, STRCONST("Expect:"), STRCONST("100-continue"));
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
                    Curl_compareheader(ptr, STRCONST("Expect:"), STRCONST("100-continue"));
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 2481|      0|  }
 2482|  1.35k|  else if(!data->state.disableexpect && (httpversion == 11)) {
  ------------------
  |  Branch (2482:11): [True: 1.35k, False: 0]
  |  Branch (2482:41): [True: 720, False: 639]
  ------------------
 2483|       |    /* if not doing HTTP 1.0 or version 2, or disabled explicitly, we add an
 2484|       |       Expect: 100-continue to the headers which actually speeds up post
 2485|       |       operations (as there is one packet coming back from the web server) */
 2486|    720|    curl_off_t client_len = Curl_creader_client_length(data);
 2487|    720|    if(client_len > EXPECT_100_THRESHOLD || client_len < 0) {
  ------------------
  |  |  151|  1.44k|#define EXPECT_100_THRESHOLD (1024 * 1024)
  ------------------
  |  Branch (2487:8): [True: 110, False: 610]
  |  Branch (2487:45): [True: 143, False: 467]
  ------------------
 2488|    253|      result = curlx_dyn_addn(r, STRCONST("Expect: 100-continue\r\n"));
  ------------------
  |  | 1305|    253|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|    253|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 2489|    253|      if(result)
  ------------------
  |  Branch (2489:10): [True: 0, False: 253]
  ------------------
 2490|      0|        return result;
 2491|    253|      *announced_exp100 = TRUE;
  ------------------
  |  | 1053|    253|#define TRUE true
  ------------------
 2492|    253|    }
 2493|    720|  }
 2494|  1.35k|  return CURLE_OK;
 2495|  1.35k|}
http.c:http_exp100_add_reader:
 1567|    253|{
 1568|    253|  struct Curl_creader *reader = NULL;
 1569|    253|  CURLcode result;
 1570|       |
 1571|    253|  result = Curl_creader_create(&reader, data, &cr_exp100, CURL_CR_PROTOCOL);
 1572|    253|  if(!result)
  ------------------
  |  Branch (1572:6): [True: 253, False: 0]
  ------------------
 1573|    253|    result = Curl_creader_add(data, reader);
 1574|    253|  if(!result) {
  ------------------
  |  Branch (1574:6): [True: 253, False: 0]
  ------------------
 1575|    253|    struct cr_exp100_ctx *ctx = reader->ctx;
 1576|    253|    ctx->state = EXP100_SENDING_REQUEST;
 1577|    253|  }
 1578|       |
 1579|    253|  if(result && reader)
  ------------------
  |  Branch (1579:6): [True: 0, False: 253]
  |  Branch (1579:16): [True: 0, False: 0]
  ------------------
 1580|      0|    Curl_creader_free(data, reader);
 1581|    253|  return result;
 1582|    253|}
http.c:http_add_connection_hd:
 2824|  13.0k|{
 2825|  13.0k|  struct curl_slist *head;
 2826|  13.0k|  const char *sep = "Connection: ";
 2827|  13.0k|  CURLcode result = CURLE_OK;
 2828|  13.0k|  size_t rlen = curlx_dyn_len(req);
 2829|  13.0k|  bool skip;
 2830|       |
 2831|       |  /* Add the 1st custom "Connection: " header, if there is one */
 2832|  13.0k|  for(head = data->set.headers; head; head = head->next) {
  ------------------
  |  Branch (2832:33): [True: 0, False: 13.0k]
  ------------------
 2833|      0|    if(curl_strnequal(head->data, "Connection", 10) &&
  ------------------
  |  Branch (2833:8): [True: 0, False: 0]
  ------------------
 2834|      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]
  |  |  ------------------
  ------------------
 2835|      0|       !http_header_is_empty(head->data)) {
  ------------------
  |  Branch (2835:8): [True: 0, False: 0]
  ------------------
 2836|      0|      char *value;
 2837|      0|      result = copy_custom_value(head->data, &value);
 2838|      0|      if(result)
  ------------------
  |  Branch (2838:10): [True: 0, False: 0]
  ------------------
 2839|      0|        return result;
 2840|      0|      result = curlx_dyn_addf(req, "%s%s", sep, value);
 2841|      0|      sep = ", ";
 2842|      0|      curlx_free(value);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2843|      0|      break; /* leave, having added 1st one */
 2844|      0|    }
 2845|      0|  }
 2846|       |
 2847|       |  /* add our internal Connection: header values, if we have any */
 2848|  13.0k|  if(!result && data->state.http_hd_te) {
  ------------------
  |  Branch (2848:6): [True: 13.0k, False: 0]
  |  Branch (2848:17): [True: 0, False: 13.0k]
  ------------------
 2849|      0|    result = curlx_dyn_addf(req, "%s%s", sep, "TE");
 2850|      0|    sep = ", ";
 2851|      0|  }
 2852|  13.0k|  if(!result && data->state.http_hd_upgrade) {
  ------------------
  |  Branch (2852:6): [True: 13.0k, False: 0]
  |  Branch (2852:17): [True: 1.94k, False: 11.1k]
  ------------------
 2853|  1.94k|    result = curlx_dyn_addf(req, "%s%s", sep, "Upgrade");
 2854|  1.94k|    sep = ", ";
 2855|  1.94k|  }
 2856|  13.0k|  if(!result && data->state.http_hd_h2_settings) {
  ------------------
  |  Branch (2856:6): [True: 13.0k, False: 0]
  |  Branch (2856:17): [True: 332, False: 12.7k]
  ------------------
 2857|    332|    result = curlx_dyn_addf(req, "%s%s", sep, "HTTP2-Settings");
 2858|    332|  }
 2859|  13.0k|  if(!result && (rlen < curlx_dyn_len(req)))
  ------------------
  |  Branch (2859:6): [True: 13.0k, False: 0]
  |  Branch (2859:17): [True: 1.94k, False: 11.1k]
  ------------------
 2860|  1.94k|    result = curlx_dyn_addn(req, STRCONST("\r\n"));
  ------------------
  |  | 1305|  1.94k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  1.94k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 2861|  13.0k|  if(result)
  ------------------
  |  Branch (2861:6): [True: 0, False: 13.0k]
  ------------------
 2862|      0|    return result;
 2863|       |
 2864|       |  /* Add all user-defined Connection: headers after the first */
 2865|  13.0k|  skip = TRUE;
  ------------------
  |  | 1053|  13.0k|#define TRUE true
  ------------------
 2866|  13.0k|  for(head = data->set.headers; head; head = head->next) {
  ------------------
  |  Branch (2866:33): [True: 0, False: 13.0k]
  ------------------
 2867|      0|    if(curl_strnequal(head->data, "Connection", 10) &&
  ------------------
  |  Branch (2867:8): [True: 0, False: 0]
  ------------------
 2868|      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]
  |  |  ------------------
  ------------------
 2869|      0|       !http_header_is_empty(head->data)) {
  ------------------
  |  Branch (2869:8): [True: 0, False: 0]
  ------------------
 2870|      0|      if(skip) {
  ------------------
  |  Branch (2870:10): [True: 0, False: 0]
  ------------------
 2871|      0|        skip = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 2872|      0|        continue;
 2873|      0|      }
 2874|      0|      result = curlx_dyn_addf(req, "%s\r\n", head->data);
 2875|      0|      if(result)
  ------------------
  |  Branch (2875:10): [True: 0, False: 0]
  ------------------
 2876|      0|        return result;
 2877|      0|    }
 2878|      0|  }
 2879|       |
 2880|  13.0k|  return CURLE_OK;
 2881|  13.0k|}
http.c:http_rw_hd:
 4275|  63.2k|{
 4276|  63.2k|  CURLcode result = CURLE_OK;
 4277|  63.2k|  struct SingleRequest *k = &data->req;
 4278|  63.2k|  int writetype;
 4279|  63.2k|  DEBUGASSERT(!hd[hdlen]); /* null-terminated */
  ------------------
  |  | 1083|  63.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4279:3): [True: 0, False: 63.2k]
  |  Branch (4279:3): [True: 63.2k, False: 0]
  ------------------
 4280|       |
 4281|  63.2k|  *pconsumed = 0;
 4282|  63.2k|  if((0x0a == *hd) || (0x0d == *hd)) {
  ------------------
  |  Branch (4282:6): [True: 115, False: 63.1k]
  |  Branch (4282:23): [True: 6.88k, False: 56.2k]
  ------------------
 4283|       |    /* Empty header line means end of headers! */
 4284|  7.00k|    struct dynbuf last_header;
 4285|  7.00k|    size_t consumed;
 4286|       |
 4287|  7.00k|    curlx_dyn_init(&last_header, hdlen + 1);
 4288|  7.00k|    result = curlx_dyn_addn(&last_header, hd, hdlen);
 4289|  7.00k|    if(result)
  ------------------
  |  Branch (4289:8): [True: 0, False: 7.00k]
  ------------------
 4290|      0|      return result;
 4291|       |
 4292|       |    /* analyze the response to find out what to do. */
 4293|       |    /* Caveat: we clear anything in the header brigade, because a
 4294|       |     * response might switch HTTP version which may call use recursively.
 4295|       |     * Not nice, but that is currently the way of things. */
 4296|  7.00k|    curlx_dyn_reset(&data->state.headerb);
 4297|  7.00k|    result = http_on_response(data, curlx_dyn_ptr(&last_header),
 4298|  7.00k|                              curlx_dyn_len(&last_header),
 4299|  7.00k|                              buf_remain, blen, &consumed);
 4300|  7.00k|    *pconsumed += consumed;
 4301|  7.00k|    curlx_dyn_free(&last_header);
 4302|  7.00k|    return result;
 4303|  7.00k|  }
 4304|       |
 4305|       |  /*
 4306|       |   * Checks for special headers coming up.
 4307|       |   */
 4308|       |
 4309|  56.2k|  writetype = CLIENTWRITE_HEADER;
  ------------------
  |  |   45|  56.2k|#define CLIENTWRITE_HEADER  (1 << 2) /* meta information, HEADER */
  ------------------
 4310|  56.2k|  if(!k->headerline++) {
  ------------------
  |  Branch (4310:6): [True: 8.64k, False: 47.6k]
  ------------------
 4311|       |    /* This is the first header, it MUST be the error code line
 4312|       |       or else we consider this to be the body right away! */
 4313|  8.64k|    bool fine_statusline = FALSE;
  ------------------
  |  | 1056|  8.64k|#define FALSE false
  ------------------
 4314|       |
 4315|  8.64k|    k->httpversion = 0; /* Do not know yet */
 4316|  8.64k|    if(data->conn->scheme->protocol & PROTO_FAMILY_HTTP) {
  ------------------
  |  |   84|  8.64k|#define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1086|  8.64k|#define CURLPROTO_HTTP    (1L << 0)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1087|  8.64k|#define CURLPROTO_HTTPS   (1L << 1)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  |   63|  8.64k|#define CURLPROTO_WS     (1L << 30)
  |  |  ------------------
  |  |   85|  8.64k|                           CURLPROTO_WSS)
  |  |  ------------------
  |  |  |  |   64|  8.64k|#define CURLPROTO_WSS    ((curl_prot_t)1 << 31)
  |  |  ------------------
  ------------------
  |  Branch (4316:8): [True: 8.64k, False: 0]
  ------------------
 4317|       |      /*
 4318|       |       * https://datatracker.ietf.org/doc/html/rfc7230#section-3.1.2
 4319|       |       *
 4320|       |       * The response code is always a three-digit number in HTTP as the spec
 4321|       |       * says. We allow any three-digit number here, but we cannot make
 4322|       |       * guarantees on future behaviors since it is not within the protocol.
 4323|       |       */
 4324|  8.64k|      const char *p = hd;
 4325|       |
 4326|  8.64k|      curlx_str_passblanks(&p);
 4327|  8.64k|      if(!strncmp(p, "HTTP/", 5)) {
  ------------------
  |  Branch (4327:10): [True: 8.52k, False: 119]
  ------------------
 4328|  8.52k|        p += 5;
 4329|  8.52k|        switch(*p) {
 4330|  7.23k|        case '1':
  ------------------
  |  Branch (4330:9): [True: 7.23k, False: 1.29k]
  ------------------
 4331|  7.23k|          p++;
 4332|  7.23k|          if((p[0] == '.') && (p[1] == '0' || p[1] == '1')) {
  ------------------
  |  Branch (4332:14): [True: 7.23k, False: 2]
  |  Branch (4332:32): [True: 27, False: 7.20k]
  |  Branch (4332:47): [True: 7.20k, False: 4]
  ------------------
 4333|  7.22k|            if(ISBLANK(p[2])) {
  ------------------
  |  |   43|  7.22k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (43:22): [True: 7.22k, False: 4]
  |  |  |  Branch (43:38): [True: 1, False: 3]
  |  |  ------------------
  ------------------
 4334|  7.22k|              k->httpversion = (unsigned char)(10 + (p[1] - '0'));
 4335|  7.22k|              p += 3;
 4336|  7.22k|              if(ISDIGIT(p[0]) && ISDIGIT(p[1]) && ISDIGIT(p[2])) {
  ------------------
  |  |   42|  14.4k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (42:22): [True: 7.22k, False: 2]
  |  |  |  Branch (42:38): [True: 7.22k, False: 1]
  |  |  ------------------
  ------------------
                            if(ISDIGIT(p[0]) && ISDIGIT(p[1]) && ISDIGIT(p[2])) {
  ------------------
  |  |   42|  14.4k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (42:22): [True: 7.21k, False: 6]
  |  |  |  Branch (42:38): [True: 7.21k, False: 1]
  |  |  ------------------
  ------------------
                            if(ISDIGIT(p[0]) && ISDIGIT(p[1]) && ISDIGIT(p[2])) {
  ------------------
  |  |   42|  7.21k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (42:22): [True: 7.21k, False: 1]
  |  |  |  Branch (42:38): [True: 7.21k, False: 1]
  |  |  ------------------
  ------------------
 4337|  7.21k|                k->httpcode = ((p[0] - '0') * 100) + ((p[1] - '0') * 10) +
 4338|  7.21k|                  (p[2] - '0');
 4339|       |                /* RFC 9112 requires a single space following the status code,
 4340|       |                   but the browsers do not so let's not insist */
 4341|  7.21k|                fine_statusline = TRUE;
  ------------------
  |  | 1053|  7.21k|#define TRUE true
  ------------------
 4342|  7.21k|              }
 4343|  7.22k|            }
 4344|  7.22k|          }
 4345|  7.23k|          if(!fine_statusline) {
  ------------------
  |  Branch (4345:14): [True: 21, False: 7.21k]
  ------------------
 4346|     21|            failf(data, "Unsupported HTTP/1 subversion in response");
  ------------------
  |  |   62|     21|#define failf Curl_failf
  ------------------
 4347|     21|            return CURLE_UNSUPPORTED_PROTOCOL;
 4348|     21|          }
 4349|  7.21k|          break;
 4350|  7.21k|        case '2':
  ------------------
  |  Branch (4350:9): [True: 1.26k, False: 7.26k]
  ------------------
 4351|  1.28k|        case '3':
  ------------------
  |  Branch (4351:9): [True: 26, False: 8.49k]
  ------------------
 4352|  1.28k|          if(!ISBLANK(p[1]))
  ------------------
  |  |   43|  1.28k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (43:22): [True: 1.22k, False: 66]
  |  |  |  Branch (43:38): [True: 1, False: 65]
  |  |  ------------------
  ------------------
 4353|     65|            break;
 4354|  1.22k|          k->httpversion = (unsigned char)((*p - '0') * 10);
 4355|  1.22k|          p += 2;
 4356|  1.22k|          if(ISDIGIT(p[0]) && ISDIGIT(p[1]) && ISDIGIT(p[2])) {
  ------------------
  |  |   42|  2.44k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (42:22): [True: 1.22k, False: 1]
  |  |  |  Branch (42:38): [True: 1.22k, False: 1]
  |  |  ------------------
  ------------------
                        if(ISDIGIT(p[0]) && ISDIGIT(p[1]) && ISDIGIT(p[2])) {
  ------------------
  |  |   42|  2.44k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (42:22): [True: 1.21k, False: 5]
  |  |  |  Branch (42:38): [True: 1.21k, False: 2]
  |  |  ------------------
  ------------------
                        if(ISDIGIT(p[0]) && ISDIGIT(p[1]) && ISDIGIT(p[2])) {
  ------------------
  |  |   42|  1.21k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (42:22): [True: 1.21k, False: 1]
  |  |  |  Branch (42:38): [True: 1.20k, False: 5]
  |  |  ------------------
  ------------------
 4357|  1.20k|            k->httpcode = ((p[0] - '0') * 100) + ((p[1] - '0') * 10) +
 4358|  1.20k|              (p[2] - '0');
 4359|  1.20k|            p += 3;
 4360|  1.20k|            if(!ISBLANK(*p))
  ------------------
  |  |   43|  1.20k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (43:22): [True: 1.20k, False: 8]
  |  |  |  Branch (43:38): [True: 1, False: 7]
  |  |  ------------------
  ------------------
 4361|      7|              break;
 4362|  1.20k|            fine_statusline = TRUE;
  ------------------
  |  | 1053|  1.20k|#define TRUE true
  ------------------
 4363|  1.20k|          }
 4364|  1.21k|          break;
 4365|  1.21k|        default: /* unsupported */
  ------------------
  |  Branch (4365:9): [True: 1, False: 8.52k]
  ------------------
 4366|      1|          failf(data, "Unsupported HTTP version in response");
  ------------------
  |  |   62|      1|#define failf Curl_failf
  ------------------
 4367|      1|          return CURLE_UNSUPPORTED_PROTOCOL;
 4368|  8.52k|        }
 4369|  8.52k|      }
 4370|       |
 4371|  8.62k|      if(!fine_statusline) {
  ------------------
  |  Branch (4371:10): [True: 206, False: 8.41k]
  ------------------
 4372|       |        /* If user has set option HTTP200ALIASES,
 4373|       |           compare header line against list of aliases */
 4374|    206|        statusline check = checkhttpprefix(data, hd, hdlen);
 4375|    206|        if(check == STATUS_DONE) {
  ------------------
  |  Branch (4375:12): [True: 118, False: 88]
  ------------------
 4376|    118|          fine_statusline = TRUE;
  ------------------
  |  | 1053|    118|#define TRUE true
  ------------------
 4377|    118|          k->httpcode = 200;
 4378|    118|          k->httpversion = 10;
 4379|    118|        }
 4380|    206|      }
 4381|  8.62k|    }
 4382|      0|    else if(data->conn->scheme->protocol & CURLPROTO_RTSP) {
  ------------------
  |  | 1104|      0|#define CURLPROTO_RTSP    (1L << 18)
  ------------------
  |  Branch (4382:13): [True: 0, False: 0]
  ------------------
 4383|      0|      const char *p = hd;
 4384|      0|      struct Curl_str ver;
 4385|      0|      curl_off_t status;
 4386|       |      /* we set the max string a little excessive to forgive some leading
 4387|       |         spaces */
 4388|      0|      if(!curlx_str_until(&p, &ver, 32, ' ') &&
  ------------------
  |  Branch (4388:10): [True: 0, False: 0]
  ------------------
 4389|      0|         !curlx_str_single(&p, ' ') &&
  ------------------
  |  Branch (4389:10): [True: 0, False: 0]
  ------------------
 4390|      0|         !curlx_str_number(&p, &status, 999)) {
  ------------------
  |  Branch (4390:10): [True: 0, False: 0]
  ------------------
 4391|      0|        curlx_str_trimblanks(&ver);
 4392|      0|        if(curlx_str_cmp(&ver, "RTSP/1.0")) {
  ------------------
  |  Branch (4392:12): [True: 0, False: 0]
  ------------------
 4393|      0|          k->httpcode = (int)status;
 4394|      0|          fine_statusline = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 4395|      0|          k->httpversion = 11; /* RTSP acts like HTTP 1.1 */
 4396|      0|        }
 4397|      0|      }
 4398|      0|      if(!fine_statusline)
  ------------------
  |  Branch (4398:10): [True: 0, False: 0]
  ------------------
 4399|      0|        return CURLE_WEIRD_SERVER_REPLY;
 4400|      0|    }
 4401|       |
 4402|  8.62k|    if(fine_statusline) {
  ------------------
  |  Branch (4402:8): [True: 8.53k, False: 88]
  ------------------
 4403|  8.53k|      result = http_statusline(data, data->conn);
 4404|  8.53k|      if(result)
  ------------------
  |  Branch (4404:10): [True: 3, False: 8.53k]
  ------------------
 4405|      3|        return result;
 4406|  8.53k|      writetype |= CLIENTWRITE_STATUS;
  ------------------
  |  |   46|  8.53k|#define CLIENTWRITE_STATUS  (1 << 3) /* a special status HEADER */
  ------------------
 4407|  8.53k|    }
 4408|     88|    else {
 4409|     88|      k->header = FALSE;   /* this is not a header line */
  ------------------
  |  | 1056|     88|#define FALSE false
  ------------------
 4410|     88|      return CURLE_WEIRD_SERVER_REPLY;
 4411|     88|    }
 4412|  8.62k|  }
 4413|       |
 4414|  56.1k|  result = Curl_verify_header(data, hd, hdlen);
 4415|  56.1k|  if(result)
  ------------------
  |  Branch (4415:6): [True: 42, False: 56.1k]
  ------------------
 4416|     42|    return result;
 4417|       |
 4418|  56.1k|  result = http_header(data, hd, hdlen);
 4419|  56.1k|  if(result)
  ------------------
  |  Branch (4419:6): [True: 84, False: 56.0k]
  ------------------
 4420|     84|    return result;
 4421|       |
 4422|       |  /*
 4423|       |   * Taken in one (more) header. Write it to the client.
 4424|       |   */
 4425|  56.0k|  Curl_debug(data, CURLINFO_HEADER_IN, hd, hdlen);
 4426|       |
 4427|  56.0k|  if(k->httpcode / 100 == 1)
  ------------------
  |  Branch (4427:6): [True: 7.04k, False: 48.9k]
  ------------------
 4428|  7.04k|    writetype |= CLIENTWRITE_1XX;
  ------------------
  |  |   48|  7.04k|#define CLIENTWRITE_1XX     (1 << 5) /* a 1xx response related HEADER */
  ------------------
 4429|  56.0k|  result = Curl_client_write(data, writetype, hd, hdlen);
 4430|  56.0k|  if(result)
  ------------------
  |  Branch (4430:6): [True: 0, False: 56.0k]
  ------------------
 4431|      0|    return result;
 4432|       |
 4433|  56.0k|  result = Curl_bump_headersize(data, hdlen, FALSE);
  ------------------
  |  | 1056|  56.0k|#define FALSE false
  ------------------
 4434|  56.0k|  if(result)
  ------------------
  |  Branch (4434:6): [True: 0, False: 56.0k]
  ------------------
 4435|      0|    return result;
 4436|       |
 4437|  56.0k|  return CURLE_OK;
 4438|  56.0k|}
http.c:http_on_response:
 4150|  7.00k|{
 4151|  7.00k|  struct connectdata *conn = data->conn;
 4152|  7.00k|  CURLcode result = CURLE_OK;
 4153|  7.00k|  struct SingleRequest *k = &data->req;
 4154|  7.00k|  bool conn_changed = FALSE;
  ------------------
  |  | 1056|  7.00k|#define FALSE false
  ------------------
 4155|       |
 4156|  7.00k|  (void)buf; /* not used without HTTP2 enabled */
 4157|  7.00k|  *pconsumed = 0;
 4158|       |
 4159|  7.00k|  if(k->upgr101 == UPGR101_RECEIVED) {
  ------------------
  |  Branch (4159:6): [True: 2, False: 7.00k]
  ------------------
 4160|       |    /* supposedly upgraded to http2 now */
 4161|      2|    if(data->req.httpversion != 20)
  ------------------
  |  Branch (4161:8): [True: 0, False: 2]
  ------------------
 4162|      0|      infof(data, "Lying server, not serving HTTP/2");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 4163|      2|  }
 4164|       |
 4165|  7.00k|  if(k->httpcode < 200 && last_hd) {
  ------------------
  |  Branch (4165:6): [True: 1.81k, False: 5.19k]
  |  Branch (4165:27): [True: 1.81k, False: 0]
  ------------------
 4166|       |    /* Intermediate responses might trigger processing of more responses,
 4167|       |     * write the last header to the client before proceeding. */
 4168|  1.81k|    result = http_write_header(data, last_hd, last_hd_len);
 4169|  1.81k|    last_hd = NULL; /* handled it */
 4170|  1.81k|    if(result)
  ------------------
  |  Branch (4170:8): [True: 0, False: 1.81k]
  ------------------
 4171|      0|      goto out;
 4172|  1.81k|  }
 4173|       |
 4174|  7.00k|  if(k->httpcode < 100) {
  ------------------
  |  Branch (4174:6): [True: 5, False: 6.99k]
  ------------------
 4175|      5|    failf(data, "Unsupported response code in HTTP response");
  ------------------
  |  |   62|      5|#define failf Curl_failf
  ------------------
 4176|      5|    result = CURLE_UNSUPPORTED_PROTOCOL;
 4177|      5|    goto out;
 4178|      5|  }
 4179|  6.99k|  else if(k->httpcode < 200) {
  ------------------
  |  Branch (4179:11): [True: 1.80k, False: 5.19k]
  ------------------
 4180|  1.80k|    result = http_on_1xx_response(data, buf, blen, pconsumed, &conn_changed);
 4181|  1.80k|    goto out;
 4182|  1.80k|  }
 4183|       |
 4184|       |  /* k->httpcode >= 200, final response */
 4185|  5.19k|  k->header = FALSE;
  ------------------
  |  | 1056|  5.19k|#define FALSE false
  ------------------
 4186|  5.19k|  if(conn->bits.upgrade_in_progress) {
  ------------------
  |  Branch (4186:6): [True: 260, False: 4.93k]
  ------------------
 4187|       |    /* Asked for protocol upgrade, but it was not selected */
 4188|    260|    conn->bits.upgrade_in_progress = FALSE;
  ------------------
  |  | 1056|    260|#define FALSE false
  ------------------
 4189|    260|    conn_changed = TRUE;
  ------------------
  |  | 1053|    260|#define TRUE true
  ------------------
 4190|    260|  }
 4191|       |
 4192|  5.19k|  if((k->size == -1) && !k->chunk && !conn->bits.close &&
  ------------------
  |  Branch (4192:6): [True: 636, False: 4.55k]
  |  Branch (4192:25): [True: 427, False: 209]
  |  Branch (4192:38): [True: 387, False: 40]
  ------------------
 4193|    387|     (k->httpversion == 11) &&
  ------------------
  |  Branch (4193:6): [True: 222, False: 165]
  ------------------
 4194|    222|     !(conn->scheme->protocol & CURLPROTO_RTSP) &&
  ------------------
  |  | 1104|    222|#define CURLPROTO_RTSP    (1L << 18)
  ------------------
  |  Branch (4194:6): [True: 222, False: 0]
  ------------------
 4195|    222|     data->state.httpreq != HTTPREQ_HEAD) {
  ------------------
  |  Branch (4195:6): [True: 175, False: 47]
  ------------------
 4196|       |    /* On HTTP 1.1, when connection is not to get closed, but no
 4197|       |       Content-Length nor Transfer-Encoding chunked have been received,
 4198|       |       according to RFC2616 section 4.4 point 5, we assume that the server
 4199|       |       will close the connection to signal the end of the document. */
 4200|    175|    infof(data, "no chunk, no close, no size. Assume close to signal end");
  ------------------
  |  |  143|    175|  do {                               \
  |  |  144|    175|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|    175|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 175, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 175]
  |  |  |  |  ------------------
  |  |  |  |  323|    175|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    175|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    175|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 175]
  |  |  ------------------
  ------------------
 4201|    175|    streamclose(conn);
  ------------------
  |  |   87|    175|#define streamclose(x) Curl_conncontrol((x), CONNCTRL_STREAM_CLOSE)
  |  |  ------------------
  |  |  |  |   83|    175|#define CONNCTRL_STREAM_CLOSE    2
  |  |  ------------------
  ------------------
 4202|    175|  }
 4203|       |
 4204|  5.19k|  http_check_auth_closure(data, conn);
 4205|       |
 4206|  5.19k|#ifndef CURL_DISABLE_WEBSOCKETS
 4207|       |  /* All >=200 HTTP status codes are errors when wanting ws */
 4208|  5.19k|  if(data->req.upgr101 == UPGR101_WS) {
  ------------------
  |  Branch (4208:6): [True: 0, False: 5.19k]
  ------------------
 4209|      0|    failf(data, "Refused WebSocket upgrade: %d", k->httpcode);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 4210|      0|    result = CURLE_HTTP_RETURNED_ERROR;
 4211|      0|    goto out;
 4212|      0|  }
 4213|  5.19k|#endif
 4214|       |
 4215|       |  /* Check if this response means the transfer errored. */
 4216|  5.19k|  if(http_should_fail(data, data->req.httpcode)) {
  ------------------
  |  Branch (4216:6): [True: 4, False: 5.18k]
  ------------------
 4217|      4|    failf(data, "The requested URL returned error: %d",
  ------------------
  |  |   62|      4|#define failf Curl_failf
  ------------------
 4218|      4|          k->httpcode);
 4219|      4|    result = CURLE_HTTP_RETURNED_ERROR;
 4220|      4|    goto out;
 4221|      4|  }
 4222|       |
 4223|       |  /* Curl_http_auth_act() checks what authentication methods that are
 4224|       |   * available and decides which one (if any) to use. It will set 'newurl' if
 4225|       |   * an auth method was picked. */
 4226|  5.18k|  result = Curl_http_auth_act(data);
 4227|  5.18k|  if(result)
  ------------------
  |  Branch (4227:6): [True: 1, False: 5.18k]
  ------------------
 4228|      1|    goto out;
 4229|       |
 4230|  5.18k|  if(k->httpcode >= 300) {
  ------------------
  |  Branch (4230:6): [True: 4.78k, False: 398]
  ------------------
 4231|  4.78k|    result = http_handle_send_error(data);
 4232|  4.78k|    if(result)
  ------------------
  |  Branch (4232:8): [True: 0, False: 4.78k]
  ------------------
 4233|      0|      goto out;
 4234|  4.78k|  }
 4235|       |
 4236|       |  /* final response without error, prepare to receive the body */
 4237|  5.18k|  result = http_firstwrite(data);
 4238|  5.18k|  if(result)
  ------------------
  |  Branch (4238:6): [True: 0, False: 5.18k]
  ------------------
 4239|      0|    goto out;
 4240|       |
 4241|       |  /* This is the last response that we get for the current request. Check on
 4242|       |   * the body size and determine if the response is complete. */
 4243|  5.18k|  result = http_size(data);
 4244|  5.18k|  if(result)
  ------------------
  |  Branch (4244:6): [True: 0, False: 5.18k]
  ------------------
 4245|      0|    goto out;
 4246|       |
 4247|       |  /* If we requested a "no body", this is a good time to get
 4248|       |   * out and return home.
 4249|       |   */
 4250|  5.18k|  if(data->req.no_body)
  ------------------
  |  Branch (4250:6): [True: 199, False: 4.98k]
  ------------------
 4251|    199|    k->download_done = TRUE;
  ------------------
  |  | 1053|    199|#define TRUE true
  ------------------
 4252|       |
 4253|       |  /* If max download size is *zero* (nothing) we already have nothing and can
 4254|       |     safely return ok now! For HTTP/2, we would like to call
 4255|       |     http2_handle_stream_close to properly close a stream. In order to do
 4256|       |     this, we keep reading until we close the stream. */
 4257|  5.18k|  if((k->maxdownload == 0) && (k->httpversion_sent < 20))
  ------------------
  |  Branch (4257:6): [True: 4.36k, False: 821]
  |  Branch (4257:31): [True: 4.27k, False: 90]
  ------------------
 4258|  4.27k|    k->download_done = TRUE;
  ------------------
  |  | 1053|  4.27k|#define TRUE true
  ------------------
 4259|       |
 4260|  7.00k|out:
 4261|  7.00k|  if(last_hd)
  ------------------
  |  Branch (4261:6): [True: 5.19k, False: 1.81k]
  ------------------
 4262|       |    /* if not written yet, write it now */
 4263|  5.19k|    result = Curl_1st_fatal(result,
 4264|  5.19k|                            http_write_header(data, last_hd, last_hd_len));
 4265|  7.00k|  if(conn_changed)
  ------------------
  |  Branch (4265:6): [True: 1.90k, False: 5.10k]
  ------------------
 4266|       |    /* poke the multi handle to allow pending pipewait to retry */
 4267|  1.90k|    Curl_multi_connchanged(data->multi);
 4268|  7.00k|  return result;
 4269|  5.18k|}
http.c:http_on_1xx_response:
 3997|  1.80k|{
 3998|  1.80k|  struct SingleRequest *k = &data->req;
 3999|       |
 4000|       |  /* "A user agent MAY ignore unexpected 1xx status responses."
 4001|       |   * By default, we expect to get more responses after this one. */
 4002|  1.80k|  k->header = TRUE;
  ------------------
  |  | 1053|  1.80k|#define TRUE true
  ------------------
 4003|  1.80k|  k->headerline = 0; /* restart the header line counter */
 4004|       |
 4005|  1.80k|  switch(k->httpcode) {
 4006|     98|  case 100:
  ------------------
  |  Branch (4006:3): [True: 98, False: 1.71k]
  ------------------
 4007|       |    /* We have made an HTTP PUT or POST and this is 1.1-lingo that tells us
 4008|       |     * that the server is OK with this and ready to receive the data. */
 4009|     98|    http_exp100_got100(data);
 4010|     98|    break;
 4011|  1.64k|  case 101:
  ------------------
  |  Branch (4011:3): [True: 1.64k, False: 167]
  ------------------
 4012|  1.64k|    return http_on_101_upgrade(data, buf, blen, pconsumed, conn_changed);
 4013|     69|  default:
  ------------------
  |  Branch (4013:3): [True: 69, False: 1.73k]
  ------------------
 4014|       |    /* The server may send us other 1xx responses, like informative 103. This
 4015|       |     * has no influence on request processing and we expect to receive a
 4016|       |     * final response eventually. */
 4017|     69|    break;
 4018|  1.80k|  }
 4019|    167|  return CURLE_OK;
 4020|  1.80k|}
http.c:http_exp100_got100:
 1585|     98|{
 1586|     98|  struct Curl_creader *r = Curl_creader_get_by_type(data, &cr_exp100);
 1587|     98|  if(r)
  ------------------
  |  Branch (1587:6): [True: 36, False: 62]
  ------------------
 1588|     36|    http_exp100_continue(data, r);
 1589|     98|}
http.c:http_on_101_upgrade:
 3934|  1.64k|{
 3935|  1.64k|  struct connectdata *conn = data->conn;
 3936|  1.64k|  struct SingleRequest *k = &data->req;
 3937|       |
 3938|       |#if !defined(USE_NGHTTP2) && defined(CURL_DISABLE_WEBSOCKETS)
 3939|       |  (void)buf;
 3940|       |  (void)blen;
 3941|       |  (void)pconsumed;
 3942|       |#else
 3943|  1.64k|  CURLcode result;
 3944|  1.64k|  int upgr101_requested = k->upgr101;
 3945|  1.64k|#endif
 3946|       |
 3947|  1.64k|  if(k->httpversion_sent != 11) {
  ------------------
  |  Branch (3947:6): [True: 1, False: 1.64k]
  ------------------
 3948|       |    /* invalid for other HTTP versions */
 3949|      1|    failf(data, "server sent 101 response while not talking HTTP/1.1");
  ------------------
  |  |   62|      1|#define failf Curl_failf
  ------------------
 3950|      1|    return CURLE_WEIRD_SERVER_REPLY;
 3951|      1|  }
 3952|       |
 3953|       |  /* Whatever the success, upgrade was selected. */
 3954|  1.64k|  k->upgr101 = UPGR101_RECEIVED;
 3955|  1.64k|  conn->bits.upgrade_in_progress = FALSE;
  ------------------
  |  | 1056|  1.64k|#define FALSE false
  ------------------
 3956|  1.64k|  *conn_changed = TRUE;
  ------------------
  |  | 1053|  1.64k|#define TRUE true
  ------------------
 3957|       |
 3958|       |  /* To be fully compliant, we would check the "Upgrade:" response header to
 3959|       |   * mention the protocol we requested. */
 3960|  1.64k|#ifdef USE_NGHTTP2
 3961|  1.64k|  if(upgr101_requested == UPGR101_H2) {
  ------------------
  |  Branch (3961:6): [True: 19, False: 1.62k]
  ------------------
 3962|       |    /* Switch to HTTP/2, where we will get more responses. blen bytes in buf
 3963|       |     * are already h2 protocol bytes */
 3964|     19|    infof(data, "Received 101, Switching to HTTP/2");
  ------------------
  |  |  143|     19|  do {                               \
  |  |  144|     19|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|     19|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 19, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 19]
  |  |  |  |  ------------------
  |  |  |  |  323|     19|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     19|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     19|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 19]
  |  |  ------------------
  ------------------
 3965|     19|    result = Curl_http2_upgrade(data, conn, FIRSTSOCKET, buf, blen);
  ------------------
  |  |  233|     19|#define FIRSTSOCKET     0
  ------------------
 3966|     19|    if(!result)
  ------------------
  |  Branch (3966:8): [True: 19, False: 0]
  ------------------
 3967|     19|      *pconsumed += blen;
 3968|     19|    return result;
 3969|     19|  }
 3970|  1.62k|#endif
 3971|  1.62k|#ifndef CURL_DISABLE_WEBSOCKETS
 3972|  1.62k|  if(upgr101_requested == UPGR101_WS) {
  ------------------
  |  Branch (3972:6): [True: 1.61k, False: 7]
  ------------------
 3973|       |    /* Switch to WebSocket, where we now stream ws frames. blen bytes in buf
 3974|       |     * are already ws protocol bytes */
 3975|  1.61k|    infof(data, "Received 101, Switching to WebSocket");
  ------------------
  |  |  143|  1.61k|  do {                               \
  |  |  144|  1.61k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|  1.61k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 1.61k, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 1.61k]
  |  |  |  |  ------------------
  |  |  |  |  323|  1.61k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  1.61k|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|  1.61k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 1.61k]
  |  |  ------------------
  ------------------
 3976|  1.61k|    result = Curl_ws_accept(data, buf, blen);
 3977|  1.61k|    if(!result)
  ------------------
  |  Branch (3977:8): [True: 1.46k, False: 147]
  ------------------
 3978|  1.46k|      *pconsumed += blen; /* ws accept handled the data */
 3979|  1.61k|    return result;
 3980|  1.61k|  }
 3981|      7|#endif
 3982|       |  /* We silently accept this as the final response. What are we switching to
 3983|       |   * if we did not ask for an Upgrade? Maybe the application provided an
 3984|       |   * `Upgrade: xxx` header? */
 3985|      7|  k->header = FALSE;
  ------------------
  |  | 1056|      7|#define FALSE false
  ------------------
 3986|      7|  return CURLE_OK;
 3987|  1.62k|}
http.c:http_handle_send_error:
 4071|  4.78k|{
 4072|  4.78k|  struct connectdata *conn = data->conn;
 4073|  4.78k|  struct SingleRequest *k = &data->req;
 4074|  4.78k|  CURLcode result = CURLE_OK;
 4075|       |
 4076|  4.78k|  if(!data->req.authneg && !conn->bits.close &&
  ------------------
  |  Branch (4076:6): [True: 4.78k, False: 0]
  |  Branch (4076:28): [True: 4.51k, False: 275]
  ------------------
 4077|  4.51k|     !Curl_creader_will_rewind(data)) {
  ------------------
  |  Branch (4077:6): [True: 4.35k, False: 153]
  ------------------
 4078|       |    /*
 4079|       |     * General treatment of errors when about to send data.
 4080|       |     * Including: "417 Expectation Failed", while waiting for
 4081|       |     * 100-continue.
 4082|       |     *
 4083|       |     * The check for close above is done because if something
 4084|       |     * else has already deemed the connection to get closed then
 4085|       |     * something else should have considered the big picture and
 4086|       |     * we avoid this check.
 4087|       |     */
 4088|       |
 4089|  4.35k|    switch(data->state.httpreq) {
 4090|     42|    case HTTPREQ_PUT:
  ------------------
  |  Branch (4090:5): [True: 42, False: 4.31k]
  ------------------
 4091|    261|    case HTTPREQ_POST:
  ------------------
  |  Branch (4091:5): [True: 219, False: 4.14k]
  ------------------
 4092|    261|    case HTTPREQ_POST_FORM:
  ------------------
  |  Branch (4092:5): [True: 0, False: 4.35k]
  ------------------
 4093|    261|    case HTTPREQ_POST_MIME:
  ------------------
  |  Branch (4093:5): [True: 0, False: 4.35k]
  ------------------
 4094|       |      /* We got an error response. If this happened before the
 4095|       |       * whole request body has been sent we stop sending and
 4096|       |       * mark the connection for closure after we have read the
 4097|       |       * entire response. */
 4098|    261|      if(!Curl_req_done_sending(data)) {
  ------------------
  |  Branch (4098:10): [True: 18, False: 243]
  ------------------
 4099|     18|        if((k->httpcode == 417) && http_exp100_is_selected(data)) {
  ------------------
  |  Branch (4099:12): [True: 0, False: 18]
  |  Branch (4099:36): [True: 0, False: 0]
  ------------------
 4100|       |          /* 417 Expectation Failed - try again without the
 4101|       |             Expect header */
 4102|      0|          if(!k->writebytecount && http_exp100_is_waiting(data)) {
  ------------------
  |  Branch (4102:14): [True: 0, False: 0]
  |  Branch (4102:36): [True: 0, False: 0]
  ------------------
 4103|      0|            infof(data, "Got HTTP failure 417 while waiting for a 100");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 4104|      0|          }
 4105|      0|          else {
 4106|      0|            infof(data, "Got HTTP failure 417 while sending data");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 4107|      0|            streamclose(conn);
  ------------------
  |  |   87|      0|#define streamclose(x) Curl_conncontrol((x), CONNCTRL_STREAM_CLOSE)
  |  |  ------------------
  |  |  |  |   83|      0|#define CONNCTRL_STREAM_CLOSE    2
  |  |  ------------------
  ------------------
 4108|      0|            result = http_perhapsrewind(data, conn);
 4109|      0|            if(result)
  ------------------
  |  Branch (4109:16): [True: 0, False: 0]
  ------------------
 4110|      0|              return result;
 4111|      0|          }
 4112|      0|          data->state.disableexpect = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 4113|      0|          Curl_req_abort_sending(data);
 4114|      0|          DEBUGASSERT(!data->req.newurl);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4114:11): [True: 0, False: 0]
  |  Branch (4114:11): [True: 0, False: 0]
  ------------------
 4115|      0|          data->req.newurl = Curl_bufref_dup(&data->state.url);
  ------------------
  |  |   49|      0|#define Curl_bufref_dup(x) curlx_strdup(Curl_bufref_ptr(x))
  |  |  ------------------
  |  |  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  ------------------
 4116|      0|          if(!data->req.newurl)
  ------------------
  |  Branch (4116:14): [True: 0, False: 0]
  ------------------
 4117|      0|            return CURLE_OUT_OF_MEMORY;
 4118|      0|        }
 4119|     18|        else if(data->set.http_keep_sending_on_error) {
  ------------------
  |  Branch (4119:17): [True: 0, False: 18]
  ------------------
 4120|      0|          infof(data, "HTTP error before end of send, keep sending");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 4121|      0|          http_exp100_send_anyway(data);
 4122|      0|        }
 4123|     18|        else {
 4124|     18|          infof(data, "HTTP error before end of send, stop sending");
  ------------------
  |  |  143|     18|  do {                               \
  |  |  144|     18|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|     18|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 18, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 18]
  |  |  |  |  ------------------
  |  |  |  |  323|     18|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     18|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     18|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 18]
  |  |  ------------------
  ------------------
 4125|     18|          streamclose(conn);
  ------------------
  |  |   87|     18|#define streamclose(x) Curl_conncontrol((x), CONNCTRL_STREAM_CLOSE)
  |  |  ------------------
  |  |  |  |   83|     18|#define CONNCTRL_STREAM_CLOSE    2
  |  |  ------------------
  ------------------
 4126|     18|          result = Curl_req_abort_sending(data);
 4127|     18|          if(result)
  ------------------
  |  Branch (4127:14): [True: 0, False: 18]
  ------------------
 4128|      0|            return result;
 4129|     18|        }
 4130|     18|      }
 4131|    261|      break;
 4132|       |
 4133|  4.09k|    default: /* default label present to avoid compiler warnings */
  ------------------
  |  Branch (4133:5): [True: 4.09k, False: 261]
  ------------------
 4134|  4.09k|      break;
 4135|  4.35k|    }
 4136|  4.35k|  }
 4137|       |
 4138|  4.78k|  if(Curl_creader_will_rewind(data) && !Curl_req_done_sending(data)) {
  ------------------
  |  Branch (4138:6): [True: 163, False: 4.62k]
  |  Branch (4138:40): [True: 63, False: 100]
  ------------------
 4139|       |    /* We rewind before next send, continue sending now */
 4140|     63|    infof(data, "Keep sending data to get tossed away");
  ------------------
  |  |  143|     63|  do {                               \
  |  |  144|     63|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|     63|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 63, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 63]
  |  |  |  |  ------------------
  |  |  |  |  323|     63|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     63|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     63|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 63]
  |  |  ------------------
  ------------------
 4141|     63|    CURL_REQ_SET_SEND(data);
  ------------------
  |  |   44|     63|#define CURL_REQ_SET_SEND(d)   ((d)->req.io_flags |= REQ_IO_SEND)
  |  |  ------------------
  |  |  |  |   36|     63|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  ------------------
 4142|     63|  }
 4143|  4.78k|  return result;
 4144|  4.78k|}
http.c:http_firstwrite:
 2712|  5.18k|{
 2713|  5.18k|  struct connectdata *conn = data->conn;
 2714|  5.18k|  struct SingleRequest *k = &data->req;
 2715|       |
 2716|  5.18k|  if(data->req.newurl) {
  ------------------
  |  Branch (2716:6): [True: 4.32k, False: 864]
  ------------------
 2717|  4.32k|    if(conn->bits.close) {
  ------------------
  |  Branch (2717:8): [True: 119, False: 4.20k]
  ------------------
 2718|       |      /* Abort after the headers if "follow Location" is set
 2719|       |         and we are set to close anyway. */
 2720|    119|      CURL_REQ_CLEAR_RECV(data);
  ------------------
  |  |   49|    119|  ((d)->req.io_flags &= (uint8_t)~REQ_IO_RECV)
  |  |  ------------------
  |  |  |  |   35|    119|#define REQ_IO_RECV       (1 << 0) /* there is or may be data to read */
  |  |  ------------------
  ------------------
 2721|    119|      k->done = TRUE;
  ------------------
  |  | 1053|    119|#define TRUE true
  ------------------
 2722|    119|      return CURLE_OK;
 2723|    119|    }
 2724|       |    /* We have a new URL to load, but since we want to be able to reuse this
 2725|       |       connection properly, we read the full response in "ignore more" */
 2726|  4.20k|    k->ignorebody = TRUE;
  ------------------
  |  | 1053|  4.20k|#define TRUE true
  ------------------
 2727|  4.20k|    infof(data, "Ignoring the response-body");
  ------------------
  |  |  143|  4.20k|  do {                               \
  |  |  144|  4.20k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|  4.20k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 4.20k, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 4.20k]
  |  |  |  |  ------------------
  |  |  |  |  323|  4.20k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  4.20k|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|  4.20k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 4.20k]
  |  |  ------------------
  ------------------
 2728|  4.20k|  }
 2729|  5.06k|  if(data->state.resume_from && !k->content_range &&
  ------------------
  |  Branch (2729:6): [True: 0, False: 5.06k]
  |  Branch (2729:33): [True: 0, False: 0]
  ------------------
 2730|      0|     (data->state.httpreq == HTTPREQ_GET) &&
  ------------------
  |  Branch (2730:6): [True: 0, False: 0]
  ------------------
 2731|      0|     !k->ignorebody) {
  ------------------
  |  Branch (2731:6): [True: 0, False: 0]
  ------------------
 2732|       |
 2733|      0|    if(k->size == data->state.resume_from) {
  ------------------
  |  Branch (2733:8): [True: 0, False: 0]
  ------------------
 2734|       |      /* The resume point is at the end of file, consider this fine even if it
 2735|       |         does not allow resume from here. */
 2736|      0|      infof(data, "The entire document is already downloaded");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2737|      0|      streamclose(conn);
  ------------------
  |  |   87|      0|#define streamclose(x) Curl_conncontrol((x), CONNCTRL_STREAM_CLOSE)
  |  |  ------------------
  |  |  |  |   83|      0|#define CONNCTRL_STREAM_CLOSE    2
  |  |  ------------------
  ------------------
 2738|       |      /* Abort download */
 2739|      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 */
  |  |  ------------------
  ------------------
 2740|      0|      k->done = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2741|      0|      return CURLE_OK;
 2742|      0|    }
 2743|       |
 2744|       |    /* we wanted to resume a download, although the server does not seem to
 2745|       |     * support this and we did this with a GET (if it was not a GET we did a
 2746|       |     * POST or PUT resume) */
 2747|      0|    failf(data, "HTTP server does not seem to support "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2748|      0|          "byte ranges. Cannot resume.");
 2749|      0|    return CURLE_RANGE_ERROR;
 2750|      0|  }
 2751|       |
 2752|  5.06k|  if(data->set.timecondition && !data->state.range) {
  ------------------
  |  Branch (2752:6): [True: 0, False: 5.06k]
  |  Branch (2752:33): [True: 0, False: 0]
  ------------------
 2753|       |    /* A time condition has been set AND no ranges have been requested. This
 2754|       |       seems to be what chapter 13.3.4 of RFC 2616 defines to be the correct
 2755|       |       action for an HTTP/1.1 client */
 2756|       |
 2757|      0|    if(!Curl_meets_timecondition(data, k->timeofdoc)) {
  ------------------
  |  Branch (2757:8): [True: 0, False: 0]
  ------------------
 2758|      0|      k->done = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2759|       |      /* We are simulating an HTTP 304 from server so we return
 2760|       |         what should have been returned from the server */
 2761|      0|      data->info.httpcode = 304;
 2762|      0|      infof(data, "Simulate an HTTP 304 response");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2763|       |      /* we abort the transfer before it is completed == we ruin the
 2764|       |         reuse ability. Close the connection */
 2765|      0|      streamclose(conn);
  ------------------
  |  |   87|      0|#define streamclose(x) Curl_conncontrol((x), CONNCTRL_STREAM_CLOSE)
  |  |  ------------------
  |  |  |  |   83|      0|#define CONNCTRL_STREAM_CLOSE    2
  |  |  ------------------
  ------------------
 2766|      0|      return CURLE_OK;
 2767|      0|    }
 2768|      0|  } /* we have a time condition */
 2769|       |
 2770|  5.06k|  return CURLE_OK;
 2771|  5.06k|}
http.c:http_size:
 3844|  5.18k|{
 3845|  5.18k|  struct SingleRequest *k = &data->req;
 3846|  5.18k|  if(data->req.ignore_cl || k->chunk) {
  ------------------
  |  Branch (3846:6): [True: 0, False: 5.18k]
  |  Branch (3846:29): [True: 209, False: 4.97k]
  ------------------
 3847|    209|    k->size = k->maxdownload = -1;
 3848|    209|  }
 3849|  4.97k|  else if(k->size != -1) {
  ------------------
  |  Branch (3849:11): [True: 4.55k, False: 423]
  ------------------
 3850|  4.55k|    if(data->set.max_filesize &&
  ------------------
  |  Branch (3850:8): [True: 0, False: 4.55k]
  ------------------
 3851|      0|       !k->ignorebody &&
  ------------------
  |  Branch (3851:8): [True: 0, False: 0]
  ------------------
 3852|      0|       (k->size > data->set.max_filesize)) {
  ------------------
  |  Branch (3852:8): [True: 0, False: 0]
  ------------------
 3853|      0|      failf(data, "Maximum file size exceeded");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3854|      0|      return CURLE_FILESIZE_EXCEEDED;
 3855|      0|    }
 3856|  4.55k|    if(k->ignorebody)
  ------------------
  |  Branch (3856:8): [True: 4.15k, False: 396]
  ------------------
 3857|  4.15k|      infof(data, "setting size while ignoring");
  ------------------
  |  |  143|  4.15k|  do {                               \
  |  |  144|  4.15k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|  4.15k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 4.15k, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 4.15k]
  |  |  |  |  ------------------
  |  |  |  |  323|  4.15k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  4.15k|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|  4.15k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 4.15k]
  |  |  ------------------
  ------------------
 3858|  4.55k|    Curl_pgrsSetDownloadSize(data, k->size);
 3859|  4.55k|    k->maxdownload = k->size;
 3860|  4.55k|  }
 3861|  5.18k|  return CURLE_OK;
 3862|  5.18k|}
http.c:checkhttpprefix:
 3176|  8.09k|{
 3177|  8.09k|  struct curl_slist *head = data->set.http200aliases;
 3178|  8.09k|  statusline rc = STATUS_BAD;
 3179|  8.09k|  statusline onmatch = len >= 5 ? STATUS_DONE : STATUS_UNKNOWN;
  ------------------
  |  Branch (3179:24): [True: 7.84k, False: 250]
  ------------------
 3180|       |
 3181|  8.09k|  while(head) {
  ------------------
  |  Branch (3181:9): [True: 0, False: 8.09k]
  ------------------
 3182|      0|    if(checkprefixmax(head->data, s, len)) {
  ------------------
  |  Branch (3182:8): [True: 0, False: 0]
  ------------------
 3183|      0|      rc = onmatch;
 3184|      0|      break;
 3185|      0|    }
 3186|      0|    head = head->next;
 3187|      0|  }
 3188|       |
 3189|  8.09k|  if((rc != STATUS_DONE) && (checkprefixmax("HTTP/", s, len)))
  ------------------
  |  Branch (3189:6): [True: 8.09k, False: 0]
  |  Branch (3189:29): [True: 7.69k, False: 401]
  ------------------
 3190|  7.69k|    rc = onmatch;
 3191|       |
 3192|  8.09k|  return rc;
 3193|  8.09k|}
http.c:checkprefixmax:
 3164|  8.09k|{
 3165|  8.09k|  size_t ch = CURLMIN(strlen(prefix), len);
  ------------------
  |  | 1296|  8.09k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1296:24): [True: 7.83k, False: 267]
  |  |  ------------------
  ------------------
 3166|  8.09k|  return curl_strnequal(prefix, buffer, ch);
 3167|  8.09k|}
http.c:http_statusline:
 3754|  8.53k|{
 3755|  8.53k|  struct SingleRequest *k = &data->req;
 3756|       |
 3757|  8.53k|  switch(k->httpversion) {
 3758|    143|  case 10:
  ------------------
  |  Branch (3758:3): [True: 143, False: 8.39k]
  ------------------
 3759|  7.33k|  case 11:
  ------------------
  |  Branch (3759:3): [True: 7.18k, False: 1.34k]
  ------------------
 3760|  7.33k|#ifdef USE_HTTP2
 3761|  8.53k|  case 20:
  ------------------
  |  Branch (3761:3): [True: 1.20k, False: 7.33k]
  ------------------
 3762|  8.53k|#endif
 3763|       |#ifdef USE_HTTP3
 3764|       |  case 30:
 3765|       |#endif
 3766|       |    /* no major version switch mid-connection */
 3767|  8.53k|    if(k->httpversion_sent &&
  ------------------
  |  Branch (3767:8): [True: 8.53k, False: 0]
  ------------------
 3768|  8.53k|       (k->httpversion / 10 != k->httpversion_sent / 10)) {
  ------------------
  |  Branch (3768:8): [True: 2, False: 8.53k]
  ------------------
 3769|      2|      failf(data, "Version mismatch (from HTTP/%d to HTTP/%d)",
  ------------------
  |  |   62|      2|#define failf Curl_failf
  ------------------
 3770|      2|            k->httpversion_sent / 10, k->httpversion / 10);
 3771|      2|      return CURLE_WEIRD_SERVER_REPLY;
 3772|      2|    }
 3773|  8.53k|    break;
 3774|  8.53k|  default:
  ------------------
  |  Branch (3774:3): [True: 1, False: 8.53k]
  ------------------
 3775|      1|    failf(data, "Unsupported HTTP version (%d.%d) in response",
  ------------------
  |  |   62|      1|#define failf Curl_failf
  ------------------
 3776|      1|          k->httpversion / 10, k->httpversion % 10);
 3777|      1|    return CURLE_UNSUPPORTED_PROTOCOL;
 3778|  8.53k|  }
 3779|       |
 3780|  8.53k|  data->info.httpcode = k->httpcode;
 3781|  8.53k|  data->info.httpversion = k->httpversion;
 3782|  8.53k|  conn->httpversion_seen = k->httpversion;
 3783|       |
 3784|  8.53k|  if(!data->state.http_neg.rcvd_min ||
  ------------------
  |  Branch (3784:6): [True: 5.00k, False: 3.53k]
  ------------------
 3785|  3.53k|     data->state.http_neg.rcvd_min > k->httpversion)
  ------------------
  |  Branch (3785:6): [True: 14, False: 3.51k]
  ------------------
 3786|       |    /* store the lowest server version we encounter */
 3787|  5.01k|    data->state.http_neg.rcvd_min = k->httpversion;
 3788|       |
 3789|       |  /*
 3790|       |   * This code executes as part of processing the header. As a
 3791|       |   * result, it is not totally clear how to interpret the
 3792|       |   * response code yet as that depends on what other headers may
 3793|       |   * be present. 401 and 407 may be errors, but may be OK
 3794|       |   * depending on how authentication is working. Other codes
 3795|       |   * are definitely errors, so give up here.
 3796|       |   */
 3797|  8.53k|  if(data->state.resume_from && data->state.httpreq == HTTPREQ_GET &&
  ------------------
  |  Branch (3797:6): [True: 0, False: 8.53k]
  |  Branch (3797:33): [True: 0, False: 0]
  ------------------
 3798|      0|     k->httpcode == 416) {
  ------------------
  |  Branch (3798:6): [True: 0, False: 0]
  ------------------
 3799|       |    /* "Requested Range Not Satisfiable", proceed and pretend this is no
 3800|       |       error */
 3801|      0|    k->ignorebody = TRUE; /* Avoid appending error msg to good data. */
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 3802|      0|  }
 3803|       |
 3804|  8.53k|  if(k->httpversion == 10) {
  ------------------
  |  Branch (3804:6): [True: 143, False: 8.38k]
  ------------------
 3805|       |    /* Default action for HTTP/1.0 must be to close, unless
 3806|       |       we get one of those fancy headers that tell us the
 3807|       |       server keeps it open for us! */
 3808|    143|    infof(data, "HTTP 1.0, assume close after body");
  ------------------
  |  |  143|    143|  do {                               \
  |  |  144|    143|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|    143|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 143, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 143]
  |  |  |  |  ------------------
  |  |  |  |  323|    143|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    143|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    143|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 143]
  |  |  ------------------
  ------------------
 3809|    143|    connclose(conn);
  ------------------
  |  |   88|    143|#define connclose(x)   Curl_conncontrol((x), CONNCTRL_CONN_CLOSE)
  |  |  ------------------
  |  |  |  |   82|    143|#define CONNCTRL_CONN_CLOSE      1
  |  |  ------------------
  ------------------
 3810|    143|  }
 3811|       |
 3812|  8.53k|  k->http_bodyless = k->httpcode >= 100 && k->httpcode < 200;
  ------------------
  |  Branch (3812:22): [True: 8.50k, False: 25]
  |  Branch (3812:44): [True: 1.82k, False: 6.68k]
  ------------------
 3813|  8.53k|  switch(k->httpcode) {
 3814|  3.86k|  case 304:
  ------------------
  |  Branch (3814:3): [True: 3.86k, False: 4.66k]
  ------------------
 3815|       |    /* (quote from RFC2616, section 10.3.5): The 304 response
 3816|       |     * MUST NOT contain a message-body, and thus is always
 3817|       |     * terminated by the first empty line after the header
 3818|       |     * fields. */
 3819|  3.86k|    if(data->set.timecondition)
  ------------------
  |  Branch (3819:8): [True: 0, False: 3.86k]
  ------------------
 3820|      0|      data->info.timecond = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 3821|  3.86k|    FALLTHROUGH();
  ------------------
  |  |  823|  3.86k|#  define FALLTHROUGH()  __attribute__((fallthrough))
  ------------------
 3822|  3.95k|  case 204:
  ------------------
  |  Branch (3822:3): [True: 87, False: 8.44k]
  ------------------
 3823|       |    /* (quote from RFC2616, section 10.2.5): The server has
 3824|       |     * fulfilled the request but does not need to return an
 3825|       |     * entity-body ... The 204 response MUST NOT include a
 3826|       |     * message-body, and thus is always terminated by the first
 3827|       |     * empty line after the header fields. */
 3828|  3.95k|    k->size = 0;
 3829|  3.95k|    k->maxdownload = 0;
 3830|  3.95k|    k->http_bodyless = TRUE;
  ------------------
  |  | 1053|  3.95k|#define TRUE true
  ------------------
 3831|  3.95k|    break;
 3832|  4.57k|  default:
  ------------------
  |  Branch (3832:3): [True: 4.57k, False: 3.95k]
  ------------------
 3833|  4.57k|    break;
 3834|  8.53k|  }
 3835|  8.53k|  return CURLE_OK;
 3836|  8.53k|}
http.c:http_header:
 3702|  56.1k|{
 3703|  56.1k|  CURLcode result = CURLE_OK;
 3704|       |
 3705|  56.1k|  switch(hd[0]) {
  ------------------
  |  Branch (3705:10): [True: 40.9k, False: 15.1k]
  ------------------
 3706|  2.16k|  case 'a':
  ------------------
  |  Branch (3706:3): [True: 2.16k, False: 53.9k]
  ------------------
 3707|  2.19k|  case 'A':
  ------------------
  |  Branch (3707:3): [True: 36, False: 56.0k]
  ------------------
 3708|  2.19k|    result = http_header_a(data, hd, hdlen);
 3709|  2.19k|    break;
 3710|  6.22k|  case 'c':
  ------------------
  |  Branch (3710:3): [True: 6.22k, False: 49.8k]
  ------------------
 3711|  9.17k|  case 'C':
  ------------------
  |  Branch (3711:3): [True: 2.95k, False: 53.1k]
  ------------------
 3712|  9.17k|    result = http_header_c(data, hd, hdlen);
 3713|  9.17k|    break;
 3714|  1.78k|  case 'l':
  ------------------
  |  Branch (3714:3): [True: 1.78k, False: 54.3k]
  ------------------
 3715|  6.91k|  case 'L':
  ------------------
  |  Branch (3715:3): [True: 5.13k, False: 50.9k]
  ------------------
 3716|  6.91k|    result = http_header_l(data, hd, hdlen);
 3717|  6.91k|    break;
 3718|    281|  case 'p':
  ------------------
  |  Branch (3718:3): [True: 281, False: 55.8k]
  ------------------
 3719|    354|  case 'P':
  ------------------
  |  Branch (3719:3): [True: 73, False: 56.0k]
  ------------------
 3720|    354|    result = http_header_p(data, hd, hdlen);
 3721|    354|    break;
 3722|  11.2k|  case 'r':
  ------------------
  |  Branch (3722:3): [True: 11.2k, False: 44.8k]
  ------------------
 3723|  11.4k|  case 'R':
  ------------------
  |  Branch (3723:3): [True: 136, False: 55.9k]
  ------------------
 3724|  11.4k|    result = http_header_r(data, hd, hdlen);
 3725|  11.4k|    break;
 3726|  7.44k|  case 's':
  ------------------
  |  Branch (3726:3): [True: 7.44k, False: 48.6k]
  ------------------
 3727|  9.09k|  case 'S':
  ------------------
  |  Branch (3727:3): [True: 1.65k, False: 54.4k]
  ------------------
 3728|  9.09k|    result = http_header_s(data, hd, hdlen);
 3729|  9.09k|    break;
 3730|    979|  case 't':
  ------------------
  |  Branch (3730:3): [True: 979, False: 55.1k]
  ------------------
 3731|  1.31k|  case 'T':
  ------------------
  |  Branch (3731:3): [True: 336, False: 55.7k]
  ------------------
 3732|  1.31k|    result = http_header_t(data, hd, hdlen);
 3733|  1.31k|    break;
 3734|    239|  case 'w':
  ------------------
  |  Branch (3734:3): [True: 239, False: 55.8k]
  ------------------
 3735|    452|  case 'W':
  ------------------
  |  Branch (3735:3): [True: 213, False: 55.8k]
  ------------------
 3736|    452|    result = http_header_w(data, hd, hdlen);
 3737|    452|    break;
 3738|  56.1k|  }
 3739|       |
 3740|  56.1k|  if(!result) {
  ------------------
  |  Branch (3740:6): [True: 56.0k, False: 84]
  ------------------
 3741|  56.0k|    struct connectdata *conn = data->conn;
 3742|  56.0k|    if(conn->scheme->protocol & CURLPROTO_RTSP)
  ------------------
  |  | 1104|  56.0k|#define CURLPROTO_RTSP    (1L << 18)
  ------------------
  |  Branch (3742:8): [True: 0, False: 56.0k]
  ------------------
 3743|      0|      result = Curl_rtsp_parseheader(data, hd);
 3744|  56.0k|  }
 3745|  56.1k|  return result;
 3746|  56.1k|}
http.c:http_header_a:
 3243|  2.19k|{
 3244|  2.19k|#ifndef CURL_DISABLE_ALTSVC
 3245|  2.19k|  const char *v;
 3246|  2.19k|  v = (data->asi &&
  ------------------
  |  Branch (3246:8): [True: 2.19k, False: 0]
  ------------------
 3247|  2.19k|       (Curl_xfer_is_secure(data) ||
  ------------------
  |  Branch (3247:9): [True: 0, False: 2.19k]
  ------------------
 3248|  2.19k|#ifdef DEBUGBUILD
 3249|       |        /* allow debug builds to circumvent the HTTPS restriction */
 3250|  2.19k|        getenv("CURL_ALTSVC_HTTP")
  ------------------
  |  Branch (3250:9): [True: 0, False: 2.19k]
  ------------------
 3251|       |#else
 3252|       |        0
 3253|       |#endif
 3254|  2.19k|         )) ? HD_VAL(hd, hdlen, "Alt-Svc:") : NULL;
  ------------------
  |  | 3228|      0|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3228:5): [True: 0, False: 0]
  |  |  |  Branch (3228:37): [True: 0, False: 0]
  |  |  ------------------
  |  | 3229|      0|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3229:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3255|  2.19k|  if(v) {
  ------------------
  |  Branch (3255:6): [True: 0, False: 2.19k]
  ------------------
 3256|       |    /* the ALPN of the current request */
 3257|      0|    struct SingleRequest *k = &data->req;
 3258|      0|    enum alpnid id = (k->httpversion == 30) ? ALPN_h3 :
  ------------------
  |  Branch (3258:22): [True: 0, False: 0]
  ------------------
 3259|      0|      (k->httpversion == 20) ? ALPN_h2 : ALPN_h1;
  ------------------
  |  Branch (3259:7): [True: 0, False: 0]
  ------------------
 3260|      0|    return Curl_altsvc_parse(data, data->asi, v, data->state.origin, id);
 3261|      0|  }
 3262|       |#else
 3263|       |  (void)data;
 3264|       |  (void)hd;
 3265|       |  (void)hdlen;
 3266|       |#endif
 3267|  2.19k|  return CURLE_OK;
 3268|  2.19k|}
http.c:http_header_c:
 3275|  9.17k|{
 3276|  9.17k|  struct connectdata *conn = data->conn;
 3277|  9.17k|  struct SingleRequest *k = &data->req;
 3278|  9.17k|  const char *v;
 3279|       |
 3280|       |  /* Check for Content-Length: header lines to get size. Browsers insist we
 3281|       |     should accept multiple Content-Length headers and that a comma separated
 3282|       |     list also is fine and then we should accept them all as long as they are
 3283|       |     the same value. Different values trigger error.
 3284|       |   */
 3285|  9.17k|  v = (!k->http_bodyless && !data->set.ignorecl) ?
  ------------------
  |  Branch (3285:8): [True: 6.96k, False: 2.21k]
  |  Branch (3285:29): [True: 6.96k, False: 0]
  ------------------
 3286|  9.17k|    HD_VAL(hd, hdlen, "Content-Length:") : NULL;
  ------------------
  |  | 3228|  6.96k|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3228:5): [True: 6.04k, False: 916]
  |  |  |  Branch (3228:37): [True: 6.04k, False: 0]
  |  |  ------------------
  |  | 3229|  6.96k|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3229:5): [True: 934, False: 5.11k]
  |  |  ------------------
  ------------------
 3287|  9.17k|  if(v) {
  ------------------
  |  Branch (3287:6): [True: 934, False: 8.24k]
  ------------------
 3288|  1.13k|    do {
 3289|  1.13k|      curl_off_t contentlength;
 3290|  1.13k|      int offt = curlx_str_numblanks(&v, &contentlength);
 3291|       |
 3292|  1.13k|      if(offt == STRE_OVERFLOW) {
  ------------------
  |  |   35|  1.13k|#define STRE_OVERFLOW 7
  ------------------
  |  Branch (3292:10): [True: 161, False: 971]
  ------------------
 3293|       |        /* out of range */
 3294|    161|        if(data->set.max_filesize) {
  ------------------
  |  Branch (3294:12): [True: 0, False: 161]
  ------------------
 3295|      0|          failf(data, "Maximum file size exceeded");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3296|      0|          return CURLE_FILESIZE_EXCEEDED;
 3297|      0|        }
 3298|    161|        streamclose(conn);
  ------------------
  |  |   87|    161|#define streamclose(x) Curl_conncontrol((x), CONNCTRL_STREAM_CLOSE)
  |  |  ------------------
  |  |  |  |   83|    161|#define CONNCTRL_STREAM_CLOSE    2
  |  |  ------------------
  ------------------
 3299|    161|        infof(data, "Overflow Content-Length: value");
  ------------------
  |  |  143|    161|  do {                               \
  |  |  144|    161|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|    161|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 161, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 161]
  |  |  |  |  ------------------
  |  |  |  |  323|    161|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    161|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    161|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 161]
  |  |  ------------------
  ------------------
 3300|    161|        return CURLE_OK;
 3301|    161|      }
 3302|    971|      else {
 3303|    971|        if((offt == STRE_OK) &&
  ------------------
  |  |   28|    971|#define STRE_OK       0
  ------------------
  |  Branch (3303:12): [True: 958, False: 13]
  ------------------
 3304|    958|           ((k->size == -1) || /* not set to something before */
  ------------------
  |  Branch (3304:13): [True: 817, False: 141]
  ------------------
 3305|    930|            (k->size == contentlength))) { /* or the same value */
  ------------------
  |  Branch (3305:13): [True: 113, False: 28]
  ------------------
 3306|       |
 3307|    930|          k->size = contentlength;
 3308|    930|          curlx_str_passblanks(&v);
 3309|       |
 3310|       |          /* on a comma, loop and get the next instead */
 3311|    930|          if(!curlx_str_single(&v, ','))
  ------------------
  |  Branch (3311:14): [True: 198, False: 732]
  ------------------
 3312|    198|            continue;
 3313|       |
 3314|    732|          if(!curlx_str_newline(&v)) {
  ------------------
  |  Branch (3314:14): [True: 724, False: 8]
  ------------------
 3315|    724|            k->maxdownload = k->size;
 3316|    724|            return CURLE_OK;
 3317|    724|          }
 3318|    732|        }
 3319|       |        /* negative, different value or rubbish - bad HTTP */
 3320|     49|        failf(data, "Invalid Content-Length: value");
  ------------------
  |  |   62|     49|#define failf Curl_failf
  ------------------
 3321|     49|        return CURLE_WEIRD_SERVER_REPLY;
 3322|    971|      }
 3323|  1.13k|    } while(1);
  ------------------
  |  Branch (3323:13): [True: 198, Folded]
  ------------------
 3324|    934|  }
 3325|  8.24k|  v = (!k->http_bodyless && data->set.str[STRING_ENCODING]) ?
  ------------------
  |  Branch (3325:8): [True: 6.02k, False: 2.21k]
  |  Branch (3325:29): [True: 1.13k, False: 4.89k]
  ------------------
 3326|  8.24k|    HD_VAL(hd, hdlen, "Content-Encoding:") : NULL;
  ------------------
  |  | 3228|  1.13k|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3228:5): [True: 812, False: 320]
  |  |  |  Branch (3228:37): [True: 812, False: 0]
  |  |  ------------------
  |  | 3229|  1.13k|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3229:5): [True: 539, False: 273]
  |  |  ------------------
  ------------------
 3327|  8.24k|  if(v) {
  ------------------
  |  Branch (3327:6): [True: 539, False: 7.70k]
  ------------------
 3328|       |    /*
 3329|       |     * Process Content-Encoding. Look for the values: identity, gzip, deflate,
 3330|       |     * compress, x-gzip and x-compress. x-gzip and x-compress are the same as
 3331|       |     * gzip and compress. (Sec 3.5 RFC 2616). zlib cannot handle compress.
 3332|       |     * Errors are handled further down when the response body is processed
 3333|       |     */
 3334|    539|    return Curl_build_unencoding_stack(data, v, FALSE);
  ------------------
  |  | 1056|    539|#define FALSE false
  ------------------
 3335|    539|  }
 3336|       |  /* check for Content-Type: header lines to get the MIME-type */
 3337|  7.70k|  v = HD_VAL(hd, hdlen, "Content-Type:");
  ------------------
  |  | 3228|  7.70k|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3228:5): [True: 6.64k, False: 1.06k]
  |  |  |  Branch (3228:37): [True: 6.64k, False: 0]
  |  |  ------------------
  |  | 3229|  7.70k|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3229:5): [True: 557, False: 6.08k]
  |  |  ------------------
  ------------------
 3338|  7.70k|  if(v) {
  ------------------
  |  Branch (3338:6): [True: 557, False: 7.14k]
  ------------------
 3339|    557|    char *contenttype = Curl_copy_header_value(hd);
 3340|    557|    if(!contenttype)
  ------------------
  |  Branch (3340:8): [True: 0, False: 557]
  ------------------
 3341|      0|      return CURLE_OUT_OF_MEMORY;
 3342|    557|    if(!*contenttype)
  ------------------
  |  Branch (3342:8): [True: 307, False: 250]
  ------------------
 3343|       |      /* ignore empty data */
 3344|    307|      curlx_free(contenttype);
  ------------------
  |  | 1482|    307|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 3345|    250|    else {
 3346|    250|      curlx_free(data->info.contenttype);
  ------------------
  |  | 1482|    250|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 3347|    250|      data->info.contenttype = contenttype;
 3348|    250|    }
 3349|    557|    return CURLE_OK;
 3350|    557|  }
 3351|  7.14k|  if((k->httpversion < 20) &&
  ------------------
  |  Branch (3351:6): [True: 2.02k, False: 5.12k]
  ------------------
 3352|  2.02k|     HD_IS_AND_SAYS(hd, hdlen, "Connection:", "close")) {
  ------------------
  |  | 3234|  2.02k|  (HD_IS(hd, hdlen, n) && \
  |  |  ------------------
  |  |  |  | 3225|  4.04k|  (((hdlen) >= (sizeof(n) - 1)) && curl_strnequal(n, hd, sizeof(n) - 1))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (3225:4): [True: 1.84k, False: 176]
  |  |  |  |  |  Branch (3225:36): [True: 1.61k, False: 233]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 3235|  2.02k|   ((hdlen) > ((sizeof(n) - 1) + (sizeof(v) - 1))) && \
  |  |  ------------------
  |  |  |  Branch (3235:4): [True: 1.61k, False: 0]
  |  |  ------------------
  |  | 3236|  2.02k|   Curl_compareheader(hd, STRCONST(n), STRCONST(v)))
  |  |  ------------------
  |  |  |  | 1305|  1.61k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1300|  1.61k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                  Curl_compareheader(hd, STRCONST(n), STRCONST(v)))
  |  |  ------------------
  |  |  |  | 1305|  1.61k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1300|  1.61k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (3236:4): [True: 0, False: 1.61k]
  |  |  ------------------
  ------------------
 3353|       |    /*
 3354|       |     * [RFC 2616, section 8.1.2.1]
 3355|       |     * "Connection: close" is HTTP/1.1 language and means that
 3356|       |     * the connection will close when this request has been
 3357|       |     * served.
 3358|       |     */
 3359|      0|    connclose(conn);
  ------------------
  |  |   88|      0|#define connclose(x)   Curl_conncontrol((x), CONNCTRL_CONN_CLOSE)
  |  |  ------------------
  |  |  |  |   82|      0|#define CONNCTRL_CONN_CLOSE      1
  |  |  ------------------
  ------------------
 3360|      0|    return CURLE_OK;
 3361|      0|  }
 3362|  7.14k|  if((k->httpversion == 10) &&
  ------------------
  |  Branch (3362:6): [True: 200, False: 6.94k]
  ------------------
 3363|    200|     HD_IS_AND_SAYS(hd, hdlen, "Connection:", "keep-alive")) {
  ------------------
  |  | 3234|    200|  (HD_IS(hd, hdlen, n) && \
  |  |  ------------------
  |  |  |  | 3225|    400|  (((hdlen) >= (sizeof(n) - 1)) && curl_strnequal(n, hd, sizeof(n) - 1))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (3225:4): [True: 72, False: 128]
  |  |  |  |  |  Branch (3225:36): [True: 0, False: 72]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 3235|    200|   ((hdlen) > ((sizeof(n) - 1) + (sizeof(v) - 1))) && \
  |  |  ------------------
  |  |  |  Branch (3235:4): [True: 0, False: 0]
  |  |  ------------------
  |  | 3236|    200|   Curl_compareheader(hd, STRCONST(n), STRCONST(v)))
  |  |  ------------------
  |  |  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                  Curl_compareheader(hd, STRCONST(n), STRCONST(v)))
  |  |  ------------------
  |  |  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (3236:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3364|       |    /*
 3365|       |     * An HTTP/1.0 reply with the 'Connection: keep-alive' line
 3366|       |     * tells us the connection will be kept alive for our
 3367|       |     * pleasure. Default action for 1.0 is to close.
 3368|       |     *
 3369|       |     * [RFC2068, section 19.7.1] */
 3370|      0|    connkeep(conn);
  ------------------
  |  |   89|      0|#define connkeep(x)    Curl_conncontrol((x), CONNCTRL_CONN_KEEP)
  |  |  ------------------
  |  |  |  |   81|      0|#define CONNCTRL_CONN_KEEP       0
  |  |  ------------------
  ------------------
 3371|      0|    infof(data, "HTTP/1.0 connection set to keep alive");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3372|      0|    return CURLE_OK;
 3373|      0|  }
 3374|  7.14k|  v = !k->http_bodyless ? HD_VAL(hd, hdlen, "Content-Range:") : NULL;
  ------------------
  |  | 3228|  4.93k|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3228:5): [True: 4.01k, False: 913]
  |  |  |  Branch (3228:37): [True: 4.01k, False: 0]
  |  |  ------------------
  |  | 3229|  4.93k|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3229:5): [True: 1.43k, False: 2.58k]
  |  |  ------------------
  ------------------
  |  Branch (3374:7): [True: 4.93k, False: 2.21k]
  ------------------
 3375|  7.14k|  if(v) {
  ------------------
  |  Branch (3375:6): [True: 1.43k, False: 5.70k]
  ------------------
 3376|       |    /* Content-Range: bytes [num]-
 3377|       |       Content-Range: bytes: [num]-
 3378|       |       Content-Range: [num]-
 3379|       |       Content-Range: [asterisk]/[total]
 3380|       |
 3381|       |       The second format was added since Sun's webserver
 3382|       |       JavaWebServer/1.1.1 obviously sends the header this way!
 3383|       |       The third added since some servers use that!
 3384|       |       The fourth means the requested range was unsatisfied.
 3385|       |     */
 3386|       |
 3387|  1.43k|    const char *ptr = v;
 3388|       |
 3389|       |    /* Move forward until first digit or asterisk */
 3390|  4.78k|    while(*ptr && !ISDIGIT(*ptr) && *ptr != '*')
  ------------------
  |  |   42|  8.99k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (42:22): [True: 1.32k, False: 2.88k]
  |  |  |  Branch (42:38): [True: 681, False: 640]
  |  |  ------------------
  ------------------
  |  Branch (3390:11): [True: 4.20k, False: 583]
  |  Branch (3390:37): [True: 3.35k, False: 172]
  ------------------
 3391|  3.35k|      ptr++;
 3392|       |
 3393|       |    /* if it truly stopped on a digit */
 3394|  1.43k|    if(ISDIGIT(*ptr)) {
  ------------------
  |  |   42|  1.43k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (42:22): [True: 681, False: 755]
  |  |  |  Branch (42:38): [True: 681, False: 0]
  |  |  ------------------
  ------------------
 3395|    681|      if(!curlx_str_number(&ptr, &k->offset, CURL_OFF_T_MAX) &&
  ------------------
  |  |  596|    681|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  |  Branch (3395:10): [True: 478, False: 203]
  ------------------
 3396|    478|         (data->state.resume_from == k->offset))
  ------------------
  |  Branch (3396:10): [True: 240, False: 238]
  ------------------
 3397|       |        /* we asked for a resume and we got it */
 3398|    240|        k->content_range = TRUE;
  ------------------
  |  | 1053|    240|#define TRUE true
  ------------------
 3399|    681|    }
 3400|    755|    else if(k->httpcode < 300)
  ------------------
  |  Branch (3400:13): [True: 237, False: 518]
  ------------------
 3401|    237|      data->state.resume_from = 0; /* get everything */
 3402|  1.43k|  }
 3403|  7.14k|  return CURLE_OK;
 3404|  7.14k|}
http.c:http_header_l:
 3411|  6.91k|{
 3412|  6.91k|  struct connectdata *conn = data->conn;
 3413|  6.91k|  struct SingleRequest *k = &data->req;
 3414|  6.91k|  const char *v = (!k->http_bodyless &&
  ------------------
  |  Branch (3414:20): [True: 2.57k, False: 4.34k]
  ------------------
 3415|  2.57k|                   (data->set.timecondition || data->set.get_filetime)) ?
  ------------------
  |  Branch (3415:21): [True: 0, False: 2.57k]
  |  Branch (3415:48): [True: 0, False: 2.57k]
  ------------------
 3416|  6.91k|    HD_VAL(hd, hdlen, "Last-Modified:") : NULL;
  ------------------
  |  | 3228|      0|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3228:5): [True: 0, False: 0]
  |  |  |  Branch (3228:37): [True: 0, False: 0]
  |  |  ------------------
  |  | 3229|      0|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3229:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3417|  6.91k|  if(v) {
  ------------------
  |  Branch (3417:6): [True: 0, False: 6.91k]
  ------------------
 3418|      0|    if(Curl_getdate_capped(v, &k->timeofdoc))
  ------------------
  |  Branch (3418:8): [True: 0, False: 0]
  ------------------
 3419|      0|      k->timeofdoc = 0;
 3420|      0|    if(data->set.get_filetime)
  ------------------
  |  Branch (3420:8): [True: 0, False: 0]
  ------------------
 3421|      0|      data->info.filetime = k->timeofdoc;
 3422|      0|    return CURLE_OK;
 3423|      0|  }
 3424|  6.91k|  if(HD_IS(hd, hdlen, "Location:")) {
  ------------------
  |  | 3225|  6.91k|  (((hdlen) >= (sizeof(n) - 1)) && curl_strnequal(n, hd, sizeof(n) - 1))
  |  |  ------------------
  |  |  |  Branch (3225:4): [True: 6.50k, False: 411]
  |  |  |  Branch (3225:36): [True: 6.22k, False: 288]
  |  |  ------------------
  ------------------
 3425|       |    /* this is the URL that the server advises us to use instead */
 3426|  6.22k|    char *location = Curl_copy_header_value(hd);
 3427|  6.22k|    if(!location)
  ------------------
  |  Branch (3427:8): [True: 0, False: 6.22k]
  ------------------
 3428|      0|      return CURLE_OUT_OF_MEMORY;
 3429|  6.22k|    if(!*location ||
  ------------------
  |  Branch (3429:8): [True: 872, False: 5.34k]
  ------------------
 3430|  5.34k|       (data->req.location && !strcmp(data->req.location, location))) {
  ------------------
  |  Branch (3430:9): [True: 495, False: 4.85k]
  |  Branch (3430:31): [True: 488, False: 7]
  ------------------
 3431|       |      /* ignore empty header, or exact repeat of a previous one */
 3432|  1.36k|      curlx_free(location);
  ------------------
  |  | 1482|  1.36k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 3433|  1.36k|      return CURLE_OK;
 3434|  1.36k|    }
 3435|  4.86k|    else {
 3436|       |      /* has value and is not an exact repeat */
 3437|  4.86k|      if(data->req.location) {
  ------------------
  |  Branch (3437:10): [True: 7, False: 4.85k]
  ------------------
 3438|      7|        failf(data, "Multiple Location headers");
  ------------------
  |  |   62|      7|#define failf Curl_failf
  ------------------
 3439|      7|        curlx_free(location);
  ------------------
  |  | 1482|      7|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 3440|      7|        return CURLE_WEIRD_SERVER_REPLY;
 3441|      7|      }
 3442|  4.85k|      data->req.location = location;
 3443|       |
 3444|  4.85k|      if((k->httpcode >= 300 && k->httpcode < 400) &&
  ------------------
  |  Branch (3444:11): [True: 4.79k, False: 62]
  |  Branch (3444:33): [True: 4.76k, False: 31]
  ------------------
 3445|  4.76k|         data->set.http_follow_mode) {
  ------------------
  |  Branch (3445:10): [True: 4.40k, False: 357]
  ------------------
 3446|  4.40k|        CURLcode result;
 3447|  4.40k|        DEBUGASSERT(!data->req.newurl);
  ------------------
  |  | 1083|  4.40k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3447:9): [True: 0, False: 4.40k]
  |  Branch (3447:9): [True: 4.40k, False: 0]
  ------------------
 3448|  4.40k|        data->req.newurl = curlx_strdup(data->req.location); /* clone */
  ------------------
  |  | 1476|  4.40k|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
 3449|  4.40k|        if(!data->req.newurl)
  ------------------
  |  Branch (3449:12): [True: 0, False: 4.40k]
  ------------------
 3450|      0|          return CURLE_OUT_OF_MEMORY;
 3451|       |
 3452|       |        /* some cases of POST and PUT etc needs to rewind the data
 3453|       |           stream at this point */
 3454|  4.40k|        result = http_perhapsrewind(data, conn);
 3455|  4.40k|        if(result)
  ------------------
  |  Branch (3455:12): [True: 0, False: 4.40k]
  ------------------
 3456|      0|          return result;
 3457|       |
 3458|       |        /* mark the next request as a followed location: */
 3459|  4.40k|        data->state.this_is_a_follow = TRUE;
  ------------------
  |  | 1053|  4.40k|#define TRUE true
  ------------------
 3460|  4.40k|      }
 3461|  4.85k|    }
 3462|  6.22k|  }
 3463|  5.55k|  return CURLE_OK;
 3464|  6.91k|}
http.c:http_header_p:
 3471|    354|{
 3472|    354|  struct SingleRequest *k = &data->req;
 3473|       |
 3474|    354|#ifndef CURL_DISABLE_PROXY
 3475|    354|  const char *v = HD_VAL(hd, hdlen, "Proxy-Connection:");
  ------------------
  |  | 3228|    354|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3228:5): [True: 310, False: 44]
  |  |  |  Branch (3228:37): [True: 310, False: 0]
  |  |  ------------------
  |  | 3229|    354|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3229:5): [True: 0, False: 310]
  |  |  ------------------
  ------------------
 3476|    354|  if(v) {
  ------------------
  |  Branch (3476:6): [True: 0, False: 354]
  ------------------
 3477|      0|    struct connectdata *conn = data->conn;
 3478|      0|    if((k->httpversion == 10) && conn->http_proxy.peer &&
  ------------------
  |  Branch (3478:8): [True: 0, False: 0]
  |  Branch (3478:34): [True: 0, False: 0]
  ------------------
 3479|      0|       HD_IS_AND_SAYS(hd, hdlen, "Proxy-Connection:", "keep-alive")) {
  ------------------
  |  | 3234|      0|  (HD_IS(hd, hdlen, n) && \
  |  |  ------------------
  |  |  |  | 3225|      0|  (((hdlen) >= (sizeof(n) - 1)) && curl_strnequal(n, hd, sizeof(n) - 1))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (3225:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (3225:36): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 3235|      0|   ((hdlen) > ((sizeof(n) - 1) + (sizeof(v) - 1))) && \
  |  |  ------------------
  |  |  |  Branch (3235:4): [True: 0, False: 0]
  |  |  ------------------
  |  | 3236|      0|   Curl_compareheader(hd, STRCONST(n), STRCONST(v)))
  |  |  ------------------
  |  |  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                  Curl_compareheader(hd, STRCONST(n), STRCONST(v)))
  |  |  ------------------
  |  |  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (3236:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3480|       |      /*
 3481|       |       * When an HTTP/1.0 reply comes when using a proxy, the
 3482|       |       * 'Proxy-Connection: keep-alive' line tells us the
 3483|       |       * connection will be kept alive for our pleasure.
 3484|       |       * Default action for 1.0 is to close.
 3485|       |       */
 3486|      0|      connkeep(conn); /* do not close */
  ------------------
  |  |   89|      0|#define connkeep(x)    Curl_conncontrol((x), CONNCTRL_CONN_KEEP)
  |  |  ------------------
  |  |  |  |   81|      0|#define CONNCTRL_CONN_KEEP       0
  |  |  ------------------
  ------------------
 3487|      0|      infof(data, "HTTP/1.0 proxy connection set to keep alive");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3488|      0|    }
 3489|      0|    else if((k->httpversion == 11) && conn->http_proxy.peer &&
  ------------------
  |  Branch (3489:13): [True: 0, False: 0]
  |  Branch (3489:39): [True: 0, False: 0]
  ------------------
 3490|      0|            HD_IS_AND_SAYS(hd, hdlen, "Proxy-Connection:", "close")) {
  ------------------
  |  | 3234|      0|  (HD_IS(hd, hdlen, n) && \
  |  |  ------------------
  |  |  |  | 3225|      0|  (((hdlen) >= (sizeof(n) - 1)) && curl_strnequal(n, hd, sizeof(n) - 1))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (3225:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (3225:36): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 3235|      0|   ((hdlen) > ((sizeof(n) - 1) + (sizeof(v) - 1))) && \
  |  |  ------------------
  |  |  |  Branch (3235:4): [True: 0, False: 0]
  |  |  ------------------
  |  | 3236|      0|   Curl_compareheader(hd, STRCONST(n), STRCONST(v)))
  |  |  ------------------
  |  |  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                  Curl_compareheader(hd, STRCONST(n), STRCONST(v)))
  |  |  ------------------
  |  |  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (3236:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3491|       |      /*
 3492|       |       * We get an HTTP/1.1 response from a proxy and it says it will
 3493|       |       * close down after this transfer.
 3494|       |       */
 3495|      0|      connclose(conn);
  ------------------
  |  |   88|      0|#define connclose(x)   Curl_conncontrol((x), CONNCTRL_CONN_CLOSE)
  |  |  ------------------
  |  |  |  |   82|      0|#define CONNCTRL_CONN_CLOSE      1
  |  |  ------------------
  ------------------
 3496|      0|      infof(data, "HTTP/1.1 proxy connection set close");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3497|      0|    }
 3498|      0|    return CURLE_OK;
 3499|      0|  }
 3500|    354|#endif
 3501|    354|  if((407 == k->httpcode) && HD_IS(hd, hdlen, "Proxy-authenticate:")) {
  ------------------
  |  | 3225|     52|  (((hdlen) >= (sizeof(n) - 1)) && curl_strnequal(n, hd, sizeof(n) - 1))
  |  |  ------------------
  |  |  |  Branch (3225:4): [True: 38, False: 14]
  |  |  |  Branch (3225:36): [True: 0, False: 38]
  |  |  ------------------
  ------------------
  |  Branch (3501:6): [True: 52, False: 302]
  ------------------
 3502|      0|    char *auth = Curl_copy_header_value(hd);
 3503|      0|    CURLcode result = auth ? CURLE_OK : CURLE_OUT_OF_MEMORY;
  ------------------
  |  Branch (3503:23): [True: 0, False: 0]
  ------------------
 3504|      0|    if(!result) {
  ------------------
  |  Branch (3504:8): [True: 0, False: 0]
  ------------------
 3505|      0|      result = Curl_http_input_auth(data, TRUE, auth);
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 3506|      0|      curlx_free(auth);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 3507|      0|    }
 3508|      0|    return result;
 3509|      0|  }
 3510|       |#ifdef USE_SPNEGO
 3511|       |  if(HD_IS(hd, hdlen, "Persistent-Auth:")) {
 3512|       |    struct connectdata *conn = data->conn;
 3513|       |    struct negotiatedata *negdata = Curl_auth_nego_get(conn, FALSE);
 3514|       |    struct auth *authp = &data->state.authhost;
 3515|       |    if(!negdata)
 3516|       |      return CURLE_OUT_OF_MEMORY;
 3517|       |    if(authp->picked == CURLAUTH_NEGOTIATE) {
 3518|       |      char *persistentauth = Curl_copy_header_value(hd);
 3519|       |      if(!persistentauth)
 3520|       |        return CURLE_OUT_OF_MEMORY;
 3521|       |      negdata->noauthpersist = !!checkprefix("false", persistentauth);
 3522|       |      negdata->havenoauthpersist = TRUE;
 3523|       |      infof(data, "Negotiate: noauthpersist -> %d, header part: %s",
 3524|       |            negdata->noauthpersist, persistentauth);
 3525|       |      curlx_free(persistentauth);
 3526|       |    }
 3527|       |  }
 3528|       |#endif
 3529|    354|  return CURLE_OK;
 3530|    354|}
http.c:http_header_r:
 3537|  11.4k|{
 3538|  11.4k|  const char *v = HD_VAL(hd, hdlen, "Retry-After:");
  ------------------
  |  | 3228|  11.4k|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3228:5): [True: 10.2k, False: 1.19k]
  |  |  |  Branch (3228:37): [True: 10.2k, False: 0]
  |  |  ------------------
  |  | 3229|  11.4k|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3229:5): [True: 9.89k, False: 313]
  |  |  ------------------
  ------------------
 3539|  11.4k|  if(v) {
  ------------------
  |  Branch (3539:6): [True: 9.89k, False: 1.51k]
  ------------------
 3540|       |    /* Retry-After = HTTP-date / delay-seconds */
 3541|  9.89k|    curl_off_t retry_after = 0; /* zero for unknown or "now" */
 3542|  9.89k|    time_t date = 0;
 3543|  9.89k|    curlx_str_passblanks(&v);
 3544|       |
 3545|       |    /* try it as a date first, because a date can otherwise start with and
 3546|       |       get treated as a number */
 3547|  9.89k|    if(!Curl_getdate_capped(v, &date)) {
  ------------------
  |  Branch (3547:8): [True: 1.13k, False: 8.76k]
  ------------------
 3548|  1.13k|      time_t current = time(NULL);
 3549|  1.13k|      if(date >= current)
  ------------------
  |  Branch (3549:10): [True: 448, False: 689]
  ------------------
 3550|       |        /* convert date to number of seconds into the future */
 3551|    448|        retry_after = date - current;
 3552|  1.13k|    }
 3553|  8.76k|    else
 3554|       |      /* Try it as a decimal number, ignore errors */
 3555|  8.76k|      (void)curlx_str_number(&v, &retry_after, CURL_OFF_T_MAX);
  ------------------
  |  |  596|  8.76k|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
 3556|       |    /* limit to 6 hours max. this is not documented so that it can be changed
 3557|       |       in the future if necessary. */
 3558|  9.89k|    if(retry_after > 21600)
  ------------------
  |  Branch (3558:8): [True: 1.01k, False: 8.88k]
  ------------------
 3559|  1.01k|      retry_after = 21600;
 3560|  9.89k|    data->info.retry_after = retry_after;
 3561|  9.89k|  }
 3562|  11.4k|  return CURLE_OK;
 3563|  11.4k|}
http.c:http_header_s:
 3570|  9.09k|{
 3571|  9.09k|#if !defined(CURL_DISABLE_COOKIES) || !defined(CURL_DISABLE_HSTS)
 3572|  9.09k|  const char *v;
 3573|       |#else
 3574|       |  (void)data;
 3575|       |  (void)hd;
 3576|       |  (void)hdlen;
 3577|       |#endif
 3578|       |
 3579|  9.09k|#ifndef CURL_DISABLE_COOKIES
 3580|  9.09k|  v = (data->cookies && data->state.cookie_engine) ?
  ------------------
  |  Branch (3580:8): [True: 9.09k, False: 0]
  |  Branch (3580:25): [True: 9.09k, False: 0]
  ------------------
 3581|  9.09k|    HD_VAL(hd, hdlen, "Set-Cookie:") : NULL;
  ------------------
  |  | 3228|  9.09k|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3228:5): [True: 8.65k, False: 446]
  |  |  |  Branch (3228:37): [True: 8.65k, False: 0]
  |  |  ------------------
  |  | 3229|  9.09k|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3229:5): [True: 6.71k, False: 1.93k]
  |  |  ------------------
  ------------------
 3582|  9.09k|  if(v) {
  ------------------
  |  Branch (3582:6): [True: 6.71k, False: 2.38k]
  ------------------
 3583|       |    /* If there is a custom-set Host: name, use it here, or else use
 3584|       |     * real peer hostname. */
 3585|  6.71k|    const char *host = data->req.cookiehost ?
  ------------------
  |  Branch (3585:24): [True: 0, False: 6.71k]
  ------------------
 3586|  6.71k|      data->req.cookiehost : data->state.origin->hostname;
 3587|  6.71k|    const unsigned char secure_context = Curl_secure_context(data, host) ?
  ------------------
  |  Branch (3587:42): [True: 275, False: 6.44k]
  ------------------
 3588|  6.44k|      COOKIE_SECURE : 0;
  ------------------
  |  |  116|    275|#define COOKIE_SECURE     (1<<2) /* connection is over secure origin */
  ------------------
 3589|  6.71k|    CURLcode result;
 3590|  6.71k|    Curl_share_lock(data, CURL_LOCK_DATA_COOKIE, CURL_LOCK_ACCESS_SINGLE);
 3591|  6.71k|    result = Curl_cookie_add(data, data->cookies, v, host,
 3592|  6.71k|                             data->state.up.path,
 3593|  6.71k|                             COOKIE_HTTPHEADER | secure_context);
  ------------------
  |  |  114|  6.71k|#define COOKIE_HTTPHEADER (1<<0) /* if HTTP header-style line */
  ------------------
 3594|  6.71k|    Curl_share_unlock(data, CURL_LOCK_DATA_COOKIE);
 3595|  6.71k|    return result;
 3596|  6.71k|  }
 3597|  2.38k|#endif
 3598|  2.38k|#ifndef CURL_DISABLE_HSTS
 3599|       |  /* If enabled, the header is incoming and this is over HTTPS */
 3600|  2.38k|  v = (data->hsts &&
  ------------------
  |  Branch (3600:8): [True: 2.38k, False: 0]
  ------------------
 3601|  2.38k|       (Curl_xfer_is_secure(data) ||
  ------------------
  |  Branch (3601:9): [True: 0, False: 2.38k]
  ------------------
 3602|  2.38k|#ifdef DEBUGBUILD
 3603|       |        /* allow debug builds to circumvent the HTTPS restriction */
 3604|  2.38k|        getenv("CURL_HSTS_HTTP")
  ------------------
  |  Branch (3604:9): [True: 0, False: 2.38k]
  ------------------
 3605|       |#else
 3606|       |        0
 3607|       |#endif
 3608|  2.38k|         )
 3609|  2.38k|    ) ? HD_VAL(hd, hdlen, "Strict-Transport-Security:") : NULL;
  ------------------
  |  | 3228|      0|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3228:5): [True: 0, False: 0]
  |  |  |  Branch (3228:37): [True: 0, False: 0]
  |  |  ------------------
  |  | 3229|      0|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3229:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3610|  2.38k|  if(v) {
  ------------------
  |  Branch (3610:6): [True: 0, False: 2.38k]
  ------------------
 3611|      0|    CURLcode result = Curl_hsts_parse(
 3612|      0|      data->hsts, data->state.origin->hostname, v);
 3613|      0|    if(result) {
  ------------------
  |  Branch (3613:8): [True: 0, False: 0]
  ------------------
 3614|      0|      if(result == CURLE_OUT_OF_MEMORY)
  ------------------
  |  Branch (3614:10): [True: 0, False: 0]
  ------------------
 3615|      0|        return result;
 3616|      0|      infof(data, "Illegal STS header skipped");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3617|      0|    }
 3618|      0|#ifdef DEBUGBUILD
 3619|      0|    else
 3620|      0|      infof(data, "Parsed STS header fine (%zu entries)",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3621|      0|            Curl_llist_count(&data->hsts->list));
 3622|      0|#endif
 3623|      0|  }
 3624|  2.38k|#endif
 3625|       |
 3626|  2.38k|  return CURLE_OK;
 3627|  2.38k|}
http.c:http_header_t:
 3634|  1.31k|{
 3635|  1.31k|  struct connectdata *conn = data->conn;
 3636|  1.31k|  struct SingleRequest *k = &data->req;
 3637|       |
 3638|       |  /* RFC 9112, ch. 6.1
 3639|       |   * "Transfer-Encoding MAY be sent in a response to a HEAD request or
 3640|       |   *  in a 304 (Not Modified) response (Section 15.4.5 of [HTTP]) to a
 3641|       |   *  GET request, neither of which includes a message body, to indicate
 3642|       |   *  that the origin server would have applied a transfer coding to the
 3643|       |   *  message body if the request had been an unconditional GET."
 3644|       |   *
 3645|       |   * Read: in these cases the 'Transfer-Encoding' does not apply
 3646|       |   * to any data following the response headers. Do not add any decoders.
 3647|       |   */
 3648|  1.31k|  const char *v = (!k->http_bodyless &&
  ------------------
  |  Branch (3648:20): [True: 1.17k, False: 138]
  ------------------
 3649|  1.17k|                   (data->state.httpreq != HTTPREQ_HEAD) &&
  ------------------
  |  Branch (3649:20): [True: 1.14k, False: 37]
  ------------------
 3650|  1.14k|                   (k->httpcode != 304)) ?
  ------------------
  |  Branch (3650:20): [True: 1.14k, False: 0]
  ------------------
 3651|  1.31k|    HD_VAL(hd, hdlen, "Transfer-Encoding:") : NULL;
  ------------------
  |  | 3228|  1.14k|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3228:5): [True: 469, False: 671]
  |  |  |  Branch (3228:37): [True: 469, False: 0]
  |  |  ------------------
  |  | 3229|  1.14k|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3229:5): [True: 259, False: 210]
  |  |  ------------------
  ------------------
 3652|  1.31k|  if(v) {
  ------------------
  |  Branch (3652:6): [True: 259, False: 1.05k]
  ------------------
 3653|       |    /* One or more encodings. We check for chunked and/or a compression
 3654|       |       algorithm. */
 3655|    259|    CURLcode result = Curl_build_unencoding_stack(data, v, TRUE);
  ------------------
  |  | 1053|    259|#define TRUE true
  ------------------
 3656|    259|    if(result)
  ------------------
  |  Branch (3656:8): [True: 19, False: 240]
  ------------------
 3657|     19|      return result;
 3658|    240|    if(!k->chunk && data->set.http_transfer_encoding) {
  ------------------
  |  Branch (3658:8): [True: 18, False: 222]
  |  Branch (3658:21): [True: 0, False: 18]
  ------------------
 3659|       |      /* if this is not chunked, only close can signal the end of this
 3660|       |       * transfer as Content-Length is said not to be trusted for
 3661|       |       * transfer-encoding! */
 3662|      0|      CURL_TRC_M(data, "HTTP/1.1 transfer-encoding without chunks");
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3663|      0|      connclose(conn);
  ------------------
  |  |   88|      0|#define connclose(x)   Curl_conncontrol((x), CONNCTRL_CONN_CLOSE)
  |  |  ------------------
  |  |  |  |   82|      0|#define CONNCTRL_CONN_CLOSE      1
  |  |  ------------------
  ------------------
 3664|      0|      k->ignore_cl = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 3665|      0|    }
 3666|    240|    return CURLE_OK;
 3667|    259|  }
 3668|  1.05k|  v = HD_VAL(hd, hdlen, "Trailer:");
  ------------------
  |  | 3228|  1.05k|  ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
  |  |  ------------------
  |  |  |  Branch (3228:5): [True: 714, False: 342]
  |  |  |  Branch (3228:37): [True: 714, False: 0]
  |  |  ------------------
  |  | 3229|  1.05k|    curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
  |  |  ------------------
  |  |  |  Branch (3229:5): [True: 0, False: 714]
  |  |  ------------------
  ------------------
 3669|  1.05k|  if(v) {
  ------------------
  |  Branch (3669:6): [True: 0, False: 1.05k]
  ------------------
 3670|      0|    data->req.resp_trailer = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 3671|      0|    return CURLE_OK;
 3672|      0|  }
 3673|  1.05k|  return CURLE_OK;
 3674|  1.05k|}
http.c:http_header_w:
 3681|    452|{
 3682|    452|  struct SingleRequest *k = &data->req;
 3683|    452|  CURLcode result = CURLE_OK;
 3684|       |
 3685|    452|  if((401 == k->httpcode) && HD_IS(hd, hdlen, "WWW-Authenticate:")) {
  ------------------
  |  | 3225|    150|  (((hdlen) >= (sizeof(n) - 1)) && curl_strnequal(n, hd, sizeof(n) - 1))
  |  |  ------------------
  |  |  |  Branch (3225:4): [True: 137, False: 13]
  |  |  |  Branch (3225:36): [True: 0, False: 137]
  |  |  ------------------
  ------------------
  |  Branch (3685:6): [True: 150, False: 302]
  ------------------
 3686|      0|    char *auth = Curl_copy_header_value(hd);
 3687|      0|    if(!auth)
  ------------------
  |  Branch (3687:8): [True: 0, False: 0]
  ------------------
 3688|      0|      result = CURLE_OUT_OF_MEMORY;
 3689|      0|    else {
 3690|      0|      result = Curl_http_input_auth(data, FALSE, auth);
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 3691|      0|      curlx_free(auth);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 3692|      0|    }
 3693|      0|  }
 3694|    452|  return result;
 3695|    452|}
http.c:http_parse_headers:
 4466|  10.7k|{
 4467|  10.7k|  struct connectdata *conn = data->conn;
 4468|  10.7k|  CURLcode result = CURLE_OK;
 4469|  10.7k|  struct SingleRequest *k = &data->req;
 4470|  10.7k|  const char *end_ptr;
 4471|  10.7k|  bool leftover_body = FALSE;
  ------------------
  |  | 1056|  10.7k|#define FALSE false
  ------------------
 4472|       |
 4473|       |  /* we have bytes for the next header, make sure it is not a folded header
 4474|       |     before passing it on */
 4475|  10.7k|  if(data->state.maybe_folded && blen) {
  ------------------
  |  Branch (4475:6): [True: 317, False: 10.4k]
  |  Branch (4475:34): [True: 246, False: 71]
  ------------------
 4476|    246|    if(ISBLANK(buf[0])) {
  ------------------
  |  |   43|    246|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (43:22): [True: 38, False: 208]
  |  |  |  Branch (43:38): [True: 25, False: 183]
  |  |  ------------------
  ------------------
 4477|       |      /* folded, remove the trailing newlines and append the next header */
 4478|     63|      unfold_header(data);
 4479|     63|    }
 4480|    183|    else {
 4481|       |      /* the header data we hold is a complete header, pass it on */
 4482|    183|      size_t ignore_this;
 4483|    183|      result = http_rw_hd(data, curlx_dyn_ptr(&data->state.headerb),
 4484|    183|                          curlx_dyn_len(&data->state.headerb),
 4485|    183|                          NULL, 0, &ignore_this);
 4486|    183|      curlx_dyn_reset(&data->state.headerb);
 4487|    183|      if(result)
  ------------------
  |  Branch (4487:10): [True: 19, False: 164]
  ------------------
 4488|     19|        return result;
 4489|    183|    }
 4490|    227|    data->state.maybe_folded = FALSE;
  ------------------
  |  | 1056|    227|#define FALSE false
  ------------------
 4491|    227|  }
 4492|       |
 4493|       |  /* header line within buffer loop */
 4494|  10.7k|  *pconsumed = 0;
 4495|  38.8k|  while(blen && k->header) {
  ------------------
  |  Branch (4495:9): [True: 31.0k, False: 7.75k]
  |  Branch (4495:17): [True: 30.6k, False: 398]
  ------------------
 4496|  30.6k|    size_t consumed;
 4497|  30.6k|    size_t hlen;
 4498|  30.6k|    const char *hd;
 4499|  30.6k|    size_t unfold_len = 0;
 4500|       |
 4501|  30.6k|    if(data->state.leading_unfold) {
  ------------------
  |  Branch (4501:8): [True: 811, False: 29.8k]
  ------------------
 4502|       |      /* immediately after an unfold, keep only a single whitespace */
 4503|  3.25k|      while(blen && ISBLANK(buf[0])) {
  ------------------
  |  |   43|  3.17k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (43:22): [True: 1.12k, False: 2.05k]
  |  |  |  Branch (43:38): [True: 1.32k, False: 734]
  |  |  ------------------
  ------------------
  |  Branch (4503:13): [True: 3.17k, False: 77]
  ------------------
 4504|  2.44k|        buf++;
 4505|  2.44k|        blen--;
 4506|  2.44k|        unfold_len++;
 4507|  2.44k|      }
 4508|    811|      if(blen) {
  ------------------
  |  Branch (4508:10): [True: 734, False: 77]
  ------------------
 4509|       |        /* insert a single space */
 4510|    734|        result = curlx_dyn_addn(&data->state.headerb, " ", 1);
 4511|    734|        if(result)
  ------------------
  |  Branch (4511:12): [True: 0, False: 734]
  ------------------
 4512|      0|          return result;
 4513|    734|        data->state.leading_unfold = FALSE; /* done now */
  ------------------
  |  | 1056|    734|#define FALSE false
  ------------------
 4514|    734|      }
 4515|    811|    }
 4516|       |
 4517|  30.6k|    end_ptr = memchr(buf, '\n', blen);
 4518|  30.6k|    if(!end_ptr) {
  ------------------
  |  Branch (4518:8): [True: 1.97k, False: 28.6k]
  ------------------
 4519|       |      /* Not a complete header line within buffer, append the data to
 4520|       |         the end of the headerbuff. */
 4521|  1.97k|      result = curlx_dyn_addn(&data->state.headerb, buf, blen);
 4522|  1.97k|      if(result)
  ------------------
  |  Branch (4522:10): [True: 0, False: 1.97k]
  ------------------
 4523|      0|        return result;
 4524|  1.97k|      *pconsumed += blen + unfold_len;
 4525|       |
 4526|  1.97k|      if(!k->headerline) {
  ------------------
  |  Branch (4526:10): [True: 489, False: 1.48k]
  ------------------
 4527|       |        /* check if this looks like a protocol header */
 4528|    489|        statusline st =
 4529|    489|          checkprotoprefix(data, conn,
 4530|    489|                           curlx_dyn_ptr(&data->state.headerb),
 4531|    489|                           curlx_dyn_len(&data->state.headerb));
 4532|       |
 4533|    489|        if(st == STATUS_BAD) {
  ------------------
  |  Branch (4533:12): [True: 265, False: 224]
  ------------------
 4534|       |          /* this is not the beginning of a protocol first header line.
 4535|       |           * Cannot be 0.9 if version was detected or connection was reused. */
 4536|    265|          k->header = FALSE;
  ------------------
  |  | 1056|    265|#define FALSE false
  ------------------
 4537|    265|          streamclose(conn);
  ------------------
  |  |   87|    265|#define streamclose(x) Curl_conncontrol((x), CONNCTRL_STREAM_CLOSE)
  |  |  ------------------
  |  |  |  |   83|    265|#define CONNCTRL_STREAM_CLOSE    2
  |  |  ------------------
  ------------------
 4538|    265|          if((k->httpversion >= 10) || conn->bits.reuse) {
  ------------------
  |  Branch (4538:14): [True: 6, False: 259]
  |  Branch (4538:40): [True: 110, False: 149]
  ------------------
 4539|    116|            failf(data, "Invalid status line");
  ------------------
  |  |   62|    116|#define failf Curl_failf
  ------------------
 4540|    116|            return CURLE_WEIRD_SERVER_REPLY;
 4541|    116|          }
 4542|    149|          if(!data->state.http_neg.accept_09) {
  ------------------
  |  Branch (4542:14): [True: 140, False: 9]
  ------------------
 4543|    140|            failf(data, "Received HTTP/0.9 when not allowed");
  ------------------
  |  |   62|    140|#define failf Curl_failf
  ------------------
 4544|    140|            return CURLE_UNSUPPORTED_PROTOCOL;
 4545|    140|          }
 4546|      9|          leftover_body = TRUE;
  ------------------
  |  | 1053|      9|#define TRUE true
  ------------------
 4547|      9|          goto out;
 4548|    149|        }
 4549|    489|      }
 4550|  1.71k|      goto out; /* read more and try again */
 4551|  1.97k|    }
 4552|       |
 4553|       |    /* the size of the remaining header line */
 4554|  28.6k|    consumed = (end_ptr - buf) + 1;
 4555|       |
 4556|  28.6k|    result = curlx_dyn_addn(&data->state.headerb, buf, consumed);
 4557|  28.6k|    if(result)
  ------------------
  |  Branch (4557:8): [True: 0, False: 28.6k]
  ------------------
 4558|      0|      return result;
 4559|  28.6k|    blen -= consumed;
 4560|  28.6k|    buf += consumed;
 4561|  28.6k|    *pconsumed += consumed + unfold_len;
 4562|       |
 4563|       |    /****
 4564|       |     * We now have a FULL header line in 'headerb'.
 4565|       |     *****/
 4566|       |
 4567|  28.6k|    hlen = curlx_dyn_len(&data->state.headerb);
 4568|  28.6k|    hd = curlx_dyn_ptr(&data->state.headerb);
 4569|       |
 4570|  28.6k|    if(!k->headerline) {
  ------------------
  |  Branch (4570:8): [True: 7.40k, False: 21.2k]
  ------------------
 4571|       |      /* the first read "header", the status line */
 4572|  7.40k|      statusline st = checkprotoprefix(data, conn, hd, hlen);
 4573|  7.40k|      if(st == STATUS_BAD) {
  ------------------
  |  Branch (4573:10): [True: 48, False: 7.35k]
  ------------------
 4574|     48|        streamclose(conn);
  ------------------
  |  |   87|     48|#define streamclose(x) Curl_conncontrol((x), CONNCTRL_STREAM_CLOSE)
  |  |  ------------------
  |  |  |  |   83|     48|#define CONNCTRL_STREAM_CLOSE    2
  |  |  ------------------
  ------------------
 4575|       |        /* this is not the beginning of a protocol first header line.
 4576|       |         * Cannot be 0.9 if version was detected or connection was reused. */
 4577|     48|        if((k->httpversion >= 10) || conn->bits.reuse) {
  ------------------
  |  Branch (4577:12): [True: 4, False: 44]
  |  Branch (4577:38): [True: 10, False: 34]
  ------------------
 4578|     14|          failf(data, "Invalid status line");
  ------------------
  |  |   62|     14|#define failf Curl_failf
  ------------------
 4579|     14|          return CURLE_WEIRD_SERVER_REPLY;
 4580|     14|        }
 4581|     34|        if(!data->state.http_neg.accept_09) {
  ------------------
  |  Branch (4581:12): [True: 33, False: 1]
  ------------------
 4582|     33|          failf(data, "Received HTTP/0.9 when not allowed");
  ------------------
  |  |   62|     33|#define failf Curl_failf
  ------------------
 4583|     33|          return CURLE_UNSUPPORTED_PROTOCOL;
 4584|     33|        }
 4585|      1|        k->header = FALSE;
  ------------------
  |  | 1056|      1|#define FALSE false
  ------------------
 4586|      1|        leftover_body = TRUE;
  ------------------
  |  | 1053|      1|#define TRUE true
  ------------------
 4587|      1|        goto out;
 4588|     34|      }
 4589|  7.40k|    }
 4590|  21.2k|    else {
 4591|  21.2k|      if(hlen && !ISNEWLINE(hd[0])) {
  ------------------
  |  |   48|  21.2k|#define ISNEWLINE(x)    (((x) == '\n') || (x) == '\r')
  |  |  ------------------
  |  |  |  Branch (48:26): [True: 115, False: 21.1k]
  |  |  |  Branch (48:43): [True: 6.63k, False: 14.5k]
  |  |  ------------------
  ------------------
  |  Branch (4591:10): [True: 21.2k, False: 0]
  ------------------
 4592|       |        /* this is NOT the header separator */
 4593|       |
 4594|       |        /* if we have bytes for the next header, check for folding */
 4595|  14.5k|        if(blen && ISBLANK(buf[0])) {
  ------------------
  |  |   43|  14.2k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (43:22): [True: 286, False: 13.9k]
  |  |  |  Branch (43:38): [True: 401, False: 13.5k]
  |  |  ------------------
  ------------------
  |  Branch (4595:12): [True: 14.2k, False: 317]
  ------------------
 4596|       |          /* remove the trailing CRLF and append the next header */
 4597|    687|          unfold_header(data);
 4598|    687|          continue;
 4599|    687|        }
 4600|  13.8k|        else if(!blen) {
  ------------------
  |  Branch (4600:17): [True: 317, False: 13.5k]
  ------------------
 4601|       |          /* this might be a folded header so deal with it in next invoke */
 4602|    317|          data->state.maybe_folded = TRUE;
  ------------------
  |  | 1053|    317|#define TRUE true
  ------------------
 4603|    317|          break;
 4604|    317|        }
 4605|  14.5k|      }
 4606|  21.2k|    }
 4607|       |
 4608|  27.6k|    result = http_rw_hd(data, hd, hlen, buf, blen, &consumed);
 4609|       |    /* We are done with this line. We reset because response
 4610|       |     * processing might switch to HTTP/2 and that might call us
 4611|       |     * directly again. */
 4612|  27.6k|    curlx_dyn_reset(&data->state.headerb);
 4613|  27.6k|    if(consumed) {
  ------------------
  |  Branch (4613:8): [True: 439, False: 27.2k]
  ------------------
 4614|    439|      blen -= consumed;
 4615|    439|      buf += consumed;
 4616|    439|      *pconsumed += consumed;
 4617|    439|    }
 4618|  27.6k|    if(result)
  ------------------
  |  Branch (4618:8): [True: 283, False: 27.3k]
  ------------------
 4619|    283|      return result;
 4620|  27.6k|  }
 4621|       |
 4622|       |  /* We might have reached the end of the header part here, but
 4623|       |     there might be a non-header part left in the end of the read
 4624|       |     buffer. */
 4625|  10.1k|out:
 4626|  10.1k|  if(!k->header && !leftover_body) {
  ------------------
  |  Branch (4626:6): [True: 6.41k, False: 3.77k]
  |  Branch (4626:20): [True: 6.40k, False: 10]
  ------------------
 4627|  6.40k|    curlx_dyn_free(&data->state.headerb);
 4628|  6.40k|  }
 4629|  10.1k|  return CURLE_OK;
 4630|  10.7k|}
http.c:unfold_header:
 4455|    750|{
 4456|    750|  Curl_http_to_fold(&data->state.headerb);
 4457|       |  data->state.leading_unfold = TRUE;
  ------------------
  |  | 1053|    750|#define TRUE true
  ------------------
 4458|    750|}
http.c:checkprotoprefix:
 3212|  7.89k|{
 3213|  7.89k|#ifndef CURL_DISABLE_RTSP
 3214|  7.89k|  if(conn->scheme->protocol & CURLPROTO_RTSP)
  ------------------
  |  | 1104|  7.89k|#define CURLPROTO_RTSP    (1L << 18)
  ------------------
  |  Branch (3214:6): [True: 0, False: 7.89k]
  ------------------
 3215|      0|    return checkrtspprefix(data, s, len);
 3216|       |#else
 3217|       |  (void)conn;
 3218|       |#endif /* CURL_DISABLE_RTSP */
 3219|       |
 3220|  7.89k|  return checkhttpprefix(data, s, len);
 3221|  7.89k|}
http.c:http_TE_has_token:
 4944|    253|{
 4945|    481|  while(*fvalue) {
  ------------------
  |  Branch (4945:9): [True: 354, False: 127]
  ------------------
 4946|    354|    struct Curl_str name;
 4947|       |
 4948|       |    /* skip to first token */
 4949|  1.51k|    while(ISBLANK(*fvalue) || *fvalue == ',')
  ------------------
  |  |   43|  3.02k|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (43:22): [True: 335, False: 1.17k]
  |  |  |  Branch (43:38): [True: 219, False: 959]
  |  |  ------------------
  ------------------
  |  Branch (4949:31): [True: 605, False: 354]
  ------------------
 4950|  1.15k|      fvalue++;
 4951|    354|    if(curlx_str_cspn(&fvalue, &name, " \t\r;,"))
  ------------------
  |  Branch (4951:8): [True: 13, False: 341]
  ------------------
 4952|     13|      return FALSE;
  ------------------
  |  | 1056|     13|#define FALSE false
  ------------------
 4953|    341|    if(curlx_str_casecompare(&name, token))
  ------------------
  |  Branch (4953:8): [True: 0, False: 341]
  ------------------
 4954|      0|      return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 4955|       |
 4956|       |    /* skip any remainder after token, e.g. parameters with quoted strings */
 4957|  4.07k|    while(*fvalue && *fvalue != ',') {
  ------------------
  |  Branch (4957:11): [True: 3.94k, False: 124]
  |  Branch (4957:22): [True: 3.84k, False: 104]
  ------------------
 4958|  3.84k|      if(*fvalue == '"') {
  ------------------
  |  Branch (4958:10): [True: 1.37k, False: 2.46k]
  ------------------
 4959|  1.37k|        struct Curl_str qw;
 4960|       |        /* if we do not cleanly find a quoted word here, the header value
 4961|       |         * does not follow HTTP syntax and we reject */
 4962|  1.37k|        if(curlx_str_quotedword(&fvalue, &qw, CURL_MAX_HTTP_HEADER))
  ------------------
  |  |  272|  1.37k|#define CURL_MAX_HTTP_HEADER (100 * 1024)
  ------------------
  |  Branch (4962:12): [True: 113, False: 1.26k]
  ------------------
 4963|    113|          return FALSE;
  ------------------
  |  | 1056|    113|#define FALSE false
  ------------------
 4964|  1.37k|      }
 4965|  2.46k|      else
 4966|  2.46k|        fvalue++;
 4967|  3.84k|    }
 4968|    341|  }
 4969|    127|  return FALSE;
  ------------------
  |  | 1056|    127|#define FALSE false
  ------------------
 4970|    253|}
http.c:h2_permissible_field:
 4933|  49.1k|{
 4934|  49.1k|  size_t i;
 4935|   317k|  for(i = 0; i < CURL_ARRAYSIZE(H2_NON_FIELD); ++i) {
  ------------------
  |  | 1307|   317k|#define CURL_ARRAYSIZE(A) (sizeof(A) / sizeof((A)[0]))
  ------------------
  |  Branch (4935:14): [True: 273k, False: 44.7k]
  ------------------
 4936|   273k|    if(e->namelen == H2_NON_FIELD[i].namelen &&
  ------------------
  |  Branch (4936:8): [True: 14.4k, False: 258k]
  ------------------
 4937|  14.4k|       curl_strnequal(H2_NON_FIELD[i].name, e->name, e->namelen))
  ------------------
  |  Branch (4937:8): [True: 4.45k, False: 10.0k]
  ------------------
 4938|  4.45k|      return FALSE;
  ------------------
  |  | 1056|  4.45k|#define FALSE false
  ------------------
 4939|   273k|  }
 4940|  44.7k|  return TRUE;
  ------------------
  |  | 1053|  44.7k|#define TRUE true
  ------------------
 4941|  49.1k|}

Curl_h1_req_parse_init:
   37|  4.42k|{
   38|  4.42k|  memset(parser, 0, sizeof(*parser));
   39|  4.42k|  parser->max_line_len = max_line_len;
   40|  4.42k|  curlx_dyn_init(&parser->scratch, max_line_len);
   41|  4.42k|}
Curl_h1_req_parse_free:
   44|  8.81k|{
   45|  8.81k|  if(parser) {
  ------------------
  |  Branch (45:6): [True: 8.81k, False: 0]
  ------------------
   46|  8.81k|    Curl_http_req_free(parser->req);
   47|  8.81k|    curlx_dyn_free(&parser->scratch);
   48|  8.81k|    parser->req = NULL;
   49|       |    parser->done = FALSE;
  ------------------
  |  | 1056|  8.81k|#define FALSE false
  ------------------
   50|  8.81k|  }
   51|  8.81k|}
Curl_h1_req_parse_read:
  267|  4.41k|{
  268|  4.41k|  CURLcode result = CURLE_OK;
  269|  4.41k|  size_t nread;
  270|       |
  271|  4.41k|  *pnread = 0;
  272|       |
  273|  4.41k|  DEBUGASSERT(buf);
  ------------------
  |  | 1083|  4.41k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (273:3): [True: 0, False: 4.41k]
  |  Branch (273:3): [True: 4.41k, False: 0]
  ------------------
  274|  4.41k|  if(!buf)
  ------------------
  |  Branch (274:6): [True: 0, False: 4.41k]
  ------------------
  275|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  276|       |
  277|  62.9k|  while(!parser->done) {
  ------------------
  |  Branch (277:9): [True: 58.5k, False: 4.38k]
  ------------------
  278|  58.5k|    result = next_line(parser, buf, buflen, options, &nread);
  279|  58.5k|    if(result) {
  ------------------
  |  Branch (279:8): [True: 0, False: 58.5k]
  ------------------
  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|  58.5k|    *pnread += nread;
  287|  58.5k|    buf += nread;
  288|  58.5k|    buflen -= nread;
  289|       |
  290|  58.5k|    if(!parser->line) {
  ------------------
  |  Branch (290:8): [True: 11, False: 58.5k]
  ------------------
  291|       |      /* consumed bytes, but line not complete */
  292|     11|      if(!buflen)
  ------------------
  |  Branch (292:10): [True: 11, False: 0]
  ------------------
  293|     11|        goto out;
  294|     11|    }
  295|  58.5k|    else if(!parser->req) {
  ------------------
  |  Branch (295:13): [True: 4.40k, False: 54.1k]
  ------------------
  296|  4.40k|      result = start_req(parser, scheme_default, custom_method, options);
  297|  4.40k|      if(result)
  ------------------
  |  Branch (297:10): [True: 13, False: 4.39k]
  ------------------
  298|     13|        goto out;
  299|  4.40k|    }
  300|  54.1k|    else if(parser->line_len == 0) {
  ------------------
  |  Branch (300:13): [True: 4.38k, False: 49.7k]
  ------------------
  301|       |      /* last, empty line, we are finished */
  302|  4.38k|      if(!parser->req) {
  ------------------
  |  Branch (302:10): [True: 0, False: 4.38k]
  ------------------
  303|      0|        result = CURLE_URL_MALFORMAT;
  304|      0|        goto out;
  305|      0|      }
  306|  4.38k|      parser->done = TRUE;
  ------------------
  |  | 1053|  4.38k|#define TRUE true
  ------------------
  307|  4.38k|      curlx_dyn_reset(&parser->scratch);
  308|       |      /* last chance adjustments */
  309|  4.38k|    }
  310|  49.7k|    else {
  311|  49.7k|      result = Curl_dynhds_h1_add_line(&parser->req->headers,
  312|  49.7k|                                       parser->line, parser->line_len);
  313|  49.7k|      if(result)
  ------------------
  |  Branch (313:10): [True: 6, False: 49.7k]
  ------------------
  314|      6|        goto out;
  315|  49.7k|    }
  316|  58.5k|  }
  317|       |
  318|  4.41k|out:
  319|  4.41k|  return result;
  320|  4.41k|}
http1.c:next_line:
   97|  58.5k|{
   98|  58.5k|  CURLcode result;
   99|       |
  100|  58.5k|  *pnread = 0;
  101|  58.5k|  if(parser->line) {
  ------------------
  |  Branch (101:6): [True: 54.1k, False: 4.41k]
  ------------------
  102|  54.1k|    parser->line = NULL;
  103|  54.1k|    parser->line_len = 0;
  104|  54.1k|    curlx_dyn_reset(&parser->scratch);
  105|  54.1k|  }
  106|       |
  107|  58.5k|  result = detect_line(parser, buf, buflen, pnread);
  108|  58.5k|  if(!result) {
  ------------------
  |  Branch (108:6): [True: 58.5k, False: 11]
  ------------------
  109|  58.5k|    if(curlx_dyn_len(&parser->scratch)) {
  ------------------
  |  Branch (109:8): [True: 8, False: 58.5k]
  ------------------
  110|       |      /* append detected line to scratch to have the complete line */
  111|      8|      result = curlx_dyn_addn(&parser->scratch, parser->line,
  112|      8|                              parser->line_len);
  113|      8|      if(result)
  ------------------
  |  Branch (113:10): [True: 0, False: 8]
  ------------------
  114|      0|        return result;
  115|      8|      parser->line = curlx_dyn_ptr(&parser->scratch);
  116|      8|      parser->line_len = curlx_dyn_len(&parser->scratch);
  117|      8|    }
  118|  58.5k|    result = trim_line(parser, options);
  119|  58.5k|    if(result)
  ------------------
  |  Branch (119:8): [True: 0, False: 58.5k]
  ------------------
  120|      0|      return result;
  121|  58.5k|  }
  122|     11|  else if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (122:11): [True: 11, False: 0]
  ------------------
  123|       |    /* no line end in `buf`, add it to our scratch */
  124|     11|    result = curlx_dyn_addn(&parser->scratch, (const unsigned char *)buf,
  125|     11|                            buflen);
  126|     11|    *pnread = buflen;
  127|     11|  }
  128|  58.5k|  return result;
  129|  58.5k|}
http1.c:detect_line:
   80|  58.5k|{
   81|  58.5k|  const char *line_end;
   82|       |
   83|  58.5k|  DEBUGASSERT(!parser->line);
  ------------------
  |  | 1083|  58.5k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (83:3): [True: 0, False: 58.5k]
  |  Branch (83:3): [True: 58.5k, False: 0]
  ------------------
   84|  58.5k|  *pnread = 0;
   85|  58.5k|  line_end = memchr(buf, '\n', buflen);
   86|  58.5k|  if(!line_end)
  ------------------
  |  Branch (86:6): [True: 11, False: 58.5k]
  ------------------
   87|     11|    return CURLE_AGAIN;
   88|  58.5k|  parser->line = (const char *)buf;
   89|  58.5k|  parser->line_len = line_end - parser->line + 1;
   90|  58.5k|  *pnread = parser->line_len;
   91|  58.5k|  return CURLE_OK;
   92|  58.5k|}
http1.c:trim_line:
   54|  58.5k|{
   55|  58.5k|  DEBUGASSERT(parser->line);
  ------------------
  |  | 1083|  58.5k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (55:3): [True: 0, False: 58.5k]
  |  Branch (55:3): [True: 58.5k, False: 0]
  ------------------
   56|  58.5k|  if(parser->line_len) {
  ------------------
  |  Branch (56:6): [True: 58.5k, False: 0]
  ------------------
   57|  58.5k|    if(parser->line[parser->line_len - 1] == '\n')
  ------------------
  |  Branch (57:8): [True: 58.5k, False: 0]
  ------------------
   58|  58.5k|      --parser->line_len;
   59|  58.5k|    if(parser->line_len) {
  ------------------
  |  Branch (59:8): [True: 58.5k, False: 8]
  ------------------
   60|  58.5k|      if(parser->line[parser->line_len - 1] == '\r')
  ------------------
  |  Branch (60:10): [True: 32.1k, False: 26.3k]
  ------------------
   61|  32.1k|        --parser->line_len;
   62|  26.3k|      else if(options & H1_PARSE_OPT_STRICT)
  ------------------
  |  |   33|  26.3k|#define H1_PARSE_OPT_STRICT     (1 << 0)
  ------------------
  |  Branch (62:15): [True: 0, False: 26.3k]
  ------------------
   63|      0|        return CURLE_URL_MALFORMAT;
   64|  58.5k|    }
   65|      8|    else if(options & H1_PARSE_OPT_STRICT)
  ------------------
  |  |   33|      8|#define H1_PARSE_OPT_STRICT     (1 << 0)
  ------------------
  |  Branch (65:13): [True: 0, False: 8]
  ------------------
   66|      0|      return CURLE_URL_MALFORMAT;
   67|  58.5k|  }
   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|  58.5k|  if(parser->line_len > parser->max_line_len) {
  ------------------
  |  Branch (71:6): [True: 0, False: 58.5k]
  ------------------
   72|      0|    return CURLE_URL_MALFORMAT;
   73|      0|  }
   74|  58.5k|  return CURLE_OK;
   75|  58.5k|}
http1.c:start_req:
  135|  4.40k|{
  136|  4.40k|  const char *p, *m, *target, *hv, *scheme, *authority, *path;
  137|  4.40k|  size_t m_len, target_len, hv_len, scheme_len, authority_len, path_len;
  138|  4.40k|  size_t i;
  139|  4.40k|  CURLU *url = NULL;
  140|  4.40k|  CURLcode result = CURLE_URL_MALFORMAT; /* Use this as default fail */
  141|       |
  142|  4.40k|  DEBUGASSERT(!parser->req);
  ------------------
  |  | 1083|  4.40k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (142:3): [True: 0, False: 4.40k]
  |  Branch (142:3): [True: 4.40k, False: 0]
  ------------------
  143|       |  /* line must match: "METHOD TARGET HTTP_VERSION" */
  144|  4.40k|  if(custom_method && custom_method[0] &&
  ------------------
  |  Branch (144:6): [True: 50, False: 4.35k]
  |  Branch (144:23): [True: 39, False: 11]
  ------------------
  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|  4.36k|  else {
  149|  4.36k|    p = memchr(parser->line, ' ', parser->line_len);
  150|  4.36k|    if(!p || p == parser->line)
  ------------------
  |  Branch (150:8): [True: 0, False: 4.36k]
  |  Branch (150:14): [True: 11, False: 4.35k]
  ------------------
  151|     11|      goto out;
  152|  4.36k|  }
  153|       |
  154|  4.39k|  m = parser->line;
  155|  4.39k|  m_len = p - parser->line;
  156|  4.39k|  target = p + 1;
  157|  4.39k|  target_len = hv_len = 0;
  158|  4.39k|  hv = NULL;
  159|       |
  160|       |  /* URL may contain spaces so scan backwards */
  161|  35.1k|  for(i = parser->line_len; i > m_len; --i) {
  ------------------
  |  Branch (161:29): [True: 35.1k, False: 2]
  ------------------
  162|  35.1k|    if(parser->line[i] == ' ') {
  ------------------
  |  Branch (162:8): [True: 4.39k, False: 30.7k]
  ------------------
  163|  4.39k|      hv = &parser->line[i + 1];
  164|  4.39k|      hv_len = parser->line_len - i;
  165|  4.39k|      target_len = (hv - target) - 1;
  166|  4.39k|      break;
  167|  4.39k|    }
  168|  35.1k|  }
  169|       |  /* no SPACE found or empty TARGET or empty HTTP_VERSION */
  170|  4.39k|  if(!target_len || !hv_len)
  ------------------
  |  Branch (170:6): [True: 2, False: 4.39k]
  |  Branch (170:21): [True: 0, False: 4.39k]
  ------------------
  171|      2|    goto out;
  172|       |
  173|  4.39k|  (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|  4.39k|  scheme = authority = path = NULL;
  188|  4.39k|  scheme_len = authority_len = path_len = 0;
  189|       |
  190|  4.39k|  if(target_len == 1 && target[0] == '*') {
  ------------------
  |  Branch (190:6): [True: 4.07k, False: 322]
  |  Branch (190:25): [True: 0, False: 4.07k]
  ------------------
  191|       |    /* asterisk-form */
  192|      0|    path = target;
  193|      0|    path_len = target_len;
  194|      0|  }
  195|  4.39k|  else if(!strncmp("CONNECT", m, m_len)) {
  ------------------
  |  Branch (195:11): [True: 1, False: 4.39k]
  ------------------
  196|       |    /* authority-form */
  197|      1|    authority = target;
  198|      1|    authority_len = target_len;
  199|      1|  }
  200|  4.39k|  else if(target[0] == '/') {
  ------------------
  |  Branch (200:11): [True: 4.39k, False: 0]
  ------------------
  201|       |    /* origin-form */
  202|  4.39k|    path = target;
  203|  4.39k|    path_len = target_len;
  204|  4.39k|  }
  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)) {
  ------------------
  |  | 1056|      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 |
  ------------------
  |  |   91|      0|#define CURLU_NON_SUPPORT_SCHEME (1 << 3) /* allow non-supported scheme */
  ------------------
  229|      0|                     CURLU_PATH_AS_IS |
  ------------------
  |  |   92|      0|#define CURLU_PATH_AS_IS (1 << 4)         /* leave dot sequences */
  ------------------
  230|      0|                     CURLU_NO_DEFAULT_PORT);
  ------------------
  |  |   86|      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;
  ------------------
  |  |  100|      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|  4.39k|  if(url) {
  ------------------
  |  Branch (245:6): [True: 0, False: 4.39k]
  ------------------
  246|      0|    result = Curl_http_req_make2(&parser->req, m, m_len, url, scheme_default);
  247|      0|  }
  248|  4.39k|  else {
  249|  4.39k|    if(!scheme && scheme_default) {
  ------------------
  |  Branch (249:8): [True: 4.39k, False: 0]
  |  Branch (249:19): [True: 0, False: 4.39k]
  ------------------
  250|      0|      scheme = scheme_default;
  251|      0|      scheme_len = strlen(scheme_default);
  252|      0|    }
  253|  4.39k|    result = Curl_http_req_make(&parser->req, m, m_len, scheme, scheme_len,
  254|  4.39k|                                authority, authority_len, path, path_len);
  255|  4.39k|  }
  256|       |
  257|  4.40k|out:
  258|  4.40k|  curl_url_cleanup(url);
  259|  4.40k|  return result;
  260|  4.39k|}

Curl_nghttp2_fr_print:
 1058|    427|{
 1059|    427|  switch(frame->hd.type) {
 1060|      4|  case NGHTTP2_DATA: {
  ------------------
  |  Branch (1060:3): [True: 4, False: 423]
  ------------------
 1061|      4|    return curl_msnprintf(buffer, blen,
 1062|      4|                          "FRAME[DATA, len=%d, eos=%d, padlen=%d]",
 1063|      4|                          (int)frame->hd.length,
 1064|      4|                          !!(frame->hd.flags & NGHTTP2_FLAG_END_STREAM),
 1065|      4|                          (int)frame->data.padlen);
 1066|      0|  }
 1067|    398|  case NGHTTP2_HEADERS: {
  ------------------
  |  Branch (1067:3): [True: 398, False: 29]
  ------------------
 1068|    398|    return curl_msnprintf(buffer, blen,
 1069|    398|                          "FRAME[HEADERS, len=%d, hend=%d, eos=%d]",
 1070|    398|                          (int)frame->hd.length,
 1071|    398|                          !!(frame->hd.flags & NGHTTP2_FLAG_END_HEADERS),
 1072|    398|                          !!(frame->hd.flags & NGHTTP2_FLAG_END_STREAM));
 1073|      0|  }
 1074|      0|  case NGHTTP2_PRIORITY: {
  ------------------
  |  Branch (1074:3): [True: 0, False: 427]
  ------------------
 1075|      0|    return curl_msnprintf(buffer, blen,
 1076|      0|                          "FRAME[PRIORITY, len=%d, flags=%d]",
 1077|      0|                          (int)frame->hd.length, frame->hd.flags);
 1078|      0|  }
 1079|      0|  case NGHTTP2_RST_STREAM: {
  ------------------
  |  Branch (1079:3): [True: 0, False: 427]
  ------------------
 1080|      0|    return curl_msnprintf(buffer, blen,
 1081|      0|                          "FRAME[RST_STREAM, len=%d, flags=%d, error=%u]",
 1082|      0|                          (int)frame->hd.length, frame->hd.flags,
 1083|      0|                          frame->rst_stream.error_code);
 1084|      0|  }
 1085|      5|  case NGHTTP2_SETTINGS: {
  ------------------
  |  Branch (1085:3): [True: 5, False: 422]
  ------------------
 1086|      5|    if(frame->hd.flags & NGHTTP2_FLAG_ACK) {
  ------------------
  |  Branch (1086:8): [True: 1, False: 4]
  ------------------
 1087|      1|      return curl_msnprintf(buffer, blen, "FRAME[SETTINGS, ack=1]");
 1088|      1|    }
 1089|      4|    return curl_msnprintf(buffer, blen,
 1090|      4|                          "FRAME[SETTINGS, len=%d]", (int)frame->hd.length);
 1091|      5|  }
 1092|     10|  case NGHTTP2_PUSH_PROMISE:
  ------------------
  |  Branch (1092:3): [True: 10, False: 417]
  ------------------
 1093|     10|    return curl_msnprintf(buffer, blen,
 1094|     10|                          "FRAME[PUSH_PROMISE, len=%d, hend=%d]",
 1095|     10|                          (int)frame->hd.length,
 1096|     10|                          !!(frame->hd.flags & NGHTTP2_FLAG_END_HEADERS));
 1097|      1|  case NGHTTP2_PING:
  ------------------
  |  Branch (1097:3): [True: 1, False: 426]
  ------------------
 1098|      1|    return curl_msnprintf(buffer, blen,
 1099|      1|                          "FRAME[PING, len=%d, ack=%d]",
 1100|      1|                          (int)frame->hd.length,
 1101|      1|                          frame->hd.flags & NGHTTP2_FLAG_ACK);
 1102|      4|  case NGHTTP2_GOAWAY: {
  ------------------
  |  Branch (1102:3): [True: 4, False: 423]
  ------------------
 1103|      4|    char scratch[128];
 1104|      4|    size_t s_len = CURL_ARRAYSIZE(scratch);
  ------------------
  |  | 1307|      4|#define CURL_ARRAYSIZE(A) (sizeof(A) / sizeof((A)[0]))
  ------------------
 1105|      4|    size_t len = (frame->goaway.opaque_data_len < s_len) ?
  ------------------
  |  Branch (1105:18): [True: 2, False: 2]
  ------------------
 1106|      2|      frame->goaway.opaque_data_len : s_len - 1;
 1107|      4|    if(len)
  ------------------
  |  Branch (1107:8): [True: 3, False: 1]
  ------------------
 1108|      3|      memcpy(scratch, frame->goaway.opaque_data, len);
 1109|      4|    scratch[len] = '\0';
 1110|      4|    return curl_msnprintf(buffer, blen,
 1111|      4|                          "FRAME[GOAWAY, error=%u, reason='%s', "
 1112|      4|                          "last_stream=%d]", frame->goaway.error_code,
 1113|      4|                          scratch, frame->goaway.last_stream_id);
 1114|      5|  }
 1115|      5|  case NGHTTP2_WINDOW_UPDATE: {
  ------------------
  |  Branch (1115:3): [True: 5, False: 422]
  ------------------
 1116|      5|    return curl_msnprintf(buffer, blen,
 1117|      5|                          "FRAME[WINDOW_UPDATE, incr=%d]",
 1118|      5|                          frame->window_update.window_size_increment);
 1119|      5|  }
 1120|      0|  default:
  ------------------
  |  Branch (1120:3): [True: 0, False: 427]
  ------------------
 1121|      0|    return curl_msnprintf(buffer, blen, "FRAME[%d, len=%d, flags=%d]",
 1122|      0|                          frame->hd.type, (int)frame->hd.length,
 1123|      0|                          frame->hd.flags);
 1124|    427|  }
 1125|    427|}
Curl_http2_request_upgrade:
 1647|    332|{
 1648|    332|  CURLcode result;
 1649|    332|  char *base64;
 1650|    332|  size_t blen;
 1651|    332|  struct SingleRequest *k = &data->req;
 1652|    332|  uint8_t binsettings[H2_BINSETTINGS_LEN];
 1653|    332|  ssize_t rc;
 1654|    332|  size_t binlen; /* length of the binsettings data */
 1655|       |
 1656|    332|  rc = populate_binsettings(binsettings, data);
 1657|    332|  if(!curlx_sztouz(rc, &binlen) || !binlen) {
  ------------------
  |  Branch (1657:6): [True: 0, False: 332]
  |  Branch (1657:36): [True: 0, False: 332]
  ------------------
 1658|      0|    failf(data, "nghttp2 unexpectedly failed on pack_settings_payload");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1659|      0|    curlx_dyn_free(req);
 1660|      0|    return CURLE_FAILED_INIT;
 1661|      0|  }
 1662|       |
 1663|    332|  result = curlx_base64url_encode(binsettings, binlen, &base64, &blen);
 1664|    332|  if(result) {
  ------------------
  |  Branch (1664:6): [True: 0, False: 332]
  ------------------
 1665|      0|    curlx_dyn_free(req);
 1666|      0|    return result;
 1667|      0|  }
 1668|       |
 1669|    332|  data->state.http_hd_upgrade = TRUE;
  ------------------
  |  | 1053|    332|#define TRUE true
  ------------------
 1670|    332|  data->state.http_hd_h2_settings = TRUE;
  ------------------
  |  | 1053|    332|#define TRUE true
  ------------------
 1671|    332|  result = curlx_dyn_addf(req,
 1672|    332|                          "Upgrade: %s\r\n"
 1673|    332|                          "HTTP2-Settings: %s\r\n",
 1674|    332|                          NGHTTP2_CLEARTEXT_PROTO_VERSION_ID, base64);
 1675|    332|  curlx_free(base64);
  ------------------
  |  | 1482|    332|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1676|       |
 1677|    332|  k->upgr101 = UPGR101_H2;
 1678|    332|  data->conn->bits.upgrade_in_progress = TRUE;
  ------------------
  |  | 1053|    332|#define TRUE true
  ------------------
 1679|       |
 1680|    332|  return result;
 1681|    332|}
Curl_http2_may_switch:
 2843|  8.97k|{
 2844|  8.97k|  if(Curl_conn_http_version(data, data->conn) < 20 &&
  ------------------
  |  Branch (2844:6): [True: 8.97k, False: 0]
  ------------------
 2845|  8.97k|     (data->state.http_neg.wanted & CURL_HTTP_V2x) &&
  ------------------
  |  |   41|  8.97k|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
  |  Branch (2845:6): [True: 7.33k, False: 1.63k]
  ------------------
 2846|  7.33k|     data->state.http_neg.h2_prior_knowledge) {
  ------------------
  |  Branch (2846:6): [True: 4.39k, False: 2.94k]
  ------------------
 2847|  4.39k|#ifndef CURL_DISABLE_PROXY
 2848|  4.39k|    if(data->conn->bits.origin_is_proxy) {
  ------------------
  |  Branch (2848:8): [True: 0, False: 4.39k]
  ------------------
 2849|      0|      infof(data, "Ignoring HTTP/2 prior knowledge due to proxy");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2850|      0|      return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 2851|      0|    }
 2852|  4.39k|#endif
 2853|  4.39k|    return TRUE;
  ------------------
  |  | 1053|  4.39k|#define TRUE true
  ------------------
 2854|  4.39k|  }
 2855|  4.58k|  return FALSE;
  ------------------
  |  | 1056|  4.58k|#define FALSE false
  ------------------
 2856|  8.97k|}
Curl_http2_switch:
 2859|  4.39k|{
 2860|  4.39k|  struct Curl_cfilter *cf;
 2861|  4.39k|  CURLcode result;
 2862|       |
 2863|  4.39k|  DEBUGASSERT(Curl_conn_http_version(data, data->conn) < 20);
  ------------------
  |  | 1083|  4.39k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2863:3): [True: 0, False: 4.39k]
  |  Branch (2863:3): [True: 4.39k, False: 0]
  ------------------
 2864|       |
 2865|  4.39k|  result = http2_cfilter_add(&cf, data, data->conn, FIRSTSOCKET, FALSE);
  ------------------
  |  |  233|  4.39k|#define FIRSTSOCKET     0
  ------------------
                result = http2_cfilter_add(&cf, data, data->conn, FIRSTSOCKET, FALSE);
  ------------------
  |  | 1056|  4.39k|#define FALSE false
  ------------------
 2866|  4.39k|  if(result)
  ------------------
  |  Branch (2866:6): [True: 0, False: 4.39k]
  ------------------
 2867|      0|    return result;
 2868|  4.39k|  CURL_TRC_CF(data, cf, "switching connection to HTTP/2");
  ------------------
  |  |  153|  4.39k|  do {                                          \
  |  |  154|  4.39k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  4.39k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  8.78k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 4.39k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 4.39k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  8.78k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  4.39k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  4.39k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  4.39k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 4.39k]
  |  |  ------------------
  ------------------
 2869|       |
 2870|  4.39k|  if(cf->next) {
  ------------------
  |  Branch (2870:6): [True: 4.39k, False: 0]
  ------------------
 2871|  4.39k|    bool done;
 2872|  4.39k|    return Curl_conn_cf_connect(cf, data, &done);
 2873|  4.39k|  }
 2874|      0|  return CURLE_OK;
 2875|  4.39k|}
Curl_http2_upgrade:
 2900|     19|{
 2901|     19|  struct Curl_cfilter *cf;
 2902|     19|  struct cf_h2_ctx *ctx;
 2903|     19|  CURLcode result;
 2904|       |
 2905|     19|  DEBUGASSERT(Curl_conn_http_version(data, conn) < 20);
  ------------------
  |  | 1083|     19|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2905:3): [True: 0, False: 19]
  |  Branch (2905:3): [True: 19, False: 0]
  ------------------
 2906|       |
 2907|     19|  result = http2_cfilter_add(&cf, data, conn, sockindex, TRUE);
  ------------------
  |  | 1053|     19|#define TRUE true
  ------------------
 2908|     19|  if(result)
  ------------------
  |  Branch (2908:6): [True: 0, False: 19]
  ------------------
 2909|      0|    return result;
 2910|     19|  CURL_TRC_CF(data, cf, "upgrading connection to HTTP/2");
  ------------------
  |  |  153|     19|  do {                                          \
  |  |  154|     19|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|     19|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|     38|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 19, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 19]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|     38|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|     19|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|     19|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|     19|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 19]
  |  |  ------------------
  ------------------
 2911|       |
 2912|     19|  DEBUGASSERT(cf->cft == &Curl_cft_nghttp2);
  ------------------
  |  | 1083|     19|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2912:3): [True: 0, False: 19]
  |  Branch (2912:3): [True: 19, False: 0]
  ------------------
 2913|     19|  ctx = cf->ctx;
 2914|       |
 2915|     19|  data->req.httpversion_sent = 20; /* it is an h2 request now */
 2916|     19|  data->req.header = TRUE; /* we expect the real response to come in h2 */
  ------------------
  |  | 1053|     19|#define TRUE true
  ------------------
 2917|     19|  data->req.headerline = 0; /* restart the header line counter */
 2918|       |
 2919|     19|  if(nread > 0) {
  ------------------
  |  Branch (2919:6): [True: 17, False: 2]
  ------------------
 2920|       |    /* Remaining data from the protocol switch reply is already using
 2921|       |     * the switched protocol, ie. HTTP/2. We add that to the network
 2922|       |     * inbufq. */
 2923|     17|    size_t copied;
 2924|       |
 2925|     17|    result = Curl_bufq_write(&ctx->inbufq,
 2926|     17|                             (const unsigned char *)mem, nread, &copied);
 2927|     17|    if(result) {
  ------------------
  |  Branch (2927:8): [True: 0, False: 17]
  ------------------
 2928|      0|      failf(data, "error on copying HTTP Upgrade response: %d", (int)result);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2929|      0|      return CURLE_RECV_ERROR;
 2930|      0|    }
 2931|     17|    if(copied < nread) {
  ------------------
  |  Branch (2931:8): [True: 0, False: 17]
  ------------------
 2932|      0|      failf(data, "connection buffer size could not take all data "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2933|      0|            "from HTTP Upgrade response header: copied=%zu, datalen=%zu",
 2934|      0|            copied, nread);
 2935|      0|      return CURLE_HTTP2;
 2936|      0|    }
 2937|     17|    infof(data, "Copied HTTP/2 data in stream buffer to connection buffer"
  ------------------
  |  |  143|     17|  do {                               \
  |  |  144|     17|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|     17|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 17, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 17]
  |  |  |  |  ------------------
  |  |  |  |  323|     17|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     17|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     17|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 17]
  |  |  ------------------
  ------------------
 2938|     17|          " after upgrade: len=%zu", nread);
 2939|     17|  }
 2940|       |
 2941|     19|  if(cf->next) {
  ------------------
  |  Branch (2941:6): [True: 19, False: 0]
  ------------------
 2942|     19|    bool done;
 2943|     19|    result = Curl_conn_cf_connect(cf, data, &done);
 2944|     19|    if(!result)
  ------------------
  |  Branch (2944:8): [True: 19, False: 0]
  ------------------
 2945|     19|      cf->cft->cntrl(cf, data, CF_CTRL_CONN_INFO_UPDATE, 0, NULL);
  ------------------
  |  |  121|     19|#define CF_CTRL_CONN_INFO_UPDATE (256 + 0) /* 0          NULL     ignored */
  ------------------
 2946|     19|  }
 2947|     19|  return result;
 2948|     19|}
Curl_h2_http_1_1_error:
 2953|    432|{
 2954|    432|  if(Curl_conn_http_version(data, data->conn) == 20) {
  ------------------
  |  Branch (2954:6): [True: 432, False: 0]
  ------------------
 2955|    432|    int err = Curl_conn_get_stream_error(data, data->conn, FIRSTSOCKET);
  ------------------
  |  |  233|    432|#define FIRSTSOCKET     0
  ------------------
 2956|    432|    return err == NGHTTP2_HTTP_1_1_REQUIRED;
 2957|    432|  }
 2958|      0|  return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 2959|    432|}
Curl_nghttp2_malloc:
 2962|   153k|{
 2963|   153k|  (void)user_data;
 2964|   153k|  return Curl_cmalloc(size);
 2965|   153k|}
Curl_nghttp2_free:
 2968|   252k|{
 2969|   252k|  (void)user_data;
 2970|   252k|  Curl_cfree(ptr);
 2971|   252k|}
Curl_nghttp2_calloc:
 2974|  8.80k|{
 2975|  8.80k|  (void)user_data;
 2976|  8.80k|  return Curl_ccalloc(nmemb, size);
 2977|  8.80k|}
Curl_nghttp2_realloc:
 2980|  5.06k|{
 2981|  5.06k|  (void)user_data;
 2982|  5.06k|  return Curl_crealloc(ptr, size);
 2983|  5.06k|}
http2.c:populate_binsettings:
  234|    351|{
  235|    351|  nghttp2_settings_entry iv[H2_SETTINGS_IV_LEN];
  236|    351|  size_t ivlen;
  237|       |
  238|    351|  ivlen = populate_settings(iv, data, NULL);
  239|       |  /* this returns number of bytes it wrote or a negative number on error. */
  240|    351|  return nghttp2_pack_settings_payload(binsettings, H2_BINSETTINGS_LEN,
  ------------------
  |  |   88|    351|#define H2_BINSETTINGS_LEN 80
  ------------------
  241|    351|                                       iv, ivlen);
  242|    351|}
http2.c:populate_settings:
  218|  4.74k|{
  219|  4.74k|  iv[0].settings_id = NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS;
  220|  4.74k|  iv[0].value = Curl_multi_max_concurrent_streams(data->multi);
  221|       |
  222|  4.74k|  iv[1].settings_id = NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE;
  223|  4.74k|  iv[1].value = cf_h2_initial_win_size(data);
  224|  4.74k|  if(ctx)
  ------------------
  |  Branch (224:6): [True: 4.39k, False: 351]
  ------------------
  225|  4.39k|    ctx->initial_win_size = iv[1].value;
  226|  4.74k|  iv[2].settings_id = NGHTTP2_SETTINGS_ENABLE_PUSH;
  227|  4.74k|  iv[2].value = !!data->multi->push_cb;
  228|       |
  229|  4.74k|  return 3;
  230|  4.74k|}
http2.c:cf_h2_initial_win_size:
  203|  9.13k|{
  204|  9.13k|#if NGHTTP2_HAS_SET_LOCAL_WINDOW_SIZE
  205|       |  /* If the transfer has a rate-limit lower than the default initial
  206|       |   * stream window size, use that. It needs to be at least 8k or servers
  207|       |   * may be unhappy. */
  208|  9.13k|  curl_off_t rps = Curl_rlimit_per_step(&data->progress.dl.rlimit);
  209|  9.13k|  if((rps > 0) && (rps < H2_STREAM_WINDOW_SIZE_INITIAL))
  ------------------
  |  |   71|  9.13k|#define H2_STREAM_WINDOW_SIZE_INITIAL  (64 * 1024)
  ------------------
  |  Branch (209:6): [True: 9.13k, False: 0]
  |  Branch (209:19): [True: 9.13k, False: 0]
  ------------------
  210|  9.13k|    return CURLMAX((uint32_t)rps, 8192);
  ------------------
  |  | 1295|  9.13k|#define CURLMAX(x, y) ((x) > (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1295:24): [True: 9.11k, False: 14]
  |  |  ------------------
  ------------------
  211|      0|#endif
  212|      0|  return H2_STREAM_WINDOW_SIZE_INITIAL;
  ------------------
  |  |   71|      0|#define H2_STREAM_WINDOW_SIZE_INITIAL  (64 * 1024)
  ------------------
  213|  9.13k|}
http2.c:cf_h2_destroy:
 2553|  4.41k|{
 2554|  4.41k|  struct cf_h2_ctx *ctx = cf->ctx;
 2555|       |
 2556|  4.41k|  (void)data;
 2557|  4.41k|  if(ctx) {
  ------------------
  |  Branch (2557:6): [True: 4.41k, False: 0]
  ------------------
 2558|  4.41k|    cf_h2_ctx_free(ctx);
 2559|       |    cf->ctx = NULL;
 2560|  4.41k|  }
 2561|  4.41k|}
http2.c:cf_h2_ctx_free:
  188|  4.41k|{
  189|  4.41k|  if(ctx && ctx->initialized) {
  ------------------
  |  Branch (189:6): [True: 4.41k, False: 0]
  |  Branch (189:13): [True: 4.41k, False: 0]
  ------------------
  190|  4.41k|    if(ctx->h2)
  ------------------
  |  Branch (190:8): [True: 4.41k, False: 0]
  ------------------
  191|  4.41k|      nghttp2_session_del(ctx->h2);
  192|  4.41k|    Curl_bufq_free(&ctx->inbufq);
  193|  4.41k|    Curl_bufq_free(&ctx->outbufq);
  194|  4.41k|    Curl_bufcp_free(&ctx->stream_bufcp);
  195|  4.41k|    curlx_dyn_free(&ctx->scratch);
  196|  4.41k|    Curl_uint32_hash_destroy(&ctx->streams);
  197|  4.41k|    memset(ctx, 0, sizeof(*ctx));
  198|  4.41k|  }
  199|  4.41k|  curlx_free(ctx);
  ------------------
  |  | 1482|  4.41k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  200|  4.41k|}
http2.c:cf_h2_connect:
 2501|  4.41k|{
 2502|  4.41k|  struct cf_h2_ctx *ctx = cf->ctx;
 2503|  4.41k|  CURLcode result = CURLE_OK;
 2504|  4.41k|  struct cf_call_data save;
 2505|  4.41k|  bool first_time = FALSE;
  ------------------
  |  | 1056|  4.41k|#define FALSE false
  ------------------
 2506|       |
 2507|  4.41k|  if(cf->connected) {
  ------------------
  |  Branch (2507:6): [True: 0, False: 4.41k]
  ------------------
 2508|      0|    *done = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2509|      0|    return CURLE_OK;
 2510|      0|  }
 2511|       |
 2512|       |  /* Connect the lower filters first */
 2513|  4.41k|  if(!cf->next->connected) {
  ------------------
  |  Branch (2513:6): [True: 0, False: 4.41k]
  ------------------
 2514|      0|    result = Curl_conn_cf_connect(cf->next, data, done);
 2515|      0|    if(result || !*done)
  ------------------
  |  Branch (2515:8): [True: 0, False: 0]
  |  Branch (2515:18): [True: 0, False: 0]
  ------------------
 2516|      0|      return result;
 2517|      0|  }
 2518|       |
 2519|  4.41k|  *done = FALSE;
  ------------------
  |  | 1056|  4.41k|#define FALSE false
  ------------------
 2520|       |
 2521|  4.41k|  CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  655|  4.41k|  do { \
  |  |  656|  4.41k|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  118|  4.41k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  657|  4.41k|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|  4.41k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  658|  4.41k|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  118|  4.41k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  659|  4.41k|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  118|  4.41k|#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); \
  |  |  ------------------
  |  |  |  |  864|  4.41k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  660|  4.41k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (660:11): [Folded, False: 4.41k]
  |  |  ------------------
  ------------------
  |  Branch (2521:3): [True: 4.41k, False: 0]
  |  Branch (2521:3): [True: 0, False: 0]
  |  Branch (2521:3): [True: 4.41k, False: 0]
  |  Branch (2521:3): [True: 0, False: 0]
  ------------------
 2522|  4.41k|  DEBUGASSERT(ctx->initialized);
  ------------------
  |  | 1083|  4.41k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2522:3): [True: 0, False: 4.41k]
  |  Branch (2522:3): [True: 4.41k, False: 0]
  ------------------
 2523|  4.41k|  if(!ctx->h2) {
  ------------------
  |  Branch (2523:6): [True: 4.41k, False: 0]
  ------------------
 2524|  4.41k|    result = cf_h2_ctx_open(cf, data);
 2525|  4.41k|    if(result)
  ------------------
  |  Branch (2525:8): [True: 0, False: 4.41k]
  ------------------
 2526|      0|      goto out;
 2527|  4.41k|    first_time = TRUE;
  ------------------
  |  | 1053|  4.41k|#define TRUE true
  ------------------
 2528|  4.41k|  }
 2529|       |
 2530|  4.41k|  if(!first_time) {
  ------------------
  |  Branch (2530:6): [True: 0, False: 4.41k]
  ------------------
 2531|      0|    result = h2_progress_ingress(cf, data, 0);
 2532|      0|    if(result)
  ------------------
  |  Branch (2532:8): [True: 0, False: 0]
  ------------------
 2533|      0|      goto out;
 2534|      0|  }
 2535|       |
 2536|       |  /* Send out our SETTINGS and ACKs and such. If that blocks, we
 2537|       |   * have it buffered and can count this filter as being connected */
 2538|  4.41k|  result = h2_progress_egress(cf, data);
 2539|  4.41k|  if(result && (result != CURLE_AGAIN))
  ------------------
  |  Branch (2539:6): [True: 1, False: 4.41k]
  |  Branch (2539:16): [True: 0, False: 1]
  ------------------
 2540|      0|    goto out;
 2541|       |
 2542|  4.41k|  *done = TRUE;
  ------------------
  |  | 1053|  4.41k|#define TRUE true
  ------------------
 2543|  4.41k|  cf->connected = TRUE;
  ------------------
  |  | 1053|  4.41k|#define TRUE true
  ------------------
 2544|  4.41k|  result = CURLE_OK;
 2545|       |
 2546|  4.41k|out:
 2547|  4.41k|  CURL_TRC_CF(data, cf, "cf_connect() -> %d, %d, ", (int)result, *done);
  ------------------
  |  |  153|  4.41k|  do {                                          \
  |  |  154|  4.41k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  4.41k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  8.82k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 4.41k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 4.41k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  8.82k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  4.41k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  4.41k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  4.41k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 4.41k]
  |  |  ------------------
  ------------------
 2548|  4.41k|  CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  663|  4.41k|  do { \
  |  |  664|  4.41k|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1083|  4.41k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  665|  4.41k|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|  4.41k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  666|  4.41k|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  118|  4.41k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  667|  4.41k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (667:11): [Folded, False: 4.41k]
  |  |  ------------------
  ------------------
  |  Branch (2548:3): [True: 0, False: 4.41k]
  |  Branch (2548:3): [True: 4.41k, False: 0]
  |  Branch (2548:3): [True: 4.41k, False: 0]
  |  Branch (2548:3): [True: 0, False: 0]
  |  Branch (2548:3): [True: 4.41k, False: 0]
  |  Branch (2548:3): [True: 0, False: 0]
  ------------------
 2549|  4.41k|  return result;
 2550|  4.41k|}
http2.c:cf_h2_ctx_open:
 2379|  4.41k|{
 2380|  4.41k|  struct cf_h2_ctx *ctx = cf->ctx;
 2381|  4.41k|  struct h2_stream_ctx *stream;
 2382|  4.41k|  CURLcode result = CURLE_OUT_OF_MEMORY;
 2383|  4.41k|  int rc;
 2384|  4.41k|  nghttp2_session_callbacks *cbs = NULL;
 2385|       |
 2386|  4.41k|  DEBUGASSERT(!ctx->h2);
  ------------------
  |  | 1083|  4.41k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2386:3): [True: 0, False: 4.41k]
  |  Branch (2386:3): [True: 4.41k, False: 0]
  ------------------
 2387|  4.41k|  DEBUGASSERT(ctx->initialized);
  ------------------
  |  | 1083|  4.41k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2387:3): [True: 0, False: 4.41k]
  |  Branch (2387:3): [True: 4.41k, False: 0]
  ------------------
 2388|       |
 2389|  4.41k|  rc = nghttp2_session_callbacks_new(&cbs);
 2390|  4.41k|  if(rc) {
  ------------------
  |  Branch (2390:6): [True: 0, False: 4.41k]
  ------------------
 2391|      0|    failf(data, "Could not initialize nghttp2 callbacks");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2392|      0|    goto out;
 2393|      0|  }
 2394|       |
 2395|  4.41k|  nghttp2_session_callbacks_set_send_callback(cbs, send_callback);
 2396|  4.41k|  nghttp2_session_callbacks_set_on_frame_recv_callback(cbs, on_frame_recv);
 2397|  4.41k|  nghttp2_session_callbacks_set_on_invalid_frame_recv_callback(cbs,
 2398|  4.41k|    cf_h2_on_invalid_frame_recv);
 2399|  4.41k|#ifdef CURLVERBOSE
 2400|  4.41k|  nghttp2_session_callbacks_set_on_frame_send_callback(cbs, on_frame_send);
 2401|  4.41k|#endif
 2402|  4.41k|  nghttp2_session_callbacks_set_on_data_chunk_recv_callback(
 2403|  4.41k|    cbs, on_data_chunk_recv);
 2404|  4.41k|  nghttp2_session_callbacks_set_on_stream_close_callback(cbs, on_stream_close);
 2405|  4.41k|  nghttp2_session_callbacks_set_on_begin_headers_callback(
 2406|  4.41k|    cbs, on_begin_headers);
 2407|  4.41k|  nghttp2_session_callbacks_set_on_header_callback(cbs, on_header);
 2408|  4.41k|#ifdef CURLVERBOSE
 2409|  4.41k|  nghttp2_session_callbacks_set_error_callback(cbs, error_callback);
 2410|  4.41k|#endif
 2411|       |
 2412|       |  /* The nghttp2 session is not yet setup, do it */
 2413|  4.41k|  rc = h2_client_new(cf, cbs);
 2414|  4.41k|  if(rc) {
  ------------------
  |  Branch (2414:6): [True: 0, False: 4.41k]
  ------------------
 2415|      0|    failf(data, "Could not initialize nghttp2");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2416|      0|    goto out;
 2417|      0|  }
 2418|  4.41k|  ctx->max_concurrent_streams = data->multi ?
  ------------------
  |  Branch (2418:33): [True: 4.41k, False: 0]
  ------------------
 2419|  4.41k|    Curl_multi_max_concurrent_streams(data->multi) :
 2420|  4.41k|    DEFAULT_MAX_CONCURRENT_STREAMS;
  ------------------
  |  |   32|  4.41k|#define DEFAULT_MAX_CONCURRENT_STREAMS 100
  ------------------
 2421|       |
 2422|  4.41k|  if(ctx->via_h1_upgrade) {
  ------------------
  |  Branch (2422:6): [True: 19, False: 4.39k]
  ------------------
 2423|       |    /* HTTP/1.1 Upgrade issued. H2 Settings have already been submitted
 2424|       |     * in the H1 request and we upgrade from there. This stream
 2425|       |     * is opened implicitly as #1. */
 2426|     19|    uint8_t binsettings[H2_BINSETTINGS_LEN];
 2427|     19|    ssize_t rclen;
 2428|     19|    size_t binlen; /* length of the binsettings data */
 2429|       |
 2430|     19|    rclen = populate_binsettings(binsettings, data);
 2431|       |
 2432|     19|    if(!curlx_sztouz(rclen, &binlen) || !binlen) {
  ------------------
  |  Branch (2432:8): [True: 0, False: 19]
  |  Branch (2432:41): [True: 0, False: 19]
  ------------------
 2433|      0|      failf(data, "nghttp2 unexpectedly failed on pack_settings_payload");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2434|      0|      result = CURLE_FAILED_INIT;
 2435|      0|      goto out;
 2436|      0|    }
 2437|       |
 2438|     19|    result = http2_data_setup(cf, data, &stream);
 2439|     19|    if(result)
  ------------------
  |  Branch (2439:8): [True: 0, False: 19]
  ------------------
 2440|      0|      goto out;
 2441|     19|    DEBUGASSERT(stream);
  ------------------
  |  | 1083|     19|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2441:5): [True: 0, False: 19]
  |  Branch (2441:5): [True: 19, False: 0]
  ------------------
 2442|     19|    stream->id = 1;
 2443|       |    /* queue SETTINGS frame (again) */
 2444|     19|    rc = nghttp2_session_upgrade2(ctx->h2, binsettings, binlen,
 2445|     19|                                  data->state.httpreq == HTTPREQ_HEAD,
 2446|     19|                                  NULL);
 2447|     19|    if(rc) {
  ------------------
  |  Branch (2447:8): [True: 0, False: 19]
  ------------------
 2448|      0|      failf(data, "nghttp2_session_upgrade2() failed: %s(%d)",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2449|      0|            nghttp2_strerror(rc), rc);
 2450|      0|      result = CURLE_HTTP2;
 2451|      0|      goto out;
 2452|      0|    }
 2453|       |
 2454|     19|    rc = nghttp2_session_set_stream_user_data(ctx->h2, stream->id,
 2455|     19|                                              data);
 2456|     19|    if(rc) {
  ------------------
  |  Branch (2456:8): [True: 0, False: 19]
  ------------------
 2457|      0|      infof(data, "http/2: failed to set user_data for stream %d",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2458|      0|            stream->id);
 2459|      0|      DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2459:7): [Folded, False: 0]
  |  Branch (2459:7): [Folded, False: 0]
  ------------------
 2460|      0|    }
 2461|     19|    CURL_TRC_CF(data, cf, "created session via Upgrade");
  ------------------
  |  |  153|     19|  do {                                          \
  |  |  154|     19|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|     19|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|     38|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 19, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 19]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|     38|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|     19|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|     19|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|     19|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 19]
  |  |  ------------------
  ------------------
 2462|     19|  }
 2463|  4.39k|  else {
 2464|  4.39k|    nghttp2_settings_entry iv[H2_SETTINGS_IV_LEN];
 2465|  4.39k|    size_t ivlen;
 2466|       |
 2467|  4.39k|    ivlen = populate_settings(iv, data, ctx);
 2468|  4.39k|    rc = nghttp2_submit_settings(ctx->h2, NGHTTP2_FLAG_NONE,
 2469|  4.39k|                                 iv, ivlen);
 2470|  4.39k|    if(rc) {
  ------------------
  |  Branch (2470:8): [True: 0, False: 4.39k]
  ------------------
 2471|      0|      failf(data, "nghttp2_submit_settings() failed: %s(%d)",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2472|      0|            nghttp2_strerror(rc), rc);
 2473|      0|      result = CURLE_HTTP2;
 2474|      0|      goto out;
 2475|      0|    }
 2476|  4.39k|  }
 2477|       |
 2478|  4.41k|  rc = nghttp2_session_set_local_window_size(ctx->h2, NGHTTP2_FLAG_NONE, 0,
 2479|  4.41k|                                             HTTP2_HUGE_WINDOW_SIZE);
  ------------------
  |  |   85|  4.41k|#define HTTP2_HUGE_WINDOW_SIZE (100 * H2_STREAM_WINDOW_SIZE_MAX)
  |  |  ------------------
  |  |  |  |   67|  4.41k|#define H2_STREAM_WINDOW_SIZE_MAX   (10 * 1024 * 1024)
  |  |  ------------------
  ------------------
 2480|  4.41k|  if(rc) {
  ------------------
  |  Branch (2480:6): [True: 0, False: 4.41k]
  ------------------
 2481|      0|    failf(data, "nghttp2_session_set_local_window_size() failed: %s(%d)",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2482|      0|          nghttp2_strerror(rc), rc);
 2483|      0|    result = CURLE_HTTP2;
 2484|      0|    goto out;
 2485|      0|  }
 2486|       |
 2487|       |  /* all set, traffic will be send on connect */
 2488|  4.41k|  result = CURLE_OK;
 2489|  4.41k|  CURL_TRC_CF(data, cf, "[0] created h2 session%s",
  ------------------
  |  |  153|  4.41k|  do {                                          \
  |  |  154|  4.41k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  4.41k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  8.82k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 4.41k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 4.41k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  8.82k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  4.41k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  4.41k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (155:35): [True: 0, False: 0]
  |  |  ------------------
  |  |  156|  4.41k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 4.41k]
  |  |  ------------------
  ------------------
 2490|  4.41k|              ctx->via_h1_upgrade ? " (via h1 upgrade)" : "");
 2491|       |
 2492|  4.41k|out:
 2493|  4.41k|  if(cbs)
  ------------------
  |  Branch (2493:6): [True: 4.41k, False: 0]
  ------------------
 2494|  4.41k|    nghttp2_session_callbacks_del(cbs);
 2495|  4.41k|  return result;
 2496|  4.41k|}
http2.c:send_callback:
  608|  29.3k|{
  609|  29.3k|  struct Curl_cfilter *cf = userp;
  610|  29.3k|  struct cf_h2_ctx *ctx = cf->ctx;
  611|  29.3k|  struct Curl_easy *data = CF_DATA_CURRENT(cf);
  ------------------
  |  |  684|  29.3k|#define CF_DATA_CURRENT(cf) ((cf) ? (CF_CTX_CALL_DATA(cf).data) : NULL)
  |  |  ------------------
  |  |  |  |  118|  29.3k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  |  Branch (684:30): [True: 29.3k, False: 0]
  |  |  ------------------
  ------------------
  612|  29.3k|  size_t nwritten;
  613|  29.3k|  CURLcode result = CURLE_OK;
  614|       |
  615|  29.3k|  (void)h2;
  616|  29.3k|  (void)flags;
  617|  29.3k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|  29.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (617:3): [True: 0, False: 29.3k]
  |  Branch (617:3): [True: 29.3k, False: 0]
  ------------------
  618|       |
  619|  29.3k|  if(!cf->connected)
  ------------------
  |  Branch (619:6): [True: 13.2k, False: 16.1k]
  ------------------
  620|  13.2k|    result = Curl_bufq_write(&ctx->outbufq, buf, blen, &nwritten);
  621|  16.1k|  else
  622|  16.1k|    result = Curl_cf_send_bufq(cf->next, data, &ctx->outbufq, buf, blen,
  623|  16.1k|                               &nwritten);
  624|       |
  625|  29.3k|  if(result) {
  ------------------
  |  Branch (625:6): [True: 2.23k, False: 27.1k]
  ------------------
  626|  2.23k|    if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (626:8): [True: 2.23k, False: 0]
  ------------------
  627|  2.23k|      ctx->nw_out_blocked = 1;
  628|  2.23k|      return NGHTTP2_ERR_WOULDBLOCK;
  629|  2.23k|    }
  630|      0|    failf(data, "Failed sending HTTP2 data");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  631|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
  632|  2.23k|  }
  633|       |
  634|  27.1k|  if(!nwritten) {
  ------------------
  |  Branch (634:6): [True: 0, False: 27.1k]
  ------------------
  635|      0|    ctx->nw_out_blocked = 1;
  636|      0|    return NGHTTP2_ERR_WOULDBLOCK;
  637|      0|  }
  638|  27.1k|  return (nwritten > SSIZE_MAX) ?
  ------------------
  |  Branch (638:10): [True: 0, False: 27.1k]
  ------------------
  639|  27.1k|    NGHTTP2_ERR_CALLBACK_FAILURE : (ssize_t)nwritten;
  640|  27.1k|}
http2.c:on_frame_recv:
 1156|  4.91k|{
 1157|  4.91k|  struct Curl_cfilter *cf = userp;
 1158|  4.91k|  struct cf_h2_ctx *ctx = cf->ctx;
 1159|  4.91k|  struct Curl_easy *data = CF_DATA_CURRENT(cf), *data_s;
  ------------------
  |  |  684|  4.91k|#define CF_DATA_CURRENT(cf) ((cf) ? (CF_CTX_CALL_DATA(cf).data) : NULL)
  |  |  ------------------
  |  |  |  |  118|  4.91k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  |  Branch (684:30): [True: 4.91k, False: 0]
  |  |  ------------------
  ------------------
 1160|  4.91k|  int32_t stream_id = frame->hd.stream_id;
 1161|       |
 1162|  4.91k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|  4.91k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1162:3): [True: 0, False: 4.91k]
  |  Branch (1162:3): [True: 4.91k, False: 0]
  ------------------
 1163|  4.91k|#ifdef CURLVERBOSE
 1164|  4.91k|  if(Curl_trc_cf_is_verbose(cf, data)) {
  ------------------
  |  |  326|  4.91k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  ------------------
  |  |  |  |  322|  9.82k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 4.91k, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 4.91k]
  |  |  |  |  ------------------
  |  |  |  |  323|  9.82k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  327|  4.91k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  ------------------
  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  ------------------
  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1165|      0|    char buffer[256];
 1166|      0|    int len;
 1167|      0|    len = Curl_nghttp2_fr_print(frame, buffer, sizeof(buffer) - 1);
 1168|      0|    buffer[len] = 0;
 1169|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1170|      0|  }
 1171|  4.91k|#endif /* CURLVERBOSE */
 1172|       |
 1173|  4.91k|  if(!stream_id) {
  ------------------
  |  Branch (1173:6): [True: 4.44k, False: 466]
  ------------------
 1174|       |    /* stream ID zero is for connection-oriented stuff */
 1175|  4.44k|    DEBUGASSERT(data);
  ------------------
  |  | 1083|  4.44k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1175:5): [True: 0, False: 4.44k]
  |  Branch (1175:5): [True: 4.44k, False: 0]
  ------------------
 1176|  4.44k|    switch(frame->hd.type) {
 1177|  4.22k|    case NGHTTP2_SETTINGS: {
  ------------------
  |  Branch (1177:5): [True: 4.22k, False: 224]
  ------------------
 1178|  4.22k|      if(!(frame->hd.flags & NGHTTP2_FLAG_ACK)) {
  ------------------
  |  Branch (1178:10): [True: 4.09k, False: 128]
  ------------------
 1179|  4.09k|        uint32_t max_conn = ctx->max_concurrent_streams;
 1180|  4.09k|        ctx->max_concurrent_streams = nghttp2_session_get_remote_settings(
 1181|  4.09k|          session, NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS);
 1182|  4.09k|        ctx->enable_push = nghttp2_session_get_remote_settings(
 1183|  4.09k|          session, NGHTTP2_SETTINGS_ENABLE_PUSH) != 0;
 1184|  4.09k|        CURL_TRC_CF(data, cf, "[0] MAX_CONCURRENT_STREAMS: %u",
  ------------------
  |  |  153|  4.09k|  do {                                          \
  |  |  154|  4.09k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  4.09k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  8.18k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 4.09k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 4.09k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  8.18k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  4.09k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  4.09k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  4.09k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 4.09k]
  |  |  ------------------
  ------------------
 1185|  4.09k|                    ctx->max_concurrent_streams);
 1186|  4.09k|        CURL_TRC_CF(data, cf, "[0] ENABLE_PUSH: %s",
  ------------------
  |  |  153|  4.09k|  do {                                          \
  |  |  154|  4.09k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  4.09k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  8.18k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 4.09k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 4.09k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  8.18k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  4.09k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  4.09k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (155:35): [True: 0, False: 0]
  |  |  ------------------
  |  |  156|  4.09k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 4.09k]
  |  |  ------------------
  ------------------
 1187|  4.09k|                    ctx->enable_push ? "TRUE" : "false");
 1188|  4.09k|        if(data && max_conn != ctx->max_concurrent_streams) {
  ------------------
  |  Branch (1188:12): [True: 4.09k, False: 0]
  |  Branch (1188:20): [True: 3.22k, False: 870]
  ------------------
 1189|       |          /* only signal change if the value actually changed */
 1190|  3.22k|          CURL_TRC_CF(data, cf, "[0] notify MAX_CONCURRENT_STREAMS: %u",
  ------------------
  |  |  153|  3.22k|  do {                                          \
  |  |  154|  3.22k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  3.22k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  6.44k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 3.22k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 3.22k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  6.44k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  3.22k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  3.22k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  3.22k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 3.22k]
  |  |  ------------------
  ------------------
 1191|  3.22k|                      ctx->max_concurrent_streams);
 1192|  3.22k|          Curl_multi_connchanged(data->multi);
 1193|  3.22k|        }
 1194|       |        /* Since the initial stream window is 64K, a request might be on HOLD,
 1195|       |         * due to exhaustion. The (initial) SETTINGS may announce a much larger
 1196|       |         * window and *assume* that we treat this like a WINDOW_UPDATE. Some
 1197|       |         * servers send an explicit WINDOW_UPDATE, but not all seem to do that.
 1198|       |         * To be safe, we UNHOLD a stream in order not to stall. */
 1199|  4.09k|        if(CURL_REQ_WANT_SEND(data))
  ------------------
  |  |   39|  4.09k|#define CURL_REQ_WANT_SEND(d)  ((d)->req.io_flags & REQ_IO_SEND)
  |  |  ------------------
  |  |  |  |   36|  4.09k|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  |  |  |  Branch (39:32): [True: 399, False: 3.69k]
  |  |  ------------------
  ------------------
 1200|    399|          Curl_multi_mark_dirty(data);
 1201|  4.09k|      }
 1202|  4.22k|      break;
 1203|      0|    }
 1204|     96|    case NGHTTP2_GOAWAY:
  ------------------
  |  Branch (1204:5): [True: 96, False: 4.34k]
  ------------------
 1205|     96|      ctx->rcvd_goaway = TRUE;
  ------------------
  |  | 1053|     96|#define TRUE true
  ------------------
 1206|     96|      ctx->goaway_error = frame->goaway.error_code;
 1207|     96|      ctx->remote_max_sid = frame->goaway.last_stream_id;
 1208|     96|      if(data) {
  ------------------
  |  Branch (1208:10): [True: 96, False: 0]
  ------------------
 1209|     96|        infof(data, "received GOAWAY, error=%u, last_stream=%d",
  ------------------
  |  |  143|     96|  do {                               \
  |  |  144|     96|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|     96|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 96, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 96]
  |  |  |  |  ------------------
  |  |  |  |  323|     96|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     96|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     96|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 96]
  |  |  ------------------
  ------------------
 1210|     96|              ctx->goaway_error, ctx->remote_max_sid);
 1211|     96|        Curl_multi_connchanged(data->multi);
 1212|     96|      }
 1213|     96|      break;
 1214|    128|    default:
  ------------------
  |  Branch (1214:5): [True: 128, False: 4.31k]
  ------------------
 1215|    128|      break;
 1216|  4.44k|    }
 1217|  4.44k|    return 0;
 1218|  4.44k|  }
 1219|       |
 1220|    466|  data_s = nghttp2_session_get_stream_user_data(session, stream_id);
 1221|    466|  if(!data_s) {
  ------------------
  |  Branch (1221:6): [True: 2, False: 464]
  ------------------
 1222|      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))        \
  |  |  ------------------
  |  |  |  |  326|      2|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      4|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 2, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 2]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      4|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      2|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1223|      2|    return 0;
 1224|      2|  }
 1225|       |
 1226|    464|  return on_stream_frame(cf, data_s, frame) ? NGHTTP2_ERR_CALLBACK_FAILURE : 0;
  ------------------
  |  Branch (1226:10): [True: 0, False: 464]
  ------------------
 1227|    466|}
http2.c:on_stream_frame:
  944|    464|{
  945|    464|  struct cf_h2_ctx *ctx = cf->ctx;
  946|    464|  struct h2_stream_ctx *stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  257|    464|  ((struct h2_stream_ctx *)(                                             \
  |  |  258|    464|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 464, False: 0]
  |  |  ------------------
  ------------------
  947|    464|  int32_t stream_id = frame->hd.stream_id;
  948|    464|  int rv;
  949|       |
  950|    464|  if(!stream) {
  ------------------
  |  Branch (950:6): [True: 0, False: 464]
  ------------------
  951|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  952|      0|    return CURLE_FAILED_INIT;
  953|      0|  }
  954|       |
  955|    464|  switch(frame->hd.type) {
  956|     68|  case NGHTTP2_DATA:
  ------------------
  |  Branch (956:3): [True: 68, False: 396]
  ------------------
  957|     68|    CURL_TRC_CF(data, cf, "[%d] DATA, window=%d/%d",
  ------------------
  |  |  153|     68|  do {                                          \
  |  |  154|     68|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|     68|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    136|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 68, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 68]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    136|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|     68|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|     68|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|     68|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 68]
  |  |  ------------------
  ------------------
  958|     68|                stream_id,
  959|     68|                nghttp2_session_get_stream_effective_recv_data_length(
  960|     68|                  ctx->h2, stream->id),
  961|     68|                nghttp2_session_get_stream_effective_local_window_size(
  962|     68|                  ctx->h2, stream->id));
  963|       |    /* If !body started on this stream, then receiving DATA is illegal. */
  964|     68|    if(!stream->bodystarted) {
  ------------------
  |  Branch (964:8): [True: 0, False: 68]
  ------------------
  965|      0|      rv = nghttp2_submit_rst_stream(ctx->h2, NGHTTP2_FLAG_NONE,
  966|      0|                                     stream_id, NGHTTP2_PROTOCOL_ERROR);
  967|       |
  968|      0|      if(nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (968:10): [True: 0, False: 0]
  ------------------
  969|      0|        return CURLE_RECV_ERROR;
  970|      0|      }
  971|      0|    }
  972|     68|    break;
  973|    264|  case NGHTTP2_HEADERS:
  ------------------
  |  Branch (973:3): [True: 264, False: 200]
  ------------------
  974|    264|    if(stream->bodystarted) {
  ------------------
  |  Branch (974:8): [True: 9, False: 255]
  ------------------
  975|       |      /* Only valid HEADERS after body started is trailer HEADERS. We
  976|       |         buffer them in on_header callback. */
  977|      9|      break;
  978|      9|    }
  979|       |
  980|       |    /* nghttp2 guarantees that :status is received, and we store it to
  981|       |       stream->status_code. Fuzzing has proven this can still be reached
  982|       |       without status code having been set. */
  983|    255|    if(stream->status_code == -1)
  ------------------
  |  Branch (983:8): [True: 0, False: 255]
  ------------------
  984|      0|      return CURLE_RECV_ERROR;
  985|       |
  986|       |    /* Only final status code signals the end of header */
  987|    255|    if(stream->status_code / 100 != 1)
  ------------------
  |  Branch (987:8): [True: 255, False: 0]
  ------------------
  988|    255|      stream->bodystarted = TRUE;
  ------------------
  |  | 1053|    255|#define TRUE true
  ------------------
  989|      0|    else
  990|      0|      stream->status_code = -1;
  991|       |
  992|    255|    h2_xfer_write_resp_hd(cf, data, stream, STRCONST("\r\n"),
  ------------------
  |  | 1305|    255|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|    255|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  993|    255|                          (bool)stream->closed);
  994|       |
  995|    255|    if(stream->status_code / 100 != 1) {
  ------------------
  |  Branch (995:8): [True: 255, False: 0]
  ------------------
  996|    255|      stream->resp_hds_complete = TRUE;
  ------------------
  |  | 1053|    255|#define TRUE true
  ------------------
  997|    255|    }
  998|    255|    Curl_multi_mark_dirty(data);
  999|    255|    break;
 1000|      0|  case NGHTTP2_PUSH_PROMISE:
  ------------------
  |  Branch (1000:3): [True: 0, False: 464]
  ------------------
 1001|      0|    rv = push_promise(cf, data, &frame->push_promise);
 1002|      0|    if(rv) { /* deny! */
  ------------------
  |  Branch (1002:8): [True: 0, False: 0]
  ------------------
 1003|      0|      DEBUGASSERT((rv > CURL_PUSH_OK) && (rv <= CURL_PUSH_ERROROUT));
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1003:7): [True: 0, False: 0]
  |  Branch (1003:7): [True: 0, False: 0]
  |  Branch (1003:7): [True: 0, False: 0]
  |  Branch (1003:7): [True: 0, False: 0]
  ------------------
 1004|      0|      rv = nghttp2_submit_rst_stream(ctx->h2, NGHTTP2_FLAG_NONE,
 1005|      0|                                     frame->push_promise.promised_stream_id,
 1006|      0|                                     NGHTTP2_CANCEL);
 1007|      0|      if(nghttp2_is_fatal(rv))
  ------------------
  |  Branch (1007:10): [True: 0, False: 0]
  ------------------
 1008|      0|        return CURLE_SEND_ERROR;
 1009|      0|      else if(rv == CURL_PUSH_ERROROUT) {
  ------------------
  |  |  507|      0|#define CURL_PUSH_ERROROUT 2 /* added in 7.72.0 */
  ------------------
  |  Branch (1009:15): [True: 0, False: 0]
  ------------------
 1010|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1011|      0|                    stream_id);
 1012|      0|        return CURLE_RECV_ERROR;
 1013|      0|      }
 1014|      0|    }
 1015|      0|    break;
 1016|     46|  case NGHTTP2_RST_STREAM:
  ------------------
  |  Branch (1016:3): [True: 46, False: 418]
  ------------------
 1017|     46|    if(frame->rst_stream.error_code)
  ------------------
  |  Branch (1017:8): [True: 45, False: 1]
  ------------------
 1018|     45|      stream->reset_by_server = TRUE;
  ------------------
  |  | 1053|     45|#define TRUE true
  ------------------
 1019|     46|    Curl_multi_mark_dirty(data);
 1020|     46|    break;
 1021|     86|  case NGHTTP2_WINDOW_UPDATE:
  ------------------
  |  Branch (1021:3): [True: 86, False: 378]
  ------------------
 1022|     86|    if(CURL_REQ_WANT_SEND(data) && Curl_bufq_is_empty(&stream->sendbuf)) {
  ------------------
  |  |   39|    172|#define CURL_REQ_WANT_SEND(d)  ((d)->req.io_flags & REQ_IO_SEND)
  |  |  ------------------
  |  |  |  |   36|     86|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  |  |  |  Branch (39:32): [True: 26, False: 60]
  |  |  ------------------
  ------------------
  |  Branch (1022:36): [True: 16, False: 10]
  ------------------
 1023|       |      /* need more data, force processing of transfer */
 1024|     16|      Curl_multi_mark_dirty(data);
 1025|     16|    }
 1026|     70|    else if(!Curl_bufq_is_empty(&stream->sendbuf)) {
  ------------------
  |  Branch (1026:13): [True: 20, False: 50]
  ------------------
 1027|       |      /* resume the potentially suspended stream */
 1028|     20|      rv = nghttp2_session_resume_data(ctx->h2, stream->id);
 1029|     20|      if(nghttp2_is_fatal(rv))
  ------------------
  |  Branch (1029:10): [True: 0, False: 20]
  ------------------
 1030|      0|        return CURLE_SEND_ERROR;
 1031|     20|    }
 1032|     86|    break;
 1033|     86|  default:
  ------------------
  |  Branch (1033:3): [True: 0, False: 464]
  ------------------
 1034|      0|    break;
 1035|    464|  }
 1036|       |
 1037|    464|  if(frame->hd.flags & NGHTTP2_FLAG_END_STREAM) {
  ------------------
  |  Branch (1037:6): [True: 82, False: 382]
  ------------------
 1038|     82|    if(!stream->closed && !stream->body_eos &&
  ------------------
  |  Branch (1038:8): [True: 82, False: 0]
  |  Branch (1038:27): [True: 11, False: 71]
  ------------------
 1039|     11|       ((stream->status_code >= 400) || (stream->status_code < 200))) {
  ------------------
  |  Branch (1039:9): [True: 3, False: 8]
  |  Branch (1039:41): [True: 0, False: 8]
  ------------------
 1040|       |      /* The server did not give us a positive response and we are not
 1041|       |       * done uploading the request body. We need to stop doing that and
 1042|       |       * also inform the server that we aborted our side. */
 1043|      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))        \
  |  |  ------------------
  |  |  |  |  326|      3|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      6|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 3, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 3]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      6|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      3|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1044|      3|                  "HTTP status %d, abort upload by RST",
 1045|      3|                  stream_id, stream->status_code);
 1046|      3|      nghttp2_submit_rst_stream(ctx->h2, NGHTTP2_FLAG_NONE,
 1047|      3|                                stream->id, NGHTTP2_STREAM_CLOSED);
 1048|       |      stream->closed = TRUE;
  ------------------
  |  | 1053|      3|#define TRUE true
  ------------------
 1049|      3|    }
 1050|     82|    Curl_multi_mark_dirty(data);
 1051|     82|  }
 1052|    464|  return CURLE_OK;
 1053|    464|}
http2.c:h2_xfer_write_resp_hd:
  899|  37.2k|{
  900|       |  /* If we already encountered an error, skip further writes */
  901|  37.2k|  if(!stream->xfer_result) {
  ------------------
  |  Branch (901:6): [True: 35.4k, False: 1.84k]
  ------------------
  902|  35.4k|    stream->xfer_result = Curl_xfer_write_resp_hd(data, buf, blen, eos);
  903|  35.4k|    if(!stream->xfer_result && !eos)
  ------------------
  |  Branch (903:8): [True: 35.3k, False: 95]
  |  Branch (903:32): [True: 35.3k, False: 0]
  ------------------
  904|  35.3k|      stream->xfer_result = cf_h2_update_local_win(cf, data, stream);
  905|  35.4k|    if(stream->xfer_result)
  ------------------
  |  Branch (905:8): [True: 95, False: 35.3k]
  ------------------
  906|     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))        \
  |  |  ------------------
  |  |  |  |  326|     95|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    190|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 95, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 95]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    190|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|     95|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  907|  35.4k|                  stream->id, (int)stream->xfer_result, blen);
  908|  35.4k|  }
  909|  37.2k|}
http2.c:cf_h2_update_local_win:
  303|  68.0k|{
  304|  68.0k|  struct cf_h2_ctx *ctx = cf->ctx;
  305|  68.0k|  int32_t dwsize;
  306|  68.0k|  int rv;
  307|       |
  308|  68.0k|  dwsize = (stream->write_paused || stream->xfer_result) ?
  ------------------
  |  Branch (308:13): [True: 0, False: 68.0k]
  |  Branch (308:37): [True: 0, False: 68.0k]
  ------------------
  309|  68.0k|           0 : cf_h2_get_desired_local_win(cf, data);
  310|  68.0k|  if(dwsize != stream->local_window_size) {
  ------------------
  |  Branch (310:6): [True: 4.78k, False: 63.2k]
  ------------------
  311|  4.78k|    int32_t wsize = nghttp2_session_get_stream_effective_local_window_size(
  312|  4.78k|                      ctx->h2, stream->id);
  313|  4.78k|    if(dwsize > wsize) {
  ------------------
  |  Branch (313:8): [True: 90, False: 4.69k]
  ------------------
  314|     90|      rv = nghttp2_session_set_local_window_size(ctx->h2, NGHTTP2_FLAG_NONE,
  315|     90|                                                 stream->id, dwsize);
  316|     90|      if(rv) {
  ------------------
  |  Branch (316:10): [True: 0, False: 90]
  ------------------
  317|      0|        failf(data, "[%d] nghttp2 set_local_window_size(%d) failed: "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  318|      0|              "%s(%d)", stream->id, dwsize, nghttp2_strerror(rv), rv);
  319|      0|        return CURLE_HTTP2;
  320|      0|      }
  321|     90|      rv = nghttp2_submit_window_update(ctx->h2, NGHTTP2_FLAG_NONE,
  322|     90|                                        stream->id, dwsize - wsize);
  323|     90|      if(rv) {
  ------------------
  |  Branch (323:10): [True: 0, False: 90]
  ------------------
  324|      0|        failf(data, "[%d] nghttp2_submit_window_update() failed: "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  325|      0|              "%s(%d)", stream->id, nghttp2_strerror(rv), rv);
  326|      0|        return CURLE_HTTP2;
  327|      0|      }
  328|     90|      stream->local_window_size = dwsize;
  329|     90|      CURL_TRC_CF(data, cf, "[%d] local window update by %d",
  ------------------
  |  |  153|     90|  do {                                          \
  |  |  154|     90|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|     90|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    180|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 90, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 90]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    180|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|     90|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|     90|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|     90|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 90]
  |  |  ------------------
  ------------------
  330|     90|                  stream->id, dwsize - wsize);
  331|     90|    }
  332|  4.69k|    else {
  333|  4.69k|      rv = nghttp2_session_set_local_window_size(ctx->h2, NGHTTP2_FLAG_NONE,
  334|  4.69k|                                                 stream->id, dwsize);
  335|  4.69k|      if(rv) {
  ------------------
  |  Branch (335:10): [True: 0, False: 4.69k]
  ------------------
  336|      0|        failf(data, "[%d] nghttp2_session_set_local_window_size() failed: "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  337|      0|              "%s(%d)", stream->id, nghttp2_strerror(rv), rv);
  338|      0|        return CURLE_HTTP2;
  339|      0|      }
  340|  4.69k|      stream->local_window_size = dwsize;
  341|  4.69k|      CURL_TRC_CF(data, cf, "[%d] local window size now %d",
  ------------------
  |  |  153|  4.69k|  do {                                          \
  |  |  154|  4.69k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  4.69k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  9.39k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 4.69k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 4.69k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  9.39k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  4.69k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  4.69k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  4.69k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 4.69k]
  |  |  ------------------
  ------------------
  342|  4.69k|                  stream->id, dwsize);
  343|  4.69k|    }
  344|  4.78k|  }
  345|  68.0k|  return CURLE_OK;
  346|  68.0k|}
http2.c:cf_h2_get_desired_local_win:
  287|  68.0k|{
  288|  68.0k|  curl_off_t avail = Curl_rlimit_avail(&data->progress.dl.rlimit, NULL);
  289|       |
  290|  68.0k|  (void)cf;
  291|  68.0k|  if(avail < CURL_OFF_T_MAX) { /* limit in place */
  ------------------
  |  |  596|  68.0k|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  |  Branch (291:6): [True: 68.0k, False: 0]
  ------------------
  292|  68.0k|    if(avail <= 0)
  ------------------
  |  Branch (292:8): [True: 0, False: 68.0k]
  ------------------
  293|      0|      return 0;
  294|  68.0k|    else if(avail < INT32_MAX)
  ------------------
  |  Branch (294:13): [True: 68.0k, False: 0]
  ------------------
  295|  68.0k|      return (int32_t)avail;
  296|  68.0k|  }
  297|      0|  return H2_STREAM_WINDOW_SIZE_MAX;
  ------------------
  |  |   67|      0|#define H2_STREAM_WINDOW_SIZE_MAX   (10 * 1024 * 1024)
  ------------------
  298|  68.0k|}
http2.c:http2_data_done:
  417|  4.42k|{
  418|  4.42k|  struct cf_h2_ctx *ctx = cf->ctx;
  419|  4.42k|  struct h2_stream_ctx *stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  257|  4.42k|  ((struct h2_stream_ctx *)(                                             \
  |  |  258|  4.42k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 4.42k, False: 0]
  |  |  ------------------
  ------------------
  420|       |
  421|  4.42k|  DEBUGASSERT(ctx);
  ------------------
  |  | 1083|  4.42k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (421:3): [True: 0, False: 4.42k]
  |  Branch (421:3): [True: 4.42k, False: 0]
  ------------------
  422|  4.42k|  if(!stream || !ctx->initialized)
  ------------------
  |  Branch (422:6): [True: 0, False: 4.42k]
  |  Branch (422:17): [True: 0, False: 4.42k]
  ------------------
  423|      0|    return;
  424|       |
  425|  4.42k|  if(ctx->h2) {
  ------------------
  |  Branch (425:6): [True: 4.42k, False: 0]
  ------------------
  426|  4.42k|    bool flush_egress = FALSE;
  ------------------
  |  | 1056|  4.42k|#define FALSE false
  ------------------
  427|       |    /* returns error if stream not known, which is fine here */
  428|  4.42k|    (void)nghttp2_session_set_stream_user_data(ctx->h2, stream->id, NULL);
  429|       |
  430|  4.42k|    if(!stream->closed && stream->id > 0) {
  ------------------
  |  Branch (430:8): [True: 3.83k, False: 587]
  |  Branch (430:27): [True: 3.81k, False: 19]
  ------------------
  431|       |      /* RST_STREAM */
  432|  3.81k|      CURL_TRC_CF(data, cf, "[%d] premature DATA_DONE, RST stream",
  ------------------
  |  |  153|  3.81k|  do {                                          \
  |  |  154|  3.81k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  3.81k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  7.63k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 3.81k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 3.81k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  7.63k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  3.81k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  3.81k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  3.81k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 3.81k]
  |  |  ------------------
  ------------------
  433|  3.81k|                  stream->id);
  434|  3.81k|      stream->closed = TRUE;
  ------------------
  |  | 1053|  3.81k|#define TRUE true
  ------------------
  435|  3.81k|      stream->reset = TRUE;
  ------------------
  |  | 1053|  3.81k|#define TRUE true
  ------------------
  436|  3.81k|      nghttp2_submit_rst_stream(ctx->h2, NGHTTP2_FLAG_NONE,
  437|  3.81k|                                stream->id, NGHTTP2_STREAM_CLOSED);
  438|  3.81k|      flush_egress = TRUE;
  ------------------
  |  | 1053|  3.81k|#define TRUE true
  ------------------
  439|  3.81k|    }
  440|       |
  441|  4.42k|    if(flush_egress) {
  ------------------
  |  Branch (441:8): [True: 3.81k, False: 606]
  ------------------
  442|  3.81k|      (void)nghttp2_session_send(ctx->h2);
  443|  3.81k|      (void)nw_out_flush(cf, data);
  444|  3.81k|    }
  445|  4.42k|  }
  446|       |
  447|  4.42k|  Curl_uint32_hash_remove(&ctx->streams, data->mid);
  448|  4.42k|}
http2.c:nw_out_flush:
  395|  26.9k|{
  396|  26.9k|  struct cf_h2_ctx *ctx = cf->ctx;
  397|  26.9k|  size_t nwritten;
  398|  26.9k|  CURLcode result;
  399|       |
  400|  26.9k|  if(Curl_bufq_is_empty(&ctx->outbufq))
  ------------------
  |  Branch (400:6): [True: 11.6k, False: 15.2k]
  ------------------
  401|  11.6k|    return CURLE_OK;
  402|       |
  403|  15.2k|  result = Curl_cf_send_bufq(cf->next, data, &ctx->outbufq, NULL, 0,
  404|  15.2k|                             &nwritten);
  405|  15.2k|  if(result) {
  ------------------
  |  Branch (405:6): [True: 2.63k, False: 12.6k]
  ------------------
  406|  2.63k|    if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (406:8): [True: 2.63k, False: 0]
  ------------------
  407|  2.63k|      CURL_TRC_CF(data, cf, "flush nw send buffer(%zu) -> EAGAIN",
  ------------------
  |  |  153|  2.63k|  do {                                          \
  |  |  154|  2.63k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  2.63k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  5.27k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 2.63k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 2.63k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  5.27k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  2.63k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  2.63k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  2.63k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 2.63k]
  |  |  ------------------
  ------------------
  408|  2.63k|                  Curl_bufq_len(&ctx->outbufq));
  409|  2.63k|      ctx->nw_out_blocked = 1;
  410|  2.63k|    }
  411|  2.63k|    return result;
  412|  2.63k|  }
  413|  12.6k|  return Curl_bufq_is_empty(&ctx->outbufq) ? CURLE_OK : CURLE_AGAIN;
  ------------------
  |  Branch (413:10): [True: 12.6k, False: 27]
  ------------------
  414|  15.2k|}
http2.c:free_push_headers:
  151|  4.42k|{
  152|  4.42k|  size_t i;
  153|  4.42k|  for(i = 0; i < stream->push_headers_used; i++)
  ------------------
  |  Branch (153:14): [True: 0, False: 4.42k]
  ------------------
  154|      0|    curlx_free(stream->push_headers[i]);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  155|       |  curlx_safefree(stream->push_headers);
  ------------------
  |  | 1340|  4.42k|  do {                      \
  |  | 1341|  4.42k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  4.42k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  4.42k|    (ptr) = NULL;           \
  |  | 1343|  4.42k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 4.42k]
  |  |  ------------------
  ------------------
  156|  4.42k|  stream->push_headers_used = 0;
  157|  4.42k|}
http2.c:cf_h2_on_invalid_frame_recv:
 1232|    755|{
 1233|    755|  struct Curl_cfilter *cf = userp;
 1234|    755|  struct cf_h2_ctx *ctx = cf->ctx;
 1235|    755|  struct Curl_easy *data;
 1236|    755|  int32_t stream_id = frame->hd.stream_id;
 1237|       |
 1238|    755|  data = nghttp2_session_get_stream_user_data(session, stream_id);
 1239|    755|  if(data) {
  ------------------
  |  Branch (1239:6): [True: 427, False: 328]
  ------------------
 1240|    427|    struct h2_stream_ctx *stream;
 1241|    427|#ifdef CURLVERBOSE
 1242|    427|    char buffer[256];
 1243|    427|    int len;
 1244|    427|    len = Curl_nghttp2_fr_print(frame, buffer, sizeof(buffer) - 1);
 1245|    427|    buffer[len] = 0;
 1246|    427|    failf(data, "[HTTP2] [%d] received invalid frame: %s, error %d: %s",
  ------------------
  |  |   62|    427|#define failf Curl_failf
  ------------------
 1247|    427|          stream_id, buffer, ngerr, nghttp2_strerror(ngerr));
 1248|    427|#endif /* CURLVERBOSE */
 1249|    427|    stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  257|    427|  ((struct h2_stream_ctx *)(                                             \
  |  |  258|    427|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 427, False: 0]
  |  |  ------------------
  ------------------
 1250|    427|    if(stream) {
  ------------------
  |  Branch (1250:8): [True: 427, False: 0]
  ------------------
 1251|    427|      nghttp2_submit_rst_stream(ctx->h2, NGHTTP2_FLAG_NONE,
 1252|    427|                                stream->id, NGHTTP2_STREAM_CLOSED);
 1253|    427|      stream->error = ngerr;
 1254|    427|      stream->closed = TRUE;
  ------------------
  |  | 1053|    427|#define TRUE true
  ------------------
 1255|    427|      stream->reset = TRUE;
  ------------------
  |  | 1053|    427|#define TRUE true
  ------------------
 1256|    427|      return 0;  /* keep the connection alive */
 1257|    427|    }
 1258|    427|  }
 1259|    328|  return NGHTTP2_ERR_CALLBACK_FAILURE;
 1260|    755|}
http2.c:on_frame_send:
 1129|  22.4k|{
 1130|  22.4k|  struct Curl_cfilter *cf = userp;
 1131|  22.4k|  struct cf_h2_ctx *ctx = cf->ctx;
 1132|  22.4k|  struct Curl_easy *data = CF_DATA_CURRENT(cf);
  ------------------
  |  |  684|  22.4k|#define CF_DATA_CURRENT(cf) ((cf) ? (CF_CTX_CALL_DATA(cf).data) : NULL)
  |  |  ------------------
  |  |  |  |  118|  22.4k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  |  Branch (684:30): [True: 22.4k, False: 0]
  |  |  ------------------
  ------------------
 1133|       |
 1134|  22.4k|  (void)session;
 1135|  22.4k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|  22.4k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1135:3): [True: 0, False: 22.4k]
  |  Branch (1135:3): [True: 22.4k, False: 0]
  ------------------
 1136|  22.4k|  if(Curl_trc_cf_is_verbose(cf, data)) {
  ------------------
  |  |  326|  22.4k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  ------------------
  |  |  |  |  322|  44.9k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 22.4k, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 22.4k]
  |  |  |  |  ------------------
  |  |  |  |  323|  44.9k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  327|  22.4k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  ------------------
  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  ------------------
  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1137|      0|    char buffer[256];
 1138|      0|    int len;
 1139|      0|    len = Curl_nghttp2_fr_print(frame, buffer, sizeof(buffer) - 1);
 1140|      0|    buffer[len] = 0;
 1141|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1142|      0|  }
 1143|  22.4k|  if((frame->hd.type == NGHTTP2_GOAWAY) && !ctx->sent_goaway) {
  ------------------
  |  Branch (1143:6): [True: 2.13k, False: 20.3k]
  |  Branch (1143:44): [True: 1.38k, False: 751]
  ------------------
 1144|       |    /* A GOAWAY not initiated by us, but by nghttp2 itself on detecting
 1145|       |     * a protocol error on the connection */
 1146|  1.38k|    failf(data, "nghttp2 shuts down connection with error %u: %s",
  ------------------
  |  |   62|  1.38k|#define failf Curl_failf
  ------------------
 1147|  1.38k|          frame->goaway.error_code,
 1148|  1.38k|          nghttp2_http2_strerror(frame->goaway.error_code));
 1149|  1.38k|  }
 1150|  22.4k|  return 0;
 1151|  22.4k|}
http2.c:on_data_chunk_recv:
 1265|    389|{
 1266|    389|  struct Curl_cfilter *cf = userp;
 1267|    389|  struct cf_h2_ctx *ctx = cf->ctx;
 1268|    389|  struct h2_stream_ctx *stream;
 1269|    389|  struct Curl_easy *data_s;
 1270|    389|  (void)flags;
 1271|       |
 1272|    389|  DEBUGASSERT(stream_id); /* should never be a zero stream ID here */
  ------------------
  |  | 1083|    389|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1272:3): [True: 0, False: 389]
  |  Branch (1272:3): [True: 389, False: 0]
  ------------------
 1273|    389|  DEBUGASSERT(CF_DATA_CURRENT(cf));
  ------------------
  |  | 1083|    389|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1273:3): [True: 0, False: 389]
  |  Branch (1273:3): [True: 0, False: 389]
  |  Branch (1273:3): [True: 389, False: 0]
  |  Branch (1273:3): [True: 389, False: 0]
  ------------------
 1274|       |
 1275|       |  /* get the stream from the hash based on Stream ID */
 1276|    389|  data_s = nghttp2_session_get_stream_user_data(session, stream_id);
 1277|    389|  if(!data_s) {
  ------------------
  |  Branch (1277:6): [True: 0, False: 389]
  ------------------
 1278|       |    /* Receiving a Stream ID not in the hash should not happen - unless
 1279|       |       we have aborted a transfer artificially and there were more data
 1280|       |       in the pipeline. Silently ignore. */
 1281|      0|    CURL_TRC_CF(CF_DATA_CURRENT(cf), cf, "[%d] Data for unknown", stream_id);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:15): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (323:7): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (324:7): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      0|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (155:25): [True: 0, False: 0]
  |  |  ------------------
  |  |  156|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1282|       |    /* consumed explicitly as no one will read it */
 1283|      0|    nghttp2_session_consume(session, stream_id, len);
 1284|      0|    return 0;
 1285|      0|  }
 1286|       |
 1287|    389|  stream = H2_STREAM_CTX(ctx, data_s);
  ------------------
  |  |  257|    389|  ((struct h2_stream_ctx *)(                                             \
  |  |  258|    389|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 389, False: 0]
  |  |  ------------------
  ------------------
 1288|    389|  if(!stream)
  ------------------
  |  Branch (1288:6): [True: 0, False: 389]
  ------------------
 1289|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
 1290|       |
 1291|    389|  h2_xfer_write_resp(cf, data_s, stream, (const char *)mem, len, FALSE);
  ------------------
  |  | 1056|    389|#define FALSE false
  ------------------
 1292|       |
 1293|    389|  nghttp2_session_consume(ctx->h2, stream_id, len);
 1294|    389|  stream->nrcvd_data += (curl_off_t)len;
 1295|    389|  return 0;
 1296|    389|}
http2.c:h2_xfer_write_resp:
  915|    389|{
  916|       |  /* If we already encountered an error, skip further writes */
  917|    389|  if(!stream->xfer_result)
  ------------------
  |  Branch (917:6): [True: 389, False: 0]
  ------------------
  918|    389|    stream->xfer_result = Curl_xfer_write_resp(data, buf, blen, eos);
  919|       |  /* If the transfer write is errored, we do not want any more data */
  920|    389|  if(stream->xfer_result) {
  ------------------
  |  Branch (920:6): [True: 0, False: 389]
  ------------------
  921|      0|    struct cf_h2_ctx *ctx = cf->ctx;
  922|      0|    CURL_TRC_CF(data, cf, "[%d] error %d writing %zu bytes of data, "
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  923|      0|                "RST-ing stream",
  924|      0|                stream->id, (int)stream->xfer_result, blen);
  925|      0|    nghttp2_submit_rst_stream(ctx->h2, 0, stream->id,
  926|      0|                              (uint32_t)NGHTTP2_ERR_CALLBACK_FAILURE);
  927|      0|  }
  928|    389|  else if(!stream->write_paused && Curl_xfer_write_is_paused(data)) {
  ------------------
  |  Branch (928:11): [True: 389, False: 0]
  |  Branch (928:36): [True: 0, False: 389]
  ------------------
  929|      0|    CURL_TRC_CF(data, cf, "[%d] stream output paused", stream->id);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  930|      0|    stream->write_paused = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  931|      0|  }
  932|    389|  else if(stream->write_paused && !Curl_xfer_write_is_paused(data)) {
  ------------------
  |  Branch (932:11): [True: 0, False: 389]
  |  Branch (932:35): [True: 0, False: 0]
  ------------------
  933|      0|    CURL_TRC_CF(data, cf, "[%d] stream output unpaused", stream->id);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  934|      0|    stream->write_paused = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  935|      0|  }
  936|       |
  937|    389|  if(!stream->xfer_result && !eos)
  ------------------
  |  Branch (937:6): [True: 389, False: 0]
  |  Branch (937:30): [True: 389, False: 0]
  ------------------
  938|    389|    stream->xfer_result = cf_h2_update_local_win(cf, data, stream);
  939|    389|}
http2.c:on_stream_close:
 1300|  2.96k|{
 1301|  2.96k|  struct Curl_cfilter *cf = userp;
 1302|  2.96k|  struct cf_h2_ctx *ctx = cf->ctx;
 1303|  2.96k|  struct Curl_easy *data_s, *call_data = CF_DATA_CURRENT(cf);
  ------------------
  |  |  684|  2.96k|#define CF_DATA_CURRENT(cf) ((cf) ? (CF_CTX_CALL_DATA(cf).data) : NULL)
  |  |  ------------------
  |  |  |  |  118|  2.96k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  |  Branch (684:30): [True: 2.96k, False: 0]
  |  |  ------------------
  ------------------
 1304|  2.96k|  struct h2_stream_ctx *stream;
 1305|  2.96k|  int rv;
 1306|  2.96k|  (void)session;
 1307|       |
 1308|  2.96k|  DEBUGASSERT(call_data);
  ------------------
  |  | 1083|  2.96k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1308:3): [True: 0, False: 2.96k]
  |  Branch (1308:3): [True: 2.96k, False: 0]
  ------------------
 1309|       |  /* stream id 0 is the connection, do not look there for streams. */
 1310|  2.96k|  data_s = stream_id ?
  ------------------
  |  Branch (1310:12): [True: 2.96k, False: 0]
  ------------------
 1311|  2.96k|    nghttp2_session_get_stream_user_data(session, stream_id) : NULL;
 1312|  2.96k|  if(!data_s) {
  ------------------
  |  Branch (1312:6): [True: 2.55k, False: 408]
  ------------------
 1313|  2.55k|    CURL_TRC_CF(call_data, cf,
  ------------------
  |  |  153|  2.55k|  do {                                          \
  |  |  154|  2.55k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  2.55k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  5.11k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 2.55k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 2.55k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  5.11k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  2.55k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  2.55k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  2.55k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 2.55k]
  |  |  ------------------
  ------------------
 1314|  2.55k|                "[%d] on_stream_close, no easy set on stream", stream_id);
 1315|  2.55k|    return 0;
 1316|  2.55k|  }
 1317|    408|  if(!GOOD_EASY_HANDLE(data_s)) {
  ------------------
  |  |   34|    408|  (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  |   28|    408|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  |  |  ------------------
  |  |                 (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1053|    408|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (34:5): [True: 408, False: 0]
  |  |  |  Branch (34:12): [True: 408, False: 0]
  |  |  ------------------
  |  |   35|    408|   (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (1317:6): [True: 0, False: 408]
  |  Branch (1317:7): [True: 0, False: 0]
  |  Branch (1317:7): [True: 0, False: 0]
  ------------------
 1318|       |    /* nghttp2 still has an easy registered for the stream which has
 1319|       |     * been freed be libcurl. This points to a code path that does not
 1320|       |     * trigger DONE or DETACH events as it must. */
 1321|      0|    CURL_TRC_CF(call_data, cf,
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1322|      0|                "[%d] on_stream_close, not a GOOD easy on stream", stream_id);
 1323|      0|    (void)nghttp2_session_set_stream_user_data(session, stream_id, 0);
 1324|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
 1325|      0|  }
 1326|    408|  stream = H2_STREAM_CTX(ctx, data_s);
  ------------------
  |  |  257|    408|  ((struct h2_stream_ctx *)(                                             \
  |  |  258|    408|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 408, False: 0]
  |  |  ------------------
  ------------------
 1327|    408|  if(!stream) {
  ------------------
  |  Branch (1327:6): [True: 0, False: 408]
  ------------------
 1328|      0|    CURL_TRC_CF(data_s, cf,
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1329|      0|                "[%d] on_stream_close, GOOD easy but no stream", stream_id);
 1330|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
 1331|      0|  }
 1332|       |
 1333|    408|  stream->closed = TRUE;
  ------------------
  |  | 1053|    408|#define TRUE true
  ------------------
 1334|    408|  stream->error = error_code;
 1335|    408|  if(stream->error)
  ------------------
  |  Branch (1335:6): [True: 334, False: 74]
  ------------------
 1336|    334|    stream->reset = TRUE;
  ------------------
  |  | 1053|    334|#define TRUE true
  ------------------
 1337|       |
 1338|    408|  if(stream->error)
  ------------------
  |  Branch (1338:6): [True: 334, False: 74]
  ------------------
 1339|    334|    CURL_TRC_CF(data_s, cf, "[%d] RESET: %s (err %u)",
  ------------------
  |  |  153|    334|  do {                                          \
  |  |  154|    334|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|    334|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    668|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 334, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 334]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    668|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    334|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    334|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    334|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 334]
  |  |  ------------------
  ------------------
 1340|    408|              stream_id, nghttp2_http2_strerror(error_code), error_code);
 1341|     74|  else
 1342|     74|    CURL_TRC_CF(data_s, cf, "[%d] CLOSED", stream_id);
  ------------------
  |  |  153|     74|  do {                                          \
  |  |  154|     74|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|     74|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    148|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 74, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 74]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    148|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|     74|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|     74|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|     74|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 74]
  |  |  ------------------
  ------------------
 1343|    408|  Curl_multi_mark_dirty(data_s);
 1344|       |
 1345|       |  /* remove `data_s` from the nghttp2 stream */
 1346|    408|  rv = nghttp2_session_set_stream_user_data(session, stream_id, 0);
 1347|    408|  if(rv) {
  ------------------
  |  Branch (1347:6): [True: 0, False: 408]
  ------------------
 1348|      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))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1349|      0|          stream_id);
 1350|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1350:5): [Folded, False: 0]
  |  Branch (1350:5): [Folded, False: 0]
  ------------------
 1351|      0|  }
 1352|    408|  return 0;
 1353|    408|}
http2.c:on_begin_headers:
 1357|  2.21k|{
 1358|  2.21k|  struct Curl_cfilter *cf = userp;
 1359|  2.21k|  struct cf_h2_ctx *ctx = cf->ctx;
 1360|  2.21k|  struct h2_stream_ctx *stream;
 1361|  2.21k|  struct Curl_easy *data_s = NULL;
 1362|       |
 1363|  2.21k|  (void)cf;
 1364|  2.21k|  data_s = nghttp2_session_get_stream_user_data(session, frame->hd.stream_id);
 1365|  2.21k|  if(!data_s) {
  ------------------
  |  Branch (1365:6): [True: 0, False: 2.21k]
  ------------------
 1366|      0|    return 0;
 1367|      0|  }
 1368|       |
 1369|  2.21k|  if(frame->hd.type != NGHTTP2_HEADERS) {
  ------------------
  |  Branch (1369:6): [True: 0, False: 2.21k]
  ------------------
 1370|      0|    return 0;
 1371|      0|  }
 1372|       |
 1373|  2.21k|  stream = H2_STREAM_CTX(ctx, data_s);
  ------------------
  |  |  257|  2.21k|  ((struct h2_stream_ctx *)(                                             \
  |  |  258|  2.21k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 2.21k, False: 0]
  |  |  ------------------
  ------------------
 1374|  2.21k|  if(!stream || !stream->bodystarted) {
  ------------------
  |  Branch (1374:6): [True: 0, False: 2.21k]
  |  Branch (1374:17): [True: 2.16k, False: 51]
  ------------------
 1375|  2.16k|    return 0;
 1376|  2.16k|  }
 1377|       |
 1378|     51|  return 0;
 1379|  2.21k|}
http2.c:on_header:
 1404|  40.6k|{
 1405|  40.6k|  struct Curl_cfilter *cf = userp;
 1406|  40.6k|  struct cf_h2_ctx *ctx = cf->ctx;
 1407|  40.6k|  struct h2_stream_ctx *stream;
 1408|  40.6k|  struct Curl_easy *data;
 1409|  40.6k|  int32_t stream_id = frame->hd.stream_id;
 1410|  40.6k|  CURLcode result;
 1411|  40.6k|  (void)flags;
 1412|       |
 1413|  40.6k|  DEBUGASSERT(stream_id); /* should never be a zero stream ID here */
  ------------------
  |  | 1083|  40.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1413:3): [True: 0, False: 40.6k]
  |  Branch (1413:3): [True: 40.6k, False: 0]
  ------------------
 1414|       |
 1415|       |  /* get the stream from the hash based on Stream ID */
 1416|  40.6k|  data = nghttp2_session_get_stream_user_data(session, stream_id);
 1417|  40.6k|  if(!GOOD_EASY_HANDLE(data))
  ------------------
  |  |   34|  40.6k|  (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  |   28|  40.6k|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  |  |  ------------------
  |  |                 (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1053|  40.6k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (34:5): [True: 40.6k, False: 0]
  |  |  |  Branch (34:12): [True: 40.6k, False: 0]
  |  |  ------------------
  |  |   35|  40.6k|   (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (1417:6): [True: 0, False: 40.6k]
  |  Branch (1417:7): [True: 0, False: 0]
  |  Branch (1417:7): [True: 0, False: 0]
  ------------------
 1418|       |    /* Receiving a Stream ID not in the hash should not happen, this is an
 1419|       |       internal error more than anything else! */
 1420|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
 1421|       |
 1422|  40.6k|  stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  257|  40.6k|  ((struct h2_stream_ctx *)(                                             \
  |  |  258|  40.6k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 40.6k, False: 0]
  |  |  ------------------
  ------------------
 1423|  40.6k|  if(!stream) {
  ------------------
  |  Branch (1423:6): [True: 0, False: 40.6k]
  ------------------
 1424|      0|    failf(data, "Internal NULL stream");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1425|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
 1426|      0|  }
 1427|       |
 1428|       |  /* Store received PUSH_PROMISE headers to be used when the subsequent
 1429|       |     PUSH_PROMISE callback comes */
 1430|  40.6k|  if(frame->hd.type == NGHTTP2_PUSH_PROMISE) {
  ------------------
  |  Branch (1430:6): [True: 0, False: 40.6k]
  ------------------
 1431|      0|    char *h;
 1432|       |
 1433|      0|    if((namelen == CURL_CSTRLEN(HTTP_PSEUDO_AUTHORITY)) &&
  ------------------
  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  ------------------
  |  Branch (1433:8): [True: 0, False: 0]
  ------------------
 1434|      0|       !strncmp(HTTP_PSEUDO_AUTHORITY, (const char *)name, namelen)) {
  ------------------
  |  |  231|      0|#define HTTP_PSEUDO_AUTHORITY ":authority"
  ------------------
  |  Branch (1434:8): [True: 0, False: 0]
  ------------------
 1435|       |      /* pseudo headers are lower case */
 1436|      0|      int rc = 0;
 1437|      0|      char *check = curl_maprintf("%s:%d", data->state.origin->hostname,
 1438|      0|                                  data->state.origin->port);
 1439|      0|      if(!check)
  ------------------
  |  Branch (1439:10): [True: 0, False: 0]
  ------------------
 1440|       |        /* no memory */
 1441|      0|        return NGHTTP2_ERR_CALLBACK_FAILURE;
 1442|      0|      if(!curl_strequal(check, (const char *)value) &&
  ------------------
  |  Branch (1442:10): [True: 0, False: 0]
  ------------------
 1443|      0|         ((data->state.origin->port != cf->conn->given->defport) ||
  ------------------
  |  Branch (1443:11): [True: 0, False: 0]
  ------------------
 1444|      0|          !curl_strequal(data->state.origin->hostname, (const char *)value))) {
  ------------------
  |  Branch (1444:11): [True: 0, False: 0]
  ------------------
 1445|       |        /* This is push is not for the same authority that was asked for in
 1446|       |         * the URL. RFC 7540 section 8.2 says: "A client MUST treat a
 1447|       |         * PUSH_PROMISE for which the server is not authoritative as a stream
 1448|       |         * error of type PROTOCOL_ERROR."
 1449|       |         */
 1450|      0|        (void)nghttp2_submit_rst_stream(session, NGHTTP2_FLAG_NONE,
 1451|      0|                                        stream_id, NGHTTP2_PROTOCOL_ERROR);
 1452|      0|        rc = NGHTTP2_ERR_CALLBACK_FAILURE;
 1453|      0|      }
 1454|      0|      curlx_free(check);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1455|      0|      if(rc)
  ------------------
  |  Branch (1455:10): [True: 0, False: 0]
  ------------------
 1456|      0|        return rc;
 1457|      0|    }
 1458|       |
 1459|      0|    if(!stream->push_headers) {
  ------------------
  |  Branch (1459:8): [True: 0, False: 0]
  ------------------
 1460|      0|      stream->push_headers_alloc = 10;
 1461|      0|      stream->push_headers = curlx_malloc(stream->push_headers_alloc *
  ------------------
  |  | 1477|      0|#define curlx_malloc(size)         curl_dbg_malloc(size, __LINE__, __FILE__)
  ------------------
 1462|      0|                                          sizeof(char *));
 1463|      0|      if(!stream->push_headers)
  ------------------
  |  Branch (1463:10): [True: 0, False: 0]
  ------------------
 1464|      0|        return NGHTTP2_ERR_CALLBACK_FAILURE;
 1465|      0|      stream->push_headers_used = 0;
 1466|      0|    }
 1467|      0|    else if(stream->push_headers_used ==
  ------------------
  |  Branch (1467:13): [True: 0, False: 0]
  ------------------
 1468|      0|            stream->push_headers_alloc) {
 1469|      0|      char **headp;
 1470|      0|      if(stream->push_headers_alloc > 1000) {
  ------------------
  |  Branch (1470:10): [True: 0, False: 0]
  ------------------
 1471|       |        /* this is beyond crazy many headers, bail out */
 1472|      0|        failf(data, "Too many PUSH_PROMISE headers");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1473|      0|        free_push_headers(stream);
 1474|      0|        return NGHTTP2_ERR_CALLBACK_FAILURE;
 1475|      0|      }
 1476|      0|      stream->push_headers_alloc *= 2;
 1477|      0|      headp = curlx_realloc(stream->push_headers,
  ------------------
  |  | 1481|      0|  curl_dbg_realloc(ptr, size, __LINE__, __FILE__)
  ------------------
 1478|      0|                            stream->push_headers_alloc * sizeof(char *));
 1479|      0|      if(!headp) {
  ------------------
  |  Branch (1479:10): [True: 0, False: 0]
  ------------------
 1480|      0|        free_push_headers(stream);
 1481|      0|        return NGHTTP2_ERR_CALLBACK_FAILURE;
 1482|      0|      }
 1483|      0|      stream->push_headers = headp;
 1484|      0|    }
 1485|      0|    h = curl_maprintf("%s:%s", name, value);
 1486|      0|    if(!h) {
  ------------------
  |  Branch (1486:8): [True: 0, False: 0]
  ------------------
 1487|      0|      free_push_headers(stream);
 1488|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 1489|      0|    }
 1490|      0|    stream->push_headers[stream->push_headers_used++] = h;
 1491|      0|    return 0;
 1492|      0|  }
 1493|       |
 1494|  40.6k|  if(stream->bodystarted) {
  ------------------
  |  Branch (1494:6): [True: 3.66k, False: 37.0k]
  ------------------
 1495|       |    /* This is a trailer */
 1496|  3.66k|    CURL_TRC_CF(data, cf, "[%d] trailer: %.*s: %.*s",
  ------------------
  |  |  153|  3.66k|  do {                                          \
  |  |  154|  3.66k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  3.66k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  7.32k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 3.66k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 3.66k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  7.32k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  3.66k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  3.66k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  3.66k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 3.66k]
  |  |  ------------------
  ------------------
 1497|  3.66k|                stream->id, (int)namelen, name, (int)valuelen, value);
 1498|  3.66k|    result = Curl_dynhds_add(&stream->resp_trailers,
 1499|  3.66k|                             (const char *)name, namelen,
 1500|  3.66k|                             (const char *)value, valuelen);
 1501|  3.66k|    if(result) {
  ------------------
  |  Branch (1501:8): [True: 0, False: 3.66k]
  ------------------
 1502|      0|      cf_h2_header_error(cf, data, stream, result);
 1503|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 1504|      0|    }
 1505|       |
 1506|  3.66k|    return 0;
 1507|  3.66k|  }
 1508|       |
 1509|  37.0k|  if(namelen == CURL_CSTRLEN(HTTP_PSEUDO_STATUS) &&
  ------------------
  |  | 1300|  74.0k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  ------------------
  |  Branch (1509:6): [True: 1.97k, False: 35.0k]
  ------------------
 1510|  1.97k|     !memcmp(HTTP_PSEUDO_STATUS, name, namelen)) {
  ------------------
  |  |  233|  1.97k|#define HTTP_PSEUDO_STATUS    ":status"
  ------------------
  |  Branch (1510:6): [True: 1.19k, False: 774]
  ------------------
 1511|       |    /* nghttp2 guarantees :status is received first and only once. */
 1512|  1.19k|    char buffer[32];
 1513|  1.19k|    size_t hlen;
 1514|  1.19k|    result = Curl_http_decode_status(&stream->status_code,
 1515|  1.19k|                                     (const char *)value, valuelen);
 1516|  1.19k|    if(result) {
  ------------------
  |  Branch (1516:8): [True: 0, False: 1.19k]
  ------------------
 1517|      0|      cf_h2_header_error(cf, data, stream, result);
 1518|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 1519|      0|    }
 1520|  1.19k|    hlen = curl_msnprintf(buffer, sizeof(buffer), HTTP_PSEUDO_STATUS ":%d\r",
  ------------------
  |  |  233|  1.19k|#define HTTP_PSEUDO_STATUS    ":status"
  ------------------
 1521|  1.19k|                          stream->status_code);
 1522|  1.19k|    result = Curl_headers_push(data, buffer, hlen, CURLH_PSEUDO);
  ------------------
  |  |   45|  1.19k|#define CURLH_PSEUDO    (1 << 4) /* pseudo headers */
  ------------------
 1523|  1.19k|    if(result) {
  ------------------
  |  Branch (1523:8): [True: 0, False: 1.19k]
  ------------------
 1524|      0|      cf_h2_header_error(cf, data, stream, result);
 1525|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 1526|      0|    }
 1527|  1.19k|    curlx_dyn_reset(&ctx->scratch);
 1528|  1.19k|    result = curlx_dyn_addn(&ctx->scratch, STRCONST("HTTP/2 "));
  ------------------
  |  | 1305|  1.19k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  1.19k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 1529|  1.19k|    if(!result)
  ------------------
  |  Branch (1529:8): [True: 1.19k, False: 0]
  ------------------
 1530|  1.19k|      result = curlx_dyn_addn(&ctx->scratch, value, valuelen);
 1531|  1.19k|    if(!result)
  ------------------
  |  Branch (1531:8): [True: 1.19k, False: 0]
  ------------------
 1532|  1.19k|      result = curlx_dyn_addn(&ctx->scratch, STRCONST(" \r\n"));
  ------------------
  |  | 1305|  1.19k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  1.19k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 1533|  1.19k|    if(!result)
  ------------------
  |  Branch (1533:8): [True: 1.19k, False: 0]
  ------------------
 1534|  1.19k|      h2_xfer_write_resp_hd(cf, data, stream, curlx_dyn_ptr(&ctx->scratch),
 1535|  1.19k|                            curlx_dyn_len(&ctx->scratch), FALSE);
  ------------------
  |  | 1056|  1.19k|#define FALSE false
  ------------------
 1536|  1.19k|    if(result) {
  ------------------
  |  Branch (1536:8): [True: 0, False: 1.19k]
  ------------------
 1537|      0|      cf_h2_header_error(cf, data, stream, result);
 1538|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 1539|      0|    }
 1540|       |    /* if we receive data for another handle, wake that up */
 1541|  1.19k|    if(CF_DATA_CURRENT(cf) != data)
  ------------------
  |  |  684|  1.19k|#define CF_DATA_CURRENT(cf) ((cf) ? (CF_CTX_CALL_DATA(cf).data) : NULL)
  |  |  ------------------
  |  |  |  |  118|  1.19k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  |  Branch (684:30): [True: 1.19k, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1541:8): [True: 0, False: 1.19k]
  ------------------
 1542|      0|      Curl_multi_mark_dirty(data);
 1543|       |
 1544|  1.19k|    CURL_TRC_CF(data, cf, "[%d] status: HTTP/2 %03d",
  ------------------
  |  |  153|  1.19k|  do {                                          \
  |  |  154|  1.19k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  1.19k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  2.39k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 1.19k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 1.19k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  2.39k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  1.19k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  1.19k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  1.19k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 1.19k]
  |  |  ------------------
  ------------------
 1545|  1.19k|                stream->id, stream->status_code);
 1546|  1.19k|    return 0;
 1547|  1.19k|  }
 1548|       |
 1549|       |  /* nghttp2 guarantees that namelen > 0, and :status was already
 1550|       |     received, and this is not pseudo-header field . */
 1551|       |  /* convert to an HTTP1-style header */
 1552|  35.8k|  curlx_dyn_reset(&ctx->scratch);
 1553|  35.8k|  result = curlx_dyn_addn(&ctx->scratch, (const char *)name, namelen);
 1554|  35.8k|  if(!result)
  ------------------
  |  Branch (1554:6): [True: 35.8k, False: 0]
  ------------------
 1555|  35.8k|    result = curlx_dyn_addn(&ctx->scratch, STRCONST(": "));
  ------------------
  |  | 1305|  35.8k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  35.8k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 1556|  35.8k|  if(!result)
  ------------------
  |  Branch (1556:6): [True: 35.8k, False: 0]
  ------------------
 1557|  35.8k|    result = curlx_dyn_addn(&ctx->scratch, (const char *)value, valuelen);
 1558|  35.8k|  if(!result)
  ------------------
  |  Branch (1558:6): [True: 35.8k, False: 0]
  ------------------
 1559|  35.8k|    result = curlx_dyn_addn(&ctx->scratch, STRCONST("\r\n"));
  ------------------
  |  | 1305|  35.8k|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|  35.8k|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
 1560|  35.8k|  if(!result)
  ------------------
  |  Branch (1560:6): [True: 35.8k, False: 0]
  ------------------
 1561|  35.8k|    h2_xfer_write_resp_hd(cf, data, stream, curlx_dyn_ptr(&ctx->scratch),
 1562|  35.8k|                          curlx_dyn_len(&ctx->scratch), FALSE);
  ------------------
  |  | 1056|  35.8k|#define FALSE false
  ------------------
 1563|  35.8k|  if(result) {
  ------------------
  |  Branch (1563:6): [True: 0, False: 35.8k]
  ------------------
 1564|      0|    cf_h2_header_error(cf, data, stream, result);
 1565|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
 1566|      0|  }
 1567|       |  /* if we receive data for another handle, wake that up */
 1568|  35.8k|  if(CF_DATA_CURRENT(cf) != data)
  ------------------
  |  |  684|  35.8k|#define CF_DATA_CURRENT(cf) ((cf) ? (CF_CTX_CALL_DATA(cf).data) : NULL)
  |  |  ------------------
  |  |  |  |  118|  35.8k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  |  Branch (684:30): [True: 35.8k, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1568:6): [True: 0, False: 35.8k]
  ------------------
 1569|      0|    Curl_multi_mark_dirty(data);
 1570|       |
 1571|  35.8k|  CURL_TRC_CF(data, cf, "[%d] header: %.*s: %.*s",
  ------------------
  |  |  153|  35.8k|  do {                                          \
  |  |  154|  35.8k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  35.8k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  71.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 35.8k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 35.8k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  71.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  35.8k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  35.8k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  35.8k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 35.8k]
  |  |  ------------------
  ------------------
 1572|  35.8k|              stream->id, (int)namelen, name, (int)valuelen, value);
 1573|       |
 1574|  35.8k|  return 0; /* 0 is successful */
 1575|  35.8k|}
http2.c:error_callback:
 1633|  6.73k|{
 1634|  6.73k|  struct Curl_cfilter *cf = userp;
 1635|  6.73k|  struct Curl_easy *data = CF_DATA_CURRENT(cf);
  ------------------
  |  |  684|  6.73k|#define CF_DATA_CURRENT(cf) ((cf) ? (CF_CTX_CALL_DATA(cf).data) : NULL)
  |  |  ------------------
  |  |  |  |  118|  6.73k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  |  Branch (684:30): [True: 6.73k, False: 0]
  |  |  ------------------
  ------------------
 1636|  6.73k|  (void)session;
 1637|  6.73k|  failf(data, "%.*s", (int)len, msg);
  ------------------
  |  |   62|  6.73k|#define failf Curl_failf
  ------------------
 1638|  6.73k|  return 0;
 1639|  6.73k|}
http2.c:h2_client_new:
  452|  4.41k|{
  453|  4.41k|  struct cf_h2_ctx *ctx = cf->ctx;
  454|  4.41k|  nghttp2_option *o;
  455|  4.41k|  nghttp2_mem mem = { NULL, Curl_nghttp2_malloc, Curl_nghttp2_free,
  456|  4.41k|                      Curl_nghttp2_calloc, Curl_nghttp2_realloc };
  457|       |
  458|  4.41k|  int rc = nghttp2_option_new(&o);
  459|  4.41k|  if(rc)
  ------------------
  |  Branch (459:6): [True: 0, False: 4.41k]
  ------------------
  460|      0|    return rc;
  461|       |  /* We handle window updates ourself to enforce buffer limits */
  462|  4.41k|  nghttp2_option_set_no_auto_window_update(o, 1);
  463|  4.41k|#if NGHTTP2_VERSION_NUM >= 0x013200 /* with 1.50.0 */
  464|       |  /* turn off RFC 9113 leading and trailing white spaces validation against
  465|       |     HTTP field value. */
  466|  4.41k|  nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation(o, 1);
  467|  4.41k|#endif
  468|  4.41k|  rc = nghttp2_session_client_new3(&ctx->h2, cbs, cf, o, &mem);
  469|  4.41k|  nghttp2_option_del(o);
  470|  4.41k|  return rc;
  471|  4.41k|}
http2.c:http2_data_setup:
  364|  4.43k|{
  365|  4.43k|  struct cf_h2_ctx *ctx = cf->ctx;
  366|  4.43k|  struct h2_stream_ctx *stream;
  367|       |
  368|  4.43k|  (void)cf;
  369|  4.43k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|  4.43k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (369:3): [True: 0, False: 4.43k]
  |  Branch (369:3): [True: 4.43k, False: 0]
  ------------------
  370|       |
  371|  4.43k|  if(!data)
  ------------------
  |  Branch (371:6): [True: 0, False: 4.43k]
  ------------------
  372|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  373|       |
  374|  4.43k|  stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  257|  4.43k|  ((struct h2_stream_ctx *)(                                             \
  |  |  258|  4.43k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 4.43k, False: 0]
  |  |  ------------------
  ------------------
  375|  4.43k|  if(stream) {
  ------------------
  |  Branch (375:6): [True: 9, False: 4.42k]
  ------------------
  376|      9|    *pstream = stream;
  377|      9|    return CURLE_OK;
  378|      9|  }
  379|       |
  380|  4.42k|  stream = h2_stream_ctx_create(ctx);
  381|  4.42k|  if(!stream)
  ------------------
  |  Branch (381:6): [True: 0, False: 4.42k]
  ------------------
  382|      0|    return CURLE_OUT_OF_MEMORY;
  383|       |
  384|  4.42k|  if(!Curl_uint32_hash_set(&ctx->streams, data->mid, stream)) {
  ------------------
  |  Branch (384:6): [True: 0, False: 4.42k]
  ------------------
  385|      0|    h2_stream_ctx_free(stream);
  386|      0|    return CURLE_OUT_OF_MEMORY;
  387|      0|  }
  388|       |
  389|  4.42k|  *pstream = stream;
  390|  4.42k|  return CURLE_OK;
  391|  4.42k|}
http2.c:h2_stream_ctx_create:
  261|  4.42k|{
  262|  4.42k|  struct h2_stream_ctx *stream;
  263|       |
  264|  4.42k|  (void)ctx;
  265|  4.42k|  stream = curlx_calloc(1, sizeof(*stream));
  ------------------
  |  | 1479|  4.42k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  266|  4.42k|  if(!stream)
  ------------------
  |  Branch (266:6): [True: 0, False: 4.42k]
  ------------------
  267|      0|    return NULL;
  268|       |
  269|  4.42k|  stream->id = -1;
  270|  4.42k|  Curl_bufq_initp(&stream->sendbuf, &ctx->stream_bufcp,
  271|  4.42k|                  H2_STREAM_SEND_CHUNKS, BUFQ_OPT_NONE);
  ------------------
  |  |   77|  4.42k|#define H2_STREAM_SEND_CHUNKS   ((64 * 1024) / H2_CHUNK_SIZE)
  |  |  ------------------
  |  |  |  |   59|  4.42k|#define H2_CHUNK_SIZE           (16 * 1024)
  |  |  ------------------
  ------------------
                                H2_STREAM_SEND_CHUNKS, BUFQ_OPT_NONE);
  ------------------
  |  |  106|  4.42k|#define BUFQ_OPT_NONE        0
  ------------------
  272|  4.42k|  Curl_h1_req_parse_init(&stream->h1, H1_PARSE_DEFAULT_MAX_LINE_LEN);
  ------------------
  |  |   35|  4.42k|#define H1_PARSE_DEFAULT_MAX_LINE_LEN   DYN_HTTP_REQUEST
  |  |  ------------------
  |  |  |  |   69|  4.42k|#define DYN_HTTP_REQUEST    (1024 * 1024)
  |  |  ------------------
  ------------------
  273|  4.42k|  Curl_dynhds_init(&stream->resp_trailers, 0, DYN_HTTP_REQUEST);
  ------------------
  |  |   69|  4.42k|#define DYN_HTTP_REQUEST    (1024 * 1024)
  ------------------
  274|  4.42k|  stream->bodystarted = FALSE;
  ------------------
  |  | 1056|  4.42k|#define FALSE false
  ------------------
  275|  4.42k|  stream->status_code = -1;
  276|  4.42k|  stream->closed = FALSE;
  ------------------
  |  | 1056|  4.42k|#define FALSE false
  ------------------
  277|  4.42k|  stream->close_handled = FALSE;
  ------------------
  |  | 1056|  4.42k|#define FALSE false
  ------------------
  278|  4.42k|  stream->error = NGHTTP2_NO_ERROR;
  279|  4.42k|  stream->local_window_size = H2_STREAM_WINDOW_SIZE_INITIAL;
  ------------------
  |  |   71|  4.42k|#define H2_STREAM_WINDOW_SIZE_INITIAL  (64 * 1024)
  ------------------
  280|  4.42k|  stream->nrcvd_data = 0;
  281|  4.42k|  return stream;
  282|  4.42k|}
http2.c:h2_stream_ctx_free:
  160|  4.42k|{
  161|  4.42k|  Curl_bufq_free(&stream->sendbuf);
  162|  4.42k|  Curl_h1_req_parse_free(&stream->h1);
  163|  4.42k|  Curl_dynhds_free(&stream->resp_trailers);
  164|  4.42k|  free_push_headers(stream);
  165|  4.42k|  curlx_free(stream);
  ------------------
  |  | 1482|  4.42k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  166|  4.42k|}
http2.c:h2_progress_ingress:
 1869|  16.4k|{
 1870|  16.4k|  struct cf_h2_ctx *ctx = cf->ctx;
 1871|  16.4k|  struct h2_stream_ctx *stream;
 1872|  16.4k|  CURLcode result = CURLE_OK;
 1873|  16.4k|  size_t nread;
 1874|       |
 1875|  16.4k|  if(should_close_session(ctx)) {
  ------------------
  |  Branch (1875:6): [True: 277, False: 16.2k]
  ------------------
 1876|    277|    CURL_TRC_CF(data, cf, "[0] ingress: session is closed");
  ------------------
  |  |  153|    277|  do {                                          \
  |  |  154|    277|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|    277|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    554|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 277, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 277]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    554|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    277|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    277|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    277|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 277]
  |  |  ------------------
  ------------------
 1877|    277|    return CURLE_HTTP2;
 1878|    277|  }
 1879|       |
 1880|       |  /* Process network input buffer first */
 1881|  16.2k|  if(!Curl_bufq_is_empty(&ctx->inbufq)) {
  ------------------
  |  Branch (1881:6): [True: 17, False: 16.1k]
  ------------------
 1882|     17|    CURL_TRC_CF(data, cf, "Process %zu bytes in connection buffer",
  ------------------
  |  |  153|     17|  do {                                          \
  |  |  154|     17|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|     17|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|     34|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 17, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 17]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|     34|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|     17|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|     17|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|     17|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 17]
  |  |  ------------------
  ------------------
 1883|     17|                Curl_bufq_len(&ctx->inbufq));
 1884|     17|    result = h2_process_pending_input(cf, data);
 1885|     17|    if(result)
  ------------------
  |  Branch (1885:8): [True: 3, False: 14]
  ------------------
 1886|      3|      return result;
 1887|     17|  }
 1888|       |
 1889|  16.2k|  if(!data_max_bytes)
  ------------------
  |  Branch (1889:6): [True: 0, False: 16.2k]
  ------------------
 1890|      0|    data_max_bytes = H2_CHUNK_SIZE;
  ------------------
  |  |   59|      0|#define H2_CHUNK_SIZE           (16 * 1024)
  ------------------
 1891|       |
 1892|       |  /* Receive data from the "lower" filters, e.g. network until
 1893|       |   * it is time to stop due to connection close or us not processing
 1894|       |   * all network input */
 1895|  28.0k|  while(!ctx->conn_closed && Curl_bufq_is_empty(&ctx->inbufq)) {
  ------------------
  |  Branch (1895:9): [True: 28.0k, False: 0]
  |  Branch (1895:30): [True: 28.0k, False: 0]
  ------------------
 1896|  28.0k|    stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  257|  28.0k|  ((struct h2_stream_ctx *)(                                             \
  |  |  258|  28.0k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 28.0k, False: 0]
  |  |  ------------------
  ------------------
 1897|  28.0k|    if(stream && (stream->closed || !data_max_bytes)) {
  ------------------
  |  Branch (1897:8): [True: 28.0k, False: 0]
  |  Branch (1897:19): [True: 577, False: 27.5k]
  |  Branch (1897:37): [True: 10, False: 27.4k]
  ------------------
 1898|       |      /* We would like to abort here and stop processing, so that the transfer
 1899|       |       * loop can handle the data/close here. This may leave data in
 1900|       |       * underlying buffers that will not be consumed. */
 1901|    587|      if(!cf->next || !cf->next->cft->has_data_pending(cf->next, data))
  ------------------
  |  Branch (1901:10): [True: 0, False: 587]
  |  Branch (1901:23): [True: 587, False: 0]
  ------------------
 1902|    587|        Curl_multi_mark_dirty(data);
 1903|    587|      break;
 1904|    587|    }
 1905|  27.4k|    else if(!stream) {
  ------------------
  |  Branch (1905:13): [True: 0, False: 27.4k]
  ------------------
 1906|      0|      DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1906:7): [Folded, False: 0]
  |  Branch (1906:7): [Folded, False: 0]
  ------------------
 1907|      0|      break;
 1908|      0|    }
 1909|       |
 1910|  27.4k|    result = Curl_cf_recv_bufq(cf->next, data, &ctx->inbufq, 0, &nread);
 1911|  27.4k|    if(result) {
  ------------------
  |  Branch (1911:8): [True: 12.1k, False: 15.3k]
  ------------------
 1912|  12.1k|      if(result != CURLE_AGAIN) {
  ------------------
  |  Branch (1912:10): [True: 0, False: 12.1k]
  ------------------
 1913|      0|        failf(data, "Failed receiving HTTP2 data: %d(%s)", (int)result,
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1914|      0|              curl_easy_strerror(result));
 1915|      0|        return result;
 1916|      0|      }
 1917|  12.1k|      break;
 1918|  12.1k|    }
 1919|  15.3k|    else if(nread == 0) {
  ------------------
  |  Branch (1919:13): [True: 3.13k, False: 12.1k]
  ------------------
 1920|  3.13k|      CURL_TRC_CF(data, cf, "[0] ingress: connection closed");
  ------------------
  |  |  153|  3.13k|  do {                                          \
  |  |  154|  3.13k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  3.13k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  6.26k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 3.13k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 3.13k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  6.26k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  3.13k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  3.13k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  3.13k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 3.13k]
  |  |  ------------------
  ------------------
 1921|  3.13k|      ctx->conn_closed = TRUE;
  ------------------
  |  | 1053|  3.13k|#define TRUE true
  ------------------
 1922|  3.13k|      break;
 1923|  3.13k|    }
 1924|  12.1k|    else {
 1925|  12.1k|      CURL_TRC_CF(data, cf, "[0] ingress: read %zu bytes", nread);
  ------------------
  |  |  153|  12.1k|  do {                                          \
  |  |  154|  12.1k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  12.1k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  24.3k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 12.1k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 12.1k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  24.3k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  12.1k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  12.1k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  12.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 12.1k]
  |  |  ------------------
  ------------------
 1926|  12.1k|      data_max_bytes = (data_max_bytes > nread) ? (data_max_bytes - nread) : 0;
  ------------------
  |  Branch (1926:24): [True: 12.1k, False: 13]
  ------------------
 1927|  12.1k|    }
 1928|       |
 1929|  12.1k|    result = h2_process_pending_input(cf, data);
 1930|  12.1k|    if(result)
  ------------------
  |  Branch (1930:8): [True: 326, False: 11.8k]
  ------------------
 1931|    326|      return result;
 1932|  11.8k|    CURL_TRC_CF(data, cf, "[0] ingress: nw-in buffered %zu",
  ------------------
  |  |  153|  11.8k|  do {                                          \
  |  |  154|  11.8k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  11.8k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  23.7k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 11.8k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 11.8k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  23.7k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  11.8k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  11.8k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  11.8k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 11.8k]
  |  |  ------------------
  ------------------
 1933|  11.8k|                Curl_bufq_len(&ctx->inbufq));
 1934|  11.8k|  }
 1935|       |
 1936|  15.8k|  if(ctx->conn_closed && Curl_bufq_is_empty(&ctx->inbufq)) {
  ------------------
  |  Branch (1936:6): [True: 3.13k, False: 12.7k]
  |  Branch (1936:26): [True: 3.13k, False: 0]
  ------------------
 1937|  3.13k|    CURL_TRC_CF(data, cf, "server closed %s",
  ------------------
  |  |  153|  3.13k|  do {                                          \
  |  |  154|  3.13k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  3.13k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  6.26k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 3.13k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 3.13k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  6.26k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  3.13k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  3.13k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (155:35): [True: 0, False: 0]
  |  |  ------------------
  |  |  156|  3.13k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 3.13k]
  |  |  ------------------
  ------------------
 1938|  3.13k|                ctx->rcvd_goaway ? "with GOAWAY" : "abruptly");
 1939|  3.13k|    connclose(cf->conn);
  ------------------
  |  |   88|  3.13k|#define connclose(x)   Curl_conncontrol((x), CONNCTRL_CONN_CLOSE)
  |  |  ------------------
  |  |  |  |   82|  3.13k|#define CONNCTRL_CONN_CLOSE      1
  |  |  ------------------
  ------------------
 1940|  3.13k|  }
 1941|       |
 1942|  15.8k|  CURL_TRC_CF(data, cf, "[0] ingress: done");
  ------------------
  |  |  153|  15.8k|  do {                                          \
  |  |  154|  15.8k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  15.8k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  31.7k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 15.8k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 15.8k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  31.7k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  15.8k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  15.8k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  15.8k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 15.8k]
  |  |  ------------------
  ------------------
 1943|  15.8k|  return CURLE_OK;
 1944|  16.2k|}
http2.c:should_close_session:
  477|  21.0k|{
  478|  21.0k|  return ctx->drain_total == 0 && !nghttp2_session_want_read(ctx->h2) &&
  ------------------
  |  Branch (478:10): [True: 21.0k, False: 0]
  |  Branch (478:35): [True: 301, False: 20.7k]
  ------------------
  479|    301|    !nghttp2_session_want_write(ctx->h2);
  ------------------
  |  Branch (479:5): [True: 301, False: 0]
  ------------------
  480|  21.0k|}
http2.c:h2_process_pending_input:
  489|  12.2k|{
  490|  12.2k|  struct cf_h2_ctx *ctx = cf->ctx;
  491|  12.2k|  const unsigned char *buf;
  492|  12.2k|  size_t blen, nread;
  493|  12.2k|  ssize_t rv;
  494|       |
  495|  12.2k|  while(Curl_bufq_peek(&ctx->inbufq, &buf, &blen)) {
  ------------------
  |  Branch (495:9): [True: 12.2k, False: 4]
  ------------------
  496|  12.2k|    rv = nghttp2_session_mem_recv(ctx->h2, (const uint8_t *)buf, blen);
  497|  12.2k|    if(!curlx_sztouz(rv, &nread)) {
  ------------------
  |  Branch (497:8): [True: 329, False: 11.8k]
  ------------------
  498|    329|      failf(data, "nghttp2 recv error %zd: %s", rv, nghttp2_strerror((int)rv));
  ------------------
  |  |   62|    329|#define failf Curl_failf
  ------------------
  499|    329|      return CURLE_HTTP2;
  500|    329|    }
  501|  11.8k|    Curl_bufq_skip(&ctx->inbufq, nread);
  502|  11.8k|    if(Curl_bufq_is_empty(&ctx->inbufq)) {
  ------------------
  |  Branch (502:8): [True: 11.8k, False: 0]
  ------------------
  503|  11.8k|      break;
  504|  11.8k|    }
  505|      0|    else {
  506|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  507|      0|                  "in connection buffer", Curl_bufq_len(&ctx->inbufq));
  508|      0|    }
  509|  11.8k|  }
  510|       |
  511|  11.8k|  if(nghttp2_session_check_request_allowed(ctx->h2) == 0) {
  ------------------
  |  Branch (511:6): [True: 1.70k, False: 10.1k]
  ------------------
  512|       |    /* No more requests are allowed in the current session, so
  513|       |       the connection may not be reused. This is set when a
  514|       |       GOAWAY frame has been received or when the limit of stream
  515|       |       identifiers has been reached. */
  516|  1.70k|    CURL_TRC_M(data, "http/2: No new requests allowed");
  ------------------
  |  |  148|  1.70k|  do {                                   \
  |  |  149|  1.70k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  1.70k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  1.70k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  3.41k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 1.70k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 1.70k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  3.41k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  1.70k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  1.70k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  1.70k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 1.70k]
  |  |  ------------------
  ------------------
  517|  1.70k|    connclose(cf->conn);
  ------------------
  |  |   88|  1.70k|#define connclose(x)   Curl_conncontrol((x), CONNCTRL_CONN_CLOSE)
  |  |  ------------------
  |  |  |  |   82|  1.70k|#define CONNCTRL_CONN_CLOSE      1
  |  |  ------------------
  ------------------
  518|  1.70k|  }
  519|       |
  520|  11.8k|  return CURLE_OK;
  521|  12.2k|}
http2.c:h2_progress_egress:
 1794|  27.5k|{
 1795|  27.5k|  struct cf_h2_ctx *ctx = cf->ctx;
 1796|  27.5k|  struct h2_stream_ctx *stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  257|  27.5k|  ((struct h2_stream_ctx *)(                                             \
  |  |  258|  27.5k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 27.5k, False: 0]
  |  |  ------------------
  ------------------
 1797|  27.5k|  int rv = 0;
 1798|       |
 1799|  27.5k|  if(stream && stream->id > 0 &&
  ------------------
  |  Branch (1799:6): [True: 22.3k, False: 5.20k]
  |  Branch (1799:16): [True: 22.3k, False: 11]
  ------------------
 1800|  22.3k|     (sweight_wanted(data) != sweight_in_effect(data))) {
  ------------------
  |  Branch (1800:6): [True: 0, False: 22.3k]
  ------------------
 1801|       |    /* send new weight and/or dependency */
 1802|      0|    nghttp2_priority_spec pri_spec;
 1803|       |
 1804|      0|    h2_pri_spec(data, &pri_spec);
 1805|      0|    CURL_TRC_CF(data, cf, "[%d] Queuing PRIORITY", stream->id);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1806|      0|    DEBUGASSERT(stream->id != -1);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1806:5): [True: 0, False: 0]
  |  Branch (1806:5): [True: 0, False: 0]
  ------------------
 1807|      0|    rv = nghttp2_submit_priority(ctx->h2, NGHTTP2_FLAG_NONE,
 1808|      0|                                 stream->id, &pri_spec);
 1809|      0|    if(rv)
  ------------------
  |  Branch (1809:8): [True: 0, False: 0]
  ------------------
 1810|      0|      goto out;
 1811|      0|  }
 1812|       |
 1813|  27.5k|  ctx->nw_out_blocked = 0;
 1814|  44.2k|  while(!rv && !ctx->nw_out_blocked && nghttp2_session_want_write(ctx->h2))
  ------------------
  |  Branch (1814:9): [True: 44.2k, False: 0]
  |  Branch (1814:16): [True: 42.1k, False: 2.14k]
  |  Branch (1814:40): [True: 16.7k, False: 25.3k]
  ------------------
 1815|  16.7k|    rv = nghttp2_session_send(ctx->h2);
 1816|       |
 1817|  27.5k|out:
 1818|  27.5k|  if(nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (1818:6): [True: 0, False: 27.5k]
  ------------------
 1819|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1820|      0|                nghttp2_strerror(rv), rv);
 1821|      0|    return CURLE_SEND_ERROR;
 1822|      0|  }
 1823|       |  /* Defer flushing during the connect phase so that the SETTINGS and
 1824|       |   * other initial frames are sent together with the first request.
 1825|       |   * Unless we are 'connect_only' where the request will never come. */
 1826|  27.5k|  if(!cf->connected && !cf->conn->bits.connect_only)
  ------------------
  |  Branch (1826:6): [True: 4.41k, False: 23.1k]
  |  Branch (1826:24): [True: 4.39k, False: 15]
  ------------------
 1827|  4.39k|    return CURLE_OK;
 1828|  23.1k|  return nw_out_flush(cf, data);
 1829|  27.5k|}
http2.c:sweight_wanted:
 1758|  26.7k|{
 1759|       |  /* 0 weight is not set by user and we take the nghttp2 default one */
 1760|  26.7k|  return data->set.priority.weight ?
  ------------------
  |  Branch (1760:10): [True: 0, False: 26.7k]
  ------------------
 1761|      0|    data->set.priority.weight : NGHTTP2_DEFAULT_WEIGHT;
 1762|  26.7k|}
http2.c:sweight_in_effect:
 1765|  22.3k|{
 1766|       |  /* 0 weight is not set by user and we take the nghttp2 default one */
 1767|  22.3k|  return data->state.priority.weight ?
  ------------------
  |  Branch (1767:10): [True: 0, False: 22.3k]
  ------------------
 1768|      0|    data->state.priority.weight : NGHTTP2_DEFAULT_WEIGHT;
 1769|  22.3k|}
http2.c:h2_pri_spec:
 1779|  4.38k|{
 1780|  4.38k|  struct Curl_data_priority *prio = &data->set.priority;
 1781|  4.38k|  nghttp2_priority_spec_init(pri_spec, 0,
 1782|       |                             sweight_wanted(data), FALSE);
  ------------------
  |  | 1056|  4.38k|#define FALSE false
  ------------------
 1783|  4.38k|  data->state.priority = *prio;
 1784|  4.38k|}
http2.c:cf_h2_shutdown:
 2565|    814|{
 2566|    814|  struct cf_h2_ctx *ctx = cf->ctx;
 2567|    814|  struct cf_call_data save;
 2568|    814|  CURLcode result;
 2569|    814|  int rv;
 2570|       |
 2571|    814|  if(!cf->connected || !ctx->h2 || cf->shutdown || ctx->conn_closed) {
  ------------------
  |  Branch (2571:6): [True: 0, False: 814]
  |  Branch (2571:24): [True: 0, False: 814]
  |  Branch (2571:36): [True: 0, False: 814]
  |  Branch (2571:52): [True: 0, False: 814]
  ------------------
 2572|      0|    *done = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2573|      0|    return CURLE_OK;
 2574|      0|  }
 2575|       |
 2576|    814|  CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  655|    814|  do { \
  |  |  656|    814|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  118|    814|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  657|    814|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|    814|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  658|    814|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  118|    814|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  659|    814|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  118|    814|#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); \
  |  |  ------------------
  |  |  |  |  864|    814|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  660|    814|  } while(0)
  |  |  ------------------
  |  |  |  Branch (660:11): [Folded, False: 814]
  |  |  ------------------
  ------------------
  |  Branch (2576:3): [True: 814, False: 0]
  |  Branch (2576:3): [True: 0, False: 0]
  |  Branch (2576:3): [True: 814, False: 0]
  |  Branch (2576:3): [True: 0, False: 0]
  ------------------
 2577|       |
 2578|    814|  if(!ctx->sent_goaway) {
  ------------------
  |  Branch (2578:6): [True: 788, False: 26]
  ------------------
 2579|    788|    ctx->sent_goaway = TRUE;
  ------------------
  |  | 1053|    788|#define TRUE true
  ------------------
 2580|    788|    rv = nghttp2_submit_goaway(ctx->h2, NGHTTP2_FLAG_NONE,
 2581|    788|                               ctx->local_max_sid, 0,
 2582|    788|                               (const uint8_t *)"shutdown",
 2583|    788|                               sizeof("shutdown"));
 2584|    788|    if(rv) {
  ------------------
  |  Branch (2584:8): [True: 0, False: 788]
  ------------------
 2585|      0|      failf(data, "nghttp2_submit_goaway() failed: %s(%d)",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2586|      0|            nghttp2_strerror(rv), rv);
 2587|      0|      result = CURLE_SEND_ERROR;
 2588|      0|      goto out;
 2589|      0|    }
 2590|    788|  }
 2591|       |  /* GOAWAY submitted, process egress and ingress until nghttp2 is done. */
 2592|    814|  result = CURLE_OK;
 2593|    814|  if(nghttp2_session_want_write(ctx->h2) ||
  ------------------
  |  Branch (2593:6): [True: 777, False: 37]
  ------------------
 2594|     37|     !Curl_bufq_is_empty(&ctx->outbufq))
  ------------------
  |  Branch (2594:6): [True: 16, False: 21]
  ------------------
 2595|    793|    result = h2_progress_egress(cf, data);
 2596|    814|  if(!result && nghttp2_session_want_read(ctx->h2))
  ------------------
  |  Branch (2596:6): [True: 762, False: 52]
  |  Branch (2596:17): [True: 0, False: 762]
  ------------------
 2597|      0|    result = h2_progress_ingress(cf, data, 0);
 2598|       |
 2599|    814|  if(result == CURLE_AGAIN)
  ------------------
  |  Branch (2599:6): [True: 52, False: 762]
  ------------------
 2600|     52|    result = CURLE_OK;
 2601|       |
 2602|    814|  *done = (ctx->conn_closed ||
  ------------------
  |  Branch (2602:12): [True: 0, False: 814]
  ------------------
 2603|    814|           (!result && !nghttp2_session_want_write(ctx->h2) &&
  ------------------
  |  Branch (2603:13): [True: 814, False: 0]
  |  Branch (2603:24): [True: 788, False: 26]
  ------------------
 2604|    788|            !nghttp2_session_want_read(ctx->h2) &&
  ------------------
  |  Branch (2604:13): [True: 788, False: 0]
  ------------------
 2605|    788|            Curl_bufq_is_empty(&ctx->outbufq)));
  ------------------
  |  Branch (2605:13): [True: 762, False: 26]
  ------------------
 2606|       |
 2607|    814|out:
 2608|    814|  CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  663|    814|  do { \
  |  |  664|    814|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1083|    814|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  665|    814|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|    814|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  666|    814|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  118|    814|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  667|    814|  } while(0)
  |  |  ------------------
  |  |  |  Branch (667:11): [Folded, False: 814]
  |  |  ------------------
  ------------------
  |  Branch (2608:3): [True: 0, False: 814]
  |  Branch (2608:3): [True: 814, False: 0]
  |  Branch (2608:3): [True: 814, False: 0]
  |  Branch (2608:3): [True: 0, False: 0]
  |  Branch (2608:3): [True: 814, False: 0]
  |  Branch (2608:3): [True: 0, False: 0]
  ------------------
 2609|    814|  cf->shutdown = (result || *done);
  ------------------
  |  Branch (2609:19): [True: 0, False: 814]
  |  Branch (2609:29): [True: 762, False: 52]
  ------------------
 2610|    814|  return result;
 2611|    814|}
http2.c:cf_h2_adjust_pollset:
 2336|  9.89k|{
 2337|  9.89k|  struct cf_h2_ctx *ctx = cf->ctx;
 2338|  9.89k|  struct cf_call_data save;
 2339|  9.89k|  curl_socket_t sock;
 2340|  9.89k|  bool want_recv, want_send;
 2341|  9.89k|  CURLcode result = CURLE_OK;
 2342|       |
 2343|  9.89k|  if(!ctx->h2)
  ------------------
  |  Branch (2343:6): [True: 0, False: 9.89k]
  ------------------
 2344|      0|    return CURLE_OK;
 2345|       |
 2346|  9.89k|  sock = Curl_conn_cf_get_socket(cf, data);
 2347|  9.89k|  Curl_pollset_check(data, ps, sock, &want_recv, &want_send);
 2348|  9.89k|  if(want_recv || want_send) {
  ------------------
  |  Branch (2348:6): [True: 9.89k, False: 0]
  |  Branch (2348:19): [True: 0, False: 0]
  ------------------
 2349|  9.89k|    struct h2_stream_ctx *stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  257|  9.89k|  ((struct h2_stream_ctx *)(                                             \
  |  |  258|  9.89k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 9.89k, False: 0]
  |  |  ------------------
  ------------------
 2350|  9.89k|    bool c_exhaust, s_exhaust;
 2351|       |
 2352|  9.89k|    CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  655|  9.89k|  do { \
  |  |  656|  9.89k|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  118|  9.89k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  657|  9.89k|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|  9.89k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  658|  9.89k|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  118|  9.89k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  659|  9.89k|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  118|  9.89k|#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); \
  |  |  ------------------
  |  |  |  |  864|  9.89k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  660|  9.89k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (660:11): [Folded, False: 9.89k]
  |  |  ------------------
  ------------------
  |  Branch (2352:5): [True: 9.89k, False: 0]
  |  Branch (2352:5): [True: 0, False: 0]
  |  Branch (2352:5): [True: 9.89k, False: 0]
  |  Branch (2352:5): [True: 0, False: 0]
  ------------------
 2353|  9.89k|    c_exhaust = want_send && !nghttp2_session_get_remote_window_size(ctx->h2);
  ------------------
  |  Branch (2353:17): [True: 1.09k, False: 8.80k]
  |  Branch (2353:30): [True: 0, False: 1.09k]
  ------------------
 2354|  9.89k|    s_exhaust = want_send && stream && stream->id >= 0 &&
  ------------------
  |  Branch (2354:17): [True: 1.09k, False: 8.80k]
  |  Branch (2354:30): [True: 1.09k, False: 0]
  |  Branch (2354:40): [True: 1.09k, False: 0]
  ------------------
 2355|  1.09k|                !nghttp2_session_get_stream_remote_window_size(ctx->h2,
  ------------------
  |  Branch (2355:17): [True: 87, False: 1.00k]
  ------------------
 2356|  1.09k|                                                               stream->id);
 2357|  9.89k|    want_recv = (want_recv || c_exhaust || s_exhaust);
  ------------------
  |  Branch (2357:18): [True: 9.89k, False: 0]
  |  Branch (2357:31): [True: 0, False: 0]
  |  Branch (2357:44): [True: 0, False: 0]
  ------------------
 2358|  9.89k|    want_send = (!s_exhaust && want_send) ||
  ------------------
  |  Branch (2358:18): [True: 9.81k, False: 87]
  |  Branch (2358:32): [True: 1.00k, False: 8.80k]
  ------------------
 2359|  8.89k|                (!c_exhaust && nghttp2_session_want_write(ctx->h2)) ||
  ------------------
  |  Branch (2359:18): [True: 8.89k, False: 0]
  |  Branch (2359:32): [True: 35, False: 8.86k]
  ------------------
 2360|  8.86k|                !Curl_bufq_is_empty(&ctx->outbufq);
  ------------------
  |  Branch (2360:17): [True: 33, False: 8.82k]
  ------------------
 2361|       |
 2362|  9.89k|    result = Curl_pollset_set(data, ps, sock, want_recv, want_send);
 2363|  9.89k|    CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  663|  9.89k|  do { \
  |  |  664|  9.89k|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1083|  9.89k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  665|  9.89k|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|  9.89k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  666|  9.89k|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  118|  9.89k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  667|  9.89k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (667:11): [Folded, False: 9.89k]
  |  |  ------------------
  ------------------
  |  Branch (2363:5): [True: 0, False: 9.89k]
  |  Branch (2363:5): [True: 9.89k, False: 0]
  |  Branch (2363:5): [True: 9.89k, False: 0]
  |  Branch (2363:5): [True: 0, False: 0]
  |  Branch (2363:5): [True: 9.89k, False: 0]
  |  Branch (2363:5): [True: 0, False: 0]
  ------------------
 2364|  9.89k|  }
 2365|      0|  else if(ctx->sent_goaway && !cf->shutdown) {
  ------------------
  |  Branch (2365:11): [True: 0, False: 0]
  |  Branch (2365:31): [True: 0, False: 0]
  ------------------
 2366|       |    /* shutdown in progress */
 2367|      0|    CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  655|      0|  do { \
  |  |  656|      0|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  118|      0|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  657|      0|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  658|      0|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  118|      0|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  659|      0|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  118|      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); \
  |  |  ------------------
  |  |  |  |  864|      0|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  660|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (660:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (2367:5): [True: 0, False: 0]
  |  Branch (2367:5): [True: 0, False: 0]
  |  Branch (2367:5): [True: 0, False: 0]
  |  Branch (2367:5): [True: 0, False: 0]
  ------------------
 2368|      0|    want_send = nghttp2_session_want_write(ctx->h2) ||
  ------------------
  |  Branch (2368:17): [True: 0, False: 0]
  ------------------
 2369|      0|                !Curl_bufq_is_empty(&ctx->outbufq);
  ------------------
  |  Branch (2369:17): [True: 0, False: 0]
  ------------------
 2370|      0|    want_recv = nghttp2_session_want_read(ctx->h2);
 2371|      0|    result = Curl_pollset_set(data, ps, sock, want_recv, want_send);
 2372|      0|    CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  663|      0|  do { \
  |  |  664|      0|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  665|      0|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  666|      0|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  118|      0|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  667|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (667:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (2372:5): [True: 0, False: 0]
  |  Branch (2372:5): [True: 0, False: 0]
  |  Branch (2372:5): [True: 0, False: 0]
  |  Branch (2372:5): [True: 0, False: 0]
  |  Branch (2372:5): [True: 0, False: 0]
  |  Branch (2372:5): [True: 0, False: 0]
  ------------------
 2373|      0|  }
 2374|  9.89k|  return result;
 2375|  9.89k|}
http2.c:cf_h2_data_pending:
 2683|  22.0k|{
 2684|  22.0k|  struct cf_h2_ctx *ctx = cf->ctx;
 2685|       |
 2686|  22.0k|  if(ctx && !Curl_bufq_is_empty(&ctx->inbufq))
  ------------------
  |  Branch (2686:6): [True: 22.0k, False: 0]
  |  Branch (2686:13): [True: 0, False: 22.0k]
  ------------------
 2687|      0|    return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2688|  22.0k|  return cf->next ? cf->next->cft->has_data_pending(cf->next, data) : FALSE;
  ------------------
  |  | 1056|  22.0k|#define FALSE false
  ------------------
  |  Branch (2688:10): [True: 22.0k, False: 0]
  ------------------
 2689|  22.0k|}
http2.c:cf_h2_send:
 2204|  4.59k|{
 2205|  4.59k|  struct cf_h2_ctx *ctx = cf->ctx;
 2206|  4.59k|  struct h2_stream_ctx *stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  257|  4.59k|  ((struct h2_stream_ctx *)(                                             \
  |  |  258|  4.59k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 4.59k, False: 0]
  |  |  ------------------
  ------------------
 2207|  4.59k|  struct cf_call_data save;
 2208|  4.59k|  CURLcode result = CURLE_OK, r2;
 2209|       |
 2210|  4.59k|  CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  655|  4.59k|  do { \
  |  |  656|  4.59k|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  118|  4.59k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  657|  4.59k|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|  4.59k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  658|  4.59k|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  118|  4.59k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  659|  4.59k|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  118|  4.59k|#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); \
  |  |  ------------------
  |  |  |  |  864|  4.59k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  660|  4.59k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (660:11): [Folded, False: 4.59k]
  |  |  ------------------
  ------------------
  |  Branch (2210:3): [True: 4.59k, False: 0]
  |  Branch (2210:3): [True: 0, False: 0]
  |  Branch (2210:3): [True: 4.59k, False: 0]
  |  Branch (2210:3): [True: 0, False: 0]
  ------------------
 2211|  4.59k|  *pnwritten = 0;
 2212|       |
 2213|  4.59k|  if(!stream || stream->id == -1) {
  ------------------
  |  Branch (2213:6): [True: 4.40k, False: 184]
  |  Branch (2213:17): [True: 9, False: 175]
  ------------------
 2214|  4.41k|    result = h2_submit(&stream, cf, data, buf, len, eos, pnwritten);
 2215|  4.41k|    if(result)
  ------------------
  |  Branch (2215:8): [True: 19, False: 4.39k]
  ------------------
 2216|     19|      goto out;
 2217|  4.39k|    DEBUGASSERT(stream);
  ------------------
  |  | 1083|  4.39k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2217:5): [True: 0, False: 4.39k]
  |  Branch (2217:5): [True: 4.39k, False: 0]
  ------------------
 2218|  4.39k|  }
 2219|    175|  else if(stream->body_eos) {
  ------------------
  |  Branch (2219:11): [True: 0, False: 175]
  ------------------
 2220|       |    /* We already wrote this, but CURLE_AGAIN-ed the call due to not
 2221|       |     * being able to flush stream->sendbuf. Make a 0-length write
 2222|       |     * to trigger flushing again.
 2223|       |     * If this works, we report to have written `len` bytes. */
 2224|      0|    size_t n;
 2225|      0|    DEBUGASSERT(eos);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2225:5): [True: 0, False: 0]
  |  Branch (2225:5): [True: 0, False: 0]
  ------------------
 2226|      0|    result = cf_h2_body_send(cf, data, stream, buf, 0, eos, &n);
 2227|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 2228|      0|                stream->id, (int)result, n, eos);
 2229|      0|    if(result)
  ------------------
  |  Branch (2229:8): [True: 0, False: 0]
  ------------------
 2230|      0|      goto out;
 2231|      0|    *pnwritten = len;
 2232|      0|  }
 2233|    175|  else {
 2234|    175|    result = cf_h2_body_send(cf, data, stream, buf, len, eos, pnwritten);
 2235|    175|    CURL_TRC_CF(data, cf, "[%d] cf_body_send(len=%zu) -> %d, %zu, eos=%d",
  ------------------
  |  |  153|    175|  do {                                          \
  |  |  154|    175|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|    175|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    350|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 175, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 175]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    350|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    175|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    175|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    175|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 175]
  |  |  ------------------
  ------------------
 2236|    175|                stream->id, len, (int)result, *pnwritten, eos);
 2237|    175|  }
 2238|       |
 2239|       |  /* Call the nghttp2 send loop and flush to write ALL buffered data,
 2240|       |   * headers and/or request body completely out to the network */
 2241|  4.57k|  r2 = h2_progress_egress(cf, data);
 2242|       |
 2243|       |  /* if the stream has been closed in egress handling (nghttp2 does that
 2244|       |   * when it does not like the headers, for example */
 2245|  4.57k|  if(stream && stream->closed) {
  ------------------
  |  Branch (2245:6): [True: 4.57k, False: 0]
  |  Branch (2245:16): [True: 7, False: 4.56k]
  ------------------
 2246|      7|    infof(data, "stream %d closed", stream->id);
  ------------------
  |  |  143|      7|  do {                               \
  |  |  144|      7|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      7|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 7, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 7]
  |  |  |  |  ------------------
  |  |  |  |  323|      7|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      7|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      7|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 7]
  |  |  ------------------
  ------------------
 2247|      7|    result = CURLE_SEND_ERROR;
 2248|      7|    goto out;
 2249|      7|  }
 2250|  4.56k|  else if(r2 && (r2 != CURLE_AGAIN)) {
  ------------------
  |  Branch (2250:11): [True: 225, False: 4.34k]
  |  Branch (2250:17): [True: 0, False: 225]
  ------------------
 2251|      0|    result = r2;
 2252|      0|    goto out;
 2253|      0|  }
 2254|       |
 2255|  4.56k|  if(should_close_session(ctx)) {
  ------------------
  |  Branch (2255:6): [True: 24, False: 4.54k]
  ------------------
 2256|       |    /* nghttp2 thinks this session is done. If the stream has not been
 2257|       |     * closed, this is an error state for out transfer */
 2258|     24|    if(stream && stream->closed) {
  ------------------
  |  Branch (2258:8): [True: 24, False: 0]
  |  Branch (2258:18): [True: 0, False: 24]
  ------------------
 2259|      0|      result = http2_handle_stream_close(cf, data, stream, pnwritten);
 2260|      0|    }
 2261|     24|    else {
 2262|     24|      CURL_TRC_CF(data, cf, "send: nothing to do in this session");
  ------------------
  |  |  153|     24|  do {                                          \
  |  |  154|     24|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|     24|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|     48|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 24, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 24]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|     48|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|     24|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|     24|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|     24|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 24]
  |  |  ------------------
  ------------------
 2263|     24|      result = CURLE_HTTP2;
 2264|     24|    }
 2265|     24|  }
 2266|       |
 2267|  4.59k|out:
 2268|  4.59k|  if(stream) {
  ------------------
  |  Branch (2268:6): [True: 4.59k, False: 0]
  ------------------
 2269|  4.59k|    CURL_TRC_CF(data, cf, "[%d] cf_send(len=%zu) -> %d, %zu, "
  ------------------
  |  |  153|  4.59k|  do {                                          \
  |  |  154|  4.59k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  4.59k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  9.18k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 4.59k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 4.59k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  9.18k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  4.59k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  4.59k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  4.59k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 4.59k]
  |  |  ------------------
  ------------------
 2270|  4.59k|                "eos=%d, h2 windows %d-%d (stream-conn), "
 2271|  4.59k|                "buffers %zu-%zu (stream-conn)",
 2272|  4.59k|                stream->id, len, (int)result, *pnwritten,
 2273|  4.59k|                stream->body_eos,
 2274|  4.59k|                nghttp2_session_get_stream_remote_window_size(
 2275|  4.59k|                  ctx->h2, stream->id),
 2276|  4.59k|                nghttp2_session_get_remote_window_size(ctx->h2),
 2277|  4.59k|                Curl_bufq_len(&stream->sendbuf),
 2278|  4.59k|                Curl_bufq_len(&ctx->outbufq));
 2279|  4.59k|  }
 2280|      0|  else {
 2281|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 2282|      0|                "connection-window=%d, nw_send_buffer(%zu)",
 2283|      0|                len, (int)result, *pnwritten,
 2284|      0|                nghttp2_session_get_remote_window_size(ctx->h2),
 2285|      0|                Curl_bufq_len(&ctx->outbufq));
 2286|      0|  }
 2287|  4.59k|  CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  663|  4.59k|  do { \
  |  |  664|  4.59k|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1083|  4.59k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  665|  4.59k|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|  4.59k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  666|  4.59k|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  118|  4.59k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  667|  4.59k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (667:11): [Folded, False: 4.59k]
  |  |  ------------------
  ------------------
  |  Branch (2287:3): [True: 0, False: 4.59k]
  |  Branch (2287:3): [True: 4.59k, False: 0]
  |  Branch (2287:3): [True: 4.59k, False: 0]
  |  Branch (2287:3): [True: 0, False: 0]
  |  Branch (2287:3): [True: 4.59k, False: 0]
  |  Branch (2287:3): [True: 0, False: 0]
  ------------------
 2288|  4.59k|  return result;
 2289|  4.59k|}
http2.c:h2_submit:
 2071|  4.41k|{
 2072|  4.41k|  struct cf_h2_ctx *ctx = cf->ctx;
 2073|  4.41k|  struct h2_stream_ctx *stream = NULL;
 2074|  4.41k|  struct dynhds h2_headers;
 2075|  4.41k|  nghttp2_nv *nva = NULL;
 2076|  4.41k|  const void *body = NULL;
 2077|  4.41k|  size_t nheader, bodylen;
 2078|  4.41k|  nghttp2_data_provider data_prd;
 2079|  4.41k|  int32_t stream_id;
 2080|  4.41k|  nghttp2_priority_spec pri_spec;
 2081|  4.41k|  size_t nwritten;
 2082|  4.41k|  CURLcode result = CURLE_OK;
 2083|  4.41k|  uint32_t initial_win_size;
 2084|       |
 2085|  4.41k|  *pnwritten = 0;
 2086|  4.41k|  Curl_dynhds_init(&h2_headers, 0, DYN_HTTP_REQUEST);
  ------------------
  |  |   69|  4.41k|#define DYN_HTTP_REQUEST    (1024 * 1024)
  ------------------
 2087|       |
 2088|  4.41k|  result = http2_data_setup(cf, data, &stream);
 2089|  4.41k|  if(result)
  ------------------
  |  Branch (2089:6): [True: 0, False: 4.41k]
  ------------------
 2090|      0|    goto out;
 2091|       |
 2092|  4.41k|  result = Curl_h1_req_parse_read(&stream->h1, buf, len, NULL,
 2093|  4.41k|                                  !data->state.http_ignorecustom ?
  ------------------
  |  Branch (2093:35): [True: 4.41k, False: 0]
  ------------------
 2094|  4.41k|                                  data->set.str[STRING_CUSTOMREQUEST] : NULL,
 2095|  4.41k|                                  0, &nwritten);
 2096|  4.41k|  if(result)
  ------------------
  |  Branch (2096:6): [True: 19, False: 4.39k]
  ------------------
 2097|     19|    goto out;
 2098|  4.39k|  *pnwritten = nwritten;
 2099|  4.39k|  if(!stream->h1.done) {
  ------------------
  |  Branch (2099:6): [True: 11, False: 4.38k]
  ------------------
 2100|       |    /* need more data */
 2101|     11|    goto out;
 2102|     11|  }
 2103|  4.38k|  DEBUGASSERT(stream->h1.req);
  ------------------
  |  | 1083|  4.38k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2103:3): [True: 0, False: 4.38k]
  |  Branch (2103:3): [True: 4.38k, False: 0]
  ------------------
 2104|       |
 2105|  4.38k|  result = Curl_http_req_to_h2(&h2_headers, stream->h1.req, data);
 2106|  4.38k|  if(result)
  ------------------
  |  Branch (2106:6): [True: 0, False: 4.38k]
  ------------------
 2107|      0|    goto out;
 2108|       |  /* no longer needed */
 2109|  4.38k|  Curl_h1_req_parse_free(&stream->h1);
 2110|       |
 2111|  4.38k|  nva = Curl_dynhds_to_nva(&h2_headers, &nheader);
 2112|  4.38k|  if(!nva) {
  ------------------
  |  Branch (2112:6): [True: 0, False: 4.38k]
  ------------------
 2113|      0|    result = CURLE_OUT_OF_MEMORY;
 2114|      0|    goto out;
 2115|      0|  }
 2116|       |
 2117|  4.38k|  h2_pri_spec(data, &pri_spec);
 2118|  4.38k|  if(!nghttp2_session_check_request_allowed(ctx->h2))
  ------------------
  |  Branch (2118:6): [True: 0, False: 4.38k]
  ------------------
 2119|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 2120|       |
 2121|       |  /* Check the initial windows size of the transfer (rate-limits?) and
 2122|       |   * send an updated settings on changes from previous value. */
 2123|  4.38k|  initial_win_size = cf_h2_initial_win_size(data);
 2124|  4.38k|  if(initial_win_size != ctx->initial_win_size) {
  ------------------
  |  Branch (2124:6): [True: 0, False: 4.38k]
  ------------------
 2125|      0|    result = cf_h2_update_settings(ctx, initial_win_size);
 2126|      0|    if(result)
  ------------------
  |  Branch (2126:8): [True: 0, False: 0]
  ------------------
 2127|      0|      goto out;
 2128|      0|  }
 2129|       |
 2130|  4.38k|  switch(data->state.httpreq) {
 2131|    352|  case HTTPREQ_POST:
  ------------------
  |  Branch (2131:3): [True: 352, False: 4.03k]
  ------------------
 2132|    352|  case HTTPREQ_POST_FORM:
  ------------------
  |  Branch (2132:3): [True: 0, False: 4.38k]
  ------------------
 2133|    352|  case HTTPREQ_POST_MIME:
  ------------------
  |  Branch (2133:3): [True: 0, False: 4.38k]
  ------------------
 2134|    602|  case HTTPREQ_PUT:
  ------------------
  |  Branch (2134:3): [True: 250, False: 4.13k]
  ------------------
 2135|    602|    data_prd.read_callback = req_body_read_callback;
 2136|    602|    data_prd.source.ptr = NULL;
 2137|    602|    stream_id = nghttp2_submit_request(ctx->h2, &pri_spec, nva, nheader,
 2138|    602|                                       &data_prd, data);
 2139|    602|    break;
 2140|  3.78k|  default:
  ------------------
  |  Branch (2140:3): [True: 3.78k, False: 602]
  ------------------
 2141|  3.78k|    stream_id = nghttp2_submit_request(ctx->h2, &pri_spec, nva, nheader,
 2142|  3.78k|                                       NULL, data);
 2143|  4.38k|  }
 2144|       |
 2145|  4.38k|  if(stream_id < 0) {
  ------------------
  |  Branch (2145:6): [True: 0, False: 4.38k]
  ------------------
 2146|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 2147|      0|                nghttp2_strerror(stream_id), stream_id);
 2148|      0|    result = CURLE_SEND_ERROR;
 2149|      0|    goto out;
 2150|      0|  }
 2151|       |
 2152|  4.38k|#ifdef CURLVERBOSE
 2153|  4.38k|#define MAX_ACC 60000  /* <64KB to account for some overhead */
 2154|  4.38k|  if(Curl_trc_is_verbose(data)) {
  ------------------
  |  |  322|  4.38k|  ((data) && (data)->set.verbose &&                        \
  |  |  ------------------
  |  |  |  Branch (322:4): [True: 4.38k, False: 0]
  |  |  |  Branch (322:14): [True: 0, False: 4.38k]
  |  |  ------------------
  |  |  323|  4.38k|   (!(data)->state.feat ||                                 \
  |  |  ------------------
  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  ------------------
  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  ------------------
  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2155|      0|    size_t acc = 0, i;
 2156|       |
 2157|      0|    infof(data, "[HTTP/2] [%d] OPENED stream for %s",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2158|      0|          stream_id, Curl_bufref_ptr(&data->state.url));
 2159|      0|    for(i = 0; i < nheader; ++i) {
  ------------------
  |  Branch (2159:16): [True: 0, False: 0]
  ------------------
 2160|      0|      acc += nva[i].namelen + nva[i].valuelen;
 2161|       |
 2162|      0|      infof(data, "[HTTP/2] [%d] [%.*s: %.*s]", stream_id,
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2163|      0|            (int)nva[i].namelen, nva[i].name,
 2164|      0|            (int)nva[i].valuelen, nva[i].value);
 2165|      0|    }
 2166|       |
 2167|      0|    if(acc > MAX_ACC) {
  ------------------
  |  | 2153|      0|#define MAX_ACC 60000  /* <64KB to account for some overhead */
  ------------------
  |  Branch (2167:8): [True: 0, False: 0]
  ------------------
 2168|      0|      infof(data, "[HTTP/2] Warning: The cumulative length of all "
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2169|      0|            "headers exceeds %d bytes and that could cause the "
 2170|      0|            "stream to be rejected.", MAX_ACC);
 2171|      0|    }
 2172|      0|  }
 2173|  4.38k|#endif
 2174|       |
 2175|  4.38k|  stream->id = stream_id;
 2176|       |
 2177|  4.38k|  body = (const char *)buf + *pnwritten;
 2178|  4.38k|  bodylen = len - *pnwritten;
 2179|       |
 2180|  4.38k|  if(bodylen || eos) {
  ------------------
  |  Branch (2180:6): [True: 665, False: 3.72k]
  |  Branch (2180:17): [True: 3.71k, False: 6]
  ------------------
 2181|  4.38k|    size_t n;
 2182|  4.38k|    result = cf_h2_body_send(cf, data, stream, body, bodylen, eos, &n);
 2183|  4.38k|    if(!result)
  ------------------
  |  Branch (2183:8): [True: 4.38k, False: 0]
  ------------------
 2184|  4.38k|      *pnwritten += n;
 2185|      0|    else if(result == CURLE_AGAIN)
  ------------------
  |  Branch (2185:13): [True: 0, False: 0]
  ------------------
 2186|      0|      result = CURLE_OK;
 2187|      0|    else {
 2188|      0|      result = CURLE_SEND_ERROR;
 2189|      0|    }
 2190|  4.38k|  }
 2191|       |
 2192|  4.41k|out:
 2193|  4.41k|  CURL_TRC_CF(data, cf, "[%d] submit -> %d, %zu",
  ------------------
  |  |  153|  4.41k|  do {                                          \
  |  |  154|  4.41k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  4.41k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  8.83k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 4.41k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 4.41k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  8.83k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  4.41k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  4.41k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (155:35): [True: 0, False: 0]
  |  |  ------------------
  |  |  156|  4.41k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 4.41k]
  |  |  ------------------
  ------------------
 2194|  4.41k|              stream ? stream->id : -1, (int)result, *pnwritten);
 2195|       |  curlx_safefree(nva);
  ------------------
  |  | 1340|  4.41k|  do {                      \
  |  | 1341|  4.41k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  4.41k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  4.41k|    (ptr) = NULL;           \
  |  | 1343|  4.41k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 4.41k]
  |  |  ------------------
  ------------------
 2196|  4.41k|  *pstream = stream;
 2197|  4.41k|  Curl_dynhds_free(&h2_headers);
 2198|  4.41k|  return result;
 2199|  4.38k|}
http2.c:req_body_read_callback:
 1583|  1.08k|{
 1584|  1.08k|  struct Curl_cfilter *cf = userp;
 1585|  1.08k|  struct cf_h2_ctx *ctx = cf->ctx;
 1586|  1.08k|  struct Curl_easy *data_s;
 1587|  1.08k|  struct h2_stream_ctx *stream = NULL;
 1588|  1.08k|  CURLcode result;
 1589|  1.08k|  ssize_t nread;
 1590|  1.08k|  size_t n;
 1591|  1.08k|  (void)source;
 1592|       |
 1593|  1.08k|  (void)cf;
 1594|  1.08k|  if(!stream_id)
  ------------------
  |  Branch (1594:6): [True: 0, False: 1.08k]
  ------------------
 1595|      0|    return NGHTTP2_ERR_INVALID_ARGUMENT;
 1596|       |
 1597|       |  /* get the stream from the hash based on Stream ID, stream ID zero is for
 1598|       |     connection-oriented stuff */
 1599|  1.08k|  data_s = nghttp2_session_get_stream_user_data(session, stream_id);
 1600|  1.08k|  if(!data_s)
  ------------------
  |  Branch (1600:6): [True: 0, False: 1.08k]
  ------------------
 1601|       |    /* Receiving a Stream ID not in the hash should not happen, this is an
 1602|       |       internal error more than anything else! */
 1603|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
 1604|       |
 1605|  1.08k|  stream = H2_STREAM_CTX(ctx, data_s);
  ------------------
  |  |  257|  1.08k|  ((struct h2_stream_ctx *)(                                             \
  |  |  258|  1.08k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 1.08k, False: 0]
  |  |  ------------------
  ------------------
 1606|  1.08k|  if(!stream)
  ------------------
  |  Branch (1606:6): [True: 0, False: 1.08k]
  ------------------
 1607|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
 1608|       |
 1609|  1.08k|  result = Curl_bufq_read(&stream->sendbuf, buf, length, &n);
 1610|  1.08k|  if(result) {
  ------------------
  |  Branch (1610:6): [True: 524, False: 558]
  ------------------
 1611|    524|    if(result != CURLE_AGAIN)
  ------------------
  |  Branch (1611:8): [True: 0, False: 524]
  ------------------
 1612|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 1613|    524|    nread = 0;
 1614|    524|  }
 1615|    558|  else
 1616|    558|    nread = (ssize_t)n;
 1617|       |
 1618|  1.08k|  CURL_TRC_CF(data_s, cf, "[%d] req_body_read(len=%zu) eos=%d -> %zd, %d",
  ------------------
  |  |  153|  1.08k|  do {                                          \
  |  |  154|  1.08k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  1.08k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  2.16k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 1.08k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 1.08k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  2.16k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  1.08k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  1.08k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  1.08k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 1.08k]
  |  |  ------------------
  ------------------
 1619|  1.08k|              stream_id, length, stream->body_eos, nread, (int)result);
 1620|       |
 1621|  1.08k|  if(stream->body_eos && Curl_bufq_is_empty(&stream->sendbuf)) {
  ------------------
  |  Branch (1621:6): [True: 287, False: 795]
  |  Branch (1621:26): [True: 281, False: 6]
  ------------------
 1622|    281|    *data_flags = NGHTTP2_DATA_FLAG_EOF;
 1623|    281|    return nread;
 1624|    281|  }
 1625|    801|  return (nread == 0) ? NGHTTP2_ERR_DEFERRED : nread;
  ------------------
  |  Branch (1625:10): [True: 310, False: 491]
  ------------------
 1626|  1.08k|}
http2.c:cf_h2_body_send:
 2026|  4.55k|{
 2027|  4.55k|  struct cf_h2_ctx *ctx = cf->ctx;
 2028|  4.55k|  CURLcode result;
 2029|       |
 2030|  4.55k|  *pnwritten = 0;
 2031|  4.55k|  if(stream->closed) {
  ------------------
  |  Branch (2031:6): [True: 0, False: 4.55k]
  ------------------
 2032|      0|    if(stream->resp_hds_complete) {
  ------------------
  |  Branch (2032:8): [True: 0, False: 0]
  ------------------
 2033|       |      /* Server decided to close the stream after having sent us a final
 2034|       |       * response. This is valid if it is not interested in the request
 2035|       |       * body. This happens on 30x or 40x responses.
 2036|       |       * We silently discard the data sent, since this is not a transport
 2037|       |       * error situation. */
 2038|      0|      CURL_TRC_CF(data, cf, "[%d] discarding data"
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 2039|      0|                  "on closed stream with response", stream->id);
 2040|      0|      if(eos)
  ------------------
  |  Branch (2040:10): [True: 0, False: 0]
  ------------------
 2041|      0|        stream->body_eos = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2042|      0|      *pnwritten = blen;
 2043|      0|      return CURLE_OK;
 2044|      0|    }
 2045|       |    /* Server closed before we got a response, this is an error */
 2046|      0|    infof(data, "stream %d closed", stream->id);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2047|      0|    return CURLE_SEND_ERROR;
 2048|      0|  }
 2049|       |
 2050|  4.55k|  result = Curl_bufq_write(&stream->sendbuf, buf, blen, pnwritten);
 2051|  4.55k|  if(result)
  ------------------
  |  Branch (2051:6): [True: 0, False: 4.55k]
  ------------------
 2052|      0|    return result;
 2053|       |
 2054|  4.55k|  if(eos && (blen == *pnwritten))
  ------------------
  |  Branch (2054:6): [True: 4.10k, False: 455]
  |  Branch (2054:13): [True: 4.10k, False: 0]
  ------------------
 2055|  4.10k|    stream->body_eos = TRUE;
  ------------------
  |  | 1053|  4.10k|#define TRUE true
  ------------------
 2056|       |
 2057|  4.55k|  if(eos || !Curl_bufq_is_empty(&stream->sendbuf)) {
  ------------------
  |  Branch (2057:6): [True: 4.10k, False: 455]
  |  Branch (2057:13): [True: 455, False: 0]
  ------------------
 2058|       |    /* resume the potentially suspended stream */
 2059|  4.55k|    int rv = nghttp2_session_resume_data(ctx->h2, stream->id);
 2060|  4.55k|    if(nghttp2_is_fatal(rv))
  ------------------
  |  Branch (2060:8): [True: 0, False: 4.55k]
  ------------------
 2061|      0|      return CURLE_SEND_ERROR;
 2062|  4.55k|  }
 2063|       |
 2064|  4.55k|  return CURLE_OK;
 2065|  4.55k|}
http2.c:http2_handle_stream_close:
 1687|    540|{
 1688|    540|  CURLcode result;
 1689|       |
 1690|    540|  *pnlen = 0;
 1691|    540|  if(stream->reset) {
  ------------------
  |  Branch (1691:6): [True: 465, False: 75]
  ------------------
 1692|    465|    if(stream->error == NGHTTP2_REFUSED_STREAM) {
  ------------------
  |  Branch (1692:8): [True: 34, False: 431]
  ------------------
 1693|     34|      infof(data, "HTTP/2 stream %d refused by server, try again on a new "
  ------------------
  |  |  143|     34|  do {                               \
  |  |  144|     34|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|     34|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 34, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 34]
  |  |  |  |  ------------------
  |  |  |  |  323|     34|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     34|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     34|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 34]
  |  |  ------------------
  ------------------
 1694|     34|                  "connection", stream->id);
 1695|     34|      connclose(cf->conn); /* do not use this anymore */
  ------------------
  |  |   88|     34|#define connclose(x)   Curl_conncontrol((x), CONNCTRL_CONN_CLOSE)
  |  |  ------------------
  |  |  |  |   82|     34|#define CONNCTRL_CONN_CLOSE      1
  |  |  ------------------
  ------------------
 1696|     34|      data->state.refused_stream = TRUE;
  ------------------
  |  | 1053|     34|#define TRUE true
  ------------------
 1697|     34|      return CURLE_RECV_ERROR; /* trigger Curl_retry_request() later */
 1698|     34|    }
 1699|    431|    else if(stream->resp_hds_complete && data->req.no_body) {
  ------------------
  |  Branch (1699:13): [True: 16, False: 415]
  |  Branch (1699:42): [True: 0, False: 16]
  ------------------
 1700|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1701|      0|                  "not want a body anyway, ignore: %s (err %u)",
 1702|      0|                  stream->id, nghttp2_http2_strerror(stream->error),
 1703|      0|                  stream->error);
 1704|      0|      stream->close_handled = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1705|      0|      return CURLE_OK;
 1706|      0|    }
 1707|    431|    failf(data, "HTTP/2 stream %d reset by %s (error 0x%x %s)",
  ------------------
  |  |   62|    431|#define failf Curl_failf
  ------------------
 1708|    431|          stream->id, stream->reset_by_server ? "server" : "curl",
  ------------------
  |  Branch (1708:23): [True: 45, False: 386]
  ------------------
 1709|    431|          stream->error, nghttp2_http2_strerror(stream->error));
 1710|    431|    return stream->error ? CURLE_HTTP2_STREAM :
  ------------------
  |  Branch (1710:12): [True: 431, False: 0]
  ------------------
 1711|    431|           (data->req.bytecount ? CURLE_PARTIAL_FILE : CURLE_HTTP2);
  ------------------
  |  Branch (1711:13): [True: 0, False: 0]
  ------------------
 1712|    465|  }
 1713|     75|  else if(!stream->bodystarted) {
  ------------------
  |  Branch (1713:11): [True: 1, False: 74]
  ------------------
 1714|      1|    failf(data, "HTTP/2 stream %d was closed cleanly, but before getting "
  ------------------
  |  |   62|      1|#define failf Curl_failf
  ------------------
 1715|      1|          "all response header fields, treated as error", stream->id);
 1716|      1|    return CURLE_HTTP2_STREAM;
 1717|      1|  }
 1718|       |
 1719|     74|  if(Curl_dynhds_count(&stream->resp_trailers)) {
  ------------------
  |  Branch (1719:6): [True: 9, False: 65]
  ------------------
 1720|      9|    struct dynhds_entry *e;
 1721|      9|    struct dynbuf dbuf;
 1722|      9|    size_t i;
 1723|       |
 1724|      9|    result = CURLE_OK;
 1725|      9|    curlx_dyn_init(&dbuf, DYN_TRAILERS);
  ------------------
  |  |   72|      9|#define DYN_TRAILERS        (64 * 1024)
  ------------------
 1726|    386|    for(i = 0; i < Curl_dynhds_count(&stream->resp_trailers); ++i) {
  ------------------
  |  Branch (1726:16): [True: 377, False: 9]
  ------------------
 1727|    377|      e = Curl_dynhds_getn(&stream->resp_trailers, i);
 1728|    377|      if(!e)
  ------------------
  |  Branch (1728:10): [True: 0, False: 377]
  ------------------
 1729|      0|        break;
 1730|    377|      curlx_dyn_reset(&dbuf);
 1731|    377|      result = curlx_dyn_addf(&dbuf, "%.*s: %.*s\x0d\x0a",
 1732|    377|                              (int)e->namelen, e->name,
 1733|    377|                              (int)e->valuelen, e->value);
 1734|    377|      if(result)
  ------------------
  |  Branch (1734:10): [True: 0, False: 377]
  ------------------
 1735|      0|        break;
 1736|    377|      Curl_debug(data, CURLINFO_HEADER_IN, curlx_dyn_ptr(&dbuf),
 1737|    377|                 curlx_dyn_len(&dbuf));
 1738|    377|      result = Curl_client_write(data,
 1739|    377|                                 CLIENTWRITE_HEADER | CLIENTWRITE_TRAILER,
  ------------------
  |  |   45|    377|#define CLIENTWRITE_HEADER  (1 << 2) /* meta information, HEADER */
  ------------------
                                               CLIENTWRITE_HEADER | CLIENTWRITE_TRAILER,
  ------------------
  |  |   49|    377|#define CLIENTWRITE_TRAILER (1 << 6) /* a trailer HEADER */
  ------------------
 1740|    377|                                 curlx_dyn_ptr(&dbuf), curlx_dyn_len(&dbuf));
 1741|    377|      if(result)
  ------------------
  |  Branch (1741:10): [True: 0, False: 377]
  ------------------
 1742|      0|        break;
 1743|    377|    }
 1744|      9|    curlx_dyn_free(&dbuf);
 1745|      9|    if(result)
  ------------------
  |  Branch (1745:8): [True: 0, False: 9]
  ------------------
 1746|      0|      goto out;
 1747|      9|  }
 1748|       |
 1749|     74|  stream->close_handled = TRUE;
  ------------------
  |  | 1053|     74|#define TRUE true
  ------------------
 1750|     74|  result = CURLE_OK;
 1751|       |
 1752|     74|out:
 1753|     74|  CURL_TRC_CF(data, cf, "handle_stream_close -> %d, %zu", (int)result, *pnlen);
  ------------------
  |  |  153|     74|  do {                                          \
  |  |  154|     74|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|     74|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    148|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 74, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 74]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    148|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|     74|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|     74|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|     74|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 74]
  |  |  ------------------
  ------------------
 1754|     74|  return result;
 1755|     74|}
http2.c:cf_h2_recv:
 1948|  16.4k|{
 1949|  16.4k|  struct cf_h2_ctx *ctx = cf->ctx;
 1950|  16.4k|  struct h2_stream_ctx *stream;
 1951|  16.4k|  CURLcode result, r2;
 1952|  16.4k|  struct cf_call_data save;
 1953|       |
 1954|  16.4k|  if(!data)
  ------------------
  |  Branch (1954:6): [True: 0, False: 16.4k]
  ------------------
 1955|      0|    return CURLE_HTTP2;
 1956|       |
 1957|  16.4k|  stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  257|  16.4k|  ((struct h2_stream_ctx *)(                                             \
  |  |  258|  16.4k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 16.4k, False: 0]
  |  |  ------------------
  ------------------
 1958|       |
 1959|  16.4k|  *pnread = 0;
 1960|  16.4k|  if(!stream) {
  ------------------
  |  Branch (1960:6): [True: 0, False: 16.4k]
  ------------------
 1961|       |    /* Abnormal call sequence: either this transfer has never opened a stream
 1962|       |     * (unlikely) or the transfer has been done, cleaned up its resources, but
 1963|       |     * a read() is called anyway. It is not clear what the calling sequence
 1964|       |     * is for such a case. */
 1965|      0|    failf(data, "http/2 recv on a transfer never opened "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1966|      0|          "or already cleared, mid=%u", data->mid);
 1967|      0|    return CURLE_HTTP2;
 1968|      0|  }
 1969|       |
 1970|  16.4k|  CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  655|  16.4k|  do { \
  |  |  656|  16.4k|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  118|  16.4k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  657|  16.4k|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|  16.4k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  658|  16.4k|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  118|  16.4k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  659|  16.4k|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  118|  16.4k|#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); \
  |  |  ------------------
  |  |  |  |  864|  16.4k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  660|  16.4k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (660:11): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  |  Branch (1970:3): [True: 16.4k, False: 0]
  |  Branch (1970:3): [True: 0, False: 0]
  |  Branch (1970:3): [True: 16.4k, False: 0]
  |  Branch (1970:3): [True: 0, False: 0]
  ------------------
 1971|       |
 1972|  16.4k|  result = stream_recv(cf, data, stream, buf, len, pnread);
 1973|  16.4k|  if(result && (result != CURLE_AGAIN))
  ------------------
  |  Branch (1973:6): [True: 16.4k, False: 0]
  |  Branch (1973:16): [True: 0, False: 16.4k]
  ------------------
 1974|      0|    goto out;
 1975|       |
 1976|  16.4k|  if(result) {
  ------------------
  |  Branch (1976:6): [True: 16.4k, False: 0]
  ------------------
 1977|  16.4k|    result = h2_progress_ingress(cf, data, len);
 1978|  16.4k|    if(result)
  ------------------
  |  Branch (1978:8): [True: 606, False: 15.8k]
  ------------------
 1979|    606|      goto out;
 1980|       |
 1981|  15.8k|    result = stream_recv(cf, data, stream, buf, len, pnread);
 1982|  15.8k|  }
 1983|       |
 1984|  15.8k|  if(*pnread > 0) {
  ------------------
  |  Branch (1984:6): [True: 0, False: 15.8k]
  ------------------
 1985|       |    /* Now that we transferred this to the upper layer, we report
 1986|       |     * the actual amount of DATA consumed to the H2 session, so
 1987|       |     * that it adjusts stream flow control */
 1988|      0|    nghttp2_session_consume(ctx->h2, stream->id, *pnread);
 1989|      0|    if(stream->closed) {
  ------------------
  |  Branch (1989:8): [True: 0, False: 0]
  ------------------
 1990|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1991|      0|      Curl_multi_mark_dirty(data);
 1992|      0|    }
 1993|      0|  }
 1994|       |
 1995|  16.4k|out:
 1996|  16.4k|  r2 = h2_progress_egress(cf, data);
 1997|  16.4k|  if(r2 == CURLE_AGAIN) {
  ------------------
  |  Branch (1997:6): [True: 1.19k, False: 15.2k]
  ------------------
 1998|       |    /* pending data to send, need to be called again. Ideally, we
 1999|       |     * monitor the socket for POLLOUT, but when not SENDING
 2000|       |     * any more, we force processing of the transfer. */
 2001|  1.19k|    if(!CURL_REQ_WANT_SEND(data))
  ------------------
  |  |   39|  1.19k|#define CURL_REQ_WANT_SEND(d)  ((d)->req.io_flags & REQ_IO_SEND)
  |  |  ------------------
  |  |  |  |   36|  1.19k|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  ------------------
  |  Branch (2001:8): [True: 117, False: 1.08k]
  ------------------
 2002|    117|      Curl_multi_mark_dirty(data);
 2003|  1.19k|  }
 2004|  15.2k|  else if(r2) {
  ------------------
  |  Branch (2004:11): [True: 0, False: 15.2k]
  ------------------
 2005|      0|    result = r2;
 2006|      0|  }
 2007|  16.4k|  CURL_TRC_CF(data, cf, "[%d] cf_recv(len=%zu) -> %d, %zu, "
  ------------------
  |  |  153|  16.4k|  do {                                          \
  |  |  154|  16.4k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  16.4k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  32.9k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 16.4k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 16.4k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  32.9k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  16.4k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  16.4k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  16.4k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
 2008|  16.4k|              "window=%d/%d, connection %d/%d",
 2009|  16.4k|              stream->id, len, (int)result, *pnread,
 2010|  16.4k|              nghttp2_session_get_stream_effective_recv_data_length(
 2011|  16.4k|                ctx->h2, stream->id),
 2012|  16.4k|              nghttp2_session_get_stream_effective_local_window_size(
 2013|  16.4k|                ctx->h2, stream->id),
 2014|  16.4k|              nghttp2_session_get_local_window_size(ctx->h2),
 2015|  16.4k|              HTTP2_HUGE_WINDOW_SIZE);
 2016|       |
 2017|  16.4k|  CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  663|  16.4k|  do { \
  |  |  664|  16.4k|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1083|  16.4k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  665|  16.4k|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|  16.4k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  666|  16.4k|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  118|  16.4k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  667|  16.4k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (667:11): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  |  Branch (2017:3): [True: 0, False: 16.4k]
  |  Branch (2017:3): [True: 16.4k, False: 0]
  |  Branch (2017:3): [True: 16.4k, False: 0]
  |  Branch (2017:3): [True: 0, False: 0]
  |  Branch (2017:3): [True: 16.4k, False: 0]
  |  Branch (2017:3): [True: 0, False: 0]
  ------------------
 2018|  16.4k|  return result;
 2019|  16.4k|}
http2.c:stream_recv:
 1834|  32.3k|{
 1835|  32.3k|  struct cf_h2_ctx *ctx = cf->ctx;
 1836|  32.3k|  CURLcode result = CURLE_AGAIN;
 1837|       |
 1838|  32.3k|  (void)buf;
 1839|  32.3k|  (void)len;
 1840|  32.3k|  *pnread = 0;
 1841|       |
 1842|  32.3k|  if(!stream->xfer_result)
  ------------------
  |  Branch (1842:6): [True: 32.2k, False: 95]
  ------------------
 1843|  32.2k|    stream->xfer_result = cf_h2_update_local_win(cf, data, stream);
 1844|       |
 1845|  32.3k|  if(stream->xfer_result) {
  ------------------
  |  Branch (1845:6): [True: 95, False: 32.2k]
  ------------------
 1846|     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))        \
  |  |  ------------------
  |  |  |  |  326|     95|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    190|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 95, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 95]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    190|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|     95|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1847|     95|    result = stream->xfer_result;
 1848|     95|  }
 1849|  32.2k|  else if(stream->closed) {
  ------------------
  |  Branch (1849:11): [True: 540, False: 31.7k]
  ------------------
 1850|    540|    CURL_TRC_CF(data, cf, "[%d] returning CLOSE", stream->id);
  ------------------
  |  |  153|    540|  do {                                          \
  |  |  154|    540|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|    540|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  1.08k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 540, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 540]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  1.08k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    540|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    540|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    540|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 540]
  |  |  ------------------
  ------------------
 1851|    540|    result = http2_handle_stream_close(cf, data, stream, pnread);
 1852|    540|  }
 1853|  31.7k|  else if(stream->reset ||
  ------------------
  |  Branch (1853:11): [True: 0, False: 31.7k]
  ------------------
 1854|  31.7k|          (ctx->conn_closed && Curl_bufq_is_empty(&ctx->inbufq)) ||
  ------------------
  |  Branch (1854:12): [True: 3.07k, False: 28.6k]
  |  Branch (1854:32): [True: 3.07k, False: 0]
  ------------------
 1855|  28.6k|          (ctx->rcvd_goaway && ctx->remote_max_sid < stream->id)) {
  ------------------
  |  Branch (1855:12): [True: 275, False: 28.3k]
  |  Branch (1855:32): [True: 0, False: 275]
  ------------------
 1856|  3.07k|    CURL_TRC_CF(data, cf, "[%d] returning ERR", stream->id);
  ------------------
  |  |  153|  3.07k|  do {                                          \
  |  |  154|  3.07k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  3.07k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  6.15k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 3.07k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 3.07k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  6.15k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  3.07k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  3.07k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  3.07k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 3.07k]
  |  |  ------------------
  ------------------
 1857|  3.07k|    result = data->req.bytecount ? CURLE_PARTIAL_FILE : CURLE_HTTP2;
  ------------------
  |  Branch (1857:14): [True: 85, False: 2.99k]
  ------------------
 1858|  3.07k|  }
 1859|       |
 1860|  32.3k|  if(result && (result != CURLE_AGAIN))
  ------------------
  |  Branch (1860:6): [True: 32.3k, False: 74]
  |  Branch (1860:16): [True: 3.63k, False: 28.6k]
  ------------------
 1861|  3.63k|    CURL_TRC_CF(data, cf, "[%d] stream_recv(len=%zu) -> %d, %zu",
  ------------------
  |  |  153|  3.63k|  do {                                          \
  |  |  154|  3.63k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  3.63k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  7.27k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 3.63k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 3.63k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  7.27k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  3.63k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  3.63k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  3.63k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 3.63k]
  |  |  ------------------
  ------------------
 1862|  32.3k|                stream->id, len, (int)result, *pnread);
 1863|  32.3k|  return result;
 1864|  32.3k|}
http2.c:cf_h2_cntrl:
 2649|  9.82k|{
 2650|  9.82k|  CURLcode result = CURLE_OK;
 2651|  9.82k|  struct cf_call_data save;
 2652|       |
 2653|  9.82k|  (void)arg2;
 2654|       |
 2655|  9.82k|  CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  655|  9.82k|  do { \
  |  |  656|  9.82k|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  118|  9.82k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  657|  9.82k|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|  9.82k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  658|  9.82k|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  118|  9.82k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  659|  9.82k|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  118|  9.82k|#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); \
  |  |  ------------------
  |  |  |  |  864|  9.82k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  660|  9.82k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (660:11): [Folded, False: 9.82k]
  |  |  ------------------
  ------------------
  |  Branch (2655:3): [True: 9.82k, False: 0]
  |  Branch (2655:3): [True: 0, False: 0]
  |  Branch (2655:3): [True: 9.80k, False: 13]
  |  Branch (2655:3): [True: 13, False: 0]
  ------------------
 2656|  9.82k|  switch(event) {
 2657|     12|  case CF_CTRL_DATA_SETUP:
  ------------------
  |  |  115|     12|#define CF_CTRL_DATA_SETUP              4  /* 0          NULL     first fail */
  ------------------
  |  Branch (2657:3): [True: 12, False: 9.80k]
  ------------------
 2658|     12|    break;
 2659|      0|  case CF_CTRL_DATA_PAUSE:
  ------------------
  |  |  117|      0|#define CF_CTRL_DATA_PAUSE              6  /* on/off     NULL     first fail */
  ------------------
  |  Branch (2659:3): [True: 0, False: 9.82k]
  ------------------
 2660|      0|    result = http2_data_pause(cf, data, (arg1 != 0));
 2661|      0|    break;
 2662|  1.27k|  case CF_CTRL_FLUSH:
  ------------------
  |  |  123|  1.27k|#define CF_CTRL_FLUSH            (256 + 2) /* 0          NULL     first fail */
  ------------------
  |  Branch (2662:3): [True: 1.27k, False: 8.54k]
  ------------------
 2663|  1.27k|    result = cf_h2_flush(cf, data);
 2664|  1.27k|    break;
 2665|  4.42k|  case CF_CTRL_DATA_DONE:
  ------------------
  |  |  118|  4.42k|#define CF_CTRL_DATA_DONE               7  /* premature  NULL     ignored */
  ------------------
  |  Branch (2665:3): [True: 4.42k, False: 5.39k]
  ------------------
 2666|  4.42k|    http2_data_done(cf, data);
 2667|  4.42k|    break;
 2668|     19|  case CF_CTRL_CONN_INFO_UPDATE:
  ------------------
  |  |  121|     19|#define CF_CTRL_CONN_INFO_UPDATE (256 + 0) /* 0          NULL     ignored */
  ------------------
  |  Branch (2668:3): [True: 19, False: 9.80k]
  ------------------
 2669|     19|    if(!cf->sockindex && cf->connected) {
  ------------------
  |  Branch (2669:8): [True: 19, False: 0]
  |  Branch (2669:26): [True: 19, False: 0]
  ------------------
 2670|     19|      cf->conn->httpversion_seen = 20;
 2671|     19|      Curl_conn_set_multiplex(cf->conn);
 2672|     19|    }
 2673|     19|    break;
 2674|  4.09k|  default:
  ------------------
  |  Branch (2674:3): [True: 4.09k, False: 5.73k]
  ------------------
 2675|  4.09k|    break;
 2676|  9.82k|  }
 2677|  9.82k|  CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  663|  9.82k|  do { \
  |  |  664|  9.82k|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1083|  9.82k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  665|  9.82k|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|  9.82k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  666|  9.82k|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  118|  9.82k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  667|  9.82k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (667:11): [Folded, False: 9.82k]
  |  |  ------------------
  ------------------
  |  Branch (2677:3): [True: 0, False: 9.82k]
  |  Branch (2677:3): [True: 9.82k, False: 0]
  |  Branch (2677:3): [True: 9.82k, False: 0]
  |  Branch (2677:3): [True: 0, False: 0]
  |  Branch (2677:3): [True: 9.80k, False: 13]
  |  Branch (2677:3): [True: 13, False: 0]
  ------------------
 2678|  9.82k|  return result;
 2679|  9.82k|}
http2.c:cf_h2_flush:
 2293|  1.27k|{
 2294|  1.27k|  struct cf_h2_ctx *ctx = cf->ctx;
 2295|  1.27k|  struct h2_stream_ctx *stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  257|  1.27k|  ((struct h2_stream_ctx *)(                                             \
  |  |  258|  1.27k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 1.27k, False: 0]
  |  |  ------------------
  ------------------
 2296|  1.27k|  struct cf_call_data save;
 2297|  1.27k|  CURLcode result = CURLE_OK;
 2298|       |
 2299|  1.27k|  CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  655|  1.27k|  do { \
  |  |  656|  1.27k|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  118|  1.27k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  657|  1.27k|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|  1.27k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  658|  1.27k|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  118|  1.27k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  659|  1.27k|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  118|  1.27k|#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); \
  |  |  ------------------
  |  |  |  |  864|  1.27k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  660|  1.27k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (660:11): [Folded, False: 1.27k]
  |  |  ------------------
  ------------------
  |  Branch (2299:3): [True: 1.27k, False: 0]
  |  Branch (2299:3): [True: 0, False: 0]
  |  Branch (2299:3): [True: 0, False: 1.27k]
  |  Branch (2299:3): [True: 1.27k, False: 0]
  ------------------
 2300|  1.27k|  if(stream && !Curl_bufq_is_empty(&stream->sendbuf)) {
  ------------------
  |  Branch (2300:6): [True: 1.26k, False: 14]
  |  Branch (2300:16): [True: 342, False: 919]
  ------------------
 2301|       |    /* resume the potentially suspended stream */
 2302|    342|    int rv = nghttp2_session_resume_data(ctx->h2, stream->id);
 2303|    342|    if(nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2303:8): [True: 0, False: 342]
  ------------------
 2304|      0|      result = CURLE_SEND_ERROR;
 2305|      0|      goto out;
 2306|      0|    }
 2307|    342|  }
 2308|       |
 2309|  1.27k|  result = h2_progress_egress(cf, data);
 2310|       |
 2311|  1.27k|out:
 2312|  1.27k|  if(stream) {
  ------------------
  |  Branch (2312:6): [True: 1.26k, False: 14]
  ------------------
 2313|  1.26k|    CURL_TRC_CF(data, cf, "[%d] flush -> %d, "
  ------------------
  |  |  153|  1.26k|  do {                                          \
  |  |  154|  1.26k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  1.26k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  2.52k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 1.26k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 1.26k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  2.52k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  1.26k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  1.26k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  1.26k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 1.26k]
  |  |  ------------------
  ------------------
 2314|  1.26k|                "h2 windows %d-%d (stream-conn), "
 2315|  1.26k|                "buffers %zu-%zu (stream-conn)",
 2316|  1.26k|                stream->id, (int)result,
 2317|  1.26k|                nghttp2_session_get_stream_remote_window_size(
 2318|  1.26k|                  ctx->h2, stream->id),
 2319|  1.26k|                nghttp2_session_get_remote_window_size(ctx->h2),
 2320|  1.26k|                Curl_bufq_len(&stream->sendbuf),
 2321|  1.26k|                Curl_bufq_len(&ctx->outbufq));
 2322|  1.26k|  }
 2323|     14|  else {
 2324|     14|    CURL_TRC_CF(data, cf, "flush -> %d, "
  ------------------
  |  |  153|     14|  do {                                          \
  |  |  154|     14|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|     14|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|     28|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 14, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 14]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|     28|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|     14|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|     14|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|     14|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 14]
  |  |  ------------------
  ------------------
 2325|     14|                "connection-window=%d, nw_send_buffer(%zu)",
 2326|     14|                (int)result, nghttp2_session_get_remote_window_size(ctx->h2),
 2327|     14|                Curl_bufq_len(&ctx->outbufq));
 2328|     14|  }
 2329|  1.27k|  CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  663|  1.27k|  do { \
  |  |  664|  1.27k|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1083|  1.27k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  665|  1.27k|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|  1.27k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  666|  1.27k|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  118|  1.27k|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  667|  1.27k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (667:11): [Folded, False: 1.27k]
  |  |  ------------------
  ------------------
  |  Branch (2329:3): [True: 0, False: 1.27k]
  |  Branch (2329:3): [True: 1.27k, False: 0]
  |  Branch (2329:3): [True: 1.27k, False: 0]
  |  Branch (2329:3): [True: 0, False: 0]
  |  Branch (2329:3): [True: 0, False: 1.27k]
  |  Branch (2329:3): [True: 1.27k, False: 0]
  ------------------
 2330|  1.27k|  return result;
 2331|  1.27k|}
http2.c:cf_h2_is_alive:
 2694|     12|{
 2695|     12|  struct cf_h2_ctx *ctx = cf->ctx;
 2696|     12|  bool alive;
 2697|     12|  struct cf_call_data save;
 2698|       |
 2699|     12|  *input_pending = FALSE;
  ------------------
  |  | 1056|     12|#define FALSE false
  ------------------
 2700|     12|  CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  655|     12|  do { \
  |  |  656|     12|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  118|     12|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  657|     12|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|     12|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  658|     12|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  118|     12|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  659|     12|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  118|     12|#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); \
  |  |  ------------------
  |  |  |  |  864|     12|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  660|     12|  } while(0)
  |  |  ------------------
  |  |  |  Branch (660:11): [Folded, False: 12]
  |  |  ------------------
  ------------------
  |  Branch (2700:3): [True: 12, False: 0]
  |  Branch (2700:3): [True: 0, False: 0]
  |  Branch (2700:3): [True: 12, False: 0]
  |  Branch (2700:3): [True: 0, False: 0]
  ------------------
 2701|     12|  alive = (ctx && ctx->h2 && http2_connisalive(cf, data, input_pending));
  ------------------
  |  Branch (2701:12): [True: 12, False: 0]
  |  Branch (2701:19): [True: 12, False: 0]
  |  Branch (2701:30): [True: 12, False: 0]
  ------------------
 2702|     12|  CURL_TRC_CF(data, cf, "conn alive -> %d, input_pending=%d",
  ------------------
  |  |  153|     12|  do {                                          \
  |  |  154|     12|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|     12|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|     24|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 12, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 12]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|     24|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|     12|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|     12|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|     12|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 12]
  |  |  ------------------
  ------------------
 2703|     12|              alive, *input_pending);
 2704|     12|  CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  663|     12|  do { \
  |  |  664|     12|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1083|     12|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  665|     12|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|     12|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  666|     12|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  118|     12|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  667|     12|  } while(0)
  |  |  ------------------
  |  |  |  Branch (667:11): [Folded, False: 12]
  |  |  ------------------
  ------------------
  |  Branch (2704:3): [True: 0, False: 12]
  |  Branch (2704:3): [True: 12, False: 0]
  |  Branch (2704:3): [True: 12, False: 0]
  |  Branch (2704:3): [True: 0, False: 0]
  |  Branch (2704:3): [True: 12, False: 0]
  |  Branch (2704:3): [True: 0, False: 0]
  ------------------
 2705|     12|  return alive;
 2706|     12|}
http2.c:http2_connisalive:
  532|     12|{
  533|     12|  struct cf_h2_ctx *ctx = cf->ctx;
  534|     12|  bool alive = TRUE;
  ------------------
  |  | 1053|     12|#define TRUE true
  ------------------
  535|       |
  536|     12|  *input_pending = FALSE;
  ------------------
  |  | 1056|     12|#define FALSE false
  ------------------
  537|     12|  if(!cf->next || !cf->next->cft->is_alive(cf->next, data, input_pending))
  ------------------
  |  Branch (537:6): [True: 0, False: 12]
  |  Branch (537:19): [True: 0, False: 12]
  ------------------
  538|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  539|       |
  540|     12|  if(*input_pending) {
  ------------------
  |  Branch (540:6): [True: 4, False: 8]
  ------------------
  541|       |    /* This happens before we have sent off a request and the connection is
  542|       |       not in use by any other transfer, there should not be any data here,
  543|       |       only "protocol frames" */
  544|      4|    CURLcode result;
  545|      4|    size_t nread;
  546|       |
  547|      4|    *input_pending = FALSE;
  ------------------
  |  | 1056|      4|#define FALSE false
  ------------------
  548|      4|    result = Curl_cf_recv_bufq(cf->next, data, &ctx->inbufq, 0, &nread);
  549|      4|    CURL_TRC_CF(data, cf, "connisalive, recv pending input -> %d, %zu",
  ------------------
  |  |  153|      4|  do {                                          \
  |  |  154|      4|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      4|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      8|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 4, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 4]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      8|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      4|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|      4|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|      4|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 4]
  |  |  ------------------
  ------------------
  550|      4|                (int)result, nread);
  551|      4|    if(!result) {
  ------------------
  |  Branch (551:8): [True: 4, False: 0]
  ------------------
  552|      4|      result = h2_process_pending_input(cf, data);
  553|      4|      if(result)
  ------------------
  |  Branch (553:10): [True: 0, False: 4]
  ------------------
  554|       |        /* immediate error, considered dead */
  555|      0|        alive = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  556|      4|      else {
  557|      4|        alive = !should_close_session(ctx);
  558|      4|      }
  559|      4|    }
  560|      0|    else if(result != CURLE_AGAIN) {
  ------------------
  |  Branch (560:13): [True: 0, False: 0]
  ------------------
  561|       |      /* the read failed so let's say this is dead anyway */
  562|      0|      alive = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  563|      0|    }
  564|      4|  }
  565|       |
  566|     12|  return alive;
  567|     12|}
http2.c:cf_h2_query:
 2723|  38.0k|{
 2724|  38.0k|  struct cf_h2_ctx *ctx = cf->ctx;
 2725|  38.0k|  struct cf_call_data save;
 2726|  38.0k|  size_t effective_max;
 2727|       |
 2728|  38.0k|  switch(query) {
 2729|    759|  case CF_QUERY_MAX_CONCURRENT:
  ------------------
  |  |  161|    759|#define CF_QUERY_MAX_CONCURRENT     1  /* number     -        */
  ------------------
  |  Branch (2729:3): [True: 759, False: 37.3k]
  ------------------
 2730|    759|    DEBUGASSERT(pres1);
  ------------------
  |  | 1083|    759|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2730:5): [True: 0, False: 759]
  |  Branch (2730:5): [True: 759, False: 0]
  ------------------
 2731|       |
 2732|    759|    CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  655|    759|  do { \
  |  |  656|    759|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  118|    759|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  657|    759|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|    759|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  658|    759|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  118|    759|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  659|    759|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  118|    759|#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); \
  |  |  ------------------
  |  |  |  |  864|    759|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  660|    759|  } while(0)
  |  |  ------------------
  |  |  |  Branch (660:11): [Folded, False: 759]
  |  |  ------------------
  ------------------
  |  Branch (2732:5): [True: 759, False: 0]
  |  Branch (2732:5): [True: 0, False: 0]
  |  Branch (2732:5): [True: 759, False: 0]
  |  Branch (2732:5): [True: 0, False: 0]
  ------------------
 2733|    759|    if(!ctx->h2 || !nghttp2_session_check_request_allowed(ctx->h2)) {
  ------------------
  |  Branch (2733:8): [True: 0, False: 759]
  |  Branch (2733:20): [True: 2, False: 757]
  ------------------
 2734|       |      /* the limit is what we have in use right now */
 2735|      2|      effective_max = cf->conn->attached_xfers;
 2736|      2|    }
 2737|    757|    else {
 2738|    757|      effective_max = ctx->max_concurrent_streams;
 2739|    757|    }
 2740|    759|    *pres1 = (effective_max > INT_MAX) ? INT_MAX : (int)effective_max;
  ------------------
  |  Branch (2740:14): [True: 487, False: 272]
  ------------------
 2741|    759|    CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  663|    759|  do { \
  |  |  664|    759|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1083|    759|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  665|    759|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|    759|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  666|    759|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  118|    759|#define CF_CTX_CALL_DATA(cf) ((struct cf_h2_ctx *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  667|    759|  } while(0)
  |  |  ------------------
  |  |  |  Branch (667:11): [Folded, False: 759]
  |  |  ------------------
  ------------------
  |  Branch (2741:5): [True: 0, False: 759]
  |  Branch (2741:5): [True: 759, False: 0]
  |  Branch (2741:5): [True: 759, False: 0]
  |  Branch (2741:5): [True: 0, False: 0]
  |  Branch (2741:5): [True: 759, False: 0]
  |  Branch (2741:5): [True: 0, False: 0]
  ------------------
 2742|    759|    return CURLE_OK;
 2743|    432|  case CF_QUERY_STREAM_ERROR: {
  ------------------
  |  |  166|    432|#define CF_QUERY_STREAM_ERROR       6  /* error code - */
  ------------------
  |  Branch (2743:3): [True: 432, False: 37.6k]
  ------------------
 2744|    432|    struct h2_stream_ctx *stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  257|    432|  ((struct h2_stream_ctx *)(                                             \
  |  |  258|    432|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 432, False: 0]
  |  |  ------------------
  ------------------
 2745|    432|    *pres1 = stream ? (int)stream->error : 0;
  ------------------
  |  Branch (2745:14): [True: 432, False: 0]
  ------------------
 2746|    432|    return CURLE_OK;
 2747|    759|  }
 2748|  22.1k|  case CF_QUERY_NEED_FLUSH: {
  ------------------
  |  |  167|  22.1k|#define CF_QUERY_NEED_FLUSH         7  /* TRUE/FALSE - */
  ------------------
  |  Branch (2748:3): [True: 22.1k, False: 15.9k]
  ------------------
 2749|  22.1k|    struct h2_stream_ctx *stream = H2_STREAM_CTX(ctx, data);
  ------------------
  |  |  257|  22.1k|  ((struct h2_stream_ctx *)(                                             \
  |  |  258|  22.1k|    (data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL))
  |  |  ------------------
  |  |  |  Branch (258:5): [True: 22.1k, False: 0]
  |  |  ------------------
  ------------------
 2750|  22.1k|    if(!Curl_bufq_is_empty(&ctx->outbufq) ||
  ------------------
  |  Branch (2750:8): [True: 1.38k, False: 20.7k]
  ------------------
 2751|  20.7k|       (stream && !Curl_bufq_is_empty(&stream->sendbuf))) {
  ------------------
  |  Branch (2751:9): [True: 20.6k, False: 95]
  |  Branch (2751:19): [True: 894, False: 19.7k]
  ------------------
 2752|  2.28k|      *pres1 = TRUE;
  ------------------
  |  | 1053|  2.28k|#define TRUE true
  ------------------
 2753|  2.28k|      return CURLE_OK;
 2754|  2.28k|    }
 2755|  19.8k|    break;
 2756|  22.1k|  }
 2757|  19.8k|  case CF_QUERY_HTTP_VERSION:
  ------------------
  |  |  169|  4.86k|#define CF_QUERY_HTTP_VERSION       9  /* number (10/11/20/30)   - */
  ------------------
  |  Branch (2757:3): [True: 4.86k, False: 33.1k]
  ------------------
 2758|  4.86k|    *pres1 = 20;
 2759|  4.86k|    return CURLE_OK;
 2760|  9.89k|  default:
  ------------------
  |  Branch (2760:3): [True: 9.89k, False: 28.1k]
  ------------------
 2761|  9.89k|    break;
 2762|  38.0k|  }
 2763|  29.7k|  return cf->next ?
  ------------------
  |  Branch (2763:10): [True: 29.7k, False: 0]
  ------------------
 2764|  29.7k|    cf->next->cft->query(cf->next, data, query, pres1, pres2) :
 2765|  29.7k|    CURLE_UNKNOWN_OPTION;
 2766|  38.0k|}
http2.c:http2_cfilter_add:
 2790|  4.41k|{
 2791|  4.41k|  struct Curl_cfilter *cf = NULL;
 2792|  4.41k|  struct cf_h2_ctx *ctx;
 2793|  4.41k|  CURLcode result = CURLE_OUT_OF_MEMORY;
 2794|       |
 2795|  4.41k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1083|  4.41k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2795:3): [True: 0, False: 4.41k]
  |  Branch (2795:3): [True: 4.41k, False: 0]
  ------------------
 2796|  4.41k|  ctx = curlx_calloc(1, sizeof(*ctx));
  ------------------
  |  | 1479|  4.41k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
 2797|  4.41k|  if(!ctx)
  ------------------
  |  Branch (2797:6): [True: 0, False: 4.41k]
  ------------------
 2798|      0|    goto out;
 2799|  4.41k|  cf_h2_ctx_init(ctx, via_h1_upgrade);
 2800|       |
 2801|  4.41k|  result = Curl_cf_create(&cf, &Curl_cft_nghttp2, ctx);
 2802|  4.41k|  if(result)
  ------------------
  |  Branch (2802:6): [True: 0, False: 4.41k]
  ------------------
 2803|      0|    goto out;
 2804|       |
 2805|  4.41k|  ctx = NULL;
 2806|  4.41k|  Curl_conn_cf_add(data, conn, sockindex, cf);
 2807|       |
 2808|  4.41k|out:
 2809|  4.41k|  if(result)
  ------------------
  |  Branch (2809:6): [True: 0, False: 4.41k]
  ------------------
 2810|      0|    cf_h2_ctx_free(ctx);
 2811|  4.41k|  *pcf = result ? NULL : cf;
  ------------------
  |  Branch (2811:10): [True: 0, False: 4.41k]
  ------------------
 2812|  4.41k|  return result;
 2813|  4.41k|}
http2.c:cf_h2_ctx_init:
  176|  4.41k|{
  177|  4.41k|  Curl_bufcp_init(&ctx->stream_bufcp, H2_CHUNK_SIZE, H2_STREAM_POOL_SPARES);
  ------------------
  |  |   59|  4.41k|#define H2_CHUNK_SIZE           (16 * 1024)
  ------------------
                Curl_bufcp_init(&ctx->stream_bufcp, H2_CHUNK_SIZE, H2_STREAM_POOL_SPARES);
  ------------------
  |  |   79|  4.41k|#define H2_STREAM_POOL_SPARES   (H2_CONN_WINDOW_SIZE / H2_CHUNK_SIZE)
  |  |  ------------------
  |  |  |  |   61|  4.41k|#define H2_CONN_WINDOW_SIZE     (10 * 1024 * 1024)
  |  |  ------------------
  |  |               #define H2_STREAM_POOL_SPARES   (H2_CONN_WINDOW_SIZE / H2_CHUNK_SIZE)
  |  |  ------------------
  |  |  |  |   59|  4.41k|#define H2_CHUNK_SIZE           (16 * 1024)
  |  |  ------------------
  ------------------
  178|  4.41k|  Curl_bufq_initp(&ctx->inbufq, &ctx->stream_bufcp, H2_NW_RECV_CHUNKS, 0);
  ------------------
  |  |   63|  4.41k|#define H2_NW_RECV_CHUNKS       (H2_CONN_WINDOW_SIZE / H2_CHUNK_SIZE)
  |  |  ------------------
  |  |  |  |   61|  4.41k|#define H2_CONN_WINDOW_SIZE     (10 * 1024 * 1024)
  |  |  ------------------
  |  |               #define H2_NW_RECV_CHUNKS       (H2_CONN_WINDOW_SIZE / H2_CHUNK_SIZE)
  |  |  ------------------
  |  |  |  |   59|  4.41k|#define H2_CHUNK_SIZE           (16 * 1024)
  |  |  ------------------
  ------------------
  179|  4.41k|  Curl_bufq_initp(&ctx->outbufq, &ctx->stream_bufcp, H2_NW_SEND_CHUNKS, 0);
  ------------------
  |  |   65|  4.41k|#define H2_NW_SEND_CHUNKS       1
  ------------------
  180|  4.41k|  curlx_dyn_init(&ctx->scratch, CURL_MAX_HTTP_HEADER);
  ------------------
  |  |  272|  4.41k|#define CURL_MAX_HTTP_HEADER (100 * 1024)
  ------------------
  181|  4.41k|  Curl_uint32_hash_init(&ctx->streams, 63, h2_stream_hash_free);
  182|  4.41k|  ctx->remote_max_sid = 2147483647;
  183|  4.41k|  ctx->via_h1_upgrade = via_h1_upgrade;
  184|       |  ctx->initialized = TRUE;
  ------------------
  |  | 1053|  4.41k|#define TRUE true
  ------------------
  185|  4.41k|}
http2.c:h2_stream_hash_free:
  169|  4.42k|{
  170|  4.42k|  (void)id;
  171|  4.42k|  DEBUGASSERT(stream);
  ------------------
  |  | 1083|  4.42k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (171:3): [True: 0, False: 4.42k]
  |  Branch (171:3): [True: 4.42k, False: 0]
  ------------------
  172|  4.42k|  h2_stream_ctx_free((struct h2_stream_ctx *)stream);
  173|  4.42k|}

Curl_httpchunk_init:
   75|    221|{
   76|    221|  (void)data;
   77|    221|  ch->hexindex = 0;      /* start at 0 */
   78|    221|  ch->state = CHUNK_HEX; /* we get hex first! */
   79|    221|  ch->last_code = CHUNKE_OK;
   80|    221|  curlx_dyn_init(&ch->trailer, DYN_H1_TRAILER);
  ------------------
  |  |   75|    221|#define DYN_H1_TRAILER      4096
  ------------------
   81|    221|  ch->ignore_body = ignore_body;
   82|    221|}
Curl_httpchunk_reset:
   86|    148|{
   87|    148|  (void)data;
   88|    148|  ch->hexindex = 0;      /* start at 0 */
   89|    148|  ch->state = CHUNK_HEX; /* we get hex first! */
   90|    148|  ch->last_code = CHUNKE_OK;
   91|    148|  curlx_dyn_reset(&ch->trailer);
   92|    148|  ch->ignore_body = ignore_body;
   93|    148|}
Curl_httpchunk_free:
   96|    221|{
   97|    221|  (void)data;
   98|    221|  curlx_dyn_free(&ch->trailer);
   99|    221|}
Curl_httpchunk_add_reader:
  672|    167|{
  673|    167|  struct Curl_creader *reader = NULL;
  674|    167|  CURLcode result;
  675|       |
  676|    167|  result = Curl_creader_create(&reader, data, &Curl_httpchunk_encoder,
  677|    167|                               CURL_CR_TRANSFER_ENCODE);
  678|    167|  if(!result)
  ------------------
  |  Branch (678:6): [True: 167, False: 0]
  ------------------
  679|    167|    result = Curl_creader_add(data, reader);
  680|       |
  681|    167|  if(result && reader)
  ------------------
  |  Branch (681:6): [True: 0, False: 167]
  |  Branch (681:16): [True: 0, False: 0]
  ------------------
  682|      0|    Curl_creader_free(data, reader);
  683|    167|  return result;
  684|    167|}
http_chunks.c:httpchunk_readwrite:
  112|    906|{
  113|    906|  CURLcode result = CURLE_OK;
  114|    906|  size_t piece;
  115|       |
  116|    906|  *pconsumed = 0; /* nothing's written yet */
  117|       |  /* first check terminal states that will not progress anywhere */
  118|    906|  if(ch->state == CHUNK_DONE)
  ------------------
  |  Branch (118:6): [True: 0, False: 906]
  ------------------
  119|      0|    return CURLE_OK;
  120|    906|  if(ch->state == CHUNK_FAILED)
  ------------------
  |  Branch (120:6): [True: 0, False: 906]
  ------------------
  121|      0|    return CURLE_RECV_ERROR;
  122|       |
  123|       |  /* the original data is written to the client, but we go on with the
  124|       |     chunk read process, to properly calculate the content length */
  125|    906|  if(data->set.http_te_skip && !ch->ignore_body) {
  ------------------
  |  Branch (125:6): [True: 0, False: 906]
  |  Branch (125:32): [True: 0, False: 0]
  ------------------
  126|      0|    if(cw_next)
  ------------------
  |  Branch (126:8): [True: 0, False: 0]
  ------------------
  127|      0|      result = Curl_cwriter_write(data, cw_next, CLIENTWRITE_BODY, buf, blen);
  ------------------
  |  |  188|      0|  ((w) ? (w)->cwt->do_write((d), (w), (t), (b), (n)) : CURLE_WRITE_ERROR)
  |  |  ------------------
  |  |  |  Branch (188:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  128|      0|    else
  129|      0|      result = Curl_client_write(data, CLIENTWRITE_BODY, buf, blen);
  ------------------
  |  |   43|      0|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  130|      0|    if(result) {
  ------------------
  |  Branch (130:8): [True: 0, False: 0]
  ------------------
  131|      0|      ch->state = CHUNK_FAILED;
  132|      0|      ch->last_code = CHUNKE_PASSTHRU_ERROR;
  133|      0|      return result;
  134|      0|    }
  135|      0|  }
  136|       |
  137|  35.7k|  while(blen) {
  ------------------
  |  Branch (137:9): [True: 34.9k, False: 863]
  ------------------
  138|  34.9k|    switch(ch->state) {
  ------------------
  |  Branch (138:12): [True: 34.9k, False: 0]
  ------------------
  139|  1.77k|    case CHUNK_HEX:
  ------------------
  |  Branch (139:5): [True: 1.77k, False: 33.1k]
  ------------------
  140|  1.77k|      if(ISXDIGIT(*buf)) {
  ------------------
  |  |   37|  1.77k|#define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   42|  3.54k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (42:22): [True: 1.47k, False: 291]
  |  |  |  |  |  Branch (42:38): [True: 493, False: 986]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   27|  3.04k|#define ISLOWHEXALPHA(x) (((x) >= 'a') && ((x) <= 'f'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (27:27): [True: 598, False: 679]
  |  |  |  |  |  Branch (27:43): [True: 572, False: 26]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   28|    705|#define ISUPHEXALPHA(x)  (((x) >= 'A') && ((x) <= 'F'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (28:27): [True: 404, False: 301]
  |  |  |  |  |  Branch (28:43): [True: 365, False: 39]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  141|  1.43k|        if(ch->hexindex >= CHUNK_MAXNUM_LEN) {
  ------------------
  |  |   39|  1.43k|#define CHUNK_MAXNUM_LEN (SIZEOF_CURL_OFF_T * 2)
  |  |  ------------------
  |  |  |  |  630|  1.43k|#define SIZEOF_CURL_OFF_T 8
  |  |  ------------------
  ------------------
  |  Branch (141:12): [True: 5, False: 1.42k]
  ------------------
  142|      5|          failf(data, "chunk hex-length longer than %d", CHUNK_MAXNUM_LEN);
  ------------------
  |  |   62|      5|#define failf Curl_failf
  ------------------
                        failf(data, "chunk hex-length longer than %d", CHUNK_MAXNUM_LEN);
  ------------------
  |  |   39|      5|#define CHUNK_MAXNUM_LEN (SIZEOF_CURL_OFF_T * 2)
  |  |  ------------------
  |  |  |  |  630|      5|#define SIZEOF_CURL_OFF_T 8
  |  |  ------------------
  ------------------
  143|      5|          ch->state = CHUNK_FAILED;
  144|      5|          ch->last_code = CHUNKE_TOO_LONG_HEX; /* longer than we support */
  145|      5|          return CURLE_RECV_ERROR;
  146|      5|        }
  147|  1.42k|        ch->hexbuffer[ch->hexindex++] = *buf;
  148|  1.42k|        buf++;
  149|  1.42k|        blen--;
  150|  1.42k|        (*pconsumed)++;
  151|  1.42k|      }
  152|    340|      else {
  153|    340|        const char *p;
  154|    340|        if(ch->hexindex == 0) {
  ------------------
  |  Branch (154:12): [True: 10, False: 330]
  ------------------
  155|       |          /* This is illegal data, we received junk where we expected
  156|       |             a hexadecimal digit. */
  157|     10|          failf(data, "chunk hex-length char not a hex digit: 0x%x",
  ------------------
  |  |   62|     10|#define failf Curl_failf
  ------------------
  158|     10|                (unsigned int)*buf);
  159|     10|          ch->state = CHUNK_FAILED;
  160|     10|          ch->last_code = CHUNKE_ILLEGAL_HEX;
  161|     10|          return CURLE_RECV_ERROR;
  162|     10|        }
  163|       |        /* blen and buf are unmodified */
  164|    330|        ch->hexbuffer[ch->hexindex] = 0;
  165|    330|        p = &ch->hexbuffer[0];
  166|    330|        if(curlx_str_hex(&p, &ch->datasize, CURL_OFF_T_MAX)) {
  ------------------
  |  |  596|    330|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  |  Branch (166:12): [True: 2, False: 328]
  ------------------
  167|      2|          failf(data, "invalid chunk size: '%s'", ch->hexbuffer);
  ------------------
  |  |   62|      2|#define failf Curl_failf
  ------------------
  168|      2|          ch->state = CHUNK_FAILED;
  169|      2|          ch->last_code = CHUNKE_ILLEGAL_HEX;
  170|      2|          return CURLE_RECV_ERROR;
  171|      2|        }
  172|    328|        ch->state = CHUNK_LF; /* now wait for the CRLF */
  173|    328|      }
  174|  1.75k|      break;
  175|       |
  176|  16.8k|    case CHUNK_LF:
  ------------------
  |  Branch (176:5): [True: 16.8k, False: 18.0k]
  ------------------
  177|       |      /* waiting for the LF after a chunk size */
  178|  16.8k|      if(*buf == 0x0a) {
  ------------------
  |  Branch (178:10): [True: 312, False: 16.5k]
  ------------------
  179|       |        /* we are now expecting data to come, unless size was zero! */
  180|    312|        if(ch->datasize == 0) {
  ------------------
  |  Branch (180:12): [True: 44, False: 268]
  ------------------
  181|     44|          ch->state = CHUNK_TRAILER; /* now check for trailers */
  182|     44|        }
  183|    268|        else {
  184|    268|          ch->state = CHUNK_DATA;
  185|    268|          CURL_TRC_WRITE(data, "http_chunked, chunk start of %"
  ------------------
  |  |  158|    268|  do {                                                     \
  |  |  159|    268|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  329|    268|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    536|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 268, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 268]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    536|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    268|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|    268|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|    268|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 268]
  |  |  ------------------
  ------------------
  186|    268|                         FMT_OFF_T " bytes", ch->datasize);
  187|    268|        }
  188|    312|      }
  189|       |
  190|  16.8k|      buf++;
  191|  16.8k|      blen--;
  192|  16.8k|      (*pconsumed)++;
  193|  16.8k|      break;
  194|       |
  195|    404|    case CHUNK_DATA:
  ------------------
  |  Branch (195:5): [True: 404, False: 34.5k]
  ------------------
  196|       |      /* We expect 'datasize' of data. We have 'blen' right now, it can be
  197|       |         more or less than 'datasize'. Get the smallest piece. */
  198|    404|      piece = blen;
  199|    404|      if(ch->datasize < (curl_off_t)blen)
  ------------------
  |  Branch (199:10): [True: 161, False: 243]
  ------------------
  200|    161|        piece = curlx_sotouz(ch->datasize);
  201|       |
  202|       |      /* Write the data portion available */
  203|    404|      if(!data->set.http_te_skip && !ch->ignore_body) {
  ------------------
  |  Branch (203:10): [True: 404, False: 0]
  |  Branch (203:37): [True: 404, False: 0]
  ------------------
  204|    404|        if(cw_next)
  ------------------
  |  Branch (204:12): [True: 404, False: 0]
  ------------------
  205|    404|          result = Curl_cwriter_write(data, cw_next, CLIENTWRITE_BODY,
  ------------------
  |  |  188|    404|  ((w) ? (w)->cwt->do_write((d), (w), (t), (b), (n)) : CURLE_WRITE_ERROR)
  |  |  ------------------
  |  |  |  Branch (188:4): [True: 404, False: 0]
  |  |  ------------------
  ------------------
  206|    404|                                      buf, piece);
  207|      0|        else
  208|      0|          result = Curl_client_write(data, CLIENTWRITE_BODY, buf, piece);
  ------------------
  |  |   43|      0|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  209|    404|        if(result) {
  ------------------
  |  Branch (209:12): [True: 1, False: 403]
  ------------------
  210|      1|          ch->state = CHUNK_FAILED;
  211|      1|          ch->last_code = CHUNKE_PASSTHRU_ERROR;
  212|      1|          return result;
  213|      1|        }
  214|    404|      }
  215|       |
  216|    403|      *pconsumed += piece;
  217|    403|      ch->datasize -= piece; /* decrease amount left to expect */
  218|    403|      buf += piece;    /* move read pointer forward */
  219|    403|      blen -= piece;   /* decrease space left in this round */
  220|    403|      CURL_TRC_WRITE(data, "http_chunked, write %zu body bytes, %"
  ------------------
  |  |  158|    403|  do {                                                     \
  |  |  159|    403|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  329|    403|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    806|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 403, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 403]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    806|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    403|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|    403|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|    403|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 403]
  |  |  ------------------
  ------------------
  221|    403|                     FMT_OFF_T " bytes in chunk remain",
  222|    403|                     piece, ch->datasize);
  223|       |
  224|    403|      if(ch->datasize == 0)
  ------------------
  |  Branch (224:10): [True: 160, False: 243]
  ------------------
  225|       |        /* end of data this round, we now expect a trailing CRLF */
  226|    160|        ch->state = CHUNK_POSTLF;
  227|    403|      break;
  228|       |
  229|    782|    case CHUNK_POSTLF:
  ------------------
  |  Branch (229:5): [True: 782, False: 34.1k]
  ------------------
  230|    782|      if(*buf == 0x0a) {
  ------------------
  |  Branch (230:10): [True: 148, False: 634]
  ------------------
  231|       |        /* The last one before we go back to hex state and start all over. */
  232|    148|        Curl_httpchunk_reset(data, ch, (bool)ch->ignore_body);
  233|    148|      }
  234|    634|      else if(*buf != 0x0d) {
  ------------------
  |  Branch (234:15): [True: 12, False: 622]
  ------------------
  235|     12|        ch->state = CHUNK_FAILED;
  236|     12|        ch->last_code = CHUNKE_BAD_CHUNK;
  237|     12|        return CURLE_RECV_ERROR;
  238|     12|      }
  239|    770|      buf++;
  240|    770|      blen--;
  241|    770|      (*pconsumed)++;
  242|    770|      break;
  243|       |
  244|  14.6k|    case CHUNK_TRAILER:
  ------------------
  |  Branch (244:5): [True: 14.6k, False: 20.2k]
  ------------------
  245|  14.6k|      if((*buf == 0x0d) || (*buf == 0x0a)) {
  ------------------
  |  Branch (245:10): [True: 91, False: 14.5k]
  |  Branch (245:28): [True: 143, False: 14.3k]
  ------------------
  246|    234|        const char *tr = curlx_dyn_ptr(&ch->trailer);
  247|       |        /* this is the end of a trailer, but if the trailer was zero bytes
  248|       |           there was no trailer and we move on */
  249|       |
  250|    234|        if(tr) {
  ------------------
  |  Branch (250:12): [True: 231, False: 3]
  ------------------
  251|    231|          size_t trlen;
  252|    231|          result = curlx_dyn_addn(&ch->trailer, STRCONST("\x0d\x0a"));
  ------------------
  |  | 1305|    231|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|    231|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  253|    231|          if(result) {
  ------------------
  |  Branch (253:14): [True: 1, False: 230]
  ------------------
  254|      1|            ch->state = CHUNK_FAILED;
  255|      1|            ch->last_code = CHUNKE_OUT_OF_MEMORY;
  256|      1|            return result;
  257|      1|          }
  258|    230|          tr = curlx_dyn_ptr(&ch->trailer);
  259|    230|          trlen = curlx_dyn_len(&ch->trailer);
  260|       |
  261|       |          /* a trailer is delivered to the client as a header, so it must pass
  262|       |             the same checks as a regular response header */
  263|    230|          result = Curl_verify_header(data, tr, trlen);
  264|    230|          if(result) {
  ------------------
  |  Branch (264:14): [True: 3, False: 227]
  ------------------
  265|      3|            ch->state = CHUNK_FAILED;
  266|      3|            ch->last_code = CHUNKE_BAD_CHUNK;
  267|      3|            return result;
  268|      3|          }
  269|       |
  270|    227|          if(!data->set.http_te_skip) {
  ------------------
  |  Branch (270:14): [True: 227, False: 0]
  ------------------
  271|    227|            if(cw_next)
  ------------------
  |  Branch (271:16): [True: 227, False: 0]
  ------------------
  272|    227|              result = Curl_cwriter_write(data, cw_next,
  ------------------
  |  |  188|    227|  ((w) ? (w)->cwt->do_write((d), (w), (t), (b), (n)) : CURLE_WRITE_ERROR)
  |  |  ------------------
  |  |  |  Branch (188:4): [True: 227, False: 0]
  |  |  ------------------
  ------------------
  273|    227|                                          CLIENTWRITE_HEADER |
  274|    227|                                          CLIENTWRITE_TRAILER,
  275|    227|                                          tr, trlen);
  276|      0|            else
  277|      0|              result = Curl_client_write(data,
  278|      0|                                         CLIENTWRITE_HEADER |
  ------------------
  |  |   45|      0|#define CLIENTWRITE_HEADER  (1 << 2) /* meta information, HEADER */
  ------------------
  279|      0|                                         CLIENTWRITE_TRAILER,
  ------------------
  |  |   49|      0|#define CLIENTWRITE_TRAILER (1 << 6) /* a trailer HEADER */
  ------------------
  280|      0|                                         tr, trlen);
  281|    227|            if(result) {
  ------------------
  |  Branch (281:16): [True: 3, False: 224]
  ------------------
  282|      3|              ch->state = CHUNK_FAILED;
  283|      3|              ch->last_code = CHUNKE_PASSTHRU_ERROR;
  284|      3|              return result;
  285|      3|            }
  286|    227|          }
  287|    224|          curlx_dyn_reset(&ch->trailer);
  288|    224|          ch->state = CHUNK_TRAILER_CR;
  289|    224|          if(*buf == 0x0a)
  ------------------
  |  Branch (289:14): [True: 137, False: 87]
  ------------------
  290|       |            /* already on the LF */
  291|    137|            break;
  292|    224|        }
  293|      3|        else {
  294|       |          /* no trailer, we are on the final CRLF pair */
  295|      3|          ch->state = CHUNK_TRAILER_POSTCR;
  296|      3|          break; /* do not advance the pointer */
  297|      3|        }
  298|    234|      }
  299|  14.3k|      else {
  300|  14.3k|        result = curlx_dyn_addn(&ch->trailer, buf, 1);
  301|  14.3k|        if(result) {
  ------------------
  |  Branch (301:12): [True: 1, False: 14.3k]
  ------------------
  302|      1|          ch->state = CHUNK_FAILED;
  303|      1|          ch->last_code = CHUNKE_OUT_OF_MEMORY;
  304|      1|          return result;
  305|      1|        }
  306|  14.3k|      }
  307|  14.4k|      buf++;
  308|  14.4k|      blen--;
  309|  14.4k|      (*pconsumed)++;
  310|  14.4k|      break;
  311|       |
  312|    224|    case CHUNK_TRAILER_CR:
  ------------------
  |  Branch (312:5): [True: 224, False: 34.6k]
  ------------------
  313|    224|      if(*buf == 0x0a) {
  ------------------
  |  Branch (313:10): [True: 223, False: 1]
  ------------------
  314|    223|        ch->state = CHUNK_TRAILER_POSTCR;
  315|    223|        buf++;
  316|    223|        blen--;
  317|    223|        (*pconsumed)++;
  318|    223|      }
  319|      1|      else {
  320|      1|        ch->state = CHUNK_FAILED;
  321|      1|        ch->last_code = CHUNKE_BAD_CHUNK;
  322|      1|        return CURLE_RECV_ERROR;
  323|      1|      }
  324|    223|      break;
  325|       |
  326|    223|    case CHUNK_TRAILER_POSTCR:
  ------------------
  |  Branch (326:5): [True: 216, False: 34.6k]
  ------------------
  327|       |      /* We enter this state when a CR should arrive so we expect to
  328|       |         have to first pass a CR before we wait for LF */
  329|    216|      if((*buf != 0x0d) && (*buf != 0x0a)) {
  ------------------
  |  Branch (329:10): [True: 214, False: 2]
  |  Branch (329:28): [True: 212, False: 2]
  ------------------
  330|       |        /* not a CR then it must be another header in the trailer */
  331|    212|        ch->state = CHUNK_TRAILER;
  332|    212|        break;
  333|    212|      }
  334|      4|      if(*buf == 0x0d) {
  ------------------
  |  Branch (334:10): [True: 2, False: 2]
  ------------------
  335|       |        /* skip if CR */
  336|      2|        buf++;
  337|      2|        blen--;
  338|      2|        (*pconsumed)++;
  339|      2|      }
  340|       |      /* now wait for the final LF */
  341|      4|      ch->state = CHUNK_STOP;
  342|      4|      break;
  343|       |
  344|      4|    case CHUNK_STOP:
  ------------------
  |  Branch (344:5): [True: 4, False: 34.9k]
  ------------------
  345|      4|      if(*buf == 0x0a) {
  ------------------
  |  Branch (345:10): [True: 3, False: 1]
  ------------------
  346|      3|        blen--;
  347|      3|        (*pconsumed)++;
  348|       |        /* Record the length of any data left in the end of the buffer
  349|       |           even if there is no more chunks to read */
  350|      3|        ch->datasize = blen;
  351|      3|        ch->state = CHUNK_DONE;
  352|      3|        CURL_TRC_WRITE(data, "http_chunk, response complete");
  ------------------
  |  |  158|      3|  do {                                                     \
  |  |  159|      3|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  329|      3|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      6|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 3, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 3]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      6|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|      3|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|      3|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|      3|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 3]
  |  |  ------------------
  ------------------
  353|      3|        return CURLE_OK;
  354|      3|      }
  355|      1|      else {
  356|      1|        ch->state = CHUNK_FAILED;
  357|      1|        ch->last_code = CHUNKE_BAD_CHUNK;
  358|      1|        CURL_TRC_WRITE(data, "http_chunk error, expected 0x0a, seeing 0x%ux",
  ------------------
  |  |  158|      1|  do {                                                     \
  |  |  159|      1|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  329|      1|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      2|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 1, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 1]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      2|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|      1|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|      1|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|      1|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 1]
  |  |  ------------------
  ------------------
  359|      1|                       (unsigned int)*buf);
  360|      1|        return CURLE_RECV_ERROR;
  361|      1|      }
  362|      0|    case CHUNK_DONE:
  ------------------
  |  Branch (362:5): [True: 0, False: 34.9k]
  ------------------
  363|      0|      return CURLE_OK;
  364|       |
  365|      0|    case CHUNK_FAILED:
  ------------------
  |  Branch (365:5): [True: 0, False: 34.9k]
  ------------------
  366|      0|      return CURLE_RECV_ERROR;
  367|  34.9k|    }
  368|  34.9k|  }
  369|    863|  return CURLE_OK;
  370|    906|}
http_chunks.c:cw_chunked_init:
  407|    221|{
  408|    221|  struct chunked_writer *ctx = writer->ctx;
  409|       |
  410|    221|  data->req.chunk = TRUE;      /* chunks coming our way. */
  ------------------
  |  | 1053|    221|#define TRUE true
  ------------------
  411|       |  Curl_httpchunk_init(data, &ctx->ch, FALSE);
  ------------------
  |  | 1056|    221|#define FALSE false
  ------------------
  412|    221|  return CURLE_OK;
  413|    221|}
http_chunks.c:cw_chunked_write:
  425|  1.40k|{
  426|  1.40k|  struct chunked_writer *ctx = writer->ctx;
  427|  1.40k|  CURLcode result;
  428|  1.40k|  size_t consumed;
  429|       |
  430|  1.40k|  if(!(type & CLIENTWRITE_BODY))
  ------------------
  |  |   43|  1.40k|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  |  Branch (430:6): [True: 498, False: 906]
  ------------------
  431|    498|    return Curl_cwriter_write(data, writer->next, type, buf, blen);
  ------------------
  |  |  188|    498|  ((w) ? (w)->cwt->do_write((d), (w), (t), (b), (n)) : CURLE_WRITE_ERROR)
  |  |  ------------------
  |  |  |  Branch (188:4): [True: 498, False: 0]
  |  |  ------------------
  ------------------
  432|       |
  433|    906|  consumed = 0;
  434|    906|  result = httpchunk_readwrite(data, &ctx->ch, writer->next, buf, blen,
  435|    906|                               &consumed);
  436|       |
  437|    906|  if(result) {
  ------------------
  |  Branch (437:6): [True: 40, False: 866]
  ------------------
  438|     40|    if(CHUNKE_PASSTHRU_ERROR == ctx->ch.last_code) {
  ------------------
  |  Branch (438:8): [True: 4, False: 36]
  ------------------
  439|      4|      failf(data, "Failed reading the chunked-encoded stream");
  ------------------
  |  |   62|      4|#define failf Curl_failf
  ------------------
  440|      4|    }
  441|     36|    else {
  442|     36|      failf(data, "%s in chunked-encoding",
  ------------------
  |  |   62|     36|#define failf Curl_failf
  ------------------
  443|     36|            Curl_chunked_strerror(ctx->ch.last_code));
  444|     36|    }
  445|     40|    return result;
  446|     40|  }
  447|       |
  448|    866|  blen -= consumed;
  449|    866|  if(CHUNK_DONE == ctx->ch.state) {
  ------------------
  |  Branch (449:6): [True: 3, False: 863]
  ------------------
  450|       |    /* chunks read successfully, download is complete */
  451|      3|    data->req.download_done = TRUE;
  ------------------
  |  | 1053|      3|#define TRUE true
  ------------------
  452|      3|    if(blen) {
  ------------------
  |  Branch (452:8): [True: 1, False: 2]
  ------------------
  453|      1|      infof(data, "Leftovers after chunking: %zu bytes", blen);
  ------------------
  |  |  143|      1|  do {                               \
  |  |  144|      1|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      1|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 1, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 1]
  |  |  |  |  ------------------
  |  |  |  |  323|      1|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      1|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      1|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 1]
  |  |  ------------------
  ------------------
  454|      1|    }
  455|      3|  }
  456|    863|  else if((type & CLIENTWRITE_EOS) && !data->req.no_body) {
  ------------------
  |  |   50|    863|#define CLIENTWRITE_EOS     (1 << 7) /* End Of transfer download Stream */
  ------------------
  |  Branch (456:11): [True: 166, False: 697]
  |  Branch (456:39): [True: 166, False: 0]
  ------------------
  457|    166|    failf(data, "transfer closed with outstanding read data remaining");
  ------------------
  |  |   62|    166|#define failf Curl_failf
  ------------------
  458|    166|    return CURLE_PARTIAL_FILE;
  459|    166|  }
  460|       |
  461|    700|  return CURLE_OK;
  462|    866|}
http_chunks.c:Curl_chunked_strerror:
  373|     36|{
  374|     36|  switch(code) {
  375|      0|  default:
  ------------------
  |  Branch (375:3): [True: 0, False: 36]
  ------------------
  376|      0|    return "OK";
  377|      5|  case CHUNKE_TOO_LONG_HEX:
  ------------------
  |  Branch (377:3): [True: 5, False: 31]
  ------------------
  378|      5|    return "Too long hexadecimal number";
  379|     12|  case CHUNKE_ILLEGAL_HEX:
  ------------------
  |  Branch (379:3): [True: 12, False: 24]
  ------------------
  380|     12|    return "Illegal or missing hexadecimal sequence";
  381|     17|  case CHUNKE_BAD_CHUNK:
  ------------------
  |  Branch (381:3): [True: 17, False: 19]
  ------------------
  382|     17|    return "Malformed encoding found";
  383|      0|  case CHUNKE_PASSTHRU_ERROR:
  ------------------
  |  Branch (383:3): [True: 0, False: 36]
  ------------------
  384|      0|    return "Error writing data to client";
  385|      0|  case CHUNKE_BAD_ENCODING:
  ------------------
  |  Branch (385:3): [True: 0, False: 36]
  ------------------
  386|      0|    return "Bad content-encoding found";
  387|      2|  case CHUNKE_OUT_OF_MEMORY:
  ------------------
  |  Branch (387:3): [True: 2, False: 34]
  ------------------
  388|      2|    return "Out of memory";
  389|     36|  }
  390|     36|}
http_chunks.c:cw_chunked_close:
  417|    221|{
  418|    221|  struct chunked_writer *ctx = writer->ctx;
  419|    221|  Curl_httpchunk_free(data, &ctx->ch);
  420|    221|}
http_chunks.c:cr_chunked_init:
  489|    167|{
  490|    167|  struct chunked_reader *ctx = reader->ctx;
  491|    167|  (void)data;
  492|    167|  Curl_bufq_init2(&ctx->chunkbuf, CURL_CHUNKED_MAXLEN, 2, BUFQ_OPT_SOFT_LIMIT);
  ------------------
  |  |  478|    167|#define CURL_CHUNKED_MAXLEN   (64 * 1024)
  ------------------
                Curl_bufq_init2(&ctx->chunkbuf, CURL_CHUNKED_MAXLEN, 2, BUFQ_OPT_SOFT_LIMIT);
  ------------------
  |  |  111|    167|#define BUFQ_OPT_SOFT_LIMIT  (1 << 0)
  ------------------
  493|    167|  return CURLE_OK;
  494|    167|}
http_chunks.c:cr_chunked_read:
  617|  3.71k|{
  618|  3.71k|  struct chunked_reader *ctx = reader->ctx;
  619|  3.71k|  CURLcode result = CURLE_READ_ERROR;
  620|       |
  621|  3.71k|  *pnread = 0;
  622|  3.71k|  *peos = (bool)ctx->eos;
  623|       |
  624|  3.71k|  if(!ctx->eos) {
  ------------------
  |  Branch (624:6): [True: 3.71k, False: 0]
  ------------------
  625|  3.71k|    if(!ctx->read_eos && Curl_bufq_is_empty(&ctx->chunkbuf)) {
  ------------------
  |  Branch (625:8): [True: 3.71k, False: 0]
  |  Branch (625:26): [True: 3.71k, False: 0]
  ------------------
  626|       |      /* Still getting data form the next reader, buffer is empty */
  627|  3.71k|      result = add_chunk(data, reader, buf, blen);
  628|  3.71k|      if(result)
  ------------------
  |  Branch (628:10): [True: 0, False: 3.71k]
  ------------------
  629|      0|        return result;
  630|  3.71k|    }
  631|       |
  632|  3.71k|    if(!Curl_bufq_is_empty(&ctx->chunkbuf)) {
  ------------------
  |  Branch (632:8): [True: 119, False: 3.59k]
  ------------------
  633|    119|      result = Curl_bufq_cread(&ctx->chunkbuf, buf, blen, pnread);
  634|    119|      if(!result && ctx->read_eos && Curl_bufq_is_empty(&ctx->chunkbuf)) {
  ------------------
  |  Branch (634:10): [True: 119, False: 0]
  |  Branch (634:21): [True: 47, False: 72]
  |  Branch (634:38): [True: 46, False: 1]
  ------------------
  635|       |        /* no more data, read all, done. */
  636|     46|        ctx->eos = TRUE;
  ------------------
  |  | 1053|     46|#define TRUE true
  ------------------
  637|     46|        *peos = TRUE;
  ------------------
  |  | 1053|     46|#define TRUE true
  ------------------
  638|     46|      }
  639|    119|      return result;
  640|    119|    }
  641|  3.71k|  }
  642|       |  /* We may get here, because we are done or because callbacks paused */
  643|  3.59k|  DEBUGASSERT(ctx->eos || !ctx->read_eos);
  ------------------
  |  | 1083|  3.59k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (643:3): [True: 3.59k, False: 0]
  |  Branch (643:3): [True: 0, False: 0]
  |  Branch (643:3): [True: 0, False: 3.59k]
  |  Branch (643:3): [True: 3.59k, False: 0]
  ------------------
  644|  3.59k|  return CURLE_OK;
  645|  3.59k|}
http_chunks.c:add_chunk:
  562|  3.71k|{
  563|  3.71k|  struct chunked_reader *ctx = reader->ctx;
  564|  3.71k|  CURLcode result;
  565|  3.71k|  char tmp[CURL_CHUNKED_MINLEN];
  566|  3.71k|  size_t nread;
  567|  3.71k|  bool eos;
  568|       |
  569|  3.71k|  DEBUGASSERT(!ctx->read_eos);
  ------------------
  |  | 1083|  3.71k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (569:3): [True: 0, False: 3.71k]
  |  Branch (569:3): [True: 3.71k, False: 0]
  ------------------
  570|  3.71k|  blen = CURLMIN(blen, CURL_CHUNKED_MAXLEN); /* respect our buffer pref */
  ------------------
  |  | 1296|  3.71k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1296:24): [True: 496, False: 3.22k]
  |  |  ------------------
  ------------------
  571|  3.71k|  if(blen < sizeof(tmp)) {
  ------------------
  |  Branch (571:6): [True: 25, False: 3.69k]
  ------------------
  572|       |    /* small read, make a chunk of decent size */
  573|     25|    buf = tmp;
  574|     25|    blen = sizeof(tmp);
  575|     25|  }
  576|  3.69k|  else {
  577|       |    /* larger read, make a chunk that will fit when read back */
  578|  3.69k|    blen -= (8 + 2 + 2); /* deduct max overhead, 8 hex + 2*crlf */
  579|  3.69k|  }
  580|       |
  581|  3.71k|  result = Curl_creader_read(data, reader->next, buf, blen, &nread, &eos);
  582|  3.71k|  if(result)
  ------------------
  |  Branch (582:6): [True: 0, False: 3.71k]
  ------------------
  583|      0|    return result;
  584|  3.71k|  if(eos)
  ------------------
  |  Branch (584:6): [True: 47, False: 3.66k]
  ------------------
  585|     47|    ctx->read_eos = TRUE;
  ------------------
  |  | 1053|     47|#define TRUE true
  ------------------
  586|       |
  587|  3.71k|  if(nread) {
  ------------------
  |  Branch (587:6): [True: 72, False: 3.64k]
  ------------------
  588|       |    /* actually got bytes, wrap them into the chunkbuf */
  589|     72|    char hd[11] = "";
  590|     72|    int hdlen;
  591|     72|    size_t n;
  592|       |
  593|     72|    hdlen = curl_msnprintf(hd, sizeof(hd), "%zx\r\n", nread);
  594|     72|    if(hdlen <= 0)
  ------------------
  |  Branch (594:8): [True: 0, False: 72]
  ------------------
  595|      0|      return CURLE_READ_ERROR;
  596|       |    /* On a soft-limited bufq, we do not need to check that all was written */
  597|     72|    result = Curl_bufq_cwrite(&ctx->chunkbuf, hd, hdlen, &n);
  598|     72|    if(!result)
  ------------------
  |  Branch (598:8): [True: 72, False: 0]
  ------------------
  599|     72|      result = Curl_bufq_cwrite(&ctx->chunkbuf, buf, nread, &n);
  600|     72|    if(!result)
  ------------------
  |  Branch (600:8): [True: 72, False: 0]
  ------------------
  601|     72|      result = Curl_bufq_cwrite(&ctx->chunkbuf, "\r\n", 2, &n);
  602|     72|    CURL_TRC_READ(data, "http_chunk, made chunk of %zu bytes -> %d",
  ------------------
  |  |  163|     72|  do {                                                    \
  |  |  164|     72|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  329|     72|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    144|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 72, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 72]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    144|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|     72|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|     72|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|     72|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 72]
  |  |  ------------------
  ------------------
  603|     72|                  nread, (int)result);
  604|     72|    if(result)
  ------------------
  |  Branch (604:8): [True: 0, False: 72]
  ------------------
  605|      0|      return result;
  606|     72|  }
  607|       |
  608|  3.71k|  if(ctx->read_eos)
  ------------------
  |  Branch (608:6): [True: 47, False: 3.66k]
  ------------------
  609|     47|    return add_last_chunk(data, reader);
  610|  3.66k|  return CURLE_OK;
  611|  3.71k|}
http_chunks.c:add_last_chunk:
  506|     47|{
  507|     47|  struct chunked_reader *ctx = reader->ctx;
  508|     47|  struct curl_slist *trailers = NULL, *tr;
  509|     47|  CURLcode result;
  510|     47|  size_t n;
  511|     47|  int rc;
  512|       |
  513|     47|  if(!data->set.trailer_callback) {
  ------------------
  |  Branch (513:6): [True: 47, False: 0]
  ------------------
  514|     47|    CURL_TRC_READ(data, "http_chunk, added last, empty chunk");
  ------------------
  |  |  163|     47|  do {                                                    \
  |  |  164|     47|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  329|     47|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|     94|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 47, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 47]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|     94|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|     47|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|     47|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|     47|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 47]
  |  |  ------------------
  ------------------
  515|     47|    return Curl_bufq_cwrite(&ctx->chunkbuf, STRCONST("0\r\n\r\n"), &n);
  ------------------
  |  | 1305|     47|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|     47|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  516|     47|  }
  517|       |
  518|      0|  result = Curl_bufq_cwrite(&ctx->chunkbuf, STRCONST("0\r\n"), &n);
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  519|      0|  if(result)
  ------------------
  |  Branch (519:6): [True: 0, False: 0]
  ------------------
  520|      0|    goto out;
  521|       |
  522|      0|  {
  523|      0|    struct Curl_mapi_guard guard;
  524|      0|    CURL_CBAPI_START(&guard, data, easy_trailer_callback);
  ------------------
  |  |  200|      0|  Curl_cbapi_enter((g), (d), NULL, CURL_CBAPI_FN_##fn)
  ------------------
  525|      0|    rc = data->set.trailer_callback(&trailers, data->set.trailer_data);
  526|      0|    CURL_CBAPI_END(&guard);
  ------------------
  |  |  204|      0|  Curl_cbapi_leave(g)
  ------------------
  527|      0|  }
  528|       |
  529|      0|  if(rc != CURL_TRAILERFUNC_OK) {
  ------------------
  |  |  397|      0|#define CURL_TRAILERFUNC_OK 0
  ------------------
  |  Branch (529:6): [True: 0, False: 0]
  ------------------
  530|      0|    failf(data, "operation aborted by trailing headers callback");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  531|      0|    result = CURLE_ABORTED_BY_CALLBACK;
  532|      0|    goto out;
  533|      0|  }
  534|       |
  535|      0|  for(tr = trailers; tr; tr = tr->next) {
  ------------------
  |  Branch (535:22): [True: 0, False: 0]
  ------------------
  536|       |    /* only add correctly formatted trailers */
  537|      0|    const char *ptr = strchr(tr->data, ':');
  538|      0|    if(!ptr || *(ptr + 1) != ' ') {
  ------------------
  |  Branch (538:8): [True: 0, False: 0]
  |  Branch (538:16): [True: 0, False: 0]
  ------------------
  539|      0|      infof(data, "Malformatted trailing header, skipping trailer");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  540|      0|      continue;
  541|      0|    }
  542|       |
  543|      0|    result = Curl_bufq_cwrite(&ctx->chunkbuf, tr->data, strlen(tr->data), &n);
  544|      0|    if(!result)
  ------------------
  |  Branch (544:8): [True: 0, False: 0]
  ------------------
  545|      0|      result = Curl_bufq_cwrite(&ctx->chunkbuf, STRCONST("\r\n"), &n);
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  546|      0|    if(result)
  ------------------
  |  Branch (546:8): [True: 0, False: 0]
  ------------------
  547|      0|      goto out;
  548|      0|  }
  549|       |
  550|      0|  result = Curl_bufq_cwrite(&ctx->chunkbuf, STRCONST("\r\n"), &n);
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  551|       |
  552|      0|out:
  553|      0|  curl_slist_free_all(trailers);
  554|      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)) \
  |  |  ------------------
  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|      0|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  555|      0|                "from client -> %d", (int)result);
  556|      0|  return result;
  557|      0|}
http_chunks.c:cr_chunked_close:
  498|    167|{
  499|    167|  struct chunked_reader *ctx = reader->ctx;
  500|    167|  (void)data;
  501|    167|  Curl_bufq_free(&ctx->chunkbuf);
  502|    167|}
http_chunks.c:cr_chunked_total_length:
  649|    343|{
  650|       |  /* this reader changes length depending on input */
  651|    343|  (void)data;
  652|    343|  (void)reader;
  653|    343|  return -1;
  654|    343|}

Curl_http_auth_cleanup_digest:
  157|  19.9k|{
  158|  19.9k|  Curl_auth_digest_cleanup(&data->state.digest);
  159|  19.9k|  Curl_auth_digest_cleanup(&data->state.proxydigest);
  160|  19.9k|}

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

Curl_ipv6_scope:
   62|  9.33k|{
   63|  9.33k|  if(sa->sa_family == AF_INET6) {
  ------------------
  |  Branch (63:6): [True: 0, False: 9.33k]
  ------------------
   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|  9.33k|  return IPV6_SCOPE_GLOBAL;
  ------------------
  |  |   29|  9.33k|#define IPV6_SCOPE_GLOBAL       0       /* Global scope. */
  ------------------
   87|  9.33k|}

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

curl_dbg_malloc:
  212|   359k|{
  213|   359k|  struct memdebug *mem;
  214|   359k|  size_t size;
  215|       |
  216|   359k|  DEBUGASSERT(wantedsize != 0);
  ------------------
  |  | 1083|   359k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (216:3): [True: 0, False: 359k]
  |  Branch (216:3): [True: 359k, False: 0]
  ------------------
  217|       |
  218|   359k|  if(countcheck("malloc", line, source))
  ------------------
  |  Branch (218:6): [True: 0, False: 359k]
  ------------------
  219|      0|    return NULL;
  220|       |
  221|       |  /* alloc at least 64 bytes */
  222|   359k|  size = sizeof(struct memdebug) + wantedsize;
  223|       |
  224|   359k|  mem = Curl_cmalloc(size);
  225|   359k|  if(mem) {
  ------------------
  |  Branch (225:6): [True: 359k, False: 0]
  ------------------
  226|   359k|    mem->size = wantedsize;
  227|   359k|  }
  228|       |
  229|   359k|  if(source)
  ------------------
  |  Branch (229:6): [True: 142k, False: 216k]
  ------------------
  230|   142k|    curl_dbg_log("MEM %s:%d malloc(%zu) = %p\n",
  231|   142k|                 source, line, wantedsize,
  232|   142k|                 mem ? (void *)mem->mem : (void *)0);
  ------------------
  |  Branch (232:18): [True: 142k, False: 0]
  ------------------
  233|       |
  234|   359k|  return mem ? mem->mem : NULL;
  ------------------
  |  Branch (234:10): [True: 359k, False: 0]
  ------------------
  235|   359k|}
curl_dbg_calloc:
  240|   647k|{
  241|   647k|  struct memdebug *mem;
  242|   647k|  size_t size, user_size;
  243|       |
  244|   647k|  DEBUGASSERT(wanted_elements != 0);
  ------------------
  |  | 1083|   647k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (244:3): [True: 0, False: 647k]
  |  Branch (244:3): [True: 647k, False: 0]
  ------------------
  245|   647k|  DEBUGASSERT(wanted_size != 0);
  ------------------
  |  | 1083|   647k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (245:3): [True: 0, False: 647k]
  |  Branch (245:3): [True: 647k, False: 0]
  ------------------
  246|       |
  247|   647k|  if(countcheck("calloc", line, source))
  ------------------
  |  Branch (247:6): [True: 0, False: 647k]
  ------------------
  248|      0|    return NULL;
  249|       |
  250|       |  /* alloc at least 64 bytes */
  251|   647k|  user_size = wanted_size * wanted_elements;
  252|   647k|  size = sizeof(struct memdebug) + user_size;
  253|       |
  254|   647k|  mem = Curl_ccalloc(1, size);
  255|   647k|  if(mem)
  ------------------
  |  Branch (255:6): [True: 647k, False: 0]
  ------------------
  256|   647k|    mem->size = user_size;
  257|       |
  258|   647k|  if(source)
  ------------------
  |  Branch (258:6): [True: 647k, False: 0]
  ------------------
  259|   647k|    curl_dbg_log("MEM %s:%d calloc(%zu,%zu) = %p\n",
  260|   647k|                 source, line, wanted_elements, wanted_size,
  261|   647k|                 mem ? (void *)mem->mem : (void *)0);
  ------------------
  |  Branch (261:18): [True: 647k, False: 0]
  ------------------
  262|       |
  263|   647k|  return mem ? mem->mem : NULL;
  ------------------
  |  Branch (263:10): [True: 647k, False: 0]
  ------------------
  264|   647k|}
curl_dbg_strdup:
  268|   216k|{
  269|   216k|  char *mem;
  270|   216k|  size_t len;
  271|       |
  272|   216k|  DEBUGASSERT(str);
  ------------------
  |  | 1083|   216k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (272:3): [True: 0, False: 216k]
  |  Branch (272:3): [True: 216k, False: 0]
  ------------------
  273|       |
  274|   216k|  if(countcheck("strdup", line, source))
  ------------------
  |  Branch (274:6): [True: 0, False: 216k]
  ------------------
  275|      0|    return NULL;
  276|       |
  277|   216k|  len = strlen(str) + 1;
  278|       |
  279|   216k|  mem = curl_dbg_malloc(len, 0, NULL); /* NULL prevents logging */
  280|   216k|  if(mem)
  ------------------
  |  Branch (280:6): [True: 216k, False: 0]
  ------------------
  281|   216k|    memcpy(mem, str, len);
  282|       |
  283|   216k|  if(source)
  ------------------
  |  Branch (283:6): [True: 216k, False: 0]
  ------------------
  284|   216k|    curl_dbg_log("MEM %s:%d strdup(%p) (%zu) = %p\n",
  285|   216k|                 source, line, (const void *)str, len, (const void *)mem);
  286|       |
  287|   216k|  return mem;
  288|   216k|}
curl_dbg_realloc:
  321|   218k|{
  322|   218k|  struct memdebug *mem = NULL;
  323|   218k|  bool was_locked;
  324|       |
  325|   218k|  size_t size = sizeof(struct memdebug) + wantedsize;
  326|       |
  327|   218k|  DEBUGASSERT(wantedsize != 0);
  ------------------
  |  | 1083|   218k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (327:3): [True: 0, False: 218k]
  |  Branch (327:3): [True: 218k, False: 0]
  ------------------
  328|       |
  329|   218k|  if(countcheck("realloc", line, source))
  ------------------
  |  Branch (329:6): [True: 0, False: 218k]
  ------------------
  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|   218k|  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|   218k|  if(ptr)
  ------------------
  |  Branch (342:6): [True: 49.4k, False: 169k]
  ------------------
  343|  49.4k|    mem = (void *)((char *)ptr - offsetof(struct memdebug, mem));
  344|       |
  345|       |#ifdef __INTEL_COMPILER
  346|       |#  pragma warning(pop)
  347|       |#endif
  348|       |
  349|   218k|  mem = Curl_crealloc(mem, size);
  350|   218k|  if(source)
  ------------------
  |  Branch (350:6): [True: 218k, False: 0]
  ------------------
  351|   218k|    curl_dbg_log_locked("MEM %s:%d realloc(%p, %zu) = %p\n",
  352|   218k|                        source, line, (void *)ptr, wantedsize,
  353|   218k|                        mem ? (void *)mem->mem : (void *)0);
  ------------------
  |  Branch (353:25): [True: 218k, False: 0]
  ------------------
  354|       |
  355|   218k|  curl_dbg_unlock(was_locked);
  356|   218k|  if(mem) {
  ------------------
  |  Branch (356:6): [True: 218k, False: 0]
  ------------------
  357|   218k|    mem->size = wantedsize;
  358|   218k|    return mem->mem;
  359|   218k|  }
  360|       |
  361|      0|  return NULL;
  362|   218k|}
curl_dbg_free:
  365|  5.85M|{
  366|  5.85M|  if(ptr) {
  ------------------
  |  Branch (366:6): [True: 1.17M, False: 4.68M]
  ------------------
  367|  1.17M|    struct memdebug *mem;
  368|       |
  369|  1.17M|    if(source)
  ------------------
  |  Branch (369:8): [True: 1.17M, False: 0]
  ------------------
  370|  1.17M|      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|  1.17M|    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|  1.17M|    Curl_cfree(mem);
  386|  1.17M|  }
  387|  5.85M|}
curl_dbg_socket:
  391|  9.97k|{
  392|  9.97k|  curl_socket_t sockfd;
  393|       |
  394|  9.97k|  if(countcheck("socket", line, source))
  ------------------
  |  Branch (394:6): [True: 0, False: 9.97k]
  ------------------
  395|      0|    return CURL_SOCKET_BAD;
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  396|       |
  397|       |  /* !checksrc! disable BANNEDFUNC 1 */
  398|  9.97k|  sockfd = socket(domain, type, protocol);
  399|       |
  400|  9.97k|  if(source && (sockfd != CURL_SOCKET_BAD))
  ------------------
  |  |  145|  9.97k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (400:6): [True: 9.97k, False: 0]
  |  Branch (400:16): [True: 9.97k, False: 0]
  ------------------
  401|  9.97k|    curl_dbg_log("FD %s:%d socket() = %" FMT_SOCKET_T "\n",
  402|  9.97k|                 source, line, sockfd);
  403|       |
  404|  9.97k|  return sockfd;
  405|  9.97k|}
curl_dbg_mark_sclose:
  461|  19.3k|{
  462|  19.3k|  if(source)
  ------------------
  |  Branch (462:6): [True: 19.3k, False: 0]
  ------------------
  463|  19.3k|    curl_dbg_log("FD %s:%d sclose(%" FMT_SOCKET_T ")\n",
  464|  19.3k|                 source, line, sockfd);
  465|  19.3k|}
curl_dbg_sclose:
  469|  19.3k|{
  470|  19.3k|  curl_dbg_mark_sclose(sockfd, line, source);
  471|  19.3k|  return CURL_SCLOSE(sockfd);
  ------------------
  |  |  997|  19.3k|#  define CURL_SCLOSE(x)  close(x)
  ------------------
  472|  19.3k|}
curl_dbg_fopen:
  477|  49.8k|{
  478|  49.8k|  FILE *res = CURLX_FOPEN_LOW(file, mode);
  ------------------
  |  |   64|  49.8k|#define CURLX_FOPEN_LOW         fopen
  ------------------
  479|  49.8k|  if(source)
  ------------------
  |  Branch (479:6): [True: 49.8k, False: 0]
  ------------------
  480|  49.8k|    curl_dbg_log("FILE %s:%d fopen(\"%s\",\"%s\") = %p\n",
  481|  49.8k|                 source, line, file, mode, (void *)res);
  482|       |
  483|  49.8k|  return res;
  484|  49.8k|}
curl_dbg_fclose:
  510|  49.8k|{
  511|  49.8k|  int res;
  512|       |
  513|  49.8k|  DEBUGASSERT(file);
  ------------------
  |  | 1083|  49.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (513:3): [True: 0, False: 49.8k]
  |  Branch (513:3): [True: 49.8k, False: 0]
  ------------------
  514|       |
  515|  49.8k|  if(source)
  ------------------
  |  Branch (515:6): [True: 49.8k, False: 0]
  ------------------
  516|  49.8k|    curl_dbg_log("FILE %s:%d fclose(%p)\n", source, line, (void *)file);
  517|       |
  518|       |  /* !checksrc! disable BANNEDFUNC 1 */
  519|  49.8k|  res = fclose(file);
  520|       |
  521|  49.8k|  return res;
  522|  49.8k|}
curl_dbg_log:
  565|  2.31M|{
  566|  2.31M|  bool was_locked;
  567|  2.31M|  va_list ap;
  568|       |
  569|  2.31M|  if(!curl_dbg_logfile)
  ------------------
  |  Branch (569:6): [True: 2.31M, False: 0]
  ------------------
  570|  2.31M|    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.45M|{
  188|       |  /* if source is NULL, then the call is made internally and this check
  189|       |     should not be made */
  190|  1.45M|  if(memlimit && source) {
  ------------------
  |  Branch (190:6): [True: 0, False: 1.45M]
  |  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! */
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  202|      0|    }
  203|      0|    else
  204|      0|      memsize--; /* countdown */
  205|      0|  }
  206|       |
  207|  1.45M|  return FALSE; /* allow this */
  ------------------
  |  | 1056|  1.45M|#define FALSE false
  ------------------
  208|  1.45M|}
memdebug.c:curl_dbg_lock:
   74|   218k|{
   75|   218k|#ifdef USE_MUTEX
   76|   218k|  if(dbg_mutex_init) {
  ------------------
  |  Branch (76:6): [True: 0, False: 218k]
  ------------------
   77|      0|    Curl_mutex_acquire(&dbg_mutex);
  ------------------
  |  |   37|      0|#  define Curl_mutex_acquire(m)  pthread_mutex_lock(m)
  ------------------
   78|      0|    return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
   79|      0|  }
   80|   218k|#endif
   81|   218k|  return FALSE;
  ------------------
  |  | 1056|   218k|#define FALSE false
  ------------------
   82|   218k|}
memdebug.c:curl_dbg_unlock:
   85|   218k|{
   86|   218k|#ifdef USE_MUTEX
   87|   218k|  if(was_locked)
  ------------------
  |  Branch (87:6): [True: 0, False: 218k]
  ------------------
   88|      0|    Curl_mutex_release(&dbg_mutex);
  ------------------
  |  |   38|      0|#  define Curl_mutex_release(m)  pthread_mutex_unlock(m)
  ------------------
   89|       |#else
   90|       |  (void)was_locked;
   91|       |#endif
   92|   218k|}
memdebug.c:curl_dbg_log_locked:
  552|   218k|{
  553|   218k|  va_list ap;
  554|       |
  555|   218k|  if(!curl_dbg_logfile)
  ------------------
  |  Branch (555:6): [True: 218k, False: 0]
  ------------------
  556|   218k|    return;
  557|       |
  558|   218k|  va_start(ap, format);
  559|      0|  curl_dbg_vlog(format, ap);
  560|       |  va_end(ap);
  561|      0|}

Curl_mime_cleanpart:
 1099|  39.9k|{
 1100|  39.9k|  if(part) {
  ------------------
  |  Branch (1100:6): [True: 0, False: 39.9k]
  ------------------
 1101|      0|    cleanup_part_content(part);
 1102|      0|    curl_slist_free_all(part->curlheaders);
 1103|      0|    if(part->flags & MIME_USERHEADERS_OWNER)
  ------------------
  |  |   34|      0|#define MIME_USERHEADERS_OWNER  (1 << 0)
  ------------------
  |  Branch (1103:8): [True: 0, False: 0]
  ------------------
 1104|      0|      curl_slist_free_all(part->userheaders);
 1105|      0|    curlx_safefree(part->mimetype);
  ------------------
  |  | 1340|      0|  do {                      \
  |  | 1341|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|      0|    (ptr) = NULL;           \
  |  | 1343|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1106|      0|    curlx_safefree(part->name);
  ------------------
  |  | 1340|      0|  do {                      \
  |  | 1341|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|      0|    (ptr) = NULL;           \
  |  | 1343|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1107|       |    curlx_safefree(part->filename);
  ------------------
  |  | 1340|      0|  do {                      \
  |  | 1341|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|      0|    (ptr) = NULL;           \
  |  | 1343|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1108|      0|    Curl_mime_initpart(part);
 1109|      0|  }
 1110|  39.9k|}

curl_mvsnprintf:
 1106|  61.5k|{
 1107|  61.5k|  int retcode;
 1108|  61.5k|  struct nsprintf info;
 1109|       |
 1110|  61.5k|  info.buffer = buffer;
 1111|  61.5k|  info.length = 0;
 1112|  61.5k|  info.max = maxlength;
 1113|       |
 1114|  61.5k|  retcode = formatf(&info, addbyter, format, args);
 1115|  61.5k|  if(info.max) {
  ------------------
  |  Branch (1115:6): [True: 61.5k, False: 0]
  ------------------
 1116|       |    /* we terminate this with a zero byte */
 1117|  61.5k|    if(info.max == info.length) {
  ------------------
  |  Branch (1117:8): [True: 0, False: 61.5k]
  ------------------
 1118|       |      /* we are at maximum, scrap the last letter */
 1119|      0|      info.buffer[-1] = 0;
 1120|      0|      DEBUGASSERT(retcode);
  ------------------
  |  | 1083|      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|  61.5k|    else
 1124|  61.5k|      info.buffer[0] = 0;
 1125|  61.5k|  }
 1126|  61.5k|  return retcode;
 1127|  61.5k|}
curl_msnprintf:
 1130|  61.5k|{
 1131|  61.5k|  int retcode;
 1132|  61.5k|  va_list args; /* argument pointer */
 1133|  61.5k|  va_start(args, format);
 1134|  61.5k|  retcode = curl_mvsnprintf(buffer, maxlength, format, args);
 1135|       |  va_end(args);
 1136|  61.5k|  return retcode;
 1137|  61.5k|}
curlx_dyn_vprintf:
 1153|  46.7k|{
 1154|  46.7k|  struct asprintf info;
 1155|  46.7k|  info.b = dyn;
 1156|  46.7k|  info.merr = MERR_OK;
  ------------------
  |  |   27|  46.7k|#define MERR_OK        0
  ------------------
 1157|       |
 1158|  46.7k|  (void)formatf(&info, alloc_addbyter, format, args);
 1159|  46.7k|  if(info.merr) {
  ------------------
  |  Branch (1159:6): [True: 9, False: 46.7k]
  ------------------
 1160|      9|    curlx_dyn_free(info.b);
 1161|      9|    return info.merr;
 1162|      9|  }
 1163|  46.7k|  return 0;
 1164|  46.7k|}
curl_mvaprintf:
 1167|  42.0k|{
 1168|  42.0k|  struct asprintf info;
 1169|  42.0k|  struct dynbuf dyn;
 1170|  42.0k|  info.b = &dyn;
 1171|  42.0k|  curlx_dyn_init(info.b, DYN_APRINTF);
  ------------------
  |  |   70|  42.0k|#define DYN_APRINTF         8000000
  ------------------
 1172|  42.0k|  info.merr = MERR_OK;
  ------------------
  |  |   27|  42.0k|#define MERR_OK        0
  ------------------
 1173|       |
 1174|  42.0k|  (void)formatf(&info, alloc_addbyter, format, args);
 1175|  42.0k|  if(info.merr) {
  ------------------
  |  Branch (1175:6): [True: 0, False: 42.0k]
  ------------------
 1176|      0|    curlx_dyn_free(info.b);
 1177|      0|    return NULL;
 1178|      0|  }
 1179|  42.0k|  if(curlx_dyn_len(info.b))
  ------------------
  |  Branch (1179:6): [True: 42.0k, False: 0]
  ------------------
 1180|  42.0k|    return curlx_dyn_ptr(info.b);
 1181|      0|  return curlx_strdup("");
  ------------------
  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
 1182|  42.0k|}
curl_maprintf:
 1185|  42.0k|{
 1186|  42.0k|  va_list args;
 1187|  42.0k|  char *s;
 1188|  42.0k|  va_start(args, format);
 1189|  42.0k|  s = curl_mvaprintf(format, args);
 1190|       |  va_end(args);
 1191|  42.0k|  return s;
 1192|  42.0k|}
curl_mfprintf:
 1232|    430|{
 1233|    430|  int retcode;
 1234|    430|  va_list args; /* argument pointer */
 1235|    430|  va_start(args, format);
 1236|    430|  retcode = formatf(fd, fputc_wrapper, format, args);
 1237|       |  va_end(args);
 1238|    430|  return retcode;
 1239|    430|}
mprintf.c:formatf:
  976|   150k|{
  977|   150k|  int done = 0;   /* number of characters written */
  978|   150k|  int i;
  979|   150k|  int ocount = 0; /* number of output segments */
  980|   150k|  int icount = 0; /* number of input arguments */
  981|       |
  982|   150k|  struct outsegment output[MAX_SEGMENTS];
  983|   150k|  struct va_input input[MAX_PARAMETERS];
  984|   150k|  char work[BUFFSIZE + 2];
  985|       |
  986|       |  /* Parse the format string */
  987|   150k|  if(parsefmt(format, output, input, &ocount, &icount, ap_save))
  ------------------
  |  Branch (987:6): [True: 0, False: 150k]
  ------------------
  988|      0|    return 0;
  989|       |
  990|   798k|  for(i = 0; i < ocount; i++) {
  ------------------
  |  Branch (990:14): [True: 647k, False: 150k]
  ------------------
  991|   647k|    struct outsegment *optr = &output[i];
  992|   647k|    struct va_input *iptr = &input[optr->input];
  993|   647k|    struct mproperty p;
  994|   647k|    size_t outlen = optr->outlen;
  995|       |
  996|   647k|    if(outlen) {
  ------------------
  |  Branch (996:8): [True: 183k, False: 463k]
  ------------------
  997|   183k|      const char *str = optr->start;
  998|   624k|      for(; outlen && *str; outlen--) {
  ------------------
  |  Branch (998:13): [True: 440k, False: 183k]
  |  Branch (998:23): [True: 440k, False: 0]
  ------------------
  999|   440k|        if(stream(*str++, userp))
  ------------------
  |  Branch (999:12): [True: 2, False: 440k]
  ------------------
 1000|      2|          return done;
 1001|   440k|        done++;
 1002|   440k|      }
 1003|   183k|      if(optr->flags & FLAGS_SUBSTR)
  ------------------
  |  Branch (1003:10): [True: 67.3k, False: 116k]
  ------------------
 1004|       |        /* this is a substring */
 1005|  67.3k|        continue;
 1006|   183k|    }
 1007|       |
 1008|   580k|    p.flags = optr->flags;
 1009|       |
 1010|       |    /* pick up the specified width */
 1011|   580k|    if(p.flags & FLAGS_WIDTHPARAM) {
  ------------------
  |  Branch (1011:8): [True: 0, False: 580k]
  ------------------
 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|   580k|    else
 1025|   580k|      p.width = optr->width;
 1026|       |
 1027|       |    /* pick up the specified precision */
 1028|   580k|    if(p.flags & FLAGS_PRECPARAM) {
  ------------------
  |  Branch (1028:8): [True: 2.06k, False: 578k]
  ------------------
 1029|  2.06k|      p.prec = (int)input[optr->precision].val.nums;
 1030|  2.06k|      if(p.prec < 0)
  ------------------
  |  Branch (1030:10): [True: 0, False: 2.06k]
  ------------------
 1031|       |        /* "A negative precision is taken as if the precision were
 1032|       |           omitted." */
 1033|      0|        p.prec = -1;
 1034|  2.06k|    }
 1035|   578k|    else if(p.flags & FLAGS_PREC)
  ------------------
  |  Branch (1035:13): [True: 0, False: 578k]
  ------------------
 1036|      0|      p.prec = optr->precision;
 1037|   578k|    else
 1038|   578k|      p.prec = -1;
 1039|       |
 1040|   580k|    switch(iptr->type) {
 1041|  56.8k|    case MTYPE_INTU:
  ------------------
  |  Branch (1041:5): [True: 56.8k, False: 523k]
  ------------------
 1042|  56.9k|    case MTYPE_LONGU:
  ------------------
  |  Branch (1042:5): [True: 72, False: 580k]
  ------------------
 1043|  56.9k|    case MTYPE_LONGLONGU:
  ------------------
  |  Branch (1043:5): [True: 0, False: 580k]
  ------------------
 1044|  56.9k|      p.flags |= FLAGS_UNSIGNED;
 1045|  56.9k|      if(out_number(userp, stream, &p, iptr->val.numu, 0, work, &done))
  ------------------
  |  Branch (1045:10): [True: 1, False: 56.9k]
  ------------------
 1046|      1|        return done;
 1047|  56.9k|      break;
 1048|       |
 1049|  56.9k|    case MTYPE_INT:
  ------------------
  |  Branch (1049:5): [True: 44.3k, False: 535k]
  ------------------
 1050|  45.6k|    case MTYPE_LONG:
  ------------------
  |  Branch (1050:5): [True: 1.33k, False: 578k]
  ------------------
 1051|  45.6k|    case MTYPE_LONGLONG:
  ------------------
  |  Branch (1051:5): [True: 0, False: 580k]
  ------------------
 1052|  45.6k|      if(out_number(userp, stream, &p, iptr->val.numu,
  ------------------
  |  Branch (1052:10): [True: 1, False: 45.6k]
  ------------------
 1053|  45.6k|                    iptr->val.nums, work, &done))
 1054|      1|        return done;
 1055|  45.6k|      break;
 1056|       |
 1057|   477k|    case MTYPE_STRING:
  ------------------
  |  Branch (1057:5): [True: 477k, False: 102k]
  ------------------
 1058|   477k|      if(out_string(userp, stream, &p, iptr->val.str, &done))
  ------------------
  |  Branch (1058:10): [True: 5, False: 477k]
  ------------------
 1059|      5|        return done;
 1060|   477k|      break;
 1061|       |
 1062|   477k|    case MTYPE_PTR:
  ------------------
  |  Branch (1062:5): [True: 0, False: 580k]
  ------------------
 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: 580k]
  ------------------
 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: 580k]
  ------------------
 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: 580k]
  ------------------
 1085|      0|      break;
 1086|   580k|    }
 1087|   580k|  }
 1088|   150k|  return done;
 1089|   150k|}
mprintf.c:parsefmt:
  431|   150k|{
  432|   150k|  const char *fmt = format;
  433|   150k|  int param_num = 0;
  434|   150k|  int max_param = -1;
  435|   150k|  int i;
  436|   150k|  int ocount = 0;
  437|   150k|  unsigned char usedinput[MAX_PARAMETERS / 8];
  438|   150k|  size_t outlen = 0;
  439|   150k|  struct outsegment *optr;
  440|   150k|  int use_dollar = DOLLAR_UNKNOWN;
  441|   150k|  const char *start = fmt;
  442|       |
  443|       |  /* clear, set a bit for each used input */
  444|   150k|  memset(usedinput, 0, sizeof(usedinput));
  445|       |
  446|  1.17M|  while(*fmt) {
  ------------------
  |  Branch (446:9): [True: 1.02M, False: 150k]
  ------------------
  447|  1.02M|    if(*fmt == '%') {
  ------------------
  |  Branch (447:8): [True: 581k, False: 439k]
  ------------------
  448|   581k|      struct va_input *iptr;
  449|   581k|      FormatType type;
  450|   581k|      unsigned int flags = 0;
  451|   581k|      int width = 0;
  452|   581k|      int precision = 0;
  453|   581k|      int param = -1;
  454|   581k|      int rc;
  455|   581k|      fmt++;
  456|   581k|      outlen = (size_t)(fmt - start - 1);
  457|   581k|      if(*fmt == '%') {
  ------------------
  |  Branch (457:10): [True: 1.31k, False: 580k]
  ------------------
  458|       |        /* this means a %% that should be output only as %. Create an output
  459|       |           segment. */
  460|  1.31k|        if(outlen) {
  ------------------
  |  Branch (460:12): [True: 0, False: 1.31k]
  ------------------
  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|  1.31k|        start = fmt;
  470|  1.31k|        fmt++;
  471|  1.31k|        continue; /* while */
  472|  1.31k|      }
  473|       |
  474|   580k|      if(use_dollar != DOLLAR_NOPE) {
  ------------------
  |  Branch (474:10): [True: 150k, False: 429k]
  ------------------
  475|   150k|        param = dollarstring(fmt, &fmt);
  476|   150k|        if(param < 0) {
  ------------------
  |  Branch (476:12): [True: 150k, False: 0]
  ------------------
  477|   150k|          if(use_dollar == DOLLAR_USE)
  ------------------
  |  Branch (477:14): [True: 0, False: 150k]
  ------------------
  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|   150k|          param = -1;
  483|   150k|          use_dollar = DOLLAR_NOPE;
  484|   150k|        }
  485|      0|        else
  486|      0|          use_dollar = DOLLAR_USE;
  487|   150k|      }
  488|       |
  489|   580k|      rc = parse_flags(&fmt, &flags, use_dollar, &precision, &width);
  490|   580k|      if(rc)
  ------------------
  |  Branch (490:10): [True: 0, False: 580k]
  ------------------
  491|      0|        return rc;
  492|       |
  493|   580k|      if(parse_conversion(*fmt, &flags, &type))
  ------------------
  |  Branch (493:10): [True: 0, False: 580k]
  ------------------
  494|      0|        continue;
  495|       |
  496|   580k|      if(flags & FLAGS_WIDTHPARAM) {
  ------------------
  |  Branch (496:10): [True: 0, False: 580k]
  ------------------
  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|   580k|      if(flags & FLAGS_PRECPARAM) {
  ------------------
  |  Branch (514:10): [True: 2.06k, False: 578k]
  ------------------
  515|  2.06k|        if(precision < 0)
  ------------------
  |  Branch (515:12): [True: 2.06k, False: 0]
  ------------------
  516|  2.06k|          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|  2.06k|        if(precision >= MAX_PARAMETERS)
  ------------------
  |  |   33|  2.06k|#define MAX_PARAMETERS 128 /* number of input arguments */
  ------------------
  |  Branch (522:12): [True: 0, False: 2.06k]
  ------------------
  523|      0|          return PFMT_MANYARGS;
  ------------------
  |  |  163|      0|#define PFMT_MANYARGS    4 /* too many input arguments used */
  ------------------
  524|  2.06k|        if(precision >= max_param)
  ------------------
  |  Branch (524:12): [True: 2.06k, False: 0]
  ------------------
  525|  2.06k|          max_param = precision;
  526|       |
  527|  2.06k|        in[precision].type = MTYPE_PRECISION;
  528|  2.06k|        mark_arg_used(usedinput, precision);
  ------------------
  |  |  149|  2.06k|#define mark_arg_used(x, y) ((x)[(y) / 8] |= (unsigned char)(1 << ((y) & 7)))
  ------------------
  529|  2.06k|      }
  530|       |
  531|       |      /* Handle the specifier */
  532|   580k|      if(param < 0)
  ------------------
  |  Branch (532:10): [True: 580k, False: 0]
  ------------------
  533|   580k|        param = param_num++;
  534|   580k|      if(param >= MAX_PARAMETERS)
  ------------------
  |  |   33|   580k|#define MAX_PARAMETERS 128 /* number of input arguments */
  ------------------
  |  Branch (534:10): [True: 0, False: 580k]
  ------------------
  535|      0|        return PFMT_MANYARGS;
  ------------------
  |  |  163|      0|#define PFMT_MANYARGS    4 /* too many input arguments used */
  ------------------
  536|   580k|      if(param >= max_param)
  ------------------
  |  Branch (536:10): [True: 580k, False: 0]
  ------------------
  537|   580k|        max_param = param;
  538|       |
  539|   580k|      iptr = &in[param];
  540|   580k|      iptr->type = type;
  541|       |
  542|       |      /* mark this input as used */
  543|   580k|      mark_arg_used(usedinput, param);
  ------------------
  |  |  149|   580k|#define mark_arg_used(x, y) ((x)[(y) / 8] |= (unsigned char)(1 << ((y) & 7)))
  ------------------
  544|       |
  545|   580k|      fmt++;
  546|   580k|      optr = &out[ocount++];
  547|   580k|      if(ocount > MAX_SEGMENTS)
  ------------------
  |  |   34|   580k|#define MAX_SEGMENTS   128 /* number of output segments */
  ------------------
  |  Branch (547:10): [True: 0, False: 580k]
  ------------------
  548|      0|        return PFMT_MANYSEGS;
  ------------------
  |  |  170|      0|#define PFMT_MANYSEGS   11 /* maxed out output segments */
  ------------------
  549|   580k|      optr->input = (unsigned int)param;
  550|   580k|      optr->flags = flags;
  551|   580k|      optr->width = width;
  552|   580k|      optr->precision = precision;
  553|   580k|      optr->start = start;
  554|   580k|      optr->outlen = outlen;
  555|   580k|      start = fmt;
  556|   580k|    }
  557|   439k|    else
  558|   439k|      fmt++;
  559|  1.02M|  }
  560|       |
  561|       |  /* is there a trailing piece */
  562|   150k|  outlen = (size_t)(fmt - start);
  563|   150k|  if(outlen) {
  ------------------
  |  Branch (563:6): [True: 67.3k, False: 83.4k]
  ------------------
  564|  67.3k|    optr = &out[ocount++];
  565|  67.3k|    if(ocount > MAX_SEGMENTS)
  ------------------
  |  |   34|  67.3k|#define MAX_SEGMENTS   128 /* number of output segments */
  ------------------
  |  Branch (565:8): [True: 0, False: 67.3k]
  ------------------
  566|      0|      return PFMT_MANYSEGS;
  ------------------
  |  |  170|      0|#define PFMT_MANYSEGS   11 /* maxed out output segments */
  ------------------
  567|  67.3k|    optr->input = 0;
  568|  67.3k|    optr->flags = FLAGS_SUBSTR;
  569|  67.3k|    optr->start = start;
  570|  67.3k|    optr->outlen = outlen;
  571|  67.3k|  }
  572|       |
  573|       |  /* Read the arg list parameters into our data list */
  574|   733k|  for(i = 0; i < max_param + 1; i++) {
  ------------------
  |  Branch (574:14): [True: 582k, False: 150k]
  ------------------
  575|   582k|    struct va_input *iptr = &in[i];
  576|   582k|    if(!is_arg_used(usedinput, i))
  ------------------
  |  |  148|   582k|#define is_arg_used(x, y)   ((x)[(y) / 8] & (1 << ((y) & 7)))
  ------------------
  |  Branch (576:8): [True: 0, False: 582k]
  ------------------
  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|   582k|    switch(iptr->type) {
  582|   477k|    case MTYPE_STRING:
  ------------------
  |  Branch (582:5): [True: 477k, False: 104k]
  ------------------
  583|   477k|      iptr->val.str = va_arg(arglist, const char *);
  584|   477k|      break;
  585|       |
  586|      0|    case MTYPE_INTPTR:
  ------------------
  |  Branch (586:5): [True: 0, False: 582k]
  ------------------
  587|      0|    case MTYPE_PTR:
  ------------------
  |  Branch (587:5): [True: 0, False: 582k]
  ------------------
  588|      0|      iptr->val.ptr = va_arg(arglist, void *);
  589|      0|      break;
  590|       |
  591|      0|    case MTYPE_LONGLONGU:
  ------------------
  |  Branch (591:5): [True: 0, False: 582k]
  ------------------
  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: 582k]
  ------------------
  596|      0|      iptr->val.nums = va_arg(arglist, int64_t);
  597|      0|      break;
  598|       |
  599|     72|    case MTYPE_LONGU:
  ------------------
  |  Branch (599:5): [True: 72, False: 582k]
  ------------------
  600|     72|      iptr->val.numu = va_arg(arglist, unsigned long);
  601|     72|      break;
  602|       |
  603|  1.33k|    case MTYPE_LONG:
  ------------------
  |  Branch (603:5): [True: 1.33k, False: 580k]
  ------------------
  604|  1.33k|      iptr->val.nums = va_arg(arglist, long);
  605|  1.33k|      break;
  606|       |
  607|  56.8k|    case MTYPE_INTU:
  ------------------
  |  Branch (607:5): [True: 56.8k, False: 525k]
  ------------------
  608|  56.8k|      iptr->val.numu = va_arg(arglist, unsigned int);
  609|  56.8k|      break;
  610|       |
  611|  44.3k|    case MTYPE_INT:
  ------------------
  |  Branch (611:5): [True: 44.3k, False: 537k]
  ------------------
  612|  44.3k|    case MTYPE_WIDTH:
  ------------------
  |  Branch (612:5): [True: 0, False: 582k]
  ------------------
  613|  46.4k|    case MTYPE_PRECISION:
  ------------------
  |  Branch (613:5): [True: 2.06k, False: 580k]
  ------------------
  614|  46.4k|      iptr->val.nums = va_arg(arglist, int);
  615|  46.4k|      break;
  616|       |
  617|      0|    case MTYPE_DOUBLE:
  ------------------
  |  Branch (617:5): [True: 0, False: 582k]
  ------------------
  618|      0|      iptr->val.dnum = va_arg(arglist, double);
  619|      0|      break;
  620|       |
  621|      0|    default:
  ------------------
  |  Branch (621:5): [True: 0, False: 582k]
  ------------------
  622|      0|      DEBUGASSERT(NULL); /* unexpected */
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (622:7): [True: 0, False: 0]
  |  Branch (622:7): [True: 0, False: 0]
  ------------------
  623|      0|      break;
  624|   582k|    }
  625|   582k|  }
  626|   150k|  *ipieces = max_param + 1;
  627|   150k|  *opieces = ocount;
  628|       |
  629|   150k|  return PFMT_OK;
  ------------------
  |  |  159|   150k|#define PFMT_OK          0
  ------------------
  630|   150k|}
mprintf.c:dollarstring:
  139|   150k|{
  140|   150k|  curl_off_t num;
  141|   150k|  if(curlx_str_number(&p, &num, MAX_PARAMETERS) ||
  ------------------
  |  |   33|   150k|#define MAX_PARAMETERS 128 /* number of input arguments */
  ------------------
  |  Branch (141:6): [True: 150k, False: 0]
  ------------------
  142|      0|     curlx_str_single(&p, '$') || !num)
  ------------------
  |  Branch (142:6): [True: 0, False: 0]
  |  Branch (142:35): [True: 0, False: 0]
  ------------------
  143|   150k|    return -1;
  144|      0|  *end = p;
  145|      0|  return (int)num - 1;
  146|   150k|}
mprintf.c:parse_flags:
  174|   580k|{
  175|   580k|  const char *fmt = *fmtp;
  176|   580k|  bool loopit = TRUE;
  ------------------
  |  | 1053|   580k|#define TRUE true
  ------------------
  177|   580k|  unsigned int flags = 0;
  178|   580k|  int width = 0;
  179|   580k|  int precision = 0;
  180|       |
  181|       |  /* Handle the flags */
  182|   583k|  do {
  183|   583k|    switch(*fmt++) {
  184|      0|    case ' ':
  ------------------
  |  Branch (184:5): [True: 0, False: 583k]
  ------------------
  185|      0|      flags |= FLAGS_SPACE;
  186|      0|      break;
  187|      0|    case '+':
  ------------------
  |  Branch (187:5): [True: 0, False: 583k]
  ------------------
  188|      0|      flags |= FLAGS_SHOWSIGN;
  189|      0|      break;
  190|      0|    case '-':
  ------------------
  |  Branch (190:5): [True: 0, False: 583k]
  ------------------
  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: 583k]
  ------------------
  195|      0|      flags |= FLAGS_ALT;
  196|      0|      break;
  197|  2.06k|    case '.':
  ------------------
  |  Branch (197:5): [True: 2.06k, False: 581k]
  ------------------
  198|  2.06k|      if('*' == *fmt) {
  ------------------
  |  Branch (198:10): [True: 2.06k, False: 0]
  ------------------
  199|       |        /* The precision is picked from a specified parameter */
  200|  2.06k|        flags |= FLAGS_PRECPARAM;
  201|  2.06k|        fmt++;
  202|       |
  203|  2.06k|        if(use_dollar == DOLLAR_USE) {
  ------------------
  |  Branch (203:12): [True: 0, False: 2.06k]
  ------------------
  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|  2.06k|        else
  210|       |          /* get it from the next argument */
  211|  2.06k|          precision = -1;
  212|  2.06k|      }
  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|  2.06k|      if((flags & (FLAGS_PREC | FLAGS_PRECPARAM)) ==
  ------------------
  |  Branch (226:10): [True: 0, False: 2.06k]
  ------------------
  227|  2.06k|         (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|  2.06k|      break;
  232|  2.06k|    case 'h':
  ------------------
  |  Branch (232:5): [True: 0, False: 583k]
  ------------------
  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|  1.33k|    case 'l':
  ------------------
  |  Branch (255:5): [True: 1.33k, False: 582k]
  ------------------
  256|  1.33k|      if(flags & FLAGS_LONG)
  ------------------
  |  Branch (256:10): [True: 0, False: 1.33k]
  ------------------
  257|      0|        flags |= FLAGS_LONGLONG;
  258|  1.33k|      else
  259|  1.33k|        flags |= FLAGS_LONG;
  260|  1.33k|      break;
  261|      0|    case 'L':
  ------------------
  |  Branch (261:5): [True: 0, False: 583k]
  ------------------
  262|      0|      flags |= FLAGS_LONGDOUBLE;
  263|      0|      break;
  264|      0|    case 'q':
  ------------------
  |  Branch (264:5): [True: 0, False: 583k]
  ------------------
  265|      0|      flags |= FLAGS_LONGLONG;
  266|      0|      break;
  267|     72|    case 'z':
  ------------------
  |  Branch (267:5): [True: 72, False: 583k]
  ------------------
  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|     72|      flags |= FLAGS_LONG;
  274|     72|#endif
  275|     72|      break;
  276|      0|    case 'O':
  ------------------
  |  Branch (276:5): [True: 0, False: 583k]
  ------------------
  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: 583k]
  ------------------
  284|      0|      if(!(flags & FLAGS_LEFT))
  ------------------
  |  Branch (284:10): [True: 0, False: 0]
  ------------------
  285|      0|        flags |= FLAGS_PAD_NIL;
  286|      0|      FALLTHROUGH();
  ------------------
  |  |  823|      0|#  define FALLTHROUGH()  __attribute__((fallthrough))
  ------------------
  287|      0|    case '1':
  ------------------
  |  Branch (287:5): [True: 0, False: 583k]
  ------------------
  288|      0|    case '2':
  ------------------
  |  Branch (288:5): [True: 0, False: 583k]
  ------------------
  289|      0|    case '3':
  ------------------
  |  Branch (289:5): [True: 0, False: 583k]
  ------------------
  290|      0|    case '4':
  ------------------
  |  Branch (290:5): [True: 0, False: 583k]
  ------------------
  291|      0|    case '5':
  ------------------
  |  Branch (291:5): [True: 0, False: 583k]
  ------------------
  292|      0|    case '6':
  ------------------
  |  Branch (292:5): [True: 0, False: 583k]
  ------------------
  293|      0|    case '7':
  ------------------
  |  Branch (293:5): [True: 0, False: 583k]
  ------------------
  294|      0|    case '8':
  ------------------
  |  Branch (294:5): [True: 0, False: 583k]
  ------------------
  295|      0|    case '9': {
  ------------------
  |  Branch (295:5): [True: 0, False: 583k]
  ------------------
  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: 583k]
  ------------------
  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|   580k|    default:
  ------------------
  |  Branch (316:5): [True: 580k, False: 3.47k]
  ------------------
  317|   580k|      loopit = FALSE;
  ------------------
  |  | 1056|   580k|#define FALSE false
  ------------------
  318|   580k|      fmt--;
  319|   580k|      break;
  320|   583k|    } /* switch */
  321|   583k|  } while(loopit); /* do */
  ------------------
  |  Branch (321:11): [True: 3.47k, False: 580k]
  ------------------
  322|   580k|  *flagsp = flags;
  323|   580k|  *precp = precision;
  324|   580k|  *widthp = width;
  325|   580k|  *fmtp = fmt;
  326|   580k|  return PFMT_OK;
  ------------------
  |  |  159|   580k|#define PFMT_OK          0
  ------------------
  327|   580k|}
mprintf.c:parse_conversion:
  331|   580k|{
  332|   580k|  unsigned int flags = *flagp;
  333|   580k|  FormatType type;
  334|   580k|  switch(f) {
  335|      0|  case 'S':
  ------------------
  |  Branch (335:3): [True: 0, False: 580k]
  ------------------
  336|      0|    flags |= FLAGS_ALT;
  337|      0|    type = MTYPE_STRING;
  338|      0|    break;
  339|   477k|  case 's':
  ------------------
  |  Branch (339:3): [True: 477k, False: 102k]
  ------------------
  340|   477k|    type = MTYPE_STRING;
  341|   477k|    break;
  342|      0|  case 'n':
  ------------------
  |  Branch (342:3): [True: 0, False: 580k]
  ------------------
  343|      0|    type = MTYPE_INTPTR;
  344|      0|    break;
  345|      0|  case 'p':
  ------------------
  |  Branch (345:3): [True: 0, False: 580k]
  ------------------
  346|      0|    type = MTYPE_PTR;
  347|      0|    break;
  348|  45.6k|  case 'd':
  ------------------
  |  Branch (348:3): [True: 45.6k, False: 534k]
  ------------------
  349|  45.6k|  case 'i':
  ------------------
  |  Branch (349:3): [True: 0, False: 580k]
  ------------------
  350|  45.6k|    if(flags & FLAGS_LONGLONG)
  ------------------
  |  Branch (350:8): [True: 0, False: 45.6k]
  ------------------
  351|      0|      type = MTYPE_LONGLONG;
  352|  45.6k|    else if(flags & FLAGS_LONG)
  ------------------
  |  Branch (352:13): [True: 1.33k, False: 44.3k]
  ------------------
  353|  1.33k|      type = MTYPE_LONG;
  354|  44.3k|    else
  355|  44.3k|      type = MTYPE_INT;
  356|  45.6k|    break;
  357|  56.8k|  case 'u':
  ------------------
  |  Branch (357:3): [True: 56.8k, False: 523k]
  ------------------
  358|  56.8k|    if(flags & FLAGS_LONGLONG)
  ------------------
  |  Branch (358:8): [True: 0, False: 56.8k]
  ------------------
  359|      0|      type = MTYPE_LONGLONGU;
  360|  56.8k|    else if(flags & FLAGS_LONG)
  ------------------
  |  Branch (360:13): [True: 0, False: 56.8k]
  ------------------
  361|      0|      type = MTYPE_LONGU;
  362|  56.8k|    else
  363|  56.8k|      type = MTYPE_INTU;
  364|  56.8k|    flags |= FLAGS_UNSIGNED;
  365|  56.8k|    break;
  366|      0|  case 'o':
  ------------------
  |  Branch (366:3): [True: 0, False: 580k]
  ------------------
  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|     72|  case 'x':
  ------------------
  |  Branch (375:3): [True: 72, False: 580k]
  ------------------
  376|     72|    if(flags & FLAGS_LONGLONG)
  ------------------
  |  Branch (376:8): [True: 0, False: 72]
  ------------------
  377|      0|      type = MTYPE_LONGLONGU;
  378|     72|    else if(flags & FLAGS_LONG)
  ------------------
  |  Branch (378:13): [True: 72, False: 0]
  ------------------
  379|     72|      type = MTYPE_LONGU;
  380|      0|    else
  381|      0|      type = MTYPE_INTU;
  382|     72|    flags |= FLAGS_HEX | FLAGS_UNSIGNED;
  383|     72|    break;
  384|      0|  case 'X':
  ------------------
  |  Branch (384:3): [True: 0, False: 580k]
  ------------------
  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: 580k]
  ------------------
  394|      0|    type = MTYPE_INT;
  395|      0|    flags |= FLAGS_CHAR;
  396|      0|    break;
  397|      0|  case 'f':
  ------------------
  |  Branch (397:3): [True: 0, False: 580k]
  ------------------
  398|      0|    type = MTYPE_DOUBLE;
  399|      0|    break;
  400|      0|  case 'e':
  ------------------
  |  Branch (400:3): [True: 0, False: 580k]
  ------------------
  401|      0|    type = MTYPE_DOUBLE;
  402|      0|    flags |= FLAGS_FLOATE;
  403|      0|    break;
  404|      0|  case 'E':
  ------------------
  |  Branch (404:3): [True: 0, False: 580k]
  ------------------
  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: 580k]
  ------------------
  409|      0|    type = MTYPE_DOUBLE;
  410|      0|    flags |= FLAGS_FLOATG;
  411|      0|    break;
  412|      0|  case 'G':
  ------------------
  |  Branch (412:3): [True: 0, False: 580k]
  ------------------
  413|      0|    type = MTYPE_DOUBLE;
  414|      0|    flags |= FLAGS_FLOATG | FLAGS_UPPER;
  415|      0|    break;
  416|      0|  default:
  ------------------
  |  Branch (416:3): [True: 0, False: 580k]
  ------------------
  417|       |    /* invalid instruction, disregard and continue */
  418|      0|    return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  419|   580k|  } /* switch */
  420|       |
  421|   580k|  *flagp |= flags;
  422|   580k|  *typep = type;
  423|       |  return FALSE;
  ------------------
  |  | 1056|   580k|#define FALSE false
  ------------------
  424|   580k|}
mprintf.c:out_number:
  738|   102k|{
  739|   102k|  const unsigned char *digits = Curl_ldigits;
  740|   102k|  int flags = p->flags;
  741|   102k|  int width = p->width;
  742|   102k|  int prec = p->prec;
  743|   102k|  bool is_alt = flags & FLAGS_ALT;
  744|   102k|  bool is_neg = FALSE;
  ------------------
  |  | 1056|   102k|#define FALSE false
  ------------------
  745|   102k|  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|   102k|  char *workend = &work[BUFFSIZE - 2];
  ------------------
  |  |   31|   102k|#define BUFFSIZE 326 /* buffer for long-to-str and float-to-str calcs, should
  ------------------
  751|   102k|  char *w;
  752|       |
  753|   102k|  if(flags & FLAGS_CHAR) {
  ------------------
  |  Branch (753:6): [True: 0, False: 102k]
  ------------------
  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;                        \
  |  |  ------------------
  |  |  |  | 1053|      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;                        \
  |  |  ------------------
  |  |  |  | 1053|      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;                        \
  |  |  ------------------
  |  |  |  | 1053|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  762|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  763|      0|  }
  764|   102k|  if(flags & FLAGS_OCTAL)
  ------------------
  |  Branch (764:6): [True: 0, False: 102k]
  ------------------
  765|       |    /* Octal unsigned integer */
  766|      0|    base = 8;
  767|       |
  768|   102k|  else if(flags & FLAGS_HEX) {
  ------------------
  |  Branch (768:11): [True: 72, False: 102k]
  ------------------
  769|       |    /* Hexadecimal unsigned integer */
  770|     72|    digits = (flags & FLAGS_UPPER) ? Curl_udigits : Curl_ldigits;
  ------------------
  |  Branch (770:14): [True: 0, False: 72]
  ------------------
  771|     72|    base = 16;
  772|     72|  }
  773|   102k|  else if(flags & FLAGS_UNSIGNED)
  ------------------
  |  Branch (773:11): [True: 56.8k, False: 45.6k]
  ------------------
  774|       |    /* Decimal unsigned integer */
  775|  56.8k|    ;
  776|       |
  777|  45.6k|  else {
  778|       |    /* Decimal integer. */
  779|  45.6k|    is_neg = (nums < 0);
  780|  45.6k|    if(is_neg) {
  ------------------
  |  Branch (780:8): [True: 0, False: 45.6k]
  ------------------
  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|  45.6k|  }
  789|       |
  790|       |  /* Supply a default precision if none was given. */
  791|   102k|  if(prec == -1)
  ------------------
  |  Branch (791:6): [True: 102k, False: 0]
  ------------------
  792|   102k|    prec = 1;
  793|       |
  794|       |  /* Put the number in WORK. */
  795|   102k|  w = workend;
  796|   102k|  DEBUGASSERT(base <= 16);
  ------------------
  |  | 1083|   102k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (796:3): [True: 0, False: 102k]
  |  Branch (796:3): [True: 102k, False: 0]
  ------------------
  797|   102k|  switch(base) {
  798|   102k|  case 10:
  ------------------
  |  Branch (798:3): [True: 102k, False: 72]
  ------------------
  799|   267k|    while(num > 0) {
  ------------------
  |  Branch (799:11): [True: 164k, False: 102k]
  ------------------
  800|   164k|      *w-- = (char)('0' + (num % 10));
  801|   164k|      num /= 10;
  802|   164k|    }
  803|   102k|    break;
  804|     72|  default:
  ------------------
  |  Branch (804:3): [True: 72, False: 102k]
  ------------------
  805|    355|    while(num > 0) {
  ------------------
  |  Branch (805:11): [True: 283, False: 72]
  ------------------
  806|    283|      *w-- = digits[num % base];
  807|    283|      num /= base;
  808|    283|    }
  809|     72|    break;
  810|   102k|  }
  811|   102k|  width -= (int)(workend - w);
  812|   102k|  prec -= (int)(workend - w);
  813|       |
  814|   102k|  if(is_alt && base == 8 && prec <= 0) {
  ------------------
  |  Branch (814:6): [True: 0, False: 102k]
  |  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|   102k|  if(prec > 0) {
  ------------------
  |  Branch (819:6): [True: 26.4k, False: 76.1k]
  ------------------
  820|  26.4k|    width -= prec;
  821|  52.9k|    while(prec-- > 0 && w >= work)
  ------------------
  |  Branch (821:11): [True: 26.4k, False: 26.4k]
  |  Branch (821:25): [True: 26.4k, False: 0]
  ------------------
  822|  26.4k|      *w-- = '0';
  823|  26.4k|  }
  824|       |
  825|   102k|  if(is_alt && base == 16)
  ------------------
  |  Branch (825:6): [True: 0, False: 102k]
  |  Branch (825:16): [True: 0, False: 0]
  ------------------
  826|      0|    width -= 2;
  827|       |
  828|   102k|  if(is_neg || (flags & FLAGS_SHOWSIGN) || (flags & FLAGS_SPACE))
  ------------------
  |  Branch (828:6): [True: 0, False: 102k]
  |  Branch (828:16): [True: 0, False: 102k]
  |  Branch (828:44): [True: 0, False: 102k]
  ------------------
  829|      0|    --width;
  830|       |
  831|   102k|  if(!(flags & FLAGS_LEFT) && !(flags & FLAGS_PAD_NIL))
  ------------------
  |  Branch (831:6): [True: 102k, False: 0]
  |  Branch (831:31): [True: 102k, False: 0]
  ------------------
  832|   102k|    while(width-- > 0)
  ------------------
  |  Branch (832:11): [True: 0, False: 102k]
  ------------------
  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;                        \
  |  |  ------------------
  |  |  |  | 1053|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  834|       |
  835|   102k|  if(is_neg)
  ------------------
  |  Branch (835:6): [True: 0, False: 102k]
  ------------------
  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;                        \
  |  |  ------------------
  |  |  |  | 1053|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  837|   102k|  else if(flags & FLAGS_SHOWSIGN)
  ------------------
  |  Branch (837:11): [True: 0, False: 102k]
  ------------------
  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;                        \
  |  |  ------------------
  |  |  |  | 1053|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  839|   102k|  else if(flags & FLAGS_SPACE)
  ------------------
  |  Branch (839:11): [True: 0, False: 102k]
  ------------------
  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;                        \
  |  |  ------------------
  |  |  |  | 1053|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  841|       |
  842|   102k|  if(is_alt && base == 16) {
  ------------------
  |  Branch (842:6): [True: 0, False: 102k]
  |  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;                        \
  |  |  ------------------
  |  |  |  | 1053|      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;                        \
  |  |  ------------------
  |  |  |  | 1053|      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;                        \
  |  |  ------------------
  |  |  |  | 1053|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  848|      0|  }
  849|       |
  850|   102k|  if(!(flags & FLAGS_LEFT) && (flags & FLAGS_PAD_NIL))
  ------------------
  |  Branch (850:6): [True: 102k, False: 0]
  |  Branch (850:31): [True: 0, False: 102k]
  ------------------
  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;                        \
  |  |  ------------------
  |  |  |  | 1053|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  853|       |
  854|       |  /* Write the number. */
  855|   293k|  while(++w <= workend) {
  ------------------
  |  Branch (855:9): [True: 191k, False: 102k]
  ------------------
  856|   191k|    OUTCHAR(*w);
  ------------------
  |  |   43|   191k|  do {                                    \
  |  |   44|   191k|    if(stream((unsigned char)(x), userp)) \
  |  |  ------------------
  |  |  |  Branch (44:8): [True: 2, False: 191k]
  |  |  ------------------
  |  |   45|   191k|      return TRUE;                        \
  |  |  ------------------
  |  |  |  | 1053|      2|#define TRUE true
  |  |  ------------------
  |  |   46|   191k|    (*donep)++;                           \
  |  |   47|   191k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 191k]
  |  |  ------------------
  ------------------
  857|   191k|  }
  858|       |
  859|   102k|  if(flags & FLAGS_LEFT)
  ------------------
  |  Branch (859:6): [True: 0, False: 102k]
  ------------------
  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;                        \
  |  |  ------------------
  |  |  |  | 1053|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  862|       |
  863|   102k|  return FALSE;
  ------------------
  |  | 1056|   102k|#define FALSE false
  ------------------
  864|   102k|}
mprintf.c:out_string:
  873|   477k|{
  874|   477k|  int flags = p->flags;
  875|   477k|  int width = p->width;
  876|   477k|  int prec = p->prec;
  877|   477k|  size_t len;
  878|       |
  879|   477k|  if(!str) {
  ------------------
  |  Branch (879:6): [True: 0, False: 477k]
  ------------------
  880|       |    /* Write null string if there is space. */
  881|      0|    if(prec == -1 || prec >= (int)CURL_CSTRLEN(nilstr)) {
  ------------------
  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  ------------------
  |  Branch (881:8): [True: 0, False: 0]
  |  Branch (881:22): [True: 0, False: 0]
  ------------------
  882|      0|      str = nilstr;
  883|      0|      len = CURL_CSTRLEN(nilstr);
  ------------------
  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 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|   477k|  else if(prec != -1)
  ------------------
  |  Branch (892:11): [True: 2.06k, False: 475k]
  ------------------
  893|  2.06k|    len = (size_t)prec;
  894|   475k|  else if(*str == '\0')
  ------------------
  |  Branch (894:11): [True: 292k, False: 183k]
  ------------------
  895|   292k|    len = 0;
  896|   183k|  else
  897|   183k|    len = strlen(str);
  898|       |
  899|   477k|  width -= (len > INT_MAX) ? INT_MAX : (int)len;
  ------------------
  |  Branch (899:12): [True: 0, False: 477k]
  ------------------
  900|       |
  901|   477k|  if(flags & FLAGS_ALT)
  ------------------
  |  Branch (901:6): [True: 0, False: 477k]
  ------------------
  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;                        \
  |  |  ------------------
  |  |  |  | 1053|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  903|       |
  904|   477k|  if(!(flags & FLAGS_LEFT))
  ------------------
  |  Branch (904:6): [True: 477k, False: 0]
  ------------------
  905|   477k|    while(width-- > 0)
  ------------------
  |  Branch (905:11): [True: 0, False: 477k]
  ------------------
  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;                        \
  |  |  ------------------
  |  |  |  | 1053|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  907|       |
  908|  7.95M|  for(; len && *str; len--)
  ------------------
  |  Branch (908:9): [True: 7.47M, False: 477k]
  |  Branch (908:16): [True: 7.47M, False: 0]
  ------------------
  909|  7.47M|    OUTCHAR(*str++);
  ------------------
  |  |   43|  7.95M|  do {                                    \
  |  |   44|  7.47M|    if(stream((unsigned char)(x), userp)) \
  |  |  ------------------
  |  |  |  Branch (44:8): [True: 5, False: 7.47M]
  |  |  ------------------
  |  |   45|  7.47M|      return TRUE;                        \
  |  |  ------------------
  |  |  |  | 1053|      5|#define TRUE true
  |  |  ------------------
  |  |   46|  7.47M|    (*donep)++;                           \
  |  |   47|  7.47M|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 7.47M]
  |  |  ------------------
  ------------------
  910|   477k|  if(flags & FLAGS_LEFT)
  ------------------
  |  Branch (910:6): [True: 0, False: 477k]
  ------------------
  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;                        \
  |  |  ------------------
  |  |  |  | 1053|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  913|       |
  914|   477k|  if(flags & FLAGS_ALT)
  ------------------
  |  Branch (914:6): [True: 0, False: 477k]
  ------------------
  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;                        \
  |  |  ------------------
  |  |  |  | 1053|      0|#define TRUE true
  |  |  ------------------
  |  |   46|      0|    (*donep)++;                           \
  |  |   47|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (47:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  916|       |
  917|   477k|  return FALSE;
  ------------------
  |  | 1056|   477k|#define FALSE false
  ------------------
  918|   477k|}
mprintf.c:addbyter:
 1093|   436k|{
 1094|   436k|  struct nsprintf *infop = f;
 1095|   436k|  if(infop->length < infop->max) {
  ------------------
  |  Branch (1095:6): [True: 436k, False: 0]
  ------------------
 1096|       |    /* only do this if we have not reached max length yet */
 1097|   436k|    *infop->buffer++ = (char)outc; /* store */
 1098|   436k|    infop->length++; /* we are now one byte larger */
 1099|   436k|    return 0;     /* fputc() returns like this on success */
 1100|   436k|  }
 1101|      0|  return 1;
 1102|   436k|}
mprintf.c:alloc_addbyter:
 1141|  7.63M|{
 1142|  7.63M|  struct asprintf *infop = f;
 1143|  7.63M|  CURLcode result = curlx_dyn_addn(infop->b, &outc, 1);
 1144|  7.63M|  if(result) {
  ------------------
  |  Branch (1144:6): [True: 9, False: 7.63M]
  ------------------
 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|  7.63M|  return 0;
 1149|  7.63M|}
mprintf.c:fputc_wrapper:
 1214|  38.8k|{
 1215|  38.8k|  int out = outc;
 1216|  38.8k|  FILE *s = f;
 1217|  38.8k|  int rc = fputc(out, s);
 1218|       |  return rc == EOF;
 1219|  38.8k|}

Curl_multi_handle:
  230|  9.97k|{
  231|  9.97k|  struct Curl_multi *multi = curlx_calloc(1, sizeof(struct Curl_multi));
  ------------------
  |  | 1479|  9.97k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  232|       |
  233|  9.97k|  if(!multi)
  ------------------
  |  Branch (233:6): [True: 0, False: 9.97k]
  ------------------
  234|      0|    return NULL;
  235|       |
  236|  9.97k|  multi->magic = CURLMULTI_MAGIC_NUMBER;
  ------------------
  |  |   41|  9.97k|#define CURLMULTI_MAGIC_NUMBER 0x000bab1e
  ------------------
  237|       |
  238|  9.97k|  Curl_dnscache_init(&multi->dnscache, dnssize);
  239|  9.97k|  Curl_mntfy_init(multi);
  240|  9.97k|  Curl_multi_ev_init(multi, ev_hashsize);
  241|  9.97k|  Curl_uint32_tbl_init(&multi->xfers, NULL);
  242|  9.97k|  Curl_uint32_bset_init(&multi->process);
  243|  9.97k|  Curl_uint32_bset_init(&multi->dirty);
  244|  9.97k|  Curl_uint32_bset_init(&multi->pending);
  245|  9.97k|  Curl_uint32_bset_init(&multi->msgsent);
  246|  9.97k|  Curl_hash_init(&multi->proto_hash, 23,
  247|  9.97k|                 Curl_hash_str, curlx_str_key_compare, ph_freeentry);
  248|  9.97k|  Curl_llist_init(&multi->msglist, NULL);
  249|       |
  250|  9.97k|  multi->multiplexing = TRUE;
  ------------------
  |  | 1053|  9.97k|#define TRUE true
  ------------------
  251|  9.97k|  multi->max_concurrent_streams = 100;
  252|  9.97k|  multi->last_timeout_ms = -1;
  253|  9.97k|#ifdef ENABLE_WAKEUP
  254|  9.97k|  multi->wakeup_pair[0] = CURL_SOCKET_BAD;
  ------------------
  |  |  145|  9.97k|#define CURL_SOCKET_BAD (-1)
  ------------------
  255|  9.97k|  multi->wakeup_pair[1] = CURL_SOCKET_BAD;
  ------------------
  |  |  145|  9.97k|#define CURL_SOCKET_BAD (-1)
  ------------------
  256|  9.97k|#endif
  257|  9.97k|#ifdef ENABLE_INTERNAL_WAKEUP
  258|  9.97k|  multi->wakeup_internal[0] = CURL_SOCKET_BAD;
  ------------------
  |  |  145|  9.97k|#define CURL_SOCKET_BAD (-1)
  ------------------
  259|  9.97k|  multi->wakeup_internal[1] = CURL_SOCKET_BAD;
  ------------------
  |  |  145|  9.97k|#define CURL_SOCKET_BAD (-1)
  ------------------
  260|  9.97k|#endif
  261|       |
  262|  9.97k|  if(Curl_mntfy_resize(multi) ||
  ------------------
  |  Branch (262:6): [True: 0, False: 9.97k]
  ------------------
  263|  9.97k|     Curl_uint32_bset_resize(&multi->process, xfer_table_size) ||
  ------------------
  |  Branch (263:6): [True: 0, False: 9.97k]
  ------------------
  264|  9.97k|     Curl_uint32_bset_resize(&multi->pending, xfer_table_size) ||
  ------------------
  |  Branch (264:6): [True: 0, False: 9.97k]
  ------------------
  265|  9.97k|     Curl_uint32_bset_resize(&multi->dirty, xfer_table_size) ||
  ------------------
  |  Branch (265:6): [True: 0, False: 9.97k]
  ------------------
  266|  9.97k|     Curl_uint32_bset_resize(&multi->msgsent, xfer_table_size) ||
  ------------------
  |  Branch (266:6): [True: 0, False: 9.97k]
  ------------------
  267|  9.97k|     Curl_uint32_tbl_resize(&multi->xfers, xfer_table_size))
  ------------------
  |  Branch (267:6): [True: 0, False: 9.97k]
  ------------------
  268|      0|    goto error;
  269|       |
  270|  9.97k|  multi->admin = curl_easy_init();
  271|  9.97k|  if(!multi->admin)
  ------------------
  |  Branch (271:6): [True: 0, False: 9.97k]
  ------------------
  272|      0|    goto error;
  273|       |  /* Initialize admin handle to operate inside this multi */
  274|  9.97k|  multi->admin->multi = multi;
  275|  9.97k|  multi->admin->state.internal = TRUE;
  ------------------
  |  | 1053|  9.97k|#define TRUE true
  ------------------
  276|  9.97k|  multi_timeouts_init(multi->admin);
  277|       |
  278|  9.97k|#ifdef DEBUGBUILD
  279|  9.97k|  if(getenv("CURL_DEBUG"))
  ------------------
  |  Branch (279:6): [True: 0, False: 9.97k]
  ------------------
  280|      0|    multi->admin->set.verbose = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  281|  9.97k|#endif
  282|  9.97k|  Curl_uint32_tbl_add(&multi->xfers, multi->admin, &multi->admin->mid);
  283|  9.97k|  Curl_uint32_bset_add(&multi->process, multi->admin->mid);
  284|       |
  285|  9.97k|  if(Curl_cshutdn_init(&multi->cshutdn, multi))
  ------------------
  |  Branch (285:6): [True: 0, False: 9.97k]
  ------------------
  286|      0|    goto error;
  287|       |
  288|  9.97k|  Curl_cpool_init(&multi->cpool, multi->admin, NULL, chashsize);
  289|       |
  290|  9.97k|#ifdef USE_SSL
  291|  9.97k|  if(Curl_ssl_scache_create(sesssize, 2, &multi->ssl_scache))
  ------------------
  |  Branch (291:6): [True: 0, False: 9.97k]
  ------------------
  292|      0|    goto error;
  293|       |#else
  294|       |  (void)sesssize;
  295|       |#endif
  296|       |
  297|       |#ifdef USE_WINSOCK
  298|       |  multi->wsa_event = WSACreateEvent();
  299|       |  if(multi->wsa_event == WSA_INVALID_EVENT)
  300|       |    goto error;
  301|       |#endif
  302|  9.97k|#ifdef ENABLE_WAKEUP
  303|       |  /* When enabled, rely on this to work. We ignore this in previous
  304|       |   * versions, but that seems an unnecessary complication. */
  305|  9.97k|  if(Curl_wakeup_init(multi->wakeup_pair, TRUE) < 0)
  ------------------
  |  | 1053|  9.97k|#define TRUE true
  ------------------
  |  Branch (305:6): [True: 0, False: 9.97k]
  ------------------
  306|      0|    goto error;
  307|  9.97k|#endif
  308|  9.97k|#ifdef ENABLE_INTERNAL_WAKEUP
  309|  9.97k|  if(Curl_wakeup_init(multi->wakeup_internal, TRUE) < 0)
  ------------------
  |  | 1053|  9.97k|#define TRUE true
  ------------------
  |  Branch (309:6): [True: 0, False: 9.97k]
  ------------------
  310|      0|    goto error;
  311|  9.97k|#endif
  312|       |
  313|  9.97k|  if(Curl_probeipv6(multi))
  ------------------
  |  Branch (313:6): [True: 0, False: 9.97k]
  ------------------
  314|      0|    goto error;
  315|       |
  316|  9.97k|#ifdef USE_RESOLV_THREADED
  317|  9.97k|  if(xfer_table_size < CURL_XFER_TABLE_SIZE) { /* easy multi */
  ------------------
  |  |   52|  9.97k|#define CURL_XFER_TABLE_SIZE 512
  ------------------
  |  Branch (317:6): [True: 0, False: 9.97k]
  ------------------
  318|      0|    if(Curl_async_thrdd_multi_init(multi, 0, 2, 10))
  ------------------
  |  Branch (318:8): [True: 0, False: 0]
  ------------------
  319|      0|      goto error;
  320|      0|  }
  321|  9.97k|  else { /* real multi handle */
  322|  9.97k|    if(Curl_async_thrdd_multi_init(multi, 0, 20, 2000))
  ------------------
  |  Branch (322:8): [True: 0, False: 9.97k]
  ------------------
  323|      0|      goto error;
  324|  9.97k|  }
  325|  9.97k|#endif
  326|       |
  327|  9.97k|  return multi;
  328|       |
  329|      0|error:
  330|       |
  331|      0|#ifdef USE_RESOLV_THREADED
  332|      0|  Curl_async_thrdd_multi_destroy(multi, TRUE);
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  333|      0|#endif
  334|      0|  Curl_multi_ev_cleanup(multi);
  335|      0|  Curl_hash_destroy(&multi->proto_hash);
  336|      0|  Curl_dnscache_destroy(&multi->dnscache);
  337|      0|  Curl_cpool_destroy(&multi->cpool);
  338|      0|  Curl_cshutdn_destroy(&multi->cshutdn, multi->admin);
  339|      0|#ifdef USE_SSL
  340|      0|  Curl_ssl_scache_destroy(multi->ssl_scache);
  341|      0|#endif
  342|      0|  if(multi->admin) {
  ------------------
  |  Branch (342:6): [True: 0, False: 0]
  ------------------
  343|      0|    Curl_multi_ev_xfer_done(multi, multi->admin);
  344|      0|    multi->admin->multi = NULL;
  345|      0|    Curl_close(&multi->admin);
  346|      0|  }
  347|      0|  Curl_mntfy_cleanup(multi);
  348|       |
  349|      0|  Curl_uint32_bset_destroy(&multi->process);
  350|      0|  Curl_uint32_bset_destroy(&multi->dirty);
  351|      0|  Curl_uint32_bset_destroy(&multi->pending);
  352|      0|  Curl_uint32_bset_destroy(&multi->msgsent);
  353|      0|  Curl_uint32_tbl_destroy(&multi->xfers);
  354|      0|#ifdef ENABLE_WAKEUP
  355|      0|  Curl_wakeup_destroy(multi->wakeup_pair);
  356|      0|#endif
  357|      0|#ifdef ENABLE_INTERNAL_WAKEUP
  358|      0|  Curl_wakeup_destroy(multi->wakeup_internal);
  359|      0|#endif
  360|       |
  361|      0|  curlx_free(multi);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  362|       |  return NULL;
  363|  9.97k|}
curl_multi_init:
  366|  9.97k|{
  367|  9.97k|  return Curl_multi_handle(CURL_XFER_TABLE_SIZE,
  ------------------
  |  |   52|  9.97k|#define CURL_XFER_TABLE_SIZE 512
  ------------------
  368|  9.97k|                           CURL_SOCKET_HASH_TABLE_SIZE,
  ------------------
  |  |   58|  9.97k|#define CURL_SOCKET_HASH_TABLE_SIZE 911
  ------------------
  369|  9.97k|                           CURL_CONNECTION_HASH_SIZE,
  ------------------
  |  |   62|  9.97k|#define CURL_CONNECTION_HASH_SIZE 97
  ------------------
  370|  9.97k|                           CURL_DNS_HASH_SIZE,
  ------------------
  |  |   66|  9.97k|#define CURL_DNS_HASH_SIZE 71
  ------------------
  371|  9.97k|                           CURL_TLS_SESSION_SIZE);
  ------------------
  |  |   70|  9.97k|#define CURL_TLS_SESSION_SIZE 25
  ------------------
  372|  9.97k|}
Curl_is_connecting:
  389|   397k|{
  390|   397k|  return data->mstate < MSTATE_DO;
  391|   397k|}
Curl_multi_add_handle:
  467|  9.97k|{
  468|  9.97k|  CURLMcode mresult;
  469|       |
  470|       |  /* Prevent users from adding same easy handle more than once and prevent
  471|       |     adding to more than one multi stack */
  472|  9.97k|  if(data->multi)
  ------------------
  |  Branch (472:6): [True: 0, False: 9.97k]
  ------------------
  473|      0|    return CURLM_ADDED_ALREADY;
  474|       |
  475|  9.97k|  if(multi->dead) {
  ------------------
  |  Branch (475:6): [True: 0, False: 9.97k]
  ------------------
  476|       |    /* a "dead" handle cannot get added transfers while any existing easy
  477|       |       handles are still alive - but if there are none alive anymore, it is
  478|       |       fine to start over and unmark the "deadness" of this handle.
  479|       |       This means only the admin handle MUST be present. */
  480|      0|    if((Curl_uint32_tbl_count(&multi->xfers) != 1) ||
  ------------------
  |  Branch (480:8): [True: 0, False: 0]
  ------------------
  481|      0|       !Curl_uint32_tbl_contains(&multi->xfers, 0))
  ------------------
  |  Branch (481:8): [True: 0, False: 0]
  ------------------
  482|      0|      return CURLM_ABORTED_BY_CALLBACK;
  483|      0|    multi->dead = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  484|      0|    Curl_uint32_bset_clear(&multi->process);
  485|      0|    Curl_uint32_bset_clear(&multi->dirty);
  486|      0|    Curl_uint32_bset_clear(&multi->pending);
  487|      0|    Curl_uint32_bset_clear(&multi->msgsent);
  488|      0|  }
  489|       |
  490|  9.97k|  if(data->multi_easy) {
  ------------------
  |  Branch (490:6): [True: 0, False: 9.97k]
  ------------------
  491|       |    /* if this easy handle was previously used for curl_easy_perform(), there
  492|       |       is a private multi handle here that we can kill */
  493|      0|    curl_multi_cleanup(data->multi_easy);
  494|      0|    data->multi_easy = NULL;
  495|      0|  }
  496|       |
  497|       |  /* Insert the easy into the multi->xfers table, assigning it a `mid`. */
  498|  9.97k|  if(multi_xfers_add(multi, data))
  ------------------
  |  Branch (498:6): [True: 0, False: 9.97k]
  ------------------
  499|      0|    return CURLM_OUT_OF_MEMORY;
  500|       |
  501|       |  /* Initialize timeouts for this handle */
  502|  9.97k|  multi_timeouts_init(data);
  503|       |
  504|       |  /*
  505|       |   * No failure allowed in this function beyond this point. No modification
  506|       |   * of easy nor multi handle allowed before this except for potential
  507|       |   * multi's connection pool growing which will not be undone in this
  508|       |   * function no matter what.
  509|       |   */
  510|  9.97k|  if(data->set.errorbuffer)
  ------------------
  |  Branch (510:6): [True: 0, False: 9.97k]
  ------------------
  511|      0|    data->set.errorbuffer[0] = 0;
  512|       |
  513|  9.97k|  data->state.os_errno = 0;
  514|       |
  515|       |  /* make the Curl_easy refer back to this multi handle - before
  516|       |     Curl_expire() is called. */
  517|  9.97k|  data->multi = multi;
  518|       |
  519|       |  /* set the easy handle */
  520|  9.97k|  multistate(data, MSTATE_INIT);
  ------------------
  |  |  196|  9.97k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
  521|       |  /* not yet passed INIT state */
  522|  9.97k|  data->state.really_alive = FALSE;
  ------------------
  |  | 1056|  9.97k|#define FALSE false
  ------------------
  523|       |
  524|       |#ifdef USE_LIBPSL
  525|       |  /* Do the same for PSL. */
  526|       |  if(data->share && (data->share->specifier & (1 << CURL_LOCK_DATA_PSL)))
  527|       |    data->psl = &data->share->psl;
  528|       |  else
  529|       |    data->psl = &multi->psl;
  530|       |#endif
  531|       |
  532|       |  /* add the easy handle to the process set */
  533|  9.97k|  Curl_uint32_bset_add(&multi->process, data->mid);
  534|  9.97k|  ++multi->xfers_alive;
  535|  9.97k|  ++multi->xfers_total_ever;
  536|       |
  537|  9.97k|  Curl_cpool_xfer_init(data);
  538|  9.97k|  multi_warn_debug(multi, data);
  539|       |
  540|       |  /* Make sure the new handle will run */
  541|  9.97k|  Curl_multi_mark_dirty(data);
  542|       |
  543|       |  /* Necessary in event based processing, where dirty handles trigger
  544|       |   * a timeout callback invocation. */
  545|  9.97k|  mresult = Curl_update_timer(multi);
  546|  9.97k|  if(mresult) {
  ------------------
  |  Branch (546:6): [True: 0, False: 9.97k]
  ------------------
  547|      0|    data->multi = NULL; /* not anymore */
  548|      0|    Curl_uint32_tbl_remove(&multi->xfers, data->mid);
  549|      0|    data->mid = UINT32_MAX;
  550|      0|    return mresult;
  551|      0|  }
  552|       |
  553|       |  /* The admin handle only ever has default timeouts set. To improve the
  554|       |     state somewhat we clone the timeouts from each added handle so that the
  555|       |     admin handle always has the same timeouts as the most recently added
  556|       |     easy handle. */
  557|  9.97k|  multi->admin->set.timeout = data->set.timeout;
  558|  9.97k|  multi->admin->set.server_response_timeout =
  559|  9.97k|    data->set.server_response_timeout;
  560|  9.97k|  multi->admin->set.no_signal = data->set.no_signal;
  561|       |
  562|  9.97k|  CURL_TRC_M(data, "added to multi, mid=%u, running=%u, total=%u",
  ------------------
  |  |  148|  9.97k|  do {                                   \
  |  |  149|  9.97k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  9.97k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  9.97k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  19.9k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 9.97k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 9.97k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  19.9k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  9.97k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  9.97k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  9.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 9.97k]
  |  |  ------------------
  ------------------
  563|  9.97k|             data->mid, Curl_multi_xfers_running(multi),
  564|  9.97k|             Curl_uint32_tbl_count(&multi->xfers));
  565|  9.97k|  return CURLM_OK;
  566|  9.97k|}
curl_multi_add_handle:
  569|  9.97k|{
  570|  9.97k|  struct Curl_mapi_guard guard;
  571|  9.97k|  CURLMcode mresult;
  572|       |
  573|  9.97k|  if(CURL_MAPI_ENTER(&guard, m, multi_add_handle, &mresult)) {
  ------------------
  |  |  188|  9.97k|  Curl_mapi_enter((g), (m), CURL_MAPI_FN_##fn, (r)) && (m)
  |  |  ------------------
  |  |  |  Branch (188:3): [True: 9.97k, False: 0]
  |  |  |  Branch (188:56): [True: 9.97k, False: 0]
  |  |  ------------------
  ------------------
  574|  9.97k|    struct Curl_easy *data = curl;
  575|       |    /* Verify that we got a somewhat good easy handle too */
  576|  9.97k|    if(!GOOD_EASY_HANDLE(data))
  ------------------
  |  |   34|  9.97k|  (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  |   28|  9.97k|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  |  |  ------------------
  |  |                 (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1053|  9.97k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (34:5): [True: 9.97k, False: 0]
  |  |  |  Branch (34:12): [True: 9.97k, False: 0]
  |  |  ------------------
  |  |   35|  9.97k|   (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (576:8): [True: 0, False: 9.97k]
  |  Branch (576:9): [True: 0, False: 0]
  |  Branch (576:9): [True: 0, False: 0]
  ------------------
  577|      0|      mresult = CURLM_BAD_EASY_HANDLE;
  578|  9.97k|    else
  579|  9.97k|      mresult = Curl_multi_add_handle(m, data);
  580|  9.97k|  }
  581|  9.97k|  CURL_MAPI_LEAVE(&guard);
  ------------------
  |  |  190|  9.97k|  Curl_mapi_leave(g)
  ------------------
  582|  9.97k|  return mresult;
  583|  9.97k|}
Curl_multi_remove_handle:
  763|  9.97k|{
  764|  9.97k|  CURLMcode mresult;
  765|  9.97k|  bool premature;
  766|  9.97k|  struct Curl_llist_node *e;
  767|  9.97k|  uint32_t mid;
  768|       |
  769|       |  /* Prevent users from trying to remove same easy handle more than once */
  770|  9.97k|  if(!data->multi)
  ------------------
  |  Branch (770:6): [True: 0, False: 9.97k]
  ------------------
  771|      0|    return CURLM_OK; /* it is already removed so let's say it is fine! */
  772|       |
  773|       |  /* Prevent users from trying to remove an easy handle from the wrong multi */
  774|  9.97k|  if(data->multi != multi)
  ------------------
  |  Branch (774:6): [True: 0, False: 9.97k]
  ------------------
  775|      0|    return CURLM_BAD_EASY_HANDLE;
  776|       |
  777|  9.97k|  if(data->mid == UINT32_MAX) {
  ------------------
  |  Branch (777:6): [True: 0, False: 9.97k]
  ------------------
  778|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (778:5): [Folded, False: 0]
  |  Branch (778:5): [Folded, False: 0]
  ------------------
  779|      0|    return CURLM_INTERNAL_ERROR;
  780|      0|  }
  781|  9.97k|  if(Curl_uint32_tbl_get(&multi->xfers, data->mid) != data) {
  ------------------
  |  Branch (781:6): [True: 0, False: 9.97k]
  ------------------
  782|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (782:5): [Folded, False: 0]
  |  Branch (782:5): [Folded, False: 0]
  ------------------
  783|      0|    return CURLM_INTERNAL_ERROR;
  784|      0|  }
  785|       |
  786|  9.97k|  premature = (data->mstate < MSTATE_COMPLETED);
  787|       |
  788|  9.97k|  if(data->conn) {
  ------------------
  |  Branch (788:6): [True: 460, False: 9.51k]
  ------------------
  789|       |    /* If the 'state' is not INIT or COMPLETED, we might need to do something
  790|       |       nice to put the easy_handle in a good known state when this returns. */
  791|    460|    if(premature && (data->mstate > MSTATE_DO))
  ------------------
  |  Branch (791:8): [True: 14, False: 446]
  |  Branch (791:21): [True: 14, False: 0]
  ------------------
  792|     14|      streamclose(data->conn);
  ------------------
  |  |   87|     14|#define streamclose(x) Curl_conncontrol((x), CONNCTRL_STREAM_CLOSE)
  |  |  ------------------
  |  |  |  |   83|     14|#define CONNCTRL_STREAM_CLOSE    2
  |  |  ------------------
  ------------------
  793|       |
  794|       |    /* multi_done() clears the association between the easy handle and the
  795|       |       connection.
  796|       |       Note that this ignores the return code because there is
  797|       |       nothing really useful to do with it anyway! */
  798|    460|    (void)multi_done(data, data->result, premature);
  799|    460|  }
  800|       |
  801|       |  /* The timer must be shut down before data->multi is set to NULL, else
  802|       |     data's splaynode would remain in the splay tree after curl_easy_cleanup is
  803|       |     called. Do it after multi_done() in case that sets another time! */
  804|  9.97k|  Curl_expire_clear(data);
  805|       |
  806|       |  /* If in `msgsent`, it was deducted from `multi->xfers_alive` already. */
  807|  9.97k|  if(!Curl_uint32_bset_contains(&multi->msgsent, data->mid))
  ------------------
  |  Branch (807:6): [True: 14, False: 9.96k]
  ------------------
  808|     14|    --multi->xfers_alive;
  809|       |
  810|  9.97k|  if(data->state.really_alive) {
  ------------------
  |  Branch (810:6): [True: 14, False: 9.96k]
  ------------------
  811|     14|    data->state.really_alive = FALSE;
  ------------------
  |  | 1056|     14|#define FALSE false
  ------------------
  812|     14|    --multi->xfers_really_alive;
  813|     14|    if(!multi->xfers_really_alive)
  ------------------
  |  Branch (813:8): [True: 14, False: 0]
  ------------------
  814|     14|      (void)multi_assess_wakeup(multi);
  815|     14|  }
  816|       |
  817|  9.97k|  Curl_wildcard_dtor(&data->wildcard);
  818|       |
  819|  9.97k|  data->mstate = MSTATE_COMPLETED;
  820|       |
  821|       |  /* Remove the association between the connection and the handle */
  822|  9.97k|  Curl_detach_connection(data);
  823|       |
  824|       |  /* Tell event handling that this transfer is definitely going away */
  825|  9.97k|  Curl_multi_ev_xfer_done(multi, data);
  826|       |
  827|  9.97k|  if(data->set.connect_only) {
  ------------------
  |  Branch (827:6): [True: 496, False: 9.47k]
  ------------------
  828|    496|    if(data->multi_easy) {
  ------------------
  |  Branch (828:8): [True: 0, False: 496]
  ------------------
  829|      0|      if(data->state.lastconnect_id != -1) {
  ------------------
  |  Branch (829:10): [True: 0, False: 0]
  ------------------
  830|       |        /* Mark any connect-only connection for closure */
  831|      0|        struct connectdata *conn;
  832|      0|        (void)Curl_getconnectinfo(data, &conn);
  833|      0|        if(conn && conn->bits.connect_only)
  ------------------
  |  Branch (833:12): [True: 0, False: 0]
  |  Branch (833:20): [True: 0, False: 0]
  ------------------
  834|      0|          connclose(conn);
  ------------------
  |  |   88|      0|#define connclose(x)   Curl_conncontrol((x), CONNCTRL_CONN_CLOSE)
  |  |  ------------------
  |  |  |  |   82|      0|#define CONNCTRL_CONN_CLOSE      1
  |  |  ------------------
  ------------------
  835|      0|      }
  836|      0|    }
  837|    496|    else {
  838|       |      /* This removes a handle that was part the multi interface that used
  839|       |         CONNECT_ONLY, that connection is now left alive but since this handle
  840|       |         has bits.close set nothing can use that connection anymore and it is
  841|       |         forbidden from reuse. This easy handle cannot find the connection
  842|       |         anymore once removed from the multi handle
  843|       |
  844|       |         Better close the connection here, at once. */
  845|    496|      struct connectdata *conn;
  846|    496|      (void)Curl_getconnectinfo(data, &conn);
  847|    496|      if(conn)
  ------------------
  |  Branch (847:10): [True: 456, False: 40]
  ------------------
  848|    456|        Curl_conn_terminate(data, conn, TRUE);
  ------------------
  |  | 1053|    456|#define TRUE true
  ------------------
  849|    496|    }
  850|    496|  }
  851|       |
  852|       |#ifdef USE_LIBPSL
  853|       |  /* Remove the PSL association. */
  854|       |  if(data->psl == &multi->psl)
  855|       |    data->psl = NULL;
  856|       |#endif
  857|       |
  858|       |  /* make sure there is no pending message in the queue sent from this easy
  859|       |     handle */
  860|  9.97k|  for(e = Curl_llist_head(&multi->msglist); e; e = Curl_node_next(e)) {
  ------------------
  |  Branch (860:45): [True: 9.96k, False: 14]
  ------------------
  861|  9.96k|    struct Curl_message *msg = Curl_node_elem(e);
  862|       |
  863|  9.96k|    if(msg->extmsg.easy_handle == data) {
  ------------------
  |  Branch (863:8): [True: 9.96k, False: 0]
  ------------------
  864|  9.96k|      Curl_node_remove(e);
  865|       |      /* there can only be one from this specific handle */
  866|  9.96k|      break;
  867|  9.96k|    }
  868|  9.96k|  }
  869|       |
  870|       |  /* clear the association to this multi handle */
  871|  9.97k|  mid = data->mid;
  872|  9.97k|  DEBUGASSERT(Curl_uint32_tbl_contains(&multi->xfers, mid));
  ------------------
  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (872:3): [True: 0, False: 9.97k]
  |  Branch (872:3): [True: 9.97k, False: 0]
  ------------------
  873|  9.97k|  Curl_uint32_tbl_remove(&multi->xfers, mid);
  874|  9.97k|  Curl_uint32_bset_remove(&multi->process, mid);
  875|  9.97k|  Curl_uint32_bset_remove(&multi->dirty, mid);
  876|  9.97k|  Curl_uint32_bset_remove(&multi->pending, mid);
  877|  9.97k|  Curl_uint32_bset_remove(&multi->msgsent, mid);
  878|  9.97k|  data->multi = NULL;
  879|  9.97k|  data->mid = UINT32_MAX;
  880|  9.97k|  data->master_mid = UINT32_MAX;
  881|       |
  882|       |  /* A pending transfer *might* be able to run now. */
  883|  9.97k|  multi_schedule_pending(multi);
  884|  9.97k|  mresult = Curl_update_timer(multi);
  885|  9.97k|  if(mresult)
  ------------------
  |  Branch (885:6): [True: 0, False: 9.97k]
  ------------------
  886|      0|    return mresult;
  887|       |
  888|  9.97k|  mresult = multi_assess_wakeup(multi);
  889|  9.97k|  if(mresult) {
  ------------------
  |  Branch (889:6): [True: 0, False: 9.97k]
  ------------------
  890|      0|    failf(data, "error enabling wakeup listening: %d", mresult);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  891|      0|    return mresult;
  892|      0|  }
  893|       |
  894|  9.97k|  CURL_TRC_M(data, "removed from multi, mid=%u, running=%u, total=%u",
  ------------------
  |  |  148|  9.97k|  do {                                   \
  |  |  149|  9.97k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  9.97k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  9.97k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  19.9k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 9.97k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 9.97k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  19.9k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  9.97k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  9.97k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  9.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 9.97k]
  |  |  ------------------
  ------------------
  895|  9.97k|             mid, Curl_multi_xfers_running(multi),
  896|  9.97k|             Curl_uint32_tbl_count(&multi->xfers));
  897|  9.97k|  return CURLM_OK;
  898|  9.97k|}
curl_multi_remove_handle:
  901|  9.97k|{
  902|  9.97k|  struct Curl_mapi_guard guard;
  903|  9.97k|  CURLMcode mresult;
  904|       |
  905|  9.97k|  if(CURL_MAPI_ENTER(&guard, m, multi_remove_handle, &mresult)) {
  ------------------
  |  |  188|  9.97k|  Curl_mapi_enter((g), (m), CURL_MAPI_FN_##fn, (r)) && (m)
  |  |  ------------------
  |  |  |  Branch (188:3): [True: 9.97k, False: 0]
  |  |  |  Branch (188:56): [True: 9.97k, False: 0]
  |  |  ------------------
  ------------------
  906|  9.97k|    struct Curl_easy *data = curl;
  907|  9.97k|    if(!GOOD_EASY_HANDLE(data))
  ------------------
  |  |   34|  9.97k|  (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  |   28|  9.97k|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  |  |  ------------------
  |  |                 (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1053|  9.97k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (34:5): [True: 9.97k, False: 0]
  |  |  |  Branch (34:12): [True: 9.97k, False: 0]
  |  |  ------------------
  |  |   35|  9.97k|   (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (907:8): [True: 0, False: 9.97k]
  |  Branch (907:9): [True: 0, False: 0]
  |  Branch (907:9): [True: 0, False: 0]
  ------------------
  908|      0|      mresult = CURLM_BAD_EASY_HANDLE;
  909|  9.97k|    else
  910|  9.97k|      mresult = Curl_multi_remove_handle(m, data);
  911|  9.97k|  }
  912|  9.97k|  CURL_MAPI_LEAVE(&guard);
  ------------------
  |  |  190|  9.97k|  Curl_mapi_leave(g)
  ------------------
  913|  9.97k|  return mresult;
  914|  9.97k|}
Curl_multiplex_wanted:
  918|  13.7k|{
  919|  13.7k|  return multi && multi->multiplexing;
  ------------------
  |  Branch (919:10): [True: 13.7k, False: 0]
  |  Branch (919:19): [True: 13.7k, False: 0]
  ------------------
  920|  13.7k|}
Curl_detach_connection:
  929|  68.5k|{
  930|  68.5k|  struct connectdata *conn = data->conn;
  931|  68.5k|  if(conn) {
  ------------------
  |  Branch (931:6): [True: 29.0k, False: 39.4k]
  ------------------
  932|       |    /* this should never happen, prevent underflow */
  933|  29.0k|    DEBUGASSERT(conn->attached_xfers);
  ------------------
  |  | 1083|  29.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (933:5): [True: 0, False: 29.0k]
  |  Branch (933:5): [True: 29.0k, False: 0]
  ------------------
  934|  29.0k|    if(conn->attached_xfers) {
  ------------------
  |  Branch (934:8): [True: 29.0k, False: 0]
  ------------------
  935|  29.0k|      conn->attached_xfers--;
  936|  29.0k|      if(!conn->attached_xfers)
  ------------------
  |  Branch (936:10): [True: 29.0k, False: 0]
  ------------------
  937|  29.0k|        conn->attached_multi = NULL;
  938|  29.0k|    }
  939|  29.0k|  }
  940|  68.5k|  data->conn = NULL;
  941|  68.5k|}
Curl_attach_connection:
  950|  29.0k|{
  951|  29.0k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|  29.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (951:3): [True: 0, False: 29.0k]
  |  Branch (951:3): [True: 29.0k, False: 0]
  ------------------
  952|  29.0k|  DEBUGASSERT(!data->conn);
  ------------------
  |  | 1083|  29.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (952:3): [True: 0, False: 29.0k]
  |  Branch (952:3): [True: 29.0k, False: 0]
  ------------------
  953|  29.0k|  DEBUGASSERT(conn);
  ------------------
  |  | 1083|  29.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (953:3): [True: 0, False: 29.0k]
  |  Branch (953:3): [True: 29.0k, False: 0]
  ------------------
  954|  29.0k|  DEBUGASSERT(conn->attached_xfers < UINT32_MAX);
  ------------------
  |  | 1083|  29.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (954:3): [True: 0, False: 29.0k]
  |  Branch (954:3): [True: 29.0k, False: 0]
  ------------------
  955|  29.0k|  data->conn = conn;
  956|  29.0k|  data->state.recent_conn_id = conn->connection_id;
  957|  29.0k|  conn->attached_xfers++;
  958|       |  /* all attached transfers must be from the same multi */
  959|  29.0k|  if(!conn->attached_multi)
  ------------------
  |  Branch (959:6): [True: 29.0k, False: 0]
  ------------------
  960|  29.0k|    conn->attached_multi = data->multi;
  961|  29.0k|  DEBUGASSERT(conn->attached_multi == data->multi);
  ------------------
  |  | 1083|  29.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (961:3): [True: 0, False: 29.0k]
  |  Branch (961:3): [True: 29.0k, False: 0]
  ------------------
  962|       |
  963|  29.0k|  if(conn->scheme && conn->scheme->run->attach)
  ------------------
  |  Branch (963:6): [True: 29.0k, False: 0]
  |  Branch (963:22): [True: 0, False: 29.0k]
  ------------------
  964|      0|    conn->scheme->run->attach(data, conn);
  965|  29.0k|}
Curl_multi_pollset:
 1135|   286k|{
 1136|   286k|  CURLcode result = CURLE_OK;
 1137|       |
 1138|   286k|  Curl_pollset_reset(ps);
 1139|   286k|#ifdef ENABLE_INTERNAL_WAKEUP
 1140|       |  /* The admin handle always listens on the wakeup socket when there
 1141|       |   * are transfers alive. */
 1142|   286k|  if(data->multi && (data == data->multi->admin) &&
  ------------------
  |  Branch (1142:6): [True: 286k, False: 0]
  |  Branch (1142:21): [True: 143k, False: 143k]
  ------------------
 1143|   143k|     data->multi->xfers_really_alive) {
  ------------------
  |  Branch (1143:6): [True: 143k, False: 0]
  ------------------
 1144|   143k|    CURL_TRC_M(data, "adding wakeup, %u xfers really alive",
  ------------------
  |  |  148|   143k|  do {                                   \
  |  |  149|   143k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|   143k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|   143k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|   286k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 143k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 143k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|   286k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|   143k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|   143k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|   143k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 143k]
  |  |  ------------------
  ------------------
 1145|   143k|               data->multi->xfers_really_alive);
 1146|   143k|    result = Curl_pollset_add_in(data, ps, data->multi->wakeup_internal[0]);
  ------------------
  |  |  160|   143k|  Curl_pollset_change(data, ps, sock, CURL_POLL_IN, 0)
  |  |  ------------------
  |  |  |  |  283|   143k|#define CURL_POLL_IN     1
  |  |  ------------------
  ------------------
 1147|   143k|  }
 1148|   286k|#endif
 1149|       |  /* If the transfer has no connection, this is fine. Happens when
 1150|       |     called via curl_multi_remove_handle() => Curl_multi_ev_assess() =>
 1151|       |     Curl_multi_pollset(). */
 1152|   286k|  if(!result && data->conn) {
  ------------------
  |  Branch (1152:6): [True: 286k, False: 0]
  |  Branch (1152:17): [True: 143k, False: 143k]
  ------------------
 1153|   143k|    switch(data->mstate) {
 1154|      0|    case MSTATE_INIT:
  ------------------
  |  Branch (1154:5): [True: 0, False: 143k]
  ------------------
 1155|      0|    case MSTATE_PENDING:
  ------------------
  |  Branch (1155:5): [True: 0, False: 143k]
  ------------------
 1156|      0|    case MSTATE_SETUP:
  ------------------
  |  Branch (1156:5): [True: 0, False: 143k]
  ------------------
 1157|      0|    case MSTATE_CONNECT:
  ------------------
  |  Branch (1157:5): [True: 0, False: 143k]
  ------------------
 1158|       |      /* nothing to poll for yet */
 1159|      0|      break;
 1160|       |
 1161|  6.51k|    case MSTATE_CONNECTING:
  ------------------
  |  Branch (1161:5): [True: 6.51k, False: 136k]
  ------------------
 1162|  6.51k|      result = mstate_connecting_pollset(data, ps);
 1163|  6.51k|      break;
 1164|       |
 1165|      0|    case MSTATE_PROTOCONNECT:
  ------------------
  |  Branch (1165:5): [True: 0, False: 143k]
  ------------------
 1166|      0|    case MSTATE_PROTOCONNECTING:
  ------------------
  |  Branch (1166:5): [True: 0, False: 143k]
  ------------------
 1167|      0|      result = mstate_protocol_pollset(data, ps);
 1168|      0|      break;
 1169|       |
 1170|      0|    case MSTATE_DO:
  ------------------
  |  Branch (1170:5): [True: 0, False: 143k]
  ------------------
 1171|      0|    case MSTATE_DOING:
  ------------------
  |  Branch (1171:5): [True: 0, False: 143k]
  ------------------
 1172|      0|      result = mstate_do_pollset(data, ps);
 1173|      0|      break;
 1174|       |
 1175|      0|    case MSTATE_DOING_MORE:
  ------------------
  |  Branch (1175:5): [True: 0, False: 143k]
  ------------------
 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: 143k]
  ------------------
 1180|   135k|    case MSTATE_PERFORMING:
  ------------------
  |  Branch (1180:5): [True: 135k, False: 8.16k]
  ------------------
 1181|   135k|      result = mstate_perform_pollset(data, ps);
 1182|   135k|      break;
 1183|       |
 1184|  1.65k|    case MSTATE_RATELIMITING:
  ------------------
  |  Branch (1184:5): [True: 1.65k, False: 141k]
  ------------------
 1185|       |      /* we need to let time pass, ignore socket(s) */
 1186|  1.65k|      break;
 1187|       |
 1188|      0|    case MSTATE_DONE:
  ------------------
  |  Branch (1188:5): [True: 0, False: 143k]
  ------------------
 1189|      0|    case MSTATE_COMPLETED:
  ------------------
  |  Branch (1189:5): [True: 0, False: 143k]
  ------------------
 1190|      0|    case MSTATE_MSGSENT:
  ------------------
  |  Branch (1190:5): [True: 0, False: 143k]
  ------------------
 1191|       |      /* nothing more to poll for */
 1192|      0|      break;
 1193|       |
 1194|      0|    default:
  ------------------
  |  Branch (1194:5): [True: 0, False: 143k]
  ------------------
 1195|      0|      failf(data, "multi_getsock: unexpected multi state %d",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1196|      0|            (int)data->mstate);
 1197|      0|      DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1197:7): [Folded, False: 0]
  |  Branch (1197:7): [Folded, False: 0]
  ------------------
 1198|      0|      break;
 1199|   143k|    }
 1200|   143k|  }
 1201|       |
 1202|   286k|  if(result) {
  ------------------
  |  Branch (1202:6): [True: 0, False: 286k]
  ------------------
 1203|      0|    if(result == CURLE_OUT_OF_MEMORY)
  ------------------
  |  Branch (1203:8): [True: 0, False: 0]
  ------------------
 1204|      0|      return CURLM_OUT_OF_MEMORY;
 1205|      0|    failf(data, "error determining pollset: %d", (int)result);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1206|      0|    return CURLM_INTERNAL_ERROR;
 1207|      0|  }
 1208|       |
 1209|   286k|#ifdef CURLVERBOSE
 1210|   286k|  if(CURL_TRC_M_is_verbose(data)) {
  ------------------
  |  |  135|   286k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  ------------------
  |  |  |  |  329|   286k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|   573k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 286k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 286k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|   573k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|   286k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1211|      0|    size_t timeout_count = multi_timeouts_count(&data->state.timeouts);
 1212|      0|    switch(ps->n) {
 1213|      0|    case 0:
  ------------------
  |  Branch (1213:5): [True: 0, False: 0]
  ------------------
 1214|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1215|      0|                 timeout_count,
 1216|      0|                 Curl_xfer_send_is_paused(data),
 1217|      0|                 Curl_xfer_recv_is_paused(data));
 1218|      0|      break;
 1219|      0|    case 1:
  ------------------
  |  Branch (1219:5): [True: 0, False: 0]
  ------------------
 1220|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330: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]
  |  |  ------------------
  ------------------
 1221|      0|                 ps->sockets[0],
 1222|      0|                 (ps->actions[0] & CURL_POLL_IN) ? "IN" : "",
 1223|      0|                 (ps->actions[0] & CURL_POLL_OUT) ? "OUT" : "",
 1224|      0|                 timeout_count);
 1225|      0|      break;
 1226|      0|    case 2:
  ------------------
  |  Branch (1226:5): [True: 0, False: 0]
  ------------------
 1227|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330: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]
  |  |  ------------------
  ------------------
 1228|      0|                 "fd=%" FMT_SOCKET_T " %s%s], timeouts=%zu",
 1229|      0|                 ps->sockets[0],
 1230|      0|                 (ps->actions[0] & CURL_POLL_IN) ? "IN" : "",
 1231|      0|                 (ps->actions[0] & CURL_POLL_OUT) ? "OUT" : "",
 1232|      0|                 ps->sockets[1],
 1233|      0|                 (ps->actions[1] & CURL_POLL_IN) ? "IN" : "",
 1234|      0|                 (ps->actions[1] & CURL_POLL_OUT) ? "OUT" : "",
 1235|      0|                 timeout_count);
 1236|      0|      break;
 1237|      0|    default:
  ------------------
  |  Branch (1237:5): [True: 0, False: 0]
  ------------------
 1238|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1239|      0|      break;
 1240|      0|    }
 1241|      0|    CURL_TRC_EASY_TIMERS(data);
  ------------------
  |  |  333|      0|  do {                                  \
  |  |  334|      0|    if(CURL_TRC_TIMER_is_verbose(data)) \
  |  |  ------------------
  |  |  |  |  139|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_timer)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  335|      0|      Curl_trc_easy_timers(data);       \
  |  |  336|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (336:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1242|      0|  }
 1243|   286k|#endif
 1244|       |
 1245|   286k|  return CURLM_OK;
 1246|   286k|}
curl_multi_fdset:
 1251|   143k|{
 1252|   143k|  struct Curl_mapi_guard guard;
 1253|   143k|  CURLMcode mresult;
 1254|       |
 1255|   143k|  if(CURL_MAPI_ENTER(&guard, m, multi_fdset, &mresult)) {
  ------------------
  |  |  188|   143k|  Curl_mapi_enter((g), (m), CURL_MAPI_FN_##fn, (r)) && (m)
  |  |  ------------------
  |  |  |  Branch (188:3): [True: 143k, False: 0]
  |  |  |  Branch (188:56): [True: 143k, False: 0]
  |  |  ------------------
  ------------------
 1256|       |    /* Scan through all the easy handles to get the file descriptors set.
 1257|       |       Some easy handles may not have connected to the remote host yet,
 1258|       |       and then we must make sure that is done. */
 1259|   143k|    struct Curl_multi *multi = m;
 1260|   143k|    struct easy_pollset ps;
 1261|   143k|    int this_max_fd = -1;
 1262|   143k|    unsigned int i;
 1263|   143k|    uint32_t mid;
 1264|   143k|    (void)exc_fd_set;
 1265|       |
 1266|   143k|    Curl_pollset_init(&ps);
 1267|   143k|    if(Curl_uint32_bset_first(&multi->process, &mid)) {
  ------------------
  |  Branch (1267:8): [True: 143k, False: 0]
  ------------------
 1268|   286k|      do {
 1269|   286k|        struct Curl_easy *data = Curl_multi_get_easy(multi, mid);
 1270|       |
 1271|   286k|        if(!data) {
  ------------------
  |  Branch (1271:12): [True: 0, False: 286k]
  ------------------
 1272|      0|          DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1272:11): [Folded, False: 0]
  |  Branch (1272:11): [Folded, False: 0]
  ------------------
 1273|      0|          continue;
 1274|      0|        }
 1275|       |
 1276|   286k|        Curl_multi_pollset(data, &ps);
 1277|   569k|        for(i = 0; i < ps.n; i++) {
  ------------------
  |  Branch (1277:20): [True: 282k, False: 286k]
  ------------------
 1278|   282k|          if(!FDSET_SOCK(ps.sockets[i]))
  ------------------
  |  |   99|   282k|#define FDSET_SOCK(s) ((s) < FD_SETSIZE)
  ------------------
  |  Branch (1278:14): [True: 0, False: 282k]
  ------------------
 1279|       |            /* pretend it does not exist */
 1280|      0|            continue;
 1281|   282k|          if(ps.actions[i] & CURL_POLL_IN)
  ------------------
  |  |  283|   282k|#define CURL_POLL_IN     1
  ------------------
  |  Branch (1281:14): [True: 274k, False: 7.66k]
  ------------------
 1282|   282k|            FD_SET(ps.sockets[i], read_fd_set);
 1283|   282k|          if(ps.actions[i] & CURL_POLL_OUT)
  ------------------
  |  |  284|   282k|#define CURL_POLL_OUT    2
  ------------------
  |  Branch (1283:14): [True: 9.81k, False: 272k]
  ------------------
 1284|   282k|            FD_SET(ps.sockets[i], write_fd_set);
 1285|   282k|          if((int)ps.sockets[i] > this_max_fd)
  ------------------
  |  Branch (1285:14): [True: 282k, False: 0]
  ------------------
 1286|   282k|            this_max_fd = (int)ps.sockets[i];
 1287|   282k|        }
 1288|   286k|      } while(Curl_uint32_bset_next(&multi->process, mid, &mid));
  ------------------
  |  Branch (1288:15): [True: 143k, False: 143k]
  ------------------
 1289|   143k|    }
 1290|       |
 1291|   143k|    Curl_cshutdn_setfds(&multi->cshutdn, multi->admin,
 1292|   143k|                        read_fd_set, write_fd_set, &this_max_fd);
 1293|       |
 1294|   143k|    *max_fd = this_max_fd;
 1295|   143k|    Curl_pollset_cleanup(&ps);
 1296|       |
 1297|   143k|    mresult = CURLM_OK;
 1298|   143k|  }
 1299|   143k|  CURL_MAPI_LEAVE(&guard);
  ------------------
  |  |  190|   143k|  Curl_mapi_leave(g)
  ------------------
 1300|   143k|  return mresult;
 1301|   143k|}
Curl_multi_connchanged:
 1753|  19.7k|{
 1754|       |  multi->recheckstate = TRUE;
  ------------------
  |  | 1053|  19.7k|#define TRUE true
  ------------------
 1755|  19.7k|}
curl_multi_perform:
 2955|   153k|{
 2956|   153k|  struct Curl_mapi_guard guard;
 2957|   153k|  CURLMcode mresult;
 2958|       |
 2959|   153k|  if(CURL_MAPI_ENTER(&guard, m, multi_perform, &mresult)) {
  ------------------
  |  |  188|   153k|  Curl_mapi_enter((g), (m), CURL_MAPI_FN_##fn, (r)) && (m)
  |  |  ------------------
  |  |  |  Branch (188:3): [True: 153k, False: 0]
  |  |  |  Branch (188:56): [True: 153k, False: 0]
  |  |  ------------------
  ------------------
 2960|   153k|    mresult = multi_perform(m, running_handles);
 2961|   153k|  }
 2962|   153k|  CURL_MAPI_LEAVE(&guard);
  ------------------
  |  |  190|   153k|  Curl_mapi_leave(g)
  ------------------
 2963|   153k|  return mresult;
 2964|   153k|}
curl_multi_cleanup:
 2967|  9.97k|{
 2968|  9.97k|  struct Curl_mapi_guard guard;
 2969|  9.97k|  CURLMcode mresult;
 2970|       |
 2971|  9.97k|  if(CURL_MAPI_ENTER(&guard, m, multi_cleanup, &mresult)) {
  ------------------
  |  |  188|  9.97k|  Curl_mapi_enter((g), (m), CURL_MAPI_FN_##fn, (r)) && (m)
  |  |  ------------------
  |  |  |  Branch (188:3): [True: 9.97k, False: 0]
  |  |  |  Branch (188:56): [True: 9.97k, False: 0]
  |  |  ------------------
  ------------------
 2972|  9.97k|    struct Curl_multi *multi = m;
 2973|  9.97k|    void *entry;
 2974|  9.97k|    uint32_t mid;
 2975|       |
 2976|       |    /* First remove all remaining easy handles,
 2977|       |     * close internal ones. admin handle is special */
 2978|  9.97k|    if(Curl_uint32_tbl_first(&multi->xfers, &mid, &entry)) {
  ------------------
  |  Branch (2978:8): [True: 9.97k, False: 0]
  ------------------
 2979|  9.97k|      do {
 2980|  9.97k|        struct Curl_easy *data = entry;
 2981|  9.97k|        if(!GOOD_EASY_HANDLE(data)) {
  ------------------
  |  |   34|  9.97k|  (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  |   28|  9.97k|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  |  |  ------------------
  |  |                 (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1053|  9.97k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (34:5): [True: 9.97k, False: 0]
  |  |  |  Branch (34:12): [True: 9.97k, False: 0]
  |  |  ------------------
  |  |   35|  9.97k|   (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (2981:12): [True: 0, False: 9.97k]
  |  Branch (2981:13): [True: 0, False: 0]
  |  Branch (2981:13): [True: 0, False: 0]
  ------------------
 2982|      0|          mresult = CURLM_BAD_HANDLE;
 2983|      0|          goto out;
 2984|      0|        }
 2985|       |
 2986|  9.97k|#ifdef DEBUGBUILD
 2987|  9.97k|        if(mid != data->mid) {
  ------------------
  |  Branch (2987:12): [True: 0, False: 9.97k]
  ------------------
 2988|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2989|      0|                     "but unexpected data->mid=%u\n", mid, data->mid);
 2990|      0|          DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2990:11): [Folded, False: 0]
  |  Branch (2990:11): [Folded, False: 0]
  ------------------
 2991|      0|        }
 2992|  9.97k|#endif
 2993|       |
 2994|  9.97k|        if(data == multi->admin)
  ------------------
  |  Branch (2994:12): [True: 9.97k, False: 0]
  ------------------
 2995|  9.97k|          continue;
 2996|       |
 2997|      0|        if(!data->state.done && data->conn)
  ------------------
  |  Branch (2997:12): [True: 0, False: 0]
  |  Branch (2997:33): [True: 0, False: 0]
  ------------------
 2998|       |          /* if DONE was never called for this handle */
 2999|      0|          (void)multi_done(data, CURLE_OK, TRUE);
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 3000|       |
 3001|      0|        data->multi = NULL; /* clear the association */
 3002|      0|        Curl_uint32_tbl_remove(&multi->xfers, mid);
 3003|      0|        data->mid = UINT32_MAX;
 3004|       |
 3005|       |#ifdef USE_LIBPSL
 3006|       |        if(data->psl == &multi->psl)
 3007|       |          data->psl = NULL;
 3008|       |#endif
 3009|      0|        if(data->state.internal)
  ------------------
  |  Branch (3009:12): [True: 0, False: 0]
  ------------------
 3010|      0|          Curl_close(&data);
 3011|  9.97k|      } while(Curl_uint32_tbl_next(&multi->xfers, mid, &mid, &entry));
  ------------------
  |  Branch (3011:15): [True: 0, False: 9.97k]
  ------------------
 3012|  9.97k|    }
 3013|       |
 3014|  9.97k|#ifdef USE_RESOLV_THREADED
 3015|  9.97k|    Curl_async_thrdd_multi_destroy(multi, !multi->quick_exit);
 3016|  9.97k|#endif
 3017|  9.97k|    Curl_cpool_destroy(&multi->cpool);
 3018|  9.97k|    Curl_cshutdn_destroy(&multi->cshutdn, multi->admin);
 3019|  9.97k|    if(multi->admin) {
  ------------------
  |  Branch (3019:8): [True: 9.97k, False: 0]
  ------------------
 3020|  9.97k|      CURL_TRC_M(multi->admin, "multi_cleanup, closing admin handle, done");
  ------------------
  |  |  148|  9.97k|  do {                                   \
  |  |  149|  9.97k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  9.97k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  9.97k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  19.9k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 9.97k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 9.97k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  19.9k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  9.97k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  9.97k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  9.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 9.97k]
  |  |  ------------------
  ------------------
 3021|  9.97k|      multi->admin->multi = NULL;
 3022|  9.97k|      Curl_uint32_tbl_remove(&multi->xfers, multi->admin->mid);
 3023|  9.97k|      Curl_close(&multi->admin);
 3024|  9.97k|    }
 3025|       |
 3026|  9.97k|    multi->magic = 0; /* not good anymore */
 3027|       |
 3028|  9.97k|    Curl_multi_ev_cleanup(multi);
 3029|  9.97k|    Curl_hash_destroy(&multi->proto_hash);
 3030|  9.97k|    Curl_dnscache_destroy(&multi->dnscache);
 3031|  9.97k|    Curl_psl_destroy(&multi->psl);
 3032|  9.97k|#ifdef USE_SSL
 3033|  9.97k|    Curl_ssl_scache_destroy(multi->ssl_scache);
 3034|  9.97k|#endif
 3035|       |
 3036|       |#ifdef USE_WINSOCK
 3037|       |    WSACloseEvent(multi->wsa_event);
 3038|       |#endif
 3039|  9.97k|#ifdef ENABLE_WAKEUP
 3040|  9.97k|  Curl_wakeup_destroy(multi->wakeup_pair);
 3041|  9.97k|#endif
 3042|  9.97k|#ifdef ENABLE_INTERNAL_WAKEUP
 3043|  9.97k|  Curl_wakeup_destroy(multi->wakeup_internal);
 3044|  9.97k|#endif
 3045|       |
 3046|  9.97k|    multi_xfer_bufs_free(multi);
 3047|  9.97k|    Curl_mntfy_cleanup(multi);
 3048|  9.97k|#ifdef DEBUGBUILD
 3049|  9.97k|    if(Curl_uint32_tbl_count(&multi->xfers)) {
  ------------------
  |  Branch (3049:8): [True: 0, False: 9.97k]
  ------------------
 3050|      0|      multi_xfer_tbl_dump(multi);
 3051|      0|      DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3051:7): [Folded, False: 0]
  |  Branch (3051:7): [Folded, False: 0]
  ------------------
 3052|      0|    }
 3053|  9.97k|#endif
 3054|  9.97k|    Curl_uint32_bset_destroy(&multi->process);
 3055|  9.97k|    Curl_uint32_bset_destroy(&multi->dirty);
 3056|  9.97k|    Curl_uint32_bset_destroy(&multi->pending);
 3057|  9.97k|    Curl_uint32_bset_destroy(&multi->msgsent);
 3058|  9.97k|    Curl_uint32_tbl_destroy(&multi->xfers);
 3059|  9.97k|    curlx_memzero(multi, sizeof(*multi));
 3060|  9.97k|    curlx_free(multi);
  ------------------
  |  | 1482|  9.97k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 3061|       |
 3062|  9.97k|    mresult = CURLM_OK;
 3063|  9.97k|  }
 3064|  9.97k|out:
 3065|  9.97k|  CURL_MAPI_LEAVE(&guard);
  ------------------
  |  |  190|  9.97k|  Curl_mapi_leave(g)
  ------------------
 3066|  9.97k|  return mresult;
 3067|  9.97k|}
Curl_multi_will_close:
 3110|  9.33k|{
 3111|  9.33k|  if(data) {
  ------------------
  |  Branch (3111:6): [True: 9.33k, False: 0]
  ------------------
 3112|  9.33k|    struct Curl_multi *multi = data->multi;
 3113|  9.33k|    if(multi) {
  ------------------
  |  Branch (3113:8): [True: 9.33k, False: 0]
  ------------------
 3114|  9.33k|      CURL_TRC_M(data, "Curl_multi_will_close fd=%" FMT_SOCKET_T, s);
  ------------------
  |  |  148|  9.33k|  do {                                   \
  |  |  149|  9.33k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  9.33k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  9.33k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  18.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 9.33k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 9.33k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  18.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  9.33k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  9.33k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  9.33k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 9.33k]
  |  |  ------------------
  ------------------
 3115|  9.33k|      Curl_multi_ev_socket_done(multi, data, s);
 3116|  9.33k|    }
 3117|  9.33k|  }
 3118|  9.33k|}
Curl_update_timer:
 3587|   173k|{
 3588|   173k|  struct curltime expire_ts = { 0, 0 };
 3589|   173k|  int timeout_ms;
 3590|   173k|  int rc;
 3591|   173k|  bool set_value = FALSE;
  ------------------
  |  | 1056|   173k|#define FALSE false
  ------------------
 3592|       |
 3593|   173k|  if(!multi->timer_cb || multi->dead)
  ------------------
  |  Branch (3593:6): [True: 173k, False: 0]
  |  Branch (3593:26): [True: 0, False: 0]
  ------------------
 3594|   173k|    return CURLM_OK;
 3595|      0|  multi_timeout(multi, &expire_ts, &timeout_ms);
 3596|       |
 3597|      0|  if(timeout_ms < 0 && multi->last_timeout_ms < 0) {
  ------------------
  |  Branch (3597:6): [True: 0, False: 0]
  |  Branch (3597:24): [True: 0, False: 0]
  ------------------
 3598|       |    /* nothing to do */
 3599|      0|  }
 3600|      0|  else if(timeout_ms < 0) {
  ------------------
  |  Branch (3600:11): [True: 0, False: 0]
  ------------------
 3601|       |    /* there is no timeout now but there was one previously */
 3602|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3603|      0|    timeout_ms = -1; /* normalize */
 3604|      0|    set_value = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 3605|      0|  }
 3606|      0|  else if(multi->last_timeout_ms < 0) {
  ------------------
  |  Branch (3606:11): [True: 0, False: 0]
  ------------------
 3607|      0|    CURL_TRC_M(multi->admin, "[TIMER] set %dms, 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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3608|      0|    set_value = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 3609|      0|  }
 3610|      0|  else if(curlx_ptimediff_us(&multi->last_expire_ts, &expire_ts)) {
  ------------------
  |  Branch (3610:11): [True: 0, False: 0]
  ------------------
 3611|       |    /* We had a timeout before and have one now, the absolute timestamp
 3612|       |     * differs. The relative timeout_ms may be the same, but the starting
 3613|       |     * point differs. Let the application restart its timer. */
 3614|      0|    CURL_TRC_M(multi->admin, "[TIMER] set %dms, 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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3615|      0|               timeout_ms);
 3616|      0|    set_value = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 3617|      0|  }
 3618|      0|  else {
 3619|       |    /* We have same expire time as previously. Our relative 'timeout_ms'
 3620|       |     * may be different now, but the application has the timer running
 3621|       |     * and we do not to tell it to start this again. */
 3622|      0|  }
 3623|       |
 3624|      0|  if(set_value) {
  ------------------
  |  Branch (3624:6): [True: 0, False: 0]
  ------------------
 3625|      0|    struct Curl_mapi_guard guard;
 3626|       |
 3627|      0|    multi->last_expire_ts = expire_ts;
 3628|      0|    multi->last_timeout_ms = timeout_ms;
 3629|      0|    CURL_CBAPI_MULTI_START(&guard, multi, multi_timer_cb);
  ------------------
  |  |  202|      0|  Curl_cbapi_enter((g), NULL, (m), CURL_CBAPI_FN_##fn)
  ------------------
 3630|      0|    rc = multi->timer_cb(multi, timeout_ms, multi->timer_userp);
 3631|      0|    CURL_CBAPI_MULTI_END(&guard);
  ------------------
  |  |  206|      0|  Curl_cbapi_leave(g)
  ------------------
 3632|      0|    if(rc == -1) {
  ------------------
  |  Branch (3632:8): [True: 0, False: 0]
  ------------------
 3633|      0|      multi->dead = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 3634|      0|      return CURLM_ABORTED_BY_CALLBACK;
 3635|      0|    }
 3636|      0|  }
 3637|      0|  return CURLM_OK;
 3638|      0|}
Curl_expire_ex:
 3749|   321k|{
 3750|   321k|  struct Curl_multi *multi = data->multi;
 3751|   321k|  struct expire_timers *timeouts = &data->state.timeouts;
 3752|   321k|  expire_id prev_id = timeouts->first;
 3753|   321k|  struct curltime set;
 3754|       |
 3755|       |  /* this is only interesting while there is still an associated multi struct
 3756|       |     remaining! */
 3757|   321k|  if(!multi)
  ------------------
  |  Branch (3757:6): [True: 0, False: 321k]
  ------------------
 3758|      0|    return;
 3759|   321k|  DEBUGASSERT(eid < EXPIRE_LAST);
  ------------------
  |  | 1083|   321k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3759:3): [True: 0, False: 321k]
  |  Branch (3759:3): [True: 321k, False: 0]
  ------------------
 3760|       |
 3761|   321k|  set = *Curl_pgrs_now(data);
 3762|   321k|  set.tv_sec += (time_t)(milli / 1000); /* may be a 64 to 32-bit conversion */
 3763|   321k|  set.tv_usec += (int)(milli % 1000) * 1000;
 3764|       |
 3765|   321k|  if(set.tv_usec >= 1000000) {
  ------------------
  |  Branch (3765:6): [True: 149k, False: 171k]
  ------------------
 3766|   149k|    set.tv_sec++;
 3767|   149k|    set.tv_usec -= 1000000;
 3768|   149k|  }
 3769|       |
 3770|       |  /* Add the timeout, will replace any previous value for this timer. */
 3771|   321k|  multi_addtimeout(data, &set, eid);
 3772|   321k|  DEBUGASSERT(timeouts->first < EXPIRE_LAST);
  ------------------
  |  | 1083|   321k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3772:3): [True: 0, False: 321k]
  |  Branch (3772:3): [True: 321k, False: 0]
  ------------------
 3773|       |
 3774|   321k|  if(timeouts->registered) {
  ------------------
  |  Branch (3774:6): [True: 309k, False: 11.8k]
  ------------------
 3775|   309k|    int rc;
 3776|       |    /* timeouts->splaynode is in splay tree already. If the first timer
 3777|       |     * was NOT the one we just set AND is still the first one,
 3778|       |     * nothing changed from the splay tree's point of view. The
 3779|       |     * set timer triggers after the one already in the tree. Leave. */
 3780|   309k|    if((prev_id != eid) && (prev_id == timeouts->first))
  ------------------
  |  Branch (3780:8): [True: 212k, False: 96.3k]
  |  Branch (3780:28): [True: 202k, False: 10.0k]
  ------------------
 3781|   202k|      return;
 3782|       |
 3783|       |    /* Since this is an updated time, we must remove the previous entry from
 3784|       |       the splay tree first and then re-add the new value */
 3785|   106k|    rc = Curl_splayremove(multi->timetree, &timeouts->splaynode,
 3786|   106k|                          &multi->timetree);
 3787|   106k|    if(rc)
  ------------------
  |  Branch (3787:8): [True: 0, False: 106k]
  ------------------
 3788|      0|      infof(data, "Internal error removing splay node = %d", rc);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3789|   106k|  }
 3790|       |
 3791|       |  /* Indicate that we are in the splay tree and insert the new timer expiry
 3792|       |     value since it is our local minimum. */
 3793|   118k|  Curl_splayset(&timeouts->splaynode, data);
 3794|   118k|  multi->timetree = Curl_splayinsert(&timeouts->time[timeouts->first],
 3795|   118k|                                     multi->timetree, &timeouts->splaynode);
 3796|       |  timeouts->registered = TRUE;
  ------------------
  |  | 1053|   118k|#define TRUE true
  ------------------
 3797|   118k|}
Curl_expire:
 3811|   321k|{
 3812|   321k|  Curl_expire_ex(data, milli, id);
 3813|   321k|}
Curl_expire_done:
 3822|  9.55k|{
 3823|       |  /* remove the timer, if there */
 3824|  9.55k|  multi_deltimeout(data, id);
 3825|  9.55k|  CURL_TRC_TIMER(data, id, "cleared");
  ------------------
  |  |  173|  9.55k|  do {                                        \
  |  |  174|  9.55k|    if(CURL_TRC_TIMER_is_verbose(data))       \
  |  |  ------------------
  |  |  |  |  139|  9.55k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_timer)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  9.55k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  19.1k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 9.55k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 9.55k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  19.1k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  9.55k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  175|  9.55k|      Curl_trc_timer(data, tid, __VA_ARGS__); \
  |  |  176|  9.55k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (176:11): [Folded, False: 9.55k]
  |  |  ------------------
  ------------------
 3826|  9.55k|}
Curl_expire_clear:
 3834|  39.8k|{
 3835|  39.8k|  struct Curl_multi *multi = data->multi;
 3836|  39.8k|  struct expire_timers *timeouts = &data->state.timeouts;
 3837|       |
 3838|       |  /* this is only interesting while there is still an associated multi struct
 3839|       |     remaining! */
 3840|  39.8k|  if(!multi)
  ------------------
  |  Branch (3840:6): [True: 19.9k, False: 19.9k]
  ------------------
 3841|  19.9k|    return;
 3842|       |
 3843|  19.9k|  if(timeouts->registered) {
  ------------------
  |  Branch (3843:6): [True: 9.97k, False: 9.96k]
  ------------------
 3844|       |    /* Since this is an cleared time, we must remove the previous entry from
 3845|       |       the splay tree */
 3846|  9.97k|    int rc;
 3847|       |
 3848|  9.97k|    rc = Curl_splayremove(multi->timetree, &timeouts->splaynode,
 3849|  9.97k|                          &multi->timetree);
 3850|  9.97k|    if(rc)
  ------------------
  |  Branch (3850:8): [True: 0, False: 9.97k]
  ------------------
 3851|      0|      infof(data, "Internal error clearing splay node = %d", rc);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3852|       |
 3853|       |    /* clear the timeouts */
 3854|  9.97k|    multi_timeouts_init(data);
 3855|       |
 3856|  9.97k|    if(data->id >= 0)
  ------------------
  |  Branch (3856:8): [True: 9.97k, False: 0]
  ------------------
 3857|  9.97k|      CURL_TRC_M(data, "[TIMEOUT] all cleared");
  ------------------
  |  |  148|  9.97k|  do {                                   \
  |  |  149|  9.97k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  9.97k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  9.97k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  19.9k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 9.97k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 9.97k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  19.9k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  9.97k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  9.97k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  9.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 9.97k]
  |  |  ------------------
  ------------------
 3858|  9.97k|  }
 3859|  19.9k|}
Curl_multi_max_concurrent_streams:
 3937|  9.15k|{
 3938|  9.15k|  DEBUGASSERT(multi);
  ------------------
  |  | 1083|  9.15k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3938:3): [True: 0, False: 9.15k]
  |  Branch (3938:3): [True: 9.15k, False: 0]
  ------------------
 3939|  9.15k|  return multi->max_concurrent_streams;
 3940|  9.15k|}
Curl_multi_xfer_buf_borrow:
 4023|   140k|{
 4024|   140k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|   140k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4024:3): [True: 0, False: 140k]
  |  Branch (4024:3): [True: 140k, False: 0]
  ------------------
 4025|   140k|  DEBUGASSERT(data->multi);
  ------------------
  |  | 1083|   140k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4025:3): [True: 0, False: 140k]
  |  Branch (4025:3): [True: 140k, False: 0]
  ------------------
 4026|   140k|  *pbuf = NULL;
 4027|   140k|  *pbuflen = 0;
 4028|   140k|  if(!data->multi) {
  ------------------
  |  Branch (4028:6): [True: 0, False: 140k]
  ------------------
 4029|      0|    failf(data, "transfer has no multi handle");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 4030|      0|    return CURLE_FAILED_INIT;
 4031|      0|  }
 4032|   140k|  if(!data->set.buffer_size) {
  ------------------
  |  Branch (4032:6): [True: 0, False: 140k]
  ------------------
 4033|      0|    failf(data, "transfer buffer size is 0");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 4034|      0|    return CURLE_FAILED_INIT;
 4035|      0|  }
 4036|   140k|  if(data->multi->xfer_buf_borrowed) {
  ------------------
  |  Branch (4036:6): [True: 0, False: 140k]
  ------------------
 4037|      0|    failf(data, "attempt to borrow xfer_buf when already borrowed");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 4038|      0|    return CURLE_AGAIN;
 4039|      0|  }
 4040|       |
 4041|   140k|  if(data->multi->xfer_buf &&
  ------------------
  |  Branch (4041:6): [True: 131k, False: 8.94k]
  ------------------
 4042|   131k|     data->set.buffer_size > data->multi->xfer_buf_len) {
  ------------------
  |  Branch (4042:6): [True: 0, False: 131k]
  ------------------
 4043|       |    /* not large enough, get a new one */
 4044|      0|    curlx_safefree(data->multi->xfer_buf);
  ------------------
  |  | 1340|      0|  do {                      \
  |  | 1341|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|      0|    (ptr) = NULL;           \
  |  | 1343|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 4045|      0|    data->multi->xfer_buf_len = 0;
 4046|      0|  }
 4047|       |
 4048|   140k|  if(!data->multi->xfer_buf) {
  ------------------
  |  Branch (4048:6): [True: 8.94k, False: 131k]
  ------------------
 4049|  8.94k|    data->multi->xfer_buf = curlx_malloc(curlx_uitouz(data->set.buffer_size));
  ------------------
  |  | 1477|  8.94k|#define curlx_malloc(size)         curl_dbg_malloc(size, __LINE__, __FILE__)
  ------------------
 4050|  8.94k|    if(!data->multi->xfer_buf) {
  ------------------
  |  Branch (4050:8): [True: 0, False: 8.94k]
  ------------------
 4051|      0|      failf(data, "could not allocate xfer_buf of %u bytes",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 4052|      0|            data->set.buffer_size);
 4053|      0|      return CURLE_OUT_OF_MEMORY;
 4054|      0|    }
 4055|  8.94k|    data->multi->xfer_buf_len = data->set.buffer_size;
 4056|  8.94k|  }
 4057|       |
 4058|   140k|  data->multi->xfer_buf_borrowed = TRUE;
  ------------------
  |  | 1053|   140k|#define TRUE true
  ------------------
 4059|   140k|  *pbuf = data->multi->xfer_buf;
 4060|   140k|  *pbuflen = data->multi->xfer_buf_len;
 4061|   140k|  return CURLE_OK;
 4062|   140k|}
Curl_multi_xfer_buf_release:
 4065|   140k|{
 4066|   140k|  (void)buf;
 4067|   140k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|   140k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4067:3): [True: 0, False: 140k]
  |  Branch (4067:3): [True: 140k, False: 0]
  ------------------
 4068|   140k|  DEBUGASSERT(data->multi);
  ------------------
  |  | 1083|   140k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4068:3): [True: 0, False: 140k]
  |  Branch (4068:3): [True: 140k, False: 0]
  ------------------
 4069|   140k|  DEBUGASSERT(!buf || data->multi->xfer_buf == buf);
  ------------------
  |  | 1083|   140k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4069:3): [True: 140k, False: 0]
  |  Branch (4069:3): [True: 0, False: 0]
  |  Branch (4069:3): [True: 0, False: 140k]
  |  Branch (4069:3): [True: 140k, False: 0]
  ------------------
 4070|   140k|  data->multi->xfer_buf_borrowed = FALSE;
  ------------------
  |  | 1056|   140k|#define FALSE false
  ------------------
 4071|   140k|}
Curl_multi_get_easy:
 4192|   593k|{
 4193|   593k|  struct Curl_easy *data = Curl_uint32_tbl_get(&multi->xfers, mid);
 4194|   593k|  if(GOOD_EASY_HANDLE(data))
  ------------------
  |  |   34|   593k|  (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  |   28|   593k|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  |  |  ------------------
  |  |                 (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1053|   593k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (34:3): [True: 593k, False: 0]
  |  |  |  Branch (34:5): [True: 593k, False: 0]
  |  |  |  Branch (34:12): [True: 593k, False: 0]
  |  |  ------------------
  |  |   35|   593k|   (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (4194:6): [True: 0, False: 0]
  |  Branch (4194:6): [True: 0, False: 0]
  ------------------
 4195|   593k|    return data;
 4196|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 4197|      0|             mid);
 4198|      0|  Curl_uint32_tbl_remove(&multi->xfers, mid);
 4199|       |  return NULL;
 4200|   593k|}
Curl_multi_knows_easy:
 4203|  13.5k|{
 4204|  13.5k|  return Curl_uint32_tbl_get(&multi->xfers, data->mid) == data;
 4205|  13.5k|}
Curl_multi_xfers_running:
 4208|   159k|{
 4209|   159k|  DEBUGASSERT(multi);
  ------------------
  |  | 1083|   159k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4209:3): [True: 0, False: 159k]
  |  Branch (4209:3): [True: 159k, False: 0]
  ------------------
 4210|   159k|  if(!multi)
  ------------------
  |  Branch (4210:6): [True: 0, False: 159k]
  ------------------
 4211|      0|    return 0;
 4212|   159k|  return multi->xfers_alive;
 4213|   159k|}
Curl_multi_mark_dirty:
 4216|  11.9k|{
 4217|  11.9k|  if(data->multi && data->mid != UINT32_MAX)
  ------------------
  |  Branch (4217:6): [True: 11.9k, False: 0]
  |  Branch (4217:21): [True: 11.9k, False: 0]
  ------------------
 4218|  11.9k|    Curl_uint32_bset_add(&data->multi->dirty, data->mid);
 4219|  11.9k|}
Curl_multi_clear_dirty:
 4222|  1.65k|{
 4223|  1.65k|  if(data->multi && data->mid != UINT32_MAX)
  ------------------
  |  Branch (4223:6): [True: 1.65k, False: 0]
  |  Branch (4223:21): [True: 1.65k, False: 0]
  ------------------
 4224|  1.65k|    Curl_uint32_bset_remove(&data->multi->dirty, data->mid);
 4225|  1.65k|}
multi.c:multi_xfers_add:
  406|  9.97k|{
  407|  9.97k|  uint32_t capacity = Curl_uint32_tbl_capacity(&multi->xfers);
  408|  9.97k|  uint32_t new_size = 0;
  409|       |  /* Prepare to make this into a CURLMOPT_MAX_TRANSFERS, because some
  410|       |   * applications may want to prevent a run-away of their memory use. */
  411|       |  /* UINT_MAX is our "invalid" id, do not let the table grow up to that. */
  412|  9.97k|  const uint32_t max_capacity = UINT_MAX - 1;
  413|       |
  414|  9.97k|  if(capacity < max_capacity) {
  ------------------
  |  Branch (414:6): [True: 9.97k, False: 0]
  ------------------
  415|       |    /* We want `multi->xfers` to have "sufficient" free rows, so that we do
  416|       |     * not have to reuse the `mid` from a removed easy right away.
  417|       |     * Since uint_tbl and uint_bset are memory efficient,
  418|       |     * regard less than 25% free as insufficient.
  419|       |     * (for low capacities, e.g. multi_easy, 4 or less). */
  420|  9.97k|    uint32_t used = Curl_uint32_tbl_count(&multi->xfers);
  421|  9.97k|    uint32_t unused = capacity - used;
  422|  9.97k|    uint32_t min_unused = CURLMAX(capacity >> 2, 4);
  ------------------
  |  | 1295|  9.97k|#define CURLMAX(x, y) ((x) > (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1295:24): [True: 9.97k, False: 0]
  |  |  ------------------
  ------------------
  423|  9.97k|    if(unused <= min_unused) {
  ------------------
  |  Branch (423:8): [True: 0, False: 9.97k]
  ------------------
  424|       |      /* Make sure the uint arithmetic here works on the corner
  425|       |       * cases where we are close to max_capacity or UINT_MAX */
  426|      0|      if((min_unused >= max_capacity) ||
  ------------------
  |  Branch (426:10): [True: 0, False: 0]
  ------------------
  427|      0|         ((max_capacity - min_unused) <= capacity) ||
  ------------------
  |  Branch (427:10): [True: 0, False: 0]
  ------------------
  428|      0|         ((UINT_MAX - min_unused - 63) <= capacity)) {
  ------------------
  |  Branch (428:10): [True: 0, False: 0]
  ------------------
  429|      0|        new_size = max_capacity; /* can not be larger than this */
  430|      0|      }
  431|      0|      else {
  432|       |        /* make it a 64 multiple, since our bitsets grow by that and
  433|       |         * small (easy_multi) grows to at least 64 on first resize. */
  434|      0|        new_size = (((used + min_unused) + 63) / 64) * 64;
  435|      0|        if(new_size < 256) /* don't be too shy about it */
  ------------------
  |  Branch (435:12): [True: 0, False: 0]
  ------------------
  436|      0|          new_size = 256;
  437|      0|      }
  438|      0|    }
  439|  9.97k|  }
  440|       |
  441|  9.97k|  if(new_size > capacity) {
  ------------------
  |  Branch (441:6): [True: 0, False: 9.97k]
  ------------------
  442|       |    /* Grow the bitsets first. Should one fail, we do not need
  443|       |     * to downsize the already resized ones. The sets continue
  444|       |     * to work properly when larger than the table, but not
  445|       |     * the other way around. */
  446|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  447|      0|    if(Curl_uint32_bset_resize(&multi->process, new_size) ||
  ------------------
  |  Branch (447:8): [True: 0, False: 0]
  ------------------
  448|      0|       Curl_uint32_bset_resize(&multi->dirty, new_size) ||
  ------------------
  |  Branch (448:8): [True: 0, False: 0]
  ------------------
  449|      0|       Curl_uint32_bset_resize(&multi->pending, new_size) ||
  ------------------
  |  Branch (449:8): [True: 0, False: 0]
  ------------------
  450|      0|       Curl_uint32_bset_resize(&multi->msgsent, new_size) ||
  ------------------
  |  Branch (450:8): [True: 0, False: 0]
  ------------------
  451|      0|       Curl_uint32_tbl_resize(&multi->xfers, new_size))
  ------------------
  |  Branch (451:8): [True: 0, False: 0]
  ------------------
  452|      0|      return CURLM_OUT_OF_MEMORY;
  453|      0|  }
  454|       |
  455|       |  /* Insert the easy into the table now */
  456|  9.97k|  if(!Curl_uint32_tbl_add(&multi->xfers, data, &data->mid)) {
  ------------------
  |  Branch (456:6): [True: 0, False: 9.97k]
  ------------------
  457|       |    /* MUST only happen when table is full */
  458|      0|    DEBUGASSERT(Curl_uint32_tbl_capacity(&multi->xfers) <=
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (458:5): [True: 0, False: 0]
  |  Branch (458:5): [True: 0, False: 0]
  ------------------
  459|      0|                Curl_uint32_tbl_count(&multi->xfers));
  460|      0|    return CURLM_OUT_OF_MEMORY;
  461|      0|  }
  462|  9.97k|  return CURLM_OK;
  463|  9.97k|}
multi.c:mstate:
  155|   128k|{
  156|   128k|  CURLMstate oldstate = data->mstate;
  157|   128k|  static const mstate_enter_func state_enter[MSTATE_LAST] = {
  158|   128k|    NULL,                      /* INIT */
  159|   128k|    NULL,                      /* PENDING */
  160|   128k|    NULL,                      /* SETUP */
  161|   128k|    mstate_enter_connect,      /* CONNECT */
  162|   128k|    NULL,                      /* CONNECTING */
  163|   128k|    NULL,                      /* PROTOCONNECT */
  164|   128k|    NULL,                      /* PROTOCONNECTING */
  165|   128k|    NULL,                      /* DO */
  166|   128k|    NULL,                      /* DOING */
  167|   128k|    NULL,                      /* DOING_MORE */
  168|   128k|    mstate_enter_did,          /* DID */
  169|   128k|    NULL,                      /* PERFORMING */
  170|   128k|    NULL,                      /* RATELIMITING */
  171|   128k|    mstate_enter_done,         /* DONE */
  172|   128k|    mstate_enter_completed,    /* COMPLETED */
  173|       |    NULL                       /* MSGSENT */
  174|   128k|  };
  175|       |
  176|   128k|  if(oldstate == state)
  ------------------
  |  Branch (176:6): [True: 9.97k, False: 118k]
  ------------------
  177|       |    /* do not bother when the new state is the same as the old state */
  178|  9.97k|    return;
  179|       |
  180|   118k|#ifdef DEBUGBUILD
  181|   118k|  NOVERBOSE((void)lineno);
  ------------------
  |  | 1618|   118k|#define NOVERBOSE(x) Curl_nop_stmt
  |  |  ------------------
  |  |  |  | 1191|   118k|#define Curl_nop_stmt do {} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1191:35): [Folded, False: 118k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  182|   118k|  CURL_TRC_M(data, "-> [%s] (line %d)", CURL_MSTATE_NAME(state), lineno);
  ------------------
  |  |  148|   118k|  do {                                   \
  |  |  149|   118k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|   118k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|   118k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|   237k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 118k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 118k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|   237k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|   118k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|   118k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|   118k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 118k]
  |  |  ------------------
  ------------------
  183|       |#else
  184|       |  CURL_TRC_M(data, "-> [%s]", CURL_MSTATE_NAME(state));
  185|       |#endif
  186|       |
  187|       |  /* really switching state */
  188|   118k|  data->mstate = state;
  189|   118k|  if(state_enter[state])
  ------------------
  |  Branch (189:6): [True: 40.1k, False: 78.4k]
  ------------------
  190|  40.1k|    state_enter[state](data, oldstate);
  191|   118k|}
multi.c:mstate_enter_connect:
   99|  14.9k|{
  100|  14.9k|  (void)from_state;
  101|  14.9k|  Curl_init_CONNECT(data);
  102|  14.9k|}
multi.c:mstate_enter_did:
  106|  13.0k|{
  107|  13.0k|  (void)from_state;
  108|  13.0k|  data->req.chunk = FALSE;
  ------------------
  |  | 1056|  13.0k|#define FALSE false
  ------------------
  109|  13.0k|  Curl_pgrsTime(data, TIMER_PRETRANSFER);
  110|  13.0k|  if(!CURL_REQ_WANT_SEND(data))
  ------------------
  |  |   39|  13.0k|#define CURL_REQ_WANT_SEND(d)  ((d)->req.io_flags & REQ_IO_SEND)
  |  |  ------------------
  |  |  |  |   36|  13.0k|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  ------------------
  |  Branch (110:6): [True: 12.0k, False: 1.01k]
  ------------------
  111|  12.0k|    Curl_pgrsTime(data, TIMER_POSTRANSFER);
  112|  13.0k|}
multi.c:mstate_enter_done:
  116|  2.22k|{
  117|  2.22k|  (void)from_state;
  118|  2.22k|  CURLM_NTFY(data, CURLMNOTIFY_EASY_DONE);
  ------------------
  |  |   51|  2.22k|  do {                                                \
  |  |   52|  2.22k|    if((d) && (d)->multi && (d)->multi->ntfy.ntfy_cb) \
  |  |  ------------------
  |  |  |  Branch (52:8): [True: 2.22k, False: 0]
  |  |  |  Branch (52:15): [True: 2.22k, False: 0]
  |  |  |  Branch (52:29): [True: 0, False: 2.22k]
  |  |  ------------------
  |  |   53|  2.22k|      Curl_mntfy_add((d), (t));                       \
  |  |   54|  2.22k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (54:11): [Folded, False: 2.22k]
  |  |  ------------------
  ------------------
  119|  2.22k|}
multi.c:mstate_enter_completed:
  123|  9.96k|{
  124|       |  /* we sometimes directly jump to COMPLETED, trigger things
  125|       |   * we then missed. */
  126|  9.96k|  if(from_state < MSTATE_DID) {
  ------------------
  |  Branch (126:6): [True: 1.86k, False: 8.10k]
  ------------------
  127|  1.86k|    Curl_pgrsTime(data, TIMER_PRETRANSFER);
  128|  1.86k|    Curl_pgrsTime(data, TIMER_POSTRANSFER);
  129|  1.86k|    Curl_pgrsTime(data, TIMER_STARTTRANSFER);
  130|  1.86k|  }
  131|  9.96k|  Curl_pgrsCompleted(data);
  132|  9.96k|  if(from_state < MSTATE_DONE)
  ------------------
  |  Branch (132:6): [True: 7.74k, False: 2.22k]
  ------------------
  133|  7.74k|    CURLM_NTFY(data, CURLMNOTIFY_EASY_DONE);
  ------------------
  |  |   51|  7.74k|  do {                                                \
  |  |   52|  7.74k|    if((d) && (d)->multi && (d)->multi->ntfy.ntfy_cb) \
  |  |  ------------------
  |  |  |  Branch (52:8): [True: 7.74k, False: 0]
  |  |  |  Branch (52:15): [True: 7.74k, False: 0]
  |  |  |  Branch (52:29): [True: 0, False: 7.74k]
  |  |  ------------------
  |  |   53|  7.74k|      Curl_mntfy_add((d), (t));                       \
  |  |   54|  7.74k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (54:11): [Folded, False: 7.74k]
  |  |  ------------------
  ------------------
  134|       |  /* changing to COMPLETED means it is in process and needs to go */
  135|  9.96k|  DEBUGASSERT(Curl_uint32_bset_contains(&data->multi->process, data->mid));
  ------------------
  |  | 1083|  9.96k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (135:3): [True: 0, False: 9.96k]
  |  Branch (135:3): [True: 9.96k, False: 0]
  ------------------
  136|  9.96k|  Curl_uint32_bset_remove(&data->multi->process, data->mid);
  137|  9.96k|  Curl_uint32_bset_remove(&data->multi->pending, data->mid); /* to be sure */
  138|       |
  139|  9.96k|  if(Curl_uint32_bset_empty(&data->multi->process)) {
  ------------------
  |  Branch (139:6): [True: 0, False: 9.96k]
  ------------------
  140|       |    /* free the transfer buffer when we have no more active transfers */
  141|      0|    multi_xfer_bufs_free(data->multi);
  142|      0|  }
  143|       |  /* Important: reset the conn pointer so that we do not point to memory
  144|       |     that could be freed anytime */
  145|  9.96k|  Curl_detach_connection(data);
  146|  9.96k|  Curl_expire_clear(data); /* stop all timers */
  147|  9.96k|}
multi.c:multi_warn_debug:
  376|   316k|{
  377|   316k|  if(!multi->warned) {
  ------------------
  |  Branch (377:6): [True: 9.97k, False: 306k]
  ------------------
  378|  9.97k|    infof(data, "!!! WARNING !!!");
  ------------------
  |  |  143|  9.97k|  do {                               \
  |  |  144|  9.97k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|  9.97k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 9.97k, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 9.97k]
  |  |  |  |  ------------------
  |  |  |  |  323|  9.97k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  9.97k|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|  9.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 9.97k]
  |  |  ------------------
  ------------------
  379|  9.97k|    infof(data, "This is a debug build of libcurl, "
  ------------------
  |  |  143|  9.97k|  do {                               \
  |  |  144|  9.97k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|  9.97k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 9.97k, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 9.97k]
  |  |  |  |  ------------------
  |  |  |  |  323|  9.97k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  9.97k|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|  9.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 9.97k]
  |  |  ------------------
  ------------------
  380|  9.97k|                "do not use in production.");
  381|       |    multi->warned = TRUE;
  ------------------
  |  | 1053|  9.97k|#define TRUE true
  ------------------
  382|  9.97k|  }
  383|   316k|}
multi.c:multi_done:
  685|  14.6k|{
  686|  14.6k|  CURLcode result;
  687|  14.6k|  struct connectdata *conn = data->conn;
  688|       |
  689|  14.6k|  CURL_TRC_M(data, "multi_done: status: %d prem: %d done: %d",
  ------------------
  |  |  148|  14.6k|  do {                                   \
  |  |  149|  14.6k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  14.6k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  14.6k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  29.3k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 14.6k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 14.6k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  29.3k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  14.6k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  14.6k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  14.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 14.6k]
  |  |  ------------------
  ------------------
  690|  14.6k|             (int)status, (int)premature, data->state.done);
  691|       |
  692|  14.6k|  if(data->state.done)
  ------------------
  |  Branch (692:6): [True: 446, False: 14.2k]
  ------------------
  693|       |    /* Stop if multi_done() has already been called */
  694|    446|    return CURLE_OK;
  695|       |
  696|       |  /* Shut down any ongoing async resolver operation. */
  697|  14.2k|  Curl_resolv_shutdown_all(data);
  698|       |
  699|       |  /* Cleanup possible redirect junk */
  700|  14.2k|  curlx_safefree(data->req.newurl);
  ------------------
  |  | 1340|  14.2k|  do {                      \
  |  | 1341|  14.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  14.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  14.2k|    (ptr) = NULL;           \
  |  | 1343|  14.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 14.2k]
  |  |  ------------------
  ------------------
  701|  14.2k|  curlx_safefree(data->req.location);
  ------------------
  |  | 1340|  14.2k|  do {                      \
  |  | 1341|  14.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  14.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  14.2k|    (ptr) = NULL;           \
  |  | 1343|  14.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 14.2k]
  |  |  ------------------
  ------------------
  702|       |
  703|  14.2k|  switch(status) {
  704|      0|  case CURLE_ABORTED_BY_CALLBACK:
  ------------------
  |  Branch (704:3): [True: 0, False: 14.2k]
  ------------------
  705|     66|  case CURLE_READ_ERROR:
  ------------------
  |  Branch (705:3): [True: 66, False: 14.1k]
  ------------------
  706|     66|  case CURLE_WRITE_ERROR:
  ------------------
  |  Branch (706:3): [True: 0, False: 14.2k]
  ------------------
  707|       |    /* When we are aborted due to a callback return code it has to be counted
  708|       |       as premature as there is trouble ahead if we do not. We have many
  709|       |       callbacks and protocols work differently, we could potentially do this
  710|       |       more fine-grained in the future. */
  711|     66|    premature = TRUE;
  ------------------
  |  | 1053|     66|#define TRUE true
  ------------------
  712|     66|    FALLTHROUGH();
  ------------------
  |  |  823|     66|#  define FALLTHROUGH()  __attribute__((fallthrough))
  ------------------
  713|  14.2k|  default:
  ------------------
  |  Branch (713:3): [True: 14.1k, False: 66]
  ------------------
  714|  14.2k|    break;
  715|  14.2k|  }
  716|       |
  717|       |  /* this calls the protocol-specific function pointer previously set */
  718|  14.2k|  if(conn && conn->scheme->run->done && (data->mstate >= MSTATE_PROTOCONNECT))
  ------------------
  |  Branch (718:6): [True: 14.2k, False: 0]
  |  Branch (718:14): [True: 14.2k, False: 0]
  |  Branch (718:41): [True: 13.0k, False: 1.16k]
  ------------------
  719|  13.0k|    result = conn->scheme->run->done(data, status, premature);
  720|  1.16k|  else
  721|  1.16k|    result = status;
  722|       |
  723|  14.2k|  if(data->mstate > MSTATE_CONNECTING &&
  ------------------
  |  Branch (723:6): [True: 13.0k, False: 1.16k]
  ------------------
  724|  13.0k|     (result != CURLE_ABORTED_BY_CALLBACK)) {
  ------------------
  |  Branch (724:6): [True: 13.0k, False: 0]
  ------------------
  725|       |    /* avoid this if
  726|       |     * - the transfer has not connected
  727|       |     * - we already aborted by callback to avoid this calling another callback
  728|       |     */
  729|  13.0k|    int rc = Curl_pgrsDone(data);
  730|  13.0k|    if(!result && rc)
  ------------------
  |  Branch (730:8): [True: 6.58k, False: 6.50k]
  |  Branch (730:19): [True: 0, False: 6.58k]
  ------------------
  731|      0|      result = CURLE_ABORTED_BY_CALLBACK;
  732|  13.0k|  }
  733|       |
  734|       |  /* Make sure that transfer client writes are really done now. */
  735|  14.2k|  result = Curl_1st_fatal(result, Curl_xfer_write_done(data, premature));
  736|       |
  737|       |  /* Inform connection filters that this transfer is done */
  738|  14.2k|  if(conn)
  ------------------
  |  Branch (738:6): [True: 14.2k, False: 0]
  ------------------
  739|  14.2k|    Curl_conn_ev_data_done(data, premature);
  740|       |
  741|  14.2k|  multi_schedule_pending(data->multi); /* connection / multiplex */
  742|       |
  743|  14.2k|  if(!result)
  ------------------
  |  Branch (743:6): [True: 6.58k, False: 7.67k]
  ------------------
  744|  6.58k|    result = Curl_req_done(&data->req, data, premature);
  745|       |
  746|  14.2k|  if(conn) {
  ------------------
  |  Branch (746:6): [True: 14.2k, False: 0]
  ------------------
  747|       |    /* Under the potential connection pool's share lock, decide what to
  748|       |     * do with the transfer's connection. */
  749|  14.2k|    struct multi_done_ctx mdctx;
  750|       |
  751|  14.2k|    memset(&mdctx, 0, sizeof(mdctx));
  752|  14.2k|    mdctx.premature = premature;
  753|  14.2k|    Curl_cpool_do_locked(data, data->conn, multi_done_locked, &mdctx);
  754|  14.2k|  }
  755|       |
  756|       |  /* flush the netrc cache */
  757|  14.2k|  Curl_netrc_cleanup(&data->state.netrc);
  758|  14.2k|  return result;
  759|  14.2k|}
multi.c:multi_done_locked:
  633|  14.2k|{
  634|  14.2k|  struct multi_done_ctx *mdctx = userdata;
  635|       |
  636|  14.2k|  Curl_detach_connection(data);
  637|       |
  638|  14.2k|  CURL_TRC_M(data, "multi_done_locked, in use=%u", conn->attached_xfers);
  ------------------
  |  |  148|  14.2k|  do {                                   \
  |  |  149|  14.2k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  14.2k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  14.2k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  28.5k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 14.2k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 14.2k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  28.5k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  14.2k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  14.2k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  14.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 14.2k]
  |  |  ------------------
  ------------------
  639|  14.2k|  if(CONN_INUSE(conn)) {
  ------------------
  |  |  272|  14.2k|#define CONN_INUSE(c) (!!(c)->attached_xfers)
  |  |  ------------------
  |  |  |  Branch (272:23): [True: 0, False: 14.2k]
  |  |  ------------------
  ------------------
  640|       |    /* Stop if still used. */
  641|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  642|      0|               conn->attached_xfers);
  643|      0|    return;
  644|      0|  }
  645|       |
  646|  14.2k|  data->state.done = TRUE; /* called now! */
  ------------------
  |  | 1053|  14.2k|#define TRUE true
  ------------------
  647|       |
  648|  14.2k|  Curl_dnscache_prune(data);
  649|       |
  650|  14.2k|  if(multi_conn_should_close(conn, data, (bool)mdctx->premature)) {
  ------------------
  |  Branch (650:6): [True: 8.36k, False: 5.89k]
  ------------------
  651|  8.36k|    CURL_TRC_M(data, "multi_done, terminating conn #%" FMT_OFF_T " to %s, "
  ------------------
  |  |  148|  8.36k|  do {                                   \
  |  |  149|  8.36k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  8.36k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  8.36k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  16.7k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 8.36k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 8.36k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  16.7k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  8.36k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  8.36k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  8.36k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 8.36k]
  |  |  ------------------
  ------------------
  652|  8.36k|               "forbid=%d, close=%d, premature=%d, conn_multiplex=%d",
  653|  8.36k|               conn->connection_id, conn->destination,
  654|  8.36k|               data->set.reuse_forbid, conn->bits.close, mdctx->premature,
  655|  8.36k|               Curl_conn_is_multiplex(conn, FIRSTSOCKET));
  656|  8.36k|    connclose(conn);
  ------------------
  |  |   88|  8.36k|#define connclose(x)   Curl_conncontrol((x), CONNCTRL_CONN_CLOSE)
  |  |  ------------------
  |  |  |  |   82|  8.36k|#define CONNCTRL_CONN_CLOSE      1
  |  |  ------------------
  ------------------
  657|  8.36k|    Curl_conn_terminate(data, conn, (bool)mdctx->premature);
  658|  8.36k|  }
  659|  5.89k|  else if(!Curl_conn_get_max_concurrent(data, conn, FIRSTSOCKET)) {
  ------------------
  |  |  233|  5.89k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (659:11): [True: 4, False: 5.88k]
  ------------------
  660|      4|    CURL_TRC_M(data, "multi_done, conn #%" FMT_OFF_T " to %s was shutdown"
  ------------------
  |  |  148|      4|  do {                                   \
  |  |  149|      4|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      4|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      4|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      8|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      8|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      4|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      4|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      4|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 4]
  |  |  ------------------
  ------------------
  661|      4|               " by server, not reusing", conn->connection_id,
  662|      4|               conn->destination);
  663|      4|    connclose(conn);
  ------------------
  |  |   88|      4|#define connclose(x)   Curl_conncontrol((x), CONNCTRL_CONN_CLOSE)
  |  |  ------------------
  |  |  |  |   82|      4|#define CONNCTRL_CONN_CLOSE      1
  |  |  ------------------
  ------------------
  664|      4|    Curl_conn_terminate(data, conn, (bool)mdctx->premature);
  665|      4|  }
  666|  5.88k|  else {
  667|       |    /* the connection is no longer in use by any transfer */
  668|  5.88k|    if(Curl_cpool_conn_now_idle(data, conn)) {
  ------------------
  |  Branch (668:8): [True: 5.88k, False: 0]
  ------------------
  669|       |      /* connection kept in the cpool */
  670|  5.88k|      data->state.lastconnect_id = conn->connection_id;
  671|  5.88k|      infof(data, "Connection #%" FMT_OFF_T " to host %s left intact",
  ------------------
  |  |  143|  5.88k|  do {                               \
  |  |  144|  5.88k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|  5.88k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 5.88k, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 5.88k]
  |  |  |  |  ------------------
  |  |  |  |  323|  5.88k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  5.88k|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|  5.88k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 5.88k]
  |  |  ------------------
  ------------------
  672|  5.88k|            conn->connection_id, conn->destination);
  673|  5.88k|    }
  674|      0|    else {
  675|       |      /* connection was removed from the cpool and destroyed. */
  676|      0|      data->state.lastconnect_id = -1;
  677|      0|    }
  678|  5.88k|  }
  679|  14.2k|}
multi.c:multi_conn_should_close:
  592|  14.2k|{
  593|       |  /* if conn->bits.close is TRUE, it means that the connection should be
  594|       |     closed in spite of everything else. */
  595|  14.2k|  if(conn->bits.close)
  ------------------
  |  Branch (595:6): [True: 6.80k, False: 7.44k]
  ------------------
  596|  6.80k|    return TRUE;
  ------------------
  |  | 1053|  6.80k|#define TRUE true
  ------------------
  597|       |
  598|       |  /* if data->set.reuse_forbid is TRUE, it means the libcurl client has
  599|       |     forced us to close this connection. This is ignored for requests taking
  600|       |     place in a NTLM/NEGOTIATE authentication handshake. */
  601|  7.44k|  if(data->set.reuse_forbid
  ------------------
  |  Branch (601:6): [True: 0, False: 7.44k]
  ------------------
  602|       |#ifdef USE_NTLM
  603|       |     && !(conn->http_ntlm_state == NTLMSTATE_TYPE2 ||
  604|       |          conn->proxy_ntlm_state == NTLMSTATE_TYPE2)
  605|       |#endif
  606|       |#ifdef USE_SPNEGO
  607|       |     && !(conn->http_negotiate_state == GSS_AUTHRECV ||
  608|       |          conn->proxy_negotiate_state == GSS_AUTHRECV)
  609|       |#endif
  610|  7.44k|    )
  611|      0|    return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  612|       |
  613|       |  /* Unless this connection is for a "connect-only" transfer, it
  614|       |   * needs to be closed if the protocol handler does not support reuse. */
  615|  7.44k|  if(!data->set.connect_only && conn->scheme &&
  ------------------
  |  Branch (615:6): [True: 6.99k, False: 459]
  |  Branch (615:33): [True: 6.99k, False: 0]
  ------------------
  616|  6.99k|     !(conn->scheme->flags & PROTOPT_CONN_REUSE))
  ------------------
  |  |  237|  6.99k|#define PROTOPT_CONN_REUSE (1 << 16)  /* this protocol can reuse connections */
  ------------------
  |  Branch (616:6): [True: 742, False: 6.24k]
  ------------------
  617|    742|    return TRUE;
  ------------------
  |  | 1053|    742|#define TRUE true
  ------------------
  618|       |
  619|       |  /* if premature is TRUE, it means this connection was said to be DONE before
  620|       |     the entire request operation is complete and thus we cannot know in what
  621|       |     state it is for reusing, so we are forced to close it. In a perfect world
  622|       |     we can add code that keep track of if we really must close it here or not,
  623|       |     but currently we have no such detail knowledge. */
  624|  6.70k|  if(premature && !Curl_conn_is_multiplex(conn, FIRSTSOCKET))
  ------------------
  |  |  233|  1.46k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (624:6): [True: 1.46k, False: 5.23k]
  |  Branch (624:19): [True: 815, False: 654]
  ------------------
  625|    815|    return TRUE;
  ------------------
  |  | 1053|    815|#define TRUE true
  ------------------
  626|       |
  627|  5.89k|  return FALSE;
  ------------------
  |  | 1056|  5.89k|#define FALSE false
  ------------------
  628|  6.70k|}
multi.c:multi_assess_wakeup:
  394|  39.8k|{
  395|  39.8k|#ifdef ENABLE_INTERNAL_WAKEUP
  396|  39.8k|  if(multi->socket_cb)
  ------------------
  |  Branch (396:6): [True: 0, False: 39.8k]
  ------------------
  397|      0|    return Curl_multi_ev_assess_xfer(multi, multi->admin);
  398|       |#else
  399|       |  (void)multi;
  400|       |#endif
  401|  39.8k|  return CURLM_OK;
  402|  39.8k|}
multi.c:mstate_connecting_pollset:
 1014|  6.51k|{
 1015|  6.51k|  struct connectdata *conn = data->conn;
 1016|  6.51k|  curl_socket_t sockfd;
 1017|  6.51k|  CURLcode result = CURLE_OK;
 1018|       |
 1019|  6.51k|  if(Curl_xfer_recv_is_paused(data))
  ------------------
  |  Branch (1019:6): [True: 0, False: 6.51k]
  ------------------
 1020|      0|    return CURLE_OK;
 1021|       |  /* If a socket is set, receiving is default. If the socket
 1022|       |   * has not been determined yet (eyeballing), always ask the
 1023|       |   * connection filters for what to monitor. */
 1024|  6.51k|  sockfd = Curl_conn_get_first_socket(data);
 1025|  6.51k|  if(sockfd != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|  6.51k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (1025:6): [True: 6.51k, False: 0]
  ------------------
 1026|  6.51k|    result = Curl_pollset_change(data, ps, sockfd, CURL_POLL_IN, 0);
  ------------------
  |  |  283|  6.51k|#define CURL_POLL_IN     1
  ------------------
 1027|  6.51k|    if(!result)
  ------------------
  |  Branch (1027:8): [True: 6.51k, False: 0]
  ------------------
 1028|  6.51k|      result = multi_adjust_pollset(data, ps);
 1029|  6.51k|  }
 1030|  6.51k|  if(!result)
  ------------------
  |  Branch (1030:6): [True: 6.51k, False: 0]
  ------------------
 1031|  6.51k|    result = Curl_conn_adjust_pollset(data, conn, ps);
 1032|  6.51k|  return result;
 1033|  6.51k|}
multi.c:multi_adjust_pollset:
  970|   141k|{
  971|   141k|  CURLcode result = CURLE_OK;
  972|       |
  973|   141k|  if(ps->n) {
  ------------------
  |  Branch (973:6): [True: 138k, False: 3.06k]
  ------------------
  974|   138k|    bool send_blocked, recv_blocked;
  975|       |
  976|   138k|    recv_blocked = (Curl_rlimit_avail(&data->progress.dl.rlimit, NULL) <= 0);
  977|   138k|    send_blocked = (Curl_rlimit_avail(&data->progress.ul.rlimit, NULL) <= 0);
  978|   138k|    if(send_blocked || recv_blocked) {
  ------------------
  |  Branch (978:8): [True: 0, False: 138k]
  |  Branch (978:24): [True: 0, False: 138k]
  ------------------
  979|      0|      int i;
  980|      0|      for(i = 0; i <= SECONDARYSOCKET; ++i) {
  ------------------
  |  |  234|      0|#define SECONDARYSOCKET 1
  ------------------
  |  Branch (980:18): [True: 0, False: 0]
  ------------------
  981|      0|        curl_socket_t sock = data->conn->sock[i];
  982|      0|        if(sock == CURL_SOCKET_BAD)
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (982:12): [True: 0, False: 0]
  ------------------
  983|      0|          continue;
  984|      0|        if(recv_blocked && Curl_pollset_want_recv(data, ps, sock)) {
  ------------------
  |  Branch (984:12): [True: 0, False: 0]
  |  Branch (984:28): [True: 0, False: 0]
  ------------------
  985|      0|          result = Curl_pollset_remove_in(data, ps, sock);
  ------------------
  |  |  162|      0|  Curl_pollset_change(data, ps, sock, 0, CURL_POLL_IN)
  |  |  ------------------
  |  |  |  |  283|      0|#define CURL_POLL_IN     1
  |  |  ------------------
  ------------------
  986|      0|          if(result)
  ------------------
  |  Branch (986:14): [True: 0, False: 0]
  ------------------
  987|      0|            break;
  988|      0|        }
  989|      0|        if(send_blocked && Curl_pollset_want_send(data, ps, sock)) {
  ------------------
  |  Branch (989:12): [True: 0, False: 0]
  |  Branch (989:28): [True: 0, False: 0]
  ------------------
  990|      0|          result = Curl_pollset_remove_out(data, ps, sock);
  ------------------
  |  |  166|      0|  Curl_pollset_change(data, ps, sock, 0, CURL_POLL_OUT)
  |  |  ------------------
  |  |  |  |  284|      0|#define CURL_POLL_OUT    2
  |  |  ------------------
  ------------------
  991|      0|          if(result)
  ------------------
  |  Branch (991:14): [True: 0, False: 0]
  ------------------
  992|      0|            break;
  993|      0|        }
  994|      0|      }
  995|      0|    }
  996|       |
  997|       |    /* Not blocked and wanting to receive. If there is data pending
  998|       |     * in the connection filters, make transfer run again. */
  999|   138k|    if(!recv_blocked &&
  ------------------
  |  Branch (999:8): [True: 138k, False: 0]
  ------------------
 1000|   138k|       ((Curl_pollset_want_recv(data, ps, data->conn->sock[FIRSTSOCKET]) &&
  ------------------
  |  |  233|   138k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (1000:10): [True: 124k, False: 14.1k]
  ------------------
 1001|   124k|         Curl_conn_data_pending(data, FIRSTSOCKET)) ||
  ------------------
  |  |  233|   124k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (1001:10): [True: 0, False: 124k]
  ------------------
 1002|   138k|        (Curl_pollset_want_recv(data, ps, data->conn->sock[SECONDARYSOCKET]) &&
  ------------------
  |  |  234|   138k|#define SECONDARYSOCKET 1
  ------------------
  |  Branch (1002:10): [True: 0, False: 138k]
  ------------------
 1003|      0|         Curl_conn_data_pending(data, SECONDARYSOCKET)))) {
  ------------------
  |  |  234|      0|#define SECONDARYSOCKET 1
  ------------------
  |  Branch (1003:10): [True: 0, False: 0]
  ------------------
 1004|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1005|      0|                 "buffered input -> mark as dirty");
 1006|      0|      Curl_multi_mark_dirty(data);
 1007|      0|    }
 1008|   138k|  }
 1009|   141k|  return result;
 1010|   141k|}
multi.c:mstate_perform_pollset:
 1097|   135k|{
 1098|   135k|  struct connectdata *conn = data->conn;
 1099|   135k|  CURLcode result = CURLE_OK;
 1100|       |
 1101|   135k|  if(conn->scheme->run->perform_pollset)
  ------------------
  |  Branch (1101:6): [True: 135k, False: 0]
  ------------------
 1102|   135k|    result = conn->scheme->run->perform_pollset(data, ps);
 1103|      0|  else {
 1104|       |    /* Default is to obey the request flags for send/recv */
 1105|      0|    if(Curl_req_want_recv(data) && CONN_SOCK_IDX_VALID(conn->recv_idx)) {
  ------------------
  |  |  310|      0|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (310:36): [True: 0, False: 0]
  |  |  |  Branch (310:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1105:8): [True: 0, False: 0]
  ------------------
 1106|      0|      result = Curl_pollset_add_in(data, ps, conn->sock[conn->recv_idx]);
  ------------------
  |  |  160|      0|  Curl_pollset_change(data, ps, sock, CURL_POLL_IN, 0)
  |  |  ------------------
  |  |  |  |  283|      0|#define CURL_POLL_IN     1
  |  |  ------------------
  ------------------
 1107|      0|    }
 1108|      0|    if(!result && Curl_req_want_send(data) &&
  ------------------
  |  Branch (1108:8): [True: 0, False: 0]
  |  Branch (1108:19): [True: 0, False: 0]
  ------------------
 1109|      0|       CONN_SOCK_IDX_VALID(conn->send_idx)) {
  ------------------
  |  |  310|      0|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (310:36): [True: 0, False: 0]
  |  |  |  Branch (310:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1110|      0|      result = Curl_pollset_add_out(data, ps, conn->sock[conn->send_idx]);
  ------------------
  |  |  164|      0|  Curl_pollset_change(data, ps, sock, CURL_POLL_OUT, 0)
  |  |  ------------------
  |  |  |  |  284|      0|#define CURL_POLL_OUT    2
  |  |  ------------------
  ------------------
 1111|      0|    }
 1112|      0|  }
 1113|   135k|  if(!result)
  ------------------
  |  Branch (1113:6): [True: 135k, False: 0]
  ------------------
 1114|   135k|    result = multi_adjust_pollset(data, ps);
 1115|   135k|  if(!result)
  ------------------
  |  Branch (1115:6): [True: 135k, False: 0]
  ------------------
 1116|   135k|    result = Curl_conn_adjust_pollset(data, conn, ps);
 1117|   135k|  return result;
 1118|   135k|}
multi.c:multi_perform:
 2879|   153k|{
 2880|   153k|  CURLMcode returncode = CURLM_OK;
 2881|   153k|  struct curltime start = *multi_now(multi);
 2882|   153k|  uint32_t mid;
 2883|   153k|  struct Curl_sigpipe_ctx sigpipe_ctx;
 2884|       |
 2885|   153k|  sigpipe_init(&sigpipe_ctx);
 2886|       |
 2887|   153k|  if(Curl_uint32_bset_first(&multi->process, &mid)) {
  ------------------
  |  Branch (2887:6): [True: 153k, False: 0]
  ------------------
 2888|   153k|    CURL_TRC_M(multi->admin, "multi_perform(running=%u)",
  ------------------
  |  |  148|   153k|  do {                                   \
  |  |  149|   153k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|   153k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|   153k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|   306k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 153k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 153k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|   306k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|   153k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|   153k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|   153k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 153k]
  |  |  ------------------
  ------------------
 2889|   153k|               Curl_multi_xfers_running(multi));
 2890|   306k|    do {
 2891|   306k|      struct Curl_easy *data = Curl_multi_get_easy(multi, mid);
 2892|   306k|      CURLMcode mresult;
 2893|   306k|      if(!data) {
  ------------------
  |  Branch (2893:10): [True: 0, False: 306k]
  ------------------
 2894|      0|        DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2894:9): [Folded, False: 0]
  |  Branch (2894:9): [Folded, False: 0]
  ------------------
 2895|      0|        Curl_uint32_bset_remove(&multi->process, mid);
 2896|      0|        Curl_uint32_bset_remove(&multi->dirty, mid);
 2897|      0|        continue;
 2898|      0|      }
 2899|   306k|      mresult = multi_runsingle(multi, data, &sigpipe_ctx);
 2900|   306k|      if(mresult)
  ------------------
  |  Branch (2900:10): [True: 0, False: 306k]
  ------------------
 2901|      0|        returncode = mresult;
 2902|   306k|    } while(Curl_uint32_bset_next(&multi->process, mid, &mid));
  ------------------
  |  Branch (2902:13): [True: 153k, False: 153k]
  ------------------
 2903|   153k|  }
 2904|   153k|  sigpipe_restore(&sigpipe_ctx);
 2905|       |
 2906|   153k|  if(multi_ischanged(multi, TRUE))
  ------------------
  |  | 1053|   153k|#define TRUE true
  ------------------
  |  Branch (2906:6): [True: 7.83k, False: 145k]
  ------------------
 2907|  7.83k|    multi_schedule_pending(multi);
 2908|       |
 2909|   153k|  if(!returncode && CURL_MNTFY_HAS_ENTRIES(multi))
  ------------------
  |  |   56|   153k|#define CURL_MNTFY_HAS_ENTRIES(m)       ((m)->ntfy.has_entries)
  |  |  ------------------
  |  |  |  Branch (56:41): [True: 0, False: 153k]
  |  |  ------------------
  ------------------
  |  Branch (2909:6): [True: 153k, False: 0]
  ------------------
 2910|      0|    returncode = Curl_mntfy_dispatch_all(multi);
 2911|       |
 2912|       |  /*
 2913|       |   * Remove all expired timers from the splay since handles are dealt
 2914|       |   * with unconditionally by this function and curl_multi_timeout() requires
 2915|       |   * that already passed/handled expire times are removed from the splay.
 2916|       |   *
 2917|       |   * It is important that the 'now' value is set at the entry of this function
 2918|       |   * and not for the current time as it may have ticked a little while since
 2919|       |   * then and then we risk this loop to remove timers that actually have not
 2920|       |   * been handled!
 2921|       |   */
 2922|   153k|  if(multi->timetree) {
  ------------------
  |  Branch (2922:6): [True: 143k, False: 9.96k]
  ------------------
 2923|   143k|    struct Curl_tree *t = NULL;
 2924|   144k|    do {
 2925|   144k|      multi->timetree = Curl_splaygetbest(&start, multi->timetree, &t);
 2926|   144k|      if(t) {
  ------------------
  |  Branch (2926:10): [True: 648, False: 143k]
  ------------------
 2927|       |        /* the removed may have another timeout in queue */
 2928|    648|        struct Curl_easy *data = Curl_splayget(t);
 2929|    648|        data->state.timeouts.registered = FALSE;
  ------------------
  |  | 1056|    648|#define FALSE false
  ------------------
 2930|    648|        (void)add_next_timeout(&start, multi, data);
 2931|    648|        if(data->mstate == MSTATE_PENDING) {
  ------------------
  |  Branch (2931:12): [True: 0, False: 648]
  ------------------
 2932|      0|          bool stream_unused;
 2933|      0|          CURLcode result_unused;
 2934|      0|          if(multi_handle_timeout(data, &stream_unused, &result_unused)) {
  ------------------
  |  Branch (2934:14): [True: 0, False: 0]
  ------------------
 2935|      0|            infof(data, "PENDING handle timeout");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2936|      0|            move_pending_to_connect(multi, data);
 2937|      0|          }
 2938|      0|        }
 2939|    648|      }
 2940|   144k|    } while(t);
  ------------------
  |  Branch (2940:13): [True: 648, False: 143k]
  ------------------
 2941|   143k|  }
 2942|       |
 2943|   153k|  if(running_handles) {
  ------------------
  |  Branch (2943:6): [True: 153k, False: 0]
  ------------------
 2944|   153k|    unsigned int running = Curl_multi_xfers_running(multi);
 2945|   153k|    *running_handles = (running < INT_MAX) ? (int)running : INT_MAX;
  ------------------
  |  Branch (2945:24): [True: 153k, False: 0]
  ------------------
 2946|   153k|  }
 2947|       |
 2948|   153k|  if(CURLM_OK >= returncode)
  ------------------
  |  Branch (2948:6): [True: 153k, False: 0]
  ------------------
 2949|   153k|    returncode = Curl_update_timer(multi);
 2950|       |
 2951|   153k|  return returncode;
 2952|   153k|}
multi.c:multi_now:
   88|   153k|{
   89|   153k|  curlx_pnow(&multi->now);
   90|   153k|  return &multi->now;
   91|   153k|}
multi.c:multi_runsingle:
 2713|   306k|{
 2714|   306k|  CURLMcode mresult;
 2715|   306k|  CURLcode result = CURLE_OK;
 2716|       |
 2717|   306k|  if(multi->dead) {
  ------------------
  |  Branch (2717:6): [True: 0, False: 306k]
  ------------------
 2718|       |    /* a multi-level callback returned error before, meaning every individual
 2719|       |     transfer now has failed */
 2720|      0|    result = CURLE_ABORTED_BY_CALLBACK;
 2721|      0|    multi_posttransfer(data);
 2722|      0|    multi_done(data, result, FALSE);
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 2723|      0|    multistate(data, MSTATE_COMPLETED);
  ------------------
  |  |  196|      0|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2724|      0|  }
 2725|       |
 2726|   306k|  multi_warn_debug(multi, data);
 2727|       |
 2728|       |  /* transfer runs now, clear the dirty bit. This may be set
 2729|       |   * again during processing, triggering a re-run later. */
 2730|   306k|  Curl_uint32_bset_remove(&multi->dirty, data->mid);
 2731|       |
 2732|   306k|  if(data == multi->admin) {
  ------------------
  |  Branch (2732:6): [True: 153k, False: 153k]
  ------------------
 2733|   153k|#ifdef ENABLE_INTERNAL_WAKEUP
 2734|       |    /* Consume any pending wakeup signals before processing.
 2735|       |     * This is necessary for event based processing. See #21547 */
 2736|   153k|    (void)Curl_wakeup_consume(multi->wakeup_internal, TRUE);
  ------------------
  |  | 1053|   153k|#define TRUE true
  ------------------
 2737|   153k|#endif
 2738|   153k|#ifdef USE_RESOLV_THREADED
 2739|   153k|    Curl_async_thrdd_multi_process(multi);
 2740|   153k|#endif
 2741|   153k|    Curl_cshutdn_perform(&multi->cshutdn, multi->admin, sigpipe_ctx);
 2742|   153k|    return CURLM_OK;
 2743|   153k|  }
 2744|       |
 2745|   153k|  sigpipe_apply(data, sigpipe_ctx);
 2746|   255k|  do {
 2747|       |    /* A "stream" here is a logical stream if the protocol can handle that
 2748|       |       (HTTP/2), or the full connection for older protocols */
 2749|   255k|    bool stream_error = FALSE;
  ------------------
  |  | 1056|   255k|#define FALSE false
  ------------------
 2750|   255k|    mresult = CURLM_OK;
 2751|       |
 2752|   255k|    if(multi_ischanged(multi, TRUE)) {
  ------------------
  |  | 1053|   255k|#define TRUE true
  ------------------
  |  Branch (2752:8): [True: 9.13k, False: 246k]
  ------------------
 2753|  9.13k|      CURL_TRC_M(data, "multi changed, check CONNECT_PEND queue");
  ------------------
  |  |  148|  9.13k|  do {                                   \
  |  |  149|  9.13k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  9.13k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  9.13k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  18.2k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 9.13k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 9.13k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  18.2k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  9.13k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  9.13k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  9.13k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 9.13k]
  |  |  ------------------
  ------------------
 2754|  9.13k|      multi_schedule_pending(multi); /* multiplexed */
 2755|  9.13k|    }
 2756|       |
 2757|   255k|    if(data->mstate > MSTATE_CONNECT &&
  ------------------
  |  Branch (2757:8): [True: 215k, False: 39.8k]
  ------------------
 2758|   215k|       data->mstate < MSTATE_COMPLETED) {
  ------------------
  |  Branch (2758:8): [True: 215k, False: 0]
  ------------------
 2759|       |      /* Make sure we set the connection's current owner */
 2760|   215k|      DEBUGASSERT(data->conn);
  ------------------
  |  | 1083|   215k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2760:7): [True: 0, False: 215k]
  |  Branch (2760:7): [True: 215k, False: 0]
  ------------------
 2761|   215k|      if(!data->conn)
  ------------------
  |  Branch (2761:10): [True: 0, False: 215k]
  ------------------
 2762|      0|        return CURLM_INTERNAL_ERROR;
 2763|   215k|    }
 2764|       |
 2765|       |    /* Wait for the connect state as only then is the start time stored, but
 2766|       |       we must not check already completed handles */
 2767|   255k|    if((data->mstate >= MSTATE_CONNECT) && (data->mstate < MSTATE_COMPLETED) &&
  ------------------
  |  Branch (2767:8): [True: 230k, False: 24.8k]
  |  Branch (2767:44): [True: 230k, False: 0]
  ------------------
 2768|   230k|       multi_handle_timeout(data, &stream_error, &result))
  ------------------
  |  Branch (2768:8): [True: 887, False: 229k]
  ------------------
 2769|       |      /* Skip the statemachine and go directly to error handling section. */
 2770|    887|      goto statemachine_end;
 2771|       |
 2772|   254k|    switch(data->mstate) {
 2773|  9.97k|    case MSTATE_INIT:
  ------------------
  |  Branch (2773:5): [True: 9.97k, False: 244k]
  ------------------
 2774|       |      /* Transitional state. init this transfer. A handle never comes back to
 2775|       |         this state. */
 2776|  9.97k|      mresult = multistate_init(data, &result);
 2777|  9.97k|      break;
 2778|       |
 2779|  14.9k|    case MSTATE_SETUP:
  ------------------
  |  Branch (2779:5): [True: 14.9k, False: 239k]
  ------------------
 2780|       |      /* Transitional state. Setup things for a new transfer. The handle
 2781|       |         can come back to this state on a redirect. */
 2782|  14.9k|      mresult = multistate_setup(data);
 2783|  14.9k|      break;
 2784|       |
 2785|  14.9k|    case MSTATE_CONNECT:
  ------------------
  |  Branch (2785:5): [True: 14.9k, False: 239k]
  ------------------
 2786|  14.9k|      mresult = multistate_connect(multi, data, &result);
 2787|  14.9k|      break;
 2788|       |
 2789|  20.4k|    case MSTATE_CONNECTING:
  ------------------
  |  Branch (2789:5): [True: 20.4k, False: 233k]
  ------------------
 2790|       |      /* awaiting a completion of an asynch TCP connect */
 2791|  20.4k|      mresult = multistate_connecting(data, &stream_error, &result);
 2792|  20.4k|      break;
 2793|       |
 2794|  13.0k|    case MSTATE_PROTOCONNECT:
  ------------------
  |  Branch (2794:5): [True: 13.0k, False: 241k]
  ------------------
 2795|  13.0k|      mresult = multistate_protoconnect(data, &stream_error, &result);
 2796|  13.0k|      break;
 2797|       |
 2798|      0|    case MSTATE_PROTOCONNECTING:
  ------------------
  |  Branch (2798:5): [True: 0, False: 254k]
  ------------------
 2799|       |      /* protocol-specific connect phase */
 2800|      0|      mresult = multistate_protoconnecting(data, &stream_error, &result);
 2801|      0|      break;
 2802|       |
 2803|  13.0k|    case MSTATE_DO:
  ------------------
  |  Branch (2803:5): [True: 13.0k, False: 241k]
  ------------------
 2804|  13.0k|      mresult = multistate_do(data, &stream_error, &result);
 2805|  13.0k|      break;
 2806|       |
 2807|      0|    case MSTATE_DOING:
  ------------------
  |  Branch (2807:5): [True: 0, False: 254k]
  ------------------
 2808|       |      /* we continue DOING until the DO phase is complete */
 2809|      0|      mresult = multistate_doing(data, &stream_error, &result);
 2810|      0|      break;
 2811|       |
 2812|      0|    case MSTATE_DOING_MORE:
  ------------------
  |  Branch (2812:5): [True: 0, False: 254k]
  ------------------
 2813|       |      /*
 2814|       |       * When we are connected, DOING MORE and then go DID
 2815|       |       */
 2816|      0|      mresult = multistate_doing_more(data, &stream_error, &result);
 2817|      0|      break;
 2818|       |
 2819|  13.0k|    case MSTATE_DID:
  ------------------
  |  Branch (2819:5): [True: 13.0k, False: 241k]
  ------------------
 2820|  13.0k|      mresult = multistate_did(multi, data);
 2821|  13.0k|      break;
 2822|       |
 2823|  1.65k|    case MSTATE_RATELIMITING: /* limit-rate exceeded in either direction */
  ------------------
  |  Branch (2823:5): [True: 1.65k, False: 252k]
  ------------------
 2824|  1.65k|      mresult = multistate_ratelimiting(data, &result);
 2825|  1.65k|      break;
 2826|       |
 2827|   150k|    case MSTATE_PERFORMING:
  ------------------
  |  Branch (2827:5): [True: 150k, False: 103k]
  ------------------
 2828|   150k|      mresult = multistate_performing(data, &stream_error, &result);
 2829|   150k|      break;
 2830|       |
 2831|  2.21k|    case MSTATE_DONE:
  ------------------
  |  Branch (2831:5): [True: 2.21k, False: 252k]
  ------------------
 2832|  2.21k|      mresult = multistate_done(data, &result);
 2833|  2.21k|      break;
 2834|       |
 2835|      0|    case MSTATE_COMPLETED:
  ------------------
  |  Branch (2835:5): [True: 0, False: 254k]
  ------------------
 2836|      0|      break;
 2837|       |
 2838|      0|    case MSTATE_PENDING:
  ------------------
  |  Branch (2838:5): [True: 0, False: 254k]
  ------------------
 2839|      0|    case MSTATE_MSGSENT:
  ------------------
  |  Branch (2839:5): [True: 0, False: 254k]
  ------------------
 2840|       |      /* handles in these states should NOT be in this list */
 2841|      0|      break;
 2842|       |
 2843|      0|    default:
  ------------------
  |  Branch (2843:5): [True: 0, False: 254k]
  ------------------
 2844|      0|      return CURLM_INTERNAL_ERROR;
 2845|   254k|    }
 2846|       |
 2847|   254k|    if(data->mstate >= MSTATE_CONNECT &&
  ------------------
  |  Branch (2847:8): [True: 239k, False: 14.9k]
  ------------------
 2848|   239k|       data->mstate < MSTATE_DO &&
  ------------------
  |  Branch (2848:8): [True: 50.2k, False: 189k]
  ------------------
 2849|  50.2k|       mresult != CURLM_CALL_MULTI_PERFORM &&
  ------------------
  |  Branch (2849:8): [True: 8.00k, False: 42.2k]
  ------------------
 2850|  8.00k|       !multi_ischanged(multi, FALSE)) {
  ------------------
  |  | 1056|  8.00k|#define FALSE false
  ------------------
  |  Branch (2850:8): [True: 7.18k, False: 827]
  ------------------
 2851|       |      /* We now handle stream timeouts if and only if this will be the last
 2852|       |       * loop iteration. We only check this on the last iteration to ensure
 2853|       |       * that if we know we have additional work to do immediately
 2854|       |       * (i.e. CURLM_CALL_MULTI_PERFORM == TRUE) then we should do that before
 2855|       |       * declaring the connection timed out as we may almost have a completed
 2856|       |       * connection. */
 2857|  7.18k|      multi_handle_timeout(data, &stream_error, &result);
 2858|  7.18k|    }
 2859|       |
 2860|   255k|statemachine_end:
 2861|       |
 2862|   255k|    result = is_finished(multi, data, stream_error, result);
 2863|   255k|    if(result)
  ------------------
  |  Branch (2863:8): [True: 8.37k, False: 246k]
  ------------------
 2864|  8.37k|      mresult = CURLM_CALL_MULTI_PERFORM;
 2865|       |
 2866|   255k|    if(MSTATE_COMPLETED == data->mstate) {
  ------------------
  |  Branch (2866:8): [True: 9.96k, False: 245k]
  ------------------
 2867|  9.96k|      handle_completed(multi, data, result);
 2868|  9.96k|      return CURLM_OK;
 2869|  9.96k|    }
 2870|   255k|  } while((mresult == CURLM_CALL_MULTI_PERFORM) ||
  ------------------
  |  Branch (2870:11): [True: 98.6k, False: 146k]
  ------------------
 2871|   146k|          multi_ischanged(multi, FALSE));
  ------------------
  |  | 1056|   146k|#define FALSE false
  ------------------
  |  Branch (2871:11): [True: 3.16k, False: 143k]
  ------------------
 2872|       |
 2873|   143k|  data->result = result;
 2874|   143k|  return mresult;
 2875|   153k|}
multi.c:multi_posttransfer:
 1944|  14.0k|{
 1945|       |#if defined(HAVE_SIGNAL) && defined(SIGPIPE) && !defined(MSG_NOSIGNAL)
 1946|       |  /* restore the signal handler for SIGPIPE before we get back */
 1947|       |  if(!data->set.no_signal)
 1948|       |    signal(SIGPIPE, data->state.prev_signal);
 1949|       |#else
 1950|  14.0k|  (void)data;
 1951|  14.0k|#endif
 1952|  14.0k|}
multi.c:multistate_init:
 2471|  9.97k|{
 2472|  9.97k|  if(!data->state.really_alive) {
  ------------------
  |  Branch (2472:6): [True: 9.97k, False: 0]
  ------------------
 2473|  9.97k|    data->state.really_alive = TRUE;
  ------------------
  |  | 1053|  9.97k|#define TRUE true
  ------------------
 2474|  9.97k|    ++data->multi->xfers_really_alive;
 2475|  9.97k|    if(data->multi->xfers_really_alive == 1) {
  ------------------
  |  Branch (2475:8): [True: 9.97k, False: 0]
  ------------------
 2476|  9.97k|      CURLMcode mresult = multi_assess_wakeup(data->multi);
 2477|  9.97k|      if(mresult) {
  ------------------
  |  Branch (2477:10): [True: 0, False: 9.97k]
  ------------------
 2478|      0|        failf(data, "error enabling wakeup listening: %d", mresult);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2479|      0|        return mresult;
 2480|      0|      }
 2481|  9.97k|    }
 2482|  9.97k|  }
 2483|       |
 2484|  9.97k|  *result = Curl_pretransfer(data);
 2485|  9.97k|  if(*result)
  ------------------
  |  Branch (2485:6): [True: 0, False: 9.97k]
  ------------------
 2486|      0|    return CURLM_OK;
 2487|       |
 2488|       |  /* after init, go SETUP */
 2489|  9.97k|  multistate(data, MSTATE_SETUP);
  ------------------
  |  |  196|  9.97k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2490|  9.97k|  Curl_pgrsTime(data, TIMER_STARTOP);
 2491|  9.97k|  return CURLM_CALL_MULTI_PERFORM;
 2492|  9.97k|}
multi.c:multistate_setup:
 2495|  14.9k|{
 2496|  14.9k|  Curl_pgrsTime(data, TIMER_STARTSINGLE);
 2497|  14.9k|  if(data->set.timeout)
  ------------------
  |  Branch (2497:6): [True: 14.9k, False: 0]
  ------------------
 2498|  14.9k|    Curl_expire(data, data->set.timeout, EXPIRE_TIMEOUT);
 2499|  14.9k|  if(data->set.connecttimeout)
  ------------------
  |  Branch (2499:6): [True: 14.9k, False: 0]
  ------------------
 2500|       |    /* Since a connection might go to pending and back to CONNECT several
 2501|       |       times before it actually takes off, we need to set the timeout once
 2502|       |       in SETUP before we enter CONNECT the first time. */
 2503|  14.9k|    Curl_expire(data, data->set.connecttimeout, EXPIRE_CONNECTTIMEOUT);
 2504|       |
 2505|  14.9k|  multistate(data, MSTATE_CONNECT);
  ------------------
  |  |  196|  14.9k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2506|  14.9k|  return CURLM_CALL_MULTI_PERFORM;
 2507|  14.9k|}
multi.c:multistate_connect:
 2323|  14.9k|{
 2324|       |  /* Connect. We want to get a connection identifier filled in. This state can
 2325|       |     be entered from SETUP and from PENDING. */
 2326|  14.9k|  bool connected;
 2327|  14.9k|  CURLMcode mresult = CURLM_OK;
 2328|  14.9k|  CURLcode result = Curl_connect(data, &connected);
 2329|  14.9k|  if(result == CURLE_NO_CONNECTION_AVAILABLE) {
  ------------------
  |  Branch (2329:6): [True: 0, False: 14.9k]
  ------------------
 2330|       |    /* There was no connection available. We will go to the pending state and
 2331|       |       wait for an available connection. */
 2332|      0|    multistate(data, MSTATE_PENDING);
  ------------------
  |  |  196|      0|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2333|       |    /* move from process to pending set */
 2334|      0|    Curl_uint32_bset_remove(&multi->process, data->mid);
 2335|      0|    Curl_uint32_bset_remove(&multi->dirty, data->mid);
 2336|      0|    Curl_uint32_bset_add(&multi->pending, data->mid);
 2337|      0|    *resultp = CURLE_OK;
 2338|      0|    return mresult;
 2339|      0|  }
 2340|  14.9k|  else
 2341|  14.9k|    multi_schedule_pending(data->multi);
 2342|       |
 2343|  14.9k|  if(!result) {
  ------------------
  |  Branch (2343:6): [True: 14.2k, False: 665]
  ------------------
 2344|       |    /* after the connect has been sent off, go WAITCONNECT unless the
 2345|       |       protocol connect is already done and we can go directly to WAITDO or
 2346|       |       DO! */
 2347|  14.2k|    mresult = CURLM_CALL_MULTI_PERFORM;
 2348|       |
 2349|  14.2k|    if(connected) {
  ------------------
  |  Branch (2349:8): [True: 0, False: 14.2k]
  ------------------
 2350|      0|      if(!data->conn->bits.reuse &&
  ------------------
  |  Branch (2350:10): [True: 0, False: 0]
  ------------------
 2351|      0|         Curl_conn_is_multiplex(data->conn, FIRSTSOCKET)) {
  ------------------
  |  |  233|      0|#define FIRSTSOCKET     0
  ------------------
  |  Branch (2351:10): [True: 0, False: 0]
  ------------------
 2352|       |        /* new connection, can multiplex, wake pending handles */
 2353|      0|        multi_schedule_pending(data->multi);
 2354|      0|      }
 2355|      0|      multistate(data, MSTATE_PROTOCONNECT);
  ------------------
  |  |  196|      0|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2356|      0|    }
 2357|  14.2k|    else {
 2358|  14.2k|      multistate(data, MSTATE_CONNECTING);
  ------------------
  |  |  196|  14.2k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2359|  14.2k|    }
 2360|  14.2k|  }
 2361|  14.9k|  *resultp = result;
 2362|  14.9k|  return mresult;
 2363|  14.9k|}
multi.c:multistate_connecting:
 2512|  20.4k|{
 2513|  20.4k|  bool connected;
 2514|       |
 2515|  20.4k|  if(!data->conn) {
  ------------------
  |  Branch (2515:6): [True: 0, False: 20.4k]
  ------------------
 2516|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2516:5): [Folded, False: 0]
  |  Branch (2516:5): [Folded, False: 0]
  ------------------
 2517|      0|    *result = CURLE_FAILED_INIT;
 2518|      0|    return CURLM_OK;
 2519|      0|  }
 2520|  20.4k|  if(!Curl_xfer_recv_is_paused(data)) {
  ------------------
  |  Branch (2520:6): [True: 20.4k, False: 0]
  ------------------
 2521|  20.4k|    *result = Curl_conn_connect(data, FIRSTSOCKET, FALSE, &connected);
  ------------------
  |  |  233|  20.4k|#define FIRSTSOCKET     0
  ------------------
                  *result = Curl_conn_connect(data, FIRSTSOCKET, FALSE, &connected);
  ------------------
  |  | 1056|  20.4k|#define FALSE false
  ------------------
 2522|  20.4k|    if(connected && !*result) {
  ------------------
  |  Branch (2522:8): [True: 13.0k, False: 7.34k]
  |  Branch (2522:21): [True: 13.0k, False: 0]
  ------------------
 2523|  13.0k|      if(!data->conn->bits.reuse &&
  ------------------
  |  Branch (2523:10): [True: 8.97k, False: 4.10k]
  ------------------
 2524|  8.97k|         Curl_conn_is_multiplex(data->conn, FIRSTSOCKET)) {
  ------------------
  |  |  233|  8.97k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (2524:10): [True: 0, False: 8.97k]
  ------------------
 2525|       |        /* new connection, can multiplex, wake pending handles */
 2526|      0|        multi_schedule_pending(data->multi);
 2527|      0|      }
 2528|  13.0k|      multistate(data, MSTATE_PROTOCONNECT);
  ------------------
  |  |  196|  13.0k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2529|  13.0k|      return CURLM_CALL_MULTI_PERFORM;
 2530|  13.0k|    }
 2531|  7.34k|    else if(*result) {
  ------------------
  |  Branch (2531:13): [True: 827, False: 6.51k]
  ------------------
 2532|       |      /* failure detected */
 2533|    827|      CURL_TRC_M(data, "connect failed -> %d", (int)*result);
  ------------------
  |  |  148|    827|  do {                                   \
  |  |  149|    827|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|    827|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|    827|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  1.65k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 827, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 827]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  1.65k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|    827|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|    827|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|    827|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 827]
  |  |  ------------------
  ------------------
 2534|    827|      multi_posttransfer(data);
 2535|    827|      multi_done(data, *result, TRUE);
  ------------------
  |  | 1053|    827|#define TRUE true
  ------------------
 2536|    827|      *stream_error = TRUE;
  ------------------
  |  | 1053|    827|#define TRUE true
  ------------------
 2537|    827|      return CURLM_OK;
 2538|    827|    }
 2539|  20.4k|  }
 2540|  6.51k|  return CURLM_OK;
 2541|  20.4k|}
multi.c:multistate_protoconnect:
 2546|  13.0k|{
 2547|  13.0k|  bool protocol_connected = FALSE;
  ------------------
  |  | 1056|  13.0k|#define FALSE false
  ------------------
 2548|       |
 2549|  13.0k|  if(!*result && data->conn->bits.reuse) {
  ------------------
  |  Branch (2549:6): [True: 13.0k, False: 0]
  |  Branch (2549:18): [True: 4.10k, False: 8.97k]
  ------------------
 2550|       |    /* ftp seems to hang when protoconnect on reused connection since we
 2551|       |     * handle PROTOCONNECT in general inside the filters, it seems wrong to
 2552|       |     * restart this on a reused connection.
 2553|       |     */
 2554|  4.10k|    multistate(data, MSTATE_DO);
  ------------------
  |  |  196|  4.10k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2555|  4.10k|    return CURLM_CALL_MULTI_PERFORM;
 2556|  4.10k|  }
 2557|  8.97k|  if(!*result)
  ------------------
  |  Branch (2557:6): [True: 8.97k, False: 0]
  ------------------
 2558|  8.97k|    *result = protocol_connect(data, &protocol_connected);
 2559|  8.97k|  if(!*result && !protocol_connected) {
  ------------------
  |  Branch (2559:6): [True: 8.97k, False: 0]
  |  Branch (2559:18): [True: 0, False: 8.97k]
  ------------------
 2560|       |    /* switch to waiting state */
 2561|      0|    multistate(data, MSTATE_PROTOCONNECTING);
  ------------------
  |  |  196|      0|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2562|      0|    return CURLM_CALL_MULTI_PERFORM;
 2563|      0|  }
 2564|  8.97k|  else if(!*result) {
  ------------------
  |  Branch (2564:11): [True: 8.97k, False: 0]
  ------------------
 2565|       |    /* protocol connect has completed, go WAITDO or DO */
 2566|  8.97k|    multistate(data, MSTATE_DO);
  ------------------
  |  |  196|  8.97k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2567|  8.97k|    return CURLM_CALL_MULTI_PERFORM;
 2568|  8.97k|  }
 2569|       |
 2570|       |  /* failure detected */
 2571|      0|  multi_posttransfer(data);
 2572|      0|  multi_done(data, *result, TRUE);
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2573|       |  *stream_error = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2574|      0|  return CURLM_OK;
 2575|  8.97k|}
multi.c:protocol_connect:
 1914|  8.97k|{
 1915|  8.97k|  struct connectdata *conn = data->conn;
 1916|  8.97k|  CURLcode result = CURLE_OK;
 1917|       |
 1918|  8.97k|  DEBUGASSERT(conn);
  ------------------
  |  | 1083|  8.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1918:3): [True: 0, False: 8.97k]
  |  Branch (1918:3): [True: 8.97k, False: 0]
  ------------------
 1919|  8.97k|  DEBUGASSERT(protocol_done);
  ------------------
  |  | 1083|  8.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1919:3): [True: 0, False: 8.97k]
  |  Branch (1919:3): [True: 8.97k, False: 0]
  ------------------
 1920|  8.97k|  DEBUGASSERT(Curl_conn_is_connected(conn, FIRSTSOCKET));
  ------------------
  |  | 1083|  8.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1920:3): [True: 0, False: 8.97k]
  |  Branch (1920:3): [True: 8.97k, False: 0]
  ------------------
 1921|       |
 1922|  8.97k|  *protocol_done = FALSE;
  ------------------
  |  | 1056|  8.97k|#define FALSE false
  ------------------
 1923|  8.97k|  if(!conn->bits.protoconnstart) {
  ------------------
  |  Branch (1923:6): [True: 8.97k, False: 0]
  ------------------
 1924|  8.97k|    if(conn->scheme->run->connect_it) {
  ------------------
  |  Branch (1924:8): [True: 0, False: 8.97k]
  ------------------
 1925|       |      /* Call the protocol-specific connect function */
 1926|      0|      result = conn->scheme->run->connect_it(data, protocol_done);
 1927|      0|      if(result)
  ------------------
  |  Branch (1927:10): [True: 0, False: 0]
  ------------------
 1928|      0|        return result;
 1929|      0|    }
 1930|  8.97k|    conn->bits.protoconnstart = TRUE;
  ------------------
  |  | 1053|  8.97k|#define TRUE true
  ------------------
 1931|  8.97k|  }
 1932|       |
 1933|       |  /* Unless this protocol does not have any protocol-connect callback, as
 1934|       |     then we know we are done. */
 1935|  8.97k|  if(!conn->scheme->run->connecting)
  ------------------
  |  Branch (1935:6): [True: 8.97k, False: 0]
  ------------------
 1936|  8.97k|    *protocol_done = TRUE;
  ------------------
  |  | 1053|  8.97k|#define TRUE true
  ------------------
 1937|  8.97k|  return CURLE_OK;
 1938|  8.97k|}
multi.c:multistate_do:
 2162|  13.0k|{
 2163|  13.0k|  CURLMcode mresult = CURLM_OK;
 2164|  13.0k|  CURLcode result = CURLE_OK;
 2165|  13.0k|  if(data->set.fprereq) {
  ------------------
  |  Branch (2165:6): [True: 0, False: 13.0k]
  ------------------
 2166|      0|    struct Curl_mapi_guard guard;
 2167|      0|    int prereq_rc;
 2168|       |
 2169|       |    /* call the prerequest callback function */
 2170|      0|    CURL_CBAPI_START(&guard, data, easy_fprereq);
  ------------------
  |  |  200|      0|  Curl_cbapi_enter((g), (d), NULL, CURL_CBAPI_FN_##fn)
  ------------------
 2171|      0|    prereq_rc = data->set.fprereq(data->set.prereq_userp,
 2172|      0|                                  data->info.primary.remote_ip,
 2173|      0|                                  data->info.primary.local_ip,
 2174|      0|                                  data->info.primary.remote_port,
 2175|      0|                                  data->info.primary.local_port);
 2176|      0|    CURL_CBAPI_END(&guard);
  ------------------
  |  |  204|      0|  Curl_cbapi_leave(g)
  ------------------
 2177|      0|    if(prereq_rc != CURL_PREREQFUNC_OK) {
  ------------------
  |  |  506|      0|#define CURL_PREREQFUNC_OK 0
  ------------------
  |  Branch (2177:8): [True: 0, False: 0]
  ------------------
 2178|      0|      failf(data, "operation aborted by pre-request callback");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 2179|       |      /* failure in pre-request callback - do not do any other processing */
 2180|      0|      result = CURLE_ABORTED_BY_CALLBACK;
 2181|      0|      multi_posttransfer(data);
 2182|      0|      multi_done(data, result, FALSE);
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 2183|      0|      *stream_errorp = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2184|      0|      goto end;
 2185|      0|    }
 2186|      0|  }
 2187|       |
 2188|  13.0k|  if(data->set.connect_only && !data->set.connect_only_ws) {
  ------------------
  |  Branch (2188:6): [True: 486, False: 12.5k]
  |  Branch (2188:32): [True: 1, False: 485]
  ------------------
 2189|      1|    multistate(data, MSTATE_DONE);
  ------------------
  |  |  196|      1|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2190|      1|    mresult = CURLM_CALL_MULTI_PERFORM;
 2191|      1|  }
 2192|  13.0k|  else {
 2193|  13.0k|    bool dophase_done = FALSE;
  ------------------
  |  | 1056|  13.0k|#define FALSE false
  ------------------
 2194|       |    /* Perform the protocol's DO action */
 2195|  13.0k|    result = multi_do(data, &dophase_done);
 2196|       |
 2197|  13.0k|    if(!result) {
  ------------------
  |  Branch (2197:8): [True: 13.0k, False: 26]
  ------------------
 2198|  13.0k|      if(!dophase_done) {
  ------------------
  |  Branch (2198:10): [True: 0, False: 13.0k]
  ------------------
 2199|      0|#ifndef CURL_DISABLE_FTP
 2200|       |        /* some steps needed for wildcard matching */
 2201|      0|        if(data->state.wildcardmatch) {
  ------------------
  |  Branch (2201:12): [True: 0, False: 0]
  ------------------
 2202|      0|          struct WildcardData *wc = data->wildcard;
 2203|      0|          if(wc->state == CURLWC_DONE || wc->state == CURLWC_SKIP) {
  ------------------
  |  Branch (2203:14): [True: 0, False: 0]
  |  Branch (2203:42): [True: 0, False: 0]
  ------------------
 2204|       |            /* skip some states if it is important */
 2205|      0|            multi_done(data, CURLE_OK, FALSE);
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 2206|       |
 2207|       |            /* if there is no connection left, skip the DONE state */
 2208|      0|            multistate(data, data->conn ? MSTATE_DONE : MSTATE_COMPLETED);
  ------------------
  |  |  196|      0|#define multistate(x, y) mstate(x, y, __LINE__)
  |  |  ------------------
  |  |  |  Branch (196:36): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2209|      0|            mresult = CURLM_CALL_MULTI_PERFORM;
 2210|      0|            goto end;
 2211|      0|          }
 2212|      0|        }
 2213|      0|#endif
 2214|       |        /* DO was not completed in one function call, we must continue
 2215|       |           DOING... */
 2216|      0|        multistate(data, MSTATE_DOING);
  ------------------
  |  |  196|      0|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2217|      0|        mresult = CURLM_CALL_MULTI_PERFORM;
 2218|      0|      }
 2219|       |
 2220|       |      /* after DO, go DO_DONE... or DO_MORE */
 2221|  13.0k|      else if(data->conn->bits.do_more) {
  ------------------
  |  Branch (2221:15): [True: 0, False: 13.0k]
  ------------------
 2222|       |        /* we are supposed to do more, but we need to sit down, relax and wait
 2223|       |           a little while first */
 2224|      0|        multistate(data, MSTATE_DOING_MORE);
  ------------------
  |  |  196|      0|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2225|      0|        mresult = CURLM_CALL_MULTI_PERFORM;
 2226|      0|      }
 2227|  13.0k|      else {
 2228|       |        /* we are done with the DO, now DID */
 2229|  13.0k|        multistate(data, MSTATE_DID);
  ------------------
  |  |  196|  13.0k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2230|  13.0k|        mresult = CURLM_CALL_MULTI_PERFORM;
 2231|  13.0k|      }
 2232|  13.0k|    }
 2233|     26|    else if((result == CURLE_SEND_ERROR) &&
  ------------------
  |  Branch (2233:13): [True: 6, False: 20]
  ------------------
 2234|      6|            data->conn->bits.reuse) {
  ------------------
  |  Branch (2234:13): [True: 0, False: 6]
  ------------------
 2235|       |      /*
 2236|       |       * In this situation, a connection that we were trying to use may have
 2237|       |       * unexpectedly died. If possible, send the connection back to the
 2238|       |       * CONNECT phase so we can try again.
 2239|       |       */
 2240|      0|      const struct Curl_scheme *handler = data->conn->scheme;
 2241|      0|      char *newurl = NULL;
 2242|      0|      followtype follow = FOLLOW_NONE;
 2243|      0|      CURLcode drc;
 2244|       |
 2245|      0|      drc = Curl_retry_request(data, &newurl);
 2246|      0|      if(drc) {
  ------------------
  |  Branch (2246:10): [True: 0, False: 0]
  ------------------
 2247|       |        /* a failure here pretty much implies an out of memory */
 2248|      0|        result = drc;
 2249|      0|        *stream_errorp = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2250|      0|      }
 2251|       |
 2252|      0|      multi_posttransfer(data);
 2253|      0|      drc = multi_done(data, result, FALSE);
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 2254|       |
 2255|       |      /* When set to retry the connection, we must go back to the CONNECT
 2256|       |       * state */
 2257|      0|      if(newurl) {
  ------------------
  |  Branch (2257:10): [True: 0, False: 0]
  ------------------
 2258|      0|        if(!drc || (drc == CURLE_SEND_ERROR)) {
  ------------------
  |  Branch (2258:12): [True: 0, False: 0]
  |  Branch (2258:20): [True: 0, False: 0]
  ------------------
 2259|      0|          follow = FOLLOW_RETRY;
 2260|      0|          drc = multi_follow(data, handler, newurl, follow);
 2261|      0|          if(!drc) {
  ------------------
  |  Branch (2261:14): [True: 0, False: 0]
  ------------------
 2262|      0|            multistate(data, MSTATE_SETUP);
  ------------------
  |  |  196|      0|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2263|      0|            mresult = CURLM_CALL_MULTI_PERFORM;
 2264|      0|            result = CURLE_OK;
 2265|      0|          }
 2266|      0|          else {
 2267|       |            /* Follow failed */
 2268|      0|            result = drc;
 2269|      0|          }
 2270|      0|        }
 2271|      0|        else {
 2272|       |          /* done did not return OK or SEND_ERROR */
 2273|      0|          result = drc;
 2274|      0|        }
 2275|      0|      }
 2276|      0|      else {
 2277|       |        /* Have error handler disconnect conn if we cannot retry */
 2278|      0|        *stream_errorp = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2279|      0|      }
 2280|      0|      curlx_free(newurl);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2281|      0|    }
 2282|     26|    else {
 2283|       |      /* failure detected */
 2284|     26|      multi_posttransfer(data);
 2285|     26|      if(data->conn)
  ------------------
  |  Branch (2285:10): [True: 26, False: 0]
  ------------------
 2286|     26|        multi_done(data, result, FALSE);
  ------------------
  |  | 1056|     26|#define FALSE false
  ------------------
 2287|     26|      *stream_errorp = TRUE;
  ------------------
  |  | 1053|     26|#define TRUE true
  ------------------
 2288|     26|    }
 2289|  13.0k|  }
 2290|  13.0k|end:
 2291|  13.0k|  *resultp = result;
 2292|  13.0k|  return mresult;
 2293|  13.0k|}
multi.c:multi_do:
 1784|  13.0k|{
 1785|  13.0k|  CURLcode result = CURLE_OK;
 1786|  13.0k|  struct connectdata *conn = data->conn;
 1787|       |
 1788|  13.0k|  DEBUGASSERT(conn);
  ------------------
  |  | 1083|  13.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1788:3): [True: 0, False: 13.0k]
  |  Branch (1788:3): [True: 13.0k, False: 0]
  ------------------
 1789|  13.0k|  DEBUGASSERT(conn->scheme);
  ------------------
  |  | 1083|  13.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1789:3): [True: 0, False: 13.0k]
  |  Branch (1789:3): [True: 13.0k, False: 0]
  ------------------
 1790|       |
 1791|  13.0k|  if(conn->scheme->run->do_it)
  ------------------
  |  Branch (1791:6): [True: 13.0k, False: 0]
  ------------------
 1792|  13.0k|    result = conn->scheme->run->do_it(data, done);
 1793|       |
 1794|  13.0k|  return result;
 1795|  13.0k|}
multi.c:multi_follow:
 1964|  5.35k|{
 1965|  5.35k|  if(handler && handler->run->follow)
  ------------------
  |  Branch (1965:6): [True: 5.35k, False: 0]
  |  Branch (1965:17): [True: 5.35k, False: 0]
  ------------------
 1966|  5.35k|    return handler->run->follow(data, newurl, type);
 1967|       |
 1968|      0|  if(type == FOLLOW_RETRY)
  ------------------
  |  Branch (1968:6): [True: 0, False: 0]
  ------------------
 1969|       |    /* Retries are generic and do not require protocol-specific redirect
 1970|       |       handling. */
 1971|      0|    return CURLE_OK;
 1972|       |
 1973|      0|  return CURLE_TOO_MANY_REDIRECTS;
 1974|      0|}
multi.c:multistate_did:
 2658|  13.0k|{
 2659|  13.0k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1083|  13.0k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2659:3): [True: 0, False: 13.0k]
  |  Branch (2659:3): [True: 13.0k, False: 0]
  ------------------
 2660|  13.0k|  if(data->conn->bits.multiplex)
  ------------------
  |  Branch (2660:6): [True: 4.38k, False: 8.67k]
  ------------------
 2661|       |    /* Check if we can move pending requests to send pipe */
 2662|  4.38k|    multi_schedule_pending(multi); /* multiplexed */
 2663|       |
 2664|       |  /* Only perform the transfer if there is a good socket to work with.
 2665|       |     Having both BAD is a signal to skip immediately to DONE */
 2666|  13.0k|  if(CONN_SOCK_IDX_VALID(data->conn->recv_idx) ||
  ------------------
  |  |  310|  26.1k|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (310:36): [True: 13.0k, False: 0]
  |  |  |  Branch (310:50): [True: 13.0k, False: 0]
  |  |  ------------------
  ------------------
 2667|      0|     CONN_SOCK_IDX_VALID(data->conn->send_idx))
  ------------------
  |  |  310|      0|#define CONN_SOCK_IDX_VALID(i)    (((i) >= 0) && ((i) < 2))
  |  |  ------------------
  |  |  |  Branch (310:36): [True: 0, False: 0]
  |  |  |  Branch (310:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2668|  13.0k|    multistate(data, MSTATE_PERFORMING);
  ------------------
  |  |  196|  13.0k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2669|      0|  else {
 2670|      0|#ifndef CURL_DISABLE_FTP
 2671|      0|    if(data->state.wildcardmatch &&
  ------------------
  |  Branch (2671:8): [True: 0, False: 0]
  ------------------
 2672|      0|       ((data->conn->scheme->flags & PROTOPT_WILDCARD) == 0)) {
  ------------------
  |  |  230|      0|#define PROTOPT_WILDCARD (1 << 12)  /* protocol supports wildcard matching */
  ------------------
  |  Branch (2672:8): [True: 0, False: 0]
  ------------------
 2673|      0|      data->wildcard->state = CURLWC_DONE;
 2674|      0|    }
 2675|      0|#endif
 2676|      0|    multistate(data, MSTATE_DONE);
  ------------------
  |  |  196|      0|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2677|      0|  }
 2678|  13.0k|  return CURLM_CALL_MULTI_PERFORM;
 2679|  13.0k|}
multi.c:multistate_ratelimiting:
 2297|  1.65k|{
 2298|  1.65k|  CURLcode result = CURLE_OK;
 2299|  1.65k|  CURLMcode mresult = CURLM_OK;
 2300|  1.65k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1083|  1.65k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2300:3): [True: 0, False: 1.65k]
  |  Branch (2300:3): [True: 1.65k, False: 0]
  ------------------
 2301|       |  /* if both rates are within spec, resume transfer */
 2302|  1.65k|  result = Curl_pgrsCheck(data);
 2303|       |
 2304|  1.65k|  if(result) {
  ------------------
  |  Branch (2304:6): [True: 0, False: 1.65k]
  ------------------
 2305|      0|    if(!(data->conn->scheme->flags & PROTOPT_DUAL) &&
  ------------------
  |  |  208|      0|#define PROTOPT_DUAL (1 << 1)      /* this protocol uses two connections */
  ------------------
  |  Branch (2305:8): [True: 0, False: 0]
  ------------------
 2306|      0|       result != CURLE_HTTP2_STREAM)
  ------------------
  |  Branch (2306:8): [True: 0, False: 0]
  ------------------
 2307|      0|      streamclose(data->conn);
  ------------------
  |  |   87|      0|#define streamclose(x) Curl_conncontrol((x), CONNCTRL_STREAM_CLOSE)
  |  |  ------------------
  |  |  |  |   83|      0|#define CONNCTRL_STREAM_CLOSE    2
  |  |  ------------------
  ------------------
 2308|       |
 2309|      0|    multi_posttransfer(data);
 2310|      0|    multi_done(data, result, TRUE);
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2311|      0|  }
 2312|  1.65k|  else {
 2313|  1.65k|    if(!mspeed_check(data))
  ------------------
  |  Branch (2313:8): [True: 65, False: 1.59k]
  ------------------
 2314|     65|      mresult = CURLM_CALL_MULTI_PERFORM;
 2315|  1.65k|  }
 2316|  1.65k|  *resultp = result;
 2317|  1.65k|  return mresult;
 2318|  1.65k|}
multi.c:mspeed_check:
 1977|   291k|{
 1978|   291k|  if(Curl_rlimit_active(&data->progress.dl.rlimit) ||
  ------------------
  |  Branch (1978:6): [True: 291k, False: 0]
  ------------------
 1979|   291k|     Curl_rlimit_active(&data->progress.ul.rlimit)) {
  ------------------
  |  Branch (1979:6): [True: 0, False: 0]
  ------------------
 1980|       |    /* check if our send/recv limits require idle waits */
 1981|   291k|    const struct curltime *pnow = Curl_pgrs_now(data);
 1982|   291k|    timediff_t recv_ms, send_ms;
 1983|       |
 1984|   291k|    send_ms = Curl_rlimit_wait_ms(&data->progress.ul.rlimit, pnow);
 1985|   291k|    recv_ms = Curl_rlimit_wait_ms(&data->progress.dl.rlimit, pnow);
 1986|       |
 1987|   291k|    if(send_ms || recv_ms) {
  ------------------
  |  Branch (1987:8): [True: 0, False: 291k]
  |  Branch (1987:19): [True: 1.65k, False: 289k]
  ------------------
 1988|  1.65k|      if(data->mstate != MSTATE_RATELIMITING) {
  ------------------
  |  Branch (1988:10): [True: 68, False: 1.59k]
  ------------------
 1989|     68|        multistate(data, MSTATE_RATELIMITING);
  ------------------
  |  |  196|     68|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 1990|     68|      }
 1991|  1.65k|      Curl_expire(data, CURLMAX(send_ms, recv_ms), EXPIRE_TOOFAST);
  ------------------
  |  | 1295|  1.65k|#define CURLMAX(x, y) ((x) > (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1295:24): [True: 0, False: 1.65k]
  |  |  ------------------
  ------------------
 1992|  1.65k|      Curl_multi_clear_dirty(data);
 1993|  1.65k|      CURL_TRC_M(data, "[RLIMIT] waiting %" FMT_TIMEDIFF_T "ms",
  ------------------
  |  |  148|  1.65k|  do {                                   \
  |  |  149|  1.65k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  1.65k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  1.65k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  3.31k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 1.65k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 1.65k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  3.31k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  1.65k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  1.65k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (150:28): [True: 0, False: 0]
  |  |  ------------------
  |  |  151|  1.65k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 1.65k]
  |  |  ------------------
  ------------------
 1994|  1.65k|                 CURLMAX(send_ms, recv_ms));
 1995|  1.65k|      return CURLE_AGAIN;
 1996|  1.65k|    }
 1997|   289k|    else {
 1998|       |      /* when will the rate limits increase next? The transfer needs
 1999|       |       * to run again at that time or it may stall. */
 2000|   289k|      send_ms = Curl_rlimit_next_step_ms(&data->progress.ul.rlimit, pnow);
 2001|   289k|      recv_ms = Curl_rlimit_next_step_ms(&data->progress.dl.rlimit, pnow);
 2002|   289k|      if(send_ms || recv_ms) {
  ------------------
  |  Branch (2002:10): [True: 0, False: 289k]
  |  Branch (2002:21): [True: 289k, False: 0]
  ------------------
 2003|   289k|        timediff_t next_ms = CURLMIN(send_ms, recv_ms);
  ------------------
  |  | 1296|   289k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1296:24): [True: 289k, False: 0]
  |  |  ------------------
  ------------------
 2004|   289k|        if(!next_ms)
  ------------------
  |  Branch (2004:12): [True: 289k, False: 0]
  ------------------
 2005|   289k|          next_ms = CURLMAX(send_ms, recv_ms);
  ------------------
  |  | 1295|   289k|#define CURLMAX(x, y) ((x) > (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1295:24): [True: 0, False: 289k]
  |  |  ------------------
  ------------------
 2006|   289k|        Curl_expire(data, next_ms, EXPIRE_TOOFAST);
 2007|   289k|        CURL_TRC_M(data, "[RLIMIT] next token update in %" FMT_TIMEDIFF_T "ms",
  ------------------
  |  |  148|   289k|  do {                                   \
  |  |  149|   289k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|   289k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|   289k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|   578k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 289k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 289k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|   578k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|   289k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|   289k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|   289k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 289k]
  |  |  ------------------
  ------------------
 2008|   289k|                   next_ms);
 2009|   289k|      }
 2010|   289k|    }
 2011|   291k|  }
 2012|       |
 2013|   289k|  if(data->mstate != MSTATE_PERFORMING) {
  ------------------
  |  Branch (2013:6): [True: 65, False: 289k]
  ------------------
 2014|     65|    CURL_TRC_M(data, "[RLIMIT] wait over, continue");
  ------------------
  |  |  148|     65|  do {                                   \
  |  |  149|     65|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|     65|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|     65|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|    130|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 65, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 65]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|    130|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|     65|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|     65|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|     65|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 65]
  |  |  ------------------
  ------------------
 2015|     65|    multistate(data, MSTATE_PERFORMING);
  ------------------
  |  |  196|     65|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2016|     65|  }
 2017|   289k|  return CURLE_OK;
 2018|   291k|}
multi.c:multistate_performing:
 2023|   150k|{
 2024|   150k|  char *newurl = NULL;
 2025|   150k|  bool retry = FALSE;
  ------------------
  |  | 1056|   150k|#define FALSE false
  ------------------
 2026|   150k|  CURLMcode mresult = CURLM_OK;
 2027|   150k|  CURLcode result = *resultp = CURLE_OK;
 2028|   150k|  *stream_errorp = FALSE;
  ------------------
  |  | 1056|   150k|#define FALSE false
  ------------------
 2029|       |
 2030|   150k|  if(mspeed_check(data) == CURLE_AGAIN)
  ------------------
  |  Branch (2030:6): [True: 39, False: 150k]
  ------------------
 2031|     39|    return CURLM_OK;
 2032|       |
 2033|       |  /* read/write data if it is ready to do so */
 2034|   150k|  result = Curl_sendrecv(data);
 2035|       |
 2036|   150k|  if(data->req.done || (result == CURLE_RECV_ERROR)) {
  ------------------
  |  Branch (2036:6): [True: 7.17k, False: 143k]
  |  Branch (2036:24): [True: 263, False: 143k]
  ------------------
 2037|       |    /* If CURLE_RECV_ERROR happens early enough, we assume it was a race
 2038|       |     * condition and the server closed the reused connection exactly when we
 2039|       |     * wanted to use it, so figure out if that is indeed the case.
 2040|       |     */
 2041|  7.43k|    CURLcode ret = Curl_retry_request(data, &newurl);
 2042|  7.43k|    if(!ret)
  ------------------
  |  Branch (2042:8): [True: 7.43k, False: 0]
  ------------------
 2043|  7.43k|      retry = !!newurl;
 2044|      0|    else if(!result)
  ------------------
  |  Branch (2044:13): [True: 0, False: 0]
  ------------------
 2045|      0|      result = ret;
 2046|       |
 2047|  7.43k|    if(retry) {
  ------------------
  |  Branch (2047:8): [True: 596, False: 6.83k]
  ------------------
 2048|       |      /* if we are to retry, set the result to OK and consider the
 2049|       |         request as done */
 2050|    596|      result = CURLE_OK;
 2051|    596|      data->req.done = TRUE;
  ------------------
  |  | 1053|    596|#define TRUE true
  ------------------
 2052|    596|    }
 2053|  7.43k|  }
 2054|   143k|#ifndef CURL_DISABLE_HTTP
 2055|   143k|  else if((result == CURLE_HTTP2_STREAM) &&
  ------------------
  |  Branch (2055:11): [True: 432, False: 143k]
  ------------------
 2056|    432|          Curl_h2_http_1_1_error(data)) {
  ------------------
  |  Branch (2056:11): [True: 19, False: 413]
  ------------------
 2057|     19|    CURLcode ret = Curl_retry_request(data, &newurl);
 2058|       |
 2059|     19|    if(!ret) {
  ------------------
  |  Branch (2059:8): [True: 19, False: 0]
  ------------------
 2060|     19|      infof(data, "Downgrades to HTTP/1.1");
  ------------------
  |  |  143|     19|  do {                               \
  |  |  144|     19|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|     19|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 19, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 19]
  |  |  |  |  ------------------
  |  |  |  |  323|     19|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     19|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     19|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 19]
  |  |  ------------------
  ------------------
 2061|     19|      streamclose(data->conn);
  ------------------
  |  |   87|     19|#define streamclose(x) Curl_conncontrol((x), CONNCTRL_STREAM_CLOSE)
  |  |  ------------------
  |  |  |  |   83|     19|#define CONNCTRL_STREAM_CLOSE    2
  |  |  ------------------
  ------------------
 2062|     19|      data->state.http_neg.wanted = CURL_HTTP_V1x;
  ------------------
  |  |   40|     19|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
 2063|     19|      data->state.http_neg.allowed = CURL_HTTP_V1x;
  ------------------
  |  |   40|     19|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
 2064|       |      /* clear the error message bit too as we ignore the one we got */
 2065|     19|      data->state.errorbuf = FALSE;
  ------------------
  |  | 1056|     19|#define FALSE false
  ------------------
 2066|     19|      if(!newurl)
  ------------------
  |  Branch (2066:10): [True: 19, False: 0]
  ------------------
 2067|       |        /* typically for HTTP_1_1_REQUIRED error on first flight */
 2068|     19|        newurl = Curl_bufref_dup(&data->state.url);
  ------------------
  |  |   49|     19|#define Curl_bufref_dup(x) curlx_strdup(Curl_bufref_ptr(x))
  |  |  ------------------
  |  |  |  | 1476|     19|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  ------------------
 2069|     19|      if(!newurl) {
  ------------------
  |  Branch (2069:10): [True: 0, False: 19]
  ------------------
 2070|      0|        result = CURLE_OUT_OF_MEMORY;
 2071|      0|      }
 2072|     19|      else {
 2073|       |        /* if we are to retry, set the result to OK and consider the request
 2074|       |          as done */
 2075|     19|        retry = TRUE;
  ------------------
  |  | 1053|     19|#define TRUE true
  ------------------
 2076|     19|        result = CURLE_OK;
 2077|     19|        data->req.done = TRUE;
  ------------------
  |  | 1053|     19|#define TRUE true
  ------------------
 2078|     19|      }
 2079|     19|    }
 2080|      0|    else
 2081|      0|      result = ret;
 2082|     19|  }
 2083|   150k|#endif
 2084|       |
 2085|   150k|  if(result) {
  ------------------
  |  Branch (2085:6): [True: 5.27k, False: 145k]
  ------------------
 2086|       |    /*
 2087|       |     * The transfer phase returned error, we mark the connection to get closed
 2088|       |     * to prevent being reused. This is because we cannot possibly know if the
 2089|       |     * connection is in a good shape or not now. Unless it is a protocol which
 2090|       |     * uses two "channels" like FTP, as then the error happened in the data
 2091|       |     * connection.
 2092|       |     */
 2093|       |
 2094|  5.27k|    if(!(data->conn->scheme->flags & PROTOPT_DUAL) &&
  ------------------
  |  |  208|  5.27k|#define PROTOPT_DUAL (1 << 1)      /* this protocol uses two connections */
  ------------------
  |  Branch (2094:8): [True: 5.27k, False: 0]
  ------------------
 2095|  5.27k|       result != CURLE_HTTP2_STREAM)
  ------------------
  |  Branch (2095:8): [True: 4.86k, False: 413]
  ------------------
 2096|  4.86k|      streamclose(data->conn);
  ------------------
  |  |   87|  4.86k|#define streamclose(x) Curl_conncontrol((x), CONNCTRL_STREAM_CLOSE)
  |  |  ------------------
  |  |  |  |   83|  4.86k|#define CONNCTRL_STREAM_CLOSE    2
  |  |  ------------------
  ------------------
 2097|       |
 2098|  5.27k|    multi_posttransfer(data);
 2099|  5.27k|    multi_done(data, result, TRUE);
  ------------------
  |  | 1053|  5.27k|#define TRUE true
  ------------------
 2100|  5.27k|  }
 2101|   145k|  else if(data->req.done && !Curl_cwriter_is_paused(data)) {
  ------------------
  |  |  194|  7.22k|#define Curl_cwriter_is_paused(d)     ((bool)(d)->req.writer.paused)
  ------------------
  |  Branch (2101:11): [True: 7.22k, False: 138k]
  |  Branch (2101:29): [True: 7.22k, False: 0]
  ------------------
 2102|  7.22k|    const struct Curl_scheme *handler = data->conn->scheme;
 2103|       |
 2104|       |    /* call this even if the readwrite function returned error */
 2105|  7.22k|    multi_posttransfer(data);
 2106|       |
 2107|       |    /* When we follow redirects or is set to retry the connection, we must to
 2108|       |       go back to the CONNECT state */
 2109|  7.22k|    if(data->req.newurl || retry) {
  ------------------
  |  Branch (2109:8): [True: 4.38k, False: 2.83k]
  |  Branch (2109:28): [True: 615, False: 2.22k]
  ------------------
 2110|  5.00k|      followtype follow = FOLLOW_NONE;
 2111|  5.00k|      if(!retry) {
  ------------------
  |  Branch (2111:10): [True: 4.38k, False: 615]
  ------------------
 2112|       |        /* if the URL is a follow-location and not a retried request then
 2113|       |           figure out the URL here */
 2114|  4.38k|        curlx_free(newurl);
  ------------------
  |  | 1482|  4.38k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2115|  4.38k|        newurl = data->req.newurl;
 2116|  4.38k|        data->req.newurl = NULL;
 2117|  4.38k|        follow = FOLLOW_REDIR;
 2118|  4.38k|      }
 2119|    615|      else
 2120|    615|        follow = FOLLOW_RETRY;
 2121|  5.00k|      (void)multi_done(data, CURLE_OK, FALSE);
  ------------------
  |  | 1056|  5.00k|#define FALSE false
  ------------------
 2122|       |      /* multi_done() might return CURLE_GOT_NOTHING */
 2123|  5.00k|      result = multi_follow(data, handler, newurl, follow);
 2124|  5.00k|      if(!result) {
  ------------------
  |  Branch (2124:10): [True: 4.94k, False: 61]
  ------------------
 2125|  4.94k|        multistate(data, MSTATE_SETUP);
  ------------------
  |  |  196|  4.94k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2126|  4.94k|        mresult = CURLM_CALL_MULTI_PERFORM;
 2127|  4.94k|      }
 2128|  5.00k|    }
 2129|  2.22k|    else {
 2130|       |      /* after the transfer is done, go DONE */
 2131|       |
 2132|       |      /* but first check to see if we got a location info even though we are
 2133|       |         not following redirects */
 2134|  2.22k|      if(data->req.location) {
  ------------------
  |  Branch (2134:10): [True: 353, False: 1.86k]
  ------------------
 2135|    353|        curlx_free(newurl);
  ------------------
  |  | 1482|    353|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2136|    353|        newurl = data->req.location;
 2137|    353|        data->req.location = NULL;
 2138|    353|        result = multi_follow(data, handler, newurl, FOLLOW_FAKE);
 2139|    353|        if(result) {
  ------------------
  |  Branch (2139:12): [True: 1, False: 352]
  ------------------
 2140|      1|          *stream_errorp = TRUE;
  ------------------
  |  | 1053|      1|#define TRUE true
  ------------------
 2141|      1|          result = multi_done(data, result, TRUE);
  ------------------
  |  | 1053|      1|#define TRUE true
  ------------------
 2142|      1|        }
 2143|    353|      }
 2144|       |
 2145|  2.22k|      if(!result) {
  ------------------
  |  Branch (2145:10): [True: 2.21k, False: 1]
  ------------------
 2146|  2.21k|        multistate(data, MSTATE_DONE);
  ------------------
  |  |  196|  2.21k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2147|  2.21k|        mresult = CURLM_CALL_MULTI_PERFORM;
 2148|  2.21k|      }
 2149|  2.22k|    }
 2150|  7.22k|  }
 2151|   138k|  else { /* not errored, not done */
 2152|   138k|    mspeed_check(data);
 2153|   138k|  }
 2154|   150k|  curlx_free(newurl);
  ------------------
  |  | 1482|   150k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2155|   150k|  *resultp = result;
 2156|   150k|  return mresult;
 2157|   150k|}
multi.c:multistate_done:
 2682|  2.21k|{
 2683|  2.21k|  if(data->conn) {
  ------------------
  |  Branch (2683:6): [True: 2.21k, False: 0]
  ------------------
 2684|  2.21k|    CURLcode result;
 2685|       |
 2686|       |    /* post-transfer command */
 2687|  2.21k|    result = multi_done(data, *presult, FALSE);
  ------------------
  |  | 1056|  2.21k|#define FALSE false
  ------------------
 2688|       |
 2689|       |    /* allow a previously set error code take precedence */
 2690|  2.21k|    if(!(*presult))
  ------------------
  |  Branch (2690:8): [True: 2.21k, False: 0]
  ------------------
 2691|  2.21k|      *presult = result;
 2692|  2.21k|  }
 2693|       |
 2694|  2.21k|#ifndef CURL_DISABLE_FTP
 2695|  2.21k|  if(data->state.wildcardmatch) {
  ------------------
  |  Branch (2695:6): [True: 0, False: 2.21k]
  ------------------
 2696|      0|    if(data->wildcard->state != CURLWC_DONE) {
  ------------------
  |  Branch (2696:8): [True: 0, False: 0]
  ------------------
 2697|       |      /* if a wildcard is set and we are not ending -> lets start again
 2698|       |         with MSTATE_INIT */
 2699|      0|      multistate(data, MSTATE_INIT);
  ------------------
  |  |  196|      0|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2700|      0|      return CURLM_CALL_MULTI_PERFORM;
 2701|      0|    }
 2702|      0|  }
 2703|  2.21k|#endif
 2704|       |  /* after we have DONE what we are supposed to do, go COMPLETED, and
 2705|       |     it does not matter what the multi_done() returned! */
 2706|  2.21k|  multistate(data, MSTATE_COMPLETED);
  ------------------
  |  |  196|  2.21k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2707|  2.21k|  return CURLM_CALL_MULTI_PERFORM;
 2708|  2.21k|}
multi.c:is_finished:
 2370|   255k|{
 2371|   255k|  if(data->mstate < MSTATE_COMPLETED) {
  ------------------
  |  Branch (2371:6): [True: 252k, False: 2.21k]
  ------------------
 2372|   252k|    if(result) {
  ------------------
  |  Branch (2372:8): [True: 7.74k, False: 245k]
  ------------------
 2373|       |      /*
 2374|       |       * If an error was returned, and we are not in completed state now,
 2375|       |       * then we go to completed and consider this transfer aborted.
 2376|       |       */
 2377|       |
 2378|       |      /* No attempt to disconnect connections must be made before this -
 2379|       |         connection detach and termination happens only here */
 2380|       |
 2381|       |      /* Check if we can move pending requests to send pipe */
 2382|  7.74k|      multi_schedule_pending(multi); /* connection */
 2383|       |
 2384|  7.74k|      if(data->conn) {
  ------------------
  |  Branch (2384:10): [True: 0, False: 7.74k]
  ------------------
 2385|      0|        if(stream_error) {
  ------------------
  |  Branch (2385:12): [True: 0, False: 0]
  ------------------
 2386|       |          /* Do not attempt to send data over a connection that timed out */
 2387|      0|          bool dead_connection = result == CURLE_OPERATION_TIMEDOUT;
 2388|      0|          struct connectdata *conn = data->conn;
 2389|       |
 2390|       |          /* This is where we make sure that the conn pointer is reset.
 2391|       |             We do not have to do this in every case block above where a
 2392|       |             failure is detected */
 2393|      0|          Curl_detach_connection(data);
 2394|      0|          Curl_conn_terminate(data, conn, dead_connection);
 2395|      0|        }
 2396|      0|      }
 2397|  7.74k|      else if(data->mstate == MSTATE_CONNECT) {
  ------------------
  |  Branch (2397:15): [True: 665, False: 7.08k]
  ------------------
 2398|       |        /* Curl_connect() failed */
 2399|    665|        multi_posttransfer(data);
 2400|    665|        Curl_pgrsUpdate_nometer(data);
 2401|    665|      }
 2402|       |
 2403|  7.74k|      multistate(data, MSTATE_COMPLETED);
  ------------------
  |  |  196|  7.74k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2404|  7.74k|      return result;
 2405|  7.74k|    }
 2406|       |    /* if there is still a connection to use, call the progress function */
 2407|   245k|    else if(data->conn && Curl_conn_is_connected(data->conn, FIRSTSOCKET)) {
  ------------------
  |  |  233|   215k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (2407:13): [True: 215k, False: 29.8k]
  |  Branch (2407:27): [True: 198k, False: 16.6k]
  ------------------
 2408|   198k|      result = Curl_pgrsUpdate(data);
 2409|   198k|      if(result) {
  ------------------
  |  Branch (2409:10): [True: 0, False: 198k]
  ------------------
 2410|       |        /* aborted due to progress callback return code must close the
 2411|       |           connection */
 2412|      0|        streamclose(data->conn);
  ------------------
  |  |   87|      0|#define streamclose(x) Curl_conncontrol((x), CONNCTRL_STREAM_CLOSE)
  |  |  ------------------
  |  |  |  |   83|      0|#define CONNCTRL_STREAM_CLOSE    2
  |  |  ------------------
  ------------------
 2413|       |
 2414|       |        /* if not yet in DONE state, go there, otherwise COMPLETED */
 2415|      0|        multistate(data, (data->mstate < MSTATE_DONE) ?
  ------------------
  |  |  196|      0|#define multistate(x, y) mstate(x, y, __LINE__)
  |  |  ------------------
  |  |  |  Branch (196:36): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2416|      0|                   MSTATE_DONE : MSTATE_COMPLETED);
 2417|      0|        return result;
 2418|      0|      }
 2419|   198k|    }
 2420|   252k|  }
 2421|   247k|  return result;
 2422|   255k|}
multi.c:handle_completed:
 2427|  9.96k|{
 2428|  9.96k|  if(data->master_mid != UINT32_MAX) {
  ------------------
  |  Branch (2428:6): [True: 0, False: 9.96k]
  ------------------
 2429|       |    /* A sub transfer, not for msgsent to application. Is anyone still
 2430|       |     * interested in processing its results? */
 2431|      0|    if(data->sub_xfer_done) {
  ------------------
  |  Branch (2431:8): [True: 0, False: 0]
  ------------------
 2432|      0|      struct Curl_easy *master = Curl_multi_get_easy(multi, data->master_mid);
 2433|       |
 2434|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2435|      0|      if(master)
  ------------------
  |  Branch (2435:10): [True: 0, False: 0]
  ------------------
 2436|      0|        data->sub_xfer_done(data, master, result);
 2437|      0|      else
 2438|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2439|      0|    }
 2440|      0|  }
 2441|  9.96k|  else {
 2442|       |    /* now fill in the Curl_message with this info */
 2443|  9.96k|    struct Curl_message *msg = &data->msg;
 2444|       |
 2445|  9.96k|    msg->extmsg.msg = CURLMSG_DONE;
 2446|  9.96k|    msg->extmsg.easy_handle = data;
 2447|  9.96k|    msg->extmsg.data.result = result;
 2448|       |
 2449|  9.96k|    multi_addmsg(multi, msg);
 2450|  9.96k|    DEBUGASSERT(!data->conn);
  ------------------
  |  | 1083|  9.96k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2450:5): [True: 0, False: 9.96k]
  |  Branch (2450:5): [True: 9.96k, False: 0]
  ------------------
 2451|  9.96k|  }
 2452|  9.96k|  multistate(data, MSTATE_MSGSENT);
  ------------------
  |  |  196|  9.96k|#define multistate(x, y) mstate(x, y, __LINE__)
  ------------------
 2453|       |
 2454|       |  /* remove from the other sets, add to msgsent */
 2455|  9.96k|  Curl_uint32_bset_remove(&multi->process, data->mid);
 2456|  9.96k|  Curl_uint32_bset_remove(&multi->dirty, data->mid);
 2457|  9.96k|  Curl_uint32_bset_remove(&multi->pending, data->mid);
 2458|  9.96k|  Curl_uint32_bset_add(&multi->msgsent, data->mid);
 2459|  9.96k|  if(data->state.really_alive) {
  ------------------
  |  Branch (2459:6): [True: 9.96k, False: 0]
  ------------------
 2460|  9.96k|    data->state.really_alive = FALSE;
  ------------------
  |  | 1056|  9.96k|#define FALSE false
  ------------------
 2461|  9.96k|    --multi->xfers_really_alive;
 2462|  9.96k|    if(!multi->xfers_really_alive)
  ------------------
  |  Branch (2462:8): [True: 9.96k, False: 0]
  ------------------
 2463|  9.96k|      (void)multi_assess_wakeup(multi);
 2464|  9.96k|  }
 2465|  9.96k|  --multi->xfers_alive;
 2466|  9.96k|  if(!multi->xfers_alive)
  ------------------
  |  Branch (2466:6): [True: 9.96k, False: 0]
  ------------------
 2467|  9.96k|    multi_assess_wakeup(multi);
 2468|  9.96k|}
multi.c:multi_addmsg:
  217|  9.96k|{
  218|  9.96k|  if(!Curl_llist_count(&multi->msglist))
  ------------------
  |  Branch (218:6): [True: 9.96k, False: 0]
  ------------------
  219|  9.96k|    CURLM_NTFY(multi->admin, CURLMNOTIFY_INFO_READ);
  ------------------
  |  |   51|  9.96k|  do {                                                \
  |  |   52|  9.96k|    if((d) && (d)->multi && (d)->multi->ntfy.ntfy_cb) \
  |  |  ------------------
  |  |  |  Branch (52:8): [True: 9.96k, False: 0]
  |  |  |  Branch (52:15): [True: 9.96k, False: 0]
  |  |  |  Branch (52:29): [True: 0, False: 9.96k]
  |  |  ------------------
  |  |   53|  9.96k|      Curl_mntfy_add((d), (t));                       \
  |  |   54|  9.96k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (54:11): [Folded, False: 9.96k]
  |  |  ------------------
  ------------------
  220|  9.96k|  Curl_llist_append(&multi->msglist, msg, &msg->list);
  221|  9.96k|}
multi.c:multi_ischanged:
 1734|   563k|{
 1735|   563k|  bool retval = FALSE;
  ------------------
  |  | 1056|   563k|#define FALSE false
  ------------------
 1736|   563k|  DEBUGASSERT(multi);
  ------------------
  |  | 1083|   563k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1736:3): [True: 0, False: 563k]
  |  Branch (1736:3): [True: 563k, False: 0]
  ------------------
 1737|   563k|  if(multi) {
  ------------------
  |  Branch (1737:6): [True: 563k, False: 0]
  ------------------
 1738|   563k|    retval = (bool)multi->recheckstate;
 1739|   563k|    if(clear)
  ------------------
  |  Branch (1739:8): [True: 408k, False: 154k]
  ------------------
 1740|   408k|      multi->recheckstate = FALSE;
  ------------------
  |  | 1056|   408k|#define FALSE false
  ------------------
 1741|   563k|  }
 1742|   563k|  return retval;
 1743|   563k|}
multi.c:add_next_timeout:
 3141|    648|{
 3142|    648|  struct expire_timers *timeouts = &data->state.timeouts;
 3143|       |
 3144|    648|  DEBUGASSERT(!timeouts->registered);
  ------------------
  |  | 1083|    648|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3144:3): [True: 0, False: 648]
  |  Branch (3144:3): [True: 648, False: 0]
  ------------------
 3145|  1.29k|  while(timeouts->first < EXPIRE_LAST) {
  ------------------
  |  Branch (3145:9): [True: 1.29k, False: 0]
  ------------------
 3146|  1.29k|    timediff_t us = curlx_ptimediff_us(&timeouts->time[timeouts->first], pnow);
 3147|  1.29k|    if(us <= 0)  /* remove already expired timer */
  ------------------
  |  Branch (3147:8): [True: 648, False: 648]
  ------------------
 3148|    648|      timeouts->first = timeouts->next[timeouts->first];
 3149|    648|    else /* timeouts are sorted, first is first in the future now */
 3150|    648|      break;
 3151|  1.29k|  }
 3152|       |
 3153|    648|  if(timeouts->first < EXPIRE_LAST) {
  ------------------
  |  Branch (3153:6): [True: 648, False: 0]
  ------------------
 3154|       |    /* Insert this node again into the splay. Keep the timer in the list in
 3155|       |       case we need to recompute future timers. */
 3156|    648|    Curl_splayset(&timeouts->splaynode, data);
 3157|    648|    multi->timetree = Curl_splayinsert(&timeouts->time[timeouts->first],
 3158|    648|                                       multi->timetree, &timeouts->splaynode);
 3159|       |    timeouts->registered = TRUE;
  ------------------
  |  | 1053|    648|#define TRUE true
  ------------------
 3160|    648|  }
 3161|    648|  return CURLM_OK;
 3162|    648|}
multi.c:multi_handle_timeout:
 1825|   237k|{
 1826|   237k|  timediff_t timeout_ms;
 1827|       |
 1828|   237k|  timeout_ms = Curl_timeleft_ms(data);
 1829|   237k|  if(timeout_ms < 0) {
  ------------------
  |  Branch (1829:6): [True: 890, False: 236k]
  ------------------
 1830|       |    /* Handle timed out */
 1831|    890|    timerid base_timer = Curl_is_connecting(data) ?
  ------------------
  |  Branch (1831:26): [True: 342, False: 548]
  ------------------
 1832|    548|                         TIMER_STARTSINGLE : TIMER_STARTOP;
 1833|    890|    timediff_t elapsed_ms = Curl_pgrs_since_ms(data, NULL, base_timer);
 1834|    890|    if(data->mstate == MSTATE_CONNECTING)
  ------------------
  |  Branch (1834:8): [True: 342, False: 548]
  ------------------
 1835|    342|      failf(data, "%s timed out after %" FMT_TIMEDIFF_T " milliseconds",
  ------------------
  |  |   62|    342|#define failf Curl_failf
  ------------------
 1836|    342|            data->conn->bits.dns_resolved ? "Connection" : "Resolving",
  ------------------
  |  Branch (1836:13): [True: 342, False: 0]
  ------------------
 1837|    342|            elapsed_ms);
 1838|    548|    else {
 1839|    548|      struct SingleRequest *k = &data->req;
 1840|    548|      if(k->size != -1) {
  ------------------
  |  Branch (1840:10): [True: 9, False: 539]
  ------------------
 1841|      9|        failf(data, "Operation timed out after %" FMT_TIMEDIFF_T
  ------------------
  |  |   62|      9|#define failf Curl_failf
  ------------------
 1842|      9|              " milliseconds with %" FMT_OFF_T " out of %"
 1843|      9|              FMT_OFF_T " bytes received",
 1844|      9|              elapsed_ms, k->bytecount, k->size);
 1845|      9|      }
 1846|    539|      else {
 1847|    539|        failf(data, "Operation timed out after %" FMT_TIMEDIFF_T
  ------------------
  |  |   62|    539|#define failf Curl_failf
  ------------------
 1848|    539|              " milliseconds with %" FMT_OFF_T " bytes received",
 1849|    539|              elapsed_ms, k->bytecount);
 1850|    539|      }
 1851|    548|    }
 1852|    890|    *result = CURLE_OPERATION_TIMEDOUT;
 1853|    890|    if(data->conn) {
  ------------------
  |  Branch (1853:8): [True: 890, False: 0]
  ------------------
 1854|       |      /* Force connection closed if the connection has indeed been used */
 1855|    890|      if(data->mstate > MSTATE_DO) {
  ------------------
  |  Branch (1855:10): [True: 548, False: 342]
  ------------------
 1856|    548|        streamclose(data->conn);
  ------------------
  |  |   87|    548|#define streamclose(x) Curl_conncontrol((x), CONNCTRL_STREAM_CLOSE)
  |  |  ------------------
  |  |  |  |   83|    548|#define CONNCTRL_STREAM_CLOSE    2
  |  |  ------------------
  ------------------
 1857|    548|        *stream_error = TRUE;
  ------------------
  |  | 1053|    548|#define TRUE true
  ------------------
 1858|    548|      }
 1859|    890|      (void)multi_done(data, *result, TRUE);
  ------------------
  |  | 1053|    890|#define TRUE true
  ------------------
 1860|    890|    }
 1861|    890|    return TRUE;
  ------------------
  |  | 1053|    890|#define TRUE true
  ------------------
 1862|    890|  }
 1863|       |
 1864|   236k|  return FALSE;
  ------------------
  |  | 1056|   236k|#define FALSE false
  ------------------
 1865|   237k|}
multi.c:multi_timeouts_init:
 3121|  29.9k|{
 3122|  29.9k|  data->state.timeouts.first = EXPIRE_LAST;
 3123|       |  data->state.timeouts.registered = FALSE;
  ------------------
  |  | 1056|  29.9k|#define FALSE false
  ------------------
 3124|  29.9k|}
multi.c:multi_addtimeout:
 3721|   321k|{
 3722|   321k|  struct expire_timers *timeouts = &data->state.timeouts;
 3723|   321k|  expire_id *anchor = &timeouts->first;
 3724|       |
 3725|   321k|  if(eid >= EXPIRE_LAST) {
  ------------------
  |  Branch (3725:6): [True: 0, False: 321k]
  ------------------
 3726|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3726:5): [Folded, False: 0]
  |  Branch (3726:5): [Folded, False: 0]
  ------------------
 3727|      0|    return CURLM_BAD_FUNCTION_ARGUMENT;
 3728|      0|  }
 3729|       |  /* remove from list, store time and re-insert */
 3730|   321k|  multi_deltimeout(data, eid);
 3731|   321k|  memcpy(&timeouts->time[eid], stamp, sizeof(*stamp));
 3732|   530k|  while(*anchor < EXPIRE_LAST) {
  ------------------
  |  Branch (3732:9): [True: 403k, False: 127k]
  ------------------
 3733|   403k|    timediff_t ms = curlx_ptimediff_ms(&timeouts->time[*anchor], stamp);
 3734|   403k|    if(ms > 0) /* *anchor's time is after eid's time */
  ------------------
  |  Branch (3734:8): [True: 194k, False: 209k]
  ------------------
 3735|   194k|      break;
 3736|   209k|    anchor = &timeouts->next[*anchor];
 3737|   209k|  }
 3738|   321k|  timeouts->next[eid] = *anchor;
 3739|   321k|  timeouts->next[eid] = *anchor;
 3740|   321k|  *anchor = eid;
 3741|   321k|  DEBUGASSERT(multi_timeouts_check(data));
  ------------------
  |  | 1083|   321k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3741:3): [True: 0, False: 321k]
  |  Branch (3741:3): [True: 321k, False: 0]
  ------------------
 3742|   321k|  CURL_TRC_TIMER(data, eid, "set for %" FMT_TIMEDIFF_T "us",
  ------------------
  |  |  173|   321k|  do {                                        \
  |  |  174|   321k|    if(CURL_TRC_TIMER_is_verbose(data))       \
  |  |  ------------------
  |  |  |  |  139|   321k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_timer)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|   321k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|   642k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 321k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 321k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|   642k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|   321k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  175|   321k|      Curl_trc_timer(data, tid, __VA_ARGS__); \
  |  |  176|   321k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (176:11): [Folded, False: 321k]
  |  |  ------------------
  ------------------
 3743|   321k|                 curlx_ptimediff_us(stamp, Curl_pgrs_now(data)));
 3744|   321k|  return CURLM_OK;
 3745|   321k|}
multi.c:multi_timeouts_check:
 3642|   651k|{
 3643|   651k|  struct expire_timers *timeouts = &data->state.timeouts;
 3644|   651k|  expire_id eid;
 3645|   651k|  int i = 0;
 3646|  1.81M|  for(eid = timeouts->first; eid < EXPIRE_LAST; eid = timeouts->next[eid]) {
  ------------------
  |  Branch (3646:30): [True: 1.15M, False: 651k]
  ------------------
 3647|  1.15M|    if(++i >= EXPIRE_LAST) {
  ------------------
  |  Branch (3647:8): [True: 0, False: 1.15M]
  ------------------
 3648|      0|      failf(data, "expire timeouts looped: %d iterations and no end", i);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3649|      0|      return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 3650|      0|    }
 3651|  1.15M|    if(eid == timeouts->next[eid]) {
  ------------------
  |  Branch (3651:8): [True: 0, False: 1.15M]
  ------------------
 3652|      0|      failf(data, "expire timeouts wrong: %d points to itself", (int)eid);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3653|      0|      return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 3654|      0|    }
 3655|  1.15M|    if((timeouts->next[eid] < EXPIRE_LAST) &&
  ------------------
  |  Branch (3655:8): [True: 520k, False: 639k]
  ------------------
 3656|   520k|       (curlx_ptimediff_ms(&timeouts->time[eid],
  ------------------
  |  Branch (3656:8): [True: 0, False: 520k]
  ------------------
 3657|   520k|                           &timeouts->time[timeouts->next[eid]]) > 0)) {
 3658|      0|      failf(data, "expire timeouts not sorted: %d happens after %d but "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3659|      0|            "is listed before", (int)eid, (int)timeouts->next[eid]);
 3660|      0|      return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 3661|      0|    }
 3662|  1.15M|  }
 3663|   651k|  return TRUE;
  ------------------
  |  | 1053|   651k|#define TRUE true
  ------------------
 3664|   651k|}
multi.c:multi_deltimeout:
 3673|   330k|{
 3674|   330k|  struct expire_timers *timeouts = &data->state.timeouts;
 3675|   330k|  expire_id orig_first = timeouts->first;
 3676|   330k|  expire_id *anchor = &timeouts->first;
 3677|       |
 3678|   578k|  while(*anchor < EXPIRE_LAST) {
  ------------------
  |  Branch (3678:9): [True: 539k, False: 38.5k]
  ------------------
 3679|   539k|    if(*anchor == eid) {
  ------------------
  |  Branch (3679:8): [True: 292k, False: 247k]
  ------------------
 3680|   292k|      *anchor = timeouts->next[eid];
 3681|   292k|      break;
 3682|   292k|    }
 3683|   247k|    anchor = &timeouts->next[*anchor];
 3684|   247k|  }
 3685|   330k|  DEBUGASSERT(multi_timeouts_check(data));
  ------------------
  |  | 1083|   330k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3685:3): [True: 0, False: 330k]
  |  Branch (3685:3): [True: 330k, False: 0]
  ------------------
 3686|   330k|  if(timeouts->registered) {
  ------------------
  |  Branch (3686:6): [True: 320k, False: 10.0k]
  ------------------
 3687|   320k|    struct Curl_multi *multi = data->multi;
 3688|   320k|    int rc;
 3689|       |
 3690|   320k|    if(!multi) {
  ------------------
  |  Branch (3690:8): [True: 0, False: 320k]
  ------------------
 3691|      0|      DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3691:7): [Folded, False: 0]
  |  Branch (3691:7): [Folded, False: 0]
  ------------------
 3692|      0|      return;
 3693|      0|    }
 3694|   320k|    if((timeouts->first >= EXPIRE_LAST) || /* no more timeouts */
  ------------------
  |  Branch (3694:8): [True: 1.87k, False: 318k]
  ------------------
 3695|   318k|       (timeouts->first != orig_first)) {  /* active timeout changed */
  ------------------
  |  Branch (3695:8): [True: 96.3k, False: 222k]
  ------------------
 3696|  98.2k|      rc = Curl_splayremove(multi->timetree, &timeouts->splaynode,
 3697|  98.2k|                            &multi->timetree);
 3698|  98.2k|      if(rc)
  ------------------
  |  Branch (3698:10): [True: 0, False: 98.2k]
  ------------------
 3699|      0|        infof(data, "Internal error removing splay node = %d", rc);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3700|  98.2k|      timeouts->registered = FALSE;
  ------------------
  |  | 1056|  98.2k|#define FALSE false
  ------------------
 3701|  98.2k|    }
 3702|   320k|    if((timeouts->first < EXPIRE_LAST) && !timeouts->registered) {
  ------------------
  |  Branch (3702:8): [True: 318k, False: 1.87k]
  |  Branch (3702:43): [True: 96.3k, False: 222k]
  ------------------
 3703|  96.3k|      multi->timetree = Curl_splayinsert(&timeouts->time[timeouts->first],
 3704|  96.3k|                                         multi->timetree,
 3705|  96.3k|                                         &timeouts->splaynode);
 3706|       |      timeouts->registered = TRUE;
  ------------------
  |  | 1053|  96.3k|#define TRUE true
  ------------------
 3707|  96.3k|    }
 3708|   320k|  }
 3709|   330k|}
multi.c:multi_schedule_pending:
 3901|  68.2k|{
 3902|  68.2k|  uint32_t mid = multi->last_pending_mid;
 3903|       |
 3904|  68.2k|  if(mid) {
  ------------------
  |  Branch (3904:6): [True: 0, False: 68.2k]
  ------------------
 3905|      0|    while(Curl_uint32_bset_next(&multi->pending, mid, &mid)) {
  ------------------
  |  Branch (3905:11): [True: 0, False: 0]
  ------------------
 3906|      0|      struct Curl_easy *data = Curl_multi_get_easy(multi, mid);
 3907|      0|      if(data) {
  ------------------
  |  Branch (3907:10): [True: 0, False: 0]
  ------------------
 3908|      0|        move_pending_to_connect(multi, data);
 3909|      0|        multi->last_pending_mid = mid;
 3910|      0|        return;
 3911|      0|      }
 3912|       |      /* transfer no longer known, should not happen */
 3913|      0|      Curl_uint32_bset_remove(&multi->pending, mid);
 3914|      0|      DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3914:7): [Folded, False: 0]
  |  Branch (3914:7): [Folded, False: 0]
  ------------------
 3915|      0|    }
 3916|       |    /* found no pending transfers with `mid` larger than `last_pending_mid`.
 3917|       |     * Start at the beginning of the pending set again. */
 3918|      0|    multi->last_pending_mid = 0;
 3919|      0|  }
 3920|       |
 3921|  68.2k|  if(Curl_uint32_bset_first(&multi->pending, &mid)) {
  ------------------
  |  Branch (3921:6): [True: 0, False: 68.2k]
  ------------------
 3922|      0|    do {
 3923|      0|      struct Curl_easy *data = Curl_multi_get_easy(multi, mid);
 3924|      0|      if(data) {
  ------------------
  |  Branch (3924:10): [True: 0, False: 0]
  ------------------
 3925|      0|        move_pending_to_connect(multi, data);
 3926|      0|        multi->last_pending_mid = mid;
 3927|      0|        return;
 3928|      0|      }
 3929|       |      /* transfer no longer known, should not happen */
 3930|      0|      Curl_uint32_bset_remove(&multi->pending, mid);
 3931|      0|      DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3931:7): [Folded, False: 0]
  |  Branch (3931:7): [Folded, False: 0]
  ------------------
 3932|      0|    } while(Curl_uint32_bset_next(&multi->pending, mid, &mid));
  ------------------
  |  Branch (3932:13): [True: 0, False: 0]
  ------------------
 3933|      0|  }
 3934|  68.2k|}
multi.c:multi_xfer_bufs_free:
 4177|  9.97k|{
 4178|  9.97k|  DEBUGASSERT(multi);
  ------------------
  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4178:3): [True: 0, False: 9.97k]
  |  Branch (4178:3): [True: 9.97k, False: 0]
  ------------------
 4179|  9.97k|  curlx_safefree(multi->xfer_buf);
  ------------------
  |  | 1340|  9.97k|  do {                      \
  |  | 1341|  9.97k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  9.97k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  9.97k|    (ptr) = NULL;           \
  |  | 1343|  9.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 9.97k]
  |  |  ------------------
  ------------------
 4180|  9.97k|  multi->xfer_buf_len = 0;
 4181|  9.97k|  multi->xfer_buf_borrowed = FALSE;
  ------------------
  |  | 1056|  9.97k|#define FALSE false
  ------------------
 4182|  9.97k|  curlx_safefree(multi->xfer_ulbuf);
  ------------------
  |  | 1340|  9.97k|  do {                      \
  |  | 1341|  9.97k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  9.97k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  9.97k|    (ptr) = NULL;           \
  |  | 1343|  9.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 9.97k]
  |  |  ------------------
  ------------------
 4183|  9.97k|  multi->xfer_ulbuf_len = 0;
 4184|  9.97k|  multi->xfer_ulbuf_borrowed = FALSE;
  ------------------
  |  | 1056|  9.97k|#define FALSE false
  ------------------
 4185|  9.97k|  curlx_safefree(multi->xfer_sockbuf);
  ------------------
  |  | 1340|  9.97k|  do {                      \
  |  | 1341|  9.97k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  9.97k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  9.97k|    (ptr) = NULL;           \
  |  | 1343|  9.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 9.97k]
  |  |  ------------------
  ------------------
 4186|  9.97k|  multi->xfer_sockbuf_len = 0;
 4187|       |  multi->xfer_sockbuf_borrowed = FALSE;
  ------------------
  |  | 1056|  9.97k|#define FALSE false
  ------------------
 4188|  9.97k|}

Curl_multi_ev_socket_done:
  618|  9.33k|{
  619|  9.33k|  mev_forget_socket(multi, data, s, "socket done");
  620|  9.33k|}
Curl_multi_ev_xfer_done:
  624|  9.97k|{
  625|  9.97k|  DEBUGASSERT(!data->conn); /* transfer should have been detached */
  ------------------
  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (625:3): [True: 0, False: 9.97k]
  |  Branch (625:3): [True: 9.97k, False: 0]
  ------------------
  626|  9.97k|  (void)mev_assess(multi, data, NULL);
  627|  9.97k|  Curl_meta_remove(data, CURL_META_MEV_POLLSET);
  ------------------
  |  |   34|  9.97k|#define CURL_META_MEV_POLLSET   "meta:mev:ps"
  ------------------
  628|  9.97k|}
Curl_multi_ev_conn_done:
  633|  10.1k|{
  634|  10.1k|  (void)mev_assess(multi, data, conn);
  635|  10.1k|  Curl_conn_meta_remove(conn, CURL_META_MEV_POLLSET);
  ------------------
  |  |   34|  10.1k|#define CURL_META_MEV_POLLSET   "meta:mev:ps"
  ------------------
  636|  10.1k|}
Curl_multi_ev_init:
  639|  9.97k|{
  640|  9.97k|  Curl_hash_init(&multi->ev.sh_entries, hashsize, mev_sh_entry_hash,
  641|  9.97k|                 mev_sh_entry_compare, mev_sh_entry_dtor);
  642|  9.97k|}
Curl_multi_ev_cleanup:
  645|  9.97k|{
  646|  9.97k|  Curl_hash_destroy(&multi->ev.sh_entries);
  647|  9.97k|}
multi_ev.c:mev_assess:
  500|  20.1k|{
  501|  20.1k|  struct easy_pollset ps, *last_ps;
  502|  20.1k|  CURLMcode mresult = CURLM_OK;
  503|       |
  504|  20.1k|  if(!multi || !multi->socket_cb)
  ------------------
  |  Branch (504:6): [True: 0, False: 20.1k]
  |  Branch (504:16): [True: 20.1k, False: 0]
  ------------------
  505|  20.1k|    return CURLM_OK;
  506|       |
  507|      0|  Curl_pollset_init(&ps);
  508|      0|  if(conn) {
  ------------------
  |  Branch (508:6): [True: 0, False: 0]
  ------------------
  509|      0|    CURLcode result = Curl_conn_adjust_pollset(data, conn, &ps);
  510|      0|    if(result) {
  ------------------
  |  Branch (510:8): [True: 0, False: 0]
  ------------------
  511|      0|      mresult = (result == CURLE_OUT_OF_MEMORY) ?
  ------------------
  |  Branch (511:17): [True: 0, False: 0]
  ------------------
  512|      0|        CURLM_OUT_OF_MEMORY : CURLM_INTERNAL_ERROR;
  513|      0|      goto out;
  514|      0|    }
  515|      0|  }
  516|      0|  else
  517|      0|    Curl_multi_pollset(data, &ps);
  518|      0|  last_ps = mev_get_last_pollset(data, conn);
  519|       |
  520|      0|  if(!last_ps && ps.n) {
  ------------------
  |  Branch (520:6): [True: 0, False: 0]
  |  Branch (520:18): [True: 0, False: 0]
  ------------------
  521|      0|    if(conn)
  ------------------
  |  Branch (521:8): [True: 0, False: 0]
  ------------------
  522|      0|      last_ps = mev_add_new_conn_pollset(conn);
  523|      0|    else
  524|      0|      last_ps = mev_add_new_xfer_pollset(data);
  525|      0|    if(!last_ps) {
  ------------------
  |  Branch (525:8): [True: 0, False: 0]
  ------------------
  526|      0|      mresult = CURLM_OUT_OF_MEMORY;
  527|      0|      goto out;
  528|      0|    }
  529|      0|  }
  530|       |
  531|      0|  if(last_ps)
  ------------------
  |  Branch (531:6): [True: 0, False: 0]
  ------------------
  532|      0|    mresult = mev_pollset_diff(multi, data, conn, &ps, last_ps);
  533|      0|  else
  534|      0|    DEBUGASSERT(!ps.n);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (534:5): [True: 0, False: 0]
  |  Branch (534:5): [True: 0, False: 0]
  ------------------
  535|      0|out:
  536|      0|  Curl_pollset_cleanup(&ps);
  537|      0|  return mresult;
  538|      0|}
multi_ev.c:mev_sh_entry_get:
   88|  9.33k|{
   89|  9.33k|  if(s != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|  9.33k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (89:6): [True: 9.33k, False: 0]
  ------------------
   90|       |    /* only look for proper sockets */
   91|  9.33k|    return Curl_hash_pick(sh, (char *)&s, sizeof(curl_socket_t));
   92|  9.33k|  }
   93|      0|  return NULL;
   94|  9.33k|}
multi_ev.c:mev_forget_socket:
  195|  9.33k|{
  196|  9.33k|  struct mev_sh_entry *entry = mev_sh_entry_get(&multi->ev.sh_entries, s);
  197|  9.33k|  int rc = 0;
  198|       |
  199|  9.33k|  if(!entry) /* we never knew or already forgot about this socket */
  ------------------
  |  Branch (199:6): [True: 9.33k, False: 0]
  ------------------
  200|  9.33k|    return CURLM_OK;
  201|       |
  202|       |  /* We managed this socket before, tell the socket callback to forget it. */
  203|      0|  if(entry->announced && multi->socket_cb) {
  ------------------
  |  Branch (203:6): [True: 0, False: 0]
  |  Branch (203:26): [True: 0, False: 0]
  ------------------
  204|      0|    struct Curl_mapi_guard guard;
  205|       |
  206|      0|    NOVERBOSE((void)cause);
  ------------------
  |  | 1618|      0|#define NOVERBOSE(x) Curl_nop_stmt
  |  |  ------------------
  |  |  |  | 1191|      0|#define Curl_nop_stmt do {} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1191:35): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  207|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  208|      0|    CURL_CBAPI_MULTI_START(&guard, multi, multi_socket_cb);
  ------------------
  |  |  202|      0|  Curl_cbapi_enter((g), NULL, (m), CURL_CBAPI_FN_##fn)
  ------------------
  209|      0|    rc = multi->socket_cb(data, s, CURL_POLL_REMOVE,
  ------------------
  |  |  286|      0|#define CURL_POLL_REMOVE 4
  ------------------
  210|      0|                          multi->socket_userp, entry->user_data);
  211|      0|    CURL_CBAPI_END(&guard);
  ------------------
  |  |  204|      0|  Curl_cbapi_leave(g)
  ------------------
  212|      0|    entry = mev_sh_entry_get(&multi->ev.sh_entries, s);
  213|      0|    if(entry)
  ------------------
  |  Branch (213:8): [True: 0, False: 0]
  ------------------
  214|      0|      entry->announced = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  215|      0|  }
  216|       |
  217|      0|  mev_sh_entry_kill(multi, s);
  218|      0|  if(rc == -1) {
  ------------------
  |  Branch (218:6): [True: 0, False: 0]
  ------------------
  219|      0|    multi->dead = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  220|      0|    return CURLM_ABORTED_BY_CALLBACK;
  221|      0|  }
  222|      0|  return CURLM_OK;
  223|      0|}

Curl_mntfy_init:
  125|  9.97k|{
  126|  9.97k|  memset(&multi->ntfy, 0, sizeof(multi->ntfy));
  127|  9.97k|  Curl_uint32_bset_init(&multi->ntfy.enabled);
  128|  9.97k|}
Curl_mntfy_resize:
  131|  9.97k|{
  132|  9.97k|  if(Curl_uint32_bset_resize(&multi->ntfy.enabled, CURLMNOTIFY_EASY_DONE + 1))
  ------------------
  |  |  540|  9.97k|#define CURLMNOTIFY_EASY_DONE    1
  ------------------
  |  Branch (132:6): [True: 0, False: 9.97k]
  ------------------
  133|      0|    return CURLM_OUT_OF_MEMORY;
  134|  9.97k|  return CURLM_OK;
  135|  9.97k|}
Curl_mntfy_cleanup:
  138|  9.97k|{
  139|  9.97k|  while(multi->ntfy.head) {
  ------------------
  |  Branch (139:9): [True: 0, False: 9.97k]
  ------------------
  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|  9.97k|  Curl_uint32_bset_destroy(&multi->ntfy.enabled);
  146|  9.97k|}

Curl_netrc_init:
  665|  19.9k|{
  666|  19.9k|  curlx_dyn_init(&store->filebuf, MAX_NETRC_FILE);
  ------------------
  |  |   77|  19.9k|#define MAX_NETRC_FILE  (128 * 1024)
  ------------------
  667|  19.9k|  store->loaded = FALSE;
  ------------------
  |  | 1056|  19.9k|#define FALSE false
  ------------------
  668|       |  store->filename = NULL;
  669|  19.9k|}
Curl_netrc_cleanup:
  671|  34.2k|{
  672|  34.2k|  curlx_dyn_free(&store->filebuf);
  673|  34.2k|  curlx_safefree(store->filename);
  ------------------
  |  | 1340|  34.2k|  do {                      \
  |  | 1341|  34.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  34.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  34.2k|    (ptr) = NULL;           \
  |  | 1343|  34.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 34.2k]
  |  |  ------------------
  ------------------
  674|       |  store->loaded = FALSE;
  ------------------
  |  | 1056|  34.2k|#define FALSE false
  ------------------
  675|  34.2k|}

Curl_getdate_capped:
  603|  9.89k|{
  604|  9.89k|  int rc = parsedate(p, tp);
  605|  9.89k|  return (rc == PARSEDATE_FAIL);
  ------------------
  |  |   95|  9.89k|#define PARSEDATE_FAIL   (-1)
  ------------------
  606|  9.89k|}
parsedate.c:parsedate:
  540|  9.89k|{
  541|  9.89k|  curl_off_t seconds = 0;
  542|  9.89k|  enum assume dignext = DATE_MDAY;
  543|  9.89k|  const char *indate = date; /* save the original pointer */
  544|  9.89k|  int part = 0; /* max 6 parts */
  545|  9.89k|  int rc = 0;
  546|  9.89k|  struct when w;
  547|  9.89k|  initwhen(&w);
  548|       |
  549|  34.7k|  while(*date && (part < 6)) {
  ------------------
  |  Branch (549:9): [True: 31.5k, False: 3.20k]
  |  Branch (549:18): [True: 31.5k, False: 0]
  ------------------
  550|  31.5k|    skip(&date);
  551|       |
  552|  31.5k|    if(ISALPHA(*date))
  ------------------
  |  |   36|  31.5k|#define ISALPHA(x)  (ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   41|  63.0k|#define ISLOWER(x)  (((x) >= 'a') && ((x) <= 'z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:22): [True: 8.53k, False: 23.0k]
  |  |  |  |  |  Branch (41:38): [True: 8.53k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISALPHA(x)  (ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   40|  23.0k|#define ISUPPER(x)  (((x) >= 'A') && ((x) <= 'Z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (40:22): [True: 3.51k, False: 19.4k]
  |  |  |  |  |  Branch (40:38): [True: 3.51k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  553|  12.0k|      rc = datestring(&date, &w);
  554|  19.4k|    else if(ISDIGIT(*date))
  ------------------
  |  |   42|  19.4k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (42:22): [True: 16.2k, False: 3.20k]
  |  |  |  Branch (42:38): [True: 16.2k, False: 0]
  |  |  ------------------
  ------------------
  555|  16.2k|      rc = datenum(indate, &date, &w, &dignext);
  556|  31.5k|    if(rc)
  ------------------
  |  Branch (556:8): [True: 6.69k, False: 24.8k]
  ------------------
  557|  6.69k|      return rc;
  558|       |
  559|  24.8k|    part++;
  560|  24.8k|  }
  561|       |
  562|  3.20k|  rc = datecheck(&w);
  563|  3.20k|  if(rc)
  ------------------
  |  Branch (563:6): [True: 2.06k, False: 1.13k]
  ------------------
  564|  2.06k|    return rc;
  565|       |
  566|  1.13k|  seconds = time2epoch(&w); /* get number of seconds */
  567|  1.13k|  tzadjust(&seconds, &w); /* handle the time zone offset */
  568|  1.13k|  rc = mktimet(seconds, output); /* squeeze seconds into a time_t */
  569|       |
  570|  1.13k|  return rc;
  571|  3.20k|}
parsedate.c:initwhen:
  357|  9.89k|{
  358|  9.89k|  w->wday = w->mon = w->mday = w->hour = w->min = w->sec = w->year = w->tzoff =
  359|  9.89k|    -1;
  360|  9.89k|}
parsedate.c:skip:
  253|  31.5k|{
  254|       |  /* skip everything that are not letters or digits */
  255|  96.7k|  while(**date && !ISALNUM(**date))
  ------------------
  |  |   39|  93.5k|#define ISALNUM(x)  (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   42|   187k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (42:22): [True: 37.4k, False: 56.0k]
  |  |  |  |  |  Branch (42:38): [True: 16.2k, False: 21.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISALNUM(x)  (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   41|   170k|#define ISLOWER(x)  (((x) >= 'a') && ((x) <= 'z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:22): [True: 13.3k, False: 63.8k]
  |  |  |  |  |  Branch (41:38): [True: 8.53k, False: 4.81k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISALNUM(x)  (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   40|  68.7k|#define ISUPPER(x)  (((x) >= 'A') && ((x) <= 'Z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (40:22): [True: 9.04k, False: 59.6k]
  |  |  |  |  |  Branch (40:38): [True: 3.51k, False: 5.52k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (255:9): [True: 93.5k, False: 3.20k]
  ------------------
  256|  65.1k|    (*date)++;
  257|  31.5k|}
parsedate.c:datestring:
  363|  12.0k|{
  364|       |  /* a name coming up */
  365|  12.0k|  size_t len = 0;
  366|  12.0k|  const char *p = *datep;
  367|  12.0k|  bool found = FALSE;
  ------------------
  |  | 1056|  12.0k|#define FALSE false
  ------------------
  368|  44.4k|  while(ISALPHA(*p) && (len < NAME_LEN)) {
  ------------------
  |  |   36|  88.8k|#define ISALPHA(x)  (ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   41|  88.8k|#define ISLOWER(x)  (((x) >= 'a') && ((x) <= 'z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:22): [True: 23.1k, False: 21.3k]
  |  |  |  |  |  Branch (41:38): [True: 22.9k, False: 222]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISALPHA(x)  (ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   40|  21.5k|#define ISUPPER(x)  (((x) >= 'A') && ((x) <= 'Z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (40:22): [True: 11.2k, False: 10.3k]
  |  |  |  |  |  Branch (40:38): [True: 9.75k, False: 1.46k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                while(ISALPHA(*p) && (len < NAME_LEN)) {
  ------------------
  |  |  354|  32.6k|#define NAME_LEN 12
  ------------------
  |  Branch (368:24): [True: 32.3k, False: 280]
  ------------------
  369|  32.3k|    p++;
  370|  32.3k|    len++;
  371|  32.3k|  }
  372|       |
  373|  12.0k|  if(len != NAME_LEN) {
  ------------------
  |  |  354|  12.0k|#define NAME_LEN 12
  ------------------
  |  Branch (373:6): [True: 11.6k, False: 359]
  ------------------
  374|  11.6k|    if(w->wday == -1) {
  ------------------
  |  Branch (374:8): [True: 10.0k, False: 1.65k]
  ------------------
  375|  10.0k|      w->wday = checkday(*datep, len);
  376|  10.0k|      if(w->wday != -1)
  ------------------
  |  Branch (376:10): [True: 1.08k, False: 8.96k]
  ------------------
  377|  1.08k|        found = TRUE;
  ------------------
  |  | 1053|  1.08k|#define TRUE true
  ------------------
  378|  10.0k|    }
  379|  11.6k|    if(!found && (w->mon == -1)) {
  ------------------
  |  Branch (379:8): [True: 10.6k, False: 1.08k]
  |  Branch (379:18): [True: 8.43k, False: 2.18k]
  ------------------
  380|  8.43k|      w->mon = checkmonth(*datep, len);
  381|  8.43k|      if(w->mon != -1)
  ------------------
  |  Branch (381:10): [True: 3.96k, False: 4.46k]
  ------------------
  382|  3.96k|        found = TRUE;
  ------------------
  |  | 1053|  3.96k|#define TRUE true
  ------------------
  383|  8.43k|    }
  384|       |
  385|  11.6k|    if(!found && (w->tzoff == -1)) {
  ------------------
  |  Branch (385:8): [True: 6.64k, False: 5.04k]
  |  Branch (385:18): [True: 5.63k, False: 1.00k]
  ------------------
  386|       |      /* this must be a time zone string */
  387|  5.63k|      w->tzoff = checktz(*datep, len);
  388|  5.63k|      if(w->tzoff != -1)
  ------------------
  |  Branch (388:10): [True: 2.36k, False: 3.27k]
  ------------------
  389|  2.36k|        found = TRUE;
  ------------------
  |  | 1053|  2.36k|#define TRUE true
  ------------------
  390|  5.63k|    }
  391|  11.6k|  }
  392|  12.0k|  if(!found)
  ------------------
  |  Branch (392:6): [True: 4.64k, False: 7.40k]
  ------------------
  393|  4.64k|    return PARSEDATE_FAIL; /* bad string */
  ------------------
  |  |   95|  4.64k|#define PARSEDATE_FAIL   (-1)
  ------------------
  394|       |
  395|  7.40k|  *datep += len;
  396|  7.40k|  return PARSEDATE_OK;
  ------------------
  |  |   94|  7.40k|#define PARSEDATE_OK     0
  ------------------
  397|  12.0k|}
parsedate.c:checkday:
  196|  10.0k|{
  197|  10.0k|  int i;
  198|  10.0k|  const char * const *what;
  199|  10.0k|  if(len > 3)
  ------------------
  |  Branch (199:6): [True: 1.03k, False: 9.00k]
  ------------------
  200|  1.03k|    what = &weekday[0];
  201|  9.00k|  else if(len == 3)
  ------------------
  |  Branch (201:11): [True: 4.84k, False: 4.15k]
  ------------------
  202|  4.84k|    what = &Curl_wkday[0];
  203|  4.15k|  else
  204|  4.15k|    return -1; /* too short */
  205|  43.1k|  for(i = 0; i < 7; i++) {
  ------------------
  |  Branch (205:14): [True: 38.3k, False: 4.80k]
  ------------------
  206|  38.3k|    size_t ilen = strlen(what[0]);
  207|  38.3k|    if((ilen == len) &&
  ------------------
  |  Branch (207:8): [True: 31.9k, False: 6.36k]
  ------------------
  208|  31.9k|       curl_strnequal(check, what[0], len))
  ------------------
  |  Branch (208:8): [True: 1.08k, False: 30.8k]
  ------------------
  209|  1.08k|      return i;
  210|  37.2k|    what++;
  211|  37.2k|  }
  212|  4.80k|  return -1;
  213|  5.88k|}
parsedate.c:checkmonth:
  216|  8.43k|{
  217|  8.43k|  int i;
  218|  8.43k|  const char * const *what = &Curl_month[0];
  219|  8.43k|  if(len != 3)
  ------------------
  |  Branch (219:6): [True: 4.13k, False: 4.29k]
  ------------------
  220|  4.13k|    return -1; /* not a month */
  221|       |
  222|  26.8k|  for(i = 0; i < 12; i++) {
  ------------------
  |  Branch (222:14): [True: 26.5k, False: 325]
  ------------------
  223|  26.5k|    if(curl_strnequal(check, what[0], 3))
  ------------------
  |  Branch (223:8): [True: 3.96k, False: 22.5k]
  ------------------
  224|  3.96k|      return i;
  225|  22.5k|    what++;
  226|  22.5k|  }
  227|    325|  return -1; /* return the offset or -1, no real offset is -1 */
  228|  4.29k|}
parsedate.c:checktz:
  240|  5.63k|{
  241|  5.63k|  if(len <= 4) {
  ------------------
  |  Branch (241:6): [True: 5.27k, False: 357]
  ------------------
  242|  5.27k|    const struct tzinfo *what;
  243|  5.27k|    struct tzinfo find;
  244|  5.27k|    curlx_strcopy(find.name, sizeof(find.name), check, len);
  245|  5.27k|    what = bsearch(&find, tz, CURL_ARRAYSIZE(tz), sizeof(tz[0]), tzcompare);
  ------------------
  |  | 1307|  5.27k|#define CURL_ARRAYSIZE(A) (sizeof(A) / sizeof((A)[0]))
  ------------------
  246|  5.27k|    if(what)
  ------------------
  |  Branch (246:8): [True: 2.36k, False: 2.91k]
  ------------------
  247|  2.36k|      return what->offset * 60;
  248|  5.27k|  }
  249|  3.27k|  return -1;
  250|  5.63k|}
parsedate.c:tzcompare:
  231|  30.7k|{
  232|  30.7k|  const struct tzinfo *tz1 = m1;
  233|  30.7k|  const struct tzinfo *tz2 = m2;
  234|  30.7k|  return strcmp(tz1->name, tz2->name);
  235|  30.7k|}
parsedate.c:datenum:
  401|  16.2k|{
  402|       |  /* a digit */
  403|  16.2k|  unsigned int val;
  404|  16.2k|  char *end;
  405|  16.2k|  const char *date = *datep;
  406|  16.2k|  enum assume dignext = *dignextp;
  407|       |
  408|  16.2k|  if((w->sec == -1) && match_time(date, w, &end)) {
  ------------------
  |  Branch (408:6): [True: 14.8k, False: 1.40k]
  |  Branch (408:24): [True: 1.58k, False: 13.3k]
  ------------------
  409|       |    /* time stamp */
  410|  1.58k|    date = end;
  411|  1.58k|  }
  412|  14.7k|  else {
  413|  14.7k|    bool found = FALSE;
  ------------------
  |  | 1056|  14.7k|#define FALSE false
  ------------------
  414|  14.7k|    curl_off_t lval;
  415|  14.7k|    int num_digits = 0;
  416|  14.7k|    const char *p = *datep;
  417|  14.7k|    if(curlx_str_number(&p, &lval, 99999999))
  ------------------
  |  Branch (417:8): [True: 233, False: 14.4k]
  ------------------
  418|    233|      return PARSEDATE_FAIL;
  ------------------
  |  |   95|    233|#define PARSEDATE_FAIL   (-1)
  ------------------
  419|       |
  420|       |    /* we know num_digits cannot be larger than 8 */
  421|  14.4k|    num_digits = (int)(p - *datep);
  422|  14.4k|    val = (unsigned int)lval;
  423|       |
  424|  14.4k|    if((w->tzoff == -1) &&
  ------------------
  |  Branch (424:8): [True: 12.1k, False: 2.37k]
  ------------------
  425|  12.1k|       (num_digits == 4) &&
  ------------------
  |  Branch (425:8): [True: 2.48k, False: 9.62k]
  ------------------
  426|  2.48k|       (val <= 1400) &&
  ------------------
  |  Branch (426:8): [True: 1.74k, False: 742]
  ------------------
  427|  1.74k|       (indate < date) &&
  ------------------
  |  Branch (427:8): [True: 1.67k, False: 69]
  ------------------
  428|  1.67k|       (date[-1] == '+' || date[-1] == '-')) {
  ------------------
  |  Branch (428:9): [True: 410, False: 1.26k]
  |  Branch (428:28): [True: 312, False: 949]
  ------------------
  429|       |      /* four digits and a value less than or equal to 1400 (to take into
  430|       |         account all sorts of funny time zone diffs) and it is preceded
  431|       |         with a plus or minus. This is a time zone indication. 1400 is
  432|       |         picked since +1300 is frequently used and +1400 is mentioned as
  433|       |         an edge number in the document "ISO C 200X Proposal: Timezone
  434|       |         Functions" at http://david.tribble.com/text/c0xtimezone.html If
  435|       |         anyone has a more authoritative source for the exact maximum time
  436|       |         zone offsets, please speak up! */
  437|    722|      found = TRUE;
  ------------------
  |  | 1053|    722|#define TRUE true
  ------------------
  438|    722|      w->tzoff = ((val / 100 * 60) + (val % 100)) * 60;
  439|       |
  440|       |      /* the + and - prefix indicates the local time compared to GMT,
  441|       |         this we need their reversed math to get what we want */
  442|    722|      w->tzoff = date[-1] == '+' ? -w->tzoff : w->tzoff;
  ------------------
  |  Branch (442:18): [True: 410, False: 312]
  ------------------
  443|    722|    }
  444|       |
  445|  13.7k|    else if((num_digits == 8) && (w->year == -1) &&
  ------------------
  |  Branch (445:13): [True: 1.94k, False: 11.8k]
  |  Branch (445:34): [True: 1.59k, False: 356]
  ------------------
  446|  1.59k|            (w->mon == -1) && (w->mday == -1)) {
  ------------------
  |  Branch (446:13): [True: 1.59k, False: 0]
  |  Branch (446:31): [True: 1.57k, False: 15]
  ------------------
  447|       |      /* 8 digits, no year, month or day yet. This is YYYYMMDD */
  448|  1.57k|      found = TRUE;
  ------------------
  |  | 1053|  1.57k|#define TRUE true
  ------------------
  449|  1.57k|      w->year = val / 10000;
  450|  1.57k|      w->mon = ((val % 10000) / 100) - 1; /* month is 0 - 11 */
  451|  1.57k|      w->mday = val % 100;
  452|  1.57k|    }
  453|       |
  454|  14.4k|    if(!found && (dignext == DATE_MDAY) && (w->mday == -1)) {
  ------------------
  |  Branch (454:8): [True: 12.1k, False: 2.29k]
  |  Branch (454:18): [True: 9.09k, False: 3.08k]
  |  Branch (454:44): [True: 8.87k, False: 214]
  ------------------
  455|  8.87k|      if((val > 0) && (val < 32)) {
  ------------------
  |  Branch (455:10): [True: 6.68k, False: 2.19k]
  |  Branch (455:23): [True: 4.57k, False: 2.11k]
  ------------------
  456|  4.57k|        w->mday = val;
  457|  4.57k|        found = TRUE;
  ------------------
  |  | 1053|  4.57k|#define TRUE true
  ------------------
  458|  4.57k|      }
  459|  8.87k|      dignext = DATE_YEAR;
  460|  8.87k|    }
  461|       |
  462|  14.4k|    if(!found && (dignext == DATE_YEAR) && (w->year == -1)) {
  ------------------
  |  Branch (462:8): [True: 7.60k, False: 6.86k]
  |  Branch (462:18): [True: 7.39k, False: 214]
  |  Branch (462:44): [True: 5.79k, False: 1.60k]
  ------------------
  463|  5.79k|      w->year = val;
  464|  5.79k|      found = TRUE;
  ------------------
  |  | 1053|  5.79k|#define TRUE true
  ------------------
  465|  5.79k|      if(w->year < 100) {
  ------------------
  |  Branch (465:10): [True: 4.49k, False: 1.29k]
  ------------------
  466|  4.49k|        if(w->year > 70)
  ------------------
  |  Branch (466:12): [True: 1.23k, False: 3.25k]
  ------------------
  467|  1.23k|          w->year += 1900;
  468|  3.25k|        else
  469|  3.25k|          w->year += 2000;
  470|  4.49k|      }
  471|  5.79k|      if(w->mday == -1)
  ------------------
  |  Branch (471:10): [True: 3.81k, False: 1.97k]
  ------------------
  472|  3.81k|        dignext = DATE_MDAY;
  473|  5.79k|    }
  474|       |
  475|  14.4k|    if(!found)
  ------------------
  |  Branch (475:8): [True: 1.81k, False: 12.6k]
  ------------------
  476|  1.81k|      return PARSEDATE_FAIL;
  ------------------
  |  |   95|  1.81k|#define PARSEDATE_FAIL   (-1)
  ------------------
  477|       |
  478|  12.6k|    date = p;
  479|  12.6k|  }
  480|  14.2k|  *datep = date;
  481|  14.2k|  *dignextp = dignext;
  482|  14.2k|  return PARSEDATE_OK;
  ------------------
  |  |   94|  14.2k|#define PARSEDATE_OK     0
  ------------------
  483|  16.2k|}
parsedate.c:match_time:
  313|  14.8k|{
  314|  14.8k|  const char *p;
  315|  14.8k|  int hh, mm, ss = 0;
  316|  14.8k|  hh = oneortwodigit(date, &p);
  317|  14.8k|  if((hh < 24) && (*p == ':') && ISDIGIT(p[1])) {
  ------------------
  |  |   42|  2.64k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (42:22): [True: 2.43k, False: 209]
  |  |  |  Branch (42:38): [True: 2.18k, False: 256]
  |  |  ------------------
  ------------------
  |  Branch (317:6): [True: 11.6k, False: 3.20k]
  |  Branch (317:19): [True: 2.64k, False: 9.03k]
  ------------------
  318|  2.18k|    mm = oneortwodigit(&p[1], &p);
  319|  2.18k|    if(mm < 60) {
  ------------------
  |  Branch (319:8): [True: 1.88k, False: 300]
  ------------------
  320|  1.88k|      if((*p == ':') && ISDIGIT(p[1])) {
  ------------------
  |  |   42|  1.50k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (42:22): [True: 1.29k, False: 208]
  |  |  |  Branch (42:38): [True: 1.03k, False: 259]
  |  |  ------------------
  ------------------
  |  Branch (320:10): [True: 1.50k, False: 377]
  ------------------
  321|  1.03k|        ss = oneortwodigit(&p[1], &p);
  322|  1.03k|        if(ss <= 60) {
  ------------------
  |  Branch (322:12): [True: 738, False: 300]
  ------------------
  323|       |          /* valid HH:MM:SS */
  324|    738|          goto match;
  325|    738|        }
  326|  1.03k|      }
  327|    844|      else {
  328|       |        /* valid HH:MM */
  329|    844|        goto match;
  330|    844|      }
  331|  1.88k|    }
  332|  2.18k|  }
  333|  13.3k|  return FALSE; /* not a time string */
  ------------------
  |  | 1056|  13.3k|#define FALSE false
  ------------------
  334|  1.58k|match:
  335|  1.58k|  w->hour = hh;
  336|  1.58k|  w->min = mm;
  337|  1.58k|  w->sec = ss;
  338|  1.58k|  *endp = (char *)CURL_UNCONST(p);
  ------------------
  |  |  864|  1.58k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
  339|       |  return TRUE;
  ------------------
  |  | 1053|  1.58k|#define TRUE true
  ------------------
  340|  14.8k|}
parsedate.c:oneortwodigit:
  301|  18.1k|{
  302|  18.1k|  int num = date[0] - '0';
  303|  18.1k|  if(ISDIGIT(date[1])) {
  ------------------
  |  |   42|  18.1k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  ------------------
  |  |  |  Branch (42:22): [True: 16.7k, False: 1.39k]
  |  |  |  Branch (42:38): [True: 9.71k, False: 7.00k]
  |  |  ------------------
  ------------------
  304|  9.71k|    *endp = &date[2];
  305|  9.71k|    return (num * 10) + (date[1] - '0');
  306|  9.71k|  }
  307|  8.39k|  *endp = &date[1];
  308|  8.39k|  return num;
  309|  18.1k|}
parsedate.c:datecheck:
  486|  3.20k|{
  487|  3.20k|  if(w->sec == -1)
  ------------------
  |  Branch (487:6): [True: 2.22k, False: 984]
  ------------------
  488|  2.22k|    w->sec = w->min = w->hour = 0; /* no time, make it zero */
  489|       |
  490|  3.20k|  if((w->mday == -1) || (w->mon == -1) || (w->year == -1))
  ------------------
  |  Branch (490:6): [True: 1.04k, False: 2.16k]
  |  Branch (490:25): [True: 295, False: 1.86k]
  |  Branch (490:43): [True: 90, False: 1.77k]
  ------------------
  491|       |    /* lacks vital info, fail */
  492|  1.43k|    return PARSEDATE_FAIL;
  ------------------
  |  |   95|  1.43k|#define PARSEDATE_FAIL   (-1)
  ------------------
  493|       |
  494|       |  /* The Gregorian calendar was introduced 1582 */
  495|  1.77k|  else if(w->year < 1583)
  ------------------
  |  Branch (495:11): [True: 217, False: 1.55k]
  ------------------
  496|    217|    return PARSEDATE_FAIL;
  ------------------
  |  |   95|    217|#define PARSEDATE_FAIL   (-1)
  ------------------
  497|       |
  498|  1.55k|  else if((w->mday > 31) || (w->mon > 11) || (w->hour > 23) ||
  ------------------
  |  Branch (498:11): [True: 329, False: 1.22k]
  |  Branch (498:29): [True: 92, False: 1.13k]
  |  Branch (498:46): [True: 0, False: 1.13k]
  ------------------
  499|  1.13k|          (w->min > 59) || (w->sec > 60))
  ------------------
  |  Branch (499:11): [True: 0, False: 1.13k]
  |  Branch (499:28): [True: 0, False: 1.13k]
  ------------------
  500|    421|    return PARSEDATE_FAIL; /* clearly an illegal date */
  ------------------
  |  |   95|    421|#define PARSEDATE_FAIL   (-1)
  ------------------
  501|       |
  502|  1.13k|  return PARSEDATE_OK;
  ------------------
  |  |   94|  1.13k|#define PARSEDATE_OK     0
  ------------------
  503|  3.20k|}
parsedate.c:time2epoch:
  285|  1.13k|{
  286|  1.13k|  static const int cumulative_days[12] = {
  287|  1.13k|    0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334
  288|  1.13k|  };
  289|  1.13k|  int y = w->year - (w->mon <= 1);
  290|  1.13k|  int leap_days = (y / 4) - (y / 100) + (y / 400) - LEAP_DAYS_BEFORE_1969;
  ------------------
  |  |  278|  1.13k|#define LEAP_DAYS_BEFORE_1969 477
  ------------------
  291|  1.13k|  curl_off_t days = (curl_off_t)(w->year - 1970) * 365 + leap_days +
  292|  1.13k|    cumulative_days[w->mon] + w->mday - 1;
  293|       |
  294|  1.13k|  return (((days * 24 + w->hour) * 60 + w->min) * 60) + w->sec;
  295|  1.13k|}
parsedate.c:tzadjust:
  506|  1.13k|{
  507|  1.13k|  if(w->tzoff == -1) /* unknown tz means no offset */
  ------------------
  |  Branch (507:6): [True: 688, False: 449]
  ------------------
  508|    688|    w->tzoff = 0;
  509|       |
  510|       |  /* Add the time zone diff between local time zone and GMT. */
  511|  1.13k|  if((w->tzoff > 0) && (*tp > (curl_off_t)(CURL_OFF_T_MAX - w->tzoff)))
  ------------------
  |  |  596|    448|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  |  Branch (511:6): [True: 448, False: 689]
  |  Branch (511:24): [True: 0, False: 448]
  ------------------
  512|      0|    *tp = CURL_OFF_T_MAX;
  ------------------
  |  |  596|      0|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  513|  1.13k|  else
  514|  1.13k|    *tp += w->tzoff;
  515|       |  /* this needs no minimum check since we require a year > 1582 */
  516|  1.13k|}
parsedate.c:mktimet:
  519|  1.13k|{
  520|       |#if SIZEOF_TIME_T < 5
  521|       |  if(seconds > TIME_T_MAX) {
  522|       |    *output = TIME_T_MAX;
  523|       |    return PARSEDATE_LATER;
  524|       |  }
  525|       |  else if(seconds < TIME_T_MIN) {
  526|       |    *output = TIME_T_MIN;
  527|       |    return PARSEDATE_SOONER;
  528|       |  }
  529|       |#elif defined(HAVE_TIME_T_UNSIGNED)
  530|       |  if(seconds < 0) {
  531|       |    *output = 0;
  532|       |    return PARSEDATE_SOONER;
  533|       |  }
  534|       |#endif
  535|  1.13k|  *output = (time_t)seconds;
  536|  1.13k|  return PARSEDATE_OK;
  ------------------
  |  |   94|  1.13k|#define PARSEDATE_OK     0
  ------------------
  537|  1.13k|}

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

pgrs_speedcheck:
  134|   147k|{
  135|   147k|  if(!data->set.low_speed_time || !data->set.low_speed_limit ||
  ------------------
  |  Branch (135:6): [True: 147k, False: 0]
  |  Branch (135:35): [True: 0, False: 0]
  ------------------
  136|      0|     Curl_xfer_recv_is_paused(data) || Curl_xfer_send_is_paused(data))
  ------------------
  |  Branch (136:6): [True: 0, False: 0]
  |  Branch (136:40): [True: 0, False: 0]
  ------------------
  137|       |    /* A paused transfer is not qualified for speed checks */
  138|   147k|    return CURLE_OK;
  139|       |
  140|      0|  if(data->progress.current_speed >= 0) {
  ------------------
  |  Branch (140:6): [True: 0, False: 0]
  ------------------
  141|      0|    if(data->progress.current_speed < data->set.low_speed_limit) {
  ------------------
  |  Branch (141:8): [True: 0, False: 0]
  ------------------
  142|      0|      if(!data->state.keeps_speed.tv_sec)
  ------------------
  |  Branch (142:10): [True: 0, False: 0]
  ------------------
  143|       |        /* under the limit at this moment */
  144|      0|        data->state.keeps_speed = *pnow;
  145|      0|      else {
  146|       |        /* how long has it been under the limit */
  147|      0|        timediff_t howlong =
  148|      0|          curlx_ptimediff_ms(pnow, &data->state.keeps_speed);
  149|       |
  150|      0|        if(howlong >= data->set.low_speed_time * 1000) {
  ------------------
  |  Branch (150:12): [True: 0, False: 0]
  ------------------
  151|       |          /* too long */
  152|      0|          failf(data, "Operation too slow. Less than %" FMT_OFF_T
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  153|      0|                " bytes/sec transferred the last %u seconds",
  154|      0|                data->set.low_speed_limit, data->set.low_speed_time);
  155|      0|          return CURLE_OPERATION_TIMEDOUT;
  156|      0|        }
  157|      0|      }
  158|      0|    }
  159|      0|    else
  160|       |      /* faster right now */
  161|      0|      data->state.keeps_speed.tv_sec = 0;
  162|      0|  }
  163|       |
  164|       |  /* since low speed limit is enabled, set the expire timer to make this
  165|       |     connection's speed get checked again in a second */
  166|      0|  Curl_expire(data, 1000, EXPIRE_SPEEDCHECK);
  167|       |
  168|      0|  return CURLE_OK;
  169|      0|}
Curl_pgrs_now:
  172|  1.98M|{
  173|  1.98M|  curlx_pnow(&data->progress.now);
  174|  1.98M|  return &data->progress.now;
  175|  1.98M|}
Curl_pgrsDone:
  189|  13.0k|{
  190|  13.0k|  int rc;
  191|  13.0k|  data->progress.delta.lastshow_us = -1;
  192|  13.0k|  rc = Curl_pgrsUpdate(data); /* the final (forced) update */
  193|  13.0k|  if(rc)
  ------------------
  |  Branch (193:6): [True: 0, False: 13.0k]
  ------------------
  194|      0|    return rc;
  195|       |
  196|  13.0k|  if(!data->progress.hide && !data->progress.callback)
  ------------------
  |  Branch (196:6): [True: 0, False: 13.0k]
  |  Branch (196:30): [True: 0, False: 0]
  ------------------
  197|       |    /* only output if we do not use a progress callback and we are not
  198|       |     * hidden */
  199|      0|    curl_mfprintf(data->set.err, "\n");
  200|       |
  201|  13.0k|  return 0;
  202|  13.0k|}
Curl_pgrsReset:
  205|  14.2k|{
  206|  14.2k|  Curl_pgrsSetUploadCounter(data, 0);
  207|  14.2k|  data->progress.dl.cur_size = 0;
  208|  14.2k|  Curl_pgrsSetUploadSize(data, -1);
  209|  14.2k|  Curl_pgrsSetDownloadSize(data, -1);
  210|  14.2k|  data->progress.speeder_c = 0; /* reset speed records */
  211|  14.2k|  data->progress.deliver = 0;
  212|  14.2k|  pgrs_speedinit(data);
  213|  14.2k|}
Curl_pgrsResetTransferSizes:
  217|  14.9k|{
  218|  14.9k|  Curl_pgrsSetDownloadSize(data, -1);
  219|  14.9k|  Curl_pgrsSetUploadSize(data, -1);
  220|  14.9k|}
Curl_pgrsTimeWas:
  266|   102k|{
  267|   102k|  timediff_t *delta = NULL;
  268|       |
  269|   102k|  switch(timer) {
  270|      0|  default:
  ------------------
  |  Branch (270:3): [True: 0, False: 102k]
  ------------------
  271|      0|  case TIMER_NONE:
  ------------------
  |  Branch (271:3): [True: 0, False: 102k]
  ------------------
  272|       |    /* mistake filter */
  273|      0|    break;
  274|  9.97k|  case TIMER_STARTOP:
  ------------------
  |  Branch (274:3): [True: 9.97k, False: 93.0k]
  ------------------
  275|       |    /* This is set at the start of a transfer */
  276|  9.97k|    data->progress.delta.startop_us =
  277|  9.97k|      curlx_ptimediff_us(&timestamp, &data->progress.start);
  278|  9.97k|    data->progress.delta.startqueue_us = data->progress.delta.startop_us;
  279|  9.97k|    break;
  280|  14.9k|  case TIMER_STARTSINGLE:
  ------------------
  |  Branch (280:3): [True: 14.9k, False: 88.0k]
  ------------------
  281|       |    /* This is set at the start of each single transfer */
  282|  14.9k|    data->progress.delta.startsingle_us =
  283|  14.9k|      curlx_ptimediff_us(&timestamp, &data->progress.start);
  284|  14.9k|    data->progress.startransfer_added = FALSE;
  ------------------
  |  | 1056|  14.9k|#define FALSE false
  ------------------
  285|  14.9k|    break;
  286|  14.2k|  case TIMER_POSTQUEUE:
  ------------------
  |  Branch (286:3): [True: 14.2k, False: 88.7k]
  ------------------
  287|       |    /* Queue time is accumulative from all involved redirects */
  288|  14.2k|    data->progress.total.queued_us +=
  289|  14.2k|      curlx_ptimediff_us(&timestamp, &data->progress.start) -
  290|  14.2k|      data->progress.delta.startqueue_us;
  291|  14.2k|    break;
  292|  10.1k|  case TIMER_NAMELOOKUP:
  ------------------
  |  Branch (292:3): [True: 10.1k, False: 92.8k]
  ------------------
  293|  10.1k|    delta = &data->progress.total.nslookup_us;
  294|  10.1k|    break;
  295|  8.99k|  case TIMER_CONNECT:
  ------------------
  |  Branch (295:3): [True: 8.99k, False: 94.0k]
  ------------------
  296|  8.99k|    delta = &data->progress.total.connect_us;
  297|  8.99k|    break;
  298|      0|  case TIMER_APPCONNECT:
  ------------------
  |  Branch (298:3): [True: 0, False: 102k]
  ------------------
  299|      0|    delta = &data->progress.total.appconnect_us;
  300|      0|    break;
  301|  14.9k|  case TIMER_PRETRANSFER:
  ------------------
  |  Branch (301:3): [True: 14.9k, False: 88.0k]
  ------------------
  302|  14.9k|    delta = &data->progress.total.pretransfer_us;
  303|  14.9k|    break;
  304|  10.2k|  case TIMER_STARTTRANSFER:
  ------------------
  |  Branch (304:3): [True: 10.2k, False: 92.6k]
  ------------------
  305|       |    /* prevent updating t_starttransfer unless:
  306|       |     *   1. this is the first time we are setting t_starttransfer
  307|       |     *   2. a redirect has occurred since the last time t_starttransfer was set
  308|       |     * This prevents repeated invocations of the function from incorrectly
  309|       |     * changing the t_starttransfer time.
  310|       |     */
  311|  10.2k|    if(data->progress.startransfer_added) {
  ------------------
  |  Branch (311:8): [True: 0, False: 10.2k]
  ------------------
  312|      0|      CURL_TRC_M(data, "[%s] ignored", pgrs_timer_name(timer));
  ------------------
  |  |  148|      0|  do {                                   \
  |  |  149|      0|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  313|      0|      return;
  314|      0|    }
  315|  10.2k|    data->progress.startransfer_added = TRUE;
  ------------------
  |  | 1053|  10.2k|#define TRUE true
  ------------------
  316|  10.2k|    delta = &data->progress.total.starttransfer_us;
  317|  10.2k|    break;
  318|  14.5k|  case TIMER_POSTRANSFER:
  ------------------
  |  Branch (318:3): [True: 14.5k, False: 88.4k]
  ------------------
  319|  14.5k|    delta = &data->progress.total.posttransfer_us;
  320|  14.5k|    break;
  321|  4.94k|  case TIMER_REDIRECT:
  ------------------
  |  Branch (321:3): [True: 4.94k, False: 98.0k]
  ------------------
  322|  4.94k|    data->progress.delta.startredirect_us =
  323|  4.94k|      curlx_ptimediff_us(&timestamp, &data->progress.start);
  324|       |    /* transfer starts queueing again */
  325|  4.94k|    data->progress.delta.startqueue_us =
  326|  4.94k|      data->progress.delta.startredirect_us;
  327|  4.94k|    break;
  328|   102k|  }
  329|   102k|  if(delta) {
  ------------------
  |  Branch (329:6): [True: 58.9k, False: 44.0k]
  ------------------
  330|  58.9k|    timediff_t us = curlx_ptimediff_us(&timestamp, &data->progress.start) -
  331|  58.9k|                    data->progress.delta.startsingle_us;
  332|  58.9k|    if(us < 1)
  ------------------
  |  Branch (332:8): [True: 0, False: 58.9k]
  ------------------
  333|      0|      us = 1; /* make sure at least one microsecond passed */
  334|  58.9k|    *delta += us;
  335|  58.9k|    CURL_TRC_M(data, "[%s] added %" FMT_TIMEDIFF_T "us",
  ------------------
  |  |  148|  58.9k|  do {                                   \
  |  |  149|  58.9k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  58.9k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  58.9k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|   117k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 58.9k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 58.9k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|   117k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  58.9k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  58.9k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  58.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 58.9k]
  |  |  ------------------
  ------------------
  336|  58.9k|               pgrs_timer_name(timer), us);
  337|  58.9k|  }
  338|  44.0k|  else
  339|  44.0k|    CURL_TRC_M(data, "[%s] set", pgrs_timer_name(timer));
  ------------------
  |  |  148|  44.0k|  do {                                   \
  |  |  149|  44.0k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  44.0k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  44.0k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  88.1k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 44.0k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 44.0k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  88.1k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  44.0k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  44.0k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  44.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 44.0k]
  |  |  ------------------
  ------------------
  340|   102k|}
Curl_pgrsTime:
  349|  94.0k|{
  350|  94.0k|  Curl_pgrsTimeWas(data, timer, *Curl_pgrs_now(data));
  351|  94.0k|}
Curl_pgrsStart:
  354|  9.97k|{
  355|  9.97k|  struct Progress *p = &data->progress;
  356|       |
  357|  9.97k|  if(!pnow)
  ------------------
  |  Branch (357:6): [True: 9.97k, False: 0]
  ------------------
  358|  9.97k|    pnow = Curl_pgrs_now(data);
  359|  9.97k|  p->speeder_c = 0; /* reset the progress meter display */
  360|  9.97k|  p->start = *pnow;
  361|  9.97k|  memset(&p->delta, 0, sizeof(p->delta));
  362|  9.97k|  memset(&p->total, 0, sizeof(p->total));
  363|  9.97k|  p->startransfer_added = FALSE;
  ------------------
  |  | 1056|  9.97k|#define FALSE false
  ------------------
  364|  9.97k|  p->dl.cur_size = 0;
  365|  9.97k|  p->ul.cur_size = 0;
  366|       |  /* the sizes are unknown at start */
  367|  9.97k|  p->dl_size_known = FALSE;
  ------------------
  |  | 1056|  9.97k|#define FALSE false
  ------------------
  368|       |  p->ul_size_known = FALSE;
  ------------------
  |  | 1056|  9.97k|#define FALSE false
  ------------------
  369|  9.97k|}
Curl_pgrs_deliver_check:
  374|  2.58k|{
  375|  2.58k|  if(data->set.max_filesize &&
  ------------------
  |  Branch (375:6): [True: 0, False: 2.58k]
  ------------------
  376|      0|     ((curl_off_t)delta > data->set.max_filesize - data->progress.deliver)) {
  ------------------
  |  Branch (376:6): [True: 0, False: 0]
  ------------------
  377|      0|    failf(data, "Would have exceeded max file size");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  378|      0|    return CURLE_FILESIZE_EXCEEDED;
  379|      0|  }
  380|  2.58k|  return CURLE_OK;
  381|  2.58k|}
Curl_pgrs_deliver_inc:
  386|  2.58k|{
  387|  2.58k|  data->progress.deliver += delta;
  388|  2.58k|}
Curl_pgrs_download_inc:
  391|  2.96k|{
  392|  2.96k|  if(delta) {
  ------------------
  |  Branch (392:6): [True: 2.96k, False: 0]
  ------------------
  393|  2.96k|    data->progress.dl.cur_size += delta;
  394|       |    Curl_rlimit_drain(&data->progress.dl.rlimit, delta, NULL);
  395|  2.96k|  }
  396|  2.96k|}
Curl_pgrs_upload_inc:
  399|  1.05k|{
  400|  1.05k|  if(delta) {
  ------------------
  |  Branch (400:6): [True: 1.05k, False: 0]
  ------------------
  401|  1.05k|    data->progress.ul.cur_size += delta;
  402|       |    Curl_rlimit_drain(&data->progress.ul.rlimit, delta, NULL);
  403|  1.05k|  }
  404|  1.05k|}
Curl_pgrsSetUploadCounter:
  410|  14.2k|{
  411|  14.2k|  data->progress.ul.cur_size = size;
  412|  14.2k|}
Curl_pgrsSetDownloadSize:
  415|  33.7k|{
  416|  33.7k|  if(size >= 0) {
  ------------------
  |  Branch (416:6): [True: 4.55k, False: 29.1k]
  ------------------
  417|  4.55k|    data->progress.dl.total_size = size;
  418|  4.55k|    data->progress.dl_size_known = TRUE;
  ------------------
  |  | 1053|  4.55k|#define TRUE true
  ------------------
  419|  4.55k|  }
  420|  29.1k|  else {
  421|  29.1k|    data->progress.dl.total_size = 0;
  422|       |    data->progress.dl_size_known = FALSE;
  ------------------
  |  | 1056|  29.1k|#define FALSE false
  ------------------
  423|  29.1k|  }
  424|  33.7k|}
Curl_pgrsSetUploadSize:
  427|  42.2k|{
  428|  42.2k|  if(size >= 0) {
  ------------------
  |  Branch (428:6): [True: 12.5k, False: 29.6k]
  ------------------
  429|  12.5k|    data->progress.ul.total_size = size;
  430|  12.5k|    data->progress.ul_size_known = TRUE;
  ------------------
  |  | 1053|  12.5k|#define TRUE true
  ------------------
  431|  12.5k|  }
  432|  29.6k|  else {
  433|  29.6k|    data->progress.ul.total_size = 0;
  434|       |    data->progress.ul_size_known = FALSE;
  ------------------
  |  | 1056|  29.6k|#define FALSE false
  ------------------
  435|  29.6k|  }
  436|  42.2k|}
Curl_pgrsUpdate:
  714|   357k|{
  715|   357k|  return pgrs_update(data, Curl_pgrs_now(data));
  716|   357k|}
Curl_pgrsCheck:
  719|   147k|{
  720|   147k|  CURLcode result;
  721|       |
  722|   147k|  result = pgrs_update(data, Curl_pgrs_now(data));
  723|   147k|  if(!result && !data->req.done)
  ------------------
  |  Branch (723:6): [True: 147k, False: 0]
  |  Branch (723:17): [True: 147k, False: 0]
  ------------------
  724|   147k|    result = pgrs_speedcheck(data, Curl_pgrs_now(data));
  725|   147k|  return result;
  726|   147k|}
Curl_pgrsUpdate_nometer:
  732|    665|{
  733|    665|  (void)progress_calc(data, Curl_pgrs_now(data));
  734|    665|}
Curl_pgrsCompleted:
  737|  9.96k|{
  738|  9.96k|  struct Progress * const p = &data->progress;
  739|  9.96k|  p->total.spent_us = curlx_ptimediff_us(Curl_pgrs_now(data), &p->start);
  740|  9.96k|}
Curl_pgrs_since_ms:
  745|   463k|{
  746|   463k|  if(!pnow)
  ------------------
  |  Branch (746:6): [True: 1.70k, False: 461k]
  ------------------
  747|  1.70k|    pnow = Curl_pgrs_now(data);
  748|   463k|  switch(timer) {
  749|   385k|  case TIMER_STARTOP:
  ------------------
  |  Branch (749:3): [True: 385k, False: 77.3k]
  ------------------
  750|   385k|    return (curlx_ptimediff_us(pnow, &data->progress.start) -
  751|   385k|            data->progress.delta.startop_us) / 1000;
  752|  77.3k|  case TIMER_STARTSINGLE:
  ------------------
  |  Branch (752:3): [True: 77.3k, False: 385k]
  ------------------
  753|  77.3k|    return (curlx_ptimediff_us(pnow, &data->progress.start) -
  754|  77.3k|            data->progress.delta.startsingle_us) / 1000;
  755|      0|  default:
  ------------------
  |  Branch (755:3): [True: 0, False: 463k]
  ------------------
  756|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (756:5): [Folded, False: 0]
  |  Branch (756:5): [Folded, False: 0]
  ------------------
  757|      0|    return 0;
  758|   463k|  }
  759|   463k|}
progress.c:pgrs_speedinit:
  123|  14.2k|{
  124|  14.2k|  memset(&data->state.keeps_speed, 0, sizeof(struct curltime));
  125|  14.2k|}
progress.c:pgrs_update:
  708|   504k|{
  709|       |  bool showprogress = progress_calc(data, pnow);
  710|   504k|  return pgrsupdate(data, showprogress);
  711|   504k|}
progress.c:pgrsupdate:
  659|   504k|{
  660|   504k|  if(!data->progress.hide) {
  ------------------
  |  Branch (660:6): [True: 0, False: 504k]
  ------------------
  661|      0|    int rc;
  662|      0|    if(data->set.fxferinfo) {
  ------------------
  |  Branch (662:8): [True: 0, False: 0]
  ------------------
  663|       |      /* There is a callback set, call that */
  664|      0|      struct Curl_mapi_guard guard;
  665|      0|      CURL_CBAPI_START(&guard, data, easy_fxferinfo);
  ------------------
  |  |  200|      0|  Curl_cbapi_enter((g), (d), NULL, CURL_CBAPI_FN_##fn)
  ------------------
  666|      0|      rc = data->set.fxferinfo(data->set.progress_client,
  667|      0|                               data->progress.dl.total_size,
  668|      0|                               data->progress.dl.cur_size,
  669|      0|                               data->progress.ul.total_size,
  670|      0|                               data->progress.ul.cur_size);
  671|      0|      CURL_CBAPI_END(&guard);
  ------------------
  |  |  204|      0|  Curl_cbapi_leave(g)
  ------------------
  672|      0|      if(rc != CURL_PROGRESSFUNC_CONTINUE) {
  ------------------
  |  |  234|      0|#define CURL_PROGRESSFUNC_CONTINUE 0x10000001
  ------------------
  |  Branch (672:10): [True: 0, False: 0]
  ------------------
  673|      0|        if(rc) {
  ------------------
  |  Branch (673:12): [True: 0, False: 0]
  ------------------
  674|      0|          failf(data, "Callback aborted");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  675|      0|          return CURLE_ABORTED_BY_CALLBACK;
  676|      0|        }
  677|      0|        return CURLE_OK;
  678|      0|      }
  679|      0|    }
  680|      0|    else if(data->set.fprogress) {
  ------------------
  |  Branch (680:13): [True: 0, False: 0]
  ------------------
  681|       |      /* The older deprecated callback is set, call that */
  682|      0|      struct Curl_mapi_guard guard;
  683|      0|      CURL_CBAPI_START(&guard, data, easy_fprogress);
  ------------------
  |  |  200|      0|  Curl_cbapi_enter((g), (d), NULL, CURL_CBAPI_FN_##fn)
  ------------------
  684|      0|      rc = data->set.fprogress(data->set.progress_client,
  685|      0|                               (double)data->progress.dl.total_size,
  686|      0|                               (double)data->progress.dl.cur_size,
  687|      0|                               (double)data->progress.ul.total_size,
  688|      0|                               (double)data->progress.ul.cur_size);
  689|      0|      CURL_CBAPI_END(&guard);
  ------------------
  |  |  204|      0|  Curl_cbapi_leave(g)
  ------------------
  690|      0|      if(rc != CURL_PROGRESSFUNC_CONTINUE) {
  ------------------
  |  |  234|      0|#define CURL_PROGRESSFUNC_CONTINUE 0x10000001
  ------------------
  |  Branch (690:10): [True: 0, False: 0]
  ------------------
  691|      0|        if(rc) {
  ------------------
  |  Branch (691:12): [True: 0, False: 0]
  ------------------
  692|      0|          failf(data, "Callback aborted");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  693|      0|          return CURLE_ABORTED_BY_CALLBACK;
  694|      0|        }
  695|      0|        return CURLE_OK;
  696|      0|      }
  697|      0|    }
  698|       |
  699|      0|    if(showprogress)
  ------------------
  |  Branch (699:8): [True: 0, False: 0]
  ------------------
  700|      0|      progress_meter(data);
  701|      0|  }
  702|       |
  703|   504k|  return CURLE_OK;
  704|   504k|}
progress.c:progress_calc:
  460|   505k|{
  461|   505k|  struct Progress * const p = &data->progress;
  462|   505k|  int i_next, i_oldest, i_latest;
  463|   505k|  timediff_t duration_us, elapsed_us;
  464|   505k|  curl_off_t amount;
  465|       |
  466|       |  /* The time spent so far (from the start) in microseconds */
  467|   505k|  elapsed_us = curlx_ptimediff_us(pnow, &p->start);
  468|   505k|  p->total.spent_us = elapsed_us;
  469|   505k|  p->dl.speed = trspeed(p->dl.cur_size, p->total.spent_us);
  470|   505k|  p->ul.speed = trspeed(p->ul.cur_size, p->total.spent_us);
  471|       |
  472|   505k|  if(!p->speeder_c) { /* no previous record exists */
  ------------------
  |  Branch (472:6): [True: 13.7k, False: 491k]
  ------------------
  473|  13.7k|    p->speed_amount[0] = p->dl.cur_size + p->ul.cur_size;
  474|  13.7k|    p->speed_time[0] = elapsed_us;
  475|  13.7k|    p->speeder_c++;
  476|       |    /* use the overall average at the start */
  477|  13.7k|    p->current_speed = p->ul.speed + p->dl.speed;
  478|  13.7k|    p->delta.lastshow_us = elapsed_us;
  479|  13.7k|    return TRUE;
  ------------------
  |  | 1053|  13.7k|#define TRUE true
  ------------------
  480|  13.7k|  }
  481|       |  /* We have at least one record now. Where to put the next and
  482|       |   * where is the latest one? */
  483|   491k|  i_next = p->speeder_c % CURL_SPEED_RECORDS;
  ------------------
  |  |  467|   491k|#define CURL_SPEED_RECORDS (5 + 1) /* 6 entries for 5 seconds */
  ------------------
  484|   491k|  i_latest = (i_next > 0) ? (i_next - 1) : (CURL_SPEED_RECORDS - 1);
  ------------------
  |  |  467|      0|#define CURL_SPEED_RECORDS (5 + 1) /* 6 entries for 5 seconds */
  ------------------
  |  Branch (484:14): [True: 491k, False: 0]
  ------------------
  485|       |
  486|       |  /* Make a new record only when some time has passed.
  487|       |   * Too frequent calls otherwise ruin the history. */
  488|   491k|  if((elapsed_us - p->speed_time[i_latest]) >= (1000 * 1000)) {
  ------------------
  |  Branch (488:6): [True: 793, False: 490k]
  ------------------
  489|    793|    p->speeder_c++;
  490|    793|    i_latest = i_next;
  491|    793|    p->speed_amount[i_latest] = p->dl.cur_size + p->ul.cur_size;
  492|    793|    p->speed_time[i_latest] = elapsed_us;
  493|    793|  }
  494|   490k|  else if(data->req.done) {
  ------------------
  |  Branch (494:11): [True: 16.4k, False: 474k]
  ------------------
  495|       |    /* When a transfer is done, and we did not have a current speed
  496|       |     * already, update the last record. Otherwise, stay at the speed
  497|       |     * we have. The last chunk of data, when rate limiting, would increase
  498|       |     * reported speed since it no longer measures a full second. */
  499|  16.4k|    if(!p->current_speed) {
  ------------------
  |  Branch (499:8): [True: 16.3k, False: 97]
  ------------------
  500|  16.3k|      p->speed_amount[i_latest] = p->dl.cur_size + p->ul.cur_size;
  501|  16.3k|      p->speed_time[i_latest] = elapsed_us;
  502|  16.3k|    }
  503|  16.4k|  }
  504|   474k|  else {
  505|       |    /* transfer ongoing, wait for more time to pass. */
  506|   474k|    return FALSE;
  ------------------
  |  | 1056|   474k|#define FALSE false
  ------------------
  507|   474k|  }
  508|       |
  509|  17.2k|  i_oldest = (p->speeder_c < CURL_SPEED_RECORDS) ? 0 :
  ------------------
  |  |  467|  17.2k|#define CURL_SPEED_RECORDS (5 + 1) /* 6 entries for 5 seconds */
  ------------------
  |  Branch (509:14): [True: 17.2k, False: 0]
  ------------------
  510|  17.2k|             ((i_latest + 1) % CURL_SPEED_RECORDS);
  ------------------
  |  |  467|      0|#define CURL_SPEED_RECORDS (5 + 1) /* 6 entries for 5 seconds */
  ------------------
  511|       |
  512|       |  /* How much we transferred between oldest and current records */
  513|  17.2k|  amount = p->speed_amount[i_latest] - p->speed_amount[i_oldest];
  514|       |  /* How long this took */
  515|  17.2k|  duration_us = p->speed_time[i_latest] - p->speed_time[i_oldest];
  516|  17.2k|  if(duration_us <= 0)
  ------------------
  |  Branch (516:6): [True: 16.3k, False: 912]
  ------------------
  517|  16.3k|    duration_us = 1;
  518|       |
  519|  17.2k|  if(amount > (CURL_OFF_T_MAX / 1000000)) {
  ------------------
  |  |  596|  17.2k|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  |  Branch (519:6): [True: 0, False: 17.2k]
  ------------------
  520|       |    /* the 'amount' value is bigger than would fit in 64 bits if
  521|       |       multiplied with 1000000, so we use the double math for this */
  522|      0|    p->current_speed =
  523|      0|      (curl_off_t)(((double)amount * 1000000.0) / (double)duration_us);
  524|      0|  }
  525|  17.2k|  else {
  526|  17.2k|    p->current_speed = amount * 1000000 / duration_us;
  527|  17.2k|  }
  528|       |
  529|  17.2k|  if((p->delta.lastshow_us >= 0) && !data->req.done &&
  ------------------
  |  Branch (529:6): [True: 9.89k, False: 7.39k]
  |  Branch (529:37): [True: 619, False: 9.27k]
  ------------------
  530|    619|     ((elapsed_us - p->delta.lastshow_us) < (1000 * 1000)))
  ------------------
  |  Branch (530:6): [True: 0, False: 619]
  ------------------
  531|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  532|  17.2k|  p->delta.lastshow_us = elapsed_us;
  533|       |  return TRUE;
  ------------------
  |  | 1053|  17.2k|#define TRUE true
  ------------------
  534|  17.2k|}
progress.c:trspeed:
  446|  1.01M|{
  447|  1.01M|  if(us < 1)
  ------------------
  |  Branch (447:6): [True: 0, False: 1.01M]
  ------------------
  448|      0|    return size * 1000000;
  449|  1.01M|  else if(size < CURL_OFF_T_MAX / 1000000)
  ------------------
  |  |  596|  1.01M|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  |  Branch (449:11): [True: 1.01M, False: 0]
  ------------------
  450|  1.01M|    return (size * 1000000) / us;
  451|      0|  else if(us >= 1000000)
  ------------------
  |  Branch (451:11): [True: 0, False: 0]
  ------------------
  452|      0|    return size / (us / 1000000);
  453|      0|  else
  454|      0|    return CURL_OFF_T_MAX;
  ------------------
  |  |  596|      0|#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
  ------------------
  455|  1.01M|}

Curl_getn_scheme:
  469|   142k|{
  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|   142k|  static const struct Curl_scheme * const all_schemes[59] = { NULL,
  480|   142k|    &Curl_scheme_pop3, NULL,
  481|   142k|    &Curl_scheme_smtps,
  482|   142k|    &Curl_scheme_socks,
  483|   142k|    &Curl_scheme_socks4,
  484|   142k|    &Curl_scheme_socks5, NULL, NULL,
  485|   142k|    &Curl_scheme_gophers,
  486|   142k|    &Curl_scheme_ws,
  487|   142k|    &Curl_scheme_sftp,
  488|   142k|    &Curl_scheme_socks4a,
  489|   142k|    &Curl_scheme_scp,
  490|   142k|    &Curl_scheme_rtsp,
  491|   142k|    &Curl_scheme_dict, NULL, NULL,
  492|   142k|    &Curl_scheme_gopher, NULL, NULL, NULL,
  493|   142k|    &Curl_scheme_wss, NULL,
  494|   142k|    &Curl_scheme_smb, NULL,
  495|   142k|    &Curl_scheme_ldap,
  496|   142k|    &Curl_scheme_ldaps,
  497|   142k|    &Curl_scheme_imap, NULL, NULL, NULL,
  498|   142k|    &Curl_scheme_imaps,
  499|   142k|    &Curl_scheme_https,
  500|   142k|    &Curl_scheme_tftp,
  501|   142k|    &Curl_scheme_telnet, NULL, NULL, NULL,
  502|   142k|    &Curl_scheme_file,
  503|   142k|    &Curl_scheme_smtp, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
  504|   142k|    &Curl_scheme_ftp,
  505|   142k|    &Curl_scheme_mqtt, NULL,
  506|   142k|    &Curl_scheme_socks5h,
  507|   142k|    &Curl_scheme_http,
  508|   142k|    &Curl_scheme_pop3s, NULL,
  509|   142k|    &Curl_scheme_mqtts, NULL,
  510|   142k|    &Curl_scheme_smbs,
  511|   142k|    &Curl_scheme_ftps,
  512|   142k|  };
  513|       |
  514|   142k|  if(len && (len <= 7)) {
  ------------------
  |  Branch (514:6): [True: 142k, False: 0]
  |  Branch (514:13): [True: 142k, False: 37]
  ------------------
  515|   142k|    const char *s = scheme;
  516|   142k|    size_t l = len;
  517|   142k|    const struct Curl_scheme *h;
  518|   142k|    unsigned int c = 443;
  519|   637k|    while(l) {
  ------------------
  |  Branch (519:11): [True: 494k, False: 142k]
  ------------------
  520|   494k|      c <<= 5;
  521|   494k|      c += (unsigned int)Curl_raw_tolower(*s);
  522|   494k|      s++;
  523|   494k|      l--;
  524|   494k|    }
  525|       |
  526|   142k|    h = all_schemes[c % 59];
  527|   142k|    if(h && curl_strnequal(scheme, h->name, len) && !h->name[len])
  ------------------
  |  Branch (527:8): [True: 142k, False: 14]
  |  Branch (527:13): [True: 142k, False: 13]
  |  Branch (527:53): [True: 142k, False: 8]
  ------------------
  528|   142k|      return h;
  529|   142k|  }
  530|     72|  return NULL;
  531|   142k|}
Curl_get_scheme:
  534|  82.5k|{
  535|  82.5k|  return Curl_getn_scheme(scheme, strlen(scheme));
  536|  82.5k|}

proxy_check_noproxy:
  199|  14.2k|{
  200|       |  /*
  201|       |   * If we do not have a hostname at all, like for example with a FILE
  202|       |   * transfer, we have nothing to interrogate the noproxy list with.
  203|       |   */
  204|  14.2k|  if(!name || name[0] == '\0')
  ------------------
  |  Branch (204:6): [True: 0, False: 14.2k]
  |  Branch (204:15): [True: 0, False: 14.2k]
  ------------------
  205|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  206|       |
  207|       |  /* no_proxy=domain1.dom,host.domain2.dom
  208|       |   *   (a comma-separated list of hosts which should
  209|       |   *   not be proxied, or an asterisk to override
  210|       |   *   all proxy variables)
  211|       |   */
  212|  14.2k|  if(no_proxy && no_proxy[0]) {
  ------------------
  |  Branch (212:6): [True: 0, False: 14.2k]
  |  Branch (212:18): [True: 0, False: 0]
  ------------------
  213|      0|    const char *p = no_proxy;
  214|      0|    size_t namelen;
  215|      0|    char address[16];
  216|      0|    enum nametype type = TYPE_HOST;
  217|      0|    if(!strcmp("*", no_proxy))
  ------------------
  |  Branch (217:8): [True: 0, False: 0]
  ------------------
  218|      0|      return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  219|       |
  220|       |    /* NO_PROXY was specified and it was not only an asterisk */
  221|       |
  222|       |    /* Check if name is an IP address; if not, assume it being a hostname. */
  223|      0|    namelen = strlen(name);
  224|      0|    if(curlx_inet_pton(AF_INET, name, &address) == 1)
  ------------------
  |  Branch (224:8): [True: 0, False: 0]
  ------------------
  225|      0|      type = TYPE_IPV4;
  226|      0|#ifdef USE_IPV6
  227|      0|    else if(curlx_inet_pton(AF_INET6, name, &address) == 1)
  ------------------
  |  Branch (227:13): [True: 0, False: 0]
  ------------------
  228|      0|      type = TYPE_IPV6;
  229|      0|#endif
  230|      0|    else {
  231|       |      /* ignore trailing dots in the hostname */
  232|      0|      if(name[namelen - 1] == '.')
  ------------------
  |  Branch (232:10): [True: 0, False: 0]
  ------------------
  233|      0|        namelen--;
  234|      0|    }
  235|       |
  236|      0|    while(*p) {
  ------------------
  |  Branch (236:11): [True: 0, False: 0]
  ------------------
  237|      0|      const char *token;
  238|      0|      size_t tokenlen = 0;
  239|       |
  240|       |      /* pass blanks */
  241|      0|      curlx_str_passblanks(&p);
  242|       |
  243|      0|      token = p;
  244|       |      /* pass over the pattern */
  245|      0|      while(*p && !ISBLANK(*p) && (*p != ',')) {
  ------------------
  |  |   43|      0|#define ISBLANK(x)  (((x) == ' ') || ((x) == '\t'))
  |  |  ------------------
  |  |  |  Branch (43:22): [True: 0, False: 0]
  |  |  |  Branch (43:38): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (245:13): [True: 0, False: 0]
  |  Branch (245:35): [True: 0, False: 0]
  ------------------
  246|      0|        p++;
  247|      0|        tokenlen++;
  248|      0|      }
  249|       |
  250|      0|      if(tokenlen) {
  ------------------
  |  Branch (250:10): [True: 0, False: 0]
  ------------------
  251|      0|        bool match = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  252|      0|        if(type == TYPE_HOST)
  ------------------
  |  Branch (252:12): [True: 0, False: 0]
  ------------------
  253|      0|          match = match_host(token, tokenlen, name, namelen);
  254|      0|        else
  255|      0|          match = match_ip(type, token, tokenlen, name);
  256|       |
  257|      0|        if(match)
  ------------------
  |  Branch (257:12): [True: 0, False: 0]
  ------------------
  258|      0|          return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  259|      0|      }
  260|       |
  261|       |      /* pass blanks after pattern */
  262|      0|      curlx_str_passblanks(&p);
  263|       |      /* if not a comma, this ends the loop */
  264|      0|      if(*p != ',')
  ------------------
  |  Branch (264:10): [True: 0, False: 0]
  ------------------
  265|      0|        break;
  266|       |      /* pass any number of commas */
  267|      0|      while(*p == ',')
  ------------------
  |  Branch (267:13): [True: 0, False: 0]
  ------------------
  268|      0|        p++;
  269|      0|    } /* while(*p) */
  270|      0|  } /* NO_PROXY was specified and it was not only an asterisk */
  271|       |
  272|  14.2k|  return FALSE;
  ------------------
  |  | 1056|  14.2k|#define FALSE false
  ------------------
  273|  14.2k|}
Curl_proxy_init_conn:
  521|  14.2k|{
  522|  14.2k|  char *proxy = NULL;
  523|  14.2k|  char *pre_proxy = NULL;
  524|  14.2k|  bool do_env_detect = TRUE;
  ------------------
  |  | 1053|  14.2k|#define TRUE true
  ------------------
  525|  14.2k|  CURLcode result = CURLE_OK;
  526|       |
  527|       |  /* Enforce no proxy use unless we decide to use one */
  528|  14.2k|  conn->bits.origin_is_proxy = FALSE;
  ------------------
  |  | 1056|  14.2k|#define FALSE false
  ------------------
  529|  14.2k|  DEBUGASSERT(!conn->socks_proxy.peer);
  ------------------
  |  | 1083|  14.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (529:3): [True: 0, False: 14.2k]
  |  Branch (529:3): [True: 14.2k, False: 0]
  ------------------
  530|  14.2k|  DEBUGASSERT(!conn->http_proxy.peer);
  ------------------
  |  | 1083|  14.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (530:3): [True: 0, False: 14.2k]
  |  Branch (530:3): [True: 14.2k, False: 0]
  ------------------
  531|       |
  532|  14.2k|  if(proxy_do_not_proxy(data))
  ------------------
  |  Branch (532:6): [True: 0, False: 14.2k]
  ------------------
  533|      0|    goto out;
  534|       |
  535|       |  /*************************************************************
  536|       |   * Detect what (if any) proxy to use
  537|       |   *************************************************************/
  538|       |  /* the empty config strings disable proxy use and env detects */
  539|  14.2k|  if(data->set.str[STRING_PROXY]) {
  ------------------
  |  Branch (539:6): [True: 0, False: 14.2k]
  ------------------
  540|      0|    if(*data->set.str[STRING_PROXY]) {
  ------------------
  |  Branch (540:8): [True: 0, False: 0]
  ------------------
  541|      0|      proxy = curlx_strdup(data->set.str[STRING_PROXY]);
  ------------------
  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  542|       |      /* if global proxy is set, this is it */
  543|      0|      if(!proxy) {
  ------------------
  |  Branch (543:10): [True: 0, False: 0]
  ------------------
  544|      0|        failf(data, "memory shortage");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  545|      0|        result = CURLE_OUT_OF_MEMORY;
  546|      0|        goto out;
  547|      0|      }
  548|      0|    }
  549|      0|    else
  550|      0|      do_env_detect = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  551|      0|  }
  552|       |
  553|  14.2k|  if(data->set.str[STRING_PRE_PROXY]) {
  ------------------
  |  Branch (553:6): [True: 0, False: 14.2k]
  ------------------
  554|      0|    if(*data->set.str[STRING_PRE_PROXY]) {
  ------------------
  |  Branch (554:8): [True: 0, False: 0]
  ------------------
  555|      0|      pre_proxy = curlx_strdup(data->set.str[STRING_PRE_PROXY]);
  ------------------
  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  556|       |      /* if global socks proxy is set, this is it */
  557|      0|      if(!pre_proxy) {
  ------------------
  |  Branch (557:10): [True: 0, False: 0]
  ------------------
  558|      0|        failf(data, "memory shortage");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  559|      0|        result = CURLE_OUT_OF_MEMORY;
  560|      0|        goto out;
  561|      0|      }
  562|      0|    }
  563|      0|    else
  564|      0|      do_env_detect = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  565|      0|  }
  566|       |
  567|  14.2k|#ifndef CURL_DISABLE_HTTP
  568|       |  /* None configured, detect possible proxy from environment. */
  569|  14.2k|  if(!proxy && !pre_proxy && do_env_detect)
  ------------------
  |  Branch (569:6): [True: 14.2k, False: 0]
  |  Branch (569:16): [True: 14.2k, False: 0]
  |  Branch (569:30): [True: 14.2k, False: 0]
  ------------------
  570|  14.2k|    proxy = proxy_detect_proxy(data, conn->scheme);
  571|       |#else
  572|       |  (void)do_env_detect;
  573|       |#endif /* CURL_DISABLE_HTTP */
  574|       |
  575|  14.2k|  if(!proxy && !pre_proxy)
  ------------------
  |  Branch (575:6): [True: 14.2k, False: 0]
  |  Branch (575:16): [True: 14.2k, False: 0]
  ------------------
  576|  14.2k|    goto out;
  577|       |
  578|      0|  if(pre_proxy) {
  ------------------
  |  Branch (578:6): [True: 0, False: 0]
  ------------------
  579|      0|    result = parse_proxy(data, pre_proxy, TRUE, &conn->socks_proxy);
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  580|      0|    if(result)
  ------------------
  |  Branch (580:8): [True: 0, False: 0]
  ------------------
  581|      0|      goto out;
  582|      0|  }
  583|       |
  584|      0|  if(proxy) {
  ------------------
  |  Branch (584:6): [True: 0, False: 0]
  ------------------
  585|      0|    result = parse_proxy(data, proxy, FALSE, &conn->http_proxy);
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  586|      0|    if(result)
  ------------------
  |  Branch (586:8): [True: 0, False: 0]
  ------------------
  587|      0|      goto out;
  588|       |
  589|      0|    switch(conn->http_proxy.proxytype) {
  590|      0|    case CURLPROXY_SOCKS4:
  ------------------
  |  |  798|      0|#define CURLPROXY_SOCKS4          4L /* support added in 7.15.2, enum existed
  ------------------
  |  Branch (590:5): [True: 0, False: 0]
  ------------------
  591|      0|    case CURLPROXY_SOCKS4A:
  ------------------
  |  |  801|      0|#define CURLPROXY_SOCKS4A         6L /* added in 7.18.0 */
  ------------------
  |  Branch (591:5): [True: 0, False: 0]
  ------------------
  592|      0|    case CURLPROXY_SOCKS5:
  ------------------
  |  |  800|      0|#define CURLPROXY_SOCKS5          5L /* added in 7.10 */
  ------------------
  |  Branch (592:5): [True: 0, False: 0]
  ------------------
  593|      0|    case CURLPROXY_SOCKS5_HOSTNAME:
  ------------------
  |  |  802|      0|#define CURLPROXY_SOCKS5_HOSTNAME 7L /* Use the SOCKS5 protocol but pass along
  ------------------
  |  Branch (593:5): [True: 0, False: 0]
  ------------------
  594|       |      /* Whoops, it is not an HTTP proxy */
  595|      0|      if(pre_proxy) {
  ------------------
  |  Branch (595:10): [True: 0, False: 0]
  ------------------
  596|       |        /* and we already have a SOCKS pre-proxy. Cannot have both */
  597|      0|        failf(data, "Having a SOCKS pre-proxy and proxy is not "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  598|      0|              "supported with \'%s\'", proxy);
  599|      0|        result = CURLE_COULDNT_RESOLVE_PROXY;
  600|      0|        goto out;
  601|      0|      }
  602|       |      /* switch */
  603|      0|      conn->socks_proxy = conn->http_proxy;
  604|      0|      memset(&conn->http_proxy, 0, sizeof(conn->http_proxy));
  605|      0|      break;
  606|      0|    default:
  ------------------
  |  Branch (606:5): [True: 0, False: 0]
  ------------------
  607|       |      /* all other types are HTTP */
  608|      0|      break;
  609|      0|    }
  610|      0|  }
  611|       |
  612|      0|  if(conn->socks_proxy.peer) {
  ------------------
  |  Branch (612:6): [True: 0, False: 0]
  ------------------
  613|      0|    DEBUGASSERT(!CURL_PROXY_IS_ANY_HTTP(conn->socks_proxy.proxytype));
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (613:5): [True: 0, False: 0]
  |  Branch (613:5): [True: 0, False: 0]
  |  Branch (613:5): [True: 0, False: 0]
  |  Branch (613:5): [True: 0, False: 0]
  |  Branch (613:5): [True: 0, False: 0]
  |  Branch (613:5): [True: 0, False: 0]
  |  Branch (613:5): [True: 0, False: 0]
  |  Branch (613:5): [True: 0, False: 0]
  |  Branch (613:5): [True: 0, False: 0]
  |  Branch (613:5): [True: 0, False: 0]
  ------------------
  614|      0|  }
  615|       |
  616|       |#ifdef CURL_DISABLE_HTTP
  617|       |  if(conn->http_proxy.peer) {
  618|       |    /* asking for an HTTP proxy is a bit funny when HTTP is disabled... */
  619|       |    result = CURLE_UNSUPPORTED_PROTOCOL;
  620|       |    goto out;
  621|       |  }
  622|       |
  623|       |#else /* CURL_DISABLE_HTTP */
  624|      0|  if(conn->http_proxy.peer) {
  ------------------
  |  Branch (624:6): [True: 0, False: 0]
  ------------------
  625|      0|    const struct Curl_scheme *scheme = data->state.origin->scheme;
  626|      0|    bool tunnel_proxy = (bool)data->set.tunnel_thru_httpproxy;
  627|      0|    DEBUGASSERT(CURL_PROXY_IS_ANY_HTTP(conn->http_proxy.proxytype));
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (627:5): [True: 0, False: 0]
  |  Branch (627:5): [True: 0, False: 0]
  |  Branch (627:5): [True: 0, False: 0]
  |  Branch (627:5): [True: 0, False: 0]
  |  Branch (627:5): [True: 0, False: 0]
  |  Branch (627:5): [True: 0, False: 0]
  |  Branch (627:5): [True: 0, False: 0]
  |  Branch (627:5): [True: 0, False: 0]
  |  Branch (627:5): [True: 0, False: 0]
  |  Branch (627:5): [True: 0, False: 0]
  ------------------
  628|       |
  629|      0|    if(!tunnel_proxy) {
  ------------------
  |  Branch (629:8): [True: 0, False: 0]
  ------------------
  630|       |      /* Decide if we tunnel through proxy automatically */
  631|      0|      if(conn->via_peer) {
  ------------------
  |  Branch (631:10): [True: 0, False: 0]
  ------------------
  632|       |        /* With connect-to, we always tunnel */
  633|      0|        tunnel_proxy = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  634|      0|      }
  635|      0|      else if(scheme->flags & PROTOPT_SSL) {
  ------------------
  |  |  207|      0|#define PROTOPT_SSL (1 << 0)       /* uses SSL */
  ------------------
  |  Branch (635:15): [True: 0, False: 0]
  ------------------
  636|       |        /* If the transfer is supposed to be secure, we tunnel */
  637|      0|        tunnel_proxy = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  638|      0|      }
  639|      0|      else if(scheme->flags & PROTOPT_HTTP_PROXY_TUNNEL) {
  ------------------
  |  |  239|      0|#define PROTOPT_HTTP_PROXY_TUNNEL (1 << 18) /* Using this protocol with a
  ------------------
  |  Branch (639:15): [True: 0, False: 0]
  ------------------
  640|       |        /* transfer scheme required tunneling */
  641|      0|        tunnel_proxy = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  642|      0|      }
  643|      0|      else if(!(scheme->protocol & PROTO_FAMILY_HTTP) &&
  ------------------
  |  |   84|      0|#define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1086|      0|#define CURLPROTO_HTTP    (1L << 0)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1087|      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 (643:15): [True: 0, False: 0]
  ------------------
  644|      0|              !(scheme->flags & PROTOPT_PROXY_AS_HTTP)) {
  ------------------
  |  |  226|      0|#define PROTOPT_PROXY_AS_HTTP (1 << 11) /* allow this non-HTTP scheme over a
  ------------------
  |  Branch (644:15): [True: 0, False: 0]
  ------------------
  645|       |        /* Cannot delegate transfer URL to HTTP proxy */
  646|      0|        tunnel_proxy = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  647|      0|      }
  648|      0|    }
  649|       |
  650|      0|    if(!tunnel_proxy) {
  ------------------
  |  Branch (650:8): [True: 0, False: 0]
  ------------------
  651|       |      /* HTTP proxy used in forwarding mode. This means the connection
  652|       |       * is really to the proxy and NOT the origin of the transfer. */
  653|      0|      DEBUGASSERT(!conn->via_peer);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (653:7): [True: 0, False: 0]
  |  Branch (653:7): [True: 0, False: 0]
  ------------------
  654|      0|      Curl_peer_link(&conn->origin, conn->http_proxy.peer);
  655|      0|      conn->scheme = conn->http_proxy.peer->scheme;
  656|      0|      conn->bits.origin_is_proxy = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  657|      0|    }
  658|       |
  659|      0|#ifndef CURL_DISABLE_DIGEST_AUTH
  660|      0|    if(!Curl_safecmp(data->state.envproxy, proxy)) {
  ------------------
  |  Branch (660:8): [True: 0, False: 0]
  ------------------
  661|       |      /* proxy changed */
  662|      0|      Curl_auth_digest_cleanup(&data->state.proxydigest);
  663|      0|      curlx_free(data->state.envproxy);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  664|      0|      data->state.envproxy = curlx_strdup(proxy);
  ------------------
  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  665|      0|    }
  666|      0|#endif
  667|      0|  }
  668|      0|#endif /* !CURL_DISABLE_HTTP */
  669|       |
  670|  14.2k|out:
  671|  14.2k|  curlx_free(pre_proxy);
  ------------------
  |  | 1482|  14.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  672|  14.2k|  curlx_free(proxy);
  ------------------
  |  | 1482|  14.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  673|  14.2k|  return result;
  674|      0|}
proxy.c:proxy_do_not_proxy:
  492|  14.2k|{
  493|  14.2k|  const char *no_proxy;
  494|  14.2k|  char *env_no_proxy = NULL;
  495|  14.2k|  bool do_not_proxy;
  496|       |
  497|       |  /* no proxying if the transfer does not use the network */
  498|  14.2k|  if(data->state.origin->scheme->flags & PROTOPT_NONETWORK)
  ------------------
  |  |  214|  14.2k|#define PROTOPT_NONETWORK (1 << 4) /* protocol does not use the network! */
  ------------------
  |  Branch (498:6): [True: 0, False: 14.2k]
  ------------------
  499|      0|    return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  500|       |
  501|  14.2k|  no_proxy = data->set.str[STRING_NOPROXY];
  502|  14.2k|  if(!no_proxy) {
  ------------------
  |  Branch (502:6): [True: 14.2k, False: 0]
  ------------------
  503|  14.2k|    const char *p = "no_proxy";
  504|  14.2k|    env_no_proxy = curl_getenv(p);
  505|  14.2k|    if(!env_no_proxy) {
  ------------------
  |  Branch (505:8): [True: 14.2k, False: 0]
  ------------------
  506|  14.2k|      p = "NO_PROXY";
  507|  14.2k|      env_no_proxy = curl_getenv(p);
  508|  14.2k|    }
  509|  14.2k|    if(env_no_proxy)
  ------------------
  |  Branch (509:8): [True: 0, False: 14.2k]
  ------------------
  510|      0|      infof(data, "Uses proxy env variable %s == '%s'", p, env_no_proxy);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  511|  14.2k|    no_proxy = env_no_proxy;
  512|  14.2k|  }
  513|       |
  514|  14.2k|  do_not_proxy = proxy_check_noproxy(data->state.origin->hostname, no_proxy);
  515|       |  curlx_safefree(env_no_proxy);
  ------------------
  |  | 1340|  14.2k|  do {                      \
  |  | 1341|  14.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  14.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  14.2k|    (ptr) = NULL;           \
  |  | 1343|  14.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 14.2k]
  |  |  ------------------
  ------------------
  516|  14.2k|  return do_not_proxy;
  517|  14.2k|}
proxy.c:proxy_detect_proxy:
  284|  14.2k|{
  285|       |  /* If proxy was not specified, we check for default proxy environment
  286|       |   * variables, to enable i.e Lynx compliance:
  287|       |   *
  288|       |   * http_proxy=http://some.server.dom:port/
  289|       |   * https_proxy=http://some.server.dom:port/
  290|       |   * ftp_proxy=http://some.server.dom:port/
  291|       |   * no_proxy=domain1.dom,host.domain2.dom
  292|       |   *   (a comma-separated list of hosts which should
  293|       |   *   not be proxied, or an asterisk to override
  294|       |   *   all proxy variables)
  295|       |   * all_proxy=http://some.server.dom:port/
  296|       |   *   (seems to exist for the CERN www lib. Probably
  297|       |   *   the first to check for.)
  298|       |   *
  299|       |   * For compatibility, the all-uppercase versions of these variables are
  300|       |   * checked if the lowercase versions do not exist.
  301|       |   */
  302|  14.2k|  const char *env_name = NULL;
  303|  14.2k|  char *proxy = NULL;
  304|  14.2k|  char name_buf[20];
  305|       |
  306|       |  /* Try scheme specific env var first, unless http(s).
  307|       |   * lowercase first, then uppercase. */
  308|  14.2k|  if((scheme != &Curl_scheme_https) && (scheme != &Curl_scheme_http)) {
  ------------------
  |  Branch (308:6): [True: 14.2k, False: 0]
  |  Branch (308:40): [True: 1.97k, False: 12.2k]
  ------------------
  309|  1.97k|    curl_msnprintf(name_buf, sizeof(name_buf), "%s_proxy", scheme->name);
  310|  1.97k|    env_name = name_buf;
  311|  1.97k|    proxy = curl_getenv(env_name);
  312|  1.97k|    if(!proxy) {
  ------------------
  |  Branch (312:8): [True: 1.97k, False: 0]
  ------------------
  313|  1.97k|      Curl_strntoupper(name_buf, name_buf, sizeof(name_buf));
  314|  1.97k|      proxy = curl_getenv(env_name);
  315|  1.97k|    }
  316|  1.97k|  }
  317|       |
  318|  14.2k|  if(!proxy &&
  ------------------
  |  Branch (318:6): [True: 14.2k, False: 0]
  ------------------
  319|  14.2k|     ((scheme == &Curl_scheme_https) || (scheme == &Curl_scheme_wss))) {
  ------------------
  |  Branch (319:7): [True: 0, False: 14.2k]
  |  Branch (319:41): [True: 356, False: 13.8k]
  ------------------
  320|       |    /* Not found, check 'https' env vars, also for 'wss'.
  321|       |     * Again, first lowercase then uppercase. */
  322|    356|    env_name = "https_proxy";
  323|    356|    proxy = curl_getenv(env_name);
  324|    356|    if(!proxy) {
  ------------------
  |  Branch (324:8): [True: 356, False: 0]
  ------------------
  325|    356|      env_name = "HTTPS_PROXY";
  326|    356|      proxy = curl_getenv(env_name);
  327|    356|    }
  328|    356|  }
  329|  13.8k|  else if(!proxy &&
  ------------------
  |  Branch (329:11): [True: 13.8k, False: 0]
  ------------------
  330|  13.8k|          ((scheme == &Curl_scheme_http) || (scheme == &Curl_scheme_ws))) {
  ------------------
  |  Branch (330:12): [True: 12.2k, False: 1.61k]
  |  Branch (330:45): [True: 1.61k, False: 0]
  ------------------
  331|       |    /* Not found, check 'http' env vars, also for 'ws'.
  332|       |     * We do NOT try the uppercase version 'HTTP_PROXY' because of
  333|       |     * security reasons:
  334|       |     *
  335|       |     * When curl is used in a webserver application
  336|       |     * environment (cgi or php), this environment variable can
  337|       |     * be controlled by the web server user by setting the
  338|       |     * http header 'Proxy:' to some value.
  339|       |     *
  340|       |     * This can cause 'internal' http/ftp requests to be
  341|       |     * arbitrarily redirected by any external attacker.
  342|       |     */
  343|  13.8k|    env_name = "http_proxy";
  344|  13.8k|    proxy = curl_getenv(env_name);
  345|  13.8k|  }
  346|       |
  347|  14.2k|  if(!proxy) {
  ------------------
  |  Branch (347:6): [True: 14.2k, False: 0]
  ------------------
  348|       |    /* still not found, last resort checks. */
  349|  14.2k|    env_name = "all_proxy";
  350|  14.2k|    proxy = curl_getenv(env_name);
  351|  14.2k|    if(!proxy) {
  ------------------
  |  Branch (351:8): [True: 14.2k, False: 0]
  ------------------
  352|  14.2k|      env_name = "ALL_PROXY";
  353|  14.2k|      proxy = curl_getenv(env_name);
  354|  14.2k|    }
  355|  14.2k|  }
  356|       |
  357|  14.2k|  if(proxy)
  ------------------
  |  Branch (357:6): [True: 0, False: 14.2k]
  ------------------
  358|      0|    infof(data, "Uses proxy env variable %s == '%s'", env_name, proxy);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  359|       |
  360|  14.2k|  return proxy;
  361|  14.2k|}

Curl_rand_bytes:
  144|  3.19k|{
  145|  3.19k|  CURLcode result = CURLE_BAD_FUNCTION_ARGUMENT;
  146|       |#ifndef DEBUGBUILD
  147|       |  const bool env_override = FALSE;
  148|       |#endif
  149|       |
  150|  3.19k|  DEBUGASSERT(num);
  ------------------
  |  | 1083|  3.19k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (150:3): [True: 0, False: 3.19k]
  |  Branch (150:3): [True: 3.19k, False: 0]
  ------------------
  151|       |
  152|  11.2k|  while(num) {
  ------------------
  |  Branch (152:9): [True: 8.03k, False: 3.19k]
  ------------------
  153|  8.03k|    unsigned int r;
  154|  8.03k|    size_t left = num < sizeof(unsigned int) ? num : sizeof(unsigned int);
  ------------------
  |  Branch (154:19): [True: 0, False: 8.03k]
  ------------------
  155|       |
  156|  8.03k|    result = randit(data, &r, env_override);
  157|  8.03k|    if(result)
  ------------------
  |  Branch (157:8): [True: 0, False: 8.03k]
  ------------------
  158|      0|      return result;
  159|       |
  160|  40.1k|    while(left) {
  ------------------
  |  Branch (160:11): [True: 32.1k, False: 8.03k]
  ------------------
  161|  32.1k|      *rnd++ = (unsigned char)(r & 0xFF);
  162|  32.1k|      r >>= 8;
  163|  32.1k|      --num;
  164|  32.1k|      --left;
  165|  32.1k|    }
  166|  8.03k|  }
  167|       |
  168|  3.19k|  return result;
  169|  3.19k|}
rand.c:randit:
   89|  8.03k|{
   90|  8.03k|#ifdef DEBUGBUILD
   91|  8.03k|  if(env_override) {
  ------------------
  |  Branch (91:6): [True: 8.03k, False: 0]
  ------------------
   92|  8.03k|    char *force_entropy = getenv("CURL_ENTROPY");
   93|  8.03k|    if(force_entropy) {
  ------------------
  |  Branch (93:8): [True: 0, False: 8.03k]
  ------------------
   94|      0|      static unsigned int randseed;
   95|      0|      static bool seeded = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
   96|       |
   97|      0|      if(!seeded) {
  ------------------
  |  Branch (97:10): [True: 0, False: 0]
  ------------------
   98|      0|        unsigned int seed = 0;
   99|      0|        size_t elen = strlen(force_entropy);
  100|      0|        size_t clen = sizeof(seed);
  101|      0|        size_t min = elen < clen ? elen : clen;
  ------------------
  |  Branch (101:22): [True: 0, False: 0]
  ------------------
  102|      0|        memcpy((char *)&seed, force_entropy, min);
  103|      0|        randseed = ntohl(seed);
  104|      0|        seeded = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  105|      0|      }
  106|      0|      else
  107|      0|        randseed++;
  108|      0|      *rnd = randseed;
  109|      0|      return CURLE_OK;
  110|      0|    }
  111|  8.03k|  }
  112|       |#else
  113|       |  (void)env_override;
  114|       |#endif
  115|       |
  116|       |  /* data may be NULL! */
  117|  8.03k|#ifdef USE_SSL
  118|  8.03k|  return Curl_ssl_random(data, (unsigned char *)rnd, sizeof(*rnd));
  119|       |#else
  120|       |  return weak_random(data, (unsigned char *)rnd, sizeof(*rnd));
  121|       |#endif
  122|  8.03k|}

Curl_rlimit_init:
  158|  9.97k|{
  159|  9.97k|  DEBUGASSERT(rate_per_sec >= 0);
  ------------------
  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (159:3): [True: 0, False: 9.97k]
  |  Branch (159:3): [True: 9.97k, False: 0]
  ------------------
  160|  9.97k|  DEBUGASSERT(burst_per_sec >= rate_per_sec || !burst_per_sec);
  ------------------
  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (160:3): [True: 9.97k, False: 0]
  |  Branch (160:3): [True: 0, False: 0]
  |  Branch (160:3): [True: 9.97k, False: 0]
  |  Branch (160:3): [True: 0, False: 0]
  ------------------
  161|  9.97k|  DEBUGASSERT(pts);
  ------------------
  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (161:3): [True: 0, False: 9.97k]
  |  Branch (161:3): [True: 9.97k, False: 0]
  ------------------
  162|  9.97k|  r->rate_per_step = r->rate_per_sec = rate_per_sec;
  163|  9.97k|  r->burst_per_step = r->burst_per_sec = burst_per_sec;
  164|  9.97k|  r->step_us = CURL_US_PER_SEC;
  ------------------
  |  |   29|  9.97k|#define CURL_US_PER_SEC         1000000
  ------------------
  165|  9.97k|  r->spare_us = 0;
  166|  9.97k|  r->tokens = r->rate_per_step;
  167|  9.97k|  r->ts = *pts;
  168|       |  r->blocked = FALSE;
  ------------------
  |  | 1056|  9.97k|#define FALSE false
  ------------------
  169|  9.97k|}
Curl_rlimit_start:
  173|  2.46k|{
  174|       |  /* A start always resets the values to initial defaults, then
  175|       |   * fine tunes the intervals for the total_tokens expected. */
  176|  2.46k|  r->rate_per_step = r->rate_per_sec;
  177|  2.46k|  r->burst_per_step = r->burst_per_sec;
  178|  2.46k|  r->step_us = CURL_US_PER_SEC;
  ------------------
  |  |   29|  2.46k|#define CURL_US_PER_SEC         1000000
  ------------------
  179|  2.46k|  r->spare_us = 0;
  180|  2.46k|  r->tokens = r->rate_per_step;
  181|  2.46k|  r->ts = *pts;
  182|  2.46k|  rlimit_tune_steps(r, total_tokens);
  183|  2.46k|}
Curl_rlimit_per_step:
  186|  9.13k|{
  187|  9.13k|  return r->rate_per_step;
  188|  9.13k|}
Curl_rlimit_active:
  191|   442k|{
  192|   442k|  return (r->rate_per_step > 0) || r->blocked;
  ------------------
  |  Branch (192:10): [True: 437k, False: 5.12k]
  |  Branch (192:36): [True: 0, False: 5.12k]
  ------------------
  193|   442k|}
Curl_rlimit_is_blocked:
  196|   465k|{
  197|   465k|  return (bool)r->blocked;
  198|   465k|}
Curl_rlimit_avail:
  202|   491k|{
  203|   491k|  struct curltime ts;
  204|       |
  205|   491k|  if(r->blocked)
  ------------------
  |  Branch (205:6): [True: 0, False: 491k]
  ------------------
  206|      0|    return 0;
  207|   491k|  else if(r->rate_per_step) {
  ------------------
  |  Branch (207:11): [True: 352k, False: 138k]
  ------------------
  208|   352k|    if(!pts) {
  ------------------
  |  Branch (208:8): [True: 352k, False: 0]
  ------------------
  209|   352k|      curlx_pnow(&ts);
  210|   352k|      pts = &ts;
  211|   352k|    }
  212|   352k|    rlimit_update(r, pts);
  213|   352k|    return r->tokens;
  214|   352k|  }
  215|   138k|  else
  216|   138k|    return INT64_MAX;
  217|   491k|}
Curl_rlimit_drain:
  221|  4.01k|{
  222|  4.01k|  struct curltime ts;
  223|       |
  224|  4.01k|  if(r->blocked || !r->rate_per_step)
  ------------------
  |  Branch (224:6): [True: 0, False: 4.01k]
  |  Branch (224:20): [True: 1.05k, False: 2.96k]
  ------------------
  225|  1.05k|    return;
  226|       |
  227|  2.96k|  if(!pts) {
  ------------------
  |  Branch (227:6): [True: 2.96k, False: 0]
  ------------------
  228|  2.96k|    curlx_pnow(&ts);
  229|  2.96k|    pts = &ts;
  230|  2.96k|  }
  231|  2.96k|  rlimit_update(r, pts);
  232|  2.96k|#if 8 <= SIZEOF_SIZE_T
  233|  2.96k|  if(tokens > INT64_MAX) {
  ------------------
  |  Branch (233:6): [True: 0, False: 2.96k]
  ------------------
  234|      0|    r->tokens = INT64_MAX;
  235|      0|  }
  236|  2.96k|  else
  237|  2.96k|#endif
  238|  2.96k|  {
  239|  2.96k|    int64_t val = (int64_t)tokens;
  240|  2.96k|    if((INT64_MIN + val) < r->tokens)
  ------------------
  |  Branch (240:8): [True: 2.96k, False: 0]
  ------------------
  241|  2.96k|      r->tokens -= val;
  242|      0|    else
  243|      0|      r->tokens = INT64_MIN;
  244|  2.96k|  }
  245|  2.96k|}
Curl_rlimit_wait_ms:
  249|   582k|{
  250|   582k|  timediff_t wait_us, elapsed_us;
  251|       |
  252|   582k|  if(r->blocked || !r->rate_per_step)
  ------------------
  |  Branch (252:6): [True: 0, False: 582k]
  |  Branch (252:20): [True: 291k, False: 291k]
  ------------------
  253|   291k|    return 0;
  254|   291k|  rlimit_update(r, pts);
  255|   291k|  if(r->tokens > 0)
  ------------------
  |  Branch (255:6): [True: 289k, False: 1.65k]
  ------------------
  256|   289k|    return 0;
  257|       |
  258|       |  /* How much time will it take tokens to become positive again?
  259|       |   * Deduct `spare_us` and check against already elapsed time */
  260|  1.65k|  wait_us = r->step_us - r->spare_us;
  261|  1.65k|  if(r->tokens < 0) {
  ------------------
  |  Branch (261:6): [True: 64, False: 1.59k]
  ------------------
  262|     64|    curl_off_t debt_pct = ((-r->tokens) * 100 / r->rate_per_step);
  263|     64|    if(debt_pct)
  ------------------
  |  Branch (263:8): [True: 23, False: 41]
  ------------------
  264|     23|      wait_us += (r->step_us * debt_pct / 100);
  265|     64|  }
  266|       |
  267|  1.65k|  elapsed_us = curlx_ptimediff_us(pts, &r->ts);
  268|  1.65k|  if(elapsed_us >= wait_us)
  ------------------
  |  Branch (268:6): [True: 0, False: 1.65k]
  ------------------
  269|      0|    return 0;
  270|  1.65k|  wait_us -= elapsed_us;
  271|  1.65k|  return (wait_us + 999) / 1000; /* in milliseconds */
  272|  1.65k|}
Curl_rlimit_next_step_ms:
  276|   578k|{
  277|   578k|  if(!r->blocked && r->rate_per_step) {
  ------------------
  |  Branch (277:6): [True: 578k, False: 0]
  |  Branch (277:21): [True: 289k, False: 289k]
  ------------------
  278|   289k|    timediff_t elapsed_us, next_us;
  279|       |
  280|   289k|    elapsed_us = curlx_ptimediff_us(pts, &r->ts) + r->spare_us;
  281|   289k|    if(r->step_us > elapsed_us) {
  ------------------
  |  Branch (281:8): [True: 289k, False: 0]
  ------------------
  282|   289k|      next_us = r->step_us - elapsed_us;
  283|   289k|      return (next_us + 999) / 1000; /* in milliseconds */
  284|   289k|    }
  285|   289k|  }
  286|   289k|  return 0;
  287|   578k|}
Curl_rlimit_block:
  292|  29.8k|{
  293|  29.8k|  if(!activate == !r->blocked)
  ------------------
  |  Branch (293:6): [True: 29.8k, False: 0]
  ------------------
  294|  29.8k|    return;
  295|       |
  296|      0|  r->ts = *pts;
  297|      0|  r->blocked = activate;
  298|      0|  if(!r->blocked) {
  ------------------
  |  Branch (298:6): [True: 0, False: 0]
  ------------------
  299|       |    /* Start rate limiting fresh. The amount of time this was blocked
  300|       |     * does not generate extra tokens. */
  301|      0|    Curl_rlimit_start(r, pts, -1);
  302|      0|  }
  303|      0|  else {
  304|      0|    r->tokens = 0;
  305|      0|  }
  306|      0|}
ratelimit.c:rlimit_tune_steps:
   79|  2.46k|{
   80|  2.46k|  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.46k|  if(!r->rate_per_step ||
  ------------------
  |  Branch (101:6): [True: 1.13k, False: 1.33k]
  ------------------
  102|  1.33k|     (tokens_total <= 1) ||
  ------------------
  |  Branch (102:6): [True: 1.14k, False: 189]
  ------------------
  103|    189|     (tokens_total > (INT64_MAX / 1000)))
  ------------------
  |  Branch (103:6): [True: 26, False: 163]
  ------------------
  104|  2.30k|    return;
  105|       |
  106|       |  /* Calculate tokens for the last step and the ones before. */
  107|    163|  tokens_last = tokens_total / 100;
  108|    163|  if(!tokens_last) /* less than 100 total, use 1 */
  ------------------
  |  Branch (108:6): [True: 78, False: 85]
  ------------------
  109|     78|    tokens_last = 1;
  110|     85|  else if(tokens_last > CURL_RLIMIT_MIN_RATE)
  ------------------
  |  |   30|     85|#define CURL_RLIMIT_MIN_RATE    (4 * 1024)  /* minimum step rate */
  ------------------
  |  Branch (110:11): [True: 42, False: 43]
  ------------------
  111|     42|    tokens_last = CURL_RLIMIT_MIN_RATE;
  ------------------
  |  |   30|     42|#define CURL_RLIMIT_MIN_RATE    (4 * 1024)  /* minimum step rate */
  ------------------
  112|    163|  DEBUGASSERT(tokens_last);
  ------------------
  |  | 1083|    163|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (112:3): [True: 0, False: 163]
  |  Branch (112:3): [True: 163, False: 0]
  ------------------
  113|    163|  tokens_main = tokens_total - tokens_last;
  114|    163|  DEBUGASSERT(tokens_main);
  ------------------
  |  | 1083|    163|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (114:3): [True: 0, False: 163]
  |  Branch (114:3): [True: 163, False: 0]
  ------------------
  115|       |
  116|       |  /* how many milli-steps will it take to consume those, give the
  117|       |  * original rate limit per second? */
  118|    163|  DEBUGASSERT(r->step_us == CURL_US_PER_SEC);
  ------------------
  |  | 1083|    163|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (118:3): [True: 0, False: 163]
  |  Branch (118:3): [True: 163, False: 0]
  ------------------
  119|       |
  120|    163|  msteps = (tokens_main * 1000 / r->rate_per_step);
  121|    163|  if(msteps < CURL_RLIMIT_STEP_MIN_MS) {
  ------------------
  |  |   31|    163|#define CURL_RLIMIT_STEP_MIN_MS 2  /* minimum step duration */
  ------------------
  |  Branch (121:6): [True: 29, False: 134]
  ------------------
  122|       |    /* Steps this small will not work. Do not tune. */
  123|     29|    return;
  124|     29|  }
  125|    134|  else if(msteps < 1000) {
  ------------------
  |  Branch (125:11): [True: 87, False: 47]
  ------------------
  126|       |    /* It needs less than one step to provide the needed tokens.
  127|       |     * Make it exactly that long and with exactly those tokens. */
  128|     87|    r->step_us = (timediff_t)msteps * 1000;
  129|     87|    r->rate_per_step = tokens_main;
  130|     87|    r->tokens = r->rate_per_step;
  131|     87|  }
  132|     47|  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|     47|    curl_off_t ms_unaccounted = (msteps % 1000);
  137|     47|    curl_off_t mstep_inc = (ms_unaccounted / (msteps / 1000));
  138|     47|    if(mstep_inc) {
  ------------------
  |  Branch (138:8): [True: 9, False: 38]
  ------------------
  139|      9|      curl_off_t rate_inc = ((r->rate_per_step * mstep_inc) / 1000);
  140|      9|      if(rate_inc) {
  ------------------
  |  Branch (140:10): [True: 9, False: 0]
  ------------------
  141|      9|        r->step_us = CURL_US_PER_SEC + ((timediff_t)mstep_inc * 1000);
  ------------------
  |  |   29|      9|#define CURL_US_PER_SEC         1000000
  ------------------
  142|      9|        r->rate_per_step += rate_inc;
  143|      9|        r->tokens = r->rate_per_step;
  144|      9|        if(r->burst_per_step) {
  ------------------
  |  Branch (144:12): [True: 9, False: 0]
  ------------------
  145|      9|          curl_off_t burst_inc = ((r->burst_per_step * mstep_inc) / 1000);
  146|      9|          if(burst_inc)
  ------------------
  |  Branch (146:14): [True: 9, False: 0]
  ------------------
  147|      9|            r->burst_per_step += burst_inc;
  148|      9|        }
  149|      9|      }
  150|      9|    }
  151|     47|  }
  152|    163|}
ratelimit.c:rlimit_update:
   35|   646k|{
   36|   646k|  timediff_t elapsed_us, elapsed_steps;
   37|   646k|  int64_t token_gain;
   38|       |
   39|   646k|  DEBUGASSERT(r->rate_per_step);
  ------------------
  |  | 1083|   646k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (39:3): [True: 0, False: 646k]
  |  Branch (39:3): [True: 646k, False: 0]
  ------------------
   40|   646k|  if((r->ts.tv_sec == pts->tv_sec) && (r->ts.tv_usec == pts->tv_usec))
  ------------------
  |  Branch (40:6): [True: 412k, False: 234k]
  |  Branch (40:39): [True: 191, False: 412k]
  ------------------
   41|    191|    return;
   42|       |
   43|   646k|  elapsed_us = curlx_ptimediff_us(pts, &r->ts);
   44|   646k|  if(elapsed_us < 0) { /* not going back in time */
  ------------------
  |  Branch (44:6): [True: 0, False: 646k]
  ------------------
   45|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1083|      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|   646k|  elapsed_us += r->spare_us;
   50|   646k|  if(elapsed_us < r->step_us)
  ------------------
  |  Branch (50:6): [True: 645k, False: 1.22k]
  ------------------
   51|   645k|    return;
   52|       |
   53|       |  /* we do the update */
   54|  1.22k|  r->ts = *pts;
   55|  1.22k|  elapsed_steps = elapsed_us / r->step_us;
   56|  1.22k|  r->spare_us = elapsed_us % r->step_us;
   57|       |
   58|       |  /* How many tokens did we gain since the last update? */
   59|  1.22k|  if(r->rate_per_step > (INT64_MAX / elapsed_steps))
  ------------------
  |  Branch (59:6): [True: 0, False: 1.22k]
  ------------------
   60|      0|    token_gain = INT64_MAX;
   61|  1.22k|  else {
   62|  1.22k|    token_gain = r->rate_per_step * elapsed_steps;
   63|  1.22k|  }
   64|       |
   65|  1.22k|  if((INT64_MAX - token_gain) > r->tokens)
  ------------------
  |  Branch (65:6): [True: 1.22k, False: 0]
  ------------------
   66|  1.22k|    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|  1.22k|  if(r->burst_per_step && (r->tokens > r->burst_per_step)) {
  ------------------
  |  Branch (72:6): [True: 1.22k, False: 0]
  |  Branch (72:27): [True: 57, False: 1.16k]
  ------------------
   73|     57|    r->tokens = r->burst_per_step;
   74|     57|  }
   75|  1.22k|}

Curl_req_init:
   38|  19.9k|{
   39|  19.9k|  memset(req, 0, sizeof(*req));
   40|  19.9k|}
Curl_req_soft_reset:
   44|  19.2k|{
   45|  19.2k|  CURLcode result;
   46|       |
   47|  19.2k|  req->done = FALSE;
  ------------------
  |  | 1056|  19.2k|#define FALSE false
  ------------------
   48|  19.2k|  req->upload_done = FALSE;
  ------------------
  |  | 1056|  19.2k|#define FALSE false
  ------------------
   49|  19.2k|  req->upload_aborted = FALSE;
  ------------------
  |  | 1056|  19.2k|#define FALSE false
  ------------------
   50|  19.2k|  req->download_done = FALSE;
  ------------------
  |  | 1056|  19.2k|#define FALSE false
  ------------------
   51|  19.2k|  req->eos_written = FALSE;
  ------------------
  |  | 1056|  19.2k|#define FALSE false
  ------------------
   52|  19.2k|  req->eos_read = FALSE;
  ------------------
  |  | 1056|  19.2k|#define FALSE false
  ------------------
   53|  19.2k|  req->eos_sent = FALSE;
  ------------------
  |  | 1056|  19.2k|#define FALSE false
  ------------------
   54|  19.2k|  req->ignorebody = FALSE;
  ------------------
  |  | 1056|  19.2k|#define FALSE false
  ------------------
   55|  19.2k|  req->shutdown = FALSE;
  ------------------
  |  | 1056|  19.2k|#define FALSE false
  ------------------
   56|  19.2k|  req->bytecount = 0;
   57|  19.2k|  req->writebytecount = 0;
   58|  19.2k|  req->header = FALSE;
  ------------------
  |  | 1056|  19.2k|#define FALSE false
  ------------------
   59|  19.2k|  req->headerline = 0;
   60|  19.2k|  req->headerbytecount = 0;
   61|  19.2k|  req->allheadercount = 0;
   62|  19.2k|  req->deductheadercount = 0;
   63|  19.2k|  req->httpversion_sent = 0;
   64|  19.2k|  req->httpversion = 0;
   65|  19.2k|  req->sendbuf_hds_len = 0;
   66|       |
   67|  19.2k|  curlx_safefree(req->hd_auth);
  ------------------
  |  | 1340|  19.2k|  do {                      \
  |  | 1341|  19.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  19.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  19.2k|    (ptr) = NULL;           \
  |  | 1343|  19.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 19.2k]
  |  |  ------------------
  ------------------
   68|  19.2k|#ifndef CURL_DISABLE_PROXY
   69|  19.2k|  curlx_safefree(req->hd_proxy_auth);
  ------------------
  |  | 1340|  19.2k|  do {                      \
  |  | 1341|  19.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  19.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  19.2k|    (ptr) = NULL;           \
  |  | 1343|  19.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 19.2k]
  |  |  ------------------
  ------------------
   70|  19.2k|#endif
   71|       |
   72|  19.2k|  result = Curl_client_start(data);
   73|  19.2k|  if(result)
  ------------------
  |  Branch (73:6): [True: 24, False: 19.1k]
  ------------------
   74|     24|    return result;
   75|       |
   76|  19.1k|  if(!req->sendbuf_init) {
  ------------------
  |  Branch (76:6): [True: 9.33k, False: 9.85k]
  ------------------
   77|  9.33k|    Curl_bufq_init2(&req->sendbuf, data->set.upload_buffer_size, 1,
   78|  9.33k|                    BUFQ_OPT_SOFT_LIMIT);
  ------------------
  |  |  111|  9.33k|#define BUFQ_OPT_SOFT_LIMIT  (1 << 0)
  ------------------
   79|  9.33k|    req->sendbuf_init = TRUE;
  ------------------
  |  | 1053|  9.33k|#define TRUE true
  ------------------
   80|  9.33k|  }
   81|  9.85k|  else {
   82|  9.85k|    Curl_bufq_reset(&req->sendbuf);
   83|  9.85k|    if(data->set.upload_buffer_size != req->sendbuf.chunk_size) {
  ------------------
  |  Branch (83:8): [True: 0, False: 9.85k]
  ------------------
   84|      0|      Curl_bufq_free(&req->sendbuf);
   85|      0|      Curl_bufq_init2(&req->sendbuf, data->set.upload_buffer_size, 1,
   86|      0|                      BUFQ_OPT_SOFT_LIMIT);
  ------------------
  |  |  111|      0|#define BUFQ_OPT_SOFT_LIMIT  (1 << 0)
  ------------------
   87|      0|    }
   88|  9.85k|  }
   89|       |
   90|  19.1k|  return CURLE_OK;
   91|  19.2k|}
Curl_req_start:
   95|  14.2k|{
   96|  14.2k|  req->start = *Curl_pgrs_now(data);
   97|  14.2k|  return Curl_req_soft_reset(req, data);
   98|  14.2k|}
Curl_req_done:
  104|  6.58k|{
  105|  6.58k|  (void)req;
  106|  6.58k|  if(!aborted)
  ------------------
  |  Branch (106:6): [True: 6.56k, False: 14]
  ------------------
  107|  6.56k|    (void)req_flush(data);
  108|  6.58k|  Curl_client_reset(data);
  109|  6.58k|  return CURLE_OK;
  110|  6.58k|}
Curl_req_hard_reset:
  113|  14.9k|{
  114|  14.9k|  struct curltime t0 = { 0, 0 };
  115|       |
  116|  14.9k|  curlx_safefree(req->newurl);
  ------------------
  |  | 1340|  14.9k|  do {                      \
  |  | 1341|  14.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  14.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  14.9k|    (ptr) = NULL;           \
  |  | 1343|  14.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 14.9k]
  |  |  ------------------
  ------------------
  117|  14.9k|  curlx_safefree(req->hd_auth);
  ------------------
  |  | 1340|  14.9k|  do {                      \
  |  | 1341|  14.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  14.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  14.9k|    (ptr) = NULL;           \
  |  | 1343|  14.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 14.9k]
  |  |  ------------------
  ------------------
  118|  14.9k|#ifndef CURL_DISABLE_PROXY
  119|  14.9k|  curlx_safefree(req->hd_proxy_auth);
  ------------------
  |  | 1340|  14.9k|  do {                      \
  |  | 1341|  14.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  14.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  14.9k|    (ptr) = NULL;           \
  |  | 1343|  14.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 14.9k]
  |  |  ------------------
  ------------------
  120|  14.9k|#endif
  121|  14.9k|#ifndef CURL_DISABLE_COOKIES
  122|  14.9k|  curlx_safefree(req->cookiehost);
  ------------------
  |  | 1340|  14.9k|  do {                      \
  |  | 1341|  14.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  14.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  14.9k|    (ptr) = NULL;           \
  |  | 1343|  14.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 14.9k]
  |  |  ------------------
  ------------------
  123|  14.9k|#endif
  124|  14.9k|  Curl_client_reset(data);
  125|  14.9k|  if(req->sendbuf_init)
  ------------------
  |  Branch (125:6): [True: 4.94k, False: 9.97k]
  ------------------
  126|  4.94k|    Curl_bufq_reset(&req->sendbuf);
  127|       |
  128|       |  /* clear any resolve data */
  129|  14.9k|  Curl_resolv_destroy_all(data);
  130|       |  /* Can no longer memset() this struct as we need to keep some state */
  131|  14.9k|  req->size = -1;
  132|  14.9k|  req->maxdownload = -1;
  133|  14.9k|  req->bytecount = 0;
  134|  14.9k|  req->writebytecount = 0;
  135|  14.9k|  req->start = t0;
  136|  14.9k|  req->headerbytecount = 0;
  137|  14.9k|  req->allheadercount = 0;
  138|  14.9k|  req->deductheadercount = 0;
  139|  14.9k|  req->headerline = 0;
  140|  14.9k|  req->offset = 0;
  141|  14.9k|  req->httpcode = 0;
  142|  14.9k|  req->io_flags = 0;
  143|  14.9k|  req->upgr101 = UPGR101_NONE;
  144|  14.9k|  req->sendbuf_hds_len = 0;
  145|  14.9k|  req->timeofdoc = 0;
  146|  14.9k|  req->location = NULL;
  147|  14.9k|  req->newurl = NULL;
  148|  14.9k|#ifndef CURL_DISABLE_COOKIES
  149|  14.9k|  req->setcookies = 0;
  150|  14.9k|#endif
  151|  14.9k|  req->header = FALSE;
  ------------------
  |  | 1056|  14.9k|#define FALSE false
  ------------------
  152|  14.9k|  req->content_range = FALSE;
  ------------------
  |  | 1056|  14.9k|#define FALSE false
  ------------------
  153|  14.9k|  req->download_done = FALSE;
  ------------------
  |  | 1056|  14.9k|#define FALSE false
  ------------------
  154|  14.9k|  req->eos_written = FALSE;
  ------------------
  |  | 1056|  14.9k|#define FALSE false
  ------------------
  155|  14.9k|  req->eos_read = FALSE;
  ------------------
  |  | 1056|  14.9k|#define FALSE false
  ------------------
  156|  14.9k|  req->eos_sent = FALSE;
  ------------------
  |  | 1056|  14.9k|#define FALSE false
  ------------------
  157|  14.9k|  req->rewind_read = FALSE;
  ------------------
  |  | 1056|  14.9k|#define FALSE false
  ------------------
  158|  14.9k|  req->upload_done = FALSE;
  ------------------
  |  | 1056|  14.9k|#define FALSE false
  ------------------
  159|  14.9k|  req->upload_aborted = FALSE;
  ------------------
  |  | 1056|  14.9k|#define FALSE false
  ------------------
  160|  14.9k|  req->ignorebody = FALSE;
  ------------------
  |  | 1056|  14.9k|#define FALSE false
  ------------------
  161|  14.9k|  req->http_bodyless = FALSE;
  ------------------
  |  | 1056|  14.9k|#define FALSE false
  ------------------
  162|  14.9k|  req->chunk = FALSE;
  ------------------
  |  | 1056|  14.9k|#define FALSE false
  ------------------
  163|  14.9k|  req->resp_trailer = FALSE;
  ------------------
  |  | 1056|  14.9k|#define FALSE false
  ------------------
  164|  14.9k|  req->ignore_cl = FALSE;
  ------------------
  |  | 1056|  14.9k|#define FALSE false
  ------------------
  165|  14.9k|  req->upload_chunky = FALSE;
  ------------------
  |  | 1056|  14.9k|#define FALSE false
  ------------------
  166|  14.9k|  req->no_body = data->set.opt_no_body;
  167|  14.9k|  req->authneg = FALSE;
  ------------------
  |  | 1056|  14.9k|#define FALSE false
  ------------------
  168|  14.9k|  req->shutdown = FALSE;
  ------------------
  |  | 1056|  14.9k|#define FALSE false
  ------------------
  169|       |  /* Unpause all directions */
  170|  14.9k|  Curl_rlimit_block(&data->progress.dl.rlimit, FALSE, &t0);
  ------------------
  |  | 1056|  14.9k|#define FALSE false
  ------------------
  171|       |  Curl_rlimit_block(&data->progress.ul.rlimit, FALSE, &t0);
  ------------------
  |  | 1056|  14.9k|#define FALSE false
  ------------------
  172|  14.9k|}
Curl_req_free:
  175|  19.9k|{
  176|  19.9k|  curlx_safefree(req->newurl);
  ------------------
  |  | 1340|  19.9k|  do {                      \
  |  | 1341|  19.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  19.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  19.9k|    (ptr) = NULL;           \
  |  | 1343|  19.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 19.9k]
  |  |  ------------------
  ------------------
  177|  19.9k|  curlx_safefree(req->hd_auth);
  ------------------
  |  | 1340|  19.9k|  do {                      \
  |  | 1341|  19.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  19.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  19.9k|    (ptr) = NULL;           \
  |  | 1343|  19.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 19.9k]
  |  |  ------------------
  ------------------
  178|  19.9k|#ifndef CURL_DISABLE_PROXY
  179|  19.9k|  curlx_safefree(req->hd_proxy_auth);
  ------------------
  |  | 1340|  19.9k|  do {                      \
  |  | 1341|  19.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  19.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  19.9k|    (ptr) = NULL;           \
  |  | 1343|  19.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 19.9k]
  |  |  ------------------
  ------------------
  180|  19.9k|#endif
  181|  19.9k|  if(req->sendbuf_init)
  ------------------
  |  Branch (181:6): [True: 9.33k, False: 10.6k]
  ------------------
  182|  9.33k|    Curl_bufq_free(&req->sendbuf);
  183|  19.9k|  Curl_client_cleanup(data);
  184|  19.9k|}
Curl_req_send:
  382|  13.0k|{
  383|  13.0k|  CURLcode result;
  384|  13.0k|  const char *buf;
  385|  13.0k|  size_t blen, nwritten;
  386|       |
  387|  13.0k|  if(!data || !data->conn)
  ------------------
  |  Branch (387:6): [True: 0, False: 13.0k]
  |  Branch (387:15): [True: 0, False: 13.0k]
  ------------------
  388|      0|    return CURLE_FAILED_INIT;
  389|       |
  390|  13.0k|  data->req.httpversion_sent = httpversion;
  391|  13.0k|  buf = curlx_dyn_ptr(req);
  392|  13.0k|  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 than `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|  13.0k|  if(Curl_bufq_is_empty(&data->req.sendbuf) &&
  ------------------
  |  Branch (398:6): [True: 13.0k, False: 0]
  ------------------
  399|  13.0k|     !Curl_creader_total_length(data) &&
  ------------------
  |  Branch (399:6): [True: 12.0k, False: 1.03k]
  ------------------
  400|  12.0k|     (blen <= data->req.sendbuf.chunk_size)) {
  ------------------
  |  Branch (400:6): [True: 12.0k, False: 31]
  ------------------
  401|  12.0k|    data->req.eos_read = TRUE;
  ------------------
  |  | 1053|  12.0k|#define TRUE true
  ------------------
  402|  12.0k|    result = xfer_send(data, buf, blen, blen, &nwritten);
  403|  12.0k|    if(result)
  ------------------
  |  Branch (403:8): [True: 17, False: 11.9k]
  ------------------
  404|     17|      return result;
  405|  11.9k|    buf += nwritten;
  406|  11.9k|    blen -= nwritten;
  407|  11.9k|    if(!blen) {
  ------------------
  |  Branch (407:8): [True: 11.8k, False: 177]
  ------------------
  408|  11.8k|      result = req_set_upload_done(data);
  409|  11.8k|      if(result)
  ------------------
  |  Branch (409:10): [True: 0, False: 11.8k]
  ------------------
  410|      0|        return result;
  411|  11.8k|    }
  412|  11.9k|  }
  413|       |
  414|  13.0k|  if(blen) {
  ------------------
  |  Branch (414:6): [True: 1.24k, False: 11.8k]
  ------------------
  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.24k|    result = req_send_buffer_add(data, buf, blen, blen);
  419|  1.24k|    if(result)
  ------------------
  |  Branch (419:8): [True: 0, False: 1.24k]
  ------------------
  420|      0|      return result;
  421|       |
  422|  1.24k|    return Curl_req_send_more(data);
  423|  1.24k|  }
  424|  11.8k|  return CURLE_OK;
  425|  13.0k|}
Curl_req_sendbuf_empty:
  428|   256k|{
  429|   256k|  return !data->req.sendbuf_init || Curl_bufq_is_empty(&data->req.sendbuf);
  ------------------
  |  Branch (429:10): [True: 0, False: 256k]
  |  Branch (429:37): [True: 255k, False: 539]
  ------------------
  430|   256k|}
Curl_req_want_send:
  433|   281k|{
  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|   281k|  return !data->req.done &&
  ------------------
  |  Branch (438:10): [True: 281k, False: 0]
  ------------------
  439|   281k|         !Curl_rlimit_is_blocked(&data->progress.ul.rlimit) &&
  ------------------
  |  Branch (439:10): [True: 281k, False: 0]
  ------------------
  440|   281k|         (CURL_REQ_WANT_SEND(data) ||
  ------------------
  |  |   39|   563k|#define CURL_REQ_WANT_SEND(d)  ((d)->req.io_flags & REQ_IO_SEND)
  |  |  ------------------
  |  |  |  |   36|   281k|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  |  |  |  Branch (39:32): [True: 26.3k, False: 255k]
  |  |  ------------------
  ------------------
  441|   255k|          !Curl_req_sendbuf_empty(data) ||
  ------------------
  |  Branch (441:11): [True: 0, False: 255k]
  ------------------
  442|   255k|          Curl_xfer_needs_flush(data));
  ------------------
  |  Branch (442:11): [True: 1.00k, False: 254k]
  ------------------
  443|   281k|}
Curl_req_done_sending:
  454|  28.0k|{
  455|  28.0k|  return data->req.upload_done && !Curl_req_want_send(data);
  ------------------
  |  Branch (455:10): [True: 861, False: 27.1k]
  |  Branch (455:35): [True: 343, False: 518]
  ------------------
  456|  28.0k|}
Curl_req_send_more:
  459|  15.0k|{
  460|  15.0k|  CURLcode result;
  461|       |
  462|       |  /* Fill our send buffer if more from client can be read. */
  463|  15.0k|  if(!data->req.upload_aborted &&
  ------------------
  |  Branch (463:6): [True: 15.0k, False: 35]
  ------------------
  464|  15.0k|     !data->req.eos_read &&
  ------------------
  |  Branch (464:6): [True: 5.54k, False: 9.46k]
  ------------------
  465|  5.54k|     !Curl_xfer_send_is_paused(data) &&
  ------------------
  |  Branch (465:6): [True: 5.54k, False: 0]
  ------------------
  466|  5.54k|     !Curl_bufq_is_full(&data->req.sendbuf)) {
  ------------------
  |  Branch (466:6): [True: 5.12k, False: 419]
  ------------------
  467|  5.12k|    size_t nread;
  468|  5.12k|    result = Curl_bufq_sipn(&data->req.sendbuf, 0,
  469|  5.12k|                            add_from_client, data, &nread);
  470|  5.12k|    if(result && result != CURLE_AGAIN)
  ------------------
  |  Branch (470:8): [True: 66, False: 5.05k]
  |  Branch (470:18): [True: 66, False: 0]
  ------------------
  471|     66|      return result;
  472|  5.12k|  }
  473|       |
  474|  14.9k|  result = req_flush(data);
  475|  14.9k|  if(result == CURLE_AGAIN)
  ------------------
  |  Branch (475:6): [True: 10.1k, False: 4.86k]
  ------------------
  476|  10.1k|    result = CURLE_OK;
  477|       |
  478|  14.9k|  return result;
  479|  15.0k|}
Curl_req_abort_sending:
  482|    246|{
  483|    246|  if(!data->req.upload_done) {
  ------------------
  |  Branch (483:6): [True: 244, False: 2]
  ------------------
  484|    244|    Curl_bufq_reset(&data->req.sendbuf);
  485|    244|    data->req.upload_aborted = TRUE;
  ------------------
  |  | 1053|    244|#define TRUE true
  ------------------
  486|    244|    CURL_REQ_CLEAR_SEND(data);
  ------------------
  |  |   47|    244|  ((d)->req.io_flags &= (uint8_t)~REQ_IO_SEND)
  |  |  ------------------
  |  |  |  |   36|    244|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  ------------------
  487|    244|    return req_set_upload_done(data);
  488|    244|  }
  489|      2|  return CURLE_OK;
  490|    246|}
Curl_req_stop_send_recv:
  493|  2.56k|{
  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|  2.56k|  CURLcode result = CURLE_OK;
  498|  2.56k|  if(CURL_REQ_WANT_SEND(data))
  ------------------
  |  |   39|  2.56k|#define CURL_REQ_WANT_SEND(d)  ((d)->req.io_flags & REQ_IO_SEND)
  |  |  ------------------
  |  |  |  |   36|  2.56k|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  |  |  |  Branch (39:32): [True: 226, False: 2.34k]
  |  |  ------------------
  ------------------
  499|    226|    result = Curl_req_abort_sending(data);
  500|  2.56k|  CURL_REQ_CLEAR_IO(data);
  ------------------
  |  |   51|  2.56k|  ((d)->req.io_flags &= (uint8_t)~(REQ_IO_RECV | REQ_IO_SEND))
  |  |  ------------------
  |  |  |  |   35|  2.56k|#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|  2.56k|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  ------------------
  501|  2.56k|  return result;
  502|  2.56k|}
request.c:req_flush:
  299|  21.5k|{
  300|  21.5k|  CURLcode result;
  301|       |
  302|  21.5k|  if(!data || !data->conn)
  ------------------
  |  Branch (302:6): [True: 0, False: 21.5k]
  |  Branch (302:15): [True: 0, False: 21.5k]
  ------------------
  303|      0|    return CURLE_FAILED_INIT;
  304|       |
  305|  21.5k|  if(!Curl_bufq_is_empty(&data->req.sendbuf)) {
  ------------------
  |  Branch (305:6): [True: 10.3k, False: 11.2k]
  ------------------
  306|  10.3k|    result = req_send_buffer_flush(data);
  307|  10.3k|    if(result)
  ------------------
  |  Branch (307:8): [True: 8, False: 10.3k]
  ------------------
  308|      8|      return result;
  309|  10.3k|    if(!Curl_bufq_is_empty(&data->req.sendbuf)) {
  ------------------
  |  Branch (309:8): [True: 9.06k, False: 1.24k]
  ------------------
  310|  9.06k|      DEBUGF(infof(data, "Curl_req_flush(len=%zu) -> EAGAIN",
  ------------------
  |  | 1069|  63.4k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1069:19): [True: 9.06k, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 9.06k]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [Folded, False: 9.06k]
  |  |  ------------------
  ------------------
  311|  9.06k|                   Curl_bufq_len(&data->req.sendbuf)));
  312|  9.06k|      return CURLE_AGAIN;
  313|  9.06k|    }
  314|  10.3k|  }
  315|  11.2k|  else if(Curl_xfer_needs_flush(data)) {
  ------------------
  |  Branch (315:11): [True: 1.27k, False: 9.94k]
  ------------------
  316|  1.27k|    DEBUGF(infof(data, "Curl_req_flush(), xfer send_pending"));
  ------------------
  |  | 1069|  8.92k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1069:19): [True: 1.27k, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 1.27k]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [Folded, False: 1.27k]
  |  |  ------------------
  ------------------
  317|  1.27k|    return Curl_xfer_flush(data);
  318|  1.27k|  }
  319|       |
  320|  11.1k|  if(data->req.eos_read && !data->req.eos_sent) {
  ------------------
  |  Branch (320:6): [True: 7.12k, False: 4.06k]
  |  Branch (320:28): [True: 198, False: 6.93k]
  ------------------
  321|    198|    char tmp = 0;
  322|    198|    size_t nwritten;
  323|    198|    result = xfer_send(data, &tmp, 0, 0, &nwritten);
  324|    198|    if(result)
  ------------------
  |  Branch (324:8): [True: 25, False: 173]
  ------------------
  325|     25|      return result;
  326|    173|    DEBUGASSERT(data->req.eos_sent);
  ------------------
  |  | 1083|    173|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (326:5): [True: 0, False: 173]
  |  Branch (326:5): [True: 173, False: 0]
  ------------------
  327|    173|  }
  328|       |
  329|  11.1k|  if(!data->req.upload_done && data->req.eos_read && data->req.eos_sent) {
  ------------------
  |  Branch (329:6): [True: 4.67k, False: 6.49k]
  |  Branch (329:32): [True: 640, False: 4.03k]
  |  Branch (329:54): [True: 640, False: 0]
  ------------------
  330|    640|    DEBUGASSERT(Curl_bufq_is_empty(&data->req.sendbuf));
  ------------------
  |  | 1083|    640|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (330:5): [True: 0, False: 640]
  |  Branch (330:5): [True: 640, False: 0]
  ------------------
  331|    640|    if(data->req.shutdown) {
  ------------------
  |  Branch (331:8): [True: 0, False: 640]
  ------------------
  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))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324: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.", (int)result);
  337|      0|        result = CURLE_OK;
  338|      0|        done = TRUE;
  ------------------
  |  | 1053|      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|    640|    return req_set_upload_done(data);
  347|    640|  }
  348|  10.5k|  return CURLE_OK;
  349|  11.1k|}
request.c:req_send_buffer_flush:
  244|  10.3k|{
  245|  10.3k|  CURLcode result = CURLE_OK;
  246|  10.3k|  const unsigned char *buf;
  247|  10.3k|  size_t blen;
  248|       |
  249|  11.6k|  while(Curl_bufq_peek(&data->req.sendbuf, &buf, &blen)) {
  ------------------
  |  Branch (249:9): [True: 10.3k, False: 1.24k]
  ------------------
  250|  10.3k|    size_t nwritten, hds_len = CURLMIN(data->req.sendbuf_hds_len, blen);
  ------------------
  |  | 1296|  10.3k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1296:24): [True: 4.22k, False: 6.13k]
  |  |  ------------------
  ------------------
  251|  10.3k|    result = xfer_send(data, (const char *)buf, blen, hds_len, &nwritten);
  252|  10.3k|    if(result)
  ------------------
  |  Branch (252:8): [True: 8, False: 10.3k]
  ------------------
  253|      8|      break;
  254|       |
  255|  10.3k|    Curl_bufq_skip(&data->req.sendbuf, nwritten);
  256|  10.3k|    if(hds_len) {
  ------------------
  |  Branch (256:8): [True: 7.38k, False: 2.96k]
  ------------------
  257|  7.38k|      data->req.sendbuf_hds_len -= CURLMIN(hds_len, nwritten);
  ------------------
  |  | 1296|  7.38k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1296:24): [True: 775, False: 6.61k]
  |  |  ------------------
  ------------------
  258|  7.38k|    }
  259|       |    /* leave if we could not send all. Maybe network blocking or
  260|       |     * speed limits on transfer */
  261|  10.3k|    if(nwritten < blen)
  ------------------
  |  Branch (261:8): [True: 9.06k, False: 1.28k]
  ------------------
  262|  9.06k|      break;
  263|  10.3k|  }
  264|  10.3k|  return result;
  265|  10.3k|}
request.c:xfer_send:
  189|  22.5k|{
  190|  22.5k|  CURLcode result = CURLE_OK;
  191|  22.5k|  bool eos = FALSE;
  ------------------
  |  | 1056|  22.5k|#define FALSE false
  ------------------
  192|       |
  193|  22.5k|  *pnwritten = 0;
  194|  22.5k|  DEBUGASSERT(hds_len <= blen);
  ------------------
  |  | 1083|  22.5k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (194:3): [True: 0, False: 22.5k]
  |  Branch (194:3): [True: 22.5k, False: 0]
  ------------------
  195|  22.5k|#ifdef DEBUGBUILD
  196|  22.5k|  {
  197|       |    /* Allow debug builds to override this logic to force short initial
  198|       |       sends */
  199|  22.5k|    size_t body_len = blen - hds_len;
  200|  22.5k|    if(body_len) {
  ------------------
  |  Branch (200:8): [True: 4.22k, False: 18.3k]
  ------------------
  201|  4.22k|      const char *p = getenv("CURL_SMALLREQSEND");
  202|  4.22k|      if(p) {
  ------------------
  |  Branch (202:10): [True: 0, False: 4.22k]
  ------------------
  203|      0|        curl_off_t body_small;
  204|      0|        if(!curlx_str_number(&p, &body_small, body_len))
  ------------------
  |  Branch (204:12): [True: 0, False: 0]
  ------------------
  205|      0|          blen = hds_len + (size_t)body_small;
  206|      0|      }
  207|  4.22k|    }
  208|  22.5k|  }
  209|  22.5k|#endif
  210|       |  /* Make sure this does not send more body bytes than what the max send
  211|       |     speed says. The headers do not count to the max speed. */
  212|  22.5k|  if(data->set.max_send_speed) {
  ------------------
  |  Branch (212:6): [True: 0, False: 22.5k]
  ------------------
  213|      0|    size_t body_bytes = blen - hds_len;
  214|      0|    if((curl_off_t)body_bytes > data->set.max_send_speed)
  ------------------
  |  Branch (214:8): [True: 0, False: 0]
  ------------------
  215|      0|      blen = hds_len + (size_t)data->set.max_send_speed;
  216|      0|  }
  217|       |
  218|  22.5k|  if(data->req.eos_read &&
  ------------------
  |  Branch (218:6): [True: 20.9k, False: 1.62k]
  ------------------
  219|  20.9k|    (Curl_bufq_is_empty(&data->req.sendbuf) ||
  ------------------
  |  Branch (219:6): [True: 12.2k, False: 8.73k]
  ------------------
  220|  20.9k|     Curl_bufq_len(&data->req.sendbuf) == blen)) {
  ------------------
  |  Branch (220:6): [True: 8.73k, False: 0]
  ------------------
  221|  20.9k|    DEBUGF(infof(data, "sending last upload chunk of %zu bytes", blen));
  ------------------
  |  | 1069|   146k|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1069:19): [True: 20.9k, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 20.9k]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [Folded, False: 20.9k]
  |  |  ------------------
  ------------------
  222|  20.9k|    eos = TRUE;
  ------------------
  |  | 1053|  20.9k|#define TRUE true
  ------------------
  223|  20.9k|  }
  224|  22.5k|  result = Curl_xfer_send(data, buf, blen, eos, pnwritten);
  225|  22.5k|  if(!result) {
  ------------------
  |  Branch (225:6): [True: 22.5k, False: 50]
  ------------------
  226|  22.5k|    if(eos && (blen == *pnwritten))
  ------------------
  |  Branch (226:8): [True: 20.9k, False: 1.61k]
  |  Branch (226:15): [True: 12.4k, False: 8.46k]
  ------------------
  227|  12.4k|      data->req.eos_sent = TRUE;
  ------------------
  |  | 1053|  12.4k|#define TRUE true
  ------------------
  228|  22.5k|    if(*pnwritten) {
  ------------------
  |  Branch (228:8): [True: 13.6k, False: 8.87k]
  ------------------
  229|  13.6k|      if(hds_len)
  ------------------
  |  Branch (229:10): [True: 13.3k, False: 278]
  ------------------
  230|  13.3k|        Curl_debug(data, CURLINFO_HEADER_OUT, buf,
  231|  13.3k|                   CURLMIN(hds_len, *pnwritten));
  ------------------
  |  | 1296|  13.3k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1296:24): [True: 775, False: 12.5k]
  |  |  ------------------
  ------------------
  232|  13.6k|      if(*pnwritten > hds_len) {
  ------------------
  |  Branch (232:10): [True: 1.05k, False: 12.5k]
  ------------------
  233|  1.05k|        size_t body_len = *pnwritten - hds_len;
  234|  1.05k|        Curl_debug(data, CURLINFO_DATA_OUT, buf + hds_len, body_len);
  235|  1.05k|        data->req.writebytecount += body_len;
  236|  1.05k|        Curl_pgrs_upload_inc(data, body_len);
  237|  1.05k|      }
  238|  13.6k|    }
  239|  22.5k|  }
  240|  22.5k|  return result;
  241|  22.5k|}
request.c:req_set_upload_done:
  268|  12.7k|{
  269|  12.7k|  DEBUGASSERT(!data->req.upload_done);
  ------------------
  |  | 1083|  12.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (269:3): [True: 0, False: 12.7k]
  |  Branch (269:3): [True: 12.7k, False: 0]
  ------------------
  270|  12.7k|  data->req.upload_done = TRUE;
  ------------------
  |  | 1053|  12.7k|#define TRUE true
  ------------------
  271|  12.7k|  CURL_REQ_CLEAR_SEND(data);
  ------------------
  |  |   47|  12.7k|  ((d)->req.io_flags &= (uint8_t)~REQ_IO_SEND)
  |  |  ------------------
  |  |  |  |   36|  12.7k|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  ------------------
  272|       |
  273|  12.7k|  if(data->mstate >= MSTATE_DID)
  ------------------
  |  Branch (273:6): [True: 661, False: 12.0k]
  ------------------
  274|    661|    Curl_pgrsTime(data, TIMER_POSTRANSFER);
  275|  12.7k|  Curl_creader_done(data, data->req.upload_aborted);
  276|       |
  277|  12.7k|  if(data->req.upload_aborted) {
  ------------------
  |  Branch (277:6): [True: 244, False: 12.4k]
  ------------------
  278|    244|    Curl_bufq_reset(&data->req.sendbuf);
  279|    244|    if(data->req.writebytecount)
  ------------------
  |  Branch (279:8): [True: 54, False: 190]
  ------------------
  280|     54|      infof(data, "abort upload after having sent %" FMT_OFF_T " bytes",
  ------------------
  |  |  143|     54|  do {                               \
  |  |  144|     54|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|     54|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 54, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 54]
  |  |  |  |  ------------------
  |  |  |  |  323|     54|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     54|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     54|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 54]
  |  |  ------------------
  ------------------
  281|    244|            data->req.writebytecount);
  282|    190|    else
  283|    190|      infof(data, "abort upload");
  ------------------
  |  |  143|    190|  do {                               \
  |  |  144|    190|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|    190|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 190, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 190]
  |  |  |  |  ------------------
  |  |  |  |  323|    190|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    190|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    190|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 190]
  |  |  ------------------
  ------------------
  284|    244|  }
  285|  12.4k|  else if(data->req.writebytecount)
  ------------------
  |  Branch (285:11): [True: 503, False: 11.9k]
  ------------------
  286|    503|    infof(data, "upload completely sent off: %" FMT_OFF_T " bytes",
  ------------------
  |  |  143|    503|  do {                               \
  |  |  144|    503|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|    503|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 503, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 503]
  |  |  |  |  ------------------
  |  |  |  |  323|    503|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    503|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    503|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 503]
  |  |  ------------------
  ------------------
  287|  12.4k|          data->req.writebytecount);
  288|  11.9k|  else if(!data->req.download_done) {
  ------------------
  |  Branch (288:11): [True: 11.8k, False: 108]
  ------------------
  289|  11.8k|    DEBUGASSERT(Curl_bufq_is_empty(&data->req.sendbuf));
  ------------------
  |  | 1083|  11.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (289:5): [True: 0, False: 11.8k]
  |  Branch (289:5): [True: 11.8k, False: 0]
  ------------------
  290|  11.8k|    infof(data, Curl_creader_total_length(data) ?
  ------------------
  |  |  143|  11.8k|  do {                               \
  |  |  144|  11.8k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|  11.8k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 11.8k, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 11.8k]
  |  |  |  |  ------------------
  |  |  |  |  323|  11.8k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  11.8k|      Curl_infof(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  ------------------
  |  |  146|  11.8k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 11.8k]
  |  |  ------------------
  ------------------
  291|  11.8k|          "We are completely uploaded and fine" :
  292|  11.8k|          "Request completely sent off");
  293|  11.8k|  }
  294|       |
  295|  12.7k|  return Curl_xfer_send_close(data);
  296|  12.7k|}
request.c:req_send_buffer_add:
  368|  1.24k|{
  369|  1.24k|  CURLcode result = CURLE_OK;
  370|  1.24k|  size_t n;
  371|  1.24k|  result = Curl_bufq_cwrite(&data->req.sendbuf, buf, blen, &n);
  372|  1.24k|  if(result)
  ------------------
  |  Branch (372:6): [True: 0, False: 1.24k]
  ------------------
  373|      0|    return result;
  374|       |  /* We rely on a SOFTLIMIT on sendbuf, so it can take all data in */
  375|  1.24k|  DEBUGASSERT(n == blen);
  ------------------
  |  | 1083|  1.24k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (375:3): [True: 0, False: 1.24k]
  |  Branch (375:3): [True: 1.24k, False: 0]
  ------------------
  376|  1.24k|  data->req.sendbuf_hds_len += hds_len;
  377|  1.24k|  return CURLE_OK;
  378|  1.24k|}
request.c:add_from_client:
  354|  5.12k|{
  355|  5.12k|  struct Curl_easy *data = reader_ctx;
  356|  5.12k|  CURLcode result;
  357|  5.12k|  bool eos;
  358|       |
  359|  5.12k|  result = Curl_client_read(data, (char *)buf, buflen, pnread, &eos);
  360|  5.12k|  if(!result && eos)
  ------------------
  |  Branch (360:6): [True: 5.05k, False: 66]
  |  Branch (360:17): [True: 712, False: 4.34k]
  ------------------
  361|    712|    data->req.eos_read = TRUE;
  ------------------
  |  | 1053|    712|#define TRUE true
  ------------------
  362|  5.12k|  return result;
  363|  5.12k|}

Curl_socket_check:
  120|      8|{
  121|      8|  struct pollfd pfd[3];
  122|      8|  int num;
  123|      8|  int r;
  124|       |
  125|      8|  if((readfd0 == CURL_SOCKET_BAD) && (readfd1 == CURL_SOCKET_BAD) &&
  ------------------
  |  |  145|      8|#define CURL_SOCKET_BAD (-1)
  ------------------
                if((readfd0 == CURL_SOCKET_BAD) && (readfd1 == CURL_SOCKET_BAD) &&
  ------------------
  |  |  145|      8|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (125:6): [True: 8, False: 0]
  |  Branch (125:38): [True: 8, False: 0]
  ------------------
  126|      8|     (writefd == CURL_SOCKET_BAD)) {
  ------------------
  |  |  145|      8|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (126:6): [True: 0, False: 8]
  ------------------
  127|       |    /* no sockets, wait */
  128|      0|    return curlx_wait_ms(timeout_ms);
  129|      0|  }
  130|       |
  131|       |  /* Avoid initial timestamp, avoid curlx_now() call, when elapsed
  132|       |     time in this function does not need to be measured. This happens
  133|       |     when function is called with a zero timeout or a negative timeout
  134|       |     value indicating a blocking call should be performed. */
  135|       |
  136|      8|  num = 0;
  137|      8|  if(readfd0 != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|      8|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (137:6): [True: 0, False: 8]
  ------------------
  138|      0|    pfd[num].fd = readfd0;
  139|      0|    pfd[num].events = POLLRDNORM | POLLIN | POLLRDBAND | POLLPRI;
  140|      0|    pfd[num].revents = 0;
  141|      0|    num++;
  142|      0|  }
  143|      8|  if(readfd1 != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|      8|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (143:6): [True: 0, False: 8]
  ------------------
  144|      0|    pfd[num].fd = readfd1;
  145|      0|    pfd[num].events = POLLRDNORM | POLLIN | POLLRDBAND | POLLPRI;
  146|      0|    pfd[num].revents = 0;
  147|      0|    num++;
  148|      0|  }
  149|      8|  if(writefd != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|      8|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (149:6): [True: 8, False: 0]
  ------------------
  150|      8|    pfd[num].fd = writefd;
  151|      8|    pfd[num].events = POLLWRNORM | POLLOUT | POLLPRI;
  152|      8|    pfd[num].revents = 0;
  153|      8|    num++;
  154|      8|  }
  155|       |
  156|      8|  r = Curl_poll(pfd, (unsigned int)num, timeout_ms);
  157|      8|  if(r <= 0)
  ------------------
  |  Branch (157:6): [True: 8, False: 0]
  ------------------
  158|      8|    return r;
  159|       |
  160|      0|  r = 0;
  161|      0|  num = 0;
  162|      0|  if(readfd0 != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (162:6): [True: 0, False: 0]
  ------------------
  163|      0|    if(pfd[num].revents & (POLLRDNORM | POLLIN | POLLERR | POLLHUP))
  ------------------
  |  Branch (163:8): [True: 0, False: 0]
  ------------------
  164|      0|      r |= CURL_CSELECT_IN;
  ------------------
  |  |  290|      0|#define CURL_CSELECT_IN   0x01
  ------------------
  165|      0|    if(pfd[num].revents & (POLLPRI | POLLNVAL))
  ------------------
  |  Branch (165:8): [True: 0, False: 0]
  ------------------
  166|      0|      r |= CURL_CSELECT_ERR;
  ------------------
  |  |  292|      0|#define CURL_CSELECT_ERR  0x04
  ------------------
  167|      0|    num++;
  168|      0|  }
  169|      0|  if(readfd1 != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (169:6): [True: 0, False: 0]
  ------------------
  170|      0|    if(pfd[num].revents & (POLLRDNORM | POLLIN | POLLERR | POLLHUP))
  ------------------
  |  Branch (170:8): [True: 0, False: 0]
  ------------------
  171|      0|      r |= CURL_CSELECT_IN2;
  ------------------
  |  |   70|      0|#define CURL_CSELECT_IN2 (CURL_CSELECT_ERR << 1)
  |  |  ------------------
  |  |  |  |  292|      0|#define CURL_CSELECT_ERR  0x04
  |  |  ------------------
  ------------------
  172|      0|    if(pfd[num].revents & (POLLPRI | POLLNVAL))
  ------------------
  |  Branch (172:8): [True: 0, False: 0]
  ------------------
  173|      0|      r |= CURL_CSELECT_ERR;
  ------------------
  |  |  292|      0|#define CURL_CSELECT_ERR  0x04
  ------------------
  174|      0|    num++;
  175|      0|  }
  176|      0|  if(writefd != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (176:6): [True: 0, False: 0]
  ------------------
  177|      0|    if(pfd[num].revents & (POLLWRNORM | POLLOUT))
  ------------------
  |  Branch (177:8): [True: 0, False: 0]
  ------------------
  178|      0|      r |= CURL_CSELECT_OUT;
  ------------------
  |  |  291|      0|#define CURL_CSELECT_OUT  0x02
  ------------------
  179|      0|    if(pfd[num].revents & (POLLERR | POLLHUP | POLLPRI | POLLNVAL))
  ------------------
  |  Branch (179:8): [True: 0, False: 0]
  ------------------
  180|      0|      r |= CURL_CSELECT_ERR;
  ------------------
  |  |  292|      0|#define CURL_CSELECT_ERR  0x04
  ------------------
  181|      0|  }
  182|       |
  183|      0|  return r;
  184|      8|}
Curl_poll:
  200|    905|{
  201|    905|#ifdef HAVE_POLL
  202|    905|  int pending_ms;
  203|       |#else
  204|       |  fd_set fds_read;
  205|       |  fd_set fds_write;
  206|       |  fd_set fds_err;
  207|       |  curl_socket_t maxfd;
  208|       |#endif
  209|    905|  bool fds_none = TRUE;
  ------------------
  |  | 1053|    905|#define TRUE true
  ------------------
  210|    905|  unsigned int i;
  211|    905|  int r;
  212|       |
  213|    905|  if(ufds) {
  ------------------
  |  Branch (213:6): [True: 905, False: 0]
  ------------------
  214|    905|    for(i = 0; i < nfds; i++) {
  ------------------
  |  Branch (214:16): [True: 905, False: 0]
  ------------------
  215|    905|      if(ufds[i].fd != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|    905|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (215:10): [True: 905, False: 0]
  ------------------
  216|    905|        fds_none = FALSE;
  ------------------
  |  | 1056|    905|#define FALSE false
  ------------------
  217|    905|        break;
  218|    905|      }
  219|    905|    }
  220|    905|  }
  221|    905|  if(fds_none) {
  ------------------
  |  Branch (221:6): [True: 0, False: 905]
  ------------------
  222|       |    /* no sockets, wait */
  223|      0|    return curlx_wait_ms(timeout_ms);
  224|      0|  }
  225|       |
  226|       |  /* Avoid initial timestamp, avoid curlx_now() call, when elapsed
  227|       |     time in this function does not need to be measured. This happens
  228|       |     when function is called with a zero timeout or a negative timeout
  229|       |     value indicating a blocking call should be performed. */
  230|       |
  231|    905|#ifdef HAVE_POLL
  232|       |
  233|       |  /* prevent overflow, timeout_ms is typecast to int. */
  234|    905|#if TIMEDIFF_T_MAX > INT_MAX
  235|    905|  if(timeout_ms > INT_MAX)
  ------------------
  |  Branch (235:6): [True: 0, False: 905]
  ------------------
  236|      0|    timeout_ms = INT_MAX;
  237|    905|#endif
  238|    905|  if(timeout_ms > 0)
  ------------------
  |  Branch (238:6): [True: 8, False: 897]
  ------------------
  239|      8|    pending_ms = (int)timeout_ms;
  240|    897|  else if(timeout_ms < 0)
  ------------------
  |  Branch (240:11): [True: 0, False: 897]
  ------------------
  241|      0|    pending_ms = -1;
  242|    897|  else
  243|    897|    pending_ms = 0;
  244|    905|  r = poll(ufds, nfds, pending_ms);
  245|    905|  if(r <= 0) {
  ------------------
  |  Branch (245:6): [True: 780, False: 125]
  ------------------
  246|    780|    if((r == -1) && (SOCKERRNO == SOCKEINTR))
  ------------------
  |  | 1097|      0|#define SOCKERRNO         errno
  ------------------
                  if((r == -1) && (SOCKERRNO == SOCKEINTR))
  ------------------
  |  | 1131|      0|#define SOCKEINTR         EINTR
  ------------------
  |  Branch (246:8): [True: 0, False: 780]
  |  Branch (246:21): [True: 0, False: 0]
  ------------------
  247|       |      /* make EINTR from select or poll not a "lethal" error */
  248|      0|      r = 0;
  249|    780|    return r;
  250|    780|  }
  251|       |
  252|    250|  for(i = 0; i < nfds; i++) {
  ------------------
  |  Branch (252:14): [True: 125, False: 125]
  ------------------
  253|    125|    if(ufds[i].fd == CURL_SOCKET_BAD)
  ------------------
  |  |  145|    125|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (253:8): [True: 0, False: 125]
  ------------------
  254|      0|      continue;
  255|    125|    if(ufds[i].revents & POLLHUP)
  ------------------
  |  Branch (255:8): [True: 0, False: 125]
  ------------------
  256|      0|      ufds[i].revents |= POLLIN;
  257|    125|    if(ufds[i].revents & POLLERR)
  ------------------
  |  Branch (257:8): [True: 0, False: 125]
  ------------------
  258|      0|      ufds[i].revents |= POLLIN | POLLOUT;
  259|    125|  }
  260|       |
  261|       |#else /* !HAVE_POLL */
  262|       |
  263|       |  FD_ZERO(&fds_read);
  264|       |  FD_ZERO(&fds_write);
  265|       |  FD_ZERO(&fds_err);
  266|       |  maxfd = (curl_socket_t)-1;
  267|       |
  268|       |  for(i = 0; i < nfds; i++) {
  269|       |    ufds[i].revents = 0;
  270|       |    if(ufds[i].fd == CURL_SOCKET_BAD)
  271|       |      continue;
  272|       |    VERIFY_SOCK(ufds[i].fd);
  273|       |    if(ufds[i].events & (POLLIN | POLLOUT | POLLPRI |
  274|       |                         POLLRDNORM | POLLWRNORM | POLLRDBAND)) {
  275|       |      if(ufds[i].fd > maxfd)
  276|       |        maxfd = ufds[i].fd;
  277|       |      if(ufds[i].events & (POLLRDNORM | POLLIN))
  278|       |        FD_SET(ufds[i].fd, &fds_read);
  279|       |      if(ufds[i].events & (POLLWRNORM | POLLOUT))
  280|       |        FD_SET(ufds[i].fd, &fds_write);
  281|       |      if(ufds[i].events & (POLLRDBAND | POLLPRI))
  282|       |        FD_SET(ufds[i].fd, &fds_err);
  283|       |    }
  284|       |  }
  285|       |
  286|       |  /* Note also that Winsock ignores the first argument, so we do not worry
  287|       |     about the fact that maxfd is computed incorrectly with Winsock (since
  288|       |     curl_socket_t is unsigned in such cases and thus -1 is the largest
  289|       |     value). */
  290|       |  r = our_select(maxfd, &fds_read, &fds_write, &fds_err, timeout_ms);
  291|       |  if(r <= 0) {
  292|       |    if((r == -1) && (SOCKERRNO == SOCKEINTR))
  293|       |      /* make EINTR from select or poll not a "lethal" error */
  294|       |      r = 0;
  295|       |    return r;
  296|       |  }
  297|       |
  298|       |  r = 0;
  299|       |  for(i = 0; i < nfds; i++) {
  300|       |    ufds[i].revents = 0;
  301|       |    if(ufds[i].fd == CURL_SOCKET_BAD)
  302|       |      continue;
  303|       |    if(FD_ISSET(ufds[i].fd, &fds_read)) {
  304|       |      if(ufds[i].events & POLLRDNORM)
  305|       |        ufds[i].revents |= POLLRDNORM;
  306|       |      if(ufds[i].events & POLLIN)
  307|       |        ufds[i].revents |= POLLIN;
  308|       |    }
  309|       |    if(FD_ISSET(ufds[i].fd, &fds_write)) {
  310|       |      if(ufds[i].events & POLLWRNORM)
  311|       |        ufds[i].revents |= POLLWRNORM;
  312|       |      if(ufds[i].events & POLLOUT)
  313|       |        ufds[i].revents |= POLLOUT;
  314|       |    }
  315|       |    if(FD_ISSET(ufds[i].fd, &fds_err)) {
  316|       |      if(ufds[i].events & POLLRDBAND)
  317|       |        ufds[i].revents |= POLLRDBAND;
  318|       |      if(ufds[i].events & POLLPRI)
  319|       |        ufds[i].revents |= POLLPRI;
  320|       |    }
  321|       |    if(ufds[i].revents)
  322|       |      r++;
  323|       |  }
  324|       |
  325|       |#endif /* HAVE_POLL */
  326|       |
  327|    125|  return r;
  328|    905|}
Curl_pollfds_init:
  333|  16.3k|{
  334|  16.3k|  DEBUGASSERT(cpfds);
  ------------------
  |  | 1083|  16.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (334:3): [True: 0, False: 16.3k]
  |  Branch (334:3): [True: 16.3k, False: 0]
  ------------------
  335|  16.3k|  memset(cpfds, 0, sizeof(*cpfds));
  336|  16.3k|  if(static_pfds && static_count) {
  ------------------
  |  Branch (336:6): [True: 16.3k, False: 0]
  |  Branch (336:21): [True: 16.3k, False: 0]
  ------------------
  337|  16.3k|    cpfds->pfds = static_pfds;
  338|  16.3k|    cpfds->count = static_count;
  339|  16.3k|  }
  340|  16.3k|}
Curl_pollfds_cleanup:
  348|  16.3k|{
  349|  16.3k|  DEBUGASSERT(cpfds);
  ------------------
  |  | 1083|  16.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (349:3): [True: 0, False: 16.3k]
  |  Branch (349:3): [True: 16.3k, False: 0]
  ------------------
  350|  16.3k|  if(cpfds->allocated_pfds) {
  ------------------
  |  Branch (350:6): [True: 0, False: 16.3k]
  ------------------
  351|      0|    curlx_free(cpfds->pfds);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  352|      0|  }
  353|  16.3k|  memset(cpfds, 0, sizeof(*cpfds));
  354|  16.3k|}
Curl_pollset_reset:
  482|   606k|{
  483|   606k|  unsigned int i;
  484|   606k|  ps->n = 0;
  485|   606k|#ifdef DEBUGBUILD
  486|   606k|  DEBUGASSERT(ps->init == CURL_EASY_POLLSET_MAGIC);
  ------------------
  |  | 1083|   606k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (486:3): [True: 0, False: 606k]
  |  Branch (486:3): [True: 606k, False: 0]
  ------------------
  487|   606k|#endif
  488|   606k|  DEBUGASSERT(ps->count);
  ------------------
  |  | 1083|   606k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (488:3): [True: 0, False: 606k]
  |  Branch (488:3): [True: 606k, False: 0]
  ------------------
  489|  1.81M|  for(i = 0; i < ps->count; i++)
  ------------------
  |  Branch (489:14): [True: 1.21M, False: 606k]
  ------------------
  490|  1.21M|    ps->sockets[i] = CURL_SOCKET_BAD;
  ------------------
  |  |  145|  1.81M|#define CURL_SOCKET_BAD (-1)
  ------------------
  491|   606k|  memset(ps->actions, 0, ps->count * sizeof(ps->actions[0]));
  492|   606k|}
Curl_pollset_init:
  495|   159k|{
  496|   159k|#ifdef DEBUGBUILD
  497|   159k|  ps->init = CURL_EASY_POLLSET_MAGIC;
  ------------------
  |  |  129|   159k|#define CURL_EASY_POLLSET_MAGIC  0x7a657370
  ------------------
  498|   159k|#endif
  499|   159k|  ps->sockets = ps->def_sockets;
  500|   159k|  ps->actions = ps->def_actions;
  501|   159k|  ps->count = CURL_ARRAYSIZE(ps->def_sockets);
  ------------------
  |  | 1307|   159k|#define CURL_ARRAYSIZE(A) (sizeof(A) / sizeof((A)[0]))
  ------------------
  502|   159k|  ps->n = 0;
  503|   159k|  Curl_pollset_reset(ps);
  504|   159k|}
Curl_pollset_cleanup:
  515|   159k|{
  516|   159k|#ifdef DEBUGBUILD
  517|   159k|  DEBUGASSERT(ps->init == CURL_EASY_POLLSET_MAGIC);
  ------------------
  |  | 1083|   159k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (517:3): [True: 0, False: 159k]
  |  Branch (517:3): [True: 159k, False: 0]
  ------------------
  518|   159k|#endif
  519|   159k|  if(ps->sockets != ps->def_sockets) {
  ------------------
  |  Branch (519:6): [True: 0, False: 159k]
  ------------------
  520|      0|    curlx_free(ps->sockets);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  521|      0|    ps->sockets = ps->def_sockets;
  522|      0|  }
  523|   159k|  if(ps->actions != ps->def_actions) {
  ------------------
  |  Branch (523:6): [True: 0, False: 159k]
  ------------------
  524|      0|    curlx_free(ps->actions);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  525|      0|    ps->actions = ps->def_actions;
  526|      0|  }
  527|   159k|  ps->count = CURL_ARRAYSIZE(ps->def_sockets);
  ------------------
  |  | 1307|   159k|#define CURL_ARRAYSIZE(A) (sizeof(A) / sizeof((A)[0]))
  ------------------
  528|   159k|  Curl_pollset_reset(ps);
  529|   159k|}
Curl_pollset_change:
  558|   307k|{
  559|   307k|  unsigned int i;
  560|       |
  561|   307k|#ifdef DEBUGBUILD
  562|   307k|  DEBUGASSERT(ps->init == CURL_EASY_POLLSET_MAGIC);
  ------------------
  |  | 1083|   307k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (562:3): [True: 0, False: 307k]
  |  Branch (562:3): [True: 307k, False: 0]
  ------------------
  563|   307k|#endif
  564|       |
  565|   307k|  DEBUGASSERT(VALID_SOCK(sock));
  ------------------
  |  | 1083|   307k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (565:3): [True: 0, False: 307k]
  |  Branch (565:3): [True: 307k, False: 0]
  ------------------
  566|   307k|  if(!VALID_SOCK(sock))
  ------------------
  |  |   96|   307k|#define VALID_SOCK(s) ((s) >= 0)
  ------------------
  |  Branch (566:6): [True: 0, False: 307k]
  ------------------
  567|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  568|       |
  569|   307k|  DEBUGASSERT(add_flags <= (CURL_POLL_IN | CURL_POLL_OUT));
  ------------------
  |  | 1083|   307k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (569:3): [True: 0, False: 307k]
  |  Branch (569:3): [True: 307k, False: 0]
  ------------------
  570|   307k|  DEBUGASSERT(remove_flags <= (CURL_POLL_IN | CURL_POLL_OUT));
  ------------------
  |  | 1083|   307k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (570:3): [True: 0, False: 307k]
  |  Branch (570:3): [True: 307k, False: 0]
  ------------------
  571|   307k|  DEBUGASSERT((add_flags & remove_flags) == 0); /* no overlap */
  ------------------
  |  | 1083|   307k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (571:3): [True: 0, False: 307k]
  |  Branch (571:3): [True: 307k, False: 0]
  ------------------
  572|   307k|  for(i = 0; i < ps->n; ++i) {
  ------------------
  |  Branch (572:14): [True: 25.1k, False: 282k]
  ------------------
  573|  25.1k|    if(ps->sockets[i] == sock) {
  ------------------
  |  Branch (573:8): [True: 25.1k, False: 0]
  ------------------
  574|  25.1k|      ps->actions[i] &= (unsigned char)(~remove_flags);
  575|  25.1k|      ps->actions[i] |= (unsigned char)add_flags;
  576|       |      /* all gone? remove socket */
  577|  25.1k|      if(!ps->actions[i]) {
  ------------------
  |  Branch (577:10): [True: 0, False: 25.1k]
  ------------------
  578|      0|        if((i + 1) < ps->n) {
  ------------------
  |  Branch (578:12): [True: 0, False: 0]
  ------------------
  579|      0|          memmove(&ps->sockets[i], &ps->sockets[i + 1],
  580|      0|                  (ps->n - (i + 1)) * sizeof(ps->sockets[0]));
  581|      0|          memmove(&ps->actions[i], &ps->actions[i + 1],
  582|      0|                  (ps->n - (i + 1)) * sizeof(ps->actions[0]));
  583|      0|        }
  584|      0|        --ps->n;
  585|      0|      }
  586|  25.1k|      return CURLE_OK;
  587|  25.1k|    }
  588|  25.1k|  }
  589|       |  /* not present */
  590|   282k|  if(add_flags) {
  ------------------
  |  Branch (590:6): [True: 282k, False: 0]
  ------------------
  591|   282k|    if(i >= ps->count) { /* need to grow */
  ------------------
  |  Branch (591:8): [True: 0, False: 282k]
  ------------------
  592|      0|      unsigned int new_count = CURLMAX(ps->count * 2, 8);
  ------------------
  |  | 1295|      0|#define CURLMAX(x, y) ((x) > (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1295:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  593|      0|      curl_socket_t *nsockets;
  594|      0|      unsigned char *nactions;
  595|       |
  596|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  597|      0|                 ps->count, new_count);
  598|      0|      if(new_count <= ps->count)
  ------------------
  |  Branch (598:10): [True: 0, False: 0]
  ------------------
  599|      0|        return CURLE_OUT_OF_MEMORY;
  600|      0|      nsockets = curlx_calloc(new_count, sizeof(nsockets[0]));
  ------------------
  |  | 1479|      0|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  601|      0|      if(!nsockets)
  ------------------
  |  Branch (601:10): [True: 0, False: 0]
  ------------------
  602|      0|        return CURLE_OUT_OF_MEMORY;
  603|      0|      nactions = curlx_calloc(new_count, sizeof(nactions[0]));
  ------------------
  |  | 1479|      0|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  604|      0|      if(!nactions) {
  ------------------
  |  Branch (604:10): [True: 0, False: 0]
  ------------------
  605|      0|        curlx_free(nsockets);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  606|      0|        return CURLE_OUT_OF_MEMORY;
  607|      0|      }
  608|      0|      memcpy(nsockets, ps->sockets, ps->count * sizeof(ps->sockets[0]));
  609|      0|      memcpy(nactions, ps->actions, ps->count * sizeof(ps->actions[0]));
  610|      0|      if(ps->sockets != ps->def_sockets)
  ------------------
  |  Branch (610:10): [True: 0, False: 0]
  ------------------
  611|      0|        curlx_free(ps->sockets);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  612|      0|      ps->sockets = nsockets;
  613|      0|      if(ps->actions != ps->def_actions)
  ------------------
  |  Branch (613:10): [True: 0, False: 0]
  ------------------
  614|      0|        curlx_free(ps->actions);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  615|      0|      ps->actions = nactions;
  616|      0|      ps->count = new_count;
  617|      0|    }
  618|   282k|    DEBUGASSERT(i < ps->count);
  ------------------
  |  | 1083|   282k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (618:5): [True: 0, False: 282k]
  |  Branch (618:5): [True: 282k, False: 0]
  ------------------
  619|   282k|    if(i < ps->count) {
  ------------------
  |  Branch (619:8): [True: 282k, False: 0]
  ------------------
  620|   282k|      ps->sockets[i] = sock;
  621|   282k|      ps->actions[i] = (unsigned char)add_flags;
  622|   282k|      ps->n = i + 1;
  623|   282k|    }
  624|   282k|  }
  625|   282k|  return CURLE_OK;
  626|   282k|}
Curl_pollset_set:
  631|  9.89k|{
  632|  9.89k|  return Curl_pollset_change(data, ps, sock,
  633|  9.89k|                             (do_in ? CURL_POLL_IN : 0) |
  ------------------
  |  |  283|  9.89k|#define CURL_POLL_IN     1
  ------------------
  |  Branch (633:31): [True: 9.89k, False: 0]
  ------------------
  634|  9.89k|                             (do_out ? CURL_POLL_OUT : 0),
  ------------------
  |  |  284|  1.07k|#define CURL_POLL_OUT    2
  ------------------
  |  Branch (634:31): [True: 1.07k, False: 8.82k]
  ------------------
  635|  9.89k|                             (!do_in ? CURL_POLL_IN : 0) |
  ------------------
  |  |  283|      0|#define CURL_POLL_IN     1
  ------------------
  |  Branch (635:31): [True: 0, False: 9.89k]
  ------------------
  636|  9.89k|                             (!do_out ? CURL_POLL_OUT : 0));
  ------------------
  |  |  284|  8.82k|#define CURL_POLL_OUT    2
  ------------------
  |  Branch (636:31): [True: 8.82k, False: 1.07k]
  ------------------
  637|  9.89k|}
Curl_pollset_check:
  688|  9.89k|{
  689|  9.89k|  unsigned int i;
  690|       |
  691|  9.89k|  (void)data;
  692|  9.89k|  DEBUGASSERT(VALID_SOCK(sock));
  ------------------
  |  | 1083|  9.89k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (692:3): [True: 0, False: 9.89k]
  |  Branch (692:3): [True: 9.89k, False: 0]
  ------------------
  693|  9.89k|  for(i = 0; i < ps->n; ++i) {
  ------------------
  |  Branch (693:14): [True: 9.89k, False: 0]
  ------------------
  694|  9.89k|    if(ps->sockets[i] == sock) {
  ------------------
  |  Branch (694:8): [True: 9.89k, False: 0]
  ------------------
  695|  9.89k|      *pwant_read = !!(ps->actions[i] & CURL_POLL_IN);
  ------------------
  |  |  283|  9.89k|#define CURL_POLL_IN     1
  ------------------
  696|  9.89k|      *pwant_write = !!(ps->actions[i] & CURL_POLL_OUT);
  ------------------
  |  |  284|  9.89k|#define CURL_POLL_OUT    2
  ------------------
  697|  9.89k|      return;
  698|  9.89k|    }
  699|  9.89k|  }
  700|      0|  *pwant_read = *pwant_write = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  701|      0|}
Curl_pollset_want_recv:
  706|   277k|{
  707|   277k|  unsigned int i;
  708|   277k|  (void)data;
  709|   430k|  for(i = 0; i < ps->n; ++i) {
  ------------------
  |  Branch (709:14): [True: 277k, False: 152k]
  ------------------
  710|   277k|    if((ps->sockets[i] == sock) && (ps->actions[i] & CURL_POLL_IN))
  ------------------
  |  |  283|   132k|#define CURL_POLL_IN     1
  ------------------
  |  Branch (710:8): [True: 132k, False: 145k]
  |  Branch (710:36): [True: 124k, False: 7.66k]
  ------------------
  711|   124k|      return TRUE;
  ------------------
  |  | 1053|   124k|#define TRUE true
  ------------------
  712|   277k|  }
  713|   152k|  return FALSE;
  ------------------
  |  | 1056|   152k|#define FALSE false
  ------------------
  714|   277k|}

Curl_client_cleanup:
   72|  19.9k|{
   73|  19.9k|  cl_reset_reader(data);
   74|  19.9k|  cl_reset_writer(data);
   75|       |
   76|  19.9k|  data->req.bytecount = 0;
   77|  19.9k|  data->req.headerline = 0;
   78|  19.9k|}
Curl_client_reset:
   81|  21.4k|{
   82|  21.4k|  if(data->req.rewind_read) {
  ------------------
  |  Branch (82:6): [True: 760, False: 20.7k]
  ------------------
   83|       |    /* already requested */
   84|    760|    CURL_TRC_READ(data, "client_reset, will rewind reader");
  ------------------
  |  |  163|    760|  do {                                                    \
  |  |  164|    760|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  329|    760|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  1.52k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 760, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 760]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  1.52k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    760|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|    760|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|    760|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 760]
  |  |  ------------------
  ------------------
   85|    760|  }
   86|  20.7k|  else {
   87|  20.7k|    CURL_TRC_READ(data, "client_reset, clear readers");
  ------------------
  |  |  163|  20.7k|  do {                                                    \
  |  |  164|  20.7k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  329|  20.7k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  41.4k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 20.7k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 20.7k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  41.4k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  20.7k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|  20.7k|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|  20.7k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 20.7k]
  |  |  ------------------
  ------------------
   88|  20.7k|    cl_reset_reader(data);
   89|  20.7k|  }
   90|  21.4k|  cl_reset_writer(data);
   91|       |
   92|  21.4k|  data->req.bytecount = 0;
   93|  21.4k|  data->req.headerline = 0;
   94|  21.4k|}
Curl_client_start:
   97|  19.2k|{
   98|  19.2k|  if(data->req.rewind_read) {
  ------------------
  |  Branch (98:6): [True: 757, False: 18.4k]
  ------------------
   99|    757|    struct Curl_creader *r = data->req.reader.stack;
  100|    757|    CURLcode result = CURLE_OK;
  101|       |
  102|    757|    CURL_TRC_READ(data, "client start, rewind readers");
  ------------------
  |  |  163|    757|  do {                                                    \
  |  |  164|    757|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  329|    757|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  1.51k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 757, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 757]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  1.51k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    757|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|    757|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|    757|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 757]
  |  |  ------------------
  ------------------
  103|  1.49k|    while(r) {
  ------------------
  |  Branch (103:11): [True: 765, False: 733]
  ------------------
  104|    765|      result = r->crt->cntrl(data, r, CURL_CRCNTRL_REWIND);
  105|    765|      if(result) {
  ------------------
  |  Branch (105:10): [True: 24, False: 741]
  ------------------
  106|     24|        failf(data, "rewind of client reader '%s' failed: %d",
  ------------------
  |  |   62|     24|#define failf Curl_failf
  ------------------
  107|     24|              r->crt->name, (int)result);
  108|     24|        return result;
  109|     24|      }
  110|    741|      r = r->next;
  111|    741|    }
  112|    733|    data->req.rewind_read = FALSE;
  ------------------
  |  | 1056|    733|#define FALSE false
  ------------------
  113|    733|    cl_reset_reader(data);
  114|    733|  }
  115|  19.1k|  return CURLE_OK;
  116|  19.2k|}
Curl_creader_will_rewind:
  119|  9.29k|{
  120|  9.29k|  return (bool)data->req.rewind_read;
  121|  9.29k|}
Curl_creader_set_rewind:
  124|    822|{
  125|    822|  data->req.rewind_read = !!enable;
  126|    822|}
Curl_cwriter_def_init:
  130|  42.7k|{
  131|  42.7k|  (void)data;
  132|  42.7k|  (void)writer;
  133|  42.7k|  return CURLE_OK;
  134|  42.7k|}
Curl_cwriter_def_flush:
  145|  43.0k|{
  146|  43.0k|  return Curl_cwriter_flush(data, writer->next);
  ------------------
  |  |  191|  43.0k|  ((w) ? (w)->cwt->do_flush((d), (w)) : CURLE_WRITE_ERROR)
  |  |  ------------------
  |  |  |  Branch (191:4): [True: 43.0k, False: 0]
  |  |  ------------------
  ------------------
  147|  43.0k|}
Curl_cwriter_def_close:
  151|  42.7k|{
  152|  42.7k|  (void)data;
  153|  42.7k|  (void)writer;
  154|  42.7k|}
Curl_client_write:
  371|  68.6k|{
  372|  68.6k|  CURLcode result;
  373|       |
  374|       |  /* it is one of those, at least */
  375|  68.6k|  DEBUGASSERT(type &
  ------------------
  |  | 1083|  68.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (375:3): [True: 0, False: 68.6k]
  |  Branch (375:3): [True: 68.6k, False: 0]
  ------------------
  376|  68.6k|              (CLIENTWRITE_BODY | CLIENTWRITE_HEADER | CLIENTWRITE_INFO));
  377|       |  /* BODY is only BODY (with optional EOS) */
  378|  68.6k|  DEBUGASSERT(!(type & CLIENTWRITE_BODY) ||
  ------------------
  |  | 1083|  68.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (378:3): [True: 68.6k, False: 0]
  |  Branch (378:3): [True: 0, False: 0]
  |  Branch (378:3): [True: 64.1k, False: 4.49k]
  |  Branch (378:3): [True: 4.49k, False: 0]
  ------------------
  379|  68.6k|              ((type & ~(CLIENTWRITE_BODY | CLIENTWRITE_EOS)) == 0));
  380|       |  /* INFO is only INFO (with optional EOS) */
  381|  68.6k|  DEBUGASSERT(!(type & CLIENTWRITE_INFO) ||
  ------------------
  |  | 1083|  68.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (381:3): [True: 68.6k, False: 0]
  |  Branch (381:3): [True: 0, False: 0]
  |  Branch (381:3): [True: 68.6k, False: 0]
  |  Branch (381:3): [True: 0, False: 0]
  ------------------
  382|  68.6k|              ((type & ~(CLIENTWRITE_INFO | CLIENTWRITE_EOS)) == 0));
  383|       |
  384|  68.6k|  if(!data->req.writer.stack) {
  ------------------
  |  Branch (384:6): [True: 0, False: 68.6k]
  ------------------
  385|      0|    result = do_init_writer_stack(data);
  386|      0|    if(result)
  ------------------
  |  Branch (386:8): [True: 0, False: 0]
  ------------------
  387|      0|      return result;
  388|      0|    DEBUGASSERT(data->req.writer.stack);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (388:5): [True: 0, False: 0]
  |  Branch (388:5): [True: 0, False: 0]
  ------------------
  389|      0|  }
  390|       |
  391|  68.6k|  result = Curl_cwriter_write(data, data->req.writer.stack, type, buf, len);
  ------------------
  |  |  188|  68.6k|  ((w) ? (w)->cwt->do_write((d), (w), (t), (b), (n)) : CURLE_WRITE_ERROR)
  |  |  ------------------
  |  |  |  Branch (188:4): [True: 68.6k, False: 0]
  |  |  ------------------
  ------------------
  392|  68.6k|  CURL_TRC_WRITE(data, "client_write(type=%x, len=%zu) -> %d",
  ------------------
  |  |  158|  68.6k|  do {                                                     \
  |  |  159|  68.6k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  329|  68.6k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|   137k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 68.6k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 68.6k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|   137k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  68.6k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|  68.6k|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|  68.6k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 68.6k]
  |  |  ------------------
  ------------------
  393|  68.6k|                 (unsigned int)type, len, (int)result);
  394|  68.6k|  return result;
  395|  68.6k|}
Curl_client_flush:
  398|  14.2k|{
  399|  14.2k|  CURLcode result;
  400|       |
  401|  14.2k|  if(!data->req.writer.stack) {
  ------------------
  |  Branch (401:6): [True: 0, False: 14.2k]
  ------------------
  402|      0|    result = do_init_writer_stack(data);
  403|      0|    if(result)
  ------------------
  |  Branch (403:8): [True: 0, False: 0]
  ------------------
  404|      0|      return result;
  405|      0|    DEBUGASSERT(data->req.writer.stack);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (405:5): [True: 0, False: 0]
  |  Branch (405:5): [True: 0, False: 0]
  ------------------
  406|      0|  }
  407|       |
  408|  14.2k|  result = Curl_cwriter_flush(data, data->req.writer.stack);
  ------------------
  |  |  191|  14.2k|  ((w) ? (w)->cwt->do_flush((d), (w)) : CURLE_WRITE_ERROR)
  |  |  ------------------
  |  |  |  Branch (191:4): [True: 14.2k, False: 0]
  |  |  ------------------
  ------------------
  409|  14.2k|  CURL_TRC_WRITE(data, "client_flush() -> %d", (int)result);
  ------------------
  |  |  158|  14.2k|  do {                                                     \
  |  |  159|  14.2k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  329|  14.2k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  28.5k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 14.2k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 14.2k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  28.5k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  14.2k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|  14.2k|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|  14.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 14.2k]
  |  |  ------------------
  ------------------
  410|  14.2k|  return result;
  411|  14.2k|}
Curl_cwriter_create:
  418|  58.9k|{
  419|  58.9k|  struct Curl_cwriter *writer = NULL;
  420|  58.9k|  CURLcode result = CURLE_OUT_OF_MEMORY;
  421|  58.9k|  void *p;
  422|       |
  423|  58.9k|  DEBUGASSERT(cwt->cwriter_size >= sizeof(struct Curl_cwriter));
  ------------------
  |  | 1083|  58.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (423:3): [True: 0, False: 58.9k]
  |  Branch (423:3): [True: 58.9k, False: 0]
  ------------------
  424|  58.9k|  p = curlx_calloc(1, cwt->cwriter_size);
  ------------------
  |  | 1479|  58.9k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  425|  58.9k|  if(!p)
  ------------------
  |  Branch (425:6): [True: 0, False: 58.9k]
  ------------------
  426|      0|    goto out;
  427|       |
  428|  58.9k|  writer = (struct Curl_cwriter *)p;
  429|  58.9k|  writer->cwt = cwt;
  430|  58.9k|  writer->ctx = p;
  431|  58.9k|  writer->phase = phase;
  432|  58.9k|  result = cwt->do_init(data, writer);
  433|       |
  434|  58.9k|out:
  435|  58.9k|  *pwriter = result ? NULL : writer;
  ------------------
  |  Branch (435:14): [True: 0, False: 58.9k]
  ------------------
  436|  58.9k|  if(result)
  ------------------
  |  Branch (436:6): [True: 0, False: 58.9k]
  ------------------
  437|      0|    curlx_free(writer);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  438|  58.9k|  return result;
  439|  58.9k|}
Curl_cwriter_count:
  451|    358|{
  452|    358|  struct Curl_cwriter *w;
  453|    358|  size_t n = 0;
  454|       |
  455|  2.02k|  for(w = data->req.writer.stack; w; w = w->next) {
  ------------------
  |  Branch (455:35): [True: 1.66k, False: 358]
  ------------------
  456|  1.66k|    if(w->phase == phase)
  ------------------
  |  Branch (456:8): [True: 235, False: 1.43k]
  ------------------
  457|    235|      ++n;
  458|  1.66k|  }
  459|    358|  return n;
  460|    358|}
Curl_cwriter_add:
  479|  16.2k|{
  480|  16.2k|  CURLcode result;
  481|  16.2k|  struct Curl_cwriter **anchor = &data->req.writer.stack;
  482|       |
  483|  16.2k|  if(!*anchor) {
  ------------------
  |  Branch (483:6): [True: 14.2k, False: 1.95k]
  ------------------
  484|  14.2k|    result = do_init_writer_stack(data);
  485|  14.2k|    if(result)
  ------------------
  |  Branch (485:8): [True: 0, False: 14.2k]
  ------------------
  486|      0|      return result;
  487|  14.2k|  }
  488|       |
  489|  16.2k|  if(writer->cwt->flags & CURL_CW_FLAG_BLOWUP) {
  ------------------
  |  |  114|  16.2k|#define CURL_CW_FLAG_BLOWUP     (1U << 0)
  ------------------
  |  Branch (489:6): [True: 0, False: 16.2k]
  ------------------
  490|       |    /* On adding a writer that may blow up write sizes, e.g. zip bombs,
  491|       |     * add the pause writer. Do this first as any failure will make the
  492|       |     * caller destroy the writer again. */
  493|      0|    result = cwriter_ensure_pause_writer(data);
  494|      0|    if(result)
  ------------------
  |  Branch (494:8): [True: 0, False: 0]
  ------------------
  495|      0|      return result;
  496|      0|  }
  497|       |
  498|  16.2k|  cwriter_add(data, writer);
  499|  16.2k|  return CURLE_OK;
  500|  16.2k|}
Curl_cwriter_get_by_name:
  504|  23.2k|{
  505|  23.2k|  struct Curl_cwriter *writer;
  506|  32.2k|  for(writer = data->req.writer.stack; writer; writer = writer->next) {
  ------------------
  |  Branch (506:40): [True: 17.9k, False: 14.2k]
  ------------------
  507|  17.9k|    if(!strcmp(name, writer->cwt->name))
  ------------------
  |  Branch (507:8): [True: 8.97k, False: 8.97k]
  ------------------
  508|  8.97k|      return writer;
  509|  17.9k|  }
  510|  14.2k|  return NULL;
  511|  23.2k|}
Curl_cwriter_get_by_type:
  515|  14.4k|{
  516|  14.4k|  struct Curl_cwriter *writer;
  517|  60.0k|  for(writer = data->req.writer.stack; writer; writer = writer->next) {
  ------------------
  |  Branch (517:40): [True: 59.8k, False: 221]
  ------------------
  518|  59.8k|    if(writer->cwt == cwt)
  ------------------
  |  Branch (518:8): [True: 14.2k, False: 45.6k]
  ------------------
  519|  14.2k|      return writer;
  520|  59.8k|  }
  521|    221|  return NULL;
  522|  14.4k|}
Curl_creader_read:
  533|  9.07k|{
  534|  9.07k|  *nread = 0;
  535|  9.07k|  *eos = FALSE;
  ------------------
  |  | 1056|  9.07k|#define FALSE false
  ------------------
  536|  9.07k|  if(!reader)
  ------------------
  |  Branch (536:6): [True: 0, False: 9.07k]
  ------------------
  537|      0|    return CURLE_READ_ERROR;
  538|  9.07k|  return reader->crt->do_read(data, reader, buf, blen, nread, eos);
  539|  9.07k|}
Curl_creader_def_init:
  552|  12.5k|{
  553|  12.5k|  (void)data;
  554|  12.5k|  (void)reader;
  555|  12.5k|  return CURLE_OK;
  556|  12.5k|}
Curl_creader_def_close:
  560|  13.4k|{
  561|  13.4k|  (void)data;
  562|  13.4k|  (void)reader;
  563|  13.4k|}
Curl_creader_def_needs_rewind:
  582|  4.25k|{
  583|  4.25k|  (void)data;
  584|  4.25k|  (void)reader;
  585|       |  return FALSE;
  ------------------
  |  | 1056|  4.25k|#define FALSE false
  ------------------
  586|  4.25k|}
Curl_creader_def_total_length:
  590|    162|{
  591|    162|  return reader->next ?
  ------------------
  |  Branch (591:10): [True: 162, False: 0]
  ------------------
  592|    162|         reader->next->crt->total_length(data, reader->next) : -1;
  593|    162|}
Curl_creader_def_cntrl:
  608|    576|{
  609|    576|  (void)data;
  610|    576|  (void)reader;
  611|    576|  (void)opcode;
  612|    576|  return CURLE_OK;
  613|    576|}
Curl_creader_def_done:
  625|  12.8k|{
  626|  12.8k|  (void)data;
  627|  12.8k|  (void)reader;
  628|  12.8k|  (void)premature;
  629|  12.8k|}
Curl_creader_create:
  946|  13.6k|{
  947|  13.6k|  struct Curl_creader *reader = NULL;
  948|  13.6k|  CURLcode result = CURLE_OUT_OF_MEMORY;
  949|  13.6k|  void *p;
  950|       |
  951|  13.6k|  DEBUGASSERT(crt->creader_size >= sizeof(struct Curl_creader));
  ------------------
  |  | 1083|  13.6k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (951:3): [True: 0, False: 13.6k]
  |  Branch (951:3): [True: 13.6k, False: 0]
  ------------------
  952|  13.6k|  p = curlx_calloc(1, crt->creader_size);
  ------------------
  |  | 1479|  13.6k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  953|  13.6k|  if(!p)
  ------------------
  |  Branch (953:6): [True: 0, False: 13.6k]
  ------------------
  954|      0|    goto out;
  955|       |
  956|  13.6k|  reader = (struct Curl_creader *)p;
  957|  13.6k|  reader->crt = crt;
  958|  13.6k|  reader->ctx = p;
  959|  13.6k|  reader->phase = phase;
  960|  13.6k|  result = crt->do_init(data, reader);
  961|       |
  962|  13.6k|out:
  963|  13.6k|  *preader = result ? NULL : reader;
  ------------------
  |  Branch (963:14): [True: 0, False: 13.6k]
  ------------------
  964|  13.6k|  if(result)
  ------------------
  |  Branch (964:6): [True: 0, False: 13.6k]
  ------------------
  965|      0|    curlx_free(reader);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  966|  13.6k|  return result;
  967|  13.6k|}
Curl_creader_set_fread:
 1147|    890|{
 1148|    890|  CURLcode result;
 1149|    890|  struct Curl_creader *r;
 1150|    890|  struct cr_in_ctx *ctx;
 1151|       |
 1152|    890|  result = Curl_creader_create(&r, data, &cr_in, CURL_CR_CLIENT);
 1153|    890|  if(result || !r)
  ------------------
  |  Branch (1153:6): [True: 0, False: 890]
  |  Branch (1153:16): [True: 0, False: 890]
  ------------------
 1154|      0|    goto out;
 1155|    890|  ctx = r->ctx;
 1156|    890|  ctx->total_len = len;
 1157|       |
 1158|    890|  cl_reset_reader(data);
 1159|    890|  result = do_init_reader_stack(data, r);
 1160|    890|out:
 1161|    890|  CURL_TRC_READ(data, "add fread reader, len=%" FMT_OFF_T " -> %d",
  ------------------
  |  |  163|    890|  do {                                                    \
  |  |  164|    890|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  329|    890|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  1.78k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 890, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 890]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  1.78k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    890|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|    890|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|    890|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 890]
  |  |  ------------------
  ------------------
 1162|    890|                len, (int)result);
 1163|    890|  return result;
 1164|    890|}
Curl_creader_add:
 1168|    498|{
 1169|    498|  CURLcode result;
 1170|    498|  struct Curl_creader **anchor = &data->req.reader.stack;
 1171|       |
 1172|    498|  if(!*anchor) {
  ------------------
  |  Branch (1172:6): [True: 0, False: 498]
  ------------------
 1173|      0|    result = Curl_creader_set_fread(data, data->state.infilesize);
 1174|      0|    if(result)
  ------------------
  |  Branch (1174:8): [True: 0, False: 0]
  ------------------
 1175|      0|      return result;
 1176|      0|  }
 1177|       |
 1178|       |  /* Insert the writer as first in its phase.
 1179|       |   * Skip existing readers of lower phases. */
 1180|    641|  while(*anchor && (*anchor)->phase < reader->phase)
  ------------------
  |  Branch (1180:9): [True: 641, False: 0]
  |  Branch (1180:20): [True: 143, False: 498]
  ------------------
 1181|    143|    anchor = &((*anchor)->next);
 1182|    498|  reader->next = *anchor;
 1183|    498|  *anchor = reader;
 1184|    498|  return CURLE_OK;
 1185|    498|}
Curl_client_read:
 1204|  5.12k|{
 1205|  5.12k|  CURLcode result;
 1206|       |
 1207|  5.12k|  DEBUGASSERT(buf);
  ------------------
  |  | 1083|  5.12k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1207:3): [True: 0, False: 5.12k]
  |  Branch (1207:3): [True: 5.12k, False: 0]
  ------------------
 1208|  5.12k|  DEBUGASSERT(blen);
  ------------------
  |  | 1083|  5.12k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1208:3): [True: 0, False: 5.12k]
  |  Branch (1208:3): [True: 5.12k, False: 0]
  ------------------
 1209|  5.12k|  DEBUGASSERT(nread);
  ------------------
  |  | 1083|  5.12k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1209:3): [True: 0, False: 5.12k]
  |  Branch (1209:3): [True: 5.12k, False: 0]
  ------------------
 1210|  5.12k|  DEBUGASSERT(eos);
  ------------------
  |  | 1083|  5.12k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1210:3): [True: 0, False: 5.12k]
  |  Branch (1210:3): [True: 5.12k, False: 0]
  ------------------
 1211|  5.12k|  *nread = 0;
 1212|       |
 1213|  5.12k|  if(!data->req.reader.stack) {
  ------------------
  |  Branch (1213:6): [True: 0, False: 5.12k]
  ------------------
 1214|      0|    result = Curl_creader_set_fread(data, data->state.infilesize);
 1215|      0|    if(result)
  ------------------
  |  Branch (1215:8): [True: 0, False: 0]
  ------------------
 1216|      0|      return result;
 1217|      0|    DEBUGASSERT(data->req.reader.stack);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1217:5): [True: 0, False: 0]
  |  Branch (1217:5): [True: 0, False: 0]
  ------------------
 1218|      0|  }
 1219|  5.12k|  if(!data->req.reader_started) {
  ------------------
  |  Branch (1219:6): [True: 1.13k, False: 3.99k]
  ------------------
 1220|  1.13k|    Curl_rlimit_start(&data->progress.ul.rlimit, Curl_pgrs_now(data), -1);
 1221|  1.13k|    data->req.reader_started = TRUE;
  ------------------
  |  | 1053|  1.13k|#define TRUE true
  ------------------
 1222|  1.13k|  }
 1223|       |
 1224|  5.12k|  if(Curl_rlimit_active(&data->progress.ul.rlimit)) {
  ------------------
  |  Branch (1224:6): [True: 0, False: 5.12k]
  ------------------
 1225|      0|    curl_off_t ul_avail = Curl_rlimit_avail(&data->progress.ul.rlimit, NULL);
 1226|      0|    if(ul_avail <= 0) {
  ------------------
  |  Branch (1226:8): [True: 0, False: 0]
  ------------------
 1227|      0|      result = CURLE_OK;
 1228|      0|      *eos = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1229|      0|      goto out;
 1230|      0|    }
 1231|      0|    if(ul_avail < (curl_off_t)blen)
  ------------------
  |  Branch (1231:8): [True: 0, False: 0]
  ------------------
 1232|      0|      blen = (size_t)ul_avail;
 1233|      0|  }
 1234|  5.12k|  result = Curl_creader_read(data, data->req.reader.stack, buf, blen,
 1235|  5.12k|                             nread, eos);
 1236|       |
 1237|  5.12k|out:
 1238|  5.12k|  CURL_TRC_READ(data, "client_read(len=%zu) -> %d, nread=%zu, eos=%d",
  ------------------
  |  |  163|  5.12k|  do {                                                    \
  |  |  164|  5.12k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  329|  5.12k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  10.2k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 5.12k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 5.12k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  10.2k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  5.12k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|  5.12k|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|  5.12k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 5.12k]
  |  |  ------------------
  ------------------
 1239|  5.12k|                blen, (int)result, *nread, *eos);
 1240|  5.12k|  return result;
 1241|  5.12k|}
Curl_creader_needs_rewind:
 1244|  4.40k|{
 1245|  4.40k|  struct Curl_creader *reader = data->req.reader.stack;
 1246|  8.70k|  while(reader) {
  ------------------
  |  Branch (1246:9): [True: 4.46k, False: 4.23k]
  ------------------
 1247|  4.46k|    if(reader->crt->needs_rewind(data, reader)) {
  ------------------
  |  Branch (1247:8): [True: 164, False: 4.30k]
  ------------------
 1248|    164|      CURL_TRC_READ(data, "client reader needs rewind before next request");
  ------------------
  |  |  163|    164|  do {                                                    \
  |  |  164|    164|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  329|    164|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    328|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 164, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 164]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    328|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    164|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|    164|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|    164|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 164]
  |  |  ------------------
  ------------------
 1249|    164|      return TRUE;
  ------------------
  |  | 1053|    164|#define TRUE true
  ------------------
 1250|    164|    }
 1251|  4.30k|    reader = reader->next;
 1252|  4.30k|  }
 1253|  4.23k|  return FALSE;
  ------------------
  |  | 1056|  4.23k|#define FALSE false
  ------------------
 1254|  4.40k|}
Curl_creader_set_null:
 1294|  12.0k|{
 1295|  12.0k|  struct Curl_creader *r;
 1296|  12.0k|  CURLcode result;
 1297|       |
 1298|  12.0k|  result = Curl_creader_create(&r, data, &cr_null, CURL_CR_CLIENT);
 1299|  12.0k|  if(result)
  ------------------
  |  Branch (1299:6): [True: 0, False: 12.0k]
  ------------------
 1300|      0|    return result;
 1301|       |
 1302|  12.0k|  cl_reset_reader(data);
 1303|  12.0k|  return do_init_reader_stack(data, r);
 1304|  12.0k|}
Curl_creader_set_buf:
 1409|    230|{
 1410|    230|  CURLcode result;
 1411|    230|  struct Curl_creader *r;
 1412|    230|  struct cr_buf_ctx *ctx;
 1413|       |
 1414|    230|  result = Curl_creader_create(&r, data, &cr_buf, CURL_CR_CLIENT);
 1415|    230|  if(result)
  ------------------
  |  Branch (1415:6): [True: 0, False: 230]
  ------------------
 1416|      0|    goto out;
 1417|    230|  ctx = r->ctx;
 1418|    230|  ctx->buf = buf;
 1419|    230|  ctx->blen = blen;
 1420|    230|  ctx->index = 0;
 1421|       |
 1422|    230|  cl_reset_reader(data);
 1423|    230|  result = do_init_reader_stack(data, r);
 1424|    230|out:
 1425|    230|  CURL_TRC_READ(data, "add buf reader, len=%zu -> %d", blen, (int)result);
  ------------------
  |  |  163|    230|  do {                                                    \
  |  |  164|    230|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  329|    230|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    460|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 230, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 230]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    460|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    230|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|    230|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|    230|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 230]
  |  |  ------------------
  ------------------
 1426|    230|  return result;
 1427|    230|}
Curl_creader_total_length:
 1430|  43.6k|{
 1431|  43.6k|  struct Curl_creader *r = data->req.reader.stack;
 1432|  43.6k|  return r ? r->crt->total_length(data, r) : -1;
  ------------------
  |  Branch (1432:10): [True: 43.6k, False: 0]
  ------------------
 1433|  43.6k|}
Curl_creader_client_length:
 1436|    720|{
 1437|    720|  struct Curl_creader *r = data->req.reader.stack;
 1438|    863|  while(r && r->phase != CURL_CR_CLIENT)
  ------------------
  |  Branch (1438:9): [True: 863, False: 0]
  |  Branch (1438:14): [True: 143, False: 720]
  ------------------
 1439|    143|    r = r->next;
 1440|    720|  return r ? r->crt->total_length(data, r) : -1;
  ------------------
  |  Branch (1440:10): [True: 720, False: 0]
  ------------------
 1441|    720|}
Curl_creader_done:
 1479|  12.7k|{
 1480|  12.7k|  struct Curl_creader *reader = data->req.reader.stack;
 1481|  25.7k|  while(reader) {
  ------------------
  |  Branch (1481:9): [True: 13.0k, False: 12.7k]
  ------------------
 1482|  13.0k|    reader->crt->done(data, reader, premature);
 1483|  13.0k|    reader = reader->next;
 1484|  13.0k|  }
 1485|  12.7k|}
Curl_creader_get_by_type:
 1489|  13.1k|{
 1490|  13.1k|  struct Curl_creader *r;
 1491|  26.9k|  for(r = data->req.reader.stack; r; r = r->next) {
  ------------------
  |  Branch (1491:35): [True: 19.2k, False: 7.63k]
  ------------------
 1492|  19.2k|    if(r->crt == crt)
  ------------------
  |  Branch (1492:8): [True: 5.47k, False: 13.7k]
  ------------------
 1493|  5.47k|      return r;
 1494|  19.2k|  }
 1495|  7.63k|  return NULL;
 1496|  13.1k|}
sendf.c:cl_reset_reader:
   60|  54.5k|{
   61|  54.5k|  struct Curl_creader *reader = data->req.reader.stack;
   62|  54.5k|  data->req.reader_started = FALSE;
  ------------------
  |  | 1056|  54.5k|#define FALSE false
  ------------------
   63|  68.2k|  while(reader) {
  ------------------
  |  Branch (63:9): [True: 13.6k, False: 54.5k]
  ------------------
   64|  13.6k|    data->req.reader.stack = reader->next;
   65|  13.6k|    reader->crt->do_close(data, reader);
   66|  13.6k|    curlx_free(reader);
  ------------------
  |  | 1482|  13.6k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   67|  13.6k|    reader = data->req.reader.stack;
   68|  13.6k|  }
   69|  54.5k|}
sendf.c:cl_reset_writer:
   48|  41.4k|{
   49|  41.4k|  struct Curl_cwriter *writer = data->req.writer.stack;
   50|   100k|  while(writer) {
  ------------------
  |  Branch (50:9): [True: 58.9k, False: 41.4k]
  ------------------
   51|  58.9k|    data->req.writer.stack = writer->next;
   52|  58.9k|    writer->cwt->do_close(data, writer);
   53|  58.9k|    curlx_free(writer);
  ------------------
  |  | 1482|  58.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   54|  58.9k|    writer = data->req.writer.stack;
   55|  58.9k|  }
   56|       |  data->req.writer.paused = FALSE;
  ------------------
  |  | 1056|  41.4k|#define FALSE false
  ------------------
   57|  41.4k|}
sendf.c:do_init_writer_stack:
  341|  14.2k|{
  342|  14.2k|  struct Curl_cwriter *writer;
  343|  14.2k|  CURLcode result;
  344|       |
  345|  14.2k|  DEBUGASSERT(!data->req.writer.stack);
  ------------------
  |  | 1083|  14.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (345:3): [True: 0, False: 14.2k]
  |  Branch (345:3): [True: 14.2k, False: 0]
  ------------------
  346|  14.2k|  result = Curl_cwriter_create(&data->req.writer.stack,
  347|  14.2k|                               data, &Curl_cwt_out, CURL_CW_CLIENT);
  348|  14.2k|  if(result)
  ------------------
  |  Branch (348:6): [True: 0, False: 14.2k]
  ------------------
  349|      0|    return result;
  350|       |
  351|  14.2k|  result = Curl_cwriter_create(&writer, data, &cw_download, CURL_CW_PROTOCOL);
  352|  14.2k|  if(result)
  ------------------
  |  Branch (352:6): [True: 0, False: 14.2k]
  ------------------
  353|      0|    return result;
  354|  14.2k|  cwriter_add(data, writer);
  355|       |
  356|  14.2k|  result = Curl_cwriter_create(&writer, data, &cw_raw, CURL_CW_RAW);
  357|  14.2k|  if(result)
  ------------------
  |  Branch (357:6): [True: 0, False: 14.2k]
  ------------------
  358|      0|    return result;
  359|  14.2k|  cwriter_add(data, writer);
  360|       |
  361|  14.2k|  return result;
  362|  14.2k|}
sendf.c:cw_download_write:
  176|  67.7k|{
  177|  67.7k|  struct cw_download_ctx *ctx = writer->ctx;
  178|  67.7k|  CURLcode result;
  179|  67.7k|  size_t nwrite, excess_len = 0;
  180|  67.7k|  bool is_connect = !!(type & CLIENTWRITE_CONNECT);
  ------------------
  |  |   47|  67.7k|#define CLIENTWRITE_CONNECT (1 << 4) /* a CONNECT related HEADER */
  ------------------
  181|       |
  182|  67.7k|  if(!ctx->started_response &&
  ------------------
  |  Branch (182:6): [True: 8.43k, False: 59.2k]
  ------------------
  183|  8.43k|     !(type & CLIENTWRITE_CONNECT) &&
  ------------------
  |  |   47|  8.43k|#define CLIENTWRITE_CONNECT (1 << 4) /* a CONNECT related HEADER */
  ------------------
  |  Branch (183:6): [True: 8.43k, False: 0]
  ------------------
  184|  8.43k|     (!(type & CLIENTWRITE_INFO) || data->req.upload_done)) {
  ------------------
  |  |   44|  8.43k|#define CLIENTWRITE_INFO    (1 << 1) /* meta information, not a HEADER */
  ------------------
  |  Branch (184:7): [True: 8.43k, False: 0]
  |  Branch (184:37): [True: 0, False: 0]
  ------------------
  185|  8.43k|    Curl_pgrsTime(data, TIMER_STARTTRANSFER);
  186|  8.43k|    ctx->started_response = TRUE;
  ------------------
  |  | 1053|  8.43k|#define TRUE true
  ------------------
  187|  8.43k|  }
  188|       |
  189|  67.7k|  if(!(type & CLIENTWRITE_BODY)) {
  ------------------
  |  |   43|  67.7k|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  |  Branch (189:6): [True: 63.7k, False: 3.99k]
  ------------------
  190|  63.7k|    if(is_connect && data->set.suppress_connect_headers)
  ------------------
  |  Branch (190:8): [True: 0, False: 63.7k]
  |  Branch (190:22): [True: 0, False: 0]
  ------------------
  191|      0|      return CURLE_OK;
  192|  63.7k|    result = Curl_cwriter_write(data, writer->next, type, buf, nbytes);
  ------------------
  |  |  188|  63.7k|  ((w) ? (w)->cwt->do_write((d), (w), (t), (b), (n)) : CURLE_WRITE_ERROR)
  |  |  ------------------
  |  |  |  Branch (188:4): [True: 63.7k, False: 0]
  |  |  ------------------
  ------------------
  193|  63.7k|    CURL_TRC_WRITE(data, "download_write header(type=%x, blen=%zu) -> %d",
  ------------------
  |  |  158|  63.7k|  do {                                                     \
  |  |  159|  63.7k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  329|  63.7k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|   127k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 63.7k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 63.7k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|   127k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  63.7k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|  63.7k|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|  63.7k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 63.7k]
  |  |  ------------------
  ------------------
  194|  63.7k|                   (unsigned int)type, nbytes, (int)result);
  195|  63.7k|    return result;
  196|  63.7k|  }
  197|       |
  198|  3.99k|  if(!ctx->started_body &&
  ------------------
  |  Branch (198:6): [True: 1.33k, False: 2.66k]
  ------------------
  199|  1.33k|     !(type & (CLIENTWRITE_INFO | CLIENTWRITE_CONNECT))) {
  ------------------
  |  |   44|  1.33k|#define CLIENTWRITE_INFO    (1 << 1) /* meta information, not a HEADER */
  ------------------
                   !(type & (CLIENTWRITE_INFO | CLIENTWRITE_CONNECT))) {
  ------------------
  |  |   47|  1.33k|#define CLIENTWRITE_CONNECT (1 << 4) /* a CONNECT related HEADER */
  ------------------
  |  Branch (199:6): [True: 1.33k, False: 0]
  ------------------
  200|  1.33k|    Curl_rlimit_start(&data->progress.dl.rlimit, Curl_pgrs_now(data),
  201|  1.33k|                      data->req.size);
  202|  1.33k|    ctx->started_body = TRUE;
  ------------------
  |  | 1053|  1.33k|#define TRUE true
  ------------------
  203|  1.33k|  }
  204|       |
  205|       |  /* Here, we deal with REAL BODY bytes. All filtering and transfer
  206|       |   * encodings have been applied and only the true content, e.g. BODY,
  207|       |   * bytes are passed here.
  208|       |   * This allows us to check sizes, update stats, etc. independent
  209|       |   * from the protocol in play. */
  210|       |
  211|  3.99k|  if(data->req.no_body && nbytes > 0) {
  ------------------
  |  Branch (211:6): [True: 8, False: 3.98k]
  |  Branch (211:27): [True: 4, False: 4]
  ------------------
  212|       |    /* BODY arrives although we want none, bail out */
  213|      4|    streamclose(data->conn);
  ------------------
  |  |   87|      4|#define streamclose(x) Curl_conncontrol((x), CONNCTRL_STREAM_CLOSE)
  |  |  ------------------
  |  |  |  |   83|      4|#define CONNCTRL_STREAM_CLOSE    2
  |  |  ------------------
  ------------------
  214|      4|    CURL_TRC_WRITE(data, "download_write body(type=%x, blen=%zu), "
  ------------------
  |  |  158|      4|  do {                                                     \
  |  |  159|      4|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  329|      4|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      8|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 4, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 4]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      8|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|      4|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|      4|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|      4|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 4]
  |  |  ------------------
  ------------------
  215|      4|                   "did not want a BODY", (unsigned int)type, nbytes);
  216|      4|    data->req.download_done = TRUE;
  ------------------
  |  | 1053|      4|#define TRUE true
  ------------------
  217|      4|    if(data->info.header_size)
  ------------------
  |  Branch (217:8): [True: 3, False: 1]
  ------------------
  218|       |      /* if headers have been received, this is fine */
  219|      3|      return CURLE_OK;
  220|      1|    return CURLE_WEIRD_SERVER_REPLY;
  221|      4|  }
  222|       |
  223|       |  /* Determine if we see any bytes in excess to what is allowed.
  224|       |   * We write the allowed bytes and handle excess further below.
  225|       |   * This gives deterministic BODY writes on varying buffer receive
  226|       |   * lengths. */
  227|  3.98k|  nwrite = nbytes;
  228|  3.98k|  if(data->req.maxdownload != -1) {
  ------------------
  |  Branch (228:6): [True: 590, False: 3.39k]
  ------------------
  229|    590|    size_t wmax = get_max_body_write_len(data, data->req.maxdownload);
  230|    590|    if(nwrite > wmax) {
  ------------------
  |  Branch (230:8): [True: 92, False: 498]
  ------------------
  231|     92|      excess_len = nbytes - wmax;
  232|     92|      nwrite = wmax;
  233|     92|    }
  234|       |
  235|    590|    if(nwrite == wmax) {
  ------------------
  |  Branch (235:8): [True: 180, False: 410]
  ------------------
  236|    180|      data->req.download_done = TRUE;
  ------------------
  |  | 1053|    180|#define TRUE true
  ------------------
  237|    180|    }
  238|       |
  239|    590|    if((type & CLIENTWRITE_EOS) && !data->req.no_body &&
  ------------------
  |  |   50|    590|#define CLIENTWRITE_EOS     (1 << 7) /* End Of transfer download Stream */
  ------------------
  |  Branch (239:8): [True: 159, False: 431]
  |  Branch (239:36): [True: 157, False: 2]
  ------------------
  240|    157|       (data->req.size > data->req.bytecount)) {
  ------------------
  |  Branch (240:8): [True: 109, False: 48]
  ------------------
  241|    109|      failf(data, "end of response with %" FMT_OFF_T " bytes missing",
  ------------------
  |  |   62|    109|#define failf Curl_failf
  ------------------
  242|    109|            data->req.size - data->req.bytecount);
  243|    109|      return CURLE_PARTIAL_FILE;
  244|    109|    }
  245|    590|  }
  246|       |
  247|       |  /* Error on too large filesize is handled below, after writing
  248|       |   * the permitted bytes */
  249|  3.88k|  if(data->set.max_filesize && !data->req.ignorebody) {
  ------------------
  |  Branch (249:6): [True: 0, False: 3.88k]
  |  Branch (249:32): [True: 0, False: 0]
  ------------------
  250|      0|    size_t wmax = get_max_body_write_len(data, data->set.max_filesize);
  251|      0|    if(nwrite > wmax) {
  ------------------
  |  Branch (251:8): [True: 0, False: 0]
  ------------------
  252|      0|      nwrite = wmax;
  253|      0|    }
  254|      0|  }
  255|       |
  256|  3.88k|  if(!data->req.ignorebody && (nwrite || (type & CLIENTWRITE_EOS))) {
  ------------------
  |  |   50|    659|#define CLIENTWRITE_EOS     (1 << 7) /* End Of transfer download Stream */
  ------------------
  |  Branch (256:6): [True: 3.71k, False: 164]
  |  Branch (256:32): [True: 3.05k, False: 659]
  |  Branch (256:42): [True: 654, False: 5]
  ------------------
  257|  3.71k|    result = Curl_cwriter_write(data, writer->next, type, buf, nwrite);
  ------------------
  |  |  188|  3.71k|  ((w) ? (w)->cwt->do_write((d), (w), (t), (b), (n)) : CURLE_WRITE_ERROR)
  |  |  ------------------
  |  |  |  Branch (188:4): [True: 3.71k, False: 0]
  |  |  ------------------
  ------------------
  258|  3.71k|    CURL_TRC_WRITE(data, "download_write body(type=%x, blen=%zu) -> %d",
  ------------------
  |  |  158|  3.71k|  do {                                                     \
  |  |  159|  3.71k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  329|  3.71k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  7.42k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 3.71k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 3.71k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  7.42k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  3.71k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|  3.71k|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|  3.71k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 3.71k]
  |  |  ------------------
  ------------------
  259|  3.71k|                   (unsigned int)type, nbytes, (int)result);
  260|  3.71k|    if(result)
  ------------------
  |  Branch (260:8): [True: 200, False: 3.51k]
  ------------------
  261|    200|      return result;
  262|  3.71k|  }
  263|       |
  264|       |  /* Update stats, write and report progress */
  265|  3.68k|  if(nwrite) {
  ------------------
  |  Branch (265:6): [True: 2.96k, False: 718]
  ------------------
  266|  2.96k|    data->req.bytecount += nwrite;
  267|  2.96k|    Curl_pgrs_download_inc(data, nwrite);
  268|  2.96k|  }
  269|       |
  270|  3.68k|  if(excess_len) {
  ------------------
  |  Branch (270:6): [True: 92, False: 3.58k]
  ------------------
  271|     92|    if(!data->req.ignorebody) {
  ------------------
  |  Branch (271:8): [True: 7, False: 85]
  ------------------
  272|      7|      infof(data,
  ------------------
  |  |  143|      7|  do {                               \
  |  |  144|      7|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      7|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 7, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 7]
  |  |  |  |  ------------------
  |  |  |  |  323|      7|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      7|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      7|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 7]
  |  |  ------------------
  ------------------
  273|      7|            "Excess found writing body:"
  274|      7|            " excess = %zu"
  275|      7|            ", size = %" FMT_OFF_T
  276|      7|            ", maxdownload = %" FMT_OFF_T
  277|      7|            ", bytecount = %" FMT_OFF_T,
  278|      7|            excess_len, data->req.size, data->req.maxdownload,
  279|      7|            data->req.bytecount);
  280|      7|      connclose(data->conn);
  ------------------
  |  |   88|      7|#define connclose(x)   Curl_conncontrol((x), CONNCTRL_CONN_CLOSE)
  |  |  ------------------
  |  |  |  |   82|      7|#define CONNCTRL_CONN_CLOSE      1
  |  |  ------------------
  ------------------
  281|      7|    }
  282|     92|  }
  283|  3.58k|  else if((nwrite < nbytes) && !data->req.ignorebody) {
  ------------------
  |  Branch (283:11): [True: 0, False: 3.58k]
  |  Branch (283:32): [True: 0, False: 0]
  ------------------
  284|      0|    failf(data, "Exceeded the maximum allowed file size "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  285|      0|          "(%" FMT_OFF_T ") with %" FMT_OFF_T " bytes",
  286|      0|          data->set.max_filesize, data->req.bytecount);
  287|      0|    return CURLE_FILESIZE_EXCEEDED;
  288|      0|  }
  289|       |
  290|  3.68k|  return CURLE_OK;
  291|  3.68k|}
sendf.c:get_max_body_write_len:
  157|    590|{
  158|    590|  if(limit != -1) {
  ------------------
  |  Branch (158:6): [True: 590, False: 0]
  ------------------
  159|       |    /* How much more are we allowed to write? */
  160|    590|    return curlx_sotouz_range(limit - data->req.bytecount, 0, SIZE_MAX);
  161|    590|  }
  162|      0|  return SIZE_MAX;
  163|    590|}
sendf.c:cw_raw_write:
  309|  68.6k|{
  310|  68.6k|  if(type & CLIENTWRITE_BODY && data->set.verbose && !data->req.ignorebody) {
  ------------------
  |  |   43|   137k|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  |  Branch (310:6): [True: 4.49k, False: 64.1k]
  |  Branch (310:33): [True: 0, False: 4.49k]
  |  Branch (310:54): [True: 0, False: 0]
  ------------------
  311|      0|    Curl_debug(data, CURLINFO_DATA_IN, buf, nbytes);
  312|      0|  }
  313|  68.6k|  return Curl_cwriter_write(data, writer->next, type, buf, nbytes);
  ------------------
  |  |  188|  68.6k|  ((w) ? (w)->cwt->do_write((d), (w), (t), (b), (n)) : CURLE_WRITE_ERROR)
  |  |  ------------------
  |  |  |  Branch (188:4): [True: 68.6k, False: 0]
  |  |  ------------------
  ------------------
  314|  68.6k|}
sendf.c:cwriter_add:
  329|  44.7k|{
  330|  44.7k|  struct Curl_cwriter **anchor = &data->req.writer.stack;
  331|       |
  332|       |  /* Insert the writer as first in its phase.
  333|       |   * Skip existing writers of lower phases. */
  334|  64.3k|  while(*anchor && (*anchor)->phase < writer->phase)
  ------------------
  |  Branch (334:9): [True: 64.3k, False: 0]
  |  Branch (334:20): [True: 19.6k, False: 44.7k]
  ------------------
  335|  19.6k|    anchor = &((*anchor)->next);
  336|  44.7k|  writer->next = *anchor;
  337|  44.7k|  *anchor = writer;
  338|  44.7k|}
sendf.c:cr_in_init:
  645|    890|{
  646|    890|  struct cr_in_ctx *ctx = reader->ctx;
  647|    890|  ctx->read_cb = data->state.fread_func;
  648|    890|  ctx->cb_user_data = data->state.in;
  649|    890|  ctx->total_len = -1;
  650|    890|  ctx->read_len = 0;
  651|    890|  return CURLE_OK;
  652|    890|}
sendf.c:cr_in_read:
  659|  1.16k|{
  660|  1.16k|  struct cr_in_ctx *ctx = reader->ctx;
  661|  1.16k|  CURLcode result = CURLE_OK;
  662|  1.16k|  size_t nread;
  663|       |
  664|  1.16k|  ctx->is_paused = FALSE;
  ------------------
  |  | 1056|  1.16k|#define FALSE false
  ------------------
  665|       |
  666|       |  /* Once we have errored, we will return the same error forever */
  667|  1.16k|  if(ctx->errored) {
  ------------------
  |  Branch (667:6): [True: 0, False: 1.16k]
  ------------------
  668|      0|    *pnread = 0;
  669|      0|    *peos = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  670|      0|    return ctx->error_result;
  671|      0|  }
  672|  1.16k|  if(ctx->seen_eos) {
  ------------------
  |  Branch (672:6): [True: 0, False: 1.16k]
  ------------------
  673|      0|    *pnread = 0;
  674|      0|    *peos = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  675|      0|    return CURLE_OK;
  676|      0|  }
  677|       |  /* respect length limitations */
  678|  1.16k|  if(ctx->total_len >= 0) {
  ------------------
  |  Branch (678:6): [True: 241, False: 920]
  ------------------
  679|    241|    blen = curlx_sotouz_range(ctx->total_len - ctx->read_len, 0, blen);
  680|    241|  }
  681|  1.16k|  nread = 0;
  682|  1.16k|  if(ctx->read_cb && blen) {
  ------------------
  |  Branch (682:6): [True: 1.16k, False: 0]
  |  Branch (682:22): [True: 1.16k, False: 0]
  ------------------
  683|  1.16k|    struct Curl_mapi_guard guard;
  684|  1.16k|    CURL_CBAPI_START(&guard, data, easy_cr_in_read);
  ------------------
  |  |  200|  1.16k|  Curl_cbapi_enter((g), (d), NULL, CURL_CBAPI_FN_##fn)
  ------------------
  685|  1.16k|    nread = ctx->read_cb(buf, 1, blen, ctx->cb_user_data);
  686|  1.16k|    CURL_CBAPI_END(&guard);
  ------------------
  |  |  204|  1.16k|  Curl_cbapi_leave(g)
  ------------------
  687|  1.16k|    ctx->has_used_cb = TRUE;
  ------------------
  |  | 1053|  1.16k|#define TRUE true
  ------------------
  688|  1.16k|  }
  689|       |
  690|  1.16k|  switch(nread) {
  691|    476|  case 0:
  ------------------
  |  Branch (691:3): [True: 476, False: 685]
  ------------------
  692|    476|    if((ctx->total_len >= 0) && (ctx->read_len < ctx->total_len)) {
  ------------------
  |  Branch (692:8): [True: 66, False: 410]
  |  Branch (692:33): [True: 66, False: 0]
  ------------------
  693|     66|      failf(data, "client read function EOF fail, "
  ------------------
  |  |   62|     66|#define failf Curl_failf
  ------------------
  694|     66|            "only %" FMT_OFF_T "/%" FMT_OFF_T " of needed bytes read",
  695|     66|            ctx->read_len, ctx->total_len);
  696|     66|      result = CURLE_READ_ERROR;
  697|     66|      break;
  698|     66|    }
  699|    410|    *pnread = 0;
  700|    410|    *peos = TRUE;
  ------------------
  |  | 1053|    410|#define TRUE true
  ------------------
  701|    410|    ctx->seen_eos = TRUE;
  ------------------
  |  | 1053|    410|#define TRUE true
  ------------------
  702|    410|    break;
  703|       |
  704|      0|  case CURL_READFUNC_ABORT:
  ------------------
  |  |  390|      0|#define CURL_READFUNC_ABORT 0x10000000
  ------------------
  |  Branch (704:3): [True: 0, False: 1.16k]
  ------------------
  705|      0|    failf(data, "operation aborted by callback");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  706|      0|    *pnread = 0;
  707|      0|    *peos = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  708|      0|    ctx->errored = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  709|      0|    ctx->error_result = CURLE_ABORTED_BY_CALLBACK;
  710|      0|    result = CURLE_ABORTED_BY_CALLBACK;
  711|      0|    break;
  712|       |
  713|      0|  case CURL_READFUNC_PAUSE:
  ------------------
  |  |  393|      0|#define CURL_READFUNC_PAUSE 0x10000001
  ------------------
  |  Branch (713:3): [True: 0, False: 1.16k]
  ------------------
  714|      0|    if(data->conn->scheme->flags & PROTOPT_NONETWORK) {
  ------------------
  |  |  214|      0|#define PROTOPT_NONETWORK (1 << 4) /* protocol does not use the network! */
  ------------------
  |  Branch (714:8): [True: 0, False: 0]
  ------------------
  715|       |      /* protocols that work without network cannot be paused. This is
  716|       |         actually only file:// now, and it cannot pause since the transfer
  717|       |         is not done using the "normal" procedure. */
  718|      0|      failf(data, "Read callback asked for PAUSE when not supported");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  719|      0|      result = CURLE_READ_ERROR;
  720|      0|      break;
  721|      0|    }
  722|       |    /* CURL_READFUNC_PAUSE pauses read callbacks that feed socket writes */
  723|      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)) \
  |  |  ------------------
  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|      0|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  724|      0|    ctx->is_paused = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  725|      0|    *pnread = 0;
  726|      0|    *peos = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  727|      0|    result = Curl_xfer_pause_send(data, TRUE);
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  728|      0|    break; /* nothing was read */
  729|       |
  730|    685|  default:
  ------------------
  |  Branch (730:3): [True: 685, False: 476]
  ------------------
  731|    685|    if(nread > blen) {
  ------------------
  |  Branch (731:8): [True: 0, False: 685]
  ------------------
  732|       |      /* the read function returned a too large value */
  733|      0|      failf(data, "read function returned funny value");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  734|      0|      *pnread = 0;
  735|      0|      *peos = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  736|      0|      ctx->errored = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  737|      0|      ctx->error_result = CURLE_READ_ERROR;
  738|      0|      result = CURLE_READ_ERROR;
  739|      0|      break;
  740|      0|    }
  741|    685|    ctx->read_len += nread;
  742|    685|    if(ctx->total_len >= 0)
  ------------------
  |  Branch (742:8): [True: 175, False: 510]
  ------------------
  743|    175|      ctx->seen_eos = (ctx->read_len >= ctx->total_len);
  744|    685|    *pnread = nread;
  745|    685|    *peos = (bool)ctx->seen_eos;
  746|    685|    break;
  747|  1.16k|  }
  748|  1.16k|  CURL_TRC_READ(data, "cr_in_read(len=%zu, total=%" FMT_OFF_T
  ------------------
  |  |  163|  1.16k|  do {                                                    \
  |  |  164|  1.16k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  329|  1.16k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  2.32k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 1.16k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 1.16k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  2.32k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  1.16k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|  1.16k|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|  1.16k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 1.16k]
  |  |  ------------------
  ------------------
  749|  1.16k|                ", read=%" FMT_OFF_T ") -> %d, nread=%zu, eos=%d",
  750|  1.16k|                blen, ctx->total_len, ctx->read_len, (int)result,
  751|  1.16k|                *pnread, *peos);
  752|  1.16k|  return result;
  753|  1.16k|}
sendf.c:cr_in_needs_rewind:
  757|     65|{
  758|     65|  struct cr_in_ctx *ctx = reader->ctx;
  759|     65|  (void)data;
  760|     65|  return (bool)ctx->has_used_cb;
  761|     65|}
sendf.c:cr_in_total_length:
  765|  3.33k|{
  766|  3.33k|  struct cr_in_ctx *ctx = reader->ctx;
  767|  3.33k|  (void)data;
  768|  3.33k|  return ctx->total_len;
  769|  3.33k|}
sendf.c:cr_in_cntrl:
  902|     24|{
  903|     24|  struct cr_in_ctx *ctx = reader->ctx;
  904|       |
  905|     24|  switch(opcode) {
  906|     24|  case CURL_CRCNTRL_REWIND:
  ------------------
  |  Branch (906:3): [True: 24, False: 0]
  ------------------
  907|     24|    return cr_in_rewind(data, reader);
  908|      0|  case CURL_CRCNTRL_UNPAUSE:
  ------------------
  |  Branch (908:3): [True: 0, False: 24]
  ------------------
  909|      0|    ctx->is_paused = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  910|      0|    break;
  911|      0|  case CURL_CRCNTRL_CLEAR_EOS:
  ------------------
  |  Branch (911:3): [True: 0, False: 24]
  ------------------
  912|      0|    ctx->seen_eos = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  913|      0|    break;
  914|      0|  default:
  ------------------
  |  Branch (914:3): [True: 0, False: 24]
  ------------------
  915|      0|    break;
  916|     24|  }
  917|      0|  return CURLE_OK;
  918|     24|}
sendf.c:cr_in_rewind:
  838|     24|{
  839|     24|  struct cr_in_ctx *ctx = reader->ctx;
  840|       |
  841|       |  /* If we never invoked the callback, there is noting to rewind */
  842|     24|  if(!ctx->has_used_cb)
  ------------------
  |  Branch (842:6): [True: 0, False: 24]
  ------------------
  843|      0|    return CURLE_OK;
  844|       |
  845|     24|  if(data->set.seek_func) {
  ------------------
  |  Branch (845:6): [True: 0, False: 24]
  ------------------
  846|      0|    struct Curl_mapi_guard guard;
  847|      0|    int err;
  848|       |
  849|      0|    CURL_CBAPI_START(&guard, data, easy_seek_func);
  ------------------
  |  |  200|      0|  Curl_cbapi_enter((g), (d), NULL, CURL_CBAPI_FN_##fn)
  ------------------
  850|      0|    err = (data->set.seek_func)(data->set.seek_client, 0, SEEK_SET);
  851|      0|    CURL_CBAPI_END(&guard);
  ------------------
  |  |  204|      0|  Curl_cbapi_leave(g)
  ------------------
  852|      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)) \
  |  |  ------------------
  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|      0|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  853|      0|    if(err) {
  ------------------
  |  Branch (853:8): [True: 0, False: 0]
  ------------------
  854|      0|      failf(data, "seek callback returned error %d", err);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  855|      0|      return CURLE_SEND_FAIL_REWIND;
  856|      0|    }
  857|      0|  }
  858|     24|  else if(data->set.ioctl_func) {
  ------------------
  |  Branch (858:11): [True: 0, False: 24]
  ------------------
  859|      0|    struct Curl_mapi_guard guard;
  860|      0|    curlioerr err;
  861|       |
  862|      0|    CURL_CBAPI_START(&guard, data, easy_ioctl_func);
  ------------------
  |  |  200|      0|  Curl_cbapi_enter((g), (d), NULL, CURL_CBAPI_FN_##fn)
  ------------------
  863|      0|    err = (data->set.ioctl_func)(data, CURLIOCMD_RESTARTREAD,
  864|      0|                                 data->set.ioctl_client);
  865|      0|    CURL_CBAPI_END(&guard);
  ------------------
  |  |  204|      0|  Curl_cbapi_leave(g)
  ------------------
  866|      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)) \
  |  |  ------------------
  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|      0|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  867|      0|    if(err) {
  ------------------
  |  Branch (867:8): [True: 0, False: 0]
  ------------------
  868|      0|      failf(data, "ioctl callback returned error %d", (int)err);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  869|      0|      return CURLE_SEND_FAIL_REWIND;
  870|      0|    }
  871|      0|  }
  872|     24|  else {
  873|       |    /* If no CURLOPT_READFUNCTION is used, we know that we operate on a
  874|       |       given FILE * stream and we can actually attempt to rewind that
  875|       |       ourselves with fseek() */
  876|     24|#if defined(__clang__) && __clang_major__ >= 16
  877|     24|#pragma clang diagnostic push
  878|     24|#pragma clang diagnostic ignored "-Wcast-function-type-strict"
  879|     24|#endif
  880|     24|    if(data->state.fread_func == (curl_read_callback)fread) {
  ------------------
  |  Branch (880:8): [True: 0, False: 24]
  ------------------
  881|      0|#if defined(__clang__) && __clang_major__ >= 16
  882|      0|#pragma clang diagnostic pop
  883|      0|#endif
  884|      0|      int err = fseek(data->state.in, 0, SEEK_SET);
  885|      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)) \
  |  |  ------------------
  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|      0|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  886|      0|                    (int)err, (int)errno);
  887|      0|      if(err != -1)
  ------------------
  |  Branch (887:10): [True: 0, False: 0]
  ------------------
  888|       |        /* successful rewind */
  889|      0|        return CURLE_OK;
  890|      0|    }
  891|       |
  892|       |    /* no callback set or failure above, makes us fail at once */
  893|     24|    failf(data, "necessary data rewind was not possible");
  ------------------
  |  |   62|     24|#define failf Curl_failf
  ------------------
  894|     24|    return CURLE_SEND_FAIL_REWIND;
  895|     24|  }
  896|      0|  return CURLE_OK;
  897|     24|}
sendf.c:do_init_reader_stack:
 1120|  13.1k|{
 1121|  13.1k|  CURLcode result = CURLE_OK;
 1122|  13.1k|  curl_off_t clen;
 1123|       |
 1124|  13.1k|  DEBUGASSERT(r);
  ------------------
  |  | 1083|  13.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1124:3): [True: 0, False: 13.1k]
  |  Branch (1124:3): [True: 13.1k, False: 0]
  ------------------
 1125|  13.1k|  DEBUGASSERT(r->crt);
  ------------------
  |  | 1083|  13.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1125:3): [True: 0, False: 13.1k]
  |  Branch (1125:3): [True: 13.1k, False: 0]
  ------------------
 1126|  13.1k|  DEBUGASSERT(r->phase == CURL_CR_CLIENT);
  ------------------
  |  | 1083|  13.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1126:3): [True: 0, False: 13.1k]
  |  Branch (1126:3): [True: 13.1k, False: 0]
  ------------------
 1127|  13.1k|  DEBUGASSERT(!data->req.reader.stack);
  ------------------
  |  | 1083|  13.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1127:3): [True: 0, False: 13.1k]
  |  Branch (1127:3): [True: 13.1k, False: 0]
  ------------------
 1128|       |
 1129|  13.1k|  data->req.reader.stack = r;
 1130|  13.1k|  clen = r->crt->total_length(data, r);
 1131|       |  /* if we do not have 0 length init, and CRLF conversion is wanted,
 1132|       |   * add the reader for it */
 1133|  13.1k|  if(clen && (data->set.crlf
  ------------------
  |  Branch (1133:6): [True: 1.12k, False: 12.0k]
  |  Branch (1133:15): [True: 0, False: 1.12k]
  ------------------
 1134|  1.12k|#ifdef CURL_PREFER_LF_LINEENDS
 1135|  1.12k|     || data->state.prefer_ascii
  ------------------
  |  Branch (1135:9): [True: 0, False: 1.12k]
  ------------------
 1136|  1.12k|#endif
 1137|  1.12k|    )) {
 1138|      0|    result = cr_lc_add(data);
 1139|      0|    if(result)
  ------------------
  |  Branch (1139:8): [True: 0, False: 0]
  ------------------
 1140|      0|      return result;
 1141|      0|  }
 1142|       |
 1143|  13.1k|  return result;
 1144|  13.1k|}
sendf.c:cr_null_read:
 1260|     13|{
 1261|     13|  (void)data;
 1262|     13|  (void)reader;
 1263|     13|  (void)buf;
 1264|     13|  (void)blen;
 1265|     13|  *pnread = 0;
 1266|       |  *peos = TRUE;
  ------------------
  |  | 1053|     13|#define TRUE true
  ------------------
 1267|     13|  return CURLE_OK;
 1268|     13|}
sendf.c:cr_null_total_length:
 1272|  52.5k|{
 1273|       |  /* this reader changes length depending on input */
 1274|  52.5k|  (void)data;
 1275|  52.5k|  (void)reader;
 1276|  52.5k|  return 0;
 1277|  52.5k|}
sendf.c:cr_buf_read:
 1317|    230|{
 1318|    230|  struct cr_buf_ctx *ctx = reader->ctx;
 1319|    230|  size_t nread = ctx->blen - ctx->index;
 1320|       |
 1321|    230|  if(!nread || !ctx->buf) {
  ------------------
  |  Branch (1321:6): [True: 0, False: 230]
  |  Branch (1321:16): [True: 0, False: 230]
  ------------------
 1322|      0|    *pnread = 0;
 1323|      0|    *peos = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1324|      0|  }
 1325|    230|  else {
 1326|    230|    if(nread > blen)
  ------------------
  |  Branch (1326:8): [True: 3, False: 227]
  ------------------
 1327|      3|      nread = blen;
 1328|    230|    memcpy(buf, ctx->buf + ctx->index, nread);
 1329|    230|    *pnread = nread;
 1330|    230|    ctx->index += nread;
 1331|    230|    *peos = (ctx->index == ctx->blen);
 1332|    230|  }
 1333|    230|  CURL_TRC_READ(data, "cr_buf_read(len=%zu) -> 0, nread=%zu, eos=%d",
  ------------------
  |  |  163|    230|  do {                                                    \
  |  |  164|    230|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  329|    230|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    460|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 230, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 230]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    460|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    230|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|    230|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|    230|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 230]
  |  |  ------------------
  ------------------
 1334|    230|                blen, *pnread, *peos);
 1335|    230|  return CURLE_OK;
 1336|    230|}
sendf.c:cr_buf_needs_rewind:
 1340|    153|{
 1341|    153|  struct cr_buf_ctx *ctx = reader->ctx;
 1342|    153|  (void)data;
 1343|    153|  return ctx->index > 0;
 1344|    153|}
sendf.c:cr_buf_total_length:
 1364|  1.27k|{
 1365|  1.27k|  struct cr_buf_ctx *ctx = reader->ctx;
 1366|  1.27k|  (void)data;
 1367|  1.27k|  return (curl_off_t)ctx->blen;
 1368|  1.27k|}
sendf.c:cr_buf_cntrl:
 1349|    165|{
 1350|    165|  struct cr_buf_ctx *ctx = reader->ctx;
 1351|    165|  (void)data;
 1352|    165|  switch(opcode) {
 1353|    165|  case CURL_CRCNTRL_REWIND:
  ------------------
  |  Branch (1353:3): [True: 165, False: 0]
  ------------------
 1354|    165|    ctx->index = 0;
 1355|    165|    break;
 1356|      0|  default:
  ------------------
  |  Branch (1356:3): [True: 0, False: 165]
  ------------------
 1357|      0|    break;
 1358|    165|  }
 1359|    165|  return CURLE_OK;
 1360|    165|}

Curl_setstropt:
   82|  99.8k|{
   83|       |  /* Release the previous storage at `charp' and replace by a dynamic storage
   84|       |     copy of `s'. Return CURLE_OK or CURLE_OUT_OF_MEMORY. */
   85|       |
   86|  99.8k|  curlx_safefree(*charp);
  ------------------
  |  | 1340|  99.8k|  do {                      \
  |  | 1341|  99.8k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  99.8k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  99.8k|    (ptr) = NULL;           \
  |  | 1343|  99.8k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 99.8k]
  |  |  ------------------
  ------------------
   87|       |
   88|  99.8k|  if(s) {
  ------------------
  |  Branch (88:6): [True: 99.8k, False: 0]
  ------------------
   89|  99.8k|    if(strlen(s) > CURL_MAX_INPUT_LENGTH)
  ------------------
  |  |   45|  99.8k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
  |  Branch (89:8): [True: 0, False: 99.8k]
  ------------------
   90|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
   91|       |
   92|  99.8k|    *charp = curlx_strdup(s);
  ------------------
  |  | 1476|  99.8k|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
   93|  99.8k|    if(!*charp)
  ------------------
  |  Branch (93:8): [True: 0, False: 99.8k]
  ------------------
   94|      0|      return CURLE_OUT_OF_MEMORY;
   95|  99.8k|  }
   96|       |
   97|  99.8k|  return CURLE_OK;
   98|  99.8k|}
Curl_setopt_SSLVERSION:
  317|  39.9k|{
  318|       |  /*
  319|       |   * Set explicit SSL version to try to connect with, as some SSL
  320|       |   * implementations are lame.
  321|       |   */
  322|  39.9k|  {
  323|  39.9k|    long version, version_max;
  324|  39.9k|    struct ssl_primary_config *primary = &data->set.ssl.primary;
  325|  39.9k|#ifndef CURL_DISABLE_PROXY
  326|  39.9k|    if(option != CURLOPT_SSLVERSION)
  ------------------
  |  Branch (326:8): [True: 19.9k, False: 19.9k]
  ------------------
  327|  19.9k|      primary = &data->set.proxy_ssl.primary;
  328|       |#else
  329|       |    (void)option; /* unused */
  330|       |#endif
  331|  39.9k|    version = C_SSLVERSION_VALUE(arg);
  ------------------
  |  |  194|  39.9k|#define C_SSLVERSION_VALUE(x)     ((x) & 0xffff)
  ------------------
  332|  39.9k|    version_max = (long)C_SSLVERSION_MAX_VALUE(arg);
  ------------------
  |  |  195|  39.9k|#define C_SSLVERSION_MAX_VALUE(x) ((unsigned long)(x) & 0xffff0000)
  ------------------
  333|       |
  334|  39.9k|    if(version < CURL_SSLVERSION_DEFAULT ||
  ------------------
  |  | 2392|  79.8k|#define CURL_SSLVERSION_DEFAULT 0L
  ------------------
  |  Branch (334:8): [True: 0, False: 39.9k]
  ------------------
  335|  39.9k|       version == CURL_SSLVERSION_SSLv2 ||
  ------------------
  |  | 2394|  79.8k|#define CURL_SSLVERSION_SSLv2   2L
  ------------------
  |  Branch (335:8): [True: 0, False: 39.9k]
  ------------------
  336|  39.9k|       version == CURL_SSLVERSION_SSLv3 ||
  ------------------
  |  | 2395|  79.8k|#define CURL_SSLVERSION_SSLv3   3L
  ------------------
  |  Branch (336:8): [True: 0, False: 39.9k]
  ------------------
  337|  39.9k|       version >= CURL_SSLVERSION_LAST ||
  ------------------
  |  | 2401|  79.8k|#define CURL_SSLVERSION_LAST    8L /* never use, keep last */
  ------------------
  |  Branch (337:8): [True: 0, False: 39.9k]
  ------------------
  338|  39.9k|       version_max < CURL_SSLVERSION_MAX_NONE ||
  ------------------
  |  | 2403|  79.8k|#define CURL_SSLVERSION_MAX_NONE 0L
  ------------------
  |  Branch (338:8): [True: 0, False: 39.9k]
  ------------------
  339|  39.9k|       version_max >= CURL_SSLVERSION_MAX_LAST)
  ------------------
  |  | 2411|  39.9k|#define CURL_SSLVERSION_MAX_LAST    (CURL_SSLVERSION_LAST    << 16)
  |  |  ------------------
  |  |  |  | 2401|  39.9k|#define CURL_SSLVERSION_LAST    8L /* never use, keep last */
  |  |  ------------------
  ------------------
  |  Branch (339:8): [True: 0, False: 39.9k]
  ------------------
  340|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
  341|  39.9k|    if(version == CURL_SSLVERSION_DEFAULT)
  ------------------
  |  | 2392|  39.9k|#define CURL_SSLVERSION_DEFAULT 0L
  ------------------
  |  Branch (341:8): [True: 39.9k, False: 0]
  ------------------
  342|  39.9k|      version = CURL_SSLVERSION_TLSv1_2;
  ------------------
  |  | 2398|  39.9k|#define CURL_SSLVERSION_TLSv1_2 6L
  ------------------
  343|       |
  344|  39.9k|    primary->version = (unsigned char)version;
  345|  39.9k|    primary->version_max = (unsigned int)version_max;
  346|  39.9k|  }
  347|      0|  return CURLE_OK;
  348|  39.9k|}
Curl_vsetopt:
 2867|   247k|{
 2868|   247k|  if(option < CURLOPTTYPE_OBJECTPOINT)
  ------------------
  |  | 1122|   247k|#define CURLOPTTYPE_OBJECTPOINT   10000
  ------------------
  |  Branch (2868:6): [True: 57.2k, False: 190k]
  ------------------
 2869|  57.2k|    return setopt_long(data, option, va_arg(param, long));
 2870|   190k|  else if(option < CURLOPTTYPE_FUNCTIONPOINT) {
  ------------------
  |  | 1123|   190k|#define CURLOPTTYPE_FUNCTIONPOINT 20000
  ------------------
  |  Branch (2870:11): [True: 121k, False: 68.8k]
  ------------------
 2871|       |    /* unfortunately, different pointer types cannot be identified any other
 2872|       |       way than being listed explicitly */
 2873|   121k|    switch(option) {
 2874|      0|    case CURLOPT_HTTPHEADER:
  ------------------
  |  Branch (2874:5): [True: 0, False: 121k]
  ------------------
 2875|      0|    case CURLOPT_QUOTE:
  ------------------
  |  Branch (2875:5): [True: 0, False: 121k]
  ------------------
 2876|      0|    case CURLOPT_POSTQUOTE:
  ------------------
  |  Branch (2876:5): [True: 0, False: 121k]
  ------------------
 2877|      0|    case CURLOPT_TELNETOPTIONS:
  ------------------
  |  Branch (2877:5): [True: 0, False: 121k]
  ------------------
 2878|      0|    case CURLOPT_PREQUOTE:
  ------------------
  |  Branch (2878:5): [True: 0, False: 121k]
  ------------------
 2879|      0|    case CURLOPT_HTTP200ALIASES:
  ------------------
  |  Branch (2879:5): [True: 0, False: 121k]
  ------------------
 2880|      0|    case CURLOPT_MAIL_RCPT:
  ------------------
  |  Branch (2880:5): [True: 0, False: 121k]
  ------------------
 2881|      0|    case CURLOPT_RESOLVE:
  ------------------
  |  Branch (2881:5): [True: 0, False: 121k]
  ------------------
 2882|      0|    case CURLOPT_PROXYHEADER:
  ------------------
  |  Branch (2882:5): [True: 0, False: 121k]
  ------------------
 2883|  9.97k|    case CURLOPT_CONNECT_TO:
  ------------------
  |  Branch (2883:5): [True: 9.97k, False: 111k]
  ------------------
 2884|  9.97k|      return setopt_slist(data, option, va_arg(param, struct curl_slist *));
 2885|      0|    case CURLOPT_HTTPPOST:         /* curl_httppost * */
  ------------------
  |  Branch (2885:5): [True: 0, False: 121k]
  ------------------
 2886|      0|    case CURLOPT_MIMEPOST:         /* curl_mime * */
  ------------------
  |  Branch (2886:5): [True: 0, False: 121k]
  ------------------
 2887|      0|    case CURLOPT_STDERR:           /* FILE * */
  ------------------
  |  Branch (2887:5): [True: 0, False: 121k]
  ------------------
 2888|      0|    case CURLOPT_SHARE:            /* CURLSH * */
  ------------------
  |  Branch (2888:5): [True: 0, False: 121k]
  ------------------
 2889|      0|    case CURLOPT_CURLU:            /* CURLU * */
  ------------------
  |  Branch (2889:5): [True: 0, False: 121k]
  ------------------
 2890|      0|      return setopt_pointers(data, option, param);
 2891|      0|    case CURLOPT_STREAM_DEPENDS:   /* CURL * */
  ------------------
  |  Branch (2891:5): [True: 0, False: 121k]
  ------------------
 2892|      0|    case CURLOPT_STREAM_DEPENDS_E: /* CURL * */
  ------------------
  |  Branch (2892:5): [True: 0, False: 121k]
  ------------------
 2893|      0|      return CURLE_OK;
 2894|   111k|    default:
  ------------------
  |  Branch (2894:5): [True: 111k, False: 9.97k]
  ------------------
 2895|   111k|      break;
 2896|   121k|    }
 2897|       |    /* the char pointer options */
 2898|   111k|    return setopt_cptr(data, option, va_arg(param, char *));
 2899|   121k|  }
 2900|  68.8k|  else if(option < CURLOPTTYPE_OFF_T)
  ------------------
  |  | 1124|  68.8k|#define CURLOPTTYPE_OFF_T         30000
  ------------------
  |  Branch (2900:11): [True: 54.4k, False: 14.3k]
  ------------------
 2901|  54.4k|    return setopt_func(data, option, param);
 2902|  14.3k|  else if(option < CURLOPTTYPE_BLOB)
  ------------------
  |  | 1125|  14.3k|#define CURLOPTTYPE_BLOB          40000
  ------------------
  |  Branch (2902:11): [True: 14.3k, False: 0]
  ------------------
 2903|  14.3k|    return setopt_offt(data, option, va_arg(param, curl_off_t));
 2904|      0|  return setopt_blob(data, option, va_arg(param, struct curl_blob *));
 2905|   247k|}
curl_easy_setopt:
 2916|   247k|{
 2917|   247k|  struct Curl_eapi_guard guard;
 2918|   247k|  CURLcode result;
 2919|       |
 2920|   247k|  if(CURL_EAPI_ENTER(&guard, curl, easy_setopt, &result)) {
  ------------------
  |  |  162|   247k|  Curl_eapi_enter((g), (curl), CURL_EAPI_FN_##fn, (r)) && (curl)
  |  |  ------------------
  |  |  |  Branch (162:3): [True: 247k, False: 0]
  |  |  |  Branch (162:59): [True: 247k, False: 0]
  |  |  ------------------
  ------------------
 2921|   247k|    struct Curl_easy *data = curl;
 2922|   247k|    va_list arg;
 2923|       |
 2924|   247k|    va_start(arg, option);
 2925|       |
 2926|   247k|    result = Curl_vsetopt(data, option, arg);
 2927|       |
 2928|   247k|    va_end(arg);
 2929|   247k|    if(result == CURLE_BAD_FUNCTION_ARGUMENT)
  ------------------
  |  Branch (2929:8): [True: 675, False: 247k]
  ------------------
 2930|    675|      failf(data, "setopt 0x%x got bad argument", (unsigned int)option);
  ------------------
  |  |   62|    675|#define failf Curl_failf
  ------------------
 2931|   247k|  }
 2932|   247k|  CURL_EAPI_LEAVE(&guard);
  ------------------
  |  |  164|   247k|  Curl_eapi_leave(g)
  ------------------
 2933|   247k|  return result;
 2934|   247k|}
setopt.c:setopt_long:
 1278|  57.2k|{
 1279|  57.2k|  typedef CURLcode (*setoptfunc)(struct Curl_easy *data,
 1280|  57.2k|                                 CURLoption option, long arg);
 1281|  57.2k|  static const setoptfunc setopt_call[] = {
 1282|  57.2k|    setopt_long_bool,
 1283|  57.2k|    setopt_long_net,
 1284|  57.2k|    setopt_long_http,
 1285|  57.2k|    setopt_long_proxy,
 1286|  57.2k|    setopt_long_ssl,
 1287|  57.2k|    setopt_long_proto,
 1288|  57.2k|    setopt_long_misc
 1289|  57.2k|  };
 1290|  57.2k|  size_t i;
 1291|       |
 1292|   114k|  for(i = 0; i < CURL_ARRAYSIZE(setopt_call); i++) {
  ------------------
  |  | 1307|   114k|#define CURL_ARRAYSIZE(A) (sizeof(A) / sizeof((A)[0]))
  ------------------
  |  Branch (1292:14): [True: 114k, False: 0]
  ------------------
 1293|   114k|    CURLcode result = setopt_call[i](data, option, arg);
 1294|   114k|    if(result != CURLE_UNKNOWN_OPTION)
  ------------------
  |  Branch (1294:8): [True: 57.2k, False: 56.8k]
  ------------------
 1295|  57.2k|      return result;
 1296|   114k|  }
 1297|      0|  return CURLE_UNKNOWN_OPTION;
 1298|  57.2k|}
setopt.c:setopt_long_bool:
  368|  57.2k|{
  369|  57.2k|  bool enabled = !!arg;
  370|  57.2k|  int ok = 1;
  371|  57.2k|  struct UserDefined *s = &data->set;
  372|  57.2k|  switch(option) {
  373|      0|  case CURLOPT_FORBID_REUSE:
  ------------------
  |  Branch (373:3): [True: 0, False: 57.2k]
  ------------------
  374|       |    /*
  375|       |     * When this transfer is done, it must not be left to be reused by a
  376|       |     * subsequent transfer but shall be closed immediately.
  377|       |     */
  378|      0|    s->reuse_forbid = enabled;
  379|      0|    break;
  380|      0|  case CURLOPT_FRESH_CONNECT:
  ------------------
  |  Branch (380:3): [True: 0, False: 57.2k]
  ------------------
  381|       |    /*
  382|       |     * This transfer shall not use a previously cached connection but
  383|       |     * should be made with a fresh new connect!
  384|       |     */
  385|      0|    s->reuse_fresh = enabled;
  386|      0|    break;
  387|      0|  case CURLOPT_VERBOSE:
  ------------------
  |  Branch (387:3): [True: 0, False: 57.2k]
  ------------------
  388|       |    /*
  389|       |     * Verbose means infof() calls that give a lot of information about
  390|       |     * the connection and transfer procedures as well as internal choices.
  391|       |     */
  392|      0|    s->verbose = enabled;
  393|      0|    break;
  394|    765|  case CURLOPT_HEADER:
  ------------------
  |  Branch (394:3): [True: 765, False: 56.5k]
  ------------------
  395|       |    /*
  396|       |     * Set to include the header in the general data output stream.
  397|       |     */
  398|    765|    s->include_header = enabled;
  399|    765|    break;
  400|      0|  case CURLOPT_NOPROGRESS:
  ------------------
  |  Branch (400:3): [True: 0, False: 57.2k]
  ------------------
  401|       |    /*
  402|       |     * Shut off the internal supported progress meter
  403|       |     */
  404|      0|    data->progress.hide = enabled;
  405|      0|    break;
  406|  9.03k|  case CURLOPT_NOBODY:
  ------------------
  |  Branch (406:3): [True: 9.03k, False: 48.2k]
  ------------------
  407|       |    /*
  408|       |     * Do not include the body part in the output data stream.
  409|       |     */
  410|  9.03k|    s->opt_no_body = enabled;
  411|  9.03k|#ifndef CURL_DISABLE_HTTP
  412|  9.03k|    if(s->opt_no_body)
  ------------------
  |  Branch (412:8): [True: 291, False: 8.74k]
  ------------------
  413|       |      /* in HTTP lingo, no body means using the HEAD request... */
  414|    291|      s->method = HTTPREQ_HEAD;
  415|  8.74k|    else if(s->method == HTTPREQ_HEAD)
  ------------------
  |  Branch (415:13): [True: 130, False: 8.61k]
  ------------------
  416|    130|      s->method = HTTPREQ_GET;
  417|  9.03k|#endif
  418|  9.03k|    break;
  419|    612|  case CURLOPT_FAILONERROR:
  ------------------
  |  Branch (419:3): [True: 612, False: 56.6k]
  ------------------
  420|       |    /*
  421|       |     * Do not output the >=400 error code HTML-page, but instead only
  422|       |     * return error.
  423|       |     */
  424|    612|    s->http_fail_on_error = enabled;
  425|    612|    break;
  426|      0|  case CURLOPT_KEEP_SENDING_ON_ERROR:
  ------------------
  |  Branch (426:3): [True: 0, False: 57.2k]
  ------------------
  427|      0|    s->http_keep_sending_on_error = enabled;
  428|      0|    break;
  429|  1.56k|  case CURLOPT_UPLOAD:
  ------------------
  |  Branch (429:3): [True: 1.56k, False: 55.7k]
  ------------------
  430|  1.56k|  case CURLOPT_PUT:
  ------------------
  |  Branch (430:3): [True: 0, False: 57.2k]
  ------------------
  431|       |    /*
  432|       |     * We want to send data to the remote host. If this is HTTP, that equals
  433|       |     * using the PUT request.
  434|       |     */
  435|  1.56k|    if(enabled) {
  ------------------
  |  Branch (435:8): [True: 873, False: 687]
  ------------------
  436|       |      /* If this is HTTP, PUT is what's needed to "upload" */
  437|    873|      s->method = HTTPREQ_PUT;
  438|    873|      s->opt_no_body = FALSE; /* this is implied */
  ------------------
  |  | 1056|    873|#define FALSE false
  ------------------
  439|    873|    }
  440|    687|    else
  441|       |      /* In HTTP, the opposite of upload is GET (unless NOBODY is true as
  442|       |         then this can be changed to HEAD later on) */
  443|    687|      s->method = HTTPREQ_GET;
  444|  1.56k|    break;
  445|      0|  case CURLOPT_FILETIME:
  ------------------
  |  Branch (445:3): [True: 0, False: 57.2k]
  ------------------
  446|       |    /*
  447|       |     * Try to get the file time of the remote document. The time will
  448|       |     * later (possibly) become available using curl_easy_getinfo().
  449|       |     */
  450|      0|    s->get_filetime = enabled;
  451|      0|    break;
  452|      0|#ifndef CURL_DISABLE_HTTP
  453|    326|  case CURLOPT_HTTP09_ALLOWED:
  ------------------
  |  Branch (453:3): [True: 326, False: 56.9k]
  ------------------
  454|    326|    s->http09_allowed = enabled;
  455|    326|    break;
  456|      0|#ifndef CURL_DISABLE_COOKIES
  457|      0|  case CURLOPT_COOKIESESSION:
  ------------------
  |  Branch (457:3): [True: 0, False: 57.2k]
  ------------------
  458|       |    /*
  459|       |     * Set this option to TRUE to start a new "cookie session". It will
  460|       |     * prevent the forthcoming read-cookies-from-file actions to accept
  461|       |     * cookies that are marked as being session cookies, as they belong to a
  462|       |     * previous session.
  463|       |     */
  464|      0|    s->cookiesession = enabled;
  465|      0|    break;
  466|      0|#endif
  467|  1.01k|  case CURLOPT_AUTOREFERER:
  ------------------
  |  Branch (467:3): [True: 1.01k, False: 56.2k]
  ------------------
  468|       |    /*
  469|       |     * Switch on automatic referer that gets set if curl follows locations.
  470|       |     */
  471|  1.01k|    s->http_auto_referer = enabled;
  472|  1.01k|    break;
  473|      0|  case CURLOPT_TRANSFER_ENCODING:
  ------------------
  |  Branch (473:3): [True: 0, False: 57.2k]
  ------------------
  474|      0|    s->http_transfer_encoding = enabled;
  475|      0|    break;
  476|      0|  case CURLOPT_UNRESTRICTED_AUTH:
  ------------------
  |  Branch (476:3): [True: 0, False: 57.2k]
  ------------------
  477|       |    /*
  478|       |     * Send authentication (user+password) when following locations, even when
  479|       |     * hostname changed.
  480|       |     */
  481|      0|    s->allow_auth_to_other_hosts = enabled;
  482|      0|    break;
  483|      0|  case CURLOPT_HTTP_TRANSFER_DECODING:
  ------------------
  |  Branch (483:3): [True: 0, False: 57.2k]
  ------------------
  484|       |    /*
  485|       |     * disable libcurl transfer encoding is used
  486|       |     */
  487|      0|    s->http_te_skip = !enabled; /* reversed */
  488|      0|    break;
  489|      0|  case CURLOPT_HTTP_CONTENT_DECODING:
  ------------------
  |  Branch (489:3): [True: 0, False: 57.2k]
  ------------------
  490|       |    /*
  491|       |     * raw data passed to the application when content encoding is used
  492|       |     */
  493|      0|    s->http_ce_skip = !enabled; /* reversed */
  494|      0|    break;
  495|  2.40k|  case CURLOPT_HTTPGET:
  ------------------
  |  Branch (495:3): [True: 2.40k, False: 54.8k]
  ------------------
  496|       |    /*
  497|       |     * Set to force us do HTTP GET
  498|       |     */
  499|  2.40k|    if(enabled) {
  ------------------
  |  Branch (499:8): [True: 152, False: 2.25k]
  ------------------
  500|    152|      s->method = HTTPREQ_GET;
  501|    152|      s->opt_no_body = FALSE; /* this is implied */
  ------------------
  |  | 1056|    152|#define FALSE false
  ------------------
  502|    152|    }
  503|  2.40k|    break;
  504|  3.45k|  case CURLOPT_POST:
  ------------------
  |  Branch (504:3): [True: 3.45k, False: 53.8k]
  ------------------
  505|       |    /* Does this option serve a purpose anymore? Yes it does, when
  506|       |       CURLOPT_POSTFIELDS is not used and the POST data is read off the
  507|       |       callback! */
  508|  3.45k|    if(enabled) {
  ------------------
  |  Branch (508:8): [True: 561, False: 2.89k]
  ------------------
  509|    561|      s->method = HTTPREQ_POST;
  510|    561|      s->opt_no_body = FALSE; /* this is implied */
  ------------------
  |  | 1056|    561|#define FALSE false
  ------------------
  511|    561|    }
  512|  2.89k|    else
  513|  2.89k|      s->method = HTTPREQ_GET;
  514|  3.45k|    break;
  515|      0|#endif /* !CURL_DISABLE_HTTP */
  516|      0|#ifndef CURL_DISABLE_PROXY
  517|      0|  case CURLOPT_HTTPPROXYTUNNEL:
  ------------------
  |  Branch (517:3): [True: 0, False: 57.2k]
  ------------------
  518|       |    /*
  519|       |     * Tunnel operations through the proxy instead of normal proxy use
  520|       |     */
  521|      0|    s->tunnel_thru_httpproxy = enabled;
  522|      0|    break;
  523|      0|  case CURLOPT_HAPROXYPROTOCOL:
  ------------------
  |  Branch (523:3): [True: 0, False: 57.2k]
  ------------------
  524|       |    /*
  525|       |     * Set to send the HAProxy Proxy Protocol header
  526|       |     */
  527|      0|    s->haproxyprotocol = enabled;
  528|      0|    break;
  529|      0|  case CURLOPT_PROXY_SSL_VERIFYPEER:
  ------------------
  |  Branch (529:3): [True: 0, False: 57.2k]
  ------------------
  530|       |    /*
  531|       |     * Enable peer SSL verifying for proxy.
  532|       |     */
  533|      0|    s->proxy_ssl.primary.verifypeer = enabled;
  534|       |
  535|       |    /* Update the current connection proxy_ssl_config. */
  536|      0|    Curl_ssl_conn_config_update(data, TRUE);
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  537|      0|    break;
  538|      0|  case CURLOPT_PROXY_SSL_VERIFYHOST:
  ------------------
  |  Branch (538:3): [True: 0, False: 57.2k]
  ------------------
  539|       |    /*
  540|       |     * Enable verification of the hostname in the peer certificate for proxy
  541|       |     */
  542|      0|    s->proxy_ssl.primary.verifyhost = enabled;
  543|      0|    ok = 2;
  544|       |    /* Update the current connection proxy_ssl_config. */
  545|      0|    Curl_ssl_conn_config_update(data, TRUE);
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  546|      0|    break;
  547|      0|  case CURLOPT_PROXY_TRANSFER_MODE:
  ------------------
  |  Branch (547:3): [True: 0, False: 57.2k]
  ------------------
  548|       |    /*
  549|       |     * set transfer mode (;type=<a|i>) when doing FTP via an HTTP proxy
  550|       |     */
  551|      0|    s->proxy_transfer_mode = enabled;
  552|      0|    break;
  553|      0|#endif /* !CURL_DISABLE_PROXY */
  554|       |#if defined(HAVE_GSSAPI) || defined(USE_WINDOWS_SSPI)
  555|       |  case CURLOPT_SOCKS5_GSSAPI_NEC:
  556|       |    /*
  557|       |     * Set flag for NEC SOCKS5 support
  558|       |     */
  559|       |    s->socks5_gssapi_nec = enabled;
  560|       |    break;
  561|       |#endif
  562|      0|#ifdef CURL_LIST_ONLY_PROTOCOL
  563|      0|  case CURLOPT_DIRLISTONLY:
  ------------------
  |  Branch (563:3): [True: 0, False: 57.2k]
  ------------------
  564|       |    /*
  565|       |     * An option that changes the command to one that asks for a list only, no
  566|       |     * file info details. Used for FTP, POP3 and SFTP.
  567|       |     */
  568|      0|    s->list_only = enabled;
  569|      0|    break;
  570|      0|#endif
  571|      0|  case CURLOPT_APPEND:
  ------------------
  |  Branch (571:3): [True: 0, False: 57.2k]
  ------------------
  572|       |    /*
  573|       |     * We want to upload and append to an existing file. Used for FTP and
  574|       |     * SFTP.
  575|       |     */
  576|      0|    s->remote_append = enabled;
  577|      0|    break;
  578|      0|#ifndef CURL_DISABLE_FTP
  579|      0|  case CURLOPT_FTP_USE_EPRT:
  ------------------
  |  Branch (579:3): [True: 0, False: 57.2k]
  ------------------
  580|      0|    s->ftp_use_eprt = enabled;
  581|      0|    break;
  582|      0|  case CURLOPT_FTP_USE_EPSV:
  ------------------
  |  Branch (582:3): [True: 0, False: 57.2k]
  ------------------
  583|      0|    s->ftp_use_epsv = enabled;
  584|      0|    break;
  585|      0|  case CURLOPT_FTP_USE_PRET:
  ------------------
  |  Branch (585:3): [True: 0, False: 57.2k]
  ------------------
  586|      0|    s->ftp_use_pret = enabled;
  587|      0|    break;
  588|      0|  case CURLOPT_FTP_SKIP_PASV_IP:
  ------------------
  |  Branch (588:3): [True: 0, False: 57.2k]
  ------------------
  589|       |    /*
  590|       |     * Enable or disable FTP_SKIP_PASV_IP, which will disable/enable the
  591|       |     * bypass of the IP address in PASV responses.
  592|       |     */
  593|      0|    s->ftp_skip_ip = enabled;
  594|      0|    break;
  595|      0|  case CURLOPT_WILDCARDMATCH:
  ------------------
  |  Branch (595:3): [True: 0, False: 57.2k]
  ------------------
  596|      0|    s->wildcard_enabled = enabled;
  597|      0|    break;
  598|      0|#endif
  599|      0|  case CURLOPT_CRLF:
  ------------------
  |  Branch (599:3): [True: 0, False: 57.2k]
  ------------------
  600|       |    /*
  601|       |     * Kludgy option to enable CRLF conversions. Subject for removal.
  602|       |     */
  603|      0|    s->crlf = enabled;
  604|      0|    break;
  605|      0|#ifndef CURL_DISABLE_TFTP
  606|      0|  case CURLOPT_TFTP_NO_OPTIONS:
  ------------------
  |  Branch (606:3): [True: 0, False: 57.2k]
  ------------------
  607|       |    /*
  608|       |     * Option that prevents libcurl from sending TFTP option requests to the
  609|       |     * server.
  610|       |     */
  611|      0|    s->tftp_no_options = enabled;
  612|      0|    break;
  613|      0|#endif /* !CURL_DISABLE_TFTP */
  614|      0|  case CURLOPT_TRANSFERTEXT:
  ------------------
  |  Branch (614:3): [True: 0, False: 57.2k]
  ------------------
  615|       |    /*
  616|       |     * This option was previously named 'FTPASCII'. Renamed to work with
  617|       |     * more protocols than merely FTP.
  618|       |     *
  619|       |     * Transfer using ASCII (instead of BINARY).
  620|       |     */
  621|      0|    s->prefer_ascii = enabled;
  622|      0|    break;
  623|      0|  case CURLOPT_SSL_VERIFYPEER:
  ------------------
  |  Branch (623:3): [True: 0, False: 57.2k]
  ------------------
  624|       |    /*
  625|       |     * Enable peer SSL verifying.
  626|       |     */
  627|      0|    s->ssl.primary.verifypeer = enabled;
  628|       |
  629|       |    /* Update the current connection ssl_config. */
  630|      0|    Curl_ssl_conn_config_update(data, FALSE);
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  631|      0|    break;
  632|      0|#ifndef CURL_DISABLE_DOH
  633|      0|  case CURLOPT_DOH_SSL_VERIFYPEER:
  ------------------
  |  Branch (633:3): [True: 0, False: 57.2k]
  ------------------
  634|       |    /*
  635|       |     * Enable peer SSL verifying for DoH.
  636|       |     */
  637|      0|    s->doh_verifypeer = enabled;
  638|      0|    break;
  639|      0|  case CURLOPT_DOH_SSL_VERIFYHOST:
  ------------------
  |  Branch (639:3): [True: 0, False: 57.2k]
  ------------------
  640|       |    /*
  641|       |     * Enable verification of the hostname in the peer certificate for DoH
  642|       |     */
  643|      0|    s->doh_verifyhost = enabled;
  644|      0|    ok = 2;
  645|      0|    break;
  646|      0|  case CURLOPT_DOH_SSL_VERIFYSTATUS:
  ------------------
  |  Branch (646:3): [True: 0, False: 57.2k]
  ------------------
  647|       |    /*
  648|       |     * Enable certificate status verifying for DoH.
  649|       |     */
  650|      0|    if(!Curl_ssl_cert_status_request())
  ------------------
  |  Branch (650:8): [True: 0, False: 0]
  ------------------
  651|      0|      return CURLE_NOT_BUILT_IN;
  652|       |
  653|      0|    s->doh_verifystatus = enabled;
  654|      0|    ok = 2;
  655|      0|    break;
  656|      0|#endif /* !CURL_DISABLE_DOH */
  657|      0|  case CURLOPT_SSL_VERIFYHOST:
  ------------------
  |  Branch (657:3): [True: 0, False: 57.2k]
  ------------------
  658|       |    /*
  659|       |     * Enable verification of the hostname in the peer certificate
  660|       |     */
  661|       |
  662|       |    /* Obviously people are not reading documentation and too many thought
  663|       |       this argument took a boolean when it was not and misused it.
  664|       |       Treat 1 and 2 the same */
  665|      0|    s->ssl.primary.verifyhost = enabled;
  666|      0|    ok = 2;
  667|       |
  668|       |    /* Update the current connection ssl_config. */
  669|      0|    Curl_ssl_conn_config_update(data, FALSE);
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  670|      0|    break;
  671|      0|  case CURLOPT_SSL_VERIFYSTATUS:
  ------------------
  |  Branch (671:3): [True: 0, False: 57.2k]
  ------------------
  672|       |    /*
  673|       |     * Enable certificate status verifying.
  674|       |     */
  675|      0|    if(!Curl_ssl_cert_status_request())
  ------------------
  |  Branch (675:8): [True: 0, False: 0]
  ------------------
  676|      0|      return CURLE_NOT_BUILT_IN;
  677|       |
  678|      0|    s->ssl.primary.verifystatus = enabled;
  679|       |
  680|       |    /* Update the current connection ssl_config. */
  681|      0|    Curl_ssl_conn_config_update(data, FALSE);
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  682|      0|    break;
  683|      0|  case CURLOPT_CERTINFO:
  ------------------
  |  Branch (683:3): [True: 0, False: 57.2k]
  ------------------
  684|      0|#ifdef USE_SSL
  685|      0|    if(Curl_ssl_supports(data, SSLSUPP_CERTINFO))
  ------------------
  |  |   36|      0|#define SSLSUPP_CERTINFO     (1 << 1) /* supports CURLOPT_CERTINFO */
  ------------------
  |  Branch (685:8): [True: 0, False: 0]
  ------------------
  686|      0|      s->ssl.certinfo = enabled;
  687|      0|    else
  688|      0|#endif
  689|      0|      return CURLE_NOT_BUILT_IN;
  690|      0|    break;
  691|      0|  case CURLOPT_NOSIGNAL:
  ------------------
  |  Branch (691:3): [True: 0, False: 57.2k]
  ------------------
  692|       |    /*
  693|       |     * The application asks not to set any signal() or alarm() handlers,
  694|       |     * even when using a timeout.
  695|       |     */
  696|      0|    s->no_signal = enabled;
  697|      0|    break;
  698|      0|  case CURLOPT_TCP_NODELAY:
  ------------------
  |  Branch (698:3): [True: 0, False: 57.2k]
  ------------------
  699|       |    /*
  700|       |     * Enable or disable TCP_NODELAY, which will disable/enable the Nagle
  701|       |     * algorithm
  702|       |     */
  703|      0|    s->tcp_nodelay = enabled;
  704|      0|    break;
  705|      0|  case CURLOPT_IGNORE_CONTENT_LENGTH:
  ------------------
  |  Branch (705:3): [True: 0, False: 57.2k]
  ------------------
  706|      0|    s->ignorecl = enabled;
  707|      0|    break;
  708|      0|  case CURLOPT_SSL_SESSIONID_CACHE:
  ------------------
  |  Branch (708:3): [True: 0, False: 57.2k]
  ------------------
  709|      0|    s->ssl.primary.cache_session = enabled;
  710|      0|#ifndef CURL_DISABLE_PROXY
  711|      0|    s->proxy_ssl.primary.cache_session = s->ssl.primary.cache_session;
  712|      0|#endif
  713|      0|    break;
  714|       |#ifdef USE_SSH
  715|       |  case CURLOPT_SSH_COMPRESSION:
  716|       |    s->ssh_compression = enabled;
  717|       |    break;
  718|       |#endif /* !USE_SSH */
  719|      0|#ifndef CURL_DISABLE_SMTP
  720|      0|  case CURLOPT_MAIL_RCPT_ALLOWFAILS:
  ------------------
  |  Branch (720:3): [True: 0, False: 57.2k]
  ------------------
  721|       |    /* allow RCPT TO command to fail for some recipients */
  722|      0|    s->mail_rcpt_allowfails = enabled;
  723|      0|    break;
  724|      0|#endif /* !CURL_DISABLE_SMTP */
  725|      0|  case CURLOPT_SASL_IR:
  ------------------
  |  Branch (725:3): [True: 0, False: 57.2k]
  ------------------
  726|       |    /* Enable/disable SASL initial response */
  727|      0|    s->sasl_ir = enabled;
  728|      0|    break;
  729|      0|  case CURLOPT_TCP_KEEPALIVE:
  ------------------
  |  Branch (729:3): [True: 0, False: 57.2k]
  ------------------
  730|      0|    s->tcp_keepalive = enabled;
  731|      0|    break;
  732|      0|  case CURLOPT_TCP_FASTOPEN:
  ------------------
  |  Branch (732:3): [True: 0, False: 57.2k]
  ------------------
  733|      0|#if defined(CONNECT_DATA_IDEMPOTENT) || defined(MSG_FASTOPEN) || \
  734|      0|  defined(TCP_FASTOPEN_CONNECT)
  735|      0|    s->tcp_fastopen = enabled;
  736|      0|    break;
  737|       |#else
  738|       |    return CURLE_NOT_BUILT_IN;
  739|       |#endif
  740|      0|  case CURLOPT_SSL_ENABLE_ALPN:
  ------------------
  |  Branch (740:3): [True: 0, False: 57.2k]
  ------------------
  741|      0|    s->ssl_enable_alpn = enabled;
  742|      0|    break;
  743|      0|  case CURLOPT_PATH_AS_IS:
  ------------------
  |  Branch (743:3): [True: 0, False: 57.2k]
  ------------------
  744|      0|    s->path_as_is = enabled;
  745|      0|    break;
  746|      0|  case CURLOPT_PIPEWAIT:
  ------------------
  |  Branch (746:3): [True: 0, False: 57.2k]
  ------------------
  747|      0|    s->pipewait = enabled;
  748|      0|    break;
  749|      0|  case CURLOPT_SUPPRESS_CONNECT_HEADERS:
  ------------------
  |  Branch (749:3): [True: 0, False: 57.2k]
  ------------------
  750|      0|    s->suppress_connect_headers = enabled;
  751|      0|    break;
  752|      0|#ifndef CURL_DISABLE_SHUFFLE_DNS
  753|      0|  case CURLOPT_DNS_SHUFFLE_ADDRESSES:
  ------------------
  |  Branch (753:3): [True: 0, False: 57.2k]
  ------------------
  754|      0|    s->dns_shuffle_addresses = enabled;
  755|      0|    break;
  756|      0|#endif
  757|      0|  case CURLOPT_DISALLOW_USERNAME_IN_URL:
  ------------------
  |  Branch (757:3): [True: 0, False: 57.2k]
  ------------------
  758|      0|    s->disallow_username_in_url = enabled;
  759|      0|    break;
  760|      0|  case CURLOPT_QUICK_EXIT:
  ------------------
  |  Branch (760:3): [True: 0, False: 57.2k]
  ------------------
  761|      0|    s->quick_exit = enabled;
  762|      0|    break;
  763|  38.1k|  default:
  ------------------
  |  Branch (763:3): [True: 38.1k, False: 19.1k]
  ------------------
  764|  38.1k|    return CURLE_UNKNOWN_OPTION;
  765|  57.2k|  }
  766|  19.1k|  if((arg > ok) || (arg < 0))
  ------------------
  |  Branch (766:6): [True: 769, False: 18.4k]
  |  Branch (766:20): [True: 92, False: 18.3k]
  ------------------
  767|       |    /* reserve other values for future use */
  768|    861|    infof(data, "boolean setopt(%d) got unsupported argument %ld,"
  ------------------
  |  |  143|    861|  do {                               \
  |  |  144|    861|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|    861|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 861, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 861]
  |  |  |  |  ------------------
  |  |  |  |  323|    861|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    861|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    861|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 861]
  |  |  ------------------
  ------------------
  769|  19.1k|          " treated as %d", (int)option, arg, enabled);
  770|       |
  771|  19.1k|  return CURLE_OK;
  772|  57.2k|}
setopt.c:setopt_long_net:
  787|  38.1k|{
  788|  38.1k|  CURLcode result = CURLE_OK;
  789|  38.1k|  struct UserDefined *s = &data->set;
  790|       |
  791|  38.1k|  switch(option) {
  792|      0|  case CURLOPT_DNS_CACHE_TIMEOUT:
  ------------------
  |  Branch (792:3): [True: 0, False: 38.1k]
  ------------------
  793|      0|    if(arg != -1)
  ------------------
  |  Branch (793:8): [True: 0, False: 0]
  ------------------
  794|      0|      return setopt_set_timeout_sec(&s->dns_cache_timeout_ms, arg);
  795|      0|    s->dns_cache_timeout_ms = -1;
  796|      0|    break;
  797|      0|  case CURLOPT_MAXCONNECTS:
  ------------------
  |  Branch (797:3): [True: 0, False: 38.1k]
  ------------------
  798|      0|    result = value_range(&arg, 0, 0, INT_MAX);
  799|      0|    if(!result)
  ------------------
  |  Branch (799:8): [True: 0, False: 0]
  ------------------
  800|      0|      s->maxconnects = arg ? (uint32_t)arg : DEFAULT_CONNCACHE_SIZE;
  ------------------
  |  |   38|      0|#define DEFAULT_CONNCACHE_SIZE 5
  ------------------
  |  Branch (800:24): [True: 0, False: 0]
  ------------------
  801|      0|    break;
  802|      0|  case CURLOPT_SERVER_RESPONSE_TIMEOUT:
  ------------------
  |  Branch (802:3): [True: 0, False: 38.1k]
  ------------------
  803|      0|    return setopt_set_timeout_sec(&s->server_response_timeout, arg);
  804|      0|  case CURLOPT_SERVER_RESPONSE_TIMEOUT_MS:
  ------------------
  |  Branch (804:3): [True: 0, False: 38.1k]
  ------------------
  805|      0|    return setopt_set_timeout_ms(&s->server_response_timeout, arg);
  806|      0|  case CURLOPT_LOW_SPEED_LIMIT:
  ------------------
  |  Branch (806:3): [True: 0, False: 38.1k]
  ------------------
  807|      0|    if(arg < 0)
  ------------------
  |  Branch (807:8): [True: 0, False: 0]
  ------------------
  808|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
  809|      0|    else
  810|      0|      s->low_speed_limit = arg;
  811|      0|    break;
  812|      0|  case CURLOPT_LOW_SPEED_TIME:
  ------------------
  |  Branch (812:3): [True: 0, False: 38.1k]
  ------------------
  813|      0|    result = value_range(&arg, 0, 0, USHRT_MAX);
  814|      0|    if(!result)
  ------------------
  |  Branch (814:8): [True: 0, False: 0]
  ------------------
  815|      0|      s->low_speed_time = (uint16_t)arg;
  816|      0|    break;
  817|      0|  case CURLOPT_PORT:
  ------------------
  |  Branch (817:3): [True: 0, False: 38.1k]
  ------------------
  818|      0|    if((arg < 0) || (arg > 65535))
  ------------------
  |  Branch (818:8): [True: 0, False: 0]
  |  Branch (818:21): [True: 0, False: 0]
  ------------------
  819|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
  820|      0|    s->use_port = (unsigned short)arg;
  821|      0|    break;
  822|      0|  case CURLOPT_TIMEOUT:
  ------------------
  |  Branch (822:3): [True: 0, False: 38.1k]
  ------------------
  823|      0|    return setopt_set_timeout_sec(&s->timeout, arg);
  824|  9.97k|  case CURLOPT_TIMEOUT_MS:
  ------------------
  |  Branch (824:3): [True: 9.97k, False: 28.1k]
  ------------------
  825|  9.97k|    return setopt_set_timeout_ms(&s->timeout, arg);
  826|      0|  case CURLOPT_CONNECTTIMEOUT:
  ------------------
  |  Branch (826:3): [True: 0, False: 38.1k]
  ------------------
  827|      0|    return setopt_set_timeout_sec(&s->connecttimeout, arg);
  828|  9.97k|  case CURLOPT_CONNECTTIMEOUT_MS:
  ------------------
  |  Branch (828:3): [True: 9.97k, False: 28.1k]
  ------------------
  829|  9.97k|    return setopt_set_timeout_ms(&s->connecttimeout, arg);
  830|      0|#ifndef CURL_DISABLE_BINDLOCAL
  831|      0|  case CURLOPT_LOCALPORT:
  ------------------
  |  Branch (831:3): [True: 0, False: 38.1k]
  ------------------
  832|      0|    if((arg < 0) || (arg > 65535))
  ------------------
  |  Branch (832:8): [True: 0, False: 0]
  |  Branch (832:21): [True: 0, False: 0]
  ------------------
  833|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
  834|      0|    s->localport = curlx_sltous(arg);
  835|      0|    break;
  836|      0|  case CURLOPT_LOCALPORTRANGE:
  ------------------
  |  Branch (836:3): [True: 0, False: 38.1k]
  ------------------
  837|      0|    if((arg < 0) || (arg > 65535))
  ------------------
  |  Branch (837:8): [True: 0, False: 0]
  |  Branch (837:21): [True: 0, False: 0]
  ------------------
  838|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
  839|      0|    s->localportrange = curlx_sltous(arg);
  840|      0|    break;
  841|      0|#endif
  842|      0|  case CURLOPT_BUFFERSIZE:
  ------------------
  |  Branch (842:3): [True: 0, False: 38.1k]
  ------------------
  843|      0|    result = value_range(&arg, 0, READBUFFER_MIN, READBUFFER_MAX);
  ------------------
  |  |  122|      0|#define READBUFFER_MIN  1024
  ------------------
                  result = value_range(&arg, 0, READBUFFER_MIN, READBUFFER_MAX);
  ------------------
  |  |  121|      0|#define READBUFFER_MAX  CURL_MAX_READ_SIZE
  |  |  ------------------
  |  |  |  |  255|      0|#define CURL_MAX_READ_SIZE (10 * 1024 * 1024)
  |  |  ------------------
  ------------------
  844|      0|    if(!result)
  ------------------
  |  Branch (844:8): [True: 0, False: 0]
  ------------------
  845|      0|      s->buffer_size = (unsigned int)arg;
  846|      0|    break;
  847|      0|  case CURLOPT_UPLOAD_BUFFERSIZE:
  ------------------
  |  Branch (847:3): [True: 0, False: 38.1k]
  ------------------
  848|      0|    result = value_range(&arg, 0, UPLOADBUFFER_MIN, UPLOADBUFFER_MAX);
  ------------------
  |  |  134|      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);
  ------------------
  |  |  133|      0|#define UPLOADBUFFER_MAX     (2 * 1024 * 1024)
  ------------------
  849|      0|    if(!result)
  ------------------
  |  Branch (849:8): [True: 0, False: 0]
  ------------------
  850|      0|      s->upload_buffer_size = (unsigned int)arg;
  851|      0|    break;
  852|      0|  case CURLOPT_MAXFILESIZE:
  ------------------
  |  Branch (852:3): [True: 0, False: 38.1k]
  ------------------
  853|      0|    if(arg < 0)
  ------------------
  |  Branch (853:8): [True: 0, False: 0]
  ------------------
  854|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
  855|      0|    else
  856|      0|      s->max_filesize = arg;
  857|      0|    break;
  858|      0|  case CURLOPT_IPRESOLVE:
  ------------------
  |  Branch (858:3): [True: 0, False: 38.1k]
  ------------------
  859|      0|    if((arg < CURL_IPRESOLVE_WHATEVER) || (arg > CURL_IPRESOLVE_V6))
  ------------------
  |  | 2327|      0|#define CURL_IPRESOLVE_WHATEVER 0L /* default, uses addresses to all IP
  ------------------
                  if((arg < CURL_IPRESOLVE_WHATEVER) || (arg > CURL_IPRESOLVE_V6))
  ------------------
  |  | 2330|      0|#define CURL_IPRESOLVE_V6       2L /* uses only IPv6 addresses/connections */
  ------------------
  |  Branch (859:8): [True: 0, False: 0]
  |  Branch (859:43): [True: 0, False: 0]
  ------------------
  860|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
  861|      0|    else
  862|      0|      s->ipver = (unsigned char)arg;
  863|      0|    break;
  864|  2.77k|  case CURLOPT_CONNECT_ONLY:
  ------------------
  |  Branch (864:3): [True: 2.77k, False: 35.3k]
  ------------------
  865|  2.77k|    if(arg < 0 || arg > 2)
  ------------------
  |  Branch (865:8): [True: 70, False: 2.70k]
  |  Branch (865:19): [True: 234, False: 2.47k]
  ------------------
  866|    304|      result = CURLE_BAD_FUNCTION_ARGUMENT;
  867|  2.47k|    else {
  868|  2.47k|      s->connect_only = !!arg;
  869|  2.47k|      s->connect_only_ws = (arg == 2);
  870|  2.47k|    }
  871|  2.77k|    break;
  872|      0|#ifdef USE_IPV6
  873|      0|  case CURLOPT_ADDRESS_SCOPE:
  ------------------
  |  Branch (873:3): [True: 0, False: 38.1k]
  ------------------
  874|      0|#if SIZEOF_LONG > 4
  875|      0|    if((unsigned long)arg > UINT_MAX)
  ------------------
  |  Branch (875:8): [True: 0, False: 0]
  ------------------
  876|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
  877|      0|    else
  878|      0|#endif
  879|      0|    s->scope_id = (unsigned int)arg;
  880|      0|    break;
  881|      0|#endif
  882|      0|  case CURLOPT_TCP_KEEPIDLE:
  ------------------
  |  Branch (882:3): [True: 0, False: 38.1k]
  ------------------
  883|      0|    result = value_range(&arg, 0, 0, INT_MAX);
  884|      0|    if(!result)
  ------------------
  |  Branch (884:8): [True: 0, False: 0]
  ------------------
  885|      0|      s->tcp_keepidle = (int)arg;
  886|      0|    break;
  887|      0|  case CURLOPT_TCP_KEEPINTVL:
  ------------------
  |  Branch (887:3): [True: 0, False: 38.1k]
  ------------------
  888|      0|    result = value_range(&arg, 0, 0, INT_MAX);
  889|      0|    if(!result)
  ------------------
  |  Branch (889:8): [True: 0, False: 0]
  ------------------
  890|      0|      s->tcp_keepintvl = (int)arg;
  891|      0|    break;
  892|      0|  case CURLOPT_TCP_KEEPCNT:
  ------------------
  |  Branch (892:3): [True: 0, False: 38.1k]
  ------------------
  893|      0|    result = value_range(&arg, 0, 0, INT_MAX);
  894|      0|    if(!result)
  ------------------
  |  Branch (894:8): [True: 0, False: 0]
  ------------------
  895|      0|      s->tcp_keepcnt = (int)arg;
  896|      0|    break;
  897|      0|  case CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS:
  ------------------
  |  Branch (897:3): [True: 0, False: 38.1k]
  ------------------
  898|      0|    return setopt_set_timeout_ms(&s->happy_eyeballs_timeout, arg);
  899|      0|  case CURLOPT_UPKEEP_INTERVAL_MS:
  ------------------
  |  Branch (899:3): [True: 0, False: 38.1k]
  ------------------
  900|      0|    return setopt_set_timeout_ms(&s->upkeep_interval_ms, arg);
  901|      0|  case CURLOPT_MAXAGE_CONN:
  ------------------
  |  Branch (901:3): [True: 0, False: 38.1k]
  ------------------
  902|      0|    return setopt_set_timeout_sec(&s->conn_max_idle_ms, arg);
  903|      0|  case CURLOPT_MAXLIFETIME_CONN:
  ------------------
  |  Branch (903:3): [True: 0, False: 38.1k]
  ------------------
  904|      0|    return setopt_set_timeout_sec(&s->conn_max_age_ms, arg);
  905|      0|  case CURLOPT_DNS_USE_GLOBAL_CACHE:
  ------------------
  |  Branch (905:3): [True: 0, False: 38.1k]
  ------------------
  906|       |    /* deprecated */
  907|      0|    break;
  908|  15.3k|  default:
  ------------------
  |  Branch (908:3): [True: 15.3k, False: 22.7k]
  ------------------
  909|  15.3k|    return CURLE_UNKNOWN_OPTION;
  910|  38.1k|  }
  911|  2.77k|  return result;
  912|  38.1k|}
setopt.c:value_range:
  775|  2.48k|{
  776|  2.48k|  if(*value < below_error)
  ------------------
  |  Branch (776:6): [True: 129, False: 2.35k]
  ------------------
  777|    129|    return CURLE_BAD_FUNCTION_ARGUMENT;
  778|  2.35k|  else if(*value < min)
  ------------------
  |  Branch (778:11): [True: 0, False: 2.35k]
  ------------------
  779|      0|    *value = min;
  780|  2.35k|  else if(*value > max)
  ------------------
  |  Branch (780:11): [True: 204, False: 2.14k]
  ------------------
  781|    204|    *value = max;
  782|  2.35k|  return CURLE_OK;
  783|  2.48k|}
setopt.c:setopt_set_timeout_ms:
   68|  19.9k|{
   69|  19.9k|  if(ms < 0)
  ------------------
  |  Branch (69:6): [True: 0, False: 19.9k]
  ------------------
   70|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
   71|       |#if LONG_MAX > TIMEDIFF_T_MAX
   72|       |  if(ms > TIMEDIFF_T_MAX) {
   73|       |    *ptimeout_ms = TIMEDIFF_T_MAX;
   74|       |    return CURLE_OK;
   75|       |  }
   76|       |#endif
   77|  19.9k|  *ptimeout_ms = (timediff_t)ms;
   78|  19.9k|  return CURLE_OK;
   79|  19.9k|}
setopt.c:setopt_long_http:
 1024|  15.3k|{
 1025|  15.3k|#ifndef CURL_DISABLE_HTTP
 1026|  15.3k|  CURLcode result = CURLE_OK;
 1027|  15.3k|  struct UserDefined *s = &data->set;
 1028|       |
 1029|  15.3k|  switch(option) {
 1030|  4.84k|  case CURLOPT_FOLLOWLOCATION:
  ------------------
  |  Branch (1030:3): [True: 4.84k, False: 10.5k]
  ------------------
 1031|  4.84k|    if((unsigned long)arg > 3)
  ------------------
  |  Branch (1031:8): [True: 0, False: 4.84k]
  ------------------
 1032|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
 1033|  4.84k|    else
 1034|  4.84k|      s->http_follow_mode = (unsigned char)arg;
 1035|  4.84k|    break;
 1036|  2.48k|  case CURLOPT_MAXREDIRS:
  ------------------
  |  Branch (1036:3): [True: 2.48k, False: 12.9k]
  ------------------
 1037|  2.48k|    result = value_range(&arg, -1, -1, 0x7fff);
 1038|  2.48k|    if(!result)
  ------------------
  |  Branch (1038:8): [True: 2.35k, False: 129]
  ------------------
 1039|  2.35k|      s->maxredirs = (short)arg;
 1040|  2.48k|    break;
 1041|      0|  case CURLOPT_POSTREDIR:
  ------------------
  |  Branch (1041:3): [True: 0, False: 15.3k]
  ------------------
 1042|      0|    if(arg < CURL_REDIR_GET_ALL)
  ------------------
  |  | 2427|      0|#define CURL_REDIR_GET_ALL  0L
  ------------------
  |  Branch (1042:8): [True: 0, False: 0]
  ------------------
 1043|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
 1044|      0|    else {
 1045|      0|      s->post301 = !!(arg & CURL_REDIR_POST_301);
  ------------------
  |  | 2428|      0|#define CURL_REDIR_POST_301 1L
  ------------------
 1046|      0|      s->post302 = !!(arg & CURL_REDIR_POST_302);
  ------------------
  |  | 2429|      0|#define CURL_REDIR_POST_302 2L
  ------------------
 1047|      0|      s->post303 = !!(arg & CURL_REDIR_POST_303);
  ------------------
  |  | 2430|      0|#define CURL_REDIR_POST_303 4L
  ------------------
 1048|      0|    }
 1049|      0|    break;
 1050|      0|  case CURLOPT_HEADEROPT:
  ------------------
  |  Branch (1050:3): [True: 0, False: 15.3k]
  ------------------
 1051|      0|    s->sep_headers = !!(arg & CURLHEADER_SEPARATE);
  ------------------
  |  | 1039|      0|#define CURLHEADER_SEPARATE (1L << 0)
  ------------------
 1052|      0|    break;
 1053|      0|  case CURLOPT_HTTPAUTH:
  ------------------
  |  Branch (1053:3): [True: 0, False: 15.3k]
  ------------------
 1054|      0|    return httpauth(data, FALSE, (unsigned long)arg);
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1055|  6.94k|  case CURLOPT_HTTP_VERSION:
  ------------------
  |  Branch (1055:3): [True: 6.94k, False: 8.44k]
  ------------------
 1056|  6.94k|    return setopt_HTTP_VERSION(data, arg);
 1057|      0|  case CURLOPT_EXPECT_100_TIMEOUT_MS:
  ------------------
  |  Branch (1057:3): [True: 0, False: 15.3k]
  ------------------
 1058|      0|    result = value_range(&arg, 0, 0, 0xffff);
 1059|      0|    if(!result)
  ------------------
  |  Branch (1059:8): [True: 0, False: 0]
  ------------------
 1060|      0|      s->expect_100_timeout = (unsigned short)arg;
 1061|      0|    break;
 1062|      0|  case CURLOPT_STREAM_WEIGHT:
  ------------------
  |  Branch (1062:3): [True: 0, False: 15.3k]
  ------------------
 1063|      0|#if defined(USE_HTTP2) || defined(USE_HTTP3)
 1064|      0|    if((arg >= 1) && (arg <= 256))
  ------------------
  |  Branch (1064:8): [True: 0, False: 0]
  |  Branch (1064:22): [True: 0, False: 0]
  ------------------
 1065|      0|      s->priority.weight = (int)arg;
 1066|      0|    break;
 1067|       |#else
 1068|       |    result = CURLE_NOT_BUILT_IN;
 1069|       |    break;
 1070|       |#endif
 1071|       |#ifndef CURL_DISABLE_HTTPSIG
 1072|       |  case CURLOPT_HTTPSIG_ALGORITHM:
 1073|       |    if(arg != CURLHTTPSIG_NONE &&
 1074|       |       arg != CURLHTTPSIG_ED25519 &&
 1075|       |       arg != CURLHTTPSIG_HMAC_SHA256)
 1076|       |      return CURLE_BAD_FUNCTION_ARGUMENT;
 1077|       |    s->httpsig_algorithm = (uint8_t)arg;
 1078|       |    if(arg)
 1079|       |      s->httpauth = (uint32_t)CURLAUTH_HTTPSIG;
 1080|       |    else
 1081|       |      s->httpauth &= ~(uint32_t)CURLAUTH_HTTPSIG;
 1082|       |    break;
 1083|       |#endif
 1084|  1.12k|  default:
  ------------------
  |  Branch (1084:3): [True: 1.12k, False: 14.2k]
  ------------------
 1085|  1.12k|    return CURLE_UNKNOWN_OPTION;
 1086|  15.3k|  }
 1087|  7.32k|  return result;
 1088|       |#else
 1089|       |  (void)data;
 1090|       |  (void)option;
 1091|       |  (void)arg;
 1092|       |  return CURLE_UNKNOWN_OPTION;
 1093|       |#endif
 1094|  15.3k|}
setopt.c:setopt_HTTP_VERSION:
  277|  6.94k|{
  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|  6.94k|  switch(arg) {
  283|  1.31k|  case CURL_HTTP_VERSION_NONE:
  ------------------
  |  | 2336|  1.31k|#define CURL_HTTP_VERSION_NONE  0L /* setting this means we do not care, and
  ------------------
  |  Branch (283:3): [True: 1.31k, False: 5.63k]
  ------------------
  284|       |    /* accepted */
  285|  1.31k|    break;
  286|     17|  case CURL_HTTP_VERSION_1_0:
  ------------------
  |  | 2339|     17|#define CURL_HTTP_VERSION_1_0   1L /* please use HTTP 1.0 in the request */
  ------------------
  |  Branch (286:3): [True: 17, False: 6.92k]
  ------------------
  287|     63|  case CURL_HTTP_VERSION_1_1:
  ------------------
  |  | 2340|     63|#define CURL_HTTP_VERSION_1_1   2L /* please use HTTP 1.1 in the request */
  ------------------
  |  Branch (287:3): [True: 46, False: 6.89k]
  ------------------
  288|       |    /* accepted */
  289|     63|    break;
  290|      0|#ifdef USE_HTTP2
  291|    106|  case CURL_HTTP_VERSION_2_0:
  ------------------
  |  | 2341|    106|#define CURL_HTTP_VERSION_2_0   3L /* please use HTTP 2 in the request */
  ------------------
  |  Branch (291:3): [True: 106, False: 6.83k]
  ------------------
  292|    108|  case CURL_HTTP_VERSION_2TLS:
  ------------------
  |  | 2342|    108|#define CURL_HTTP_VERSION_2TLS  4L /* use version 2 for HTTPS, version 1.1 for
  ------------------
  |  Branch (292:3): [True: 2, False: 6.94k]
  ------------------
  293|  5.26k|  case CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE:
  ------------------
  |  | 2344|  5.26k|#define CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE 5L /* please use HTTP 2 without
  ------------------
  |  Branch (293:3): [True: 5.15k, False: 1.79k]
  ------------------
  294|       |    /* accepted */
  295|  5.26k|    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|    310|  default:
  ------------------
  |  Branch (303:3): [True: 310, False: 6.63k]
  ------------------
  304|       |    /* not accepted */
  305|    310|    if(arg < CURL_HTTP_VERSION_NONE)
  ------------------
  |  | 2336|    310|#define CURL_HTTP_VERSION_NONE  0L /* setting this means we do not care, and
  ------------------
  |  Branch (305:8): [True: 134, False: 176]
  ------------------
  306|    134|      return CURLE_BAD_FUNCTION_ARGUMENT;
  307|    176|    return CURLE_UNSUPPORTED_PROTOCOL;
  308|  6.94k|  }
  309|  6.63k|  data->set.httpwant = (unsigned char)arg;
  310|  6.63k|  return CURLE_OK;
  311|  6.94k|}
setopt.c:setopt_long_proxy:
  979|  1.12k|{
  980|  1.12k|  struct UserDefined *s = &data->set;
  981|       |
  982|  1.12k|  switch(option) {
  983|      0|  case CURLOPT_PROXYPORT:
  ------------------
  |  Branch (983:3): [True: 0, False: 1.12k]
  ------------------
  984|      0|    if((arg < 0) || (arg > UINT16_MAX))
  ------------------
  |  Branch (984:8): [True: 0, False: 0]
  |  Branch (984:21): [True: 0, False: 0]
  ------------------
  985|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
  986|      0|    if(arg != s->proxyport)
  ------------------
  |  Branch (986:8): [True: 0, False: 0]
  ------------------
  987|      0|      changeproxy(data);
  988|      0|    s->proxyport = (uint16_t)arg;
  989|      0|    break;
  990|      0|  case CURLOPT_PROXYAUTH:
  ------------------
  |  Branch (990:3): [True: 0, False: 1.12k]
  ------------------
  991|      0|    return httpauth(data, TRUE, (unsigned long)arg);
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  992|      0|  case CURLOPT_PROXYTYPE:
  ------------------
  |  Branch (992:3): [True: 0, False: 1.12k]
  ------------------
  993|      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 (993:8): [True: 0, False: 0]
  |  Branch (993:34): [True: 0, False: 0]
  ------------------
  994|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
  995|      0|#ifndef USE_PROXY_HTTP3
  996|      0|    if(arg == CURLPROXY_HTTPS3)
  ------------------
  |  |  805|      0|#define CURLPROXY_HTTPS3          8L /* HTTPS and attempt HTTP/3
  ------------------
  |  Branch (996:8): [True: 0, False: 0]
  ------------------
  997|      0|      return CURLE_NOT_BUILT_IN;
  998|      0|#endif
  999|      0|    s->proxytype = (unsigned char)arg;
 1000|      0|    break;
 1001|      0|  case CURLOPT_SOCKS5_AUTH:
  ------------------
  |  Branch (1001:3): [True: 0, False: 1.12k]
  ------------------
 1002|      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 (1002:8): [True: 0, False: 0]
  ------------------
 1003|      0|      return CURLE_NOT_BUILT_IN;
 1004|      0|    s->socks5auth = (unsigned char)arg;
 1005|      0|    break;
 1006|  1.12k|  default:
  ------------------
  |  Branch (1006:3): [True: 1.12k, False: 0]
  ------------------
 1007|  1.12k|    return CURLE_UNKNOWN_OPTION;
 1008|  1.12k|  }
 1009|      0|  return CURLE_OK;
 1010|  1.12k|}
setopt.c:setopt_long_ssl:
  916|  1.12k|{
  917|  1.12k|#ifdef USE_SSL
  918|  1.12k|  CURLcode result = CURLE_OK;
  919|  1.12k|  struct UserDefined *s = &data->set;
  920|  1.12k|  switch(option) {
  921|      0|  case CURLOPT_CA_CACHE_TIMEOUT:
  ------------------
  |  Branch (921:3): [True: 0, False: 1.12k]
  ------------------
  922|      0|    if(Curl_ssl_supports(data, SSLSUPP_CA_CACHE)) {
  ------------------
  |  |   43|      0|#define SSLSUPP_CA_CACHE     (1 << 8)
  ------------------
  |  Branch (922:8): [True: 0, False: 0]
  ------------------
  923|      0|      result = value_range(&arg, -1, -1, INT_MAX);
  924|      0|      if(!result)
  ------------------
  |  Branch (924:10): [True: 0, False: 0]
  ------------------
  925|      0|        s->general_ssl.ca_cache_timeout = (int)arg;
  926|      0|    }
  927|      0|    else
  928|      0|      result = CURLE_NOT_BUILT_IN;
  929|      0|    break;
  930|      0|  case CURLOPT_SSLVERSION:
  ------------------
  |  Branch (930:3): [True: 0, False: 1.12k]
  ------------------
  931|      0|#ifndef CURL_DISABLE_PROXY
  932|      0|  case CURLOPT_PROXY_SSLVERSION:
  ------------------
  |  Branch (932:3): [True: 0, False: 1.12k]
  ------------------
  933|      0|#endif
  934|      0|    return Curl_setopt_SSLVERSION(data, option, arg);
  935|      0|  case CURLOPT_SSL_FALSESTART:
  ------------------
  |  Branch (935:3): [True: 0, False: 1.12k]
  ------------------
  936|      0|    result = CURLE_NOT_BUILT_IN;
  937|      0|    break;
  938|      0|  case CURLOPT_USE_SSL:
  ------------------
  |  Branch (938:3): [True: 0, False: 1.12k]
  ------------------
  939|      0|    if((arg < CURLUSESSL_NONE) || (arg >= CURLUSESSL_LAST))
  ------------------
  |  |  932|      0|#define CURLUSESSL_NONE    0L /* do not attempt to use SSL */
  ------------------
  |  Branch (939:8): [True: 0, False: 0]
  |  Branch (939:35): [True: 0, False: 0]
  ------------------
  940|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
  941|      0|    else
  942|      0|      s->use_ssl = (unsigned char)arg;
  943|      0|    break;
  944|      0|  case CURLOPT_SSL_OPTIONS:
  ------------------
  |  Branch (944:3): [True: 0, False: 1.12k]
  ------------------
  945|      0|    s->ssl.primary.ssl_options = (unsigned char)(arg & 0xff);
  946|      0|    break;
  947|      0|#ifndef CURL_DISABLE_PROXY
  948|      0|  case CURLOPT_PROXY_SSL_OPTIONS:
  ------------------
  |  Branch (948:3): [True: 0, False: 1.12k]
  ------------------
  949|      0|    s->proxy_ssl.primary.ssl_options = (unsigned char)(arg & 0xff);
  950|      0|    break;
  951|      0|#endif
  952|      0|  case CURLOPT_SSL_ENABLE_NPN:
  ------------------
  |  Branch (952:3): [True: 0, False: 1.12k]
  ------------------
  953|      0|    break;
  954|      0|  case CURLOPT_SSLENGINE_DEFAULT:
  ------------------
  |  Branch (954:3): [True: 0, False: 1.12k]
  ------------------
  955|      0|    curlx_safefree(s->str[STRING_SSL_ENGINE]);
  ------------------
  |  | 1340|      0|  do {                      \
  |  | 1341|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|      0|    (ptr) = NULL;           \
  |  | 1343|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  956|      0|    result = Curl_ssl_set_engine_default(data);
  957|      0|    break;
  958|  1.12k|  default:
  ------------------
  |  Branch (958:3): [True: 1.12k, False: 0]
  ------------------
  959|  1.12k|    return CURLE_UNKNOWN_OPTION;
  960|  1.12k|  }
  961|      0|  return result;
  962|       |#else  /* USE_SSL */
  963|       |  (void)data;
  964|       |  (void)option;
  965|       |  (void)arg;
  966|       |  return CURLE_UNKNOWN_OPTION;
  967|       |#endif /* !USE_SSL */
  968|  1.12k|}
setopt.c:setopt_long_proto:
 1098|  1.12k|{
 1099|  1.12k|  CURLcode result = CURLE_OK;
 1100|  1.12k|  struct UserDefined *s = &data->set;
 1101|       |
 1102|  1.12k|  switch(option) {
 1103|      0|#ifndef CURL_DISABLE_TFTP
 1104|      0|  case CURLOPT_TFTP_BLKSIZE:
  ------------------
  |  Branch (1104:3): [True: 0, False: 1.12k]
  ------------------
 1105|      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
  ------------------
 1106|      0|    if(!result)
  ------------------
  |  Branch (1106:8): [True: 0, False: 0]
  ------------------
 1107|      0|      s->tftp_blksize = (unsigned short)arg;
 1108|      0|    break;
 1109|      0|#endif
 1110|      0|#ifndef CURL_DISABLE_NETRC
 1111|      0|  case CURLOPT_NETRC:
  ------------------
  |  Branch (1111:3): [True: 0, False: 1.12k]
  ------------------
 1112|      0|    if((arg < CURL_NETRC_IGNORED) || (arg >= CURL_NETRC_LAST))
  ------------------
  |  | 2379|      0|#define CURL_NETRC_IGNORED  0L /* The .netrc is never read.
  ------------------
  |  Branch (1112:8): [True: 0, False: 0]
  |  Branch (1112:38): [True: 0, False: 0]
  ------------------
 1113|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
 1114|      0|    else
 1115|      0|      s->use_netrc = (unsigned char)arg;
 1116|      0|    break;
 1117|      0|#endif
 1118|      0|#ifndef CURL_DISABLE_FTP
 1119|      0|  case CURLOPT_FTP_FILEMETHOD:
  ------------------
  |  Branch (1119:3): [True: 0, False: 1.12k]
  ------------------
 1120|      0|    if((arg < CURLFTPMETHOD_DEFAULT) || (arg >= CURLFTPMETHOD_LAST))
  ------------------
  |  | 1027|      0|#define CURLFTPMETHOD_DEFAULT   0L /* let libcurl pick */
  ------------------
  |  Branch (1120:8): [True: 0, False: 0]
  |  Branch (1120:41): [True: 0, False: 0]
  ------------------
 1121|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
 1122|      0|    else
 1123|      0|      s->ftp_filemethod = (unsigned char)arg;
 1124|      0|    break;
 1125|      0|  case CURLOPT_FTP_SSL_CCC:
  ------------------
  |  Branch (1125:3): [True: 0, False: 1.12k]
  ------------------
 1126|      0|    if((arg < CURLFTPSSL_CCC_NONE) || (arg >= CURLFTPSSL_CCC_LAST))
  ------------------
  |  |  997|      0|#define CURLFTPSSL_CCC_NONE    0L /* do not send CCC */
  ------------------
  |  Branch (1126:8): [True: 0, False: 0]
  |  Branch (1126:39): [True: 0, False: 0]
  ------------------
 1127|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
 1128|      0|    else
 1129|      0|      s->ftp_ccc = (unsigned char)arg;
 1130|      0|    break;
 1131|      0|  case CURLOPT_FTPSSLAUTH:
  ------------------
  |  Branch (1131:3): [True: 0, False: 1.12k]
  ------------------
 1132|      0|    if((arg < CURLFTPAUTH_DEFAULT) || (arg >= CURLFTPAUTH_LAST))
  ------------------
  |  | 1006|      0|#define CURLFTPAUTH_DEFAULT 0L /* let libcurl decide */
  ------------------
  |  Branch (1132:8): [True: 0, False: 0]
  |  Branch (1132:39): [True: 0, False: 0]
  ------------------
 1133|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
 1134|      0|    else
 1135|      0|      s->ftpsslauth = (unsigned char)arg;
 1136|      0|    break;
 1137|      0|  case CURLOPT_ACCEPTTIMEOUT_MS:
  ------------------
  |  Branch (1137:3): [True: 0, False: 1.12k]
  ------------------
 1138|      0|    return setopt_set_timeout_ms(&s->accepttimeout, arg);
 1139|      0|#endif
 1140|      0|#if !defined(CURL_DISABLE_FTP) || defined(USE_SSH)
 1141|      0|  case CURLOPT_FTP_CREATE_MISSING_DIRS:
  ------------------
  |  Branch (1141:3): [True: 0, False: 1.12k]
  ------------------
 1142|      0|    if((arg < CURLFTP_CREATE_DIR_NONE) || (arg > CURLFTP_CREATE_DIR_RETRY))
  ------------------
  |  | 1015|      0|#define CURLFTP_CREATE_DIR_NONE  0L /* do NOT create missing dirs! */
  ------------------
                  if((arg < CURLFTP_CREATE_DIR_NONE) || (arg > CURLFTP_CREATE_DIR_RETRY))
  ------------------
  |  | 1019|      0|#define CURLFTP_CREATE_DIR_RETRY 2L /* (FTP only) if CWD fails, try MKD and
  ------------------
  |  Branch (1142:8): [True: 0, False: 0]
  |  Branch (1142:43): [True: 0, False: 0]
  ------------------
 1143|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
 1144|      0|    else
 1145|      0|      s->ftp_create_missing_dirs = (unsigned char)arg;
 1146|      0|    break;
 1147|      0|  case CURLOPT_NEW_FILE_PERMS:
  ------------------
  |  Branch (1147:3): [True: 0, False: 1.12k]
  ------------------
 1148|      0|    if((arg < 0) || (arg > 0777))
  ------------------
  |  Branch (1148:8): [True: 0, False: 0]
  |  Branch (1148:21): [True: 0, False: 0]
  ------------------
 1149|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
 1150|      0|    else
 1151|      0|      s->new_file_perms = (unsigned int)arg;
 1152|      0|    break;
 1153|      0|#endif
 1154|      0|#ifndef CURL_DISABLE_RTSP
 1155|      0|  case CURLOPT_RTSP_REQUEST:
  ------------------
  |  Branch (1155:3): [True: 0, False: 1.12k]
  ------------------
 1156|      0|    return setopt_RTSP_REQUEST(data, arg);
 1157|      0|  case CURLOPT_RTSP_CLIENT_CSEQ:
  ------------------
  |  Branch (1157:3): [True: 0, False: 1.12k]
  ------------------
 1158|      0|    result = value_range(&arg, 0, 0, INT_MAX);
 1159|      0|    if(!result)
  ------------------
  |  Branch (1159:8): [True: 0, False: 0]
  ------------------
 1160|      0|      data->state.rtsp_next_client_CSeq = (uint32_t)arg;
 1161|      0|    break;
 1162|      0|  case CURLOPT_RTSP_SERVER_CSEQ:
  ------------------
  |  Branch (1162:3): [True: 0, False: 1.12k]
  ------------------
 1163|      0|    result = value_range(&arg, 0, 0, INT_MAX);
 1164|      0|    if(!result)
  ------------------
  |  Branch (1164:8): [True: 0, False: 0]
  ------------------
 1165|      0|      data->state.rtsp_next_server_CSeq = (uint32_t)arg;
 1166|      0|    break;
 1167|      0|#endif
 1168|       |#ifdef USE_SSH
 1169|       |  case CURLOPT_SSH_AUTH_TYPES:
 1170|       |    s->ssh_auth_types = (uint32_t)arg;
 1171|       |    break;
 1172|       |  case CURLOPT_NEW_DIRECTORY_PERMS:
 1173|       |    if((arg < 0) || (arg > 0777))
 1174|       |      result = CURLE_BAD_FUNCTION_ARGUMENT;
 1175|       |    else
 1176|       |      s->new_directory_perms = (unsigned int)arg;
 1177|       |    break;
 1178|       |#endif
 1179|      0|  case CURLOPT_PROTOCOLS:
  ------------------
  |  Branch (1179:3): [True: 0, False: 1.12k]
  ------------------
 1180|      0|    s->allowed_protocols = (curl_prot_t)arg;
 1181|      0|    break;
 1182|      0|  case CURLOPT_REDIR_PROTOCOLS:
  ------------------
  |  Branch (1182:3): [True: 0, False: 1.12k]
  ------------------
 1183|      0|    s->redir_protocols = (curl_prot_t)arg;
 1184|      0|    break;
 1185|      0|#ifndef CURL_DISABLE_WEBSOCKETS
 1186|  1.12k|  case CURLOPT_WS_OPTIONS:
  ------------------
  |  Branch (1186:3): [True: 1.12k, False: 0]
  ------------------
 1187|  1.12k|    s->ws_raw_mode = (bool)(arg & CURLWS_RAW_MODE);
  ------------------
  |  |   89|  1.12k|#define CURLWS_RAW_MODE   (1L << 0)
  ------------------
 1188|  1.12k|    s->ws_no_auto_pong = (bool)(arg & CURLWS_NOAUTOPONG);
  ------------------
  |  |   90|  1.12k|#define CURLWS_NOAUTOPONG (1L << 1)
  ------------------
 1189|  1.12k|    break;
 1190|      0|#endif
 1191|      0|  default:
  ------------------
  |  Branch (1191:3): [True: 0, False: 1.12k]
  ------------------
 1192|      0|    return CURLE_UNKNOWN_OPTION;
 1193|  1.12k|  }
 1194|  1.12k|  return result;
 1195|  1.12k|}
setopt.c:setopt_slist:
 1302|  9.97k|{
 1303|  9.97k|  CURLcode result = CURLE_OK;
 1304|  9.97k|  struct UserDefined *s = &data->set;
 1305|  9.97k|  switch(option) {
 1306|      0|#ifndef CURL_DISABLE_PROXY
 1307|      0|  case CURLOPT_PROXYHEADER:
  ------------------
  |  Branch (1307:3): [True: 0, False: 9.97k]
  ------------------
 1308|       |    /*
 1309|       |     * Set a list with proxy headers to use (or replace internals with)
 1310|       |     *
 1311|       |     * Since CURLOPT_HTTPHEADER was the only way to set HTTP headers for a
 1312|       |     * long time we remain doing it this way until CURLOPT_PROXYHEADER is
 1313|       |     * used. As soon as this option has been used, if set to anything but
 1314|       |     * NULL, custom headers for proxies are only picked from this list.
 1315|       |     *
 1316|       |     * Set this option to NULL to restore the previous behavior.
 1317|       |     */
 1318|      0|    s->proxyheaders = slist;
 1319|      0|    break;
 1320|      0|#endif
 1321|      0|#ifndef CURL_DISABLE_HTTP
 1322|      0|  case CURLOPT_HTTP200ALIASES:
  ------------------
  |  Branch (1322:3): [True: 0, False: 9.97k]
  ------------------
 1323|       |    /*
 1324|       |     * Set a list of aliases for HTTP 200 in response header
 1325|       |     */
 1326|      0|    s->http200aliases = slist;
 1327|      0|    break;
 1328|      0|#endif
 1329|      0|#if !defined(CURL_DISABLE_FTP) || defined(USE_SSH)
 1330|      0|  case CURLOPT_POSTQUOTE:
  ------------------
  |  Branch (1330:3): [True: 0, False: 9.97k]
  ------------------
 1331|       |    /*
 1332|       |     * List of RAW FTP commands to use after a transfer
 1333|       |     */
 1334|      0|    s->postquote = slist;
 1335|      0|    break;
 1336|      0|  case CURLOPT_PREQUOTE:
  ------------------
  |  Branch (1336:3): [True: 0, False: 9.97k]
  ------------------
 1337|       |    /*
 1338|       |     * List of RAW FTP commands to use prior to RETR (Wesley Laxton)
 1339|       |     */
 1340|      0|    s->prequote = slist;
 1341|      0|    break;
 1342|      0|  case CURLOPT_QUOTE:
  ------------------
  |  Branch (1342:3): [True: 0, False: 9.97k]
  ------------------
 1343|       |    /*
 1344|       |     * List of RAW FTP commands to use before a transfer
 1345|       |     */
 1346|      0|    s->quote = slist;
 1347|      0|    break;
 1348|      0|#endif
 1349|      0|  case CURLOPT_RESOLVE:
  ------------------
  |  Branch (1349:3): [True: 0, False: 9.97k]
  ------------------
 1350|       |    /*
 1351|       |     * List of HOST:PORT:[addresses] strings to populate the DNS cache with
 1352|       |     * Entries added this way will remain in the cache until explicitly
 1353|       |     * removed or the handle is cleaned up.
 1354|       |     *
 1355|       |     * Prefix the HOST with plus sign (+) to have the entry expire like
 1356|       |     * automatically added entries.
 1357|       |     *
 1358|       |     * Prefix the HOST with dash (-) to _remove_ the entry from the cache.
 1359|       |     *
 1360|       |     * This API can remove any entry from the DNS cache, but only entries
 1361|       |     * that are not actually in use right now will be pruned immediately.
 1362|       |     */
 1363|      0|    s->resolve = slist;
 1364|      0|    data->state.resolve = s->resolve;
 1365|      0|    break;
 1366|      0|#if !defined(CURL_DISABLE_HTTP) || !defined(CURL_DISABLE_MIME)
 1367|      0|  case CURLOPT_HTTPHEADER:
  ------------------
  |  Branch (1367:3): [True: 0, False: 9.97k]
  ------------------
 1368|       |    /*
 1369|       |     * Set a list with HTTP headers to use (or replace internals with)
 1370|       |     */
 1371|      0|    s->headers = slist;
 1372|      0|    break;
 1373|      0|#endif
 1374|      0|#ifndef CURL_DISABLE_TELNET
 1375|      0|  case CURLOPT_TELNETOPTIONS:
  ------------------
  |  Branch (1375:3): [True: 0, False: 9.97k]
  ------------------
 1376|       |    /*
 1377|       |     * Set a linked list of telnet options
 1378|       |     */
 1379|      0|    s->telnet_options = slist;
 1380|      0|    break;
 1381|      0|#endif
 1382|      0|#ifndef CURL_DISABLE_SMTP
 1383|      0|  case CURLOPT_MAIL_RCPT:
  ------------------
  |  Branch (1383:3): [True: 0, False: 9.97k]
  ------------------
 1384|       |    /* Set the list of mail recipients */
 1385|      0|    s->mail_rcpt = slist;
 1386|      0|    break;
 1387|      0|#endif
 1388|  9.97k|  case CURLOPT_CONNECT_TO:
  ------------------
  |  Branch (1388:3): [True: 9.97k, False: 0]
  ------------------
 1389|  9.97k|    s->connect_to = slist;
 1390|  9.97k|    break;
 1391|      0|  default:
  ------------------
  |  Branch (1391:3): [True: 0, False: 9.97k]
  ------------------
 1392|      0|    return CURLE_UNKNOWN_OPTION;
 1393|  9.97k|  }
 1394|  9.97k|  return result;
 1395|  9.97k|}
setopt.c:setopt_cptr:
 2479|   111k|{
 2480|   111k|  typedef CURLcode (*ptrfunc)(struct Curl_easy *data, CURLoption option,
 2481|   111k|                              char *ptr);
 2482|   111k|  static const ptrfunc setopt_call[] = {
 2483|   111k|#ifndef CURL_DISABLE_PROXY
 2484|   111k|    setopt_cptr_proxy,
 2485|   111k|#endif
 2486|   111k|#if defined(USE_SSL) || defined(USE_SSH)
 2487|   111k|    setopt_cptr_ssl,
 2488|   111k|#endif
 2489|       |#ifdef USE_SSH
 2490|       |    setopt_cptr_ssh,
 2491|       |#endif
 2492|   111k|#ifndef CURL_DISABLE_FTP
 2493|   111k|    setopt_cptr_ftp,
 2494|   111k|#endif
 2495|   111k|#if !defined(CURL_DISABLE_HTTP) || !defined(CURL_DISABLE_MQTT)
 2496|   111k|    setopt_cptr_http_mqtt,
 2497|   111k|#endif
 2498|   111k|    setopt_cptr_net,
 2499|   111k|    setopt_cptr_misc,
 2500|   111k|  };
 2501|   111k|  size_t i;
 2502|       |
 2503|   611k|  for(i = 0; i < CURL_ARRAYSIZE(setopt_call); i++) {
  ------------------
  |  | 1307|   611k|#define CURL_ARRAYSIZE(A) (sizeof(A) / sizeof((A)[0]))
  ------------------
  |  Branch (2503:14): [True: 611k, False: 0]
  ------------------
 2504|   611k|    CURLcode result = setopt_call[i](data, option, ptr);
 2505|   611k|    if(result != CURLE_UNKNOWN_OPTION)
  ------------------
  |  Branch (2505:8): [True: 111k, False: 500k]
  ------------------
 2506|   111k|      return result;
 2507|   611k|  }
 2508|      0|  return CURLE_UNKNOWN_OPTION;
 2509|   111k|}
setopt.c:setopt_cptr_proxy:
 1618|   111k|{
 1619|   111k|  CURLcode result = CURLE_OK;
 1620|   111k|  struct UserDefined *s = &data->set;
 1621|   111k|  switch(option) {
 1622|      0|  case CURLOPT_PROXYUSERPWD: {
  ------------------
  |  Branch (1622:3): [True: 0, False: 111k]
  ------------------
 1623|       |    /*
 1624|       |     * user:password needed to use the proxy
 1625|       |     */
 1626|      0|    char *u = NULL;
 1627|      0|    char *p = NULL;
 1628|      0|    result = setstropt_userpwd(ptr, &u, &p);
 1629|       |
 1630|       |    /* URL decode the components */
 1631|      0|    if(!result) {
  ------------------
  |  Branch (1631:8): [True: 0, False: 0]
  ------------------
 1632|      0|      curlx_safefree(s->str[STRING_PROXYUSERNAME]);
  ------------------
  |  | 1340|      0|  do {                      \
  |  | 1341|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|      0|    (ptr) = NULL;           \
  |  | 1343|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1633|      0|      curlx_safefree(s->str[STRING_PROXYPASSWORD]);
  ------------------
  |  | 1340|      0|  do {                      \
  |  | 1341|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|      0|    (ptr) = NULL;           \
  |  | 1343|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1634|      0|      if(u)
  ------------------
  |  Branch (1634:10): [True: 0, False: 0]
  ------------------
 1635|      0|        result = Curl_urldecode(u, 0, &s->str[STRING_PROXYUSERNAME], NULL,
 1636|      0|                                REJECT_ZERO);
 1637|      0|    }
 1638|      0|    if(!result && p)
  ------------------
  |  Branch (1638:8): [True: 0, False: 0]
  |  Branch (1638:19): [True: 0, False: 0]
  ------------------
 1639|      0|      result = Curl_urldecode(p, 0, &s->str[STRING_PROXYPASSWORD], NULL,
 1640|      0|                              REJECT_ZERO);
 1641|      0|    curlx_free(u);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1642|      0|    curlx_strzero(p);
 1643|      0|    curlx_free(p);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1644|      0|    break;
 1645|      0|  }
 1646|      0|  case CURLOPT_PROXYUSERNAME:
  ------------------
  |  Branch (1646:3): [True: 0, False: 111k]
  ------------------
 1647|       |    /*
 1648|       |     * authentication username to use in the operation
 1649|       |     */
 1650|      0|    return Curl_setstropt(&s->str[STRING_PROXYUSERNAME], ptr);
 1651|       |
 1652|      0|  case CURLOPT_PROXYPASSWORD:
  ------------------
  |  Branch (1652:3): [True: 0, False: 111k]
  ------------------
 1653|       |    /*
 1654|       |     * authentication password to use in the operation
 1655|       |     */
 1656|      0|    return Curl_setstropt(&s->str[STRING_PROXYPASSWORD], ptr);
 1657|       |
 1658|      0|  case CURLOPT_NOPROXY:
  ------------------
  |  Branch (1658:3): [True: 0, False: 111k]
  ------------------
 1659|       |    /*
 1660|       |     * proxy exception list
 1661|       |     */
 1662|      0|    return Curl_setstropt(&s->str[STRING_NOPROXY], ptr);
 1663|      0|  case CURLOPT_PROXY_SSLCERT:
  ------------------
  |  Branch (1663:3): [True: 0, False: 111k]
  ------------------
 1664|       |    /*
 1665|       |     * String that holds filename of the SSL certificate to use for proxy
 1666|       |     */
 1667|      0|    return Curl_setstropt(&s->str[STRING_CERT_PROXY], ptr);
 1668|      0|  case CURLOPT_PROXY_SSLCERTTYPE:
  ------------------
  |  Branch (1668:3): [True: 0, False: 111k]
  ------------------
 1669|       |    /*
 1670|       |     * String that holds file type of the SSL certificate to use for proxy
 1671|       |     */
 1672|      0|    return Curl_setstropt(&s->str[STRING_CERT_TYPE_PROXY], ptr);
 1673|      0|  case CURLOPT_PROXY_SSLKEY:
  ------------------
  |  Branch (1673:3): [True: 0, False: 111k]
  ------------------
 1674|       |    /*
 1675|       |     * String that holds filename of the SSL key to use for proxy
 1676|       |     */
 1677|      0|    return Curl_setstropt(&s->str[STRING_KEY_PROXY], ptr);
 1678|      0|  case CURLOPT_PROXY_KEYPASSWD:
  ------------------
  |  Branch (1678:3): [True: 0, False: 111k]
  ------------------
 1679|       |    /*
 1680|       |     * String that holds the SSL private key password for proxy.
 1681|       |     */
 1682|      0|    return Curl_setstropt(&s->str[STRING_KEY_PASSWD_PROXY], ptr);
 1683|      0|  case CURLOPT_PROXY_SSLKEYTYPE:
  ------------------
  |  Branch (1683:3): [True: 0, False: 111k]
  ------------------
 1684|       |    /*
 1685|       |     * String that holds file type of the SSL key to use for proxy
 1686|       |     */
 1687|      0|    return Curl_setstropt(&s->str[STRING_KEY_TYPE_PROXY], ptr);
 1688|      0|  case CURLOPT_PROXY_SSL_CIPHER_LIST:
  ------------------
  |  Branch (1688:3): [True: 0, False: 111k]
  ------------------
 1689|      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 (1689:8): [True: 0, False: 0]
  ------------------
 1690|       |      /* set a list of cipher we want to use in the SSL connection for proxy */
 1691|      0|      return Curl_setstropt(&s->str[STRING_SSL_CIPHER_LIST_PROXY], ptr);
 1692|      0|    }
 1693|      0|    else
 1694|      0|      return CURLE_NOT_BUILT_IN;
 1695|      0|  case CURLOPT_PROXY_TLS13_CIPHERS:
  ------------------
  |  Branch (1695:3): [True: 0, False: 111k]
  ------------------
 1696|      0|    if(Curl_ssl_supports(data, SSLSUPP_TLS13_CIPHERSUITES))
  ------------------
  |  |   40|      0|#define SSLSUPP_TLS13_CIPHERSUITES (1 << 5) /* supports TLS 1.3 ciphersuites */
  ------------------
  |  Branch (1696:8): [True: 0, False: 0]
  ------------------
 1697|       |      /* set preferred list of TLS 1.3 cipher suites for proxy */
 1698|      0|      return Curl_setstropt(&s->str[STRING_SSL_CIPHER13_LIST_PROXY], ptr);
 1699|      0|    else
 1700|      0|      return CURLE_NOT_BUILT_IN;
 1701|      0|  case CURLOPT_PROXY:
  ------------------
  |  Branch (1701:3): [True: 0, False: 111k]
  ------------------
 1702|       |    /*
 1703|       |     * Set proxy server:port to use as proxy.
 1704|       |     *
 1705|       |     * If the proxy is set to "" (and CURLOPT_PRE_PROXY is set to "" or NULL)
 1706|       |     * we explicitly say that we do not want to use a proxy (even though there
 1707|       |     * might be environment variables saying so).
 1708|       |     *
 1709|       |     * Setting it to NULL, means no proxy but allows the environment variables
 1710|       |     * to decide for us (if CURLOPT_PRE_PROXY setting it to NULL).
 1711|       |     */
 1712|      0|    return setproxy(data, ptr);
 1713|      0|  case CURLOPT_PRE_PROXY:
  ------------------
  |  Branch (1713:3): [True: 0, False: 111k]
  ------------------
 1714|       |    /*
 1715|       |     * Set proxy server:port to use as SOCKS proxy.
 1716|       |     *
 1717|       |     * If the proxy is set to "" or NULL we explicitly say that we do not want
 1718|       |     * to use the socks proxy.
 1719|       |     */
 1720|      0|    return Curl_setstropt(&s->str[STRING_PRE_PROXY], ptr);
 1721|      0|  case CURLOPT_SOCKS5_GSSAPI_SERVICE:
  ------------------
  |  Branch (1721:3): [True: 0, False: 111k]
  ------------------
 1722|      0|  case CURLOPT_PROXY_SERVICE_NAME:
  ------------------
  |  Branch (1722:3): [True: 0, False: 111k]
  ------------------
 1723|       |    /*
 1724|       |     * Set proxy authentication service name for Kerberos 5 and SPNEGO
 1725|       |     */
 1726|      0|    return Curl_setstropt(&s->str[STRING_PROXY_SERVICE_NAME], ptr);
 1727|      0|  case CURLOPT_PROXY_PINNEDPUBLICKEY:
  ------------------
  |  Branch (1727:3): [True: 0, False: 111k]
  ------------------
 1728|       |    /*
 1729|       |     * Set pinned public key for SSL connection.
 1730|       |     * Specify filename of the public key in DER format.
 1731|       |     */
 1732|      0|#ifdef USE_SSL
 1733|      0|    if(Curl_ssl_supports(data, SSLSUPP_PINNEDPUBKEY))
  ------------------
  |  |   37|      0|#define SSLSUPP_PINNEDPUBKEY (1 << 2) /* supports CURLOPT_PINNEDPUBLICKEY */
  ------------------
  |  Branch (1733:8): [True: 0, False: 0]
  ------------------
 1734|      0|      return Curl_setstropt(&s->str[STRING_SSL_PINNEDPUBLICKEY_PROXY], ptr);
 1735|      0|#endif
 1736|      0|    return CURLE_NOT_BUILT_IN;
 1737|       |
 1738|      0|  case CURLOPT_HAPROXY_CLIENT_IP:
  ------------------
  |  Branch (1738:3): [True: 0, False: 111k]
  ------------------
 1739|       |    /*
 1740|       |     * Set the client IP to send through HAProxy PROXY protocol
 1741|       |     */
 1742|      0|    result = Curl_setstropt(&s->str[STRING_HAPROXY_CLIENT_IP], ptr);
 1743|       |
 1744|       |    /* enable the HAProxy protocol if an IP is provided */
 1745|      0|    s->haproxyprotocol = !!s->str[STRING_HAPROXY_CLIENT_IP];
 1746|      0|    break;
 1747|      0|  case CURLOPT_PROXY_CAINFO:
  ------------------
  |  Branch (1747:3): [True: 0, False: 111k]
  ------------------
 1748|       |    /*
 1749|       |     * Set CA info SSL connection for proxy. Specify filename of the
 1750|       |     * CA certificate
 1751|       |     */
 1752|      0|    result = Curl_setstropt(&s->str[STRING_SSL_CAFILE_PROXY], ptr);
 1753|      0|    s->proxy_ssl.custom_cafile = !!s->str[STRING_SSL_CAFILE_PROXY];
 1754|      0|    return result;
 1755|      0|  case CURLOPT_PROXY_CRLFILE:
  ------------------
  |  Branch (1755:3): [True: 0, False: 111k]
  ------------------
 1756|       |    /*
 1757|       |     * Set CRL file info for SSL connection for proxy. Specify filename of the
 1758|       |     * CRL to check certificates revocation
 1759|       |     */
 1760|      0|    if(Curl_ssl_supports(data, SSLSUPP_CRLFILE))
  ------------------
  |  |   48|      0|#define SSLSUPP_CRLFILE      (1 << 13) /* supports CURLOPT_CRLFILE */
  ------------------
  |  Branch (1760:8): [True: 0, False: 0]
  ------------------
 1761|      0|      return Curl_setstropt(&s->str[STRING_SSL_CRLFILE_PROXY], ptr);
 1762|      0|    return CURLE_NOT_BUILT_IN;
 1763|      0|  case CURLOPT_PROXY_ISSUERCERT:
  ------------------
  |  Branch (1763:3): [True: 0, False: 111k]
  ------------------
 1764|       |    /*
 1765|       |     * Set Issuer certificate file to check certificates issuer
 1766|       |     */
 1767|      0|    if(Curl_ssl_supports(data, SSLSUPP_ISSUERCERT))
  ------------------
  |  |   46|      0|#define SSLSUPP_ISSUERCERT   (1 << 11) /* supports CURLOPT_ISSUERCERT */
  ------------------
  |  Branch (1767:8): [True: 0, False: 0]
  ------------------
 1768|      0|      return Curl_setstropt(&s->str[STRING_SSL_ISSUERCERT_PROXY], ptr);
 1769|      0|    return CURLE_NOT_BUILT_IN;
 1770|      0|  case CURLOPT_PROXY_CAPATH:
  ------------------
  |  Branch (1770:3): [True: 0, False: 111k]
  ------------------
 1771|       |    /*
 1772|       |     * Set CA path info for SSL connection proxy. Specify directory name of the
 1773|       |     * CA certificates which have been prepared using openssl c_rehash utility.
 1774|       |     */
 1775|      0|#ifdef USE_SSL
 1776|      0|    if(Curl_ssl_supports(data, SSLSUPP_CA_PATH)) {
  ------------------
  |  |   35|      0|#define SSLSUPP_CA_PATH      (1 << 0) /* supports CAPATH */
  ------------------
  |  Branch (1776:8): [True: 0, False: 0]
  ------------------
 1777|       |      /* This does not work on Windows. */
 1778|      0|      result = Curl_setstropt(&s->str[STRING_SSL_CAPATH_PROXY], ptr);
 1779|      0|      s->proxy_ssl.custom_capath = !!s->str[STRING_SSL_CAPATH_PROXY];
 1780|      0|      return result;
 1781|      0|    }
 1782|      0|#endif
 1783|      0|    return CURLE_NOT_BUILT_IN;
 1784|   111k|  default:
  ------------------
  |  Branch (1784:3): [True: 111k, False: 0]
  ------------------
 1785|   111k|    return CURLE_UNKNOWN_OPTION;
 1786|   111k|  }
 1787|      0|  return result;
 1788|   111k|}
setopt.c:setopt_cptr_ssl:
 1871|   111k|{
 1872|   111k|  CURLcode result = CURLE_OK;
 1873|   111k|  struct UserDefined *s = &data->set;
 1874|       |
 1875|   111k|  switch(option) {
 1876|      0|  case CURLOPT_KEYPASSWD:
  ------------------
  |  Branch (1876:3): [True: 0, False: 111k]
  ------------------
 1877|       |    /*
 1878|       |     * String that holds the SSL or SSH private key password.
 1879|       |     */
 1880|      0|    result = Curl_setstropt(&s->str[STRING_KEY_PASSWD], ptr);
 1881|      0|    break;
 1882|      0|#ifdef USE_SSL
 1883|      0|  case CURLOPT_CAINFO:
  ------------------
  |  Branch (1883:3): [True: 0, False: 111k]
  ------------------
 1884|       |    /*
 1885|       |     * Set CA info for SSL connection. Specify filename of the CA certificate
 1886|       |     */
 1887|      0|    result = Curl_setstropt(&s->str[STRING_SSL_CAFILE], ptr);
 1888|      0|    s->ssl.custom_cafile = !!s->str[STRING_SSL_CAFILE];
 1889|      0|    return result;
 1890|      0|  case CURLOPT_CAPATH:
  ------------------
  |  Branch (1890:3): [True: 0, False: 111k]
  ------------------
 1891|       |    /*
 1892|       |     * Set CA path info for SSL connection. Specify directory name of the CA
 1893|       |     * certificates which have been prepared using openssl c_rehash utility.
 1894|       |     */
 1895|      0|    if(Curl_ssl_supports(data, SSLSUPP_CA_PATH)) {
  ------------------
  |  |   35|      0|#define SSLSUPP_CA_PATH      (1 << 0) /* supports CAPATH */
  ------------------
  |  Branch (1895:8): [True: 0, False: 0]
  ------------------
 1896|       |      /* This does not work on Windows. */
 1897|      0|      result = Curl_setstropt(&s->str[STRING_SSL_CAPATH], ptr);
 1898|      0|      s->ssl.custom_capath = !!s->str[STRING_SSL_CAPATH];
 1899|      0|      return result;
 1900|      0|    }
 1901|      0|    return CURLE_NOT_BUILT_IN;
 1902|      0|  case CURLOPT_CRLFILE:
  ------------------
  |  Branch (1902:3): [True: 0, False: 111k]
  ------------------
 1903|       |    /*
 1904|       |     * Set CRL file info for SSL connection. Specify filename of the CRL
 1905|       |     * to check certificates revocation
 1906|       |     */
 1907|      0|    if(Curl_ssl_supports(data, SSLSUPP_CRLFILE))
  ------------------
  |  |   48|      0|#define SSLSUPP_CRLFILE      (1 << 13) /* supports CURLOPT_CRLFILE */
  ------------------
  |  Branch (1907:8): [True: 0, False: 0]
  ------------------
 1908|      0|      return Curl_setstropt(&s->str[STRING_SSL_CRLFILE], ptr);
 1909|      0|    return CURLE_NOT_BUILT_IN;
 1910|      0|  case CURLOPT_SSL_CIPHER_LIST:
  ------------------
  |  Branch (1910:3): [True: 0, False: 111k]
  ------------------
 1911|      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 (1911:8): [True: 0, False: 0]
  ------------------
 1912|       |      /* set a list of cipher we want to use in the SSL connection */
 1913|      0|      return Curl_setstropt(&s->str[STRING_SSL_CIPHER_LIST], ptr);
 1914|      0|    else
 1915|      0|      return CURLE_NOT_BUILT_IN;
 1916|      0|  case CURLOPT_TLS13_CIPHERS:
  ------------------
  |  Branch (1916:3): [True: 0, False: 111k]
  ------------------
 1917|      0|    if(Curl_ssl_supports(data, SSLSUPP_TLS13_CIPHERSUITES))
  ------------------
  |  |   40|      0|#define SSLSUPP_TLS13_CIPHERSUITES (1 << 5) /* supports TLS 1.3 ciphersuites */
  ------------------
  |  Branch (1917:8): [True: 0, False: 0]
  ------------------
 1918|       |      /* set preferred list of TLS 1.3 cipher suites */
 1919|      0|      return Curl_setstropt(&s->str[STRING_SSL_CIPHER13_LIST], ptr);
 1920|      0|    else
 1921|      0|      return CURLE_NOT_BUILT_IN;
 1922|      0|  case CURLOPT_RANDOM_FILE:
  ------------------
  |  Branch (1922:3): [True: 0, False: 111k]
  ------------------
 1923|      0|    break;
 1924|      0|  case CURLOPT_EGDSOCKET:
  ------------------
  |  Branch (1924:3): [True: 0, False: 111k]
  ------------------
 1925|      0|    break;
 1926|      0|  case CURLOPT_SSL_CTX_DATA:
  ------------------
  |  Branch (1926:3): [True: 0, False: 111k]
  ------------------
 1927|       |    /*
 1928|       |     * Set an SSL_CTX callback parameter pointer
 1929|       |     */
 1930|      0|    if(Curl_ssl_supports(data, SSLSUPP_SSL_CTX)) {
  ------------------
  |  |   38|      0|#define SSLSUPP_SSL_CTX      (1 << 3) /* supports CURLOPT_SSL_CTX */
  ------------------
  |  Branch (1930:8): [True: 0, False: 0]
  ------------------
 1931|      0|      s->ssl.fsslctxp = ptr;
 1932|      0|      break;
 1933|      0|    }
 1934|      0|    else
 1935|      0|      return CURLE_NOT_BUILT_IN;
 1936|      0|  case CURLOPT_SSLCERT:
  ------------------
  |  Branch (1936:3): [True: 0, False: 111k]
  ------------------
 1937|       |    /*
 1938|       |     * String that holds filename of the SSL certificate to use
 1939|       |     */
 1940|      0|    return Curl_setstropt(&s->str[STRING_CERT], ptr);
 1941|      0|  case CURLOPT_SSLCERTTYPE:
  ------------------
  |  Branch (1941:3): [True: 0, False: 111k]
  ------------------
 1942|       |    /*
 1943|       |     * String that holds file type of the SSL certificate to use
 1944|       |     */
 1945|      0|    return Curl_setstropt(&s->str[STRING_CERT_TYPE], ptr);
 1946|      0|  case CURLOPT_SSLKEY:
  ------------------
  |  Branch (1946:3): [True: 0, False: 111k]
  ------------------
 1947|       |    /*
 1948|       |     * String that holds filename of the SSL key to use
 1949|       |     */
 1950|      0|    return Curl_setstropt(&s->str[STRING_KEY], ptr);
 1951|      0|  case CURLOPT_SSLKEYTYPE:
  ------------------
  |  Branch (1951:3): [True: 0, False: 111k]
  ------------------
 1952|       |    /*
 1953|       |     * String that holds file type of the SSL key to use
 1954|       |     */
 1955|      0|    return Curl_setstropt(&s->str[STRING_KEY_TYPE], ptr);
 1956|      0|  case CURLOPT_SSLENGINE:
  ------------------
  |  Branch (1956:3): [True: 0, False: 111k]
  ------------------
 1957|       |    /*
 1958|       |     * String that holds the SSL crypto engine.
 1959|       |     */
 1960|      0|    if(ptr && ptr[0]) {
  ------------------
  |  Branch (1960:8): [True: 0, False: 0]
  |  Branch (1960:15): [True: 0, False: 0]
  ------------------
 1961|      0|      result = Curl_setstropt(&s->str[STRING_SSL_ENGINE], ptr);
 1962|      0|      if(!result) {
  ------------------
  |  Branch (1962:10): [True: 0, False: 0]
  ------------------
 1963|      0|        result = Curl_ssl_set_engine(data, ptr);
 1964|      0|      }
 1965|      0|    }
 1966|      0|    break;
 1967|      0|  case CURLOPT_ISSUERCERT:
  ------------------
  |  Branch (1967:3): [True: 0, False: 111k]
  ------------------
 1968|       |    /*
 1969|       |     * Set Issuer certificate file
 1970|       |     * to check certificates issuer
 1971|       |     */
 1972|      0|    if(Curl_ssl_supports(data, SSLSUPP_ISSUERCERT))
  ------------------
  |  |   46|      0|#define SSLSUPP_ISSUERCERT   (1 << 11) /* supports CURLOPT_ISSUERCERT */
  ------------------
  |  Branch (1972:8): [True: 0, False: 0]
  ------------------
 1973|      0|      return Curl_setstropt(&s->str[STRING_SSL_ISSUERCERT], ptr);
 1974|      0|    return CURLE_NOT_BUILT_IN;
 1975|      0|  case CURLOPT_SSL_EC_CURVES:
  ------------------
  |  Branch (1975:3): [True: 0, False: 111k]
  ------------------
 1976|       |    /*
 1977|       |     * Set accepted curves in SSL connection setup.
 1978|       |     * Specify colon-delimited list of curve algorithm names.
 1979|       |     */
 1980|      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 (1980:8): [True: 0, False: 0]
  ------------------
 1981|      0|      return Curl_setstropt(&s->str[STRING_SSL_EC_CURVES], ptr);
 1982|      0|    return CURLE_NOT_BUILT_IN;
 1983|      0|  case CURLOPT_SSL_SIGNATURE_ALGORITHMS:
  ------------------
  |  Branch (1983:3): [True: 0, False: 111k]
  ------------------
 1984|       |    /*
 1985|       |     * Set accepted signature algorithms.
 1986|       |     * Specify colon-delimited list of signature scheme names.
 1987|       |     */
 1988|      0|    if(Curl_ssl_supports(data, SSLSUPP_SIGNATURE_ALGORITHMS))
  ------------------
  |  |   45|      0|#define SSLSUPP_SIGNATURE_ALGORITHMS (1 << 10) /* supports TLS sigalgs */
  ------------------
  |  Branch (1988:8): [True: 0, False: 0]
  ------------------
 1989|      0|      return Curl_setstropt(&s->str[STRING_SSL_SIGNATURE_ALGORITHMS], ptr);
 1990|      0|    return CURLE_NOT_BUILT_IN;
 1991|      0|  case CURLOPT_PINNEDPUBLICKEY:
  ------------------
  |  Branch (1991:3): [True: 0, False: 111k]
  ------------------
 1992|       |    /*
 1993|       |     * Set pinned public key for SSL connection.
 1994|       |     * Specify filename of the public key in DER format.
 1995|       |     */
 1996|      0|    if(Curl_ssl_supports(data, SSLSUPP_PINNEDPUBKEY))
  ------------------
  |  |   37|      0|#define SSLSUPP_PINNEDPUBKEY (1 << 2) /* supports CURLOPT_PINNEDPUBLICKEY */
  ------------------
  |  Branch (1996:8): [True: 0, False: 0]
  ------------------
 1997|      0|      return Curl_setstropt(&s->str[STRING_SSL_PINNEDPUBLICKEY], ptr);
 1998|      0|    return CURLE_NOT_BUILT_IN;
 1999|      0|  case CURLOPT_ECH:
  ------------------
  |  Branch (1999:3): [True: 0, False: 111k]
  ------------------
 2000|      0|    return setopt_ech(data, ptr);
  ------------------
  |  | 1864|      0|#define setopt_ech(x,y) CURLE_NOT_BUILT_IN
  ------------------
 2001|      0|#endif
 2002|   111k|  default:
  ------------------
  |  Branch (2002:3): [True: 111k, False: 0]
  ------------------
 2003|   111k|    return CURLE_UNKNOWN_OPTION;
 2004|   111k|  }
 2005|      0|  return result;
 2006|   111k|}
setopt.c:setopt_cptr_ftp:
 2193|   111k|{
 2194|   111k|  CURLcode result = CURLE_OK;
 2195|   111k|  struct UserDefined *s = &data->set;
 2196|   111k|  switch(option) {
 2197|      0|  case CURLOPT_FTPPORT:
  ------------------
  |  Branch (2197:3): [True: 0, False: 111k]
  ------------------
 2198|       |    /*
 2199|       |     * Use FTP PORT, this also specifies which IP address to use
 2200|       |     */
 2201|      0|    result = Curl_setstropt(&s->str[STRING_FTPPORT], ptr);
 2202|      0|    s->ftp_use_port = !!(s->str[STRING_FTPPORT]);
 2203|      0|    break;
 2204|       |
 2205|      0|  case CURLOPT_FTP_ACCOUNT:
  ------------------
  |  Branch (2205:3): [True: 0, False: 111k]
  ------------------
 2206|      0|    return Curl_setstropt(&s->str[STRING_FTP_ACCOUNT], ptr);
 2207|       |
 2208|      0|  case CURLOPT_FTP_ALTERNATIVE_TO_USER:
  ------------------
  |  Branch (2208:3): [True: 0, False: 111k]
  ------------------
 2209|      0|    return Curl_setstropt(&s->str[STRING_FTP_ALTERNATIVE_TO_USER], ptr);
 2210|       |
 2211|      0|  case CURLOPT_KRBLEVEL:
  ------------------
  |  Branch (2211:3): [True: 0, False: 111k]
  ------------------
 2212|      0|    return CURLE_NOT_BUILT_IN; /* removed in 8.17.0 */
 2213|      0|  case CURLOPT_CHUNK_DATA:
  ------------------
  |  Branch (2213:3): [True: 0, False: 111k]
  ------------------
 2214|      0|    s->wildcardptr = ptr;
 2215|      0|    break;
 2216|      0|  case CURLOPT_FNMATCH_DATA:
  ------------------
  |  Branch (2216:3): [True: 0, False: 111k]
  ------------------
 2217|      0|    s->fnmatch_data = ptr;
 2218|      0|    break;
 2219|   111k|  default:
  ------------------
  |  Branch (2219:3): [True: 111k, False: 0]
  ------------------
 2220|   111k|    return CURLE_UNKNOWN_OPTION;
 2221|   111k|  }
 2222|      0|  return result;
 2223|   111k|}
setopt.c:setopt_cptr_http_mqtt:
 2012|   111k|{
 2013|   111k|  CURLcode result = CURLE_OK;
 2014|   111k|  struct UserDefined *s = &data->set;
 2015|       |
 2016|   111k|  switch(option) {
 2017|      0|  case CURLOPT_COPYPOSTFIELDS:
  ------------------
  |  Branch (2017:3): [True: 0, False: 111k]
  ------------------
 2018|      0|    return setopt_copypostfields(ptr, s);
 2019|       |
 2020|  3.29k|  case CURLOPT_POSTFIELDS:
  ------------------
  |  Branch (2020:3): [True: 3.29k, False: 108k]
  ------------------
 2021|       |    /*
 2022|       |     * Like above, but use static data instead of copying it.
 2023|       |     */
 2024|  3.29k|    s->postfields = ptr;
 2025|       |    /* Release old copied data. */
 2026|  3.29k|    curlx_safefree(s->str[STRING_COPYPOSTFIELDS]);
  ------------------
  |  | 1340|  3.29k|  do {                      \
  |  | 1341|  3.29k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  3.29k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  3.29k|    (ptr) = NULL;           \
  |  | 1343|  3.29k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 3.29k]
  |  |  ------------------
  ------------------
 2027|  3.29k|    s->method = HTTPREQ_POST;
 2028|  3.29k|    break;
 2029|       |
 2030|      0|#ifndef CURL_DISABLE_HTTP
 2031|      0|  case CURLOPT_TRAILERDATA:
  ------------------
  |  Branch (2031:3): [True: 0, False: 111k]
  ------------------
 2032|      0|    s->trailer_data = ptr;
 2033|      0|    break;
 2034|  4.17k|  case CURLOPT_ACCEPT_ENCODING:
  ------------------
  |  Branch (2034:3): [True: 4.17k, False: 107k]
  ------------------
 2035|       |    /*
 2036|       |     * String to use at the value of Accept-Encoding header.
 2037|       |     *
 2038|       |     * If the encoding is set to "" we use an Accept-Encoding header that
 2039|       |     * encompasses all the encodings we support.
 2040|       |     * If the encoding is set to NULL we do not send an Accept-Encoding header
 2041|       |     * and ignore any received Content-Encoding header.
 2042|       |     *
 2043|       |     */
 2044|  4.17k|    if(ptr && !*ptr) {
  ------------------
  |  Branch (2044:8): [True: 4.17k, False: 0]
  |  Branch (2044:15): [True: 3.74k, False: 433]
  ------------------
 2045|  3.74k|      ptr = Curl_get_content_encodings();
 2046|  3.74k|      if(ptr) {
  ------------------
  |  Branch (2046:10): [True: 3.74k, False: 0]
  ------------------
 2047|  3.74k|        curlx_free(s->str[STRING_ENCODING]);
  ------------------
  |  | 1482|  3.74k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2048|  3.74k|        s->str[STRING_ENCODING] = ptr;
 2049|  3.74k|      }
 2050|      0|      else
 2051|      0|        result = CURLE_OUT_OF_MEMORY;
 2052|  3.74k|      return result;
 2053|  3.74k|    }
 2054|    433|    return Curl_setstropt(&s->str[STRING_ENCODING], ptr);
 2055|       |
 2056|      0|#ifndef CURL_DISABLE_AWS
 2057|      0|  case CURLOPT_AWS_SIGV4:
  ------------------
  |  Branch (2057:3): [True: 0, False: 111k]
  ------------------
 2058|       |    /*
 2059|       |     * String that is merged to some authentication
 2060|       |     * parameters are used by the algorithm.
 2061|       |     */
 2062|      0|    result = Curl_setstropt(&s->str[STRING_AWS_SIGV4], ptr);
 2063|       |    /*
 2064|       |     * Basic has been set by default; it needs to be unset here.
 2065|       |     */
 2066|      0|    if(s->str[STRING_AWS_SIGV4])
  ------------------
  |  Branch (2066:8): [True: 0, False: 0]
  ------------------
 2067|      0|      s->httpauth = CURLAUTH_AWS_SIGV4;
  ------------------
  |  |  845|      0|#define CURLAUTH_AWS_SIGV4    (((unsigned long)1) << 7)
  ------------------
 2068|      0|    break;
 2069|      0|#endif
 2070|       |#ifndef CURL_DISABLE_HTTPSIG
 2071|       |  case CURLOPT_HTTPSIG_KEY:
 2072|       |    result = Curl_setstropt(&s->str[STRING_HTTPSIG_KEY], ptr);
 2073|       |    break;
 2074|       |  case CURLOPT_HTTPSIG_KEYID:
 2075|       |    result = Curl_setstropt(&s->str[STRING_HTTPSIG_KEYID], ptr);
 2076|       |    break;
 2077|       |  case CURLOPT_HTTPSIG_HEADERS:
 2078|       |    result = Curl_setstropt(&s->str[STRING_HTTPSIG_HEADERS], ptr);
 2079|       |    break;
 2080|       |#endif
 2081|  4.11k|  case CURLOPT_REFERER:
  ------------------
  |  Branch (2081:3): [True: 4.11k, False: 107k]
  ------------------
 2082|       |    /*
 2083|       |     * String to set in the HTTP Referer: field.
 2084|       |     */
 2085|  4.11k|    Curl_bufref_free(&data->state.referer);
 2086|  4.11k|    result = Curl_setstropt(&s->str[STRING_SET_REFERER], ptr);
 2087|  4.11k|    break;
 2088|       |
 2089|  7.83k|  case CURLOPT_USERAGENT:
  ------------------
  |  Branch (2089:3): [True: 7.83k, False: 103k]
  ------------------
 2090|       |    /*
 2091|       |     * String to use in the HTTP User-Agent field
 2092|       |     */
 2093|  7.83k|    return Curl_setstropt(&s->str[STRING_USERAGENT], ptr);
 2094|       |
 2095|      0|#ifndef CURL_DISABLE_COOKIES
 2096|      0|  case CURLOPT_COOKIE:
  ------------------
  |  Branch (2096:3): [True: 0, False: 111k]
  ------------------
 2097|       |    /*
 2098|       |     * Cookie string to send to the remote server in the request.
 2099|       |     */
 2100|      0|    return Curl_setstropt(&s->str[STRING_COOKIE], ptr);
 2101|       |
 2102|      0|  case CURLOPT_COOKIEFILE:
  ------------------
  |  Branch (2102:3): [True: 0, False: 111k]
  ------------------
 2103|      0|    return cookiefile(data, ptr);
 2104|       |
 2105|  9.97k|  case CURLOPT_COOKIEJAR:
  ------------------
  |  Branch (2105:3): [True: 9.97k, False: 101k]
  ------------------
 2106|       |    /*
 2107|       |     * Set cookie filename to dump all cookies to when we are done.
 2108|       |     */
 2109|  9.97k|    result = Curl_setstropt(&s->str[STRING_COOKIEJAR], ptr);
 2110|  9.97k|    if(!result) {
  ------------------
  |  Branch (2110:8): [True: 9.97k, False: 0]
  ------------------
 2111|       |      /*
 2112|       |       * Activate the cookie parser. This may or may not already
 2113|       |       * have been made.
 2114|       |       */
 2115|  9.97k|      if(!data->cookies)
  ------------------
  |  Branch (2115:10): [True: 9.97k, False: 0]
  ------------------
 2116|  9.97k|        data->cookies = Curl_cookie_init();
 2117|  9.97k|      if(!data->cookies)
  ------------------
  |  Branch (2117:10): [True: 0, False: 9.97k]
  ------------------
 2118|      0|        result = CURLE_OUT_OF_MEMORY;
 2119|  9.97k|      else
 2120|  9.97k|        data->state.cookie_engine = TRUE;
  ------------------
  |  | 1053|  9.97k|#define TRUE true
  ------------------
 2121|  9.97k|    }
 2122|  9.97k|    break;
 2123|       |
 2124|      0|  case CURLOPT_COOKIELIST:
  ------------------
  |  Branch (2124:3): [True: 0, False: 111k]
  ------------------
 2125|      0|    return cookielist(data, ptr);
 2126|      0|#endif /* !CURL_DISABLE_COOKIES */
 2127|       |
 2128|      0|#endif /* !CURL_DISABLE_HTTP */
 2129|  82.3k|  default:
  ------------------
  |  Branch (2129:3): [True: 82.3k, False: 29.3k]
  ------------------
 2130|  82.3k|    return CURLE_UNKNOWN_OPTION;
 2131|   111k|  }
 2132|  17.3k|  return result;
 2133|   111k|}
setopt.c:setopt_cptr_net:
 2228|  82.3k|{
 2229|  82.3k|  struct UserDefined *s = &data->set;
 2230|  82.3k|  switch(option) {
 2231|      0|  case CURLOPT_INTERFACE:
  ------------------
  |  Branch (2231:3): [True: 0, False: 82.3k]
  ------------------
 2232|       |    /*
 2233|       |     * Set what interface or address/hostname to bind the socket to when
 2234|       |     * performing an operation and thus what from-IP your connection will use.
 2235|       |     */
 2236|      0|    return setstropt_interface(ptr,
 2237|      0|                               &s->str[STRING_DEVICE],
 2238|      0|                               &s->str[STRING_INTERFACE],
 2239|      0|                               &s->str[STRING_BINDHOST]);
 2240|       |#ifdef USE_RESOLV_ARES
 2241|       |  case CURLOPT_DNS_SERVERS:
 2242|       |    return Curl_setstropt(&s->str[STRING_DNS_SERVERS], ptr);
 2243|       |
 2244|       |  case CURLOPT_DNS_INTERFACE:
 2245|       |    return Curl_setstropt(&s->str[STRING_DNS_INTERFACE], ptr);
 2246|       |
 2247|       |  case CURLOPT_DNS_LOCAL_IP4:
 2248|       |    return Curl_setstropt(&s->str[STRING_DNS_LOCAL_IP4], ptr);
 2249|       |
 2250|       |  case CURLOPT_DNS_LOCAL_IP6:
 2251|       |    return Curl_setstropt(&s->str[STRING_DNS_LOCAL_IP6], ptr);
 2252|       |#endif
 2253|      0|#ifdef USE_UNIX_SOCKETS
 2254|      0|  case CURLOPT_UNIX_SOCKET_PATH:
  ------------------
  |  Branch (2254:3): [True: 0, False: 82.3k]
  ------------------
 2255|      0|    s->abstract_unix_socket = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 2256|      0|    return Curl_setstropt(&s->str[STRING_UNIX_SOCKET_PATH], ptr);
 2257|       |
 2258|      0|  case CURLOPT_ABSTRACT_UNIX_SOCKET:
  ------------------
  |  Branch (2258:3): [True: 0, False: 82.3k]
  ------------------
 2259|      0|    s->abstract_unix_socket = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2260|      0|    return Curl_setstropt(&s->str[STRING_UNIX_SOCKET_PATH], ptr);
 2261|      0|#endif
 2262|      0|#ifndef CURL_DISABLE_DOH
 2263|      0|  case CURLOPT_DOH_URL:
  ------------------
  |  Branch (2263:3): [True: 0, False: 82.3k]
  ------------------
 2264|      0|    {
 2265|      0|      CURLcode result = Curl_setstropt(&s->str[STRING_DOH], ptr);
 2266|      0|      s->doh = !!(s->str[STRING_DOH]);
 2267|      0|      return result;
 2268|      0|    }
 2269|      0|#endif
 2270|  82.3k|  default:
  ------------------
  |  Branch (2270:3): [True: 82.3k, False: 0]
  ------------------
 2271|  82.3k|    return CURLE_UNKNOWN_OPTION;
 2272|  82.3k|  }
 2273|  82.3k|}
setopt.c:setopt_cptr_misc:
 2277|  82.3k|{
 2278|  82.3k|  CURLcode result = CURLE_OK;
 2279|  82.3k|  struct UserDefined *s = &data->set;
 2280|       |
 2281|  82.3k|  switch(option) {
 2282|      0|  case CURLOPT_REQUEST_TARGET:
  ------------------
  |  Branch (2282:3): [True: 0, False: 82.3k]
  ------------------
 2283|      0|    return Curl_setstropt(&s->str[STRING_TARGET], ptr);
 2284|      0|#ifndef CURL_DISABLE_NETRC
 2285|  9.97k|  case CURLOPT_NETRC_FILE:
  ------------------
  |  Branch (2285:3): [True: 9.97k, False: 72.4k]
  ------------------
 2286|  9.97k|    return Curl_setstropt(&s->str[STRING_NETRC_FILE], ptr);
 2287|      0|#endif
 2288|    306|  case CURLOPT_CUSTOMREQUEST:
  ------------------
  |  Branch (2288:3): [True: 306, False: 82.0k]
  ------------------
 2289|    306|    return Curl_setstropt(&s->str[STRING_CUSTOMREQUEST], ptr);
 2290|       |
 2291|       |    /* we do not set s->method = HTTPREQ_CUSTOM; here, we continue as if we
 2292|       |       were using the already set type and this changes the actual request
 2293|       |       keyword */
 2294|      0|  case CURLOPT_SERVICE_NAME:
  ------------------
  |  Branch (2294:3): [True: 0, False: 82.3k]
  ------------------
 2295|      0|    return Curl_setstropt(&s->str[STRING_SERVICE_NAME], ptr);
 2296|       |
 2297|      0|  case CURLOPT_HEADERDATA:
  ------------------
  |  Branch (2297:3): [True: 0, False: 82.3k]
  ------------------
 2298|      0|    s->writeheader = ptr;
 2299|      0|    break;
 2300|  9.97k|  case CURLOPT_READDATA:
  ------------------
  |  Branch (2300:3): [True: 9.97k, False: 72.4k]
  ------------------
 2301|  9.97k|    s->in_set = ptr;
 2302|  9.97k|    break;
 2303|  2.28k|  case CURLOPT_WRITEDATA:
  ------------------
  |  Branch (2303:3): [True: 2.28k, False: 80.1k]
  ------------------
 2304|  2.28k|    s->out = ptr;
 2305|  2.28k|    break;
 2306|      0|  case CURLOPT_DEBUGDATA:
  ------------------
  |  Branch (2306:3): [True: 0, False: 82.3k]
  ------------------
 2307|      0|    s->debugdata = ptr;
 2308|      0|    break;
 2309|      0|  case CURLOPT_PROGRESSDATA:
  ------------------
  |  | 1351|      0|#define CURLOPT_PROGRESSDATA CURLOPT_XFERINFODATA
  ------------------
  |  Branch (2309:3): [True: 0, False: 82.3k]
  ------------------
 2310|      0|    s->progress_client = ptr;
 2311|      0|    break;
 2312|      0|  case CURLOPT_SEEKDATA:
  ------------------
  |  Branch (2312:3): [True: 0, False: 82.3k]
  ------------------
 2313|      0|    s->seek_client = ptr;
 2314|      0|    break;
 2315|      0|  case CURLOPT_IOCTLDATA:
  ------------------
  |  Branch (2315:3): [True: 0, False: 82.3k]
  ------------------
 2316|      0|    s->ioctl_client = ptr;
 2317|      0|    break;
 2318|      0|  case CURLOPT_SOCKOPTDATA:
  ------------------
  |  Branch (2318:3): [True: 0, False: 82.3k]
  ------------------
 2319|      0|    s->sockopt_client = ptr;
 2320|      0|    break;
 2321|  9.97k|  case CURLOPT_OPENSOCKETDATA:
  ------------------
  |  Branch (2321:3): [True: 9.97k, False: 72.4k]
  ------------------
 2322|  9.97k|    s->opensocket_client = ptr;
 2323|  9.97k|    break;
 2324|      0|  case CURLOPT_RESOLVER_START_DATA:
  ------------------
  |  Branch (2324:3): [True: 0, False: 82.3k]
  ------------------
 2325|      0|    s->resolver_start_client = ptr;
 2326|      0|    break;
 2327|      0|  case CURLOPT_CLOSESOCKETDATA:
  ------------------
  |  Branch (2327:3): [True: 0, False: 82.3k]
  ------------------
 2328|      0|    s->closesocket_client = ptr;
 2329|      0|    break;
 2330|      0|  case CURLOPT_PREREQDATA:
  ------------------
  |  Branch (2330:3): [True: 0, False: 82.3k]
  ------------------
 2331|      0|    s->prereq_userp = ptr;
 2332|      0|    break;
 2333|      0|  case CURLOPT_ERRORBUFFER:
  ------------------
  |  Branch (2333:3): [True: 0, False: 82.3k]
  ------------------
 2334|      0|    s->errorbuffer = ptr;
 2335|      0|    break;
 2336|  9.97k|  case CURLOPT_URL:
  ------------------
  |  Branch (2336:3): [True: 9.97k, False: 72.4k]
  ------------------
 2337|  9.97k|    result = Curl_setstropt(&s->str[STRING_SET_URL], ptr);
 2338|  9.97k|    Curl_bufref_set(&data->state.url, s->str[STRING_SET_URL], 0, NULL);
 2339|  9.97k|    break;
 2340|       |
 2341|      0|  case CURLOPT_USERPWD:
  ------------------
  |  Branch (2341:3): [True: 0, False: 82.3k]
  ------------------
 2342|      0|    return setstropt_userpwd(ptr, &s->str[STRING_USERNAME],
 2343|      0|                             &s->str[STRING_PASSWORD]);
 2344|       |
 2345|      0|  case CURLOPT_USERNAME:
  ------------------
  |  Branch (2345:3): [True: 0, False: 82.3k]
  ------------------
 2346|      0|    return Curl_setstropt(&s->str[STRING_USERNAME], ptr);
 2347|       |
 2348|      0|  case CURLOPT_PASSWORD:
  ------------------
  |  Branch (2348:3): [True: 0, False: 82.3k]
  ------------------
 2349|      0|    return Curl_setstropt(&s->str[STRING_PASSWORD], ptr);
 2350|       |
 2351|      0|  case CURLOPT_LOGIN_OPTIONS:
  ------------------
  |  Branch (2351:3): [True: 0, False: 82.3k]
  ------------------
 2352|      0|    return Curl_setstropt(&s->str[STRING_OPTIONS], ptr);
 2353|       |
 2354|      0|  case CURLOPT_XOAUTH2_BEARER:
  ------------------
  |  Branch (2354:3): [True: 0, False: 82.3k]
  ------------------
 2355|      0|    return Curl_setstropt(&s->str[STRING_BEARER], ptr);
 2356|      0|  case CURLOPT_RANGE:
  ------------------
  |  Branch (2356:3): [True: 0, False: 82.3k]
  ------------------
 2357|      0|    return Curl_setstropt(&s->str[STRING_SET_RANGE], ptr);
 2358|      0|  case CURLOPT_PRIVATE:
  ------------------
  |  Branch (2358:3): [True: 0, False: 82.3k]
  ------------------
 2359|      0|    s->private_data = ptr;
 2360|      0|    break;
 2361|  9.97k|  case CURLOPT_PROTOCOLS_STR:
  ------------------
  |  Branch (2361:3): [True: 9.97k, False: 72.4k]
  ------------------
 2362|  9.97k|    if(ptr) {
  ------------------
  |  Branch (2362:8): [True: 9.97k, False: 0]
  ------------------
 2363|  9.97k|      curl_prot_t protos;
 2364|  9.97k|      result = protocol2num(ptr, &protos);
 2365|  9.97k|      if(!result)
  ------------------
  |  Branch (2365:10): [True: 9.97k, False: 0]
  ------------------
 2366|  9.97k|        s->allowed_protocols = protos;
 2367|  9.97k|    }
 2368|      0|    else
 2369|       |      /* make a NULL argument reset to default */
 2370|      0|      s->allowed_protocols = (curl_prot_t)CURLPROTO_64ALL;
  ------------------
  |  |   68|      0|#define CURLPROTO_64ALL ((uint64_t)0xffffffffffffffff)
  ------------------
 2371|  9.97k|    break;
 2372|  9.97k|  case CURLOPT_REDIR_PROTOCOLS_STR:
  ------------------
  |  Branch (2372:3): [True: 9.97k, False: 72.4k]
  ------------------
 2373|  9.97k|    if(ptr) {
  ------------------
  |  Branch (2373:8): [True: 9.97k, False: 0]
  ------------------
 2374|  9.97k|      curl_prot_t protos;
 2375|  9.97k|      result = protocol2num(ptr, &protos);
 2376|  9.97k|      if(!result)
  ------------------
  |  Branch (2376:10): [True: 9.97k, False: 0]
  ------------------
 2377|  9.97k|        s->redir_protocols = protos;
 2378|  9.97k|    }
 2379|      0|    else
 2380|       |      /* make a NULL argument reset to default */
 2381|      0|      s->redir_protocols = (curl_prot_t)CURLPROTO_REDIR;
  ------------------
  |  |   71|      0|#define CURLPROTO_REDIR (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_FTP | \
  |  |  ------------------
  |  |  |  | 1086|      0|#define CURLPROTO_HTTP    (1L << 0)
  |  |  ------------------
  |  |               #define CURLPROTO_REDIR (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_FTP | \
  |  |  ------------------
  |  |  |  | 1087|      0|#define CURLPROTO_HTTPS   (1L << 1)
  |  |  ------------------
  |  |               #define CURLPROTO_REDIR (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_FTP | \
  |  |  ------------------
  |  |  |  | 1088|      0|#define CURLPROTO_FTP     (1L << 2)
  |  |  ------------------
  |  |   72|      0|                         CURLPROTO_FTPS)
  |  |  ------------------
  |  |  |  | 1089|      0|#define CURLPROTO_FTPS    (1L << 3)
  |  |  ------------------
  ------------------
 2382|  9.97k|    break;
 2383|      0|  case CURLOPT_DEFAULT_PROTOCOL:
  ------------------
  |  Branch (2383:3): [True: 0, False: 82.3k]
  ------------------
 2384|       |    /* Set the protocol to use when the URL does not include any protocol */
 2385|      0|    return Curl_setstropt(&s->str[STRING_DEFAULT_PROTOCOL], ptr);
 2386|      0|#ifndef CURL_DISABLE_SMTP
 2387|      0|  case CURLOPT_MAIL_FROM:
  ------------------
  |  Branch (2387:3): [True: 0, False: 82.3k]
  ------------------
 2388|       |    /* Set the SMTP mail originator */
 2389|      0|    return Curl_setstropt(&s->str[STRING_MAIL_FROM], ptr);
 2390|      0|  case CURLOPT_MAIL_AUTH:
  ------------------
  |  Branch (2390:3): [True: 0, False: 82.3k]
  ------------------
 2391|       |    /* Set the SMTP auth originator */
 2392|      0|    return Curl_setstropt(&s->str[STRING_MAIL_AUTH], ptr);
 2393|      0|#endif
 2394|      0|  case CURLOPT_SASL_AUTHZID:
  ------------------
  |  Branch (2394:3): [True: 0, False: 82.3k]
  ------------------
 2395|       |    /* Authorization identity (identity to act as) */
 2396|      0|    return Curl_setstropt(&s->str[STRING_SASL_AUTHZID], ptr);
 2397|      0|#ifndef CURL_DISABLE_RTSP
 2398|      0|  case CURLOPT_RTSP_SESSION_ID:
  ------------------
  |  Branch (2398:3): [True: 0, False: 82.3k]
  ------------------
 2399|      0|    return Curl_setstropt(&s->str[STRING_RTSP_SESSION_ID], ptr);
 2400|      0|  case CURLOPT_RTSP_STREAM_URI:
  ------------------
  |  Branch (2400:3): [True: 0, False: 82.3k]
  ------------------
 2401|      0|    return Curl_setstropt(&s->str[STRING_RTSP_STREAM_URI], ptr);
 2402|      0|  case CURLOPT_RTSP_TRANSPORT:
  ------------------
  |  Branch (2402:3): [True: 0, False: 82.3k]
  ------------------
 2403|      0|    return Curl_setstropt(&s->str[STRING_RTSP_TRANSPORT], ptr);
 2404|      0|  case CURLOPT_INTERLEAVEDATA:
  ------------------
  |  Branch (2404:3): [True: 0, False: 82.3k]
  ------------------
 2405|      0|    s->rtp_out = ptr;
 2406|      0|    break;
 2407|      0|#endif /* !CURL_DISABLE_RTSP */
 2408|      0|  case CURLOPT_TLSAUTH_USERNAME:
  ------------------
  |  Branch (2408:3): [True: 0, False: 82.3k]
  ------------------
 2409|      0|  case CURLOPT_TLSAUTH_PASSWORD:
  ------------------
  |  Branch (2409:3): [True: 0, False: 82.3k]
  ------------------
 2410|      0|  case CURLOPT_TLSAUTH_TYPE:
  ------------------
  |  Branch (2410:3): [True: 0, False: 82.3k]
  ------------------
 2411|      0|  case CURLOPT_PROXY_TLSAUTH_USERNAME:
  ------------------
  |  Branch (2411:3): [True: 0, False: 82.3k]
  ------------------
 2412|      0|  case CURLOPT_PROXY_TLSAUTH_PASSWORD:
  ------------------
  |  Branch (2412:3): [True: 0, False: 82.3k]
  ------------------
 2413|      0|  case CURLOPT_PROXY_TLSAUTH_TYPE:
  ------------------
  |  Branch (2413:3): [True: 0, False: 82.3k]
  ------------------
 2414|      0|    return CURLE_NOT_BUILT_IN;
 2415|      0|#ifndef CURL_DISABLE_HSTS
 2416|      0|  case CURLOPT_HSTSREADDATA:
  ------------------
  |  Branch (2416:3): [True: 0, False: 82.3k]
  ------------------
 2417|      0|    s->hsts_read_userp = ptr;
 2418|      0|    break;
 2419|      0|  case CURLOPT_HSTSWRITEDATA:
  ------------------
  |  Branch (2419:3): [True: 0, False: 82.3k]
  ------------------
 2420|      0|    s->hsts_write_userp = ptr;
 2421|      0|    break;
 2422|  9.97k|  case CURLOPT_HSTS: {
  ------------------
  |  Branch (2422:3): [True: 9.97k, False: 72.4k]
  ------------------
 2423|  9.97k|    struct curl_slist *h;
 2424|  9.97k|    if(!data->hsts) {
  ------------------
  |  Branch (2424:8): [True: 9.97k, False: 0]
  ------------------
 2425|  9.97k|      data->hsts = Curl_hsts_init();
 2426|  9.97k|      if(!data->hsts)
  ------------------
  |  Branch (2426:10): [True: 0, False: 9.97k]
  ------------------
 2427|      0|        return CURLE_OUT_OF_MEMORY;
 2428|  9.97k|    }
 2429|  9.97k|    if(ptr) {
  ------------------
  |  Branch (2429:8): [True: 9.97k, False: 0]
  ------------------
 2430|  9.97k|      result = Curl_setstropt(&s->str[STRING_HSTS], ptr);
 2431|  9.97k|      if(result)
  ------------------
  |  Branch (2431:10): [True: 0, False: 9.97k]
  ------------------
 2432|      0|        return result;
 2433|       |      /* this needs to build a list of filenames to read from, so that it can
 2434|       |         read them later, as we might get a shared HSTS handle to load them
 2435|       |         into */
 2436|  9.97k|      h = curl_slist_append(data->state.hstslist, ptr);
 2437|  9.97k|      if(!h) {
  ------------------
  |  Branch (2437:10): [True: 0, False: 9.97k]
  ------------------
 2438|      0|        curl_slist_free_all(data->state.hstslist);
 2439|      0|        data->state.hstslist = NULL;
 2440|      0|        return CURLE_OUT_OF_MEMORY;
 2441|      0|      }
 2442|  9.97k|      data->state.hstslist = h; /* store the list for later use */
 2443|  9.97k|    }
 2444|      0|    else {
 2445|       |      /* clear the list of HSTS files */
 2446|      0|      curl_slist_free_all(data->state.hstslist);
 2447|      0|      data->state.hstslist = NULL;
 2448|      0|      if(!data->share || !data->share->hsts)
  ------------------
  |  Branch (2448:10): [True: 0, False: 0]
  |  Branch (2448:26): [True: 0, False: 0]
  ------------------
 2449|       |        /* throw away the HSTS cache unless shared */
 2450|      0|        Curl_hsts_cleanup(&data->hsts);
 2451|      0|    }
 2452|  9.97k|    break;
 2453|  9.97k|  }
 2454|  9.97k|#endif /* !CURL_DISABLE_HSTS */
 2455|  9.97k|#ifndef CURL_DISABLE_ALTSVC
 2456|  9.97k|  case CURLOPT_ALTSVC:
  ------------------
  |  Branch (2456:3): [True: 9.97k, False: 72.4k]
  ------------------
 2457|  9.97k|    if(!data->asi) {
  ------------------
  |  Branch (2457:8): [True: 9.97k, False: 0]
  ------------------
 2458|  9.97k|      data->asi = Curl_altsvc_init();
 2459|  9.97k|      if(!data->asi)
  ------------------
  |  Branch (2459:10): [True: 0, False: 9.97k]
  ------------------
 2460|      0|        return CURLE_OUT_OF_MEMORY;
 2461|  9.97k|    }
 2462|  9.97k|    result = Curl_setstropt(&s->str[STRING_ALTSVC], ptr);
 2463|  9.97k|    if(result)
  ------------------
  |  Branch (2463:8): [True: 0, False: 9.97k]
  ------------------
 2464|      0|      break;
 2465|  9.97k|    if(ptr)
  ------------------
  |  Branch (2465:8): [True: 9.97k, False: 0]
  ------------------
 2466|  9.97k|      return Curl_altsvc_load(data->asi, ptr);
 2467|      0|    break;
 2468|      0|#endif /* !CURL_DISABLE_ALTSVC */
 2469|      0|  case CURLOPT_ECH:
  ------------------
  |  Branch (2469:3): [True: 0, False: 82.3k]
  ------------------
 2470|      0|    return setopt_ech(data, ptr);
  ------------------
  |  | 1864|      0|#define setopt_ech(x,y) CURLE_NOT_BUILT_IN
  ------------------
 2471|      0|  default:
  ------------------
  |  Branch (2471:3): [True: 0, False: 82.3k]
  ------------------
 2472|      0|    return CURLE_UNKNOWN_OPTION;
 2473|  82.3k|  }
 2474|  62.1k|  return result;
 2475|  82.3k|}
setopt.c:protocol2num:
  199|  19.9k|{
  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|  19.9k|  *val = 0;
  205|       |
  206|  19.9k|  if(!str)
  ------------------
  |  Branch (206:6): [True: 0, False: 19.9k]
  ------------------
  207|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  208|       |
  209|  19.9k|  if(curl_strequal(str, "all")) {
  ------------------
  |  Branch (209:6): [True: 0, False: 19.9k]
  ------------------
  210|      0|    *val = ~(curl_prot_t)0;
  211|      0|    return CURLE_OK;
  212|      0|  }
  213|       |
  214|  59.8k|  do {
  215|  59.8k|    const char *token = str;
  216|  59.8k|    size_t tlen;
  217|       |
  218|  59.8k|    str = strchr(str, ',');
  219|  59.8k|    tlen = str ? (size_t)(str - token) : strlen(token);
  ------------------
  |  Branch (219:12): [True: 39.9k, False: 19.9k]
  ------------------
  220|  59.8k|    if(tlen) {
  ------------------
  |  Branch (220:8): [True: 59.8k, False: 0]
  ------------------
  221|  59.8k|      const struct Curl_scheme *h = Curl_getn_scheme(token, tlen);
  222|       |
  223|  59.8k|      if(!h || !h->run)
  ------------------
  |  Branch (223:10): [True: 0, False: 59.8k]
  |  Branch (223:16): [True: 0, False: 59.8k]
  ------------------
  224|      0|        return CURLE_UNSUPPORTED_PROTOCOL;
  225|       |
  226|  59.8k|      *val |= h->protocol;
  227|  59.8k|    }
  228|  59.8k|  } while(str && str++);
  ------------------
  |  Branch (228:11): [True: 39.9k, False: 19.9k]
  |  Branch (228:18): [True: 39.9k, False: 0]
  ------------------
  229|       |
  230|  19.9k|  if(!*val)
  ------------------
  |  Branch (230:6): [True: 0, False: 19.9k]
  ------------------
  231|       |    /* no protocol listed */
  232|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  233|  19.9k|  return CURLE_OK;
  234|  19.9k|}
setopt.c:setopt_func:
 2513|  54.4k|{
 2514|  54.4k|  struct UserDefined *s = &data->set;
 2515|  54.4k|  switch(option) {
 2516|      0|  case CURLOPT_PROGRESSFUNCTION:
  ------------------
  |  Branch (2516:3): [True: 0, False: 54.4k]
  ------------------
 2517|       |    /*
 2518|       |     * Progress callback function
 2519|       |     */
 2520|      0|    s->fprogress = va_arg(param, curl_progress_callback);
 2521|      0|    if(s->fprogress)
  ------------------
  |  Branch (2521:8): [True: 0, False: 0]
  ------------------
 2522|      0|      data->progress.callback = TRUE; /* no longer internal */
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2523|      0|    else
 2524|      0|      data->progress.callback = FALSE; /* NULL enforces internal */
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 2525|      0|    break;
 2526|       |
 2527|      0|  case CURLOPT_XFERINFOFUNCTION:
  ------------------
  |  Branch (2527:3): [True: 0, False: 54.4k]
  ------------------
 2528|       |    /*
 2529|       |     * Transfer info callback function
 2530|       |     */
 2531|      0|    s->fxferinfo = va_arg(param, curl_xferinfo_callback);
 2532|      0|    if(s->fxferinfo)
  ------------------
  |  Branch (2532:8): [True: 0, False: 0]
  ------------------
 2533|      0|      data->progress.callback = TRUE; /* no longer internal */
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2534|      0|    else
 2535|      0|      data->progress.callback = FALSE; /* NULL enforces internal */
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 2536|       |
 2537|      0|    break;
 2538|      0|  case CURLOPT_DEBUGFUNCTION:
  ------------------
  |  Branch (2538:3): [True: 0, False: 54.4k]
  ------------------
 2539|       |    /*
 2540|       |     * stderr write callback.
 2541|       |     */
 2542|      0|    s->fdebug = va_arg(param, curl_debug_callback);
 2543|       |    /*
 2544|       |     * if the callback provided is NULL, it will use the default callback
 2545|       |     */
 2546|      0|    break;
 2547|  12.2k|  case CURLOPT_HEADERFUNCTION:
  ------------------
  |  Branch (2547:3): [True: 12.2k, False: 42.1k]
  ------------------
 2548|       |    /*
 2549|       |     * Set header write callback
 2550|       |     */
 2551|  12.2k|    s->fwrite_header = va_arg(param, curl_write_callback);
 2552|  12.2k|    break;
 2553|  12.2k|  case CURLOPT_WRITEFUNCTION:
  ------------------
  |  Branch (2553:3): [True: 12.2k, False: 42.1k]
  ------------------
 2554|       |    /*
 2555|       |     * Set data write callback
 2556|       |     */
 2557|  12.2k|    s->fwrite_func = va_arg(param, curl_write_callback);
 2558|  12.2k|    if(!s->fwrite_func)
  ------------------
  |  Branch (2558:8): [True: 0, False: 12.2k]
  ------------------
 2559|      0|#if defined(__clang__) && __clang_major__ >= 16
 2560|      0|#pragma clang diagnostic push
 2561|      0|#pragma clang diagnostic ignored "-Wcast-function-type-strict"
 2562|      0|#endif
 2563|       |      /* When set to NULL, reset to our internal default function */
 2564|      0|      s->fwrite_func = (curl_write_callback)fwrite;
 2565|  12.2k|#if defined(__clang__) && __clang_major__ >= 16
 2566|  12.2k|#pragma clang diagnostic pop
 2567|  12.2k|#endif
 2568|  12.2k|    break;
 2569|  9.97k|  case CURLOPT_READFUNCTION:
  ------------------
  |  Branch (2569:3): [True: 9.97k, False: 44.4k]
  ------------------
 2570|       |    /*
 2571|       |     * Read data callback
 2572|       |     */
 2573|  9.97k|    s->fread_func_set = va_arg(param, curl_read_callback);
 2574|  9.97k|    if(!s->fread_func_set) {
  ------------------
  |  Branch (2574:8): [True: 0, False: 9.97k]
  ------------------
 2575|      0|      s->is_fread_set = 0;
 2576|      0|#if defined(__clang__) && __clang_major__ >= 16
 2577|      0|#pragma clang diagnostic push
 2578|      0|#pragma clang diagnostic ignored "-Wcast-function-type-strict"
 2579|      0|#endif
 2580|       |      /* When set to NULL, reset to our internal default function */
 2581|      0|      s->fread_func_set = (curl_read_callback)fread;
 2582|      0|#if defined(__clang__) && __clang_major__ >= 16
 2583|      0|#pragma clang diagnostic pop
 2584|      0|#endif
 2585|      0|    }
 2586|  9.97k|    else
 2587|  9.97k|      s->is_fread_set = 1;
 2588|  9.97k|    break;
 2589|      0|  case CURLOPT_SEEKFUNCTION:
  ------------------
  |  Branch (2589:3): [True: 0, False: 54.4k]
  ------------------
 2590|       |    /*
 2591|       |     * Seek callback. Might be NULL.
 2592|       |     */
 2593|      0|    s->seek_func = va_arg(param, curl_seek_callback);
 2594|      0|    break;
 2595|      0|  case CURLOPT_IOCTLFUNCTION:
  ------------------
  |  Branch (2595:3): [True: 0, False: 54.4k]
  ------------------
 2596|       |    /*
 2597|       |     * I/O control callback. Might be NULL.
 2598|       |     */
 2599|      0|    s->ioctl_func = va_arg(param, curl_ioctl_callback);
 2600|      0|    break;
 2601|      0|  case CURLOPT_SSL_CTX_FUNCTION:
  ------------------
  |  Branch (2601:3): [True: 0, False: 54.4k]
  ------------------
 2602|       |    /*
 2603|       |     * Set an SSL_CTX callback
 2604|       |     */
 2605|      0|#ifdef USE_SSL
 2606|      0|    if(Curl_ssl_supports(data, SSLSUPP_SSL_CTX)) {
  ------------------
  |  |   38|      0|#define SSLSUPP_SSL_CTX      (1 << 3) /* supports CURLOPT_SSL_CTX */
  ------------------
  |  Branch (2606:8): [True: 0, False: 0]
  ------------------
 2607|      0|      s->ssl.fsslctx = va_arg(param, curl_ssl_ctx_callback);
 2608|      0|      break;
 2609|      0|    }
 2610|      0|    else
 2611|      0|#endif
 2612|      0|      return CURLE_NOT_BUILT_IN;
 2613|       |
 2614|  9.97k|  case CURLOPT_SOCKOPTFUNCTION:
  ------------------
  |  Branch (2614:3): [True: 9.97k, False: 44.4k]
  ------------------
 2615|       |    /*
 2616|       |     * socket callback function: called after socket() but before connect()
 2617|       |     */
 2618|  9.97k|    s->fsockopt = va_arg(param, curl_sockopt_callback);
 2619|  9.97k|    break;
 2620|       |
 2621|  9.97k|  case CURLOPT_OPENSOCKETFUNCTION:
  ------------------
  |  Branch (2621:3): [True: 9.97k, False: 44.4k]
  ------------------
 2622|       |    /*
 2623|       |     * open/create socket callback function: called instead of socket(),
 2624|       |     * before connect()
 2625|       |     */
 2626|  9.97k|    s->fopensocket = va_arg(param, curl_opensocket_callback);
 2627|  9.97k|    break;
 2628|       |
 2629|      0|  case CURLOPT_CLOSESOCKETFUNCTION:
  ------------------
  |  Branch (2629:3): [True: 0, False: 54.4k]
  ------------------
 2630|       |    /*
 2631|       |     * close socket callback function: called instead of close()
 2632|       |     * when shutting down a connection
 2633|       |     */
 2634|      0|    s->fclosesocket = va_arg(param, curl_closesocket_callback);
 2635|      0|    break;
 2636|       |
 2637|      0|  case CURLOPT_RESOLVER_START_FUNCTION:
  ------------------
  |  Branch (2637:3): [True: 0, False: 54.4k]
  ------------------
 2638|       |    /*
 2639|       |     * resolver start callback function: called before a new resolver request
 2640|       |     * is started
 2641|       |     */
 2642|      0|    s->resolver_start = va_arg(param, curl_resolver_start_callback);
 2643|      0|    break;
 2644|       |
 2645|       |#ifdef USE_SSH
 2646|       |#ifdef USE_LIBSSH2
 2647|       |  case CURLOPT_SSH_HOSTKEYFUNCTION:
 2648|       |    /* the callback to check the hostkey without the knownhost file */
 2649|       |    s->ssh_hostkeyfunc = va_arg(param, curl_sshhostkeycallback);
 2650|       |    break;
 2651|       |#endif
 2652|       |
 2653|       |  case CURLOPT_SSH_KEYFUNCTION:
 2654|       |    /* setting to NULL is fine since the ssh.c functions themselves will
 2655|       |       then revert to use the internal default */
 2656|       |    s->ssh_keyfunc = va_arg(param, curl_sshkeycallback);
 2657|       |    break;
 2658|       |
 2659|       |#endif /* USE_SSH */
 2660|       |
 2661|      0|#ifndef CURL_DISABLE_RTSP
 2662|      0|  case CURLOPT_INTERLEAVEFUNCTION:
  ------------------
  |  Branch (2662:3): [True: 0, False: 54.4k]
  ------------------
 2663|       |    /* Set the user defined RTP write function */
 2664|      0|    s->fwrite_rtp = va_arg(param, curl_write_callback);
 2665|      0|    break;
 2666|      0|#endif
 2667|      0|#ifndef CURL_DISABLE_FTP
 2668|      0|  case CURLOPT_CHUNK_BGN_FUNCTION:
  ------------------
  |  Branch (2668:3): [True: 0, False: 54.4k]
  ------------------
 2669|      0|    s->chunk_bgn = va_arg(param, curl_chunk_bgn_callback);
 2670|      0|    break;
 2671|      0|  case CURLOPT_CHUNK_END_FUNCTION:
  ------------------
  |  Branch (2671:3): [True: 0, False: 54.4k]
  ------------------
 2672|      0|    s->chunk_end = va_arg(param, curl_chunk_end_callback);
 2673|      0|    break;
 2674|      0|  case CURLOPT_FNMATCH_FUNCTION:
  ------------------
  |  Branch (2674:3): [True: 0, False: 54.4k]
  ------------------
 2675|      0|    s->fnmatch = va_arg(param, curl_fnmatch_callback);
 2676|      0|    break;
 2677|      0|#endif
 2678|      0|#ifndef CURL_DISABLE_HTTP
 2679|      0|  case CURLOPT_TRAILERFUNCTION:
  ------------------
  |  Branch (2679:3): [True: 0, False: 54.4k]
  ------------------
 2680|      0|    s->trailer_callback = va_arg(param, curl_trailer_callback);
 2681|      0|    break;
 2682|      0|#endif
 2683|      0|#ifndef CURL_DISABLE_HSTS
 2684|      0|  case CURLOPT_HSTSREADFUNCTION:
  ------------------
  |  Branch (2684:3): [True: 0, False: 54.4k]
  ------------------
 2685|      0|    s->hsts_read = va_arg(param, curl_hstsread_callback);
 2686|      0|    break;
 2687|      0|  case CURLOPT_HSTSWRITEFUNCTION:
  ------------------
  |  Branch (2687:3): [True: 0, False: 54.4k]
  ------------------
 2688|      0|    s->hsts_write = va_arg(param, curl_hstswrite_callback);
 2689|      0|    break;
 2690|      0|#endif
 2691|      0|  case CURLOPT_PREREQFUNCTION:
  ------------------
  |  Branch (2691:3): [True: 0, False: 54.4k]
  ------------------
 2692|      0|    s->fprereq = va_arg(param, curl_prereq_callback);
 2693|      0|    break;
 2694|      0|  default:
  ------------------
  |  Branch (2694:3): [True: 0, False: 54.4k]
  ------------------
 2695|      0|    return CURLE_UNKNOWN_OPTION;
 2696|  54.4k|  }
 2697|  54.4k|  return CURLE_OK;
 2698|  54.4k|}
setopt.c:setopt_offt:
 2702|  14.3k|{
 2703|  14.3k|  struct UserDefined *s = &data->set;
 2704|  14.3k|  switch(option) {
 2705|      0|  case CURLOPT_TIMEVALUE_LARGE:
  ------------------
  |  Branch (2705:3): [True: 0, False: 14.3k]
  ------------------
 2706|       |    /*
 2707|       |     * This is the value to compare with the remote document with the
 2708|       |     * method set with CURLOPT_TIMECONDITION
 2709|       |     */
 2710|      0|    s->timevalue = (time_t)offt;
 2711|      0|    break;
 2712|       |
 2713|       |    /* MQTT "borrows" some of the HTTP options */
 2714|  3.29k|  case CURLOPT_POSTFIELDSIZE_LARGE:
  ------------------
  |  Branch (2714:3): [True: 3.29k, False: 11.0k]
  ------------------
 2715|       |    /*
 2716|       |     * The size of the POSTFIELD data to prevent libcurl to do strlen() to
 2717|       |     * figure it out. Enables binary posts.
 2718|       |     */
 2719|  3.29k|    if(offt < -1)
  ------------------
  |  Branch (2719:8): [True: 0, False: 3.29k]
  ------------------
 2720|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
 2721|       |
 2722|  3.29k|    if(s->postfieldsize < offt &&
  ------------------
  |  Branch (2722:8): [True: 836, False: 2.45k]
  ------------------
 2723|    836|       s->postfields == s->str[STRING_COPYPOSTFIELDS]) {
  ------------------
  |  Branch (2723:8): [True: 323, False: 513]
  ------------------
 2724|       |      /* Previous CURLOPT_COPYPOSTFIELDS is no longer valid. */
 2725|    323|      curlx_safefree(s->str[STRING_COPYPOSTFIELDS]);
  ------------------
  |  | 1340|    323|  do {                      \
  |  | 1341|    323|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|    323|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|    323|    (ptr) = NULL;           \
  |  | 1343|    323|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 323]
  |  |  ------------------
  ------------------
 2726|    323|      s->postfields = NULL;
 2727|    323|    }
 2728|  3.29k|    s->postfieldsize = offt;
 2729|  3.29k|    break;
 2730|  1.11k|  case CURLOPT_INFILESIZE_LARGE:
  ------------------
  |  Branch (2730:3): [True: 1.11k, False: 13.2k]
  ------------------
 2731|       |    /*
 2732|       |     * If known, this should inform curl about the file size of the
 2733|       |     * to-be-uploaded file.
 2734|       |     */
 2735|  1.11k|    if(offt < -1)
  ------------------
  |  Branch (2735:8): [True: 108, False: 1.00k]
  ------------------
 2736|    108|      return CURLE_BAD_FUNCTION_ARGUMENT;
 2737|  1.00k|    s->filesize = offt;
 2738|  1.00k|    break;
 2739|      0|  case CURLOPT_MAX_SEND_SPEED_LARGE:
  ------------------
  |  Branch (2739:3): [True: 0, False: 14.3k]
  ------------------
 2740|       |    /*
 2741|       |     * When transfer uploads are faster than CURLOPT_MAX_SEND_SPEED_LARGE
 2742|       |     * bytes per second the transfer is throttled..
 2743|       |     */
 2744|      0|    if(offt < 0)
  ------------------
  |  Branch (2744:8): [True: 0, False: 0]
  ------------------
 2745|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
 2746|      0|    s->max_send_speed = offt;
 2747|       |    /* use minimal burst rate of 32k. some protocol batch IO */
 2748|      0|    Curl_rlimit_init(&data->progress.ul.rlimit, offt,
 2749|      0|                     CURLMAX(offt, (32 * 1024)),
  ------------------
  |  | 1295|      0|#define CURLMAX(x, y) ((x) > (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1295:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2750|      0|                     Curl_pgrs_now(data));
 2751|      0|    break;
 2752|  9.97k|  case CURLOPT_MAX_RECV_SPEED_LARGE:
  ------------------
  |  Branch (2752:3): [True: 9.97k, False: 4.40k]
  ------------------
 2753|       |    /*
 2754|       |     * When receiving data faster than CURLOPT_MAX_RECV_SPEED_LARGE bytes per
 2755|       |     * second the transfer is throttled..
 2756|       |     */
 2757|  9.97k|    if(offt < 0)
  ------------------
  |  Branch (2757:8): [True: 0, False: 9.97k]
  ------------------
 2758|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
 2759|  9.97k|    s->max_recv_speed = offt;
 2760|       |    /* use minimal burst rate of 32k. some protocol batch IO */
 2761|  9.97k|    Curl_rlimit_init(&data->progress.dl.rlimit, offt,
 2762|  9.97k|                     CURLMAX(offt, (32 * 1024)),
  ------------------
  |  | 1295|  9.97k|#define CURLMAX(x, y) ((x) > (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1295:24): [True: 0, False: 9.97k]
  |  |  ------------------
  ------------------
 2763|  9.97k|                     Curl_pgrs_now(data));
 2764|  9.97k|    break;
 2765|      0|  case CURLOPT_RESUME_FROM_LARGE:
  ------------------
  |  Branch (2765:3): [True: 0, False: 14.3k]
  ------------------
 2766|       |    /*
 2767|       |     * Resume transfer at the given file position
 2768|       |     */
 2769|      0|    if(offt < -1)
  ------------------
  |  Branch (2769:8): [True: 0, False: 0]
  ------------------
 2770|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
 2771|      0|    s->set_resume_from = offt;
 2772|      0|    break;
 2773|      0|  case CURLOPT_MAXFILESIZE_LARGE:
  ------------------
  |  Branch (2773:3): [True: 0, False: 14.3k]
  ------------------
 2774|       |    /*
 2775|       |     * Set the maximum size of a file to download.
 2776|       |     */
 2777|      0|    if(offt < 0)
  ------------------
  |  Branch (2777:8): [True: 0, False: 0]
  ------------------
 2778|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
 2779|      0|    s->max_filesize = offt;
 2780|      0|    break;
 2781|       |
 2782|      0|  default:
  ------------------
  |  Branch (2782:3): [True: 0, False: 14.3k]
  ------------------
 2783|      0|    return CURLE_UNKNOWN_OPTION;
 2784|  14.3k|  }
 2785|  14.2k|  return CURLE_OK;
 2786|  14.3k|}

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

Curl_slist_append_nodup:
   56|  19.9k|{
   57|  19.9k|  struct curl_slist *last;
   58|  19.9k|  struct curl_slist *new_item;
   59|       |
   60|  19.9k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|  19.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (60:3): [True: 0, False: 19.9k]
  |  Branch (60:3): [True: 19.9k, False: 0]
  ------------------
   61|       |
   62|  19.9k|  new_item = curlx_malloc(sizeof(struct curl_slist));
  ------------------
  |  | 1477|  19.9k|#define curlx_malloc(size)         curl_dbg_malloc(size, __LINE__, __FILE__)
  ------------------
   63|  19.9k|  if(!new_item)
  ------------------
  |  Branch (63:6): [True: 0, False: 19.9k]
  ------------------
   64|      0|    return NULL;
   65|       |
   66|  19.9k|  new_item->next = NULL;
   67|  19.9k|  new_item->data = CURL_UNCONST(data);
  ------------------
  |  |  864|  19.9k|#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|  19.9k|  if(!list)
  ------------------
  |  Branch (70:6): [True: 19.9k, False: 0]
  ------------------
   71|  19.9k|    return new_item;
   72|       |
   73|      0|  last = slist_get_last(list);
   74|      0|  last->next = new_item;
   75|      0|  return list;
   76|  19.9k|}
curl_slist_append:
   86|  19.9k|{
   87|  19.9k|  char *dupdata = curlx_strdup(data);
  ------------------
  |  | 1476|  19.9k|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
   88|       |
   89|  19.9k|  if(!dupdata)
  ------------------
  |  Branch (89:6): [True: 0, False: 19.9k]
  ------------------
   90|      0|    return NULL;
   91|       |
   92|  19.9k|  list = Curl_slist_append_nodup(list, dupdata);
   93|  19.9k|  if(!list)
  ------------------
  |  Branch (93:6): [True: 0, False: 19.9k]
  ------------------
   94|      0|    curlx_free(dupdata);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   95|       |
   96|  19.9k|  return list;
   97|  19.9k|}
curl_slist_free_all:
  125|  49.8k|{
  126|  49.8k|  struct curl_slist *next;
  127|  49.8k|  struct curl_slist *item;
  128|       |
  129|  49.8k|  if(!list)
  ------------------
  |  Branch (129:6): [True: 29.9k, False: 19.9k]
  ------------------
  130|  29.9k|    return;
  131|       |
  132|  19.9k|  item = list;
  133|  19.9k|  do {
  134|  19.9k|    next = item->next;
  135|  19.9k|    curlx_safefree(item->data);
  ------------------
  |  | 1340|  19.9k|  do {                      \
  |  | 1341|  19.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  19.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  19.9k|    (ptr) = NULL;           \
  |  | 1343|  19.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 19.9k]
  |  |  ------------------
  ------------------
  136|  19.9k|    curlx_free(item);
  ------------------
  |  | 1482|  19.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  137|  19.9k|    item = next;
  138|  19.9k|  } while(next);
  ------------------
  |  Branch (138:11): [True: 0, False: 19.9k]
  ------------------
  139|  19.9k|}

Curl_wakeup_init:
  277|  19.9k|{
  278|  19.9k|#ifdef USE_EVENTFD
  279|  19.9k|  return wakeup_eventfd(socks, nonblocking);
  280|       |#elif defined(HAVE_PIPE)
  281|       |  return wakeup_pipe(socks, nonblocking);
  282|       |#elif defined(HAVE_SOCKETPAIR)
  283|       |  return wakeup_socketpair(socks, nonblocking);
  284|       |#else
  285|       |  return wakeup_inet(socks, nonblocking);
  286|       |#endif
  287|  19.9k|}
Curl_wakeup_consume:
  329|   153k|{
  330|   153k|  char buf[64];
  331|   153k|  ssize_t rc;
  332|   153k|  CURLcode result = CURLE_OK;
  333|       |
  334|   153k|  do {
  335|   153k|    rc = wakeup_read(socks[0], buf, sizeof(buf));
  ------------------
  |  |  292|   153k|#define wakeup_read         read
  ------------------
  336|   153k|    if(!rc)
  ------------------
  |  Branch (336:8): [True: 0, False: 153k]
  ------------------
  337|      0|      break;
  338|   153k|    else if(rc < 0) {
  ------------------
  |  Branch (338:13): [True: 153k, False: 0]
  ------------------
  339|   153k|      int sockerr = SOCKERRNO;
  ------------------
  |  | 1097|   153k|#define SOCKERRNO         errno
  ------------------
  340|   153k|#ifndef USE_WINSOCK
  341|   153k|      if(sockerr == SOCKEINTR)
  ------------------
  |  | 1131|   153k|#define SOCKEINTR         EINTR
  ------------------
  |  Branch (341:10): [True: 0, False: 153k]
  ------------------
  342|      0|        continue;
  343|   153k|#endif
  344|   153k|      if(SOCK_EAGAIN(sockerr))
  ------------------
  |  | 1148|   153k|#define SOCK_EAGAIN(e) ((e) == SOCKEWOULDBLOCK)
  |  |  ------------------
  |  |  |  | 1139|   153k|#define SOCKEWOULDBLOCK   EWOULDBLOCK
  |  |  ------------------
  |  |  |  Branch (1148:24): [True: 153k, False: 0]
  |  |  ------------------
  ------------------
  345|   153k|        break;
  346|      0|      result = CURLE_READ_ERROR;
  347|      0|      break;
  348|   153k|    }
  349|   153k|  } while(all);
  ------------------
  |  Branch (349:11): [True: 0, False: 0]
  ------------------
  350|   153k|  return result;
  351|   153k|}
Curl_wakeup_destroy:
  354|  19.9k|{
  355|       |#ifndef USE_EVENTFD
  356|       |  if(socks[1] != CURL_SOCKET_BAD)
  357|       |    wakeup_close(socks[1]);
  358|       |#endif
  359|  19.9k|  if(socks[0] != CURL_SOCKET_BAD)
  ------------------
  |  |  145|  19.9k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (359:6): [True: 19.9k, False: 0]
  ------------------
  360|  19.9k|    wakeup_close(socks[0]);
  ------------------
  |  |  293|  19.9k|#define wakeup_close        close
  ------------------
  361|  19.9k|  socks[0] = socks[1] = CURL_SOCKET_BAD;
  ------------------
  |  |  145|  19.9k|#define CURL_SOCKET_BAD (-1)
  ------------------
  362|  19.9k|}
socketpair.c:wakeup_eventfd:
   39|  19.9k|{
   40|  19.9k|  int efd = eventfd(0, nonblocking ? EFD_CLOEXEC | EFD_NONBLOCK : EFD_CLOEXEC);
  ------------------
  |  Branch (40:24): [True: 19.9k, False: 0]
  ------------------
   41|  19.9k|  if(efd == -1) {
  ------------------
  |  Branch (41:6): [True: 0, False: 19.9k]
  ------------------
   42|      0|    socks[0] = socks[1] = CURL_SOCKET_BAD;
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
   43|      0|    return -1;
   44|      0|  }
   45|  19.9k|  socks[0] = socks[1] = efd;
   46|  19.9k|  return 0;
   47|  19.9k|}

Curl_splay:
   43|   358k|{
   44|   358k|  struct Curl_tree N, *l, *r, *y;
   45|       |
   46|   358k|  if(!t)
  ------------------
  |  Branch (46:6): [True: 0, False: 358k]
  ------------------
   47|      0|    return NULL;
   48|   358k|  N.smaller = N.larger = NULL;
   49|   358k|  l = r = &N;
   50|       |
   51|   358k|  for(;;) {
   52|   358k|    timediff_t comp = splay_compare(pkey, &t->key);
  ------------------
  |  |   35|   358k|#define splay_compare(i, j) curlx_ptimediff_us(i, j)
  ------------------
   53|   358k|    if(comp < 0) {
  ------------------
  |  Branch (53:8): [True: 144k, False: 214k]
  ------------------
   54|   144k|      if(!t->smaller)
  ------------------
  |  Branch (54:10): [True: 144k, False: 0]
  ------------------
   55|   144k|        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|   214k|    else if(comp > 0) {
  ------------------
  |  Branch (68:13): [True: 0, False: 214k]
  ------------------
   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|   214k|    else
   84|   214k|      break;
   85|   358k|  }
   86|       |
   87|   358k|  l->larger = t->smaller;                                /* assemble */
   88|   358k|  r->smaller = t->larger;
   89|   358k|  t->smaller = N.larger;
   90|   358k|  t->larger = N.smaller;
   91|       |
   92|   358k|  return t;
   93|   358k|}
Curl_splayinsert:
  107|   215k|{
  108|   215k|  DEBUGASSERT(node);
  ------------------
  |  | 1083|   215k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (108:3): [True: 0, False: 215k]
  |  Branch (108:3): [True: 215k, False: 0]
  ------------------
  109|       |
  110|   215k|  if(t) {
  ------------------
  |  Branch (110:6): [True: 0, False: 215k]
  ------------------
  111|      0|    t = Curl_splay(pkey, t);
  112|      0|    DEBUGASSERT(t);
  ------------------
  |  | 1083|      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|   215k|  if(!t) {
  ------------------
  |  Branch (128:6): [True: 215k, False: 0]
  ------------------
  129|   215k|    node->smaller = node->larger = NULL;
  130|   215k|  }
  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|   215k|  node->key = *pkey;
  142|       |
  143|       |  /* no identical nodes (yet), we are the only one in the list of nodes */
  144|   215k|  node->samen = node;
  145|   215k|  node->samep = node;
  146|   215k|  return node;
  147|   215k|}
Curl_splaygetbest:
  155|   144k|{
  156|   144k|  static const struct curltime tv_zero = { 0, 0 };
  157|   144k|  struct Curl_tree *x;
  158|       |
  159|   144k|  if(!t) {
  ------------------
  |  Branch (159:6): [True: 0, False: 144k]
  ------------------
  160|      0|    *removed = NULL; /* none removed since there was no root */
  161|      0|    return NULL;
  162|      0|  }
  163|       |
  164|       |  /* find smallest */
  165|   144k|  t = Curl_splay(&tv_zero, t);
  166|   144k|  DEBUGASSERT(t);
  ------------------
  |  | 1083|   144k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (166:3): [True: 0, False: 144k]
  |  Branch (166:3): [True: 144k, False: 0]
  ------------------
  167|   144k|  if(splay_compare(pkey, &t->key) < 0) {
  ------------------
  |  |   35|   144k|#define splay_compare(i, j) curlx_ptimediff_us(i, j)
  ------------------
  |  Branch (167:6): [True: 143k, False: 648]
  ------------------
  168|       |    /* even the smallest is too big */
  169|   143k|    *removed = NULL;
  170|   143k|    return t;
  171|   143k|  }
  172|       |
  173|       |  /* FIRST! Check if there is a list with identical keys */
  174|    648|  x = t->samen;
  175|    648|  if(x != t) {
  ------------------
  |  Branch (175:6): [True: 0, False: 648]
  ------------------
  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|    648|  x = t->larger;
  192|    648|  *removed = t;
  193|       |
  194|    648|  return x;
  195|    648|}
Curl_splayremove:
  211|   214k|{
  212|   214k|  struct Curl_tree *x;
  213|       |
  214|   214k|  if(!t)
  ------------------
  |  Branch (214:6): [True: 0, False: 214k]
  ------------------
  215|      0|    return 1;
  216|       |
  217|   214k|  DEBUGASSERT(removenode);
  ------------------
  |  | 1083|   214k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (217:3): [True: 0, False: 214k]
  |  Branch (217:3): [True: 214k, False: 0]
  ------------------
  218|       |
  219|   214k|  if(splay_compare(&SPLAY_SUBNODE, &removenode->key) == 0) {
  ------------------
  |  |   35|   214k|#define splay_compare(i, j) curlx_ptimediff_us(i, j)
  ------------------
  |  Branch (219:6): [True: 0, False: 214k]
  ------------------
  220|       |    /* It is a subnode within a 'same' linked list and thus we can unlink it
  221|       |       easily. */
  222|      0|    DEBUGASSERT(removenode->samen != removenode);
  ------------------
  |  | 1083|      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|   214k|  t = Curl_splay(&removenode->key, t);
  238|   214k|  DEBUGASSERT(t);
  ------------------
  |  | 1083|   214k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (238:3): [True: 0, False: 214k]
  |  Branch (238:3): [True: 214k, 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|   214k|  DEBUGASSERT(t == removenode);
  ------------------
  |  | 1083|   214k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (247:3): [True: 0, False: 214k]
  |  Branch (247:3): [True: 214k, False: 0]
  ------------------
  248|   214k|  if(t != removenode)
  ------------------
  |  Branch (248:6): [True: 0, False: 214k]
  ------------------
  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|   214k|  x = t->samen;
  254|   214k|  if(x != t) {
  ------------------
  |  Branch (254:6): [True: 0, False: 214k]
  ------------------
  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|   214k|  else {
  265|       |    /* Remove the root node */
  266|   214k|    if(!t->smaller)
  ------------------
  |  Branch (266:8): [True: 214k, False: 0]
  ------------------
  267|   214k|      x = t->larger;
  268|      0|    else {
  269|      0|      x = Curl_splay(&removenode->key, t->smaller);
  270|      0|      DEBUGASSERT(x);
  ------------------
  |  | 1083|      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|   214k|  }
  274|       |
  275|   214k|  *newroot = x; /* store new root pointer */
  276|       |
  277|   214k|  return 0;
  278|   214k|}
Curl_splayset:
  282|   118k|{
  283|   118k|  DEBUGASSERT(node);
  ------------------
  |  | 1083|   118k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (283:3): [True: 0, False: 118k]
  |  Branch (283:3): [True: 118k, False: 0]
  ------------------
  284|   118k|  node->ptr = payload;
  285|   118k|}
Curl_splayget:
  288|    648|{
  289|    648|  DEBUGASSERT(node);
  ------------------
  |  | 1083|    648|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (289:3): [True: 0, False: 648]
  |  Branch (289:3): [True: 648, False: 0]
  ------------------
  290|    648|  return node->ptr;
  291|    648|}

Curl_raw_toupper:
   75|  5.23M|{
   76|  5.23M|  return (char)touppermap[(unsigned char)in];
   77|  5.23M|}
Curl_raw_tolower:
   82|  1.54M|{
   83|  1.54M|  return (char)tolowermap[(unsigned char)in];
   84|  1.54M|}
Curl_strntoupper:
   92|  1.97k|{
   93|  1.97k|  if(n < 1)
  ------------------
  |  Branch (93:6): [True: 0, False: 1.97k]
  ------------------
   94|      0|    return;
   95|       |
   96|  18.0k|  do {
   97|  18.0k|    *dest++ = Curl_raw_toupper(*src);
   98|  18.0k|  } while(*src++ && --n);
  ------------------
  |  Branch (98:11): [True: 16.1k, False: 1.97k]
  |  Branch (98:21): [True: 16.1k, False: 0]
  ------------------
   99|  1.97k|}
Curl_strntolower:
  107|   122k|{
  108|   122k|  if(n < 1)
  ------------------
  |  Branch (108:6): [True: 752, False: 121k]
  ------------------
  109|    752|    return;
  110|       |
  111|  1.04M|  do {
  112|  1.04M|    *dest++ = Curl_raw_tolower(*src);
  113|  1.04M|  } while(*src++ && --n);
  ------------------
  |  Branch (113:11): [True: 1.04M, False: 0]
  |  Branch (113:21): [True: 918k, False: 121k]
  ------------------
  114|   121k|}
Curl_timestrcmp:
  131|  3.81k|{
  132|  3.81k|  int match = 0;
  133|  3.81k|  int i = 0;
  134|       |
  135|  3.81k|  if(a && b) {
  ------------------
  |  Branch (135:6): [True: 3.81k, False: 0]
  |  Branch (135:11): [True: 3.81k, False: 0]
  ------------------
  136|  9.85k|    while(1) {
  ------------------
  |  Branch (136:11): [True: 9.85k, Folded]
  ------------------
  137|  9.85k|      match |= a[i] ^ b[i];
  138|  9.85k|      if(!a[i] || !b[i])
  ------------------
  |  Branch (138:10): [True: 3.81k, False: 6.04k]
  |  Branch (138:19): [True: 0, False: 6.04k]
  ------------------
  139|  3.81k|        break;
  140|  6.04k|      i++;
  141|  6.04k|    }
  142|  3.81k|  }
  143|      0|  else
  144|      0|    return a || b;
  ------------------
  |  Branch (144:12): [True: 0, False: 0]
  |  Branch (144:17): [True: 0, False: 0]
  ------------------
  145|  3.81k|  return match;
  146|  3.81k|}

curl_strequal:
   77|   184k|{
   78|   184k|  if(s1 && s2)
  ------------------
  |  Branch (78:6): [True: 163k, False: 21.0k]
  |  Branch (78:12): [True: 163k, False: 0]
  ------------------
   79|       |    /* both pointers point to something then compare them */
   80|   163k|    return casecompare(s1, s2);
   81|       |
   82|       |  /* if both pointers are NULL then treat them as equal */
   83|  21.0k|  return NULL == s1 && NULL == s2;
  ------------------
  |  Branch (83:10): [True: 21.0k, False: 0]
  |  Branch (83:24): [True: 21.0k, False: 0]
  ------------------
   84|   184k|}
curl_strnequal:
   88|   281k|{
   89|   281k|  if(s1 && s2)
  ------------------
  |  Branch (89:6): [True: 281k, False: 0]
  |  Branch (89:12): [True: 281k, False: 0]
  ------------------
   90|       |    /* both pointers point to something then compare them */
   91|   281k|    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|   281k|}
strequal.c:casecompare:
   36|   163k|{
   37|  1.25M|  while(*first) {
  ------------------
  |  Branch (37:9): [True: 1.21M, False: 46.1k]
  ------------------
   38|  1.21M|    if(Curl_raw_toupper(*first) != Curl_raw_toupper(*second))
  ------------------
  |  Branch (38:8): [True: 117k, False: 1.09M]
  ------------------
   39|       |      /* get out of the loop as soon as they do not match */
   40|   117k|      return 0;
   41|  1.09M|    first++;
   42|  1.09M|    second++;
   43|  1.09M|  }
   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|  46.1k|  return !*first == !*second;
   49|   163k|}
strequal.c:ncasecompare:
   52|   281k|{
   53|  1.42M|  while(*first && max) {
  ------------------
  |  Branch (53:9): [True: 1.27M, False: 150k]
  |  Branch (53:19): [True: 1.22M, False: 47.1k]
  ------------------
   54|  1.22M|    if(Curl_raw_toupper(*first) != Curl_raw_toupper(*second))
  ------------------
  |  Branch (54:8): [True: 84.5k, False: 1.14M]
  ------------------
   55|  84.5k|      return 0;
   56|  1.14M|    max--;
   57|  1.14M|    first++;
   58|  1.14M|    second++;
   59|  1.14M|  }
   60|   197k|  if(max == 0)
  ------------------
  |  Branch (60:6): [True: 197k, False: 3]
  ------------------
   61|   197k|    return 1; /* they are equal this far */
   62|       |
   63|      3|  return Curl_raw_toupper(*first) == Curl_raw_toupper(*second);
   64|   197k|}

curl_easy_strerror:
   35|    813|{
   36|    813|#ifdef CURLVERBOSE
   37|    813|  switch(error) {
   38|      0|  case CURLE_OK:
  ------------------
  |  Branch (38:3): [True: 0, False: 813]
  ------------------
   39|      0|    return "No error";
   40|       |
   41|      0|  case CURLE_UNSUPPORTED_PROTOCOL:
  ------------------
  |  Branch (41:3): [True: 0, False: 813]
  ------------------
   42|      0|    return "Unsupported protocol";
   43|       |
   44|      0|  case CURLE_FAILED_INIT:
  ------------------
  |  Branch (44:3): [True: 0, False: 813]
  ------------------
   45|      0|    return "Failed initialization";
   46|       |
   47|      0|  case CURLE_URL_MALFORMAT:
  ------------------
  |  Branch (47:3): [True: 0, False: 813]
  ------------------
   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: 813]
  ------------------
   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: 813]
  ------------------
   55|      0|    return "Could not resolve proxy name";
   56|       |
   57|      0|  case CURLE_COULDNT_RESOLVE_HOST:
  ------------------
  |  Branch (57:3): [True: 0, False: 813]
  ------------------
   58|      0|    return "Could not resolve hostname";
   59|       |
   60|    813|  case CURLE_COULDNT_CONNECT:
  ------------------
  |  Branch (60:3): [True: 813, False: 0]
  ------------------
   61|    813|    return "Could not connect to server";
   62|       |
   63|      0|  case CURLE_WEIRD_SERVER_REPLY:
  ------------------
  |  Branch (63:3): [True: 0, False: 813]
  ------------------
   64|      0|    return "Weird server reply";
   65|       |
   66|      0|  case CURLE_REMOTE_ACCESS_DENIED:
  ------------------
  |  Branch (66:3): [True: 0, False: 813]
  ------------------
   67|      0|    return "Access denied to remote resource";
   68|       |
   69|      0|  case CURLE_FTP_ACCEPT_FAILED:
  ------------------
  |  Branch (69:3): [True: 0, False: 813]
  ------------------
   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: 813]
  ------------------
   73|      0|    return "FTP: Accepting server connect has timed out";
   74|       |
   75|      0|  case CURLE_FTP_PRET_FAILED:
  ------------------
  |  Branch (75:3): [True: 0, False: 813]
  ------------------
   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: 813]
  ------------------
   79|      0|    return "FTP: unknown PASS reply";
   80|       |
   81|      0|  case CURLE_FTP_WEIRD_PASV_REPLY:
  ------------------
  |  Branch (81:3): [True: 0, False: 813]
  ------------------
   82|      0|    return "FTP: unknown PASV reply";
   83|       |
   84|      0|  case CURLE_FTP_WEIRD_227_FORMAT:
  ------------------
  |  Branch (84:3): [True: 0, False: 813]
  ------------------
   85|      0|    return "FTP: unknown 227 response format";
   86|       |
   87|      0|  case CURLE_FTP_CANT_GET_HOST:
  ------------------
  |  Branch (87:3): [True: 0, False: 813]
  ------------------
   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: 813]
  ------------------
   91|      0|    return "Error in the HTTP2 framing layer";
   92|       |
   93|      0|  case CURLE_FTP_COULDNT_SET_TYPE:
  ------------------
  |  Branch (93:3): [True: 0, False: 813]
  ------------------
   94|      0|    return "FTP: could not set file type";
   95|       |
   96|      0|  case CURLE_PARTIAL_FILE:
  ------------------
  |  Branch (96:3): [True: 0, False: 813]
  ------------------
   97|      0|    return "Transferred a partial file";
   98|       |
   99|      0|  case CURLE_FTP_COULDNT_RETR_FILE:
  ------------------
  |  Branch (99:3): [True: 0, False: 813]
  ------------------
  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: 813]
  ------------------
  103|      0|    return "Quote command returned error";
  104|       |
  105|      0|  case CURLE_HTTP_RETURNED_ERROR:
  ------------------
  |  Branch (105:3): [True: 0, False: 813]
  ------------------
  106|      0|    return "HTTP response code said error";
  107|       |
  108|      0|  case CURLE_WRITE_ERROR:
  ------------------
  |  Branch (108:3): [True: 0, False: 813]
  ------------------
  109|      0|    return "Failed writing received data to disk/application";
  110|       |
  111|      0|  case CURLE_UPLOAD_FAILED:
  ------------------
  |  Branch (111:3): [True: 0, False: 813]
  ------------------
  112|      0|    return "Upload failed (at start/before it took off)";
  113|       |
  114|      0|  case CURLE_READ_ERROR:
  ------------------
  |  Branch (114:3): [True: 0, False: 813]
  ------------------
  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: 813]
  ------------------
  118|      0|    return "Out of memory";
  119|       |
  120|      0|  case CURLE_OPERATION_TIMEDOUT:
  ------------------
  |  Branch (120:3): [True: 0, False: 813]
  ------------------
  121|      0|    return "Timeout was reached";
  122|       |
  123|      0|  case CURLE_FTP_PORT_FAILED:
  ------------------
  |  Branch (123:3): [True: 0, False: 813]
  ------------------
  124|      0|    return "FTP: command PORT failed";
  125|       |
  126|      0|  case CURLE_FTP_COULDNT_USE_REST:
  ------------------
  |  Branch (126:3): [True: 0, False: 813]
  ------------------
  127|      0|    return "FTP: command REST failed";
  128|       |
  129|      0|  case CURLE_RANGE_ERROR:
  ------------------
  |  Branch (129:3): [True: 0, False: 813]
  ------------------
  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: 813]
  ------------------
  133|      0|    return "SSL connect error";
  134|       |
  135|      0|  case CURLE_BAD_DOWNLOAD_RESUME:
  ------------------
  |  Branch (135:3): [True: 0, False: 813]
  ------------------
  136|      0|    return "Could not resume download";
  137|       |
  138|      0|  case CURLE_FILE_COULDNT_READ_FILE:
  ------------------
  |  Branch (138:3): [True: 0, False: 813]
  ------------------
  139|      0|    return "Could not read a file:// file";
  140|       |
  141|      0|  case CURLE_LDAP_CANNOT_BIND:
  ------------------
  |  Branch (141:3): [True: 0, False: 813]
  ------------------
  142|      0|    return "LDAP: cannot bind";
  143|       |
  144|      0|  case CURLE_LDAP_SEARCH_FAILED:
  ------------------
  |  Branch (144:3): [True: 0, False: 813]
  ------------------
  145|      0|    return "LDAP: search failed";
  146|       |
  147|      0|  case CURLE_ABORTED_BY_CALLBACK:
  ------------------
  |  Branch (147:3): [True: 0, False: 813]
  ------------------
  148|      0|    return "Operation was aborted by an application callback";
  149|       |
  150|      0|  case CURLE_BAD_FUNCTION_ARGUMENT:
  ------------------
  |  Branch (150:3): [True: 0, False: 813]
  ------------------
  151|      0|    return "A libcurl function was given a bad argument";
  152|       |
  153|      0|  case CURLE_INTERFACE_FAILED:
  ------------------
  |  Branch (153:3): [True: 0, False: 813]
  ------------------
  154|      0|    return "Failed binding local connection end";
  155|       |
  156|      0|  case CURLE_TOO_MANY_REDIRECTS:
  ------------------
  |  Branch (156:3): [True: 0, False: 813]
  ------------------
  157|      0|    return "Number of redirects hit maximum amount";
  158|       |
  159|      0|  case CURLE_UNKNOWN_OPTION:
  ------------------
  |  Branch (159:3): [True: 0, False: 813]
  ------------------
  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: 813]
  ------------------
  163|      0|    return "Malformed option provided in a setopt";
  164|       |
  165|      0|  case CURLE_GOT_NOTHING:
  ------------------
  |  Branch (165:3): [True: 0, False: 813]
  ------------------
  166|      0|    return "Server returned nothing (no headers, no data)";
  167|       |
  168|      0|  case CURLE_SSL_ENGINE_NOTFOUND:
  ------------------
  |  Branch (168:3): [True: 0, False: 813]
  ------------------
  169|      0|    return "SSL crypto engine not found";
  170|       |
  171|      0|  case CURLE_SSL_ENGINE_SETFAILED:
  ------------------
  |  Branch (171:3): [True: 0, False: 813]
  ------------------
  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: 813]
  ------------------
  175|      0|    return "Failed to initialize SSL crypto engine";
  176|       |
  177|      0|  case CURLE_SEND_ERROR:
  ------------------
  |  Branch (177:3): [True: 0, False: 813]
  ------------------
  178|      0|    return "Failed sending data to the peer";
  179|       |
  180|      0|  case CURLE_RECV_ERROR:
  ------------------
  |  Branch (180:3): [True: 0, False: 813]
  ------------------
  181|      0|    return "Failure when receiving data from the peer";
  182|       |
  183|      0|  case CURLE_SSL_CERTPROBLEM:
  ------------------
  |  Branch (183:3): [True: 0, False: 813]
  ------------------
  184|      0|    return "Problem with the local SSL certificate";
  185|       |
  186|      0|  case CURLE_SSL_CIPHER:
  ------------------
  |  Branch (186:3): [True: 0, False: 813]
  ------------------
  187|      0|    return "Could not use specified SSL cipher";
  188|       |
  189|      0|  case CURLE_PEER_FAILED_VERIFICATION:
  ------------------
  |  Branch (189:3): [True: 0, False: 813]
  ------------------
  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: 813]
  ------------------
  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: 813]
  ------------------
  196|      0|    return "Unrecognized or bad HTTP Content or Transfer-Encoding";
  197|       |
  198|      0|  case CURLE_FILESIZE_EXCEEDED:
  ------------------
  |  Branch (198:3): [True: 0, False: 813]
  ------------------
  199|      0|    return "Maximum file size exceeded";
  200|       |
  201|      0|  case CURLE_USE_SSL_FAILED:
  ------------------
  |  Branch (201:3): [True: 0, False: 813]
  ------------------
  202|      0|    return "Requested SSL level failed";
  203|       |
  204|      0|  case CURLE_SSL_SHUTDOWN_FAILED:
  ------------------
  |  Branch (204:3): [True: 0, False: 813]
  ------------------
  205|      0|    return "Failed to shut down the SSL connection";
  206|       |
  207|      0|  case CURLE_SSL_CRL_BADFILE:
  ------------------
  |  Branch (207:3): [True: 0, False: 813]
  ------------------
  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: 813]
  ------------------
  211|      0|    return "Issuer check against peer certificate failed";
  212|       |
  213|      0|  case CURLE_SEND_FAIL_REWIND:
  ------------------
  |  Branch (213:3): [True: 0, False: 813]
  ------------------
  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: 813]
  ------------------
  217|      0|    return "Login denied";
  218|       |
  219|      0|  case CURLE_TFTP_NOTFOUND:
  ------------------
  |  Branch (219:3): [True: 0, False: 813]
  ------------------
  220|      0|    return "TFTP: File Not Found";
  221|       |
  222|      0|  case CURLE_TFTP_PERM:
  ------------------
  |  Branch (222:3): [True: 0, False: 813]
  ------------------
  223|      0|    return "TFTP: Access Violation";
  224|       |
  225|      0|  case CURLE_REMOTE_DISK_FULL:
  ------------------
  |  Branch (225:3): [True: 0, False: 813]
  ------------------
  226|      0|    return "Disk full or allocation exceeded";
  227|       |
  228|      0|  case CURLE_TFTP_ILLEGAL:
  ------------------
  |  Branch (228:3): [True: 0, False: 813]
  ------------------
  229|      0|    return "TFTP: Illegal operation";
  230|       |
  231|      0|  case CURLE_TFTP_UNKNOWNID:
  ------------------
  |  Branch (231:3): [True: 0, False: 813]
  ------------------
  232|      0|    return "TFTP: Unknown transfer ID";
  233|       |
  234|      0|  case CURLE_REMOTE_FILE_EXISTS:
  ------------------
  |  Branch (234:3): [True: 0, False: 813]
  ------------------
  235|      0|    return "Remote file already exists";
  236|       |
  237|      0|  case CURLE_TFTP_NOSUCHUSER:
  ------------------
  |  Branch (237:3): [True: 0, False: 813]
  ------------------
  238|      0|    return "TFTP: No such user";
  239|       |
  240|      0|  case CURLE_REMOTE_FILE_NOT_FOUND:
  ------------------
  |  Branch (240:3): [True: 0, False: 813]
  ------------------
  241|      0|    return "Remote file not found";
  242|       |
  243|      0|  case CURLE_SSH:
  ------------------
  |  Branch (243:3): [True: 0, False: 813]
  ------------------
  244|      0|    return "Error in the SSH layer";
  245|       |
  246|      0|  case CURLE_AGAIN:
  ------------------
  |  Branch (246:3): [True: 0, False: 813]
  ------------------
  247|      0|    return "Socket not ready for send/recv";
  248|       |
  249|      0|  case CURLE_RTSP_CSEQ_ERROR:
  ------------------
  |  Branch (249:3): [True: 0, False: 813]
  ------------------
  250|      0|    return "RTSP CSeq mismatch or invalid CSeq";
  251|       |
  252|      0|  case CURLE_RTSP_SESSION_ERROR:
  ------------------
  |  Branch (252:3): [True: 0, False: 813]
  ------------------
  253|      0|    return "RTSP session error";
  254|       |
  255|      0|  case CURLE_FTP_BAD_FILE_LIST:
  ------------------
  |  Branch (255:3): [True: 0, False: 813]
  ------------------
  256|      0|    return "Unable to parse FTP file list";
  257|       |
  258|      0|  case CURLE_CHUNK_FAILED:
  ------------------
  |  Branch (258:3): [True: 0, False: 813]
  ------------------
  259|      0|    return "Chunk callback failed";
  260|       |
  261|      0|  case CURLE_NO_CONNECTION_AVAILABLE:
  ------------------
  |  Branch (261:3): [True: 0, False: 813]
  ------------------
  262|      0|    return "The max connection limit is reached";
  263|       |
  264|      0|  case CURLE_SSL_PINNEDPUBKEYNOTMATCH:
  ------------------
  |  Branch (264:3): [True: 0, False: 813]
  ------------------
  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: 813]
  ------------------
  268|      0|    return "SSL server certificate status verification FAILED";
  269|       |
  270|      0|  case CURLE_HTTP2_STREAM:
  ------------------
  |  Branch (270:3): [True: 0, False: 813]
  ------------------
  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: 813]
  ------------------
  274|      0|    return "API function called from within callback";
  275|       |
  276|      0|  case CURLE_AUTH_ERROR:
  ------------------
  |  Branch (276:3): [True: 0, False: 813]
  ------------------
  277|      0|    return "An authentication function returned an error";
  278|       |
  279|      0|  case CURLE_HTTP3:
  ------------------
  |  Branch (279:3): [True: 0, False: 813]
  ------------------
  280|      0|    return "HTTP/3 error";
  281|       |
  282|      0|  case CURLE_QUIC_CONNECT_ERROR:
  ------------------
  |  Branch (282:3): [True: 0, False: 813]
  ------------------
  283|      0|    return "QUIC connection error";
  284|       |
  285|      0|  case CURLE_PROXY:
  ------------------
  |  Branch (285:3): [True: 0, False: 813]
  ------------------
  286|      0|    return "proxy handshake error";
  287|       |
  288|      0|  case CURLE_SSL_CLIENTCERT:
  ------------------
  |  Branch (288:3): [True: 0, False: 813]
  ------------------
  289|      0|    return "SSL Client Certificate required";
  290|       |
  291|      0|  case CURLE_UNRECOVERABLE_POLL:
  ------------------
  |  Branch (291:3): [True: 0, False: 813]
  ------------------
  292|      0|    return "Unrecoverable error in select/poll";
  293|       |
  294|      0|  case CURLE_TOO_LARGE:
  ------------------
  |  Branch (294:3): [True: 0, False: 813]
  ------------------
  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: 813]
  ------------------
  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: 813]
  ------------------
  302|      0|    break;
  303|    813|  }
  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|    813|}
curl_url_strerror:
  421|    481|{
  422|    481|#ifdef CURLVERBOSE
  423|    481|  switch(error) {
  ------------------
  |  Branch (423:10): [True: 481, False: 0]
  ------------------
  424|      0|  case CURLUE_OK:
  ------------------
  |  Branch (424:3): [True: 0, False: 481]
  ------------------
  425|      0|    return "No error";
  426|       |
  427|      0|  case CURLUE_BAD_HANDLE:
  ------------------
  |  Branch (427:3): [True: 0, False: 481]
  ------------------
  428|      0|    return "An invalid CURLU pointer was passed as argument";
  429|       |
  430|      0|  case CURLUE_BAD_PARTPOINTER:
  ------------------
  |  Branch (430:3): [True: 0, False: 481]
  ------------------
  431|      0|    return "An invalid 'part' argument was passed as argument";
  432|       |
  433|     85|  case CURLUE_MALFORMED_INPUT:
  ------------------
  |  Branch (433:3): [True: 85, False: 396]
  ------------------
  434|     85|    return "Malformed input to a URL function";
  435|       |
  436|      7|  case CURLUE_BAD_PORT_NUMBER:
  ------------------
  |  Branch (436:3): [True: 7, False: 474]
  ------------------
  437|      7|    return "Port number was not a decimal number between 0 and 65535";
  438|       |
  439|     23|  case CURLUE_UNSUPPORTED_SCHEME:
  ------------------
  |  Branch (439:3): [True: 23, False: 458]
  ------------------
  440|     23|    return "Unsupported URL scheme";
  441|       |
  442|      0|  case CURLUE_URLDECODE:
  ------------------
  |  Branch (442:3): [True: 0, False: 481]
  ------------------
  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: 481]
  ------------------
  446|      0|    return "A memory function failed";
  447|       |
  448|      0|  case CURLUE_USER_NOT_ALLOWED:
  ------------------
  |  Branch (448:3): [True: 0, False: 481]
  ------------------
  449|      0|    return "Credentials was passed in the URL when prohibited";
  450|       |
  451|      0|  case CURLUE_UNKNOWN_PART:
  ------------------
  |  Branch (451:3): [True: 0, False: 481]
  ------------------
  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: 481]
  ------------------
  455|      0|    return "No scheme present";
  456|       |
  457|      0|  case CURLUE_NO_USER:
  ------------------
  |  Branch (457:3): [True: 0, False: 481]
  ------------------
  458|      0|    return "No user present";
  459|       |
  460|      0|  case CURLUE_NO_PASSWORD:
  ------------------
  |  Branch (460:3): [True: 0, False: 481]
  ------------------
  461|      0|    return "No password present";
  462|       |
  463|      0|  case CURLUE_NO_OPTIONS:
  ------------------
  |  Branch (463:3): [True: 0, False: 481]
  ------------------
  464|      0|    return "No options present";
  465|       |
  466|     70|  case CURLUE_NO_HOST:
  ------------------
  |  Branch (466:3): [True: 70, False: 411]
  ------------------
  467|     70|    return "No host present";
  468|       |
  469|      0|  case CURLUE_NO_PORT:
  ------------------
  |  Branch (469:3): [True: 0, False: 481]
  ------------------
  470|      0|    return "No port number present";
  471|       |
  472|      0|  case CURLUE_NO_QUERY:
  ------------------
  |  Branch (472:3): [True: 0, False: 481]
  ------------------
  473|      0|    return "No query present";
  474|       |
  475|      0|  case CURLUE_NO_FRAGMENT:
  ------------------
  |  Branch (475:3): [True: 0, False: 481]
  ------------------
  476|      0|    return "No fragment present";
  477|       |
  478|      0|  case CURLUE_NO_ZONEID:
  ------------------
  |  Branch (478:3): [True: 0, False: 481]
  ------------------
  479|      0|    return "No zoneid present";
  480|       |
  481|      0|  case CURLUE_BAD_LOGIN:
  ------------------
  |  Branch (481:3): [True: 0, False: 481]
  ------------------
  482|      0|    return "Bad login";
  483|       |
  484|     43|  case CURLUE_BAD_IPV6:
  ------------------
  |  Branch (484:3): [True: 43, False: 438]
  ------------------
  485|     43|    return "Bad IPv6 address";
  486|       |
  487|    248|  case CURLUE_BAD_HOSTNAME:
  ------------------
  |  Branch (487:3): [True: 248, False: 233]
  ------------------
  488|    248|    return "Bad hostname";
  489|       |
  490|      2|  case CURLUE_BAD_FILE_URL:
  ------------------
  |  Branch (490:3): [True: 2, False: 479]
  ------------------
  491|      2|    return "Bad file:// URL";
  492|       |
  493|      1|  case CURLUE_BAD_SLASHES:
  ------------------
  |  Branch (493:3): [True: 1, False: 480]
  ------------------
  494|      1|    return "Unsupported number of slashes following scheme";
  495|       |
  496|      0|  case CURLUE_BAD_SCHEME:
  ------------------
  |  Branch (496:3): [True: 0, False: 481]
  ------------------
  497|      0|    return "Bad scheme";
  498|       |
  499|      0|  case CURLUE_BAD_PATH:
  ------------------
  |  Branch (499:3): [True: 0, False: 481]
  ------------------
  500|      0|    return "Bad path";
  501|       |
  502|      0|  case CURLUE_BAD_FRAGMENT:
  ------------------
  |  Branch (502:3): [True: 0, False: 481]
  ------------------
  503|      0|    return "Bad fragment";
  504|       |
  505|      0|  case CURLUE_BAD_QUERY:
  ------------------
  |  Branch (505:3): [True: 0, False: 481]
  ------------------
  506|      0|    return "Bad query";
  507|       |
  508|      0|  case CURLUE_BAD_PASSWORD:
  ------------------
  |  Branch (508:3): [True: 0, False: 481]
  ------------------
  509|      0|    return "Bad password";
  510|       |
  511|      0|  case CURLUE_BAD_USER:
  ------------------
  |  Branch (511:3): [True: 0, False: 481]
  ------------------
  512|      0|    return "Bad user";
  513|       |
  514|      0|  case CURLUE_LACKS_IDN:
  ------------------
  |  Branch (514:3): [True: 0, False: 481]
  ------------------
  515|      0|    return "libcurl lacks IDN support";
  516|       |
  517|      0|  case CURLUE_TOO_LARGE:
  ------------------
  |  Branch (517:3): [True: 0, False: 481]
  ------------------
  518|      0|    return "A value or data field is larger than allowed";
  519|       |
  520|      2|  case CURLUE_BACKSLASH:
  ------------------
  |  Branch (520:3): [True: 2, False: 479]
  ------------------
  521|      2|    return "Found a backslash where a forward slash was expected";
  522|       |
  523|      0|  case CURLUE_LAST:
  ------------------
  |  Branch (523:3): [True: 0, False: 481]
  ------------------
  524|      0|    break;
  525|    481|  }
  526|       |
  527|      0|  return "CURLUcode unknown";
  528|       |#else
  529|       |  if(error == CURLUE_OK)
  530|       |    return "No error";
  531|       |  else
  532|       |    return "Error";
  533|       |#endif
  534|    481|}

Curl_thrdpool_set_props:
  282|  9.97k|{
  283|  9.97k|  CURLcode result = CURLE_OK;
  284|  9.97k|  size_t running;
  285|       |
  286|  9.97k|  if(!max_threads || (min_threads > max_threads))
  ------------------
  |  Branch (286:6): [True: 0, False: 9.97k]
  |  Branch (286:22): [True: 0, False: 9.97k]
  ------------------
  287|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  288|       |
  289|  9.97k|  Curl_mutex_acquire(&tpool->lock);
  ------------------
  |  |   37|  9.97k|#  define Curl_mutex_acquire(m)  pthread_mutex_lock(m)
  ------------------
  290|  9.97k|  tpool->min_threads = min_threads;
  291|  9.97k|  tpool->max_threads = max_threads;
  292|  9.97k|  tpool->idle_time_ms = idle_time_ms;
  293|  9.97k|  running = Curl_llist_count(&tpool->slots);
  294|  9.97k|  if(tpool->min_threads > running) {
  ------------------
  |  Branch (294:6): [True: 0, False: 9.97k]
  ------------------
  295|      0|    result = thrdpool_signal(tpool, tpool->min_threads - (uint32_t)running);
  296|      0|  }
  297|  9.97k|  Curl_mutex_release(&tpool->lock);
  ------------------
  |  |   38|  9.97k|#  define Curl_mutex_release(m)  pthread_mutex_unlock(m)
  ------------------
  298|       |
  299|  9.97k|  return result;
  300|  9.97k|}
Curl_thrdpool_create:
  311|  9.97k|{
  312|  9.97k|  struct curl_thrdpool *tpool;
  313|  9.97k|  CURLcode result = CURLE_OUT_OF_MEMORY;
  314|  9.97k|  DEBUGASSERT(name);
  ------------------
  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (314:3): [True: 0, False: 9.97k]
  |  Branch (314:3): [True: 9.97k, False: 0]
  ------------------
  315|       |
  316|  9.97k|  tpool = curlx_calloc(1, sizeof(*tpool));
  ------------------
  |  | 1479|  9.97k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  317|  9.97k|  if(!tpool)
  ------------------
  |  Branch (317:6): [True: 0, False: 9.97k]
  ------------------
  318|      0|    goto out;
  319|  9.97k|  tpool->refcount = 1;
  320|       |
  321|  9.97k|  Curl_mutex_init(&tpool->lock);
  ------------------
  |  |   36|  9.97k|#  define Curl_mutex_init(m)     pthread_mutex_init(m, NULL)
  ------------------
  322|  9.97k|  Curl_cond_init(&tpool->await);
  ------------------
  |  |   41|  9.97k|#  define Curl_cond_init(c)      pthread_cond_init(c, NULL)
  ------------------
  323|  9.97k|  Curl_llist_init(&tpool->slots, NULL);
  324|  9.97k|  Curl_llist_init(&tpool->zombies, NULL);
  325|  9.97k|  tpool->fn_take = fn_take;
  326|  9.97k|  tpool->fn_process = fn_process;
  327|  9.97k|  tpool->fn_return = fn_return;
  328|  9.97k|  tpool->fn_user_data = user_data;
  329|       |
  330|       |  /* a const string that remains */
  331|  9.97k|  tpool->name = name;
  332|       |
  333|  9.97k|#ifdef DEBUGBUILD
  334|  9.97k|  {
  335|  9.97k|    const char *p = getenv("CURL_DBG_THRDPOOL_FAIL_STARTS");
  336|  9.97k|    if(p) {
  ------------------
  |  Branch (336:8): [True: 0, False: 9.97k]
  ------------------
  337|      0|      curl_off_t l;
  338|      0|      if(!curlx_str_number(&p, &l, INT_MAX))
  ------------------
  |  Branch (338:10): [True: 0, False: 0]
  ------------------
  339|      0|        tpool->dbg_fail_starts = (int)l;
  340|      0|    }
  341|  9.97k|  }
  342|  9.97k|#endif
  343|       |
  344|  9.97k|  result = Curl_thrdpool_set_props(tpool, min_threads, max_threads,
  345|  9.97k|                                   idle_time_ms);
  346|       |
  347|  9.97k|out:
  348|  9.97k|  if(result && tpool) {
  ------------------
  |  Branch (348:6): [True: 0, False: 9.97k]
  |  Branch (348:16): [True: 0, False: 0]
  ------------------
  349|      0|    tpool->aborted = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  350|      0|    thrdpool_unlink(tpool, FALSE);
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  351|       |    tpool = NULL;
  352|      0|  }
  353|  9.97k|  *ptpool = tpool;
  354|  9.97k|  return result;
  355|  9.97k|}
Curl_thrdpool_destroy:
  358|  9.97k|{
  359|  9.97k|  Curl_mutex_acquire(&tpool->lock);
  ------------------
  |  |   37|  9.97k|#  define Curl_mutex_acquire(m)  pthread_mutex_lock(m)
  ------------------
  360|       |
  361|  9.97k|  tpool->aborted = TRUE;
  ------------------
  |  | 1053|  9.97k|#define TRUE true
  ------------------
  362|       |
  363|  9.97k|  while(join && Curl_llist_count(&tpool->slots)) {
  ------------------
  |  Branch (363:9): [True: 9.97k, False: 0]
  |  Branch (363:17): [True: 0, False: 9.97k]
  ------------------
  364|      0|    thrdpool_wake_all(tpool);
  365|      0|    Curl_cond_wait(&tpool->await, &tpool->lock);
  366|      0|  }
  367|       |
  368|  9.97k|  thrdpool_join_zombies(tpool);
  369|       |
  370|       |  /* detach all still running threads */
  371|  9.97k|  if(Curl_llist_count(&tpool->slots)) {
  ------------------
  |  Branch (371:6): [True: 0, False: 9.97k]
  ------------------
  372|      0|    struct Curl_llist_node *e;
  373|      0|    for(e = Curl_llist_head(&tpool->slots); e; e = Curl_node_next(e)) {
  ------------------
  |  Branch (373:45): [True: 0, False: 0]
  ------------------
  374|      0|      struct thrdslot *tslot = Curl_node_elem(e);
  375|      0|      if(tslot->thread != curl_thread_t_null)
  ------------------
  |  |   35|      0|#  define curl_thread_t_null     (pthread_t *)0
  ------------------
  |  Branch (375:10): [True: 0, False: 0]
  ------------------
  376|      0|        Curl_thread_destroy(&tslot->thread);
  377|      0|    }
  378|      0|    tpool->detached = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  379|      0|  }
  380|       |
  381|  9.97k|  if(!thrdpool_unlink(tpool, TRUE)) {
  ------------------
  |  | 1053|  9.97k|#define TRUE true
  ------------------
  |  Branch (381:6): [True: 0, False: 9.97k]
  ------------------
  382|       |    /* tpool not destroyed */
  383|      0|    Curl_mutex_release(&tpool->lock);
  ------------------
  |  |   38|      0|#  define Curl_mutex_release(m)  pthread_mutex_unlock(m)
  ------------------
  384|      0|  }
  385|  9.97k|}
thrdpool.c:thrdpool_unlink:
  227|  9.97k|{
  228|  9.97k|  DEBUGASSERT(tpool->refcount);
  ------------------
  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (228:3): [True: 0, False: 9.97k]
  |  Branch (228:3): [True: 9.97k, False: 0]
  ------------------
  229|  9.97k|  if(tpool->refcount)
  ------------------
  |  Branch (229:6): [True: 9.97k, False: 0]
  ------------------
  230|  9.97k|    tpool->refcount--;
  231|  9.97k|  if(tpool->refcount)
  ------------------
  |  Branch (231:6): [True: 0, False: 9.97k]
  ------------------
  232|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  233|       |
  234|       |  /* no more references, free */
  235|  9.97k|  DEBUGASSERT(tpool->aborted);
  ------------------
  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (235:3): [True: 0, False: 9.97k]
  |  Branch (235:3): [True: 9.97k, False: 0]
  ------------------
  236|  9.97k|  thrdpool_join_zombies(tpool);
  237|  9.97k|  if(locked)
  ------------------
  |  Branch (237:6): [True: 9.97k, False: 0]
  ------------------
  238|  9.97k|    Curl_mutex_release(&tpool->lock);
  ------------------
  |  |   38|  9.97k|#  define Curl_mutex_release(m)  pthread_mutex_unlock(m)
  ------------------
  239|  9.97k|  Curl_cond_destroy(&tpool->await);
  ------------------
  |  |   42|  9.97k|#  define Curl_cond_destroy(c)   pthread_cond_destroy(c)
  ------------------
  240|  9.97k|  Curl_mutex_destroy(&tpool->lock);
  ------------------
  |  |   39|  9.97k|#  define Curl_mutex_destroy(m)  pthread_mutex_destroy(m)
  ------------------
  241|  9.97k|  curlx_free(tpool);
  ------------------
  |  | 1482|  9.97k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  242|       |  return TRUE;
  ------------------
  |  | 1053|  9.97k|#define TRUE true
  ------------------
  243|  9.97k|}
thrdpool.c:thrdpool_join_zombies:
  208|  19.9k|{
  209|  19.9k|  struct Curl_llist_node *e;
  210|       |
  211|  19.9k|  for(e = Curl_llist_head(&tpool->zombies); e;
  ------------------
  |  Branch (211:45): [True: 0, False: 19.9k]
  ------------------
  212|  19.9k|      e = Curl_llist_head(&tpool->zombies)) {
  213|      0|    struct thrdslot *tslot = Curl_node_elem(e);
  214|       |
  215|      0|    Curl_node_remove(&tslot->node);
  216|      0|    if(tslot->thread != curl_thread_t_null) {
  ------------------
  |  |   35|      0|#  define curl_thread_t_null     (pthread_t *)0
  ------------------
  |  Branch (216:8): [True: 0, False: 0]
  ------------------
  217|      0|      Curl_mutex_release(&tpool->lock);
  ------------------
  |  |   38|      0|#  define Curl_mutex_release(m)  pthread_mutex_unlock(m)
  ------------------
  218|      0|      Curl_thread_join(&tslot->thread);
  219|      0|      Curl_mutex_acquire(&tpool->lock);
  ------------------
  |  |   37|      0|#  define Curl_mutex_acquire(m)  pthread_mutex_lock(m)
  ------------------
  220|      0|      tslot->thread = curl_thread_t_null;
  ------------------
  |  |   35|      0|#  define curl_thread_t_null     (pthread_t *)0
  ------------------
  221|      0|    }
  222|      0|    thrdslot_destroy(tslot);
  223|      0|  }
  224|  19.9k|}

Curl_thrdq_create:
  206|  9.97k|{
  207|  9.97k|  struct curl_thrdq *tqueue;
  208|  9.97k|  CURLcode result = CURLE_OUT_OF_MEMORY;
  209|  9.97k|  DEBUGASSERT(name);
  ------------------
  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (209:3): [True: 0, False: 9.97k]
  |  Branch (209:3): [True: 9.97k, False: 0]
  ------------------
  210|       |
  211|  9.97k|  tqueue = curlx_calloc(1, sizeof(*tqueue));
  ------------------
  |  | 1479|  9.97k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  212|  9.97k|  if(!tqueue)
  ------------------
  |  Branch (212:6): [True: 0, False: 9.97k]
  ------------------
  213|      0|    goto out;
  214|       |
  215|  9.97k|  Curl_mutex_init(&tqueue->lock);
  ------------------
  |  |   36|  9.97k|#  define Curl_mutex_init(m)     pthread_mutex_init(m, NULL)
  ------------------
  216|  9.97k|  Curl_cond_init(&tqueue->await);
  ------------------
  |  |   41|  9.97k|#  define Curl_cond_init(c)      pthread_cond_init(c, NULL)
  ------------------
  217|  9.97k|  Curl_llist_init(&tqueue->sendq, thrdq_item_list_dtor);
  218|  9.97k|  Curl_llist_init(&tqueue->recvq, thrdq_item_list_dtor);
  219|  9.97k|  tqueue->fn_free = fn_free;
  220|  9.97k|  tqueue->fn_process = fn_process;
  221|  9.97k|  tqueue->fn_event = fn_event;
  222|  9.97k|  tqueue->fn_user_data = user_data;
  223|       |
  224|       |  /* a const string that remains */
  225|  9.97k|  tqueue->name = name;
  226|       |
  227|  9.97k|  result = Curl_thrdpool_create(&tqueue->tpool, name,
  228|  9.97k|                                min_threads, max_threads, idle_time_ms,
  229|  9.97k|                                thrdq_tpool_take,
  230|  9.97k|                                thrdq_tpool_process,
  231|  9.97k|                                thrdq_tpool_return,
  232|  9.97k|                                tqueue);
  233|       |
  234|  9.97k|out:
  235|  9.97k|  if(result && tqueue) {
  ------------------
  |  Branch (235:6): [True: 0, False: 9.97k]
  |  Branch (235:16): [True: 0, False: 0]
  ------------------
  236|      0|    tqueue->aborted = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  237|      0|    thrdq_unlink(tqueue, FALSE, TRUE);
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
                  thrdq_unlink(tqueue, FALSE, TRUE);
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  238|       |    tqueue = NULL;
  239|      0|  }
  240|  9.97k|  *ptqueue = tqueue;
  241|  9.97k|  return result;
  242|  9.97k|}
Curl_thrdq_destroy:
  245|  9.97k|{
  246|  9.97k|  Curl_mutex_acquire(&tqueue->lock);
  ------------------
  |  |   37|  9.97k|#  define Curl_mutex_acquire(m)  pthread_mutex_lock(m)
  ------------------
  247|  9.97k|  DEBUGASSERT(!tqueue->aborted);
  ------------------
  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (247:3): [True: 0, False: 9.97k]
  |  Branch (247:3): [True: 9.97k, False: 0]
  ------------------
  248|  9.97k|  tqueue->aborted = TRUE;
  ------------------
  |  | 1053|  9.97k|#define TRUE true
  ------------------
  249|       |  thrdq_unlink(tqueue, TRUE, join);
  ------------------
  |  | 1053|  9.97k|#define TRUE true
  ------------------
  250|  9.97k|}
Curl_thrdq_recv:
  307|   153k|{
  308|   153k|  CURLcode result = CURLE_AGAIN;
  309|   153k|  struct Curl_llist_node *e;
  310|   153k|  uint32_t signals = 0;
  311|       |
  312|   153k|  *pitem = NULL;
  313|   153k|  Curl_mutex_acquire(&tqueue->lock);
  ------------------
  |  |   37|   153k|#  define Curl_mutex_acquire(m)  pthread_mutex_lock(m)
  ------------------
  314|   153k|  if(tqueue->aborted) {
  ------------------
  |  Branch (314:6): [True: 0, False: 153k]
  ------------------
  315|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (315:5): [Folded, False: 0]
  |  Branch (315:5): [Folded, False: 0]
  ------------------
  316|      0|    result = CURLE_RECV_ERROR;
  317|      0|    goto out;
  318|      0|  }
  319|       |
  320|   153k|  e = Curl_llist_head(&tqueue->recvq);
  321|   153k|  if(e) {
  ------------------
  |  Branch (321:6): [True: 0, False: 153k]
  ------------------
  322|      0|    struct thrdq_item *qitem = Curl_node_take_elem(e);
  323|      0|    *pitem = qitem->item;
  324|      0|    qitem->item = NULL;
  325|      0|    thrdq_item_destroy(qitem);
  326|      0|    result = CURLE_OK;
  327|      0|  }
  328|   153k|  else
  329|   153k|    signals = thrdq_get_signals(tqueue);
  330|       |
  331|   153k|out:
  332|   153k|  Curl_mutex_release(&tqueue->lock);
  ------------------
  |  |   38|   153k|#  define Curl_mutex_release(m)  pthread_mutex_unlock(m)
  ------------------
  333|       |  /* Signal thread pool unlocked to avoid deadlocks. If items await
  334|       |   * processing while nothing was ready, make sure the pool has a
  335|       |   * thread to work on them. An earlier thread start may have failed,
  336|       |   * which `Curl_thrdq_send()` cannot report to its caller. Without
  337|       |   * this, such items would sit unprocessed until the next send. */
  338|   153k|  if(signals)
  ------------------
  |  Branch (338:6): [True: 0, False: 153k]
  ------------------
  339|      0|    (void)Curl_thrdpool_signal(tqueue->tpool, (uint32_t)signals);
  340|   153k|  return result;
  341|   153k|}
Curl_thrdq_trace:
  406|   163k|{
  407|   163k|  struct curl_trc_feat *feat = &Curl_trc_feat_threads;
  408|   163k|  if(Curl_trc_ft_is_verbose(data, feat)) {
  ------------------
  |  |  329|   163k|  (Curl_trc_is_verbose(data) &&          \
  |  |  ------------------
  |  |  |  |  322|   326k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 163k, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 163k]
  |  |  |  |  ------------------
  |  |  |  |  323|   326k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  330|   163k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  ------------------
  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  ------------------
  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  409|      0|    struct Curl_llist_node *e;
  410|      0|    struct thrdq_item *qitem;
  411|       |
  412|      0|    Curl_thrdpool_trace(tqueue->tpool, data);
  413|      0|    Curl_mutex_acquire(&tqueue->lock);
  ------------------
  |  |   37|      0|#  define Curl_mutex_acquire(m)  pthread_mutex_lock(m)
  ------------------
  414|      0|    if(!Curl_llist_count(&tqueue->sendq) &&
  ------------------
  |  Branch (414:8): [True: 0, False: 0]
  ------------------
  415|      0|       !Curl_llist_count(&tqueue->recvq)) {
  ------------------
  |  Branch (415:8): [True: 0, False: 0]
  ------------------
  416|      0|      Curl_trc_feat_infof(data, feat, "[TQUEUE-%s] empty", tqueue->name);
  417|      0|    }
  418|      0|    for(e = Curl_llist_head(&tqueue->sendq); e; e = Curl_node_next(e)) {
  ------------------
  |  Branch (418:46): [True: 0, False: 0]
  ------------------
  419|      0|      qitem = Curl_node_elem(e);
  420|      0|      Curl_trc_feat_infof(data, feat, "[TQUEUE-%s] in: %s",
  421|      0|                          tqueue->name, qitem->description);
  422|      0|    }
  423|      0|    for(e = Curl_llist_head(&tqueue->recvq); e; e = Curl_node_next(e)) {
  ------------------
  |  Branch (423:46): [True: 0, False: 0]
  ------------------
  424|      0|      qitem = Curl_node_elem(e);
  425|      0|      Curl_trc_feat_infof(data, feat, "[TQUEUE-%s] out: %s",
  426|      0|                          tqueue->name, qitem->description);
  427|      0|    }
  428|      0|    Curl_mutex_release(&tqueue->lock);
  ------------------
  |  |   38|      0|#  define Curl_mutex_release(m)  pthread_mutex_unlock(m)
  ------------------
  429|      0|  }
  430|   163k|}
thrdqueue.c:thrdq_unlink:
  177|  9.97k|{
  178|  9.97k|  DEBUGASSERT(tqueue->aborted);
  ------------------
  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (178:3): [True: 0, False: 9.97k]
  |  Branch (178:3): [True: 9.97k, False: 0]
  ------------------
  179|  9.97k|  if(tqueue->tpool) {
  ------------------
  |  Branch (179:6): [True: 9.97k, False: 0]
  ------------------
  180|  9.97k|    if(locked)
  ------------------
  |  Branch (180:8): [True: 9.97k, False: 0]
  ------------------
  181|  9.97k|      Curl_mutex_release(&tqueue->lock);
  ------------------
  |  |   38|  9.97k|#  define Curl_mutex_release(m)  pthread_mutex_unlock(m)
  ------------------
  182|  9.97k|    Curl_thrdpool_destroy(tqueue->tpool, join);
  183|  9.97k|    tqueue->tpool = NULL;
  184|  9.97k|    if(locked)
  ------------------
  |  Branch (184:8): [True: 9.97k, False: 0]
  ------------------
  185|  9.97k|      Curl_mutex_acquire(&tqueue->lock);
  ------------------
  |  |   37|  9.97k|#  define Curl_mutex_acquire(m)  pthread_mutex_lock(m)
  ------------------
  186|  9.97k|  }
  187|       |
  188|  9.97k|  Curl_llist_destroy(&tqueue->sendq, NULL);
  189|  9.97k|  Curl_llist_destroy(&tqueue->recvq, NULL);
  190|  9.97k|  Curl_cond_destroy(&tqueue->await);
  ------------------
  |  |   42|  9.97k|#  define Curl_cond_destroy(c)   pthread_cond_destroy(c)
  ------------------
  191|  9.97k|  if(locked)
  ------------------
  |  Branch (191:6): [True: 9.97k, False: 0]
  ------------------
  192|  9.97k|    Curl_mutex_release(&tqueue->lock);
  ------------------
  |  |   38|  9.97k|#  define Curl_mutex_release(m)  pthread_mutex_unlock(m)
  ------------------
  193|  9.97k|  Curl_mutex_destroy(&tqueue->lock);
  ------------------
  |  |   39|  9.97k|#  define Curl_mutex_destroy(m)  pthread_mutex_destroy(m)
  ------------------
  194|  9.97k|  curlx_free(tqueue);
  ------------------
  |  | 1482|  9.97k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  195|  9.97k|}
thrdqueue.c:thrdq_get_signals:
  253|   153k|{
  254|   153k|  size_t qlen = Curl_llist_count(&tqueue->sendq);
  255|   153k|  return (qlen <= UINT32_MAX) ? (uint32_t)qlen : UINT32_MAX;
  ------------------
  |  Branch (255:10): [True: 153k, False: 0]
  ------------------
  256|   153k|}

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

Curl_uint32_bset_init:
   33|  49.8k|{
   34|  49.8k|  memset(bset, 0, sizeof(*bset));
   35|  49.8k|#ifdef DEBUGBUILD
   36|  49.8k|  bset->init = CURL_UINT32_BSET_MAGIC;
  ------------------
  |  |   29|  49.8k|#define CURL_UINT32_BSET_MAGIC  0x62757473
  ------------------
   37|  49.8k|#endif
   38|  49.8k|}
Curl_uint32_bset_resize:
   41|  49.8k|{
   42|  49.8k|  uint32_t nslots = (nmax < (UINT32_MAX - 63)) ?
  ------------------
  |  Branch (42:21): [True: 49.8k, False: 0]
  ------------------
   43|  49.8k|                    ((nmax + 63) / 64) : (UINT32_MAX / 64);
   44|       |
   45|  49.8k|  DEBUGASSERT(bset->init == CURL_UINT32_BSET_MAGIC);
  ------------------
  |  | 1083|  49.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (45:3): [True: 0, False: 49.8k]
  |  Branch (45:3): [True: 49.8k, False: 0]
  ------------------
   46|  49.8k|  if(nslots != bset->nslots) {
  ------------------
  |  Branch (46:6): [True: 49.8k, False: 0]
  ------------------
   47|  49.8k|    uint64_t *slots;
   48|  49.8k|    if(nslots > 1) {
  ------------------
  |  Branch (48:8): [True: 39.9k, False: 9.97k]
  ------------------
   49|  39.9k|      slots = curlx_calloc(nslots, sizeof(uint64_t));
  ------------------
  |  | 1479|  39.9k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
   50|  39.9k|      if(!slots)
  ------------------
  |  Branch (50:10): [True: 0, False: 39.9k]
  ------------------
   51|      0|        return CURLE_OUT_OF_MEMORY;
   52|  39.9k|    }
   53|  9.97k|    else {
   54|  9.97k|      bset->slot0 = 0;
   55|  9.97k|      slots = &bset->slot0;
   56|  9.97k|    }
   57|       |
   58|  49.8k|    if((bset->slots != slots) && nslots && bset->nslots) {
  ------------------
  |  Branch (58:8): [True: 49.8k, False: 0]
  |  Branch (58:34): [True: 49.8k, False: 0]
  |  Branch (58:44): [True: 0, False: 49.8k]
  ------------------
   59|      0|      memcpy(slots, bset->slots,
   60|      0|             (CURLMIN(nslots, bset->nslots) * sizeof(uint64_t)));
  ------------------
  |  | 1296|      0|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1296:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
   61|      0|      if(bset->slots != &bset->slot0)
  ------------------
  |  Branch (61:10): [True: 0, False: 0]
  ------------------
   62|      0|        curlx_free(bset->slots);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   63|      0|    }
   64|  49.8k|    bset->slots = slots;
   65|  49.8k|    bset->nslots = nslots;
   66|  49.8k|    bset->first_slot_used = 0;
   67|  49.8k|  }
   68|  49.8k|  return CURLE_OK;
   69|  49.8k|}
Curl_uint32_bset_destroy:
   72|  49.8k|{
   73|  49.8k|  DEBUGASSERT(bset->init == CURL_UINT32_BSET_MAGIC);
  ------------------
  |  | 1083|  49.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (73:3): [True: 0, False: 49.8k]
  |  Branch (73:3): [True: 49.8k, False: 0]
  ------------------
   74|  49.8k|  if(bset->slots != &bset->slot0)
  ------------------
  |  Branch (74:6): [True: 39.9k, False: 9.97k]
  ------------------
   75|  39.9k|    curlx_free(bset->slots);
  ------------------
  |  | 1482|  39.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   76|  49.8k|  memset(bset, 0, sizeof(*bset));
   77|  49.8k|}
Curl_uint32_bset_empty:
  100|  9.96k|{
  101|  9.96k|  uint32_t i;
  102|  9.96k|  for(i = bset->first_slot_used; i < bset->nslots; ++i) {
  ------------------
  |  Branch (102:34): [True: 9.96k, False: 0]
  ------------------
  103|  9.96k|    if(bset->slots[i])
  ------------------
  |  Branch (103:8): [True: 9.96k, False: 0]
  ------------------
  104|  9.96k|      return FALSE;
  ------------------
  |  | 1056|  9.96k|#define FALSE false
  ------------------
  105|  9.96k|  }
  106|      0|  return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  107|  9.96k|}
Curl_uint32_bset_add:
  118|  41.8k|{
  119|  41.8k|  uint32_t islot = i / 64;
  120|  41.8k|  if(islot >= bset->nslots)
  ------------------
  |  Branch (120:6): [True: 0, False: 41.8k]
  ------------------
  121|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  122|  41.8k|  bset->slots[islot] |= ((uint64_t)1 << (i % 64));
  123|  41.8k|  if(islot < bset->first_slot_used)
  ------------------
  |  Branch (123:6): [True: 0, False: 41.8k]
  ------------------
  124|      0|    bset->first_slot_used = islot;
  125|       |  return TRUE;
  ------------------
  |  | 1053|  41.8k|#define TRUE true
  ------------------
  126|  41.8k|}
Curl_uint32_bset_remove:
  129|   398k|{
  130|   398k|  size_t islot = i / 64;
  131|   398k|  if(islot < bset->nslots)
  ------------------
  |  Branch (131:6): [True: 398k, False: 0]
  ------------------
  132|   398k|    bset->slots[islot] &= ~((uint64_t)1 << (i % 64));
  133|   398k|}
Curl_uint32_bset_contains:
  136|  19.9k|{
  137|  19.9k|  uint32_t islot = i / 64;
  138|  19.9k|  if(islot >= bset->nslots)
  ------------------
  |  Branch (138:6): [True: 0, False: 19.9k]
  ------------------
  139|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  140|  19.9k|  return (bset->slots[islot] & ((uint64_t)1 << (i % 64))) != 0;
  141|  19.9k|}
Curl_uint32_bset_first:
  144|   365k|{
  145|   365k|  uint32_t i;
  146|   444k|  for(i = bset->first_slot_used; i < bset->nslots; ++i) {
  ------------------
  |  Branch (146:34): [True: 376k, False: 68.2k]
  ------------------
  147|   376k|    if(bset->slots[i]) {
  ------------------
  |  Branch (147:8): [True: 296k, False: 79.8k]
  ------------------
  148|   296k|      *pfirst = (i * 64) + CURL_CTZ64(bset->slots[i]);
  ------------------
  |  |  348|   296k|#      define CURL_CTZ64(x)            __builtin_ctzl(x)
  ------------------
  149|   296k|      bset->first_slot_used = i;
  150|   296k|      return TRUE;
  ------------------
  |  | 1053|   296k|#define TRUE true
  ------------------
  151|   296k|    }
  152|   376k|  }
  153|  68.2k|  bset->first_slot_used = *pfirst = UINT32_MAX;
  154|       |  return FALSE;
  ------------------
  |  | 1056|  68.2k|#define FALSE false
  ------------------
  155|   365k|}
Curl_uint32_bset_next:
  159|   593k|{
  160|   593k|  uint32_t islot;
  161|   593k|  uint64_t x;
  162|       |
  163|   593k|  ++last; /* look for number one higher than last */
  164|   593k|  islot = last / 64; /* the slot this would be in */
  165|   593k|  if(islot < bset->nslots) {
  ------------------
  |  Branch (165:6): [True: 593k, False: 0]
  ------------------
  166|       |    /* shift away the bits we already iterated in this slot */
  167|   593k|    x = (bset->slots[islot] >> (last % 64));
  168|   593k|    if(x) {
  ------------------
  |  Branch (168:8): [True: 296k, False: 296k]
  ------------------
  169|       |      /* more bits set, next is `last` + trailing 0s of the shifted slot */
  170|   296k|      *pnext = last + CURL_CTZ64(x);
  ------------------
  |  |  348|   296k|#      define CURL_CTZ64(x)            __builtin_ctzl(x)
  ------------------
  171|   296k|      return TRUE;
  ------------------
  |  | 1053|   296k|#define TRUE true
  ------------------
  172|   296k|    }
  173|       |    /* no more bits set in the last slot, scan forward */
  174|  2.37M|    for(islot = islot + 1; islot < bset->nslots; ++islot) {
  ------------------
  |  Branch (174:28): [True: 2.07M, False: 296k]
  ------------------
  175|  2.07M|      if(bset->slots[islot]) {
  ------------------
  |  Branch (175:10): [True: 0, False: 2.07M]
  ------------------
  176|      0|        *pnext = (islot * 64) + CURL_CTZ64(bset->slots[islot]);
  ------------------
  |  |  348|      0|#      define CURL_CTZ64(x)            __builtin_ctzl(x)
  ------------------
  177|      0|        return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  178|      0|      }
  179|  2.07M|    }
  180|   296k|  }
  181|   296k|  *pnext = UINT32_MAX; /* a value we cannot store */
  182|       |  return FALSE;
  ------------------
  |  | 1056|   296k|#define FALSE false
  ------------------
  183|   593k|}

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

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

Curl_freeset:
  149|  19.9k|{
  150|       |  /* Free all dynamic strings stored in the data->set substructure. */
  151|  19.9k|  enum dupstring i;
  152|  19.9k|  enum dupblob j;
  153|       |
  154|  1.43M|  for(i = (enum dupstring)0; i < STRING_LAST; i++) {
  ------------------
  |  Branch (154:30): [True: 1.41M, False: 19.9k]
  ------------------
  155|  1.41M|    if(i == STRING_PASSWORD ||
  ------------------
  |  Branch (155:8): [True: 19.9k, False: 1.39M]
  ------------------
  156|  1.39M|       i == STRING_KEY_PASSWD ||
  ------------------
  |  Branch (156:8): [True: 19.9k, False: 1.37M]
  ------------------
  157|  1.37M|#ifndef CURL_DISABLE_PROXY
  158|  1.37M|       i == STRING_PROXYPASSWORD ||
  ------------------
  |  Branch (158:8): [True: 19.9k, False: 1.35M]
  ------------------
  159|  1.35M|       i == STRING_KEY_PASSWD_PROXY ||
  ------------------
  |  Branch (159:8): [True: 19.9k, False: 1.33M]
  ------------------
  160|  1.33M|#endif
  161|  1.33M|       i == STRING_BEARER) {
  ------------------
  |  Branch (161:8): [True: 19.9k, False: 1.31M]
  ------------------
  162|  99.7k|      curlx_strzero(data->set.str[i]);
  163|  99.7k|    }
  164|  1.41M|    curlx_safefree(data->set.str[i]);
  ------------------
  |  | 1340|  1.41M|  do {                      \
  |  | 1341|  1.41M|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  1.41M|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  1.41M|    (ptr) = NULL;           \
  |  | 1343|  1.41M|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 1.41M]
  |  |  ------------------
  ------------------
  165|  1.41M|  }
  166|       |
  167|   179k|  for(j = (enum dupblob)0; j < BLOB_LAST; j++) {
  ------------------
  |  Branch (167:28): [True: 159k, False: 19.9k]
  ------------------
  168|   159k|    curlx_safefree(data->set.blobs[j]);
  ------------------
  |  | 1340|   159k|  do {                      \
  |  | 1341|   159k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|   159k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|   159k|    (ptr) = NULL;           \
  |  | 1343|   159k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 159k]
  |  |  ------------------
  ------------------
  169|   159k|  }
  170|       |
  171|  19.9k|  Curl_bufref_free(&data->state.referer);
  172|  19.9k|  Curl_bufref_free(&data->state.url);
  173|       |
  174|  19.9k|#if !defined(CURL_DISABLE_MIME) || !defined(CURL_DISABLE_FORM_API)
  175|  19.9k|  Curl_mime_cleanpart(data->set.mimepostp);
  176|  19.9k|  curlx_safefree(data->set.mimepostp);
  ------------------
  |  | 1340|  19.9k|  do {                      \
  |  | 1341|  19.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  19.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  19.9k|    (ptr) = NULL;           \
  |  | 1343|  19.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 19.9k]
  |  |  ------------------
  ------------------
  177|  19.9k|#endif
  178|       |
  179|  19.9k|#ifndef CURL_DISABLE_COOKIES
  180|  19.9k|  curl_slist_free_all(data->state.cookielist);
  181|       |  data->state.cookielist = NULL;
  182|  19.9k|#endif
  183|  19.9k|}
Curl_close:
  203|  19.9k|{
  204|  19.9k|  struct Curl_easy *data;
  205|       |
  206|  19.9k|  if(!datap || !*datap)
  ------------------
  |  Branch (206:6): [True: 0, False: 19.9k]
  |  Branch (206:16): [True: 0, False: 19.9k]
  ------------------
  207|      0|    return CURLE_OK;
  208|       |
  209|  19.9k|  data = *datap;
  210|  19.9k|  *datap = NULL;
  211|       |
  212|  19.9k|  if(!data->state.internal && data->multi) {
  ------------------
  |  Branch (212:6): [True: 9.97k, False: 9.97k]
  |  Branch (212:31): [True: 0, False: 9.97k]
  ------------------
  213|       |    /* This handle is still part of a multi handle, take care of this first
  214|       |       and detach this handle from there.
  215|       |       This detaches the connection. */
  216|      0|    Curl_multi_remove_handle(data->multi, data);
  217|      0|  }
  218|  19.9k|  else {
  219|       |    /* Detach connection if any is left. This should not be normal, but can be
  220|       |       the case for example with CONNECT_ONLY + recv/send (test 556) */
  221|  19.9k|    Curl_detach_connection(data);
  222|  19.9k|    if(!data->state.internal && data->multi_easy) {
  ------------------
  |  Branch (222:8): [True: 9.97k, False: 9.97k]
  |  Branch (222:33): [True: 0, False: 9.97k]
  ------------------
  223|       |      /* when curl_easy_perform() is used, it creates its own multi handle to
  224|       |         use and this is the one */
  225|      0|      curl_multi_cleanup(data->multi_easy);
  226|      0|      data->multi_easy = NULL;
  227|      0|    }
  228|  19.9k|  }
  229|  19.9k|  DEBUGASSERT(!data->conn || data->state.internal);
  ------------------
  |  | 1083|  19.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (229:3): [True: 19.9k, False: 0]
  |  Branch (229:3): [True: 0, False: 0]
  |  Branch (229:3): [True: 19.9k, False: 0]
  |  Branch (229:3): [True: 0, False: 0]
  ------------------
  230|       |
  231|  19.9k|  Curl_expire_clear(data); /* shut off any timers left */
  232|       |
  233|  19.9k|  if(data->state.rangestringalloc)
  ------------------
  |  Branch (233:6): [True: 0, False: 19.9k]
  ------------------
  234|      0|    curlx_free(data->state.range);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  235|       |
  236|       |  /* release any resolve information this transfer kept */
  237|  19.9k|  Curl_resolv_destroy_all(data);
  238|       |
  239|  19.9k|  data->set.verbose = FALSE; /* no more calls to DEBUGFUNCTION */
  ------------------
  |  | 1056|  19.9k|#define FALSE false
  ------------------
  240|  19.9k|  data->magic = 0; /* force a clear AFTER the possibly enforced removal from
  241|       |                    * the multi handle and async dns shutdown. The multi
  242|       |                    * handle might check the magic and so might any
  243|       |                    * DEBUGFUNCTION invoked for tracing */
  244|       |
  245|       |  /* freed here in case DONE was not called */
  246|  19.9k|  Curl_req_free(&data->req, data);
  247|       |
  248|       |  /* Close down all open SSL info and sessions */
  249|  19.9k|  Curl_ssl_close_all(data);
  250|  19.9k|  Curl_peer_unlink(&data->state.origin);
  251|  19.9k|  Curl_peer_unlink(&data->state.initial_origin);
  252|  19.9k|  Curl_ssl_free_certinfo(data);
  253|       |
  254|  19.9k|  Curl_bufref_free(&data->state.referer);
  255|       |
  256|  19.9k|  up_free(data);
  257|  19.9k|  curlx_dyn_free(&data->state.headerb);
  258|  19.9k|  Curl_flush_cookies(data, TRUE);
  ------------------
  |  | 1053|  19.9k|#define TRUE true
  ------------------
  259|  19.9k|#ifndef CURL_DISABLE_ALTSVC
  260|  19.9k|  Curl_altsvc_save(data, data->asi, data->set.str[STRING_ALTSVC]);
  261|  19.9k|  Curl_altsvc_cleanup(&data->asi);
  262|  19.9k|#endif
  263|  19.9k|#ifndef CURL_DISABLE_HSTS
  264|  19.9k|  Curl_hsts_save(data, data->hsts, data->set.str[STRING_HSTS]);
  265|  19.9k|  if(!data->share || !data->share->hsts)
  ------------------
  |  Branch (265:6): [True: 19.9k, False: 0]
  |  Branch (265:22): [True: 0, False: 0]
  ------------------
  266|  19.9k|    Curl_hsts_cleanup(&data->hsts);
  267|  19.9k|  curl_slist_free_all(data->state.hstslist); /* clean up list */
  268|  19.9k|#endif
  269|  19.9k|#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_DIGEST_AUTH)
  270|  19.9k|  Curl_http_auth_cleanup_digest(data);
  271|  19.9k|#endif
  272|  19.9k|  curlx_safefree(data->state.most_recent_ftp_entrypath);
  ------------------
  |  | 1340|  19.9k|  do {                      \
  |  | 1341|  19.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  19.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  19.9k|    (ptr) = NULL;           \
  |  | 1343|  19.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 19.9k]
  |  |  ------------------
  ------------------
  273|  19.9k|  curlx_safefree(data->info.contenttype);
  ------------------
  |  | 1340|  19.9k|  do {                      \
  |  | 1341|  19.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  19.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  19.9k|    (ptr) = NULL;           \
  |  | 1343|  19.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 19.9k]
  |  |  ------------------
  ------------------
  274|  19.9k|  curlx_safefree(data->info.wouldredirect);
  ------------------
  |  | 1340|  19.9k|  do {                      \
  |  | 1341|  19.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  19.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  19.9k|    (ptr) = NULL;           \
  |  | 1343|  19.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 19.9k]
  |  |  ------------------
  ------------------
  275|       |
  276|       |  /* No longer a dirty share, if it exists */
  277|  19.9k|  if(Curl_share_easy_unlink(data))
  ------------------
  |  Branch (277:6): [True: 0, False: 19.9k]
  ------------------
  278|  19.9k|    DEBUGASSERT(0);
  ------------------
  |  | 1083|  19.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (278:5): [Folded, False: 0]
  |  Branch (278:5): [Folded, False: 0]
  ------------------
  279|       |
  280|  19.9k|  Curl_hash_destroy(&data->meta_hash);
  281|  19.9k|  Curl_creds_unlink(&data->state.creds);
  282|  19.9k|  curlx_safefree(data->state.aptr.uagent);
  ------------------
  |  | 1340|  19.9k|  do {                      \
  |  | 1341|  19.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  19.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  19.9k|    (ptr) = NULL;           \
  |  | 1343|  19.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 19.9k]
  |  |  ------------------
  ------------------
  283|  19.9k|  curlx_safefree(data->state.aptr.accept_encoding);
  ------------------
  |  | 1340|  19.9k|  do {                      \
  |  | 1341|  19.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  19.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  19.9k|    (ptr) = NULL;           \
  |  | 1343|  19.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 19.9k]
  |  |  ------------------
  ------------------
  284|  19.9k|  curlx_safefree(data->state.aptr.rangeline);
  ------------------
  |  | 1340|  19.9k|  do {                      \
  |  | 1341|  19.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  19.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  19.9k|    (ptr) = NULL;           \
  |  | 1343|  19.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 19.9k]
  |  |  ------------------
  ------------------
  285|  19.9k|  curlx_safefree(data->state.aptr.ref);
  ------------------
  |  | 1340|  19.9k|  do {                      \
  |  | 1341|  19.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  19.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  19.9k|    (ptr) = NULL;           \
  |  | 1343|  19.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 19.9k]
  |  |  ------------------
  ------------------
  286|  19.9k|  curlx_safefree(data->state.aptr.host);
  ------------------
  |  | 1340|  19.9k|  do {                      \
  |  | 1341|  19.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  19.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  19.9k|    (ptr) = NULL;           \
  |  | 1343|  19.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 19.9k]
  |  |  ------------------
  ------------------
  287|  19.9k|#ifndef CURL_DISABLE_COOKIES
  288|  19.9k|  curlx_safefree(data->req.cookiehost);
  ------------------
  |  | 1340|  19.9k|  do {                      \
  |  | 1341|  19.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  19.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  19.9k|    (ptr) = NULL;           \
  |  | 1343|  19.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 19.9k]
  |  |  ------------------
  ------------------
  289|  19.9k|#endif
  290|  19.9k|#ifndef CURL_DISABLE_RTSP
  291|  19.9k|  curlx_safefree(data->state.aptr.rtsp_transport);
  ------------------
  |  | 1340|  19.9k|  do {                      \
  |  | 1341|  19.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  19.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  19.9k|    (ptr) = NULL;           \
  |  | 1343|  19.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 19.9k]
  |  |  ------------------
  ------------------
  292|  19.9k|#endif
  293|       |
  294|  19.9k|#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_FORM_API)
  295|  19.9k|  Curl_mime_cleanpart(data->state.formp);
  296|  19.9k|  curlx_safefree(data->state.formp);
  ------------------
  |  | 1340|  19.9k|  do {                      \
  |  | 1341|  19.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  19.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  19.9k|    (ptr) = NULL;           \
  |  | 1343|  19.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 19.9k]
  |  |  ------------------
  ------------------
  297|  19.9k|#endif
  298|       |
  299|       |  /* destruct wildcard structures if it is needed */
  300|  19.9k|  Curl_wildcard_dtor(&data->wildcard);
  301|  19.9k|  Curl_freeset(data);
  302|  19.9k|  Curl_headers_cleanup(data);
  303|  19.9k|  Curl_netrc_cleanup(&data->state.netrc);
  304|  19.9k|#ifndef CURL_DISABLE_DIGEST_AUTH
  305|  19.9k|  curlx_free(data->state.envproxy);
  ------------------
  |  | 1482|  19.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  306|  19.9k|#endif
  307|  19.9k|  Curl_ssl_config_cleanup(&data->set.ssl.primary);
  308|  19.9k|#ifndef CURL_DISABLE_PROXY
  309|  19.9k|  Curl_ssl_config_cleanup(&data->set.proxy_ssl.primary);
  310|  19.9k|#endif
  311|  19.9k|  curlx_memzero(data, sizeof(*data));
  312|  19.9k|  curlx_free(data);
  ------------------
  |  | 1482|  19.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  313|  19.9k|  return CURLE_OK;
  314|  19.9k|}
Curl_init_userdefined:
  321|  19.9k|{
  322|  19.9k|  struct UserDefined *set = &data->set;
  323|       |
  324|  19.9k|  set->out = stdout;  /* default output to stdout */
  325|  19.9k|  set->in_set = stdin;  /* default input from stdin */
  326|  19.9k|  set->err = stderr;  /* default stderr to stderr */
  327|       |
  328|  19.9k|#if defined(__clang__) && __clang_major__ >= 16
  329|  19.9k|#pragma clang diagnostic push
  330|  19.9k|#pragma clang diagnostic ignored "-Wcast-function-type-strict"
  331|  19.9k|#endif
  332|       |  /* use fwrite as default function to store output */
  333|  19.9k|  set->fwrite_func = (curl_write_callback)fwrite;
  334|       |
  335|       |  /* use fread as default function to read input */
  336|  19.9k|  set->fread_func_set = (curl_read_callback)fread;
  337|  19.9k|#if defined(__clang__) && __clang_major__ >= 16
  338|  19.9k|#pragma clang diagnostic pop
  339|  19.9k|#endif
  340|  19.9k|  set->is_fread_set = 0;
  341|       |
  342|  19.9k|  set->seek_client = ZERO_NULL;
  ------------------
  |  | 1166|  19.9k|#define ZERO_NULL 0
  ------------------
  343|       |
  344|  19.9k|  set->filesize = -1;        /* we do not know the size */
  345|  19.9k|  set->postfieldsize = -1;   /* unknown size */
  346|  19.9k|  set->maxredirs = 30;       /* sensible default */
  347|       |
  348|  19.9k|  set->method = HTTPREQ_GET; /* Default HTTP request */
  349|  19.9k|#ifndef CURL_DISABLE_RTSP
  350|  19.9k|  set->rtspreq = RTSPREQ_OPTIONS; /* Default RTSP request */
  ------------------
  |  |   34|  19.9k|#define RTSPREQ_OPTIONS CURL_RTSPREQ_OPTIONS
  |  |  ------------------
  |  |  |  | 2365|  19.9k|#define CURL_RTSPREQ_OPTIONS       1L
  |  |  ------------------
  ------------------
  351|  19.9k|#endif
  352|  19.9k|#ifndef CURL_DISABLE_FTP
  353|  19.9k|  set->ftp_use_epsv = TRUE;   /* FTP defaults to EPSV operations */
  ------------------
  |  | 1053|  19.9k|#define TRUE true
  ------------------
  354|  19.9k|  set->ftp_use_eprt = TRUE;   /* FTP defaults to EPRT operations */
  ------------------
  |  | 1053|  19.9k|#define TRUE true
  ------------------
  355|  19.9k|  set->ftp_use_pret = FALSE;  /* mainly useful for drftpd servers */
  ------------------
  |  | 1056|  19.9k|#define FALSE false
  ------------------
  356|  19.9k|  set->ftp_filemethod = FTPFILE_MULTICWD;
  357|  19.9k|  set->ftp_skip_ip = TRUE;    /* skip PASV IP by default */
  ------------------
  |  | 1053|  19.9k|#define TRUE true
  ------------------
  358|  19.9k|#endif
  359|  19.9k|  set->dns_cache_timeout_ms = 60000; /* Timeout every 60 seconds by default */
  360|       |
  361|       |  /* Timeout every 24 hours by default */
  362|  19.9k|  set->general_ssl.ca_cache_timeout = 24 * 60 * 60;
  363|       |
  364|  19.9k|  set->httpauth = CURLAUTH_BASIC;  /* defaults to basic */
  ------------------
  |  |  831|  19.9k|#define CURLAUTH_BASIC        (((unsigned long)1) << 0)
  ------------------
  365|       |
  366|  19.9k|  Curl_ssl_config_init(&data->set.ssl.primary);
  367|  19.9k|#ifndef CURL_DISABLE_PROXY
  368|  19.9k|  Curl_ssl_config_init(&data->set.proxy_ssl.primary);
  369|  19.9k|  set->proxyport = 0;
  370|  19.9k|  set->proxytype = CURLPROXY_HTTP; /* defaults to HTTP proxy */
  ------------------
  |  |  790|  19.9k|#define CURLPROXY_HTTP            0L /* added in 7.10, new in 7.19.4 default is
  ------------------
  371|  19.9k|  set->proxyauth = CURLAUTH_BASIC; /* defaults to basic */
  ------------------
  |  |  831|  19.9k|#define CURLAUTH_BASIC        (((unsigned long)1) << 0)
  ------------------
  372|       |  /* SOCKS5 proxy auth defaults to username/password + GSS-API */
  373|  19.9k|  set->socks5auth = CURLAUTH_BASIC | CURLAUTH_GSSAPI;
  ------------------
  |  |  831|  19.9k|#define CURLAUTH_BASIC        (((unsigned long)1) << 0)
  ------------------
                set->socks5auth = CURLAUTH_BASIC | CURLAUTH_GSSAPI;
  ------------------
  |  |  837|  19.9k|#define CURLAUTH_GSSAPI CURLAUTH_NEGOTIATE
  |  |  ------------------
  |  |  |  |  833|  19.9k|#define CURLAUTH_NEGOTIATE    (((unsigned long)1) << 2)
  |  |  ------------------
  ------------------
  374|  19.9k|#endif
  375|       |
  376|  19.9k|#ifndef CURL_DISABLE_DOH
  377|  19.9k|  set->doh_verifyhost = TRUE;
  ------------------
  |  | 1053|  19.9k|#define TRUE true
  ------------------
  378|  19.9k|  set->doh_verifypeer = TRUE;
  ------------------
  |  | 1053|  19.9k|#define TRUE true
  ------------------
  379|  19.9k|#endif
  380|       |#ifdef USE_SSH
  381|       |  /* defaults to any auth type */
  382|       |  set->ssh_auth_types = CURLSSH_AUTH_DEFAULT;
  383|       |  set->new_directory_perms = 0755; /* Default permissions */
  384|       |#endif
  385|       |
  386|  19.9k|  set->new_file_perms = 0644;    /* Default permissions */
  387|  19.9k|  set->allowed_protocols = (curl_prot_t)CURLPROTO_64ALL;
  ------------------
  |  |   68|  19.9k|#define CURLPROTO_64ALL ((uint64_t)0xffffffffffffffff)
  ------------------
  388|  19.9k|  set->redir_protocols = CURLPROTO_REDIR;
  ------------------
  |  |   71|  19.9k|#define CURLPROTO_REDIR (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_FTP | \
  |  |  ------------------
  |  |  |  | 1086|  19.9k|#define CURLPROTO_HTTP    (1L << 0)
  |  |  ------------------
  |  |               #define CURLPROTO_REDIR (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_FTP | \
  |  |  ------------------
  |  |  |  | 1087|  19.9k|#define CURLPROTO_HTTPS   (1L << 1)
  |  |  ------------------
  |  |               #define CURLPROTO_REDIR (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_FTP | \
  |  |  ------------------
  |  |  |  | 1088|  19.9k|#define CURLPROTO_FTP     (1L << 2)
  |  |  ------------------
  |  |   72|  19.9k|                         CURLPROTO_FTPS)
  |  |  ------------------
  |  |  |  | 1089|  19.9k|#define CURLPROTO_FTPS    (1L << 3)
  |  |  ------------------
  ------------------
  389|       |
  390|       |#if defined(HAVE_GSSAPI) || defined(USE_WINDOWS_SSPI)
  391|       |  /*
  392|       |   * disallow unprotected protection negotiation NEC reference implementation
  393|       |   * seem not to follow rfc1961 section 4.3/4.4
  394|       |   */
  395|       |  set->socks5_gssapi_nec = FALSE;
  396|       |#endif
  397|       |
  398|       |  /* set default minimum TLS version */
  399|  19.9k|#ifdef USE_SSL
  400|  19.9k|  Curl_setopt_SSLVERSION(data, CURLOPT_SSLVERSION, CURL_SSLVERSION_DEFAULT);
  ------------------
  |  | 2392|  19.9k|#define CURL_SSLVERSION_DEFAULT 0L
  ------------------
  401|  19.9k|#ifndef CURL_DISABLE_PROXY
  402|  19.9k|  Curl_setopt_SSLVERSION(data, CURLOPT_PROXY_SSLVERSION,
  403|  19.9k|                         CURL_SSLVERSION_DEFAULT);
  ------------------
  |  | 2392|  19.9k|#define CURL_SSLVERSION_DEFAULT 0L
  ------------------
  404|  19.9k|#endif
  405|  19.9k|#endif
  406|  19.9k|#ifndef CURL_DISABLE_FTP
  407|  19.9k|  set->wildcard_enabled = FALSE;
  ------------------
  |  | 1056|  19.9k|#define FALSE false
  ------------------
  408|  19.9k|  set->chunk_bgn = ZERO_NULL;
  ------------------
  |  | 1166|  19.9k|#define ZERO_NULL 0
  ------------------
  409|  19.9k|  set->chunk_end = ZERO_NULL;
  ------------------
  |  | 1166|  19.9k|#define ZERO_NULL 0
  ------------------
  410|  19.9k|  set->fnmatch = ZERO_NULL;
  ------------------
  |  | 1166|  19.9k|#define ZERO_NULL 0
  ------------------
  411|  19.9k|#endif
  412|  19.9k|  set->tcp_keepalive = FALSE;
  ------------------
  |  | 1056|  19.9k|#define FALSE false
  ------------------
  413|  19.9k|  set->tcp_keepintvl = 60;
  414|  19.9k|  set->tcp_keepidle = 60;
  415|  19.9k|  set->tcp_keepcnt = 9;
  416|  19.9k|  set->tcp_fastopen = FALSE;
  ------------------
  |  | 1056|  19.9k|#define FALSE false
  ------------------
  417|  19.9k|  set->tcp_nodelay = TRUE;
  ------------------
  |  | 1053|  19.9k|#define TRUE true
  ------------------
  418|  19.9k|  set->ssl_enable_alpn = TRUE;
  ------------------
  |  | 1053|  19.9k|#define TRUE true
  ------------------
  419|  19.9k|  set->expect_100_timeout = 1000L; /* Wait for a second by default. */
  420|  19.9k|  set->sep_headers = TRUE; /* separated header lists by default */
  ------------------
  |  | 1053|  19.9k|#define TRUE true
  ------------------
  421|  19.9k|  set->buffer_size = READBUFFER_SIZE;
  ------------------
  |  |  120|  19.9k|#define READBUFFER_SIZE CURL_MAX_WRITE_SIZE
  |  |  ------------------
  |  |  |  |  265|  19.9k|#define CURL_MAX_WRITE_SIZE 16384
  |  |  ------------------
  ------------------
  422|  19.9k|  set->upload_buffer_size = UPLOADBUFFER_DEFAULT;
  ------------------
  |  |  132|  19.9k|#define UPLOADBUFFER_DEFAULT 65536
  ------------------
  423|  19.9k|  set->upload_flags = CURLULFLAG_SEEN;
  ------------------
  |  | 1052|  19.9k|#define CURLULFLAG_SEEN     (1L << 4)
  ------------------
  424|  19.9k|  set->happy_eyeballs_timeout = CURL_HET_DEFAULT;
  ------------------
  |  |  977|  19.9k|#define CURL_HET_DEFAULT 200L
  ------------------
  425|  19.9k|  set->upkeep_interval_ms = CURL_UPKEEP_INTERVAL_DEFAULT;
  ------------------
  |  |  980|  19.9k|#define CURL_UPKEEP_INTERVAL_DEFAULT 60000L
  ------------------
  426|  19.9k|  set->maxconnects = DEFAULT_CONNCACHE_SIZE; /* for easy handles */
  ------------------
  |  |   38|  19.9k|#define DEFAULT_CONNCACHE_SIZE 5
  ------------------
  427|  19.9k|  set->conn_max_idle_ms = 118 * 1000;
  428|  19.9k|  set->conn_max_age_ms = 24 * 3600 * 1000;
  429|  19.9k|  set->http09_allowed = FALSE;
  ------------------
  |  | 1056|  19.9k|#define FALSE false
  ------------------
  430|  19.9k|  set->httpwant = CURL_HTTP_VERSION_NONE;
  ------------------
  |  | 2336|  19.9k|#define CURL_HTTP_VERSION_NONE  0L /* setting this means we do not care, and
  ------------------
  431|  19.9k|#if defined(USE_HTTP2) || defined(USE_HTTP3)
  432|  19.9k|  memset(&set->priority, 0, sizeof(set->priority));
  433|  19.9k|#endif
  434|  19.9k|  set->quick_exit = 0L;
  435|  19.9k|#ifndef CURL_DISABLE_WEBSOCKETS
  436|  19.9k|  set->ws_raw_mode = FALSE;
  ------------------
  |  | 1056|  19.9k|#define FALSE false
  ------------------
  437|       |  set->ws_no_auto_pong = FALSE;
  ------------------
  |  | 1056|  19.9k|#define FALSE false
  ------------------
  438|  19.9k|#endif
  439|  19.9k|}
Curl_open:
  460|  19.9k|{
  461|  19.9k|  struct Curl_easy *data;
  462|       |
  463|       |  /* simple start-up: alloc the struct, init it with zeroes and return */
  464|  19.9k|  data = curlx_calloc(1, sizeof(struct Curl_easy));
  ------------------
  |  | 1479|  19.9k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  465|  19.9k|  if(!data) {
  ------------------
  |  Branch (465:6): [True: 0, False: 19.9k]
  ------------------
  466|       |    /* this is a serious error */
  467|      0|    DEBUGF(curl_mfprintf(stderr, "Error: calloc of Curl_easy failed\n"));
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  ------------------
  468|      0|    return CURLE_OUT_OF_MEMORY;
  469|      0|  }
  470|       |
  471|  19.9k|  data->magic = CURLEASY_MAGIC_NUMBER;
  ------------------
  |  |   28|  19.9k|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  ------------------
  472|       |  /* most recent connection is not yet defined */
  473|  19.9k|  data->state.lastconnect_id = -1;
  474|  19.9k|  data->state.recent_conn_id = -1;
  475|       |  /* and not assigned an id yet */
  476|  19.9k|  data->id = -1;
  477|  19.9k|  data->mid = UINT32_MAX;
  478|  19.9k|  data->master_mid = UINT32_MAX;
  479|  19.9k|  data->progress.hide = TRUE;
  ------------------
  |  | 1053|  19.9k|#define TRUE true
  ------------------
  480|  19.9k|  data->state.current_speed = -1; /* init to negative == impossible */
  481|       |
  482|  19.9k|  Curl_hash_init(&data->meta_hash, 23,
  483|  19.9k|                 Curl_hash_str, curlx_str_key_compare, easy_meta_freeentry);
  484|  19.9k|  curlx_dyn_init(&data->state.headerb, CURL_MAX_HTTP_HEADER);
  ------------------
  |  |  272|  19.9k|#define CURL_MAX_HTTP_HEADER (100 * 1024)
  ------------------
  485|  19.9k|  Curl_bufref_init(&data->state.url);
  486|  19.9k|  Curl_bufref_init(&data->state.referer);
  487|  19.9k|  Curl_req_init(&data->req);
  488|  19.9k|  Curl_initinfo(data);
  489|  19.9k|#ifndef CURL_DISABLE_HTTP
  490|  19.9k|  Curl_llist_init(&data->state.httphdrs, NULL);
  491|  19.9k|#endif
  492|  19.9k|  Curl_netrc_init(&data->state.netrc);
  493|  19.9k|  Curl_init_userdefined(data);
  494|       |
  495|  19.9k|  *curl = data;
  496|  19.9k|  return CURLE_OK;
  497|  19.9k|}
Curl_conn_free:
  500|  14.3k|{
  501|  14.3k|  size_t i;
  502|       |
  503|  14.3k|  DEBUGASSERT(conn);
  ------------------
  |  | 1083|  14.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (503:3): [True: 0, False: 14.3k]
  |  Branch (503:3): [True: 14.3k, False: 0]
  ------------------
  504|       |
  505|  14.3k|  if(conn->scheme && conn->scheme->run->disconnect &&
  ------------------
  |  Branch (505:6): [True: 14.2k, False: 97]
  |  Branch (505:22): [True: 0, False: 14.2k]
  ------------------
  506|      0|     !conn->bits.shutdown_handler)
  ------------------
  |  Branch (506:6): [True: 0, False: 0]
  ------------------
  507|      0|    conn->scheme->run->disconnect(data, conn, TRUE);
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  508|       |
  509|  43.0k|  for(i = 0; i < CURL_ARRAYSIZE(conn->cfilter); ++i) {
  ------------------
  |  | 1307|  43.0k|#define CURL_ARRAYSIZE(A) (sizeof(A) / sizeof((A)[0]))
  ------------------
  |  Branch (509:14): [True: 28.6k, False: 14.3k]
  ------------------
  510|  28.6k|    Curl_conn_cf_discard_all(data, conn, (int)i);
  511|  28.6k|  }
  512|       |
  513|  14.3k|#ifndef CURL_DISABLE_PROXY
  514|  14.3k|  Curl_peer_unlink(&conn->http_proxy.peer);
  515|  14.3k|  Curl_peer_unlink(&conn->socks_proxy.peer);
  516|  14.3k|  Curl_creds_unlink(&conn->http_proxy.creds);
  517|  14.3k|  Curl_creds_unlink(&conn->socks_proxy.creds);
  518|  14.3k|#endif
  519|  14.3k|  Curl_creds_unlink(&conn->creds);
  520|  14.3k|  Curl_peer_unlink(&conn->creds_origin);
  521|  14.3k|  curlx_safefree(conn->options);
  ------------------
  |  | 1340|  14.3k|  do {                      \
  |  | 1341|  14.3k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  14.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  14.3k|    (ptr) = NULL;           \
  |  | 1343|  14.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 14.3k]
  |  |  ------------------
  ------------------
  522|  14.3k|  curlx_safefree(conn->localdev);
  ------------------
  |  | 1340|  14.3k|  do {                      \
  |  | 1341|  14.3k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  14.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  14.3k|    (ptr) = NULL;           \
  |  | 1343|  14.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 14.3k]
  |  |  ------------------
  ------------------
  523|  14.3k|  Curl_ssl_conn_config_cleanup(conn);
  524|       |
  525|  14.3k|  curlx_safefree(conn->destination);
  ------------------
  |  | 1340|  14.3k|  do {                      \
  |  | 1341|  14.3k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  14.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  14.3k|    (ptr) = NULL;           \
  |  | 1343|  14.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 14.3k]
  |  |  ------------------
  ------------------
  526|  14.3k|  Curl_hash_destroy(&conn->meta_hash);
  527|  14.3k|  Curl_peer_unlink(&conn->origin);
  528|  14.3k|  Curl_peer_unlink(&conn->via_peer);
  529|  14.3k|  Curl_peer_unlink(&conn->origin2);
  530|  14.3k|  Curl_peer_unlink(&conn->via_peer2);
  531|       |
  532|  14.3k|  curlx_free(conn); /* free all the connection oriented data */
  ------------------
  |  | 1482|  14.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  533|  14.3k|}
Curl_uc_to_curlcode:
 1293|    486|{
 1294|    486|  switch(uc) {
 1295|    463|  default:
  ------------------
  |  Branch (1295:3): [True: 463, False: 23]
  ------------------
 1296|    463|    return CURLE_URL_MALFORMAT;
 1297|     23|  case CURLUE_UNSUPPORTED_SCHEME:
  ------------------
  |  Branch (1297:3): [True: 23, False: 463]
  ------------------
 1298|     23|    return CURLE_UNSUPPORTED_PROTOCOL;
 1299|      0|  case CURLUE_OUT_OF_MEMORY:
  ------------------
  |  Branch (1299:3): [True: 0, False: 486]
  ------------------
 1300|      0|    return CURLE_OUT_OF_MEMORY;
 1301|      0|  case CURLUE_USER_NOT_ALLOWED:
  ------------------
  |  Branch (1301:3): [True: 0, False: 486]
  ------------------
 1302|      0|    return CURLE_LOGIN_DENIED;
 1303|    486|  }
 1304|    486|}
Curl_parse_login_details:
 1698|  2.81k|{
 1699|  2.81k|  char *ubuf = NULL;
 1700|  2.81k|  char *pbuf = NULL;
 1701|  2.81k|  const char *psep = NULL;
 1702|  2.81k|  const char *osep = NULL;
 1703|  2.81k|  size_t ulen;
 1704|  2.81k|  size_t plen;
 1705|  2.81k|  size_t olen;
 1706|       |
 1707|  2.81k|  DEBUGASSERT(userp);
  ------------------
  |  | 1083|  2.81k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1707:3): [True: 0, False: 2.81k]
  |  Branch (1707:3): [True: 2.81k, False: 0]
  ------------------
 1708|  2.81k|  DEBUGASSERT(passwdp);
  ------------------
  |  | 1083|  2.81k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1708:3): [True: 0, False: 2.81k]
  |  Branch (1708:3): [True: 2.81k, False: 0]
  ------------------
 1709|       |
 1710|       |  /* Attempt to find the password separator */
 1711|  2.81k|  psep = memchr(login, ':', len);
 1712|       |
 1713|       |  /* Attempt to find the options separator */
 1714|  2.81k|  if(optionsp)
  ------------------
  |  Branch (1714:6): [True: 0, False: 2.81k]
  ------------------
 1715|      0|    osep = memchr(login, ';', len);
 1716|       |
 1717|       |  /* Calculate the portion lengths */
 1718|  2.81k|  ulen = (psep ?
  ------------------
  |  Branch (1718:11): [True: 1.12k, False: 1.69k]
  ------------------
 1719|  1.12k|          (size_t)(osep && psep > osep ? osep - login : psep - login) :
  ------------------
  |  Branch (1719:20): [True: 0, False: 1.12k]
  |  Branch (1719:28): [True: 0, False: 0]
  ------------------
 1720|  2.81k|          (osep ? (size_t)(osep - login) : len));
  ------------------
  |  Branch (1720:12): [True: 0, False: 1.69k]
  ------------------
 1721|  2.81k|  plen = (psep ?
  ------------------
  |  Branch (1721:11): [True: 1.12k, False: 1.69k]
  ------------------
 1722|  1.12k|          (osep && osep > psep ? (size_t)(osep - psep) :
  ------------------
  |  Branch (1722:12): [True: 0, False: 1.12k]
  |  Branch (1722:20): [True: 0, False: 0]
  ------------------
 1723|  1.69k|           (size_t)(login + len - psep)) - 1 : 0);
 1724|  2.81k|  olen = (osep ?
  ------------------
  |  Branch (1724:11): [True: 0, False: 2.81k]
  ------------------
 1725|      0|          (psep && psep > osep ? (size_t)(psep - osep) :
  ------------------
  |  Branch (1725:12): [True: 0, False: 0]
  |  Branch (1725:20): [True: 0, False: 0]
  ------------------
 1726|  2.81k|           (size_t)(login + len - osep)) - 1 : 0);
 1727|       |
 1728|       |  /* Clone the user portion buffer, which can be zero length */
 1729|  2.81k|  ubuf = curlx_memdup0(login, ulen);
 1730|  2.81k|  if(!ubuf)
  ------------------
  |  Branch (1730:6): [True: 0, False: 2.81k]
  ------------------
 1731|      0|    goto error;
 1732|       |
 1733|       |  /* Clone the password portion buffer */
 1734|  2.81k|  if(psep) {
  ------------------
  |  Branch (1734:6): [True: 1.12k, False: 1.69k]
  ------------------
 1735|  1.12k|    pbuf = curlx_memdup0(&psep[1], plen);
 1736|  1.12k|    if(!pbuf)
  ------------------
  |  Branch (1736:8): [True: 0, False: 1.12k]
  ------------------
 1737|      0|      goto error;
 1738|  1.12k|  }
 1739|       |
 1740|       |  /* Allocate the options portion buffer */
 1741|  2.81k|  if(optionsp) {
  ------------------
  |  Branch (1741:6): [True: 0, False: 2.81k]
  ------------------
 1742|      0|    char *obuf = NULL;
 1743|      0|    if(olen) {
  ------------------
  |  Branch (1743:8): [True: 0, False: 0]
  ------------------
 1744|      0|      obuf = curlx_memdup0(&osep[1], olen);
 1745|      0|      if(!obuf)
  ------------------
  |  Branch (1745:10): [True: 0, False: 0]
  ------------------
 1746|      0|        goto error;
 1747|      0|    }
 1748|      0|    *optionsp = obuf;
 1749|      0|  }
 1750|  2.81k|  *userp = ubuf;
 1751|  2.81k|  *passwdp = pbuf;
 1752|  2.81k|  return CURLE_OK;
 1753|      0|error:
 1754|      0|  curlx_free(ubuf);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1755|      0|  curlx_free(pbuf);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1756|      0|  return CURLE_OUT_OF_MEMORY;
 1757|  2.81k|}
Curl_connect:
 2472|  14.9k|{
 2473|  14.9k|  CURLcode result;
 2474|  14.9k|  struct connectdata *conn = NULL;
 2475|       |
 2476|  14.9k|  *pconnected = FALSE;
  ------------------
  |  | 1056|  14.9k|#define FALSE false
  ------------------
 2477|       |
 2478|       |  /* Set the request to virgin state based on transfer settings */
 2479|  14.9k|  Curl_req_hard_reset(&data->req, data);
 2480|       |  /* Determine the origin of the transfer and what credentials to use */
 2481|  14.9k|  result = url_set_data_origin_and_creds(data);
 2482|  14.9k|  if(result)
  ------------------
  |  Branch (2482:6): [True: 568, False: 14.3k]
  ------------------
 2483|    568|    goto out;
 2484|  14.3k|  if(!data->state.origin) { /* just make really sure */
  ------------------
  |  Branch (2484:6): [True: 0, False: 14.3k]
  ------------------
 2485|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2485:5): [Folded, False: 0]
  |  Branch (2485:5): [Folded, False: 0]
  ------------------
 2486|      0|    result = CURLE_FAILED_INIT;
 2487|      0|    goto out;
 2488|      0|  }
 2489|       |
 2490|       |  /* Get or create a connection for the transfer. */
 2491|  14.3k|  result = url_find_or_create_conn(data);
 2492|  14.3k|  conn = data->conn;
 2493|  14.3k|  if(result)
  ------------------
  |  Branch (2493:6): [True: 97, False: 14.2k]
  ------------------
 2494|     97|    goto out;
 2495|  14.2k|  if(!data->conn) { /* just make really sure */
  ------------------
  |  Branch (2495:6): [True: 0, False: 14.2k]
  ------------------
 2496|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2496:5): [Folded, False: 0]
  |  Branch (2496:5): [Folded, False: 0]
  ------------------
 2497|      0|    result = CURLE_FAILED_INIT;
 2498|      0|    goto out;
 2499|      0|  }
 2500|       |
 2501|  14.2k|  Curl_pgrsTime(data, TIMER_POSTQUEUE);
 2502|  14.2k|  if(conn->bits.reuse) {
  ------------------
  |  Branch (2502:6): [True: 4.10k, False: 10.1k]
  ------------------
 2503|  4.10k|    if(conn->attached_xfers > 1)
  ------------------
  |  Branch (2503:8): [True: 0, False: 4.10k]
  ------------------
 2504|       |      /* multiplexed */
 2505|      0|      *pconnected = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2506|  4.10k|  }
 2507|  10.1k|  else if(conn->scheme->flags & PROTOPT_NONETWORK) {
  ------------------
  |  |  214|  10.1k|#define PROTOPT_NONETWORK (1 << 4) /* protocol does not use the network! */
  ------------------
  |  Branch (2507:11): [True: 0, False: 10.1k]
  ------------------
 2508|      0|    Curl_pgrsTime(data, TIMER_NAMELOOKUP);
 2509|      0|    *pconnected = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2510|      0|  }
 2511|  10.1k|  else {
 2512|  10.1k|    result = Curl_conn_setup(data, conn, FIRSTSOCKET, CURL_CF_SSL_DEFAULT);
  ------------------
  |  |  233|  10.1k|#define FIRSTSOCKET     0
  ------------------
                  result = Curl_conn_setup(data, conn, FIRSTSOCKET, CURL_CF_SSL_DEFAULT);
  ------------------
  |  |  355|  10.1k|#define CURL_CF_SSL_DEFAULT  (-1)
  ------------------
 2513|  10.1k|    if(!result)
  ------------------
  |  Branch (2513:8): [True: 10.1k, False: 0]
  ------------------
 2514|  10.1k|      result = Curl_headers_init(data);
 2515|  10.1k|    CURL_TRC_M(data, "Curl_conn_setup() -> %d", (int)result);
  ------------------
  |  |  148|  10.1k|  do {                                   \
  |  |  149|  10.1k|    if(CURL_TRC_M_is_verbose(data))      \
  |  |  ------------------
  |  |  |  |  135|  10.1k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_multi)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  10.1k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  20.2k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 10.1k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 10.1k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  20.2k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  10.1k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|  10.1k|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|  10.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 10.1k]
  |  |  ------------------
  ------------------
 2516|  10.1k|  }
 2517|       |
 2518|  14.9k|out:
 2519|  14.9k|  if(result == CURLE_NO_CONNECTION_AVAILABLE)
  ------------------
  |  Branch (2519:6): [True: 0, False: 14.9k]
  ------------------
 2520|  14.9k|    DEBUGASSERT(!conn);
  ------------------
  |  | 1083|  14.9k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2520:5): [True: 0, False: 0]
  |  Branch (2520:5): [True: 0, False: 0]
  ------------------
 2521|       |
 2522|  14.9k|  if(result && conn) {
  ------------------
  |  Branch (2522:6): [True: 665, False: 14.2k]
  |  Branch (2522:16): [True: 0, False: 665]
  ------------------
 2523|       |    /* We are not allowed to return failure with memory left allocated in the
 2524|       |       connectdata struct, free those here */
 2525|      0|    Curl_detach_connection(data);
 2526|      0|    Curl_conn_terminate(data, conn, TRUE);
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2527|      0|  }
 2528|       |
 2529|  14.9k|  return result;
 2530|  14.9k|}
Curl_init_transfer:
 2542|  14.2k|{
 2543|  14.2k|  CURLcode result;
 2544|       |
 2545|  14.2k|  if(conn) {
  ------------------
  |  Branch (2545:6): [True: 14.2k, False: 0]
  ------------------
 2546|  14.2k|    conn->bits.do_more = FALSE; /* by default there is no curl_do_more() to
  ------------------
  |  | 1056|  14.2k|#define FALSE false
  ------------------
 2547|       |                                   use */
 2548|       |    /* if the protocol used does not support wildcards, switch it off */
 2549|  14.2k|    if(data->state.wildcardmatch &&
  ------------------
  |  Branch (2549:8): [True: 0, False: 14.2k]
  ------------------
 2550|      0|       !(conn->scheme->flags & PROTOPT_WILDCARD))
  ------------------
  |  |  230|      0|#define PROTOPT_WILDCARD (1 << 12)  /* protocol supports wildcard matching */
  ------------------
  |  Branch (2550:8): [True: 0, False: 0]
  ------------------
 2551|      0|      data->state.wildcardmatch = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 2552|  14.2k|  }
 2553|       |
 2554|  14.2k|  data->state.done = FALSE; /* *_done() is not called yet */
  ------------------
  |  | 1056|  14.2k|#define FALSE false
  ------------------
 2555|       |
 2556|  14.2k|  data->req.no_body = data->set.opt_no_body;
 2557|  14.2k|  if(data->req.no_body)
  ------------------
  |  Branch (2557:6): [True: 302, False: 13.9k]
  ------------------
 2558|       |    /* in HTTP lingo, no body means using the HEAD request... */
 2559|    302|    data->state.httpreq = HTTPREQ_HEAD;
 2560|       |
 2561|  14.2k|  result = Curl_req_start(&data->req, data);
 2562|  14.2k|  if(!result) {
  ------------------
  |  Branch (2562:6): [True: 14.2k, False: 0]
  ------------------
 2563|  14.2k|    Curl_pgrsReset(data);
 2564|  14.2k|  }
 2565|  14.2k|  return result;
 2566|  14.2k|}
Curl_data_priority_clear_state:
 2571|  9.97k|{
 2572|  9.97k|  memset(&data->state.priority, 0, sizeof(data->state.priority));
 2573|  9.97k|}
Curl_conn_meta_set:
 2579|  1.61k|{
 2580|  1.61k|  if(!Curl_hash_add2(&conn->meta_hash, CURL_UNCONST(key), strlen(key) + 1,
  ------------------
  |  |  864|  1.61k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
  |  Branch (2580:6): [True: 0, False: 1.61k]
  ------------------
 2581|  1.61k|                     meta_data, meta_dtor)) {
 2582|      0|    meta_dtor(CURL_UNCONST(key), strlen(key) + 1, meta_data);
  ------------------
  |  |  864|      0|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
 2583|      0|    return CURLE_OUT_OF_MEMORY;
 2584|      0|  }
 2585|  1.61k|  return CURLE_OK;
 2586|  1.61k|}
Curl_conn_meta_remove:
 2589|  10.1k|{
 2590|  10.1k|  Curl_hash_delete(&conn->meta_hash, CURL_UNCONST(key), strlen(key) + 1);
  ------------------
  |  |  864|  10.1k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
 2591|  10.1k|}
Curl_conn_meta_get:
 2594|  23.3k|{
 2595|  23.3k|  return Curl_hash_pick(&conn->meta_hash, CURL_UNCONST(key), strlen(key) + 1);
  ------------------
  |  |  864|  23.3k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
 2596|  23.3k|}
Curl_1st_fatal:
 2599|  19.4k|{
 2600|  19.4k|  if(r1 && (r1 != CURLE_AGAIN))
  ------------------
  |  Branch (2600:6): [True: 7.67k, False: 11.7k]
  |  Branch (2600:12): [True: 7.67k, False: 0]
  ------------------
 2601|  7.67k|    return r1;
 2602|  11.7k|  if(r2 && (r2 != CURLE_AGAIN))
  ------------------
  |  Branch (2602:6): [True: 0, False: 11.7k]
  |  Branch (2602:12): [True: 0, False: 0]
  ------------------
 2603|      0|    return r2;
 2604|  11.7k|  return r1;
 2605|  11.7k|}
url.c:up_free:
  187|  34.8k|{
  188|  34.8k|  struct urlpieces *up = &data->state.up;
  189|  34.8k|  curlx_safefree(up->options);
  ------------------
  |  | 1340|  34.8k|  do {                      \
  |  | 1341|  34.8k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  34.8k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  34.8k|    (ptr) = NULL;           \
  |  | 1343|  34.8k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 34.8k]
  |  |  ------------------
  ------------------
  190|  34.8k|  curlx_safefree(up->path);
  ------------------
  |  | 1340|  34.8k|  do {                      \
  |  | 1341|  34.8k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  34.8k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  34.8k|    (ptr) = NULL;           \
  |  | 1343|  34.8k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 34.8k]
  |  |  ------------------
  ------------------
  191|  34.8k|  curlx_safefree(up->query);
  ------------------
  |  | 1340|  34.8k|  do {                      \
  |  | 1341|  34.8k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  34.8k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  34.8k|    (ptr) = NULL;           \
  |  | 1343|  34.8k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 34.8k]
  |  |  ------------------
  ------------------
  192|  34.8k|  curl_url_cleanup(data->state.uh);
  193|       |  data->state.uh = NULL;
  194|  34.8k|}
url.c:url_set_data_origin_and_creds:
 2156|  14.9k|{
 2157|  14.9k|  CURLcode result = CURLE_OK;
 2158|  14.9k|  CURLU *uh;
 2159|  14.9k|  CURLUcode uc;
 2160|  14.9k|  bool use_set_uh = (data->set.uh && !data->state.this_is_a_follow);
  ------------------
  |  Branch (2160:22): [True: 0, False: 14.9k]
  |  Branch (2160:38): [True: 0, False: 0]
  ------------------
 2161|  14.9k|  uint16_t port_override = data->state.allow_port ? data->set.use_port : 0;
  ------------------
  |  Branch (2161:28): [True: 14.8k, False: 60]
  ------------------
 2162|  14.9k|  uint32_t scope_id = 0;
 2163|       |
 2164|       |  /*************************************************************
 2165|       |   * Check input data
 2166|       |   *************************************************************/
 2167|  14.9k|  if(!Curl_bufref_ptr(&data->state.url)) {
  ------------------
  |  Branch (2167:6): [True: 0, False: 14.9k]
  ------------------
 2168|      0|    result = CURLE_URL_MALFORMAT;
 2169|      0|    goto out;
 2170|      0|  }
 2171|       |
 2172|  14.9k|  up_free(data); /* cleanup previous leftovers first */
 2173|       |
 2174|       |  /* parse the URL */
 2175|  14.9k|  if(use_set_uh)
  ------------------
  |  Branch (2175:6): [True: 0, False: 14.9k]
  ------------------
 2176|      0|    uh = data->state.uh = curl_url_dup(data->set.uh);
 2177|  14.9k|  else
 2178|  14.9k|    uh = data->state.uh = curl_url();
 2179|  14.9k|  if(!uh) {
  ------------------
  |  Branch (2179:6): [True: 0, False: 14.9k]
  ------------------
 2180|      0|    result = CURLE_OUT_OF_MEMORY;
 2181|      0|    goto out;
 2182|      0|  }
 2183|       |
 2184|       |  /* Calculate the *real* URL this transfer uses, applying defaults
 2185|       |   * where information is missing. */
 2186|  14.9k|  if(data->set.str[STRING_DEFAULT_PROTOCOL] &&
  ------------------
  |  Branch (2186:6): [True: 0, False: 14.9k]
  ------------------
 2187|      0|     !Curl_is_absolute_url(Curl_bufref_ptr(&data->state.url), NULL, 0, TRUE)) {
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  |  Branch (2187:6): [True: 0, False: 0]
  ------------------
 2188|      0|    char *url = curl_maprintf("%s://%s",
 2189|      0|                              data->set.str[STRING_DEFAULT_PROTOCOL],
 2190|      0|                              Curl_bufref_ptr(&data->state.url));
 2191|      0|    if(!url) {
  ------------------
  |  Branch (2191:8): [True: 0, False: 0]
  ------------------
 2192|      0|      result = CURLE_OUT_OF_MEMORY;
 2193|      0|      goto out;
 2194|      0|    }
 2195|      0|    Curl_bufref_set(&data->state.url, url, 0, curl_free);
 2196|      0|  }
 2197|       |
 2198|  14.9k|  if(!use_set_uh) {
  ------------------
  |  Branch (2198:6): [True: 14.9k, False: 0]
  ------------------
 2199|  14.9k|    char *newurl;
 2200|  14.9k|    uc = curl_url_set(uh, CURLUPART_URL, Curl_bufref_ptr(&data->state.url),
 2201|  14.9k|                      (unsigned int)(CURLU_GUESS_SCHEME |
  ------------------
  |  |   97|  14.9k|#define CURLU_GUESS_SCHEME (1 << 9)       /* legacy curl-style guessing */
  ------------------
 2202|  14.9k|                       CURLU_NON_SUPPORT_SCHEME |
  ------------------
  |  |   91|  14.9k|#define CURLU_NON_SUPPORT_SCHEME (1 << 3) /* allow non-supported scheme */
  ------------------
 2203|  14.9k|                       (data->set.disallow_username_in_url ?
  ------------------
  |  Branch (2203:25): [True: 0, False: 14.9k]
  ------------------
 2204|  14.9k|                        CURLU_DISALLOW_USER : 0) |
  ------------------
  |  |   93|      0|#define CURLU_DISALLOW_USER (1 << 5)      /* no user+password allowed */
  ------------------
 2205|  14.9k|                       (data->set.path_as_is ? CURLU_PATH_AS_IS : 0)));
  ------------------
  |  |   92|      0|#define CURLU_PATH_AS_IS (1 << 4)         /* leave dot sequences */
  ------------------
  |  Branch (2205:25): [True: 0, False: 14.9k]
  ------------------
 2206|  14.9k|    if(uc) {
  ------------------
  |  Branch (2206:8): [True: 453, False: 14.4k]
  ------------------
 2207|    453|      failf(data, "URL rejected: %s", curl_url_strerror(uc));
  ------------------
  |  |   62|    453|#define failf Curl_failf
  ------------------
 2208|    453|      result = Curl_uc_to_curlcode(uc);
 2209|    453|      goto out;
 2210|    453|    }
 2211|       |
 2212|       |    /* after it was parsed, get the generated normalized version */
 2213|  14.4k|    uc = curl_url_get(uh, CURLUPART_URL, &newurl, CURLU_GET_EMPTY);
  ------------------
  |  |  103|  14.4k|#define CURLU_GET_EMPTY (1 << 14)         /* allow empty queries and fragments
  ------------------
 2214|  14.4k|    if(uc) {
  ------------------
  |  Branch (2214:8): [True: 0, False: 14.4k]
  ------------------
 2215|      0|      result = Curl_uc_to_curlcode(uc);
 2216|      0|      goto out;
 2217|      0|    }
 2218|  14.4k|    Curl_bufref_set(&data->state.url, newurl, 0, curl_free);
 2219|  14.4k|  }
 2220|       |
 2221|  14.4k|#ifdef USE_IPV6
 2222|  14.4k|  scope_id = data->set.scope_id;
 2223|  14.4k|#endif
 2224|       |
 2225|       |  /* `uh` is now as the connection should use it, probably. */
 2226|  14.4k|  result = Curl_peer_from_url(uh, data, port_override, scope_id,
 2227|  14.4k|                              &data->state.origin);
 2228|  14.4k|  if(result)
  ------------------
  |  Branch (2228:6): [True: 113, False: 14.3k]
  ------------------
 2229|    113|    goto out;
 2230|       |  /* The origin might get changed when HSTS applies */
 2231|  14.3k|  result = hsts_upgrade(data, uh, port_override, scope_id);
 2232|  14.3k|  if(result)
  ------------------
  |  Branch (2232:6): [True: 0, False: 14.3k]
  ------------------
 2233|      0|    goto out;
 2234|       |
 2235|       |  /* When the transfers initial_origin is not set, this is the initial
 2236|       |   * request. Remember this starting point. */
 2237|  14.3k|  if(!data->state.initial_origin)
  ------------------
  |  Branch (2237:6): [True: 9.42k, False: 4.93k]
  ------------------
 2238|  9.42k|    Curl_peer_link(&data->state.initial_origin, data->state.origin);
 2239|       |
 2240|  14.3k|  uc = curl_url_get(uh, CURLUPART_PATH, &data->state.up.path, CURLU_URLENCODE);
  ------------------
  |  |   95|  14.3k|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
 2241|  14.3k|  if(uc) {
  ------------------
  |  Branch (2241:6): [True: 0, False: 14.3k]
  ------------------
 2242|      0|    result = Curl_uc_to_curlcode(uc);
 2243|      0|    goto out;
 2244|      0|  }
 2245|  14.3k|  uc = curl_url_get(uh, CURLUPART_QUERY, &data->state.up.query,
 2246|  14.3k|                    CURLU_GET_EMPTY);
  ------------------
  |  |  103|  14.3k|#define CURLU_GET_EMPTY (1 << 14)         /* allow empty queries and fragments
  ------------------
 2247|  14.3k|  if(uc && (uc != CURLUE_NO_QUERY)) {
  ------------------
  |  Branch (2247:6): [True: 13.8k, False: 535]
  |  Branch (2247:12): [True: 0, False: 13.8k]
  ------------------
 2248|      0|    result = CURLE_OUT_OF_MEMORY;
 2249|      0|    goto out;
 2250|      0|  }
 2251|       |
 2252|  14.3k|  uc = curl_url_get(uh, CURLUPART_OPTIONS, &data->state.up.options,
 2253|  14.3k|                    CURLU_URLDECODE);
  ------------------
  |  |   94|  14.3k|#define CURLU_URLDECODE (1 << 6)          /* URL decode on get */
  ------------------
 2254|  14.3k|  if(uc && (uc != CURLUE_NO_OPTIONS)) {
  ------------------
  |  Branch (2254:6): [True: 14.3k, False: 0]
  |  Branch (2254:12): [True: 0, False: 14.3k]
  ------------------
 2255|      0|    result = Curl_uc_to_curlcode(uc);
 2256|      0|    goto out;
 2257|      0|  }
 2258|       |
 2259|  14.3k|  result = url_set_data_creds(data, uh);
 2260|  14.3k|  if(result)
  ------------------
  |  Branch (2260:6): [True: 2, False: 14.3k]
  ------------------
 2261|      2|    goto out;
 2262|       |
 2263|  14.9k|out:
 2264|  14.9k|  return result;
 2265|  14.3k|}
url.c:hsts_upgrade:
 1311|  14.3k|{
 1312|       |  /* HSTS upgrade */
 1313|  14.3k|  if(data->hsts && (data->state.origin->scheme == &Curl_scheme_http) &&
  ------------------
  |  Branch (1313:6): [True: 14.3k, False: 0]
  |  Branch (1313:20): [True: 12.2k, False: 2.06k]
  ------------------
 1314|  12.2k|     Curl_hsts_applies(data->hsts, data->state.origin)) {
  ------------------
  |  Branch (1314:6): [True: 0, False: 12.2k]
  ------------------
 1315|      0|    char *url;
 1316|      0|    CURLUcode uc;
 1317|      0|    CURLcode result;
 1318|       |
 1319|      0|    uc = curl_url_set(uh, CURLUPART_SCHEME, "https", 0);
 1320|      0|    if(uc)
  ------------------
  |  Branch (1320:8): [True: 0, False: 0]
  ------------------
 1321|      0|      return Curl_uc_to_curlcode(uc);
 1322|      0|    Curl_bufref_free(&data->state.url);
 1323|       |    /* after update, get the updated version */
 1324|      0|    uc = curl_url_get(uh, CURLUPART_URL, &url, 0);
 1325|      0|    if(uc)
  ------------------
  |  Branch (1325:8): [True: 0, False: 0]
  ------------------
 1326|      0|      return Curl_uc_to_curlcode(uc);
 1327|      0|    Curl_bufref_set(&data->state.url, url, 0, curl_free);
 1328|       |
 1329|      0|    result = Curl_peer_from_url(uh, data, port_override, scope_id,
 1330|      0|                                &data->state.origin);
 1331|      0|    if(result)
  ------------------
  |  Branch (1331:8): [True: 0, False: 0]
  ------------------
 1332|      0|      return result;
 1333|      0|    infof(data, "Switched from HTTP to HTTPS due to HSTS => %s", url);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1334|      0|  }
 1335|  14.3k|  return CURLE_OK;
 1336|  14.3k|}
url.c:url_set_data_creds:
 1463|  14.3k|{
 1464|  14.3k|  struct Curl_creds *newcreds = NULL;
 1465|  14.3k|  CURLcode result = CURLE_OK;
 1466|       |
 1467|  14.3k|  if((data->set.str[STRING_USERNAME] ||
  ------------------
  |  Branch (1467:7): [True: 0, False: 14.3k]
  ------------------
 1468|  14.3k|      data->set.str[STRING_PASSWORD] ||
  ------------------
  |  Branch (1468:7): [True: 0, False: 14.3k]
  ------------------
 1469|  14.3k|      data->set.str[STRING_BEARER] ||
  ------------------
  |  Branch (1469:7): [True: 0, False: 14.3k]
  ------------------
 1470|  14.3k|      data->set.str[STRING_SASL_AUTHZID] ||
  ------------------
  |  Branch (1470:7): [True: 0, False: 14.3k]
  ------------------
 1471|  14.3k|      data->set.str[STRING_SERVICE_NAME]) &&
  ------------------
  |  Branch (1471:7): [True: 0, False: 14.3k]
  ------------------
 1472|      0|     Curl_auth_allowed_to_origin(data, data->state.origin)) {
  ------------------
  |  Branch (1472:6): [True: 0, False: 0]
  ------------------
 1473|      0|    result = Curl_creds_create(data->set.str[STRING_USERNAME],
 1474|      0|                               data->set.str[STRING_PASSWORD],
 1475|      0|                               data->set.str[STRING_BEARER],
 1476|      0|                               data->set.str[STRING_SASL_AUTHZID],
 1477|      0|                               data->set.str[STRING_SERVICE_NAME],
 1478|      0|                               CREDS_OPTION, &newcreds);
  ------------------
  |  |   31|      0|#define CREDS_OPTION 2 /* username/passwd set with a CURLOPT_ */
  ------------------
 1479|      0|    if(result)
  ------------------
  |  Branch (1479:8): [True: 0, False: 0]
  ------------------
 1480|      0|      goto out;
 1481|      0|    if(newcreds &&
  ------------------
  |  Branch (1481:8): [True: 0, False: 0]
  ------------------
 1482|      0|       !(data->state.origin->scheme->flags & PROTOPT_USERPWDCTRL) &&
  ------------------
  |  |  231|      0|#define PROTOPT_USERPWDCTRL (1 << 13) /* Allow "control bytes" (< 32 ASCII) in
  ------------------
  |  Branch (1482:8): [True: 0, False: 0]
  ------------------
 1483|      0|       (str_has_ctrl(Curl_creds_user(newcreds)) ||
  ------------------
  |  |   81|      0|#define Curl_creds_user(c)               ((c) ? (c)->user : "")
  |  |  ------------------
  |  |  |  Branch (81:43): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1483:9): [True: 0, False: 0]
  ------------------
 1484|      0|        str_has_ctrl(Curl_creds_passwd(newcreds)))) {
  ------------------
  |  |   82|      0|#define Curl_creds_passwd(c)             ((c) ? (c)->passwd : "")
  |  |  ------------------
  |  |  |  Branch (82:43): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1484:9): [True: 0, False: 0]
  ------------------
 1485|       |      /* if the protocol cannot handle control codes in credentials, make
 1486|       |         sure there are none */
 1487|      0|      failf(data, "control code detected in credentials");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1488|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
 1489|      0|      goto out;
 1490|      0|    }
 1491|      0|  }
 1492|       |
 1493|       |  /* Extract credentials from the URL only if there are none OR
 1494|       |   * if no CURLOPT_USER was set. */
 1495|  14.3k|  if(!newcreds || !Curl_creds_has_user(newcreds)) {
  ------------------
  |  |   75|      0|#define Curl_creds_has_user(c)           ((c) && (c)->user[0])
  |  |  ------------------
  |  |  |  Branch (75:43): [True: 0, False: 0]
  |  |  |  Branch (75:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1495:6): [True: 14.3k, False: 0]
  ------------------
 1496|  14.3k|    char *user = NULL;
 1497|  14.3k|    char *passwd = NULL;
 1498|  14.3k|    char *udecoded = NULL;
 1499|  14.3k|    char *pdecoded = NULL;
 1500|  14.3k|    CURLUcode uc;
 1501|       |
 1502|  14.3k|    uc = curl_url_get(uh, CURLUPART_USER, &user, 0);
 1503|  14.3k|    if(uc && (uc != CURLUE_NO_USER))
  ------------------
  |  Branch (1503:8): [True: 13.2k, False: 1.10k]
  |  Branch (1503:14): [True: 0, False: 13.2k]
  ------------------
 1504|      0|      result = Curl_uc_to_curlcode(uc);
 1505|  14.3k|    if(!result) {
  ------------------
  |  Branch (1505:8): [True: 14.3k, False: 0]
  ------------------
 1506|  14.3k|      uc = curl_url_get(uh, CURLUPART_PASSWORD, &passwd, 0);
 1507|  14.3k|      if(uc && (uc != CURLUE_NO_PASSWORD))
  ------------------
  |  Branch (1507:10): [True: 13.9k, False: 400]
  |  Branch (1507:16): [True: 0, False: 13.9k]
  ------------------
 1508|      0|        result = Curl_uc_to_curlcode(uc);
 1509|  14.3k|    }
 1510|  14.3k|    if(!result && user) {
  ------------------
  |  Branch (1510:8): [True: 14.3k, False: 0]
  |  Branch (1510:19): [True: 1.10k, False: 13.2k]
  ------------------
 1511|  1.10k|      result = Curl_urldecode(user, 0, &udecoded, NULL,
 1512|  1.10k|                              (data->state.origin->scheme->flags &
  ------------------
  |  Branch (1512:31): [True: 1.10k, False: 0]
  ------------------
 1513|  1.10k|                               PROTOPT_USERPWDCTRL) ?
  ------------------
  |  |  231|  1.10k|#define PROTOPT_USERPWDCTRL (1 << 13) /* Allow "control bytes" (< 32 ASCII) in
  ------------------
 1514|  1.10k|                              REJECT_ZERO : REJECT_CTRL);
 1515|  1.10k|    }
 1516|  14.3k|    if(!result && passwd) {
  ------------------
  |  Branch (1516:8): [True: 14.3k, False: 2]
  |  Branch (1516:19): [True: 400, False: 13.9k]
  ------------------
 1517|    400|      result = Curl_urldecode(passwd, 0, &pdecoded, NULL,
 1518|    400|                              (data->state.origin->scheme->flags &
  ------------------
  |  Branch (1518:31): [True: 400, False: 0]
  ------------------
 1519|    400|                               PROTOPT_USERPWDCTRL) ?
  ------------------
  |  |  231|    400|#define PROTOPT_USERPWDCTRL (1 << 13) /* Allow "control bytes" (< 32 ASCII) in
  ------------------
 1520|    400|                              REJECT_ZERO : REJECT_CTRL);
 1521|    400|    }
 1522|  14.3k|    if(!result)
  ------------------
  |  Branch (1522:8): [True: 14.3k, False: 2]
  ------------------
 1523|  14.3k|      result = Curl_creds_merge(udecoded, pdecoded, newcreds,
 1524|  14.3k|                                CREDS_URL, &newcreds);
  ------------------
  |  |   30|  14.3k|#define CREDS_URL    1 /* username/passwd from URL */
  ------------------
 1525|       |
 1526|  14.3k|    curlx_free(udecoded);
  ------------------
  |  | 1482|  14.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1527|  14.3k|    curlx_free(pdecoded);
  ------------------
  |  | 1482|  14.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1528|  14.3k|    curlx_free(passwd);
  ------------------
  |  | 1482|  14.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1529|  14.3k|    curlx_free(user);
  ------------------
  |  | 1482|  14.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1530|  14.3k|    if(result) {
  ------------------
  |  Branch (1530:8): [True: 2, False: 14.3k]
  ------------------
 1531|      2|      failf(data, "error extracting credentials from URL");
  ------------------
  |  |   62|      2|#define failf Curl_failf
  ------------------
 1532|      2|      goto out;
 1533|      2|    }
 1534|  14.3k|  }
 1535|       |
 1536|  14.3k|#ifndef CURL_DISABLE_NETRC
 1537|       |  /* Check for overridden login details and set them accordingly so that
 1538|       |     they are known when protocol->setup_connection is called! */
 1539|  14.3k|  result = url_set_data_creds_netrc(data, &newcreds);
 1540|  14.3k|#endif /* CURL_DISABLE_NETRC */
 1541|       |
 1542|  14.3k|out:
 1543|  14.3k|  if(!result && !Curl_creds_equal(data->state.creds, newcreds)) {
  ------------------
  |  Branch (1543:6): [True: 14.3k, False: 2]
  |  Branch (1543:17): [True: 339, False: 14.0k]
  ------------------
 1544|       |    /* Do we have more things to trigger on credentials change? */
 1545|    339|    Curl_creds_link(&data->state.creds, newcreds);
 1546|    339|  }
 1547|  14.3k|  Curl_creds_unlink(&newcreds);
 1548|  14.3k|  return result;
 1549|  14.3k|}
url.c:url_set_data_creds_netrc:
 1361|  14.3k|{
 1362|  14.3k|  struct Curl_creds *ncreds_out = NULL;
 1363|  14.3k|  CURLcode result = CURLE_OK;
 1364|       |
 1365|  14.3k|  if(data->set.use_netrc) { /* not CURL_NETRC_IGNORED */
  ------------------
  |  Branch (1365:6): [True: 0, False: 14.3k]
  ------------------
 1366|      0|    struct Curl_creds *ncreds_in = NULL;
 1367|      0|    bool scan_netrc = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1368|      0|    NETRCcode ret;
 1369|      0|    CURLUcode uc;
 1370|       |
 1371|      0|    if(*pcreds) {
  ------------------
  |  Branch (1371:8): [True: 0, False: 0]
  ------------------
 1372|      0|      switch((*pcreds)->source) {
 1373|      0|      case CREDS_OPTION:
  ------------------
  |  |   31|      0|#define CREDS_OPTION 2 /* username/passwd set with a CURLOPT_ */
  ------------------
  |  Branch (1373:7): [True: 0, False: 0]
  ------------------
 1374|       |        /* we never override credentials set via CURLOPT_*, leave. */
 1375|      0|        scan_netrc = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1376|      0|        break;
 1377|      0|      case CREDS_URL: /* only apply when netrc is not required */
  ------------------
  |  |   30|      0|#define CREDS_URL    1 /* username/passwd from URL */
  ------------------
  |  Branch (1377:7): [True: 0, False: 0]
  ------------------
 1378|      0|        if(data->set.use_netrc == CURL_NETRC_REQUIRED) {
  ------------------
  |  | 2383|      0|#define CURL_NETRC_REQUIRED 2L /* A user:password in the URL is ignored.
  ------------------
  |  Branch (1378:12): [True: 0, False: 0]
  ------------------
 1379|       |          /* We ignore password from URL */
 1380|      0|          ncreds_in = *pcreds;
 1381|      0|        }
 1382|      0|        else if(!Curl_creds_has_user(*pcreds) ||
  ------------------
  |  |   75|      0|#define Curl_creds_has_user(c)           ((c) && (c)->user[0])
  |  |  ------------------
  |  |  |  Branch (75:43): [True: 0, False: 0]
  |  |  |  Branch (75:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1383|      0|                !Curl_creds_has_passwd(*pcreds)) {
  ------------------
  |  |   76|      0|#define Curl_creds_has_passwd(c)         ((c) && (c)->passwd[0])
  |  |  ------------------
  |  |  |  Branch (76:43): [True: 0, False: 0]
  |  |  |  Branch (76:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1384|       |          /* We use netrc to complete what is missing */
 1385|      0|          ncreds_in = *pcreds;
 1386|      0|        }
 1387|      0|        else
 1388|      0|          scan_netrc = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1389|      0|        break;
 1390|      0|      default: /* ignore credentials from other sources */
  ------------------
  |  Branch (1390:7): [True: 0, False: 0]
  ------------------
 1391|      0|        break;
 1392|      0|      }
 1393|      0|    }
 1394|       |
 1395|      0|    if(!scan_netrc)
  ------------------
  |  Branch (1395:8): [True: 0, False: 0]
  ------------------
 1396|      0|      goto out;
 1397|       |
 1398|      0|    ret = Curl_netrc_scan(data, &data->state.netrc,
 1399|      0|                          data->state.origin->hostname,
 1400|      0|                          Curl_creds_user(ncreds_in),
  ------------------
  |  |   81|      0|#define Curl_creds_user(c)               ((c) ? (c)->user : "")
  |  |  ------------------
  |  |  |  Branch (81:43): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1401|      0|                          data->set.str[STRING_NETRC_FILE],
 1402|      0|                          &ncreds_out);
 1403|      0|    DEBUGASSERT(!ret || !ncreds_out);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1403:5): [True: 0, False: 0]
  |  Branch (1403:5): [True: 0, False: 0]
  |  Branch (1403:5): [True: 0, False: 0]
  |  Branch (1403:5): [True: 0, False: 0]
  ------------------
 1404|      0|    if(ret == NETRC_OUT_OF_MEMORY) {
  ------------------
  |  Branch (1404:8): [True: 0, False: 0]
  ------------------
 1405|      0|      result = CURLE_OUT_OF_MEMORY;
 1406|      0|      goto out;
 1407|      0|    }
 1408|      0|    else if(ret && ((ret == NETRC_NO_MATCH) ||
  ------------------
  |  Branch (1408:13): [True: 0, False: 0]
  |  Branch (1408:21): [True: 0, False: 0]
  ------------------
 1409|      0|                    (data->set.use_netrc == CURL_NETRC_OPTIONAL))) {
  ------------------
  |  | 2381|      0|#define CURL_NETRC_OPTIONAL 1L /* A user:password in the URL is preferred
  ------------------
  |  Branch (1409:21): [True: 0, False: 0]
  ------------------
 1410|      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))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324: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]
  |  |  ------------------
  ------------------
 1411|      0|            data->state.origin->hostname,
 1412|      0|            (data->set.str[STRING_NETRC_FILE] ?
 1413|      0|             data->set.str[STRING_NETRC_FILE] : ".netrc"));
 1414|      0|    }
 1415|      0|    else if(ret) {
  ------------------
  |  Branch (1415:13): [True: 0, False: 0]
  ------------------
 1416|      0|      const char *m = Curl_netrc_strerror(ret);
 1417|      0|      failf(data, ".netrc error: %s", m);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1418|      0|      result = CURLE_READ_ERROR;
 1419|      0|      goto out;
 1420|      0|    }
 1421|      0|    else if(ncreds_out) {
  ------------------
  |  Branch (1421:13): [True: 0, False: 0]
  ------------------
 1422|      0|      if(!(data->state.origin->scheme->flags & PROTOPT_USERPWDCTRL)) {
  ------------------
  |  |  231|      0|#define PROTOPT_USERPWDCTRL (1 << 13) /* Allow "control bytes" (< 32 ASCII) in
  ------------------
  |  Branch (1422:10): [True: 0, False: 0]
  ------------------
 1423|       |        /* if the protocol cannot handle control codes in credentials, make
 1424|       |           sure there are none */
 1425|      0|        if(str_has_ctrl(ncreds_out->user) ||
  ------------------
  |  Branch (1425:12): [True: 0, False: 0]
  ------------------
 1426|      0|           str_has_ctrl(ncreds_out->passwd)) {
  ------------------
  |  Branch (1426:12): [True: 0, False: 0]
  ------------------
 1427|      0|          failf(data, "control code detected in .netrc credentials");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1428|      0|          result = CURLE_READ_ERROR;
 1429|      0|          goto out;
 1430|      0|        }
 1431|      0|      }
 1432|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1433|      0|                 data->state.origin->hostname, ncreds_out->user);
 1434|      0|      result = Curl_creds_merge(ncreds_out->user, ncreds_out->passwd,
 1435|      0|                                *pcreds, CREDS_NETRC, pcreds);
  ------------------
  |  |   32|      0|#define CREDS_NETRC  3 /* username/passwd found in netrc */
  ------------------
 1436|      0|      if(result)
  ------------------
  |  Branch (1436:10): [True: 0, False: 0]
  ------------------
 1437|      0|        goto out;
 1438|       |      /* for updated strings, we update them in the URL */
 1439|      0|      uc = curl_url_set(data->state.uh, CURLUPART_USER,
 1440|      0|                        Curl_creds_user(*pcreds), CURLU_URLENCODE);
  ------------------
  |  |   81|      0|#define Curl_creds_user(c)               ((c) ? (c)->user : "")
  |  |  ------------------
  |  |  |  Branch (81:43): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                                      Curl_creds_user(*pcreds), CURLU_URLENCODE);
  ------------------
  |  |   95|      0|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
 1441|      0|      if(!uc)
  ------------------
  |  Branch (1441:10): [True: 0, False: 0]
  ------------------
 1442|      0|        uc = curl_url_set(data->state.uh, CURLUPART_PASSWORD,
 1443|      0|                          Curl_creds_passwd(*pcreds),
  ------------------
  |  |   82|      0|#define Curl_creds_passwd(c)             ((c) ? (c)->passwd : "")
  |  |  ------------------
  |  |  |  Branch (82:43): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1444|      0|                          CURLU_URLENCODE);
  ------------------
  |  |   95|      0|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
 1445|      0|      if(uc)
  ------------------
  |  Branch (1445:10): [True: 0, False: 0]
  ------------------
 1446|      0|        result = Curl_uc_to_curlcode(uc);
 1447|      0|    }
 1448|      0|    else
 1449|      0|      DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1449:7): [Folded, False: 0]
  |  Branch (1449:7): [Folded, False: 0]
  ------------------
 1450|      0|  }
 1451|       |
 1452|  14.3k|#ifdef CURLVERBOSE
 1453|  14.3k|  Curl_creds_trace(data, data->state.creds, "transfer credentials");
 1454|  14.3k|#endif
 1455|       |
 1456|  14.3k|out:
 1457|  14.3k|  Curl_creds_unlink(&ncreds_out);
 1458|  14.3k|  return result;
 1459|  14.3k|}
url.c:url_find_or_create_conn:
 2276|  14.3k|{
 2277|  14.3k|  struct connectdata *needle = NULL;
 2278|  14.3k|  bool waitpipe = FALSE;
  ------------------
  |  | 1056|  14.3k|#define FALSE false
  ------------------
 2279|  14.3k|  CURLcode result;
 2280|       |
 2281|       |  /* create the template connection for transfer data. Use this needle to
 2282|       |   * find an existing connection or, if none exists, convert needle
 2283|       |   * to a full connection and attach it to data. */
 2284|  14.3k|  result = url_create_needle(data, &needle);
 2285|  14.3k|  if(result)
  ------------------
  |  Branch (2285:6): [True: 97, False: 14.2k]
  ------------------
 2286|     97|    goto out;
 2287|  14.2k|  DEBUGASSERT(needle);
  ------------------
  |  | 1083|  14.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2287:3): [True: 0, False: 14.2k]
  |  Branch (2287:3): [True: 14.2k, False: 0]
  ------------------
 2288|       |
 2289|       |  /***********************************************************************
 2290|       |   * file: is a special case in that it does not need a network connection
 2291|       |   ***********************************************************************/
 2292|  14.2k|#ifndef CURL_DISABLE_FILE
 2293|  14.2k|  if(needle->scheme->flags & PROTOPT_NONETWORK) {
  ------------------
  |  |  214|  14.2k|#define PROTOPT_NONETWORK (1 << 4) /* protocol does not use the network! */
  ------------------
  |  Branch (2293:6): [True: 0, False: 14.2k]
  ------------------
 2294|      0|    bool done;
 2295|       |    /* this is supposed to be the connect function so we better at least check
 2296|       |       that the file is present here! */
 2297|      0|    DEBUGASSERT(needle->scheme->run->connect_it);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2297:5): [True: 0, False: 0]
  |  Branch (2297:5): [True: 0, False: 0]
  ------------------
 2298|      0|    data->info.conn_scheme = needle->scheme->name;
 2299|       |    /* conn_protocol can only provide "old" protocols */
 2300|      0|    data->info.conn_protocol = (needle->scheme->protocol) & CURLPROTO_MASK;
  ------------------
  |  |   79|      0|#define CURLPROTO_MASK   0x3fffffff
  ------------------
 2301|      0|    result = needle->scheme->run->connect_it(data, &done);
 2302|      0|    if(result)
  ------------------
  |  Branch (2302:8): [True: 0, False: 0]
  ------------------
 2303|      0|      goto out;
 2304|       |
 2305|       |    /* Setup a "faked" transfer that will do nothing */
 2306|      0|    Curl_attach_connection(data, needle);
 2307|      0|    needle = NULL;
 2308|      0|    result = Curl_cpool_add(data, data->conn);
 2309|      0|    if(!result) {
  ------------------
  |  Branch (2309:8): [True: 0, False: 0]
  ------------------
 2310|       |      /* Setup whatever necessary for a resumed transfer */
 2311|      0|      result = setup_range(data);
 2312|      0|      if(!result) {
  ------------------
  |  Branch (2312:10): [True: 0, False: 0]
  ------------------
 2313|      0|        Curl_xfer_setup_nop(data);
 2314|      0|        result = Curl_init_transfer(data, data->conn);
 2315|      0|      }
 2316|      0|    }
 2317|       |
 2318|      0|    if(result) {
  ------------------
  |  Branch (2318:8): [True: 0, False: 0]
  ------------------
 2319|      0|      DEBUGASSERT(data->conn->scheme->run->done);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2319:7): [True: 0, False: 0]
  |  Branch (2319:7): [True: 0, False: 0]
  ------------------
 2320|       |      /* we ignore the return code for the protocol-specific DONE */
 2321|      0|      (void)data->conn->scheme->run->done(data, result, FALSE);
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 2322|      0|    }
 2323|      0|    goto out;
 2324|      0|  }
 2325|  14.2k|#endif
 2326|       |
 2327|       |  /* Complete the easy's SSL configuration for connection cache matching */
 2328|  14.2k|  result = Curl_ssl_easy_config_complete(data, needle->origin);
 2329|  14.2k|  if(result)
  ------------------
  |  Branch (2329:6): [True: 0, False: 14.2k]
  ------------------
 2330|      0|    goto out;
 2331|       |
 2332|       |  /*************************************************************
 2333|       |   * Reuse of existing connection is not allowed when
 2334|       |   * - connect_only is set or
 2335|       |   * - reuse_fresh is set and this is not a follow-up request
 2336|       |   *   (like with HTTP followlocation)
 2337|       |   *************************************************************/
 2338|  14.2k|  if((!data->set.reuse_fresh || data->state.followlocation) &&
  ------------------
  |  Branch (2338:7): [True: 14.2k, False: 0]
  |  Branch (2338:33): [True: 0, False: 0]
  ------------------
 2339|  14.2k|     !data->set.connect_only) {
  ------------------
  |  Branch (2339:6): [True: 13.7k, False: 489]
  ------------------
 2340|       |    /* Ok, try to find and attach an existing one */
 2341|  13.7k|    url_attach_existing(data, needle, &waitpipe);
 2342|  13.7k|  }
 2343|       |
 2344|  14.2k|  if(data->conn) {
  ------------------
  |  Branch (2344:6): [True: 4.10k, False: 10.1k]
  ------------------
 2345|       |    /* We attached an existing connection for this transfer. Copy
 2346|       |     * over transfer specific properties over from needle. */
 2347|  4.10k|    struct connectdata *conn = data->conn;
 2348|  4.10k|    VERBOSE(bool tls_upgraded = (!(needle->given->flags & PROTOPT_SSL) &&
  ------------------
  |  | 1617|  12.3k|#define VERBOSE(x) x
  |  |  ------------------
  |  |  |  Branch (1617:20): [True: 4.10k, False: 0]
  |  |  |  Branch (1617:20): [True: 0, False: 4.10k]
  |  |  ------------------
  ------------------
 2349|  4.10k|                                 Curl_conn_is_ssl(conn, FIRSTSOCKET)));
 2350|       |
 2351|  4.10k|    conn->bits.reuse = TRUE;
  ------------------
  |  | 1053|  4.10k|#define TRUE true
  ------------------
 2352|  4.10k|    url_conn_reuse_adjust(data, needle);
 2353|       |
 2354|  4.10k|#ifndef CURL_DISABLE_PROXY
 2355|  4.10k|    infof(data, "Reusing existing %s: connection%s with %s %s",
  ------------------
  |  |  143|  4.10k|  do {                               \
  |  |  144|  4.10k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|  4.10k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 4.10k, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 4.10k]
  |  |  |  |  ------------------
  |  |  |  |  323|  4.10k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  4.10k|      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]
  |  |  |  Branch (145:24): [True: 0, False: 0]
  |  |  ------------------
  |  |  146|  4.10k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 4.10k]
  |  |  ------------------
  ------------------
 2356|  4.10k|          conn->given->name,
 2357|  4.10k|          tls_upgraded ? " (upgraded to SSL)" : "",
 2358|  4.10k|          (conn->socks_proxy.peer || conn->http_proxy.peer) ? "proxy" : "host",
 2359|  4.10k|          conn->socks_proxy.peer ? conn->socks_proxy.peer->user_hostname :
 2360|  4.10k|          conn->http_proxy.peer ? conn->http_proxy.peer->user_hostname :
 2361|  4.10k|          conn->origin->hostname);
 2362|       |#else
 2363|       |    infof(data, "Reusing existing %s: connection%s with host %s",
 2364|       |          conn->given->name,
 2365|       |          tls_upgraded ? " (upgraded to SSL)" : "",
 2366|       |          conn->origin->hostname);
 2367|       |#endif
 2368|  4.10k|  }
 2369|  10.1k|  else {
 2370|       |    /* We have decided that we want a new connection. We may not be able to do
 2371|       |       that if we have reached the limit of how many connections we are
 2372|       |       allowed to open. */
 2373|       |
 2374|  10.1k|    if(waitpipe) {
  ------------------
  |  Branch (2374:8): [True: 0, False: 10.1k]
  ------------------
 2375|       |      /* There is a connection that *might* become usable for multiplexing
 2376|       |         "soon", and we wait for that */
 2377|      0|      infof(data, "Waiting on connection to negotiate possible multiplexing.");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2378|      0|      result = CURLE_NO_CONNECTION_AVAILABLE;
 2379|      0|      goto out;
 2380|      0|    }
 2381|  10.1k|    else {
 2382|  10.1k|      switch(Curl_cpool_check_limits(data, needle)) {
 2383|      0|      case CPOOL_LIMIT_DEST:
  ------------------
  |  |   91|      0|#define CPOOL_LIMIT_DEST   1
  ------------------
  |  Branch (2383:7): [True: 0, False: 10.1k]
  ------------------
 2384|      0|        infof(data, "No more connections allowed to host");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2385|      0|        result = CURLE_NO_CONNECTION_AVAILABLE;
 2386|      0|        goto out;
 2387|      0|      case CPOOL_LIMIT_TOTAL:
  ------------------
  |  |   92|      0|#define CPOOL_LIMIT_TOTAL  2
  ------------------
  |  Branch (2387:7): [True: 0, False: 10.1k]
  ------------------
 2388|      0|        if(data->master_mid != UINT32_MAX)
  ------------------
  |  Branch (2388:12): [True: 0, False: 0]
  ------------------
 2389|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|      Curl_trc_multi(data, __VA_ARGS__); \
  |  |  151|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (151:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2390|      0|                     "max connection limit");
 2391|      0|        else {
 2392|      0|          infof(data, "No connections available, total of %zu reached.",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2393|      0|                data->multi->max_total_connections);
 2394|      0|          result = CURLE_NO_CONNECTION_AVAILABLE;
 2395|      0|          goto out;
 2396|      0|        }
 2397|      0|        break;
 2398|  10.1k|      default:
  ------------------
  |  Branch (2398:7): [True: 10.1k, False: 0]
  ------------------
 2399|  10.1k|        break;
 2400|  10.1k|      }
 2401|  10.1k|    }
 2402|       |
 2403|       |    /* Convert needle into a full connection by filling in all the
 2404|       |     * remaining parts like the cloned SSL configuration. */
 2405|  10.1k|    result = Curl_ssl_conn_config_init(data, needle);
 2406|  10.1k|    if(result) {
  ------------------
  |  Branch (2406:8): [True: 0, False: 10.1k]
  ------------------
 2407|      0|      DEBUGF(curl_mfprintf(stderr, "Error: init connection SSL config\n"));
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  ------------------
 2408|      0|      goto out;
 2409|      0|    }
 2410|       |
 2411|       |    /* Add needle to conn pool, which assigns the connection id.
 2412|       |     * Attach regardless of result, for correct handling. */
 2413|  10.1k|    result = Curl_cpool_add(data, needle);
 2414|  10.1k|    Curl_attach_connection(data, needle);
 2415|  10.1k|    needle = NULL;
 2416|  10.1k|    if(result)
  ------------------
  |  Branch (2416:8): [True: 0, False: 10.1k]
  ------------------
 2417|      0|      goto out;
 2418|       |
 2419|       |#ifdef USE_NTLM
 2420|       |    /* If NTLM is requested in a part of this connection, make sure we do not
 2421|       |       assume the state is fine as this is a fresh connection and NTLM is
 2422|       |       connection based. */
 2423|       |    if((data->state.authhost.picked & CURLAUTH_NTLM) &&
 2424|       |       data->state.authhost.done) {
 2425|       |      infof(data, "NTLM picked AND auth done set, clear picked");
 2426|       |      data->state.authhost.picked = CURLAUTH_NONE;
 2427|       |      data->state.authhost.done = FALSE;
 2428|       |    }
 2429|       |
 2430|       |    if((data->state.authproxy.picked & CURLAUTH_NTLM) &&
 2431|       |       data->state.authproxy.done) {
 2432|       |      infof(data, "NTLM-proxy picked AND auth done set, clear picked");
 2433|       |      data->state.authproxy.picked = CURLAUTH_NONE;
 2434|       |      data->state.authproxy.done = FALSE;
 2435|       |    }
 2436|       |#endif
 2437|  10.1k|  }
 2438|       |
 2439|       |  /* Setup and init stuff before DO starts, in preparing for the transfer. */
 2440|  14.2k|  result = Curl_init_transfer(data, data->conn);
 2441|  14.2k|  if(result)
  ------------------
  |  Branch (2441:6): [True: 0, False: 14.2k]
  ------------------
 2442|      0|    goto out;
 2443|       |
 2444|       |  /* Setup whatever necessary for a resumed transfer */
 2445|  14.2k|  result = setup_range(data);
 2446|  14.2k|  if(result)
  ------------------
  |  Branch (2446:6): [True: 0, False: 14.2k]
  ------------------
 2447|      0|    goto out;
 2448|       |
 2449|       |  /* persist the scheme and handler the transfer is using */
 2450|  14.2k|  data->info.conn_scheme = data->conn->scheme->name;
 2451|       |  /* conn_protocol can only provide "old" protocols */
 2452|  14.2k|  data->info.conn_protocol = (data->conn->scheme->protocol) & CURLPROTO_MASK;
  ------------------
  |  |   79|  14.2k|#define CURLPROTO_MASK   0x3fffffff
  ------------------
 2453|  14.2k|  data->info.used_proxy =
 2454|       |#ifdef CURL_DISABLE_PROXY
 2455|       |    0
 2456|       |#else
 2457|  14.2k|    (data->conn->socks_proxy.peer || data->conn->http_proxy.peer)
  ------------------
  |  Branch (2457:6): [True: 0, False: 14.2k]
  |  Branch (2457:38): [True: 0, False: 14.2k]
  ------------------
 2458|  14.2k|#endif
 2459|  14.2k|    ;
 2460|       |
 2461|       |  /* Lastly, inform connection filters that a new transfer is attached */
 2462|  14.2k|  result = Curl_conn_ev_data_setup(data);
 2463|       |
 2464|  14.3k|out:
 2465|  14.3k|  if(needle)
  ------------------
  |  Branch (2465:6): [True: 4.10k, False: 10.2k]
  ------------------
 2466|  4.10k|    Curl_conn_free(data, needle);
 2467|  14.3k|  DEBUGASSERT(result || data->conn);
  ------------------
  |  | 1083|  14.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2467:3): [True: 14.3k, False: 0]
  |  Branch (2467:3): [True: 0, False: 0]
  |  Branch (2467:3): [True: 97, False: 14.2k]
  |  Branch (2467:3): [True: 14.2k, False: 0]
  ------------------
 2468|  14.3k|  return result;
 2469|  14.3k|}
url.c:url_create_needle:
 2037|  14.3k|{
 2038|  14.3k|  struct connectdata *needle = NULL;
 2039|  14.3k|  CURLcode result = CURLE_OK;
 2040|  14.3k|  bool network_scheme = TRUE; /* almost all are */
  ------------------
  |  | 1053|  14.3k|#define TRUE true
  ------------------
 2041|       |
 2042|       |  /* Allocate a temporary connection data struct (needle) and fill in for
 2043|       |     comparison purposes. */
 2044|  14.3k|  needle = allocate_conn(data);
 2045|  14.3k|  if(!needle) {
  ------------------
  |  Branch (2045:6): [True: 0, False: 14.3k]
  ------------------
 2046|      0|    result = CURLE_OUT_OF_MEMORY;
 2047|      0|    goto out;
 2048|      0|  }
 2049|       |
 2050|       |  /* Do the unfailable inits first, before checks that may early return */
 2051|  14.3k|  Curl_hash_init(&needle->meta_hash, 23,
 2052|  14.3k|                 Curl_hash_str, curlx_str_key_compare, conn_meta_freeentry);
 2053|       |
 2054|       |  /*************************************************************
 2055|       |   * Determine `conn->origin` and populate `data->state.up` and
 2056|       |   * other URL related properties.
 2057|       |   *************************************************************/
 2058|  14.3k|  result = url_set_conn_origin_etc(data, needle);
 2059|  14.3k|  if(result)
  ------------------
  |  Branch (2059:6): [True: 97, False: 14.2k]
  ------------------
 2060|     97|    goto out;
 2061|       |
 2062|  14.2k|  DEBUGASSERT(needle->origin);
  ------------------
  |  | 1083|  14.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2062:3): [True: 0, False: 14.2k]
  |  Branch (2062:3): [True: 14.2k, False: 0]
  ------------------
 2063|  14.2k|  network_scheme = !(needle->origin->scheme->flags & PROTOPT_NONETWORK);
  ------------------
  |  |  214|  14.2k|#define PROTOPT_NONETWORK (1 << 4) /* protocol does not use the network! */
  ------------------
 2064|       |
 2065|  14.2k|#ifdef USE_UNIX_SOCKETS
 2066|       |  /*************************************************************
 2067|       |   * Set UDS first. It overrides "via_peer" and proxy settings.
 2068|       |   *************************************************************/
 2069|  14.2k|  if(network_scheme && data->set.str[STRING_UNIX_SOCKET_PATH]) {
  ------------------
  |  Branch (2069:6): [True: 14.2k, False: 0]
  |  Branch (2069:24): [True: 0, False: 14.2k]
  ------------------
 2070|      0|    result = Curl_peer_uds_create(needle->origin->scheme,
 2071|      0|                                  data->set.str[STRING_UNIX_SOCKET_PATH],
 2072|      0|                                  (bool)data->set.abstract_unix_socket,
 2073|      0|                                  &needle->via_peer);
 2074|      0|    if(result)
  ------------------
  |  Branch (2074:8): [True: 0, False: 0]
  ------------------
 2075|      0|      goto out;
 2076|      0|  }
 2077|  14.2k|#endif /* USE_UNIX_SOCKETS */
 2078|       |
 2079|  14.2k|  if(network_scheme && !needle->via_peer) {
  ------------------
  |  Branch (2079:6): [True: 14.2k, False: 0]
  |  Branch (2079:24): [True: 14.2k, False: 0]
  ------------------
 2080|       |    /*************************************************************
 2081|       |     * If the `via_peer` is not already set (via UDS above),
 2082|       |     * determine if we talk to `conn->origin` directly or use
 2083|       |     * `conn->via_peer` using "connect to" and "alt-svc" properties.
 2084|       |     *************************************************************/
 2085|  14.2k|    result = url_set_conn_peer(data, needle);
 2086|  14.2k|    if(result)
  ------------------
  |  Branch (2086:8): [True: 0, False: 14.2k]
  ------------------
 2087|      0|      goto out;
 2088|  14.2k|  }
 2089|       |
 2090|       |  /*************************************************************
 2091|       |   * Check whether the host and the "connect to host" are equal.
 2092|       |   * Do this after the hostnames have been IDN-converted and
 2093|       |   * before initializing the proxy.
 2094|       |   *************************************************************/
 2095|  14.2k|  if(Curl_peer_equal(needle->origin, needle->via_peer)) {
  ------------------
  |  Branch (2095:6): [True: 86, False: 14.1k]
  ------------------
 2096|     86|    Curl_peer_unlink(&needle->via_peer);
 2097|     86|  }
 2098|       |
 2099|  14.2k|#ifndef CURL_DISABLE_PROXY
 2100|       |  /* Going via a unix socket ignores any proxy settings */
 2101|  14.2k|  if(network_scheme &&
  ------------------
  |  Branch (2101:6): [True: 14.2k, False: 0]
  ------------------
 2102|  14.2k|     (!needle->via_peer || !needle->via_peer->unix_socket)) {
  ------------------
  |  Branch (2102:7): [True: 86, False: 14.1k]
  |  Branch (2102:28): [True: 14.1k, False: 0]
  ------------------
 2103|  14.2k|    result = Curl_proxy_init_conn(data, needle);
 2104|  14.2k|    if(result)
  ------------------
  |  Branch (2104:8): [True: 0, False: 14.2k]
  ------------------
 2105|      0|      goto out;
 2106|  14.2k|  }
 2107|  14.2k|#endif /* CURL_DISABLE_PROXY */
 2108|       |
 2109|  14.2k|  result = url_set_conn_login(data, needle); /* default credentials */
 2110|  14.2k|  if(result)
  ------------------
  |  Branch (2110:6): [True: 0, False: 14.2k]
  ------------------
 2111|      0|    goto out;
 2112|       |
 2113|       |  /*************************************************************
 2114|       |   * Setup internals depending on protocol. Needs to be done after
 2115|       |   * we figured out what/if proxy to use.
 2116|       |   *************************************************************/
 2117|  14.2k|  result = setup_connection_internals(data, needle);
 2118|  14.2k|  if(result)
  ------------------
  |  Branch (2118:6): [True: 0, False: 14.2k]
  ------------------
 2119|      0|    goto out;
 2120|       |
 2121|  14.2k|  if(needle->scheme->flags & PROTOPT_ALPN) {
  ------------------
  |  |  222|  14.2k|#define PROTOPT_ALPN (1 << 8) /* set ALPN for this */
  ------------------
  |  Branch (2121:6): [True: 0, False: 14.2k]
  ------------------
 2122|       |    /* The protocol wants it, so set the bits if enabled in the easy handle
 2123|       |       (default) */
 2124|      0|    if(data->set.ssl_enable_alpn)
  ------------------
  |  Branch (2124:8): [True: 0, False: 0]
  ------------------
 2125|      0|      needle->bits.tls_enable_alpn = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2126|      0|  }
 2127|       |
 2128|  14.2k|  if(network_scheme) {
  ------------------
  |  Branch (2128:6): [True: 14.2k, False: 0]
  ------------------
 2129|       |    /* Setup callbacks for network connections */
 2130|  14.2k|    needle->recv[FIRSTSOCKET] = Curl_cf_recv;
  ------------------
  |  |  233|  14.2k|#define FIRSTSOCKET     0
  ------------------
 2131|  14.2k|    needle->send[FIRSTSOCKET] = Curl_cf_send;
  ------------------
  |  |  233|  14.2k|#define FIRSTSOCKET     0
  ------------------
 2132|  14.2k|    needle->recv[SECONDARYSOCKET] = Curl_cf_recv;
  ------------------
  |  |  234|  14.2k|#define SECONDARYSOCKET 1
  ------------------
 2133|  14.2k|    needle->send[SECONDARYSOCKET] = Curl_cf_send;
  ------------------
  |  |  234|  14.2k|#define SECONDARYSOCKET 1
  ------------------
 2134|  14.2k|    needle->bits.tcp_fastopen = data->set.tcp_fastopen;
 2135|  14.2k|#ifdef USE_UNIX_SOCKETS
 2136|  14.2k|    if(Curl_conn_get_first_peer(needle, FIRSTSOCKET)->unix_socket)
  ------------------
  |  |  233|  14.2k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (2136:8): [True: 0, False: 14.2k]
  ------------------
 2137|      0|      needle->transport_wanted = TRNSPRT_UNIX;
  ------------------
  |  |  240|      0|#define TRNSPRT_UNIX 6
  ------------------
 2138|  14.2k|#endif
 2139|  14.2k|  }
 2140|       |
 2141|  14.3k|out:
 2142|  14.3k|  if(!result) {
  ------------------
  |  Branch (2142:6): [True: 14.2k, False: 97]
  ------------------
 2143|  14.2k|    DEBUGASSERT(needle);
  ------------------
  |  | 1083|  14.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2143:5): [True: 0, False: 14.2k]
  |  Branch (2143:5): [True: 14.2k, False: 0]
  ------------------
 2144|  14.2k|    DEBUGASSERT(needle->origin);
  ------------------
  |  | 1083|  14.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2144:5): [True: 0, False: 14.2k]
  |  Branch (2144:5): [True: 14.2k, False: 0]
  ------------------
 2145|  14.2k|    *pneedle = needle;
 2146|  14.2k|  }
 2147|     97|  else {
 2148|     97|    *pneedle = NULL;
 2149|     97|    if(needle)
  ------------------
  |  Branch (2149:8): [True: 97, False: 0]
  ------------------
 2150|     97|      Curl_conn_free(data, needle);
 2151|     97|  }
 2152|  14.3k|  return result;
 2153|  14.3k|}
url.c:allocate_conn:
 1215|  14.3k|{
 1216|  14.3k|  struct connectdata *conn = curlx_calloc(1, sizeof(struct connectdata));
  ------------------
  |  | 1479|  14.3k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
 1217|  14.3k|  if(!conn)
  ------------------
  |  Branch (1217:6): [True: 0, False: 14.3k]
  ------------------
 1218|      0|    return NULL;
 1219|       |
 1220|       |  /* and we setup a few fields in case we end up actually using this struct */
 1221|       |
 1222|  14.3k|  conn->sock[FIRSTSOCKET] = CURL_SOCKET_BAD;     /* no file descriptor */
  ------------------
  |  |  233|  14.3k|#define FIRSTSOCKET     0
  ------------------
                conn->sock[FIRSTSOCKET] = CURL_SOCKET_BAD;     /* no file descriptor */
  ------------------
  |  |  145|  14.3k|#define CURL_SOCKET_BAD (-1)
  ------------------
 1223|  14.3k|  conn->sock[SECONDARYSOCKET] = CURL_SOCKET_BAD; /* no file descriptor */
  ------------------
  |  |  234|  14.3k|#define SECONDARYSOCKET 1
  ------------------
                conn->sock[SECONDARYSOCKET] = CURL_SOCKET_BAD; /* no file descriptor */
  ------------------
  |  |  145|  14.3k|#define CURL_SOCKET_BAD (-1)
  ------------------
 1224|  14.3k|  conn->recv_idx = 0; /* default for receiving transfer data */
 1225|  14.3k|  conn->send_idx = 0; /* default for sending transfer data */
 1226|  14.3k|  conn->connection_id = -1;    /* no ID */
 1227|  14.3k|  conn->attached_xfers = 0;
 1228|       |
 1229|       |  /* Store creation time to help future close decision making */
 1230|  14.3k|  conn->created = *Curl_pgrs_now(data);
 1231|       |
 1232|       |  /* Store current time to give a baseline to keepalive connection times. */
 1233|  14.3k|  conn->keepalive = conn->created;
 1234|       |
 1235|  14.3k|#ifndef CURL_DISABLE_FTP
 1236|  14.3k|  conn->bits.ftp_use_epsv = data->set.ftp_use_epsv;
 1237|  14.3k|  conn->bits.ftp_use_eprt = data->set.ftp_use_eprt;
 1238|  14.3k|#endif
 1239|  14.3k|  conn->ip_version = data->set.ipver;
 1240|  14.3k|  conn->bits.connect_only = (bool)data->set.connect_only;
 1241|  14.3k|  conn->transport_wanted = TRNSPRT_TCP; /* most of them are TCP streams */
  ------------------
  |  |  237|  14.3k|#define TRNSPRT_TCP  3
  ------------------
 1242|       |
 1243|       |  /* Store the local bind parameters that will be used for this connection */
 1244|  14.3k|  if(data->set.str[STRING_DEVICE]) {
  ------------------
  |  Branch (1244:6): [True: 0, False: 14.3k]
  ------------------
 1245|      0|    conn->localdev = curlx_strdup(data->set.str[STRING_DEVICE]);
  ------------------
  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
 1246|      0|    if(!conn->localdev)
  ------------------
  |  Branch (1246:8): [True: 0, False: 0]
  ------------------
 1247|      0|      goto error;
 1248|      0|  }
 1249|  14.3k|#ifndef CURL_DISABLE_BINDLOCAL
 1250|  14.3k|  conn->localportrange = data->set.localportrange;
 1251|  14.3k|  conn->localport = data->set.localport;
 1252|  14.3k|#endif
 1253|       |
 1254|       |  /* the close socket stuff needs to be copied to the connection struct as
 1255|       |     it may live on without (this specific) Curl_easy */
 1256|  14.3k|  conn->fclosesocket = data->set.fclosesocket;
 1257|  14.3k|  conn->closesocket_client = data->set.closesocket_client;
 1258|  14.3k|  conn->lastused = conn->created;
 1259|       |#if defined(HAVE_GSSAPI) || defined(USE_WINDOWS_SSPI)
 1260|       |  conn->gssapi_delegation = data->set.gssapi_delegation;
 1261|       |#endif
 1262|  14.3k|  return conn;
 1263|      0|error:
 1264|       |
 1265|      0|  curlx_free(conn->localdev);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1266|      0|  curlx_free(conn);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1267|       |  return NULL;
 1268|  14.3k|}
url.c:url_set_conn_origin_etc:
 1553|  14.3k|{
 1554|  14.3k|  CURLcode result = CURLE_OK;
 1555|       |
 1556|  14.3k|  Curl_peer_link(&conn->origin, data->state.origin);
 1557|       |
 1558|       |  /* set the connection scheme */
 1559|  14.3k|  result = url_set_conn_scheme(data, conn, conn->origin->scheme);
 1560|  14.3k|  if(result)
  ------------------
  |  Branch (1560:6): [True: 97, False: 14.2k]
  ------------------
 1561|     97|    goto out;
 1562|       |
 1563|       |  /* set the connection options */
 1564|  14.2k|  if(data->set.str[STRING_OPTIONS]) {
  ------------------
  |  Branch (1564:6): [True: 0, False: 14.2k]
  ------------------
 1565|      0|    conn->options = curlx_strdup(data->set.str[STRING_OPTIONS]);
  ------------------
  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
 1566|      0|    if(!conn->options) {
  ------------------
  |  Branch (1566:8): [True: 0, False: 0]
  ------------------
 1567|      0|      result = CURLE_OUT_OF_MEMORY;
 1568|      0|      goto out;
 1569|      0|    }
 1570|      0|  }
 1571|  14.2k|  else if(data->state.up.options) {
  ------------------
  |  Branch (1571:11): [True: 0, False: 14.2k]
  ------------------
 1572|      0|    conn->options = curlx_strdup(data->state.up.options);
  ------------------
  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
 1573|      0|    if(!conn->options) {
  ------------------
  |  Branch (1573:8): [True: 0, False: 0]
  ------------------
 1574|      0|      result = CURLE_OUT_OF_MEMORY;
 1575|      0|      goto out;
 1576|      0|    }
 1577|      0|  }
 1578|       |
 1579|  14.2k|#ifdef USE_IPV6
 1580|  14.2k|  conn->scope_id = data->set.scope_id ?
  ------------------
  |  Branch (1580:20): [True: 0, False: 14.2k]
  ------------------
 1581|  14.2k|                   data->set.scope_id : data->state.origin->scopeid;
 1582|  14.2k|#endif
 1583|       |
 1584|  14.3k|out:
 1585|  14.3k|  return result;
 1586|  14.2k|}
url.c:url_set_conn_scheme:
 1273|  14.3k|{
 1274|       |  /* URL scheme is usable for connection when it is
 1275|       |   * - allowed
 1276|       |   * - not from a redirect or an allowed redirect protocol */
 1277|  14.3k|  if(scheme->run &&
  ------------------
  |  Branch (1277:6): [True: 14.3k, False: 0]
  ------------------
 1278|  14.3k|     (data->set.allowed_protocols & scheme->protocol) &&
  ------------------
  |  Branch (1278:6): [True: 14.2k, False: 97]
  ------------------
 1279|  14.2k|     (!data->state.this_is_a_follow ||
  ------------------
  |  Branch (1279:7): [True: 9.36k, False: 4.88k]
  ------------------
 1280|  14.2k|       (data->set.redir_protocols & scheme->protocol))) {
  ------------------
  |  Branch (1280:8): [True: 4.88k, False: 0]
  ------------------
 1281|  14.2k|    conn->scheme = conn->given = scheme;
 1282|  14.2k|    return CURLE_OK;
 1283|  14.2k|  }
 1284|     97|  if(scheme->flags & PROTOPT_NO_TRANSFER)
  ------------------
  |  |  238|     97|#define PROTOPT_NO_TRANSFER (1 << 17) /* this protocol is not for transfers */
  ------------------
  |  Branch (1284:6): [True: 0, False: 97]
  ------------------
 1285|      0|    failf(data, "Protocol \"%s\" is not for transfers", scheme->name);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1286|     97|  else
 1287|     97|    failf(data, "Protocol \"%s\" is disabled%s", scheme->name,
  ------------------
  |  |   62|     97|#define failf Curl_failf
  ------------------
 1288|     97|          data->state.this_is_a_follow ? " (in redirect)" : "");
  ------------------
  |  Branch (1288:11): [True: 9, False: 88]
  ------------------
 1289|     97|  return CURLE_UNSUPPORTED_PROTOCOL;
 1290|  14.3k|}
url.c:url_set_conn_peer:
 1852|  14.2k|{
 1853|  14.2k|  CURLcode result = CURLE_OK;
 1854|  14.2k|  struct Curl_peer *origin = conn->origin;
 1855|  14.2k|  struct Curl_peer *via_peer = NULL;
 1856|  14.2k|  struct curl_slist *conn_to_entry = data->set.connect_to;
 1857|       |
 1858|  14.2k|  DEBUGASSERT(!conn->via_peer);
  ------------------
  |  | 1083|  14.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1858:3): [True: 0, False: 14.2k]
  |  Branch (1858:3): [True: 14.2k, False: 0]
  ------------------
 1859|  14.2k|  Curl_peer_unlink(&conn->via_peer);
 1860|       |
 1861|  28.5k|  while(conn_to_entry && !via_peer) {
  ------------------
  |  Branch (1861:9): [True: 14.2k, False: 14.2k]
  |  Branch (1861:26): [True: 14.2k, False: 0]
  ------------------
 1862|  14.2k|    result = parse_connect_to_string(data, origin, conn_to_entry->data,
 1863|  14.2k|                                     &via_peer);
 1864|  14.2k|    if(result)
  ------------------
  |  Branch (1864:8): [True: 0, False: 14.2k]
  ------------------
 1865|      0|      return result;
 1866|  14.2k|    conn_to_entry = conn_to_entry->next;
 1867|  14.2k|  }
 1868|       |
 1869|  14.2k|#ifndef CURL_DISABLE_ALTSVC
 1870|  14.2k|  if(data->asi && !via_peer &&
  ------------------
  |  Branch (1870:6): [True: 14.2k, False: 0]
  |  Branch (1870:19): [True: 0, False: 14.2k]
  ------------------
 1871|      0|     ((conn->scheme->protocol == CURLPROTO_HTTPS) ||
  ------------------
  |  | 1087|      0|#define CURLPROTO_HTTPS   (1L << 1)
  ------------------
  |  Branch (1871:7): [True: 0, False: 0]
  ------------------
 1872|      0|#ifdef DEBUGBUILD
 1873|       |      /* allow debug builds to circumvent the HTTPS restriction */
 1874|      0|      getenv("CURL_ALTSVC_HTTP")
  ------------------
  |  Branch (1874:7): [True: 0, False: 0]
  ------------------
 1875|       |#else
 1876|       |      0
 1877|       |#endif
 1878|      0|       )) {
 1879|       |    /* no connect_to match, try alt-svc! */
 1880|      0|    enum alpnid srcalpnid = ALPN_none;
 1881|      0|    bool hit = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1882|      0|    struct altsvc *as = NULL;
 1883|      0|    int allowed_alpns = ALPN_none;
 1884|      0|    struct http_negotiation *neg = &data->state.http_neg;
 1885|      0|    bool same_dest = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1886|       |
 1887|      0|    DEBUGF(infof(data, "Alt-svc check wanted=%x, allowed=%x",
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1888|      0|                 neg->wanted, neg->allowed));
 1889|       |#ifdef USE_HTTP3
 1890|       |    if(neg->allowed & CURL_HTTP_V3x)
 1891|       |      allowed_alpns |= ALPN_h3;
 1892|       |#endif
 1893|      0|#ifdef USE_HTTP2
 1894|      0|    if(neg->allowed & CURL_HTTP_V2x)
  ------------------
  |  |   41|      0|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
  |  Branch (1894:8): [True: 0, False: 0]
  ------------------
 1895|      0|      allowed_alpns |= ALPN_h2;
 1896|      0|#endif
 1897|      0|    if(neg->allowed & CURL_HTTP_V1x)
  ------------------
  |  |   40|      0|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
  |  Branch (1897:8): [True: 0, False: 0]
  ------------------
 1898|      0|      allowed_alpns |= ALPN_h1;
 1899|      0|    allowed_alpns &= (int)data->asi->flags;
 1900|       |
 1901|      0|    DEBUGF(infof(data, "check Alt-Svc for host '%s'", origin->hostname));
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1902|       |#ifdef USE_HTTP3
 1903|       |    if(!hit && (neg->wanted & CURL_HTTP_V3x)) {
 1904|       |      srcalpnid = ALPN_h3;
 1905|       |      hit = Curl_altsvc_lookup(data->asi,
 1906|       |                               origin, ALPN_h3, /* from */
 1907|       |                               &as /* to */,
 1908|       |                               allowed_alpns, &same_dest);
 1909|       |    }
 1910|       |#endif
 1911|      0|#ifdef USE_HTTP2
 1912|      0|    if(!hit && (neg->wanted & CURL_HTTP_V2x) &&
  ------------------
  |  |   41|      0|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
  |  Branch (1912:8): [True: 0, False: 0]
  |  Branch (1912:16): [True: 0, False: 0]
  ------------------
 1913|      0|       !neg->h2_prior_knowledge) {
  ------------------
  |  Branch (1913:8): [True: 0, False: 0]
  ------------------
 1914|      0|      srcalpnid = ALPN_h2;
 1915|      0|      hit = Curl_altsvc_lookup(data->asi,
 1916|      0|                               origin, ALPN_h2, /* from */
 1917|      0|                               &as /* to */,
 1918|      0|                               allowed_alpns, &same_dest);
 1919|      0|    }
 1920|      0|#endif
 1921|      0|    if(!hit && (neg->wanted & CURL_HTTP_V1x) &&
  ------------------
  |  |   40|      0|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
  |  Branch (1921:8): [True: 0, False: 0]
  |  Branch (1921:16): [True: 0, False: 0]
  ------------------
 1922|      0|       !neg->only_10) {
  ------------------
  |  Branch (1922:8): [True: 0, False: 0]
  ------------------
 1923|      0|      srcalpnid = ALPN_h1;
 1924|      0|      hit = Curl_altsvc_lookup(data->asi,
 1925|      0|                               origin, ALPN_h1, /* from */
 1926|      0|                               &as /* to */,
 1927|      0|                               allowed_alpns, &same_dest);
 1928|      0|    }
 1929|       |
 1930|      0|    if(hit && same_dest) {
  ------------------
  |  Branch (1930:8): [True: 0, False: 0]
  |  Branch (1930:15): [True: 0, False: 0]
  ------------------
 1931|       |      /* same destination, but more HTTPS version options */
 1932|      0|      switch(as->dst.alpnid) {
 1933|      0|      case ALPN_h1:
  ------------------
  |  Branch (1933:7): [True: 0, False: 0]
  ------------------
 1934|      0|        neg->wanted |= CURL_HTTP_V1x;
  ------------------
  |  |   40|      0|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
 1935|      0|        neg->preferred = CURL_HTTP_V1x;
  ------------------
  |  |   40|      0|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
 1936|      0|        break;
 1937|      0|      case ALPN_h2:
  ------------------
  |  Branch (1937:7): [True: 0, False: 0]
  ------------------
 1938|      0|        neg->wanted |= CURL_HTTP_V2x;
  ------------------
  |  |   41|      0|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
 1939|      0|        neg->preferred = CURL_HTTP_V2x;
  ------------------
  |  |   41|      0|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
 1940|      0|        break;
 1941|      0|      case ALPN_h3:
  ------------------
  |  Branch (1941:7): [True: 0, False: 0]
  ------------------
 1942|      0|        neg->wanted |= CURL_HTTP_V3x;
  ------------------
  |  |   42|      0|#define CURL_HTTP_V3x   (1 << 2)
  ------------------
 1943|      0|        neg->preferred = CURL_HTTP_V3x;
  ------------------
  |  |   42|      0|#define CURL_HTTP_V3x   (1 << 2)
  ------------------
 1944|      0|        break;
 1945|      0|      default: /* should not be possible */
  ------------------
  |  Branch (1945:7): [True: 0, False: 0]
  ------------------
 1946|      0|        break;
 1947|      0|      }
 1948|      0|    }
 1949|      0|    else if(hit) {
  ------------------
  |  Branch (1949:13): [True: 0, False: 0]
  ------------------
 1950|      0|      result = Curl_peer_create(data, conn->origin->scheme,
 1951|      0|                                as->dst.host, as->dst.port,
 1952|      0|                                &via_peer);
 1953|      0|      if(result)
  ------------------
  |  Branch (1953:10): [True: 0, False: 0]
  ------------------
 1954|      0|        return result;
 1955|      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))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1956|      0|            Curl_alpnid2str(srcalpnid), origin->hostname, origin->port,
 1957|      0|            Curl_alpnid2str(as->dst.alpnid),
 1958|      0|            via_peer->hostname, via_peer->port);
 1959|      0|      conn->bits.altused = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1960|      0|      if(srcalpnid != as->dst.alpnid) {
  ------------------
  |  Branch (1960:10): [True: 0, False: 0]
  ------------------
 1961|       |        /* protocol version switch */
 1962|      0|        switch(as->dst.alpnid) {
 1963|      0|        case ALPN_h1:
  ------------------
  |  Branch (1963:9): [True: 0, False: 0]
  ------------------
 1964|      0|          neg->wanted = neg->allowed = CURL_HTTP_V1x;
  ------------------
  |  |   40|      0|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
 1965|      0|          neg->only_10 = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1966|      0|          break;
 1967|      0|        case ALPN_h2:
  ------------------
  |  Branch (1967:9): [True: 0, False: 0]
  ------------------
 1968|      0|          neg->wanted = neg->allowed = CURL_HTTP_V2x;
  ------------------
  |  |   41|      0|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
 1969|      0|          break;
 1970|      0|        case ALPN_h3:
  ------------------
  |  Branch (1970:9): [True: 0, False: 0]
  ------------------
 1971|      0|          conn->transport_wanted = TRNSPRT_QUIC;
  ------------------
  |  |  239|      0|#define TRNSPRT_QUIC 5
  ------------------
 1972|      0|          neg->wanted = neg->allowed = CURL_HTTP_V3x;
  ------------------
  |  |   42|      0|#define CURL_HTTP_V3x   (1 << 2)
  ------------------
 1973|      0|          break;
 1974|      0|        default: /* should not be possible */
  ------------------
  |  Branch (1974:9): [True: 0, False: 0]
  ------------------
 1975|      0|          break;
 1976|      0|        }
 1977|      0|      }
 1978|      0|    }
 1979|      0|  }
 1980|  14.2k|#endif
 1981|       |
 1982|  14.2k|  if(via_peer)
  ------------------
  |  Branch (1982:6): [True: 14.2k, False: 0]
  ------------------
 1983|  14.2k|    conn->via_peer = via_peer;
 1984|       |
 1985|  14.2k|  return result;
 1986|  14.2k|}
url.c:parse_connect_to_string:
 1792|  14.2k|{
 1793|  14.2k|  CURLcode result = CURLE_OK;
 1794|  14.2k|  const char *ptr = conn_to_line;
 1795|  14.2k|  bool host_match = FALSE;
  ------------------
  |  | 1056|  14.2k|#define FALSE false
  ------------------
 1796|  14.2k|  bool port_match = FALSE;
  ------------------
  |  | 1056|  14.2k|#define FALSE false
  ------------------
 1797|       |
 1798|  14.2k|  *pvia_dest = NULL;
 1799|       |
 1800|  14.2k|  if(*ptr == ':') {
  ------------------
  |  Branch (1800:6): [True: 14.2k, False: 0]
  ------------------
 1801|       |    /* an empty hostname always matches */
 1802|  14.2k|    host_match = TRUE;
  ------------------
  |  | 1053|  14.2k|#define TRUE true
  ------------------
 1803|  14.2k|    ptr++;
 1804|  14.2k|  }
 1805|      0|  else {
 1806|       |    /* check whether the URL's hostname matches. Use the URL hostname
 1807|       |     * when it was an IPv6 address. Otherwise use the connection's hostname
 1808|       |     * that has IDN conversion. */
 1809|      0|    size_t hlen = strlen(dest->hostname);
 1810|      0|    host_match = curl_strnequal(ptr, dest->hostname, hlen);
 1811|      0|    if(!host_match && (dest->user_hostname != dest->hostname)) {
  ------------------
  |  Branch (1811:8): [True: 0, False: 0]
  |  Branch (1811:23): [True: 0, False: 0]
  ------------------
 1812|       |      /* hostname was normalized, could be IPv6 or IDN */
 1813|      0|      hlen = strlen(dest->user_hostname);
 1814|      0|      host_match = curl_strnequal(ptr, dest->user_hostname, hlen);
 1815|      0|    }
 1816|      0|    host_match = host_match && ptr[hlen] == ':';
  ------------------
  |  Branch (1816:18): [True: 0, False: 0]
  |  Branch (1816:32): [True: 0, False: 0]
  ------------------
 1817|      0|    if(host_match)
  ------------------
  |  Branch (1817:8): [True: 0, False: 0]
  ------------------
 1818|      0|      ptr += hlen + 1;
 1819|      0|  }
 1820|       |
 1821|  14.2k|  if(host_match) {
  ------------------
  |  Branch (1821:6): [True: 14.2k, False: 0]
  ------------------
 1822|  14.2k|    if(*ptr == ':') {
  ------------------
  |  Branch (1822:8): [True: 14.2k, False: 0]
  ------------------
 1823|       |      /* an empty port always matches */
 1824|  14.2k|      port_match = TRUE;
  ------------------
  |  | 1053|  14.2k|#define TRUE true
  ------------------
 1825|  14.2k|      ptr++;
 1826|  14.2k|    }
 1827|      0|    else {
 1828|       |      /* check whether the URL's port matches */
 1829|      0|      const char *ptr_next = strchr(ptr, ':');
 1830|      0|      if(ptr_next) {
  ------------------
  |  Branch (1830:10): [True: 0, False: 0]
  ------------------
 1831|      0|        curl_off_t port_to_match;
 1832|      0|        if(!curlx_str_number(&ptr, &port_to_match, 0xffff) &&
  ------------------
  |  Branch (1832:12): [True: 0, False: 0]
  ------------------
 1833|      0|           ((uint16_t)port_to_match == dest->port)) {
  ------------------
  |  Branch (1833:12): [True: 0, False: 0]
  ------------------
 1834|      0|          port_match = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1835|      0|        }
 1836|      0|        ptr = ptr_next + 1;
 1837|      0|      }
 1838|      0|    }
 1839|  14.2k|  }
 1840|       |
 1841|  14.2k|  if(host_match && port_match && ptr && *ptr)
  ------------------
  |  Branch (1841:6): [True: 14.2k, False: 0]
  |  Branch (1841:20): [True: 14.2k, False: 0]
  |  Branch (1841:34): [True: 14.2k, False: 0]
  |  Branch (1841:41): [True: 14.2k, False: 0]
  ------------------
 1842|  14.2k|    result = Curl_peer_from_connect_to(data, dest, ptr, pvia_dest);
 1843|       |
 1844|  14.2k|  return result;
 1845|  14.2k|}
url.c:url_set_conn_login:
 1764|  14.2k|{
 1765|       |  /* If our protocol needs a password and we have none, use the defaults */
 1766|  14.2k|  if((conn->scheme->flags & PROTOPT_NEEDSPWD) && !conn->creds) {
  ------------------
  |  |  215|  14.2k|#define PROTOPT_NEEDSPWD (1 << 5)  /* needs a password, and if none is set it
  ------------------
  |  Branch (1766:6): [True: 0, False: 14.2k]
  |  Branch (1766:50): [True: 0, False: 0]
  ------------------
 1767|      0|    Curl_peer_link(&conn->creds_origin, data->state.origin);
 1768|      0|    if(data->state.creds)
  ------------------
  |  Branch (1768:8): [True: 0, False: 0]
  ------------------
 1769|      0|      Curl_creds_link(&conn->creds, data->state.creds);
 1770|      0|    else
 1771|      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"
  ------------------
 1772|      0|                               NULL, NULL, NULL, CREDS_NONE, &conn->creds);
  ------------------
  |  |   29|      0|#define CREDS_NONE   0 /* used for default username/passwd */
  ------------------
 1773|      0|  }
 1774|  14.2k|  else if(!(conn->scheme->flags & PROTOPT_CREDSPERREQUEST)) {
  ------------------
  |  |  219|  14.2k|#define PROTOPT_CREDSPERREQUEST (1 << 7) /* requires login credentials per
  ------------------
  |  Branch (1774:11): [True: 0, False: 14.2k]
  ------------------
 1775|       |    /* for protocols that do not handle credentials per request,
 1776|       |     * the connection credentials are set by the initial transfer. */
 1777|      0|    Curl_peer_link(&conn->creds_origin, data->state.origin);
 1778|      0|    Curl_creds_link(&conn->creds, data->state.creds);
 1779|      0|  }
 1780|       |
 1781|  14.2k|  return CURLE_OK;
 1782|  14.2k|}
url.c:setup_connection_internals:
 1630|  14.2k|{
 1631|  14.2k|  struct Curl_peer *peer = NULL;
 1632|  14.2k|  CURLcode result;
 1633|       |
 1634|  14.2k|  if(conn->scheme->run->setup_connection) {
  ------------------
  |  Branch (1634:6): [True: 14.2k, False: 0]
  ------------------
 1635|  14.2k|    result = conn->scheme->run->setup_connection(data, conn);
 1636|  14.2k|    if(result)
  ------------------
  |  Branch (1636:8): [True: 0, False: 14.2k]
  ------------------
 1637|      0|      return result;
 1638|  14.2k|  }
 1639|       |
 1640|       |  /* Now create the destination name */
 1641|  14.2k|  peer = Curl_conn_get_destination(conn, FIRSTSOCKET);
  ------------------
  |  |  233|  14.2k|#define FIRSTSOCKET     0
  ------------------
 1642|  14.2k|  if(!peer)
  ------------------
  |  Branch (1642:6): [True: 0, False: 14.2k]
  ------------------
 1643|      0|    return CURLE_FAILED_INIT;
 1644|       |
 1645|       |  /* IPv6 addresses with a scope_id (0 is default == global) have a
 1646|       |   * printable representation with a '%<scope_id>' suffix. */
 1647|  14.2k|  if(peer->ipv6)
  ------------------
  |  Branch (1647:6): [True: 0, False: 14.2k]
  ------------------
 1648|      0|    if(peer->scopeid)
  ------------------
  |  Branch (1648:8): [True: 0, False: 0]
  ------------------
 1649|      0|      conn->destination = curl_maprintf("[%s%%%u]:%u",
 1650|      0|        peer->hostname, peer->scopeid, peer->port);
 1651|      0|    else
 1652|      0|      conn->destination = curl_maprintf("[%s]:%u",
 1653|      0|        peer->hostname, peer->port);
 1654|  14.2k|  else
 1655|  14.2k|    conn->destination = curl_maprintf("%s:%u", peer->hostname, peer->port);
 1656|  14.2k|  if(!conn->destination)
  ------------------
  |  Branch (1656:6): [True: 0, False: 14.2k]
  ------------------
 1657|      0|    return CURLE_OUT_OF_MEMORY;
 1658|       |
 1659|  14.2k|  Curl_strntolower(conn->destination, conn->destination,
 1660|  14.2k|                   strlen(conn->destination));
 1661|       |
 1662|  14.2k|  return CURLE_OK;
 1663|  14.2k|}
url.c:setup_range:
 1593|  14.2k|{
 1594|  14.2k|  struct UrlState *s = &data->state;
 1595|  14.2k|  s->resume_from = data->set.set_resume_from;
 1596|  14.2k|  if(s->resume_from || data->set.str[STRING_SET_RANGE]) {
  ------------------
  |  Branch (1596:6): [True: 0, False: 14.2k]
  |  Branch (1596:24): [True: 0, False: 14.2k]
  ------------------
 1597|      0|    if(s->rangestringalloc)
  ------------------
  |  Branch (1597:8): [True: 0, False: 0]
  ------------------
 1598|      0|      curlx_free(s->range);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1599|       |
 1600|      0|    if(s->resume_from)
  ------------------
  |  Branch (1600:8): [True: 0, False: 0]
  ------------------
 1601|      0|      s->range = curl_maprintf("%" FMT_OFF_T "-", s->resume_from);
 1602|      0|    else
 1603|      0|      s->range = curlx_strdup(data->set.str[STRING_SET_RANGE]);
  ------------------
  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
 1604|       |
 1605|      0|    if(!s->range)
  ------------------
  |  Branch (1605:8): [True: 0, False: 0]
  ------------------
 1606|      0|      return CURLE_OUT_OF_MEMORY;
 1607|       |
 1608|      0|    s->rangestringalloc = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1609|       |
 1610|       |    /* tell ourselves to fetch this range */
 1611|      0|    s->use_range = TRUE;        /* enable range download */
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1612|      0|  }
 1613|  14.2k|  else
 1614|  14.2k|    s->use_range = FALSE; /* disable range download */
  ------------------
  |  | 1056|  14.2k|#define FALSE false
  ------------------
 1615|       |
 1616|  14.2k|  return CURLE_OK;
 1617|  14.2k|}
url.c:url_attach_existing:
 1161|  13.7k|{
 1162|  13.7k|  struct url_conn_match match;
 1163|  13.7k|  bool success;
 1164|       |
 1165|  13.7k|  DEBUGASSERT(!data->conn);
  ------------------
  |  | 1083|  13.7k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1165:3): [True: 0, False: 13.7k]
  |  Branch (1165:3): [True: 13.7k, False: 0]
  ------------------
 1166|  13.7k|  Curl_cpool_prune_dead(data);
 1167|       |
 1168|  13.7k|  memset(&match, 0, sizeof(match));
 1169|  13.7k|  match.data = data;
 1170|  13.7k|  match.needle = needle;
 1171|  13.7k|  match.now = *Curl_pgrs_now(data);
 1172|  13.7k|  match.may_multiplex = xfer_may_multiplex(data, needle);
 1173|       |
 1174|       |#ifdef USE_NTLM
 1175|       |  match.want_ntlm_http =
 1176|       |    (data->state.authhost.want & CURLAUTH_NTLM) &&
 1177|       |    (needle->scheme->protocol & PROTO_FAMILY_HTTP);
 1178|       |#ifndef CURL_DISABLE_PROXY
 1179|       |  match.want_proxy_ntlm_http =
 1180|       |    needle->http_proxy.creds &&
 1181|       |    (data->state.authproxy.want & CURLAUTH_NTLM) &&
 1182|       |    (needle->scheme->protocol & PROTO_FAMILY_HTTP);
 1183|       |#endif
 1184|       |#endif
 1185|       |
 1186|       |#if !defined(CURL_DISABLE_HTTP) && defined(USE_SPNEGO)
 1187|       |  match.want_nego_http =
 1188|       |    (data->state.authhost.want & CURLAUTH_NEGOTIATE) &&
 1189|       |    (needle->scheme->protocol & PROTO_FAMILY_HTTP);
 1190|       |#ifndef CURL_DISABLE_PROXY
 1191|       |  match.want_proxy_nego_http =
 1192|       |    needle->http_proxy.creds &&
 1193|       |    (data->state.authproxy.want & CURLAUTH_NEGOTIATE) &&
 1194|       |    (needle->scheme->protocol & PROTO_FAMILY_HTTP);
 1195|       |#endif
 1196|       |#endif
 1197|  13.7k|  match.require_tls = data->set.use_ssl >= CURLUSESSL_CONTROL;
  ------------------
  |  |  934|  13.7k|#define CURLUSESSL_CONTROL 2L /* SSL for the control connection or fail */
  ------------------
 1198|  13.7k|  match.may_tls = data->set.use_ssl > CURLUSESSL_NONE;
  ------------------
  |  |  932|  13.7k|#define CURLUSESSL_NONE    0L /* do not attempt to use SSL */
  ------------------
 1199|       |
 1200|       |  /* Find a connection in the pool that matches what "data + needle"
 1201|       |   * requires. If a suitable candidate is found, it is attached to "data". */
 1202|  13.7k|  success = Curl_cpool_find(data, needle->destination,
 1203|  13.7k|                            url_match_conn, url_match_result, &match);
 1204|       |
 1205|       |  /* wait_pipe is TRUE if we encounter a bundle that is undecided. There
 1206|       |   * is no matching connection then, yet. */
 1207|  13.7k|  *waitpipe = (bool)match.wait_pipe;
 1208|  13.7k|  return success;
 1209|  13.7k|}
url.c:xfer_may_multiplex:
  543|  13.7k|{
  544|  13.7k|#ifndef CURL_DISABLE_HTTP
  545|       |  /* If an HTTP protocol and multiplexing is enabled */
  546|  13.7k|  if((conn->scheme->protocol & PROTO_FAMILY_HTTP) &&
  ------------------
  |  |   84|  13.7k|#define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1086|  13.7k|#define CURLPROTO_HTTP    (1L << 0)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1087|  13.7k|#define CURLPROTO_HTTPS   (1L << 1)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  |   63|  13.7k|#define CURLPROTO_WS     (1L << 30)
  |  |  ------------------
  |  |   85|  13.7k|                           CURLPROTO_WSS)
  |  |  ------------------
  |  |  |  |   64|  13.7k|#define CURLPROTO_WSS    ((curl_prot_t)1 << 31)
  |  |  ------------------
  ------------------
  |  Branch (546:6): [True: 13.7k, False: 0]
  ------------------
  547|  13.7k|     (!conn->bits.protoconnstart || !conn->bits.close)) {
  ------------------
  |  Branch (547:7): [True: 13.7k, False: 0]
  |  Branch (547:37): [True: 0, False: 0]
  ------------------
  548|       |
  549|  13.7k|    if(Curl_multiplex_wanted(data->multi) &&
  ------------------
  |  Branch (549:8): [True: 13.7k, False: 0]
  ------------------
  550|  13.7k|       (data->state.http_neg.allowed & (CURL_HTTP_V2x | CURL_HTTP_V3x)))
  ------------------
  |  |   41|  13.7k|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
                     (data->state.http_neg.allowed & (CURL_HTTP_V2x | CURL_HTTP_V3x)))
  ------------------
  |  |   42|  13.7k|#define CURL_HTTP_V3x   (1 << 2)
  ------------------
  |  Branch (550:8): [True: 12.0k, False: 1.70k]
  ------------------
  551|       |      /* allows HTTP/2 or newer */
  552|  12.0k|      return TRUE;
  ------------------
  |  | 1053|  12.0k|#define TRUE true
  ------------------
  553|  13.7k|  }
  554|       |#else
  555|       |  (void)data;
  556|       |  (void)conn;
  557|       |#endif
  558|  1.70k|  return FALSE;
  ------------------
  |  | 1056|  1.70k|#define FALSE false
  ------------------
  559|  13.7k|}
url.c:url_match_conn:
 1059|  4.24k|{
 1060|  4.24k|  struct url_conn_match *m = userdata;
 1061|       |  /* Check if `conn` can be used for transfer `m->data` */
 1062|       |
 1063|       |  /* general connect config setting match? */
 1064|  4.24k|  if(!url_match_connect_config(conn, m))
  ------------------
  |  Branch (1064:6): [True: 1, False: 4.24k]
  ------------------
 1065|      1|    return FALSE;
  ------------------
  |  | 1056|      1|#define FALSE false
  ------------------
 1066|       |
 1067|       |  /* match for destination and protocol? */
 1068|  4.24k|  if(!url_match_destination(conn, m))
  ------------------
  |  Branch (1068:6): [True: 6, False: 4.23k]
  ------------------
 1069|      6|    return FALSE;
  ------------------
  |  | 1056|      6|#define FALSE false
  ------------------
 1070|       |
 1071|  4.23k|  if(!url_match_fully_connected(conn, m))
  ------------------
  |  Branch (1071:6): [True: 1, False: 4.23k]
  ------------------
 1072|      1|    return FALSE;
  ------------------
  |  | 1056|      1|#define FALSE false
  ------------------
 1073|       |
 1074|  4.23k|  if(!url_match_multiplex_needs(conn, m))
  ------------------
  |  Branch (1074:6): [True: 0, False: 4.23k]
  ------------------
 1075|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1076|       |
 1077|  4.23k|  if(!url_match_ssl_use(conn, m))
  ------------------
  |  Branch (1077:6): [True: 0, False: 4.23k]
  ------------------
 1078|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1079|       |
 1080|  4.23k|  if(!url_match_proxy_use(conn, m))
  ------------------
  |  Branch (1080:6): [True: 0, False: 4.23k]
  ------------------
 1081|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1082|  4.23k|  if(!url_match_ssl_config(conn, m))
  ------------------
  |  Branch (1082:6): [True: 0, False: 4.23k]
  ------------------
 1083|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1084|       |
 1085|  4.23k|  if(!url_match_http_multiplex(conn, m))
  ------------------
  |  Branch (1085:6): [True: 0, False: 4.23k]
  ------------------
 1086|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1087|  4.23k|  else if(m->wait_pipe)
  ------------------
  |  Branch (1087:11): [True: 0, False: 4.23k]
  ------------------
 1088|       |    /* wait on multiplexing */
 1089|      0|    return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1090|       |
 1091|  4.23k|  if(!url_match_auth(conn, m))
  ------------------
  |  Branch (1091:6): [True: 0, False: 4.23k]
  ------------------
 1092|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1093|       |
 1094|  4.23k|  if(!url_match_proto_config(conn, m))
  ------------------
  |  Branch (1094:6): [True: 18, False: 4.21k]
  ------------------
 1095|     18|    return FALSE;
  ------------------
  |  | 1056|     18|#define FALSE false
  ------------------
 1096|       |
 1097|  4.21k|  if(!url_match_auth_ntlm(conn, m))
  ------------------
  |  |  995|  4.21k|#define url_match_auth_ntlm(c, m) ((void)(c), (void)(m), TRUE)
  |  |  ------------------
  |  |  |  | 1053|  4.21k|#define TRUE true
  |  |  ------------------
  ------------------
  |  Branch (1097:6): [True: 0, False: 4.21k]
  ------------------
 1098|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1099|  4.21k|  else if(m->force_reuse)
  ------------------
  |  Branch (1099:11): [True: 0, False: 4.21k]
  ------------------
 1100|      0|    return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1101|       |
 1102|  4.21k|  if(!url_match_auth_nego(conn, m))
  ------------------
  |  | 1055|  4.21k|#define url_match_auth_nego(c, m) ((void)(c), (void)(m), TRUE)
  |  |  ------------------
  |  |  |  | 1053|  4.21k|#define TRUE true
  |  |  ------------------
  ------------------
  |  Branch (1102:6): [True: 0, False: 4.21k]
  ------------------
 1103|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1104|  4.21k|  else if(m->force_reuse)
  ------------------
  |  Branch (1104:11): [True: 0, False: 4.21k]
  ------------------
 1105|      0|    return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1106|       |
 1107|  4.21k|  if(!url_match_multiplex_limits(conn, m))
  ------------------
  |  Branch (1107:6): [True: 0, False: 4.21k]
  ------------------
 1108|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1109|       |
 1110|       |  /* If we are going to pick an idle connection, do an extra
 1111|       |   * health check before we reuse it. */
 1112|  4.21k|  if(!CONN_INUSE(conn) &&
  ------------------
  |  |  272|  8.43k|#define CONN_INUSE(c) (!!(c)->attached_xfers)
  ------------------
  |  Branch (1112:6): [True: 4.21k, False: 0]
  ------------------
 1113|  4.21k|     !Curl_cpool_conn_seems_healthy(conn, m->data, &m->now)) {
  ------------------
  |  Branch (1113:6): [True: 111, False: 4.10k]
  ------------------
 1114|    111|    infof(m->data, "Connection %" FMT_OFF_T " seems to be dead, terminating",
  ------------------
  |  |  143|    111|  do {                               \
  |  |  144|    111|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|    111|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 111, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 111]
  |  |  |  |  ------------------
  |  |  |  |  323|    111|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    111|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    111|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 111]
  |  |  ------------------
  ------------------
 1115|    111|          conn->connection_id);
 1116|    111|    Curl_conn_terminate(m->data, conn, FALSE);
  ------------------
  |  | 1056|    111|#define FALSE false
  ------------------
 1117|    111|    return FALSE;
  ------------------
  |  | 1056|    111|#define FALSE false
  ------------------
 1118|    111|  }
 1119|       |
 1120|       |  /* conn matches our needs. */
 1121|  4.10k|  m->found = conn;
 1122|       |  return TRUE;
  ------------------
  |  | 1053|  4.10k|#define TRUE true
  ------------------
 1123|  4.21k|}
url.c:url_match_connect_config:
  611|  4.24k|{
  612|       |  /* connect-only or to-be-closed connections will not be reused */
  613|  4.24k|  if(conn->bits.connect_only || conn->bits.close || conn->bits.no_reuse)
  ------------------
  |  Branch (613:6): [True: 0, False: 4.24k]
  |  Branch (613:33): [True: 0, False: 4.24k]
  |  Branch (613:53): [True: 0, False: 4.24k]
  ------------------
  614|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  615|       |
  616|       |  /* ip_version must match */
  617|  4.24k|  if(m->data->set.ipver != CURL_IPRESOLVE_WHATEVER &&
  ------------------
  |  | 2327|  8.48k|#define CURL_IPRESOLVE_WHATEVER 0L /* default, uses addresses to all IP
  ------------------
  |  Branch (617:6): [True: 0, False: 4.24k]
  ------------------
  618|      0|     m->data->set.ipver != conn->ip_version)
  ------------------
  |  Branch (618:6): [True: 0, False: 0]
  ------------------
  619|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  620|       |
  621|  4.24k|  if(m->needle->localdev || m->needle->localport) {
  ------------------
  |  Branch (621:6): [True: 0, False: 4.24k]
  |  Branch (621:29): [True: 0, False: 4.24k]
  ------------------
  622|       |    /* If we are bound to a specific local end (IP+port), we must not reuse a
  623|       |       random other one, although if we did not ask for a particular one we
  624|       |       can reuse one that was bound.
  625|       |
  626|       |       This comparison is a bit rough and too strict. Since the input
  627|       |       parameters can be specified in numerous ways and still end up the same
  628|       |       it would take a lot of processing to make it really accurate. Instead,
  629|       |       this matching will assume that reuses of bound connections will most
  630|       |       likely also reuse the exact same binding parameters and missing out a
  631|       |       few edge cases should not hurt anyone much. */
  632|      0|    if((conn->localport != m->needle->localport) ||
  ------------------
  |  Branch (632:8): [True: 0, False: 0]
  ------------------
  633|      0|       (conn->localportrange != m->needle->localportrange) ||
  ------------------
  |  Branch (633:8): [True: 0, False: 0]
  ------------------
  634|      0|       (m->needle->localdev &&
  ------------------
  |  Branch (634:9): [True: 0, False: 0]
  ------------------
  635|      0|        (!conn->localdev || strcmp(conn->localdev, m->needle->localdev))))
  ------------------
  |  Branch (635:10): [True: 0, False: 0]
  |  Branch (635:29): [True: 0, False: 0]
  ------------------
  636|      0|      return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  637|      0|  }
  638|       |
  639|  4.24k|  if(!m->needle->via_peer != !conn->via_peer)
  ------------------
  |  Branch (639:6): [True: 1, False: 4.24k]
  ------------------
  640|       |    /* do not mix connections that use the "connect to host" feature and
  641|       |     * connections that do not use this feature */
  642|      1|    return FALSE;
  ------------------
  |  | 1056|      1|#define FALSE false
  ------------------
  643|       |
  644|  4.24k|  return TRUE;
  ------------------
  |  | 1053|  4.24k|#define TRUE true
  ------------------
  645|  4.24k|}
url.c:url_match_destination:
  870|  4.24k|{
  871|       |  /* Different connect-to peers never match */
  872|  4.24k|  if(!Curl_peer_same_destination(m->needle->via_peer, conn->via_peer))
  ------------------
  |  Branch (872:6): [True: 0, False: 4.24k]
  ------------------
  873|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  874|       |
  875|  4.24k|  if(m->needle->origin->scheme != conn->origin->scheme) {
  ------------------
  |  Branch (875:6): [True: 0, False: 4.24k]
  ------------------
  876|       |    /* `needle` and `conn` not having the same scheme.
  877|       |     * This is allowed for the same family *if* conn is using TLS.
  878|       |     * - IMAP+STARTTLS works for IMAPS.
  879|       |     * - IMAPS works for IMAP. */
  880|      0|    if(get_protocol_family(conn->origin->scheme) !=
  ------------------
  |  Branch (880:8): [True: 0, False: 0]
  ------------------
  881|      0|       m->needle->scheme->protocol) {
  882|      0|      return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  883|      0|    }
  884|      0|  }
  885|       |  /* Scheme mismatch is acceptable, compare hostname/port */
  886|  4.24k|  return Curl_peer_same_destination(m->needle->origin, conn->origin);
  887|  4.24k|}
url.c:get_protocol_family:
  142|  4.21k|{
  143|  4.21k|  DEBUGASSERT(s);
  ------------------
  |  | 1083|  4.21k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (143:3): [True: 0, False: 4.21k]
  |  Branch (143:3): [True: 4.21k, False: 0]
  ------------------
  144|  4.21k|  DEBUGASSERT(s->family);
  ------------------
  |  | 1083|  4.21k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (144:3): [True: 0, False: 4.21k]
  |  Branch (144:3): [True: 4.21k, False: 0]
  ------------------
  145|  4.21k|  return s->family;
  146|  4.21k|}
url.c:url_match_fully_connected:
  649|  4.23k|{
  650|  4.23k|  if(!Curl_conn_is_connected(conn, FIRSTSOCKET) ||
  ------------------
  |  |  233|  4.23k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (650:6): [True: 0, False: 4.23k]
  ------------------
  651|  4.23k|     conn->bits.upgrade_in_progress) {
  ------------------
  |  Branch (651:6): [True: 1, False: 4.23k]
  ------------------
  652|       |    /* Not yet connected, or a protocol upgrade is in progress. The later
  653|       |     * happens for HTTP/2 Upgrade: requests that need a response. */
  654|      1|    if(m->may_multiplex) {
  ------------------
  |  Branch (654:8): [True: 1, False: 0]
  ------------------
  655|      1|      m->seen_pending_conn = TRUE;
  ------------------
  |  | 1053|      1|#define TRUE true
  ------------------
  656|       |      /* Do not pick a connection that has not connected yet */
  657|      1|      infof(m->data, "Connection #%" FMT_OFF_T
  ------------------
  |  |  143|      1|  do {                               \
  |  |  144|      1|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      1|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 1, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 1]
  |  |  |  |  ------------------
  |  |  |  |  323|      1|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      1|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      1|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 1]
  |  |  ------------------
  ------------------
  658|      1|            " is not open enough, cannot reuse", conn->connection_id);
  659|      1|    }
  660|       |    /* Do not pick a connection that has not connected yet */
  661|      1|    return FALSE;
  ------------------
  |  | 1056|      1|#define FALSE false
  ------------------
  662|      1|  }
  663|  4.23k|  return TRUE;
  ------------------
  |  | 1053|  4.23k|#define TRUE true
  ------------------
  664|  4.23k|}
url.c:url_match_multiplex_needs:
  679|  4.23k|{
  680|  4.23k|  if(CONN_INUSE(conn)) {
  ------------------
  |  |  272|  4.23k|#define CONN_INUSE(c) (!!(c)->attached_xfers)
  |  |  ------------------
  |  |  |  Branch (272:23): [True: 0, False: 4.23k]
  |  |  ------------------
  ------------------
  681|      0|    if(!conn->bits.multiplex) {
  ------------------
  |  Branch (681:8): [True: 0, False: 0]
  ------------------
  682|       |      /* conn busy and conn cannot take more transfers */
  683|      0|      m->seen_single_use_conn = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  684|      0|      return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  685|      0|    }
  686|      0|    m->seen_multiplex_conn = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  687|      0|    if(!m->may_multiplex || !url_match_multi(conn, m))
  ------------------
  |  Branch (687:8): [True: 0, False: 0]
  |  Branch (687:29): [True: 0, False: 0]
  ------------------
  688|       |      /* conn busy and transfer cannot be multiplexed */
  689|      0|      return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  690|      0|  }
  691|  4.23k|  return TRUE;
  ------------------
  |  | 1053|  4.23k|#define TRUE true
  ------------------
  692|  4.23k|}
url.c:url_match_ssl_use:
  720|  4.23k|{
  721|  4.23k|  if(m->needle->scheme->flags & PROTOPT_SSL) {
  ------------------
  |  |  207|  4.23k|#define PROTOPT_SSL (1 << 0)       /* uses SSL */
  ------------------
  |  Branch (721:6): [True: 0, False: 4.23k]
  ------------------
  722|       |    /* We are looking for SSL, if `conn` does not do it, not a match. */
  723|      0|    if(!Curl_conn_is_ssl(conn, FIRSTSOCKET))
  ------------------
  |  |  233|      0|#define FIRSTSOCKET     0
  ------------------
  |  Branch (723:8): [True: 0, False: 0]
  ------------------
  724|      0|      return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  725|      0|  }
  726|  4.23k|  else if(Curl_conn_is_ssl(conn, FIRSTSOCKET)) {
  ------------------
  |  |  233|  4.23k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (726:11): [True: 0, False: 4.23k]
  ------------------
  727|       |    /* If the protocol does not allow reuse of SSL connections OR
  728|       |       is of another protocol family, not a match. */
  729|      0|    if(!(m->needle->scheme->flags & PROTOPT_SSL_REUSE) ||
  ------------------
  |  |  234|      0|#define PROTOPT_SSL_REUSE (1 << 15)   /* this protocol may reuse an existing
  ------------------
  |  Branch (729:8): [True: 0, False: 0]
  ------------------
  730|      0|       (get_protocol_family(conn->scheme) != m->needle->scheme->protocol))
  ------------------
  |  Branch (730:8): [True: 0, False: 0]
  ------------------
  731|      0|      return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  732|      0|  }
  733|  4.23k|  else if(m->require_tls)
  ------------------
  |  Branch (733:11): [True: 0, False: 4.23k]
  ------------------
  734|       |    /* a clear-text STARTTLS protocol with required TLS */
  735|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  736|  4.23k|  return TRUE;
  ------------------
  |  | 1053|  4.23k|#define TRUE true
  ------------------
  737|  4.23k|}
url.c:url_match_proxy_use:
  742|  4.23k|{
  743|  4.23k|  if(m->needle->bits.origin_is_proxy != conn->bits.origin_is_proxy)
  ------------------
  |  Branch (743:6): [True: 0, False: 4.23k]
  ------------------
  744|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  745|       |
  746|  4.23k|  if(!proxy_info_matches(&m->needle->socks_proxy, &conn->socks_proxy))
  ------------------
  |  Branch (746:6): [True: 0, False: 4.23k]
  ------------------
  747|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  748|       |
  749|  4.23k|  if(!proxy_info_matches(&m->needle->http_proxy, &conn->http_proxy))
  ------------------
  |  Branch (749:6): [True: 0, False: 4.23k]
  ------------------
  750|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  751|       |
  752|  4.23k|  if(CURL_PROXY_IS_HTTPS(m->needle->http_proxy.proxytype)) {
  ------------------
  |  |   42|  4.23k|  (((t) == CURLPROXY_HTTPS) ||  \
  |  |  ------------------
  |  |  |  |  794|  4.23k|#define CURLPROXY_HTTPS           2L /* HTTPS but stick to HTTP/1
  |  |  ------------------
  |  |  |  Branch (42:4): [True: 0, False: 4.23k]
  |  |  ------------------
  |  |   43|  4.23k|   ((t) == CURLPROXY_HTTPS2) || \
  |  |  ------------------
  |  |  |  |  796|  4.23k|#define CURLPROXY_HTTPS2          3L /* HTTPS and attempt HTTP/2
  |  |  ------------------
  |  |  |  Branch (43:4): [True: 0, False: 4.23k]
  |  |  ------------------
  |  |   44|  4.23k|   ((t) == CURLPROXY_HTTPS3))
  |  |  ------------------
  |  |  |  |  805|  4.23k|#define CURLPROXY_HTTPS3          8L /* HTTPS and attempt HTTP/3
  |  |  ------------------
  |  |  |  Branch (44:4): [True: 0, False: 4.23k]
  |  |  ------------------
  ------------------
  753|       |    /* https proxies come in different types, http/1.1, h2, ... */
  754|       |    /* match SSL config to proxy */
  755|      0|    if(!Curl_ssl_conn_config_match(m->data, conn, TRUE)) {
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  |  Branch (755:8): [True: 0, False: 0]
  ------------------
  756|      0|      DEBUGF(infof(m->data,
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [Folded, False: 0]
  |  |  ------------------
  ------------------
  757|      0|                   "Connection #%" FMT_OFF_T
  758|      0|                   " has different SSL proxy parameters, cannot reuse",
  759|      0|                   conn->connection_id));
  760|      0|      return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  761|      0|    }
  762|       |    /* the SSL config to the server, which may apply here is checked
  763|       |     * further below */
  764|      0|  }
  765|  4.23k|  return TRUE;
  ------------------
  |  | 1053|  4.23k|#define TRUE true
  ------------------
  766|  4.23k|}
url.c:proxy_info_matches:
  564|  8.47k|{
  565|  8.47k|  if((data->proxytype == needle->proxytype) &&
  ------------------
  |  Branch (565:6): [True: 8.47k, False: 0]
  ------------------
  566|  8.47k|     Curl_peer_same_destination(data->peer, needle->peer) &&
  ------------------
  |  Branch (566:6): [True: 8.47k, False: 0]
  ------------------
  567|  8.47k|     Curl_creds_same(data->creds, needle->creds)) {
  ------------------
  |  Branch (567:6): [True: 8.47k, False: 0]
  ------------------
  568|  8.47k|    return TRUE;
  ------------------
  |  | 1053|  8.47k|#define TRUE true
  ------------------
  569|  8.47k|  }
  570|      0|  return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  571|  8.47k|}
url.c:url_match_ssl_config:
  891|  4.23k|{
  892|       |  /* If talking/upgrading to TLS, conn needs to use the same SSL options. */
  893|  4.23k|  if(((m->needle->scheme->flags & PROTOPT_SSL) || m->may_tls) &&
  ------------------
  |  |  207|  4.23k|#define PROTOPT_SSL (1 << 0)       /* uses SSL */
  ------------------
  |  Branch (893:7): [True: 0, False: 4.23k]
  |  Branch (893:51): [True: 0, False: 4.23k]
  ------------------
  894|      0|     !Curl_ssl_conn_config_match(m->data, conn, FALSE)) {
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  |  Branch (894:6): [True: 0, False: 0]
  ------------------
  895|      0|    DEBUGF(infof(m->data, "Connection #%" FMT_OFF_T
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [Folded, False: 0]
  |  |  ------------------
  ------------------
  896|      0|                 " has different SSL parameters, cannot reuse",
  897|      0|                 conn->connection_id));
  898|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  899|      0|  }
  900|  4.23k|  return TRUE;
  ------------------
  |  | 1053|  4.23k|#define TRUE true
  ------------------
  901|  4.23k|}
url.c:url_match_http_multiplex:
  774|  4.23k|{
  775|  4.23k|  if(m->may_multiplex &&
  ------------------
  |  Branch (775:6): [True: 4.08k, False: 154]
  ------------------
  776|  4.08k|     (m->data->state.http_neg.allowed & (CURL_HTTP_V2x | CURL_HTTP_V3x)) &&
  ------------------
  |  |   41|  4.08k|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
                   (m->data->state.http_neg.allowed & (CURL_HTTP_V2x | CURL_HTTP_V3x)) &&
  ------------------
  |  |   42|  4.08k|#define CURL_HTTP_V3x   (1 << 2)
  ------------------
  |  Branch (776:6): [True: 4.08k, False: 0]
  ------------------
  777|  4.08k|     (m->needle->scheme->protocol & CURLPROTO_HTTP) &&
  ------------------
  |  | 1086|  4.08k|#define CURLPROTO_HTTP    (1L << 0)
  ------------------
  |  Branch (777:6): [True: 4.08k, False: 0]
  ------------------
  778|  4.08k|     !conn->httpversion_seen) {
  ------------------
  |  Branch (778:6): [True: 0, False: 4.08k]
  ------------------
  779|      0|    if(m->data->set.pipewait) {
  ------------------
  |  Branch (779:8): [True: 0, False: 0]
  ------------------
  780|      0|      infof(m->data, "Server upgrade does not support multiplex yet, wait");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  781|      0|      m->found = NULL;
  782|      0|      m->wait_pipe = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  783|      0|      return TRUE; /* stop searching, we want to wait */
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  784|      0|    }
  785|      0|    infof(m->data, "Server upgrade cannot be used");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  786|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  787|      0|  }
  788|  4.23k|  return TRUE;
  ------------------
  |  | 1053|  4.23k|#define TRUE true
  ------------------
  789|  4.23k|}
url.c:url_match_auth:
  851|  4.23k|{
  852|  4.23k|  if(!Curl_creds_same(m->needle->creds, conn->creds)) {
  ------------------
  |  Branch (852:6): [True: 0, False: 4.23k]
  ------------------
  853|      0|    if(m->needle->creds)
  ------------------
  |  Branch (853:8): [True: 0, False: 0]
  ------------------
  854|      0|      return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  855|      0|    if(!Curl_creds_same(m->data->state.creds, conn->creds))
  ------------------
  |  Branch (855:8): [True: 0, False: 0]
  ------------------
  856|      0|      return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  857|      0|  }
  858|       |#if defined(HAVE_GSSAPI) || defined(USE_WINDOWS_SSPI)
  859|       |  /* GSS delegation differences do not actually affect every connection and
  860|       |     auth method, but this check takes precaution before efficiency */
  861|       |  if(m->needle->gssapi_delegation != conn->gssapi_delegation)
  862|       |    return FALSE;
  863|       |#endif
  864|       |
  865|  4.23k|  return TRUE;
  ------------------
  |  | 1053|  4.23k|#define TRUE true
  ------------------
  866|  4.23k|}
url.c:url_match_proto_config:
  830|  4.23k|{
  831|  4.23k|  if(!url_match_http_version(conn, m))
  ------------------
  |  Branch (831:6): [True: 18, False: 4.21k]
  ------------------
  832|     18|    return FALSE;
  ------------------
  |  | 1056|     18|#define FALSE false
  ------------------
  833|       |
  834|       |#ifdef USE_SSH
  835|       |  if(get_protocol_family(m->needle->scheme) & PROTO_FAMILY_SSH) {
  836|       |    if(!ssh_config_matches(m->needle, conn))
  837|       |      return FALSE;
  838|       |  }
  839|       |#endif
  840|  4.21k|#ifndef CURL_DISABLE_FTP
  841|  4.21k|  else if(get_protocol_family(m->needle->scheme) & PROTO_FAMILY_FTP) {
  ------------------
  |  |   86|  4.21k|#define PROTO_FAMILY_FTP  (CURLPROTO_FTP | CURLPROTO_FTPS)
  |  |  ------------------
  |  |  |  | 1088|  4.21k|#define CURLPROTO_FTP     (1L << 2)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_FTP  (CURLPROTO_FTP | CURLPROTO_FTPS)
  |  |  ------------------
  |  |  |  | 1089|  4.21k|#define CURLPROTO_FTPS    (1L << 3)
  |  |  ------------------
  ------------------
  |  Branch (841:11): [True: 0, False: 4.21k]
  ------------------
  842|      0|    if(!Curl_ftp_conns_match(m->needle, conn))
  ------------------
  |  Branch (842:8): [True: 0, False: 0]
  ------------------
  843|      0|      return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  844|      0|  }
  845|  4.21k|#endif
  846|  4.21k|  return TRUE;
  ------------------
  |  | 1053|  4.21k|#define TRUE true
  ------------------
  847|  4.23k|}
url.c:url_match_http_version:
  793|  4.23k|{
  794|       |  /* If looking for HTTP and the HTTP versions allowed do not include
  795|       |   * the HTTP version of conn, continue looking. */
  796|  4.23k|  if((m->needle->scheme->protocol & PROTO_FAMILY_HTTP)) {
  ------------------
  |  |   84|  4.23k|#define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1086|  4.23k|#define CURLPROTO_HTTP    (1L << 0)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  | 1087|  4.23k|#define CURLPROTO_HTTPS   (1L << 1)
  |  |  ------------------
  |  |               #define PROTO_FAMILY_HTTP (CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_WS | \
  |  |  ------------------
  |  |  |  |   63|  4.23k|#define CURLPROTO_WS     (1L << 30)
  |  |  ------------------
  |  |   85|  4.23k|                           CURLPROTO_WSS)
  |  |  ------------------
  |  |  |  |   64|  4.23k|#define CURLPROTO_WSS    ((curl_prot_t)1 << 31)
  |  |  ------------------
  ------------------
  |  Branch (796:6): [True: 4.23k, False: 0]
  ------------------
  797|  4.23k|    switch(Curl_conn_http_version(m->data, conn)) {
  798|      0|    case 30:
  ------------------
  |  Branch (798:5): [True: 0, False: 4.23k]
  ------------------
  799|      0|      if(!(m->data->state.http_neg.allowed & CURL_HTTP_V3x)) {
  ------------------
  |  |   42|      0|#define CURL_HTTP_V3x   (1 << 2)
  ------------------
  |  Branch (799:10): [True: 0, False: 0]
  ------------------
  800|      0|        DEBUGF(infof(m->data, "not reusing conn #%" CURL_FORMAT_CURL_OFF_T
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [Folded, False: 0]
  |  |  ------------------
  ------------------
  801|      0|                     ", we do not want h3", conn->connection_id));
  802|      0|        return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  803|      0|      }
  804|      0|      break;
  805|     30|    case 20:
  ------------------
  |  Branch (805:5): [True: 30, False: 4.20k]
  ------------------
  806|     30|      if(!(m->data->state.http_neg.allowed & CURL_HTTP_V2x)) {
  ------------------
  |  |   41|     30|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
  |  Branch (806:10): [True: 18, False: 12]
  ------------------
  807|     18|        DEBUGF(infof(m->data, "not reusing conn #%" CURL_FORMAT_CURL_OFF_T
  ------------------
  |  | 1069|    126|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1069:19): [True: 18, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 18]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [Folded, False: 18]
  |  |  ------------------
  ------------------
  808|     18|                     ", we do not want h2", conn->connection_id));
  809|     18|        return FALSE;
  ------------------
  |  | 1056|     18|#define FALSE false
  ------------------
  810|     18|      }
  811|     12|      break;
  812|  4.20k|    default:
  ------------------
  |  Branch (812:5): [True: 4.20k, False: 30]
  ------------------
  813|  4.20k|      if(!(m->data->state.http_neg.allowed & CURL_HTTP_V1x)) {
  ------------------
  |  |   40|  4.20k|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
  |  Branch (813:10): [True: 0, False: 4.20k]
  ------------------
  814|      0|        DEBUGF(infof(m->data, "not reusing conn #%" CURL_FORMAT_CURL_OFF_T
  ------------------
  |  | 1069|      0|#define DEBUGF(x) x
  |  |  ------------------
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [True: 0, False: 0]
  |  |  |  Branch (1069:19): [Folded, False: 0]
  |  |  ------------------
  ------------------
  815|      0|                     ", we do not want h1", conn->connection_id));
  816|      0|        return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  817|      0|      }
  818|  4.20k|      break;
  819|  4.23k|    }
  820|  4.23k|  }
  821|  4.21k|  return TRUE;
  ------------------
  |  | 1053|  4.21k|#define TRUE true
  ------------------
  822|  4.23k|}
url.c:url_match_multiplex_limits:
  696|  4.21k|{
  697|  4.21k|  if(CONN_INUSE(conn) && m->may_multiplex) {
  ------------------
  |  |  272|  8.43k|#define CONN_INUSE(c) (!!(c)->attached_xfers)
  |  |  ------------------
  |  |  |  Branch (272:23): [True: 0, False: 4.21k]
  |  |  ------------------
  ------------------
  |  Branch (697:26): [True: 0, False: 0]
  ------------------
  698|      0|    DEBUGASSERT(conn->bits.multiplex);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (698:5): [True: 0, False: 0]
  |  Branch (698:5): [True: 0, False: 0]
  ------------------
  699|       |    /* If multiplexed, make sure we do not go over concurrency limit */
  700|      0|    if(conn->attached_xfers >=
  ------------------
  |  Branch (700:8): [True: 0, False: 0]
  ------------------
  701|      0|            Curl_multi_max_concurrent_streams(m->data->multi)) {
  702|      0|      infof(m->data, "client side MAX_CONCURRENT_STREAMS reached"
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  703|      0|            ", skip (%u)", conn->attached_xfers);
  704|      0|      return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  705|      0|    }
  706|      0|    if(conn->attached_xfers >=
  ------------------
  |  Branch (706:8): [True: 0, False: 0]
  ------------------
  707|      0|       Curl_conn_get_max_concurrent(m->data, conn, FIRSTSOCKET)) {
  ------------------
  |  |  233|      0|#define FIRSTSOCKET     0
  ------------------
  708|      0|      infof(m->data, "MAX_CONCURRENT_STREAMS reached, skip (%u)",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  709|      0|            conn->attached_xfers);
  710|      0|      return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  711|      0|    }
  712|       |    /* When not multiplexed, we have a match here! */
  713|      0|    infof(m->data, "Multiplexed connection found");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  714|      0|  }
  715|  4.21k|  return TRUE;
  ------------------
  |  | 1053|  4.21k|#define TRUE true
  ------------------
  716|  4.21k|}
url.c:url_match_result:
 1126|  13.7k|{
 1127|  13.7k|  struct url_conn_match *match = userdata;
 1128|  13.7k|  if(match->found) {
  ------------------
  |  Branch (1128:6): [True: 4.10k, False: 9.65k]
  ------------------
 1129|       |    /* Attach it now while still under lock, so the connection does
 1130|       |     * no longer appear idle and can be reaped. */
 1131|  4.10k|    Curl_attach_connection(match->data, match->found);
 1132|  4.10k|    return TRUE;
  ------------------
  |  | 1053|  4.10k|#define TRUE true
  ------------------
 1133|  4.10k|  }
 1134|  9.65k|  else if(match->seen_single_use_conn && !match->seen_multiplex_conn) {
  ------------------
  |  Branch (1134:11): [True: 0, False: 9.65k]
  |  Branch (1134:42): [True: 0, False: 0]
  ------------------
 1135|       |    /* We have seen a single-use, existing connection to the destination and
 1136|       |     * no multiplexed one. It seems safe to assume that the server does
 1137|       |     * not support multiplexing. */
 1138|      0|    match->wait_pipe = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1139|      0|  }
 1140|  9.65k|  else if(match->seen_pending_conn && match->data->set.pipewait) {
  ------------------
  |  Branch (1140:11): [True: 1, False: 9.65k]
  |  Branch (1140:39): [True: 0, False: 1]
  ------------------
 1141|      0|    infof(match->data,
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1142|      0|          "Found pending candidate for reuse and CURLOPT_PIPEWAIT is set");
 1143|      0|    match->wait_pipe = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1144|      0|  }
 1145|  9.65k|  match->force_reuse = FALSE;
  ------------------
  |  | 1056|  9.65k|#define FALSE false
  ------------------
 1146|       |  return FALSE;
  ------------------
  |  | 1056|  9.65k|#define FALSE false
  ------------------
 1147|  13.7k|}
url.c:url_conn_reuse_adjust:
 1993|  4.10k|{
 1994|  4.10k|  struct connectdata *conn = data->conn;
 1995|       |
 1996|       |  /* get the user+password information from the needle since it may
 1997|       |   * be new for this request even when we reuse conn */
 1998|  4.10k|  if(needle->creds) {
  ------------------
  |  Branch (1998:6): [True: 0, False: 4.10k]
  ------------------
 1999|       |    /* use the new username and password though */
 2000|      0|    Curl_creds_link(&conn->creds, needle->creds);
 2001|      0|  }
 2002|       |
 2003|  4.10k|#ifndef CURL_DISABLE_PROXY
 2004|       |  /* use the new proxy username and proxy password though */
 2005|  4.10k|  Curl_creds_link(&conn->http_proxy.creds, needle->http_proxy.creds);
 2006|  4.10k|  Curl_creds_link(&conn->socks_proxy.creds, needle->socks_proxy.creds);
 2007|  4.10k|#endif
 2008|       |
 2009|       |  /* Finding a connection for reuse in the cpool matches, among other
 2010|       |   * things on the "remote-relevant" hostname. This is not necessarily
 2011|       |   * the authority of the URL, e.g. conn->origin. For example:
 2012|       |   * - we use a proxy (not tunneling). we want to send all requests
 2013|       |   *   that use the same proxy on this connection.
 2014|       |   * - we have a "connect-to" setting that may redirect the hostname of
 2015|       |   *   a new request to the same remote endpoint of an existing conn.
 2016|       |   *   We want to reuse an existing conn to the remote endpoint.
 2017|       |   * Since connection reuse does not match on conn->origin necessarily, we
 2018|       |   * switch conn to needle's host settings.
 2019|       |   */
 2020|  4.10k|  Curl_peer_link(&conn->origin, needle->origin);
 2021|  4.10k|  Curl_peer_link(&conn->via_peer, needle->via_peer);
 2022|  4.10k|  Curl_peer_link(&conn->origin2, needle->origin2);
 2023|  4.10k|  Curl_peer_link(&conn->via_peer2, needle->via_peer2);
 2024|  4.10k|}

urlencode_str:
  133|  29.8k|{
  134|       |  /* we must add this with whitespace-replacing */
  135|  29.8k|  const unsigned char *iptr;
  136|  29.8k|  const unsigned char *host_sep = (const unsigned char *)url;
  137|  29.8k|  CURLcode result = CURLE_OK;
  138|       |
  139|  29.8k|  DEBUGASSERT((query >= QUERY_NO) && (query <= QUERY_YES));
  ------------------
  |  | 1083|  29.8k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (139:3): [True: 0, False: 29.8k]
  |  Branch (139:3): [True: 0, False: 0]
  |  Branch (139:3): [True: 29.8k, False: 0]
  |  Branch (139:3): [True: 29.8k, False: 0]
  ------------------
  140|       |
  141|  29.8k|  if(!relative) {
  ------------------
  |  Branch (141:6): [True: 93, False: 29.7k]
  ------------------
  142|     93|    size_t n;
  143|     93|    host_sep = (const unsigned char *)find_host_sep(url);
  144|       |
  145|       |    /* output the first piece as-is */
  146|     93|    n = (const char *)host_sep - url;
  147|     93|    result = curlx_dyn_addn(o, url, n);
  148|     93|    len -= n;
  149|     93|  }
  150|       |
  151|  2.87M|  for(iptr = host_sep; len && !result; iptr++, len--) {
  ------------------
  |  Branch (151:24): [True: 2.84M, False: 29.8k]
  |  Branch (151:31): [True: 2.84M, False: 0]
  ------------------
  152|  2.84M|    if(*iptr == ' ') {
  ------------------
  |  Branch (152:8): [True: 2.03k, False: 2.83M]
  ------------------
  153|  2.03k|      if(query != QUERY_YES)
  ------------------
  |  |   54|  2.03k|#define QUERY_YES     4
  ------------------
  |  Branch (153:10): [True: 1.65k, False: 387]
  ------------------
  154|  1.65k|        result = curlx_dyn_addn(o, "%20", 3);
  155|    387|      else
  156|    387|        result = curlx_dyn_addn(o, "+", 1);
  157|  2.03k|    }
  158|  2.83M|    else if((*iptr < ' ') || (*iptr >= 0x7f)) {
  ------------------
  |  Branch (158:13): [True: 3.89k, False: 2.83M]
  |  Branch (158:30): [True: 1.84M, False: 989k]
  ------------------
  159|  1.84M|      unsigned char out[3] = { '%' };
  160|  1.84M|      Curl_hexbyte(&out[1], *iptr);
  161|  1.84M|      result = curlx_dyn_addn(o, out, 3);
  162|  1.84M|    }
  163|   989k|    else if(*iptr == '%' && (len >= 3) &&
  ------------------
  |  Branch (163:13): [True: 104k, False: 885k]
  |  Branch (163:29): [True: 104k, False: 193]
  ------------------
  164|   104k|            ISXDIGIT(iptr[1]) && ISXDIGIT(iptr[2]) &&
  ------------------
  |  |   37|  1.09M|#define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   42|   208k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (42:22): [True: 99.7k, False: 4.62k]
  |  |  |  |  |  Branch (42:38): [True: 24.2k, False: 75.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   27|   184k|#define ISLOWHEXALPHA(x) (((x) >= 'a') && ((x) <= 'f'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (27:27): [True: 4.54k, False: 75.5k]
  |  |  |  |  |  Branch (27:43): [True: 3.15k, False: 1.38k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   28|  76.9k|#define ISUPHEXALPHA(x)  (((x) >= 'A') && ((x) <= 'F'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (28:27): [True: 72.1k, False: 4.75k]
  |  |  |  |  |  Branch (28:43): [True: 70.7k, False: 1.45k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          ISXDIGIT(iptr[1]) && ISXDIGIT(iptr[2]) &&
  ------------------
  |  |   37|  1.08M|#define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   42|   196k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (42:22): [True: 96.6k, False: 1.49k]
  |  |  |  |  |  Branch (42:38): [True: 60.2k, False: 36.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   27|   136k|#define ISLOWHEXALPHA(x) (((x) >= 'a') && ((x) <= 'f'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (27:27): [True: 2.08k, False: 35.7k]
  |  |  |  |  |  Branch (27:43): [True: 797, False: 1.28k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISXDIGIT(x) (ISDIGIT(x) || ISLOWHEXALPHA(x) || ISUPHEXALPHA(x))
  |  |  ------------------
  |  |  |  |   28|  37.0k|#define ISUPHEXALPHA(x)  (((x) >= 'A') && ((x) <= 'F'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (28:27): [True: 35.5k, False: 1.50k]
  |  |  |  |  |  Branch (28:43): [True: 34.2k, False: 1.34k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  165|  95.3k|            (ISLOWER(iptr[1]) || ISLOWER(iptr[2]))) {
  ------------------
  |  |   41|   190k|#define ISLOWER(x)  (((x) >= 'a') && ((x) <= 'z'))
  |  |  ------------------
  |  |  |  Branch (41:22): [True: 672, False: 94.6k]
  |  |  |  Branch (41:38): [True: 672, False: 0]
  |  |  ------------------
  ------------------
                          (ISLOWER(iptr[1]) || ISLOWER(iptr[2]))) {
  ------------------
  |  |   41|  94.6k|#define ISLOWER(x)  (((x) >= 'a') && ((x) <= 'z'))
  |  |  ------------------
  |  |  |  Branch (41:22): [True: 187, False: 94.4k]
  |  |  |  Branch (41:38): [True: 187, False: 0]
  |  |  ------------------
  ------------------
  166|       |      /* uppercase it */
  167|    859|      unsigned char hex = (unsigned char)((curlx_hexval(iptr[1]) << 4) |
  ------------------
  |  |  111|    859|#define curlx_hexval(x) (unsigned char)(curlx_hexasciitable[(x) - '0'] & 0x0f)
  ------------------
  168|    859|                                          curlx_hexval(iptr[2]));
  ------------------
  |  |  111|    859|#define curlx_hexval(x) (unsigned char)(curlx_hexasciitable[(x) - '0'] & 0x0f)
  ------------------
  169|    859|      unsigned char out[3] = { '%' };
  170|    859|      Curl_hexbyte(&out[1], hex);
  171|    859|      result = curlx_dyn_addn(o, out, 3);
  172|    859|      iptr += 2;
  173|    859|      len -= 2;
  174|    859|    }
  175|   988k|    else {
  176|   988k|      result = curlx_dyn_addn(o, iptr, 1);
  177|   988k|      if(*iptr == '?' && (query == QUERY_NOT_YET))
  ------------------
  |  |   53|    943|#define QUERY_NOT_YET 3 /* allow to change to query */
  ------------------
  |  Branch (177:10): [True: 943, False: 987k]
  |  Branch (177:26): [True: 474, False: 469]
  ------------------
  178|    474|        query = QUERY_YES;
  ------------------
  |  |   54|    474|#define QUERY_YES     4
  ------------------
  179|   988k|    }
  180|  2.84M|  }
  181|       |
  182|  29.8k|  if(result)
  ------------------
  |  Branch (182:6): [True: 0, False: 29.8k]
  ------------------
  183|      0|    return cc2cu(result);
  ------------------
  |  |  108|      0|  ((x) == CURLE_TOO_LARGE ? CURLUE_TOO_LARGE : CURLUE_OUT_OF_MEMORY)
  |  |  ------------------
  |  |  |  Branch (108:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  184|  29.8k|  return CURLUE_OK;
  185|  29.8k|}
Curl_is_absolute_url:
  197|  57.3k|{
  198|  57.3k|  size_t i = 0;
  199|  57.3k|  DEBUGASSERT(!buf || (buflen > MAX_SCHEME_LEN));
  ------------------
  |  | 1083|  57.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (199:3): [True: 57.3k, False: 0]
  |  Branch (199:3): [True: 0, False: 0]
  |  Branch (199:3): [True: 31.1k, False: 26.2k]
  |  Branch (199:3): [True: 26.2k, False: 0]
  ------------------
  200|  57.3k|  (void)buflen; /* only used in debug-builds */
  201|  57.3k|  if(buf)
  ------------------
  |  Branch (201:6): [True: 26.2k, False: 31.1k]
  ------------------
  202|  26.2k|    buf[0] = 0; /* always leave a defined value in buf */
  203|       |#ifdef _WIN32
  204|       |  if(guess_scheme && STARTS_WITH_DRIVE_PREFIX(url))
  205|       |    return 0;
  206|       |#endif
  207|  57.3k|  if(ISALPHA(url[0]))
  ------------------
  |  |   36|  57.3k|#define ISALPHA(x)  (ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   41|   114k|#define ISLOWER(x)  (((x) >= 'a') && ((x) <= 'z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:22): [True: 54.3k, False: 3.03k]
  |  |  |  |  |  Branch (41:38): [True: 54.3k, False: 38]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISALPHA(x)  (ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   40|  3.07k|#define ISUPPER(x)  (((x) >= 'A') && ((x) <= 'Z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (40:22): [True: 314, False: 2.75k]
  |  |  |  |  |  Branch (40:38): [True: 184, False: 130]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  208|   208k|    for(i = 1; i < MAX_SCHEME_LEN; ++i) {
  ------------------
  |  |   55|   208k|#define MAX_SCHEME_LEN 40
  ------------------
  |  Branch (208:16): [True: 208k, False: 75]
  ------------------
  209|   208k|      char s = url[i];
  210|   208k|      if(s && (ISALNUM(s) || (s == '+') || (s == '-') || (s == '.'))) {
  ------------------
  |  |   39|   416k|#define ISALNUM(x)  (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   42|   416k|#define ISDIGIT(x)  (((x) >= '0') && ((x) <= '9'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (42:22): [True: 201k, False: 6.50k]
  |  |  |  |  |  Branch (42:38): [True: 3.65k, False: 198k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISALNUM(x)  (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   41|   413k|#define ISLOWER(x)  (((x) >= 'a') && ((x) <= 'z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (41:22): [True: 148k, False: 56.4k]
  |  |  |  |  |  Branch (41:38): [True: 148k, False: 50]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define ISALNUM(x)  (ISDIGIT(x) || ISLOWER(x) || ISUPPER(x))
  |  |  ------------------
  |  |  |  |   40|  56.4k|#define ISUPPER(x)  (((x) >= 'A') && ((x) <= 'Z'))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (40:22): [True: 1.38k, False: 55.0k]
  |  |  |  |  |  Branch (40:38): [True: 1.29k, False: 92]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (210:10): [True: 208k, False: 366]
  |  Branch (210:30): [True: 298, False: 54.8k]
  |  Branch (210:44): [True: 448, False: 54.4k]
  |  Branch (210:58): [True: 370, False: 54.0k]
  ------------------
  211|       |        /* RFC 3986 3.1 explains:
  212|       |           scheme      = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
  213|       |         */
  214|   154k|      }
  215|  54.4k|      else {
  216|  54.4k|        break;
  217|  54.4k|      }
  218|   208k|    }
  219|  57.3k|  if(i && (url[i] == ':') && ((url[i + 1] == '/') || !guess_scheme)) {
  ------------------
  |  Branch (219:6): [True: 54.4k, False: 2.88k]
  |  Branch (219:11): [True: 48.2k, False: 6.25k]
  |  Branch (219:31): [True: 48.0k, False: 133]
  |  Branch (219:54): [True: 133, False: 0]
  ------------------
  220|       |    /* If this does not guess scheme, the scheme always ends with the colon so
  221|       |       that this also detects data: URLs etc. In guessing mode, data: could
  222|       |       be the hostname "data" with a specified port number. */
  223|       |
  224|       |    /* the length of the scheme is the name part only */
  225|  48.2k|    size_t len = i;
  226|  48.2k|    if(buf) {
  ------------------
  |  Branch (226:8): [True: 26.2k, False: 21.9k]
  ------------------
  227|  26.2k|      Curl_strntolower(buf, url, i);
  228|  26.2k|      buf[i] = 0;
  229|  26.2k|    }
  230|  48.2k|    return len;
  231|  48.2k|  }
  232|  9.14k|  return 0;
  233|  57.3k|}
Curl_junkscan:
  237|  26.3k|{
  238|  26.3k|  size_t n = strlen(url);
  239|  26.3k|  size_t i;
  240|  26.3k|  unsigned char control;
  241|  26.3k|  const unsigned char *p = (const unsigned char *)url;
  242|  26.3k|  if(n > CURL_MAX_INPUT_LENGTH)
  ------------------
  |  |   45|  26.3k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
  |  Branch (242:6): [True: 0, False: 26.3k]
  ------------------
  243|      0|    return CURLUE_MALFORMED_INPUT;
  244|       |
  245|  26.3k|  control = allowspace ? 0x1f : 0x20;
  ------------------
  |  Branch (245:13): [True: 10.2k, False: 16.1k]
  ------------------
  246|  4.26M|  for(i = 0; i < n; i++) {
  ------------------
  |  Branch (246:14): [True: 4.23M, False: 26.2k]
  ------------------
  247|  4.23M|    if(p[i] <= control || p[i] == 127)
  ------------------
  |  Branch (247:8): [True: 95, False: 4.23M]
  |  Branch (247:27): [True: 13, False: 4.23M]
  ------------------
  248|    108|      return CURLUE_MALFORMED_INPUT;
  249|  4.23M|  }
  250|  26.2k|  *urllen = n;
  251|  26.2k|  return CURLUE_OK;
  252|  26.3k|}
parse_hostname_login:
  272|  26.1k|{
  273|  26.1k|  CURLUcode ures = CURLUE_OK;
  274|  26.1k|  CURLcode result;
  275|  26.1k|  char *userp = NULL;
  276|  26.1k|  char *passwdp = NULL;
  277|  26.1k|  char *optionsp = NULL;
  278|  26.1k|  const struct Curl_scheme *h = NULL;
  279|       |
  280|       |  /* At this point, we assume all the other special cases have been taken
  281|       |   * care of, so the host is at most
  282|       |   *
  283|       |   *   [user[:password][;options]]@]hostname
  284|       |   *
  285|       |   * We need somewhere to put the embedded details, so do that first.
  286|       |   */
  287|  26.1k|  const char *ptr;
  288|       |
  289|  26.1k|  DEBUGASSERT(login);
  ------------------
  |  | 1083|  26.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (289:3): [True: 0, False: 26.1k]
  |  Branch (289:3): [True: 26.1k, False: 0]
  ------------------
  290|       |
  291|  26.1k|  *hostname_offset = 0;
  292|  26.1k|  ptr = memchr(login, '@', len);
  293|  26.1k|  if(!ptr)
  ------------------
  |  Branch (293:6): [True: 23.3k, False: 2.81k]
  ------------------
  294|  23.3k|    goto out;
  295|       |
  296|       |  /* We will now try to extract the
  297|       |   * possible login information in a string like:
  298|       |   * ftp://user:password@ftp.site.example:8021/README */
  299|  2.81k|  ptr++;
  300|       |
  301|       |  /* if this is a known scheme, get some details */
  302|  2.81k|  if(u->scheme)
  ------------------
  |  Branch (302:6): [True: 2.81k, False: 0]
  ------------------
  303|  2.81k|    h = Curl_get_scheme(u->scheme);
  304|       |
  305|       |  /* We could use the login information in the URL so extract it. Only parse
  306|       |     options if the handler says we should. Note that 'h' might be NULL! */
  307|  2.81k|  result = Curl_parse_login_details(login, ptr - login - 1,
  308|  2.81k|                                    &userp, &passwdp,
  309|  2.81k|                                    (h && (h->flags & PROTOPT_URLOPTIONS)) ?
  ------------------
  |  |  224|  2.81k|#define PROTOPT_URLOPTIONS (1 << 10) /* allow options part in the userinfo
  ------------------
  |  Branch (309:38): [True: 2.81k, False: 4]
  |  Branch (309:43): [True: 0, False: 2.81k]
  ------------------
  310|  2.81k|                                    &optionsp : NULL);
  311|  2.81k|  if(result) {
  ------------------
  |  Branch (311:6): [True: 0, False: 2.81k]
  ------------------
  312|       |    /* the only possible error from Curl_parse_login_details is out of
  313|       |       memory: */
  314|      0|    ures = CURLUE_OUT_OF_MEMORY;
  315|      0|    goto out;
  316|      0|  }
  317|       |
  318|  2.81k|  if(userp) {
  ------------------
  |  Branch (318:6): [True: 2.81k, False: 0]
  ------------------
  319|  2.81k|    if(flags & CURLU_DISALLOW_USER) {
  ------------------
  |  |   93|  2.81k|#define CURLU_DISALLOW_USER (1 << 5)      /* no user+password allowed */
  ------------------
  |  Branch (319:8): [True: 0, False: 2.81k]
  ------------------
  320|       |      /* Option DISALLOW_USER is set and URL contains username. */
  321|      0|      ures = CURLUE_USER_NOT_ALLOWED;
  322|      0|      goto out;
  323|      0|    }
  324|  2.81k|    curlx_free(u->user);
  ------------------
  |  | 1482|  2.81k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  325|  2.81k|    u->user = userp;
  326|  2.81k|  }
  327|       |
  328|  2.81k|  if(passwdp) {
  ------------------
  |  Branch (328:6): [True: 1.12k, False: 1.69k]
  ------------------
  329|  1.12k|    curlx_strzero(u->password);
  330|  1.12k|    curlx_free(u->password);
  ------------------
  |  | 1482|  1.12k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  331|  1.12k|    u->password = passwdp;
  332|  1.12k|  }
  333|       |
  334|  2.81k|  if(optionsp) {
  ------------------
  |  Branch (334:6): [True: 0, False: 2.81k]
  ------------------
  335|      0|    curlx_free(u->options);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  336|      0|    u->options = optionsp;
  337|      0|  }
  338|       |
  339|       |  /* the hostname starts at this offset */
  340|  2.81k|  *hostname_offset = ptr - login;
  341|  2.81k|  return CURLUE_OK;
  342|       |
  343|  23.3k|out:
  344|       |
  345|  23.3k|  curlx_free(userp);
  ------------------
  |  | 1482|  23.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  346|  23.3k|  curlx_strzero(passwdp);
  347|  23.3k|  curlx_free(passwdp);
  ------------------
  |  | 1482|  23.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  348|  23.3k|  curlx_free(optionsp);
  ------------------
  |  | 1482|  23.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  349|  23.3k|  curlx_safefree(u->user);
  ------------------
  |  | 1340|  23.3k|  do {                      \
  |  | 1341|  23.3k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  23.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  23.3k|    (ptr) = NULL;           \
  |  | 1343|  23.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 23.3k]
  |  |  ------------------
  ------------------
  350|  23.3k|  curlx_strzero(u->password);
  351|  23.3k|  curlx_safefree(u->password);
  ------------------
  |  | 1340|  23.3k|  do {                      \
  |  | 1341|  23.3k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  23.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  23.3k|    (ptr) = NULL;           \
  |  | 1343|  23.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 23.3k]
  |  |  ------------------
  ------------------
  352|  23.3k|  curlx_safefree(u->options);
  ------------------
  |  | 1340|  23.3k|  do {                      \
  |  | 1341|  23.3k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  23.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  23.3k|    (ptr) = NULL;           \
  |  | 1343|  23.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 23.3k]
  |  |  ------------------
  ------------------
  353|       |
  354|  23.3k|  return ures;
  355|  2.81k|}
parse_port:
  362|  26.1k|{
  363|  26.1k|  const char *portptr;
  364|  26.1k|  const char *hostname = curlx_dyn_ptr(host);
  365|       |  /*
  366|       |   * Find the end of an IPv6 address on the ']' ending bracket.
  367|       |   */
  368|  26.1k|  u->portnum = 0;
  369|  26.1k|  u->port_present = FALSE;
  ------------------
  |  | 1056|  26.1k|#define FALSE false
  ------------------
  370|  26.1k|  if(hostname[0] == '[') {
  ------------------
  |  Branch (370:6): [True: 3.58k, False: 22.5k]
  ------------------
  371|  3.58k|    portptr = strchr(hostname, ']');
  372|  3.58k|    if(!portptr)
  ------------------
  |  Branch (372:8): [True: 11, False: 3.57k]
  ------------------
  373|     11|      return CURLUE_BAD_IPV6;
  374|  3.57k|    portptr++;
  375|       |    /* this is a RFC2732-style specified IP-address */
  376|  3.57k|    if(*portptr) {
  ------------------
  |  Branch (376:8): [True: 124, False: 3.45k]
  ------------------
  377|    124|      if(*portptr != ':')
  ------------------
  |  Branch (377:10): [True: 2, False: 122]
  ------------------
  378|      2|        return CURLUE_BAD_PORT_NUMBER;
  379|    124|    }
  380|  3.45k|    else
  381|  3.45k|      portptr = NULL;
  382|  3.57k|  }
  383|  22.5k|  else
  384|  22.5k|    portptr = strchr(hostname, ':');
  385|       |
  386|  26.1k|  if(portptr) {
  ------------------
  |  Branch (386:6): [True: 1.09k, False: 25.0k]
  ------------------
  387|  1.09k|    curl_off_t port;
  388|  1.09k|    size_t keep = portptr - hostname;
  389|  1.09k|    int rc;
  390|       |
  391|       |    /* Browser behavior adaptation. If there is a colon with no digits after,
  392|       |       cut off the name there which makes us ignore the colon and use the
  393|       |       default port. Firefox, Chrome and Safari all do that.
  394|       |
  395|       |       Do not do it if the URL has no scheme, to make something that looks like
  396|       |       a scheme not work! */
  397|  1.09k|    curlx_dyn_setlen(host, keep);
  398|  1.09k|    portptr++;
  399|  1.09k|    if(!*portptr)
  ------------------
  |  Branch (399:8): [True: 46, False: 1.05k]
  ------------------
  400|     46|      return has_scheme ? CURLUE_OK : CURLUE_BAD_PORT_NUMBER;
  ------------------
  |  Branch (400:14): [True: 46, False: 0]
  ------------------
  401|  1.05k|    if(*portptr == '\\')
  ------------------
  |  Branch (401:8): [True: 1, False: 1.05k]
  ------------------
  402|      1|      return CURLUE_BACKSLASH;
  403|  1.05k|    rc = curlx_str_number(&portptr, &port, 0xffff);
  404|  1.05k|    if(rc)
  ------------------
  |  Branch (404:8): [True: 9, False: 1.04k]
  ------------------
  405|      9|      return CURLUE_BAD_PORT_NUMBER;
  406|  1.04k|    else if(*portptr == '\\')
  ------------------
  |  Branch (406:13): [True: 1, False: 1.04k]
  ------------------
  407|      1|      return CURLUE_BACKSLASH;
  408|  1.04k|    else if(*portptr)
  ------------------
  |  Branch (408:13): [True: 3, False: 1.03k]
  ------------------
  409|      3|      return CURLUE_BAD_PORT_NUMBER;
  410|       |
  411|  1.03k|    u->portnum = (uint16_t)port;
  412|  1.03k|    u->port_present = TRUE;
  ------------------
  |  | 1053|  1.03k|#define TRUE true
  ------------------
  413|  1.03k|  }
  414|       |
  415|  26.0k|  return CURLUE_OK;
  416|  26.1k|}
ipv6_parse:
  427|  3.57k|{
  428|  3.57k|  size_t len;
  429|  3.57k|  DEBUGASSERT(*hostname == '[');
  ------------------
  |  | 1083|  3.57k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (429:3): [True: 0, False: 3.57k]
  |  Branch (429:3): [True: 3.57k, False: 0]
  ------------------
  430|  3.57k|  if(hlen < 4) /* '[::]' is the shortest possible valid string */
  ------------------
  |  Branch (430:6): [True: 2, False: 3.57k]
  ------------------
  431|      2|    return CURLUE_BAD_IPV6;
  432|  3.57k|  hostname++;
  433|  3.57k|  hlen -= 2;
  434|       |
  435|       |  /* only valid IPv6 letters are ok */
  436|  3.57k|  len = strspn(hostname, "0123456789abcdefABCDEF:.");
  437|       |
  438|  3.57k|  if(hlen != len) {
  ------------------
  |  Branch (438:6): [True: 1.37k, False: 2.19k]
  ------------------
  439|  1.37k|    hlen = len;
  440|  1.37k|    if(hostname[len] == '%') {
  ------------------
  |  Branch (440:8): [True: 1.37k, False: 3]
  ------------------
  441|       |      /* this could now be '%[zone id]' */
  442|  1.37k|      char zoneid[MAX_ZONEID_LEN];
  443|  1.37k|      int i = 0;
  444|  1.37k|      char *h = &hostname[len + 1];
  445|       |      /* pass '25' if present and is a URL encoded percent sign */
  446|  1.37k|      if(!strncmp(h, "25", 2) && h[2] && (h[2] != ']'))
  ------------------
  |  Branch (446:10): [True: 2, False: 1.37k]
  |  Branch (446:34): [True: 2, False: 0]
  |  Branch (446:42): [True: 1, False: 1]
  ------------------
  447|      1|        h += 2;
  448|  8.27k|      while(*h && (*h != ']') && (i < (MAX_ZONEID_LEN - 1)))
  ------------------
  |  |   56|  6.90k|#define MAX_ZONEID_LEN 16
  ------------------
  |  Branch (448:13): [True: 8.27k, False: 0]
  |  Branch (448:19): [True: 6.90k, False: 1.37k]
  |  Branch (448:34): [True: 6.90k, False: 2]
  ------------------
  449|  6.90k|        zoneid[i++] = *h++;
  450|  1.37k|      if(!i || (']' != *h))
  ------------------
  |  Branch (450:10): [True: 1, False: 1.37k]
  |  Branch (450:16): [True: 2, False: 1.37k]
  ------------------
  451|      3|        return CURLUE_BAD_IPV6;
  452|  1.37k|      zoneid[i] = 0;
  453|  1.37k|      u->zoneid = curlx_strdup(zoneid);
  ------------------
  |  | 1476|  1.37k|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  454|  1.37k|      if(!u->zoneid)
  ------------------
  |  Branch (454:10): [True: 0, False: 1.37k]
  ------------------
  455|      0|        return CURLUE_OUT_OF_MEMORY;
  456|  1.37k|      hostname[len] = ']'; /* insert end bracket */
  457|  1.37k|      hostname[len + 1] = 0; /* terminate the hostname */
  458|  1.37k|    }
  459|      3|    else
  460|      3|      return CURLUE_BAD_IPV6;
  461|       |    /* hostname is fine */
  462|  1.37k|  }
  463|       |
  464|       |  /* Normalize the IPv6 address */
  465|  3.56k|  {
  466|  3.56k|    char dest[16]; /* fits a binary IPv6 address */
  467|  3.56k|    hostname[hlen] = 0; /* end the address there */
  468|  3.56k|    if(curlx_inet_pton(AF_INET6, hostname, dest) != 1)
  ------------------
  |  Branch (468:8): [True: 24, False: 3.54k]
  ------------------
  469|     24|      return CURLUE_BAD_IPV6;
  470|  3.54k|    if(curlx_inet_ntop(AF_INET6, dest, hostname, hlen + 1)) {
  ------------------
  |  Branch (470:8): [True: 2.59k, False: 951]
  ------------------
  471|  2.59k|      hlen = strlen(hostname); /* might be shorter now */
  472|  2.59k|      hostname[hlen + 1] = 0;
  473|  2.59k|    }
  474|  3.54k|    hostname[hlen] = ']'; /* restore ending bracket */
  475|  3.54k|  }
  476|      0|  return CURLUE_OK;
  477|  3.56k|}
ipv4_normalize:
  525|  26.0k|{
  526|  26.0k|  bool done = FALSE;
  ------------------
  |  | 1056|  26.0k|#define FALSE false
  ------------------
  527|  26.0k|  int n = 0;
  528|  26.0k|  const char *c = curlx_dyn_ptr(host);
  529|  26.0k|  unsigned int parts[4] = { 0, 0, 0, 0 };
  530|  26.0k|  CURLcode result = CURLE_OK;
  531|       |
  532|  26.0k|  if(*c == '[')
  ------------------
  |  Branch (532:6): [True: 3.57k, False: 22.5k]
  ------------------
  533|  3.57k|    return HOST_IPV6;
  ------------------
  |  |   50|  3.57k|#define HOST_IPV6    3
  ------------------
  534|       |
  535|  42.7k|  while(!done) {
  ------------------
  |  Branch (535:9): [True: 36.5k, False: 6.18k]
  ------------------
  536|  36.5k|    int rc;
  537|  36.5k|    curl_off_t l;
  538|  36.5k|    if(*c == '0') {
  ------------------
  |  Branch (538:8): [True: 10.7k, False: 25.8k]
  ------------------
  539|  10.7k|      if(Curl_raw_tolower(c[1]) == 'x') {
  ------------------
  |  Branch (539:10): [True: 212, False: 10.5k]
  ------------------
  540|    212|        c += 2; /* skip the prefix */
  541|    212|        rc = curlx_str_hex(&c, &l, UINT_MAX);
  542|    212|        if(rc)
  ------------------
  |  Branch (542:12): [True: 122, False: 90]
  ------------------
  543|    122|          return HOST_NAME;
  ------------------
  |  |   48|    122|#define HOST_NAME    1
  ------------------
  544|    212|      }
  545|  10.5k|      else
  546|  10.5k|        rc = curlx_str_octal(&c, &l, UINT_MAX);
  547|  10.7k|    }
  548|  25.8k|    else
  549|  25.8k|      rc = curlx_str_number(&c, &l, UINT_MAX);
  550|       |
  551|  36.4k|    if(rc) {
  ------------------
  |  Branch (551:8): [True: 14.7k, False: 21.6k]
  ------------------
  552|  14.7k|      if(!n || (rc != STRE_NO_NUM) || *c)
  ------------------
  |  |   36|    608|#define STRE_NO_NUM   8
  ------------------
  |  Branch (552:10): [True: 14.1k, False: 608]
  |  Branch (552:16): [True: 75, False: 533]
  |  Branch (552:39): [True: 282, False: 251]
  ------------------
  553|  14.5k|        return HOST_NAME;
  ------------------
  |  |   48|  14.5k|#define HOST_NAME    1
  ------------------
  554|    251|      n--;
  555|    251|    }
  556|  21.6k|    else
  557|  21.6k|      parts[n] = (unsigned int)l;
  558|       |
  559|  21.9k|    switch(*c) {
  560|  14.5k|    case '.':
  ------------------
  |  Branch (560:5): [True: 14.5k, False: 7.42k]
  ------------------
  561|  14.5k|      if(n == 3) {
  ------------------
  |  Branch (561:10): [True: 452, False: 14.0k]
  ------------------
  562|    452|        if(c[1])
  ------------------
  |  Branch (562:12): [True: 336, False: 116]
  ------------------
  563|       |          /* something follows this dot */
  564|    336|          return HOST_NAME;
  ------------------
  |  |   48|    336|#define HOST_NAME    1
  ------------------
  565|    116|        done = TRUE;
  ------------------
  |  | 1053|    116|#define TRUE true
  ------------------
  566|    116|      }
  567|  14.0k|      else {
  568|  14.0k|        n++;
  569|  14.0k|        c++;
  570|  14.0k|      }
  571|  14.1k|      break;
  572|       |
  573|  14.1k|    case '\0':
  ------------------
  |  Branch (573:5): [True: 6.06k, False: 15.8k]
  ------------------
  574|  6.06k|      done = TRUE;
  ------------------
  |  | 1053|  6.06k|#define TRUE true
  ------------------
  575|  6.06k|      break;
  576|       |
  577|  1.36k|    default:
  ------------------
  |  Branch (577:5): [True: 1.36k, False: 20.5k]
  ------------------
  578|  1.36k|      return HOST_NAME;
  ------------------
  |  |   48|  1.36k|#define HOST_NAME    1
  ------------------
  579|  21.9k|    }
  580|  21.9k|  }
  581|       |
  582|  6.18k|  switch(n) {
  ------------------
  |  Branch (582:10): [True: 6.18k, False: 0]
  ------------------
  583|  1.73k|  case 0: /* a -- 32 bits */
  ------------------
  |  Branch (583:3): [True: 1.73k, False: 4.44k]
  ------------------
  584|  1.73k|    curlx_dyn_reset(host);
  585|       |
  586|  1.73k|    result = curlx_dyn_addf(host, "%u.%u.%u.%u",
  587|  1.73k|                            (parts[0] >> 24),
  588|  1.73k|                            ((parts[0] >> 16) & 0xff),
  589|  1.73k|                            ((parts[0] >> 8) & 0xff),
  590|  1.73k|                            (parts[0] & 0xff));
  591|  1.73k|    break;
  592|    403|  case 1: /* a.b -- 8.24 bits */
  ------------------
  |  Branch (592:3): [True: 403, False: 5.77k]
  ------------------
  593|    403|    if((parts[0] > 0xff) || (parts[1] > 0xffffff))
  ------------------
  |  Branch (593:8): [True: 239, False: 164]
  |  Branch (593:29): [True: 69, False: 95]
  ------------------
  594|    308|      return HOST_NAME;
  ------------------
  |  |   48|    308|#define HOST_NAME    1
  ------------------
  595|     95|    curlx_dyn_reset(host);
  596|     95|    result = curlx_dyn_addf(host, "%u.%u.%u.%u",
  597|     95|                            parts[0],
  598|     95|                            ((parts[1] >> 16) & 0xff),
  599|     95|                            ((parts[1] >> 8) & 0xff),
  600|     95|                            (parts[1] & 0xff));
  601|     95|    break;
  602|    450|  case 2: /* a.b.c -- 8.8.16 bits */
  ------------------
  |  Branch (602:3): [True: 450, False: 5.73k]
  ------------------
  603|    450|    if((parts[0] > 0xff) || (parts[1] > 0xff) || (parts[2] > 0xffff))
  ------------------
  |  Branch (603:8): [True: 89, False: 361]
  |  Branch (603:29): [True: 170, False: 191]
  |  Branch (603:50): [True: 78, False: 113]
  ------------------
  604|    337|      return HOST_NAME;
  ------------------
  |  |   48|    337|#define HOST_NAME    1
  ------------------
  605|    113|    curlx_dyn_reset(host);
  606|    113|    result = curlx_dyn_addf(host, "%u.%u.%u.%u",
  607|    113|                            parts[0],
  608|    113|                            parts[1],
  609|    113|                            ((parts[2] >> 8) & 0xff),
  610|    113|                            (parts[2] & 0xff));
  611|    113|    break;
  612|  3.59k|  case 3: /* a.b.c.d -- 8.8.8.8 bits */
  ------------------
  |  Branch (612:3): [True: 3.59k, False: 2.58k]
  ------------------
  613|  3.59k|    if((parts[0] > 0xff) || (parts[1] > 0xff) || (parts[2] > 0xff) ||
  ------------------
  |  Branch (613:8): [True: 78, False: 3.51k]
  |  Branch (613:29): [True: 68, False: 3.45k]
  |  Branch (613:50): [True: 150, False: 3.30k]
  ------------------
  614|  3.30k|       (parts[3] > 0xff))
  ------------------
  |  Branch (614:8): [True: 81, False: 3.21k]
  ------------------
  615|    377|      return HOST_NAME;
  ------------------
  |  |   48|    377|#define HOST_NAME    1
  ------------------
  616|  3.21k|    curlx_dyn_reset(host);
  617|  3.21k|    result = curlx_dyn_addf(host, "%u.%u.%u.%u",
  618|  3.21k|                            parts[0],
  619|  3.21k|                            parts[1],
  620|  3.21k|                            parts[2],
  621|  3.21k|                            parts[3]);
  622|  3.21k|    break;
  623|  6.18k|  }
  624|  5.16k|  if(result)
  ------------------
  |  Branch (624:6): [True: 0, False: 5.16k]
  ------------------
  625|      0|    return HOST_ERROR;
  ------------------
  |  |   47|      0|#define HOST_ERROR   (-1) /* out of memory */
  ------------------
  626|  5.16k|  return HOST_IPV4;
  ------------------
  |  |   49|  5.16k|#define HOST_IPV4    2
  ------------------
  627|  5.16k|}
dedotdotify:
  794|  15.1k|{
  795|  15.1k|  struct dynbuf out;
  796|  15.1k|  CURLcode result = CURLE_OK;
  797|       |
  798|       |  /* variables for leading dot checks */
  799|  15.1k|  const char *dinput = input;
  800|  15.1k|  size_t dlen = clen;
  801|       |
  802|  15.1k|  *outp = NULL;
  803|  15.1k|  if(!needs_dedotdot(input, clen))
  ------------------
  |  Branch (803:6): [True: 14.9k, False: 286]
  ------------------
  804|  14.9k|    return 0;
  805|       |
  806|    286|  curlx_dyn_init(&out, clen + 1);
  807|       |
  808|       |  /* if the input buffer begins with a prefix of "../" or "./", then remove
  809|       |     that prefix from the input buffer; otherwise, */
  810|    286|  if(is_dot(&dinput, &dlen)) {
  ------------------
  |  Branch (810:6): [True: 0, False: 286]
  ------------------
  811|      0|    if(ISSLASH(*dinput)) {
  ------------------
  |  |  751|      0|#define ISSLASH(x) ((x) == '/')
  |  |  ------------------
  |  |  |  Branch (751:20): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  812|       |      /* one dot followed by a slash */
  813|      0|      input = dinput + 1;
  814|      0|      clen = dlen - 1;
  815|      0|    }
  816|       |
  817|       |    /* if the input buffer consists only of "." or "..", then remove
  818|       |       that from the input buffer; otherwise, */
  819|      0|    else if(is_dot(&dinput, &dlen)) {
  ------------------
  |  Branch (819:13): [True: 0, False: 0]
  ------------------
  820|      0|      if(!dlen)
  ------------------
  |  Branch (820:10): [True: 0, False: 0]
  ------------------
  821|       |        /* .. [end] */
  822|      0|        goto end;
  823|      0|      else if(ISSLASH(*dinput)) {
  ------------------
  |  |  751|      0|#define ISSLASH(x) ((x) == '/')
  |  |  ------------------
  |  |  |  Branch (751:20): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  824|       |        /* ../ */
  825|      0|        input = dinput + 1;
  826|      0|        clen = dlen - 1;
  827|      0|      }
  828|      0|    }
  829|      0|  }
  830|       |
  831|  12.5k|  while(clen && !result) { /* until end of path content */
  ------------------
  |  Branch (831:9): [True: 12.2k, False: 259]
  |  Branch (831:17): [True: 12.2k, False: 0]
  ------------------
  832|  12.2k|    if(ISSLASH(*input)) {
  ------------------
  |  |  751|  12.2k|#define ISSLASH(x) ((x) == '/')
  |  |  ------------------
  |  |  |  Branch (751:20): [True: 3.10k, False: 9.18k]
  |  |  ------------------
  ------------------
  833|  3.10k|      const char *p = &input[1];
  834|  3.10k|      size_t blen = clen - 1;
  835|       |      /* if the input buffer begins with a prefix of "/./" or "/.", where "."
  836|       |         is a complete path segment, then replace that prefix with "/" in the
  837|       |         input buffer; otherwise, */
  838|  3.10k|      if(is_dot(&p, &blen)) {
  ------------------
  |  Branch (838:10): [True: 2.20k, False: 907]
  ------------------
  839|  2.20k|        if(!blen) { /* /. */
  ------------------
  |  Branch (839:12): [True: 25, False: 2.17k]
  ------------------
  840|     25|          result = curlx_dyn_addn(&out, "/", 1);
  841|     25|          break;
  842|     25|        }
  843|  2.17k|        else if(ISSLASH(*p)) { /* /./ */
  ------------------
  |  |  751|  2.17k|#define ISSLASH(x) ((x) == '/')
  |  |  ------------------
  |  |  |  Branch (751:20): [True: 623, False: 1.55k]
  |  |  ------------------
  ------------------
  844|    623|          input = p;
  845|    623|          clen = blen;
  846|    623|          continue;
  847|    623|        }
  848|       |
  849|       |        /* if the input buffer begins with a prefix of "/../" or "/..", where
  850|       |           ".." is a complete path segment, then replace that prefix with "/"
  851|       |           in the input buffer and remove the last segment and its preceding
  852|       |           "/" (if any) from the output buffer; otherwise, */
  853|  1.55k|        else if(is_dot(&p, &blen) && (ISSLASH(*p) || !blen)) {
  ------------------
  |  |  751|  2.31k|#define ISSLASH(x) ((x) == '/')
  |  |  ------------------
  |  |  |  Branch (751:20): [True: 913, False: 242]
  |  |  ------------------
  ------------------
  |  Branch (853:17): [True: 1.15k, False: 398]
  |  Branch (853:54): [True: 2, False: 240]
  ------------------
  854|       |          /* remove the last segment from the output buffer */
  855|    915|          size_t len = curlx_dyn_len(&out);
  856|    915|          if(len) {
  ------------------
  |  Branch (856:14): [True: 450, False: 465]
  ------------------
  857|    450|            const char *ptr = curlx_dyn_ptr(&out);
  858|    450|            const char *last = memrchr(ptr, '/', len);
  859|    450|            if(last)
  ------------------
  |  Branch (859:16): [True: 450, False: 0]
  ------------------
  860|       |              /* trim the output at the slash */
  861|    450|              curlx_dyn_setlen(&out, last - ptr);
  862|    450|          }
  863|       |
  864|    915|          if(blen) { /* /../ */
  ------------------
  |  Branch (864:14): [True: 913, False: 2]
  ------------------
  865|    913|            input = p;
  866|    913|            clen = blen;
  867|    913|            continue;
  868|    913|          }
  869|      2|          result = curlx_dyn_addn(&out, "/", 1);
  870|      2|          break;
  871|    915|        }
  872|  2.20k|      }
  873|  3.10k|    }
  874|       |
  875|       |    /* move the first path segment in the input buffer to the end of the
  876|       |       output buffer, including the initial "/" character (if any) and any
  877|       |       subsequent characters up to, but not including, the next "/" character
  878|       |       or the end of the input buffer. */
  879|       |
  880|  10.7k|    result = curlx_dyn_addn(&out, input, 1);
  881|  10.7k|    input++;
  882|  10.7k|    clen--;
  883|  10.7k|  }
  884|    286|end:
  885|    286|  if(!result) {
  ------------------
  |  Branch (885:6): [True: 286, False: 0]
  ------------------
  886|    286|    if(curlx_dyn_len(&out))
  ------------------
  |  Branch (886:8): [True: 286, False: 0]
  ------------------
  887|    286|      *outp = curlx_dyn_ptr(&out);
  888|      0|    else {
  889|      0|      *outp = curlx_strdup("");
  ------------------
  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  890|      0|      if(!*outp)
  ------------------
  |  Branch (890:10): [True: 0, False: 0]
  ------------------
  891|      0|        return 1;
  892|      0|    }
  893|    286|  }
  894|    286|  return result ? 1 : 0; /* success */
  ------------------
  |  Branch (894:10): [True: 0, False: 286]
  ------------------
  895|    286|}
parse_file:
  904|     43|{
  905|     43|  const char *path;
  906|     43|  size_t pathlen;
  907|       |
  908|     43|  *pathp = NULL;
  909|     43|  *pathlenp = 0;
  910|     43|  if(urllen <= 6)
  ------------------
  |  Branch (910:6): [True: 1, False: 42]
  ------------------
  911|       |    /* file:/ is not enough to actually be a complete file: URL */
  912|      1|    return CURLUE_BAD_FILE_URL;
  913|       |
  914|       |  /* path has been allocated large enough to hold this */
  915|     42|  path = &url[5];
  916|     42|  pathlen = urllen - 5;
  917|       |
  918|       |  /* RFC 8089: file-hier-part = ( "//" auth-path ) / local-path, where
  919|       |     local-path also starts with a "/". So reject anything that does not
  920|       |     start with at least one "/" */
  921|     42|  if(path[0] != '/')
  ------------------
  |  Branch (921:6): [True: 1, False: 41]
  ------------------
  922|      1|    return CURLUE_BAD_FILE_URL;
  923|       |
  924|       |  /* Extra handling URLs with an authority component (i.e. that start with
  925|       |   * "file://")
  926|       |   *
  927|       |   * We allow omitted hostname (e.g. file:/<path>) -- valid according to
  928|       |   * RFC 8089, but not the (current) WHAT-WG URL spec.
  929|       |   */
  930|     41|  if(path[1] == '/') {
  ------------------
  |  Branch (930:6): [True: 30, False: 11]
  ------------------
  931|       |    /* swallow the two slashes */
  932|     30|    const char *ptr = &path[2];
  933|       |
  934|       |    /*
  935|       |     * According to RFC 8089, a file: URL can be reliably dereferenced if:
  936|       |     *
  937|       |     *  o it has no/blank hostname, or
  938|       |     *
  939|       |     *  o the hostname matches "localhost" (case-insensitively), or
  940|       |     *
  941|       |     *  o the hostname is a FQDN that resolves to this machine, or
  942|       |     *
  943|       |     * For brevity, we only consider URLs with empty, "localhost", or
  944|       |     * "127.0.0.1" hostnames as local, otherwise as an UNC String.
  945|       |     *
  946|       |     * Additionally, there is an exception for URLs with a Windows drive
  947|       |     * letter in the authority (which was accidentally omitted from RFC 8089
  948|       |     * Appendix E, but believe me, it was meant to be there. --MK)
  949|       |     */
  950|     30|    if(ptr[0] != '/' && !STARTS_WITH_URL_DRIVE_PREFIX(ptr)) {
  ------------------
  |  |   49|     19|  ((('a' <= (str)[0] && (str)[0] <= 'z') ||                \
  |  |  ------------------
  |  |  |  Branch (49:6): [True: 4, False: 15]
  |  |  |  Branch (49:25): [True: 4, False: 0]
  |  |  ------------------
  |  |   50|     19|    ('A' <= (str)[0] && (str)[0] <= 'Z')) &&               \
  |  |  ------------------
  |  |  |  Branch (50:6): [True: 2, False: 13]
  |  |  |  Branch (50:25): [True: 1, False: 1]
  |  |  ------------------
  |  |   51|     19|   ((str)[1] == ':' || (str)[1] == '|') &&                 \
  |  |  ------------------
  |  |  |  Branch (51:5): [True: 1, False: 4]
  |  |  |  Branch (51:24): [True: 3, False: 1]
  |  |  ------------------
  |  |   52|     19|   ((str)[2] == '/' || (str)[2] == '\\' || (str)[2] == 0))
  |  |  ------------------
  |  |  |  Branch (52:5): [True: 1, False: 3]
  |  |  |  Branch (52:24): [True: 1, False: 2]
  |  |  |  Branch (52:44): [True: 1, False: 1]
  |  |  ------------------
  ------------------
  |  Branch (950:8): [True: 19, False: 11]
  ------------------
  951|       |      /* the URL includes a hostname, it must match "localhost" or
  952|       |         "127.0.0.1" to be valid */
  953|     16|      if(checkprefix("localhost/", ptr) ||
  ------------------
  |  |   33|     32|#define checkprefix(a, b) curl_strnequal(b, STRCONST(a))
  |  |  ------------------
  |  |  |  | 1305|     16|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1300|     16|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (33:27): [True: 0, False: 16]
  |  |  ------------------
  ------------------
  954|     16|         checkprefix("127.0.0.1/", ptr)) {
  ------------------
  |  |   33|     16|#define checkprefix(a, b) curl_strnequal(b, STRCONST(a))
  |  |  ------------------
  |  |  |  | 1305|     16|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1300|     16|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (33:27): [True: 11, False: 5]
  |  |  ------------------
  ------------------
  955|     11|        ptr += 9; /* now points to the slash after the host */
  956|     11|      }
  957|      5|      else
  958|       |        /* Invalid file://hostname/, expected localhost or 127.0.0.1 or
  959|       |           none */
  960|      5|        return CURLUE_BAD_FILE_URL;
  961|     16|    }
  962|       |
  963|     25|    path = ptr;
  964|     25|    pathlen = urllen - (ptr - url);
  965|     25|  }
  966|       |
  967|     36|#if !defined(_WIN32) && !defined(MSDOS) && !defined(__CYGWIN__)
  968|       |  /* Do not allow Windows drive letters when not in Windows.
  969|       |   * This catches both "file:/c:" and "file:c:" */
  970|     36|  if(('/' == path[0] && STARTS_WITH_URL_DRIVE_PREFIX(&path[1])) ||
  ------------------
  |  |   49|     33|  ((('a' <= (str)[0] && (str)[0] <= 'z') ||                \
  |  |  ------------------
  |  |  |  Branch (49:6): [True: 16, False: 17]
  |  |  |  Branch (49:25): [True: 16, False: 0]
  |  |  ------------------
  |  |   50|     33|    ('A' <= (str)[0] && (str)[0] <= 'Z')) &&               \
  |  |  ------------------
  |  |  |  Branch (50:6): [True: 6, False: 11]
  |  |  |  Branch (50:25): [True: 3, False: 3]
  |  |  ------------------
  |  |   51|     33|   ((str)[1] == ':' || (str)[1] == '|') &&                 \
  |  |  ------------------
  |  |  |  Branch (51:5): [True: 10, False: 9]
  |  |  |  Branch (51:24): [True: 3, False: 6]
  |  |  ------------------
  |  |   52|     33|   ((str)[2] == '/' || (str)[2] == '\\' || (str)[2] == 0))
  |  |  ------------------
  |  |  |  Branch (52:5): [True: 1, False: 12]
  |  |  |  Branch (52:24): [True: 1, False: 11]
  |  |  |  Branch (52:44): [True: 1, False: 10]
  |  |  ------------------
  ------------------
  |  Branch (970:7): [True: 33, False: 3]
  ------------------
  971|     33|     STARTS_WITH_URL_DRIVE_PREFIX(path)) {
  ------------------
  |  |   49|     33|  ((('a' <= (str)[0] && (str)[0] <= 'z') ||                \
  |  |  ------------------
  |  |  |  Branch (49:6): [True: 3, False: 30]
  |  |  |  Branch (49:25): [True: 3, False: 0]
  |  |  ------------------
  |  |   50|     33|    ('A' <= (str)[0] && (str)[0] <= 'Z')) &&               \
  |  |  ------------------
  |  |  |  Branch (50:6): [True: 0, False: 30]
  |  |  |  Branch (50:25): [True: 0, False: 0]
  |  |  ------------------
  |  |   51|     33|   ((str)[1] == ':' || (str)[1] == '|') &&                 \
  |  |  ------------------
  |  |  |  Branch (51:5): [True: 1, False: 2]
  |  |  |  Branch (51:24): [True: 2, False: 0]
  |  |  ------------------
  |  |   52|     33|   ((str)[2] == '/' || (str)[2] == '\\' || (str)[2] == 0))
  |  |  ------------------
  |  |  |  Branch (52:5): [True: 1, False: 2]
  |  |  |  Branch (52:24): [True: 1, False: 1]
  |  |  |  Branch (52:44): [True: 1, False: 0]
  |  |  ------------------
  ------------------
  972|       |    /* File drive letters are only accepted in MS-DOS/Windows */
  973|      6|    return CURLUE_BAD_FILE_URL;
  974|      6|  }
  975|       |#else
  976|       |  /* If the path starts with a slash and a drive letter, ditch the slash */
  977|       |  if('/' == path[0] && STARTS_WITH_URL_DRIVE_PREFIX(&path[1])) {
  978|       |    /* This cannot be done with strcpy, as the memory chunks overlap! */
  979|       |    path++;
  980|       |    pathlen--;
  981|       |  }
  982|       |#endif
  983|     30|  u->scheme = curlx_strdup("file");
  ------------------
  |  | 1476|     30|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  984|     30|  if(!u->scheme)
  ------------------
  |  Branch (984:6): [True: 0, False: 30]
  ------------------
  985|      0|    return CURLUE_OUT_OF_MEMORY;
  986|       |
  987|     30|  *pathp = path;
  988|     30|  *pathlenp = pathlen;
  989|     30|  return CURLUE_OK;
  990|     30|}
curl_url:
 1358|  21.0k|{
 1359|  21.0k|  return curlx_calloc(1, sizeof(struct Curl_URL));
  ------------------
  |  | 1479|  21.0k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
 1360|  21.0k|}
curl_url_cleanup:
 1363|  45.3k|{
 1364|  45.3k|  if(u) {
  ------------------
  |  Branch (1364:6): [True: 21.0k, False: 24.3k]
  ------------------
 1365|  21.0k|    free_urlhandle(u);
 1366|  21.0k|    curlx_free(u);
  ------------------
  |  | 1482|  21.0k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1367|  21.0k|  }
 1368|  45.3k|}
curl_url_get:
 1625|   140k|{
 1626|   140k|  const char *ptr;
 1627|   140k|  CURLUcode ifmissing = CURLUE_UNKNOWN_PART;
 1628|   140k|  char portbuf[7];
 1629|   140k|  bool plusdecode = FALSE;
  ------------------
  |  | 1056|   140k|#define FALSE false
  ------------------
 1630|   140k|  if(!u)
  ------------------
  |  Branch (1630:6): [True: 0, False: 140k]
  ------------------
 1631|      0|    return CURLUE_BAD_HANDLE;
 1632|   140k|  if(!part)
  ------------------
  |  Branch (1632:6): [True: 0, False: 140k]
  ------------------
 1633|      0|    return CURLUE_BAD_PARTPOINTER;
 1634|   140k|  *part = NULL;
 1635|       |
 1636|   140k|  switch(what) {
 1637|  14.4k|  case CURLUPART_SCHEME:
  ------------------
  |  Branch (1637:3): [True: 14.4k, False: 125k]
  ------------------
 1638|  14.4k|    ptr = u->scheme;
 1639|  14.4k|    ifmissing = CURLUE_NO_SCHEME;
 1640|  14.4k|    flags &= ~U_CURLU_URLDECODE; /* never for schemes */
  ------------------
  |  |   63|  14.4k|#define U_CURLU_URLDECODE  (unsigned int)CURLU_URLDECODE
  |  |  ------------------
  |  |  |  |   94|  14.4k|#define CURLU_URLDECODE (1 << 6)          /* URL decode on get */
  |  |  ------------------
  ------------------
 1641|  14.4k|    if((flags & CURLU_NO_GUESS_SCHEME) && u->guessed_scheme)
  ------------------
  |  |  106|  14.4k|#define CURLU_NO_GUESS_SCHEME (1 << 15)   /* for get, do not accept a guess */
  ------------------
  |  Branch (1641:8): [True: 0, False: 14.4k]
  |  Branch (1641:43): [True: 0, False: 0]
  ------------------
 1642|      0|      return CURLUE_NO_SCHEME;
 1643|  14.4k|    break;
 1644|  14.4k|  case CURLUPART_USER:
  ------------------
  |  Branch (1644:3): [True: 14.3k, False: 125k]
  ------------------
 1645|  14.3k|    ptr = u->user;
 1646|  14.3k|    ifmissing = CURLUE_NO_USER;
 1647|  14.3k|    break;
 1648|  14.3k|  case CURLUPART_PASSWORD:
  ------------------
  |  Branch (1648:3): [True: 14.3k, False: 125k]
  ------------------
 1649|  14.3k|    ptr = u->password;
 1650|  14.3k|    ifmissing = CURLUE_NO_PASSWORD;
 1651|  14.3k|    break;
 1652|  14.3k|  case CURLUPART_OPTIONS:
  ------------------
  |  Branch (1652:3): [True: 14.3k, False: 125k]
  ------------------
 1653|  14.3k|    ptr = u->options;
 1654|  14.3k|    ifmissing = CURLUE_NO_OPTIONS;
 1655|  14.3k|    break;
 1656|  14.4k|  case CURLUPART_HOST:
  ------------------
  |  Branch (1656:3): [True: 14.4k, False: 125k]
  ------------------
 1657|  14.4k|    ptr = u->host;
 1658|  14.4k|    ifmissing = CURLUE_NO_HOST;
 1659|  14.4k|    break;
 1660|  14.3k|  case CURLUPART_ZONEID:
  ------------------
  |  Branch (1660:3): [True: 14.3k, False: 125k]
  ------------------
 1661|  14.3k|    ptr = u->zoneid;
 1662|  14.3k|    ifmissing = CURLUE_NO_ZONEID;
 1663|  14.3k|    break;
 1664|      0|  case CURLUPART_PORT:
  ------------------
  |  Branch (1664:3): [True: 0, False: 140k]
  ------------------
 1665|      0|    ptr = NULL;
 1666|      0|    ifmissing = CURLUE_NO_PORT;
 1667|      0|    flags &= ~U_CURLU_URLDECODE; /* never for port */
  ------------------
  |  |   63|      0|#define U_CURLU_URLDECODE  (unsigned int)CURLU_URLDECODE
  |  |  ------------------
  |  |  |  |   94|      0|#define CURLU_URLDECODE (1 << 6)          /* URL decode on get */
  |  |  ------------------
  ------------------
 1668|      0|    if(u->port_present) {
  ------------------
  |  Branch (1668:8): [True: 0, False: 0]
  ------------------
 1669|      0|      const struct Curl_scheme *h = u->scheme ?
  ------------------
  |  Branch (1669:37): [True: 0, False: 0]
  ------------------
 1670|      0|                                    Curl_get_scheme(u->scheme) : NULL;
 1671|       |      /* there is a stored port number, but ask to inhibit if
 1672|       |         it matches the default one for the scheme */
 1673|      0|      if(h && (h->defport == u->portnum) &&
  ------------------
  |  Branch (1673:10): [True: 0, False: 0]
  |  Branch (1673:15): [True: 0, False: 0]
  ------------------
 1674|      0|         (flags & CURLU_NO_DEFAULT_PORT)) {
  ------------------
  |  |   86|      0|#define CURLU_NO_DEFAULT_PORT (1 << 1)    /* act as if no port number was set,
  ------------------
  |  Branch (1674:10): [True: 0, False: 0]
  ------------------
 1675|      0|        ptr = NULL;
 1676|      0|      }
 1677|      0|      else {
 1678|      0|        curl_msnprintf(portbuf, sizeof(portbuf), "%u", u->portnum);
 1679|      0|        ptr = portbuf;
 1680|      0|      }
 1681|      0|    }
 1682|      0|    else if((flags & CURLU_DEFAULT_PORT) && u->scheme) {
  ------------------
  |  |   85|      0|#define CURLU_DEFAULT_PORT (1 << 0)       /* return default port number */
  ------------------
  |  Branch (1682:13): [True: 0, False: 0]
  |  Branch (1682:45): [True: 0, False: 0]
  ------------------
 1683|       |      /* there is no stored port number, but asked to deliver
 1684|       |         a default one for the scheme */
 1685|      0|      const struct Curl_scheme *h = Curl_get_scheme(u->scheme);
 1686|      0|      if(h) {
  ------------------
  |  Branch (1686:10): [True: 0, False: 0]
  ------------------
 1687|      0|        curl_msnprintf(portbuf, sizeof(portbuf), "%u", h->defport);
 1688|      0|        ptr = portbuf;
 1689|      0|      }
 1690|      0|    }
 1691|      0|    break;
 1692|  14.3k|  case CURLUPART_PATH:
  ------------------
  |  Branch (1692:3): [True: 14.3k, False: 125k]
  ------------------
 1693|  14.3k|    ptr = u->path;
 1694|  14.3k|    if(!ptr)
  ------------------
  |  Branch (1694:8): [True: 8.77k, False: 5.57k]
  ------------------
 1695|  8.77k|      ptr = "/";
 1696|  14.3k|    break;
 1697|  14.3k|  case CURLUPART_QUERY:
  ------------------
  |  Branch (1697:3): [True: 14.3k, False: 125k]
  ------------------
 1698|  14.3k|    ptr = u->query;
 1699|  14.3k|    ifmissing = CURLUE_NO_QUERY;
 1700|  14.3k|    plusdecode = flags & CURLU_URLDECODE;
  ------------------
  |  |   94|  14.3k|#define CURLU_URLDECODE (1 << 6)          /* URL decode on get */
  ------------------
 1701|  14.3k|    if(ptr && !ptr[0] && !(flags & CURLU_GET_EMPTY))
  ------------------
  |  |  103|     30|#define CURLU_GET_EMPTY (1 << 14)         /* allow empty queries and fragments
  ------------------
  |  Branch (1701:8): [True: 535, False: 13.8k]
  |  Branch (1701:15): [True: 30, False: 505]
  |  Branch (1701:26): [True: 0, False: 30]
  ------------------
 1702|       |      /* there was a blank query and the user do not ask for it */
 1703|      0|      ptr = NULL;
 1704|  14.3k|    break;
 1705|      0|  case CURLUPART_FRAGMENT:
  ------------------
  |  Branch (1705:3): [True: 0, False: 140k]
  ------------------
 1706|      0|    ptr = u->fragment;
 1707|      0|    ifmissing = CURLUE_NO_FRAGMENT;
 1708|      0|    if(!ptr && u->fragment_present && flags & CURLU_GET_EMPTY)
  ------------------
  |  |  103|      0|#define CURLU_GET_EMPTY (1 << 14)         /* allow empty queries and fragments
  ------------------
  |  Branch (1708:8): [True: 0, False: 0]
  |  Branch (1708:16): [True: 0, False: 0]
  |  Branch (1708:39): [True: 0, False: 0]
  ------------------
 1709|       |      /* there was a blank fragment and the user asks for it */
 1710|      0|      ptr = "";
 1711|      0|    break;
 1712|  25.1k|  case CURLUPART_URL:
  ------------------
  |  Branch (1712:3): [True: 25.1k, False: 115k]
  ------------------
 1713|  25.1k|    return urlget_url(u, part, flags);
 1714|      0|  default:
  ------------------
  |  Branch (1714:3): [True: 0, False: 140k]
  ------------------
 1715|      0|    ptr = NULL;
 1716|      0|    break;
 1717|   140k|  }
 1718|   115k|  if(ptr)
  ------------------
  |  Branch (1718:6): [True: 45.7k, False: 69.2k]
  ------------------
 1719|  45.7k|    return urlget_format(u, what, ptr, part, plusdecode, flags);
 1720|       |
 1721|  69.2k|  return ifmissing;
 1722|   115k|}
curl_url_set:
 2019|  28.9k|{
 2020|  28.9k|  char **storep = NULL;
 2021|  28.9k|  bool urlencode = (flags & CURLU_URLENCODE) ? 1 : 0;
  ------------------
  |  |   95|  28.9k|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
  |  Branch (2021:20): [True: 9.63k, False: 19.2k]
  ------------------
 2022|  28.9k|  bool plusencode = FALSE;
  ------------------
  |  | 1056|  28.9k|#define FALSE false
  ------------------
 2023|  28.9k|  bool pathmode = FALSE;
  ------------------
  |  | 1056|  28.9k|#define FALSE false
  ------------------
 2024|  28.9k|  bool leadingslash = FALSE;
  ------------------
  |  | 1056|  28.9k|#define FALSE false
  ------------------
 2025|  28.9k|  bool appendquery = FALSE;
  ------------------
  |  | 1056|  28.9k|#define FALSE false
  ------------------
 2026|  28.9k|  bool equalsencode = FALSE;
  ------------------
  |  | 1056|  28.9k|#define FALSE false
  ------------------
 2027|  28.9k|  size_t nalloc;
 2028|       |
 2029|  28.9k|  if(!u)
  ------------------
  |  Branch (2029:6): [True: 0, False: 28.9k]
  ------------------
 2030|      0|    return CURLUE_BAD_HANDLE;
 2031|  28.9k|  if(!part)
  ------------------
  |  Branch (2031:6): [True: 2.55k, False: 26.3k]
  ------------------
 2032|       |    /* setting a part to NULL clears it */
 2033|  2.55k|    return urlset_clear(u, what);
 2034|       |
 2035|  26.3k|  nalloc = strlen(part);
 2036|  26.3k|  if(nalloc > CURL_MAX_INPUT_LENGTH)
  ------------------
  |  |   45|  26.3k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
  |  Branch (2036:6): [True: 0, False: 26.3k]
  ------------------
 2037|       |    /* excessive input length */
 2038|      0|    return CURLUE_MALFORMED_INPUT;
 2039|       |
 2040|  26.3k|  switch(what) {
 2041|      0|  case CURLUPART_SCHEME: {
  ------------------
  |  Branch (2041:3): [True: 0, False: 26.3k]
  ------------------
 2042|      0|    CURLUcode status = set_url_scheme(u, part, flags);
 2043|      0|    if(status)
  ------------------
  |  Branch (2043:8): [True: 0, False: 0]
  ------------------
 2044|      0|      return status;
 2045|      0|    storep = &u->scheme;
 2046|      0|    urlencode = FALSE; /* never */
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 2047|      0|    break;
 2048|      0|  }
 2049|      0|  case CURLUPART_USER:
  ------------------
  |  Branch (2049:3): [True: 0, False: 26.3k]
  ------------------
 2050|      0|    storep = &u->user;
 2051|      0|    break;
 2052|      0|  case CURLUPART_PASSWORD:
  ------------------
  |  Branch (2052:3): [True: 0, False: 26.3k]
  ------------------
 2053|      0|    storep = &u->password;
 2054|      0|    break;
 2055|      0|  case CURLUPART_OPTIONS:
  ------------------
  |  Branch (2055:3): [True: 0, False: 26.3k]
  ------------------
 2056|      0|    storep = &u->options;
 2057|      0|    break;
 2058|      0|  case CURLUPART_HOST:
  ------------------
  |  Branch (2058:3): [True: 0, False: 26.3k]
  ------------------
 2059|      0|    storep = &u->host;
 2060|      0|    curlx_safefree(u->zoneid);
  ------------------
  |  | 1340|      0|  do {                      \
  |  | 1341|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|      0|    (ptr) = NULL;           \
  |  | 1343|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2061|      0|    break;
 2062|      0|  case CURLUPART_ZONEID:
  ------------------
  |  Branch (2062:3): [True: 0, False: 26.3k]
  ------------------
 2063|      0|    storep = &u->zoneid;
 2064|      0|    break;
 2065|      0|  case CURLUPART_PORT:
  ------------------
  |  Branch (2065:3): [True: 0, False: 26.3k]
  ------------------
 2066|      0|    return set_url_port(u, part);
 2067|      0|  case CURLUPART_PATH:
  ------------------
  |  Branch (2067:3): [True: 0, False: 26.3k]
  ------------------
 2068|      0|    pathmode = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2069|      0|    leadingslash = TRUE; /* enforce */
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2070|      0|    storep = &u->path;
 2071|      0|    break;
 2072|      0|  case CURLUPART_QUERY:
  ------------------
  |  Branch (2072:3): [True: 0, False: 26.3k]
  ------------------
 2073|      0|    plusencode = urlencode;
 2074|      0|    appendquery = (flags & CURLU_APPENDQUERY) ? 1 : 0;
  ------------------
  |  |   96|      0|#define CURLU_APPENDQUERY (1 << 8)        /* append a form style part */
  ------------------
  |  Branch (2074:19): [True: 0, False: 0]
  ------------------
 2075|      0|    equalsencode = appendquery;
 2076|      0|    storep = &u->query;
 2077|      0|    u->query_present = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2078|      0|    break;
 2079|      0|  case CURLUPART_FRAGMENT:
  ------------------
  |  Branch (2079:3): [True: 0, False: 26.3k]
  ------------------
 2080|      0|    storep = &u->fragment;
 2081|      0|    u->fragment_present = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 2082|      0|    break;
 2083|  26.3k|  case CURLUPART_URL:
  ------------------
  |  Branch (2083:3): [True: 26.3k, False: 0]
  ------------------
 2084|  26.3k|    return set_url(u, part, nalloc, flags);
 2085|      0|  default:
  ------------------
  |  Branch (2085:3): [True: 0, False: 26.3k]
  ------------------
 2086|      0|    return CURLUE_UNKNOWN_PART;
 2087|  26.3k|  }
 2088|      0|  DEBUGASSERT(storep);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2088:3): [True: 0, False: 0]
  |  Branch (2088:3): [True: 0, False: 0]
  ------------------
 2089|      0|  {
 2090|      0|    const char *newp = NULL;
 2091|      0|    struct dynbuf enc;
 2092|      0|    CURLUcode status;
 2093|      0|    curlx_dyn_init(&enc, (nalloc * 3) + 1 + leadingslash);
 2094|       |
 2095|      0|    if(leadingslash && (part[0] != '/')) {
  ------------------
  |  Branch (2095:8): [True: 0, False: 0]
  |  Branch (2095:24): [True: 0, False: 0]
  ------------------
 2096|      0|      CURLcode result = curlx_dyn_addn(&enc, "/", 1);
 2097|      0|      if(result)
  ------------------
  |  Branch (2097:10): [True: 0, False: 0]
  ------------------
 2098|      0|        return cc2cu(result);
  ------------------
  |  |  108|      0|  ((x) == CURLE_TOO_LARGE ? CURLUE_TOO_LARGE : CURLUE_OUT_OF_MEMORY)
  |  |  ------------------
  |  |  |  Branch (108:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2099|      0|    }
 2100|      0|    if(urlencode)
  ------------------
  |  Branch (2100:8): [True: 0, False: 0]
  ------------------
 2101|      0|      status = url_encode_part(&enc, part, plusencode, pathmode, equalsencode);
 2102|      0|    else
 2103|      0|      status = url_uppercasehex_part(&enc, part);
 2104|      0|    if(!status) {
  ------------------
  |  Branch (2104:8): [True: 0, False: 0]
  ------------------
 2105|      0|      newp = curlx_dyn_ptr(&enc);
 2106|       |
 2107|      0|      if(appendquery && newp)
  ------------------
  |  Branch (2107:10): [True: 0, False: 0]
  |  Branch (2107:25): [True: 0, False: 0]
  ------------------
 2108|      0|        return url_append_query(u, &enc);
 2109|      0|      else if(what == CURLUPART_HOST)
  ------------------
  |  Branch (2109:15): [True: 0, False: 0]
  ------------------
 2110|      0|        status = url_sethost(u, &enc, urlencode, flags);
 2111|      0|    }
 2112|      0|    if(status)
  ------------------
  |  Branch (2112:8): [True: 0, False: 0]
  ------------------
 2113|      0|      return status;
 2114|       |
 2115|      0|    if(what == CURLUPART_PASSWORD)
  ------------------
  |  Branch (2115:8): [True: 0, False: 0]
  ------------------
 2116|      0|      curlx_strzero(*storep);
 2117|      0|    curlx_free(*storep);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 2118|      0|    *storep = (char *)CURL_UNCONST(newp);
  ------------------
  |  |  864|      0|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
 2119|      0|  }
 2120|      0|  return CURLUE_OK;
 2121|      0|}
Curl_url_same_origin:
 2124|  5.24k|{
 2125|  5.24k|  const struct Curl_scheme *s = NULL;
 2126|       |
 2127|       |  /* base must be an absolute URL */
 2128|  5.24k|  if(!base->scheme || !base->host)
  ------------------
  |  Branch (2128:6): [True: 0, False: 5.24k]
  |  Branch (2128:23): [True: 0, False: 5.24k]
  ------------------
 2129|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 2130|  5.24k|  if(href->scheme && !curl_strequal(base->scheme, href->scheme))
  ------------------
  |  Branch (2130:6): [True: 5.24k, False: 0]
  |  Branch (2130:22): [True: 36, False: 5.21k]
  ------------------
 2131|     36|    return FALSE;
  ------------------
  |  | 1056|     36|#define FALSE false
  ------------------
 2132|  5.21k|  if(href->host) {
  ------------------
  |  Branch (2132:6): [True: 5.21k, False: 0]
  ------------------
 2133|  5.21k|    if(!curl_strequal(base->host, href->host))
  ------------------
  |  Branch (2133:8): [True: 91, False: 5.12k]
  ------------------
 2134|     91|      return FALSE;
  ------------------
  |  | 1056|     91|#define FALSE false
  ------------------
 2135|       |
 2136|  5.12k|    if(base->port_present != href->port_present) {
  ------------------
  |  Branch (2136:8): [True: 3, False: 5.11k]
  ------------------
 2137|       |      /* one is present, one is not */
 2138|      3|      s = Curl_get_scheme(base->scheme);
 2139|      3|      if(!s) /* Cannot match default port for unknown scheme */
  ------------------
  |  Branch (2139:10): [True: 0, False: 3]
  ------------------
 2140|      0|        return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 2141|       |      /* to match, the present one must be the default port */
 2142|      3|      if((base->port_present && (base->portnum != s->defport)) ||
  ------------------
  |  Branch (2142:11): [True: 1, False: 2]
  |  Branch (2142:33): [True: 1, False: 0]
  ------------------
 2143|      2|         (href->port_present && (href->portnum != s->defport)))
  ------------------
  |  Branch (2143:11): [True: 2, False: 0]
  |  Branch (2143:33): [True: 1, False: 1]
  ------------------
 2144|      2|        return FALSE;
  ------------------
  |  | 1056|      2|#define FALSE false
  ------------------
 2145|      3|    }
 2146|  5.11k|    else if(base->portnum != href->portnum) /* both present or missing */
  ------------------
  |  Branch (2146:13): [True: 1, False: 5.11k]
  ------------------
 2147|      1|      return FALSE;
  ------------------
  |  | 1056|      1|#define FALSE false
  ------------------
 2148|       |
 2149|  5.11k|    if(!curl_strequal(base->zoneid ? base->zoneid : "",
  ------------------
  |  Branch (2149:8): [True: 0, False: 5.11k]
  |  Branch (2149:23): [True: 381, False: 4.73k]
  ------------------
 2150|  5.11k|                      href->zoneid ? href->zoneid : ""))
  ------------------
  |  Branch (2150:23): [True: 381, False: 4.73k]
  ------------------
 2151|      0|      return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 2152|  5.11k|  }
 2153|      0|  else if(href->port_present) /* no host in href, then there must be no port */
  ------------------
  |  Branch (2153:11): [True: 0, False: 0]
  ------------------
 2154|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 2155|  5.11k|  return TRUE;
  ------------------
  |  | 1053|  5.11k|#define TRUE true
  ------------------
 2156|  5.21k|}
Curl_url_get_port:
 2159|  14.3k|{
 2160|  14.3k|  if(u->port_present) {
  ------------------
  |  Branch (2160:6): [True: 411, False: 13.9k]
  ------------------
 2161|    411|    *pport = u->portnum;
 2162|    411|    return CURLUE_OK;
 2163|    411|  }
 2164|  13.9k|  else if(u->scheme) {
  ------------------
  |  Branch (2164:11): [True: 13.9k, False: 0]
  ------------------
 2165|  13.9k|    const struct Curl_scheme *s = Curl_get_scheme(u->scheme);
 2166|  13.9k|    if(s && s->defport) {
  ------------------
  |  Branch (2166:8): [True: 13.9k, False: 0]
  |  Branch (2166:13): [True: 13.9k, False: 9]
  ------------------
 2167|  13.9k|      *pport = s->defport;
 2168|  13.9k|      return CURLUE_OK;
 2169|  13.9k|    }
 2170|  13.9k|  }
 2171|      9|  *pport = 0;
 2172|      9|  return CURLUE_NO_PORT;
 2173|  14.3k|}
urlapi.c:find_host_sep:
   91|     93|{
   92|       |  /* Find the start of the hostname */
   93|     93|  const char *sep = strstr(url, "//");
   94|     93|  if(!sep)
  ------------------
  |  Branch (94:6): [True: 88, False: 5]
  ------------------
   95|     88|    sep = url;
   96|      5|  else
   97|      5|    sep += 2;
   98|       |
   99|       |  /* Find first / or ? */
  100|    447|  while(*sep && *sep != '/' && *sep != '?')
  ------------------
  |  Branch (100:9): [True: 430, False: 17]
  |  Branch (100:17): [True: 356, False: 74]
  |  Branch (100:32): [True: 354, False: 2]
  ------------------
  101|    354|    sep++;
  102|       |
  103|     93|  return sep;
  104|     93|}
urlapi.c:parse_authority:
  661|  26.1k|{
  662|  26.1k|  size_t offset;
  663|  26.1k|  CURLUcode uc;
  664|  26.1k|  CURLcode result;
  665|       |
  666|       |  /*
  667|       |   * Parse the login details and strip them out of the hostname.
  668|       |   */
  669|  26.1k|  uc = parse_hostname_login(u, auth, authlen, flags, &offset);
  670|  26.1k|  if(uc)
  ------------------
  |  Branch (670:6): [True: 0, False: 26.1k]
  ------------------
  671|      0|    return uc;
  672|       |
  673|  26.1k|  result = curlx_dyn_addn(host, auth + offset, authlen - offset);
  674|  26.1k|  if(result) {
  ------------------
  |  Branch (674:6): [True: 0, False: 26.1k]
  ------------------
  675|      0|    uc = cc2cu(result);
  ------------------
  |  |  108|      0|  ((x) == CURLE_TOO_LARGE ? CURLUE_TOO_LARGE : CURLUE_OUT_OF_MEMORY)
  |  |  ------------------
  |  |  |  Branch (108:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  676|      0|    return uc;
  677|      0|  }
  678|       |
  679|  26.1k|  uc = parse_port(u, host, has_scheme);
  680|       |
  681|  26.1k|  if(!curlx_dyn_len(host))
  ------------------
  |  Branch (681:6): [True: 31, False: 26.1k]
  ------------------
  682|       |    /* this makes no-host errors override port number problems */
  683|     31|    uc = CURLUE_NO_HOST;
  684|  26.1k|  if(!uc)
  ------------------
  |  Branch (684:6): [True: 26.0k, False: 51]
  ------------------
  685|  26.0k|    uc = urldecode_host(host);
  686|  26.1k|  if(uc)
  ------------------
  |  Branch (686:6): [True: 65, False: 26.0k]
  ------------------
  687|     65|    return uc;
  688|       |
  689|  26.0k|  switch(ipv4_normalize(host)) {
  690|  5.16k|  case HOST_IPV4:
  ------------------
  |  |   49|  5.16k|#define HOST_IPV4    2
  ------------------
  |  Branch (690:3): [True: 5.16k, False: 20.9k]
  ------------------
  691|  5.16k|    break;
  692|  3.57k|  case HOST_IPV6:
  ------------------
  |  |   50|  3.57k|#define HOST_IPV6    3
  ------------------
  |  Branch (692:3): [True: 3.57k, False: 22.5k]
  ------------------
  693|  3.57k|    uc = ipv6_parse(u, curlx_dyn_ptr(host), curlx_dyn_len(host));
  694|  3.57k|    break;
  695|  17.3k|  case HOST_NAME:
  ------------------
  |  |   48|  17.3k|#define HOST_NAME    1
  ------------------
  |  Branch (695:3): [True: 17.3k, False: 8.73k]
  ------------------
  696|  17.3k|    uc = hostname_check(u, curlx_dyn_ptr(host), curlx_dyn_len(host));
  697|  17.3k|    break;
  698|      0|  case HOST_ERROR:
  ------------------
  |  |   47|      0|#define HOST_ERROR   (-1) /* out of memory */
  ------------------
  |  Branch (698:3): [True: 0, False: 26.0k]
  ------------------
  699|      0|    uc = CURLUE_OUT_OF_MEMORY;
  700|      0|    break;
  701|      0|  default:
  ------------------
  |  Branch (701:3): [True: 0, False: 26.0k]
  ------------------
  702|      0|    uc = CURLUE_BAD_HOSTNAME; /* Bad IPv4 address even */
  703|      0|    break;
  704|  26.0k|  }
  705|       |
  706|  26.0k|  return uc;
  707|  26.0k|}
urlapi.c:urldecode_host:
  631|  26.0k|{
  632|  26.0k|  const char *per;
  633|  26.0k|  const char *hostname = curlx_dyn_ptr(host);
  634|  26.0k|  per = strchr(hostname, '%');
  635|  26.0k|  if(!per)
  ------------------
  |  Branch (635:6): [True: 24.5k, False: 1.54k]
  ------------------
  636|       |    /* nothing to decode */
  637|  24.5k|    return CURLUE_OK;
  638|  1.54k|  else {
  639|       |    /* encoded */
  640|  1.54k|    size_t dlen;
  641|  1.54k|    char *decoded;
  642|  1.54k|    CURLcode result = Curl_urldecode(hostname, 0, &decoded, &dlen,
  643|  1.54k|                                     REJECT_CTRL);
  644|  1.54k|    if(result)
  ------------------
  |  Branch (644:8): [True: 14, False: 1.53k]
  ------------------
  645|     14|      return CURLUE_BAD_HOSTNAME;
  646|  1.53k|    curlx_dyn_reset(host);
  647|  1.53k|    result = curlx_dyn_addn(host, decoded, dlen);
  648|  1.53k|    curlx_free(decoded);
  ------------------
  |  | 1482|  1.53k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  649|  1.53k|    if(result)
  ------------------
  |  Branch (649:8): [True: 0, False: 1.53k]
  ------------------
  650|      0|      return cc2cu(result);
  ------------------
  |  |  108|      0|  ((x) == CURLE_TOO_LARGE ? CURLUE_TOO_LARGE : CURLUE_OUT_OF_MEMORY)
  |  |  ------------------
  |  |  |  Branch (108:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  651|  1.53k|  }
  652|       |
  653|  1.53k|  return CURLUE_OK;
  654|  26.0k|}
urlapi.c:hostname_check:
  481|  17.3k|{
  482|  17.3k|  size_t len;
  483|  17.3k|  DEBUGASSERT(hostname);
  ------------------
  |  | 1083|  17.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (483:3): [True: 0, False: 17.3k]
  |  Branch (483:3): [True: 17.3k, False: 0]
  ------------------
  484|       |
  485|  17.3k|  if(!hlen)
  ------------------
  |  Branch (485:6): [True: 0, False: 17.3k]
  ------------------
  486|      0|    return CURLUE_NO_HOST;
  487|  17.3k|  else if(hostname[0] == '[')
  ------------------
  |  Branch (487:11): [True: 0, False: 17.3k]
  ------------------
  488|      0|    return ipv6_parse(u, hostname, hlen);
  489|  17.3k|  else {
  490|       |    /* letters from the second string are not ok */
  491|  17.3k|    len = strcspn(hostname, HOSTNAME_INVALID_CHARS);
  ------------------
  |  |   59|  17.3k|#define HOSTNAME_INVALID_CHARS " \r\n\t/:#?!@{}[]\\$\'\"^`*<>=;,+&()%|"
  ------------------
  492|  17.3k|    if(hlen != len)
  ------------------
  |  Branch (492:8): [True: 205, False: 17.1k]
  ------------------
  493|       |      /* hostname with bad content */
  494|    205|      return CURLUE_BAD_HOSTNAME;
  495|  17.1k|    else if((hlen >= 2) &&
  ------------------
  |  Branch (495:13): [True: 6.31k, False: 10.8k]
  ------------------
  496|  6.31k|            (hostname[hlen - 1] == '.') && (hostname[hlen - 2] == '.'))
  ------------------
  |  Branch (496:13): [True: 527, False: 5.79k]
  |  Branch (496:44): [True: 1, False: 526]
  ------------------
  497|       |      /* more than one trailing dot is not allowed */
  498|      1|      return CURLUE_BAD_HOSTNAME;
  499|  17.1k|    else if((hlen == 1) && (hostname[0] == '.'))
  ------------------
  |  Branch (499:13): [True: 10.8k, False: 6.31k]
  |  Branch (499:28): [True: 55, False: 10.7k]
  ------------------
  500|       |      /* a single dot alone is not allowed */
  501|     55|      return CURLUE_BAD_HOSTNAME;
  502|  17.3k|  }
  503|  17.0k|  return CURLUE_OK;
  504|  17.3k|}
urlapi.c:needs_dedotdot:
  755|  15.1k|{
  756|       |  /* a single byte path cannot be cleaned up */
  757|  15.1k|  if(pn < 2)
  ------------------
  |  Branch (757:6): [True: 5, False: 15.1k]
  ------------------
  758|      5|    return FALSE;
  ------------------
  |  | 1056|      5|#define FALSE false
  ------------------
  759|  3.16M|  while(pn) {
  ------------------
  |  Branch (759:9): [True: 3.14M, False: 14.9k]
  ------------------
  760|  3.14M|    if(is_dot(&p, &pn)) {
  ------------------
  |  Branch (760:8): [True: 8.02k, False: 3.13M]
  ------------------
  761|       |      /* "./" or dot before end of string */
  762|  8.02k|      if(!pn || ISSLASH(*p))
  ------------------
  |  |  751|  7.94k|#define ISSLASH(x) ((x) == '/')
  |  |  ------------------
  |  |  |  Branch (751:20): [True: 203, False: 7.74k]
  |  |  ------------------
  ------------------
  |  Branch (762:10): [True: 75, False: 7.94k]
  ------------------
  763|    278|        return TRUE;
  ------------------
  |  | 1053|    278|#define TRUE true
  ------------------
  764|       |      /* "../" or ".." before end of string */
  765|  7.74k|      else if(is_dot(&p, &pn) && (!pn || ISSLASH(*p)))
  ------------------
  |  |  751|    478|#define ISSLASH(x) ((x) == '/')
  |  |  ------------------
  |  |  |  Branch (751:20): [True: 5, False: 473]
  |  |  ------------------
  ------------------
  |  Branch (765:15): [True: 481, False: 7.26k]
  |  Branch (765:35): [True: 3, False: 478]
  ------------------
  766|      8|        return TRUE;
  ------------------
  |  | 1053|      8|#define TRUE true
  ------------------
  767|  8.02k|    }
  768|  3.13M|    else {
  769|  3.13M|      p++;
  770|  3.13M|      pn--;
  771|  3.13M|    }
  772|  3.14M|  }
  773|  14.9k|  return FALSE;
  ------------------
  |  | 1056|  14.9k|#define FALSE false
  ------------------
  774|  15.1k|}
urlapi.c:is_dot:
  735|  3.16M|{
  736|  3.16M|  const char *p = *str;
  737|  3.16M|  if(*p == '.') {
  ------------------
  |  Branch (737:6): [True: 11.6k, False: 3.14M]
  ------------------
  738|  11.6k|    (*str)++;
  739|  11.6k|    (*clen)--;
  740|  11.6k|    return TRUE;
  ------------------
  |  | 1053|  11.6k|#define TRUE true
  ------------------
  741|  11.6k|  }
  742|  3.14M|  else if((*clen >= 3) &&
  ------------------
  |  Branch (742:11): [True: 3.11M, False: 30.0k]
  ------------------
  743|  3.11M|          (p[0] == '%') && (p[1] == '2') && ((p[2] | 0x20) == 'e')) {
  ------------------
  |  Branch (743:11): [True: 294k, False: 2.82M]
  |  Branch (743:28): [True: 5.81k, False: 288k]
  |  Branch (743:45): [True: 202, False: 5.61k]
  ------------------
  744|    202|    *str += 3;
  745|    202|    *clen -= 3;
  746|    202|    return TRUE;
  ------------------
  |  | 1053|    202|#define TRUE true
  ------------------
  747|    202|  }
  748|  3.14M|  return FALSE;
  ------------------
  |  | 1056|  3.14M|#define FALSE false
  ------------------
  749|  3.16M|}
urlapi.c:free_urlhandle:
   73|  47.4k|{
   74|  47.4k|  curlx_free(u->scheme);
  ------------------
  |  | 1482|  47.4k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   75|  47.4k|  curlx_free(u->user);
  ------------------
  |  | 1482|  47.4k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   76|  47.4k|  curlx_strzero(u->password);
   77|  47.4k|  curlx_free(u->password);
  ------------------
  |  | 1482|  47.4k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   78|  47.4k|  curlx_free(u->options);
  ------------------
  |  | 1482|  47.4k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   79|  47.4k|  curlx_free(u->host);
  ------------------
  |  | 1482|  47.4k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   80|  47.4k|  curlx_free(u->zoneid);
  ------------------
  |  | 1482|  47.4k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   81|  47.4k|  curlx_free(u->path);
  ------------------
  |  | 1482|  47.4k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   82|  47.4k|  curlx_free(u->query);
  ------------------
  |  | 1482|  47.4k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   83|  47.4k|  curlx_free(u->fragment);
  ------------------
  |  | 1482|  47.4k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   84|  47.4k|}
urlapi.c:urlget_url:
 1511|  25.1k|{
 1512|  25.1k|  char *url;
 1513|  25.1k|  char *allochost = NULL;
 1514|  25.1k|  const char *fragmentsep =
 1515|  25.1k|    (u->fragment || (u->fragment_present && flags & CURLU_GET_EMPTY)) ?
  ------------------
  |  |  103|     47|#define CURLU_GET_EMPTY (1 << 14)         /* allow empty queries and fragments
  ------------------
  |  Branch (1515:6): [True: 788, False: 24.3k]
  |  Branch (1515:22): [True: 47, False: 24.3k]
  |  Branch (1515:45): [True: 44, False: 3]
  ------------------
 1516|  24.3k|    "#" : "";
 1517|  25.1k|  const char *querysep = ((u->query && u->query[0]) ||
  ------------------
  |  Branch (1517:28): [True: 1.47k, False: 23.6k]
  |  Branch (1517:40): [True: 1.42k, False: 52]
  ------------------
 1518|  23.7k|                          (u->query_present && flags & CURLU_GET_EMPTY)) ?
  ------------------
  |  |  103|     52|#define CURLU_GET_EMPTY (1 << 14)         /* allow empty queries and fragments
  ------------------
  |  Branch (1518:28): [True: 52, False: 23.6k]
  |  Branch (1518:48): [True: 43, False: 9]
  ------------------
 1519|  23.6k|    "?" : "";
 1520|  25.1k|  char portbuf[7];
 1521|  25.1k|  if(curl_strequal("file", u->scheme))
  ------------------
  |  Branch (1521:6): [True: 29, False: 25.1k]
  ------------------
 1522|     29|    return file_url(u, part, fragmentsep, querysep);
 1523|  25.1k|  else if(!u->host)
  ------------------
  |  Branch (1523:11): [True: 0, False: 25.1k]
  ------------------
 1524|      0|    return CURLUE_NO_HOST;
 1525|  25.1k|  else {
 1526|  25.1k|    const char *scheme;
 1527|  25.1k|    char *options = u->options;
 1528|  25.1k|    char *port = NULL;
 1529|  25.1k|    const struct Curl_scheme *h = NULL;
 1530|  25.1k|    char schemebuf[MAX_SCHEME_LEN + 5];
 1531|  25.1k|    if(u->scheme)
  ------------------
  |  Branch (1531:8): [True: 25.1k, False: 0]
  ------------------
 1532|  25.1k|      scheme = u->scheme;
 1533|      0|    else if(flags & CURLU_DEFAULT_SCHEME)
  ------------------
  |  |   89|      0|#define CURLU_DEFAULT_SCHEME (1 << 2)     /* return default scheme if
  ------------------
  |  Branch (1533:13): [True: 0, False: 0]
  ------------------
 1534|      0|      scheme = DEFAULT_SCHEME;
  ------------------
  |  |   70|      0|#define DEFAULT_SCHEME "https"
  ------------------
 1535|      0|    else
 1536|      0|      return CURLUE_NO_SCHEME;
 1537|       |
 1538|  25.1k|    if(u->port_present) {
  ------------------
  |  Branch (1538:8): [True: 997, False: 24.1k]
  ------------------
 1539|    997|      curl_msnprintf(portbuf, sizeof(portbuf), "%u", u->portnum);
 1540|    997|      port = portbuf;
 1541|    997|    }
 1542|       |
 1543|  25.1k|    h = Curl_get_scheme(scheme);
 1544|  25.1k|    if(h) {
  ------------------
  |  Branch (1544:8): [True: 25.0k, False: 16]
  ------------------
 1545|  25.0k|      if(!u->port_present && (flags & CURLU_DEFAULT_PORT)) {
  ------------------
  |  |   85|  24.0k|#define CURLU_DEFAULT_PORT (1 << 0)       /* return default port number */
  ------------------
  |  Branch (1545:10): [True: 24.0k, False: 996]
  |  Branch (1545:30): [True: 0, False: 24.0k]
  ------------------
 1546|       |        /* there is no stored port number, but asked to deliver a default one
 1547|       |           for the scheme */
 1548|      0|        curl_msnprintf(portbuf, sizeof(portbuf), "%u", h->defport);
 1549|      0|        port = portbuf;
 1550|      0|      }
 1551|  25.0k|      else if(u->port_present && (h->defport == u->portnum) &&
  ------------------
  |  Branch (1551:15): [True: 996, False: 24.0k]
  |  Branch (1551:34): [True: 3, False: 993]
  ------------------
 1552|      3|              (flags & CURLU_NO_DEFAULT_PORT)) {
  ------------------
  |  |   86|      3|#define CURLU_NO_DEFAULT_PORT (1 << 1)    /* act as if no port number was set,
  ------------------
  |  Branch (1552:15): [True: 0, False: 3]
  ------------------
 1553|       |        /* there is a stored port number, but asked to inhibit if it matches
 1554|       |           the default port for the scheme */
 1555|      0|        port = NULL;
 1556|      0|      }
 1557|       |
 1558|  25.0k|      if(!(h->flags & PROTOPT_URLOPTIONS))
  ------------------
  |  |  224|  25.0k|#define PROTOPT_URLOPTIONS (1 << 10) /* allow options part in the userinfo
  ------------------
  |  Branch (1558:10): [True: 25.0k, False: 0]
  ------------------
 1559|  25.0k|        options = NULL;
 1560|  25.0k|    }
 1561|       |
 1562|  25.1k|    if(u->host[0] == '[') {
  ------------------
  |  Branch (1562:8): [True: 3.43k, False: 21.6k]
  ------------------
 1563|  3.43k|      if(u->zoneid) {
  ------------------
  |  Branch (1563:10): [True: 1.31k, False: 2.12k]
  ------------------
 1564|       |        /* make it '[ host %25 zoneid ]' */
 1565|  1.31k|        struct dynbuf enc;
 1566|  1.31k|        size_t hostlen = strlen(u->host);
 1567|  1.31k|        curlx_dyn_init(&enc, CURL_MAX_INPUT_LENGTH);
  ------------------
  |  |   45|  1.31k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
 1568|  1.31k|        if(curlx_dyn_addf(&enc, "%.*s%%25%s]", (int)hostlen - 1, u->host,
  ------------------
  |  Branch (1568:12): [True: 0, False: 1.31k]
  ------------------
 1569|  1.31k|                          u->zoneid))
 1570|      0|          return CURLUE_OUT_OF_MEMORY;
 1571|  1.31k|        allochost = curlx_dyn_ptr(&enc);
 1572|  1.31k|      }
 1573|  3.43k|    }
 1574|  21.6k|    else if(flags & CURLU_URLENCODE) {
  ------------------
  |  |   95|  21.6k|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
  |  Branch (1574:13): [True: 3.47k, False: 18.2k]
  ------------------
 1575|  3.47k|      allochost = curl_easy_escape(NULL, u->host, 0);
 1576|  3.47k|      if(!allochost)
  ------------------
  |  Branch (1576:10): [True: 0, False: 3.47k]
  ------------------
 1577|      0|        return CURLUE_OUT_OF_MEMORY;
 1578|  3.47k|    }
 1579|  18.2k|    else if(flags & CURLU_PUNYCODE) {
  ------------------
  |  |  101|  18.2k|#define CURLU_PUNYCODE (1 << 12)          /* get the hostname in punycode */
  ------------------
  |  Branch (1579:13): [True: 0, False: 18.2k]
  ------------------
 1580|      0|      if(!Curl_is_ASCII_name(u->host)) {
  ------------------
  |  Branch (1580:10): [True: 0, False: 0]
  ------------------
 1581|      0|        CURLUcode ret = host_decode(u->host, &allochost);
 1582|      0|        if(ret)
  ------------------
  |  Branch (1582:12): [True: 0, False: 0]
  ------------------
 1583|      0|          return ret;
 1584|      0|      }
 1585|      0|    }
 1586|  18.2k|    else if(flags & CURLU_PUNY2IDN) {
  ------------------
  |  |  102|  18.2k|#define CURLU_PUNY2IDN (1 << 13)          /* punycode => IDN conversion */
  ------------------
  |  Branch (1586:13): [True: 0, False: 18.2k]
  ------------------
 1587|      0|      if(Curl_is_ASCII_name(u->host)) {
  ------------------
  |  Branch (1587:10): [True: 0, False: 0]
  ------------------
 1588|      0|        CURLUcode ret = host_encode(u->host, &allochost);
 1589|      0|        if(ret)
  ------------------
  |  Branch (1589:12): [True: 0, False: 0]
  ------------------
 1590|      0|          return ret;
 1591|      0|      }
 1592|      0|    }
 1593|       |
 1594|  25.1k|    if(!(flags & CURLU_NO_GUESS_SCHEME) || !u->guessed_scheme)
  ------------------
  |  |  106|  25.1k|#define CURLU_NO_GUESS_SCHEME (1 << 15)   /* for get, do not accept a guess */
  ------------------
  |  Branch (1594:8): [True: 25.1k, False: 0]
  |  Branch (1594:44): [True: 0, False: 0]
  ------------------
 1595|  25.1k|      curl_msnprintf(schemebuf, sizeof(schemebuf), "%s://", scheme);
 1596|      0|    else
 1597|      0|      schemebuf[0] = 0;
 1598|       |
 1599|  25.1k|    url = curl_maprintf("%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
 1600|  25.1k|                        schemebuf,
 1601|  25.1k|                        u->user ? u->user : "",
  ------------------
  |  Branch (1601:25): [True: 2.59k, False: 22.5k]
  ------------------
 1602|  25.1k|                        u->password ? ":" : "",
  ------------------
  |  Branch (1602:25): [True: 1.03k, False: 24.0k]
  ------------------
 1603|  25.1k|                        u->password ? u->password : "",
  ------------------
  |  Branch (1603:25): [True: 1.03k, False: 24.0k]
  ------------------
 1604|  25.1k|                        options ? ";" : "",
  ------------------
  |  Branch (1604:25): [True: 0, False: 25.1k]
  ------------------
 1605|  25.1k|                        options ? options : "",
  ------------------
  |  Branch (1605:25): [True: 0, False: 25.1k]
  ------------------
 1606|  25.1k|                        (u->user || u->password || options) ? "@" : "",
  ------------------
  |  Branch (1606:26): [True: 2.59k, False: 22.5k]
  |  Branch (1606:37): [True: 0, False: 22.5k]
  |  Branch (1606:52): [True: 0, False: 22.5k]
  ------------------
 1607|  25.1k|                        allochost ? allochost : u->host,
  ------------------
  |  Branch (1607:25): [True: 4.78k, False: 20.3k]
  ------------------
 1608|  25.1k|                        port ? ":" : "",
  ------------------
  |  Branch (1608:25): [True: 997, False: 24.1k]
  ------------------
 1609|  25.1k|                        port ? port : "",
  ------------------
  |  Branch (1609:25): [True: 997, False: 24.1k]
  ------------------
 1610|  25.1k|                        u->path ? u->path : "/",
  ------------------
  |  Branch (1610:25): [True: 14.7k, False: 10.3k]
  ------------------
 1611|  25.1k|                        querysep,
 1612|  25.1k|                        u->query ? u->query : "",
  ------------------
  |  Branch (1612:25): [True: 1.46k, False: 23.6k]
  ------------------
 1613|  25.1k|                        fragmentsep,
 1614|  25.1k|                        u->fragment ? u->fragment : "");
  ------------------
  |  Branch (1614:25): [True: 783, False: 24.3k]
  ------------------
 1615|  25.1k|    curlx_free(allochost);
  ------------------
  |  | 1482|  25.1k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1616|  25.1k|  }
 1617|  25.1k|  if(!url)
  ------------------
  |  Branch (1617:6): [True: 0, False: 25.1k]
  ------------------
 1618|      0|    return CURLUE_OUT_OF_MEMORY;
 1619|  25.1k|  *part = url;
 1620|  25.1k|  return CURLUE_OK;
 1621|  25.1k|}
urlapi.c:file_url:
 1499|     29|{
 1500|     29|  char *url = curl_maprintf("file://%s%s%s%s%s",
 1501|     29|                            u->path, querysep, u->query ? u->query : "",
  ------------------
  |  Branch (1501:48): [True: 3, False: 26]
  ------------------
 1502|     29|                            fragmentsep, u->fragment ? u->fragment : "");
  ------------------
  |  Branch (1502:42): [True: 5, False: 24]
  ------------------
 1503|     29|  if(!url)
  ------------------
  |  Branch (1503:6): [True: 0, False: 29]
  ------------------
 1504|      0|    return CURLUE_OUT_OF_MEMORY;
 1505|       |
 1506|     29|  *part = url;
 1507|     29|  return CURLUE_OK;
 1508|     29|}
urlapi.c:urlget_format:
 1429|  45.7k|{
 1430|  45.7k|  CURLUcode uc = CURLUE_OK;
 1431|  45.7k|  size_t partlen = strlen(ptr);
 1432|  45.7k|  bool urldecode = (flags & CURLU_URLDECODE) ? 1 : 0;
  ------------------
  |  |   94|  45.7k|#define CURLU_URLDECODE (1 << 6)          /* URL decode on get */
  ------------------
  |  Branch (1432:20): [True: 0, False: 45.7k]
  ------------------
 1433|  45.7k|  bool urlencode = (flags & CURLU_URLENCODE) ? 1 : 0;
  ------------------
  |  |   95|  45.7k|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
  |  Branch (1433:20): [True: 14.3k, False: 31.4k]
  ------------------
 1434|  45.7k|  bool punycode = (flags & CURLU_PUNYCODE) && (what == CURLUPART_HOST);
  ------------------
  |  |  101|  45.7k|#define CURLU_PUNYCODE (1 << 12)          /* get the hostname in punycode */
  ------------------
  |  Branch (1434:19): [True: 0, False: 45.7k]
  |  Branch (1434:47): [True: 0, False: 0]
  ------------------
 1435|  45.7k|  bool depunyfy = (flags & CURLU_PUNY2IDN) && (what == CURLUPART_HOST);
  ------------------
  |  |  102|  45.7k|#define CURLU_PUNY2IDN (1 << 13)          /* punycode => IDN conversion */
  ------------------
  |  Branch (1435:19): [True: 0, False: 45.7k]
  |  Branch (1435:47): [True: 0, False: 0]
  ------------------
 1436|  45.7k|  char *part = curlx_memdup0(ptr, partlen);
 1437|  45.7k|  *partp = NULL;
 1438|  45.7k|  if(!part)
  ------------------
  |  Branch (1438:6): [True: 0, False: 45.7k]
  ------------------
 1439|      0|    return CURLUE_OUT_OF_MEMORY;
 1440|  45.7k|  if(plusdecode) {
  ------------------
  |  Branch (1440:6): [True: 0, False: 45.7k]
  ------------------
 1441|       |    /* convert + to space */
 1442|      0|    char *plus = part;
 1443|      0|    size_t i = 0;
 1444|      0|    for(i = 0; i < partlen; ++plus, i++) {
  ------------------
  |  Branch (1444:16): [True: 0, False: 0]
  ------------------
 1445|      0|      if(*plus == '+')
  ------------------
  |  Branch (1445:10): [True: 0, False: 0]
  ------------------
 1446|      0|        *plus = ' ';
 1447|      0|    }
 1448|      0|  }
 1449|  45.7k|  if(urldecode) {
  ------------------
  |  Branch (1449:6): [True: 0, False: 45.7k]
  ------------------
 1450|      0|    char *decoded;
 1451|      0|    size_t dlen;
 1452|       |    /* this unconditional rejection of control bytes is documented API
 1453|       |       behavior */
 1454|      0|    CURLcode result = Curl_urldecode(part, partlen, &decoded, &dlen,
 1455|      0|                                     REJECT_CTRL);
 1456|      0|    curlx_free(part);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1457|      0|    if(result)
  ------------------
  |  Branch (1457:8): [True: 0, False: 0]
  ------------------
 1458|      0|      return CURLUE_URLDECODE;
 1459|      0|    part = decoded;
 1460|      0|    partlen = dlen;
 1461|      0|  }
 1462|  45.7k|  if(urlencode) {
  ------------------
  |  Branch (1462:6): [True: 14.3k, False: 31.4k]
  ------------------
 1463|  14.3k|    struct dynbuf enc;
 1464|  14.3k|    curlx_dyn_init(&enc, CURL_MAX_INPUT_LENGTH);
  ------------------
  |  |   45|  14.3k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
 1465|  14.3k|    uc = urlencode_str(&enc, part, partlen, TRUE, what == CURLUPART_QUERY ?
  ------------------
  |  | 1053|  14.3k|#define TRUE true
  ------------------
  |  Branch (1465:51): [True: 0, False: 14.3k]
  ------------------
 1466|  14.3k|                       QUERY_YES : QUERY_NO);
  ------------------
  |  |   54|      0|#define QUERY_YES     4
  ------------------
                                     QUERY_YES : QUERY_NO);
  ------------------
  |  |   52|  28.7k|#define QUERY_NO      2
  ------------------
 1467|  14.3k|    curlx_free(part);
  ------------------
  |  | 1482|  14.3k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1468|  14.3k|    if(uc)
  ------------------
  |  Branch (1468:8): [True: 0, False: 14.3k]
  ------------------
 1469|      0|      return uc;
 1470|  14.3k|    part = curlx_dyn_ptr(&enc);
 1471|  14.3k|  }
 1472|  31.4k|  else if(punycode) {
  ------------------
  |  Branch (1472:11): [True: 0, False: 31.4k]
  ------------------
 1473|      0|    if(!Curl_is_ASCII_name(u->host)) {
  ------------------
  |  Branch (1473:8): [True: 0, False: 0]
  ------------------
 1474|      0|      char *punyversion = NULL;
 1475|      0|      uc = host_decode(part, &punyversion);
 1476|      0|      curlx_free(part);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1477|      0|      if(uc)
  ------------------
  |  Branch (1477:10): [True: 0, False: 0]
  ------------------
 1478|      0|        return uc;
 1479|      0|      part = punyversion;
 1480|      0|    }
 1481|      0|  }
 1482|  31.4k|  else if(depunyfy) {
  ------------------
  |  Branch (1482:11): [True: 0, False: 31.4k]
  ------------------
 1483|      0|    if(Curl_is_ASCII_name(u->host)) {
  ------------------
  |  Branch (1483:8): [True: 0, False: 0]
  ------------------
 1484|      0|      char *unpunified = NULL;
 1485|      0|      uc = host_encode(part, &unpunified);
 1486|      0|      curlx_free(part);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1487|      0|      if(uc)
  ------------------
  |  Branch (1487:10): [True: 0, False: 0]
  ------------------
 1488|      0|        return uc;
 1489|      0|      part = unpunified;
 1490|      0|    }
 1491|      0|  }
 1492|  45.7k|  *partp = part;
 1493|  45.7k|  return CURLUE_OK;
 1494|  45.7k|}
urlapi.c:urlset_clear:
 1824|  2.55k|{
 1825|  2.55k|  switch(what) {
 1826|      0|  case CURLUPART_URL:
  ------------------
  |  Branch (1826:3): [True: 0, False: 2.55k]
  ------------------
 1827|      0|    free_urlhandle(u);
 1828|      0|    memset(u, 0, sizeof(struct Curl_URL));
 1829|      0|    break;
 1830|      0|  case CURLUPART_SCHEME:
  ------------------
  |  Branch (1830:3): [True: 0, False: 2.55k]
  ------------------
 1831|      0|    curlx_safefree(u->scheme);
  ------------------
  |  | 1340|      0|  do {                      \
  |  | 1341|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|      0|    (ptr) = NULL;           \
  |  | 1343|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1832|      0|    u->guessed_scheme = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1833|      0|    break;
 1834|    851|  case CURLUPART_USER:
  ------------------
  |  Branch (1834:3): [True: 851, False: 1.70k]
  ------------------
 1835|    851|    curlx_safefree(u->user);
  ------------------
  |  | 1340|    851|  do {                      \
  |  | 1341|    851|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|    851|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|    851|    (ptr) = NULL;           \
  |  | 1343|    851|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 851]
  |  |  ------------------
  ------------------
 1836|    851|    break;
 1837|    851|  case CURLUPART_PASSWORD:
  ------------------
  |  Branch (1837:3): [True: 851, False: 1.70k]
  ------------------
 1838|    851|    curlx_strzero(u->password);
 1839|    851|    curlx_safefree(u->password);
  ------------------
  |  | 1340|    851|  do {                      \
  |  | 1341|    851|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|    851|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|    851|    (ptr) = NULL;           \
  |  | 1343|    851|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 851]
  |  |  ------------------
  ------------------
 1840|    851|    break;
 1841|      0|  case CURLUPART_OPTIONS:
  ------------------
  |  Branch (1841:3): [True: 0, False: 2.55k]
  ------------------
 1842|      0|    curlx_safefree(u->options);
  ------------------
  |  | 1340|      0|  do {                      \
  |  | 1341|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|      0|    (ptr) = NULL;           \
  |  | 1343|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1843|      0|    break;
 1844|      0|  case CURLUPART_HOST:
  ------------------
  |  Branch (1844:3): [True: 0, False: 2.55k]
  ------------------
 1845|      0|    curlx_safefree(u->host);
  ------------------
  |  | 1340|      0|  do {                      \
  |  | 1341|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|      0|    (ptr) = NULL;           \
  |  | 1343|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1846|      0|    break;
 1847|      0|  case CURLUPART_ZONEID:
  ------------------
  |  Branch (1847:3): [True: 0, False: 2.55k]
  ------------------
 1848|      0|    curlx_safefree(u->zoneid);
  ------------------
  |  | 1340|      0|  do {                      \
  |  | 1341|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|      0|    (ptr) = NULL;           \
  |  | 1343|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1849|      0|    break;
 1850|      0|  case CURLUPART_PORT:
  ------------------
  |  Branch (1850:3): [True: 0, False: 2.55k]
  ------------------
 1851|      0|    u->portnum = 0;
 1852|      0|    u->port_present = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1853|      0|    break;
 1854|      0|  case CURLUPART_PATH:
  ------------------
  |  Branch (1854:3): [True: 0, False: 2.55k]
  ------------------
 1855|      0|    curlx_safefree(u->path);
  ------------------
  |  | 1340|      0|  do {                      \
  |  | 1341|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|      0|    (ptr) = NULL;           \
  |  | 1343|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1856|      0|    break;
 1857|      0|  case CURLUPART_QUERY:
  ------------------
  |  Branch (1857:3): [True: 0, False: 2.55k]
  ------------------
 1858|      0|    curlx_safefree(u->query);
  ------------------
  |  | 1340|      0|  do {                      \
  |  | 1341|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|      0|    (ptr) = NULL;           \
  |  | 1343|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1859|      0|    u->query_present = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1860|      0|    break;
 1861|    851|  case CURLUPART_FRAGMENT:
  ------------------
  |  Branch (1861:3): [True: 851, False: 1.70k]
  ------------------
 1862|    851|    curlx_safefree(u->fragment);
  ------------------
  |  | 1340|    851|  do {                      \
  |  | 1341|    851|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|    851|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|    851|    (ptr) = NULL;           \
  |  | 1343|    851|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 851]
  |  |  ------------------
  ------------------
 1863|    851|    u->fragment_present = FALSE;
  ------------------
  |  | 1056|    851|#define FALSE false
  ------------------
 1864|    851|    break;
 1865|      0|  default:
  ------------------
  |  Branch (1865:3): [True: 0, False: 2.55k]
  ------------------
 1866|      0|    return CURLUE_UNKNOWN_PART;
 1867|  2.55k|  }
 1868|  2.55k|  return CURLUE_OK;
 1869|  2.55k|}
urlapi.c:set_url:
 1771|  26.3k|{
 1772|       |  /*
 1773|       |   * Allow a new URL to replace the existing (if any) contents.
 1774|       |   *
 1775|       |   * If the existing contents is enough for a URL, allow a relative URL to
 1776|       |   * replace it.
 1777|       |   */
 1778|  26.3k|  CURLUcode uc;
 1779|  26.3k|  char *oldurl = NULL;
 1780|       |
 1781|  26.3k|  if(!part_size) {
  ------------------
  |  Branch (1781:6): [True: 0, False: 26.3k]
  ------------------
 1782|       |    /* a blank URL is not a valid URL unless we already have a complete one
 1783|       |       and this is a redirect */
 1784|      0|    uc = curl_url_get(u, CURLUPART_URL, &oldurl, flags);
 1785|      0|    if(!uc) {
  ------------------
  |  Branch (1785:8): [True: 0, False: 0]
  ------------------
 1786|       |      /* success, meaning the "" is a fine relative URL, and the new URL
 1787|       |         inherits scheme/authority/path/query, but not fragment, from the
 1788|       |         existing URL (RFC 3986 section 5.2.2) */
 1789|      0|      curlx_safefree(u->fragment);
  ------------------
  |  | 1340|      0|  do {                      \
  |  | 1341|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|      0|    (ptr) = NULL;           \
  |  | 1343|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1790|      0|      u->fragment_present = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1791|      0|      curlx_free(oldurl);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1792|      0|      return CURLUE_OK;
 1793|      0|    }
 1794|      0|    if(uc == CURLUE_OUT_OF_MEMORY)
  ------------------
  |  Branch (1794:8): [True: 0, False: 0]
  ------------------
 1795|      0|      return uc;
 1796|      0|    return CURLUE_MALFORMED_INPUT;
 1797|      0|  }
 1798|       |
 1799|       |  /* if the new URL is absolute replace the existing with the new. */
 1800|  26.3k|  if(Curl_is_absolute_url(url, NULL, 0,
  ------------------
  |  Branch (1800:6): [True: 21.8k, False: 4.57k]
  ------------------
 1801|  26.3k|                          flags & (CURLU_GUESS_SCHEME | CURLU_DEFAULT_SCHEME)))
  ------------------
  |  |   97|  26.3k|#define CURLU_GUESS_SCHEME (1 << 9)       /* legacy curl-style guessing */
  ------------------
                                        flags & (CURLU_GUESS_SCHEME | CURLU_DEFAULT_SCHEME)))
  ------------------
  |  |   89|  26.3k|#define CURLU_DEFAULT_SCHEME (1 << 2)     /* return default scheme if
  ------------------
 1802|  21.8k|    return parseurl_and_replace(url, u, flags);
 1803|       |
 1804|       |  /* if the old URL is incomplete (we cannot get an absolute URL in
 1805|       |     'oldurl'), replace the existing with the new.
 1806|       |     Always include "scheme://" to make the URL "complete" */
 1807|       |  /* Preserve empty query/fragment separators: they affect where relative
 1808|       |     references splice into the base URL. */
 1809|  4.57k|  uc = curl_url_get(u, CURLUPART_URL, &oldurl,
 1810|  4.57k|                    (flags & ~CURLU_NO_GUESS_SCHEME) | CURLU_GET_EMPTY);
  ------------------
  |  |  106|  4.57k|#define CURLU_NO_GUESS_SCHEME (1 << 15)   /* for get, do not accept a guess */
  ------------------
                                  (flags & ~CURLU_NO_GUESS_SCHEME) | CURLU_GET_EMPTY);
  ------------------
  |  |  103|  4.57k|#define CURLU_GET_EMPTY (1 << 14)         /* allow empty queries and fragments
  ------------------
 1811|  4.57k|  if(uc == CURLUE_OUT_OF_MEMORY)
  ------------------
  |  Branch (1811:6): [True: 0, False: 4.57k]
  ------------------
 1812|      0|    return uc;
 1813|  4.57k|  else if(uc)
  ------------------
  |  Branch (1813:11): [True: 0, False: 4.57k]
  ------------------
 1814|      0|    return parseurl_and_replace(url, u, flags);
 1815|       |
 1816|  4.57k|  DEBUGASSERT(oldurl); /* it is set here */
  ------------------
  |  | 1083|  4.57k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1816:3): [True: 0, False: 4.57k]
  |  Branch (1816:3): [True: 4.57k, False: 0]
  ------------------
 1817|       |  /* apply the relative part to create a new URL */
 1818|  4.57k|  uc = redirect_url(oldurl, url, u, flags);
 1819|  4.57k|  curlx_free(oldurl);
  ------------------
  |  | 1482|  4.57k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1820|  4.57k|  return uc;
 1821|  4.57k|}
urlapi.c:parseurl_and_replace:
 1264|  26.3k|{
 1265|  26.3k|  CURLUcode ures;
 1266|  26.3k|  CURLU tmpurl;
 1267|  26.3k|  memset(&tmpurl, 0, sizeof(tmpurl));
 1268|  26.3k|  ures = parseurl(url, &tmpurl, flags);
 1269|  26.3k|  if(!ures) {
  ------------------
  |  Branch (1269:6): [True: 25.8k, False: 560]
  ------------------
 1270|  25.8k|    free_urlhandle(u);
 1271|  25.8k|    *u = tmpurl;
 1272|  25.8k|  }
 1273|  26.3k|  return ures;
 1274|  26.3k|}
urlapi.c:parseurl:
 1174|  26.3k|{
 1175|  26.3k|  const char *path;
 1176|  26.3k|  size_t pathlen;
 1177|  26.3k|  char schemebuf[MAX_SCHEME_LEN + 1];
 1178|  26.3k|  size_t schemelen = 0;
 1179|  26.3k|  size_t urllen;
 1180|  26.3k|  CURLUcode ures = CURLUE_OK;
 1181|  26.3k|  struct dynbuf host;
 1182|  26.3k|  bool is_file = FALSE;
  ------------------
  |  | 1056|  26.3k|#define FALSE false
  ------------------
 1183|       |
 1184|  26.3k|  DEBUGASSERT(url);
  ------------------
  |  | 1083|  26.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1184:3): [True: 0, False: 26.3k]
  |  Branch (1184:3): [True: 26.3k, False: 0]
  ------------------
 1185|       |
 1186|  26.3k|  curlx_dyn_init(&host, CURL_MAX_INPUT_LENGTH);
  ------------------
  |  |   45|  26.3k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
 1187|       |
 1188|  26.3k|  ures = Curl_junkscan(url, &urllen, !!(flags & CURLU_ALLOW_SPACE));
  ------------------
  |  |  100|  26.3k|#define CURLU_ALLOW_SPACE (1 << 11)       /* Allow spaces in the URL */
  ------------------
 1189|  26.3k|  if(ures)
  ------------------
  |  Branch (1189:6): [True: 108, False: 26.2k]
  ------------------
 1190|    108|    goto fail;
 1191|       |
 1192|  26.2k|  schemelen = Curl_is_absolute_url(url, schemebuf, sizeof(schemebuf),
 1193|  26.2k|                                   flags & (CURLU_GUESS_SCHEME |
  ------------------
  |  |   97|  26.2k|#define CURLU_GUESS_SCHEME (1 << 9)       /* legacy curl-style guessing */
  ------------------
 1194|  26.2k|                                            CURLU_DEFAULT_SCHEME));
  ------------------
  |  |   89|  26.2k|#define CURLU_DEFAULT_SCHEME (1 << 2)     /* return default scheme if
  ------------------
 1195|       |
 1196|       |  /* handle the file: scheme */
 1197|  26.2k|  if(schemelen && !strcmp(schemebuf, "file")) {
  ------------------
  |  Branch (1197:6): [True: 26.2k, False: 0]
  |  Branch (1197:19): [True: 43, False: 26.2k]
  ------------------
 1198|     43|    is_file = TRUE;
  ------------------
  |  | 1053|     43|#define TRUE true
  ------------------
 1199|     43|    ures = parse_file(url, urllen, u, &path, &pathlen);
 1200|     43|  }
 1201|  26.2k|  else {
 1202|  26.2k|    const char *hostp = NULL;
 1203|  26.2k|    size_t hostlen;
 1204|  26.2k|    ures = parse_scheme(url, u, schemebuf, schemelen, flags, &hostp);
 1205|  26.2k|    if(ures)
  ------------------
  |  Branch (1205:8): [True: 41, False: 26.1k]
  ------------------
 1206|     41|      goto fail;
 1207|       |
 1208|       |    /* find the end of the hostname + port number */
 1209|  26.1k|    hostlen = strcspn(hostp, "/?#");
 1210|  26.1k|    path = &hostp[hostlen];
 1211|       |
 1212|       |    /* this pathlen also contains the query and the fragment */
 1213|  26.1k|    pathlen = urllen - (path - url);
 1214|  26.1k|    if(hostlen) {
  ------------------
  |  Branch (1214:8): [True: 26.1k, False: 40]
  ------------------
 1215|  26.1k|      ures = parse_authority(u, hostp, hostlen, flags, &host, !!u->scheme);
 1216|  26.1k|      if(!ures && (flags & CURLU_GUESS_SCHEME) && !u->scheme)
  ------------------
  |  |   97|  25.7k|#define CURLU_GUESS_SCHEME (1 << 9)       /* legacy curl-style guessing */
  ------------------
  |  Branch (1216:10): [True: 25.7k, False: 358]
  |  Branch (1216:19): [True: 14.4k, False: 11.3k]
  |  Branch (1216:51): [True: 0, False: 14.4k]
  ------------------
 1217|      0|        ures = guess_scheme(u, &host);
 1218|  26.1k|    }
 1219|     40|    else if(flags & CURLU_NO_AUTHORITY) {
  ------------------
  |  |   98|     40|#define CURLU_NO_AUTHORITY (1 << 10)      /* Allow empty authority when the
  ------------------
  |  Branch (1219:13): [True: 0, False: 40]
  ------------------
 1220|       |      /* allowed to be empty. */
 1221|      0|      if(curlx_dyn_add(&host, ""))
  ------------------
  |  Branch (1221:10): [True: 0, False: 0]
  ------------------
 1222|      0|        ures = CURLUE_OUT_OF_MEMORY;
 1223|      0|    }
 1224|     40|    else
 1225|     40|      ures = CURLUE_NO_HOST;
 1226|  26.1k|  }
 1227|  26.2k|  if(!ures) {
  ------------------
  |  Branch (1227:6): [True: 25.8k, False: 411]
  ------------------
 1228|       |    /* The path might at this point contain a fragment and/or a query to
 1229|       |       handle */
 1230|  25.8k|    const char *fragment = strchr(path, '#');
 1231|  25.8k|    if(fragment) {
  ------------------
  |  Branch (1231:8): [True: 919, False: 24.8k]
  ------------------
 1232|    919|      size_t fraglen = pathlen - (fragment - path);
 1233|    919|      ures = handle_fragment(u, fragment, fraglen, flags);
 1234|       |      /* after this, pathlen still contains the query */
 1235|    919|      pathlen -= fraglen;
 1236|    919|    }
 1237|  25.8k|  }
 1238|  26.2k|  if(!ures) {
  ------------------
  |  Branch (1238:6): [True: 25.8k, False: 411]
  ------------------
 1239|  25.8k|    const char *query = memchr(path, '?', pathlen);
 1240|  25.8k|    if(query) {
  ------------------
  |  Branch (1240:8): [True: 1.53k, False: 24.2k]
  ------------------
 1241|  1.53k|      size_t qlen = pathlen - (query - path);
 1242|  1.53k|      ures = handle_query(u, query, qlen, flags);
 1243|  1.53k|      pathlen -= qlen;
 1244|  1.53k|    }
 1245|  25.8k|  }
 1246|  26.2k|  if(!ures)
  ------------------
  |  Branch (1246:6): [True: 25.8k, False: 411]
  ------------------
 1247|       |    /* the fragment and query parts are trimmed off from the path */
 1248|  25.8k|    ures = handle_path(u, path, pathlen, flags, is_file);
 1249|  26.2k|  if(!ures) {
  ------------------
  |  Branch (1249:6): [True: 25.8k, False: 411]
  ------------------
 1250|  25.8k|    u->host = curlx_dyn_ptr(&host);
 1251|  25.8k|    return CURLUE_OK;
 1252|  25.8k|  }
 1253|    560|fail:
 1254|    560|  curlx_dyn_free(&host);
 1255|    560|  free_urlhandle(u);
 1256|    560|  return ures;
 1257|  26.2k|}
urlapi.c:parse_scheme:
  995|  26.2k|{
  996|       |  /* clear path */
  997|  26.2k|  const char *schemep = NULL;
  998|       |
  999|  26.2k|  if(schemelen) {
  ------------------
  |  Branch (999:6): [True: 26.2k, False: 0]
  ------------------
 1000|  26.2k|    int num_slashes = 0;
 1001|  26.2k|    const char *p = &url[schemelen + 1];
 1002|  26.2k|    if(!Curl_get_scheme(schemebuf) && !(flags & CURLU_NON_SUPPORT_SCHEME))
  ------------------
  |  |   91|     52|#define CURLU_NON_SUPPORT_SCHEME (1 << 3) /* allow non-supported scheme */
  ------------------
  |  Branch (1002:8): [True: 52, False: 26.1k]
  |  Branch (1002:39): [True: 23, False: 29]
  ------------------
 1003|     23|      return CURLUE_UNSUPPORTED_SCHEME;
 1004|       |
 1005|  26.2k|    if(!ISSLASH(*p))
  ------------------
  |  |  751|  26.2k|#define ISSLASH(x) ((x) == '/')
  ------------------
  |  Branch (1005:8): [True: 13, False: 26.1k]
  ------------------
 1006|       |      /* less than one */
 1007|     13|      return CURLUE_BAD_SLASHES;
 1008|  26.1k|    if((flags & CURLU_NO_AUTHORITY)) {
  ------------------
  |  |   98|  26.1k|#define CURLU_NO_AUTHORITY (1 << 10)      /* Allow empty authority when the
  ------------------
  |  Branch (1008:8): [True: 0, False: 26.1k]
  ------------------
 1009|      0|      while(ISSLASH(*p) && (num_slashes < 2)) {
  ------------------
  |  |  751|      0|#define ISSLASH(x) ((x) == '/')
  |  |  ------------------
  |  |  |  Branch (751:20): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1009:28): [True: 0, False: 0]
  ------------------
 1010|      0|        p++;
 1011|      0|        num_slashes++;
 1012|      0|      }
 1013|      0|    }
 1014|  26.1k|    else {
 1015|  78.6k|      while(ISSLASH(*p) && (num_slashes < 4)) {
  ------------------
  |  |  751|   157k|#define ISSLASH(x) ((x) == '/')
  |  |  ------------------
  |  |  |  Branch (751:20): [True: 52.4k, False: 26.1k]
  |  |  ------------------
  ------------------
  |  Branch (1015:28): [True: 52.4k, False: 0]
  ------------------
 1016|  52.4k|        p++;
 1017|  52.4k|        num_slashes++;
 1018|  52.4k|      }
 1019|  26.1k|      if(num_slashes > 3)
  ------------------
  |  Branch (1019:10): [True: 5, False: 26.1k]
  ------------------
 1020|      5|        return CURLUE_BAD_SLASHES;
 1021|  26.1k|    }
 1022|       |
 1023|  26.1k|    schemep = schemebuf;
 1024|  26.1k|    *hostpp = p; /* hostname starts here */
 1025|  26.1k|  }
 1026|      0|  else {
 1027|       |    /* no scheme! */
 1028|       |
 1029|      0|    if(!(flags & (CURLU_DEFAULT_SCHEME | CURLU_GUESS_SCHEME)))
  ------------------
  |  |   89|      0|#define CURLU_DEFAULT_SCHEME (1 << 2)     /* return default scheme if
  ------------------
                  if(!(flags & (CURLU_DEFAULT_SCHEME | CURLU_GUESS_SCHEME)))
  ------------------
  |  |   97|      0|#define CURLU_GUESS_SCHEME (1 << 9)       /* legacy curl-style guessing */
  ------------------
  |  Branch (1029:8): [True: 0, False: 0]
  ------------------
 1030|      0|      return CURLUE_BAD_SCHEME;
 1031|       |
 1032|      0|    if(flags & CURLU_DEFAULT_SCHEME)
  ------------------
  |  |   89|      0|#define CURLU_DEFAULT_SCHEME (1 << 2)     /* return default scheme if
  ------------------
  |  Branch (1032:8): [True: 0, False: 0]
  ------------------
 1033|      0|      schemep = DEFAULT_SCHEME;
  ------------------
  |  |   70|      0|#define DEFAULT_SCHEME "https"
  ------------------
 1034|       |
 1035|       |    /*
 1036|       |     * The URL was badly formatted, let's try without scheme specified.
 1037|       |     */
 1038|      0|    *hostpp = url;
 1039|      0|  }
 1040|       |
 1041|  26.1k|  if(schemep) {
  ------------------
  |  Branch (1041:6): [True: 26.1k, False: 0]
  ------------------
 1042|  26.1k|    u->scheme = curlx_strdup(schemep);
  ------------------
  |  | 1476|  26.1k|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
 1043|  26.1k|    if(!u->scheme)
  ------------------
  |  Branch (1043:8): [True: 0, False: 26.1k]
  ------------------
 1044|      0|      return CURLUE_OUT_OF_MEMORY;
 1045|  26.1k|  }
 1046|  26.1k|  return CURLUE_OK;
 1047|  26.1k|}
urlapi.c:handle_fragment:
 1079|    919|{
 1080|    919|  CURLUcode ures;
 1081|    919|  u->fragment_present = TRUE;
  ------------------
  |  | 1053|    919|#define TRUE true
  ------------------
 1082|    919|  if(fraglen > 1) {
  ------------------
  |  Branch (1082:6): [True: 870, False: 49]
  ------------------
 1083|       |    /* skip the leading '#' in the copy but include the null-terminator */
 1084|    870|    if(flags & CURLU_URLENCODE) {
  ------------------
  |  |   95|    870|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
  |  Branch (1084:8): [True: 476, False: 394]
  ------------------
 1085|    476|      struct dynbuf enc;
 1086|    476|      curlx_dyn_init(&enc, CURL_MAX_INPUT_LENGTH);
  ------------------
  |  |   45|    476|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
 1087|    476|      ures = urlencode_str(&enc, fragment + 1, fraglen - 1, TRUE, QUERY_NO);
  ------------------
  |  | 1053|    476|#define TRUE true
  ------------------
                    ures = urlencode_str(&enc, fragment + 1, fraglen - 1, TRUE, QUERY_NO);
  ------------------
  |  |   52|    476|#define QUERY_NO      2
  ------------------
 1088|    476|      if(ures)
  ------------------
  |  Branch (1088:10): [True: 0, False: 476]
  ------------------
 1089|      0|        return ures;
 1090|    476|      u->fragment = curlx_dyn_ptr(&enc);
 1091|    476|    }
 1092|    394|    else {
 1093|    394|      u->fragment = curlx_memdup0(fragment + 1, fraglen - 1);
 1094|    394|      if(!u->fragment)
  ------------------
  |  Branch (1094:10): [True: 0, False: 394]
  ------------------
 1095|      0|        return CURLUE_OUT_OF_MEMORY;
 1096|    394|    }
 1097|    870|  }
 1098|    919|  return CURLUE_OK;
 1099|    919|}
urlapi.c:handle_query:
 1103|  1.53k|{
 1104|  1.53k|  u->query_present = TRUE;
  ------------------
  |  | 1053|  1.53k|#define TRUE true
  ------------------
 1105|  1.53k|  if(qlen > 1) {
  ------------------
  |  Branch (1105:6): [True: 1.47k, False: 52]
  ------------------
 1106|  1.47k|    if(flags & CURLU_URLENCODE) {
  ------------------
  |  |   95|  1.47k|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
  |  Branch (1106:8): [True: 827, False: 651]
  ------------------
 1107|    827|      struct dynbuf enc;
 1108|    827|      CURLUcode ures;
 1109|    827|      curlx_dyn_init(&enc, CURL_MAX_INPUT_LENGTH);
  ------------------
  |  |   45|    827|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
 1110|       |      /* skip the leading question mark */
 1111|    827|      ures = urlencode_str(&enc, query + 1, qlen - 1, TRUE, QUERY_YES);
  ------------------
  |  | 1053|    827|#define TRUE true
  ------------------
                    ures = urlencode_str(&enc, query + 1, qlen - 1, TRUE, QUERY_YES);
  ------------------
  |  |   54|    827|#define QUERY_YES     4
  ------------------
 1112|    827|      if(ures)
  ------------------
  |  Branch (1112:10): [True: 0, False: 827]
  ------------------
 1113|      0|        return ures;
 1114|    827|      u->query = curlx_dyn_ptr(&enc);
 1115|    827|    }
 1116|    651|    else {
 1117|    651|      u->query = curlx_memdup0(query + 1, qlen - 1);
 1118|    651|      if(!u->query)
  ------------------
  |  Branch (1118:10): [True: 0, False: 651]
  ------------------
 1119|      0|        return CURLUE_OUT_OF_MEMORY;
 1120|    651|    }
 1121|  1.47k|  }
 1122|     52|  else {
 1123|       |    /* single byte query */
 1124|     52|    u->query = curlx_strdup("");
  ------------------
  |  | 1476|     52|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
 1125|     52|    if(!u->query)
  ------------------
  |  Branch (1125:8): [True: 0, False: 52]
  ------------------
 1126|      0|      return CURLUE_OUT_OF_MEMORY;
 1127|     52|  }
 1128|  1.53k|  return CURLUE_OK;
 1129|  1.53k|}
urlapi.c:handle_path:
 1134|  25.8k|{
 1135|  25.8k|  CURLUcode ures;
 1136|  25.8k|  if(pathlen && (flags & CURLU_URLENCODE)) {
  ------------------
  |  |   95|  17.1k|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
  |  Branch (1136:6): [True: 17.1k, False: 8.69k]
  |  Branch (1136:17): [True: 9.57k, False: 7.55k]
  ------------------
 1137|  9.57k|    struct dynbuf enc;
 1138|  9.57k|    curlx_dyn_init(&enc, CURL_MAX_INPUT_LENGTH);
  ------------------
  |  |   45|  9.57k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
 1139|  9.57k|    ures = urlencode_str(&enc, path, pathlen, TRUE, QUERY_NO);
  ------------------
  |  | 1053|  9.57k|#define TRUE true
  ------------------
                  ures = urlencode_str(&enc, path, pathlen, TRUE, QUERY_NO);
  ------------------
  |  |   52|  9.57k|#define QUERY_NO      2
  ------------------
 1140|  9.57k|    if(ures)
  ------------------
  |  Branch (1140:8): [True: 0, False: 9.57k]
  ------------------
 1141|      0|      return ures;
 1142|  9.57k|    pathlen = curlx_dyn_len(&enc);
 1143|  9.57k|    path = u->path = curlx_dyn_ptr(&enc);
 1144|  9.57k|  }
 1145|       |
 1146|  25.8k|  if(pathlen >= (size_t)(1 + !is_file)) {
  ------------------
  |  Branch (1146:6): [True: 15.1k, False: 10.6k]
  ------------------
 1147|       |    /* paths for file:// scheme can be one byte, others need to be two */
 1148|  15.1k|    if(!u->path) {
  ------------------
  |  Branch (1148:8): [True: 7.06k, False: 8.13k]
  ------------------
 1149|  7.06k|      u->path = curlx_memdup0(path, pathlen);
 1150|  7.06k|      if(!u->path)
  ------------------
  |  Branch (1150:10): [True: 0, False: 7.06k]
  ------------------
 1151|      0|        return CURLUE_OUT_OF_MEMORY;
 1152|  7.06k|      path = u->path;
 1153|  7.06k|    }
 1154|  8.13k|    else if(flags & CURLU_URLENCODE)
  ------------------
  |  |   95|  8.13k|#define CURLU_URLENCODE (1 << 7)          /* URL encode on set */
  ------------------
  |  Branch (1154:13): [True: 8.13k, False: 0]
  ------------------
 1155|       |      /* it might have encoded more than the path so cut it */
 1156|  8.13k|      u->path[pathlen] = 0;
 1157|       |
 1158|  15.1k|    if(!(flags & CURLU_PATH_AS_IS)) {
  ------------------
  |  |   92|  15.1k|#define CURLU_PATH_AS_IS (1 << 4)         /* leave dot sequences */
  ------------------
  |  Branch (1158:8): [True: 15.1k, False: 0]
  ------------------
 1159|       |      /* remove ../ and ./ sequences according to RFC3986 */
 1160|  15.1k|      char *dedot;
 1161|  15.1k|      int err = dedotdotify(path, pathlen, &dedot);
 1162|  15.1k|      if(err)
  ------------------
  |  Branch (1162:10): [True: 0, False: 15.1k]
  ------------------
 1163|      0|        return CURLUE_OUT_OF_MEMORY;
 1164|  15.1k|      if(dedot) {
  ------------------
  |  Branch (1164:10): [True: 286, False: 14.9k]
  ------------------
 1165|    286|        curlx_free(u->path);
  ------------------
  |  | 1482|    286|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1166|    286|        u->path = dedot;
 1167|    286|      }
 1168|  15.1k|    }
 1169|  15.1k|  }
 1170|  25.8k|  return CURLUE_OK;
 1171|  25.8k|}
urlapi.c:redirect_url:
 1281|  4.57k|{
 1282|  4.57k|  struct dynbuf urlbuf;
 1283|  4.57k|  bool host_changed = FALSE;
  ------------------
  |  | 1056|  4.57k|#define FALSE false
  ------------------
 1284|  4.57k|  const char *useurl = relurl;
 1285|  4.57k|  const char *cutoff = NULL;
 1286|  4.57k|  size_t prelen;
 1287|  4.57k|  CURLUcode uc;
 1288|       |  /* this can get here with a NULL u->scheme only if asked to use the default
 1289|       |     scheme, so allow fallback to that */
 1290|  4.57k|  const char *scheme = u->scheme ? u->scheme : DEFAULT_SCHEME;
  ------------------
  |  |   70|      0|#define DEFAULT_SCHEME "https"
  ------------------
  |  Branch (1290:24): [True: 4.57k, False: 0]
  ------------------
 1291|       |
 1292|       |  /* protsep points to the start of the hostname, after [scheme]:// */
 1293|  4.57k|  const char *protsep = base + strlen(scheme) + 3;
 1294|  4.57k|  DEBUGASSERT(base && relurl && u); /* all set here */
  ------------------
  |  | 1083|  4.57k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1294:3): [True: 0, False: 4.57k]
  |  Branch (1294:3): [True: 0, False: 0]
  |  Branch (1294:3): [True: 0, False: 0]
  |  Branch (1294:3): [True: 4.57k, False: 0]
  |  Branch (1294:3): [True: 4.57k, False: 0]
  |  Branch (1294:3): [True: 4.57k, False: 0]
  ------------------
 1295|  4.57k|  if(!base)
  ------------------
  |  Branch (1295:6): [True: 0, False: 4.57k]
  ------------------
 1296|      0|    return CURLUE_MALFORMED_INPUT; /* should never happen */
 1297|       |
 1298|       |  /* handle different relative URL types */
 1299|  4.57k|  switch(relurl[0]) {
 1300|    116|  case '/':
  ------------------
  |  Branch (1300:3): [True: 116, False: 4.45k]
  ------------------
 1301|    116|    if(relurl[1] == '/') {
  ------------------
  |  Branch (1301:8): [True: 93, False: 23]
  ------------------
 1302|       |      /* protocol-relative URL: //example.com/path */
 1303|     93|      cutoff = protsep;
 1304|     93|      useurl = &relurl[2];
 1305|     93|      host_changed = TRUE;
  ------------------
  |  | 1053|     93|#define TRUE true
  ------------------
 1306|     93|    }
 1307|     23|    else
 1308|       |      /* absolute /path */
 1309|     23|      cutoff = strchr(protsep, '/');
 1310|    116|    break;
 1311|       |
 1312|    174|  case '#':
  ------------------
  |  Branch (1312:3): [True: 174, False: 4.40k]
  ------------------
 1313|       |    /* fragment-only change */
 1314|    174|    if(u->fragment_present)
  ------------------
  |  Branch (1314:8): [True: 148, False: 26]
  ------------------
 1315|    148|      cutoff = strchr(protsep, '#');
 1316|    174|    break;
 1317|       |
 1318|  4.28k|  default:
  ------------------
  |  Branch (1318:3): [True: 4.28k, False: 290]
  ------------------
 1319|       |    /* path or query-only change */
 1320|  4.28k|    if(u->query_present)
  ------------------
  |  Branch (1320:8): [True: 336, False: 3.94k]
  ------------------
 1321|       |      /* remove existing query */
 1322|    336|      cutoff = strchr(protsep, '?');
 1323|  3.94k|    else if(u->fragment_present)
  ------------------
  |  Branch (1323:13): [True: 77, False: 3.87k]
  ------------------
 1324|       |      /* Remove existing fragment */
 1325|     77|      cutoff = strchr(protsep, '#');
 1326|       |
 1327|  4.28k|    if(relurl[0] != '?') {
  ------------------
  |  Branch (1327:8): [True: 4.15k, False: 128]
  ------------------
 1328|       |      /* append a relative path after the last slash */
 1329|  4.15k|      cutoff = memrchr(protsep, '/',
 1330|  4.15k|                       cutoff ? (size_t)(cutoff - protsep) : strlen(protsep));
  ------------------
  |  Branch (1330:24): [True: 311, False: 3.84k]
  ------------------
 1331|  4.15k|      if(cutoff)
  ------------------
  |  Branch (1331:10): [True: 4.15k, False: 0]
  ------------------
 1332|  4.15k|        cutoff++; /* truncate after last slash */
 1333|  4.15k|    }
 1334|  4.28k|    break;
 1335|  4.57k|  }
 1336|       |
 1337|  4.57k|  prelen = cutoff ? (size_t)(cutoff - base) : strlen(base);
  ------------------
  |  Branch (1337:12): [True: 4.52k, False: 52]
  ------------------
 1338|       |
 1339|       |  /* build new URL */
 1340|  4.57k|  curlx_dyn_init(&urlbuf, CURL_MAX_INPUT_LENGTH);
  ------------------
  |  |   45|  4.57k|#define CURL_MAX_INPUT_LENGTH 8000000
  ------------------
 1341|       |
 1342|  4.57k|  if(!curlx_dyn_addn(&urlbuf, base, prelen) &&
  ------------------
  |  Branch (1342:6): [True: 4.57k, False: 0]
  ------------------
 1343|  4.57k|     !urlencode_str(&urlbuf, useurl, strlen(useurl), !host_changed,
  ------------------
  |  Branch (1343:6): [True: 4.57k, False: 0]
  ------------------
 1344|  4.57k|                    QUERY_NOT_YET)) {
  ------------------
  |  |   53|  4.57k|#define QUERY_NOT_YET 3 /* allow to change to query */
  ------------------
 1345|  4.57k|    uc = parseurl_and_replace(curlx_dyn_ptr(&urlbuf), u,
 1346|  4.57k|                              flags & ~U_CURLU_PATH_AS_IS);
  ------------------
  |  |   64|  4.57k|#define U_CURLU_PATH_AS_IS (unsigned int)CURLU_PATH_AS_IS
  |  |  ------------------
  |  |  |  |   92|  4.57k|#define CURLU_PATH_AS_IS (1 << 4)         /* leave dot sequences */
  |  |  ------------------
  ------------------
 1347|  4.57k|  }
 1348|      0|  else
 1349|      0|    uc = CURLUE_OUT_OF_MEMORY;
 1350|       |
 1351|  4.57k|  curlx_dyn_free(&urlbuf);
 1352|  4.57k|  return uc;
 1353|  4.57k|}

Curl_auth_digest_cleanup:
 1040|  40.0k|{
 1041|  40.0k|  Curl_peer_unlink(&digest->origin);
 1042|  40.0k|  Curl_creds_unlink(&digest->creds);
 1043|  40.0k|  curlx_safefree(digest->nonce);
  ------------------
  |  | 1340|  40.0k|  do {                      \
  |  | 1341|  40.0k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  40.0k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  40.0k|    (ptr) = NULL;           \
  |  | 1343|  40.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 40.0k]
  |  |  ------------------
  ------------------
 1044|  40.0k|  curlx_safefree(digest->cnonce);
  ------------------
  |  | 1340|  40.0k|  do {                      \
  |  | 1341|  40.0k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  40.0k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  40.0k|    (ptr) = NULL;           \
  |  | 1343|  40.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 40.0k]
  |  |  ------------------
  ------------------
 1045|  40.0k|  curlx_safefree(digest->realm);
  ------------------
  |  | 1340|  40.0k|  do {                      \
  |  | 1341|  40.0k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  40.0k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  40.0k|    (ptr) = NULL;           \
  |  | 1343|  40.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 40.0k]
  |  |  ------------------
  ------------------
 1046|  40.0k|  curlx_safefree(digest->opaque);
  ------------------
  |  | 1340|  40.0k|  do {                      \
  |  | 1341|  40.0k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  40.0k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  40.0k|    (ptr) = NULL;           \
  |  | 1343|  40.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 40.0k]
  |  |  ------------------
  ------------------
 1047|  40.0k|  curlx_safefree(digest->qop);
  ------------------
  |  | 1340|  40.0k|  do {                      \
  |  | 1341|  40.0k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  40.0k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  40.0k|    (ptr) = NULL;           \
  |  | 1343|  40.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 40.0k]
  |  |  ------------------
  ------------------
 1048|  40.0k|  curlx_safefree(digest->algorithm);
  ------------------
  |  | 1340|  40.0k|  do {                      \
  |  | 1341|  40.0k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  40.0k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  40.0k|    (ptr) = NULL;           \
  |  | 1343|  40.0k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 40.0k]
  |  |  ------------------
  ------------------
 1049|       |
 1050|  40.0k|  digest->nc = 0;
 1051|  40.0k|  digest->algo = ALGO_MD5; /* default algorithm */
  ------------------
  |  |   44|  40.0k|#define ALGO_MD5 0
  ------------------
 1052|  40.0k|  digest->stale = FALSE;   /* default means normal, not stale */
  ------------------
  |  | 1056|  40.0k|#define FALSE false
  ------------------
 1053|       |  digest->userhash = FALSE;
  ------------------
  |  | 1056|  40.0k|#define FALSE false
  ------------------
 1054|  40.0k|}

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:
  477|  9.97k|{
  478|  9.97k|  CURLcode result;
  479|  9.97k|  DEBUGASSERT(!multi->resolv_thrdq);
  ------------------
  |  | 1083|  9.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (479:3): [True: 0, False: 9.97k]
  |  Branch (479:3): [True: 9.97k, False: 0]
  ------------------
  480|  9.97k|  result = Curl_thrdq_create(&multi->resolv_thrdq, "DNS",
  481|  9.97k|                             min_threads, max_threads, idle_time_ms,
  482|  9.97k|                             async_thrdd_item_free,
  483|  9.97k|                             async_thrdd_item_process,
  484|  9.97k|                             async_thrdd_event,
  485|  9.97k|                             multi);
  486|  9.97k|#ifdef DEBUGBUILD
  487|  9.97k|  if(!result) {
  ------------------
  |  Branch (487:6): [True: 9.97k, False: 0]
  ------------------
  488|  9.97k|    const char *p = getenv("CURL_DBG_RESOLV_MAX_THREADS");
  489|  9.97k|    if(p) {
  ------------------
  |  Branch (489:8): [True: 0, False: 9.97k]
  ------------------
  490|      0|      curl_off_t l;
  491|      0|      if(!curlx_str_number(&p, &l, UINT32_MAX)) {
  ------------------
  |  Branch (491:10): [True: 0, False: 0]
  ------------------
  492|      0|        result = Curl_async_thrdd_multi_set_props(
  493|      0|          multi, min_threads, (uint32_t)l, idle_time_ms);
  494|      0|      }
  495|      0|    }
  496|  9.97k|  }
  497|  9.97k|#endif
  498|  9.97k|  return result;
  499|  9.97k|}
Curl_async_thrdd_multi_destroy:
  503|  9.97k|{
  504|  9.97k|  if(multi->resolv_thrdq) {
  ------------------
  |  Branch (504:6): [True: 9.97k, False: 0]
  ------------------
  505|  9.97k|#ifdef CURLVERBOSE
  506|  9.97k|    CURL_TRC_DNS(multi->admin, "destroy thread queue+pool, join=%d", join);
  ------------------
  |  |  168|  9.97k|  do {                                 \
  |  |  169|  9.97k|    if(CURL_TRC_DNS_is_verbose(data))  \
  |  |  ------------------
  |  |  |  |  137|  9.97k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_dns)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  9.97k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  19.9k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 9.97k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 9.97k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  19.9k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  9.97k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  170|  9.97k|      Curl_trc_dns(data, __VA_ARGS__); \
  |  |  171|  9.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (171:11): [Folded, False: 9.97k]
  |  |  ------------------
  ------------------
  507|  9.97k|    Curl_thrdq_trace(multi->resolv_thrdq, multi->admin);
  508|  9.97k|#endif
  509|  9.97k|    Curl_thrdq_destroy(multi->resolv_thrdq, join);
  510|       |    multi->resolv_thrdq = NULL;
  511|  9.97k|  }
  512|  9.97k|}
Curl_async_thrdd_multi_process:
  559|   153k|{
  560|   153k|  struct Curl_easy *data;
  561|   153k|  void *qitem;
  562|       |
  563|   153k|  while(!Curl_thrdq_recv(multi->resolv_thrdq, &qitem)) {
  ------------------
  |  Branch (563:9): [True: 0, False: 153k]
  ------------------
  564|       |    /* dispatch resolve result */
  565|      0|    struct async_thrdd_item *item = qitem;
  566|      0|    struct Curl_resolv_async *async = NULL;
  567|       |
  568|      0|    data = Curl_multi_get_easy(multi, item->mid);
  569|      0|    if(data)
  ------------------
  |  Branch (569:8): [True: 0, False: 0]
  ------------------
  570|      0|      async = Curl_async_get(data, item->resolv_id);
  571|      0|    if(async) {
  ------------------
  |  Branch (571:8): [True: 0, False: 0]
  ------------------
  572|      0|      struct async_thrdd_item **pdest = &async->thrdd.res_A;
  573|       |
  574|      0|#ifdef CURLRES_IPV6
  575|      0|      if(item->dns_queries & CURL_DNSQ_AAAA)
  ------------------
  |  |   52|      0|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  |  Branch (575:10): [True: 0, False: 0]
  ------------------
  576|      0|        pdest = &async->thrdd.res_AAAA;
  577|      0|#endif
  578|      0|      if(!*pdest) {
  ------------------
  |  Branch (578:10): [True: 0, False: 0]
  ------------------
  579|      0|        *pdest = item;
  580|      0|        item = NULL;
  581|      0|      }
  582|      0|      else
  583|      0|        DEBUGASSERT(0); /* should not receive duplicates here */
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (583:9): [Folded, False: 0]
  |  Branch (583:9): [Folded, False: 0]
  ------------------
  584|       |
  585|      0|      --async->queries_ongoing;
  586|      0|      Curl_multi_mark_dirty(data);
  587|      0|    }
  588|      0|    async_thrdd_item_free(item);
  589|      0|  }
  590|   153k|  VERBOSE(Curl_thrdq_trace(multi->resolv_thrdq, multi->admin));
  ------------------
  |  | 1617|   153k|#define VERBOSE(x) x
  ------------------
  591|   153k|}

Curl_conn_dns_add_addr_resolve:
  559|  10.1k|{
  560|       |  /* should only have address query bits */
  561|  10.1k|  DEBUGASSERT(!(dns_queries & ~CURL_DNSQ_ADDR));
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (561:3): [True: 0, False: 10.1k]
  |  Branch (561:3): [True: 10.1k, False: 0]
  ------------------
  562|  10.1k|  return cf_dns_add_resolve(data, conn, sockindex, peer,
  563|  10.1k|                            (dns_queries & CURL_DNSQ_ADDR), transport);
  ------------------
  |  |   55|  10.1k|#define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  ------------------
  |  |  |  |   51|  10.1k|#define CURL_DNSQ_A           (1U << 0)
  |  |  ------------------
  |  |               #define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  ------------------
  |  |  |  |   52|  10.1k|#define CURL_DNSQ_AAAA        (1U << 1)
  |  |  ------------------
  ------------------
  564|  10.1k|}
Curl_conn_dns_addr_result:
  576|  10.1k|{
  577|  10.1k|  struct Curl_cfilter *cf = conn->cfilter[sockindex];
  578|  10.1k|  for(; cf; cf = cf->next) {
  ------------------
  |  Branch (578:9): [True: 10.1k, False: 0]
  ------------------
  579|  10.1k|    if(cf->cft == &Curl_cft_dns) {
  ------------------
  |  Branch (579:8): [True: 10.1k, False: 0]
  ------------------
  580|  10.1k|      struct cf_dns_ctx *ctx = cf->ctx;
  581|  10.1k|      if(Curl_peer_same_destination(ctx->peer, peer) &&
  ------------------
  |  Branch (581:10): [True: 10.1k, False: 0]
  ------------------
  582|  10.1k|         (ctx->dns_queries & (CURL_DNSQ_A|CURL_DNSQ_AAAA))) {
  ------------------
  |  |   51|  10.1k|#define CURL_DNSQ_A           (1U << 0)
  ------------------
                       (ctx->dns_queries & (CURL_DNSQ_A|CURL_DNSQ_AAAA))) {
  ------------------
  |  |   52|  10.1k|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  |  Branch (582:10): [True: 10.1k, False: 0]
  ------------------
  583|  10.1k|        if(ctx->dns || ctx->resolv_result)
  ------------------
  |  Branch (583:12): [True: 10.1k, False: 0]
  |  Branch (583:24): [True: 0, False: 0]
  ------------------
  584|  10.1k|          return ctx->resolv_result;
  585|      0|        return CURLE_AGAIN;
  586|  10.1k|      }
  587|  10.1k|    }
  588|  10.1k|  }
  589|      0|  return CURLE_FAILED_INIT; /* no one is resolving */
  590|  10.1k|}
Curl_conn_dns_get_ai:
  601|  21.9k|{
  602|  21.9k|  struct connectdata *conn = data->conn;
  603|  21.9k|  struct Curl_cfilter *cf = conn->cfilter[sockindex];
  604|       |
  605|  21.9k|  for(; cf; cf = cf->next) {
  ------------------
  |  Branch (605:9): [True: 21.9k, False: 0]
  ------------------
  606|  21.9k|    if(cf->cft == &Curl_cft_dns) {
  ------------------
  |  Branch (606:8): [True: 21.9k, False: 0]
  ------------------
  607|  21.9k|      struct cf_dns_ctx *ctx = cf->ctx;
  608|  21.9k|      if(Curl_peer_same_destination(ctx->peer, peer) &&
  ------------------
  |  Branch (608:10): [True: 21.9k, False: 0]
  ------------------
  609|  21.9k|         (ctx->dns_queries & (CURL_DNSQ_A|CURL_DNSQ_AAAA))) {
  ------------------
  |  |   51|  21.9k|#define CURL_DNSQ_A           (1U << 0)
  ------------------
                       (ctx->dns_queries & (CURL_DNSQ_A|CURL_DNSQ_AAAA))) {
  ------------------
  |  |   52|  21.9k|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  |  Branch (609:10): [True: 21.9k, False: 0]
  ------------------
  610|  21.9k|        CURL_TRC_CF(data, cf, "get %uth result for %s:%u, family=%d, dns=%d",
  ------------------
  |  |  153|  21.9k|  do {                                          \
  |  |  154|  21.9k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  21.9k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  43.8k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 21.9k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 21.9k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  43.8k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  21.9k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  21.9k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  21.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 21.9k]
  |  |  ------------------
  ------------------
  611|  21.9k|                    index, peer->hostname, peer->port, ai_family, !!ctx->dns);
  612|  21.9k|        if(ctx->resolv_result)
  ------------------
  |  Branch (612:12): [True: 0, False: 21.9k]
  ------------------
  613|      0|          return NULL;
  614|  21.9k|        else if(ctx->dns) {
  ------------------
  |  Branch (614:17): [True: 21.9k, False: 0]
  ------------------
  615|       |          /* A cached DNS entry may contain address families that we
  616|       |           * here never queried for. We want to give no results for those. */
  617|  21.9k|          if((ai_family == AF_INET) && !(ctx->dns_queries & CURL_DNSQ_A))
  ------------------
  |  |   51|  10.9k|#define CURL_DNSQ_A           (1U << 0)
  ------------------
  |  Branch (617:14): [True: 10.9k, False: 10.9k]
  |  Branch (617:40): [True: 0, False: 10.9k]
  ------------------
  618|      0|            return NULL;
  619|  21.9k|#ifdef USE_IPV6
  620|  21.9k|          if((ai_family == AF_INET6) && !(ctx->dns_queries & CURL_DNSQ_AAAA))
  ------------------
  |  |   52|  10.9k|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  |  Branch (620:14): [True: 10.9k, False: 10.9k]
  |  Branch (620:41): [True: 0, False: 10.9k]
  ------------------
  621|      0|            return NULL;
  622|  21.9k|#endif
  623|  21.9k|          return Curl_addrinfo_get(ctx->dns->addr, ai_family, index);
  624|  21.9k|        }
  625|      0|        else
  626|      0|          return Curl_resolv_get_ai(data, ctx->resolv_id, ai_family, index);
  627|  21.9k|      }
  628|  21.9k|    }
  629|  21.9k|  }
  630|      0|  return NULL;
  631|  21.9k|}
cf-dns.c:cf_dns_destroy:
  345|  10.1k|{
  346|  10.1k|  struct cf_dns_ctx *ctx = cf->ctx;
  347|       |
  348|  10.1k|  CURL_TRC_CF(data, cf, "destroy");
  ------------------
  |  |  153|  10.1k|  do {                                          \
  |  |  154|  10.1k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  10.1k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  20.2k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 10.1k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 10.1k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  20.2k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  10.1k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  10.1k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  10.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 10.1k]
  |  |  ------------------
  ------------------
  349|  10.1k|  cf_dns_ctx_destroy(data, ctx);
  350|  10.1k|}
cf-dns.c:cf_dns_ctx_destroy:
   91|  10.1k|{
   92|  10.1k|  if(ctx) {
  ------------------
  |  Branch (92:6): [True: 10.1k, False: 0]
  ------------------
   93|  10.1k|    Curl_peer_unlink(&ctx->peer);
   94|  10.1k|    Curl_dns_entry_unlink(data, &ctx->dns);
   95|  10.1k|    curlx_free(ctx);
  ------------------
  |  | 1482|  10.1k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
   96|  10.1k|  }
   97|  10.1k|}
cf-dns.c:cf_dns_connect:
  286|  16.3k|{
  287|  16.3k|  struct cf_dns_ctx *ctx = cf->ctx;
  288|  16.3k|  bool ip_query = (ctx->dns_queries & (CURL_DNSQ_A|CURL_DNSQ_AAAA));
  ------------------
  |  |   51|  16.3k|#define CURL_DNSQ_A           (1U << 0)
  ------------------
                bool ip_query = (ctx->dns_queries & (CURL_DNSQ_A|CURL_DNSQ_AAAA));
  ------------------
  |  |   52|  16.3k|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  289|       |
  290|  16.3k|  if(cf->connected) {
  ------------------
  |  Branch (290:6): [True: 0, False: 16.3k]
  ------------------
  291|      0|    *done = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  292|      0|    return CURLE_OK;
  293|      0|  }
  294|       |
  295|  16.3k|  *done = FALSE;
  ------------------
  |  | 1056|  16.3k|#define FALSE false
  ------------------
  296|  16.3k|  if(!ctx->started) {
  ------------------
  |  Branch (296:6): [True: 10.1k, False: 6.17k]
  ------------------
  297|  10.1k|    ctx->started = TRUE;
  ------------------
  |  | 1053|  10.1k|#define TRUE true
  ------------------
  298|  10.1k|    ctx->resolv_result = cf_dns_start(cf, data, &ctx->dns);
  299|  10.1k|  }
  300|       |
  301|  16.3k|  if(!ctx->dns && !ctx->resolv_result) {
  ------------------
  |  Branch (301:6): [True: 0, False: 16.3k]
  |  Branch (301:19): [True: 0, False: 0]
  ------------------
  302|      0|    ctx->resolv_result =
  303|      0|      Curl_resolv_take_result(data, ctx->resolv_id, &ctx->dns);
  304|      0|  }
  305|       |
  306|  16.3k|  if(ctx->resolv_result && ip_query) {
  ------------------
  |  Branch (306:6): [True: 0, False: 16.3k]
  |  Branch (306:28): [True: 0, False: 0]
  ------------------
  307|       |    /* failing A|AAAA resolves is a hard failure. */
  308|      0|    CURL_TRC_CF(data, cf, "[%s] error resolving: %d",
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  309|      0|                Curl_resolv_query_str(ctx->dns_queries),
  310|      0|                (int)ctx->resolv_result);
  311|      0|    return ctx->resolv_result;
  312|      0|  }
  313|       |
  314|  16.3k|  if(ctx->dns && !ctx->announced) {
  ------------------
  |  Branch (314:6): [True: 16.3k, False: 0]
  |  Branch (314:18): [True: 10.1k, False: 6.17k]
  ------------------
  315|  10.1k|    ctx->announced = TRUE;
  ------------------
  |  | 1053|  10.1k|#define TRUE true
  ------------------
  316|  10.1k|    if((cf->sockindex == FIRSTSOCKET) && ip_query) {
  ------------------
  |  |  233|  10.1k|#define FIRSTSOCKET     0
  ------------------
  |  Branch (316:8): [True: 10.1k, False: 0]
  |  Branch (316:42): [True: 10.1k, False: 0]
  ------------------
  317|  10.1k|      cf->conn->bits.dns_resolved = TRUE;
  ------------------
  |  | 1053|  10.1k|#define TRUE true
  ------------------
  318|  10.1k|      Curl_pgrsTime(data, TIMER_NAMELOOKUP);
  319|  10.1k|    }
  320|  10.1k|    cf_dns_report(cf, data, ctx->dns);
  321|  10.1k|  }
  322|       |
  323|  16.3k|  if(!cf_dns_ready_to_connect(cf, data)) {
  ------------------
  |  Branch (323:6): [True: 0, False: 16.3k]
  ------------------
  324|      0|    return CURLE_OK;
  325|      0|  }
  326|       |
  327|  16.3k|  if(cf->next && !cf->next->connected) {
  ------------------
  |  Branch (327:6): [True: 16.3k, False: 0]
  |  Branch (327:18): [True: 16.3k, False: 0]
  ------------------
  328|  16.3k|    bool sub_done;
  329|  16.3k|    CURLcode result = Curl_conn_cf_connect(cf->next, data, &sub_done);
  330|  16.3k|    if(result || !sub_done)
  ------------------
  |  Branch (330:8): [True: 827, False: 15.4k]
  |  Branch (330:18): [True: 6.51k, False: 8.97k]
  ------------------
  331|  7.34k|      return result;
  332|  8.97k|    DEBUGASSERT(sub_done);
  ------------------
  |  | 1083|  8.97k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (332:5): [True: 0, False: 8.97k]
  |  Branch (332:5): [True: 8.97k, False: 0]
  ------------------
  333|  8.97k|  }
  334|       |
  335|       |  /* sub filter chain is connected, this means the filter has done
  336|       |   * its work and is connected as well, if it has results or not. */
  337|  8.97k|  CURL_TRC_CF(data, cf, "connected filter chain below");
  ------------------
  |  |  153|  8.97k|  do {                                          \
  |  |  154|  8.97k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  8.97k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  17.9k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 8.97k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 8.97k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  17.9k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  8.97k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  8.97k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  8.97k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 8.97k]
  |  |  ------------------
  ------------------
  338|  8.97k|  *done = TRUE;
  ------------------
  |  | 1053|  8.97k|#define TRUE true
  ------------------
  339|       |  cf->connected = TRUE;
  ------------------
  |  | 1053|  8.97k|#define TRUE true
  ------------------
  340|  8.97k|  Curl_resolv_destroy(data, ctx->resolv_id);
  341|  8.97k|  return CURLE_OK;
  342|  16.3k|}
cf-dns.c:cf_dns_start:
  185|  10.1k|{
  186|  10.1k|  struct cf_dns_ctx *ctx = cf->ctx;
  187|  10.1k|  timediff_t timeout_ms = Curl_timeleft_ms(data);
  188|  10.1k|  CURLcode result = CURLE_OK;
  189|       |
  190|  10.1k|  *pdns = NULL;
  191|       |
  192|  10.1k|  CURL_TRC_CF(data, cf, "[%s] cf_dns_start %s %s:%u",
  ------------------
  |  |  153|  10.1k|  do {                                          \
  |  |  154|  10.1k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  10.1k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  20.2k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 10.1k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 10.1k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  20.2k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  10.1k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  10.1k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (155:35): [True: 0, False: 0]
  |  |  ------------------
  |  |  156|  10.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 10.1k]
  |  |  ------------------
  ------------------
  193|  10.1k|              Curl_resolv_query_str(ctx->dns_queries),
  194|  10.1k|              ctx->peer->unix_socket ? "unix-domain-socket" : "host",
  195|  10.1k|              ctx->peer->hostname, ctx->peer->port);
  196|  10.1k|  if(ctx->peer->unix_socket)
  ------------------
  |  Branch (196:6): [True: 0, False: 10.1k]
  ------------------
  197|      0|    ctx->dns_queries = CURL_DNSQ_A; /* treat it like an A resolve */
  ------------------
  |  |   51|      0|#define CURL_DNSQ_A           (1U << 0)
  ------------------
  198|       |
  199|  10.1k|  if(CURL_DNSQ_IS_ADDR(ctx->dns_queries)) {
  ------------------
  |  |   56|  10.1k|#define CURL_DNSQ_IS_ADDR(x)  (uint8_t)((x)&(CURL_DNSQ_ADDR))
  |  |  ------------------
  |  |  |  |   55|  10.1k|#define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|  10.1k|#define CURL_DNSQ_A           (1U << 0)
  |  |  |  |  ------------------
  |  |  |  |               #define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  |  |  ------------------
  |  |  |  |  |  |   52|  10.1k|#define CURL_DNSQ_AAAA        (1U << 1)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (56:31): [True: 10.1k, False: 0]
  |  |  ------------------
  ------------------
  200|  10.1k|    if(Curl_is_ipv4addr(ctx->peer->hostname))
  ------------------
  |  Branch (200:8): [True: 10.1k, False: 0]
  ------------------
  201|  10.1k|      ctx->dns_queries |= CURL_DNSQ_A;
  ------------------
  |  |   51|  10.1k|#define CURL_DNSQ_A           (1U << 0)
  ------------------
  202|      0|#ifdef USE_IPV6
  203|      0|    else if(ctx->peer->ipv6)
  ------------------
  |  Branch (203:13): [True: 0, False: 0]
  ------------------
  204|      0|      ctx->dns_queries |= CURL_DNSQ_AAAA;
  ------------------
  |  |   52|      0|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  205|  10.1k|#endif
  206|       |
  207|  10.1k|    result = Curl_resolv(data, ctx->peer, ctx->dns_queries, ctx->transport,
  208|  10.1k|                         (bool)ctx->for_proxy, timeout_ms,
  209|  10.1k|                         &ctx->resolv_id, pdns);
  210|  10.1k|  }
  211|       |#ifdef USE_HTTPSRR
  212|       |  else if(ctx->dns_queries == CURL_DNSQ_HTTPS) {
  213|       |    result = Curl_resolv_https(data, ctx->peer, (bool)ctx->for_proxy,
  214|       |                               timeout_ms, &ctx->resolv_id, pdns);
  215|       |  }
  216|       |#endif
  217|      0|  else {
  218|      0|    failf(data, "unsupported DNS queries %x", ctx->dns_queries);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  219|      0|    return CURLE_FAILED_INIT;
  220|      0|  }
  221|       |
  222|  10.1k|  DEBUGASSERT(!result || !*pdns);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (222:3): [True: 10.1k, False: 0]
  |  Branch (222:3): [True: 0, False: 0]
  |  Branch (222:3): [True: 10.1k, False: 0]
  |  Branch (222:3): [True: 0, False: 0]
  ------------------
  223|  10.1k|  if(!result) { /* resolved right away, either sync or from dnscache */
  ------------------
  |  Branch (223:6): [True: 10.1k, False: 0]
  ------------------
  224|  10.1k|    DEBUGASSERT(*pdns);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (224:5): [True: 0, False: 10.1k]
  |  Branch (224:5): [True: 10.1k, False: 0]
  ------------------
  225|  10.1k|    return CURLE_OK;
  226|  10.1k|  }
  227|      0|  else if(result == CURLE_AGAIN) { /* async resolv in progress */
  ------------------
  |  Branch (227:11): [True: 0, False: 0]
  ------------------
  228|      0|    return CURLE_OK;
  229|      0|  }
  230|      0|  else if(result == CURLE_OPERATION_TIMEDOUT) { /* took too long */
  ------------------
  |  Branch (230:11): [True: 0, False: 0]
  ------------------
  231|      0|    failf(data, "Failed to resolve '%s' with timeout after %"
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  232|      0|          FMT_TIMEDIFF_T " ms", ctx->peer->hostname,
  233|      0|          Curl_pgrs_since_ms(data, NULL, TIMER_STARTSINGLE));
  234|      0|    return CURLE_OPERATION_TIMEDOUT;
  235|      0|  }
  236|      0|  else {
  237|      0|    DEBUGASSERT(result);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (237:5): [True: 0, False: 0]
  |  Branch (237:5): [True: 0, False: 0]
  ------------------
  238|      0|    if(ctx->dns_queries & (CURL_DNSQ_A|CURL_DNSQ_AAAA))
  ------------------
  |  |   51|      0|#define CURL_DNSQ_A           (1U << 0)
  ------------------
                  if(ctx->dns_queries & (CURL_DNSQ_A|CURL_DNSQ_AAAA))
  ------------------
  |  |   52|      0|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  |  Branch (238:8): [True: 0, False: 0]
  ------------------
  239|      0|      failf(data, "Could not resolve: %s", ctx->peer->hostname);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  240|      0|    return result;
  241|      0|  }
  242|  10.1k|}
cf-dns.c:cf_dns_report:
  130|  10.1k|{
  131|  10.1k|  struct cf_dns_ctx *ctx = cf->ctx;
  132|  10.1k|  struct dynbuf tmp;
  133|       |
  134|  10.1k|  if(!Curl_trc_is_verbose(data) ||
  ------------------
  |  |  322|  20.2k|  ((data) && (data)->set.verbose &&                        \
  |  |  ------------------
  |  |  |  Branch (322:4): [True: 10.1k, False: 0]
  |  |  |  Branch (322:14): [True: 0, False: 10.1k]
  |  |  ------------------
  |  |  323|  20.2k|   (!(data)->state.feat ||                                 \
  |  |  ------------------
  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  ------------------
  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  ------------------
  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  135|       |     /* ignore no name or numerical IP addresses */
  136|      0|     !dns->hostname[0] || Curl_host_is_ipnum(dns->hostname))
  ------------------
  |  Branch (136:6): [True: 0, False: 0]
  |  Branch (136:27): [True: 0, False: 0]
  ------------------
  137|  10.1k|    return;
  138|       |
  139|      0|  if(ctx->peer->unix_socket) {
  ------------------
  |  Branch (139:6): [True: 0, False: 0]
  ------------------
  140|      0|#ifdef USE_UNIX_SOCKETS
  141|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  142|       |#else
  143|       |    DEBUGASSERT(0);
  144|       |#endif
  145|      0|  }
  146|      0|  else {
  147|      0|    curlx_dyn_init(&tmp, 1024);
  148|      0|    if(CURL_DNSQ_IS_ADDR(ctx->dns_queries)) {
  ------------------
  |  |   56|      0|#define CURL_DNSQ_IS_ADDR(x)  (uint8_t)((x)&(CURL_DNSQ_ADDR))
  |  |  ------------------
  |  |  |  |   55|      0|#define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define CURL_DNSQ_A           (1U << 0)
  |  |  |  |  ------------------
  |  |  |  |               #define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  |  |  ------------------
  |  |  |  |  |  |   52|      0|#define CURL_DNSQ_AAAA        (1U << 1)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (56:31): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  149|      0|      infof(data, "Host %s:%u was resolved.", dns->hostname, dns->port);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  150|      0|#ifdef CURLRES_IPV6
  151|      0|      cf_dns_report_addr(data, &tmp, "IPv6: ", AF_INET6, dns->addr);
  152|      0|#endif
  153|      0|      cf_dns_report_addr(data, &tmp, "IPv4: ", AF_INET, dns->addr);
  154|      0|    }
  155|       |#ifdef USE_HTTPSRR
  156|       |    else if(ctx->dns_queries & CURL_DNSQ_HTTPS) {
  157|       |      if(!dns->hinfo)
  158|       |        infof(data, "HTTPS-RR %s:%u: -", dns->hostname, dns->port);
  159|       |      else if(!Curl_httpsrr_applicable(data, dns->hinfo))
  160|       |        infof(data, "HTTPS-RR %s:%u: not applicable",
  161|       |              dns->hostname, dns->port);
  162|       |      else {
  163|       |        CURLcode result = Curl_httpsrr_print(&tmp, dns->hinfo);
  164|       |        if(!result)
  165|       |          infof(data, "HTTPS-RR %s:%u: %s",
  166|       |                dns->hostname, dns->port, curlx_dyn_ptr(&tmp));
  167|       |        else
  168|       |          infof(data, "Error printing HTTPS-RR information");
  169|       |      }
  170|       |    }
  171|       |#endif
  172|      0|    curlx_dyn_free(&tmp);
  173|      0|  }
  174|      0|}
cf-dns.c:cf_dns_ready_to_connect:
  246|  16.3k|{
  247|  16.3k|  struct cf_dns_ctx *ctx = cf->ctx;
  248|       |
  249|  16.3k|  if(ctx->resolv_result)
  ------------------
  |  Branch (249:6): [True: 0, False: 16.3k]
  ------------------
  250|      0|    return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  251|  16.3k|  else if(ctx->dns)
  ------------------
  |  Branch (251:11): [True: 16.3k, False: 0]
  ------------------
  252|  16.3k|    return TRUE;
  ------------------
  |  | 1053|  16.3k|#define TRUE true
  ------------------
  253|      0|#ifdef USE_CURL_ASYNC
  254|      0|  else if(CURL_DNSQ_IS_ADDR(ctx->dns_queries)) {
  ------------------
  |  |   56|      0|#define CURL_DNSQ_IS_ADDR(x)  (uint8_t)((x)&(CURL_DNSQ_ADDR))
  |  |  ------------------
  |  |  |  |   55|      0|#define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define CURL_DNSQ_A           (1U << 0)
  |  |  |  |  ------------------
  |  |  |  |               #define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  |  |  ------------------
  |  |  |  |  |  |   52|      0|#define CURL_DNSQ_AAAA        (1U << 1)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (56:31): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  255|      0|    timediff_t remain_ms;
  256|       |    /* For Happy Eyeballing, we can start on either A or AAAA resolves,
  257|       |     * but AAAA is preferred. We enforce a small delay for missing
  258|       |     * AAAA to arrive, then we let the connect continue.
  259|       |     * Note: if AAAA was never started (-4), it is considered to have
  260|       |     * an answer (e.g. a negative one). */
  261|      0|    if(Curl_resolv_has_answers(data, ctx->resolv_id, CURL_DNSQ_AAAA))
  ------------------
  |  |   52|      0|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  |  Branch (261:8): [True: 0, False: 0]
  ------------------
  262|      0|      return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  263|      0|    remain_ms = ctx->he_aaaa_await_ms -
  264|      0|                Curl_resolv_elapsed_ms(data, ctx->resolv_id);
  265|      0|    if(remain_ms <= 0)
  ------------------
  |  Branch (265:8): [True: 0, False: 0]
  ------------------
  266|      0|      return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  267|      0|    CURL_TRC_CF(data, cf, "[%s] still waiting %" FMT_TIMEDIFF_T
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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|                "ms for AAAA result",
  269|      0|                Curl_resolv_query_str(ctx->dns_queries), remain_ms);
  270|      0|    Curl_expire(data, remain_ms, EXPIRE_HAPPY_EYEBALLS);
  271|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  272|      0|  }
  273|      0|  else {
  274|      0|    return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  275|      0|  }
  276|       |#else
  277|       |  (void)data;
  278|       |  DEBUGASSERT(0); /* We should not come here */
  279|       |  return FALSE;
  280|       |#endif /* USE_CURL_ASYNC */
  281|  16.3k|}
cf-dns.c:cf_dns_adjust_pollset:
  355|  6.51k|{
  356|  6.51k|#ifdef USE_CURL_ASYNC
  357|  6.51k|  if(!cf->connected) {
  ------------------
  |  Branch (357:6): [True: 6.51k, False: 0]
  ------------------
  358|       |    /* The pollset only works when we have started the resolving.
  359|       |     * Otherwise we might wait on the WAKEUP socketpair forever.
  360|       |     * Since DNS filters can be added in the middle of a connect
  361|       |     * attempt, they are not always started that way. */
  362|  6.51k|    struct cf_dns_ctx *ctx = cf->ctx;
  363|  6.51k|    if(!ctx->started) {
  ------------------
  |  Branch (363:8): [True: 0, False: 6.51k]
  ------------------
  364|      0|      CURL_TRC_CF(data, cf, "adjust_pollset, starting %s:%u queries=%s",
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  365|      0|                  ctx->peer->hostname, ctx->peer->port,
  366|      0|                  Curl_resolv_query_str(ctx->dns_queries));
  367|      0|      ctx->started = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  368|      0|      ctx->resolv_result = cf_dns_start(cf, data, &ctx->dns);
  369|      0|      if(ctx->resolv_result || ctx->dns) {
  ------------------
  |  Branch (369:10): [True: 0, False: 0]
  |  Branch (369:32): [True: 0, False: 0]
  ------------------
  370|      0|        Curl_multi_mark_dirty(data);
  371|      0|      }
  372|      0|    }
  373|  6.51k|    return Curl_resolv_pollset(data, ps);
  374|  6.51k|  }
  375|       |#else
  376|       |  (void)cf;
  377|       |  (void)data;
  378|       |  (void)ps;
  379|       |#endif
  380|      0|  return CURLE_OK;
  381|  6.51k|}
cf-dns.c:cf_dns_cntrl:
  386|  10.1k|{
  387|  10.1k|  struct cf_dns_ctx *ctx = cf->ctx;
  388|  10.1k|  CURLcode result = CURLE_OK;
  389|       |
  390|  10.1k|  (void)arg1;
  391|  10.1k|  (void)arg2;
  392|  10.1k|  switch(event) {
  393|  1.16k|  case CF_CTRL_DATA_DONE:
  ------------------
  |  |  118|  1.16k|#define CF_CTRL_DATA_DONE               7  /* premature  NULL     ignored */
  ------------------
  |  Branch (393:3): [True: 1.16k, False: 8.97k]
  ------------------
  394|  1.16k|    if(ctx->dns) {
  ------------------
  |  Branch (394:8): [True: 1.16k, False: 0]
  ------------------
  395|       |      /* Should only come here when the connect attempt failed and
  396|       |       * `data` is giving up on it. On a successful connect, we already
  397|       |       * unlinked the DNS entry. */
  398|  1.16k|      Curl_dns_entry_unlink(data, &ctx->dns);
  399|  1.16k|    }
  400|  1.16k|    break;
  401|  8.97k|  default:
  ------------------
  |  Branch (401:3): [True: 8.97k, False: 1.16k]
  ------------------
  402|  8.97k|    break;
  403|  10.1k|  }
  404|  10.1k|  return result;
  405|  10.1k|}
cf-dns.c:cf_dns_add_resolve:
  509|  10.1k|{
  510|  10.1k|  struct Curl_cfilter *cf = data->conn->cfilter[sockindex];
  511|  10.1k|  struct Curl_cfilter *cf_dns = NULL;
  512|  10.1k|  bool is_addr = CURL_DNSQ_IS_ADDR(dns_queries);
  ------------------
  |  |   56|  10.1k|#define CURL_DNSQ_IS_ADDR(x)  (uint8_t)((x)&(CURL_DNSQ_ADDR))
  |  |  ------------------
  |  |  |  |   55|  10.1k|#define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|  10.1k|#define CURL_DNSQ_A           (1U << 0)
  |  |  |  |  ------------------
  |  |  |  |               #define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  |  |  ------------------
  |  |  |  |  |  |   52|  10.1k|#define CURL_DNSQ_AAAA        (1U << 1)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  513|       |
  514|  10.1k|  if((dns_queries & CURL_DNSQ_HTTPS) &&
  ------------------
  |  |   53|  10.1k|#define CURL_DNSQ_HTTPS       (1U << 2)
  ------------------
  |  Branch (514:6): [True: 0, False: 10.1k]
  ------------------
  515|      0|     Curl_is_ipaddr(peer->hostname)) {
  ------------------
  |  Branch (515:6): [True: 0, False: 0]
  ------------------
  516|      0|    dns_queries = (uint8_t)(dns_queries & ~CURL_DNSQ_HTTPS);
  ------------------
  |  |   53|      0|#define CURL_DNSQ_HTTPS       (1U << 2)
  ------------------
  517|      0|  }
  518|       |
  519|  20.2k|  for(; cf && dns_queries; cf = cf->next) {
  ------------------
  |  Branch (519:9): [True: 10.1k, False: 10.1k]
  |  Branch (519:15): [True: 10.1k, False: 0]
  ------------------
  520|  10.1k|    if(cf->cft == &Curl_cft_dns) {
  ------------------
  |  Branch (520:8): [True: 0, False: 10.1k]
  ------------------
  521|      0|      struct cf_dns_ctx *ctx = cf->ctx;
  522|      0|      cf_dns = cf;
  523|      0|      if(Curl_peer_same_destination(ctx->peer, peer)) {
  ------------------
  |  Branch (523:10): [True: 0, False: 0]
  ------------------
  524|       |        /* subtract queries already being scheduled/ongoing */
  525|      0|        dns_queries = (uint8_t)(~ctx->dns_queries & dns_queries);
  526|      0|        if(!dns_queries) { /* already there */
  ------------------
  |  Branch (526:12): [True: 0, False: 0]
  ------------------
  527|      0|          return CURLE_OK;
  528|      0|        }
  529|      0|        else if(is_addr && !ctx->started &&
  ------------------
  |  Branch (529:17): [True: 0, False: 0]
  |  Branch (529:28): [True: 0, False: 0]
  ------------------
  530|      0|                CURL_DNSQ_IS_ADDR(ctx->dns_queries)) {
  ------------------
  |  |   56|      0|#define CURL_DNSQ_IS_ADDR(x)  (uint8_t)((x)&(CURL_DNSQ_ADDR))
  |  |  ------------------
  |  |  |  |   55|      0|#define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|      0|#define CURL_DNSQ_A           (1U << 0)
  |  |  |  |  ------------------
  |  |  |  |               #define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  |  |  ------------------
  |  |  |  |  |  |   52|      0|#define CURL_DNSQ_AAAA        (1U << 1)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (56:31): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  531|      0|          ctx->dns_queries |= dns_queries;
  532|      0|          CURL_TRC_DNS(data, "[%s] added queries=%s for %s:%u",
  ------------------
  |  |  168|      0|  do {                                 \
  |  |  169|      0|    if(CURL_TRC_DNS_is_verbose(data))  \
  |  |  ------------------
  |  |  |  |  137|      0|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_dns)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  170|      0|      Curl_trc_dns(data, __VA_ARGS__); \
  |  |  171|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (171:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  533|      0|                       Curl_resolv_query_str(ctx->dns_queries),
  534|      0|                       Curl_resolv_query_str(dns_queries),
  535|      0|                       peer->hostname, peer->port);
  536|      0|          return CURLE_OK;
  537|      0|        }
  538|      0|      }
  539|      0|    }
  540|  10.1k|  }
  541|       |
  542|  10.1k|  if(dns_queries) {
  ------------------
  |  Branch (542:6): [True: 10.1k, False: 0]
  ------------------
  543|       |    /* No existing filter is handling these, add a new DNS filter
  544|       |     * (after the last one if there was one already. FCFS. */
  545|  10.1k|    if(cf_dns)
  ------------------
  |  Branch (545:8): [True: 0, False: 10.1k]
  ------------------
  546|      0|      return cf_dns_insert_after(cf_dns, data, peer, dns_queries, transport);
  547|  10.1k|    else
  548|  10.1k|      return cf_dns_add(data, conn, sockindex, peer, dns_queries, transport);
  549|  10.1k|  }
  550|      0|  return CURLE_OK;
  551|  10.1k|}
cf-dns.c:cf_dns_create:
  430|  10.1k|{
  431|  10.1k|  struct Curl_cfilter *cf = NULL;
  432|  10.1k|  struct cf_dns_ctx *ctx;
  433|  10.1k|  CURLcode result = CURLE_OK;
  434|       |
  435|  10.1k|  (void)data;
  436|  10.1k|  ctx = cf_dns_ctx_create(data, peer, dns_queries, transport,
  437|  10.1k|                          for_proxy);
  438|  10.1k|  if(!ctx) {
  ------------------
  |  Branch (438:6): [True: 0, False: 10.1k]
  ------------------
  439|      0|    result = CURLE_OUT_OF_MEMORY;
  440|      0|    goto out;
  441|      0|  }
  442|       |
  443|  10.1k|  result = Curl_cf_create(&cf, &Curl_cft_dns, ctx);
  444|       |
  445|  10.1k|out:
  446|  10.1k|  *pcf = result ? NULL : cf;
  ------------------
  |  Branch (446:10): [True: 0, False: 10.1k]
  ------------------
  447|  10.1k|  if(result)
  ------------------
  |  Branch (447:6): [True: 0, False: 10.1k]
  ------------------
  448|      0|    cf_dns_ctx_destroy(data, ctx);
  449|  10.1k|  return result;
  450|  10.1k|}
cf-dns.c:cf_dns_ctx_create:
   59|  10.1k|{
   60|  10.1k|  struct cf_dns_ctx *ctx;
   61|       |
   62|  10.1k|  ctx = curlx_calloc(1, sizeof(*ctx));
  ------------------
  |  | 1479|  10.1k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
   63|  10.1k|  if(!ctx)
  ------------------
  |  Branch (63:6): [True: 0, False: 10.1k]
  ------------------
   64|      0|    return NULL;
   65|       |
   66|  10.1k|  Curl_peer_link(&ctx->peer, peer);
   67|  10.1k|  ctx->dns_queries = dns_queries;
   68|  10.1k|  ctx->transport = transport;
   69|  10.1k|  ctx->for_proxy = for_proxy;
   70|  10.1k|  ctx->he_aaaa_await_ms = CURL_HE_AAAA_AWAIT_MS;
  ------------------
  |  |   39|  10.1k|#define CURL_HE_AAAA_AWAIT_MS    50
  ------------------
   71|  10.1k|#ifdef DEBUGBUILD
   72|  10.1k|  {
   73|  10.1k|    const char *p = getenv("CURL_DBG_HE_AAAA_AWAIT_MS");
   74|  10.1k|    if(p) {
  ------------------
  |  Branch (74:8): [True: 0, False: 10.1k]
  ------------------
   75|      0|      curl_off_t l;
   76|      0|      if(!curlx_str_number(&p, &l, UINT32_MAX)) {
  ------------------
  |  Branch (76:10): [True: 0, False: 0]
  ------------------
   77|      0|        ctx->he_aaaa_await_ms = (uint32_t)l;
   78|      0|      }
   79|      0|    }
   80|  10.1k|  }
   81|  10.1k|#endif
   82|       |
   83|  10.1k|  CURL_TRC_DNS(data, "[%s] created DNS filter for %s:%u, transport=%x",
  ------------------
  |  |  168|  10.1k|  do {                                 \
  |  |  169|  10.1k|    if(CURL_TRC_DNS_is_verbose(data))  \
  |  |  ------------------
  |  |  |  |  137|  10.1k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_dns)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  10.1k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  20.2k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 10.1k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 10.1k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  20.2k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  10.1k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  170|  10.1k|      Curl_trc_dns(data, __VA_ARGS__); \
  |  |  171|  10.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (171:11): [Folded, False: 10.1k]
  |  |  ------------------
  ------------------
   84|  10.1k|               Curl_resolv_query_str(ctx->dns_queries),
   85|  10.1k|               peer->hostname, peer->port, ctx->transport);
   86|  10.1k|  return ctx;
   87|  10.1k|}
cf-dns.c:cf_dns_add:
  460|  10.1k|{
  461|  10.1k|  struct Curl_cfilter *cf = NULL;
  462|  10.1k|  bool for_proxy = FALSE;
  ------------------
  |  | 1056|  10.1k|#define FALSE false
  ------------------
  463|  10.1k|  CURLcode result;
  464|       |
  465|  10.1k|  if(!peer)
  ------------------
  |  Branch (465:6): [True: 0, False: 10.1k]
  ------------------
  466|      0|    return CURLE_FAILED_INIT;
  467|  10.1k|#ifndef CURL_DISABLE_PROXY
  468|  10.1k|  for_proxy = (peer == conn->socks_proxy.peer) ||
  ------------------
  |  Branch (468:15): [True: 0, False: 10.1k]
  ------------------
  469|  10.1k|              (peer == conn->http_proxy.peer);
  ------------------
  |  Branch (469:15): [True: 0, False: 10.1k]
  ------------------
  470|  10.1k|#endif
  471|       |
  472|  10.1k|  result = cf_dns_create(&cf, data, peer, dns_queries, transport, for_proxy);
  473|  10.1k|  if(result)
  ------------------
  |  Branch (473:6): [True: 0, False: 10.1k]
  ------------------
  474|      0|    goto out;
  475|  10.1k|  Curl_conn_cf_add(data, conn, sockindex, cf);
  476|  10.1k|out:
  477|  10.1k|  return result;
  478|  10.1k|}

Curl_dnscache_prune:
  197|  14.2k|{
  198|  14.2k|  struct Curl_dnscache *dnscache = dnscache_get(data);
  199|       |  /* the timeout may be set -1 (forever) */
  200|  14.2k|  timediff_t timeout_ms = data->set.dns_cache_timeout_ms;
  201|       |
  202|  14.2k|  if(!dnscache || (timeout_ms == -1))
  ------------------
  |  Branch (202:6): [True: 0, False: 14.2k]
  |  Branch (202:19): [True: 0, False: 14.2k]
  ------------------
  203|       |    /* NULL hostcache means we cannot do it */
  204|      0|    return;
  205|       |
  206|  14.2k|  dnscache_lock(data, dnscache);
  207|       |
  208|  14.2k|  do {
  209|       |    /* Remove outdated and unused entries from the hostcache */
  210|  14.2k|    timediff_t oldest_ms =
  211|  14.2k|      dnscache_prune(&dnscache->entries, timeout_ms, *Curl_pgrs_now(data));
  212|       |
  213|  14.2k|    if(Curl_hash_count(&dnscache->entries) > MAX_DNS_CACHE_SIZE)
  ------------------
  |  |   61|  14.2k|#define MAX_DNS_CACHE_SIZE 29999
  ------------------
  |  Branch (213:8): [True: 0, False: 14.2k]
  ------------------
  214|       |      /* prune the ones over half this age */
  215|      0|      timeout_ms = oldest_ms / 2;
  216|  14.2k|    else
  217|  14.2k|      break;
  218|       |
  219|       |    /* if the cache size is still too big, use the oldest age as new prune
  220|       |       limit */
  221|  14.2k|  } while(timeout_ms);
  ------------------
  |  Branch (221:11): [True: 0, False: 0]
  ------------------
  222|       |
  223|  14.2k|  dnscache_unlock(data, dnscache);
  224|  14.2k|}
Curl_dnscache_get:
  329|  10.1k|{
  330|  10.1k|  struct Curl_dnscache *dnscache = dnscache_get(data);
  331|  10.1k|  struct Curl_dns_entry *dns = NULL;
  332|  10.1k|  CURLcode result = CURLE_OK;
  333|       |
  334|  10.1k|  dnscache_lock(data, dnscache);
  335|  10.1k|  result = fetch_addr(data, dnscache, dns_queries, peer, &dns);
  336|  10.1k|  if(!result && dns)
  ------------------
  |  Branch (336:6): [True: 10.1k, False: 0]
  |  Branch (336:17): [True: 806, False: 9.33k]
  ------------------
  337|    806|    dns->refcount++; /* we pass out a reference */
  338|  9.33k|  else if(result) {
  ------------------
  |  Branch (338:11): [True: 0, False: 9.33k]
  ------------------
  339|      0|    DEBUGASSERT(!dns);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (339:5): [True: 0, False: 0]
  |  Branch (339:5): [True: 0, False: 0]
  ------------------
  340|      0|    dns = NULL;
  341|      0|  }
  342|  10.1k|  dnscache_unlock(data, dnscache);
  343|       |
  344|  10.1k|  CURL_TRC_DNS(data, "cache lookup %s:%u queries=%s -> %d %sfound",
  ------------------
  |  |  168|  10.1k|  do {                                 \
  |  |  169|  10.1k|    if(CURL_TRC_DNS_is_verbose(data))  \
  |  |  ------------------
  |  |  |  |  137|  10.1k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_dns)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  10.1k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  20.2k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 10.1k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 10.1k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  20.2k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  10.1k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  170|  10.1k|      Curl_trc_dns(data, __VA_ARGS__); \
  |  |  ------------------
  |  |  |  Branch (170:26): [True: 0, False: 0]
  |  |  ------------------
  |  |  171|  10.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (171:11): [Folded, False: 10.1k]
  |  |  ------------------
  ------------------
  345|  10.1k|               peer->hostname, peer->port, Curl_resolv_query_str(dns_queries),
  346|  10.1k|               (int)result, dns ? "" : "not ");
  347|  10.1k|  *pentry = dns;
  348|  10.1k|  return result;
  349|  10.1k|}
Curl_dnsc_mk_addr:
  546|  9.33k|{
  547|  9.33k|  struct dnsc_id id;
  548|  9.33k|  struct Curl_dns_entry *dns;
  549|       |
  550|  9.33k|  dnsc_peer2id(&id, CURL_DNST_ADDR, peer);
  ------------------
  |  |   41|  9.33k|#define CURL_DNST_ADDR      'A'
  ------------------
  551|  9.33k|  dns = dnsc_entry_create(data, &id, FALSE);
  ------------------
  |  | 1056|  9.33k|#define FALSE false
  ------------------
  552|       |  dns = dnsc_entry_assign_addr(data, dns, dns_queries, paddr, NULL);
  553|  9.33k|  return dns;
  554|  9.33k|}
Curl_dnscache_add:
  703|  9.33k|{
  704|  9.33k|  struct Curl_dnscache *dnscache = dnscache_get(data);
  705|  9.33k|  struct Curl_str name;
  706|  9.33k|  struct dnsc_id id;
  707|  9.33k|  struct dnsc_key key;
  708|       |
  709|  9.33k|  if(!dnscache)
  ------------------
  |  Branch (709:6): [True: 0, False: 9.33k]
  ------------------
  710|      0|    return CURLE_FAILED_INIT;
  711|  9.33k|  if(!entry || (entry->type == CURL_DNST_INIT))
  ------------------
  |  |   40|  9.33k|#define CURL_DNST_INIT      '\0'
  ------------------
  |  Branch (711:6): [True: 0, False: 9.33k]
  |  Branch (711:16): [True: 0, False: 9.33k]
  ------------------
  712|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  713|       |
  714|  9.33k|  curlx_str_assign(&name, entry->hostname, entry->hostlen);
  715|  9.33k|  dnsc_str2id(&id, entry->type, &name, entry->port);
  716|  9.33k|  dnsc_id2key(&key, &id);
  717|       |
  718|       |  /* Store the resolved data in our DNS cache and up ref count */
  719|  9.33k|  dnscache_lock(data, dnscache);
  720|  9.33k|  if(!Curl_hash_add(&dnscache->entries, key.data, key.len, (void *)entry)) {
  ------------------
  |  Branch (720:6): [True: 0, False: 9.33k]
  ------------------
  721|      0|    dnscache_unlock(data, dnscache);
  722|      0|    return CURLE_OUT_OF_MEMORY;
  723|      0|  }
  724|  9.33k|  entry->refcount++;
  725|  9.33k|  dnscache_unlock(data, dnscache);
  726|  9.33k|  CURL_TRC_DNS(data, "cached entry for %s:%u queries=%s",
  ------------------
  |  |  168|  9.33k|  do {                                 \
  |  |  169|  9.33k|    if(CURL_TRC_DNS_is_verbose(data))  \
  |  |  ------------------
  |  |  |  |  137|  9.33k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_dns)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  9.33k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  18.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 9.33k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 9.33k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  18.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  9.33k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  170|  9.33k|      Curl_trc_dns(data, __VA_ARGS__); \
  |  |  171|  9.33k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (171:11): [Folded, False: 9.33k]
  |  |  ------------------
  ------------------
  727|  9.33k|               entry->hostname, entry->port,
  728|  9.33k|               Curl_resolv_query_str(entry->dns_queries));
  729|  9.33k|  return CURLE_OK;
  730|  9.33k|}
Curl_dns_entry_unlink:
  788|  11.3k|{
  789|  11.3k|  if(*pdns) {
  ------------------
  |  Branch (789:6): [True: 10.1k, False: 1.16k]
  ------------------
  790|  10.1k|    struct Curl_dnscache *dnscache = dnscache_get(data);
  791|  10.1k|    struct Curl_dns_entry *dns = *pdns;
  792|  10.1k|    *pdns = NULL;
  793|  10.1k|    dnscache_lock(data, dnscache);
  794|  10.1k|    dns->refcount--;
  795|  10.1k|    if(dns->refcount == 0)
  ------------------
  |  Branch (795:8): [True: 0, False: 10.1k]
  ------------------
  796|      0|      dnscache_entry_free(dns);
  797|  10.1k|    dnscache_unlock(data, dnscache);
  798|  10.1k|  }
  799|  11.3k|}
Curl_dnscache_init:
  814|  9.97k|{
  815|  9.97k|  Curl_hash_init(&dns->entries, size, Curl_hash_str, curlx_str_key_compare,
  816|  9.97k|                 dnscache_entry_dtor);
  817|  9.97k|}
Curl_dnscache_destroy:
  820|  9.97k|{
  821|  9.97k|  Curl_hash_destroy(&dns->entries);
  822|  9.97k|}
dnscache.c:dnscache_get:
  170|  43.8k|{
  171|  43.8k|  if(data->share && data->share->specifier & (1 << CURL_LOCK_DATA_DNS))
  ------------------
  |  Branch (171:6): [True: 0, False: 43.8k]
  |  Branch (171:21): [True: 0, False: 0]
  ------------------
  172|      0|    return &data->share->dnscache;
  173|  43.8k|  if(data->multi)
  ------------------
  |  Branch (173:6): [True: 43.8k, False: 0]
  ------------------
  174|  43.8k|    return &data->multi->dnscache;
  175|      0|  return NULL;
  176|  43.8k|}
dnscache.c:dnscache_lock:
  180|  43.8k|{
  181|  43.8k|  if(data->share && dnscache == &data->share->dnscache)
  ------------------
  |  Branch (181:6): [True: 0, False: 43.8k]
  |  Branch (181:21): [True: 0, False: 0]
  ------------------
  182|      0|    Curl_share_lock(data, CURL_LOCK_DATA_DNS, CURL_LOCK_ACCESS_SINGLE);
  183|  43.8k|}
dnscache.c:dnscache_prune:
  155|  14.2k|{
  156|  14.2k|  struct dnscache_prune_data user;
  157|       |
  158|  14.2k|  user.max_age_ms = cache_timeout_ms;
  159|  14.2k|  user.now = now;
  160|  14.2k|  user.oldest_ms = 0;
  161|       |
  162|  14.2k|  Curl_hash_clean_with_criterium(hostcache,
  163|  14.2k|                                 (void *)&user,
  164|  14.2k|                                 dnscache_entry_is_stale);
  165|       |
  166|  14.2k|  return user.oldest_ms;
  167|  14.2k|}
dnscache.c:dnscache_entry_is_stale:
  131|  15.0k|{
  132|  15.0k|  struct dnscache_prune_data *prune = (struct dnscache_prune_data *)datap;
  133|  15.0k|  struct Curl_dns_entry *dns = (struct Curl_dns_entry *)hc;
  134|       |
  135|  15.0k|  if(dns->timestamp.tv_sec || dns->timestamp.tv_usec) {
  ------------------
  |  Branch (135:6): [True: 15.0k, False: 0]
  |  Branch (135:31): [True: 0, False: 0]
  ------------------
  136|       |    /* get age in milliseconds */
  137|  15.0k|    timediff_t age = curlx_ptimediff_ms(&prune->now, &dns->timestamp);
  138|  15.0k|    if(!dns->addr)
  ------------------
  |  Branch (138:8): [True: 0, False: 15.0k]
  ------------------
  139|      0|      age *= 2; /* negative entries age twice as fast */
  140|  15.0k|    if(age >= prune->max_age_ms)
  ------------------
  |  Branch (140:8): [True: 0, False: 15.0k]
  ------------------
  141|      0|      return TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  142|  15.0k|    if(age > prune->oldest_ms)
  ------------------
  |  Branch (142:8): [True: 10.2k, False: 4.84k]
  ------------------
  143|  10.2k|      prune->oldest_ms = age;
  144|  15.0k|  }
  145|  15.0k|  return FALSE;
  ------------------
  |  | 1056|  15.0k|#define FALSE false
  ------------------
  146|  15.0k|}
dnscache.c:dnscache_unlock:
  187|  43.8k|{
  188|  43.8k|  if(data->share && dnscache == &data->share->dnscache)
  ------------------
  |  Branch (188:6): [True: 0, False: 43.8k]
  |  Branch (188:21): [True: 0, False: 0]
  ------------------
  189|      0|    Curl_share_unlock(data, CURL_LOCK_DATA_DNS);
  190|  43.8k|}
dnscache.c:fetch_addr:
  242|  10.1k|{
  243|  10.1k|  struct Curl_dns_entry *dns = NULL;
  244|  10.1k|  struct dnsc_id id;
  245|  10.1k|  struct dnsc_key key;
  246|  10.1k|  char type = CURL_DNSQ_IS_ADDR(dns_queries) ?
  ------------------
  |  |   56|  10.1k|#define CURL_DNSQ_IS_ADDR(x)  (uint8_t)((x)&(CURL_DNSQ_ADDR))
  |  |  ------------------
  |  |  |  |   55|  10.1k|#define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|  10.1k|#define CURL_DNSQ_A           (1U << 0)
  |  |  |  |  ------------------
  |  |  |  |               #define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  |  |  ------------------
  |  |  |  |  |  |   52|  10.1k|#define CURL_DNSQ_AAAA        (1U << 1)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (56:31): [True: 10.1k, False: 0]
  |  |  ------------------
  ------------------
  247|  10.1k|              CURL_DNST_ADDR : CURL_DNST_HTTPS;
  ------------------
  |  |   41|  10.1k|#define CURL_DNST_ADDR      'A'
  ------------------
                            CURL_DNST_ADDR : CURL_DNST_HTTPS;
  ------------------
  |  |   42|  10.1k|#define CURL_DNST_HTTPS     'H'
  ------------------
  248|  10.1k|  CURLcode result = CURLE_OK;
  249|       |
  250|  10.1k|  *pdns = NULL;
  251|  10.1k|  if(!dnscache)
  ------------------
  |  Branch (251:6): [True: 0, False: 10.1k]
  ------------------
  252|      0|    return CURLE_OK;
  253|       |
  254|  10.1k|  dnsc_peer2id(&id, type, peer);
  255|  10.1k|  dnsc_id2key(&key, &id);
  256|       |
  257|       |  /* See if it is already in our dns cache */
  258|  10.1k|  dns = Curl_hash_pick(&dnscache->entries, key.data, key.len);
  259|       |
  260|       |  /* No entry found in cache, check if we might have a wildcard entry */
  261|  10.1k|  if(!dns && (type == CURL_DNST_ADDR) && data->state.wildcard_resolve) {
  ------------------
  |  |   41|  9.33k|#define CURL_DNST_ADDR      'A'
  ------------------
  |  Branch (261:6): [True: 9.33k, False: 806]
  |  Branch (261:14): [True: 9.33k, False: 0]
  |  Branch (261:42): [True: 0, False: 9.33k]
  ------------------
  262|      0|    struct Curl_str wildname;
  263|       |
  264|      0|    curlx_str_assign(&wildname, "*", 1);
  265|      0|    dnsc_str2id(&id, CURL_DNST_ADDR, &wildname, peer->port);
  ------------------
  |  |   41|      0|#define CURL_DNST_ADDR      'A'
  ------------------
  266|      0|    dnsc_id2key(&key, &id);
  267|       |
  268|       |    /* See if it is already in our dns cache */
  269|      0|    dns = Curl_hash_pick(&dnscache->entries, key.data, key.len);
  270|      0|  }
  271|       |
  272|  10.1k|  if(dns && (data->set.dns_cache_timeout_ms != -1)) {
  ------------------
  |  Branch (272:6): [True: 806, False: 9.33k]
  |  Branch (272:13): [True: 806, False: 0]
  ------------------
  273|       |    /* See whether the returned entry is stale. Done before we release lock */
  274|    806|    struct dnscache_prune_data user;
  275|       |
  276|    806|    user.now = *Curl_pgrs_now(data);
  277|    806|    user.max_age_ms = data->set.dns_cache_timeout_ms;
  278|    806|    user.oldest_ms = 0;
  279|       |
  280|    806|    if(dnscache_entry_is_stale(&user, dns)) {
  ------------------
  |  Branch (280:8): [True: 0, False: 806]
  ------------------
  281|      0|      infof(data, "Hostname in DNS cache was stale, zapped");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  282|      0|      dns = NULL; /* the memory deallocation is being handled by the hash */
  283|      0|      Curl_hash_delete(&dnscache->entries, key.data, key.len);
  284|      0|    }
  285|    806|  }
  286|       |
  287|       |  /* We need to cache address information and HTTPS-RR separately. */
  288|  10.1k|  if(dns && CURL_DNSQ_IS_ADDR(dns_queries)) {
  ------------------
  |  |   56|    806|#define CURL_DNSQ_IS_ADDR(x)  (uint8_t)((x)&(CURL_DNSQ_ADDR))
  |  |  ------------------
  |  |  |  |   55|    806|#define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|    806|#define CURL_DNSQ_A           (1U << 0)
  |  |  |  |  ------------------
  |  |  |  |               #define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  |  |  ------------------
  |  |  |  |  |  |   52|    806|#define CURL_DNSQ_AAAA        (1U << 1)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (56:31): [True: 806, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (288:6): [True: 806, False: 9.33k]
  ------------------
  289|    806|    if((uint8_t)(dns->dns_queries & dns_queries) !=
  ------------------
  |  Branch (289:8): [True: 0, False: 806]
  ------------------
  290|    806|       (uint8_t)(dns_queries & CURL_DNSQ_ADDR)) {
  ------------------
  |  |   55|    806|#define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  ------------------
  |  |  |  |   51|    806|#define CURL_DNSQ_A           (1U << 0)
  |  |  ------------------
  |  |               #define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  ------------------
  |  |  |  |   52|    806|#define CURL_DNSQ_AAAA        (1U << 1)
  |  |  ------------------
  ------------------
  291|       |      /* The entry does not cover all wanted address queries, a miss. */
  292|      0|      dns = NULL;
  293|      0|    }
  294|    806|    else if(!(dns->dns_responses & dns_queries)) {
  ------------------
  |  Branch (294:13): [True: 0, False: 806]
  ------------------
  295|       |      /* The entry has no responses for the wanted DNS queries. */
  296|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  170|      0|      Curl_trc_dns(data, __VA_ARGS__); \
  |  |  171|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (171:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  297|      0|                   Curl_resolv_query_str(dns_queries));
  298|      0|      dns = NULL;
  299|      0|      result = CURLE_COULDNT_RESOLVE_HOST;
  300|      0|    }
  301|    806|    else if(dns && !dns->addr) { /* negative entry */
  ------------------
  |  Branch (301:13): [True: 806, False: 0]
  |  Branch (301:20): [True: 0, False: 806]
  ------------------
  302|      0|      dns = NULL;
  303|      0|      result = CURLE_COULDNT_RESOLVE_HOST;
  304|      0|    }
  305|    806|  }
  306|       |
  307|  10.1k|  *pdns = dns;
  308|  10.1k|  return result;
  309|  10.1k|}
dnscache.c:dnsc_peer2id:
   71|  19.4k|{
   72|  19.4k|  curlx_str_assign(&pid->name, peer->hostname, strlen(peer->hostname));
   73|  19.4k|  pid->port = peer->port;
   74|  19.4k|  pid->type = type;
   75|  19.4k|}
dnscache.c:dnsc_entry_create:
  446|  9.33k|{
  447|  9.33k|  struct Curl_dns_entry *dns = NULL;
  448|       |
  449|       |  /* Create a new cache entry, struct already has the hostname NUL */
  450|  9.33k|  dns = curlx_calloc(1, sizeof(struct Curl_dns_entry) +
  ------------------
  |  | 1479|  9.33k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  451|  9.33k|                     curlx_strlen(&pid->name));
  452|  9.33k|  if(!dns)
  ------------------
  |  Branch (452:6): [True: 0, False: 9.33k]
  ------------------
  453|      0|    goto out;
  454|       |
  455|  9.33k|  dns->refcount = 1; /* the cache has the first reference */
  456|  9.33k|  dns->hostlen = curlx_strlen(&pid->name);
  ------------------
  |  |   50|  9.33k|#define curlx_strlen(x) ((x)->len)
  ------------------
  457|  9.33k|  dns->port = pid->port;
  458|  9.33k|  if(dns->hostlen)
  ------------------
  |  Branch (458:6): [True: 9.33k, False: 0]
  ------------------
  459|  9.33k|    memcpy(dns->hostname, curlx_str(&pid->name), dns->hostlen);
  ------------------
  |  |   49|  9.33k|#define curlx_str(x)    ((x)->str)
  ------------------
  460|       |
  461|  9.33k|  if(permanent) {
  ------------------
  |  Branch (461:6): [True: 0, False: 9.33k]
  ------------------
  462|      0|    dns->timestamp.tv_sec = 0; /* an entry that never goes stale */
  463|      0|    dns->timestamp.tv_usec = 0; /* an entry that never goes stale */
  464|      0|  }
  465|  9.33k|  else {
  466|  9.33k|    dns->timestamp = *Curl_pgrs_now(data);
  467|  9.33k|  }
  468|       |
  469|  9.33k|out:
  470|  9.33k|  return dns;
  471|  9.33k|}
dnscache.c:dnsc_entry_assign_addr:
  480|  9.33k|{
  481|  9.33k|  if(!dns)
  ------------------
  |  Branch (481:6): [True: 0, False: 9.33k]
  ------------------
  482|      0|    goto out;
  483|       |  /* only do this when this is the only reference */
  484|  9.33k|  DEBUGASSERT(dns->refcount == 1);
  ------------------
  |  | 1083|  9.33k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (484:3): [True: 0, False: 9.33k]
  |  Branch (484:3): [True: 9.33k, False: 0]
  ------------------
  485|  9.33k|  DEBUGASSERT(dns->type == CURL_DNST_INIT);
  ------------------
  |  | 1083|  9.33k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (485:3): [True: 0, False: 9.33k]
  |  Branch (485:3): [True: 9.33k, False: 0]
  ------------------
  486|       |
  487|  9.33k|  dns->type = CURL_DNST_ADDR;
  ------------------
  |  |   41|  9.33k|#define CURL_DNST_ADDR      'A'
  ------------------
  488|       |  /* queries should only be about addresses */
  489|  9.33k|  DEBUGASSERT(!(dns_queries & ~CURL_DNSQ_ADDR));
  ------------------
  |  | 1083|  9.33k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (489:3): [True: 0, False: 9.33k]
  |  Branch (489:3): [True: 9.33k, False: 0]
  ------------------
  490|  9.33k|  dns->dns_queries = (dns_queries & CURL_DNSQ_ADDR);
  ------------------
  |  |   55|  9.33k|#define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  ------------------
  |  |  |  |   51|  9.33k|#define CURL_DNSQ_A           (1U << 0)
  |  |  ------------------
  |  |               #define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  ------------------
  |  |  |  |   52|  9.33k|#define CURL_DNSQ_AAAA        (1U << 1)
  |  |  ------------------
  ------------------
  491|       |
  492|       |  /* Take the given address lists into the entry */
  493|  9.33k|  if(paddr1 && *paddr1) {
  ------------------
  |  Branch (493:6): [True: 9.33k, False: 0]
  |  Branch (493:16): [True: 9.33k, False: 0]
  ------------------
  494|  9.33k|    dns->addr = *paddr1;
  495|  9.33k|    *paddr1 = NULL;
  496|  9.33k|  }
  497|  9.33k|  if(paddr2 && *paddr2) {
  ------------------
  |  Branch (497:6): [True: 0, False: 9.33k]
  |  Branch (497:16): [True: 0, False: 0]
  ------------------
  498|      0|    struct Curl_addrinfo **phead = &dns->addr;
  499|      0|    while(*phead)
  ------------------
  |  Branch (499:11): [True: 0, False: 0]
  ------------------
  500|      0|      phead = &(*phead)->ai_next;
  501|      0|    *phead = *paddr2;
  502|      0|    *paddr2 = NULL;
  503|      0|  }
  504|       |
  505|  9.33k|  if((dns_queries & CURL_DNSQ_A) &&
  ------------------
  |  |   51|  9.33k|#define CURL_DNSQ_A           (1U << 0)
  ------------------
  |  Branch (505:6): [True: 9.33k, False: 0]
  ------------------
  506|  9.33k|     dnscache_ai_has_family(dns->addr, PF_INET))
  ------------------
  |  Branch (506:6): [True: 9.33k, False: 0]
  ------------------
  507|  9.33k|    dns->dns_responses |= CURL_DNSQ_A;
  ------------------
  |  |   51|  9.33k|#define CURL_DNSQ_A           (1U << 0)
  ------------------
  508|       |
  509|  9.33k|#ifdef USE_IPV6
  510|  9.33k|  if((dns_queries & CURL_DNSQ_AAAA) &&
  ------------------
  |  |   52|  9.33k|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  |  Branch (510:6): [True: 9.33k, False: 0]
  ------------------
  511|  9.33k|     dnscache_ai_has_family(dns->addr, PF_INET6))
  ------------------
  |  Branch (511:6): [True: 0, False: 9.33k]
  ------------------
  512|      0|    dns->dns_responses |= CURL_DNSQ_AAAA;
  ------------------
  |  |   52|      0|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  513|  9.33k|#endif /* USE_IPV6 */
  514|       |
  515|  9.33k|#ifndef CURL_DISABLE_SHUFFLE_DNS
  516|       |  /* shuffle addresses if requested */
  517|  9.33k|  if(data->set.dns_shuffle_addresses && dns->addr) {
  ------------------
  |  Branch (517:6): [True: 0, False: 9.33k]
  |  Branch (517:41): [True: 0, False: 0]
  ------------------
  518|      0|    CURLcode result = dns_shuffle_addr(data, &dns->addr);
  519|      0|    if(result) {
  ------------------
  |  Branch (519:8): [True: 0, False: 0]
  ------------------
  520|       |      /* free without lock, we are the sole owner */
  521|      0|      dnscache_entry_free(dns);
  522|      0|      dns = NULL;
  523|      0|      goto out;
  524|      0|    }
  525|      0|  }
  526|       |#else
  527|       |  (void)data;
  528|       |#endif
  529|       |
  530|  9.33k|out:
  531|  9.33k|  if(paddr1 && *paddr1) {
  ------------------
  |  Branch (531:6): [True: 9.33k, False: 0]
  |  Branch (531:16): [True: 0, False: 9.33k]
  ------------------
  532|      0|    Curl_freeaddrinfo(*paddr1);
  533|      0|    *paddr1 = NULL;
  534|      0|  }
  535|  9.33k|  if(paddr2 && *paddr2) {
  ------------------
  |  Branch (535:6): [True: 0, False: 9.33k]
  |  Branch (535:16): [True: 0, False: 0]
  ------------------
  536|      0|    Curl_freeaddrinfo(*paddr2);
  537|       |    *paddr2 = NULL;
  538|      0|  }
  539|  9.33k|  return dns;
  540|  9.33k|}
dnscache.c:dnscache_ai_has_family:
  435|  18.6k|{
  436|  28.0k|  for(; ai; ai = ai->ai_next) {
  ------------------
  |  Branch (436:9): [True: 18.6k, False: 9.33k]
  ------------------
  437|  18.6k|    if(ai->ai_family == ai_family)
  ------------------
  |  Branch (437:8): [True: 9.33k, False: 9.33k]
  ------------------
  438|  9.33k|      return TRUE;
  ------------------
  |  | 1053|  9.33k|#define TRUE true
  ------------------
  439|  18.6k|  }
  440|  9.33k|  return FALSE;
  ------------------
  |  | 1056|  9.33k|#define FALSE false
  ------------------
  441|  18.6k|}
dnscache.c:dnsc_str2id:
   79|  9.33k|{
   80|  9.33k|  pid->name = *name;
   81|  9.33k|  pid->port = port;
   82|  9.33k|  pid->type = type;
   83|  9.33k|}
dnscache.c:dnsc_id2key:
   95|  19.4k|{
   96|  19.4k|  size_t namelen = curlx_strlen(&id->name);
  ------------------
  |  |   50|  19.4k|#define curlx_strlen(x) ((x)->len)
  ------------------
   97|  19.4k|  if(namelen > (sizeof(key->data) - 8))
  ------------------
  |  Branch (97:6): [True: 0, False: 19.4k]
  ------------------
   98|      0|    namelen = sizeof(key->data) - 8;
   99|       |  /* store and lower case the name */
  100|  19.4k|  key->data[0] = id->type;
  101|  19.4k|  Curl_strntolower(key->data + 1, curlx_str(&id->name), namelen);
  ------------------
  |  |   49|  19.4k|#define curlx_str(x)    ((x)->str)
  ------------------
  102|       |  /* include the terminating 0 in key length */
  103|  19.4k|  key->len = namelen + 2 +
  104|  19.4k|             curl_msnprintf(&key->data[namelen + 1], 7, ":%u", id->port);
  105|  19.4k|}
dnscache.c:dnscache_entry_free:
  109|  9.33k|{
  110|  9.33k|  Curl_freeaddrinfo(dns->addr);
  111|       |#ifdef USE_HTTPSRR
  112|       |  Curl_httpsrr_destroy(dns->hinfo);
  113|       |#endif
  114|  9.33k|  curlx_free(dns);
  ------------------
  |  | 1482|  9.33k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  115|  9.33k|}
dnscache.c:dnscache_entry_dtor:
  802|  9.33k|{
  803|  9.33k|  struct Curl_dns_entry *dns = (struct Curl_dns_entry *)entry;
  804|  9.33k|  DEBUGASSERT(dns && (dns->refcount > 0));
  ------------------
  |  | 1083|  9.33k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (804:3): [True: 0, False: 9.33k]
  |  Branch (804:3): [True: 0, False: 0]
  |  Branch (804:3): [True: 9.33k, False: 0]
  |  Branch (804:3): [True: 9.33k, False: 0]
  ------------------
  805|  9.33k|  dns->refcount--;
  806|  9.33k|  if(dns->refcount == 0)
  ------------------
  |  Branch (806:6): [True: 9.33k, False: 0]
  ------------------
  807|  9.33k|    dnscache_entry_free(dns);
  808|  9.33k|}

Curl_resolv_dns_queries:
  126|  10.1k|{
  127|  10.1k|  (void)data;
  128|  10.1k|  switch(ip_version) {
  129|      0|  case CURL_IPRESOLVE_V6:
  ------------------
  |  | 2330|      0|#define CURL_IPRESOLVE_V6       2L /* uses only IPv6 addresses/connections */
  ------------------
  |  Branch (129:3): [True: 0, False: 10.1k]
  ------------------
  130|      0|    return CURL_DNSQ_AAAA;
  ------------------
  |  |   52|      0|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  131|      0|  case CURL_IPRESOLVE_V4:
  ------------------
  |  | 2329|      0|#define CURL_IPRESOLVE_V4       1L /* uses only IPv4 addresses/connections */
  ------------------
  |  Branch (131:3): [True: 0, False: 10.1k]
  ------------------
  132|      0|    return CURL_DNSQ_A;
  ------------------
  |  |   51|      0|#define CURL_DNSQ_A           (1U << 0)
  ------------------
  133|  10.1k|  default:
  ------------------
  |  Branch (133:3): [True: 10.1k, False: 0]
  ------------------
  134|  10.1k|    if(ipv6works(data))
  ------------------
  |  Branch (134:8): [True: 10.1k, False: 0]
  ------------------
  135|  10.1k|      return (CURL_DNSQ_A | CURL_DNSQ_AAAA);
  ------------------
  |  |   51|  10.1k|#define CURL_DNSQ_A           (1U << 0)
  ------------------
                    return (CURL_DNSQ_A | CURL_DNSQ_AAAA);
  ------------------
  |  |   52|  10.1k|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  136|      0|    else
  137|      0|      return CURL_DNSQ_A;
  ------------------
  |  |   51|      0|#define CURL_DNSQ_A           (1U << 0)
  ------------------
  138|  10.1k|  }
  139|  10.1k|}
Curl_probeipv6:
  290|  9.97k|{
  291|       |  /* probe to see if we have a working IPv6 stack */
  292|  9.97k|  curl_socket_t s = CURL_SOCKET(PF_INET6, SOCK_DGRAM, 0);
  ------------------
  |  | 1435|  9.97k|  curl_dbg_socket((int)(domain), type, protocol, __LINE__, __FILE__)
  ------------------
  293|  9.97k|  multi->ipv6_works = FALSE;
  ------------------
  |  | 1056|  9.97k|#define FALSE false
  ------------------
  294|  9.97k|  if(s == CURL_SOCKET_BAD) {
  ------------------
  |  |  145|  9.97k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (294:6): [True: 0, False: 9.97k]
  ------------------
  295|      0|    if(SOCKERRNO == SOCKENOMEM)
  ------------------
  |  | 1097|      0|#define SOCKERRNO         errno
  ------------------
                  if(SOCKERRNO == SOCKENOMEM)
  ------------------
  |  | 1135|      0|#define SOCKENOMEM        ENOMEM
  ------------------
  |  Branch (295:8): [True: 0, False: 0]
  ------------------
  296|      0|      return CURLE_OUT_OF_MEMORY;
  297|      0|  }
  298|  9.97k|  else {
  299|  9.97k|    multi->ipv6_works = TRUE;
  ------------------
  |  | 1053|  9.97k|#define TRUE true
  ------------------
  300|  9.97k|    sclose(s);
  ------------------
  |  | 1427|  9.97k|#define sclose(sockfd) curl_dbg_sclose(sockfd, __LINE__, __FILE__)
  ------------------
  301|  9.97k|  }
  302|  9.97k|  return CURLE_OK;
  303|  9.97k|}
Curl_host_is_ipnum:
  321|  33.0k|{
  322|  33.0k|  struct in_addr in;
  323|  33.0k|#ifdef USE_IPV6
  324|  33.0k|  struct in6_addr in6;
  325|  33.0k|#endif
  326|  33.0k|  if(curlx_inet_pton(AF_INET, hostname, &in) > 0
  ------------------
  |  Branch (326:6): [True: 6.52k, False: 26.4k]
  ------------------
  327|  26.4k|#ifdef USE_IPV6
  328|  26.4k|     || curlx_inet_pton(AF_INET6, hostname, &in6) > 0
  ------------------
  |  Branch (328:9): [True: 2.89k, False: 23.5k]
  ------------------
  329|  33.0k|#endif
  330|  33.0k|    )
  331|  9.41k|    return TRUE;
  ------------------
  |  | 1053|  9.41k|#define TRUE true
  ------------------
  332|  23.5k|  return FALSE;
  ------------------
  |  | 1056|  23.5k|#define FALSE false
  ------------------
  333|  33.0k|}
Curl_resolv_announce_start:
  364|  9.33k|{
  365|  9.33k|  if(data->set.resolver_start) {
  ------------------
  |  Branch (365:6): [True: 0, False: 9.33k]
  ------------------
  366|      0|    struct Curl_mapi_guard guard;
  367|      0|    int rc;
  368|       |
  369|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  170|      0|      Curl_trc_dns(data, __VA_ARGS__); \
  |  |  171|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (171:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  370|      0|    CURL_CBAPI_START(&guard, data, easy_resolver_start);
  ------------------
  |  |  200|      0|  Curl_cbapi_enter((g), (d), NULL, CURL_CBAPI_FN_##fn)
  ------------------
  371|      0|    rc = data->set.resolver_start(resolver, NULL,
  372|      0|                                  data->set.resolver_start_client);
  373|      0|    CURL_CBAPI_END(&guard);
  ------------------
  |  |  204|      0|  Curl_cbapi_leave(g)
  ------------------
  374|      0|    if(rc) {
  ------------------
  |  Branch (374:8): [True: 0, False: 0]
  ------------------
  375|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  170|      0|      Curl_trc_dns(data, __VA_ARGS__); \
  |  |  171|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (171:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  376|      0|      return CURLE_ABORTED_BY_CALLBACK;
  377|      0|    }
  378|      0|  }
  379|  9.33k|  return CURLE_OK;
  380|  9.33k|}
Curl_resolv:
 1031|  10.1k|{
 1032|  10.1k|  *presolv_id = 0;
 1033|  10.1k|  *pdns = NULL;
 1034|       |
 1035|  10.1k|  if(timeout_ms < 0)
  ------------------
  |  Branch (1035:6): [True: 0, False: 10.1k]
  ------------------
 1036|       |    /* got an already expired timeout */
 1037|      0|    return CURLE_OPERATION_TIMEDOUT;
 1038|  10.1k|  else if(!timeout_ms)
  ------------------
  |  Branch (1038:11): [True: 0, False: 10.1k]
  ------------------
 1039|      0|    timeout_ms = CURL_TIMEOUT_RESOLVE_MS;
  ------------------
  |  |   38|      0|#define CURL_TIMEOUT_RESOLVE_MS (300 * 1000)
  ------------------
 1040|       |
 1041|  10.1k|#ifdef USE_UNIX_SOCKETS
 1042|  10.1k|  if((dns_queries & CURL_DNSQ_ADDR) && peer->unix_socket)
  ------------------
  |  |   55|  10.1k|#define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  ------------------
  |  |  |  |   51|  10.1k|#define CURL_DNSQ_A           (1U << 0)
  |  |  ------------------
  |  |               #define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  ------------------
  |  |  |  |   52|  10.1k|#define CURL_DNSQ_AAAA        (1U << 1)
  |  |  ------------------
  ------------------
  |  Branch (1042:6): [True: 10.1k, False: 0]
  |  Branch (1042:40): [True: 0, False: 10.1k]
  ------------------
 1043|      0|    return resolv_unix(data, peer, pdns);
 1044|       |#else
 1045|       |  if(peer->unix_socket)
 1046|       |    return hostip_resolv_failed(data, peer, for_proxy);
 1047|       |#endif
 1048|       |
 1049|       |#ifdef USE_ALARM_TIMEOUT
 1050|       |  if(dns_queries & CURL_DNSQ_ADDR) {
 1051|       |    if(timeout_ms && data->set.no_signal) {
 1052|       |      /* Cannot use ALARM when signals are disabled */
 1053|       |      timeout_ms = 0;
 1054|       |    }
 1055|       |    if(timeout_ms && !Curl_doh_wanted(data)) {
 1056|       |      return resolv_alarm_timeout(data, dns_queries, peer, transport,
 1057|       |                                  for_proxy, timeout_ms, presolv_id, pdns);
 1058|       |    }
 1059|       |  }
 1060|       |#endif /* !USE_ALARM_TIMEOUT */
 1061|       |
 1062|       |#ifndef CURLRES_ASYNCH
 1063|       |  if(timeout_ms)
 1064|       |    infof(data, "timeout on name lookup is not supported");
 1065|       |#endif
 1066|       |
 1067|  10.1k|  return hostip_resolv(data, dns_queries, peer, transport,
 1068|       |                       for_proxy, timeout_ms, TRUE, presolv_id, pdns);
  ------------------
  |  | 1053|  10.1k|#define TRUE true
  ------------------
 1069|  10.1k|}
Curl_resolv_pollset:
 1136|  6.51k|{
 1137|  6.51k|  struct Curl_resolv_async *async = data->state.async;
 1138|  6.51k|  CURLcode result = CURLE_OK;
 1139|       |
 1140|  6.51k|  (void)ps;
 1141|  6.51k|  for(; async && !result; async = async->next) {
  ------------------
  |  Branch (1141:9): [True: 0, False: 6.51k]
  |  Branch (1141:18): [True: 0, False: 0]
  ------------------
 1142|      0|#ifndef CURL_DISABLE_DOH
 1143|      0|    if(async->doh) /* DoH has nothing for the pollset */
  ------------------
  |  Branch (1143:8): [True: 0, False: 0]
  ------------------
 1144|      0|      continue;
 1145|      0|#endif
 1146|      0|    result = Curl_async_pollset(data, async, ps);
 1147|      0|  }
 1148|  6.51k|  return result;
 1149|  6.51k|}
Curl_resolv_destroy:
 1152|  8.97k|{
 1153|  8.97k|  struct Curl_resolv_async **panchor = &data->state.async;
 1154|       |
 1155|  8.97k|  for(; *panchor; panchor = &(*panchor)->next) {
  ------------------
  |  Branch (1155:9): [True: 0, False: 8.97k]
  ------------------
 1156|      0|    struct Curl_resolv_async *async = *panchor;
 1157|      0|    if(async->id == resolv_id) {
  ------------------
  |  Branch (1157:8): [True: 0, False: 0]
  ------------------
 1158|      0|      *panchor = async->next;
 1159|      0|      Curl_async_destroy(data, async);
 1160|      0|      break;
 1161|      0|    }
 1162|      0|  }
 1163|  8.97k|}
Curl_resolv_shutdown_all:
 1166|  14.2k|{
 1167|  14.2k|  struct Curl_resolv_async *async = data->state.async;
 1168|  14.2k|  for(; async; async = async->next) {
  ------------------
  |  Branch (1168:9): [True: 0, False: 14.2k]
  ------------------
 1169|      0|    Curl_async_shutdown(data, async);
 1170|      0|  }
 1171|  14.2k|}
Curl_resolv_destroy_all:
 1174|  34.8k|{
 1175|  34.8k|  while(data->state.async) {
  ------------------
  |  Branch (1175:9): [True: 0, False: 34.8k]
  ------------------
 1176|      0|    struct Curl_resolv_async *async = data->state.async;
 1177|      0|    data->state.async = async->next;
 1178|      0|    Curl_async_destroy(data, async);
 1179|      0|  }
 1180|  34.8k|}
hostip.c:ipv6works:
  309|  10.1k|{
  310|  10.1k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (310:3): [True: 0, False: 10.1k]
  |  Branch (310:3): [True: 10.1k, False: 0]
  ------------------
  311|  10.1k|  DEBUGASSERT(data->multi);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (311:3): [True: 0, False: 10.1k]
  |  Branch (311:3): [True: 10.1k, False: 0]
  ------------------
  312|  10.1k|  return data ? data->multi->ipv6_works : FALSE;
  ------------------
  |  | 1056|  10.1k|#define FALSE false
  ------------------
  |  Branch (312:10): [True: 10.1k, False: 0]
  ------------------
  313|  10.1k|}
hostip.c:hostip_resolv:
  712|  10.1k|{
  713|  10.1k|  size_t hostname_len;
  714|  10.1k|  CURLcode result = RESOLV_FAIL(for_proxy);
  ------------------
  |  |   74|  10.1k|  ((for_proxy) ? CURLE_COULDNT_RESOLVE_PROXY : CURLE_COULDNT_RESOLVE_HOST)
  |  |  ------------------
  |  |  |  Branch (74:4): [True: 0, False: 10.1k]
  |  |  ------------------
  ------------------
  715|  10.1k|  bool cache_dns = FALSE;
  ------------------
  |  | 1056|  10.1k|#define FALSE false
  ------------------
  716|  10.1k|  bool negative = FALSE;
  ------------------
  |  | 1056|  10.1k|#define FALSE false
  ------------------
  717|       |
  718|  10.1k|  (void)timeout_ms; /* not used in all ifdefs */
  719|  10.1k|  *presolv_id = 0;
  720|  10.1k|  *pdns = NULL;
  721|       |
  722|       |#ifdef CURL_DISABLE_DOH
  723|       |  (void)allowDOH;
  724|       |#endif
  725|       |
  726|       |  /* We should intentionally error and not resolve .onion TLDs */
  727|  10.1k|  hostname_len = strlen(peer->hostname);
  728|  10.1k|  DEBUGASSERT(hostname_len);
  ------------------
  |  | 1083|  10.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (728:3): [True: 0, False: 10.1k]
  |  Branch (728:3): [True: 10.1k, False: 0]
  ------------------
  729|  10.1k|  if(hostname_len >= 7 &&
  ------------------
  |  Branch (729:6): [True: 10.1k, False: 0]
  ------------------
  730|  10.1k|     (curl_strequal(&peer->hostname[hostname_len - 6], ".onion") ||
  ------------------
  |  Branch (730:7): [True: 0, False: 10.1k]
  ------------------
  731|  10.1k|      curl_strequal(&peer->hostname[hostname_len - 7], ".onion."))) {
  ------------------
  |  Branch (731:7): [True: 0, False: 10.1k]
  ------------------
  732|      0|    failf(data, "Not resolving .onion address (RFC 7686)");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  733|      0|    goto out;
  734|      0|  }
  735|       |
  736|  10.1k|#ifdef DEBUGBUILD
  737|  10.1k|  CURL_TRC_DNS(data, "[%s] hostip_resolv(%s:%u)",
  ------------------
  |  |  168|  10.1k|  do {                                 \
  |  |  169|  10.1k|    if(CURL_TRC_DNS_is_verbose(data))  \
  |  |  ------------------
  |  |  |  |  137|  10.1k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_dns)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  10.1k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  20.2k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 10.1k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 10.1k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  20.2k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  10.1k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  170|  10.1k|      Curl_trc_dns(data, __VA_ARGS__); \
  |  |  171|  10.1k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (171:11): [Folded, False: 10.1k]
  |  |  ------------------
  ------------------
  738|  10.1k|               Curl_resolv_query_str(dns_queries), peer->hostname, peer->port);
  739|  10.1k|  if((CURL_DNSQ_IS_ADDR(dns_queries) == CURL_DNSQ_AAAA) &&
  ------------------
  |  |   56|  10.1k|#define CURL_DNSQ_IS_ADDR(x)  (uint8_t)((x)&(CURL_DNSQ_ADDR))
  |  |  ------------------
  |  |  |  |   55|  10.1k|#define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  |  |  ------------------
  |  |  |  |  |  |   51|  10.1k|#define CURL_DNSQ_A           (1U << 0)
  |  |  |  |  ------------------
  |  |  |  |               #define CURL_DNSQ_ADDR        (uint8_t)(CURL_DNSQ_A | CURL_DNSQ_AAAA)
  |  |  |  |  ------------------
  |  |  |  |  |  |   52|  10.1k|#define CURL_DNSQ_AAAA        (1U << 1)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                if((CURL_DNSQ_IS_ADDR(dns_queries) == CURL_DNSQ_AAAA) &&
  ------------------
  |  |   52|  10.1k|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  |  Branch (739:6): [True: 0, False: 10.1k]
  ------------------
  740|      0|     getenv("CURL_DBG_RESOLV_FAIL_IPV6")) {
  ------------------
  |  Branch (740:6): [True: 0, False: 0]
  ------------------
  741|      0|    infof(data, "DEBUG fail ipv6 resolve");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  742|      0|    result = hostip_resolv_failed(data, peer, for_proxy);
  743|      0|    goto out;
  744|      0|  }
  745|  10.1k|#endif
  746|       |  /* Let's check our DNS cache first */
  747|  10.1k|  result = Curl_dnscache_get(data, dns_queries, peer, pdns);
  748|  10.1k|  if(*pdns) {
  ------------------
  |  Branch (748:6): [True: 806, False: 9.33k]
  ------------------
  749|    806|    infof(data, "Hostname %s was found in DNS cache", peer->hostname);
  ------------------
  |  |  143|    806|  do {                               \
  |  |  144|    806|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|    806|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 806, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 806]
  |  |  |  |  ------------------
  |  |  |  |  323|    806|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    806|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    806|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 806]
  |  |  ------------------
  ------------------
  750|    806|    result = CURLE_OK;
  751|    806|  }
  752|  9.33k|  else if(result) {
  ------------------
  |  Branch (752:11): [True: 0, False: 9.33k]
  ------------------
  753|      0|    infof(data, "Negative DNS entry");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  754|      0|    result = hostip_resolv_failed(data, peer, for_proxy);
  755|      0|  }
  756|  9.33k|  else {
  757|       |    /* No luck, we need to start resolving. */
  758|  9.33k|    cache_dns = TRUE;
  ------------------
  |  | 1053|  9.33k|#define TRUE true
  ------------------
  759|  9.33k|    result = hostip_resolv_start(data, dns_queries, peer, transport,
  760|  9.33k|                                 for_proxy, timeout_ms, allowDOH,
  761|  9.33k|                                 presolv_id, pdns, &negative);
  762|  9.33k|    CURL_TRC_DNS(data, "[%s] hostip_resolv started -> %d",
  ------------------
  |  |  168|  9.33k|  do {                                 \
  |  |  169|  9.33k|    if(CURL_TRC_DNS_is_verbose(data))  \
  |  |  ------------------
  |  |  |  |  137|  9.33k|  Curl_trc_ft_is_verbose(data, &Curl_trc_feat_dns)
  |  |  |  |  ------------------
  |  |  |  |  |  |  329|  9.33k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  322|  18.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (322:4): [True: 9.33k, False: 0]
  |  |  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 9.33k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  323|  18.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  330|  9.33k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  170|  9.33k|      Curl_trc_dns(data, __VA_ARGS__); \
  |  |  171|  9.33k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (171:11): [Folded, False: 9.33k]
  |  |  ------------------
  ------------------
  763|  9.33k|                 Curl_resolv_query_str(dns_queries), (int)result);
  764|  9.33k|  }
  765|       |
  766|  10.1k|out:
  767|  10.1k|  if(result && (result != CURLE_AGAIN)) {
  ------------------
  |  Branch (767:6): [True: 0, False: 10.1k]
  |  Branch (767:16): [True: 0, False: 0]
  ------------------
  768|      0|    Curl_dns_entry_unlink(data, pdns);
  769|      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]
  |  |  ------------------
  ------------------
  770|      0|      if(cache_dns && negative)
  ------------------
  |  Branch (770:10): [True: 0, False: 0]
  |  Branch (770:23): [True: 0, False: 0]
  ------------------
  771|      0|        Curl_dnscache_add_negative(data, dns_queries, peer);
  772|      0|      if(dns_queries & (CURL_DNSQ_A|CURL_DNSQ_AAAA))
  ------------------
  |  |   51|      0|#define CURL_DNSQ_A           (1U << 0)
  ------------------
                    if(dns_queries & (CURL_DNSQ_A|CURL_DNSQ_AAAA))
  ------------------
  |  |   52|      0|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  |  Branch (772:10): [True: 0, False: 0]
  ------------------
  773|      0|        failf(data, "Could not resolve: %s:%u", peer->hostname, peer->port);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  774|      0|    }
  775|      0|    else {
  776|      0|      failf(data, "Error %d resolving %s:%u",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  777|      0|            (int)result, peer->hostname, peer->port);
  778|      0|    }
  779|      0|  }
  780|  10.1k|  else if(cache_dns && *pdns) {
  ------------------
  |  Branch (780:11): [True: 9.33k, False: 806]
  |  Branch (780:24): [True: 9.33k, False: 0]
  ------------------
  781|  9.33k|    result = Curl_dnscache_add(data, *pdns);
  782|  9.33k|    if(result)
  ------------------
  |  Branch (782:8): [True: 0, False: 9.33k]
  ------------------
  783|      0|      Curl_dns_entry_unlink(data, pdns);
  784|  9.33k|  }
  785|       |
  786|  10.1k|  return result;
  787|  10.1k|}
hostip.c:hostip_resolv_start:
  567|  9.33k|{
  568|  9.33k|#ifdef USE_CURL_ASYNC
  569|  9.33k|  struct Curl_resolv_async *async = NULL;
  570|  9.33k|#endif
  571|  9.33k|  struct Curl_addrinfo *addr = NULL;
  572|  9.33k|  size_t hostname_len;
  573|  9.33k|  bool addr_queries = (dns_queries & (CURL_DNSQ_A|CURL_DNSQ_AAAA));
  ------------------
  |  |   51|  9.33k|#define CURL_DNSQ_A           (1U << 0)
  ------------------
                bool addr_queries = (dns_queries & (CURL_DNSQ_A|CURL_DNSQ_AAAA));
  ------------------
  |  |   52|  9.33k|#define CURL_DNSQ_AAAA        (1U << 1)
  ------------------
  574|  9.33k|  CURLcode result = CURLE_OK;
  575|       |
  576|  9.33k|  *pnegative = FALSE;
  ------------------
  |  | 1056|  9.33k|#define FALSE false
  ------------------
  577|       |
  578|  9.33k|  (void)timeout_ms; /* not in all ifdefs */
  579|  9.33k|  *presolv_id = 0;
  580|  9.33k|  *pdns = NULL;
  581|       |
  582|       |  /* Check for "known" things to resolve ourselves. */
  583|  9.33k|  if(addr_queries) {
  ------------------
  |  Branch (583:6): [True: 9.33k, False: 0]
  ------------------
  584|  9.33k|#ifndef USE_RESOLVE_ON_IPS
  585|  9.33k|    if(Curl_is_ipaddr(peer->hostname)) {
  ------------------
  |  Branch (585:8): [True: 9.33k, False: 0]
  ------------------
  586|       |      /* test655 verifies that the announce is done, even though there
  587|       |       * is no real resolving. So, keep doing this. */
  588|  9.33k|      result = Curl_resolv_announce_start(data, NULL);
  589|  9.33k|      if(result)
  ------------------
  |  Branch (589:10): [True: 0, False: 9.33k]
  ------------------
  590|      0|        goto out;
  591|       |      /* shortcut literal IP addresses, if we are not told to resolve them. */
  592|  9.33k|      result = Curl_str2addr(peer->hostname, peer->port, &addr);
  593|  9.33k|      goto out;
  594|  9.33k|    }
  595|      0|#endif
  596|       |
  597|      0|    hostname_len = strlen(peer->hostname);
  598|      0|    if(curl_strequal(peer->hostname, "localhost") ||
  ------------------
  |  Branch (598:8): [True: 0, False: 0]
  ------------------
  599|      0|       curl_strequal(peer->hostname, "localhost.") ||
  ------------------
  |  Branch (599:8): [True: 0, False: 0]
  ------------------
  600|      0|       tailmatch(peer->hostname, hostname_len, STRCONST(".localhost")) ||
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  |  Branch (600:8): [True: 0, False: 0]
  ------------------
  601|      0|       tailmatch(peer->hostname, hostname_len, STRCONST(".localhost."))) {
  ------------------
  |  | 1305|      0|#define STRCONST(x) x, CURL_CSTRLEN(x)
  |  |  ------------------
  |  |  |  | 1300|      0|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  |  |  ------------------
  ------------------
  |  Branch (601:8): [True: 0, False: 0]
  ------------------
  602|      0|      result = Curl_resolv_announce_start(data, NULL);
  603|      0|      if(result)
  ------------------
  |  Branch (603:10): [True: 0, False: 0]
  ------------------
  604|      0|        goto out;
  605|      0|      addr = get_localhost(peer->port, peer->hostname);
  606|      0|      if(!addr)
  ------------------
  |  Branch (606:10): [True: 0, False: 0]
  ------------------
  607|      0|        result = CURLE_OUT_OF_MEMORY;
  608|      0|      goto out;
  609|      0|    }
  610|      0|  }
  611|      0|#ifndef CURL_DISABLE_DOH
  612|      0|  if(!Curl_is_ipaddr(peer->hostname) && allowDOH && data->set.doh) {
  ------------------
  |  Branch (612:6): [True: 0, False: 0]
  |  Branch (612:41): [True: 0, False: 0]
  |  Branch (612:53): [True: 0, False: 0]
  ------------------
  613|      0|    result = Curl_resolv_announce_start(data, NULL);
  614|      0|    if(result)
  ------------------
  |  Branch (614:8): [True: 0, False: 0]
  ------------------
  615|      0|      goto out;
  616|      0|    if(!async) {
  ------------------
  |  Branch (616:8): [True: 0, False: 0]
  ------------------
  617|      0|      async = hostip_async_new(data, dns_queries, peer, transport,
  618|      0|                               for_proxy, timeout_ms);
  619|      0|      if(!async) {
  ------------------
  |  Branch (619:10): [True: 0, False: 0]
  ------------------
  620|      0|        result = CURLE_OUT_OF_MEMORY;
  621|      0|        goto out;
  622|      0|      }
  623|      0|    }
  624|      0|    result = Curl_doh(data, async);
  625|      0|    goto out;
  626|      0|  }
  627|       |#else
  628|       |  (void)allowDOH;
  629|       |#endif
  630|       |
  631|       |  /* Can we provide the requested IP specifics in resolving? */
  632|      0|  if(!can_resolve_dns_queries(data, dns_queries)) {
  ------------------
  |  Branch (632:6): [True: 0, False: 0]
  ------------------
  633|      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]
  |  |  ------------------
  ------------------
  634|      0|    goto out;
  635|      0|  }
  636|       |
  637|      0|#ifdef CURLRES_ASYNCH
  638|      0|  (void)addr;
  639|      0|  if(!async) {
  ------------------
  |  Branch (639:6): [True: 0, False: 0]
  ------------------
  640|      0|    async = hostip_async_new(data, dns_queries, peer, transport,
  641|      0|                             for_proxy, timeout_ms);
  642|      0|    if(!async) {
  ------------------
  |  Branch (642:8): [True: 0, False: 0]
  ------------------
  643|      0|      result = CURLE_OUT_OF_MEMORY;
  644|      0|      goto out;
  645|      0|    }
  646|      0|  }
  647|      0|  result = Curl_async_getaddrinfo(data, async);
  648|      0|  if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (648:6): [True: 0, False: 0]
  ------------------
  649|       |    /* the answer might be there already. Check. */
  650|      0|    CURLcode r2 = hostip_resolv_take_result(data, async, pdns);
  651|      0|    if(r2)
  ------------------
  |  Branch (651:8): [True: 0, False: 0]
  ------------------
  652|      0|      result = r2;
  653|      0|    else if(*pdns)
  ------------------
  |  Branch (653:13): [True: 0, False: 0]
  ------------------
  654|      0|      result = CURLE_OK;
  655|      0|  }
  656|       |#else
  657|       |  result = Curl_resolv_announce_start(data, NULL);
  658|       |  if(result)
  659|       |    goto out;
  660|       |  addr = Curl_sync_getaddrinfo(data, dns_queries, peer->hostname, peer->port,
  661|       |                               transport);
  662|       |  if(!addr) {
  663|       |    result = RESOLV_FAIL(for_proxy);
  664|       |    /* the synchronous resolvers do not tell a transient failure from
  665|       |       an authoritative negative answer, treat it as before */
  666|       |    *pnegative = TRUE;
  667|       |  }
  668|       |#endif
  669|       |
  670|  9.33k|out:
  671|  9.33k|  if(!result) {
  ------------------
  |  Branch (671:6): [True: 9.33k, False: 0]
  ------------------
  672|  9.33k|    if(addr) {
  ------------------
  |  Branch (672:8): [True: 9.33k, False: 0]
  ------------------
  673|       |      /* we got a response, create a dns entry, add to cache, return */
  674|  9.33k|      DEBUGASSERT(!*pdns);
  ------------------
  |  | 1083|  9.33k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (674:7): [True: 0, False: 9.33k]
  |  Branch (674:7): [True: 9.33k, False: 0]
  ------------------
  675|  9.33k|      *pdns = Curl_dnsc_mk_addr(data, dns_queries, &addr, peer);
  676|  9.33k|      if(!*pdns)
  ------------------
  |  Branch (676:10): [True: 0, False: 9.33k]
  ------------------
  677|      0|        result = CURLE_OUT_OF_MEMORY;
  678|  9.33k|    }
  679|      0|    else if(!*pdns)
  ------------------
  |  Branch (679:13): [True: 0, False: 0]
  ------------------
  680|      0|      result = CURLE_AGAIN;
  681|  9.33k|  }
  682|      0|  else if(*pdns)
  ------------------
  |  Branch (682:11): [True: 0, False: 0]
  ------------------
  683|      0|    Curl_dns_entry_unlink(data, pdns);
  684|      0|  else if(addr)
  ------------------
  |  Branch (684:11): [True: 0, False: 0]
  ------------------
  685|      0|    Curl_freeaddrinfo(addr);
  686|       |
  687|  9.33k|#ifdef USE_CURL_ASYNC
  688|  9.33k|  if(async) {
  ------------------
  |  Branch (688:6): [True: 0, False: 9.33k]
  ------------------
  689|      0|    if(result == CURLE_AGAIN) { /* still need it, link, return id. */
  ------------------
  |  Branch (689:8): [True: 0, False: 0]
  ------------------
  690|      0|      *presolv_id = async->id;
  691|      0|      async->next = data->state.async;
  692|      0|      data->state.async = async;
  693|      0|    }
  694|      0|    else {
  695|      0|      *pnegative = !!async->negative_answer;
  696|      0|      Curl_async_destroy(data, async);
  697|      0|    }
  698|      0|  }
  699|  9.33k|#endif
  700|  9.33k|  return result;
  701|  9.33k|}

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|    347|{
   69|    347|  return !!keylog_file_fp;
   70|    347|}

Curl_ssl_setup_x509_store:
 3304|    342|{
 3305|    342|  struct ssl_primary_config *conn_config = Curl_ssl_cf_get_primary_config(cf);
 3306|    342|  struct ssl_config_data *ssl_config = Curl_ssl_cf_get_config(cf, data);
 3307|    342|  CURLcode result = CURLE_OK;
 3308|    342|  X509_STORE *cached_store;
 3309|    342|  bool cache_criteria_met, is_empty;
 3310|       |
 3311|       |  /* Consider the X509 store cacheable if it comes exclusively from a CAfile,
 3312|       |     or no source is provided and we are falling back to OpenSSL's built-in
 3313|       |     default. */
 3314|    342|  cache_criteria_met = (data->set.general_ssl.ca_cache_timeout != 0) &&
  ------------------
  |  Branch (3314:24): [True: 342, False: 0]
  ------------------
 3315|    342|    conn_config->verifypeer &&
  ------------------
  |  Branch (3315:5): [True: 342, False: 0]
  ------------------
 3316|    342|    !conn_config->CApath &&
  ------------------
  |  Branch (3316:5): [True: 0, False: 342]
  ------------------
 3317|      0|    !conn_config->ca_info_blob &&
  ------------------
  |  Branch (3317:5): [True: 0, False: 0]
  ------------------
 3318|      0|    !ssl_config->primary.CRLfile &&
  ------------------
  |  Branch (3318:5): [True: 0, False: 0]
  ------------------
 3319|      0|    !ssl_config->native_ca_store;
  ------------------
  |  Branch (3319:5): [True: 0, False: 0]
  ------------------
 3320|       |
 3321|    342|  ERR_set_mark();
 3322|       |
 3323|    342|  cached_store = ossl_get_cached_x509_store(cf, data, &is_empty);
 3324|    342|  if(cached_store && cache_criteria_met && X509_STORE_up_ref(cached_store)) {
  ------------------
  |  Branch (3324:6): [True: 0, False: 342]
  |  Branch (3324:22): [True: 0, False: 0]
  |  Branch (3324:44): [True: 0, False: 0]
  ------------------
 3325|      0|    SSL_CTX_set_cert_store(octx->ssl_ctx, cached_store);
 3326|      0|    octx->store_is_empty = is_empty;
 3327|      0|  }
 3328|    342|  else {
 3329|    342|    X509_STORE *store = SSL_CTX_get_cert_store(octx->ssl_ctx);
 3330|       |
 3331|    342|    result = ossl_populate_x509_store(cf, data, octx, store);
 3332|    342|    if(result == CURLE_OK && cache_criteria_met) {
  ------------------
  |  Branch (3332:8): [True: 342, False: 0]
  |  Branch (3332:30): [True: 0, False: 342]
  ------------------
 3333|      0|      ossl_set_cached_x509_store(cf, data, store, (bool)octx->store_is_empty);
 3334|      0|    }
 3335|    342|  }
 3336|       |
 3337|    342|  ERR_pop_to_mark();
 3338|       |
 3339|    342|  return result;
 3340|    342|}
Curl_ossl_need_httpsrr:
 3604|    347|{
 3605|    347|  (void)data;
 3606|       |  return FALSE;
  ------------------
  |  | 1056|    347|#define FALSE false
  ------------------
 3607|    347|}
Curl_ossl_ctx_init:
 3718|    347|{
 3719|    347|  CURLcode result = CURLE_OK;
 3720|    347|  const char *ciphers;
 3721|    347|  const SSL_METHOD *req_method = NULL;
 3722|    347|  ctx_option_t ctx_options = 0;
 3723|    347|  struct ssl_primary_config *conn_config = Curl_ssl_cf_get_primary_config(cf);
 3724|    347|  struct ssl_config_data *ssl_config = Curl_ssl_cf_get_config(cf, data);
 3725|    347|  char * const ssl_cert = ssl_config->primary.clientcert;
 3726|    347|  const struct curl_blob *ssl_cert_blob = ssl_config->primary.cert_blob;
 3727|    347|  const char * const ssl_cert_type = ssl_config->primary.cert_type;
 3728|    347|  unsigned int ssl_version_min;
 3729|    347|  char error_buffer[256];
 3730|       |
 3731|       |  /* Make funny stuff to get random input */
 3732|    347|  result = ossl_seed(data);
 3733|    347|  if(result)
  ------------------
  |  Branch (3733:6): [True: 0, False: 347]
  ------------------
 3734|      0|    return result;
 3735|       |
 3736|    347|  ssl_config->certverifyresult = !X509_V_OK;
 3737|       |
 3738|    347|  result = ossl_init_method(cf, data, peer, &req_method, &ssl_version_min);
 3739|    347|  if(result)
  ------------------
  |  Branch (3739:6): [True: 0, False: 347]
  ------------------
 3740|      0|    return result;
 3741|    347|  DEBUGASSERT(req_method);
  ------------------
  |  | 1083|    347|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3741:3): [True: 0, False: 347]
  |  Branch (3741:3): [True: 347, False: 0]
  ------------------
 3742|       |
 3743|    347|  DEBUGASSERT(!octx->ssl_ctx);
  ------------------
  |  | 1083|    347|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3743:3): [True: 0, False: 347]
  |  Branch (3743:3): [True: 347, False: 0]
  ------------------
 3744|    347|  octx->ssl_ctx =
 3745|    347|#ifdef OPENSSL_HAS_PROVIDERS
 3746|    347|    data->state.libctx ?
  ------------------
  |  Branch (3746:5): [True: 0, False: 347]
  ------------------
 3747|      0|    SSL_CTX_new_ex(data->state.libctx, data->state.propq, req_method):
 3748|    347|#endif
 3749|    347|    SSL_CTX_new(req_method);
 3750|       |
 3751|    347|  if(!octx->ssl_ctx) {
  ------------------
  |  Branch (3751:6): [True: 0, False: 347]
  ------------------
 3752|      0|    failf(data, "SSL: could not create a context: %s",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3753|      0|          ossl_strerror(ERR_peek_error(), error_buffer, sizeof(error_buffer)));
 3754|      0|    return CURLE_OUT_OF_MEMORY;
 3755|      0|  }
 3756|       |
 3757|    347|  if(cb_setup) {
  ------------------
  |  Branch (3757:6): [True: 0, False: 347]
  ------------------
 3758|      0|    result = cb_setup(cf, data, cb_user_data);
 3759|      0|    if(result)
  ------------------
  |  Branch (3759:8): [True: 0, False: 0]
  ------------------
 3760|      0|      return result;
 3761|      0|  }
 3762|       |
 3763|    347|  if(data->set.fdebug && data->set.verbose &&
  ------------------
  |  Branch (3763:6): [True: 0, False: 347]
  |  Branch (3763:26): [True: 0, False: 0]
  ------------------
 3764|      0|     (peer->transport != TRNSPRT_QUIC)) {
  ------------------
  |  |  239|      0|#define TRNSPRT_QUIC 5
  ------------------
  |  Branch (3764:6): [True: 0, False: 0]
  ------------------
 3765|       |    /* the SSL trace callback is only used for verbose logging;
 3766|       |     * QUIC connections use a different TLS record format that
 3767|       |     * ossl_trace cannot handle */
 3768|      0|    SSL_CTX_set_msg_callback(octx->ssl_ctx, ossl_trace);
 3769|      0|    SSL_CTX_set_msg_callback_arg(octx->ssl_ctx, cf);
 3770|      0|  }
 3771|       |
 3772|       |  /* OpenSSL contains code to work around lots of bugs and flaws in various
 3773|       |     SSL-implementations. SSL_CTX_set_options() is used to enabled those
 3774|       |     workarounds. The man page for this option states that SSL_OP_ALL enables
 3775|       |     all the workarounds and that "It is usually safe to use SSL_OP_ALL to
 3776|       |     enable the bug workaround options if compatibility with somewhat broken
 3777|       |     implementations is desired."
 3778|       |
 3779|       |     The "-no_ticket" option was introduced in OpenSSL 0.9.8j. it is a flag to
 3780|       |     disable "rfc4507bis session ticket support". rfc4507bis was later turned
 3781|       |     into the proper RFC5077: https://datatracker.ietf.org/doc/html/rfc5077
 3782|       |
 3783|       |     The enabled extension concerns the session management. I wonder how often
 3784|       |     libcurl stops a connection and then resumes a TLS session. Also, sending
 3785|       |     the session data is some overhead. I suggest that you use your proposed
 3786|       |     patch (which explicitly disables TICKET).
 3787|       |
 3788|       |     If someone writes an application with libcurl and OpenSSL who wants to
 3789|       |     enable the feature, one can do this in the SSL callback.
 3790|       |
 3791|       |     SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG option enabling allowed proper
 3792|       |     interoperability with web server Netscape Enterprise Server 2.0.1 which
 3793|       |     was released back in 1996.
 3794|       |
 3795|       |     Due to CVE-2010-4180, option SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG has
 3796|       |     become ineffective as of OpenSSL 0.9.8q and 1.0.0c. In order to mitigate
 3797|       |     CVE-2010-4180 when using previous OpenSSL versions we no longer enable
 3798|       |     this option regardless of OpenSSL version and SSL_OP_ALL definition.
 3799|       |
 3800|       |     OpenSSL added a workaround for an SSL 3.0/TLS 1.0 CBC vulnerability:
 3801|       |     https://web.archive.org/web/20240114184648/openssl.org/~bodo/tls-cbc.txt.
 3802|       |     In 0.9.6e they added a bit to SSL_OP_ALL that _disables_ that workaround
 3803|       |     despite the fact that SSL_OP_ALL is documented to do "rather harmless"
 3804|       |     workarounds. In order to keep the secure workaround, the
 3805|       |     SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS bit must not be set. */
 3806|       |
 3807|    347|  ctx_options = SSL_OP_ALL | SSL_OP_NO_TICKET | SSL_OP_NO_COMPRESSION;
 3808|       |
 3809|       |  /* mitigate CVE-2010-4180 */
 3810|    347|  ctx_options &= ~(ctx_option_t)SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG;
 3811|       |
 3812|       |  /* unless the user explicitly asks to allow the protocol vulnerability we
 3813|       |     use the workaround */
 3814|    347|  if(!ssl_config->enable_beast)
  ------------------
  |  Branch (3814:6): [True: 347, False: 0]
  ------------------
 3815|    347|    ctx_options &= ~(ctx_option_t)SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS;
 3816|       |
 3817|    347|  DEBUGASSERT(ssl_version_min != CURL_SSLVERSION_DEFAULT);
  ------------------
  |  | 1083|    347|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3817:3): [True: 0, False: 347]
  |  Branch (3817:3): [True: 347, False: 0]
  ------------------
 3818|    347|  switch(ssl_version_min) {
 3819|      0|  case CURL_SSLVERSION_SSLv2:
  ------------------
  |  | 2394|      0|#define CURL_SSLVERSION_SSLv2   2L
  ------------------
  |  Branch (3819:3): [True: 0, False: 347]
  ------------------
 3820|      0|  case CURL_SSLVERSION_SSLv3:
  ------------------
  |  | 2395|      0|#define CURL_SSLVERSION_SSLv3   3L
  ------------------
  |  Branch (3820:3): [True: 0, False: 347]
  ------------------
 3821|      0|    return CURLE_NOT_BUILT_IN;
 3822|       |
 3823|       |    /* "--tlsv<x.y>" options mean TLS >= version <x.y> */
 3824|      0|  case CURL_SSLVERSION_TLSv1:   /* TLS >= version 1.0 */
  ------------------
  |  | 2393|      0|#define CURL_SSLVERSION_TLSv1   1L /* TLS 1.x */
  ------------------
  |  Branch (3824:3): [True: 0, False: 347]
  ------------------
 3825|      0|  case CURL_SSLVERSION_TLSv1_0: /* TLS >= version 1.0 */
  ------------------
  |  | 2396|      0|#define CURL_SSLVERSION_TLSv1_0 4L
  ------------------
  |  Branch (3825:3): [True: 0, False: 347]
  ------------------
 3826|      0|  case CURL_SSLVERSION_TLSv1_1: /* TLS >= version 1.1 */
  ------------------
  |  | 2397|      0|#define CURL_SSLVERSION_TLSv1_1 5L
  ------------------
  |  Branch (3826:3): [True: 0, False: 347]
  ------------------
 3827|    347|  case CURL_SSLVERSION_TLSv1_2: /* TLS >= version 1.2 */
  ------------------
  |  | 2398|    347|#define CURL_SSLVERSION_TLSv1_2 6L
  ------------------
  |  Branch (3827:3): [True: 347, False: 0]
  ------------------
 3828|    347|  case CURL_SSLVERSION_TLSv1_3: /* TLS >= version 1.3 */
  ------------------
  |  | 2399|    347|#define CURL_SSLVERSION_TLSv1_3 7L
  ------------------
  |  Branch (3828:3): [True: 0, False: 347]
  ------------------
 3829|       |    /* asking for any TLS version as the minimum, means no SSL versions
 3830|       |       allowed */
 3831|    347|    ctx_options |= SSL_OP_NO_SSLv2;
 3832|    347|    ctx_options |= SSL_OP_NO_SSLv3;
 3833|       |
 3834|    347|    result = ossl_set_ssl_version_min_max(cf, octx->ssl_ctx, ssl_version_min);
 3835|    347|    if(result)
  ------------------
  |  Branch (3835:8): [True: 0, False: 347]
  ------------------
 3836|      0|      return result;
 3837|    347|    break;
 3838|       |
 3839|    347|  default:
  ------------------
  |  Branch (3839:3): [True: 0, False: 347]
  ------------------
 3840|      0|    failf(data, "Unrecognized parameter passed via CURLOPT_SSLVERSION");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3841|      0|    return CURLE_SSL_CONNECT_ERROR;
 3842|    347|  }
 3843|       |
 3844|    347|  SSL_CTX_set_options(octx->ssl_ctx, ctx_options);
 3845|    347|  SSL_CTX_set_read_ahead(octx->ssl_ctx, 1);
 3846|       |
 3847|       |  /* Max TLS1.2 record size 0x4000 + 0x800.
 3848|       |     OpenSSL supports processing "jumbo TLS record" (8 TLS records) in one go
 3849|       |     for some algorithms, so match that here.
 3850|       |     Experimentation shows that a slightly larger buffer is needed
 3851|       |     to avoid short reads.
 3852|       |
 3853|       |     However using a large buffer (8 packets) actually decreases performance.
 3854|       |     4 packets is better.
 3855|       |   */
 3856|    347|#ifdef HAVE_SSL_CTX_SET_DEFAULT_READ_BUFFER_LEN
 3857|    347|  SSL_CTX_set_default_read_buffer_len(octx->ssl_ctx, 0x401e * 4);
 3858|    347|#endif
 3859|       |
 3860|       |  /* We do retry writes sometimes from another buffer address */
 3861|    347|  SSL_CTX_set_mode(octx->ssl_ctx, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
 3862|       |
 3863|    347|  ciphers = conn_config->cipher_list;
 3864|    347|  if(!ciphers && (peer->transport != TRNSPRT_QUIC))
  ------------------
  |  |  239|    347|#define TRNSPRT_QUIC 5
  ------------------
  |  Branch (3864:6): [True: 347, False: 0]
  |  Branch (3864:18): [True: 347, False: 0]
  ------------------
 3865|    347|    ciphers = NULL;
 3866|    347|  if(ciphers && (ssl_version_min < CURL_SSLVERSION_TLSv1_3)) {
  ------------------
  |  | 2399|      0|#define CURL_SSLVERSION_TLSv1_3 7L
  ------------------
  |  Branch (3866:6): [True: 0, False: 347]
  |  Branch (3866:17): [True: 0, False: 0]
  ------------------
 3867|      0|    if(!SSL_CTX_set_cipher_list(octx->ssl_ctx, ciphers)) {
  ------------------
  |  Branch (3867:8): [True: 0, False: 0]
  ------------------
 3868|      0|      failf(data, "failed setting cipher list: %s", ciphers);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3869|      0|      return CURLE_SSL_CIPHER;
 3870|      0|    }
 3871|      0|    infof(data, "Cipher selection: %s", ciphers);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3872|      0|  }
 3873|       |
 3874|    347|#ifdef HAVE_SSL_CTX_SET_CIPHERSUITES
 3875|    347|  {
 3876|    347|    const char *ciphers13 = conn_config->cipher_list13;
 3877|    347|    if(ciphers13 &&
  ------------------
  |  Branch (3877:8): [True: 0, False: 347]
  ------------------
 3878|      0|       (!conn_config->version_max ||
  ------------------
  |  Branch (3878:9): [True: 0, False: 0]
  ------------------
 3879|      0|        (conn_config->version_max == CURL_SSLVERSION_MAX_DEFAULT) ||
  ------------------
  |  | 2404|      0|#define CURL_SSLVERSION_MAX_DEFAULT (CURL_SSLVERSION_TLSv1   << 16)
  |  |  ------------------
  |  |  |  | 2393|      0|#define CURL_SSLVERSION_TLSv1   1L /* TLS 1.x */
  |  |  ------------------
  ------------------
  |  Branch (3879:9): [True: 0, False: 0]
  ------------------
 3880|      0|        (conn_config->version_max >= CURL_SSLVERSION_MAX_TLSv1_3))) {
  ------------------
  |  | 2408|      0|#define CURL_SSLVERSION_MAX_TLSv1_3 (CURL_SSLVERSION_TLSv1_3 << 16)
  |  |  ------------------
  |  |  |  | 2399|      0|#define CURL_SSLVERSION_TLSv1_3 7L
  |  |  ------------------
  ------------------
  |  Branch (3880:9): [True: 0, False: 0]
  ------------------
 3881|      0|      if(!SSL_CTX_set_ciphersuites(octx->ssl_ctx, ciphers13)) {
  ------------------
  |  Branch (3881:10): [True: 0, False: 0]
  ------------------
 3882|      0|        failf(data, "failed setting TLS 1.3 cipher suite: %s", ciphers13);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3883|      0|        return CURLE_SSL_CIPHER;
 3884|      0|      }
 3885|      0|      infof(data, "TLS 1.3 cipher selection: %s", ciphers13);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3886|      0|    }
 3887|    347|  }
 3888|    347|#endif
 3889|       |
 3890|    347|  if(ssl_cert || ssl_cert_blob || ssl_cert_type) {
  ------------------
  |  Branch (3890:6): [True: 0, False: 347]
  |  Branch (3890:18): [True: 0, False: 347]
  |  Branch (3890:35): [True: 0, False: 347]
  ------------------
 3891|      0|    result = client_cert(data, octx->ssl_ctx,
 3892|      0|                         ssl_cert, ssl_cert_blob, ssl_cert_type,
 3893|      0|                         ssl_config->primary.key, ssl_config->primary.key_blob,
 3894|      0|                         ssl_config->primary.key_type,
 3895|      0|                         ssl_config->primary.key_passwd);
 3896|      0|    if(result)
  ------------------
  |  Branch (3896:8): [True: 0, False: 0]
  ------------------
 3897|       |      /* failf() is already done in client_cert() */
 3898|      0|      return result;
 3899|      0|  }
 3900|       |
 3901|    347|#ifdef HAVE_SSL_CTX_SET_POST_HANDSHAKE_AUTH
 3902|       |  /* OpenSSL 1.1.1 requires clients to opt-in for PHA */
 3903|    347|  SSL_CTX_set_post_handshake_auth(octx->ssl_ctx, 1);
 3904|    347|#endif
 3905|       |
 3906|    347|  {
 3907|    347|    const char *curves = conn_config->curves;
 3908|    347|    if(curves) {
  ------------------
  |  Branch (3908:8): [True: 0, False: 347]
  ------------------
 3909|       |#ifdef HAVE_BORINGSSL_LIKE
 3910|       |#define OSSL_CURVE_CAST(x) (x)
 3911|       |#else
 3912|      0|#define OSSL_CURVE_CAST(x) (char *)CURL_UNCONST(x)
 3913|      0|#endif
 3914|      0|      if(!SSL_CTX_set1_curves_list(octx->ssl_ctx, OSSL_CURVE_CAST(curves))) {
  ------------------
  |  Branch (3914:10): [True: 0, False: 0]
  ------------------
 3915|      0|        failf(data, "failed setting curves list: '%s'", curves);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3916|      0|        return CURLE_SSL_CIPHER;
 3917|      0|      }
 3918|      0|    }
 3919|    347|  }
 3920|       |
 3921|    347|#ifdef HAVE_SSL_CTX_SET1_SIGALGS
 3922|    347|#define OSSL_SIGALG_CAST(x) OSSL_CURVE_CAST(x)
 3923|    347|  {
 3924|    347|    const char *signature_algorithms = conn_config->signature_algorithms;
 3925|    347|    if(signature_algorithms) {
  ------------------
  |  Branch (3925:8): [True: 0, False: 347]
  ------------------
 3926|      0|      if(!SSL_CTX_set1_sigalgs_list(octx->ssl_ctx,
  ------------------
  |  Branch (3926:10): [True: 0, False: 0]
  ------------------
 3927|      0|                                    OSSL_SIGALG_CAST(signature_algorithms))) {
 3928|      0|        failf(data, "failed setting signature algorithms: '%s'",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3929|      0|              signature_algorithms);
 3930|      0|        return CURLE_SSL_CIPHER;
 3931|      0|      }
 3932|      0|    }
 3933|    347|  }
 3934|    347|#endif
 3935|       |
 3936|       |  /* OpenSSL always tries to verify the peer. By setting the failure mode
 3937|       |   * to NONE, we allow the connect to complete, regardless of the outcome.
 3938|       |   * We then explicitly check the result and may try alternatives like
 3939|       |   * Apple's SecTrust for verification. */
 3940|    347|  SSL_CTX_set_verify(octx->ssl_ctx, SSL_VERIFY_NONE, NULL);
 3941|       |
 3942|       |  /* Enable logging of secrets to the file specified in env SSLKEYLOGFILE. */
 3943|    347|#if !defined(HAVE_KEYLOG_UPSTREAM) && defined(HAVE_KEYLOG_CALLBACK)
 3944|    347|  if(Curl_tls_keylog_enabled()) {
  ------------------
  |  Branch (3944:6): [True: 0, False: 347]
  ------------------
 3945|      0|    SSL_CTX_set_keylog_callback(octx->ssl_ctx, ossl_keylog_callback);
 3946|      0|  }
 3947|    347|#endif
 3948|       |
 3949|    347|  if(cb_new_session) {
  ------------------
  |  Branch (3949:6): [True: 347, False: 0]
  ------------------
 3950|       |    /* Enable the session cache because it is a prerequisite for the
 3951|       |     * "new session" callback. Use the "external storage" mode to prevent
 3952|       |     * OpenSSL from creating an internal session cache.
 3953|       |     */
 3954|    347|    SSL_CTX_set_session_cache_mode(octx->ssl_ctx,
 3955|    347|                                   SSL_SESS_CACHE_CLIENT |
 3956|    347|                                   SSL_SESS_CACHE_NO_INTERNAL);
 3957|    347|    SSL_CTX_sess_set_new_cb(octx->ssl_ctx, cb_new_session);
 3958|    347|  }
 3959|       |
 3960|       |  /* give application a chance to interfere with SSL set up. */
 3961|    347|  if(data->set.ssl.fsslctx) {
  ------------------
  |  Branch (3961:6): [True: 0, False: 347]
  ------------------
 3962|      0|    struct Curl_mapi_guard guard;
 3963|       |    /* When a user callback is installed to modify the SSL_CTX,
 3964|       |     * we need to do the full initialization before calling it.
 3965|       |     * See: #11800 */
 3966|      0|    if(!octx->x509_store_setup) {
  ------------------
  |  Branch (3966:8): [True: 0, False: 0]
  ------------------
 3967|      0|      result = Curl_ssl_setup_x509_store(cf, data, octx);
 3968|      0|      if(result)
  ------------------
  |  Branch (3968:10): [True: 0, False: 0]
  ------------------
 3969|      0|        return result;
 3970|      0|      octx->x509_store_setup = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 3971|      0|    }
 3972|      0|    CURL_CBAPI_START(&guard, data, easy_fsslctx);
  ------------------
  |  |  200|      0|  Curl_cbapi_enter((g), (d), NULL, CURL_CBAPI_FN_##fn)
  ------------------
 3973|      0|    result = (*data->set.ssl.fsslctx)(data, octx->ssl_ctx,
 3974|      0|                                      data->set.ssl.fsslctxp);
 3975|      0|    CURL_CBAPI_END(&guard);
  ------------------
  |  |  204|      0|  Curl_cbapi_leave(g)
  ------------------
 3976|      0|    if(result) {
  ------------------
  |  Branch (3976:8): [True: 0, False: 0]
  ------------------
 3977|      0|      failf(data, "error signaled by SSL ctx callback");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3978|      0|      return result;
 3979|      0|    }
 3980|      0|  }
 3981|       |
 3982|    347|  return ossl_init_ssl(octx, cf, data, peer, alpns_requested,
 3983|    347|                       ssl_user_data, sess_reuse_cb);
 3984|    347|}
Curl_ossl_version:
 5422|    356|{
 5423|       |#ifdef LIBRESSL_VERSION_NUMBER
 5424|       |  char *p;
 5425|       |  size_t count;
 5426|       |  const char *ver = OpenSSL_version(OPENSSL_VERSION);
 5427|       |  static const char expected[] = OSSL_PACKAGE " "; /* ie "LibreSSL " */
 5428|       |  if(curl_strnequal(ver, expected, CURL_CSTRLEN(expected))) {
 5429|       |    ver += CURL_CSTRLEN(expected);
 5430|       |  }
 5431|       |  count = curl_msnprintf(buffer, size, "%s/%s", OSSL_PACKAGE, ver);
 5432|       |  for(p = buffer; *p; ++p) {
 5433|       |    if(ISBLANK(*p))
 5434|       |      *p = '_';
 5435|       |  }
 5436|       |  return count;
 5437|       |#elif defined(OPENSSL_IS_AWSLC)
 5438|       |  return curl_msnprintf(buffer, size, "%s/%s",
 5439|       |                        OSSL_PACKAGE, AWSLC_VERSION_NUMBER_STRING);
 5440|       |#elif defined(OPENSSL_IS_BORINGSSL)
 5441|       |#ifdef CURL_BORINGSSL_VERSION
 5442|       |  return curl_msnprintf(buffer, size, "%s/%s",
 5443|       |                        OSSL_PACKAGE, CURL_BORINGSSL_VERSION);
 5444|       |#else
 5445|       |  return curl_msnprintf(buffer, size, OSSL_PACKAGE);
 5446|       |#endif
 5447|       |#else /* OpenSSL 3+ */
 5448|    356|  return curl_msnprintf(buffer, size, "%s/%s",
 5449|    356|                        OSSL_PACKAGE, OpenSSL_version(OPENSSL_VERSION_STRING));
  ------------------
  |  |  163|    356|#define OSSL_PACKAGE "OpenSSL"
  ------------------
 5450|    356|#endif
 5451|    356|}
openssl.c:ossl_get_cached_x509_store:
 3226|    342|{
 3227|    342|  struct Curl_multi *multi = data->multi;
 3228|    342|  struct ossl_x509_share *share;
 3229|    342|  X509_STORE *store = NULL;
 3230|       |
 3231|    342|  DEBUGASSERT(multi);
  ------------------
  |  | 1083|    342|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3231:3): [True: 0, False: 342]
  |  Branch (3231:3): [True: 342, False: 0]
  ------------------
 3232|    342|  *pempty = TRUE;
  ------------------
  |  | 1053|    342|#define TRUE true
  ------------------
 3233|    342|  share = multi ? Curl_hash_pick(&multi->proto_hash,
  ------------------
  |  Branch (3233:11): [True: 342, False: 0]
  ------------------
 3234|    342|                                 CURL_UNCONST(MPROTO_OSSL_X509_KEY),
  ------------------
  |  |  864|    342|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  ------------------
 3235|    342|                                 CURL_CSTRLEN(MPROTO_OSSL_X509_KEY)) : NULL;
  ------------------
  |  | 1300|    342|#define CURL_CSTRLEN(x) (sizeof(x) - 1)
  ------------------
 3236|    342|  if(share && share->store &&
  ------------------
  |  Branch (3236:6): [True: 0, False: 342]
  |  Branch (3236:15): [True: 0, False: 0]
  ------------------
 3237|      0|     !ossl_cached_x509_store_expired(data, share) &&
  ------------------
  |  Branch (3237:6): [True: 0, False: 0]
  ------------------
 3238|      0|     !ossl_cached_x509_store_different(cf, data, share)) {
  ------------------
  |  Branch (3238:6): [True: 0, False: 0]
  ------------------
 3239|      0|    store = share->store;
 3240|      0|    *pempty = (bool)share->store_is_empty;
 3241|      0|  }
 3242|       |
 3243|    342|  return store;
 3244|    342|}
openssl.c:ossl_populate_x509_store:
 3111|    342|{
 3112|    342|  struct ssl_primary_config *conn_config = Curl_ssl_cf_get_primary_config(cf);
 3113|    342|  struct ssl_config_data *ssl_config = Curl_ssl_cf_get_config(cf, data);
 3114|    342|  CURLcode result = CURLE_OK;
 3115|    342|  X509_LOOKUP *lookup = NULL;
 3116|    342|  const char * const ssl_crlfile = ssl_config->primary.CRLfile;
 3117|    342|  unsigned long x509flags = 0;
 3118|       |
 3119|    342|  CURL_TRC_CF(data, cf, "configuring OpenSSL's x509 trust store");
  ------------------
  |  |  153|    342|  do {                                          \
  |  |  154|    342|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|    342|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    684|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 342, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 342]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    684|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    342|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    342|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    342|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 342]
  |  |  ------------------
  ------------------
 3120|    342|  if(!store)
  ------------------
  |  Branch (3120:6): [True: 0, False: 342]
  ------------------
 3121|      0|    return CURLE_OUT_OF_MEMORY;
 3122|       |
 3123|    342|  if(!conn_config->verifypeer) {
  ------------------
  |  Branch (3123:6): [True: 0, False: 342]
  ------------------
 3124|      0|    infof(data, "SSL Trust: peer verification disabled");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3125|      0|    return CURLE_OK;
 3126|      0|  }
 3127|       |
 3128|    342|  infof(data, "SSL Trust Anchors:");
  ------------------
  |  |  143|    342|  do {                               \
  |  |  144|    342|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|    342|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 342, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 342]
  |  |  |  |  ------------------
  |  |  |  |  323|    342|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    342|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    342|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 342]
  |  |  ------------------
  ------------------
 3129|    342|  result = ossl_load_trust_anchors(cf, data, octx, store);
 3130|    342|  if(result)
  ------------------
  |  Branch (3130:6): [True: 0, False: 342]
  ------------------
 3131|      0|    return result;
 3132|       |
 3133|       |  /* Does not make sense to load a CRL file without peer verification */
 3134|    342|  if(ssl_crlfile) {
  ------------------
  |  Branch (3134:6): [True: 0, False: 342]
  ------------------
 3135|       |    /* tell OpenSSL where to find CRL file that is used to check certificate
 3136|       |     * revocation */
 3137|      0|    lookup = X509_STORE_add_lookup(store, X509_LOOKUP_file());
 3138|      0|    if(!lookup ||
  ------------------
  |  Branch (3138:8): [True: 0, False: 0]
  ------------------
 3139|      0|       (!X509_load_crl_file(lookup, ssl_crlfile, X509_FILETYPE_PEM))) {
  ------------------
  |  Branch (3139:8): [True: 0, False: 0]
  ------------------
 3140|      0|      failf(data, "error loading CRL file: %s", ssl_crlfile);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3141|      0|      return CURLE_SSL_CRL_BADFILE;
 3142|      0|    }
 3143|      0|    x509flags = X509_V_FLAG_CRL_CHECK | X509_V_FLAG_CRL_CHECK_ALL;
 3144|      0|    infof(data, " CRLfile: %s", ssl_crlfile);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3145|      0|  }
 3146|       |
 3147|       |  /* Try building a chain using issuers in the trusted store first to avoid
 3148|       |     problems with server-sent legacy intermediates. Newer versions of
 3149|       |     OpenSSL do alternate chain checking by default but we do not know how to
 3150|       |     determine that in a reliable manner.
 3151|       |     https://web.archive.org/web/20190422050538/rt.openssl.org/Ticket/Display.html?id=3621
 3152|       |   */
 3153|    342|  x509flags |= X509_V_FLAG_TRUSTED_FIRST;
 3154|       |
 3155|    342|  if(!ssl_config->no_partialchain && !ssl_crlfile) {
  ------------------
  |  Branch (3155:6): [True: 342, False: 0]
  |  Branch (3155:38): [True: 342, False: 0]
  ------------------
 3156|       |    /* Have intermediate certificates in the trust store be treated as
 3157|       |       trust-anchors, in the same way as self-signed root CA certificates are.
 3158|       |       This allows users to verify servers using the intermediate cert only,
 3159|       |       instead of needing the whole chain.
 3160|       |
 3161|       |       Due to OpenSSL bug https://github.com/openssl/openssl/issues/5081 we
 3162|       |       cannot do partial chains with a CRL check. */
 3163|    342|    x509flags |= X509_V_FLAG_PARTIAL_CHAIN;
 3164|    342|  }
 3165|    342|  (void)X509_STORE_set_flags(store, x509flags);
 3166|       |
 3167|    342|  return result;
 3168|    342|}
openssl.c:ossl_load_trust_anchors:
 3000|    342|{
 3001|    342|  struct ssl_primary_config *conn_config = Curl_ssl_cf_get_primary_config(cf);
 3002|    342|  struct ssl_config_data *ssl_config = Curl_ssl_cf_get_config(cf, data);
 3003|    342|  CURLcode result = CURLE_OK;
 3004|    342|  const char * const ssl_cafile =
 3005|       |    /* CURLOPT_CAINFO_BLOB overrides CURLOPT_CAINFO */
 3006|    342|    (conn_config->ca_info_blob ? NULL : conn_config->CAfile);
  ------------------
  |  Branch (3006:6): [True: 0, False: 342]
  ------------------
 3007|    342|  const char * const ssl_capath = conn_config->CApath;
 3008|    342|  bool have_native_check = FALSE;
  ------------------
  |  | 1056|    342|#define FALSE false
  ------------------
 3009|       |
 3010|    342|  octx->store_is_empty = TRUE;
  ------------------
  |  | 1053|    342|#define TRUE true
  ------------------
 3011|    342|  if(ssl_config->native_ca_store) {
  ------------------
  |  Branch (3011:6): [True: 0, False: 342]
  ------------------
 3012|       |#ifdef USE_WIN32_CRYPTO
 3013|       |    bool added = FALSE;
 3014|       |    result = ossl_windows_load_anchors(cf, data, store, &added);
 3015|       |    if(result)
 3016|       |      return result;
 3017|       |    if(added) {
 3018|       |      infof(data, "  Native: Windows System Stores ROOT+CA");
 3019|       |      octx->store_is_empty = FALSE;
 3020|       |    }
 3021|       |#elif defined(USE_APPLE_SECTRUST)
 3022|       |    infof(data, "  Native: Apple SecTrust");
 3023|       |    have_native_check = TRUE;
 3024|       |#endif
 3025|      0|  }
 3026|       |
 3027|    342|  if(conn_config->ca_info_blob) {
  ------------------
  |  Branch (3027:6): [True: 0, False: 342]
  ------------------
 3028|      0|    result = load_cacert_from_memory(store, conn_config->ca_info_blob);
 3029|      0|    if(result) {
  ------------------
  |  Branch (3029:8): [True: 0, False: 0]
  ------------------
 3030|      0|      failf(data, "error adding trust anchors from certificate blob: %d",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3031|      0|            (int)result);
 3032|      0|      return result;
 3033|      0|    }
 3034|      0|    infof(data, "  CA Blob from configuration");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3035|      0|    octx->store_is_empty = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 3036|      0|  }
 3037|       |
 3038|    342|  if(ssl_cafile || ssl_capath) {
  ------------------
  |  Branch (3038:6): [True: 342, False: 0]
  |  Branch (3038:20): [True: 0, False: 0]
  ------------------
 3039|    342|#ifdef HAVE_OPENSSL3
 3040|       |    /* OpenSSL 3.0.0 has deprecated SSL_CTX_load_verify_locations */
 3041|    342|    if(ssl_cafile) {
  ------------------
  |  Branch (3041:8): [True: 342, False: 0]
  ------------------
 3042|    342|      if(!X509_STORE_load_file(store, ssl_cafile)) {
  ------------------
  |  Branch (3042:10): [True: 0, False: 342]
  ------------------
 3043|      0|        if(octx->store_is_empty && !have_native_check) {
  ------------------
  |  Branch (3043:12): [True: 0, False: 0]
  |  Branch (3043:36): [True: 0, False: 0]
  ------------------
 3044|       |          /* Fail if we insist on successfully verifying the server. */
 3045|      0|          failf(data, "error adding trust anchors from file: %s", ssl_cafile);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3046|      0|          return CURLE_SSL_CACERT_BADFILE;
 3047|      0|        }
 3048|      0|        else
 3049|      0|          infof(data, "error setting certificate file, continuing anyway");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3050|      0|      }
 3051|    342|      infof(data, "  CAfile: %s", ssl_cafile);
  ------------------
  |  |  143|    342|  do {                               \
  |  |  144|    342|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|    342|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 342, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 342]
  |  |  |  |  ------------------
  |  |  |  |  323|    342|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    342|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    342|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 342]
  |  |  ------------------
  ------------------
 3052|    342|      octx->store_is_empty = FALSE;
  ------------------
  |  | 1056|    342|#define FALSE false
  ------------------
 3053|    342|    }
 3054|    342|    if(ssl_capath) {
  ------------------
  |  Branch (3054:8): [True: 342, False: 0]
  ------------------
 3055|    342|      if(!X509_STORE_load_path(store, ssl_capath)) {
  ------------------
  |  Branch (3055:10): [True: 0, False: 342]
  ------------------
 3056|      0|        if(octx->store_is_empty && !have_native_check) {
  ------------------
  |  Branch (3056:12): [True: 0, False: 0]
  |  Branch (3056:36): [True: 0, False: 0]
  ------------------
 3057|       |          /* Fail if we insist on successfully verifying the server. */
 3058|      0|          failf(data, "error adding trust anchors from path: %s", ssl_capath);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3059|      0|          return CURLE_SSL_CACERT_BADFILE;
 3060|      0|        }
 3061|      0|        else
 3062|      0|          infof(data, "error setting certificate path, continuing anyway");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3063|      0|      }
 3064|    342|      infof(data, "  CApath: %s", ssl_capath);
  ------------------
  |  |  143|    342|  do {                               \
  |  |  144|    342|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|    342|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 342, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 342]
  |  |  |  |  ------------------
  |  |  |  |  323|    342|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|    342|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|    342|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 342]
  |  |  ------------------
  ------------------
 3065|    342|      octx->store_is_empty = FALSE;
  ------------------
  |  | 1056|    342|#define FALSE false
  ------------------
 3066|    342|    }
 3067|       |#else
 3068|       |    /* tell OpenSSL where to find CA certificates that are used to verify the
 3069|       |       server's certificate. */
 3070|       |    if(!X509_STORE_load_locations(store, ssl_cafile, ssl_capath)) {
 3071|       |      if(octx->store_is_empty && !have_native_check) {
 3072|       |        /* Fail if we insist on successfully verifying the server. */
 3073|       |        failf(data, "error adding trust anchors from locations:"
 3074|       |              "  CAfile: %s CApath: %s",
 3075|       |              ssl_cafile ? ssl_cafile : "none",
 3076|       |              ssl_capath ? ssl_capath : "none");
 3077|       |        return CURLE_SSL_CACERT_BADFILE;
 3078|       |      }
 3079|       |      else {
 3080|       |        infof(data, "error setting certificate verify locations,"
 3081|       |              " continuing anyway");
 3082|       |      }
 3083|       |    }
 3084|       |    if(ssl_cafile)
 3085|       |      infof(data, "  CAfile: %s", ssl_cafile);
 3086|       |    if(ssl_capath)
 3087|       |      infof(data, "  CApath: %s", ssl_capath);
 3088|       |    octx->store_is_empty = FALSE;
 3089|       |#endif
 3090|    342|  }
 3091|       |
 3092|       |#ifdef CURL_CA_FALLBACK
 3093|       |  if(octx->store_is_empty) {
 3094|       |    /* verifying the peer without any CA certificates does not
 3095|       |       work so use OpenSSL's built-in default as fallback */
 3096|       |    X509_STORE_set_default_paths(store);
 3097|       |    infof(data, "  OpenSSL default paths (fallback)");
 3098|       |    octx->store_is_empty = FALSE;
 3099|       |  }
 3100|       |#endif
 3101|    342|  if(octx->store_is_empty && !have_native_check)
  ------------------
  |  Branch (3101:6): [True: 0, False: 342]
  |  Branch (3101:30): [True: 0, False: 0]
  ------------------
 3102|      0|    infof(data, "  no trust anchors configured");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 3103|       |
 3104|    342|  return result;
 3105|    342|}
openssl.c:ossl_seed:
  802|  8.38k|{
  803|       |  /* This might get called before it has been added to a multi handle */
  804|  8.38k|  if(data->multi && data->multi->ssl_seeded)
  ------------------
  |  Branch (804:6): [True: 8.38k, False: 0]
  |  Branch (804:21): [True: 6.41k, False: 1.96k]
  ------------------
  805|  6.41k|    return CURLE_OK;
  806|       |
  807|  1.96k|  if(rand_enough()) {
  ------------------
  |  Branch (807:6): [True: 1.96k, False: 0]
  ------------------
  808|       |    /* OpenSSL 1.1.0+ should return here */
  809|  1.96k|    if(data->multi)
  ------------------
  |  Branch (809:8): [True: 1.96k, False: 0]
  ------------------
  810|  1.96k|      data->multi->ssl_seeded = TRUE;
  ------------------
  |  | 1053|  1.96k|#define TRUE true
  ------------------
  811|  1.96k|    return CURLE_OK;
  812|  1.96k|  }
  813|      0|  failf(data, "Insufficient randomness");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  814|      0|  return CURLE_SSL_CONNECT_ERROR;
  815|  1.96k|}
openssl.c:rand_enough:
  797|  1.96k|{
  798|  1.96k|  return RAND_status() != 0;
  799|  1.96k|}
openssl.c:ossl_init_method:
 3660|    347|{
 3661|    347|  struct ssl_primary_config *conn_config = Curl_ssl_cf_get_primary_config(cf);
 3662|       |
 3663|    347|  *pmethod = NULL;
 3664|    347|  *pssl_version_min = conn_config->version;
 3665|    347|  DEBUGASSERT(conn_config->version != CURL_SSLVERSION_DEFAULT);
  ------------------
  |  | 1083|    347|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (3665:3): [True: 0, False: 347]
  |  Branch (3665:3): [True: 347, False: 0]
  ------------------
 3666|    347|  switch(peer->transport) {
 3667|    347|  case TRNSPRT_TCP:
  ------------------
  |  |  237|    347|#define TRNSPRT_TCP  3
  ------------------
  |  Branch (3667:3): [True: 347, False: 0]
  ------------------
 3668|       |    /* check to see if we have been told to use an explicit SSL/TLS version */
 3669|    347|    switch(*pssl_version_min) {
 3670|      0|    case CURL_SSLVERSION_TLSv1:
  ------------------
  |  | 2393|      0|#define CURL_SSLVERSION_TLSv1   1L /* TLS 1.x */
  ------------------
  |  Branch (3670:5): [True: 0, False: 347]
  ------------------
 3671|      0|    case CURL_SSLVERSION_TLSv1_0:
  ------------------
  |  | 2396|      0|#define CURL_SSLVERSION_TLSv1_0 4L
  ------------------
  |  Branch (3671:5): [True: 0, False: 347]
  ------------------
 3672|      0|    case CURL_SSLVERSION_TLSv1_1:
  ------------------
  |  | 2397|      0|#define CURL_SSLVERSION_TLSv1_1 5L
  ------------------
  |  Branch (3672:5): [True: 0, False: 347]
  ------------------
 3673|    347|    case CURL_SSLVERSION_TLSv1_2:
  ------------------
  |  | 2398|    347|#define CURL_SSLVERSION_TLSv1_2 6L
  ------------------
  |  Branch (3673:5): [True: 347, False: 0]
  ------------------
 3674|    347|    case CURL_SSLVERSION_TLSv1_3:
  ------------------
  |  | 2399|    347|#define CURL_SSLVERSION_TLSv1_3 7L
  ------------------
  |  Branch (3674:5): [True: 0, False: 347]
  ------------------
 3675|       |      /* it is handled later with the context options */
 3676|    347|      *pmethod = TLS_client_method();
 3677|    347|      break;
 3678|      0|    case CURL_SSLVERSION_SSLv2:
  ------------------
  |  | 2394|      0|#define CURL_SSLVERSION_SSLv2   2L
  ------------------
  |  Branch (3678:5): [True: 0, False: 347]
  ------------------
 3679|      0|      failf(data, "No SSLv2 support");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3680|      0|      return CURLE_NOT_BUILT_IN;
 3681|      0|    case CURL_SSLVERSION_SSLv3:
  ------------------
  |  | 2395|      0|#define CURL_SSLVERSION_SSLv3   3L
  ------------------
  |  Branch (3681:5): [True: 0, False: 347]
  ------------------
 3682|      0|      failf(data, "No SSLv3 support");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3683|      0|      return CURLE_NOT_BUILT_IN;
 3684|      0|    default:
  ------------------
  |  Branch (3684:5): [True: 0, False: 347]
  ------------------
 3685|      0|      failf(data, "Unrecognized parameter passed via CURLOPT_SSLVERSION");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3686|      0|      return CURLE_SSL_CONNECT_ERROR;
 3687|    347|    }
 3688|    347|    break;
 3689|    347|  case TRNSPRT_QUIC:
  ------------------
  |  |  239|      0|#define TRNSPRT_QUIC 5
  ------------------
  |  Branch (3689:3): [True: 0, False: 347]
  ------------------
 3690|      0|    *pssl_version_min = CURL_SSLVERSION_TLSv1_3;
  ------------------
  |  | 2399|      0|#define CURL_SSLVERSION_TLSv1_3 7L
  ------------------
 3691|      0|    if(conn_config->version_max &&
  ------------------
  |  Branch (3691:8): [True: 0, False: 0]
  ------------------
 3692|      0|       (conn_config->version_max != CURL_SSLVERSION_MAX_DEFAULT) &&
  ------------------
  |  | 2404|      0|#define CURL_SSLVERSION_MAX_DEFAULT (CURL_SSLVERSION_TLSv1   << 16)
  |  |  ------------------
  |  |  |  | 2393|      0|#define CURL_SSLVERSION_TLSv1   1L /* TLS 1.x */
  |  |  ------------------
  ------------------
  |  Branch (3692:8): [True: 0, False: 0]
  ------------------
 3693|      0|       (conn_config->version_max != CURL_SSLVERSION_MAX_TLSv1_3)) {
  ------------------
  |  | 2408|      0|#define CURL_SSLVERSION_MAX_TLSv1_3 (CURL_SSLVERSION_TLSv1_3 << 16)
  |  |  ------------------
  |  |  |  | 2399|      0|#define CURL_SSLVERSION_TLSv1_3 7L
  |  |  ------------------
  ------------------
  |  Branch (3693:8): [True: 0, False: 0]
  ------------------
 3694|      0|      failf(data, "QUIC needs at least TLS version 1.3");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3695|      0|      return CURLE_SSL_CONNECT_ERROR;
 3696|      0|    }
 3697|       |
 3698|      0|    *pmethod = TLS_method();
 3699|      0|    break;
 3700|      0|  default:
  ------------------
  |  Branch (3700:3): [True: 0, False: 347]
  ------------------
 3701|      0|    failf(data, "unsupported transport %d in SSL init", peer->transport);
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3702|      0|    return CURLE_SSL_CONNECT_ERROR;
 3703|    347|  }
 3704|       |
 3705|    347|  return *pmethod ? CURLE_OK : CURLE_SSL_CONNECT_ERROR;
  ------------------
  |  Branch (3705:10): [True: 347, False: 0]
  ------------------
 3706|    347|}
openssl.c:ossl_set_ssl_version_min_max:
 2567|    347|{
 2568|    347|  struct ssl_primary_config *conn_config = Curl_ssl_cf_get_primary_config(cf);
 2569|       |  /* first, TLS min version... */
 2570|    347|  long curl_ssl_version_min = (long)ssl_version_min;
 2571|    347|  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|    347|  long ossl_ssl_version_min = 0;
 2579|    347|  long ossl_ssl_version_max = 0;
 2580|    347|#endif
 2581|       |  /* it cannot be default here */
 2582|    347|  DEBUGASSERT(curl_ssl_version_min != CURL_SSLVERSION_DEFAULT);
  ------------------
  |  | 1083|    347|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (2582:3): [True: 0, False: 347]
  |  Branch (2582:3): [True: 347, False: 0]
  ------------------
 2583|    347|  switch(curl_ssl_version_min) {
  ------------------
  |  Branch (2583:10): [True: 347, False: 0]
  ------------------
 2584|      0|  case CURL_SSLVERSION_TLSv1: /* TLS 1.x */
  ------------------
  |  | 2393|      0|#define CURL_SSLVERSION_TLSv1   1L /* TLS 1.x */
  ------------------
  |  Branch (2584:3): [True: 0, False: 347]
  ------------------
 2585|      0|  case CURL_SSLVERSION_TLSv1_0:
  ------------------
  |  | 2396|      0|#define CURL_SSLVERSION_TLSv1_0 4L
  ------------------
  |  Branch (2585:3): [True: 0, False: 347]
  ------------------
 2586|      0|    ossl_ssl_version_min = TLS1_VERSION;
 2587|      0|    break;
 2588|      0|  case CURL_SSLVERSION_TLSv1_1:
  ------------------
  |  | 2397|      0|#define CURL_SSLVERSION_TLSv1_1 5L
  ------------------
  |  Branch (2588:3): [True: 0, False: 347]
  ------------------
 2589|      0|    ossl_ssl_version_min = TLS1_1_VERSION;
 2590|      0|    break;
 2591|    347|  case CURL_SSLVERSION_TLSv1_2:
  ------------------
  |  | 2398|    347|#define CURL_SSLVERSION_TLSv1_2 6L
  ------------------
  |  Branch (2591:3): [True: 347, False: 0]
  ------------------
 2592|    347|    ossl_ssl_version_min = TLS1_2_VERSION;
 2593|    347|    break;
 2594|      0|  case CURL_SSLVERSION_TLSv1_3:
  ------------------
  |  | 2399|      0|#define CURL_SSLVERSION_TLSv1_3 7L
  ------------------
  |  Branch (2594:3): [True: 0, False: 347]
  ------------------
 2595|      0|    ossl_ssl_version_min = TLS1_3_VERSION;
 2596|      0|    break;
 2597|    347|  }
 2598|       |
 2599|       |  /* ... then, TLS max version */
 2600|    347|  curl_ssl_version_max = (long)conn_config->version_max;
 2601|       |
 2602|       |  /* convert curl max SSL version option to OpenSSL constant */
 2603|    347|  switch(curl_ssl_version_max) {
 2604|      0|  case CURL_SSLVERSION_MAX_TLSv1_0:
  ------------------
  |  | 2405|      0|#define CURL_SSLVERSION_MAX_TLSv1_0 (CURL_SSLVERSION_TLSv1_0 << 16)
  |  |  ------------------
  |  |  |  | 2396|      0|#define CURL_SSLVERSION_TLSv1_0 4L
  |  |  ------------------
  ------------------
  |  Branch (2604:3): [True: 0, False: 347]
  ------------------
 2605|      0|    ossl_ssl_version_max = TLS1_VERSION;
 2606|      0|    break;
 2607|      0|  case CURL_SSLVERSION_MAX_TLSv1_1:
  ------------------
  |  | 2406|      0|#define CURL_SSLVERSION_MAX_TLSv1_1 (CURL_SSLVERSION_TLSv1_1 << 16)
  |  |  ------------------
  |  |  |  | 2397|      0|#define CURL_SSLVERSION_TLSv1_1 5L
  |  |  ------------------
  ------------------
  |  Branch (2607:3): [True: 0, False: 347]
  ------------------
 2608|      0|    ossl_ssl_version_max = TLS1_1_VERSION;
 2609|      0|    break;
 2610|      0|  case CURL_SSLVERSION_MAX_TLSv1_2:
  ------------------
  |  | 2407|      0|#define CURL_SSLVERSION_MAX_TLSv1_2 (CURL_SSLVERSION_TLSv1_2 << 16)
  |  |  ------------------
  |  |  |  | 2398|      0|#define CURL_SSLVERSION_TLSv1_2 6L
  |  |  ------------------
  ------------------
  |  Branch (2610:3): [True: 0, False: 347]
  ------------------
 2611|      0|    ossl_ssl_version_max = TLS1_2_VERSION;
 2612|      0|    break;
 2613|      0|  case CURL_SSLVERSION_MAX_TLSv1_3:
  ------------------
  |  | 2408|      0|#define CURL_SSLVERSION_MAX_TLSv1_3 (CURL_SSLVERSION_TLSv1_3 << 16)
  |  |  ------------------
  |  |  |  | 2399|      0|#define CURL_SSLVERSION_TLSv1_3 7L
  |  |  ------------------
  ------------------
  |  Branch (2613:3): [True: 0, False: 347]
  ------------------
 2614|      0|    ossl_ssl_version_max = TLS1_3_VERSION;
 2615|      0|    break;
 2616|    347|  case CURL_SSLVERSION_MAX_NONE:  /* none selected */
  ------------------
  |  | 2403|    347|#define CURL_SSLVERSION_MAX_NONE 0L
  ------------------
  |  Branch (2616:3): [True: 347, False: 0]
  ------------------
 2617|    347|  case CURL_SSLVERSION_MAX_DEFAULT:  /* max selected */
  ------------------
  |  | 2404|    347|#define CURL_SSLVERSION_MAX_DEFAULT (CURL_SSLVERSION_TLSv1   << 16)
  |  |  ------------------
  |  |  |  | 2393|    347|#define CURL_SSLVERSION_TLSv1   1L /* TLS 1.x */
  |  |  ------------------
  ------------------
  |  Branch (2617:3): [True: 0, False: 347]
  ------------------
 2618|    347|  default:
  ------------------
  |  Branch (2618:3): [True: 0, False: 347]
  ------------------
 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|    347|    ossl_ssl_version_max = 0;
 2623|    347|    break;
 2624|    347|  }
 2625|       |
 2626|    347|  if(!SSL_CTX_set_min_proto_version(ctx, ossl_ssl_version_min) ||
  ------------------
  |  Branch (2626:6): [True: 0, False: 347]
  ------------------
 2627|    347|     !SSL_CTX_set_max_proto_version(ctx, ossl_ssl_version_max))
  ------------------
  |  Branch (2627:6): [True: 0, False: 347]
  ------------------
 2628|      0|    return CURLE_SSL_CONNECT_ERROR;
 2629|       |
 2630|    347|  return CURLE_OK;
 2631|    347|}
openssl.c:ossl_provider_cleanup:
 1743|  19.9k|{
 1744|  19.9k|  if(data->state.baseprov) {
  ------------------
  |  Branch (1744:6): [True: 0, False: 19.9k]
  ------------------
 1745|      0|    OSSL_PROVIDER_unload(data->state.baseprov);
 1746|      0|    data->state.baseprov = NULL;
 1747|      0|  }
 1748|  19.9k|  if(data->state.provider) {
  ------------------
  |  Branch (1748:6): [True: 0, False: 19.9k]
  ------------------
 1749|      0|    OSSL_PROVIDER_unload(data->state.provider);
 1750|      0|    data->state.provider = NULL;
 1751|      0|  }
 1752|  19.9k|  OSSL_LIB_CTX_free(data->state.libctx);
 1753|  19.9k|  data->state.libctx = NULL;
 1754|  19.9k|  curlx_safefree(data->state.propq);
  ------------------
  |  | 1340|  19.9k|  do {                      \
  |  | 1341|  19.9k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  19.9k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  19.9k|    (ptr) = NULL;           \
  |  | 1343|  19.9k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 19.9k]
  |  |  ------------------
  ------------------
 1755|       |  data->state.provider_loaded = FALSE;
  ------------------
  |  | 1056|  19.9k|#define FALSE false
  ------------------
 1756|  19.9k|}
openssl.c:ossl_init_ssl:
 3617|    347|{
 3618|       |  /* Let's make an SSL structure */
 3619|    347|  if(octx->ssl)
  ------------------
  |  Branch (3619:6): [True: 0, False: 347]
  ------------------
 3620|      0|    SSL_free(octx->ssl);
 3621|    347|  octx->ssl = SSL_new(octx->ssl_ctx);
 3622|    347|  if(!octx->ssl) {
  ------------------
  |  Branch (3622:6): [True: 0, False: 347]
  ------------------
 3623|      0|    failf(data, "SSL: could not create a context (handle)");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3624|      0|    return CURLE_OUT_OF_MEMORY;
 3625|      0|  }
 3626|       |
 3627|    347|  SSL_set_app_data(octx->ssl, ssl_user_data);
 3628|       |
 3629|    347|#ifndef OPENSSL_NO_OCSP
 3630|    347|  if(Curl_ssl_cf_get_primary_config(cf)->verifystatus)
  ------------------
  |  Branch (3630:6): [True: 0, False: 347]
  ------------------
 3631|    347|    SSL_set_tlsext_status_type(octx->ssl, TLSEXT_STATUSTYPE_ocsp);
 3632|    347|#endif
 3633|       |
 3634|    347|  SSL_set_connect_state(octx->ssl);
 3635|       |
 3636|    347|  if(peer->sni) {
  ------------------
  |  Branch (3636:6): [True: 224, False: 123]
  ------------------
 3637|    224|    if(!SSL_set_tlsext_host_name(octx->ssl, peer->sni)) {
  ------------------
  |  Branch (3637:8): [True: 5, False: 219]
  ------------------
 3638|      5|      failf(data, "Failed set SNI");
  ------------------
  |  |   62|      5|#define failf Curl_failf
  ------------------
 3639|      5|      return CURLE_SSL_CONNECT_ERROR;
 3640|      5|    }
 3641|    224|  }
 3642|       |
 3643|       |#ifdef HAVE_SSL_SET1_ECH_CONFIG_LIST
 3644|       |  {
 3645|       |    CURLcode result = ossl_init_ech(octx, cf, data, peer);
 3646|       |    if(result)
 3647|       |      return result;
 3648|       |  }
 3649|       |#endif /* HAVE_SSL_SET1_ECH_CONFIG_LIST */
 3650|       |
 3651|    342|  return ossl_init_session_and_alpns(octx, cf, data, peer,
 3652|    342|                                     alpns_requested, sess_reuse_cb);
 3653|    347|}
openssl.c:ossl_init_session_and_alpns:
 3425|    342|{
 3426|    342|  struct ssl_primary_config *conn_cfg = Curl_ssl_cf_get_primary_config(cf);
 3427|    342|  struct alpn_spec alpns;
 3428|    342|  CURLcode result;
 3429|       |
 3430|    342|  Curl_alpn_copy(&alpns, alpns_requested);
 3431|       |
 3432|    342|  octx->reused_session = FALSE;
  ------------------
  |  | 1056|    342|#define FALSE false
  ------------------
 3433|       |
 3434|    342|  if((cf->sockindex == SECONDARYSOCKET) && !(cf->cft->flags & CF_TYPE_PROXY)) {
  ------------------
  |  |  234|    342|#define SECONDARYSOCKET 1
  ------------------
                if((cf->sockindex == SECONDARYSOCKET) && !(cf->cft->flags & CF_TYPE_PROXY)) {
  ------------------
  |  |  205|      0|#define CF_TYPE_PROXY       (1 << 3)
  ------------------
  |  Branch (3434:6): [True: 0, False: 342]
  |  Branch (3434:44): [True: 0, False: 0]
  ------------------
 3435|       |    /* FTP is a bitch. On TLS secured transfers, it is a common server
 3436|       |     * option to require the client to use the SAME TLS session as on
 3437|       |     * the control connection or it fails the request. See #22225. */
 3438|      0|    struct Curl_ssl_session *scs =
 3439|      0|      Curl_ssl_get_cf_session(data, cf->cft, FIRSTSOCKET);
  ------------------
  |  |  233|      0|#define FIRSTSOCKET     0
  ------------------
 3440|      0|    if(scs) {
  ------------------
  |  Branch (3440:8): [True: 0, False: 0]
  ------------------
 3441|      0|      if(ossl_apply_session(octx, cf, data, &alpns, sess_reuse_cb, scs))
  ------------------
  |  Branch (3441:10): [True: 0, False: 0]
  ------------------
 3442|      0|        CURL_TRC_CF(data, cf, "applied SSL session from control connection");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 3443|      0|    }
 3444|      0|  }
 3445|       |
 3446|    342|  if(!octx->reused_session &&
  ------------------
  |  Branch (3446:6): [True: 342, False: 0]
  ------------------
 3447|    342|     Curl_ssl_scache_use(cf, data) && !conn_cfg->verifystatus) {
  ------------------
  |  Branch (3447:6): [True: 342, False: 0]
  |  Branch (3447:39): [True: 342, False: 0]
  ------------------
 3448|    342|    struct Curl_ssl_session *scs = NULL;
 3449|       |
 3450|    342|    result = Curl_ssl_scache_take(cf, data, peer->scache_key, &scs);
 3451|    342|    if(!result && scs && scs->sdata && scs->sdata_len) {
  ------------------
  |  Branch (3451:8): [True: 342, False: 0]
  |  Branch (3451:19): [True: 0, False: 342]
  |  Branch (3451:26): [True: 0, False: 0]
  |  Branch (3451:40): [True: 0, False: 0]
  ------------------
 3452|      0|      (void)ossl_apply_session(octx, cf, data, &alpns, sess_reuse_cb, scs);
 3453|      0|    }
 3454|    342|    Curl_ssl_scache_return(cf, data, peer->scache_key, scs);
 3455|    342|  }
 3456|       |
 3457|    342|  if(alpns.count) {
  ------------------
  |  Branch (3457:6): [True: 0, False: 342]
  ------------------
 3458|      0|    struct alpn_proto_buf proto;
 3459|      0|    memset(&proto, 0, sizeof(proto));
 3460|      0|    result = Curl_alpn_to_proto_buf(&proto, &alpns);
 3461|      0|    if(result) {
  ------------------
  |  Branch (3461:8): [True: 0, False: 0]
  ------------------
 3462|      0|      failf(data, "Error determining ALPN");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3463|      0|      return CURLE_SSL_CONNECT_ERROR;
 3464|      0|    }
 3465|      0|    if(SSL_set_alpn_protos(octx->ssl, proto.data, proto.len)) {
  ------------------
  |  Branch (3465:8): [True: 0, False: 0]
  ------------------
 3466|      0|      failf(data, "Error setting ALPN");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 3467|      0|      return CURLE_SSL_CONNECT_ERROR;
 3468|      0|    }
 3469|      0|  }
 3470|       |
 3471|    342|  return CURLE_OK;
 3472|    342|}
openssl.c:ossl_init:
 1627|      2|{
 1628|      2|  const uint64_t flags =
 1629|      2|#ifdef OPENSSL_INIT_ENGINE_ALL_BUILTIN
 1630|       |    /* not present in BoringSSL */
 1631|      2|    OPENSSL_INIT_ENGINE_ALL_BUILTIN |
 1632|      2|#endif
 1633|       |#ifdef CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG
 1634|       |    OPENSSL_INIT_NO_LOAD_CONFIG |
 1635|       |#else
 1636|      2|    OPENSSL_INIT_LOAD_CONFIG |
 1637|      2|#endif
 1638|      2|    0;
 1639|      2|  OPENSSL_init_ssl(flags, NULL);
 1640|       |
 1641|      2|#ifndef HAVE_KEYLOG_UPSTREAM
 1642|      2|  Curl_tls_keylog_open();
 1643|      2|#endif
 1644|       |
 1645|      2|  return 1;
 1646|      2|}
openssl.c:ossl_random:
 5456|  8.03k|{
 5457|  8.03k|  int rc;
 5458|  8.03k|  if(data) {
  ------------------
  |  Branch (5458:6): [True: 8.03k, False: 0]
  ------------------
 5459|  8.03k|    if(ossl_seed(data)) /* Initiate the seed if not already done */
  ------------------
  |  Branch (5459:8): [True: 0, False: 8.03k]
  ------------------
 5460|      0|      return CURLE_FAILED_INIT; /* could not seed for some reason */
 5461|  8.03k|  }
 5462|      0|  else {
 5463|      0|    if(!rand_enough())
  ------------------
  |  Branch (5463:8): [True: 0, False: 0]
  ------------------
 5464|      0|      return CURLE_FAILED_INIT;
 5465|      0|  }
 5466|       |  /* RAND_bytes() returns 1 on success, 0 otherwise. */
 5467|  8.03k|  rc = RAND_bytes(entropy, (ossl_valsize_t)curlx_uztosi(length));
 5468|  8.03k|  return rc == 1 ? CURLE_OK : CURLE_FAILED_INIT;
  ------------------
  |  Branch (5468:10): [True: 8.03k, False: 0]
  ------------------
 5469|  8.03k|}
openssl.c:ossl_connect:
 4977|  6.52k|{
 4978|  6.52k|  CURLcode result = CURLE_OK;
 4979|  6.52k|  struct ssl_connect_data *connssl = cf->ctx;
 4980|       |
 4981|       |  /* check if the connection has already been established */
 4982|  6.52k|  if(ssl_connection_complete == connssl->state) {
  ------------------
  |  Branch (4982:6): [True: 0, False: 6.52k]
  ------------------
 4983|      0|    *done = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 4984|      0|    return CURLE_OK;
 4985|      0|  }
 4986|       |
 4987|  6.52k|  *done = FALSE;
  ------------------
  |  | 1056|  6.52k|#define FALSE false
  ------------------
 4988|  6.52k|  connssl->io_need = CURL_SSL_IO_NEED_NONE;
  ------------------
  |  |  105|  6.52k|#define CURL_SSL_IO_NEED_NONE   0
  ------------------
 4989|       |
 4990|  6.52k|  if(connssl->connecting_state == ssl_connect_1) {
  ------------------
  |  Branch (4990:6): [True: 347, False: 6.17k]
  ------------------
 4991|    347|    if(Curl_ossl_need_httpsrr(data) &&
  ------------------
  |  Branch (4991:8): [True: 0, False: 347]
  ------------------
 4992|      0|       !Curl_conn_dns_resolved_https(data, cf->sockindex,
  ------------------
  |  |   66|      0|#define Curl_conn_dns_resolved_https(a, b, c)   TRUE
  |  |  ------------------
  |  |  |  | 1053|      0|#define TRUE true
  |  |  ------------------
  ------------------
  |  Branch (4992:8): [Folded, False: 0]
  ------------------
 4993|    347|                                     connssl->peer.peer)) {
 4994|      0|      CURL_TRC_CF(data, cf, "need HTTPS-RR, delaying connect");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 4995|      0|      return CURLE_OK;
 4996|      0|    }
 4997|    347|    CURL_TRC_CF(data, cf, "ossl_connect, step1");
  ------------------
  |  |  153|    347|  do {                                          \
  |  |  154|    347|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|    347|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    694|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 347, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 347]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    694|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    347|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    347|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    347|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 347]
  |  |  ------------------
  ------------------
 4998|    347|    result = ossl_connect_step1(cf, data);
 4999|    347|    if(result)
  ------------------
  |  Branch (4999:8): [True: 5, False: 342]
  ------------------
 5000|      5|      goto out;
 5001|    347|  }
 5002|       |
 5003|  6.51k|  if(connssl->connecting_state == ssl_connect_2) {
  ------------------
  |  Branch (5003:6): [True: 6.51k, False: 0]
  ------------------
 5004|  6.51k|    CURL_TRC_CF(data, cf, "ossl_connect, step2");
  ------------------
  |  |  153|  6.51k|  do {                                          \
  |  |  154|  6.51k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  6.51k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  13.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 6.51k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 6.51k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  13.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  6.51k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  6.51k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  6.51k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 6.51k]
  |  |  ------------------
  ------------------
 5005|  6.51k|#ifdef HAVE_OPENSSL_EARLYDATA
 5006|  6.51k|    if(connssl->earlydata_state == ssl_earlydata_await) {
  ------------------
  |  Branch (5006:8): [True: 0, False: 6.51k]
  ------------------
 5007|      0|      goto out;
 5008|      0|    }
 5009|  6.51k|    else if(connssl->earlydata_state == ssl_earlydata_sending) {
  ------------------
  |  Branch (5009:13): [True: 0, False: 6.51k]
  ------------------
 5010|      0|      result = ossl_send_earlydata(cf, data);
 5011|      0|      if(result)
  ------------------
  |  Branch (5011:10): [True: 0, False: 0]
  ------------------
 5012|      0|        goto out;
 5013|      0|      connssl->earlydata_state = ssl_earlydata_sent;
 5014|      0|    }
 5015|  6.51k|#endif
 5016|  6.51k|    DEBUGASSERT((connssl->earlydata_state == ssl_earlydata_none) ||
  ------------------
  |  | 1083|  6.51k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (5016:5): [True: 6.51k, False: 0]
  |  Branch (5016:5): [True: 0, False: 0]
  |  Branch (5016:5): [True: 6.51k, False: 0]
  |  Branch (5016:5): [True: 0, False: 0]
  ------------------
 5017|  6.51k|                (connssl->earlydata_state == ssl_earlydata_sent));
 5018|       |
 5019|  6.51k|    result = ossl_connect_step2(cf, data);
 5020|  6.51k|    if(result)
  ------------------
  |  Branch (5020:8): [True: 6.51k, False: 0]
  ------------------
 5021|  6.51k|      goto out;
 5022|  6.51k|  }
 5023|       |
 5024|      0|  if(connssl->connecting_state == ssl_connect_3) {
  ------------------
  |  Branch (5024:6): [True: 0, False: 0]
  ------------------
 5025|      0|    CURL_TRC_CF(data, cf, "ossl_connect, step3");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 5026|      0|    result = ossl_connect_step3(cf, data);
 5027|      0|    if(result)
  ------------------
  |  Branch (5027:8): [True: 0, False: 0]
  ------------------
 5028|      0|      goto out;
 5029|      0|    connssl->connecting_state = ssl_connect_done;
 5030|      0|#ifdef HAVE_OPENSSL_EARLYDATA
 5031|      0|    if(connssl->earlydata_state > ssl_earlydata_none) {
  ------------------
  |  Branch (5031:8): [True: 0, False: 0]
  ------------------
 5032|      0|      struct ossl_ctx *octx = (struct ossl_ctx *)connssl->backend;
 5033|       |      /* We should be in this state by now */
 5034|      0|      DEBUGASSERT(connssl->earlydata_state == ssl_earlydata_sent);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (5034:7): [True: 0, False: 0]
  |  Branch (5034:7): [True: 0, False: 0]
  ------------------
 5035|      0|      connssl->earlydata_state =
 5036|      0|        (SSL_get_early_data_status(octx->ssl) == SSL_EARLY_DATA_ACCEPTED) ?
  ------------------
  |  Branch (5036:9): [True: 0, False: 0]
  ------------------
 5037|      0|        ssl_earlydata_accepted : ssl_earlydata_rejected;
 5038|      0|    }
 5039|      0|#endif
 5040|      0|  }
 5041|       |
 5042|      0|  if(connssl->connecting_state == ssl_connect_done) {
  ------------------
  |  Branch (5042:6): [True: 0, False: 0]
  ------------------
 5043|      0|    CURL_TRC_CF(data, cf, "ossl_connect, done");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 5044|      0|    connssl->state = ssl_connection_complete;
 5045|      0|  }
 5046|       |
 5047|  6.52k|out:
 5048|  6.52k|  if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (5048:6): [True: 6.51k, False: 5]
  ------------------
 5049|  6.51k|    *done = FALSE;
  ------------------
  |  | 1056|  6.51k|#define FALSE false
  ------------------
 5050|  6.51k|    return CURLE_OK;
 5051|  6.51k|  }
 5052|      5|  *done = ((connssl->state == ssl_connection_complete) ||
  ------------------
  |  Branch (5052:12): [True: 0, False: 5]
  ------------------
 5053|      5|           (connssl->state == ssl_connection_deferred));
  ------------------
  |  Branch (5053:12): [True: 0, False: 5]
  ------------------
 5054|      5|  return result;
 5055|  6.52k|}
openssl.c:ossl_connect_step1:
 4032|    347|{
 4033|    347|  struct ssl_connect_data *connssl = cf->ctx;
 4034|    347|  struct ossl_ctx *octx = (struct ossl_ctx *)connssl->backend;
 4035|    347|  BIO *bio;
 4036|    347|  CURLcode result;
 4037|       |
 4038|    347|  DEBUGASSERT(connssl->connecting_state == ssl_connect_1);
  ------------------
  |  | 1083|    347|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4038:3): [True: 0, False: 347]
  |  Branch (4038:3): [True: 347, False: 0]
  ------------------
 4039|    347|  DEBUGASSERT(octx);
  ------------------
  |  | 1083|    347|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4039:3): [True: 0, False: 347]
  |  Branch (4039:3): [True: 347, False: 0]
  ------------------
 4040|    347|  DEBUGASSERT(connssl->peer.origin);
  ------------------
  |  | 1083|    347|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4040:3): [True: 0, False: 347]
  |  Branch (4040:3): [True: 347, False: 0]
  ------------------
 4041|       |
 4042|    347|  result = Curl_ossl_ctx_init(octx, cf, data, &connssl->peer,
 4043|    347|                              connssl->alpn, NULL, NULL,
 4044|    347|                              ossl_new_session_cb, cf,
 4045|    347|                              ossl_on_session_reuse);
 4046|    347|  if(result)
  ------------------
  |  Branch (4046:6): [True: 5, False: 342]
  ------------------
 4047|      5|    return result;
 4048|       |
 4049|    342|  octx->bio_method = ossl_bio_cf_method_create();
 4050|    342|  if(!octx->bio_method)
  ------------------
  |  Branch (4050:6): [True: 0, False: 342]
  ------------------
 4051|      0|    return CURLE_OUT_OF_MEMORY;
 4052|    342|  bio = BIO_new(octx->bio_method);
 4053|    342|  if(!bio)
  ------------------
  |  Branch (4053:6): [True: 0, False: 342]
  ------------------
 4054|      0|    return CURLE_OUT_OF_MEMORY;
 4055|       |
 4056|    342|  BIO_set_data(bio, cf);
 4057|    342|#ifdef HAVE_SSL_SET0_WBIO
 4058|       |  /* with OpenSSL v1.1.1 we get an alternative to SSL_set_bio() that works
 4059|       |   * without backward compat quirks. Every call takes one reference, so we
 4060|       |   * up it and pass. SSL* then owns and frees it.
 4061|       |   * We check on the function in configure, since LibreSSL and friends
 4062|       |   * each have their own versions to add support for this. */
 4063|    342|  BIO_up_ref(bio);
 4064|    342|  SSL_set0_rbio(octx->ssl, bio);
 4065|    342|  SSL_set0_wbio(octx->ssl, bio);
 4066|       |#else
 4067|       |  SSL_set_bio(octx->ssl, bio, bio);
 4068|       |#endif
 4069|       |
 4070|    342|  if(connssl->alpn && (connssl->state != ssl_connection_deferred)) {
  ------------------
  |  Branch (4070:6): [True: 0, False: 342]
  |  Branch (4070:23): [True: 0, False: 0]
  ------------------
 4071|      0|    struct alpn_proto_buf proto;
 4072|      0|    memset(&proto, 0, sizeof(proto));
 4073|      0|    Curl_alpn_to_proto_str(&proto, connssl->alpn);
 4074|      0|    infof(data, VTLS_INFOF_ALPN_OFFER_1STR, proto.data);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 4075|      0|  }
 4076|       |
 4077|    342|  connssl->connecting_state = ssl_connect_2;
 4078|    342|  return CURLE_OK;
 4079|    342|}
openssl.c:ossl_bio_cf_method_create:
  642|    342|{
  643|    342|  BIO_METHOD *m = BIO_meth_new(BIO_TYPE_MEM, "OpenSSL CF BIO");
  644|    342|  if(m) {
  ------------------
  |  Branch (644:6): [True: 342, False: 0]
  ------------------
  645|    342|    BIO_meth_set_write(m, &ossl_bio_cf_out_write);
  646|    342|    BIO_meth_set_read(m, &ossl_bio_cf_in_read);
  647|    342|    BIO_meth_set_ctrl(m, &ossl_bio_cf_ctrl);
  648|    342|    BIO_meth_set_create(m, &ossl_bio_cf_create);
  649|    342|    BIO_meth_set_destroy(m, &ossl_bio_cf_destroy);
  650|    342|  }
  651|    342|  return m;
  652|    342|}
openssl.c:ossl_bio_cf_out_write:
  568|    342|{
  569|    342|  struct Curl_cfilter *cf = BIO_get_data(bio);
  570|    342|  struct ssl_connect_data *connssl = cf->ctx;
  571|    342|  struct ossl_ctx *octx = (struct ossl_ctx *)connssl->backend;
  572|    342|  struct Curl_easy *data = CF_DATA_CURRENT(cf);
  ------------------
  |  |  684|    342|#define CF_DATA_CURRENT(cf) ((cf) ? (CF_CTX_CALL_DATA(cf).data) : NULL)
  |  |  ------------------
  |  |  |  |  221|    342|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  |  Branch (684:30): [True: 342, False: 0]
  |  |  ------------------
  ------------------
  573|    342|  size_t nwritten;
  574|    342|  CURLcode result;
  575|       |
  576|    342|  DEBUGASSERT(data);
  ------------------
  |  | 1083|    342|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (576:3): [True: 0, False: 342]
  |  Branch (576:3): [True: 342, False: 0]
  ------------------
  577|    342|  if(blen < 0)
  ------------------
  |  Branch (577:6): [True: 0, False: 342]
  ------------------
  578|      0|    return 0;
  579|       |
  580|    342|  result = Curl_conn_cf_send(cf->next, data,
  581|    342|                             (const uint8_t *)buf, (size_t)blen, FALSE,
  ------------------
  |  | 1056|    342|#define FALSE false
  ------------------
  582|    342|                             &nwritten);
  583|    342|  CURL_TRC_CF(data, cf, "ossl_bio_cf_out_write(len=%d) -> %d, %zu",
  ------------------
  |  |  153|    342|  do {                                          \
  |  |  154|    342|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|    342|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    684|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 342, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 342]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    684|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|    342|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|    342|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|    342|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 342]
  |  |  ------------------
  ------------------
  584|    342|              blen, (int)result, nwritten);
  585|    342|  BIO_clear_retry_flags(bio);
  586|    342|  octx->io_result = result;
  587|    342|  if(result) {
  ------------------
  |  Branch (587:6): [True: 0, False: 342]
  ------------------
  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|    342|  return (int)nwritten;
  593|    342|}
openssl.c:ossl_bio_cf_in_read:
  596|  6.51k|{
  597|  6.51k|  struct Curl_cfilter *cf = BIO_get_data(bio);
  598|  6.51k|  struct ssl_connect_data *connssl = cf->ctx;
  599|  6.51k|  struct ossl_ctx *octx = (struct ossl_ctx *)connssl->backend;
  600|  6.51k|  struct Curl_easy *data = CF_DATA_CURRENT(cf);
  ------------------
  |  |  684|  6.51k|#define CF_DATA_CURRENT(cf) ((cf) ? (CF_CTX_CALL_DATA(cf).data) : NULL)
  |  |  ------------------
  |  |  |  |  221|  6.51k|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  |  Branch (684:30): [True: 6.51k, False: 0]
  |  |  ------------------
  ------------------
  601|  6.51k|  size_t nread;
  602|  6.51k|  CURLcode result, r2;
  603|       |
  604|  6.51k|  DEBUGASSERT(data);
  ------------------
  |  | 1083|  6.51k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (604:3): [True: 0, False: 6.51k]
  |  Branch (604:3): [True: 6.51k, False: 0]
  ------------------
  605|       |  /* OpenSSL catches this case, so should we. */
  606|  6.51k|  if(!buf)
  ------------------
  |  Branch (606:6): [True: 0, False: 6.51k]
  ------------------
  607|      0|    return 0;
  608|  6.51k|  if(blen < 0)
  ------------------
  |  Branch (608:6): [True: 0, False: 6.51k]
  ------------------
  609|      0|    return 0;
  610|       |
  611|  6.51k|  result = Curl_conn_cf_recv(cf->next, data, buf, (size_t)blen, &nread);
  612|  6.51k|  CURL_TRC_CF(data, cf, "ossl_bio_cf_in_read(len=%d) -> %d, %zu",
  ------------------
  |  |  153|  6.51k|  do {                                          \
  |  |  154|  6.51k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  6.51k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  13.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 6.51k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 6.51k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  13.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  6.51k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  6.51k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  6.51k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 6.51k]
  |  |  ------------------
  ------------------
  613|  6.51k|              blen, (int)result, nread);
  614|  6.51k|  BIO_clear_retry_flags(bio);
  615|  6.51k|  octx->io_result = result;
  616|  6.51k|  if(result) {
  ------------------
  |  Branch (616:6): [True: 6.51k, False: 0]
  ------------------
  617|  6.51k|    if(result == CURLE_AGAIN)
  ------------------
  |  Branch (617:8): [True: 6.51k, False: 0]
  ------------------
  618|  6.51k|      BIO_set_retry_read(bio);
  619|  6.51k|  }
  620|      0|  else {
  621|       |    /* feeding data to OpenSSL means SSL_read() might succeed */
  622|      0|    connssl->input_pending = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  623|      0|    if(nread == 0)
  ------------------
  |  Branch (623:8): [True: 0, False: 0]
  ------------------
  624|      0|      connssl->peer_closed = TRUE;
  ------------------
  |  | 1053|      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|  6.51k|  if(!octx->x509_store_setup) {
  ------------------
  |  Branch (629:6): [True: 342, False: 6.17k]
  ------------------
  630|    342|    r2 = Curl_ssl_setup_x509_store(cf, data, octx);
  631|    342|    if(r2) {
  ------------------
  |  Branch (631:8): [True: 0, False: 342]
  ------------------
  632|      0|      BIO_clear_retry_flags(bio);
  633|      0|      octx->io_result = r2;
  634|      0|      return -1;
  635|      0|    }
  636|    342|    octx->x509_store_setup = TRUE;
  ------------------
  |  | 1053|    342|#define TRUE true
  ------------------
  637|    342|  }
  638|  6.51k|  return result ? -1 : (int)nread;
  ------------------
  |  Branch (638:10): [True: 6.51k, False: 0]
  ------------------
  639|  6.51k|}
openssl.c:ossl_bio_cf_ctrl:
  534|  1.02k|{
  535|  1.02k|  struct Curl_cfilter *cf = BIO_get_data(bio);
  536|  1.02k|  long ret = 1;
  537|       |
  538|  1.02k|  (void)cf;
  539|  1.02k|  (void)ptr;
  540|  1.02k|  switch(cmd) {
  541|      0|  case BIO_CTRL_GET_CLOSE:
  ------------------
  |  Branch (541:3): [True: 0, False: 1.02k]
  ------------------
  542|      0|    ret = (long)BIO_get_shutdown(bio);
  543|      0|    break;
  544|      0|  case BIO_CTRL_SET_CLOSE:
  ------------------
  |  Branch (544:3): [True: 0, False: 1.02k]
  ------------------
  545|      0|    BIO_set_shutdown(bio, (int)num);
  546|      0|    break;
  547|    342|  case BIO_CTRL_FLUSH:
  ------------------
  |  Branch (547:3): [True: 342, False: 684]
  ------------------
  548|       |    /* we do no delayed writes, but if we ever would, this
  549|       |     * needs to trigger it. */
  550|    342|    ret = 1;
  551|    342|    break;
  552|      0|  case BIO_CTRL_DUP:
  ------------------
  |  Branch (552:3): [True: 0, False: 1.02k]
  ------------------
  553|      0|    ret = 1;
  554|      0|    break;
  555|      0|  case BIO_CTRL_EOF: {
  ------------------
  |  Branch (555:3): [True: 0, False: 1.02k]
  ------------------
  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|    684|  default:
  ------------------
  |  Branch (560:3): [True: 684, False: 342]
  ------------------
  561|    684|    ret = 0;
  562|    684|    break;
  563|  1.02k|  }
  564|  1.02k|  return ret;
  565|  1.02k|}
openssl.c:ossl_bio_cf_create:
  519|    342|{
  520|    342|  BIO_set_shutdown(bio, 1);
  521|    342|  BIO_set_init(bio, 1);
  522|       |  BIO_set_data(bio, NULL);
  523|    342|  return 1;
  524|    342|}
openssl.c:ossl_bio_cf_destroy:
  527|    342|{
  528|    342|  if(!bio)
  ------------------
  |  Branch (528:6): [True: 0, False: 342]
  ------------------
  529|      0|    return 0;
  530|    342|  return 1;
  531|    342|}
openssl.c:ossl_connect_step2:
 4148|  6.51k|{
 4149|  6.51k|  int err;
 4150|  6.51k|  struct ssl_connect_data *connssl = cf->ctx;
 4151|  6.51k|  struct ossl_ctx *octx = (struct ossl_ctx *)connssl->backend;
 4152|  6.51k|  struct ssl_config_data *ssl_config = Curl_ssl_cf_get_config(cf, data);
 4153|  6.51k|  DEBUGASSERT(connssl->connecting_state == ssl_connect_2);
  ------------------
  |  | 1083|  6.51k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4153:3): [True: 0, False: 6.51k]
  |  Branch (4153:3): [True: 6.51k, False: 0]
  ------------------
 4154|  6.51k|  DEBUGASSERT(octx);
  ------------------
  |  | 1083|  6.51k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (4154:3): [True: 0, False: 6.51k]
  |  Branch (4154:3): [True: 6.51k, False: 0]
  ------------------
 4155|       |
 4156|  6.51k|  connssl->io_need = CURL_SSL_IO_NEED_NONE;
  ------------------
  |  |  105|  6.51k|#define CURL_SSL_IO_NEED_NONE   0
  ------------------
 4157|  6.51k|  ERR_clear_error();
 4158|       |
 4159|  6.51k|  err = SSL_connect(octx->ssl);
 4160|       |
 4161|  6.51k|  if(!octx->x509_store_setup) {
  ------------------
  |  Branch (4161:6): [True: 0, False: 6.51k]
  ------------------
 4162|       |    /* After having send off the ClientHello, we prepare the x509
 4163|       |     * store to verify the coming certificate from the server */
 4164|      0|    CURLcode result = Curl_ssl_setup_x509_store(cf, data, octx);
 4165|      0|    if(result)
  ------------------
  |  Branch (4165:8): [True: 0, False: 0]
  ------------------
 4166|      0|      return result;
 4167|      0|    octx->x509_store_setup = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 4168|      0|  }
 4169|       |
 4170|       |#if !defined(HAVE_KEYLOG_UPSTREAM) && !defined(HAVE_KEYLOG_CALLBACK)
 4171|       |  /* If key logging is enabled, wait for the handshake to complete and then
 4172|       |   * proceed with logging secrets (for TLS 1.2 or older).
 4173|       |   */
 4174|       |  if(Curl_tls_keylog_enabled() && !octx->keylog_done)
 4175|       |    ossl_log_tls12_secret(octx->ssl, &octx->keylog_done);
 4176|       |#endif
 4177|       |
 4178|       |  /* 1  is fine
 4179|       |     0  is "not successful but was shut down controlled"
 4180|       |     <0 is "handshake was not successful, because a fatal error occurred" */
 4181|  6.51k|  if(err != 1) {
  ------------------
  |  Branch (4181:6): [True: 6.51k, False: 0]
  ------------------
 4182|  6.51k|    int detail = SSL_get_error(octx->ssl, err);
 4183|  6.51k|    CURL_TRC_CF(data, cf, "SSL_connect() -> err=%d, detail=%d", err, detail);
  ------------------
  |  |  153|  6.51k|  do {                                          \
  |  |  154|  6.51k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  6.51k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  13.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 6.51k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 6.51k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  13.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  6.51k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  6.51k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  6.51k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 6.51k]
  |  |  ------------------
  ------------------
 4184|       |
 4185|  6.51k|    if(detail == SSL_ERROR_WANT_READ) {
  ------------------
  |  Branch (4185:8): [True: 6.51k, False: 0]
  ------------------
 4186|  6.51k|      CURL_TRC_CF(data, cf, "SSL_connect() -> want recv");
  ------------------
  |  |  153|  6.51k|  do {                                          \
  |  |  154|  6.51k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  6.51k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  13.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 6.51k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 6.51k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  13.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  6.51k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  6.51k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  6.51k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 6.51k]
  |  |  ------------------
  ------------------
 4187|  6.51k|      connssl->io_need = CURL_SSL_IO_NEED_RECV;
  ------------------
  |  |  106|  6.51k|#define CURL_SSL_IO_NEED_RECV   (1 << 0)
  ------------------
 4188|  6.51k|      return CURLE_AGAIN;
 4189|  6.51k|    }
 4190|      0|    if(detail == SSL_ERROR_WANT_WRITE) {
  ------------------
  |  Branch (4190:8): [True: 0, False: 0]
  ------------------
 4191|      0|      CURL_TRC_CF(data, cf, "SSL_connect() -> want send");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 4192|      0|      connssl->io_need = CURL_SSL_IO_NEED_SEND;
  ------------------
  |  |  107|      0|#define CURL_SSL_IO_NEED_SEND   (1 << 1)
  ------------------
 4193|      0|      return CURLE_AGAIN;
 4194|      0|    }
 4195|      0|#ifdef SSL_ERROR_WANT_ASYNC
 4196|      0|    if(detail == SSL_ERROR_WANT_ASYNC) {
  ------------------
  |  Branch (4196:8): [True: 0, False: 0]
  ------------------
 4197|      0|      CURL_TRC_CF(data, cf, "SSL_connect() -> want async");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 4198|      0|      connssl->io_need = CURL_SSL_IO_NEED_RECV;
  ------------------
  |  |  106|      0|#define CURL_SSL_IO_NEED_RECV   (1 << 0)
  ------------------
 4199|      0|      return CURLE_AGAIN;
 4200|      0|    }
 4201|      0|#endif
 4202|      0|#ifdef SSL_ERROR_WANT_RETRY_VERIFY
 4203|      0|    if(detail == SSL_ERROR_WANT_RETRY_VERIFY) {
  ------------------
  |  Branch (4203:8): [True: 0, False: 0]
  ------------------
 4204|      0|      CURL_TRC_CF(data, cf, "SSL_connect() -> want retry_verify");
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 4205|      0|      Curl_xfer_pause_recv(data, TRUE);
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 4206|      0|      return CURLE_AGAIN;
 4207|      0|    }
 4208|      0|#endif
 4209|      0|    else {
 4210|       |      /* untreated error */
 4211|      0|      sslerr_t errdetail;
 4212|      0|      char error_buffer[256] = "";
 4213|      0|      CURLcode result;
 4214|      0|      long lerr;
 4215|      0|      int lib;
 4216|      0|      int reason;
 4217|       |
 4218|       |      /* the connection failed, we are not waiting for anything else. */
 4219|      0|      connssl->connecting_state = ssl_connect_2;
 4220|       |
 4221|       |      /* Get the earliest error code from the thread's error queue and remove
 4222|       |         the entry. */
 4223|      0|      errdetail = ERR_get_error();
 4224|       |
 4225|       |      /* Extract which lib and reason */
 4226|      0|      lib = ERR_GET_LIB(errdetail);
 4227|      0|      reason = ERR_GET_REASON(errdetail);
 4228|       |
 4229|      0|      if((lib == ERR_LIB_SSL) &&
  ------------------
  |  Branch (4229:10): [True: 0, False: 0]
  ------------------
 4230|      0|         ((reason == SSL_R_CERTIFICATE_VERIFY_FAILED)
  ------------------
  |  Branch (4230:11): [True: 0, False: 0]
  ------------------
 4231|       |/* Missing from OpenSSL 4+ OPENSSL_NO_DEPRECATED_3_0 builds */
 4232|      0|#ifdef SSL_R_SSLV3_ALERT_CERTIFICATE_EXPIRED
 4233|      0|          || (reason == SSL_R_SSLV3_ALERT_CERTIFICATE_EXPIRED)
  ------------------
  |  Branch (4233:14): [True: 0, False: 0]
  ------------------
 4234|      0|#endif
 4235|      0|         )) {
 4236|      0|        result = CURLE_PEER_FAILED_VERIFICATION;
 4237|       |
 4238|      0|        lerr = SSL_get_verify_result(octx->ssl);
 4239|      0|        if(lerr != X509_V_OK) {
  ------------------
  |  Branch (4239:12): [True: 0, False: 0]
  ------------------
 4240|      0|          ssl_config->certverifyresult = lerr;
 4241|      0|          failf(data, "SSL certificate problem: %s",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 4242|      0|                X509_verify_cert_error_string(lerr));
 4243|      0|        }
 4244|      0|        else
 4245|      0|          failf(data, "%s", "SSL certificate verification failed");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 4246|      0|      }
 4247|      0|#ifdef SSL_R_TLSV13_ALERT_CERTIFICATE_REQUIRED
 4248|       |      /* SSL_R_TLSV13_ALERT_CERTIFICATE_REQUIRED is only available on
 4249|       |         OpenSSL version above v1.1.1, not AWS-LC, BoringSSL, or LibreSSL */
 4250|      0|      else if((lib == ERR_LIB_SSL) &&
  ------------------
  |  Branch (4250:15): [True: 0, False: 0]
  ------------------
 4251|      0|              (reason == SSL_R_TLSV13_ALERT_CERTIFICATE_REQUIRED)) {
  ------------------
  |  Branch (4251:15): [True: 0, False: 0]
  ------------------
 4252|       |        /* If client certificate is required, communicate the
 4253|       |           error to client */
 4254|      0|        result = CURLE_SSL_CLIENTCERT;
 4255|      0|        failf(data, "TLS cert problem: %s",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 4256|      0|              ossl_strerror(errdetail, error_buffer, sizeof(error_buffer)));
 4257|      0|      }
 4258|      0|#endif
 4259|       |#ifdef HAVE_SSL_SET1_ECH_CONFIG_LIST
 4260|       |      else if((lib == ERR_LIB_SSL) &&
 4261|       |#ifndef HAVE_BORINGSSL_LIKE
 4262|       |              (reason == SSL_R_ECH_REQUIRED)) {
 4263|       |#else
 4264|       |              (reason == SSL_R_ECH_REJECTED)) {
 4265|       |#endif /* HAVE_BORINGSSL_LIKE */
 4266|       |
 4267|       |        /* trace retry_configs if we got some */
 4268|       |        ossl_trace_ech_retry_configs(data, octx->ssl, reason);
 4269|       |
 4270|       |        result = CURLE_ECH_REQUIRED;
 4271|       |        failf(data, "ECH required: %s",
 4272|       |              ossl_strerror(errdetail, error_buffer, sizeof(error_buffer)));
 4273|       |      }
 4274|       |#endif
 4275|      0|      else {
 4276|      0|        result = CURLE_SSL_CONNECT_ERROR;
 4277|      0|        failf(data, "TLS connect error: %s",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 4278|      0|              ossl_strerror(errdetail, error_buffer, sizeof(error_buffer)));
 4279|      0|      }
 4280|       |
 4281|       |      /* detail is already set to the SSL error above */
 4282|       |
 4283|       |      /* If we e.g. use SSLv2 request-method and the server does not like us
 4284|       |       * (RST connection, etc.), OpenSSL gives no explanation whatsoever and
 4285|       |       * the SO_ERROR is also lost.
 4286|       |       */
 4287|      0|      if(result == CURLE_SSL_CONNECT_ERROR && errdetail == 0) {
  ------------------
  |  Branch (4287:10): [True: 0, False: 0]
  |  Branch (4287:47): [True: 0, False: 0]
  ------------------
 4288|      0|        char extramsg[80] = "";
 4289|      0|        int sockerr = SOCKERRNO;
  ------------------
  |  | 1097|      0|#define SOCKERRNO         errno
  ------------------
 4290|       |
 4291|      0|        if(sockerr && detail == SSL_ERROR_SYSCALL)
  ------------------
  |  Branch (4291:12): [True: 0, False: 0]
  |  Branch (4291:23): [True: 0, False: 0]
  ------------------
 4292|      0|          curlx_strerror(sockerr, extramsg, sizeof(extramsg));
 4293|      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"
  ------------------
 4294|      0|              extramsg[0] ? extramsg : SSL_ERROR_to_str(detail),
  ------------------
  |  Branch (4294:15): [True: 0, False: 0]
  ------------------
 4295|      0|              connssl->peer.origin->hostname, connssl->peer.origin->port);
 4296|      0|      }
 4297|       |
 4298|      0|      return result;
 4299|      0|    }
 4300|      0|  }
 4301|      0|  else {
 4302|       |    /* we connected fine, we are not waiting for anything else. */
 4303|      0|    connssl->connecting_state = ssl_connect_3;
 4304|      0|    Curl_ossl_report_handshake(data, octx);
 4305|       |
 4306|       |#if defined(HAVE_SSL_SET1_ECH_CONFIG_LIST) && !defined(HAVE_BORINGSSL_LIKE)
 4307|       |    if(CURLECH_ENABLED(data)) {
 4308|       |      char *inner = NULL, *outer = NULL;
 4309|       |      int rv;
 4310|       |      VERBOSE(const char *status);
 4311|       |
 4312|       |      rv = SSL_ech_get1_status(octx->ssl, &inner, &outer);
 4313|       |      switch(rv) {
 4314|       |      case SSL_ECH_STATUS_SUCCESS:
 4315|       |        VERBOSE(status = "succeeded");
 4316|       |        break;
 4317|       |      case SSL_ECH_STATUS_GREASE_ECH:
 4318|       |        VERBOSE(status = "sent GREASE, got retry-configs");
 4319|       |        break;
 4320|       |      case SSL_ECH_STATUS_GREASE:
 4321|       |        VERBOSE(status = "sent GREASE");
 4322|       |        break;
 4323|       |      case SSL_ECH_STATUS_NOT_TRIED:
 4324|       |        VERBOSE(status = "not attempted");
 4325|       |        break;
 4326|       |      case SSL_ECH_STATUS_NOT_CONFIGURED:
 4327|       |        VERBOSE(status = "not configured");
 4328|       |        break;
 4329|       |      case SSL_ECH_STATUS_BACKEND:
 4330|       |        VERBOSE(status = "backend (unexpected)");
 4331|       |        break;
 4332|       |      case SSL_ECH_STATUS_FAILED:
 4333|       |        VERBOSE(status = "failed");
 4334|       |        break;
 4335|       |      case SSL_ECH_STATUS_BAD_CALL:
 4336|       |        VERBOSE(status = "bad call (unexpected)");
 4337|       |        break;
 4338|       |      case SSL_ECH_STATUS_BAD_NAME: {
 4339|       |        struct ssl_primary_config *conn_config =
 4340|       |          Curl_ssl_cf_get_primary_config(cf);
 4341|       |        if(!conn_config->verifypeer && !conn_config->verifyhost &&
 4342|       |           inner && !strcmp(inner, connssl->peer.origin->hostname)) {
 4343|       |          VERBOSE(status = "bad name (tolerated without peer verification)");
 4344|       |          rv = SSL_ECH_STATUS_SUCCESS;
 4345|       |        }
 4346|       |        else {
 4347|       |          VERBOSE(status = "bad name (unexpected)");
 4348|       |        }
 4349|       |        break;
 4350|       |      }
 4351|       |      default:
 4352|       |        VERBOSE(status = "unexpected status");
 4353|       |        infof(data, "ECH: unexpected status %d", rv);
 4354|       |      }
 4355|       |      infof(data, "ECH: result: status is %s, inner is %s, outer is %s",
 4356|       |            (status ? status : "NULL"),
 4357|       |            (inner ? inner : "NULL"),
 4358|       |            (outer ? outer : "NULL"));
 4359|       |      OPENSSL_free(inner);
 4360|       |      OPENSSL_free(outer);
 4361|       |      if(rv == SSL_ECH_STATUS_GREASE_ECH) {
 4362|       |        /* trace retry_configs if we got some */
 4363|       |        ossl_trace_ech_retry_configs(data, octx->ssl, 0);
 4364|       |      }
 4365|       |      if(rv != SSL_ECH_STATUS_SUCCESS && (data->set.tls_ech == CURLECH_HARD)) {
 4366|       |        infof(data, "ECH: ech-hard failed");
 4367|       |        return CURLE_SSL_CONNECT_ERROR;
 4368|       |      }
 4369|       |    }
 4370|       |    else {
 4371|       |      infof(data, "ECH: result: status is not attempted");
 4372|       |    }
 4373|       |#endif /* HAVE_SSL_SET1_ECH_CONFIG_LIST && !HAVE_BORINGSSL_LIKE */
 4374|       |
 4375|       |    /* Sets data and len to negotiated protocol, len is 0 if no protocol was
 4376|       |     * negotiated
 4377|       |     */
 4378|      0|    if(connssl->alpn) {
  ------------------
  |  Branch (4378:8): [True: 0, False: 0]
  ------------------
 4379|      0|      const unsigned char *neg_protocol;
 4380|      0|      unsigned int len;
 4381|      0|      SSL_get0_alpn_selected(octx->ssl, &neg_protocol, &len);
 4382|       |
 4383|      0|      return Curl_alpn_set_negotiated(cf, data, connssl, neg_protocol, len);
 4384|      0|    }
 4385|       |
 4386|      0|    return CURLE_OK;
 4387|      0|  }
 4388|  6.51k|}
openssl.c:ossl_close:
 1962|    356|{
 1963|    356|  struct ssl_connect_data *connssl = cf->ctx;
 1964|    356|  struct ossl_ctx *octx = (struct ossl_ctx *)connssl->backend;
 1965|       |
 1966|    356|  (void)data;
 1967|    356|  DEBUGASSERT(octx);
  ------------------
  |  | 1083|    356|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1967:3): [True: 0, False: 356]
  |  Branch (1967:3): [True: 356, False: 0]
  ------------------
 1968|       |
 1969|    356|  connssl->input_pending = FALSE;
  ------------------
  |  | 1056|    356|#define FALSE false
  ------------------
 1970|    356|  if(octx->ssl) {
  ------------------
  |  Branch (1970:6): [True: 347, False: 9]
  ------------------
 1971|    347|    SSL_free(octx->ssl);
 1972|    347|    octx->ssl = NULL;
 1973|    347|  }
 1974|    356|  if(octx->ssl_ctx) {
  ------------------
  |  Branch (1974:6): [True: 347, False: 9]
  ------------------
 1975|    347|    SSL_CTX_free(octx->ssl_ctx);
 1976|    347|    octx->ssl_ctx = NULL;
 1977|    347|    octx->x509_store_setup = FALSE;
  ------------------
  |  | 1056|    347|#define FALSE false
  ------------------
 1978|    347|  }
 1979|    356|  if(octx->bio_method) {
  ------------------
  |  Branch (1979:6): [True: 342, False: 14]
  ------------------
 1980|    342|    ossl_bio_cf_method_free(octx->bio_method);
 1981|       |    octx->bio_method = NULL;
 1982|    342|  }
 1983|    356|}
openssl.c:ossl_bio_cf_method_free:
  655|    342|{
  656|    342|  if(m)
  ------------------
  |  Branch (656:6): [True: 342, False: 0]
  ------------------
  657|    342|    BIO_meth_free(m);
  658|    342|}
openssl.c:ossl_close_all:
 1990|  19.9k|{
 1991|       |#ifdef USE_OPENSSL_ENGINE
 1992|       |  if(data->state.engine) {
 1993|       |    ENGINE_finish(data->state.engine);
 1994|       |    ENGINE_free(data->state.engine);
 1995|       |    data->state.engine = NULL;
 1996|       |  }
 1997|       |#else
 1998|  19.9k|  (void)data;
 1999|  19.9k|#endif
 2000|  19.9k|#ifdef OPENSSL_HAS_PROVIDERS
 2001|  19.9k|  ossl_provider_cleanup(data);
 2002|  19.9k|#endif
 2003|  19.9k|}

Curl_ssl_backend:
  131|  28.5k|{
  132|  28.5k|#ifdef USE_SSL
  133|  28.5k|  multissl_setup(NULL);
  134|  28.5k|  return Curl_ssl->info.id;
  135|       |#else
  136|       |  return CURLSSLBACKEND_NONE;
  137|       |#endif
  138|  28.5k|}
Curl_ssl_init:
  152|      2|{
  153|       |  /* make sure this is only done once */
  154|      2|  if(init_ssl)
  ------------------
  |  Branch (154:6): [True: 0, False: 2]
  ------------------
  155|      0|    return 1;
  156|      2|  init_ssl = TRUE; /* never again */
  ------------------
  |  | 1053|      2|#define TRUE true
  ------------------
  157|       |
  158|      2|  if(Curl_ssl->init)
  ------------------
  |  Branch (158:6): [True: 2, False: 0]
  ------------------
  159|      2|    return Curl_ssl->init();
  160|      0|  return 1;
  161|      2|}
Curl_ssl_close_all:
  227|  19.9k|{
  228|  19.9k|  if(Curl_ssl->close_all)
  ------------------
  |  Branch (228:6): [True: 19.9k, False: 0]
  ------------------
  229|  19.9k|    Curl_ssl->close_all(data);
  230|  19.9k|}
Curl_ssl_adjust_pollset:
  235|  6.51k|{
  236|  6.51k|  struct ssl_connect_data *connssl = cf->ctx;
  237|       |
  238|  6.51k|  if(connssl->io_need) {
  ------------------
  |  Branch (238:6): [True: 6.51k, False: 0]
  ------------------
  239|  6.51k|    curl_socket_t sock = Curl_conn_cf_get_socket(cf->next, data);
  240|  6.51k|    CURLcode result = CURLE_OK;
  241|  6.51k|    if(sock != CURL_SOCKET_BAD) {
  ------------------
  |  |  145|  6.51k|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (241:8): [True: 6.51k, False: 0]
  ------------------
  242|  6.51k|      if(connssl->io_need & CURL_SSL_IO_NEED_SEND) {
  ------------------
  |  |  107|  6.51k|#define CURL_SSL_IO_NEED_SEND   (1 << 1)
  ------------------
  |  Branch (242:10): [True: 0, False: 6.51k]
  ------------------
  243|      0|        result = Curl_pollset_set_out_only(data, ps, sock);
  ------------------
  |  |  172|      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
  |  |  ------------------
  ------------------
  244|      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))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
  245|      0|                    sock);
  246|      0|      }
  247|  6.51k|      else {
  248|  6.51k|        result = Curl_pollset_set_in_only(data, ps, sock);
  ------------------
  |  |  170|  6.51k|  Curl_pollset_change(data, ps, sock, CURL_POLL_IN, CURL_POLL_OUT)
  |  |  ------------------
  |  |  |  |  283|  6.51k|#define CURL_POLL_IN     1
  |  |  ------------------
  |  |                 Curl_pollset_change(data, ps, sock, CURL_POLL_IN, CURL_POLL_OUT)
  |  |  ------------------
  |  |  |  |  284|  6.51k|#define CURL_POLL_OUT    2
  |  |  ------------------
  ------------------
  249|  6.51k|        CURL_TRC_CF(data, cf, "adjust_pollset, POLLIN fd=%" FMT_SOCKET_T,
  ------------------
  |  |  153|  6.51k|  do {                                          \
  |  |  154|  6.51k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  6.51k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  13.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 6.51k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 6.51k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  13.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  6.51k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  6.51k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  6.51k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 6.51k]
  |  |  ------------------
  ------------------
  250|  6.51k|                    sock);
  251|  6.51k|      }
  252|  6.51k|    }
  253|  6.51k|    return result;
  254|  6.51k|  }
  255|      0|  return CURLE_OK;
  256|  6.51k|}
Curl_ssl_free_certinfo:
  296|  49.8k|{
  297|  49.8k|  struct curl_certinfo *ci = &data->info.certs;
  298|       |
  299|  49.8k|  if(ci->num_of_certs) {
  ------------------
  |  Branch (299:6): [True: 0, False: 49.8k]
  ------------------
  300|       |    /* free all individual lists used */
  301|      0|    int i;
  302|      0|    for(i = 0; i < ci->num_of_certs; i++) {
  ------------------
  |  Branch (302:16): [True: 0, False: 0]
  ------------------
  303|      0|      curl_slist_free_all(ci->certinfo[i]);
  304|      0|      ci->certinfo[i] = NULL;
  305|      0|    }
  306|       |
  307|       |    curlx_safefree(ci->certinfo); /* free the actual array too */
  ------------------
  |  | 1340|      0|  do {                      \
  |  | 1341|      0|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|      0|    (ptr) = NULL;           \
  |  | 1343|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  308|      0|    ci->num_of_certs = 0;
  309|      0|  }
  310|  49.8k|}
Curl_ssl_random:
  368|  8.03k|{
  369|  8.03k|  DEBUGASSERT(length == sizeof(int));
  ------------------
  |  | 1083|  8.03k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (369:3): [True: 0, False: 8.03k]
  |  Branch (369:3): [True: 8.03k, False: 0]
  ------------------
  370|  8.03k|  if(Curl_ssl->random)
  ------------------
  |  Branch (370:6): [True: 8.03k, False: 0]
  ------------------
  371|  8.03k|    return Curl_ssl->random(data, buffer, length);
  372|      0|  else
  373|      0|    return CURLE_NOT_BUILT_IN;
  374|  8.03k|}
Curl_ssl_peer_cleanup:
  868|    365|{
  869|    365|  Curl_peer_unlink(&peer->origin);
  870|    365|  Curl_peer_unlink(&peer->peer);
  871|    365|  curlx_safefree(peer->sni);
  ------------------
  |  | 1340|    365|  do {                      \
  |  | 1341|    365|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|    365|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|    365|    (ptr) = NULL;           \
  |  | 1343|    365|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 365]
  |  |  ------------------
  ------------------
  872|    365|  curlx_safefree(peer->scache_key);
  ------------------
  |  | 1340|    365|  do {                      \
  |  | 1341|    365|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|    365|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|    365|    (ptr) = NULL;           \
  |  | 1343|    365|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 365]
  |  |  ------------------
  ------------------
  873|    365|  peer->transport = TRNSPRT_NONE;
  ------------------
  |  |  236|    365|#define TRNSPRT_NONE 0
  ------------------
  874|    365|  peer->type = CURL_SSL_PEER_DNS;
  875|    365|}
Curl_ssl_peer_init:
  902|    356|{
  903|    356|  CURLcode result = CURLE_OUT_OF_MEMORY;
  904|       |
  905|       |  /* We expect a clean struct, e.g. called only ONCE */
  906|    356|  if(!ssl_peer || !origin) {
  ------------------
  |  Branch (906:6): [True: 0, False: 356]
  |  Branch (906:19): [True: 0, False: 356]
  ------------------
  907|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (907:5): [Folded, False: 0]
  |  Branch (907:5): [Folded, False: 0]
  ------------------
  908|      0|    return CURLE_FAILED_INIT;
  909|      0|  }
  910|    356|  DEBUGASSERT(!ssl_peer->origin);
  ------------------
  |  | 1083|    356|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (910:3): [True: 0, False: 356]
  |  Branch (910:3): [True: 356, False: 0]
  ------------------
  911|    356|  DEBUGASSERT(!ssl_peer->peer);
  ------------------
  |  | 1083|    356|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (911:3): [True: 0, False: 356]
  |  Branch (911:3): [True: 356, False: 0]
  ------------------
  912|    356|  DEBUGASSERT(!ssl_peer->sni);
  ------------------
  |  | 1083|    356|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (912:3): [True: 0, False: 356]
  |  Branch (912:3): [True: 356, False: 0]
  ------------------
  913|    356|  ssl_peer->transport = transport;
  914|       |
  915|    356|  Curl_peer_link(&ssl_peer->origin, origin);
  916|    356|  Curl_peer_link(&ssl_peer->peer, peer);
  917|    356|  ssl_peer->type = get_peer_type(origin->hostname);
  918|    356|  if(ssl_peer->type == CURL_SSL_PEER_DNS) {
  ------------------
  |  Branch (918:6): [True: 233, False: 123]
  ------------------
  919|       |    /* not an IP address, normalize according to RCC 6066 ch. 3,
  920|       |     * max len of SNI is 2^16-1, no trailing dot */
  921|    233|    size_t len = strlen(origin->hostname);
  922|    233|    if(len && (origin->hostname[len - 1] == '.'))
  ------------------
  |  Branch (922:8): [True: 233, False: 0]
  |  Branch (922:15): [True: 7, False: 226]
  ------------------
  923|      7|      len--;
  924|    233|    if(len < USHRT_MAX) {
  ------------------
  |  Branch (924:8): [True: 233, False: 0]
  ------------------
  925|    233|      ssl_peer->sni = curlx_calloc(1, len + 1);
  ------------------
  |  | 1479|    233|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  926|    233|      if(!ssl_peer->sni)
  ------------------
  |  Branch (926:10): [True: 0, False: 233]
  ------------------
  927|      0|        goto out;
  928|    233|      Curl_strntolower(ssl_peer->sni, origin->hostname, len);
  929|    233|      ssl_peer->sni[len] = 0;
  930|    233|    }
  931|    233|  }
  932|       |
  933|    356|  result = Curl_ssl_peer_key_make(ssl_peer, sslc, tls_id,
  934|    356|                                  &ssl_peer->scache_key);
  935|       |
  936|    356|out:
  937|    356|  if(result)
  ------------------
  |  Branch (937:6): [True: 9, False: 347]
  ------------------
  938|      9|    Curl_ssl_peer_cleanup(ssl_peer);
  939|    356|  return result;
  940|    356|}
Curl_cf_ssl_insert_after:
 1414|    356|{
 1415|    356|  struct Curl_cfilter *cf;
 1416|    356|  CURLcode result;
 1417|       |
 1418|    356|  result = cf_ssl_create(&cf, data, cf_at->conn);
 1419|    356|  if(!result)
  ------------------
  |  Branch (1419:6): [True: 356, False: 0]
  ------------------
 1420|    356|    result = cf_ssl_peer_init(cf, origin, peer, &cf_at->conn->ssl_config);
 1421|    356|  if(!result) {
  ------------------
  |  Branch (1421:6): [True: 347, False: 9]
  ------------------
 1422|    347|    Curl_conn_cf_insert_after(cf_at, cf);
 1423|       |#if defined(USE_HTTPSRR) && defined(USE_ECH)
 1424|       |    /* When using ECH, kick off the HTTPS-RR resolve */
 1425|       |    if((origin->scheme->family == CURLPROTO_HTTP) &&
 1426|       |       CURLECH_ENABLED(data) &&
 1427|       |       Curl_ssl_supports(data, SSLSUPP_ECH) &&
 1428|       |       (data->set.tls_ech != CURLECH_GREASE) &&
 1429|       |       !data->set.str[STRING_ECH_CONFIG]) {
 1430|       |      result = Curl_conn_dns_add_https_resolve(data, cf->conn, cf->sockindex,
 1431|       |                                               origin);
 1432|       |    }
 1433|       |#endif /* USE_HTTPSRR && USE_ECH */
 1434|    347|  }
 1435|      9|  else if(cf)
  ------------------
  |  Branch (1435:11): [True: 9, False: 0]
  ------------------
 1436|      9|    Curl_conn_cf_discard_chain(&cf, data);
 1437|    356|  return result;
 1438|    356|}
Curl_ssl_cf_is_proxy:
 1580|  11.3k|{
 1581|  11.3k|  return (cf->cft->flags & CF_TYPE_SSL) && (cf->cft->flags & CF_TYPE_PROXY);
  ------------------
  |  |  203|  11.3k|#define CF_TYPE_SSL         (1 << 1)
  ------------------
                return (cf->cft->flags & CF_TYPE_SSL) && (cf->cft->flags & CF_TYPE_PROXY);
  ------------------
  |  |  205|  11.3k|#define CF_TYPE_PROXY       (1 << 3)
  ------------------
  |  Branch (1581:10): [True: 11.3k, False: 0]
  |  Branch (1581:44): [True: 0, False: 11.3k]
  ------------------
 1582|  11.3k|}
Curl_ssl_cf_get_config:
 1586|  8.23k|{
 1587|       |#ifdef CURL_DISABLE_PROXY
 1588|       |  (void)cf;
 1589|       |  return &data->set.ssl;
 1590|       |#else
 1591|  8.23k|  return Curl_ssl_cf_is_proxy(cf) ? &data->set.proxy_ssl : &data->set.ssl;
  ------------------
  |  Branch (1591:10): [True: 0, False: 8.23k]
  ------------------
 1592|  8.23k|#endif
 1593|  8.23k|}
Curl_ssl_cf_get_primary_config:
 1597|  3.09k|{
 1598|       |#ifdef CURL_DISABLE_PROXY
 1599|       |  return &cf->conn->ssl_config;
 1600|       |#else
 1601|  3.09k|  return Curl_ssl_cf_is_proxy(cf) ?
  ------------------
  |  Branch (1601:10): [True: 0, False: 3.09k]
  ------------------
 1602|  3.09k|    &cf->conn->proxy_ssl_config : &cf->conn->ssl_config;
 1603|  3.09k|#endif
 1604|  3.09k|}
Curl_alpn_copy:
 1675|    342|{
 1676|    342|  if(src)
  ------------------
  |  Branch (1676:6): [True: 0, False: 342]
  ------------------
 1677|      0|    memcpy(dest, src, sizeof(*dest));
 1678|    342|  else
 1679|    342|    memset(dest, 0, sizeof(*dest));
 1680|    342|}
vtls.c:multissl_setup:
  779|  28.5k|{
  780|  28.5k|  int i;
  781|  28.5k|  char *env;
  782|       |
  783|  28.5k|  if(Curl_ssl != &Curl_ssl_multi)
  ------------------
  |  Branch (783:6): [True: 28.5k, False: 0]
  ------------------
  784|  28.5k|    return 1;
  785|       |
  786|      0|  if(backend) {
  ------------------
  |  Branch (786:6): [True: 0, False: 0]
  ------------------
  787|      0|    Curl_ssl = backend;
  788|      0|    return 0;
  789|      0|  }
  790|       |
  791|      0|  if(!available_backends[0])
  ------------------
  |  Branch (791:6): [True: 0, False: 0]
  ------------------
  792|      0|    return 1;
  793|       |
  794|      0|  env = curl_getenv("CURL_SSL_BACKEND");
  795|      0|  if(env) {
  ------------------
  |  Branch (795:6): [True: 0, False: 0]
  ------------------
  796|      0|    for(i = 0; available_backends[i]; i++) {
  ------------------
  |  Branch (796:16): [True: 0, False: 0]
  ------------------
  797|      0|      if(curl_strequal(env, available_backends[i]->info.name)) {
  ------------------
  |  Branch (797:10): [True: 0, False: 0]
  ------------------
  798|      0|        Curl_ssl = available_backends[i];
  799|      0|        curlx_free(env);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  800|      0|        return 0;
  801|      0|      }
  802|      0|    }
  803|      0|  }
  804|       |
  805|       |#ifdef CURL_DEFAULT_SSL_BACKEND
  806|       |  for(i = 0; available_backends[i]; i++) {
  807|       |    if(curl_strequal(CURL_DEFAULT_SSL_BACKEND,
  808|       |                     available_backends[i]->info.name)) {
  809|       |      Curl_ssl = available_backends[i];
  810|       |      curlx_free(env);
  811|       |      return 0;
  812|       |    }
  813|       |  }
  814|       |#endif
  815|       |
  816|       |  /* Fall back to first available backend */
  817|      0|  Curl_ssl = available_backends[0];
  818|      0|  curlx_free(env);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  819|      0|  return 0;
  820|      0|}
vtls.c:get_peer_type:
  878|    356|{
  879|    356|  if(hostname && hostname[0]) {
  ------------------
  |  Branch (879:6): [True: 356, False: 0]
  |  Branch (879:18): [True: 356, False: 0]
  ------------------
  880|    356|#ifdef USE_IPV6
  881|    356|    struct in6_addr addr;
  882|       |#else
  883|       |    struct in_addr addr;
  884|       |#endif
  885|    356|    if(curlx_inet_pton(AF_INET, hostname, &addr))
  ------------------
  |  Branch (885:8): [True: 94, False: 262]
  ------------------
  886|     94|      return CURL_SSL_PEER_IPV4;
  887|    262|#ifdef USE_IPV6
  888|    262|    else if(curlx_inet_pton(AF_INET6, hostname, &addr)) {
  ------------------
  |  Branch (888:13): [True: 29, False: 233]
  ------------------
  889|     29|      return CURL_SSL_PEER_IPV6;
  890|     29|    }
  891|    356|#endif
  892|    356|  }
  893|    233|  return CURL_SSL_PEER_DNS;
  894|    356|}
vtls.c:ssl_cf_destroy:
  943|    356|{
  944|    356|  struct ssl_connect_data *connssl = cf->ctx;
  945|    356|  if(connssl) {
  ------------------
  |  Branch (945:6): [True: 356, False: 0]
  ------------------
  946|    356|    connssl->ssl_impl->close(cf, data);
  947|    356|    connssl->state = ssl_connection_none;
  948|    356|    connssl->connecting_state = ssl_connect_1;
  949|    356|    connssl->prefs_checked = FALSE;
  ------------------
  |  | 1056|    356|#define FALSE false
  ------------------
  950|    356|    Curl_ssl_peer_cleanup(&connssl->peer);
  951|    356|    Curl_ssl_session_destroy(connssl->session);
  952|    356|    cf_ctx_free(connssl);
  953|    356|    cf->ctx = NULL;
  954|    356|  }
  955|       |  cf->connected = FALSE;
  ------------------
  |  | 1056|    356|#define FALSE false
  ------------------
  956|    356|}
vtls.c:cf_ctx_free:
  209|    356|{
  210|    356|  if(ctx) {
  ------------------
  |  Branch (210:6): [True: 356, False: 0]
  ------------------
  211|    356|    curlx_safefree(ctx->negotiated.alpn);
  ------------------
  |  | 1340|    356|  do {                      \
  |  | 1341|    356|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|    356|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|    356|    (ptr) = NULL;           \
  |  | 1343|    356|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 356]
  |  |  ------------------
  ------------------
  212|    356|    Curl_bufq_free(&ctx->earlydata);
  213|    356|    curlx_free(ctx->backend);
  ------------------
  |  | 1482|    356|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  214|    356|    curlx_free(ctx);
  ------------------
  |  | 1482|    356|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  215|    356|  }
  216|    356|}
vtls.c:ssl_cf_connect:
  961|  6.52k|{
  962|  6.52k|  struct ssl_connect_data *connssl = cf->ctx;
  963|  6.52k|  struct cf_call_data save;
  964|  6.52k|  CURLcode result;
  965|       |
  966|  6.52k|  if(cf->connected && (connssl->state != ssl_connection_deferred)) {
  ------------------
  |  Branch (966:6): [True: 0, False: 6.52k]
  |  Branch (966:23): [True: 0, False: 0]
  ------------------
  967|      0|    *done = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
  968|      0|    return CURLE_OK;
  969|      0|  }
  970|       |
  971|  6.52k|  if(!cf->next || !connssl->peer.origin) {
  ------------------
  |  Branch (971:6): [True: 0, False: 6.52k]
  |  Branch (971:19): [True: 0, False: 6.52k]
  ------------------
  972|      0|    *done = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  973|      0|    return CURLE_FAILED_INIT;
  974|      0|  }
  975|       |
  976|  6.52k|  if(!cf->next->connected) {
  ------------------
  |  Branch (976:6): [True: 0, False: 6.52k]
  ------------------
  977|      0|    result = cf->next->cft->do_connect(cf->next, data, done);
  978|      0|    if(result || !*done)
  ------------------
  |  Branch (978:8): [True: 0, False: 0]
  |  Branch (978:18): [True: 0, False: 0]
  ------------------
  979|      0|      return result;
  980|      0|  }
  981|       |
  982|  6.52k|  CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  655|  6.52k|  do { \
  |  |  656|  6.52k|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  221|  6.52k|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  657|  6.52k|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|  6.52k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  658|  6.52k|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  221|  6.52k|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  659|  6.52k|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  221|  6.52k|#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); \
  |  |  ------------------
  |  |  |  |  864|  6.52k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  660|  6.52k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (660:11): [Folded, False: 6.52k]
  |  |  ------------------
  ------------------
  |  Branch (982:3): [True: 6.52k, False: 0]
  |  Branch (982:3): [True: 0, False: 0]
  |  Branch (982:3): [True: 6.52k, False: 0]
  |  Branch (982:3): [True: 0, False: 0]
  ------------------
  983|  6.52k|  CURL_TRC_CF(data, cf, "cf_connect()");
  ------------------
  |  |  153|  6.52k|  do {                                          \
  |  |  154|  6.52k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  6.52k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  13.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 6.52k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 6.52k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  13.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  6.52k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  6.52k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  6.52k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 6.52k]
  |  |  ------------------
  ------------------
  984|  6.52k|  DEBUGASSERT(connssl);
  ------------------
  |  | 1083|  6.52k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (984:3): [True: 0, False: 6.52k]
  |  Branch (984:3): [True: 6.52k, False: 0]
  ------------------
  985|       |
  986|  6.52k|  *done = FALSE;
  ------------------
  |  | 1056|  6.52k|#define FALSE false
  ------------------
  987|       |
  988|  6.52k|  if(!connssl->prefs_checked) {
  ------------------
  |  Branch (988:6): [True: 347, False: 6.17k]
  ------------------
  989|    347|    if(!ssl_prefs_check(data)) {
  ------------------
  |  Branch (989:8): [True: 0, False: 347]
  ------------------
  990|      0|      result = CURLE_SSL_CONNECT_ERROR;
  991|      0|      goto out;
  992|      0|    }
  993|    347|    connssl->prefs_checked = TRUE;
  ------------------
  |  | 1053|    347|#define TRUE true
  ------------------
  994|    347|  }
  995|       |
  996|  6.52k|  result = connssl->ssl_impl->do_connect(cf, data, done);
  997|       |
  998|  6.52k|  if(!result && *done) {
  ------------------
  |  Branch (998:6): [True: 6.51k, False: 5]
  |  Branch (998:17): [True: 0, False: 6.51k]
  ------------------
  999|      0|    cf->connected = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1000|      0|    if(connssl->state == ssl_connection_complete) {
  ------------------
  |  Branch (1000:8): [True: 0, False: 0]
  ------------------
 1001|      0|      connssl->handshake_done = *Curl_pgrs_now(data);
 1002|      0|    }
 1003|      0|    if(Curl_tls_keylog_enabled()) {
  ------------------
  |  Branch (1003:8): [True: 0, False: 0]
  ------------------
 1004|      0|      infof(data, "SSLKEYLOGFILE set, all TLS secrets are logged to '%s'",
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1005|      0|            Curl_tls_keylog_file_name());
 1006|       |#ifdef LIBRESSL_VERSION_NUMBER
 1007|       |      infof(data, "Note LibreSSL only supports SSLKEYLOGFILE for TLS <= 1.2");
 1008|       |#endif
 1009|      0|    }
 1010|       |    /* Connection can be deferred when sending early data */
 1011|      0|    DEBUGASSERT(connssl->state == ssl_connection_complete ||
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1011:5): [True: 0, False: 0]
  |  Branch (1011:5): [True: 0, False: 0]
  |  Branch (1011:5): [True: 0, False: 0]
  |  Branch (1011:5): [True: 0, False: 0]
  ------------------
 1012|      0|                connssl->state == ssl_connection_deferred);
 1013|      0|    DEBUGASSERT(connssl->state != ssl_connection_deferred ||
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1013:5): [True: 0, False: 0]
  |  Branch (1013:5): [True: 0, False: 0]
  |  Branch (1013:5): [True: 0, False: 0]
  |  Branch (1013:5): [True: 0, False: 0]
  ------------------
 1014|      0|                connssl->earlydata_state > ssl_earlydata_none);
 1015|      0|  }
 1016|  6.52k|out:
 1017|  6.52k|  CURL_TRC_CF(data, cf, "cf_connect() -> %d, done=%d", (int)result, *done);
  ------------------
  |  |  153|  6.52k|  do {                                          \
  |  |  154|  6.52k|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|  6.52k|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  13.0k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 6.52k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 6.52k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  13.0k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|  6.52k|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327:12): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  155|  6.52k|      Curl_trc_cf_infof(data, cf, __VA_ARGS__); \
  |  |  156|  6.52k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (156:11): [Folded, False: 6.52k]
  |  |  ------------------
  ------------------
 1018|  6.52k|  CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  663|  6.52k|  do { \
  |  |  664|  6.52k|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1083|  6.52k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  665|  6.52k|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|  6.52k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  666|  6.52k|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  221|  6.52k|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  667|  6.52k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (667:11): [Folded, False: 6.52k]
  |  |  ------------------
  ------------------
  |  Branch (1018:3): [True: 0, False: 6.52k]
  |  Branch (1018:3): [True: 6.52k, False: 0]
  |  Branch (1018:3): [True: 6.52k, False: 0]
  |  Branch (1018:3): [True: 0, False: 0]
  |  Branch (1018:3): [True: 6.52k, False: 0]
  |  Branch (1018:3): [True: 0, False: 0]
  ------------------
 1019|  6.52k|  return result;
 1020|  6.52k|}
vtls.c:ssl_prefs_check:
  164|    347|{
  165|       |  /* check for CURLOPT_SSLVERSION invalid parameter value */
  166|    347|  const unsigned char sslver = data->set.ssl.primary.version;
  167|    347|  if(sslver >= CURL_SSLVERSION_LAST) {
  ------------------
  |  | 2401|    347|#define CURL_SSLVERSION_LAST    8L /* never use, keep last */
  ------------------
  |  Branch (167:6): [True: 0, False: 347]
  ------------------
  168|      0|    failf(data, "Unrecognized parameter value passed via CURLOPT_SSLVERSION");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  169|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  170|      0|  }
  171|       |
  172|    347|  switch(data->set.ssl.primary.version_max) {
  173|    347|  case CURL_SSLVERSION_MAX_NONE:
  ------------------
  |  | 2403|    347|#define CURL_SSLVERSION_MAX_NONE 0L
  ------------------
  |  Branch (173:3): [True: 347, False: 0]
  ------------------
  174|    347|  case CURL_SSLVERSION_MAX_DEFAULT:
  ------------------
  |  | 2404|    347|#define CURL_SSLVERSION_MAX_DEFAULT (CURL_SSLVERSION_TLSv1   << 16)
  |  |  ------------------
  |  |  |  | 2393|    347|#define CURL_SSLVERSION_TLSv1   1L /* TLS 1.x */
  |  |  ------------------
  ------------------
  |  Branch (174:3): [True: 0, False: 347]
  ------------------
  175|    347|    break;
  176|       |
  177|      0|  default:
  ------------------
  |  Branch (177:3): [True: 0, False: 347]
  ------------------
  178|      0|    if((data->set.ssl.primary.version_max >> 16) < sslver) {
  ------------------
  |  Branch (178:8): [True: 0, False: 0]
  ------------------
  179|      0|      failf(data, "CURL_SSLVERSION_MAX incompatible with CURL_SSLVERSION");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  180|      0|      return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  181|      0|    }
  182|    347|  }
  183|       |
  184|    347|  return TRUE;
  ------------------
  |  | 1053|    347|#define TRUE true
  ------------------
  185|    347|}
vtls.c:ssl_cf_adjust_pollset:
 1217|  6.51k|{
 1218|  6.51k|  struct ssl_connect_data *connssl = cf->ctx;
 1219|  6.51k|  struct cf_call_data save;
 1220|  6.51k|  CURLcode result;
 1221|       |
 1222|  6.51k|  CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  655|  6.51k|  do { \
  |  |  656|  6.51k|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  221|  6.51k|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  657|  6.51k|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|  6.51k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  658|  6.51k|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  221|  6.51k|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  659|  6.51k|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  221|  6.51k|#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); \
  |  |  ------------------
  |  |  |  |  864|  6.51k|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  660|  6.51k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (660:11): [Folded, False: 6.51k]
  |  |  ------------------
  ------------------
  |  Branch (1222:3): [True: 6.51k, False: 0]
  |  Branch (1222:3): [True: 0, False: 0]
  |  Branch (1222:3): [True: 6.51k, False: 0]
  |  Branch (1222:3): [True: 0, False: 0]
  ------------------
 1223|  6.51k|  result = connssl->ssl_impl->adjust_pollset(cf, data, ps);
 1224|  6.51k|  CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  663|  6.51k|  do { \
  |  |  664|  6.51k|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1083|  6.51k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  665|  6.51k|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|  6.51k|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  666|  6.51k|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  221|  6.51k|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  667|  6.51k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (667:11): [Folded, False: 6.51k]
  |  |  ------------------
  ------------------
  |  Branch (1224:3): [True: 0, False: 6.51k]
  |  Branch (1224:3): [True: 6.51k, False: 0]
  |  Branch (1224:3): [True: 6.51k, False: 0]
  |  Branch (1224:3): [True: 0, False: 0]
  |  Branch (1224:3): [True: 6.51k, False: 0]
  |  Branch (1224:3): [True: 0, False: 0]
  ------------------
 1225|  6.51k|  return result;
 1226|  6.51k|}
vtls.c:ssl_cf_cntrl:
 1273|    347|{
 1274|    347|  struct ssl_connect_data *connssl = cf->ctx;
 1275|       |
 1276|    347|  (void)arg1;
 1277|    347|  (void)arg2;
 1278|    347|  (void)data;
 1279|    347|  switch(event) {
  ------------------
  |  Branch (1279:10): [True: 0, False: 347]
  ------------------
 1280|      0|  case CF_CTRL_CONN_INFO_UPDATE:
  ------------------
  |  |  121|      0|#define CF_CTRL_CONN_INFO_UPDATE (256 + 0) /* 0          NULL     ignored */
  ------------------
  |  Branch (1280:3): [True: 0, False: 347]
  ------------------
 1281|      0|    if(connssl->negotiated.alpn && !cf->sockindex) {
  ------------------
  |  Branch (1281:8): [True: 0, False: 0]
  |  Branch (1281:36): [True: 0, False: 0]
  ------------------
 1282|      0|      if(!strcmp("http/1.1", connssl->negotiated.alpn))
  ------------------
  |  Branch (1282:10): [True: 0, False: 0]
  ------------------
 1283|      0|        cf->conn->httpversion_seen = 11;
 1284|      0|      else if(!strcmp("h2", connssl->negotiated.alpn))
  ------------------
  |  Branch (1284:15): [True: 0, False: 0]
  ------------------
 1285|      0|        cf->conn->httpversion_seen = 20;
 1286|      0|      else if(!strcmp("h3", connssl->negotiated.alpn))
  ------------------
  |  Branch (1286:15): [True: 0, False: 0]
  ------------------
 1287|      0|        cf->conn->httpversion_seen = 30;
 1288|      0|    }
 1289|      0|    break;
 1290|    347|  }
 1291|    347|  return CURLE_OK;
 1292|    347|}
vtls.c:ssl_cf_query:
 1231|  12.6k|{
 1232|  12.6k|  struct ssl_connect_data *connssl = cf->ctx;
 1233|       |
 1234|  12.6k|  switch(query) {
 1235|      5|  case CF_QUERY_TIMER_APPCONNECT: {
  ------------------
  |  |  165|      5|#define CF_QUERY_TIMER_APPCONNECT   5  /* -          struct curltime */
  ------------------
  |  Branch (1235:3): [True: 5, False: 12.6k]
  ------------------
 1236|      5|    struct curltime *when = pres2;
 1237|      5|    if(cf->connected && !Curl_ssl_cf_is_proxy(cf))
  ------------------
  |  Branch (1237:8): [True: 0, False: 5]
  |  Branch (1237:25): [True: 0, False: 0]
  ------------------
 1238|      0|      *when = connssl->handshake_done;
 1239|      5|    return CURLE_OK;
 1240|      0|  }
 1241|      0|  case CF_QUERY_SSL_INFO:
  ------------------
  |  |  174|      0|#define CF_QUERY_SSL_INFO          12  /* -    struct curl_tlssessioninfo * */
  ------------------
  |  Branch (1241:3): [True: 0, False: 12.6k]
  ------------------
 1242|      0|  case CF_QUERY_SSL_CTX_INFO:
  ------------------
  |  |  175|      0|#define CF_QUERY_SSL_CTX_INFO      13  /* -    struct curl_tlssessioninfo * */
  ------------------
  |  Branch (1242:3): [True: 0, False: 12.6k]
  ------------------
 1243|      0|    if(!Curl_ssl_cf_is_proxy(cf)) {
  ------------------
  |  Branch (1243:8): [True: 0, False: 0]
  ------------------
 1244|      0|      struct curl_tlssessioninfo *info = pres2;
 1245|      0|      struct cf_call_data save;
 1246|      0|      CF_DATA_SAVE(save, cf, data);
  ------------------
  |  |  655|      0|  do { \
  |  |  656|      0|    (save) = CF_CTX_CALL_DATA(cf); \
  |  |  ------------------
  |  |  |  |  221|      0|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  657|      0|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  658|      0|    CF_CTX_CALL_DATA(cf).depth++;  \
  |  |  ------------------
  |  |  |  |  221|      0|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  659|      0|    CF_CTX_CALL_DATA(cf).data = (struct Curl_easy *)CURL_UNCONST(data); \
  |  |  ------------------
  |  |  |  |  221|      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); \
  |  |  ------------------
  |  |  |  |  864|      0|#define CURL_UNCONST(p) ((void *)(uintptr_t)(const void *)(p))
  |  |  ------------------
  |  |  660|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (660:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1246:7): [True: 0, False: 0]
  |  Branch (1246:7): [True: 0, False: 0]
  |  Branch (1246:7): [True: 0, False: 0]
  |  Branch (1246:7): [True: 0, False: 0]
  ------------------
 1247|      0|      info->backend = Curl_ssl_backend();
 1248|      0|      info->internals = connssl->ssl_impl->get_internals(
 1249|      0|        cf->ctx, (query == CF_QUERY_SSL_INFO) ?
  ------------------
  |  |  174|      0|#define CF_QUERY_SSL_INFO          12  /* -    struct curl_tlssessioninfo * */
  ------------------
  |  Branch (1249:18): [True: 0, False: 0]
  ------------------
 1250|      0|        CURLINFO_TLS_SSL_PTR : CURLINFO_TLS_SESSION);
 1251|      0|      CF_DATA_RESTORE(cf, save);
  ------------------
  |  |  663|      0|  do { \
  |  |  664|      0|    DEBUGASSERT(CF_CTX_CALL_DATA(cf).depth == (save).depth + 1); \
  |  |  ------------------
  |  |  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  665|      0|    DEBUGASSERT(!(save).data || (save).depth > 0); \
  |  |  ------------------
  |  |  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |  666|      0|    CF_CTX_CALL_DATA(cf) = (save); \
  |  |  ------------------
  |  |  |  |  221|      0|#define CF_CTX_CALL_DATA(cf) ((struct ssl_connect_data *)(cf)->ctx)->call_data
  |  |  ------------------
  |  |  667|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (667:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1251:7): [True: 0, False: 0]
  |  Branch (1251:7): [True: 0, False: 0]
  |  Branch (1251:7): [True: 0, False: 0]
  |  Branch (1251:7): [True: 0, False: 0]
  |  Branch (1251:7): [True: 0, False: 0]
  |  Branch (1251:7): [True: 0, False: 0]
  ------------------
 1252|      0|      return CURLE_OK;
 1253|      0|    }
 1254|      0|    break;
 1255|      0|  case CF_QUERY_ALPN_NEGOTIATED: {
  ------------------
  |  |  177|      0|#define CF_QUERY_ALPN_NEGOTIATED   15  /* -          const char * */
  ------------------
  |  Branch (1255:3): [True: 0, False: 12.6k]
  ------------------
 1256|      0|    const char **palpn = pres2;
 1257|      0|    DEBUGASSERT(palpn);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1257:5): [True: 0, False: 0]
  |  Branch (1257:5): [True: 0, False: 0]
  ------------------
 1258|      0|    *palpn = connssl->negotiated.alpn;
 1259|      0|    CURL_TRC_CF(data, cf, "query ALPN: returning '%s'", *palpn);
  ------------------
  |  |  153|      0|  do {                                          \
  |  |  154|      0|    if(Curl_trc_cf_is_verbose(cf, data))        \
  |  |  ------------------
  |  |  |  |  326|      0|  (Curl_trc_is_verbose(data) &&                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  327|      0|   (cf) && (cf)->cft->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (327:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (327: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]
  |  |  ------------------
  ------------------
 1260|      0|    return CURLE_OK;
 1261|      0|  }
 1262|  12.6k|  default:
  ------------------
  |  Branch (1262:3): [True: 12.6k, False: 5]
  ------------------
 1263|  12.6k|    break;
 1264|  12.6k|  }
 1265|  12.6k|  return cf->next ?
  ------------------
  |  Branch (1265:10): [True: 12.6k, False: 0]
  ------------------
 1266|  12.6k|    cf->next->cft->query(cf->next, data, query, pres1, pres2) :
 1267|  12.6k|    CURLE_UNKNOWN_OPTION;
 1268|  12.6k|}
vtls.c:cf_ssl_create:
 1346|    356|{
 1347|    356|  struct Curl_cfilter *cf = NULL;
 1348|    356|  struct ssl_connect_data *ctx;
 1349|    356|  CURLcode result;
 1350|       |
 1351|    356|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1083|    356|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1351:3): [True: 0, False: 356]
  |  Branch (1351:3): [True: 356, False: 0]
  ------------------
 1352|       |
 1353|       |#ifdef CURL_DISABLE_HTTP
 1354|       |  (void)conn;
 1355|       |  /* We only support ALPN for HTTP so far. */
 1356|       |  DEBUGASSERT(!conn->bits.tls_enable_alpn);
 1357|       |  ctx = cf_ctx_new(data, NULL);
 1358|       |#else
 1359|    356|  ctx = cf_ctx_new(data, alpn_get_spec(data->state.http_neg.wanted,
 1360|    356|                                       data->state.http_neg.preferred,
 1361|    356|                                       (bool)data->state.http_neg.only_10,
 1362|    356|                                       (bool)conn->bits.tls_enable_alpn));
 1363|    356|#endif
 1364|    356|  if(!ctx) {
  ------------------
  |  Branch (1364:6): [True: 0, False: 356]
  ------------------
 1365|      0|    result = CURLE_OUT_OF_MEMORY;
 1366|      0|    goto out;
 1367|      0|  }
 1368|       |
 1369|    356|  result = Curl_cf_create(&cf, &Curl_cft_ssl, ctx);
 1370|       |
 1371|    356|out:
 1372|    356|  if(result)
  ------------------
  |  Branch (1372:6): [True: 0, False: 356]
  ------------------
 1373|      0|    cf_ctx_free(ctx);
 1374|    356|  *pcf = result ? NULL : cf;
  ------------------
  |  Branch (1374:10): [True: 0, False: 356]
  ------------------
 1375|    356|  return result;
 1376|    356|}
vtls.c:cf_ctx_new:
  189|    356|{
  190|    356|  struct ssl_connect_data *ctx;
  191|       |
  192|    356|  (void)data;
  193|    356|  ctx = curlx_calloc(1, sizeof(*ctx));
  ------------------
  |  | 1479|    356|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  194|    356|  if(!ctx)
  ------------------
  |  Branch (194:6): [True: 0, False: 356]
  ------------------
  195|      0|    return NULL;
  196|       |
  197|    356|  ctx->ssl_impl = Curl_ssl;
  198|    356|  ctx->alpn = alpn;
  199|    356|  Curl_bufq_init2(&ctx->earlydata, CURL_SSL_EARLY_MAX, 1, BUFQ_OPT_NO_SPARES);
  ------------------
  |  |  110|    356|#define CURL_SSL_EARLY_MAX      (64 * 1024)
  ------------------
                Curl_bufq_init2(&ctx->earlydata, CURL_SSL_EARLY_MAX, 1, BUFQ_OPT_NO_SPARES);
  ------------------
  |  |  115|    356|#define BUFQ_OPT_NO_SPARES   (1 << 1)
  ------------------
  200|    356|  ctx->backend = curlx_calloc(1, ctx->ssl_impl->sizeof_ssl_backend_data);
  ------------------
  |  | 1479|    356|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  201|    356|  if(!ctx->backend) {
  ------------------
  |  Branch (201:6): [True: 0, False: 356]
  ------------------
  202|      0|    curlx_free(ctx);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  203|      0|    return NULL;
  204|      0|  }
  205|    356|  return ctx;
  206|    356|}
vtls.c:alpn_get_spec:
  102|    356|{
  103|    356|  if(!use_alpn)
  ------------------
  |  Branch (103:6): [True: 356, False: 0]
  ------------------
  104|    356|    return NULL;
  105|       |  /* If HTTP/1.0 is the wanted protocol then use ALPN http/1.0 and http/1.1.
  106|       |     This is for compatibility reasons since some HTTP/1.0 servers with old
  107|       |     ALPN implementations understand ALPN http/1.1 but not http/1.0. */
  108|      0|  if(only_http_10 && (wanted & CURL_HTTP_V1x))
  ------------------
  |  |   40|      0|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
  |  Branch (108:6): [True: 0, False: 0]
  |  Branch (108:22): [True: 0, False: 0]
  ------------------
  109|      0|    return &ALPN_SPEC_H10_H11;
  110|      0|#ifdef USE_HTTP2
  111|      0|  if(wanted & CURL_HTTP_V2x) {
  ------------------
  |  |   41|      0|#define CURL_HTTP_V2x   (1 << 1)
  ------------------
  |  Branch (111:6): [True: 0, False: 0]
  ------------------
  112|      0|    if(wanted & CURL_HTTP_V1x)
  ------------------
  |  |   40|      0|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
  |  Branch (112:8): [True: 0, False: 0]
  ------------------
  113|      0|      return (preferred == CURL_HTTP_V1x) ?
  ------------------
  |  |   40|      0|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
  |  Branch (113:14): [True: 0, False: 0]
  ------------------
  114|      0|        &ALPN_SPEC_H11_H2 : &ALPN_SPEC_H2_H11;
  115|      0|    return &ALPN_SPEC_H2;
  116|      0|  }
  117|       |#else
  118|       |  (void)wanted;
  119|       |  (void)preferred;
  120|       |#endif
  121|      0|  return &ALPN_SPEC_H11;
  122|      0|}
vtls.c:cf_ssl_peer_init:
 1382|    356|{
 1383|    356|  struct ssl_connect_data *connssl = cf->ctx;
 1384|    356|  char tls_id[80];
 1385|    356|  connssl->ssl_impl->version(tls_id, sizeof(tls_id) - 1);
 1386|    356|  return Curl_ssl_peer_init(&connssl->peer, origin, peer, sslc,
 1387|    356|                            tls_id, TRNSPRT_TCP);
  ------------------
  |  |  237|    356|#define TRNSPRT_TCP  3
  ------------------
 1388|    356|}

Curl_ssl_config_init:
  101|  39.9k|{
  102|       |  /*
  103|       |   * libcurl 7.10 introduced SSL verification *by default*! This needs to be
  104|       |   * switched off unless wanted.
  105|       |   */
  106|  39.9k|  sslc->verifypeer = TRUE;
  ------------------
  |  | 1053|  39.9k|#define TRUE true
  ------------------
  107|  39.9k|  sslc->verifyhost = TRUE;
  ------------------
  |  | 1053|  39.9k|#define TRUE true
  ------------------
  108|       |  sslc->cache_session = TRUE; /* caching by default */
  ------------------
  |  | 1053|  39.9k|#define TRUE true
  ------------------
  109|  39.9k|}
Curl_ssl_config_cleanup:
  112|  68.5k|{
  113|  68.5k|  if(sslc->deep_copy) {
  ------------------
  |  Branch (113:6): [True: 20.2k, False: 48.3k]
  ------------------
  114|  20.2k|    curlx_safefree(sslc->CApath);
  ------------------
  |  | 1340|  20.2k|  do {                      \
  |  | 1341|  20.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  20.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  20.2k|    (ptr) = NULL;           \
  |  | 1343|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  115|  20.2k|    curlx_safefree(sslc->CAfile);
  ------------------
  |  | 1340|  20.2k|  do {                      \
  |  | 1341|  20.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  20.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  20.2k|    (ptr) = NULL;           \
  |  | 1343|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  116|  20.2k|    curlx_safefree(sslc->issuercert);
  ------------------
  |  | 1340|  20.2k|  do {                      \
  |  | 1341|  20.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  20.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  20.2k|    (ptr) = NULL;           \
  |  | 1343|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  117|  20.2k|    curlx_safefree(sslc->clientcert);
  ------------------
  |  | 1340|  20.2k|  do {                      \
  |  | 1341|  20.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  20.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  20.2k|    (ptr) = NULL;           \
  |  | 1343|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  118|  20.2k|    curlx_safefree(sslc->cipher_list);
  ------------------
  |  | 1340|  20.2k|  do {                      \
  |  | 1341|  20.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  20.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  20.2k|    (ptr) = NULL;           \
  |  | 1343|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  119|  20.2k|    curlx_safefree(sslc->cipher_list13);
  ------------------
  |  | 1340|  20.2k|  do {                      \
  |  | 1341|  20.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  20.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  20.2k|    (ptr) = NULL;           \
  |  | 1343|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  120|  20.2k|    curlx_safefree(sslc->pinned_key);
  ------------------
  |  | 1340|  20.2k|  do {                      \
  |  | 1341|  20.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  20.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  20.2k|    (ptr) = NULL;           \
  |  | 1343|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  121|  20.2k|    curlx_safefree(sslc->cert_blob);
  ------------------
  |  | 1340|  20.2k|  do {                      \
  |  | 1341|  20.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  20.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  20.2k|    (ptr) = NULL;           \
  |  | 1343|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  122|  20.2k|    curlx_safefree(sslc->ca_info_blob);
  ------------------
  |  | 1340|  20.2k|  do {                      \
  |  | 1341|  20.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  20.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  20.2k|    (ptr) = NULL;           \
  |  | 1343|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  123|  20.2k|    curlx_safefree(sslc->issuercert_blob);
  ------------------
  |  | 1340|  20.2k|  do {                      \
  |  | 1341|  20.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  20.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  20.2k|    (ptr) = NULL;           \
  |  | 1343|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  124|  20.2k|    curlx_safefree(sslc->key_blob);
  ------------------
  |  | 1340|  20.2k|  do {                      \
  |  | 1341|  20.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  20.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  20.2k|    (ptr) = NULL;           \
  |  | 1343|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  125|  20.2k|    curlx_safefree(sslc->curves);
  ------------------
  |  | 1340|  20.2k|  do {                      \
  |  | 1341|  20.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  20.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  20.2k|    (ptr) = NULL;           \
  |  | 1343|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  126|  20.2k|    curlx_safefree(sslc->signature_algorithms);
  ------------------
  |  | 1340|  20.2k|  do {                      \
  |  | 1341|  20.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  20.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  20.2k|    (ptr) = NULL;           \
  |  | 1343|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  127|  20.2k|    curlx_safefree(sslc->CRLfile);
  ------------------
  |  | 1340|  20.2k|  do {                      \
  |  | 1341|  20.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  20.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  20.2k|    (ptr) = NULL;           \
  |  | 1343|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  128|  20.2k|    curlx_safefree(sslc->cert_type);
  ------------------
  |  | 1340|  20.2k|  do {                      \
  |  | 1341|  20.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  20.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  20.2k|    (ptr) = NULL;           \
  |  | 1343|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  129|  20.2k|    curlx_safefree(sslc->key);
  ------------------
  |  | 1340|  20.2k|  do {                      \
  |  | 1341|  20.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  20.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  20.2k|    (ptr) = NULL;           \
  |  | 1343|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  130|  20.2k|    curlx_safefree(sslc->key_type);
  ------------------
  |  | 1340|  20.2k|  do {                      \
  |  | 1341|  20.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  20.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  20.2k|    (ptr) = NULL;           \
  |  | 1343|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  131|  20.2k|    curlx_safefree(sslc->key_passwd);
  ------------------
  |  | 1340|  20.2k|  do {                      \
  |  | 1341|  20.2k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|  20.2k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|  20.2k|    (ptr) = NULL;           \
  |  | 1343|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  132|       |    sslc->deep_copy = FALSE;
  ------------------
  |  | 1056|  20.2k|#define FALSE false
  ------------------
  133|  20.2k|  }
  134|  68.5k|}
Curl_ssl_easy_config_complete:
  241|  14.2k|{
  242|  14.2k|  struct ssl_config_data *sslc = &data->set.ssl;
  243|  14.2k|#if defined(CURL_CA_PATH) || defined(CURL_CA_BUNDLE)
  244|  14.2k|  struct UserDefined *set = &data->set;
  245|  14.2k|  CURLcode result;
  246|  14.2k|#endif
  247|       |
  248|  14.2k|  ssl_easy_config_compl_options(origin, data->state.initial_origin, sslc);
  249|       |
  250|  14.2k|  if(Curl_ssl_backend() != CURLSSLBACKEND_SCHANNEL) {
  ------------------
  |  Branch (250:6): [True: 14.2k, False: 0]
  ------------------
  251|       |#if defined(USE_APPLE_SECTRUST) || defined(CURL_CA_NATIVE)
  252|       |    if(!sslc->custom_capath && !sslc->custom_cafile && !sslc->custom_cablob)
  253|       |      sslc->native_ca_store = TRUE;
  254|       |#endif
  255|  14.2k|#ifdef CURL_CA_PATH
  256|  14.2k|    if(!sslc->custom_capath && !set->str[STRING_SSL_CAPATH]) {
  ------------------
  |  Branch (256:8): [True: 14.2k, False: 0]
  |  Branch (256:32): [True: 9.33k, False: 4.92k]
  ------------------
  257|  9.33k|      result = Curl_setstropt(&set->str[STRING_SSL_CAPATH], CURL_CA_PATH);
  ------------------
  |  |   32|  9.33k|#define CURL_CA_PATH "/etc/ssl/certs"
  ------------------
  258|  9.33k|      if(result)
  ------------------
  |  Branch (258:10): [True: 0, False: 9.33k]
  ------------------
  259|      0|        return result;
  260|  9.33k|    }
  261|  14.2k|#endif
  262|  14.2k|#ifdef CURL_CA_BUNDLE
  263|  14.2k|    if(!sslc->custom_cafile && !set->str[STRING_SSL_CAFILE]) {
  ------------------
  |  Branch (263:8): [True: 14.2k, False: 0]
  |  Branch (263:32): [True: 9.33k, False: 4.92k]
  ------------------
  264|  9.33k|      result = Curl_setstropt(&set->str[STRING_SSL_CAFILE], CURL_CA_BUNDLE);
  ------------------
  |  |   26|  9.33k|#define CURL_CA_BUNDLE "/etc/ssl/certs/ca-certificates.crt"
  ------------------
  265|  9.33k|      if(result)
  ------------------
  |  Branch (265:10): [True: 0, False: 9.33k]
  ------------------
  266|      0|        return result;
  267|  9.33k|    }
  268|  14.2k|#endif
  269|  14.2k|  }
  270|  14.2k|  sslc->primary.CAfile = data->set.str[STRING_SSL_CAFILE];
  271|  14.2k|  sslc->primary.CRLfile = data->set.str[STRING_SSL_CRLFILE];
  272|  14.2k|  sslc->primary.CApath = data->set.str[STRING_SSL_CAPATH];
  273|  14.2k|  sslc->primary.cipher_list = data->set.str[STRING_SSL_CIPHER_LIST];
  274|  14.2k|  sslc->primary.cipher_list13 = data->set.str[STRING_SSL_CIPHER13_LIST];
  275|  14.2k|  sslc->primary.signature_algorithms =
  276|  14.2k|    data->set.str[STRING_SSL_SIGNATURE_ALGORITHMS];
  277|  14.2k|  sslc->primary.ca_info_blob = data->set.blobs[BLOB_CAINFO];
  278|  14.2k|  sslc->primary.curves = data->set.str[STRING_SSL_EC_CURVES];
  279|       |  /* Maybe these should not be used for another origin. But for
  280|       |   * backwards compatibility, keep them in. */
  281|  14.2k|  sslc->primary.issuercert = data->set.str[STRING_SSL_ISSUERCERT];
  282|  14.2k|  sslc->primary.issuercert_blob = data->set.blobs[BLOB_SSL_ISSUERCERT];
  283|       |
  284|  14.2k|  if(Curl_peer_equal(data->state.initial_origin, origin)) {
  ------------------
  |  Branch (284:6): [True: 14.2k, False: 21]
  ------------------
  285|  14.2k|    sslc->primary.pinned_key = data->set.str[STRING_SSL_PINNEDPUBLICKEY];
  286|  14.2k|    sslc->primary.cert_blob = data->set.blobs[BLOB_CERT];
  287|  14.2k|    sslc->primary.cert_type = data->set.str[STRING_CERT_TYPE];
  288|  14.2k|    sslc->primary.key = data->set.str[STRING_KEY];
  289|  14.2k|    sslc->primary.key_type = data->set.str[STRING_KEY_TYPE];
  290|  14.2k|    sslc->primary.key_passwd = data->set.str[STRING_KEY_PASSWD];
  291|  14.2k|    sslc->primary.clientcert = data->set.str[STRING_CERT];
  292|  14.2k|    sslc->primary.key_blob = data->set.blobs[BLOB_KEY];
  293|  14.2k|  }
  294|     21|  else {
  295|     21|    sslc->primary.pinned_key = NULL;
  296|     21|    sslc->primary.cert_blob = NULL;
  297|     21|    sslc->primary.cert_type = NULL;
  298|     21|    sslc->primary.key = NULL;
  299|     21|    sslc->primary.key_type = NULL;
  300|     21|    sslc->primary.key_passwd = NULL;
  301|     21|    sslc->primary.clientcert = NULL;
  302|     21|    sslc->primary.key_blob = NULL;
  303|     21|  }
  304|       |
  305|  14.2k|#ifndef CURL_DISABLE_PROXY
  306|  14.2k|  sslc = &data->set.proxy_ssl;
  307|       |  /* no initial origin for proxy, it is not changed for redirects */
  308|  14.2k|  ssl_easy_config_compl_options(NULL, NULL, sslc);
  309|       |
  310|  14.2k|  if(Curl_ssl_backend() != CURLSSLBACKEND_SCHANNEL) {
  ------------------
  |  Branch (310:6): [True: 14.2k, False: 0]
  ------------------
  311|       |#if defined(USE_APPLE_SECTRUST) || defined(CURL_CA_NATIVE)
  312|       |    if(!sslc->custom_capath && !sslc->custom_cafile && !sslc->custom_cablob)
  313|       |      sslc->native_ca_store = TRUE;
  314|       |#endif
  315|  14.2k|#ifdef CURL_CA_PATH
  316|  14.2k|    if(!sslc->custom_capath && !set->str[STRING_SSL_CAPATH_PROXY]) {
  ------------------
  |  Branch (316:8): [True: 14.2k, False: 0]
  |  Branch (316:32): [True: 9.33k, False: 4.92k]
  ------------------
  317|  9.33k|      result = Curl_setstropt(&set->str[STRING_SSL_CAPATH_PROXY],
  318|  9.33k|                              CURL_CA_PATH);
  ------------------
  |  |   32|  9.33k|#define CURL_CA_PATH "/etc/ssl/certs"
  ------------------
  319|  9.33k|      if(result)
  ------------------
  |  Branch (319:10): [True: 0, False: 9.33k]
  ------------------
  320|      0|        return result;
  321|  9.33k|    }
  322|  14.2k|#endif
  323|  14.2k|#ifdef CURL_CA_BUNDLE
  324|  14.2k|    if(!sslc->custom_cafile && !set->str[STRING_SSL_CAFILE_PROXY]) {
  ------------------
  |  Branch (324:8): [True: 14.2k, False: 0]
  |  Branch (324:32): [True: 9.33k, False: 4.92k]
  ------------------
  325|  9.33k|      result = Curl_setstropt(&set->str[STRING_SSL_CAFILE_PROXY],
  326|  9.33k|                              CURL_CA_BUNDLE);
  ------------------
  |  |   26|  9.33k|#define CURL_CA_BUNDLE "/etc/ssl/certs/ca-certificates.crt"
  ------------------
  327|  9.33k|      if(result)
  ------------------
  |  Branch (327:10): [True: 0, False: 9.33k]
  ------------------
  328|      0|        return result;
  329|  9.33k|    }
  330|  14.2k|#endif
  331|  14.2k|  }
  332|  14.2k|  sslc->primary.CAfile = data->set.str[STRING_SSL_CAFILE_PROXY];
  333|  14.2k|  sslc->primary.CApath = data->set.str[STRING_SSL_CAPATH_PROXY];
  334|  14.2k|  sslc->primary.cipher_list = data->set.str[STRING_SSL_CIPHER_LIST_PROXY];
  335|  14.2k|  sslc->primary.cipher_list13 = data->set.str[STRING_SSL_CIPHER13_LIST_PROXY];
  336|  14.2k|  sslc->primary.pinned_key = data->set.str[STRING_SSL_PINNEDPUBLICKEY_PROXY];
  337|  14.2k|  sslc->primary.cert_blob = data->set.blobs[BLOB_CERT_PROXY];
  338|  14.2k|  sslc->primary.ca_info_blob = data->set.blobs[BLOB_CAINFO_PROXY];
  339|  14.2k|  sslc->primary.issuercert = data->set.str[STRING_SSL_ISSUERCERT_PROXY];
  340|  14.2k|  sslc->primary.issuercert_blob = data->set.blobs[BLOB_SSL_ISSUERCERT_PROXY];
  341|  14.2k|  sslc->primary.CRLfile = data->set.str[STRING_SSL_CRLFILE_PROXY];
  342|  14.2k|  sslc->primary.cert_type = data->set.str[STRING_CERT_TYPE_PROXY];
  343|  14.2k|  sslc->primary.key = data->set.str[STRING_KEY_PROXY];
  344|  14.2k|  sslc->primary.key_type = data->set.str[STRING_KEY_TYPE_PROXY];
  345|  14.2k|  sslc->primary.key_passwd = data->set.str[STRING_KEY_PASSWD_PROXY];
  346|  14.2k|  sslc->primary.clientcert = data->set.str[STRING_CERT_PROXY];
  347|  14.2k|  sslc->primary.key_blob = data->set.blobs[BLOB_KEY_PROXY];
  348|  14.2k|#endif /* CURL_DISABLE_PROXY */
  349|       |
  350|  14.2k|  return CURLE_OK;
  351|  14.2k|}
Curl_ssl_conn_config_init:
  355|  10.1k|{
  356|       |  /* Clone "primary" SSL configurations from the easy handle to
  357|       |   * the connection. They are used for connection cache matching and
  358|       |   * probably outlive the easy handle */
  359|  10.1k|  if(!clone_ssl_primary_config(&data->set.ssl.primary, &conn->ssl_config))
  ------------------
  |  Branch (359:6): [True: 0, False: 10.1k]
  ------------------
  360|      0|    return CURLE_OUT_OF_MEMORY;
  361|  10.1k|#ifndef CURL_DISABLE_PROXY
  362|  10.1k|  if(!clone_ssl_primary_config(&data->set.proxy_ssl.primary,
  ------------------
  |  Branch (362:6): [True: 0, False: 10.1k]
  ------------------
  363|  10.1k|                               &conn->proxy_ssl_config))
  364|      0|    return CURLE_OUT_OF_MEMORY;
  365|  10.1k|#endif
  366|  10.1k|  return CURLE_OK;
  367|  10.1k|}
Curl_ssl_conn_config_cleanup:
  370|  14.3k|{
  371|  14.3k|  Curl_ssl_config_cleanup(&conn->ssl_config);
  372|  14.3k|#ifndef CURL_DISABLE_PROXY
  373|  14.3k|  Curl_ssl_config_cleanup(&conn->proxy_ssl_config);
  374|  14.3k|#endif
  375|  14.3k|}
vtls_config.c:ssl_easy_config_compl_options:
  223|  28.5k|{
  224|  28.5k|  uint8_t options = sslc->primary.ssl_options;
  225|       |  /* If set via CURLOPT_(PROXY_)SSL_OPTIONS, we definitely use it.
  226|       |   * If not, we switch it on for supported backends if no custom
  227|       |   * CA settings exist. */
  228|  28.5k|  sslc->native_ca_store = !!(options & CURLSSLOPT_NATIVE_CA);
  ------------------
  |  |  965|  28.5k|#define CURLSSLOPT_NATIVE_CA (1L << 4)
  ------------------
  229|  28.5k|  sslc->enable_beast = !!(options & CURLSSLOPT_ALLOW_BEAST);
  ------------------
  |  |  948|  28.5k|#define CURLSSLOPT_ALLOW_BEAST (1L << 0)
  ------------------
  230|  28.5k|  sslc->no_partialchain = !!(options & CURLSSLOPT_NO_PARTIALCHAIN);
  ------------------
  |  |  956|  28.5k|#define CURLSSLOPT_NO_PARTIALCHAIN (1L << 2)
  ------------------
  231|  28.5k|  sslc->no_revoke = !!(options & CURLSSLOPT_NO_REVOKE);
  ------------------
  |  |  952|  28.5k|#define CURLSSLOPT_NO_REVOKE (1L << 1)
  ------------------
  232|  28.5k|  sslc->revoke_best_effort = !!(options & CURLSSLOPT_REVOKE_BEST_EFFORT);
  ------------------
  |  |  961|  28.5k|#define CURLSSLOPT_REVOKE_BEST_EFFORT (1L << 3)
  ------------------
  233|  28.5k|  sslc->earlydata = !!(options & CURLSSLOPT_EARLYDATA);
  ------------------
  |  |  972|  28.5k|#define CURLSSLOPT_EARLYDATA (1L << 6)
  ------------------
  234|       |
  235|  28.5k|  sslc->auto_client_cert = Curl_peer_equal(origin, initial_origin) &&
  ------------------
  |  Branch (235:28): [True: 28.4k, False: 21]
  ------------------
  236|  28.4k|                           !!(options & CURLSSLOPT_AUTO_CLIENT_CERT);
  ------------------
  |  |  969|  28.4k|#define CURLSSLOPT_AUTO_CLIENT_CERT (1L << 5)
  ------------------
  |  Branch (236:28): [True: 0, False: 28.4k]
  ------------------
  237|  28.5k|}
vtls_config.c:clone_ssl_primary_config:
  187|  20.2k|{
  188|  20.2k|  DEBUGASSERT(!dest->deep_copy);
  ------------------
  |  | 1083|  20.2k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (188:3): [True: 0, False: 20.2k]
  |  Branch (188:3): [True: 20.2k, False: 0]
  ------------------
  189|  20.2k|  dest->deep_copy = TRUE;
  ------------------
  |  | 1053|  20.2k|#define TRUE true
  ------------------
  190|  20.2k|  dest->version = source->version;
  191|  20.2k|  dest->version_max = source->version_max;
  192|  20.2k|  dest->verifypeer = source->verifypeer;
  193|  20.2k|  dest->verifyhost = source->verifyhost;
  194|  20.2k|  dest->verifystatus = source->verifystatus;
  195|  20.2k|  dest->cache_session = source->cache_session;
  196|  20.2k|  dest->ssl_options = source->ssl_options;
  197|       |
  198|  20.2k|  CLONE_BLOB(cert_blob);
  ------------------
  |  |   62|  20.2k|  do {                                   \
  |  |   63|  20.2k|    if(blobdup(&dest->var, source->var)) \
  |  |  ------------------
  |  |  |  Branch (63:8): [True: 0, False: 20.2k]
  |  |  ------------------
  |  |   64|  20.2k|      return FALSE;                      \
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  |  |   65|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (65:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  199|  20.2k|  CLONE_BLOB(ca_info_blob);
  ------------------
  |  |   62|  20.2k|  do {                                   \
  |  |   63|  20.2k|    if(blobdup(&dest->var, source->var)) \
  |  |  ------------------
  |  |  |  Branch (63:8): [True: 0, False: 20.2k]
  |  |  ------------------
  |  |   64|  20.2k|      return FALSE;                      \
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  |  |   65|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (65:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  200|  20.2k|  CLONE_BLOB(issuercert_blob);
  ------------------
  |  |   62|  20.2k|  do {                                   \
  |  |   63|  20.2k|    if(blobdup(&dest->var, source->var)) \
  |  |  ------------------
  |  |  |  Branch (63:8): [True: 0, False: 20.2k]
  |  |  ------------------
  |  |   64|  20.2k|      return FALSE;                      \
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  |  |   65|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (65:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  201|  20.2k|  CLONE_STRING(CApath);
  ------------------
  |  |   51|  20.2k|  do {                                       \
  |  |   52|  20.2k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (52:8): [True: 20.2k, False: 0]
  |  |  ------------------
  |  |   53|  20.2k|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1476|  20.2k|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   54|  20.2k|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (54:10): [True: 0, False: 20.2k]
  |  |  ------------------
  |  |   55|  20.2k|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  |  |   56|  20.2k|    }                                        \
  |  |   57|  20.2k|    else                                     \
  |  |   58|  20.2k|      dest->var = NULL;                      \
  |  |   59|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (59:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  202|  20.2k|  CLONE_STRING(CAfile);
  ------------------
  |  |   51|  20.2k|  do {                                       \
  |  |   52|  20.2k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (52:8): [True: 20.2k, False: 0]
  |  |  ------------------
  |  |   53|  20.2k|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1476|  20.2k|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   54|  20.2k|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (54:10): [True: 0, False: 20.2k]
  |  |  ------------------
  |  |   55|  20.2k|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  |  |   56|  20.2k|    }                                        \
  |  |   57|  20.2k|    else                                     \
  |  |   58|  20.2k|      dest->var = NULL;                      \
  |  |   59|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (59:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  203|  20.2k|  CLONE_STRING(issuercert);
  ------------------
  |  |   51|  20.2k|  do {                                       \
  |  |   52|  20.2k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (52:8): [True: 0, False: 20.2k]
  |  |  ------------------
  |  |   53|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   54|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (54:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   55|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  |  |   56|      0|    }                                        \
  |  |   57|  20.2k|    else                                     \
  |  |   58|  20.2k|      dest->var = NULL;                      \
  |  |   59|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (59:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  204|  20.2k|  CLONE_STRING(cipher_list);
  ------------------
  |  |   51|  20.2k|  do {                                       \
  |  |   52|  20.2k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (52:8): [True: 0, False: 20.2k]
  |  |  ------------------
  |  |   53|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   54|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (54:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   55|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  |  |   56|      0|    }                                        \
  |  |   57|  20.2k|    else                                     \
  |  |   58|  20.2k|      dest->var = NULL;                      \
  |  |   59|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (59:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  205|  20.2k|  CLONE_STRING(cipher_list13);
  ------------------
  |  |   51|  20.2k|  do {                                       \
  |  |   52|  20.2k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (52:8): [True: 0, False: 20.2k]
  |  |  ------------------
  |  |   53|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   54|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (54:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   55|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  |  |   56|      0|    }                                        \
  |  |   57|  20.2k|    else                                     \
  |  |   58|  20.2k|      dest->var = NULL;                      \
  |  |   59|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (59:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  206|  20.2k|  CLONE_STRING(pinned_key);
  ------------------
  |  |   51|  20.2k|  do {                                       \
  |  |   52|  20.2k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (52:8): [True: 0, False: 20.2k]
  |  |  ------------------
  |  |   53|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   54|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (54:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   55|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  |  |   56|      0|    }                                        \
  |  |   57|  20.2k|    else                                     \
  |  |   58|  20.2k|      dest->var = NULL;                      \
  |  |   59|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (59:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  207|  20.2k|  CLONE_STRING(curves);
  ------------------
  |  |   51|  20.2k|  do {                                       \
  |  |   52|  20.2k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (52:8): [True: 0, False: 20.2k]
  |  |  ------------------
  |  |   53|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   54|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (54:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   55|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  |  |   56|      0|    }                                        \
  |  |   57|  20.2k|    else                                     \
  |  |   58|  20.2k|      dest->var = NULL;                      \
  |  |   59|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (59:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  208|  20.2k|  CLONE_STRING(signature_algorithms);
  ------------------
  |  |   51|  20.2k|  do {                                       \
  |  |   52|  20.2k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (52:8): [True: 0, False: 20.2k]
  |  |  ------------------
  |  |   53|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   54|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (54:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   55|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  |  |   56|      0|    }                                        \
  |  |   57|  20.2k|    else                                     \
  |  |   58|  20.2k|      dest->var = NULL;                      \
  |  |   59|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (59:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  209|  20.2k|  CLONE_STRING(CRLfile);
  ------------------
  |  |   51|  20.2k|  do {                                       \
  |  |   52|  20.2k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (52:8): [True: 0, False: 20.2k]
  |  |  ------------------
  |  |   53|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   54|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (54:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   55|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  |  |   56|      0|    }                                        \
  |  |   57|  20.2k|    else                                     \
  |  |   58|  20.2k|      dest->var = NULL;                      \
  |  |   59|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (59:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  210|       |  /* SSL credentials: client certificate */
  211|  20.2k|  CLONE_STRING(clientcert);
  ------------------
  |  |   51|  20.2k|  do {                                       \
  |  |   52|  20.2k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (52:8): [True: 0, False: 20.2k]
  |  |  ------------------
  |  |   53|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   54|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (54:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   55|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  |  |   56|      0|    }                                        \
  |  |   57|  20.2k|    else                                     \
  |  |   58|  20.2k|      dest->var = NULL;                      \
  |  |   59|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (59:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  212|  20.2k|  CLONE_STRING(cert_type);
  ------------------
  |  |   51|  20.2k|  do {                                       \
  |  |   52|  20.2k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (52:8): [True: 0, False: 20.2k]
  |  |  ------------------
  |  |   53|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   54|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (54:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   55|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  |  |   56|      0|    }                                        \
  |  |   57|  20.2k|    else                                     \
  |  |   58|  20.2k|      dest->var = NULL;                      \
  |  |   59|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (59:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  213|  20.2k|  CLONE_STRING(key);
  ------------------
  |  |   51|  20.2k|  do {                                       \
  |  |   52|  20.2k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (52:8): [True: 0, False: 20.2k]
  |  |  ------------------
  |  |   53|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   54|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (54:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   55|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  |  |   56|      0|    }                                        \
  |  |   57|  20.2k|    else                                     \
  |  |   58|  20.2k|      dest->var = NULL;                      \
  |  |   59|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (59:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  214|  20.2k|  CLONE_STRING(key_type);
  ------------------
  |  |   51|  20.2k|  do {                                       \
  |  |   52|  20.2k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (52:8): [True: 0, False: 20.2k]
  |  |  ------------------
  |  |   53|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   54|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (54:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   55|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  |  |   56|      0|    }                                        \
  |  |   57|  20.2k|    else                                     \
  |  |   58|  20.2k|      dest->var = NULL;                      \
  |  |   59|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (59:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  215|  20.2k|  CLONE_STRING(key_passwd);
  ------------------
  |  |   51|  20.2k|  do {                                       \
  |  |   52|  20.2k|    if(source->var) {                        \
  |  |  ------------------
  |  |  |  Branch (52:8): [True: 0, False: 20.2k]
  |  |  ------------------
  |  |   53|      0|      dest->var = curlx_strdup(source->var); \
  |  |  ------------------
  |  |  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  |   54|      0|      if(!dest->var)                         \
  |  |  ------------------
  |  |  |  Branch (54:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   55|      0|        return FALSE;                        \
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  |  |   56|      0|    }                                        \
  |  |   57|  20.2k|    else                                     \
  |  |   58|  20.2k|      dest->var = NULL;                      \
  |  |   59|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (59:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  216|  20.2k|  CLONE_BLOB(key_blob);
  ------------------
  |  |   62|  20.2k|  do {                                   \
  |  |   63|  20.2k|    if(blobdup(&dest->var, source->var)) \
  |  |  ------------------
  |  |  |  Branch (63:8): [True: 0, False: 20.2k]
  |  |  ------------------
  |  |   64|  20.2k|      return FALSE;                      \
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  |  |   65|  20.2k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (65:11): [Folded, False: 20.2k]
  |  |  ------------------
  ------------------
  217|  20.2k|  return TRUE;
  ------------------
  |  | 1053|  20.2k|#define TRUE true
  ------------------
  218|  20.2k|}
vtls_config.c:blobdup:
   68|  81.1k|{
   69|  81.1k|  DEBUGASSERT(dest);
  ------------------
  |  | 1083|  81.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (69:3): [True: 0, False: 81.1k]
  |  Branch (69:3): [True: 81.1k, False: 0]
  ------------------
   70|  81.1k|  DEBUGASSERT(!*dest);
  ------------------
  |  | 1083|  81.1k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (70:3): [True: 0, False: 81.1k]
  |  Branch (70:3): [True: 81.1k, False: 0]
  ------------------
   71|  81.1k|  if(src) {
  ------------------
  |  Branch (71:6): [True: 0, False: 81.1k]
  ------------------
   72|       |    /* only if there is data to dupe! */
   73|      0|    struct curl_blob *d;
   74|      0|    d = curlx_malloc(sizeof(struct curl_blob) + src->len);
  ------------------
  |  | 1477|      0|#define curlx_malloc(size)         curl_dbg_malloc(size, __LINE__, __FILE__)
  ------------------
   75|      0|    if(!d)
  ------------------
  |  Branch (75:8): [True: 0, False: 0]
  ------------------
   76|      0|      return CURLE_OUT_OF_MEMORY;
   77|      0|    d->len = src->len;
   78|       |    /* Always duplicate because the connection may survive longer than the
   79|       |       handle that passed in the blob. */
   80|      0|    d->flags = CURL_BLOB_COPY;
  ------------------
  |  |   31|      0|#define CURL_BLOB_COPY   1 /* tell libcurl to copy the data */
  ------------------
   81|      0|    d->data = (void *)((char *)d + sizeof(struct curl_blob));
   82|      0|    memcpy(d->data, src->data, src->len);
   83|      0|    *dest = d;
   84|      0|  }
   85|  81.1k|  return CURLE_OK;
   86|  81.1k|}

Curl_ssl_peer_key_make:
  350|    356|{
  351|    356|  return ssl_peer_key_build(sslc, peer, tls_id, ppeer_key);
  352|    356|}
Curl_ssl_session_destroy:
  444|    698|{
  445|    698|  if(s) {
  ------------------
  |  Branch (445:6): [True: 0, False: 698]
  ------------------
  446|       |    /* if in the list, the list destructor takes care of it */
  447|      0|    if(Curl_node_llist(&s->list))
  ------------------
  |  Branch (447:8): [True: 0, False: 0]
  ------------------
  448|      0|      Curl_node_remove(&s->list);
  449|      0|    else {
  450|       |      cf_ssl_scache_session_ldestroy(NULL, s);
  451|      0|    }
  452|      0|  }
  453|    698|}
Curl_ssl_scache_create:
  627|  9.97k|{
  628|  9.97k|  struct Curl_ssl_scache *scache;
  629|  9.97k|  struct Curl_ssl_scache_peer *peers;
  630|  9.97k|  size_t i;
  631|       |
  632|  9.97k|  *pscache = NULL;
  633|  9.97k|  peers = curlx_calloc(max_peers, sizeof(*peers));
  ------------------
  |  | 1479|  9.97k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  634|  9.97k|  if(!peers)
  ------------------
  |  Branch (634:6): [True: 0, False: 9.97k]
  ------------------
  635|      0|    return CURLE_OUT_OF_MEMORY;
  636|       |
  637|  9.97k|  scache = curlx_calloc(1, sizeof(*scache));
  ------------------
  |  | 1479|  9.97k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
  638|  9.97k|  if(!scache) {
  ------------------
  |  Branch (638:6): [True: 0, False: 9.97k]
  ------------------
  639|      0|    curlx_free(peers);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  640|      0|    return CURLE_OUT_OF_MEMORY;
  641|      0|  }
  642|       |
  643|  9.97k|  scache->magic = CURL_SCACHE_MAGIC;
  ------------------
  |  |   62|  9.97k|#define CURL_SCACHE_MAGIC 0x000e1551
  ------------------
  644|  9.97k|  scache->default_lifetime_secs = (24 * 60 * 60); /* 1 day */
  645|  9.97k|  scache->peer_count = max_peers;
  646|  9.97k|  scache->peers = peers;
  647|  9.97k|  scache->age = 1;
  648|   259k|  for(i = 0; i < scache->peer_count; ++i) {
  ------------------
  |  Branch (648:14): [True: 249k, False: 9.97k]
  ------------------
  649|   249k|    scache->peers[i].max_sessions = max_sessions_per_peer;
  650|   249k|    Curl_llist_init(&scache->peers[i].sessions,
  651|   249k|                    cf_ssl_scache_session_ldestroy);
  652|   249k|  }
  653|  9.97k|#ifdef USE_MUTEX
  654|       |  Curl_mutex_init(&scache->mutex);
  ------------------
  |  |   36|  9.97k|#  define Curl_mutex_init(m)     pthread_mutex_init(m, NULL)
  ------------------
  655|  9.97k|#endif
  656|  9.97k|  *pscache = scache;
  657|  9.97k|  return CURLE_OK;
  658|  9.97k|}
Curl_ssl_scache_destroy:
  661|  9.97k|{
  662|  9.97k|  if(GOOD_SCACHE(scache)) {
  ------------------
  |  |   64|  9.97k|#define GOOD_SCACHE(x) ((x) && (x)->magic == CURL_SCACHE_MAGIC)
  |  |  ------------------
  |  |  |  |   62|  9.97k|#define CURL_SCACHE_MAGIC 0x000e1551
  |  |  ------------------
  |  |  |  Branch (64:25): [True: 9.97k, False: 0]
  |  |  |  Branch (64:32): [True: 9.97k, False: 0]
  |  |  ------------------
  ------------------
  663|  9.97k|    size_t i;
  664|  9.97k|    scache->magic = 0;
  665|   259k|    for(i = 0; i < scache->peer_count; ++i) {
  ------------------
  |  Branch (665:16): [True: 249k, False: 9.97k]
  ------------------
  666|   249k|      cf_ssl_scache_clear_peer(&scache->peers[i]);
  667|   249k|    }
  668|  9.97k|    curlx_free(scache->peers);
  ------------------
  |  | 1482|  9.97k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  669|  9.97k|#ifdef USE_MUTEX
  670|  9.97k|    Curl_mutex_destroy(&scache->mutex);
  ------------------
  |  |   39|  9.97k|#  define Curl_mutex_destroy(m)  pthread_mutex_destroy(m)
  ------------------
  671|  9.97k|#endif
  672|  9.97k|    curlx_free(scache);
  ------------------
  |  | 1482|  9.97k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
  673|  9.97k|  }
  674|  9.97k|}
Curl_ssl_scache_use:
  677|    342|{
  678|    342|  if(cf_ssl_scache_get(data)) {
  ------------------
  |  Branch (678:6): [True: 342, False: 0]
  ------------------
  679|    342|    struct ssl_config_data *ssl_config = Curl_ssl_cf_get_config(cf, data);
  680|    342|    return ssl_config ? ssl_config->primary.cache_session : FALSE;
  ------------------
  |  | 1056|    342|#define FALSE false
  ------------------
  |  Branch (680:12): [True: 342, False: 0]
  ------------------
  681|    342|  }
  682|      0|  return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  683|    342|}
Curl_ssl_scache_lock:
  687|    342|{
  688|    342|  struct Curl_ssl_scache *scache = cf_ssl_scache_get(data);
  689|    342|  if(scache) {
  ------------------
  |  Branch (689:6): [True: 342, False: 0]
  ------------------
  690|    342|    if(CURL_SHARE_ssl_scache(data))
  ------------------
  |  |   85|    342|  ((data)->share &&                                                \
  |  |  ------------------
  |  |  |  Branch (85:4): [True: 0, False: 342]
  |  |  ------------------
  |  |   86|    342|   ((data)->share->specifier & (1 << CURL_LOCK_DATA_SSL_SESSION)))
  |  |  ------------------
  |  |  |  Branch (86:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  691|      0|      Curl_share_lock(data, CURL_LOCK_DATA_SSL_SESSION,
  692|      0|                      CURL_LOCK_ACCESS_SINGLE);
  693|    342|#ifdef USE_MUTEX
  694|    342|    Curl_mutex_acquire(&scache->mutex);
  ------------------
  |  |   37|    342|#  define Curl_mutex_acquire(m)  pthread_mutex_lock(m)
  ------------------
  695|    342|    scache->locking_thread = Curl_thread_get_current_id();
  696|    342|    DEBUGASSERT(!scache->is_locked);
  ------------------
  |  | 1083|    342|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (696:5): [True: 0, False: 342]
  |  Branch (696:5): [True: 342, False: 0]
  ------------------
  697|    342|    scache->is_locked = TRUE;
  ------------------
  |  | 1053|    342|#define TRUE true
  ------------------
  698|    342|    Curl_mutex_release(&scache->mutex);
  ------------------
  |  |   38|    342|#  define Curl_mutex_release(m)  pthread_mutex_unlock(m)
  ------------------
  699|       |#else
  700|       |    DEBUGASSERT(!scache->is_locked);
  701|       |    scache->is_locked = TRUE;
  702|       |#endif
  703|    342|  }
  704|    342|}
Curl_ssl_scache_unlock:
  708|    342|{
  709|    342|  struct Curl_ssl_scache *scache = cf_ssl_scache_get(data);
  710|    342|  if(scache) {
  ------------------
  |  Branch (710:6): [True: 342, False: 0]
  ------------------
  711|    342|#ifdef USE_MUTEX
  712|    342|    Curl_mutex_acquire(&scache->mutex);
  ------------------
  |  |   37|    342|#  define Curl_mutex_acquire(m)  pthread_mutex_lock(m)
  ------------------
  713|    342|    scache->locking_thread = 0;
  714|    342|    DEBUGASSERT(scache->is_locked);
  ------------------
  |  | 1083|    342|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (714:5): [True: 0, False: 342]
  |  Branch (714:5): [True: 342, False: 0]
  ------------------
  715|    342|    scache->is_locked = FALSE;
  ------------------
  |  | 1056|    342|#define FALSE false
  ------------------
  716|    342|    Curl_mutex_release(&scache->mutex);
  ------------------
  |  |   38|    342|#  define Curl_mutex_release(m)  pthread_mutex_unlock(m)
  ------------------
  717|       |#else
  718|       |    DEBUGASSERT(scache->is_locked);
  719|       |    scache->is_locked = FALSE;
  720|       |#endif
  721|    342|    if(CURL_SHARE_ssl_scache(data))
  ------------------
  |  |   85|    342|  ((data)->share &&                                                \
  |  |  ------------------
  |  |  |  Branch (85:4): [True: 0, False: 342]
  |  |  ------------------
  |  |   86|    342|   ((data)->share->specifier & (1 << CURL_LOCK_DATA_SSL_SESSION)))
  |  |  ------------------
  |  |  |  Branch (86:4): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  722|      0|      Curl_share_unlock(data, CURL_LOCK_DATA_SSL_SESSION);
  723|    342|  }
  724|    342|}
Curl_ssl_scache_is_locked_by_current_thread:
  727|   175k|{
  728|   175k|  struct Curl_ssl_scache *scache = cf_ssl_scache_get(data);
  729|   175k|  bool locked = FALSE;
  ------------------
  |  | 1056|   175k|#define FALSE false
  ------------------
  730|   175k|  if(!scache)
  ------------------
  |  Branch (730:6): [True: 0, False: 175k]
  ------------------
  731|      0|    return FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
  732|   175k|#ifdef USE_MUTEX
  733|   175k|  Curl_mutex_acquire(&scache->mutex);
  ------------------
  |  |   37|   175k|#  define Curl_mutex_acquire(m)  pthread_mutex_lock(m)
  ------------------
  734|   175k|  locked = scache->is_locked && Curl_thread_is_current(scache->locking_thread);
  ------------------
  |  Branch (734:12): [True: 0, False: 175k]
  |  Branch (734:33): [True: 0, False: 0]
  ------------------
  735|   175k|  Curl_mutex_release(&scache->mutex);
  ------------------
  |  |   38|   175k|#  define Curl_mutex_release(m)  pthread_mutex_unlock(m)
  ------------------
  736|       |#else
  737|       |  locked = (bool)scache->is_locked;
  738|       |#endif
  739|   175k|  return locked;
  740|   175k|}
Curl_ssl_scache_return:
 1001|    342|{
 1002|       |  /* See RFC 8446 C.4:
 1003|       |   * "Clients SHOULD NOT reuse a ticket for multiple connections." */
 1004|    342|  if(s && s->ietf_tls_id < 0x304)
  ------------------
  |  Branch (1004:6): [True: 0, False: 342]
  |  Branch (1004:11): [True: 0, False: 0]
  ------------------
 1005|      0|    (void)Curl_ssl_scache_put(cf, data, ssl_peer_key, s);
 1006|    342|  else
 1007|    342|    Curl_ssl_session_destroy(s);
 1008|    342|}
Curl_ssl_scache_take:
 1014|    342|{
 1015|    342|  struct Curl_ssl_scache *scache = cf_ssl_scache_get(data);
 1016|    342|  struct ssl_primary_config *conn_config = Curl_ssl_cf_get_primary_config(cf);
 1017|    342|  struct Curl_ssl_scache_peer *peer = NULL;
 1018|    342|  struct Curl_llist_node *n;
 1019|    342|  struct Curl_ssl_session *s = NULL;
 1020|    342|  CURLcode result;
 1021|       |
 1022|    342|  *ps = NULL;
 1023|    342|  if(!scache)
  ------------------
  |  Branch (1023:6): [True: 0, False: 342]
  ------------------
 1024|      0|    return CURLE_OK;
 1025|       |
 1026|    342|  Curl_ssl_scache_lock(data);
 1027|    342|  result = cf_ssl_find_peer_by_key(data, scache, ssl_peer_key, conn_config,
 1028|    342|                                   &peer);
 1029|    342|  if(!result && peer) {
  ------------------
  |  Branch (1029:6): [True: 342, False: 0]
  |  Branch (1029:17): [True: 0, False: 342]
  ------------------
 1030|      0|    cf_scache_peer_remove_expired(peer, (curl_off_t)time(NULL));
 1031|      0|    n = Curl_llist_head(&peer->sessions);
 1032|      0|    if(n) {
  ------------------
  |  Branch (1032:8): [True: 0, False: 0]
  ------------------
 1033|      0|      s = Curl_node_take_elem(n);
 1034|      0|      (scache->age)++;            /* increase general age */
 1035|      0|      peer->age = scache->age; /* set this as used in this age */
 1036|      0|    }
 1037|      0|  }
 1038|    342|  if(s) {
  ------------------
  |  Branch (1038:6): [True: 0, False: 342]
  ------------------
 1039|      0|    *ps = s;
 1040|      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)) \
  |  |  ------------------
  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330: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]
  |  |  ------------------
  ------------------
 1041|      0|                  "alpn=%s, earlydata=%zu, quic_tp=%s], %zu sessions remain",
 1042|      0|                  ssl_peer_key, (unsigned int)s->ietf_tls_id, s->alpn,
 1043|      0|                  s->earlydata_max, s->quic_tp ? "yes" : "no",
 1044|      0|                  Curl_llist_count(&peer->sessions));
 1045|      0|  }
 1046|    342|  else {
 1047|    342|    CURL_TRC_SSLS(data, "no cached session for %s", ssl_peer_key);
  ------------------
  |  |  194|    342|  do {                                                    \
  |  |  195|    342|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ssls)) \
  |  |  ------------------
  |  |  |  |  329|    342|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    684|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 342, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 342]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    684|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    342|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  196|    342|      Curl_trc_ssls(data, __VA_ARGS__);                   \
  |  |  197|    342|  } while(0)
  |  |  ------------------
  |  |  |  Branch (197:11): [Folded, False: 342]
  |  |  ------------------
  ------------------
 1048|    342|  }
 1049|    342|  Curl_ssl_scache_unlock(data);
 1050|    342|  return result;
 1051|    342|}
vtls_scache.c:ssl_peer_key_build:
  232|    356|{
  233|    356|  struct dynbuf buf;
  234|    356|  size_t key_len;
  235|    356|  bool is_local = FALSE;
  ------------------
  |  | 1056|    356|#define FALSE false
  ------------------
  236|    356|  CURLcode result;
  237|       |
  238|    356|  *ppeer_key = NULL;
  239|    356|  curlx_dyn_init(&buf, 10 * 1024);
  240|       |
  241|    356|  result = curlx_dyn_addf(&buf, "%s:%d",
  242|    356|                          peer->origin->hostname, peer->origin->port);
  243|    356|  if(result)
  ------------------
  |  Branch (243:6): [True: 3, False: 353]
  ------------------
  244|      3|    goto out;
  245|    353|  result = ssl_peer_key_add_transport(&buf, peer->transport);
  246|    353|  if(result)
  ------------------
  |  Branch (246:6): [True: 0, False: 353]
  ------------------
  247|      0|    goto out;
  248|    353|  result = ssl_peer_key_add_vrfy(&buf, ssl, peer);
  249|    353|  if(result)
  ------------------
  |  Branch (249:6): [True: 0, False: 353]
  ------------------
  250|      0|    goto out;
  251|    353|  if(ssl->version || ssl->version_max) {
  ------------------
  |  Branch (251:6): [True: 353, False: 0]
  |  Branch (251:22): [True: 0, False: 0]
  ------------------
  252|    353|    result = curlx_dyn_addf(&buf, ":TLSVER-%d-%u", ssl->version,
  253|    353|                            (ssl->version_max >> 16));
  254|    353|    if(result)
  ------------------
  |  Branch (254:8): [True: 2, False: 351]
  ------------------
  255|      2|      goto out;
  256|    353|  }
  257|    351|  if(ssl->ssl_options) {
  ------------------
  |  Branch (257:6): [True: 0, False: 351]
  ------------------
  258|      0|    result = curlx_dyn_addf(&buf, ":TLSOPT-%x", ssl->ssl_options);
  259|      0|    if(result)
  ------------------
  |  Branch (259:8): [True: 0, False: 0]
  ------------------
  260|      0|      goto out;
  261|      0|  }
  262|    351|  if(ssl->cipher_list) {
  ------------------
  |  Branch (262:6): [True: 0, False: 351]
  ------------------
  263|      0|    result = curlx_dyn_addf(&buf, ":CIPHER-%s", ssl->cipher_list);
  264|      0|    if(result)
  ------------------
  |  Branch (264:8): [True: 0, False: 0]
  ------------------
  265|      0|      goto out;
  266|      0|  }
  267|    351|  if(ssl->cipher_list13) {
  ------------------
  |  Branch (267:6): [True: 0, False: 351]
  ------------------
  268|      0|    result = curlx_dyn_addf(&buf, ":CIPHER13-%s", ssl->cipher_list13);
  269|      0|    if(result)
  ------------------
  |  Branch (269:8): [True: 0, False: 0]
  ------------------
  270|      0|      goto out;
  271|      0|  }
  272|    351|  if(ssl->curves) {
  ------------------
  |  Branch (272:6): [True: 0, False: 351]
  ------------------
  273|      0|    result = curlx_dyn_addf(&buf, ":CURVES-%s", ssl->curves);
  274|      0|    if(result)
  ------------------
  |  Branch (274:8): [True: 0, False: 0]
  ------------------
  275|      0|      goto out;
  276|      0|  }
  277|    351|  if(ssl->signature_algorithms) {
  ------------------
  |  Branch (277:6): [True: 0, False: 351]
  ------------------
  278|      0|    result = curlx_dyn_addf(&buf, ":SIGALGS-%s",
  279|      0|                            ssl->signature_algorithms);
  280|      0|    if(result)
  ------------------
  |  Branch (280:8): [True: 0, False: 0]
  ------------------
  281|      0|      goto out;
  282|      0|  }
  283|    351|  if(ssl->verifypeer) {
  ------------------
  |  Branch (283:6): [True: 351, False: 0]
  ------------------
  284|    351|    result = cf_ssl_peer_key_add_path(&buf, "CA", ssl->CAfile, &is_local);
  285|    351|    if(result)
  ------------------
  |  Branch (285:8): [True: 1, False: 350]
  ------------------
  286|      1|      goto out;
  287|    350|    result = cf_ssl_peer_key_add_path(&buf, "CApath", ssl->CApath, &is_local);
  288|    350|    if(result)
  ------------------
  |  Branch (288:8): [True: 1, False: 349]
  ------------------
  289|      1|      goto out;
  290|    349|    result = cf_ssl_peer_key_add_path(&buf, "CRL", ssl->CRLfile, &is_local);
  291|    349|    if(result)
  ------------------
  |  Branch (291:8): [True: 0, False: 349]
  ------------------
  292|      0|      goto out;
  293|    349|    result = cf_ssl_peer_key_add_path(&buf, "Issuer", ssl->issuercert,
  294|    349|                                      &is_local);
  295|    349|    if(result)
  ------------------
  |  Branch (295:8): [True: 0, False: 349]
  ------------------
  296|      0|      goto out;
  297|    349|    if(ssl->ca_info_blob) {
  ------------------
  |  Branch (297:8): [True: 0, False: 349]
  ------------------
  298|      0|      result = cf_ssl_peer_key_add_hash(&buf, "CAInfoBlob", ssl->ca_info_blob);
  299|      0|      if(result)
  ------------------
  |  Branch (299:10): [True: 0, False: 0]
  ------------------
  300|      0|        goto out;
  301|      0|    }
  302|    349|    if(ssl->issuercert_blob) {
  ------------------
  |  Branch (302:8): [True: 0, False: 349]
  ------------------
  303|      0|      result = cf_ssl_peer_key_add_hash(&buf, "IssuerBlob",
  304|      0|                                        ssl->issuercert_blob);
  305|      0|      if(result)
  ------------------
  |  Branch (305:10): [True: 0, False: 0]
  ------------------
  306|      0|        goto out;
  307|      0|    }
  308|    349|  }
  309|    349|  if(ssl->cert_blob) {
  ------------------
  |  Branch (309:6): [True: 0, False: 349]
  ------------------
  310|      0|    result = cf_ssl_peer_key_add_hash(&buf, "CertBlob", ssl->cert_blob);
  311|      0|    if(result)
  ------------------
  |  Branch (311:8): [True: 0, False: 0]
  ------------------
  312|      0|      goto out;
  313|      0|  }
  314|    349|  if(ssl->pinned_key && ssl->pinned_key[0]) {
  ------------------
  |  Branch (314:6): [True: 0, False: 349]
  |  Branch (314:25): [True: 0, False: 0]
  ------------------
  315|      0|    result = curlx_dyn_addf(&buf, ":Pinned-%s", ssl->pinned_key);
  316|      0|    if(result)
  ------------------
  |  Branch (316:8): [True: 0, False: 0]
  ------------------
  317|      0|      goto out;
  318|      0|  }
  319|       |
  320|    349|  result = cf_ssl_peer_key_add_mtls(&buf, ssl, &is_local);
  321|    349|  if(result)
  ------------------
  |  Branch (321:6): [True: 0, False: 349]
  ------------------
  322|      0|    goto out;
  323|       |
  324|    349|  if(!tls_id || !tls_id[0]) {
  ------------------
  |  Branch (324:6): [True: 0, False: 349]
  |  Branch (324:17): [True: 0, False: 349]
  ------------------
  325|      0|    result = CURLE_FAILED_INIT;
  326|      0|    goto out;
  327|      0|  }
  328|    349|  result = curlx_dyn_addf(&buf, ":IMPL-%s", tls_id);
  329|    349|  if(result)
  ------------------
  |  Branch (329:6): [True: 1, False: 348]
  ------------------
  330|      1|    goto out;
  331|       |
  332|    348|  result = curlx_dyn_addf(&buf, is_local ?
  ------------------
  |  Branch (332:33): [True: 0, False: 348]
  ------------------
  333|    348|                          CURL_SSLS_LOCAL_SUFFIX : CURL_SSLS_GLOBAL_SUFFIX);
  ------------------
  |  |  168|      0|#define CURL_SSLS_LOCAL_SUFFIX     ":L"
  ------------------
                                        CURL_SSLS_LOCAL_SUFFIX : CURL_SSLS_GLOBAL_SUFFIX);
  ------------------
  |  |  169|    348|#define CURL_SSLS_GLOBAL_SUFFIX    ":G"
  ------------------
  334|    348|  if(result)
  ------------------
  |  Branch (334:6): [True: 1, False: 347]
  ------------------
  335|      1|    goto out;
  336|       |
  337|    347|  *ppeer_key = curlx_dyn_take(&buf, &key_len);
  338|       |  /* we added printable char, and dynbuf always null-terminates, no need
  339|       |   * to track length */
  340|       |
  341|    356|out:
  342|    356|  curlx_dyn_free(&buf);
  343|    356|  return result;
  344|    347|}
vtls_scache.c:ssl_peer_key_add_transport:
  181|    353|{
  182|    353|  switch(transport) {
  183|    353|  case TRNSPRT_TCP:
  ------------------
  |  |  237|    353|#define TRNSPRT_TCP  3
  ------------------
  |  Branch (183:3): [True: 353, False: 0]
  ------------------
  184|    353|    return CURLE_OK;
  185|      0|  case TRNSPRT_UDP:
  ------------------
  |  |  238|      0|#define TRNSPRT_UDP  4
  ------------------
  |  Branch (185:3): [True: 0, False: 353]
  ------------------
  186|      0|    return curlx_dyn_add(buf, ":UDP");
  187|      0|  case TRNSPRT_QUIC:
  ------------------
  |  |  239|      0|#define TRNSPRT_QUIC 5
  ------------------
  |  Branch (187:3): [True: 0, False: 353]
  ------------------
  188|      0|    return curlx_dyn_add(buf, ":QUIC");
  189|      0|  case TRNSPRT_UNIX:
  ------------------
  |  |  240|      0|#define TRNSPRT_UNIX 6
  ------------------
  |  Branch (189:3): [True: 0, False: 353]
  ------------------
  190|      0|    return curlx_dyn_add(buf, ":UNIX");
  191|      0|  default:
  ------------------
  |  Branch (191:3): [True: 0, False: 353]
  ------------------
  192|      0|    return curlx_dyn_addf(buf, ":TRNSPRT-%d", transport);
  193|    353|  }
  194|    353|}
vtls_scache.c:ssl_peer_key_add_vrfy:
  199|    353|{
  200|    353|  CURLcode result;
  201|       |
  202|    353|  if(!ssl->verifypeer) {
  ------------------
  |  Branch (202:6): [True: 0, False: 353]
  ------------------
  203|      0|    result = curlx_dyn_add(buf, ":NO-VRFY-PEER");
  204|      0|    if(result)
  ------------------
  |  Branch (204:8): [True: 0, False: 0]
  ------------------
  205|      0|      return result;
  206|      0|  }
  207|    353|  if(!ssl->verifyhost) {
  ------------------
  |  Branch (207:6): [True: 0, False: 353]
  ------------------
  208|      0|    result = curlx_dyn_add(buf, ":NO-VRFY-HOST");
  209|      0|    if(result)
  ------------------
  |  Branch (209:8): [True: 0, False: 0]
  ------------------
  210|      0|      return result;
  211|      0|  }
  212|    353|  if(ssl->verifystatus) {
  ------------------
  |  Branch (212:6): [True: 0, False: 353]
  ------------------
  213|      0|    result = curlx_dyn_add(buf, ":VRFY-STATUS");
  214|      0|    if(result)
  ------------------
  |  Branch (214:8): [True: 0, False: 0]
  ------------------
  215|      0|      return result;
  216|      0|  }
  217|    353|  if((!ssl->verifypeer || !ssl->verifyhost) &&
  ------------------
  |  Branch (217:7): [True: 0, False: 353]
  |  Branch (217:27): [True: 0, False: 353]
  ------------------
  218|      0|     peer->peer && !Curl_peer_equal(peer->origin, peer->peer)) {
  ------------------
  |  Branch (218:6): [True: 0, False: 0]
  |  Branch (218:20): [True: 0, False: 0]
  ------------------
  219|      0|    result = curlx_dyn_addf(buf, ":CHOST-%s:CPORT-%u",
  220|      0|                            peer->peer->hostname,
  221|      0|                            peer->peer->port);
  222|      0|    if(result)
  ------------------
  |  Branch (222:8): [True: 0, False: 0]
  ------------------
  223|      0|      return result;
  224|      0|  }
  225|    353|  return CURLE_OK;
  226|    353|}
vtls_scache.c:cf_ssl_peer_key_add_path:
   70|  1.39k|{
   71|  1.39k|  if(path && path[0]) {
  ------------------
  |  Branch (71:6): [True: 701, False: 698]
  |  Branch (71:14): [True: 701, False: 0]
  ------------------
   72|       |    /* We try to add absolute paths, so that the session key can stay valid
   73|       |     * when used in another process with different CWD. When a path does not
   74|       |     * exist, this does not work. Then, we add the path as is. */
   75|       |#ifdef _WIN32
   76|       |    char *abspath = _fullpath(NULL, path, 0);
   77|       |    if(abspath) {
   78|       |      CURLcode result = curlx_dyn_addf(buf, ":%s-%s", name, abspath);
   79|       |      /* !checksrc! disable BANNEDFUNC 1 */
   80|       |      free(abspath); /* allocated by CRT, use system free() */
   81|       |      return result;
   82|       |    }
   83|       |    *is_local = TRUE;
   84|       |#elif defined(HAVE_REALPATH)
   85|    701|    if(path[0] != '/') {
  ------------------
  |  Branch (85:8): [True: 0, False: 701]
  ------------------
   86|      0|      char *abspath = realpath(path, NULL);
   87|      0|      if(abspath) {
  ------------------
  |  Branch (87:10): [True: 0, False: 0]
  ------------------
   88|      0|        CURLcode result = curlx_dyn_addf(buf, ":%s-%s", name, abspath);
   89|       |        /* !checksrc! disable BANNEDFUNC 1 */
   90|      0|        free(abspath); /* allocated by libc, free without memdebug */
   91|      0|        return result;
   92|      0|      }
   93|      0|      *is_local = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
   94|      0|    }
   95|    701|#endif
   96|    701|    return curlx_dyn_addf(buf, ":%s-%s", name, path);
   97|    701|  }
   98|    698|  return CURLE_OK;
   99|  1.39k|}
vtls_scache.c:cf_ssl_peer_key_add_mtls:
  129|    349|{
  130|    349|  CURLcode result = CURLE_OK;
  131|    349|  if(ssl->clientcert && ssl->clientcert[0]) {
  ------------------
  |  Branch (131:6): [True: 0, False: 349]
  |  Branch (131:25): [True: 0, False: 0]
  ------------------
  132|      0|    result = cf_ssl_peer_key_add_path(buf, "CCERT", ssl->clientcert, is_local);
  133|      0|    if(result)
  ------------------
  |  Branch (133:8): [True: 0, False: 0]
  ------------------
  134|      0|      goto out;
  135|      0|  }
  136|    349|  if(ssl->key && ssl->key[0]) {
  ------------------
  |  Branch (136:6): [True: 0, False: 349]
  |  Branch (136:18): [True: 0, False: 0]
  ------------------
  137|      0|    result = cf_ssl_peer_key_add_path(buf, "KEY", ssl->key, is_local);
  138|      0|    if(result)
  ------------------
  |  Branch (138:8): [True: 0, False: 0]
  ------------------
  139|      0|      goto out;
  140|      0|  }
  141|    349|  if(ssl->key_blob) {
  ------------------
  |  Branch (141:6): [True: 0, False: 349]
  ------------------
  142|      0|    result = cf_ssl_peer_key_add_hash(buf, "KEYBlob", ssl->key_blob);
  143|      0|    if(result)
  ------------------
  |  Branch (143:8): [True: 0, False: 0]
  ------------------
  144|      0|      goto out;
  145|      0|  }
  146|    349|  if(ssl->cert_type && ssl->cert_type[0]) {
  ------------------
  |  Branch (146:6): [True: 0, False: 349]
  |  Branch (146:24): [True: 0, False: 0]
  ------------------
  147|      0|    size_t i;
  148|      0|    result = curlx_dyn_add(buf, ":CT-");
  149|      0|    for(i = 0; !result && ssl->cert_type[i]; i++) {
  ------------------
  |  Branch (149:16): [True: 0, False: 0]
  |  Branch (149:27): [True: 0, False: 0]
  ------------------
  150|      0|      char c = Curl_raw_toupper(ssl->cert_type[i]);
  151|      0|      result = curlx_dyn_addn(buf, &c, 1);
  152|      0|    }
  153|      0|    if(result)
  ------------------
  |  Branch (153:8): [True: 0, False: 0]
  ------------------
  154|      0|      goto out;
  155|      0|  }
  156|    349|  if(ssl->key_type && ssl->key_type[0]) {
  ------------------
  |  Branch (156:6): [True: 0, False: 349]
  |  Branch (156:23): [True: 0, False: 0]
  ------------------
  157|      0|    size_t i;
  158|      0|    result = curlx_dyn_add(buf, ":KT-");
  159|      0|    for(i = 0; !result && ssl->key_type[i]; i++) {
  ------------------
  |  Branch (159:16): [True: 0, False: 0]
  |  Branch (159:27): [True: 0, False: 0]
  ------------------
  160|      0|      char c = Curl_raw_toupper(ssl->key_type[i]);
  161|      0|      result = curlx_dyn_addn(buf, &c, 1);
  162|      0|    }
  163|      0|  }
  164|    349|out:
  165|    349|  return result;
  166|    349|}
vtls_scache.c:cf_ssl_scache_clear_peer:
  504|   249k|{
  505|   249k|  Curl_llist_destroy(&peer->sessions, NULL);
  506|   249k|  if(peer->sobj) {
  ------------------
  |  Branch (506:6): [True: 0, False: 249k]
  ------------------
  507|      0|    DEBUGASSERT(peer->sobj_free);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (507:5): [True: 0, False: 0]
  |  Branch (507:5): [True: 0, False: 0]
  ------------------
  508|      0|    if(peer->sobj_free)
  ------------------
  |  Branch (508:8): [True: 0, False: 0]
  ------------------
  509|      0|      peer->sobj_free(peer->sobj);
  510|      0|    peer->sobj = NULL;
  511|      0|  }
  512|   249k|  peer->sobj_free = NULL;
  513|   249k|  curlx_safefree(peer->clientcert);
  ------------------
  |  | 1340|   249k|  do {                      \
  |  | 1341|   249k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|   249k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|   249k|    (ptr) = NULL;           \
  |  | 1343|   249k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 249k]
  |  |  ------------------
  ------------------
  514|   249k|  curlx_safefree(peer->key_passwd);
  ------------------
  |  | 1340|   249k|  do {                      \
  |  | 1341|   249k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|   249k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|   249k|    (ptr) = NULL;           \
  |  | 1343|   249k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 249k]
  |  |  ------------------
  ------------------
  515|   249k|  curlx_safefree(peer->ssl_peer_key);
  ------------------
  |  | 1340|   249k|  do {                      \
  |  | 1341|   249k|    curlx_free(ptr);        \
  |  |  ------------------
  |  |  |  | 1482|   249k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  |  |  ------------------
  |  | 1342|   249k|    (ptr) = NULL;           \
  |  | 1343|   249k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (1343:11): [Folded, False: 249k]
  |  |  ------------------
  ------------------
  516|   249k|  peer->age = 0;
  517|       |  peer->hmac_set = FALSE;
  ------------------
  |  | 1056|   249k|#define FALSE false
  ------------------
  518|   249k|}
vtls_scache.c:cf_ssl_scache_get:
  368|   176k|{
  369|   176k|  struct Curl_ssl_scache *scache = NULL;
  370|       |  /* If a share is present, its ssl_scache has preference over the multi */
  371|   176k|  if(data->share && data->share->ssl_scache)
  ------------------
  |  Branch (371:6): [True: 0, False: 176k]
  |  Branch (371:21): [True: 0, False: 0]
  ------------------
  372|      0|    scache = data->share->ssl_scache;
  373|   176k|  else if(data->multi && data->multi->ssl_scache)
  ------------------
  |  Branch (373:11): [True: 176k, False: 0]
  |  Branch (373:26): [True: 176k, False: 0]
  ------------------
  374|   176k|    scache = data->multi->ssl_scache;
  375|   176k|  if(scache && !GOOD_SCACHE(scache)) {
  ------------------
  |  |   64|   176k|#define GOOD_SCACHE(x) ((x) && (x)->magic == CURL_SCACHE_MAGIC)
  |  |  ------------------
  |  |  |  |   62|   176k|#define CURL_SCACHE_MAGIC 0x000e1551
  |  |  ------------------
  |  |  |  Branch (64:25): [True: 176k, False: 0]
  |  |  |  Branch (64:32): [True: 176k, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (375:6): [True: 176k, False: 0]
  ------------------
  376|      0|    failf(data, "transfer would use an invalid scache at %p, denied",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  377|      0|          (void *)scache);
  378|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (378:5): [Folded, False: 0]
  |  Branch (378:5): [Folded, False: 0]
  ------------------
  379|      0|    return NULL;
  380|      0|  }
  381|   176k|  return scache;
  382|   176k|}
vtls_scache.c:cf_ssl_find_peer_by_key:
  762|    342|{
  763|    342|  size_t i, peer_key_len = 0;
  764|    342|  CURLcode result = CURLE_OK;
  765|       |
  766|    342|  *ppeer = NULL;
  767|    342|  if(!GOOD_SCACHE(scache)) {
  ------------------
  |  |   64|    342|#define GOOD_SCACHE(x) ((x) && (x)->magic == CURL_SCACHE_MAGIC)
  |  |  ------------------
  |  |  |  |   62|    342|#define CURL_SCACHE_MAGIC 0x000e1551
  |  |  ------------------
  |  |  |  Branch (64:25): [True: 342, False: 0]
  |  |  |  Branch (64:32): [True: 342, False: 0]
  |  |  ------------------
  ------------------
  768|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  769|      0|  }
  770|       |
  771|    342|  CURL_TRC_SSLS(data, "find peer slot for %s among %zu slots",
  ------------------
  |  |  194|    342|  do {                                                    \
  |  |  195|    342|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ssls)) \
  |  |  ------------------
  |  |  |  |  329|    342|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    684|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 342, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 342]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    684|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    342|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  196|    342|      Curl_trc_ssls(data, __VA_ARGS__);                   \
  |  |  197|    342|  } while(0)
  |  |  ------------------
  |  |  |  Branch (197:11): [Folded, False: 342]
  |  |  ------------------
  ------------------
  772|    342|                ssl_peer_key, scache->peer_count);
  773|       |
  774|       |  /* check for entries with known peer_key */
  775|  8.89k|  for(i = 0; scache && i < scache->peer_count; i++) {
  ------------------
  |  Branch (775:14): [True: 8.89k, False: 0]
  |  Branch (775:24): [True: 8.55k, False: 342]
  ------------------
  776|  8.55k|    if(scache->peers[i].ssl_peer_key &&
  ------------------
  |  Branch (776:8): [True: 0, False: 8.55k]
  ------------------
  777|      0|       curl_strequal(ssl_peer_key, scache->peers[i].ssl_peer_key) &&
  ------------------
  |  Branch (777:8): [True: 0, False: 0]
  ------------------
  778|      0|       cf_ssl_scache_match_auth(&scache->peers[i], conn_config)) {
  ------------------
  |  Branch (778:8): [True: 0, False: 0]
  ------------------
  779|       |      /* yes, we have a cached session for this! */
  780|      0|      *ppeer = &scache->peers[i];
  781|      0|      goto out;
  782|      0|    }
  783|  8.55k|  }
  784|       |  /* check for entries with HMAC set but no known peer_key */
  785|  8.89k|  for(i = 0; scache && i < scache->peer_count; i++) {
  ------------------
  |  Branch (785:14): [True: 8.89k, False: 0]
  |  Branch (785:24): [True: 8.55k, False: 342]
  ------------------
  786|  8.55k|    if(!scache->peers[i].ssl_peer_key &&
  ------------------
  |  Branch (786:8): [True: 8.55k, False: 0]
  ------------------
  787|  8.55k|       scache->peers[i].hmac_set &&
  ------------------
  |  Branch (787:8): [True: 0, False: 8.55k]
  ------------------
  788|      0|       cf_ssl_scache_match_auth(&scache->peers[i], conn_config)) {
  ------------------
  |  Branch (788:8): [True: 0, False: 0]
  ------------------
  789|       |      /* possible entry with unknown peer_key, check hmac */
  790|      0|      unsigned char my_hmac[CURL_SHA256_DIGEST_LENGTH];
  791|      0|      if(!peer_key_len) /* we are lazy */
  ------------------
  |  Branch (791:10): [True: 0, False: 0]
  ------------------
  792|      0|        peer_key_len = strlen(ssl_peer_key);
  793|      0|      result = Curl_hmacit(&Curl_HMAC_SHA256,
  794|      0|                           scache->peers[i].key_salt,
  795|      0|                           sizeof(scache->peers[i].key_salt),
  796|      0|                           (const unsigned char *)ssl_peer_key,
  797|      0|                           peer_key_len,
  798|      0|                           my_hmac);
  799|      0|      if(result)
  ------------------
  |  Branch (799:10): [True: 0, False: 0]
  ------------------
  800|      0|        goto out;
  801|      0|      if(!memcmp(scache->peers[i].key_hmac, my_hmac, sizeof(my_hmac))) {
  ------------------
  |  Branch (801:10): [True: 0, False: 0]
  ------------------
  802|       |        /* remember peer_key for future lookups */
  803|      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)) \
  |  |  ------------------
  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  196|      0|      Curl_trc_ssls(data, __VA_ARGS__);                   \
  |  |  197|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (197:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  804|      0|                      i, ssl_peer_key);
  805|      0|        scache->peers[i].ssl_peer_key = curlx_strdup(ssl_peer_key);
  ------------------
  |  | 1476|      0|#define curlx_strdup(ptr)          curl_dbg_strdup(ptr, __LINE__, __FILE__)
  ------------------
  806|      0|        if(!scache->peers[i].ssl_peer_key) {
  ------------------
  |  Branch (806:12): [True: 0, False: 0]
  ------------------
  807|      0|          result = CURLE_OUT_OF_MEMORY;
  808|      0|          goto out;
  809|      0|        }
  810|      0|        cf_ssl_cache_peer_update(&scache->peers[i]);
  811|      0|        *ppeer = &scache->peers[i];
  812|      0|        goto out;
  813|      0|      }
  814|      0|    }
  815|  8.55k|  }
  816|    342|  CURL_TRC_SSLS(data, "peer not found for %s", ssl_peer_key);
  ------------------
  |  |  194|    342|  do {                                                    \
  |  |  195|    342|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ssls)) \
  |  |  ------------------
  |  |  |  |  329|    342|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    684|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 342, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 342]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    684|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    342|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  196|    342|      Curl_trc_ssls(data, __VA_ARGS__);                   \
  |  |  197|    342|  } while(0)
  |  |  ------------------
  |  |  |  Branch (197:11): [Folded, False: 342]
  |  |  ------------------
  ------------------
  817|    342|out:
  818|    342|  return result;
  819|    342|}

Curl_ws_request:
 1305|  1.61k|{
 1306|  1.61k|  unsigned int i;
 1307|  1.61k|  CURLcode result = CURLE_OK;
 1308|  1.61k|  uint8_t rand[16];
 1309|  1.61k|  char *randstr;
 1310|  1.61k|  size_t randlen;
 1311|  1.61k|  char keyval[40];
 1312|  1.61k|  struct SingleRequest *k = &data->req;
 1313|  1.61k|  struct wsfield heads[] = {
 1314|  1.61k|    {
 1315|       |      /* The request MUST contain an |Upgrade| header field whose value
 1316|       |         MUST include the "websocket" keyword. */
 1317|  1.61k|      "Upgrade", "websocket"
 1318|  1.61k|    },
 1319|  1.61k|    {
 1320|       |      /* The request MUST include a header field with the name
 1321|       |         |Sec-WebSocket-Version|. The value of this header field MUST be
 1322|       |         13. */
 1323|  1.61k|      "Sec-WebSocket-Version", "13",
 1324|  1.61k|    },
 1325|  1.61k|    {
 1326|       |      /* The request MUST include a header field with the name
 1327|       |         |Sec-WebSocket-Key|. The value of this header field MUST be a nonce
 1328|       |         consisting of a randomly selected 16-byte value that has been
 1329|       |         base64-encoded (see Section 4 of [RFC4648]). The nonce MUST be
 1330|       |         selected randomly for each connection. */
 1331|  1.61k|      "Sec-WebSocket-Key", NULL,
 1332|  1.61k|    }
 1333|  1.61k|  };
 1334|  1.61k|  heads[2].val = &keyval[0];
 1335|       |
 1336|       |  /* 16 bytes random */
 1337|  1.61k|  result = Curl_rand(data, rand, sizeof(rand));
  ------------------
  |  |   33|  1.61k|#define Curl_rand(a, b, c) Curl_rand_bytes(a, TRUE, b, c)
  |  |  ------------------
  |  |  |  | 1053|  1.61k|#define TRUE true
  |  |  ------------------
  ------------------
 1338|  1.61k|  if(result)
  ------------------
  |  Branch (1338:6): [True: 0, False: 1.61k]
  ------------------
 1339|      0|    return result;
 1340|  1.61k|  result = curlx_base64_encode(rand, sizeof(rand), &randstr, &randlen);
 1341|  1.61k|  if(result)
  ------------------
  |  Branch (1341:6): [True: 0, False: 1.61k]
  ------------------
 1342|      0|    return result;
 1343|  1.61k|  DEBUGASSERT(randlen < sizeof(keyval));
  ------------------
  |  | 1083|  1.61k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1343:3): [True: 0, False: 1.61k]
  |  Branch (1343:3): [True: 1.61k, False: 0]
  ------------------
 1344|  1.61k|  if(randlen >= sizeof(keyval)) {
  ------------------
  |  Branch (1344:6): [True: 0, False: 1.61k]
  ------------------
 1345|      0|    curlx_free(randstr);
  ------------------
  |  | 1482|      0|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1346|      0|    return CURLE_FAILED_INIT;
 1347|      0|  }
 1348|  1.61k|  curlx_strcopy(keyval, sizeof(keyval), randstr, randlen);
 1349|  1.61k|  curlx_free(randstr);
  ------------------
  |  | 1482|  1.61k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1350|  6.45k|  for(i = 0; !result && (i < CURL_ARRAYSIZE(heads)); i++) {
  ------------------
  |  | 1307|  6.45k|#define CURL_ARRAYSIZE(A) (sizeof(A) / sizeof((A)[0]))
  ------------------
  |  Branch (1350:14): [True: 6.45k, False: 0]
  |  Branch (1350:25): [True: 4.84k, False: 1.61k]
  ------------------
 1351|  4.84k|    if(!Curl_checkheaders(data, heads[i].name, strlen(heads[i].name))) {
  ------------------
  |  Branch (1351:8): [True: 4.84k, False: 0]
  ------------------
 1352|  4.84k|      result = curlx_dyn_addf(req, "%s: %s\r\n", heads[i].name, heads[i].val);
 1353|  4.84k|    }
 1354|  4.84k|  }
 1355|  1.61k|  data->state.http_hd_upgrade = TRUE;
  ------------------
  |  | 1053|  1.61k|#define TRUE true
  ------------------
 1356|  1.61k|  k->upgr101 = UPGR101_WS;
 1357|       |  data->conn->bits.upgrade_in_progress = TRUE;
  ------------------
  |  | 1053|  1.61k|#define TRUE true
  ------------------
 1358|  1.61k|  return result;
 1359|  1.61k|}
Curl_ws_accept:
 1377|  1.61k|{
 1378|  1.61k|  struct SingleRequest *k = &data->req;
 1379|  1.61k|  struct websocket *ws;
 1380|  1.61k|  struct Curl_cwriter *ws_dec_writer = NULL;
 1381|  1.61k|  struct Curl_creader *ws_enc_reader = NULL;
 1382|  1.61k|  CURLcode result;
 1383|       |
 1384|  1.61k|  DEBUGASSERT(data->conn);
  ------------------
  |  | 1083|  1.61k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1384:3): [True: 0, False: 1.61k]
  |  Branch (1384:3): [True: 1.61k, False: 0]
  ------------------
 1385|  1.61k|  ws = Curl_conn_meta_get(data->conn, CURL_META_PROTO_WS_CONN);
  ------------------
  |  |   33|  1.61k|#define CURL_META_PROTO_WS_CONN   "meta:proto:ws:conn"
  ------------------
 1386|  1.61k|  if(!ws) {
  ------------------
  |  Branch (1386:6): [True: 1.61k, False: 0]
  ------------------
 1387|  1.61k|    size_t chunk_size = WS_CHUNK_SIZE;
  ------------------
  |  |   73|  1.61k|#define WS_CHUNK_SIZE  65535
  ------------------
 1388|  1.61k|    ws = curlx_calloc(1, sizeof(*ws));
  ------------------
  |  | 1479|  1.61k|  curl_dbg_calloc(nbelem, size, __LINE__, __FILE__)
  ------------------
 1389|  1.61k|    if(!ws)
  ------------------
  |  Branch (1389:8): [True: 0, False: 1.61k]
  ------------------
 1390|      0|      return CURLE_OUT_OF_MEMORY;
 1391|  1.61k|#ifdef DEBUGBUILD
 1392|  1.61k|    {
 1393|  1.61k|      const char *p = getenv("CURL_WS_CHUNK_SIZE");
 1394|  1.61k|      if(p) {
  ------------------
  |  Branch (1394:10): [True: 0, False: 1.61k]
  ------------------
 1395|      0|        curl_off_t l;
 1396|      0|        if(!curlx_str_number(&p, &l, 1 * 1024 * 1024))
  ------------------
  |  Branch (1396:12): [True: 0, False: 0]
  ------------------
 1397|      0|          chunk_size = (size_t)l;
 1398|      0|      }
 1399|  1.61k|    }
 1400|  1.61k|#endif
 1401|  1.61k|    CURL_TRC_WS(data, "WS, using chunk size %zu", chunk_size);
  ------------------
  |  |  208|  1.61k|  do {                                                  \
  |  |  209|  1.61k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|  1.61k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  3.22k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 1.61k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 1.61k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  3.22k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  1.61k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|  1.61k|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|  1.61k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 1.61k]
  |  |  ------------------
  ------------------
 1402|  1.61k|    Curl_bufq_init2(&ws->recvbuf, chunk_size, WS_CHUNK_COUNT,
  ------------------
  |  |   74|  1.61k|#define WS_CHUNK_COUNT 2
  ------------------
 1403|  1.61k|                    BUFQ_OPT_SOFT_LIMIT);
  ------------------
  |  |  111|  1.61k|#define BUFQ_OPT_SOFT_LIMIT  (1 << 0)
  ------------------
 1404|  1.61k|    Curl_bufq_init2(&ws->sendbuf, chunk_size, WS_CHUNK_COUNT,
  ------------------
  |  |   74|  1.61k|#define WS_CHUNK_COUNT 2
  ------------------
 1405|  1.61k|                    BUFQ_OPT_SOFT_LIMIT);
  ------------------
  |  |  111|  1.61k|#define BUFQ_OPT_SOFT_LIMIT  (1 << 0)
  ------------------
 1406|  1.61k|    ws_dec_init(&ws->dec);
 1407|  1.61k|    ws_enc_init(&ws->enc);
 1408|  1.61k|    result = Curl_conn_meta_set(data->conn, CURL_META_PROTO_WS_CONN,
  ------------------
  |  |   33|  1.61k|#define CURL_META_PROTO_WS_CONN   "meta:proto:ws:conn"
  ------------------
 1409|  1.61k|                                ws, ws_conn_dtor);
 1410|  1.61k|    if(result)
  ------------------
  |  Branch (1410:8): [True: 0, False: 1.61k]
  ------------------
 1411|      0|      return result;
 1412|  1.61k|  }
 1413|      0|  else {
 1414|      0|    Curl_bufq_reset(&ws->recvbuf);
 1415|      0|    ws_dec_reset(&ws->dec);
 1416|      0|    ws_enc_reset(&ws->enc);
 1417|      0|  }
 1418|       |  /* Verify the Sec-WebSocket-Accept response.
 1419|       |
 1420|       |     The sent value is the base64 encoded version of a SHA-1 hash done on the
 1421|       |     |Sec-WebSocket-Key| header field concatenated with
 1422|       |     the string "258EAFA5-E914-47DA-95CA-C5AB0DC85B11". */
 1423|       |
 1424|       |  /* If the response includes a |Sec-WebSocket-Extensions| header field and
 1425|       |     this header field indicates the use of an extension that was not present
 1426|       |     in the client's handshake (the server has indicated an extension not
 1427|       |     requested by the client), the client MUST Fail the WebSocket Connection.
 1428|       |   */
 1429|       |
 1430|       |  /* If the response includes a |Sec-WebSocket-Protocol| header field
 1431|       |     and this header field indicates the use of a subprotocol that was
 1432|       |     not present in the client's handshake (the server has indicated a
 1433|       |     subprotocol not requested by the client), the client MUST Fail
 1434|       |     the WebSocket Connection. */
 1435|       |
 1436|  1.61k|  infof(data, "[WS] Received 101, switch to WebSocket");
  ------------------
  |  |  143|  1.61k|  do {                               \
  |  |  144|  1.61k|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|  1.61k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 1.61k, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 1.61k]
  |  |  |  |  ------------------
  |  |  |  |  323|  1.61k|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|  1.61k|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|  1.61k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 1.61k]
  |  |  ------------------
  ------------------
 1437|       |
 1438|       |  /* Install our client writer that decodes WS frames payload */
 1439|  1.61k|  result = Curl_cwriter_create(&ws_dec_writer, data, &ws_cw_decode,
 1440|  1.61k|                               CURL_CW_CONTENT_DECODE);
 1441|  1.61k|  if(result)
  ------------------
  |  Branch (1441:6): [True: 0, False: 1.61k]
  ------------------
 1442|      0|    goto out;
 1443|  1.61k|  result = Curl_cwriter_add(data, ws_dec_writer);
 1444|  1.61k|  if(result)
  ------------------
  |  Branch (1444:6): [True: 0, False: 1.61k]
  ------------------
 1445|      0|    goto out;
 1446|  1.61k|  ws_dec_writer = NULL; /* owned by transfer now */
 1447|       |
 1448|  1.61k|  k->header = FALSE; /* we will not get more response headers */
  ------------------
  |  | 1056|  1.61k|#define FALSE false
  ------------------
 1449|       |
 1450|  1.61k|  if(data->set.connect_only) {
  ------------------
  |  Branch (1450:6): [True: 453, False: 1.16k]
  ------------------
 1451|       |    /* In CONNECT_ONLY setup, the payloads from `mem` need to be received
 1452|       |     * when using `curl_ws_recv/curl_easy_recv` later on, after this transfer
 1453|       |     * is already marked as DONE.
 1454|       |     * Since `curl_easy_recv()` is also supposed to work, we need
 1455|       |     * to buffer the data at connection level. See #22107 */
 1456|    453|    if(nread) {
  ------------------
  |  Branch (1456:8): [True: 0, False: 453]
  ------------------
 1457|      0|      result = Curl_cf_recvbuf_add(data, data->conn, FIRSTSOCKET,
  ------------------
  |  |  233|      0|#define FIRSTSOCKET     0
  ------------------
 1458|      0|                                   (const uint8_t *)mem, nread);
 1459|      0|      if(result)
  ------------------
  |  Branch (1459:10): [True: 0, False: 0]
  ------------------
 1460|      0|        goto out;
 1461|      0|    }
 1462|    453|    CURL_REQ_CLEAR_RECV(data); /* read no more content */
  ------------------
  |  |   49|    453|  ((d)->req.io_flags &= (uint8_t)~REQ_IO_RECV)
  |  |  ------------------
  |  |  |  |   35|    453|#define REQ_IO_RECV       (1 << 0) /* there is or may be data to read */
  |  |  ------------------
  ------------------
 1463|    453|  }
 1464|  1.16k|  else { /* !connect_only */
 1465|  1.16k|    if(data->set.method == HTTPREQ_PUT) {
  ------------------
  |  Branch (1465:8): [True: 81, False: 1.08k]
  ------------------
 1466|     81|      CURL_TRC_WS(data, "UPLOAD set, add ws-encode reader");
  ------------------
  |  |  208|     81|  do {                                                  \
  |  |  209|     81|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|     81|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    162|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 81, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 81]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    162|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|     81|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|     81|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|     81|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 81]
  |  |  ------------------
  ------------------
 1467|     81|      result = Curl_creader_set_fread(data, -1);
 1468|     81|      if(result)
  ------------------
  |  Branch (1468:10): [True: 0, False: 81]
  ------------------
 1469|      0|        goto out;
 1470|       |
 1471|     81|      if(!data->set.ws_raw_mode) {
  ------------------
  |  Branch (1471:10): [True: 78, False: 3]
  ------------------
 1472|       |        /* Add our client reader encoding WS BINARY frames */
 1473|     78|        result = Curl_creader_create(&ws_enc_reader, data, &ws_cr_encode,
 1474|     78|                                     CURL_CR_CONTENT_ENCODE);
 1475|     78|        if(result)
  ------------------
  |  Branch (1475:12): [True: 0, False: 78]
  ------------------
 1476|      0|          goto out;
 1477|     78|        result = Curl_creader_add(data, ws_enc_reader);
 1478|     78|        if(result)
  ------------------
  |  Branch (1478:12): [True: 0, False: 78]
  ------------------
 1479|      0|          goto out;
 1480|     78|        ws_enc_reader = NULL; /* owned by transfer now */
 1481|     78|      }
 1482|       |
 1483|       |      /* start over with sending */
 1484|     81|      data->req.eos_read = FALSE;
  ------------------
  |  | 1056|     81|#define FALSE false
  ------------------
 1485|     81|      data->req.upload_done = FALSE;
  ------------------
  |  | 1056|     81|#define FALSE false
  ------------------
 1486|     81|      CURL_REQ_SET_SEND(data);
  ------------------
  |  |   44|     81|#define CURL_REQ_SET_SEND(d)   ((d)->req.io_flags |= REQ_IO_SEND)
  |  |  ------------------
  |  |  |  |   36|     81|#define REQ_IO_SEND       (1 << 1) /* there is or may be data to write */
  |  |  ------------------
  ------------------
 1487|     81|    }
 1488|       |
 1489|       |    /* Then pass any additional data to the writers */
 1490|  1.16k|    if(nread) {
  ------------------
  |  Branch (1490:8): [True: 569, False: 592]
  ------------------
 1491|    569|      result = Curl_client_write(data, CLIENTWRITE_BODY, mem, nread);
  ------------------
  |  |   43|    569|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
 1492|    569|      if(result)
  ------------------
  |  Branch (1492:10): [True: 147, False: 422]
  ------------------
 1493|    147|        goto out;
 1494|    569|    }
 1495|  1.16k|  }
 1496|       |
 1497|  1.46k|  k->upgr101 = UPGR101_RECEIVED;
 1498|  1.46k|  k->header = FALSE; /* we will not get more responses */
  ------------------
  |  | 1056|  1.46k|#define FALSE false
  ------------------
 1499|       |
 1500|  1.61k|out:
 1501|  1.61k|  if(ws_dec_writer)
  ------------------
  |  Branch (1501:6): [True: 0, False: 1.61k]
  ------------------
 1502|      0|    Curl_cwriter_free(data, ws_dec_writer);
 1503|  1.61k|  if(ws_enc_reader)
  ------------------
  |  Branch (1503:6): [True: 0, False: 1.61k]
  ------------------
 1504|      0|    Curl_creader_free(data, ws_enc_reader);
 1505|  1.61k|  if(result)
  ------------------
  |  Branch (1505:6): [True: 147, False: 1.46k]
  ------------------
 1506|    147|    CURL_TRC_WS(data, "Curl_ws_accept() failed -> %d", (int)result);
  ------------------
  |  |  208|    147|  do {                                                  \
  |  |  209|    147|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|    147|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    294|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 147, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 147]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    294|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    147|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|    147|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|    147|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 147]
  |  |  ------------------
  ------------------
 1507|  1.46k|  else
 1508|  1.46k|    CURL_TRC_WS(data, "websocket established, %s mode",
  ------------------
  |  |  208|  1.46k|  do {                                                  \
  |  |  209|  1.46k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|  1.46k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  2.93k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 1.46k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 1.46k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  2.93k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  1.46k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|  1.46k|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  ------------------
  |  |  |  Branch (210:25): [True: 0, False: 0]
  |  |  ------------------
  |  |  211|  1.46k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 1.46k]
  |  |  ------------------
  ------------------
 1509|  1.61k|                data->set.connect_only ? "connect-only" : "callback");
 1510|  1.61k|  return result;
 1511|  1.46k|}
curl_ws_recv:
 1593|  9.62k|{
 1594|  9.62k|  struct Curl_eapi_guard guard;
 1595|  9.62k|  CURLcode result = CURLE_OK;
 1596|       |
 1597|  9.62k|  *recv = 0;
 1598|  9.62k|  *metap = NULL;
 1599|  9.62k|  if(CURL_EAPI_ENTER(&guard, curl, ws_recv, &result)) {
  ------------------
  |  |  162|  9.62k|  Curl_eapi_enter((g), (curl), CURL_EAPI_FN_##fn, (r)) && (curl)
  |  |  ------------------
  |  |  |  Branch (162:3): [True: 9.62k, False: 0]
  |  |  |  Branch (162:59): [True: 9.62k, False: 0]
  |  |  ------------------
  ------------------
 1600|  9.62k|    struct Curl_easy *data = curl;
 1601|  9.62k|    struct connectdata *conn;
 1602|  9.62k|    struct websocket *ws;
 1603|  9.62k|    struct ws_collect ctx;
 1604|       |
 1605|  9.62k|    if(buflen && !buffer) {
  ------------------
  |  Branch (1605:8): [True: 9.62k, False: 0]
  |  Branch (1605:18): [True: 0, False: 9.62k]
  ------------------
 1606|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
 1607|      0|      goto out;
 1608|      0|    }
 1609|       |
 1610|  9.62k|    conn = data->conn;
 1611|  9.62k|    if(!conn) {
  ------------------
  |  Branch (1611:8): [True: 485, False: 9.14k]
  ------------------
 1612|       |      /* Unhappy hack with lifetimes of transfers and connection */
 1613|    485|      if(!data->set.connect_only) {
  ------------------
  |  Branch (1613:10): [True: 39, False: 446]
  ------------------
 1614|     39|        failf(data, "[WS] CONNECT_ONLY is required");
  ------------------
  |  |   62|     39|#define failf Curl_failf
  ------------------
 1615|     39|        result = CURLE_UNSUPPORTED_PROTOCOL;
 1616|     39|        goto out;
 1617|     39|      }
 1618|       |
 1619|    446|      Curl_getconnectinfo(data, &conn);
 1620|    446|      if(!conn) {
  ------------------
  |  Branch (1620:10): [True: 0, False: 446]
  ------------------
 1621|      0|        failf(data, "[WS] connection not found");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1622|      0|        result = CURLE_BAD_FUNCTION_ARGUMENT;
 1623|      0|        goto out;
 1624|      0|      }
 1625|    446|    }
 1626|  9.58k|    ws = Curl_conn_meta_get(conn, CURL_META_PROTO_WS_CONN);
  ------------------
  |  |   33|  9.58k|#define CURL_META_PROTO_WS_CONN   "meta:proto:ws:conn"
  ------------------
 1627|  9.58k|    if(!ws) {
  ------------------
  |  Branch (1627:8): [True: 0, False: 9.58k]
  ------------------
 1628|      0|      failf(data, "[WS] connection is not setup for websocket");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1629|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
 1630|      0|      goto out;
 1631|      0|    }
 1632|       |
 1633|  9.58k|    memset(&ctx, 0, sizeof(ctx));
 1634|  9.58k|    ctx.data = data;
 1635|  9.58k|    ctx.ws = ws;
 1636|  9.58k|    ctx.buffer = buffer;
 1637|  9.58k|    ctx.buflen = buflen;
 1638|       |
 1639|  10.5k|    while(1) {
  ------------------
  |  Branch (1639:11): [True: 10.5k, Folded]
  ------------------
 1640|       |      /* receive more when our buffer is empty */
 1641|  10.5k|      if(Curl_bufq_is_empty(&ws->recvbuf)) {
  ------------------
  |  Branch (1641:10): [True: 3.17k, False: 7.39k]
  ------------------
 1642|  3.17k|        size_t n;
 1643|  3.17k|        result = Curl_bufq_slurp(&ws->recvbuf, nw_in_recv, data, &n);
 1644|  3.17k|        if(result)
  ------------------
  |  Branch (1644:12): [True: 1.62k, False: 1.54k]
  ------------------
 1645|  1.62k|          goto out;
 1646|  1.54k|        else if(n == 0) {
  ------------------
  |  Branch (1646:17): [True: 0, False: 1.54k]
  ------------------
 1647|       |          /* connection closed */
 1648|      0|          infof(data, "[WS] connection expectedly closed?");
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1649|      0|          result = CURLE_GOT_NOTHING;
 1650|      0|          goto out;
 1651|      0|        }
 1652|  1.54k|        CURL_TRC_WS(data, "curl_ws_recv, added %zu bytes from network",
  ------------------
  |  |  208|  1.54k|  do {                                                  \
  |  |  209|  1.54k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|  1.54k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  3.09k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 1.54k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 1.54k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  3.09k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  1.54k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|  1.54k|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|  1.54k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 1.54k]
  |  |  ------------------
  ------------------
 1653|  1.54k|                    Curl_bufq_len(&ws->recvbuf));
 1654|  1.54k|      }
 1655|       |
 1656|  8.94k|      result = ws_dec_pass(&ws->dec, data, &ws->recvbuf,
 1657|  8.94k|                           ws_client_collect, &ctx);
 1658|  8.94k|      if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (1658:10): [True: 1.13k, False: 7.81k]
  ------------------
 1659|  1.13k|        if(!ctx.written) {
  ------------------
  |  Branch (1659:12): [True: 539, False: 591]
  ------------------
 1660|    539|          ws_dec_info(&ws->dec, data, "need more input");
 1661|    539|          continue;  /* nothing written, try more input */
 1662|    539|        }
 1663|    591|        break;
 1664|  1.13k|      }
 1665|  7.81k|      else if(result) {
  ------------------
  |  Branch (1665:15): [True: 1.00k, False: 6.80k]
  ------------------
 1666|  1.00k|        goto out;
 1667|  1.00k|      }
 1668|  6.80k|      else if(ctx.written) {
  ------------------
  |  Branch (1668:15): [True: 6.36k, False: 441]
  ------------------
 1669|       |        /* The decoded frame is passed back to our caller.
 1670|       |         * There are frames like PING were we auto-respond to and
 1671|       |         * that we do not return. For these `ctx.written` is not set. */
 1672|  6.36k|        break;
 1673|  6.36k|      }
 1674|  8.94k|    }
 1675|       |
 1676|       |    /* update frame information to be passed back */
 1677|  6.95k|    update_meta(ws, ctx.frame_age, ctx.frame_flags, ctx.payload_offset,
 1678|  6.95k|                ctx.payload_len, ctx.bufidx);
 1679|  6.95k|    *metap = &ws->recvframe;
 1680|  6.95k|    *recv = ws->recvframe.len;
 1681|  6.95k|    CURL_TRC_WS(data, "curl_ws_recv(len=%zu) -> %zu bytes (frame at %"
  ------------------
  |  |  208|  6.95k|  do {                                                  \
  |  |  209|  6.95k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|  6.95k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  13.9k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 6.95k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 6.95k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  13.9k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  6.95k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|  6.95k|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|  6.95k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 6.95k]
  |  |  ------------------
  ------------------
 1682|  6.95k|                FMT_OFF_T ", %" FMT_OFF_T " left)",
 1683|  6.95k|                buflen, *recv, ws->recvframe.offset,
 1684|  6.95k|                ws->recvframe.bytesleft);
 1685|       |    /* all's well, try to send any pending control. we do not know
 1686|       |     * when the application will call `curl_ws_send()` again. */
 1687|  6.95k|    if(!data->set.ws_raw_mode && ws->pending.type) {
  ------------------
  |  Branch (1687:8): [True: 6.74k, False: 213]
  |  Branch (1687:34): [True: 391, False: 6.35k]
  ------------------
 1688|    391|      CURLcode r2 = ws_enc_add_pending(data, ws);
 1689|    391|      if(!r2)
  ------------------
  |  Branch (1689:10): [True: 391, False: 0]
  ------------------
 1690|    391|        (void)ws_flush(data, ws, Curl_api_is_in_callback(data));
 1691|    391|    }
 1692|  6.95k|    result = CURLE_OK;
 1693|  6.95k|  }
 1694|  9.62k|out:
 1695|  9.62k|  CURL_EAPI_LEAVE(&guard);
  ------------------
  |  |  164|  9.62k|  Curl_eapi_leave(g)
  ------------------
 1696|  9.62k|  return result;
 1697|  9.62k|}
curl_ws_send:
 1852|  2.22k|{
 1853|  2.22k|  struct Curl_eapi_guard guard;
 1854|  2.22k|  CURLcode result = CURLE_OK;
 1855|       |
 1856|  2.22k|  if(CURL_EAPI_ENTER(&guard, curl, ws_send, &result)) {
  ------------------
  |  |  162|  2.22k|  Curl_eapi_enter((g), (curl), CURL_EAPI_FN_##fn, (r)) && (curl)
  |  |  ------------------
  |  |  |  Branch (162:3): [True: 2.22k, False: 0]
  |  |  |  Branch (162:59): [True: 2.22k, False: 0]
  |  |  ------------------
  ------------------
 1857|  2.22k|    struct websocket *ws;
 1858|  2.22k|    const uint8_t *buffer = buffer_arg;
 1859|  2.22k|    struct Curl_easy *data = curl;
 1860|  2.22k|    size_t ndummy;
 1861|  2.22k|    size_t *pnsent = sent ? sent : &ndummy;
  ------------------
  |  Branch (1861:22): [True: 2.22k, False: 0]
  ------------------
 1862|       |
 1863|  2.22k|    CURL_TRC_WS(data, "curl_ws_send(len=%zu, fragsize=%" FMT_OFF_T
  ------------------
  |  |  208|  2.22k|  do {                                                  \
  |  |  209|  2.22k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|  2.22k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  4.44k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 2.22k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 2.22k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  4.44k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  2.22k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|  2.22k|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|  2.22k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 2.22k]
  |  |  ------------------
  ------------------
 1864|  2.22k|                ", flags=%x), raw=%d",
 1865|  2.22k|                buflen, fragsize, flags, data->set.ws_raw_mode);
 1866|       |
 1867|  2.22k|    *pnsent = 0;
 1868|       |
 1869|  2.22k|    if(!buffer && buflen) {
  ------------------
  |  Branch (1869:8): [True: 0, False: 2.22k]
  |  Branch (1869:19): [True: 0, False: 0]
  ------------------
 1870|      0|      failf(data, "[WS] buffer is NULL when buflen is not");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1871|      0|      result = CURLE_BAD_FUNCTION_ARGUMENT;
 1872|      0|      goto out;
 1873|      0|    }
 1874|       |
 1875|  2.22k|    if(!data->conn && data->set.connect_only) {
  ------------------
  |  Branch (1875:8): [True: 44, False: 2.17k]
  |  Branch (1875:23): [True: 0, False: 44]
  ------------------
 1876|      0|      result = Curl_connect_only_attach(data);
 1877|      0|      if(result)
  ------------------
  |  Branch (1877:10): [True: 0, False: 0]
  ------------------
 1878|      0|        goto out;
 1879|      0|    }
 1880|  2.22k|    if(!data->conn) {
  ------------------
  |  Branch (1880:8): [True: 44, False: 2.17k]
  ------------------
 1881|     44|      failf(data, "[WS] No associated connection");
  ------------------
  |  |   62|     44|#define failf Curl_failf
  ------------------
 1882|     44|      result = CURLE_SEND_ERROR;
 1883|     44|      goto out;
 1884|     44|    }
 1885|  2.17k|    ws = Curl_conn_meta_get(data->conn, CURL_META_PROTO_WS_CONN);
  ------------------
  |  |   33|  2.17k|#define CURL_META_PROTO_WS_CONN   "meta:proto:ws:conn"
  ------------------
 1886|  2.17k|    if(!ws) {
  ------------------
  |  Branch (1886:8): [True: 11, False: 2.16k]
  ------------------
 1887|     11|      failf(data, "[WS] Not a websocket transfer");
  ------------------
  |  |   62|     11|#define failf Curl_failf
  ------------------
 1888|     11|      result = CURLE_SEND_ERROR;
 1889|     11|      goto out;
 1890|     11|    }
 1891|       |
 1892|  2.16k|    if(data->set.ws_raw_mode) {
  ------------------
  |  Branch (1892:8): [True: 83, False: 2.08k]
  ------------------
 1893|       |      /* In raw mode, we write directly to the connection */
 1894|       |      /* try flushing any content still waiting to be sent. */
 1895|     83|      result = ws_flush(data, ws, FALSE);
  ------------------
  |  | 1056|     83|#define FALSE false
  ------------------
 1896|     83|      if(result)
  ------------------
  |  Branch (1896:10): [True: 0, False: 83]
  ------------------
 1897|      0|        goto out;
 1898|       |
 1899|     83|      if(!buffer) {
  ------------------
  |  Branch (1899:10): [True: 0, False: 83]
  ------------------
 1900|      0|        failf(data, "[WS] buffer is NULL in raw mode");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1901|      0|        result = CURLE_BAD_FUNCTION_ARGUMENT;
 1902|      0|        goto out;
 1903|      0|      }
 1904|     83|      if(!sent) {
  ------------------
  |  Branch (1904:10): [True: 0, False: 83]
  ------------------
 1905|      0|        failf(data, "[WS] sent is NULL in raw mode");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1906|      0|        result = CURLE_BAD_FUNCTION_ARGUMENT;
 1907|      0|        goto out;
 1908|      0|      }
 1909|     83|      if(fragsize || flags) {
  ------------------
  |  Branch (1909:10): [True: 10, False: 73]
  |  Branch (1909:22): [True: 45, False: 28]
  ------------------
 1910|     55|        failf(data, "[WS] fragsize and flags must be zero in raw mode");
  ------------------
  |  |   62|     55|#define failf Curl_failf
  ------------------
 1911|     55|        result = CURLE_BAD_FUNCTION_ARGUMENT;
 1912|     55|        goto out;
 1913|     55|      }
 1914|     28|      result = ws_send_raw(data, buffer, buflen, pnsent);
 1915|     28|      goto out;
 1916|     83|    }
 1917|       |
 1918|       |    /* Not RAW mode, we do the frame encoding */
 1919|  2.08k|    result = ws_enc_send(data, ws, buffer, buflen, fragsize, flags, pnsent);
 1920|  2.08k|    CURL_TRC_WS(data, "curl_ws_send(len=%zu, fragsize=%" FMT_OFF_T
  ------------------
  |  |  208|  2.08k|  do {                                                  \
  |  |  209|  2.08k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|  2.08k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  4.17k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 2.08k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 2.08k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  4.17k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  2.08k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|  2.08k|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|  2.08k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 2.08k]
  |  |  ------------------
  ------------------
 1921|  2.08k|                ", flags=%x, raw=%d) -> %d, %zu",
 1922|  2.08k|                buflen, fragsize, flags, data->set.ws_raw_mode, (int)result,
 1923|  2.08k|                *pnsent);
 1924|  2.08k|  }
 1925|  2.22k|out:
 1926|  2.22k|  CURL_EAPI_LEAVE(&guard);
  ------------------
  |  |  164|  2.22k|  Curl_eapi_leave(g)
  ------------------
 1927|  2.22k|  return result;
 1928|  2.22k|}
curl_ws_meta:
 1942|  4.60k|{
 1943|       |  /* we only return something for websocket, called from within the callback
 1944|       |     when not using raw mode */
 1945|  4.60k|  struct Curl_easy *data = curl;
 1946|  4.60k|  if(GOOD_EASY_HANDLE(data) && Curl_api_is_in_callback(data) &&
  ------------------
  |  |   34|  9.20k|  (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  |   28|  4.60k|#define CURLEASY_MAGIC_NUMBER 0xc0dedbadU
  |  |  ------------------
  |  |                 (((x) && ((x)->magic == CURLEASY_MAGIC_NUMBER)) ? TRUE : \
  |  |  ------------------
  |  |  |  | 1053|  4.60k|#define TRUE true
  |  |  ------------------
  |  |  |  Branch (34:3): [True: 4.60k, False: 0]
  |  |  |  Branch (34:5): [True: 4.60k, False: 0]
  |  |  |  Branch (34:12): [True: 4.60k, False: 0]
  |  |  ------------------
  |  |   35|  9.20k|   (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  |  |  ------------------
  |  |                  (DEBUGASSERT(!(x)), FALSE))
  |  |  ------------------
  |  |  |  | 1056|      0|#define FALSE false
  |  |  ------------------
  ------------------
  |  Branch (1946:6): [True: 0, False: 0]
  |  Branch (1946:6): [True: 0, False: 0]
  |  Branch (1946:32): [True: 4.60k, False: 0]
  ------------------
 1947|  4.60k|     data->conn && !data->set.ws_raw_mode) {
  ------------------
  |  Branch (1947:6): [True: 4.60k, False: 0]
  |  Branch (1947:20): [True: 4.48k, False: 114]
  ------------------
 1948|  4.48k|    struct websocket *ws;
 1949|  4.48k|    ws = Curl_conn_meta_get(data->conn, CURL_META_PROTO_WS_CONN);
  ------------------
  |  |   33|  4.48k|#define CURL_META_PROTO_WS_CONN   "meta:proto:ws:conn"
  ------------------
 1950|  4.48k|    if(ws)
  ------------------
  |  Branch (1950:8): [True: 4.44k, False: 40]
  ------------------
 1951|  4.44k|      return &ws->recvframe;
 1952|  4.48k|  }
 1953|    154|  return NULL;
 1954|  4.60k|}
curl_ws_start_frame:
 1959|  1.72k|{
 1960|  1.72k|  struct Curl_eapi_guard guard;
 1961|  1.72k|  CURLcode result = CURLE_OK;
 1962|       |
 1963|  1.72k|  if(CURL_EAPI_ENTER(&guard, curl, ws_start_frame, &result)) {
  ------------------
  |  |  162|  1.72k|  Curl_eapi_enter((g), (curl), CURL_EAPI_FN_##fn, (r)) && (curl)
  |  |  ------------------
  |  |  |  Branch (162:3): [True: 1.72k, False: 0]
  |  |  |  Branch (162:59): [True: 1.72k, False: 0]
  |  |  ------------------
  ------------------
 1964|  1.72k|    struct Curl_easy *data = curl;
 1965|  1.72k|    struct websocket *ws;
 1966|       |
 1967|  1.72k|    if(data->set.ws_raw_mode) {
  ------------------
  |  Branch (1967:8): [True: 59, False: 1.66k]
  ------------------
 1968|     59|      failf(data, "cannot curl_ws_start_frame() with CURLWS_RAW_MODE enabled");
  ------------------
  |  |   62|     59|#define failf Curl_failf
  ------------------
 1969|     59|      result = CURLE_FAILED_INIT;
 1970|     59|      goto out;
 1971|     59|    }
 1972|       |
 1973|  1.66k|    CURL_TRC_WS(data, "curl_ws_start_frame(flags=%x, frame_len=%" FMT_OFF_T,
  ------------------
  |  |  208|  1.66k|  do {                                                  \
  |  |  209|  1.66k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|  1.66k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  3.33k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 1.66k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 1.66k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  3.33k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  1.66k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|  1.66k|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|  1.66k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 1.66k]
  |  |  ------------------
  ------------------
 1974|  1.66k|                flags, frame_len);
 1975|       |
 1976|  1.66k|    if(!data->conn) {
  ------------------
  |  Branch (1976:8): [True: 40, False: 1.62k]
  ------------------
 1977|     40|      failf(data, "[WS] No associated connection");
  ------------------
  |  |   62|     40|#define failf Curl_failf
  ------------------
 1978|     40|      result = CURLE_SEND_ERROR;
 1979|     40|      goto out;
 1980|     40|    }
 1981|  1.62k|    ws = Curl_conn_meta_get(data->conn, CURL_META_PROTO_WS_CONN);
  ------------------
  |  |   33|  1.62k|#define CURL_META_PROTO_WS_CONN   "meta:proto:ws:conn"
  ------------------
 1982|  1.62k|    if(!ws) {
  ------------------
  |  Branch (1982:8): [True: 0, False: 1.62k]
  ------------------
 1983|      0|      failf(data, "[WS] Not a websocket transfer");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1984|      0|      result = CURLE_SEND_ERROR;
 1985|      0|      goto out;
 1986|      0|    }
 1987|       |
 1988|  1.62k|    if(ws->enc.payload_remain) {
  ------------------
  |  Branch (1988:8): [True: 200, False: 1.42k]
  ------------------
 1989|    200|      failf(data, "[WS] previous frame not finished");
  ------------------
  |  |   62|    200|#define failf Curl_failf
  ------------------
 1990|    200|      result = CURLE_SEND_ERROR;
 1991|    200|      goto out;
 1992|    200|    }
 1993|       |
 1994|  1.42k|    result = ws_enc_write_head(data, ws, &ws->enc, flags, frame_len,
 1995|  1.42k|                               &ws->sendbuf);
 1996|  1.42k|    if(result)
  ------------------
  |  Branch (1996:8): [True: 424, False: 1.00k]
  ------------------
 1997|    424|      CURL_TRC_WS(data, "curl_start_frame(), error adding frame head %d",
  ------------------
  |  |  208|    424|  do {                                                  \
  |  |  209|    424|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|    424|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    848|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 424, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 424]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    848|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    424|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|    424|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|    424|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 424]
  |  |  ------------------
  ------------------
 1998|  1.42k|                  (int)result);
 1999|  1.42k|  }
 2000|  1.72k|out:
 2001|  1.72k|  CURL_EAPI_LEAVE(&guard);
  ------------------
  |  |  164|  1.72k|  Curl_eapi_leave(g)
  ------------------
 2002|  1.72k|  return result;
 2003|  1.72k|}
ws.c:ws_dec_init:
  356|  1.61k|{
  357|  1.61k|  ws_dec_reset(dec);
  358|  1.61k|}
ws.c:ws_enc_init:
  858|  1.61k|{
  859|  1.61k|  ws_enc_reset(enc);
  860|  1.61k|}
ws.c:ws_conn_dtor:
 1362|  1.61k|{
 1363|  1.61k|  struct websocket *ws = entry;
 1364|  1.61k|  (void)key;
 1365|  1.61k|  (void)klen;
 1366|  1.61k|  Curl_bufq_free(&ws->recvbuf);
 1367|  1.61k|  Curl_bufq_free(&ws->sendbuf);
 1368|  1.61k|  curlx_free(ws);
  ------------------
  |  | 1482|  1.61k|#define curlx_free(ptr)            curl_dbg_free(ptr, __LINE__, __FILE__)
  ------------------
 1369|  1.61k|}
ws.c:ws_dec_reset:
  345|  2.94k|{
  346|  2.94k|  dec->frame_age = 0;
  347|  2.94k|  dec->frame_flags = 0;
  348|  2.94k|  dec->payload_offset = 0;
  349|  2.94k|  dec->payload_len = 0;
  350|  2.94k|  dec->head_len = dec->head_total = 0;
  351|  2.94k|  dec->state = WS_DEC_INIT;
  352|  2.94k|  dec->cont_flags = 0;
  353|  2.94k|}
ws.c:ws_enc_reset:
  851|  1.61k|{
  852|  1.61k|  enc->payload_remain = 0;
  853|  1.61k|  enc->xori = 0;
  854|       |  enc->contfragment = FALSE;
  ------------------
  |  | 1056|  1.61k|#define FALSE false
  ------------------
  855|  1.61k|}
ws.c:ws_cw_init:
  597|  1.61k|{
  598|  1.61k|  struct ws_cw_ctx *ctx = writer->ctx;
  599|  1.61k|  (void)data;
  600|  1.61k|  Curl_bufq_init2(&ctx->buf, WS_CHUNK_SIZE, 1, BUFQ_OPT_SOFT_LIMIT);
  ------------------
  |  |   73|  1.61k|#define WS_CHUNK_SIZE  65535
  ------------------
                Curl_bufq_init2(&ctx->buf, WS_CHUNK_SIZE, 1, BUFQ_OPT_SOFT_LIMIT);
  ------------------
  |  |  111|  1.61k|#define BUFQ_OPT_SOFT_LIMIT  (1 << 0)
  ------------------
  601|  1.61k|  return CURLE_OK;
  602|  1.61k|}
ws.c:ws_cw_write:
  712|  2.23k|{
  713|  2.23k|  struct ws_cw_ctx *ctx = writer->ctx;
  714|  2.23k|  struct websocket *ws;
  715|  2.23k|  CURLcode result = CURLE_OK;
  716|       |
  717|  2.23k|  CURL_TRC_WRITE(data, "[WS] write(len=%zu, type=%d)", nbytes, type);
  ------------------
  |  |  158|  2.23k|  do {                                                     \
  |  |  159|  2.23k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  329|  2.23k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  4.47k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 2.23k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 2.23k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  4.47k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  2.23k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|  2.23k|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|  2.23k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 2.23k]
  |  |  ------------------
  ------------------
  718|  2.23k|  if(!(type & CLIENTWRITE_BODY) || data->set.ws_raw_mode)
  ------------------
  |  |   43|  2.23k|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  |  Branch (718:6): [True: 0, False: 2.23k]
  |  Branch (718:36): [True: 120, False: 2.11k]
  ------------------
  719|    120|    return Curl_cwriter_write(data, writer->next, type, buf, nbytes);
  ------------------
  |  |  188|    120|  ((w) ? (w)->cwt->do_write((d), (w), (t), (b), (n)) : CURLE_WRITE_ERROR)
  |  |  ------------------
  |  |  |  Branch (188:4): [True: 120, False: 0]
  |  |  ------------------
  ------------------
  720|       |
  721|  2.11k|  ws = Curl_conn_meta_get(data->conn, CURL_META_PROTO_WS_CONN);
  ------------------
  |  |   33|  2.11k|#define CURL_META_PROTO_WS_CONN   "meta:proto:ws:conn"
  ------------------
  722|  2.11k|  if(!ws) {
  ------------------
  |  Branch (722:6): [True: 0, False: 2.11k]
  ------------------
  723|      0|    failf(data, "[WS] not a websocket transfer");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  724|      0|    return CURLE_FAILED_INIT;
  725|      0|  }
  726|       |
  727|  2.11k|  if(nbytes) {
  ------------------
  |  Branch (727:6): [True: 1.71k, False: 404]
  ------------------
  728|  1.71k|    size_t nwritten;
  729|  1.71k|    result = Curl_bufq_write(&ctx->buf, (const uint8_t *)buf,
  730|  1.71k|                             nbytes, &nwritten);
  731|  1.71k|    if(result) {
  ------------------
  |  Branch (731:8): [True: 0, False: 1.71k]
  ------------------
  732|      0|      infof(data, "[WS] error adding data to buffer %d", (int)result);
  ------------------
  |  |  143|      0|  do {                               \
  |  |  144|      0|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      0|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
  733|      0|      return result;
  734|      0|    }
  735|  1.71k|  }
  736|       |
  737|  2.11k|  result = Curl_cwriter_flush(data, writer->next);
  ------------------
  |  |  191|  2.11k|  ((w) ? (w)->cwt->do_flush((d), (w)) : CURLE_WRITE_ERROR)
  |  |  ------------------
  |  |  |  Branch (191:4): [True: 2.11k, False: 0]
  |  |  ------------------
  ------------------
  738|  2.11k|  if(result)
  ------------------
  |  Branch (738:6): [True: 0, False: 2.11k]
  ------------------
  739|      0|    goto out;
  740|       |
  741|  5.92k|  while(!Curl_bufq_is_empty(&ctx->buf) && !Curl_cwriter_is_paused(data)) {
  ------------------
  |  |  194|  5.20k|#define Curl_cwriter_is_paused(d)     ((bool)(d)->req.writer.paused)
  ------------------
  |  Branch (741:9): [True: 5.20k, False: 720]
  |  Branch (741:43): [True: 5.20k, False: 0]
  ------------------
  742|  5.20k|    struct ws_cw_dec_ctx pass_ctx;
  743|  5.20k|    pass_ctx.data = data;
  744|  5.20k|    pass_ctx.ws = ws;
  745|  5.20k|    pass_ctx.next_writer = writer->next;
  746|  5.20k|    pass_ctx.cw_type = type;
  747|  5.20k|    result = ws_dec_pass(&ws->dec, data, &ctx->buf,
  748|  5.20k|                         ws_cw_dec_next, &pass_ctx);
  749|  5.20k|    if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (749:8): [True: 1.20k, False: 4.00k]
  ------------------
  750|       |      /* insufficient amount of data, keep it for later.
  751|       |       * we pretend to have written all since we have a copy */
  752|  1.20k|      result = CURLE_OK;
  753|  1.20k|      goto out;
  754|  1.20k|    }
  755|  4.00k|    else if(result) {
  ------------------
  |  Branch (755:13): [True: 198, False: 3.80k]
  ------------------
  756|    198|      failf(data, "[WS] decode payload error %d", (int)result);
  ------------------
  |  |   62|    198|#define failf Curl_failf
  ------------------
  757|    198|      return result;
  758|    198|    }
  759|  5.20k|  }
  760|       |
  761|    720|  if((type & CLIENTWRITE_EOS) && !Curl_bufq_is_empty(&ctx->buf)) {
  ------------------
  |  |   50|    720|#define CLIENTWRITE_EOS     (1 << 7) /* End Of transfer download Stream */
  ------------------
  |  Branch (761:6): [True: 404, False: 316]
  |  Branch (761:34): [True: 0, False: 404]
  ------------------
  762|      0|    failf(data, "[WS] decode ending with %zu frame bytes remaining",
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  763|      0|          Curl_bufq_len(&ctx->buf));
  764|      0|    result = CURLE_RECV_ERROR;
  765|      0|  }
  766|       |
  767|  1.92k|out:
  768|  1.92k|  if(!result) {
  ------------------
  |  Branch (768:6): [True: 1.92k, False: 0]
  ------------------
  769|  1.92k|    result = ws_flush(data, ws, Curl_api_is_in_callback(data));
  770|  1.92k|    if(result == CURLE_AGAIN)
  ------------------
  |  Branch (770:8): [True: 37, False: 1.88k]
  ------------------
  771|     37|      result = CURLE_OK;
  772|  1.92k|  }
  773|  1.92k|  return result;
  774|    720|}
ws.c:ws_cw_dec_next:
  668|  4.57k|{
  669|  4.57k|  struct ws_cw_dec_ctx *ctx = user_data;
  670|  4.57k|  struct Curl_easy *data = ctx->data;
  671|  4.57k|  struct websocket *ws = ctx->ws;
  672|  4.57k|  bool auto_pong = !data->set.ws_no_auto_pong;
  673|  4.57k|  curl_off_t remain;
  674|  4.57k|  CURLcode result;
  675|       |
  676|  4.57k|  (void)frame_age;
  677|  4.57k|  *pnwritten = 0;
  678|  4.57k|  remain = ws_payload_remain(payload_len, payload_offset, buflen);
  679|  4.57k|  if(remain < 0) {
  ------------------
  |  Branch (679:6): [True: 0, False: 4.57k]
  ------------------
  680|      0|    DEBUGASSERT(0); /* parameter mismatch */
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (680:5): [Folded, False: 0]
  |  Branch (680:5): [Folded, False: 0]
  ------------------
  681|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  682|      0|  }
  683|       |
  684|  4.57k|  if(auto_pong && (frame_flags & CURLWS_PING) && !remain) {
  ------------------
  |  |   44|  4.37k|#define CURLWS_PING       (1 << 4)
  ------------------
  |  Branch (684:6): [True: 4.37k, False: 202]
  |  Branch (684:19): [True: 148, False: 4.22k]
  |  Branch (684:50): [True: 124, False: 24]
  ------------------
  685|       |    /* auto-respond to PINGs, only works for single-frame payloads atm */
  686|    124|    CURL_TRC_WS(data, "auto PONG to [PING payload=%" FMT_OFF_T
  ------------------
  |  |  208|    124|  do {                                                  \
  |  |  209|    124|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|    124|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    248|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 124, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 124]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    248|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    124|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|    124|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|    124|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 124]
  |  |  ------------------
  ------------------
  687|    124|                "/%" FMT_OFF_T "]", payload_offset, payload_len);
  688|       |    /* send back the exact same content as a PONG */
  689|    124|    result = ws_enc_add_cntrl(data, ws, buf, buflen, CURLWS_PONG);
  ------------------
  |  |   60|    124|#define CURLWS_PONG       (1 << 6)
  ------------------
  690|    124|    if(result)
  ------------------
  |  Branch (690:8): [True: 0, False: 124]
  ------------------
  691|      0|      return result;
  692|    124|  }
  693|  4.44k|  else if(buflen || !remain) {
  ------------------
  |  Branch (693:11): [True: 926, False: 3.52k]
  |  Branch (693:21): [True: 3.52k, False: 0]
  ------------------
  694|       |    /* forward the decoded frame to the next client writer. */
  695|  4.44k|    update_meta(ws, frame_age, frame_flags, payload_offset,
  696|  4.44k|                payload_len, buflen);
  697|       |
  698|  4.44k|    CURL_TRC_WRITE(data, "[WS] pass %zu decoded bytes", buflen);
  ------------------
  |  |  158|  4.44k|  do {                                                     \
  |  |  159|  4.44k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  329|  4.44k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  8.89k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 4.44k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 4.44k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  8.89k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  4.44k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|  4.44k|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|  4.44k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 4.44k]
  |  |  ------------------
  ------------------
  699|  4.44k|    result = Curl_cwriter_write(data, ctx->next_writer,
  ------------------
  |  |  188|  4.44k|  ((w) ? (w)->cwt->do_write((d), (w), (t), (b), (n)) : CURLE_WRITE_ERROR)
  |  |  ------------------
  |  |  |  Branch (188:4): [True: 4.44k, False: 0]
  |  |  ------------------
  ------------------
  700|  4.44k|                                (ctx->cw_type | CLIENTWRITE_0LEN),
  701|  4.44k|                                (const char *)buf, buflen);
  702|  4.44k|    if(result)
  ------------------
  |  Branch (702:8): [True: 0, False: 4.44k]
  ------------------
  703|      0|      return result;
  704|  4.44k|  }
  705|  4.57k|  *pnwritten = buflen;
  706|  4.57k|  return CURLE_OK;
  707|  4.57k|}
ws.c:ws_payload_remain:
  652|  12.0k|{
  653|  12.0k|  curl_off_t buffered, remain = payload_total - payload_offset;
  654|  12.0k|  if((payload_total < 0) || (payload_offset < 0) || (remain < 0))
  ------------------
  |  Branch (654:6): [True: 0, False: 12.0k]
  |  Branch (654:29): [True: 0, False: 12.0k]
  |  Branch (654:53): [True: 0, False: 12.0k]
  ------------------
  655|      0|    return -1;
  656|  12.0k|  buffered = curlx_uztoso(payload_buffered);
  657|  12.0k|  if(remain < buffered)
  ------------------
  |  Branch (657:6): [True: 0, False: 12.0k]
  ------------------
  658|      0|    return -1;
  659|  12.0k|  return remain - buffered;
  660|  12.0k|}
ws.c:ws_enc_add_cntrl:
  635|    565|{
  636|    565|  (void)data;
  637|    565|  DEBUGASSERT(plen <= WS_MAX_CNTRL_LEN);
  ------------------
  |  | 1083|    565|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (637:3): [True: 0, False: 565]
  |  Branch (637:3): [True: 565, False: 0]
  ------------------
  638|    565|  if(plen > WS_MAX_CNTRL_LEN)
  ------------------
  |  |  107|    565|#define WS_MAX_CNTRL_LEN    125
  ------------------
  |  Branch (638:6): [True: 0, False: 565]
  ------------------
  639|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
  640|       |
  641|       |  /* Overwrite any pending frame with the new one, we keep
  642|       |   * only one. */
  643|    565|  ws->pending.type = frame_type;
  644|    565|  ws->pending.payload_len = plen;
  645|    565|  memcpy(ws->pending.payload, payload, plen);
  646|    565|  return CURLE_OK;
  647|    565|}
ws.c:ws_cw_flush:
  778|  1.61k|{
  779|  1.61k|  CURLcode result = CURLE_OK;
  780|       |
  781|  1.61k|  CURL_TRC_WRITE(data, "[ws] flush");
  ------------------
  |  |  158|  1.61k|  do {                                                     \
  |  |  159|  1.61k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_write)) \
  |  |  ------------------
  |  |  |  |  329|  1.61k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  3.22k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 1.61k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 1.61k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  3.22k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  1.61k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|  1.61k|      Curl_trc_write(data, __VA_ARGS__);                   \
  |  |  161|  1.61k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (161:11): [Folded, False: 1.61k]
  |  |  ------------------
  ------------------
  782|  1.61k|  if(!data->set.ws_raw_mode) {
  ------------------
  |  Branch (782:6): [True: 1.57k, False: 39]
  ------------------
  783|  1.57k|    struct ws_cw_ctx *ctx = writer->ctx;
  784|  1.57k|    struct websocket *ws;
  785|       |
  786|       |    /* Frames should be written one by one, else the meta data does
  787|       |     * not fit. Flush the next writer first, so it does not aggregate
  788|       |     * our flushed data with anything it might have buffered. */
  789|  1.57k|    result = Curl_cwriter_flush(data, writer->next);
  ------------------
  |  |  191|  1.57k|  ((w) ? (w)->cwt->do_flush((d), (w)) : CURLE_WRITE_ERROR)
  |  |  ------------------
  |  |  |  Branch (191:4): [True: 1.57k, False: 0]
  |  |  ------------------
  ------------------
  790|  1.57k|    if(result)
  ------------------
  |  Branch (790:8): [True: 0, False: 1.57k]
  ------------------
  791|      0|      goto out;
  792|       |
  793|  1.57k|    ws = Curl_conn_meta_get(data->conn, CURL_META_PROTO_WS_CONN);
  ------------------
  |  |   33|  1.57k|#define CURL_META_PROTO_WS_CONN   "meta:proto:ws:conn"
  ------------------
  794|  1.57k|    if(!ws) {
  ------------------
  |  Branch (794:8): [True: 0, False: 1.57k]
  ------------------
  795|      0|      failf(data, "[WS] not a websocket transfer");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  796|      0|      return CURLE_FAILED_INIT;
  797|      0|    }
  798|       |
  799|  1.83k|    while(!Curl_bufq_is_empty(&ctx->buf) && !Curl_cwriter_is_paused(data)) {
  ------------------
  |  |  194|    430|#define Curl_cwriter_is_paused(d)     ((bool)(d)->req.writer.paused)
  ------------------
  |  Branch (799:11): [True: 430, False: 1.40k]
  |  Branch (799:45): [True: 430, False: 0]
  ------------------
  800|    430|      struct ws_cw_dec_ctx pass_ctx;
  801|    430|      pass_ctx.data = data;
  802|    430|      pass_ctx.ws = ws;
  803|    430|      pass_ctx.next_writer = writer->next;
  804|    430|      pass_ctx.cw_type = CLIENTWRITE_BODY;
  ------------------
  |  |   43|    430|#define CLIENTWRITE_BODY    (1 << 0) /* non-meta information, BODY */
  ------------------
  805|    430|      result = ws_dec_pass(&ws->dec, data, &ctx->buf,
  806|    430|                           ws_cw_dec_next, &pass_ctx);
  807|    430|      if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (807:10): [True: 14, False: 416]
  ------------------
  808|       |        /* insufficient amount of data, keep it for later.
  809|       |         * we pretend to have written all since we have a copy */
  810|     14|        result = CURLE_OK;
  811|     14|        goto out;
  812|     14|      }
  813|    416|      else if(result) {
  ------------------
  |  Branch (813:15): [True: 161, False: 255]
  ------------------
  814|    161|        failf(data, "[WS] decode payload error %d", (int)result);
  ------------------
  |  |   62|    161|#define failf Curl_failf
  ------------------
  815|    161|        return result;
  816|    161|      }
  817|    430|    }
  818|  1.57k|  }
  819|       |
  820|  1.45k|out:
  821|  1.45k|  if(!result)
  ------------------
  |  Branch (821:6): [True: 1.45k, False: 0]
  ------------------
  822|  1.45k|    result = Curl_cwriter_flush(data, writer->next);
  ------------------
  |  |  191|  1.45k|  ((w) ? (w)->cwt->do_flush((d), (w)) : CURLE_WRITE_ERROR)
  |  |  ------------------
  |  |  |  Branch (191:4): [True: 1.45k, False: 0]
  |  |  ------------------
  ------------------
  823|  1.45k|  return result;
  824|  1.61k|}
ws.c:ws_cw_close:
  605|  1.61k|{
  606|  1.61k|  struct ws_cw_ctx *ctx = writer->ctx;
  607|  1.61k|  (void)data;
  608|  1.61k|  Curl_bufq_free(&ctx->buf);
  609|  1.61k|}
ws.c:cr_ws_init:
 1188|     78|{
 1189|     78|  (void)data;
 1190|     78|  (void)reader;
 1191|     78|  return CURLE_OK;
 1192|     78|}
ws.c:cr_ws_read:
 1204|    153|{
 1205|    153|  struct cr_ws_ctx *ctx = reader->ctx;
 1206|    153|  CURLcode result = CURLE_OK;
 1207|    153|  size_t nread, n;
 1208|    153|  struct websocket *ws;
 1209|    153|  bool eos;
 1210|       |
 1211|    153|  *pnread = 0;
 1212|    153|  if(ctx->eos) {
  ------------------
  |  Branch (1212:6): [True: 0, False: 153]
  ------------------
 1213|      0|    *peos = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1214|      0|    return CURLE_OK;
 1215|      0|  }
 1216|       |
 1217|    153|  ws = Curl_conn_meta_get(data->conn, CURL_META_PROTO_WS_CONN);
  ------------------
  |  |   33|    153|#define CURL_META_PROTO_WS_CONN   "meta:proto:ws:conn"
  ------------------
 1218|    153|  if(!ws) {
  ------------------
  |  Branch (1218:6): [True: 0, False: 153]
  ------------------
 1219|      0|    failf(data, "[WS] not a websocket transfer");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1220|      0|    return CURLE_FAILED_INIT;
 1221|      0|  }
 1222|       |
 1223|    153|  if(Curl_bufq_is_empty(&ws->sendbuf)) {
  ------------------
  |  Branch (1223:6): [True: 153, False: 0]
  ------------------
 1224|    153|    if(ctx->read_eos) {
  ------------------
  |  Branch (1224:8): [True: 0, False: 153]
  ------------------
 1225|      0|      ctx->eos = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1226|      0|      *peos = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1227|      0|      return CURLE_OK;
 1228|      0|    }
 1229|       |
 1230|    153|    if(ws->enc.payload_remain) {
  ------------------
  |  Branch (1230:8): [True: 0, False: 153]
  ------------------
 1231|      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)) \
  |  |  ------------------
  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|      0|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1232|      0|                  ws->enc.payload_remain);
 1233|      0|      blen = curlx_sotouz_range(ws->enc.payload_remain, 0, blen);
 1234|      0|    }
 1235|       |
 1236|    153|    result = Curl_creader_read(data, reader->next, buf, blen, &nread, &eos);
 1237|    153|    if(result)
  ------------------
  |  Branch (1237:8): [True: 0, False: 153]
  ------------------
 1238|      0|      return result;
 1239|    153|    ctx->read_eos = eos;
 1240|       |
 1241|    153|    if(!Curl_bufq_is_empty(&ws->sendbuf)) {
  ------------------
  |  Branch (1241:8): [True: 0, False: 153]
  ------------------
 1242|       |      /* client_read started a new frame, we disregard any eos reported */
 1243|      0|      ctx->read_eos = FALSE;
  ------------------
  |  | 1056|      0|#define FALSE false
  ------------------
 1244|      0|      Curl_creader_clear_eos(data, reader->next);
 1245|      0|    }
 1246|    153|    else if(!nread) {
  ------------------
  |  Branch (1246:13): [True: 76, False: 77]
  ------------------
 1247|       |      /* nothing to convert, return this right away */
 1248|     76|      if(ctx->read_eos)
  ------------------
  |  Branch (1248:10): [True: 76, False: 0]
  ------------------
 1249|     76|        ctx->eos = TRUE;
  ------------------
  |  | 1053|     76|#define TRUE true
  ------------------
 1250|     76|      *pnread = nread;
 1251|     76|      *peos = (bool)ctx->eos;
 1252|     76|      goto out;
 1253|     76|    }
 1254|       |
 1255|     77|    if(!ws->enc.payload_remain && Curl_bufq_is_empty(&ws->sendbuf)) {
  ------------------
  |  Branch (1255:8): [True: 77, False: 0]
  |  Branch (1255:35): [True: 77, False: 0]
  ------------------
 1256|       |      /* encode the data as a new BINARY frame */
 1257|     77|      result = ws_enc_write_head(data, ws, &ws->enc, CURLWS_BINARY, nread,
  ------------------
  |  |   41|     77|#define CURLWS_BINARY     (1 << 1)
  ------------------
 1258|     77|                                 &ws->sendbuf);
 1259|     77|      if(result)
  ------------------
  |  Branch (1259:10): [True: 0, False: 77]
  ------------------
 1260|      0|        goto out;
 1261|     77|    }
 1262|       |
 1263|     77|    result = ws_enc_write_payload(&ws->enc, data, (uint8_t *)buf,
 1264|     77|                                  nread, &ws->sendbuf, &n);
 1265|     77|    if(result)
  ------------------
  |  Branch (1265:8): [True: 0, False: 77]
  ------------------
 1266|      0|      goto out;
 1267|     77|    CURL_TRC_READ(data, "cr_ws_read, added %zu payload, len=%zu", nread, n);
  ------------------
  |  |  163|     77|  do {                                                    \
  |  |  164|     77|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  329|     77|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    154|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 77, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 77]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    154|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|     77|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|     77|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|     77|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 77]
  |  |  ------------------
  ------------------
 1268|     77|  }
 1269|       |
 1270|     77|  DEBUGASSERT(!Curl_bufq_is_empty(&ws->sendbuf));
  ------------------
  |  | 1083|     77|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1270:3): [True: 0, False: 77]
  |  Branch (1270:3): [True: 77, False: 0]
  ------------------
 1271|     77|  *peos = FALSE;
  ------------------
  |  | 1056|     77|#define FALSE false
  ------------------
 1272|     77|  result = Curl_bufq_cread(&ws->sendbuf, buf, blen, pnread);
 1273|     77|  if(!result && ctx->read_eos && Curl_bufq_is_empty(&ws->sendbuf)) {
  ------------------
  |  Branch (1273:6): [True: 77, False: 0]
  |  Branch (1273:17): [True: 0, False: 77]
  |  Branch (1273:34): [True: 0, False: 0]
  ------------------
 1274|       |    /* no more data, read all, done. */
 1275|      0|    ctx->eos = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1276|      0|    *peos = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1277|      0|  }
 1278|       |
 1279|    153|out:
 1280|    153|  CURL_TRC_READ(data, "cr_ws_read(len=%zu) -> %d, nread=%zu, eos=%d",
  ------------------
  |  |  163|    153|  do {                                                    \
  |  |  164|    153|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_read)) \
  |  |  ------------------
  |  |  |  |  329|    153|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    306|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 153, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 153]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    306|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    153|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|    153|      Curl_trc_read(data, __VA_ARGS__);                   \
  |  |  166|    153|  } while(0)
  |  |  ------------------
  |  |  |  Branch (166:11): [Folded, False: 153]
  |  |  ------------------
  ------------------
 1281|    153|                blen, (int)result, *pnread, *peos);
 1282|    153|  return result;
 1283|     77|}
ws.c:ws_enc_write_payload:
 1009|  1.59k|{
 1010|  1.59k|  CURLcode result;
 1011|  1.59k|  size_t i, len, n, remain;
 1012|       |
 1013|  1.59k|  *pnwritten = 0;
 1014|  1.59k|  if(Curl_bufq_is_full(out))
  ------------------
  |  Branch (1014:6): [True: 0, False: 1.59k]
  ------------------
 1015|      0|    return CURLE_AGAIN;
 1016|       |
 1017|       |  /* not the most performant way to do this */
 1018|  1.59k|  len = buflen;
 1019|  1.59k|  remain = curlx_sotouz_range(enc->payload_remain, 0, SIZE_MAX);
 1020|  1.59k|  if(remain < len)
  ------------------
  |  Branch (1020:6): [True: 0, False: 1.59k]
  ------------------
 1021|      0|    len = remain;
 1022|       |
 1023|  1.28M|  for(i = 0; i < len; ++i) {
  ------------------
  |  Branch (1023:14): [True: 1.28M, False: 1.59k]
  ------------------
 1024|  1.28M|    uint8_t c = buf[i] ^ enc->mask[enc->xori];
 1025|  1.28M|    result = Curl_bufq_write(out, &c, 1, &n);
 1026|  1.28M|    if(result) {
  ------------------
  |  Branch (1026:8): [True: 0, False: 1.28M]
  ------------------
 1027|      0|      if((result != CURLE_AGAIN) || !i)
  ------------------
  |  Branch (1027:10): [True: 0, False: 0]
  |  Branch (1027:37): [True: 0, False: 0]
  ------------------
 1028|      0|        return result;
 1029|      0|      break;
 1030|      0|    }
 1031|  1.28M|    enc->xori++;
 1032|  1.28M|    enc->xori &= 3;
 1033|  1.28M|  }
 1034|  1.59k|  *pnwritten = i;
 1035|  1.59k|  enc->payload_remain -= (curl_off_t)i;
 1036|  1.59k|  ws_enc_info(enc, data, "buffered");
 1037|  1.59k|  return CURLE_OK;
 1038|  1.59k|}
ws.c:ws_enc_info:
  840|  3.17k|{
  841|  3.17k|  NOVERBOSE((void)enc);
  ------------------
  |  | 1618|  3.17k|#define NOVERBOSE(x) Curl_nop_stmt
  |  |  ------------------
  |  |  |  | 1191|  3.17k|#define Curl_nop_stmt do {} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1191:35): [Folded, False: 3.17k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  842|  3.17k|  NOVERBOSE((void)msg);
  ------------------
  |  | 1618|  3.17k|#define NOVERBOSE(x) Curl_nop_stmt
  |  |  ------------------
  |  |  |  | 1191|  3.17k|#define Curl_nop_stmt do {} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1191:35): [Folded, False: 3.17k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  843|  3.17k|  CURL_TRC_WS(data, "WS-ENC: %s [%s%s payload=%"
  ------------------
  |  |  208|  3.17k|  do {                                                  \
  |  |  209|  3.17k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|  3.17k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  6.34k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 3.17k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 3.17k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  6.34k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  3.17k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|  3.17k|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  ------------------
  |  |  |  Branch (210:25): [True: 0, False: 0]
  |  |  ------------------
  |  |  211|  3.17k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 3.17k]
  |  |  ------------------
  ------------------
  844|  3.17k|              FMT_OFF_T "/%" FMT_OFF_T "]",
  845|  3.17k|              msg, ws_frame_name_of_op(enc->firstbyte),
  846|  3.17k|              (enc->firstbyte & WSBIT_FIN) ? "" : " NON-FIN",
  847|  3.17k|              enc->payload_len - enc->payload_remain, enc->payload_len);
  848|  3.17k|}
ws.c:cr_ws_close:
 1195|     78|{
 1196|     78|  (void)data;
 1197|     78|  (void)reader;
 1198|     78|}
ws.c:nw_in_recv:
 1585|  3.17k|{
 1586|  3.17k|  struct Curl_easy *data = reader_ctx;
 1587|  3.17k|  return Curl_easy_recv(data, buf, buflen, pnread);
 1588|  3.17k|}
ws.c:ws_dec_pass:
  523|  14.5k|{
  524|  14.5k|  CURLcode result;
  525|       |
  526|  14.5k|  if(Curl_bufq_is_empty(inraw))
  ------------------
  |  Branch (526:6): [True: 0, False: 14.5k]
  ------------------
  527|      0|    return CURLE_AGAIN;
  528|       |
  529|  14.5k|  switch(dec->state) {
  530|  12.7k|  case WS_DEC_INIT:
  ------------------
  |  Branch (530:3): [True: 12.7k, False: 1.83k]
  ------------------
  531|  12.7k|    ws_dec_next_frame(dec);
  532|  12.7k|    dec->state = WS_DEC_HEAD;
  533|  12.7k|    FALLTHROUGH();
  ------------------
  |  |  823|  12.7k|#  define FALLTHROUGH()  __attribute__((fallthrough))
  ------------------
  534|  13.7k|  case WS_DEC_HEAD:
  ------------------
  |  Branch (534:3): [True: 1.01k, False: 13.5k]
  ------------------
  535|  13.7k|    result = ws_dec_read_head(dec, data, inraw);
  536|  13.7k|    if(result) {
  ------------------
  |  Branch (536:8): [True: 2.42k, False: 11.3k]
  ------------------
  537|  2.42k|      if(result != CURLE_AGAIN) {
  ------------------
  |  Branch (537:10): [True: 1.36k, False: 1.06k]
  ------------------
  538|  1.36k|        failf(data, "[WS] decode frame error %d", (int)result);
  ------------------
  |  |   62|  1.36k|#define failf Curl_failf
  ------------------
  539|  1.36k|        break;  /* real error */
  540|  1.36k|      }
  541|       |      /* incomplete ws frame head */
  542|  1.06k|      DEBUGASSERT(Curl_bufq_is_empty(inraw));
  ------------------
  |  | 1083|  1.06k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (542:7): [True: 0, False: 1.06k]
  |  Branch (542:7): [True: 1.06k, False: 0]
  ------------------
  543|  1.06k|      break;
  544|  1.06k|    }
  545|       |    /* head parsing done */
  546|  11.3k|    dec->state = WS_DEC_PAYLOAD;
  547|  11.3k|    if(dec->payload_len == 0) {
  ------------------
  |  Branch (547:8): [True: 9.25k, False: 2.07k]
  ------------------
  548|  9.25k|      size_t nwritten;
  549|  9.25k|      const uint8_t tmp = '\0';
  550|       |      /* special case of a 0 length frame, need to write once */
  551|  9.25k|      result = write_cb(&tmp, 0, dec->frame_age, dec->frame_flags,
  552|  9.25k|                        0, 0, write_ctx, &nwritten);
  553|  9.25k|      if(result)
  ------------------
  |  Branch (553:10): [True: 0, False: 9.25k]
  ------------------
  554|      0|        return result;
  555|  9.25k|      dec->state = WS_DEC_INIT;
  556|  9.25k|      break;
  557|  9.25k|    }
  558|  2.07k|    FALLTHROUGH();
  ------------------
  |  |  823|  2.07k|#  define FALLTHROUGH()  __attribute__((fallthrough))
  ------------------
  559|  2.89k|  case WS_DEC_PAYLOAD:
  ------------------
  |  Branch (559:3): [True: 822, False: 13.7k]
  ------------------
  560|  2.89k|    result = ws_dec_pass_payload(dec, data, inraw, write_cb, write_ctx);
  561|  2.89k|    ws_dec_info(dec, data, "passing");
  562|  2.89k|    if(result)
  ------------------
  |  Branch (562:8): [True: 1.28k, False: 1.60k]
  ------------------
  563|  1.28k|      return result;
  564|       |    /* payload parsing done */
  565|  1.60k|    dec->state = WS_DEC_INIT;
  566|  1.60k|    break;
  567|      0|  default:
  ------------------
  |  Branch (567:3): [True: 0, False: 14.5k]
  ------------------
  568|       |    /* we covered all enums above, but some code analyzers are wimps */
  569|      0|    result = CURLE_FAILED_INIT;
  570|  14.5k|  }
  571|  13.2k|  return result;
  572|  14.5k|}
ws.c:ws_dec_next_frame:
  334|  12.7k|{
  335|  12.7k|  dec->frame_age = 0;
  336|  12.7k|  dec->frame_flags = 0;
  337|  12.7k|  dec->payload_offset = 0;
  338|  12.7k|  dec->payload_len = 0;
  339|  12.7k|  dec->head_len = dec->head_total = 0;
  340|  12.7k|  dec->state = WS_DEC_INIT;
  341|       |  /* dec->cont_flags must be carried over to next frame */
  342|  12.7k|}
ws.c:ws_dec_read_head:
  363|  13.7k|{
  364|  13.7k|  const uint8_t *inbuf;
  365|  13.7k|  size_t inlen;
  366|       |
  367|  28.4k|  while(Curl_bufq_peek(inraw, &inbuf, &inlen)) {
  ------------------
  |  Branch (367:9): [True: 27.4k, False: 1.06k]
  ------------------
  368|  27.4k|    if(dec->head_len == 0) {
  ------------------
  |  Branch (368:8): [True: 12.7k, False: 14.6k]
  ------------------
  369|  12.7k|      dec->head[0] = *inbuf;
  370|  12.7k|      Curl_bufq_skip(inraw, 1);
  371|       |
  372|  12.7k|      dec->frame_flags = ws_frame_firstbyte2flags(data, dec->head[0],
  373|  12.7k|                                                  dec->cont_flags);
  374|  12.7k|      if(!dec->frame_flags) {
  ------------------
  |  Branch (374:10): [True: 1.23k, False: 11.5k]
  ------------------
  375|  1.23k|        ws_dec_reset(dec);
  376|  1.23k|        return CURLE_RECV_ERROR;
  377|  1.23k|      }
  378|       |
  379|       |      /* fragmentation only applies to data frames (text/binary);
  380|       |       * control frames (close/ping/pong) do not affect the CONT status */
  381|  11.5k|      if(dec->frame_flags & (CURLWS_TEXT | CURLWS_BINARY)) {
  ------------------
  |  |   40|  11.5k|#define CURLWS_TEXT       (1 << 0)
  ------------------
                    if(dec->frame_flags & (CURLWS_TEXT | CURLWS_BINARY)) {
  ------------------
  |  |   41|  11.5k|#define CURLWS_BINARY     (1 << 1)
  ------------------
  |  Branch (381:10): [True: 10.6k, False: 832]
  ------------------
  382|  10.6k|        dec->cont_flags = dec->frame_flags;
  383|  10.6k|      }
  384|       |
  385|  11.5k|      dec->head_len = 1;
  386|       |#if 0
  387|       |      ws_dec_info(dec, data, "seeing opcode");
  388|       |#endif
  389|  11.5k|      continue;
  390|  12.7k|    }
  391|  14.6k|    else if(dec->head_len == 1) {
  ------------------
  |  Branch (391:13): [True: 11.4k, False: 3.22k]
  ------------------
  392|  11.4k|      dec->head[1] = *inbuf;
  393|  11.4k|      Curl_bufq_skip(inraw, 1);
  394|  11.4k|      dec->head_len = 2;
  395|       |
  396|  11.4k|      if(dec->head[1] & WSBIT_MASK) {
  ------------------
  |  |   70|  11.4k|#define WSBIT_MASK 0x80
  ------------------
  |  Branch (396:10): [True: 63, False: 11.3k]
  ------------------
  397|       |        /* A client MUST close a connection if it detects a masked frame. */
  398|     63|        failf(data, "[WS] masked input frame");
  ------------------
  |  |   62|     63|#define failf Curl_failf
  ------------------
  399|     63|        ws_dec_reset(dec);
  400|     63|        return CURLE_RECV_ERROR;
  401|     63|      }
  402|  11.3k|      if(dec->frame_flags & CURLWS_PING && dec->head[1] > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |   44|  22.7k|#define CURLWS_PING       (1 << 4)
  ------------------
                    if(dec->frame_flags & CURLWS_PING && dec->head[1] > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |  107|    602|#define WS_MAX_CNTRL_LEN    125
  ------------------
  |  Branch (402:10): [True: 602, False: 10.7k]
  |  Branch (402:44): [True: 21, False: 581]
  ------------------
  403|       |        /* The maximum valid size of PING frames is 125 bytes.
  404|       |           Accepting overlong pings would mean sending equivalent pongs! */
  405|     21|        failf(data, "[WS] received PING frame is too big");
  ------------------
  |  |   62|     21|#define failf Curl_failf
  ------------------
  406|     21|        ws_dec_reset(dec);
  407|     21|        return CURLE_RECV_ERROR;
  408|     21|      }
  409|  11.3k|      if(dec->frame_flags & CURLWS_PONG && dec->head[1] > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |   60|  22.7k|#define CURLWS_PONG       (1 << 6)
  ------------------
                    if(dec->frame_flags & CURLWS_PONG && dec->head[1] > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |  107|    108|#define WS_MAX_CNTRL_LEN    125
  ------------------
  |  Branch (409:10): [True: 108, False: 11.2k]
  |  Branch (409:44): [True: 3, False: 105]
  ------------------
  410|       |        /* The maximum valid size of PONG frames is 125 bytes. */
  411|      3|        failf(data, "[WS] received PONG frame is too big");
  ------------------
  |  |   62|      3|#define failf Curl_failf
  ------------------
  412|      3|        ws_dec_reset(dec);
  413|      3|        return CURLE_RECV_ERROR;
  414|      3|      }
  415|  11.3k|      if(dec->frame_flags & CURLWS_CLOSE && dec->head[1] > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |   43|  22.7k|#define CURLWS_CLOSE      (1 << 3)
  ------------------
                    if(dec->frame_flags & CURLWS_CLOSE && dec->head[1] > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |  107|    108|#define WS_MAX_CNTRL_LEN    125
  ------------------
  |  Branch (415:10): [True: 108, False: 11.2k]
  |  Branch (415:45): [True: 10, False: 98]
  ------------------
  416|     10|        failf(data, "[WS] received CLOSE frame is too big");
  ------------------
  |  |   62|     10|#define failf Curl_failf
  ------------------
  417|     10|        ws_dec_reset(dec);
  418|     10|        return CURLE_RECV_ERROR;
  419|     10|      }
  420|       |
  421|       |      /* How long is the frame head? */
  422|  11.3k|      if(dec->head[1] == 126) {
  ------------------
  |  Branch (422:10): [True: 177, False: 11.1k]
  ------------------
  423|    177|        dec->head_total = 4;
  424|    177|        continue;
  425|    177|      }
  426|  11.1k|      else if(dec->head[1] == 127) {
  ------------------
  |  Branch (426:15): [True: 365, False: 10.8k]
  ------------------
  427|    365|        dec->head_total = 10;
  428|    365|        continue;
  429|    365|      }
  430|  10.8k|      else {
  431|  10.8k|        dec->head_total = 2;
  432|  10.8k|      }
  433|  11.3k|    }
  434|       |
  435|  14.0k|    if(dec->head_len < dec->head_total) {
  ------------------
  |  Branch (435:8): [True: 3.19k, False: 10.8k]
  ------------------
  436|  3.19k|      dec->head[dec->head_len] = *inbuf;
  437|  3.19k|      Curl_bufq_skip(inraw, 1);
  438|  3.19k|      ++dec->head_len;
  439|  3.19k|      if(dec->head_len < dec->head_total) {
  ------------------
  |  Branch (439:10): [True: 2.67k, False: 524]
  ------------------
  440|       |#if 0
  441|       |        ws_dec_info(dec, data, "decoding head");
  442|       |#endif
  443|  2.67k|        continue;
  444|  2.67k|      }
  445|  3.19k|    }
  446|       |    /* got the complete frame head */
  447|  11.3k|    DEBUGASSERT(dec->head_len == dec->head_total);
  ------------------
  |  | 1083|  11.3k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (447:5): [True: 0, False: 11.3k]
  |  Branch (447:5): [True: 11.3k, False: 0]
  ------------------
  448|  11.3k|    switch(dec->head_total) {
  449|  10.8k|    case 2:
  ------------------
  |  Branch (449:5): [True: 10.8k, False: 552]
  ------------------
  450|  10.8k|      dec->payload_len = dec->head[1];
  451|  10.8k|      break;
  452|    176|    case 4:
  ------------------
  |  Branch (452:5): [True: 176, False: 11.1k]
  ------------------
  453|    176|      dec->payload_len = (dec->head[2] << 8) | dec->head[3];
  454|    176|      break;
  455|    376|    case 10:
  ------------------
  |  Branch (455:5): [True: 376, False: 10.9k]
  ------------------
  456|    376|      if(dec->head[2] > 127) {
  ------------------
  |  Branch (456:10): [True: 34, False: 342]
  ------------------
  457|     34|        failf(data, "[WS] frame length longer than 63 bits not supported");
  ------------------
  |  |   62|     34|#define failf Curl_failf
  ------------------
  458|     34|        return CURLE_RECV_ERROR;
  459|     34|      }
  460|    342|      dec->payload_len =
  461|    342|        (curl_off_t)dec->head[2] << 56 |
  462|    342|        (curl_off_t)dec->head[3] << 48 |
  463|    342|        (curl_off_t)dec->head[4] << 40 |
  464|    342|        (curl_off_t)dec->head[5] << 32 |
  465|    342|        (curl_off_t)dec->head[6] << 24 |
  466|    342|        (curl_off_t)dec->head[7] << 16 |
  467|    342|        (curl_off_t)dec->head[8] <<  8 |
  468|    342|        dec->head[9];
  469|    342|      break;
  470|      0|    default:
  ------------------
  |  Branch (470:5): [True: 0, False: 11.3k]
  ------------------
  471|       |      /* this should never happen */
  472|      0|      DEBUGASSERT(0);
  ------------------
  |  | 1083|      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|  11.3k|    }
  476|       |
  477|  11.3k|    dec->frame_age = 0;
  478|  11.3k|    dec->payload_offset = 0;
  479|  11.3k|    ws_dec_info(dec, data, "head");
  480|  11.3k|    return CURLE_OK;
  481|  11.3k|  }
  482|  1.06k|  return CURLE_AGAIN;
  483|  13.7k|}
ws.c:ws_frame_firstbyte2flags:
  152|  12.7k|{
  153|  12.7k|  switch(firstbyte) {
  154|       |  /* 0x00 - intermediate TEXT/BINARY fragment */
  155|  10.1k|  case WSBIT_OPCODE_CONT:
  ------------------
  |  |   60|  10.1k|#define WSBIT_OPCODE_CONT  0x0
  ------------------
  |  Branch (155:3): [True: 10.1k, False: 2.62k]
  ------------------
  156|  10.1k|    if(!(cont_flags & CURLWS_CONT)) {
  ------------------
  |  |   42|  10.1k|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (156:8): [True: 472, False: 9.63k]
  ------------------
  157|    472|      failf(data, "[WS] no ongoing fragmented message to resume");
  ------------------
  |  |   62|    472|#define failf Curl_failf
  ------------------
  158|    472|      return 0;
  159|    472|    }
  160|  9.63k|    return cont_flags | CURLWS_CONT;
  ------------------
  |  |   42|  9.63k|#define CURLWS_CONT       (1 << 2)
  ------------------
  161|       |  /* 0x80 - final TEXT/BIN fragment */
  162|     80|  case (WSBIT_OPCODE_CONT | WSBIT_FIN):
  ------------------
  |  |   60|     80|#define WSBIT_OPCODE_CONT  0x0
  ------------------
                case (WSBIT_OPCODE_CONT | WSBIT_FIN):
  ------------------
  |  |   55|     80|#define WSBIT_FIN          0x80
  ------------------
  |  Branch (162:3): [True: 80, False: 12.6k]
  ------------------
  163|     80|    if(!(cont_flags & CURLWS_CONT)) {
  ------------------
  |  |   42|     80|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (163:8): [True: 45, False: 35]
  ------------------
  164|     45|      failf(data, "[WS] no ongoing fragmented message to resume");
  ------------------
  |  |   62|     45|#define failf Curl_failf
  ------------------
  165|     45|      return 0;
  166|     45|    }
  167|     35|    return cont_flags & ~CURLWS_CONT;
  ------------------
  |  |   42|     35|#define CURLWS_CONT       (1 << 2)
  ------------------
  168|       |  /* 0x01 - first TEXT fragment */
  169|    774|  case WSBIT_OPCODE_TEXT:
  ------------------
  |  |   61|    774|#define WSBIT_OPCODE_TEXT  0x1
  ------------------
  |  Branch (169:3): [True: 774, False: 11.9k]
  ------------------
  170|    774|    if(cont_flags & CURLWS_CONT) {
  ------------------
  |  |   42|    774|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (170:8): [True: 55, False: 719]
  ------------------
  171|     55|      failf(data, "[WS] fragmented message interrupted by new TEXT msg");
  ------------------
  |  |   62|     55|#define failf Curl_failf
  ------------------
  172|     55|      return 0;
  173|     55|    }
  174|    719|    return CURLWS_TEXT | CURLWS_CONT;
  ------------------
  |  |   40|    719|#define CURLWS_TEXT       (1 << 0)
  ------------------
                  return CURLWS_TEXT | CURLWS_CONT;
  ------------------
  |  |   42|    719|#define CURLWS_CONT       (1 << 2)
  ------------------
  175|       |  /* 0x81 - unfragmented TEXT msg */
  176|     93|  case (WSBIT_OPCODE_TEXT | WSBIT_FIN):
  ------------------
  |  |   61|     93|#define WSBIT_OPCODE_TEXT  0x1
  ------------------
                case (WSBIT_OPCODE_TEXT | WSBIT_FIN):
  ------------------
  |  |   55|     93|#define WSBIT_FIN          0x80
  ------------------
  |  Branch (176:3): [True: 93, False: 12.6k]
  ------------------
  177|     93|    if(cont_flags & CURLWS_CONT) {
  ------------------
  |  |   42|     93|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (177:8): [True: 14, False: 79]
  ------------------
  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|     79|    return CURLWS_TEXT;
  ------------------
  |  |   40|     79|#define CURLWS_TEXT       (1 << 0)
  ------------------
  182|       |  /* 0x02 - first BINARY fragment */
  183|    236|  case WSBIT_OPCODE_BIN:
  ------------------
  |  |   62|    236|#define WSBIT_OPCODE_BIN   0x2
  ------------------
  |  Branch (183:3): [True: 236, False: 12.5k]
  ------------------
  184|    236|    if(cont_flags & CURLWS_CONT) {
  ------------------
  |  |   42|    236|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (184:8): [True: 70, False: 166]
  ------------------
  185|     70|      failf(data, "[WS] fragmented message interrupted by new BINARY msg");
  ------------------
  |  |   62|     70|#define failf Curl_failf
  ------------------
  186|     70|      return 0;
  187|     70|    }
  188|    166|    return CURLWS_BINARY | CURLWS_CONT;
  ------------------
  |  |   41|    166|#define CURLWS_BINARY     (1 << 1)
  ------------------
                  return CURLWS_BINARY | CURLWS_CONT;
  ------------------
  |  |   42|    166|#define CURLWS_CONT       (1 << 2)
  ------------------
  189|       |  /* 0x82 - unfragmented BINARY msg */
  190|     55|  case (WSBIT_OPCODE_BIN | WSBIT_FIN):
  ------------------
  |  |   62|     55|#define WSBIT_OPCODE_BIN   0x2
  ------------------
                case (WSBIT_OPCODE_BIN | WSBIT_FIN):
  ------------------
  |  |   55|     55|#define WSBIT_FIN          0x80
  ------------------
  |  Branch (190:3): [True: 55, False: 12.6k]
  ------------------
  191|     55|    if(cont_flags & CURLWS_CONT) {
  ------------------
  |  |   42|     55|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (191:8): [True: 18, False: 37]
  ------------------
  192|     18|      failf(data, "[WS] fragmented message interrupted by new BINARY msg");
  ------------------
  |  |   62|     18|#define failf Curl_failf
  ------------------
  193|     18|      return 0;
  194|     18|    }
  195|     37|    return CURLWS_BINARY;
  ------------------
  |  |   41|     37|#define CURLWS_BINARY     (1 << 1)
  ------------------
  196|       |  /* 0x08 - first CLOSE fragment */
  197|     44|  case WSBIT_OPCODE_CLOSE:
  ------------------
  |  |   63|     44|#define WSBIT_OPCODE_CLOSE 0x8
  ------------------
  |  Branch (197:3): [True: 44, False: 12.6k]
  ------------------
  198|     44|    failf(data, "[WS] invalid fragmented CLOSE frame");
  ------------------
  |  |   62|     44|#define failf Curl_failf
  ------------------
  199|     44|    return 0;
  200|       |  /* 0x88 - unfragmented CLOSE */
  201|    111|  case (WSBIT_OPCODE_CLOSE | WSBIT_FIN):
  ------------------
  |  |   63|    111|#define WSBIT_OPCODE_CLOSE 0x8
  ------------------
                case (WSBIT_OPCODE_CLOSE | WSBIT_FIN):
  ------------------
  |  |   55|    111|#define WSBIT_FIN          0x80
  ------------------
  |  Branch (201:3): [True: 111, False: 12.6k]
  ------------------
  202|    111|    return CURLWS_CLOSE;
  ------------------
  |  |   43|    111|#define CURLWS_CLOSE      (1 << 3)
  ------------------
  203|       |  /* 0x09 - first PING fragment */
  204|     54|  case WSBIT_OPCODE_PING:
  ------------------
  |  |   64|     54|#define WSBIT_OPCODE_PING  0x9
  ------------------
  |  Branch (204:3): [True: 54, False: 12.6k]
  ------------------
  205|     54|    failf(data, "[WS] invalid fragmented PING frame");
  ------------------
  |  |   62|     54|#define failf Curl_failf
  ------------------
  206|     54|    return 0;
  207|       |  /* 0x89 - unfragmented PING */
  208|    607|  case (WSBIT_OPCODE_PING | WSBIT_FIN):
  ------------------
  |  |   64|    607|#define WSBIT_OPCODE_PING  0x9
  ------------------
                case (WSBIT_OPCODE_PING | WSBIT_FIN):
  ------------------
  |  |   55|    607|#define WSBIT_FIN          0x80
  ------------------
  |  Branch (208:3): [True: 607, False: 12.1k]
  ------------------
  209|    607|    return CURLWS_PING;
  ------------------
  |  |   44|    607|#define CURLWS_PING       (1 << 4)
  ------------------
  210|       |  /* 0x0a - first PONG fragment */
  211|     19|  case WSBIT_OPCODE_PONG:
  ------------------
  |  |   65|     19|#define WSBIT_OPCODE_PONG  0xa
  ------------------
  |  Branch (211:3): [True: 19, False: 12.7k]
  ------------------
  212|     19|    failf(data, "[WS] invalid fragmented PONG frame");
  ------------------
  |  |   62|     19|#define failf Curl_failf
  ------------------
  213|     19|    return 0;
  214|       |  /* 0x8a - unfragmented PONG */
  215|    114|  case (WSBIT_OPCODE_PONG | WSBIT_FIN):
  ------------------
  |  |   65|    114|#define WSBIT_OPCODE_PONG  0xa
  ------------------
                case (WSBIT_OPCODE_PONG | WSBIT_FIN):
  ------------------
  |  |   55|    114|#define WSBIT_FIN          0x80
  ------------------
  |  Branch (215:3): [True: 114, False: 12.6k]
  ------------------
  216|    114|    return CURLWS_PONG;
  ------------------
  |  |   60|    114|#define CURLWS_PONG       (1 << 6)
  ------------------
  217|       |  /* invalid first byte */
  218|    441|  default:
  ------------------
  |  Branch (218:3): [True: 441, False: 12.2k]
  ------------------
  219|    441|    if(firstbyte & WSBIT_RSV_MASK)
  ------------------
  |  |   59|    441|#define WSBIT_RSV_MASK     (WSBIT_RSV1 | WSBIT_RSV2 | WSBIT_RSV3)
  |  |  ------------------
  |  |  |  |   56|    441|#define WSBIT_RSV1         0x40
  |  |  ------------------
  |  |               #define WSBIT_RSV_MASK     (WSBIT_RSV1 | WSBIT_RSV2 | WSBIT_RSV3)
  |  |  ------------------
  |  |  |  |   57|    441|#define WSBIT_RSV2         0x20
  |  |  ------------------
  |  |               #define WSBIT_RSV_MASK     (WSBIT_RSV1 | WSBIT_RSV2 | WSBIT_RSV3)
  |  |  ------------------
  |  |  |  |   58|    441|#define WSBIT_RSV3         0x10
  |  |  ------------------
  ------------------
  |  Branch (219:8): [True: 361, False: 80]
  ------------------
  220|       |      /* any of the reserved bits 0x40/0x20/0x10 are set */
  221|    361|      failf(data, "[WS] invalid reserved bits: %02x", firstbyte);
  ------------------
  |  |   62|    361|#define failf Curl_failf
  ------------------
  222|     80|    else
  223|       |      /* any of the reserved opcodes 0x3-0x7 or 0xb-0xf is used */
  224|     80|      failf(data, "[WS] invalid opcode: %02x", firstbyte);
  ------------------
  |  |   62|     80|#define failf Curl_failf
  ------------------
  225|    441|    return 0;
  226|  12.7k|  }
  227|  12.7k|}
ws.c:ws_dec_pass_payload:
  490|  2.89k|{
  491|  2.89k|  const uint8_t *inbuf;
  492|  2.89k|  size_t inlen;
  493|  2.89k|  size_t nwritten;
  494|  2.89k|  CURLcode result;
  495|  2.89k|  size_t remain = curlx_sotouz_range(dec->payload_len - dec->payload_offset,
  496|  2.89k|                                     0, SIZE_MAX);
  497|       |
  498|  5.60k|  while(remain && Curl_bufq_peek(inraw, &inbuf, &inlen) &&
  ------------------
  |  Branch (498:9): [True: 3.99k, False: 1.60k]
  |  Branch (498:19): [True: 2.76k, False: 1.23k]
  ------------------
  499|  2.76k|        !Curl_cwriter_is_paused(data)) {
  ------------------
  |  |  194|  2.76k|#define Curl_cwriter_is_paused(d)     ((bool)(d)->req.writer.paused)
  ------------------
  |  Branch (499:9): [True: 2.76k, False: 0]
  ------------------
  500|  2.76k|    if(inlen > remain)
  ------------------
  |  Branch (500:8): [True: 1.40k, False: 1.35k]
  ------------------
  501|  1.40k|      inlen = remain;
  502|  2.76k|    result = write_cb(inbuf, inlen, dec->frame_age, dec->frame_flags,
  503|  2.76k|                      dec->payload_offset, dec->payload_len,
  504|  2.76k|                      write_ctx, &nwritten);
  505|  2.76k|    if(result)
  ------------------
  |  Branch (505:8): [True: 46, False: 2.71k]
  ------------------
  506|     46|      return result;
  507|  2.71k|    Curl_bufq_skip(inraw, nwritten);
  508|  2.71k|    dec->payload_offset += nwritten;
  509|  2.71k|    remain = curlx_sotouz_range(dec->payload_len - dec->payload_offset,
  510|  2.71k|                                0, SIZE_MAX);
  511|  2.71k|    CURL_TRC_WS(data, "passed %zu bytes payload, %zu remain",
  ------------------
  |  |  208|  2.71k|  do {                                                  \
  |  |  209|  2.71k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|  2.71k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  5.42k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 2.71k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 2.71k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  5.42k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  2.71k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|  2.71k|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|  2.71k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 2.71k]
  |  |  ------------------
  ------------------
  512|  2.71k|                nwritten, remain);
  513|  2.71k|  }
  514|       |
  515|  2.84k|  return remain ? CURLE_AGAIN : CURLE_OK;
  ------------------
  |  Branch (515:10): [True: 1.23k, False: 1.60k]
  ------------------
  516|  2.89k|}
ws.c:ws_client_collect:
 1532|  7.44k|{
 1533|  7.44k|  struct ws_collect *ctx = userp;
 1534|  7.44k|  struct Curl_easy *data = ctx->data;
 1535|  7.44k|  bool auto_pong = !data->set.ws_no_auto_pong;
 1536|  7.44k|  curl_off_t remain;
 1537|  7.44k|  CURLcode result = CURLE_OK;
 1538|       |
 1539|  7.44k|  *pnwritten = 0;
 1540|  7.44k|  remain = ws_payload_remain(payload_len, payload_offset, buflen);
 1541|  7.44k|  if(remain < 0) {
  ------------------
  |  Branch (1541:6): [True: 0, False: 7.44k]
  ------------------
 1542|      0|    DEBUGASSERT(0); /* parameter mismatch */
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1542:5): [Folded, False: 0]
  |  Branch (1542:5): [Folded, False: 0]
  ------------------
 1543|      0|    return CURLE_BAD_FUNCTION_ARGUMENT;
 1544|      0|  }
 1545|       |
 1546|  7.44k|  if(!ctx->bufidx) {
  ------------------
  |  Branch (1546:6): [True: 7.40k, False: 46]
  ------------------
 1547|       |    /* first write */
 1548|  7.40k|    ctx->frame_age = frame_age;
 1549|  7.40k|    ctx->frame_flags = frame_flags;
 1550|  7.40k|    ctx->payload_offset = payload_offset;
 1551|  7.40k|    ctx->payload_len = payload_len;
 1552|  7.40k|  }
 1553|       |
 1554|  7.44k|  if(auto_pong && (frame_flags & CURLWS_PING) && !remain) {
  ------------------
  |  |   44|  7.24k|#define CURLWS_PING       (1 << 4)
  ------------------
  |  Branch (1554:6): [True: 7.24k, False: 204]
  |  Branch (1554:19): [True: 472, False: 6.77k]
  |  Branch (1554:50): [True: 441, False: 31]
  ------------------
 1555|       |    /* auto-respond to PINGs, only works for single-frame payloads atm */
 1556|    441|    CURL_TRC_WS(data, "auto PONG to [PING payload=%" FMT_OFF_T
  ------------------
  |  |  208|    441|  do {                                                  \
  |  |  209|    441|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|    441|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    882|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 441, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 441]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    882|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    441|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|    441|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|    441|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 441]
  |  |  ------------------
  ------------------
 1557|    441|                "/%" FMT_OFF_T "]", payload_offset, payload_len);
 1558|       |    /* send back the exact same content as a PONG */
 1559|    441|    result = ws_enc_add_cntrl(ctx->data, ctx->ws, buf, buflen, CURLWS_PONG);
  ------------------
  |  |   60|    441|#define CURLWS_PONG       (1 << 6)
  ------------------
 1560|    441|    if(result)
  ------------------
  |  Branch (1560:8): [True: 0, False: 441]
  ------------------
 1561|      0|      return result;
 1562|    441|    *pnwritten = buflen;
 1563|    441|  }
 1564|  7.00k|  else {
 1565|  7.00k|    size_t write_len;
 1566|       |
 1567|  7.00k|    ctx->written = TRUE;
  ------------------
  |  | 1053|  7.00k|#define TRUE true
  ------------------
 1568|  7.00k|    DEBUGASSERT(ctx->buflen >= ctx->bufidx);
  ------------------
  |  | 1083|  7.00k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1568:5): [True: 0, False: 7.00k]
  |  Branch (1568:5): [True: 7.00k, False: 0]
  ------------------
 1569|  7.00k|    write_len = CURLMIN(buflen, ctx->buflen - ctx->bufidx);
  ------------------
  |  | 1296|  7.00k|#define CURLMIN(x, y) ((x) < (y) ? (x) : (y))
  |  |  ------------------
  |  |  |  Branch (1296:24): [True: 6.91k, False: 92]
  |  |  ------------------
  ------------------
 1570|  7.00k|    if(!write_len) {
  ------------------
  |  Branch (1570:8): [True: 5.34k, False: 1.66k]
  ------------------
 1571|  5.34k|      if(!buflen)  /* 0 length write, we accept that */
  ------------------
  |  Branch (1571:10): [True: 5.29k, False: 46]
  ------------------
 1572|  5.29k|        return CURLE_OK;
 1573|     46|      return CURLE_AGAIN;  /* no more space */
 1574|  5.34k|    }
 1575|  1.66k|    memcpy(ctx->buffer + ctx->bufidx, buf, write_len);
 1576|  1.66k|    ctx->bufidx += write_len;
 1577|  1.66k|    *pnwritten = write_len;
 1578|  1.66k|  }
 1579|  2.10k|  return result;
 1580|  7.44k|}
ws.c:ws_dec_info:
  294|  14.7k|{
  295|  14.7k|  NOVERBOSE((void)msg);
  ------------------
  |  | 1618|  14.7k|#define NOVERBOSE(x) Curl_nop_stmt
  |  |  ------------------
  |  |  |  | 1191|  14.7k|#define Curl_nop_stmt do {} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1191:35): [Folded, False: 14.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  296|  14.7k|  switch(dec->head_len) {
  297|      0|  case 0:
  ------------------
  |  Branch (297:3): [True: 0, False: 14.7k]
  ------------------
  298|      0|    break;
  299|    103|  case 1:
  ------------------
  |  Branch (299:3): [True: 103, False: 14.6k]
  ------------------
  300|    103|    CURL_TRC_WS(data, "decoded %s [%s%s]", msg,
  ------------------
  |  |  208|    103|  do {                                                  \
  |  |  209|    103|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|    103|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    206|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 103, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 103]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    206|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    103|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|    103|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  ------------------
  |  |  |  Branch (210:25): [True: 0, False: 0]
  |  |  ------------------
  |  |  211|    103|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 103]
  |  |  ------------------
  ------------------
  301|    103|                ws_frame_name_of_op(dec->head[0]),
  302|    103|                (dec->head[0] & WSBIT_FIN) ? "" : " NON-FINAL");
  303|    103|    break;
  304|  14.6k|  default:
  ------------------
  |  Branch (304:3): [True: 14.6k, False: 103]
  ------------------
  305|  14.6k|    if(dec->head_len < dec->head_total) {
  ------------------
  |  Branch (305:8): [True: 358, False: 14.3k]
  ------------------
  306|    358|      CURL_TRC_WS(data, "decoded %s [%s%s](%d/%d)", msg,
  ------------------
  |  |  208|    358|  do {                                                  \
  |  |  209|    358|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|    358|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    716|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 358, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 358]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    716|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    358|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|    358|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  ------------------
  |  |  |  Branch (210:25): [True: 0, False: 0]
  |  |  ------------------
  |  |  211|    358|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 358]
  |  |  ------------------
  ------------------
  307|    358|                  ws_frame_name_of_op(dec->head[0]),
  308|    358|                  (dec->head[0] & WSBIT_FIN) ? "" : " NON-FINAL",
  309|    358|                  dec->head_len, dec->head_total);
  310|    358|    }
  311|  14.3k|    else {
  312|  14.3k|      CURL_TRC_WS(data, "decoded %s [%s%s payload=%"
  ------------------
  |  |  208|  14.3k|  do {                                                  \
  |  |  209|  14.3k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|  14.3k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  28.6k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 14.3k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 14.3k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  28.6k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  14.3k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|  14.3k|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  ------------------
  |  |  |  Branch (210:25): [True: 0, False: 0]
  |  |  ------------------
  |  |  211|  14.3k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 14.3k]
  |  |  ------------------
  ------------------
  313|  14.3k|                  FMT_OFF_T "/%" FMT_OFF_T "]",
  314|  14.3k|                  msg, ws_frame_name_of_op(dec->head[0]),
  315|  14.3k|                  (dec->head[0] & WSBIT_FIN) ? "" : " NON-FINAL",
  316|  14.3k|                  dec->payload_offset, dec->payload_len);
  317|  14.3k|    }
  318|  14.6k|    break;
  319|  14.7k|  }
  320|  14.7k|}
ws.c:update_meta:
  579|  11.4k|{
  580|  11.4k|  curl_off_t bytesleft = (payload_len - payload_offset - cur_len);
  581|       |
  582|  11.4k|  ws->recvframe.age = frame_age;
  583|  11.4k|  ws->recvframe.flags = frame_flags;
  584|  11.4k|  ws->recvframe.offset = payload_offset;
  585|  11.4k|  ws->recvframe.len = cur_len;
  586|  11.4k|  ws->recvframe.bytesleft = bytesleft;
  587|  11.4k|}
ws.c:ws_enc_add_pending:
 1042|  4.84k|{
 1043|  4.84k|  CURLcode result;
 1044|  4.84k|  size_t n;
 1045|       |
 1046|  4.84k|  if(!ws->pending.type) /* no pending frame here */
  ------------------
  |  Branch (1046:6): [True: 4.35k, False: 493]
  ------------------
 1047|  4.35k|    return CURLE_OK;
 1048|    493|  if(ws->enc.payload_remain) /* in the middle of another frame */
  ------------------
  |  Branch (1048:6): [True: 0, False: 493]
  ------------------
 1049|      0|    return CURLE_AGAIN;
 1050|       |
 1051|    493|  result = ws_enc_add_frame(data, &ws->enc, ws->pending.type,
 1052|    493|                            (curl_off_t)ws->pending.payload_len,
 1053|    493|                            &ws->sendbuf);
 1054|    493|  if(result) {
  ------------------
  |  Branch (1054:6): [True: 0, False: 493]
  ------------------
 1055|      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)) \
  |  |  ------------------
  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|      0|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1056|      0|                (int)result);
 1057|      0|    goto out;
 1058|      0|  }
 1059|    493|  result = ws_enc_write_payload(&ws->enc, data, ws->pending.payload,
 1060|    493|                                ws->pending.payload_len,
 1061|    493|                                &ws->sendbuf, &n);
 1062|    493|  if(result) {
  ------------------
  |  Branch (1062:6): [True: 0, False: 493]
  ------------------
 1063|      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)) \
  |  |  ------------------
  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|      0|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1064|      0|                (int)result);
 1065|      0|    goto out;
 1066|      0|  }
 1067|    493|  if(n != ws->pending.payload_len) {
  ------------------
  |  Branch (1067:6): [True: 0, False: 493]
  ------------------
 1068|      0|    DEBUGASSERT(0); /* buffer should always be able to take all */
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1068:5): [Folded, False: 0]
  |  Branch (1068:5): [Folded, False: 0]
  ------------------
 1069|      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)) \
  |  |  ------------------
  |  |  |  |  329|      0|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|      0|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|      0|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|      0|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|      0|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|      0|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1070|      0|                n, ws->pending.payload_len);
 1071|      0|    result = CURLE_SEND_ERROR;
 1072|      0|    goto out;
 1073|      0|  }
 1074|       |  /* the frame should be complete now */
 1075|    493|  DEBUGASSERT(!ws->enc.payload_remain);
  ------------------
  |  | 1083|    493|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1075:3): [True: 0, False: 493]
  |  Branch (1075:3): [True: 493, False: 0]
  ------------------
 1076|    493|  memset(&ws->pending, 0, sizeof(ws->pending));
 1077|       |
 1078|    493|out:
 1079|    493|  return result;
 1080|    493|}
ws.c:ws_enc_add_frame:
  889|  2.73k|{
  890|  2.73k|  uint8_t firstb = 0;
  891|  2.73k|  uint8_t head[14];
  892|  2.73k|  CURLcode result;
  893|  2.73k|  size_t hlen, nwritten;
  894|       |
  895|  2.73k|  if(payload_len < 0) {
  ------------------
  |  Branch (895:6): [True: 0, False: 2.73k]
  ------------------
  896|      0|    failf(data, "[WS] starting new frame with negative payload length %"
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  897|      0|                FMT_OFF_T, payload_len);
  ------------------
  |  |  600|      0|#define FMT_OFF_T  CURL_FORMAT_CURL_OFF_T
  |  |  ------------------
  |  |  |  |  341|      0|#    define CURL_FORMAT_CURL_OFF_T     "ld"
  |  |  ------------------
  ------------------
  898|      0|    return CURLE_SEND_ERROR;
  899|      0|  }
  900|       |
  901|  2.73k|  if(enc->payload_remain > 0) {
  ------------------
  |  Branch (901:6): [True: 0, False: 2.73k]
  ------------------
  902|       |    /* trying to write a new frame before the previous one is finished */
  903|      0|    failf(data, "[WS] starting new frame with %" FMT_OFF_T " bytes "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  904|      0|                "from last one remaining to be sent", enc->payload_remain);
  905|      0|    return CURLE_SEND_ERROR;
  906|      0|  }
  907|       |
  908|  2.73k|  result = ws_frame_flags2firstbyte(data, flags, (bool)enc->contfragment,
  909|  2.73k|                                    &firstb);
  910|  2.73k|  if(result)
  ------------------
  |  Branch (910:6): [True: 1.15k, False: 1.57k]
  ------------------
  911|  1.15k|    return result;
  912|       |
  913|       |  /* fragmentation only applies to data frames (text/binary);
  914|       |   * control frames (close/ping/pong) do not affect the CONT status */
  915|  1.57k|  if(flags & (CURLWS_TEXT | CURLWS_BINARY)) {
  ------------------
  |  |   40|  1.57k|#define CURLWS_TEXT       (1 << 0)
  ------------------
                if(flags & (CURLWS_TEXT | CURLWS_BINARY)) {
  ------------------
  |  |   41|  1.57k|#define CURLWS_BINARY     (1 << 1)
  ------------------
  |  Branch (915:6): [True: 736, False: 841]
  ------------------
  916|    736|    enc->contfragment = (curl_bit)((flags & CURLWS_CONT) ? TRUE : FALSE);
  ------------------
  |  |   42|    736|#define CURLWS_CONT       (1 << 2)
  ------------------
                  enc->contfragment = (curl_bit)((flags & CURLWS_CONT) ? TRUE : FALSE);
  ------------------
  |  | 1053|    736|#define TRUE true
  ------------------
                  enc->contfragment = (curl_bit)((flags & CURLWS_CONT) ? TRUE : FALSE);
  ------------------
  |  | 1056|    736|#define FALSE false
  ------------------
  |  Branch (916:36): [True: 146, False: 590]
  ------------------
  917|    736|  }
  918|       |
  919|  1.57k|  if(flags & CURLWS_PING && payload_len > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |   44|  3.15k|#define CURLWS_PING       (1 << 4)
  ------------------
                if(flags & CURLWS_PING && payload_len > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |  107|     66|#define WS_MAX_CNTRL_LEN    125
  ------------------
  |  Branch (919:6): [True: 66, False: 1.51k]
  |  Branch (919:29): [True: 0, False: 66]
  ------------------
  920|      0|    failf(data, "[WS] given PING frame is too big");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  921|      0|    return CURLE_TOO_LARGE;
  922|      0|  }
  923|  1.57k|  if(flags & CURLWS_PONG && payload_len > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |   60|  3.15k|#define CURLWS_PONG       (1 << 6)
  ------------------
                if(flags & CURLWS_PONG && payload_len > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |  107|    554|#define WS_MAX_CNTRL_LEN    125
  ------------------
  |  Branch (923:6): [True: 554, False: 1.02k]
  |  Branch (923:29): [True: 0, False: 554]
  ------------------
  924|      0|    failf(data, "[WS] given PONG frame is too big");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  925|      0|    return CURLE_TOO_LARGE;
  926|      0|  }
  927|  1.57k|  if(flags & CURLWS_CLOSE && payload_len > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |   43|  3.15k|#define CURLWS_CLOSE      (1 << 3)
  ------------------
                if(flags & CURLWS_CLOSE && payload_len > WS_MAX_CNTRL_LEN) {
  ------------------
  |  |  107|     63|#define WS_MAX_CNTRL_LEN    125
  ------------------
  |  Branch (927:6): [True: 63, False: 1.51k]
  |  Branch (927:30): [True: 0, False: 63]
  ------------------
  928|      0|    failf(data, "[WS] given CLOSE frame is too big");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
  929|      0|    return CURLE_TOO_LARGE;
  930|      0|  }
  931|       |
  932|  1.57k|  head[0] = enc->firstbyte = firstb;
  933|  1.57k|  if(payload_len > 65535) {
  ------------------
  |  Branch (933:6): [True: 0, False: 1.57k]
  ------------------
  934|      0|    head[1] = 127 | WSBIT_MASK;
  ------------------
  |  |   70|      0|#define WSBIT_MASK 0x80
  ------------------
  935|      0|    head[2] = (uint8_t)((payload_len >> 56) & 0xff);
  936|      0|    head[3] = (uint8_t)((payload_len >> 48) & 0xff);
  937|      0|    head[4] = (uint8_t)((payload_len >> 40) & 0xff);
  938|      0|    head[5] = (uint8_t)((payload_len >> 32) & 0xff);
  939|      0|    head[6] = (uint8_t)((payload_len >> 24) & 0xff);
  940|      0|    head[7] = (uint8_t)((payload_len >> 16) & 0xff);
  941|      0|    head[8] = (uint8_t)((payload_len >> 8) & 0xff);
  942|      0|    head[9] = (uint8_t)(payload_len & 0xff);
  943|      0|    hlen = 10;
  944|      0|  }
  945|  1.57k|  else if(payload_len >= 126) {
  ------------------
  |  Branch (945:11): [True: 126, False: 1.45k]
  ------------------
  946|    126|    head[1] = 126 | WSBIT_MASK;
  ------------------
  |  |   70|    126|#define WSBIT_MASK 0x80
  ------------------
  947|    126|    head[2] = (uint8_t)((payload_len >> 8) & 0xff);
  948|    126|    head[3] = (uint8_t)(payload_len & 0xff);
  949|    126|    hlen = 4;
  950|    126|  }
  951|  1.45k|  else {
  952|  1.45k|    head[1] = (uint8_t)payload_len | WSBIT_MASK;
  ------------------
  |  |   70|  1.45k|#define WSBIT_MASK 0x80
  ------------------
  953|  1.45k|    hlen = 2;
  954|  1.45k|  }
  955|       |
  956|  1.57k|  enc->payload_remain = enc->payload_len = payload_len;
  957|  1.57k|  ws_enc_info(enc, data, "sending");
  958|       |
  959|       |  /* 4 bytes random */
  960|       |
  961|  1.57k|  result = Curl_rand(data, (uint8_t *)&enc->mask, sizeof(enc->mask));
  ------------------
  |  |   33|  1.57k|#define Curl_rand(a, b, c) Curl_rand_bytes(a, TRUE, b, c)
  |  |  ------------------
  |  |  |  | 1053|  1.57k|#define TRUE true
  |  |  ------------------
  ------------------
  962|  1.57k|  if(result)
  ------------------
  |  Branch (962:6): [True: 0, False: 1.57k]
  ------------------
  963|      0|    return result;
  964|       |
  965|  1.57k|#ifdef DEBUGBUILD
  966|  1.57k|  if(getenv("CURL_WS_FORCE_ZERO_MASK"))
  ------------------
  |  Branch (966:6): [True: 0, False: 1.57k]
  ------------------
  967|       |    /* force the bit mask to 0x00000000, effectively disabling masking */
  968|      0|    memset(&enc->mask, 0, sizeof(enc->mask));
  969|  1.57k|#endif
  970|       |
  971|       |  /* add 4 bytes mask */
  972|  1.57k|  memcpy(&head[hlen], &enc->mask, 4);
  973|  1.57k|  hlen += 4;
  974|       |  /* reset for payload to come */
  975|  1.57k|  enc->xori = 0;
  976|       |
  977|  1.57k|  result = Curl_bufq_write(out, head, hlen, &nwritten);
  978|  1.57k|  if(result)
  ------------------
  |  Branch (978:6): [True: 0, False: 1.57k]
  ------------------
  979|      0|    return result;
  980|  1.57k|  if(nwritten != hlen) {
  ------------------
  |  Branch (980:6): [True: 0, False: 1.57k]
  ------------------
  981|       |    /* We use a bufq with SOFT_LIMIT, writing should always succeed */
  982|      0|    DEBUGASSERT(0);
  ------------------
  |  | 1083|      0|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (982:5): [Folded, False: 0]
  |  Branch (982:5): [Folded, False: 0]
  ------------------
  983|      0|    return CURLE_SEND_ERROR;
  984|      0|  }
  985|  1.57k|  return CURLE_OK;
  986|  1.57k|}
ws.c:ws_frame_flags2firstbyte:
  233|  2.73k|{
  234|  2.73k|  *pfirstbyte = 0;
  235|  2.73k|  switch(flags & ~CURLWS_OFFSET) {
  ------------------
  |  |   45|  2.73k|#define CURLWS_OFFSET     (1 << 5)
  ------------------
  236|    566|  case 0:
  ------------------
  |  Branch (236:3): [True: 566, False: 2.17k]
  ------------------
  237|    566|    if(contfragment) {
  ------------------
  |  Branch (237:8): [True: 82, False: 484]
  ------------------
  238|     82|      CURL_TRC_WS(data, "no flags given; interpreting as continuation "
  ------------------
  |  |  208|     82|  do {                                                  \
  |  |  209|     82|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|     82|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    164|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 82, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 82]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    164|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|     82|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|     82|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|     82|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 82]
  |  |  ------------------
  ------------------
  239|     82|                  "fragment for compatibility");
  240|     82|      *pfirstbyte = (WSBIT_OPCODE_CONT | WSBIT_FIN);
  ------------------
  |  |   60|     82|#define WSBIT_OPCODE_CONT  0x0
  ------------------
                    *pfirstbyte = (WSBIT_OPCODE_CONT | WSBIT_FIN);
  ------------------
  |  |   55|     82|#define WSBIT_FIN          0x80
  ------------------
  241|     82|      return CURLE_OK;
  242|     82|    }
  243|    484|    failf(data, "[WS] no flags given");
  ------------------
  |  |   62|    484|#define failf Curl_failf
  ------------------
  244|    484|    return CURLE_BAD_FUNCTION_ARGUMENT;
  245|    234|  case CURLWS_CONT:
  ------------------
  |  |   42|    234|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (245:3): [True: 234, False: 2.50k]
  ------------------
  246|    234|    if(contfragment) {
  ------------------
  |  Branch (246:8): [True: 76, False: 158]
  ------------------
  247|     76|      infof(data, "[WS] setting CURLWS_CONT flag without message type is "
  ------------------
  |  |  143|     76|  do {                               \
  |  |  144|     76|    if(Curl_trc_is_verbose(data))    \
  |  |  ------------------
  |  |  |  |  322|     76|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (322:4): [True: 76, False: 0]
  |  |  |  |  |  Branch (322:14): [True: 0, False: 76]
  |  |  |  |  ------------------
  |  |  |  |  323|     76|   (!(data)->state.feat ||                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|     76|      Curl_infof(data, __VA_ARGS__); \
  |  |  146|     76|  } while(0)
  |  |  ------------------
  |  |  |  Branch (146:11): [Folded, False: 76]
  |  |  ------------------
  ------------------
  248|     76|                  "supported for compatibility but highly discouraged");
  249|     76|      *pfirstbyte = WSBIT_OPCODE_CONT;
  ------------------
  |  |   60|     76|#define WSBIT_OPCODE_CONT  0x0
  ------------------
  250|     76|      return CURLE_OK;
  251|     76|    }
  252|    158|    failf(data, "[WS] No ongoing fragmented message to continue");
  ------------------
  |  |   62|    158|#define failf Curl_failf
  ------------------
  253|    158|    return CURLE_BAD_FUNCTION_ARGUMENT;
  254|    288|  case CURLWS_TEXT:
  ------------------
  |  |   40|    288|#define CURLWS_TEXT       (1 << 0)
  ------------------
  |  Branch (254:3): [True: 288, False: 2.44k]
  ------------------
  255|    288|    *pfirstbyte = contfragment ? (WSBIT_OPCODE_CONT | WSBIT_FIN)
  ------------------
  |  |   60|     73|#define WSBIT_OPCODE_CONT  0x0
  ------------------
                  *pfirstbyte = contfragment ? (WSBIT_OPCODE_CONT | WSBIT_FIN)
  ------------------
  |  |   55|     73|#define WSBIT_FIN          0x80
  ------------------
  |  Branch (255:19): [True: 73, False: 215]
  ------------------
  256|    288|                               : (WSBIT_OPCODE_TEXT | WSBIT_FIN);
  ------------------
  |  |   61|    215|#define WSBIT_OPCODE_TEXT  0x1
  ------------------
                                             : (WSBIT_OPCODE_TEXT | WSBIT_FIN);
  ------------------
  |  |   55|    215|#define WSBIT_FIN          0x80
  ------------------
  257|    288|    return CURLE_OK;
  258|     76|  case (CURLWS_TEXT | CURLWS_CONT):
  ------------------
  |  |   40|     76|#define CURLWS_TEXT       (1 << 0)
  ------------------
                case (CURLWS_TEXT | CURLWS_CONT):
  ------------------
  |  |   42|     76|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (258:3): [True: 76, False: 2.66k]
  ------------------
  259|     76|    *pfirstbyte = contfragment ? WSBIT_OPCODE_CONT : WSBIT_OPCODE_TEXT;
  ------------------
  |  |   60|      0|#define WSBIT_OPCODE_CONT  0x0
  ------------------
                  *pfirstbyte = contfragment ? WSBIT_OPCODE_CONT : WSBIT_OPCODE_TEXT;
  ------------------
  |  |   61|    152|#define WSBIT_OPCODE_TEXT  0x1
  ------------------
  |  Branch (259:19): [True: 0, False: 76]
  ------------------
  260|     76|    return CURLE_OK;
  261|    302|  case CURLWS_BINARY:
  ------------------
  |  |   41|    302|#define CURLWS_BINARY     (1 << 1)
  ------------------
  |  Branch (261:3): [True: 302, False: 2.43k]
  ------------------
  262|    302|    *pfirstbyte = contfragment ? (WSBIT_OPCODE_CONT | WSBIT_FIN)
  ------------------
  |  |   60|     63|#define WSBIT_OPCODE_CONT  0x0
  ------------------
                  *pfirstbyte = contfragment ? (WSBIT_OPCODE_CONT | WSBIT_FIN)
  ------------------
  |  |   55|     63|#define WSBIT_FIN          0x80
  ------------------
  |  Branch (262:19): [True: 63, False: 239]
  ------------------
  263|    302|                               : (WSBIT_OPCODE_BIN | WSBIT_FIN);
  ------------------
  |  |   62|    239|#define WSBIT_OPCODE_BIN   0x2
  ------------------
                                             : (WSBIT_OPCODE_BIN | WSBIT_FIN);
  ------------------
  |  |   55|    239|#define WSBIT_FIN          0x80
  ------------------
  264|    302|    return CURLE_OK;
  265|     70|  case (CURLWS_BINARY | CURLWS_CONT):
  ------------------
  |  |   41|     70|#define CURLWS_BINARY     (1 << 1)
  ------------------
                case (CURLWS_BINARY | CURLWS_CONT):
  ------------------
  |  |   42|     70|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (265:3): [True: 70, False: 2.66k]
  ------------------
  266|     70|    *pfirstbyte = contfragment ? WSBIT_OPCODE_CONT : WSBIT_OPCODE_BIN;
  ------------------
  |  |   60|      1|#define WSBIT_OPCODE_CONT  0x0
  ------------------
                  *pfirstbyte = contfragment ? WSBIT_OPCODE_CONT : WSBIT_OPCODE_BIN;
  ------------------
  |  |   62|    139|#define WSBIT_OPCODE_BIN   0x2
  ------------------
  |  Branch (266:19): [True: 1, False: 69]
  ------------------
  267|     70|    return CURLE_OK;
  268|     63|  case CURLWS_CLOSE:
  ------------------
  |  |   43|     63|#define CURLWS_CLOSE      (1 << 3)
  ------------------
  |  Branch (268:3): [True: 63, False: 2.67k]
  ------------------
  269|     63|    *pfirstbyte = WSBIT_OPCODE_CLOSE | WSBIT_FIN;
  ------------------
  |  |   63|     63|#define WSBIT_OPCODE_CLOSE 0x8
  ------------------
                  *pfirstbyte = WSBIT_OPCODE_CLOSE | WSBIT_FIN;
  ------------------
  |  |   55|     63|#define WSBIT_FIN          0x80
  ------------------
  270|     63|    return CURLE_OK;
  271|    122|  case (CURLWS_CLOSE | CURLWS_CONT):
  ------------------
  |  |   43|    122|#define CURLWS_CLOSE      (1 << 3)
  ------------------
                case (CURLWS_CLOSE | CURLWS_CONT):
  ------------------
  |  |   42|    122|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (271:3): [True: 122, False: 2.61k]
  ------------------
  272|    122|    failf(data, "[WS] CLOSE frame must not be fragmented");
  ------------------
  |  |   62|    122|#define failf Curl_failf
  ------------------
  273|    122|    return CURLE_BAD_FUNCTION_ARGUMENT;
  274|     66|  case CURLWS_PING:
  ------------------
  |  |   44|     66|#define CURLWS_PING       (1 << 4)
  ------------------
  |  Branch (274:3): [True: 66, False: 2.67k]
  ------------------
  275|     66|    *pfirstbyte = WSBIT_OPCODE_PING | WSBIT_FIN;
  ------------------
  |  |   64|     66|#define WSBIT_OPCODE_PING  0x9
  ------------------
                  *pfirstbyte = WSBIT_OPCODE_PING | WSBIT_FIN;
  ------------------
  |  |   55|     66|#define WSBIT_FIN          0x80
  ------------------
  276|     66|    return CURLE_OK;
  277|    128|  case (CURLWS_PING | CURLWS_CONT):
  ------------------
  |  |   44|    128|#define CURLWS_PING       (1 << 4)
  ------------------
                case (CURLWS_PING | CURLWS_CONT):
  ------------------
  |  |   42|    128|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (277:3): [True: 128, False: 2.60k]
  ------------------
  278|    128|    failf(data, "[WS] PING frame must not be fragmented");
  ------------------
  |  |   62|    128|#define failf Curl_failf
  ------------------
  279|    128|    return CURLE_BAD_FUNCTION_ARGUMENT;
  280|    554|  case CURLWS_PONG:
  ------------------
  |  |   60|    554|#define CURLWS_PONG       (1 << 6)
  ------------------
  |  Branch (280:3): [True: 554, False: 2.18k]
  ------------------
  281|    554|    *pfirstbyte = WSBIT_OPCODE_PONG | WSBIT_FIN;
  ------------------
  |  |   65|    554|#define WSBIT_OPCODE_PONG  0xa
  ------------------
                  *pfirstbyte = WSBIT_OPCODE_PONG | WSBIT_FIN;
  ------------------
  |  |   55|    554|#define WSBIT_FIN          0x80
  ------------------
  282|    554|    return CURLE_OK;
  283|    132|  case (CURLWS_PONG | CURLWS_CONT):
  ------------------
  |  |   60|    132|#define CURLWS_PONG       (1 << 6)
  ------------------
                case (CURLWS_PONG | CURLWS_CONT):
  ------------------
  |  |   42|    132|#define CURLWS_CONT       (1 << 2)
  ------------------
  |  Branch (283:3): [True: 132, False: 2.60k]
  ------------------
  284|    132|    failf(data, "[WS] PONG frame must not be fragmented");
  ------------------
  |  |   62|    132|#define failf Curl_failf
  ------------------
  285|    132|    return CURLE_BAD_FUNCTION_ARGUMENT;
  286|    135|  default:
  ------------------
  |  Branch (286:3): [True: 135, False: 2.60k]
  ------------------
  287|    135|    failf(data, "[WS] unknown flags: %x", flags);
  ------------------
  |  |   62|    135|#define failf Curl_failf
  ------------------
  288|    135|    return CURLE_BAD_FUNCTION_ARGUMENT;
  289|  2.73k|  }
  290|  2.73k|}
ws.c:ws_flush:
 1701|  4.44k|{
 1702|  4.44k|  CURLcode result;
 1703|       |
 1704|       |  /* If there is space, add any pending control frame */
 1705|  4.44k|  if(Curl_bufq_len(&ws->sendbuf) < ws->sendbuf.chunk_size) {
  ------------------
  |  Branch (1705:6): [True: 4.44k, False: 0]
  ------------------
 1706|  4.44k|    result = ws_enc_add_pending(data, ws);
 1707|  4.44k|    if(result && (result != CURLE_AGAIN))
  ------------------
  |  Branch (1707:8): [True: 0, False: 4.44k]
  |  Branch (1707:18): [True: 0, False: 0]
  ------------------
 1708|      0|      return result;
 1709|  4.44k|  }
 1710|       |
 1711|  4.44k|  if(!Curl_bufq_is_empty(&ws->sendbuf)) {
  ------------------
  |  Branch (1711:6): [True: 1.77k, False: 2.66k]
  ------------------
 1712|  1.77k|    const uint8_t *out;
 1713|  1.77k|    size_t outlen, n;
 1714|  1.77k|#ifdef DEBUGBUILD
 1715|       |    /* Simulate a blocking send after this chunk has been sent */
 1716|  1.77k|    bool eagain_next = FALSE;
  ------------------
  |  | 1056|  1.77k|#define FALSE false
  ------------------
 1717|  1.77k|    size_t chunk_egain = 0;
 1718|  1.77k|    const char *p = getenv("CURL_WS_CHUNK_EAGAIN");
 1719|  1.77k|    if(p) {
  ------------------
  |  Branch (1719:8): [True: 0, False: 1.77k]
  ------------------
 1720|      0|      curl_off_t l;
 1721|      0|      if(!curlx_str_number(&p, &l, 1 * 1024 * 1024))
  ------------------
  |  Branch (1721:10): [True: 0, False: 0]
  ------------------
 1722|      0|        chunk_egain = (size_t)l;
 1723|      0|    }
 1724|  1.77k|#endif
 1725|       |
 1726|  3.20k|    while(Curl_bufq_peek(&ws->sendbuf, &out, &outlen)) {
  ------------------
  |  Branch (1726:11): [True: 1.77k, False: 1.42k]
  ------------------
 1727|  1.77k|#ifdef DEBUGBUILD
 1728|  1.77k|      if(eagain_next)
  ------------------
  |  Branch (1728:10): [True: 0, False: 1.77k]
  ------------------
 1729|      0|        return CURLE_AGAIN;
 1730|  1.77k|      if(chunk_egain && (outlen > chunk_egain)) {
  ------------------
  |  Branch (1730:10): [True: 0, False: 1.77k]
  |  Branch (1730:25): [True: 0, False: 0]
  ------------------
 1731|      0|        outlen = chunk_egain;
 1732|      0|        eagain_next = TRUE;
  ------------------
  |  | 1053|      0|#define TRUE true
  ------------------
 1733|      0|      }
 1734|  1.77k|#endif
 1735|  1.77k|      if(blocking) {
  ------------------
  |  Branch (1735:10): [True: 2, False: 1.77k]
  ------------------
 1736|      2|        result = ws_send_raw_blocking(data, ws, (const char *)out, outlen);
 1737|      2|        n = result ? 0 : outlen;
  ------------------
  |  Branch (1737:13): [True: 0, False: 2]
  ------------------
 1738|      2|      }
 1739|  1.77k|      else if(data->set.connect_only || Curl_api_is_in_callback(data))
  ------------------
  |  Branch (1739:15): [True: 1.67k, False: 101]
  |  Branch (1739:41): [True: 0, False: 101]
  ------------------
 1740|  1.67k|        result = Curl_senddata(data, out, outlen, &n);
 1741|    101|      else {
 1742|    101|        result = Curl_xfer_send(data, out, outlen, FALSE, &n);
  ------------------
  |  | 1056|    101|#define FALSE false
  ------------------
 1743|    101|        if(!result && !n && outlen)
  ------------------
  |  Branch (1743:12): [True: 101, False: 0]
  |  Branch (1743:23): [True: 37, False: 64]
  |  Branch (1743:29): [True: 37, False: 0]
  ------------------
 1744|     37|          result = CURLE_AGAIN;
 1745|    101|      }
 1746|       |
 1747|  1.77k|      if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (1747:10): [True: 338, False: 1.44k]
  ------------------
 1748|    338|        CURL_TRC_WS(data, "flush EAGAIN, %zu bytes remain in buffer",
  ------------------
  |  |  208|    338|  do {                                                  \
  |  |  209|    338|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|    338|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    676|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 338, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 338]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    676|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    338|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|    338|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|    338|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 338]
  |  |  ------------------
  ------------------
 1749|    338|                    Curl_bufq_len(&ws->sendbuf));
 1750|    338|        return result;
 1751|    338|      }
 1752|  1.44k|      else if(result) {
  ------------------
  |  Branch (1752:15): [True: 20, False: 1.42k]
  ------------------
 1753|     20|        failf(data, "[WS] flush, write error %d", (int)result);
  ------------------
  |  |   62|     20|#define failf Curl_failf
  ------------------
 1754|     20|        return result;
 1755|     20|      }
 1756|  1.42k|      else {
 1757|  1.42k|        CURL_TRC_WS(data, "flushed %zu bytes", n);
  ------------------
  |  |  208|  1.42k|  do {                                                  \
  |  |  209|  1.42k|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|  1.42k|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  2.84k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 1.42k, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 1.42k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  2.84k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|  1.42k|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|  1.42k|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|  1.42k|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 1.42k]
  |  |  ------------------
  ------------------
 1758|  1.42k|        Curl_bufq_skip(&ws->sendbuf, n);
 1759|  1.42k|      }
 1760|  1.77k|    }
 1761|  1.77k|  }
 1762|  4.08k|  return CURLE_OK;
 1763|  4.44k|}
ws.c:ws_send_raw_blocking:
 1768|     22|{
 1769|     22|  CURLcode result = CURLE_OK;
 1770|     22|  size_t nwritten;
 1771|       |
 1772|     22|  if(!data)
  ------------------
  |  Branch (1772:6): [True: 0, False: 22]
  ------------------
 1773|      0|    return result;
 1774|       |
 1775|     22|  (void)ws;
 1776|     44|  while(buflen) {
  ------------------
  |  Branch (1776:9): [True: 30, False: 14]
  ------------------
 1777|     30|    result = Curl_xfer_send(data, buffer, buflen, FALSE, &nwritten);
  ------------------
  |  | 1056|     30|#define FALSE false
  ------------------
 1778|     30|    if(result)
  ------------------
  |  Branch (1778:8): [True: 0, False: 30]
  ------------------
 1779|      0|      return result;
 1780|     30|    DEBUGASSERT(nwritten <= buflen);
  ------------------
  |  | 1083|     30|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1780:5): [True: 0, False: 30]
  |  Branch (1780:5): [True: 30, False: 0]
  ------------------
 1781|     30|    buffer += nwritten;
 1782|     30|    buflen -= nwritten;
 1783|     30|    if(buflen) {
  ------------------
  |  Branch (1783:8): [True: 16, False: 14]
  ------------------
 1784|     16|      curl_socket_t sock = data->conn->sock[FIRSTSOCKET];
  ------------------
  |  |  233|     16|#define FIRSTSOCKET     0
  ------------------
 1785|     16|      timediff_t left_ms;
 1786|     16|      int ev;
 1787|       |
 1788|     16|      CURL_TRC_WS(data, "ws_send_raw_blocking() partial, %zu left to send",
  ------------------
  |  |  208|     16|  do {                                                  \
  |  |  209|     16|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|     16|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|     32|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 16, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 16]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|     32|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|     16|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|     16|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|     16|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 16]
  |  |  ------------------
  ------------------
 1789|     16|                  buflen);
 1790|     16|      left_ms = Curl_timeleft_ms(data);
 1791|     16|      if(left_ms < 0) {
  ------------------
  |  Branch (1791:10): [True: 8, False: 8]
  ------------------
 1792|      8|        failf(data, "[WS] Timeout waiting for socket becoming writable");
  ------------------
  |  |   62|      8|#define failf Curl_failf
  ------------------
 1793|      8|        return CURLE_SEND_ERROR;
 1794|      8|      }
 1795|       |
 1796|       |      /* POLLOUT socket */
 1797|      8|      if(sock == CURL_SOCKET_BAD)
  ------------------
  |  |  145|      8|#define CURL_SOCKET_BAD (-1)
  ------------------
  |  Branch (1797:10): [True: 0, False: 8]
  ------------------
 1798|      0|        return CURLE_SEND_ERROR;
 1799|      8|      ev = SOCKET_WRITABLE(sock, left_ms ? left_ms : 500);
  ------------------
  |  |   79|     16|  Curl_socket_check(CURL_SOCKET_BAD, CURL_SOCKET_BAD, x, z)
  |  |  ------------------
  |  |  |  |  145|      8|#define CURL_SOCKET_BAD (-1)
  |  |  ------------------
  |  |                 Curl_socket_check(CURL_SOCKET_BAD, CURL_SOCKET_BAD, x, z)
  |  |  ------------------
  |  |  |  |  145|      8|#define CURL_SOCKET_BAD (-1)
  |  |  ------------------
  |  |  |  Branch (79:58): [True: 8, False: 0]
  |  |  ------------------
  ------------------
 1800|      8|      if(ev < 0) {
  ------------------
  |  Branch (1800:10): [True: 0, False: 8]
  ------------------
 1801|      0|        failf(data, "[WS] Error while waiting for socket becoming writable");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1802|      0|        return CURLE_SEND_ERROR;
 1803|      0|      }
 1804|      8|    }
 1805|     30|  }
 1806|     14|  return result;
 1807|     22|}
ws.c:ws_send_raw:
 1811|     28|{
 1812|     28|  struct websocket *ws;
 1813|     28|  CURLcode result;
 1814|       |
 1815|     28|  ws = Curl_conn_meta_get(data->conn, CURL_META_PROTO_WS_CONN);
  ------------------
  |  |   33|     28|#define CURL_META_PROTO_WS_CONN   "meta:proto:ws:conn"
  ------------------
 1816|     28|  if(!ws) {
  ------------------
  |  Branch (1816:6): [True: 0, False: 28]
  ------------------
 1817|      0|    failf(data, "[WS] Not a websocket transfer");
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1818|      0|    return CURLE_SEND_ERROR;
 1819|      0|  }
 1820|     28|  if(!buflen)
  ------------------
  |  Branch (1820:6): [True: 0, False: 28]
  ------------------
 1821|      0|    return CURLE_OK;
 1822|       |
 1823|     28|  if(Curl_api_is_in_callback(data)) {
  ------------------
  |  Branch (1823:6): [True: 20, False: 8]
  ------------------
 1824|       |    /* When invoked from inside callbacks, we do a blocking send as the
 1825|       |     * callback will probably not implement partial writes that may then
 1826|       |     * mess up the ws framing subsequently.
 1827|       |     * We need any pending data to be flushed before sending. */
 1828|     20|    result = ws_flush(data, ws, TRUE);
  ------------------
  |  | 1053|     20|#define TRUE true
  ------------------
 1829|     20|    if(result)
  ------------------
  |  Branch (1829:8): [True: 0, False: 20]
  ------------------
 1830|      0|      return result;
 1831|     20|    result = ws_send_raw_blocking(data, ws, buffer, buflen);
 1832|     20|    if(!result)
  ------------------
  |  Branch (1832:8): [True: 12, False: 8]
  ------------------
 1833|     12|      *pnwritten = buflen;
 1834|     20|  }
 1835|      8|  else {
 1836|       |    /* We need any pending data to be sent or EAGAIN this call. */
 1837|      8|    result = ws_flush(data, ws, FALSE);
  ------------------
  |  | 1056|      8|#define FALSE false
  ------------------
 1838|      8|    if(result)
  ------------------
  |  Branch (1838:8): [True: 0, False: 8]
  ------------------
 1839|      0|      return result;
 1840|      8|    result = Curl_senddata(data, buffer, buflen, pnwritten);
 1841|      8|  }
 1842|       |
 1843|     28|  CURL_TRC_WS(data, "ws_send_raw(len=%zu) -> %d, %zu",
  ------------------
  |  |  208|     28|  do {                                                  \
  |  |  209|     28|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|     28|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|     56|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 28, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 28]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|     56|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|     28|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|     28|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|     28|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 28]
  |  |  ------------------
  ------------------
 1844|     28|              buflen, (int)result, *pnwritten);
 1845|     28|  return result;
 1846|     28|}
ws.c:ws_enc_send:
 1089|  2.08k|{
 1090|  2.08k|  size_t n;
 1091|  2.08k|  CURLcode result = CURLE_OK;
 1092|       |
 1093|  2.08k|  DEBUGASSERT(!data->set.ws_raw_mode);
  ------------------
  |  | 1083|  2.08k|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1093:3): [True: 0, False: 2.08k]
  |  Branch (1093:3): [True: 2.08k, False: 0]
  ------------------
 1094|  2.08k|  *pnsent = 0;
 1095|       |
 1096|  2.08k|  if(ws->enc.payload_remain || !Curl_bufq_is_empty(&ws->sendbuf)) {
  ------------------
  |  Branch (1096:6): [True: 1.28k, False: 797]
  |  Branch (1096:32): [True: 60, False: 737]
  ------------------
 1097|       |    /* a frame is ongoing with payload buffered or more payload
 1098|       |     * that needs to be encoded into the buffer */
 1099|  1.34k|    if(buflen < ws->sendbuf_payload) {
  ------------------
  |  Branch (1099:8): [True: 0, False: 1.34k]
  ------------------
 1100|       |      /* We have been called with LESS buffer data than before. This
 1101|       |       * is not how it is supposed too work. */
 1102|      0|      failf(data, "[WS] curl_ws_send() called with smaller 'buflen' than "
  ------------------
  |  |   62|      0|#define failf Curl_failf
  ------------------
 1103|      0|            "bytes already buffered in previous call, %zu vs %zu",
 1104|      0|            buflen, ws->sendbuf_payload);
 1105|      0|      return CURLE_BAD_FUNCTION_ARGUMENT;
 1106|      0|    }
 1107|  1.34k|    if((curl_off_t)buflen >
  ------------------
  |  Branch (1107:8): [True: 65, False: 1.28k]
  ------------------
 1108|  1.34k|       (ws->enc.payload_remain + (curl_off_t)ws->sendbuf_payload)) {
 1109|       |      /* too large buflen beyond payload length of frame */
 1110|     65|      failf(data, "[WS] unaligned frame size (sending %zu instead of "
  ------------------
  |  |   62|     65|#define failf Curl_failf
  ------------------
 1111|     65|            "%" FMT_OFF_T ")", buflen,
 1112|     65|            (curl_off_t)(ws->enc.payload_remain + ws->sendbuf_payload));
 1113|     65|      return CURLE_BAD_FUNCTION_ARGUMENT;
 1114|     65|    }
 1115|  1.34k|  }
 1116|    737|  else {
 1117|    737|    result = ws_flush(data, ws, Curl_api_is_in_callback(data));
 1118|    737|    if(result)
  ------------------
  |  Branch (1118:8): [True: 0, False: 737]
  ------------------
 1119|      0|      return result;
 1120|       |
 1121|    737|    result = ws_enc_write_head(data, ws, &ws->enc, flags,
 1122|    737|                               (flags & CURLWS_OFFSET) ?
  ------------------
  |  |   45|    737|#define CURLWS_OFFSET     (1 << 5)
  ------------------
  |  Branch (1122:32): [True: 0, False: 737]
  ------------------
 1123|    737|                               fragsize : (curl_off_t)buflen,
 1124|    737|                               &ws->sendbuf);
 1125|    737|    if(result) {
  ------------------
  |  Branch (1125:8): [True: 735, False: 2]
  ------------------
 1126|    735|      CURL_TRC_WS(data, "curl_ws_send(), error writing frame head %d",
  ------------------
  |  |  208|    735|  do {                                                  \
  |  |  209|    735|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|    735|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|  1.47k|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 735, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 735]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|  1.47k|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    735|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|    735|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|    735|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 735]
  |  |  ------------------
  ------------------
 1127|    735|                  (int)result);
 1128|    735|      return result;
 1129|    735|    }
 1130|    737|  }
 1131|       |
 1132|       |  /* While there is either sendbuf to flush OR more payload to encode... */
 1133|  2.28k|  while(!Curl_bufq_is_empty(&ws->sendbuf) || (buflen > ws->sendbuf_payload)) {
  ------------------
  |  Branch (1133:9): [True: 1.22k, False: 1.06k]
  |  Branch (1133:46): [True: 62, False: 1.00k]
  ------------------
 1134|       |    /* Try to add more payload to sendbuf */
 1135|  1.28k|    if(buflen > ws->sendbuf_payload) {
  ------------------
  |  Branch (1135:8): [True: 1.02k, False: 261]
  ------------------
 1136|  1.02k|      size_t prev_len = Curl_bufq_len(&ws->sendbuf);
 1137|  1.02k|      result = ws_enc_write_payload(&ws->enc, data,
 1138|  1.02k|                                    buffer + ws->sendbuf_payload,
 1139|  1.02k|                                    buflen - ws->sendbuf_payload,
 1140|  1.02k|                                    &ws->sendbuf, &n);
 1141|  1.02k|      if(result && (result != CURLE_AGAIN))
  ------------------
  |  Branch (1141:10): [True: 0, False: 1.02k]
  |  Branch (1141:20): [True: 0, False: 0]
  ------------------
 1142|      0|        return result;
 1143|  1.02k|      ws->sendbuf_payload += Curl_bufq_len(&ws->sendbuf) - prev_len;
 1144|  1.02k|      if(!ws->sendbuf_payload) {
  ------------------
  |  Branch (1144:10): [True: 0, False: 1.02k]
  ------------------
 1145|      0|        return CURLE_AGAIN;
 1146|      0|      }
 1147|  1.02k|    }
 1148|       |
 1149|       |    /* flush, blocking when in callback */
 1150|  1.28k|    result = ws_flush(data, ws, Curl_api_is_in_callback(data));
 1151|  1.28k|    if(!result && ws->sendbuf_payload > 0) {
  ------------------
  |  Branch (1151:8): [True: 1.00k, False: 282]
  |  Branch (1151:19): [True: 1.00k, False: 0]
  ------------------
 1152|  1.00k|      *pnsent += ws->sendbuf_payload;
 1153|  1.00k|      buffer += ws->sendbuf_payload;
 1154|  1.00k|      buflen -= ws->sendbuf_payload;
 1155|  1.00k|      ws->sendbuf_payload = 0;
 1156|  1.00k|    }
 1157|    282|    else if(result == CURLE_AGAIN) {
  ------------------
  |  Branch (1157:13): [True: 262, False: 20]
  ------------------
 1158|    262|      if(ws->sendbuf_payload > Curl_bufq_len(&ws->sendbuf)) {
  ------------------
  |  Branch (1158:10): [True: 0, False: 262]
  ------------------
 1159|       |        /* blocked, part of payload bytes remain, report length
 1160|       |         * that we managed to send. */
 1161|      0|        size_t flushed = (ws->sendbuf_payload - Curl_bufq_len(&ws->sendbuf));
 1162|      0|        *pnsent += flushed;
 1163|      0|        ws->sendbuf_payload -= flushed;
 1164|      0|        return CURLE_OK;
 1165|      0|      }
 1166|    262|      else {
 1167|       |        /* blocked before sending headers or 1st payload byte. We cannot report
 1168|       |         * OK on 0-length send (caller counts only payload) and EAGAIN */
 1169|    262|        CURL_TRC_WS(data, "EAGAIN flushing sendbuf, payload_encoded: %zu/%zu",
  ------------------
  |  |  208|    262|  do {                                                  \
  |  |  209|    262|    if(Curl_trc_ft_is_verbose(data, &Curl_trc_feat_ws)) \
  |  |  ------------------
  |  |  |  |  329|    262|  (Curl_trc_is_verbose(data) &&          \
  |  |  |  |  ------------------
  |  |  |  |  |  |  322|    524|  ((data) && (data)->set.verbose &&                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (322:4): [True: 262, False: 0]
  |  |  |  |  |  |  |  Branch (322:14): [True: 0, False: 262]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  323|    524|   (!(data)->state.feat ||                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (323:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  324|      0|    ((data)->state.feat->log_level >= CURL_LOG_LVL_INFO)))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (324:5): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  330|    262|   (ft)->log_level >= CURL_LOG_LVL_INFO)
  |  |  |  |  ------------------
  |  |  |  |  |  |   70|      0|#define CURL_LOG_LVL_INFO  1
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (330:4): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  210|    262|      Curl_trc_ws(data, __VA_ARGS__);                   \
  |  |  211|    262|  } while(0)
  |  |  ------------------
  |  |  |  Branch (211:11): [Folded, False: 262]
  |  |  ------------------
  ------------------
 1170|    262|                    ws->sendbuf_payload, buflen);
 1171|    262|        DEBUGASSERT(*pnsent == 0);
  ------------------
  |  | 1083|    262|#define DEBUGASSERT(x) assert(x)
  ------------------
  |  Branch (1171:9): [True: 0, False: 262]
  |  Branch (1171:9): [True: 262, False: 0]
  ------------------
 1172|    262|        return CURLE_AGAIN;
 1173|    262|      }
 1174|    262|    }
 1175|     20|    else
 1176|     20|      return result;  /* real error sending the data */
 1177|  1.28k|  }
 1178|  1.00k|  return CURLE_OK;
 1179|  1.28k|}
ws.c:ws_enc_write_head:
  994|  2.24k|{
  995|       |  /* starting a new frame, we want a clean sendbuf.
  996|       |   * Any pending control frame we can add now as part of the flush. */
  997|  2.24k|  if(ws->pending.type) {
  ------------------
  |  Branch (997:6): [True: 11, False: 2.23k]
  ------------------
  998|     11|    CURLcode result = ws_enc_add_pending(data, ws);
  999|     11|    if(result)
  ------------------
  |  Branch (999:8): [True: 0, False: 11]
  ------------------
 1000|      0|      return result;
 1001|     11|  }
 1002|  2.24k|  return ws_enc_add_frame(data, enc, flags, payload_len, out);
 1003|  2.24k|}
ws.c:ws_setup_conn:
 1932|  1.97k|{
 1933|       |  /* WebSocket is 1.1 only (for now) */
 1934|  1.97k|  data->state.http_neg.accept_09 = FALSE;
  ------------------
  |  | 1056|  1.97k|#define FALSE false
  ------------------
 1935|  1.97k|  data->state.http_neg.only_10 = FALSE;
  ------------------
  |  | 1056|  1.97k|#define FALSE false
  ------------------
 1936|  1.97k|  data->state.http_neg.wanted = CURL_HTTP_V1x;
  ------------------
  |  |   40|  1.97k|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
 1937|  1.97k|  data->state.http_neg.allowed = CURL_HTTP_V1x;
  ------------------
  |  |   40|  1.97k|#define CURL_HTTP_V1x   (1 << 0)
  ------------------
 1938|  1.97k|  return Curl_http_setup_conn(data, conn);
 1939|  1.97k|}

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

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

freea:
  107|    226|{
  108|       |  /* Check argument.  */
  109|    226|  uintptr_t u = (uintptr_t) p;
  110|    226|  if (u & (sa_alignment_max - 1))
  ------------------
  |  Branch (110:7): [True: 0, False: 226]
  ------------------
  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|    226|  if (u & sa_alignment_max)
  ------------------
  |  Branch (116:7): [True: 0, False: 226]
  ------------------
  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|    226|}

idn2_lookup_ul:
  656|    226|{
  657|    226|  uint8_t *utf8src = NULL;
  658|    226|  int rc;
  659|       |
  660|    226|  if (src)
  ------------------
  |  Branch (660:7): [True: 226, False: 0]
  ------------------
  661|    226|    {
  662|    226|      const char *encoding = locale_charset ();
  663|       |
  664|    226|      utf8src = u8_strconv_from_encoding (src, encoding, iconveh_error);
  665|       |
  666|    226|      if (!utf8src)
  ------------------
  |  Branch (666:11): [True: 226, False: 0]
  ------------------
  667|    226|	{
  668|    226|	  if (errno == ENOMEM)
  ------------------
  |  Branch (668:8): [True: 0, False: 226]
  ------------------
  669|      0|	    return IDN2_MALLOC;
  670|    226|	  return IDN2_ICONV_FAIL;
  671|    226|	}
  672|    226|    }
  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|    226|}

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

c_tolower:
  338|  7.68k|{
  339|  7.68k|  switch (c)
  340|  7.68k|    {
  341|  5.42k|    _C_CTYPE_UPPER:
  ------------------
  |  |  148|      0|#define _C_CTYPE_UPPER _C_CTYPE_LOWER_N ('A' - 'a')
  |  |  ------------------
  |  |  |  |  122|  1.13k|   _C_CTYPE_LOWER_A_THRU_F_N(N): \
  |  |  |  |  ------------------
  |  |  |  |  |  |  119|    678|   case 'a' + (N): case 'b' + (N): case 'c' + (N): case 'd' + (N): \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (119:4): [True: 678, False: 7.00k]
  |  |  |  |  |  |  |  Branch (119:20): [True: 0, False: 7.68k]
  |  |  |  |  |  |  |  Branch (119:36): [True: 0, False: 7.68k]
  |  |  |  |  |  |  |  Branch (119:52): [True: 0, False: 7.68k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  120|  1.13k|   case 'e' + (N): case 'f' + (N)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (120:4): [True: 0, False: 7.68k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (122:4): [True: 452, False: 7.23k]
  |  |  |  |  ------------------
  |  |  |  |  123|  1.58k|   case 'g' + (N): case 'h' + (N): case 'i' + (N): case 'j' + (N): \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (123:4): [True: 0, False: 7.68k]
  |  |  |  |  |  Branch (123:20): [True: 0, False: 7.68k]
  |  |  |  |  |  Branch (123:36): [True: 452, False: 7.23k]
  |  |  |  |  |  Branch (123:52): [True: 0, False: 7.68k]
  |  |  |  |  ------------------
  |  |  |  |  124|  2.48k|   case 'k' + (N): case 'l' + (N): case 'm' + (N): case 'n' + (N): \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (124:4): [True: 0, False: 7.68k]
  |  |  |  |  |  Branch (124:20): [True: 452, False: 7.23k]
  |  |  |  |  |  Branch (124:36): [True: 0, False: 7.68k]
  |  |  |  |  |  Branch (124:52): [True: 452, False: 7.23k]
  |  |  |  |  ------------------
  |  |  |  |  125|  2.93k|   case 'o' + (N): case 'p' + (N): case 'q' + (N): case 'r' + (N): \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (125:4): [True: 0, False: 7.68k]
  |  |  |  |  |  Branch (125:20): [True: 0, False: 7.68k]
  |  |  |  |  |  Branch (125:36): [True: 0, False: 7.68k]
  |  |  |  |  |  Branch (125:52): [True: 452, False: 7.23k]
  |  |  |  |  ------------------
  |  |  |  |  126|  5.42k|   case 's' + (N): case 't' + (N): case 'u' + (N): case 'v' + (N): \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (126:4): [True: 452, False: 7.23k]
  |  |  |  |  |  Branch (126:20): [True: 1.35k, False: 6.32k]
  |  |  |  |  |  Branch (126:36): [True: 678, False: 7.00k]
  |  |  |  |  |  Branch (126:52): [True: 0, False: 7.68k]
  |  |  |  |  ------------------
  |  |  |  |  127|  5.42k|   case 'w' + (N): case 'x' + (N): case 'y' + (N): case 'z' + (N)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (127:4): [True: 0, False: 7.68k]
  |  |  |  |  |  Branch (127:20): [True: 0, False: 7.68k]
  |  |  |  |  |  Branch (127:36): [True: 0, False: 7.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  342|  5.42k|      return c - 'A' + 'a';
  343|  2.26k|    default:
  ------------------
  |  Branch (343:5): [True: 2.26k, False: 5.42k]
  ------------------
  344|  2.26k|      return c;
  345|  7.68k|    }
  346|  7.68k|}
c_isupper:
  313|  1.80k|{
  314|  1.80k|  switch (c)
  315|  1.80k|    {
  316|  1.13k|    _C_CTYPE_UPPER:
  ------------------
  |  |  148|      0|#define _C_CTYPE_UPPER _C_CTYPE_LOWER_N ('A' - 'a')
  |  |  ------------------
  |  |  |  |  122|    226|   _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: 1.80k]
  |  |  |  |  |  |  |  Branch (119:20): [True: 0, False: 1.80k]
  |  |  |  |  |  |  |  Branch (119:36): [True: 0, False: 1.80k]
  |  |  |  |  |  |  |  Branch (119:52): [True: 0, False: 1.80k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  120|    226|   case 'e' + (N): case 'f' + (N)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (120:4): [True: 0, False: 1.80k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (122:4): [True: 226, False: 1.58k]
  |  |  |  |  ------------------
  |  |  |  |  123|    226|   case 'g' + (N): case 'h' + (N): case 'i' + (N): case 'j' + (N): \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (123:4): [True: 0, False: 1.80k]
  |  |  |  |  |  Branch (123:20): [True: 0, False: 1.80k]
  |  |  |  |  |  Branch (123:36): [True: 0, False: 1.80k]
  |  |  |  |  |  Branch (123:52): [True: 0, False: 1.80k]
  |  |  |  |  ------------------
  |  |  |  |  124|    226|   case 'k' + (N): case 'l' + (N): case 'm' + (N): case 'n' + (N): \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (124:4): [True: 0, False: 1.80k]
  |  |  |  |  |  Branch (124:20): [True: 0, False: 1.80k]
  |  |  |  |  |  Branch (124:36): [True: 0, False: 1.80k]
  |  |  |  |  |  Branch (124:52): [True: 0, False: 1.80k]
  |  |  |  |  ------------------
  |  |  |  |  125|    226|   case 'o' + (N): case 'p' + (N): case 'q' + (N): case 'r' + (N): \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (125:4): [True: 0, False: 1.80k]
  |  |  |  |  |  Branch (125:20): [True: 0, False: 1.80k]
  |  |  |  |  |  Branch (125:36): [True: 0, False: 1.80k]
  |  |  |  |  |  Branch (125:52): [True: 0, False: 1.80k]
  |  |  |  |  ------------------
  |  |  |  |  126|  1.13k|   case 's' + (N): case 't' + (N): case 'u' + (N): case 'v' + (N): \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (126:4): [True: 0, False: 1.80k]
  |  |  |  |  |  Branch (126:20): [True: 226, False: 1.58k]
  |  |  |  |  |  Branch (126:36): [True: 678, False: 1.13k]
  |  |  |  |  |  Branch (126:52): [True: 0, False: 1.80k]
  |  |  |  |  ------------------
  |  |  |  |  127|  1.13k|   case 'w' + (N): case 'x' + (N): case 'y' + (N): case 'z' + (N)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (127:4): [True: 0, False: 1.80k]
  |  |  |  |  |  Branch (127:20): [True: 0, False: 1.80k]
  |  |  |  |  |  Branch (127:36): [True: 0, False: 1.80k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  317|  1.13k|      return true;
  318|    678|    default:
  ------------------
  |  Branch (318:5): [True: 678, False: 1.13k]
  ------------------
  319|       |      return false;
  320|  1.80k|    }
  321|  1.80k|}

c_strcasecmp:
   28|    452|{
   29|    452|  register const unsigned char *p1 = (const unsigned char *) s1;
   30|    452|  register const unsigned char *p2 = (const unsigned char *) s2;
   31|    452|  unsigned char c1, c2;
   32|       |
   33|    452|  if (p1 == p2)
  ------------------
  |  Branch (33:7): [True: 0, False: 452]
  ------------------
   34|      0|    return 0;
   35|       |
   36|    452|  do
   37|  3.84k|    {
   38|  3.84k|      c1 = c_tolower (*p1);
   39|  3.84k|      c2 = c_tolower (*p2);
   40|       |
   41|  3.84k|      if (c1 == '\0')
  ------------------
  |  Branch (41:11): [True: 226, False: 3.61k]
  ------------------
   42|    226|        break;
   43|       |
   44|  3.61k|      ++p1;
   45|  3.61k|      ++p2;
   46|  3.61k|    }
   47|  3.61k|  while (c1 == c2);
  ------------------
  |  Branch (47:10): [True: 3.39k, False: 226]
  ------------------
   48|       |
   49|    452|  if (UCHAR_MAX <= INT_MAX)
  ------------------
  |  Branch (49:7): [True: 452, Folded]
  ------------------
   50|    452|    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|    452|}

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

locale_charset:
  832|    226|{
  833|    226|  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|    226|#if HAVE_LANGINFO_CODESET || defined WINDOWS_NATIVE || defined OS2
  843|       |
  844|    226|# if HAVE_LANGINFO_CODESET
  845|       |
  846|       |  /* Most systems support nl_langinfo (CODESET) nowadays.  */
  847|    226|  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|    226|  if (codeset == NULL)
  ------------------
  |  Branch (911:7): [True: 0, False: 226]
  ------------------
  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|    226|  {
 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|    226|      {
 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|    226|        if (codeset[0] == '\0')
  ------------------
  |  Branch (1072:13): [True: 0, False: 226]
  ------------------
 1073|      0|          codeset = "ASCII";
 1074|    226|# endif
 1075|    226|      }
 1076|    226|  }
 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|    226|  return codeset;
 1161|    226|}

iconveh_open:
   48|    226|{
   49|    226|  iconv_t cd;
   50|    226|  iconv_t cd1;
   51|    226|  iconv_t cd2;
   52|       |
   53|    226|  cd = iconv_open (to_codeset, from_codeset);
   54|       |
   55|    226|  if (STRCASEEQ (from_codeset, "UTF-8", 'U','T','F','-','8',0,0,0,0))
  ------------------
  |  |  179|    226|  strcaseeq0 (s1, s2, s20, s21, s22, s23, s24, s25, s26, s27, s28)
  |  |  ------------------
  |  |  |  Branch (179:3): [True: 0, False: 226]
  |  |  ------------------
  ------------------
   56|      0|    cd1 = (iconv_t)(-1);
   57|    226|  else
   58|    226|    {
   59|    226|      cd1 = iconv_open ("UTF-8", from_codeset);
   60|    226|      if (cd1 == (iconv_t)(-1))
  ------------------
  |  Branch (60:11): [True: 0, False: 226]
  ------------------
   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|    226|    }
   69|       |
   70|    226|  if (STRCASEEQ (to_codeset, "UTF-8", 'U','T','F','-','8',0,0,0,0)
  ------------------
  |  |  179|    452|  strcaseeq0 (s1, s2, s20, s21, s22, s23, s24, s25, s26, s27, s28)
  |  |  ------------------
  |  |  |  Branch (179:3): [True: 0, False: 226]
  |  |  ------------------
  ------------------
   71|    226|# if (((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2) \
   72|    226|      && !defined __UCLIBC__) \
   73|    226|     || _LIBICONV_VERSION >= 0x0105 \
   74|    226|     || defined ICONV_SET_TRANSLITERATE
   75|    226|      || c_strcasecmp (to_codeset, "UTF-8//TRANSLIT") == 0
  ------------------
  |  Branch (75:10): [True: 226, False: 0]
  ------------------
   76|    226|# endif
   77|    226|     )
   78|    226|    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|    226|  cdp->cd = cd;
   95|    226|  cdp->cd1 = cd1;
   96|    226|  cdp->cd2 = cd2;
   97|    226|  return 0;
   98|    226|}
iconveh_close:
  102|    226|{
  103|    226|  if (cd->cd2 != (iconv_t)(-1) && iconv_close (cd->cd2) < 0)
  ------------------
  |  Branch (103:7): [True: 0, False: 226]
  |  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|    226|  if (cd->cd1 != (iconv_t)(-1) && iconv_close (cd->cd1) < 0)
  ------------------
  |  Branch (114:7): [True: 226, False: 0]
  |  Branch (114:35): [True: 0, False: 226]
  ------------------
  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|    226|  if (cd->cd != (iconv_t)(-1) && iconv_close (cd->cd) < 0)
  ------------------
  |  Branch (123:7): [True: 226, False: 0]
  |  Branch (123:34): [True: 0, False: 226]
  ------------------
  124|      0|    return -1;
  125|    226|  return 0;
  126|    226|}
mem_cd_iconveh:
 1055|    226|{
 1056|    226|  return mem_cd_iconveh_internal (src, srclen, cd->cd, cd->cd1, cd->cd2,
 1057|    226|                                  handler, 0, offsets, resultp, lengthp);
 1058|    226|}
mem_iconveh:
 1095|    226|{
 1096|    226|  if (srclen == 0)
  ------------------
  |  Branch (1096:7): [True: 0, False: 226]
  ------------------
 1097|      0|    {
 1098|       |      /* Nothing to convert.  */
 1099|      0|      *lengthp = 0;
 1100|      0|      return 0;
 1101|      0|    }
 1102|    226|  else if (offsets == NULL && c_strcasecmp (from_codeset, to_codeset) == 0)
  ------------------
  |  Branch (1102:12): [True: 226, False: 0]
  |  Branch (1102:31): [True: 0, False: 226]
  ------------------
 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|    226|  else
 1123|    226|    {
 1124|    226|#if HAVE_ICONV
 1125|    226|      iconveh_t cd;
 1126|    226|      char *result;
 1127|    226|      size_t length;
 1128|    226|      int retval;
 1129|       |
 1130|    226|      if (iconveh_open (to_codeset, from_codeset, &cd) < 0)
  ------------------
  |  Branch (1130:11): [True: 0, False: 226]
  ------------------
 1131|      0|        return -1;
 1132|       |
 1133|    226|      result = *resultp;
 1134|    226|      length = *lengthp;
 1135|    226|      retval = mem_cd_iconveh (src, srclen, &cd, handler, offsets,
 1136|    226|                               &result, &length);
 1137|       |
 1138|    226|      if (retval < 0)
  ------------------
  |  Branch (1138:11): [True: 226, False: 0]
  ------------------
 1139|    226|        {
 1140|       |          /* Close cd, but preserve the errno from str_cd_iconv.  */
 1141|    226|          int saved_errno = errno;
 1142|    226|          iconveh_close (&cd);
 1143|    226|          errno = saved_errno;
 1144|    226|        }
 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|    226|      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|    226|    }
 1167|    226|}
striconveh.c:mem_cd_iconveh_internal:
  347|    226|{
  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|    226|# 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|    226|  union { unsigned int align; char buf[tmpbufsize]; } tmp;
  357|    226|# define tmpbuf tmp.buf
  358|       |
  359|    226|  char *initial_result;
  360|    226|  char *result;
  361|    226|  size_t allocated;
  362|    226|  size_t length;
  363|    226|  size_t last_length = (size_t)(-1); /* only needed if offsets != NULL */
  364|       |
  365|    226|  if (*resultp != NULL && *lengthp >= sizeof (tmpbuf))
  ------------------
  |  |  357|      0|# define tmpbuf tmp.buf
  ------------------
  |  Branch (365:7): [True: 0, False: 226]
  |  Branch (365:27): [True: 0, False: 0]
  ------------------
  366|      0|    {
  367|      0|      initial_result = *resultp;
  368|      0|      allocated = *lengthp;
  369|      0|    }
  370|    226|  else
  371|    226|    {
  372|    226|      initial_result = tmpbuf;
  ------------------
  |  |  357|    226|# define tmpbuf tmp.buf
  ------------------
  373|    226|      allocated = sizeof (tmpbuf);
  ------------------
  |  |  357|    226|# define tmpbuf tmp.buf
  ------------------
  374|    226|    }
  375|    226|  result = initial_result;
  376|       |
  377|       |  /* Test whether a direct conversion is possible at all.  */
  378|    226|  if (cd == (iconv_t)(-1))
  ------------------
  |  Branch (378:7): [True: 0, False: 226]
  ------------------
  379|      0|    goto indirectly;
  380|       |
  381|    226|  if (offsets != NULL)
  ------------------
  |  Branch (381:7): [True: 0, False: 226]
  ------------------
  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|    226|  length = 0;
  391|       |
  392|       |  /* First, try a direct conversion, and see whether a conversion error
  393|       |     occurs at all.  */
  394|    226|  {
  395|    226|    const char *inptr = src;
  396|    226|    size_t insize = srclen;
  397|       |
  398|       |    /* Set to the initial state.  */
  399|    226|    iconv (cd, NULL, NULL, NULL, NULL);
  400|       |
  401|    244|    while (insize > 0)
  ------------------
  |  Branch (401:12): [True: 244, False: 0]
  ------------------
  402|    244|      {
  403|    244|        char *outptr = result + length;
  404|    244|        size_t outsize = allocated - extra_alloc - length;
  405|    244|        bool incremented;
  406|    244|        size_t res;
  407|    244|        bool grow;
  408|       |
  409|    244|        if (offsets != NULL)
  ------------------
  |  Branch (409:13): [True: 0, False: 244]
  ------------------
  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|    244|        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|    244|          res = iconv_carefully (cd,
  ------------------
  |  |  201|    244|     (*(incremented) = false, \
  |  |  202|    244|      iconv (cd, (ICONV_CONST char **) (inbuf), inbytesleft, outbuf, outbytesleft))
  ------------------
  429|    244|                                 &inptr, &insize,
  430|    244|                                 &outptr, &outsize,
  431|    244|                                 &incremented);
  432|       |
  433|    244|        length = outptr - result;
  434|    244|        grow = (length + extra_alloc > allocated / 2);
  435|    244|        if (res == (size_t)(-1))
  ------------------
  |  Branch (435:13): [True: 244, False: 0]
  ------------------
  436|    244|          {
  437|    244|            if (errno == E2BIG)
  ------------------
  |  Branch (437:17): [True: 18, False: 226]
  ------------------
  438|     18|              grow = true;
  439|    226|            else if (errno == EINVAL)
  ------------------
  |  Branch (439:22): [True: 0, False: 226]
  ------------------
  440|      0|              break;
  441|    226|            else if (errno == EILSEQ && handler != iconveh_error)
  ------------------
  |  Branch (441:22): [True: 226, False: 0]
  |  Branch (441:41): [True: 0, False: 226]
  ------------------
  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|    226|            else
  502|    226|              {
  503|    226|                if (result != initial_result)
  ------------------
  |  Branch (503:21): [True: 10, False: 216]
  ------------------
  504|     10|                  free (result);
  505|    226|                return -1;
  506|    226|              }
  507|    244|          }
  508|     18|        if (insize == 0)
  ------------------
  |  Branch (508:13): [True: 0, False: 18]
  ------------------
  509|      0|          break;
  510|     18|        if (grow)
  ------------------
  |  Branch (510:13): [True: 18, False: 0]
  ------------------
  511|     18|          {
  512|     18|            char *memory;
  513|       |
  514|     18|            allocated = 2 * allocated;
  515|     18|            if (result == initial_result)
  ------------------
  |  Branch (515:17): [True: 10, False: 8]
  ------------------
  516|     10|              memory = (char *) malloc (allocated);
  517|      8|            else
  518|      8|              memory = (char *) realloc (result, allocated);
  519|     18|            if (memory == NULL)
  ------------------
  |  Branch (519:17): [True: 0, False: 18]
  ------------------
  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|     18|            if (result == initial_result)
  ------------------
  |  Branch (526:17): [True: 10, False: 8]
  ------------------
  527|     10|              memcpy (memory, initial_result, length);
  528|     18|            result = memory;
  529|     18|          }
  530|     18|      }
  531|    226|  }
  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|    226|{
  215|    226|  if (srclen == 0)
  ------------------
  |  Branch (215:7): [True: 0, False: 226]
  ------------------
  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|    226|#if (((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2) \
  225|    226|     && !defined __UCLIBC__) \
  226|    226|    || _LIBICONV_VERSION >= 0x0105 \
  227|    226|    || defined ICONV_SET_TRANSLITERATE
  228|    226|  if (transliterate)
  ------------------
  |  Branch (228:7): [True: 226, False: 0]
  ------------------
  229|    226|    {
  230|    226|      int retval;
  231|    226|      size_t len = strlen (to_codeset);
  232|    226|      char *to_codeset_suffixed = (char *) malloca (len + 10 + 1);
  ------------------
  |  |   86|    226|    ((N) < 4032 - (2 * sa_alignment_max - 1)                                   \
  |  |  ------------------
  |  |  |  Branch (86:6): [True: 226, False: 0]
  |  |  ------------------
  |  |   87|    226|     ? (void *) (((uintptr_t) (char *) alloca ((N) + 2 * sa_alignment_max - 1) \
  |  |   88|    226|                  + (2 * sa_alignment_max - 1))                                \
  |  |   89|    226|                 & ~(uintptr_t)(2 * sa_alignment_max - 1))                     \
  |  |   90|    226|     : mmalloca (N))
  ------------------
  233|    226|      if (to_codeset_suffixed == NULL)
  ------------------
  |  Branch (233:11): [True: 0, False: 226]
  ------------------
  234|      0|        {
  235|      0|          errno = ENOMEM;
  236|      0|          return -1;
  237|      0|        }
  238|    226|      memcpy (to_codeset_suffixed, to_codeset, len);
  239|    226|      memcpy (to_codeset_suffixed + len, "//TRANSLIT", 10 + 1);
  240|       |
  241|    226|      retval = mem_iconveha_notranslit (src, srclen,
  242|    226|                                        from_codeset, to_codeset_suffixed,
  243|    226|                                        handler, offsets, resultp, lengthp);
  244|       |
  245|    226|      freea (to_codeset_suffixed);
  246|       |
  247|    226|      return retval;
  248|    226|    }
  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|    226|}
striconveha.c:mem_iconveha_notranslit:
  151|    226|{
  152|    226|  int retval = mem_iconveh (src, srclen, from_codeset, to_codeset, handler,
  153|    226|                            offsets, resultp, lengthp);
  154|    226|  if (retval >= 0 || errno != EINVAL)
  ------------------
  |  Branch (154:7): [True: 0, False: 226]
  |  Branch (154:22): [True: 226, False: 0]
  ------------------
  155|    226|    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|    226|}

u8_strconv_from_encoding:
   21|    226|{
   22|    226|  UNIT *result;
  ------------------
  |  |   31|    226|#define UNIT uint8_t
  ------------------
   23|    226|  size_t length;
   24|       |
   25|    226|  result =
   26|    226|    U_CONV_FROM_ENCODING (fromcode, handler,
  ------------------
  |  |   32|    226|#define U_CONV_FROM_ENCODING u8_conv_from_encoding
  ------------------
   27|    226|                          string, strlen (string) + 1, NULL,
   28|    226|                          NULL, &length);
   29|    226|  if (result == NULL)
  ------------------
  |  Branch (29:7): [True: 226, False: 0]
  ------------------
   30|    226|    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|    226|{
   39|    226|  if (STRCASEEQ (fromcode, "UTF-8", 'U','T','F','-','8',0,0,0,0))
  ------------------
  |  |  179|    226|  strcaseeq0 (s1, s2, s20, s21, s22, s23, s24, s25, s26, s27, s28)
  |  |  ------------------
  |  |  |  Branch (179:3): [True: 0, False: 226]
  |  |  ------------------
  ------------------
   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|    226|  else
   86|    226|    {
   87|    226|      char *result = (char *) resultbuf;
   88|    226|      size_t length = *lengthp;
   89|       |
   90|    226|      if (mem_iconveha (src, srclen, fromcode, "UTF-8", true, handler,
  ------------------
  |  Branch (90:11): [True: 226, False: 0]
  ------------------
   91|    226|                        offsets, &result, &length) < 0)
   92|    226|        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|    226|}

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

_ZN4absl12lts_2024011612log_internal12Check_EQImplIiiEEPNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKT_RKT0_PKc:
  348|  3.28k|                                             const char* exprtext) {     \
  349|  3.28k|    using U1 = CheckOpStreamType<T1>;                                    \
  350|  3.28k|    using U2 = CheckOpStreamType<T2>;                                    \
  351|  3.28k|    return ABSL_PREDICT_TRUE(v1 op v2)                                   \
  ------------------
  |  |  179|  3.28k|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 3.28k, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 3.28k]
  |  |  |  Branch (179:57): [True: 3.28k, False: 0]
  |  |  ------------------
  ------------------
  352|  3.28k|               ? nullptr                                                 \
  353|  3.28k|               : ABSL_LOG_INTERNAL_CHECK_OP_IMPL_RESULT(U1, U2, v1, v2,  \
  ------------------
  |  |  338|      0|  MakeCheckOpString<U1, U2>(v1, v2, exprtext)
  ------------------
  354|  3.28k|                                                        exprtext);       \
  355|  3.28k|  }                                                                      \
_ZN4absl12lts_2024011612log_internal12Check_LTImplIiiEEPNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKT_RKT0_PKc:
  348|  22.4k|                                             const char* exprtext) {     \
  349|  22.4k|    using U1 = CheckOpStreamType<T1>;                                    \
  350|  22.4k|    using U2 = CheckOpStreamType<T2>;                                    \
  351|  22.4k|    return ABSL_PREDICT_TRUE(v1 op v2)                                   \
  ------------------
  |  |  179|  22.4k|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 22.4k, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 22.4k]
  |  |  |  Branch (179:57): [True: 22.4k, False: 0]
  |  |  ------------------
  ------------------
  352|  22.4k|               ? nullptr                                                 \
  353|  22.4k|               : ABSL_LOG_INTERNAL_CHECK_OP_IMPL_RESULT(U1, U2, v1, v2,  \
  ------------------
  |  |  338|      0|  MakeCheckOpString<U1, U2>(v1, v2, exprtext)
  ------------------
  354|  22.4k|                                                        exprtext);       \
  355|  22.4k|  }                                                                      \
_ZN4absl12lts_2024011612log_internal12Check_GEImplIiiEEPNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKT_RKT0_PKc:
  348|  42.7k|                                             const char* exprtext) {     \
  349|  42.7k|    using U1 = CheckOpStreamType<T1>;                                    \
  350|  42.7k|    using U2 = CheckOpStreamType<T2>;                                    \
  351|  42.7k|    return ABSL_PREDICT_TRUE(v1 op v2)                                   \
  ------------------
  |  |  179|  42.7k|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 42.7k, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 42.7k]
  |  |  |  Branch (179:57): [True: 42.7k, False: 0]
  |  |  ------------------
  ------------------
  352|  42.7k|               ? nullptr                                                 \
  353|  42.7k|               : ABSL_LOG_INTERNAL_CHECK_OP_IMPL_RESULT(U1, U2, v1, v2,  \
  ------------------
  |  |  338|      0|  MakeCheckOpString<U1, U2>(v1, v2, exprtext)
  ------------------
  354|  42.7k|                                                        exprtext);       \
  355|  42.7k|  }                                                                      \
_ZN4absl12lts_2024011612log_internal12Check_GTImplIiiEEPNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKT_RKT0_PKc:
  348|     93|                                             const char* exprtext) {     \
  349|     93|    using U1 = CheckOpStreamType<T1>;                                    \
  350|     93|    using U2 = CheckOpStreamType<T2>;                                    \
  351|     93|    return ABSL_PREDICT_TRUE(v1 op v2)                                   \
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  352|     93|               ? nullptr                                                 \
  353|     93|               : ABSL_LOG_INTERNAL_CHECK_OP_IMPL_RESULT(U1, U2, v1, v2,  \
  ------------------
  |  |  338|      0|  MakeCheckOpString<U1, U2>(v1, v2, exprtext)
  ------------------
  354|     93|                                                        exprtext);       \
  355|     93|  }                                                                      \
_ZN4absl12lts_2024011612log_internal12Check_EQImplEiiPKc:
  357|  3.28k|                                             const char* exprtext) {     \
  358|  3.28k|    return name##Impl<int, int>(v1, v2, exprtext);                       \
  359|  3.28k|  }
_ZN4absl12lts_2024011612log_internal12Check_LTImplEiiPKc:
  357|  22.4k|                                             const char* exprtext) {     \
  358|  22.4k|    return name##Impl<int, int>(v1, v2, exprtext);                       \
  359|  22.4k|  }
_ZN4absl12lts_2024011612log_internal12Check_GEImplEiiPKc:
  357|  42.7k|                                             const char* exprtext) {     \
  358|  42.7k|    return name##Impl<int, int>(v1, v2, exprtext);                       \
  359|  42.7k|  }
_ZN4absl12lts_2024011612log_internal12Check_GTImplEiiPKc:
  357|     93|                                             const char* exprtext) {     \
  358|     93|    return name##Impl<int, int>(v1, v2, exprtext);                       \
  359|     93|  }
_ZN4absl12lts_2024011612log_internal21GetReferenceableValueEi:
  399|   138k|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|  27.1k|      : 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|  27.1k|      : string_view(str.data(), str.size(), SkipCheckLengthTag{}) {}

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

_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|  18.8k|      : ptr_(ptr) {}
_ZNK6google8protobuf8internal15TaggedStringPtr9IsDefaultEv:
  144|  20.9k|  inline bool IsDefault() const { return (as_int() & kMask) == kDefault; }
_ZNK6google8protobuf8internal15TaggedStringPtr3GetEv:
  167|  53.2k|  inline std::string* Get() const {
  168|  53.2k|    return reinterpret_cast<std::string*>(as_int() & ~kMask);
  169|  53.2k|  }
_ZNK6google8protobuf8internal15TaggedStringPtr6as_intEv:
  203|   138k|  uintptr_t as_int() const { return reinterpret_cast<uintptr_t>(ptr_); }
_ZN6google8protobuf8internal14ArenaStringPtrC2EPNS0_5ArenaE:
  242|  10.1k|      : tagged_ptr_(&fixed_address_empty_string) {
  243|  10.1k|    if (DebugHardenForceCopyDefaultString()) {
  ------------------
  |  Branch (243:9): [Folded, False: 10.1k]
  ------------------
  244|      0|      Set(absl::string_view(""), arena);
  245|      0|    }
  246|  10.1k|  }
_ZNK6google8protobuf8internal14ArenaStringPtr3GetEv:
  335|  53.0k|  PROTOBUF_NDEBUG_INLINE const std::string& Get() const {
  336|       |    // Unconditionally mask away the tag.
  337|  53.0k|    return *tagged_ptr_.Get();
  338|  53.0k|  }
_ZN6google8protobuf8internal14ArenaStringPtr11InitDefaultEv:
  451|  8.71k|inline void ArenaStringPtr::InitDefault() {
  452|  8.71k|  tagged_ptr_ = TaggedStringPtr(&fixed_address_empty_string);
  453|  8.71k|}

_ZNK6google8protobuf10Descriptor4fileEv:
 2510|    225|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf10Descriptor11field_countEv:
 2510|  1.02M|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf10Descriptor5fieldEi:
 2529|   841k|  inline TYPE CLASS::FIELD(int index) const {              \
 2530|   841k|    ABSL_DCHECK_LE(0, index);                              \
  ------------------
  |  |   78|   841k|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|   841k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|   841k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 841k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|   841k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2531|   841k|    ABSL_DCHECK_LT(index, FIELD##_count());                \
  ------------------
  |  |   80|   841k|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|   841k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|   841k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 841k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|   841k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2532|   841k|    return FIELD##s_ + index;                              \
 2533|   841k|  }
_ZNK6google8protobuf10Descriptor7optionsEv:
 2536|   602k|  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.42M|inline FieldDescriptor::Type FieldDescriptor::type() const {
 2735|  1.42M|  return static_cast<Type>(type_);
 2736|  1.42M|}
_ZNK6google8protobuf15FieldDescriptor11is_repeatedEv:
 2742|  83.9k|inline bool FieldDescriptor::is_repeated() const {
 2743|  83.9k|  ABSL_DCHECK_EQ(is_repeated_, label() == LABEL_REPEATED);
  ------------------
  |  |   74|  83.9k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  83.9k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  83.9k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 83.9k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  83.9k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2744|  83.9k|  return is_repeated_;
 2745|  83.9k|}
_ZNK6google8protobuf19EnumValueDescriptor5indexEv:
 2813|    111|inline int EnumValueDescriptor::index() const {
 2814|    111|  return static_cast<int>(this - type_->values_);
 2815|    111|}
_ZNK6google8protobuf15FieldDescriptor8cpp_typeEv:
 2833|  1.04M|inline FieldDescriptor::CppType FieldDescriptor::cpp_type() const {
 2834|  1.04M|  return kTypeToCppTypeMap[type()];
 2835|  1.04M|}

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

_ZNK6google8protobuf8internal21ExplicitlyConstructedINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEELm8EE3getEv:
   49|  12.9k|  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|  21.8k|  PROTOBUF_NDEBUG_INLINE uint32_t& operator[](int index) {
   42|  21.8k|    return has_bits_[index];
   43|  21.8k|  }
_ZN6google8protobuf8internal7HasBitsILi1EEC2Ev:
   31|  10.3k|  PROTOBUF_NDEBUG_INLINE constexpr HasBits() : has_bits_{} {}
_ZN6google8protobuf8internal7HasBitsILi1EE5ClearEv:
   37|  20.3k|  PROTOBUF_NDEBUG_INLINE void Clear() {
   38|  20.3k|    memset(has_bits_, 0, sizeof(has_bits_));
   39|  20.3k|  }

_ZN6google8protobuf8internal18InternalVisibilityC2Ev:
   38|  18.0k|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|   372k|  const Descriptor* GetDescriptor() const { return GetMetadata().descriptor; }
_ZNK6google8protobuf7Message13GetReflectionEv:
  369|   186k|  const Reflection* GetReflection() const { return GetMetadata().reflection; }

_ZN6google8protobuf8internal10CachedSizeC2Ei:
  173|  10.9k|  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|   756k|  constexpr const ClassData* base() const { return this; }
_ZNK6google8protobuf11MessageLite8GetArenaEv:
  531|   134k|  Arena* GetArena() const { return _internal_metadata_.arena(); }
_ZN6google8protobuf11MessageLite19internal_visibilityEv:
  816|  10.9k|  static constexpr internal::InternalVisibility internal_visibility() {
  817|  10.9k|    return internal::InternalVisibility{};
  818|  10.9k|  }
_ZN6google8protobuf11MessageLiteC2EPNS0_5ArenaE:
  879|  10.9k|  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|  12.9k|PROTOBUF_EXPORT constexpr const std::string& GetEmptyStringAlreadyInited() {
  315|  12.9k|  return fixed_address_empty_string.get();
  316|  12.9k|}
_ZNK6google8protobuf8internal9ClassData4fullEv:
  474|   744k|inline const ClassDataFull& ClassData::full() const {
  475|   744k|  ABSL_DCHECK(!is_lite);
  ------------------
  |  |   47|   744k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   40|   744k|  ABSL_LOG_INTERNAL_CHECK_IMPL(condition, condition_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  1.48M|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|   744k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  1.48M|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  1.48M|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 744k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|   744k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 744k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|   744k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 744k, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  1.48M|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  1.48M|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  476|   744k|  return *static_cast<const ClassDataFull*>(this);
  477|   744k|}
_ZN6google8protobuf11MessageLiteD2Ev:
  511|  98.6k|  PROTOBUF_VIRTUAL ~MessageLite() = default;

_ZN6google8protobuf8internal16InternalMetadataC2EPNS0_5ArenaE:
   46|  10.9k|  explicit InternalMetadata(Arena* arena) {
   47|  10.9k|    ptr_ = reinterpret_cast<intptr_t>(arena);
   48|  10.9k|  }
_ZNK6google8protobuf8internal16InternalMetadata5arenaEv:
   65|   141k|  PROTOBUF_NDEBUG_INLINE Arena* arena() const {
   66|   141k|    if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) {
  ------------------
  |  |  365|   141k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 58, False: 141k]
  |  |  |  Branch (365:54): [Folded, False: 141k]
  |  |  |  Branch (365:63): [True: 58, False: 141k]
  |  |  ------------------
  ------------------
   67|     58|      return PtrValue<ContainerBase>()->arena;
   68|   141k|    } else {
   69|   141k|      return PtrValue<Arena>();
   70|   141k|    }
   71|   141k|  }
_ZNK6google8protobuf8internal16InternalMetadata19have_unknown_fieldsEv:
   73|   307k|  PROTOBUF_NDEBUG_INLINE bool have_unknown_fields() const {
   74|   307k|    return HasUnknownFieldsTag();
   75|   307k|  }
_ZN6google8protobuf8internal16InternalMetadata12InternalSwapEPS2_:
  114|    227|      InternalMetadata* PROTOBUF_RESTRICT other) {
  115|    227|    std::swap(ptr_, other->ptr_);
  116|    227|  }
_ZNK6google8protobuf8internal16InternalMetadata19HasUnknownFieldsTagEv:
  141|   307k|  PROTOBUF_ALWAYS_INLINE bool HasUnknownFieldsTag() const {
  142|   307k|    return ptr_ & kUnknownFieldsTagMask;
  143|   307k|  }
_ZNK6google8protobuf8internal16InternalMetadata8PtrValueINS2_13ContainerBaseEEEPT_v:
  146|     58|  U* PtrValue() const {
  147|     58|    return reinterpret_cast<U*>(ptr_ & kPtrValueMask);
  148|     58|  }
_ZNK6google8protobuf8internal16InternalMetadata8PtrValueINS0_5ArenaEEEPT_v:
  146|   141k|  U* PtrValue() const {
  147|   141k|    return reinterpret_cast<U*>(ptr_ & kPtrValueMask);
  148|   141k|  }
_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|  39.5k|  U* PtrValue() const {
  147|  39.5k|    return reinterpret_cast<U*>(ptr_ & kPtrValueMask);
  148|  39.5k|  }
_ZN6google8protobuf8internal16InternalMetadata6DeleteINS0_15UnknownFieldSetEEEvv:
   58|  98.6k|  void Delete() {
   59|       |    // Note that Delete<> should be called not more than once.
   60|  98.6k|    if (have_unknown_fields()) {
  ------------------
  |  Branch (60:9): [True: 7.07k, False: 91.6k]
  ------------------
   61|  7.07k|      DeleteOutOfLineHelper<T>();
   62|  7.07k|    }
   63|  98.6k|  }
_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|  24.0k|  PROTOBUF_NDEBUG_INLINE void Clear() {
  127|  24.0k|    if (have_unknown_fields()) {
  ------------------
  |  Branch (127:9): [True: 597, False: 23.4k]
  ------------------
  128|    597|      DoClear<T>();
  129|    597|    }
  130|  24.0k|  }

_ZN6google8protobuf8internal11SizedDeleteEPvm:
  139|  26.7k|inline void SizedDelete(void* p, size_t size) {
  140|  26.7k|#if defined(__cpp_sized_deallocation)
  141|  26.7k|  ::operator delete(p, size);
  142|       |#else
  143|       |  // Avoid -Wunused-parameter
  144|       |  (void)size;
  145|       |  ::operator delete(p);
  146|       |#endif
  147|  26.7k|}
_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.39M|inline PROTOBUF_ALWAYS_INLINE void TSanRead(const void*) {}
_ZN6google8protobuf8internal9TSanWriteEPKv:
  366|  57.8k|inline PROTOBUF_ALWAYS_INLINE void TSanWrite(const void*) {}
_ZN6google8protobuf8internal20PrefetchToLocalCacheEPKv:
  371|  1.51M|inline void PrefetchToLocalCache(const void* ptr) {
  372|  1.51M|  absl::PrefetchToLocalCache(ptr);
  373|  1.51M|}

_ZN6google8protobuf8internal20RepeatedPtrFieldBaseC2EPNS0_5ArenaE:
  146|  10.1k|      : tagged_rep_or_elem_(nullptr),
  147|  10.1k|        current_size_(0),
  148|  10.1k|        capacity_proxy_(0),
  149|  10.1k|        arena_(arena) {}
_ZN6google8protobuf8internal20RepeatedPtrFieldBaseD2Ev:
  154|  25.3k|  ~RepeatedPtrFieldBase() {
  155|  25.3k|#ifndef NDEBUG
  156|       |    // Try to trigger segfault / asan failure in non-opt builds if arena_
  157|       |    // lifetime has ended before the destructor.
  158|  25.3k|    if (arena_) (void)arena_->SpaceAllocated();
  ------------------
  |  Branch (158:9): [True: 0, False: 25.3k]
  ------------------
  159|  25.3k|#endif
  160|  25.3k|  }
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase4sizeEv:
  163|  80.6k|  int size() const { return current_size_; }
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase8CapacityEv:
  170|  90.6k|  int Capacity() const { return capacity_proxy_ + kSSOCapacity; }
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase12NeedsDestroyEv:
  239|  29.6k|  inline bool NeedsDestroy() const {
  240|       |    // Either there is an allocated element in SSO buffer or there is an
  241|       |    // allocated Rep.
  242|  29.6k|    return tagged_rep_or_elem_ != nullptr;
  243|  29.6k|  }
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase8raw_dataEv:
  347|  25.5k|  void* const* raw_data() const { return elements(); }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase19ExchangeCurrentSizeEi:
  602|  93.0k|  inline int ExchangeCurrentSize(int new_size) {
  603|  93.0k|    return std::exchange(current_size_, new_size);
  604|  93.0k|  }
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase8elementsEv:
  625|  25.5k|  void* const* elements() const {
  626|  25.5k|    return using_sso() ? &tagged_rep_or_elem_ : +rep()->elements;
  ------------------
  |  Branch (626:12): [True: 17.3k, False: 8.20k]
  ------------------
  627|  25.5k|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase8elementsEv:
  628|  15.6k|  void** elements() {
  629|  15.6k|    return using_sso() ? &tagged_rep_or_elem_ : +rep()->elements;
  ------------------
  |  Branch (629:12): [True: 7.30k, False: 8.31k]
  ------------------
  630|  15.6k|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase10element_atEi:
  632|   172k|  void*& element_at(int index) {
  633|   172k|    if (using_sso()) {
  ------------------
  |  Branch (633:9): [True: 14.5k, False: 158k]
  ------------------
  634|  14.5k|      ABSL_DCHECK_EQ(index, 0);
  ------------------
  |  |   74|  14.5k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   73|  14.5k|  ABSL_LOG_INTERNAL_CHECK_EQ_IMPL(val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   48|  14.5k|  ABSL_LOG_INTERNAL_CHECK_OP(Check_EQ, ==, val1, val1_text, val2, val2_text)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   61|  14.5k|  while (                                                                      \
  |  |  |  |  |  |  |  |   62|  14.5k|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 14.5k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   63|  14.5k|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |  |  |   64|  14.5k|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |  |  |   65|  14.5k|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |  |  |   66|  14.5k|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |  |  |   67|  14.5k|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |  |  |   68|  14.5k|    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|  14.5k|      return tagged_rep_or_elem_;
  636|  14.5k|    }
  637|   158k|    return rep()->elements[index];
  638|   172k|  }
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase10element_atEi:
  639|  99.0k|  const void* element_at(int index) const {
  640|  99.0k|    return const_cast<RepeatedPtrFieldBase*>(this)->element_at(index);
  641|  99.0k|  }
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase14allocated_sizeEv:
  643|  15.5k|  int allocated_size() const {
  644|  15.5k|    return using_sso() ? (tagged_rep_or_elem_ != nullptr ? 1 : 0)
  ------------------
  |  Branch (644:12): [True: 7.29k, False: 8.24k]
  |  Branch (644:27): [True: 7.28k, False: 3]
  ------------------
  645|  15.5k|                       : rep()->allocated_size;
  646|  15.5k|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase3repEv:
  647|   278k|  Rep* rep() {
  648|   278k|    ABSL_DCHECK(!using_sso());
  ------------------
  |  |   47|   278k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   40|   278k|  ABSL_LOG_INTERNAL_CHECK_IMPL(condition, condition_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|   557k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|   278k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|   557k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|   557k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 278k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|   278k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 278k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|   313k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 278k, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 35.2k]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 35.2k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|   557k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|   557k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  649|   278k|    return reinterpret_cast<Rep*>(
  650|   278k|        reinterpret_cast<uintptr_t>(tagged_rep_or_elem_) - 1);
  651|   278k|  }
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase3repEv:
  652|  16.4k|  const Rep* rep() const {
  653|  16.4k|    return const_cast<RepeatedPtrFieldBase*>(this)->rep();
  654|  16.4k|  }
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase9using_ssoEv:
  656|   370k|  bool using_sso() const {
  657|   370k|    return (reinterpret_cast<uintptr_t>(tagged_rep_or_elem_) & 1) == 0;
  658|   370k|  }
_ZN6google8protobuf8internal18GenericTypeHandlerINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE6DeleteEPS9_PNS0_5ArenaE:
  912|  14.6k|  static inline void Delete(Type* value, Arena* arena) {
  913|  14.6k|    if (arena == nullptr) {
  ------------------
  |  Branch (913:9): [True: 14.6k, False: 0]
  ------------------
  914|  14.6k|      delete value;
  915|  14.6k|    }
  916|  14.6k|  }
_ZN6google8protobuf8internal18GenericTypeHandlerINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE5ClearEPS9_:
  917|    354|  static inline void Clear(Type* value) { value->clear(); }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase4castINS1_18GenericTypeHandlerINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEEEEPNT_4TypeEPv:
  661|  29.6k|  static inline Value<TypeHandler>* cast(void* element) {
  662|  29.6k|    return reinterpret_cast<Value<TypeHandler>*>(element);
  663|  29.6k|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase13ClearNonEmptyINS1_18GenericTypeHandlerINS0_11MessageLiteEEEEEvv:
  676|     72|  PROTOBUF_NOINLINE void ClearNonEmpty() {
  677|     72|    const int n = current_size_;
  678|     72|    void* const* elems = elements();
  679|     72|    int i = 0;
  680|     72|    ABSL_DCHECK_GT(n, 0);
  ------------------
  |  |   84|     72|  ABSL_LOG_INTERNAL_DCHECK_GT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   83|     72|  ABSL_LOG_INTERNAL_CHECK_GT_IMPL(val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   58|     72|  ABSL_LOG_INTERNAL_CHECK_OP(Check_GT, >, val1, val1_text, val2, val2_text)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   61|     72|  while (                                                                      \
  |  |  |  |  |  |  |  |   62|     72|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 72]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   63|     72|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |  |  |   64|     72|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |  |  |   65|     72|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |  |  |   66|     72|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |  |  |   67|     72|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |  |  |   68|     72|    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|  3.70k|    do {
  683|  3.70k|      TypeHandler::Clear(cast<TypeHandler>(elems[i++]));
  684|  3.70k|    } while (i < n);
  ------------------
  |  Branch (684:14): [True: 3.63k, False: 72]
  ------------------
  685|     72|    ExchangeCurrentSize(0);
  686|     72|  }
_ZN6google8protobuf8internal18GenericTypeHandlerINS0_11MessageLiteEE5ClearEPS3_:
  851|  3.70k|  static inline void Clear(Type* value) { value->Clear(); }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase4castINS1_18GenericTypeHandlerINS0_11MessageLiteEEEEEPNT_4TypeEPv:
  661|  81.5k|  static inline Value<TypeHandler>* cast(void* element) {
  662|  81.5k|    return reinterpret_cast<Value<TypeHandler>*>(element);
  663|  81.5k|  }
_ZNK6google8protobuf16RepeatedPtrFieldINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE4sizeEv:
 1340|  10.2k|inline int RepeatedPtrField<Element>::size() const {
 1341|  10.2k|  return RepeatedPtrFieldBase::size();
 1342|  10.2k|}
_ZN6google8protobuf16RepeatedPtrFieldINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE5ClearEv:
 1469|     55|inline void RepeatedPtrField<Element>::Clear() {
 1470|     55|  RepeatedPtrFieldBase::Clear<TypeHandler>();
 1471|     55|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase5ClearINS1_18GenericTypeHandlerINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEEEEvv:
  265|     55|  void Clear() {
  266|     55|    const int n = current_size_;
  267|     55|    ABSL_DCHECK_GE(n, 0);
  ------------------
  |  |   82|     55|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   81|     55|  ABSL_LOG_INTERNAL_CHECK_GE_IMPL(val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     55|  ABSL_LOG_INTERNAL_CHECK_OP(Check_GE, >=, val1, val1_text, val2, val2_text)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   61|     55|  while (                                                                      \
  |  |  |  |  |  |  |  |   62|     55|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 55]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   63|     55|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |  |  |   64|     55|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |  |  |   65|     55|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |  |  |   66|     55|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |  |  |   67|     55|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |  |  |   68|     55|    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|     55|    if (n > 0) {
  ------------------
  |  Branch (268:9): [True: 21, False: 34]
  ------------------
  269|     21|      using H = CommonHandler<TypeHandler>;
  270|     21|      ClearNonEmpty<H>();
  271|     21|    }
  272|     55|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase13ClearNonEmptyINS1_18GenericTypeHandlerINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEEEEvv:
  676|     21|  PROTOBUF_NOINLINE void ClearNonEmpty() {
  677|     21|    const int n = current_size_;
  678|     21|    void* const* elems = elements();
  679|     21|    int i = 0;
  680|     21|    ABSL_DCHECK_GT(n, 0);
  ------------------
  |  |   84|     21|  ABSL_LOG_INTERNAL_DCHECK_GT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   83|     21|  ABSL_LOG_INTERNAL_CHECK_GT_IMPL(val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   58|     21|  ABSL_LOG_INTERNAL_CHECK_OP(Check_GT, >, 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)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  681|       |    // do/while loop to avoid initial test because we know n > 0
  682|    354|    do {
  683|    354|      TypeHandler::Clear(cast<TypeHandler>(elems[i++]));
  684|    354|    } while (i < n);
  ------------------
  |  Branch (684:14): [True: 333, False: 21]
  ------------------
  685|     21|    ExchangeCurrentSize(0);
  686|     21|  }
_ZNK6google8protobuf16RepeatedPtrFieldINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE3GetEi:
 1346|  14.0k|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1347|  14.0k|  return RepeatedPtrFieldBase::Get<TypeHandler>(index);
 1348|  14.0k|}
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase3GetINS1_18GenericTypeHandlerINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEEEERKNT_4TypeEi:
  252|  14.0k|  const Value<TypeHandler>& Get(int index) const {
  253|  14.0k|    ABSL_DCHECK_GE(index, 0);
  ------------------
  |  |   82|  14.0k|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   81|  14.0k|  ABSL_LOG_INTERNAL_CHECK_GE_IMPL(val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  14.0k|  ABSL_LOG_INTERNAL_CHECK_OP(Check_GE, >=, val1, val1_text, val2, val2_text)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   61|  14.0k|  while (                                                                      \
  |  |  |  |  |  |  |  |   62|  14.0k|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 14.0k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   63|  14.0k|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |  |  |   64|  14.0k|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |  |  |   65|  14.0k|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |  |  |   66|  14.0k|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |  |  |   67|  14.0k|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |  |  |   68|  14.0k|    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|  14.0k|    ABSL_DCHECK_LT(index, current_size_);
  ------------------
  |  |   80|  14.0k|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   79|  14.0k|  ABSL_LOG_INTERNAL_CHECK_LT_IMPL(val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   54|  14.0k|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LT, <, val1, val1_text, val2, val2_text)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   61|  14.0k|  while (                                                                      \
  |  |  |  |  |  |  |  |   62|  14.0k|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 14.0k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   63|  14.0k|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |  |  |   64|  14.0k|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |  |  |   65|  14.0k|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |  |  |   66|  14.0k|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |  |  |   67|  14.0k|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |  |  |   68|  14.0k|    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|  14.0k|    return *cast<TypeHandler>(element_at(index));
  256|  14.0k|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase4castINS1_18GenericTypeHandlerINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEEEEPKNT_4TypeEPKv:
  665|  14.0k|  static inline const Value<TypeHandler>* cast(const void* element) {
  666|  14.0k|    return reinterpret_cast<const Value<TypeHandler>*>(element);
  667|  14.0k|  }
_ZNK6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto9SetOptionEE4sizeEv:
 1340|  22.2k|inline int RepeatedPtrField<Element>::size() const {
 1341|  22.2k|  return RepeatedPtrFieldBase::size();
 1342|  22.2k|}
_ZN6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto9SetOptionEE5ClearEv:
 1469|  20.2k|inline void RepeatedPtrField<Element>::Clear() {
 1470|  20.2k|  RepeatedPtrFieldBase::Clear<TypeHandler>();
 1471|  20.2k|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase5ClearINS1_18GenericTypeHandlerIN4curl6fuzzer5proto9SetOptionEEEEEvv:
  265|  20.2k|  void Clear() {
  266|  20.2k|    const int n = current_size_;
  267|  20.2k|    ABSL_DCHECK_GE(n, 0);
  ------------------
  |  |   82|  20.2k|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   81|  20.2k|  ABSL_LOG_INTERNAL_CHECK_GE_IMPL(val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  20.2k|  ABSL_LOG_INTERNAL_CHECK_OP(Check_GE, >=, val1, val1_text, val2, val2_text)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   61|  20.2k|  while (                                                                      \
  |  |  |  |  |  |  |  |   62|  20.2k|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 20.2k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   63|  20.2k|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |  |  |   64|  20.2k|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |  |  |   65|  20.2k|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |  |  |   66|  20.2k|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |  |  |   67|  20.2k|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |  |  |   68|  20.2k|    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|  20.2k|    if (n > 0) {
  ------------------
  |  Branch (268:9): [True: 46, False: 20.2k]
  ------------------
  269|     46|      using H = CommonHandler<TypeHandler>;
  270|     46|      ClearNonEmpty<H>();
  271|     46|    }
  272|  20.2k|  }
_ZNK6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto14WebSocketFrameEE4sizeEv:
 1340|  9.97k|inline int RepeatedPtrField<Element>::size() const {
 1341|  9.97k|  return RepeatedPtrFieldBase::size();
 1342|  9.97k|}
_ZN6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto14WebSocketFrameEE5ClearEv:
 1469|     45|inline void RepeatedPtrField<Element>::Clear() {
 1470|     45|  RepeatedPtrFieldBase::Clear<TypeHandler>();
 1471|     45|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase5ClearINS1_18GenericTypeHandlerIN4curl6fuzzer5proto14WebSocketFrameEEEEEvv:
  265|     45|  void Clear() {
  266|     45|    const int n = current_size_;
  267|     45|    ABSL_DCHECK_GE(n, 0);
  ------------------
  |  |   82|     45|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   81|     45|  ABSL_LOG_INTERNAL_CHECK_GE_IMPL(val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     45|  ABSL_LOG_INTERNAL_CHECK_OP(Check_GE, >=, 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)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  268|     45|    if (n > 0) {
  ------------------
  |  Branch (268:9): [True: 26, False: 19]
  ------------------
  269|     26|      using H = CommonHandler<TypeHandler>;
  270|     26|      ClearNonEmpty<H>();
  271|     26|    }
  272|     45|  }
_ZNK6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto14WebSocketFrameEE3GetEi:
 1346|  8.38k|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1347|  8.38k|  return RepeatedPtrFieldBase::Get<TypeHandler>(index);
 1348|  8.38k|}
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase3GetINS1_18GenericTypeHandlerIN4curl6fuzzer5proto14WebSocketFrameEEEEERKNT_4TypeEi:
  252|  8.38k|  const Value<TypeHandler>& Get(int index) const {
  253|  8.38k|    ABSL_DCHECK_GE(index, 0);
  ------------------
  |  |   82|  8.38k|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   81|  8.38k|  ABSL_LOG_INTERNAL_CHECK_GE_IMPL(val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  8.38k|  ABSL_LOG_INTERNAL_CHECK_OP(Check_GE, >=, val1, val1_text, val2, val2_text)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   61|  8.38k|  while (                                                                      \
  |  |  |  |  |  |  |  |   62|  8.38k|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 8.38k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   63|  8.38k|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |  |  |   64|  8.38k|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |  |  |   65|  8.38k|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |  |  |   66|  8.38k|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |  |  |   67|  8.38k|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |  |  |   68|  8.38k|    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|  8.38k|    ABSL_DCHECK_LT(index, current_size_);
  ------------------
  |  |   80|  8.38k|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   79|  8.38k|  ABSL_LOG_INTERNAL_CHECK_LT_IMPL(val1, val1_text, val2, val2_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   54|  8.38k|  ABSL_LOG_INTERNAL_CHECK_OP(Check_LT, <, val1, val1_text, val2, val2_text)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   61|  8.38k|  while (                                                                      \
  |  |  |  |  |  |  |  |   62|  8.38k|      ::std::string* absl_log_internal_check_op_result ABSL_ATTRIBUTE_UNUSED = \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (62:22): [True: 0, False: 8.38k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   63|  8.38k|          ::absl::log_internal::name##Impl(                                    \
  |  |  |  |  |  |  |  |   64|  8.38k|              ::absl::log_internal::GetReferenceableValue(val1),               \
  |  |  |  |  |  |  |  |   65|  8.38k|              ::absl::log_internal::GetReferenceableValue(val2),               \
  |  |  |  |  |  |  |  |   66|  8.38k|              ABSL_LOG_INTERNAL_STRIP_STRING_LITERAL(val1_text                 \
  |  |  |  |  |  |  |  |   67|  8.38k|                                                     " " #op " " val2_text)))  \
  |  |  |  |  |  |  |  |   68|  8.38k|    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|  8.38k|    return *cast<TypeHandler>(element_at(index));
  256|  8.38k|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase4castINS1_18GenericTypeHandlerIN4curl6fuzzer5proto14WebSocketFrameEEEEEPKNT_4TypeEPKv:
  665|  8.38k|  static inline const Value<TypeHandler>* cast(const void* element) {
  666|  8.38k|    return reinterpret_cast<const Value<TypeHandler>*>(element);
  667|  8.38k|  }
_ZNK6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto9SetOptionEE5beginEv:
 1836|  12.2k|RepeatedPtrField<Element>::begin() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1837|  12.2k|  return iterator(raw_data());
 1838|  12.2k|}
_ZN6google8protobuf8internal19RepeatedPtrIteratorIN4curl6fuzzer5proto9SetOptionEEC2EPKPv:
 1617|  24.5k|  explicit RepeatedPtrIterator(void* const* it) : it_(it) {}
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKN4curl6fuzzer5proto9SetOptionEEC2IS6_TnPNSt3__19enable_ifIXsr3std14is_convertibleIPT_PS7_EE5valueEvE4typeELPv0EEERKNS2_ISC_EE:
 1625|  24.5k|      : it_(other.it_) {}
_ZNK6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto9SetOptionEE3endEv:
 1851|  12.2k|RepeatedPtrField<Element>::end() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1852|  12.2k|  return iterator(raw_data() + size());
 1853|  12.2k|}
_ZN6google8protobuf8internalneERKNS1_19RepeatedPtrIteratorIKN4curl6fuzzer5proto9SetOptionEEESA_:
 1647|   102k|  friend bool operator!=(const iterator& x, const iterator& y) {
 1648|   102k|    return x.it_ != y.it_;
 1649|   102k|  }
_ZN6google8protobuf8internal19RepeatedPtrIteratorIKN4curl6fuzzer5proto9SetOptionEEppEv:
 1632|  90.6k|  iterator& operator++() {
 1633|  90.6k|    ++it_;
 1634|  90.6k|    return *this;
 1635|  90.6k|  }
_ZNK6google8protobuf8internal19RepeatedPtrIteratorIKN4curl6fuzzer5proto9SetOptionEEdeEv:
 1628|  91.0k|  reference operator*() const { return *reinterpret_cast<Element*>(*it_); }
_ZN6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto9SetOptionEE19StaticValidityCheckEv:
  938|  10.0k|  static constexpr PROTOBUF_ALWAYS_INLINE void StaticValidityCheck() {
  939|  10.0k|    static_assert(
  940|  10.0k|        absl::disjunction<
  941|  10.0k|            internal::is_supported_string_type<Element>,
  942|  10.0k|            internal::is_supported_message_type<Element>>::value,
  943|  10.0k|        "We only support string and Message types in RepeatedPtrField.");
  944|  10.0k|  }
_ZN6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto9SetOptionEED2Ev:
 1285|  10.0k|RepeatedPtrField<Element>::~RepeatedPtrField() {
 1286|  10.0k|  StaticValidityCheck();
 1287|  10.0k|  if (!NeedsDestroy()) return;
  ------------------
  |  Branch (1287:7): [True: 2.47k, False: 7.62k]
  ------------------
 1288|  7.62k|#ifdef __cpp_if_constexpr
 1289|  7.62k|  if constexpr (std::is_base_of<MessageLite, Element>::value) {
 1290|       |#else
 1291|       |  if (std::is_base_of<MessageLite, Element>::value) {
 1292|       |#endif
 1293|  7.62k|    DestroyProtos();
 1294|       |  } else {
 1295|       |    Destroy<TypeHandler>();
 1296|       |  }
 1297|  7.62k|}
_ZN6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto9SetOptionEEC2ENS0_8internal18InternalVisibilityEPNS0_5ArenaE:
  970|  10.0k|      : RepeatedPtrField(arena) {}
_ZN6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto9SetOptionEEC2EPNS0_5ArenaE:
 1263|  10.0k|    : 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.0k|}
_ZN6google8protobuf16RepeatedPtrFieldINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE19StaticValidityCheckEv:
  938|  7.43k|  static constexpr PROTOBUF_ALWAYS_INLINE void StaticValidityCheck() {
  939|  7.43k|    static_assert(
  940|  7.43k|        absl::disjunction<
  941|  7.43k|            internal::is_supported_string_type<Element>,
  942|  7.43k|            internal::is_supported_message_type<Element>>::value,
  943|  7.43k|        "We only support string and Message types in RepeatedPtrField.");
  944|  7.43k|  }
_ZN6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto14WebSocketFrameEE19StaticValidityCheckEv:
  938|  7.35k|  static constexpr PROTOBUF_ALWAYS_INLINE void StaticValidityCheck() {
  939|  7.35k|    static_assert(
  940|  7.35k|        absl::disjunction<
  941|  7.35k|            internal::is_supported_string_type<Element>,
  942|  7.35k|            internal::is_supported_message_type<Element>>::value,
  943|  7.35k|        "We only support string and Message types in RepeatedPtrField.");
  944|  7.35k|  }
_ZN6google8protobuf16RepeatedPtrFieldIN4curl6fuzzer5proto14WebSocketFrameEED2Ev:
 1285|  7.35k|RepeatedPtrField<Element>::~RepeatedPtrField() {
 1286|  7.35k|  StaticValidityCheck();
 1287|  7.35k|  if (!NeedsDestroy()) return;
  ------------------
  |  Branch (1287:7): [True: 3.92k, False: 3.43k]
  ------------------
 1288|  3.43k|#ifdef __cpp_if_constexpr
 1289|  3.43k|  if constexpr (std::is_base_of<MessageLite, Element>::value) {
 1290|       |#else
 1291|       |  if (std::is_base_of<MessageLite, Element>::value) {
 1292|       |#endif
 1293|  3.43k|    DestroyProtos();
 1294|       |  } else {
 1295|       |    Destroy<TypeHandler>();
 1296|       |  }
 1297|  3.43k|}
_ZN6google8protobuf16RepeatedPtrFieldINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEED2Ev:
 1285|  7.43k|RepeatedPtrField<Element>::~RepeatedPtrField() {
 1286|  7.43k|  StaticValidityCheck();
 1287|  7.43k|  if (!NeedsDestroy()) return;
  ------------------
  |  Branch (1287:7): [True: 3.08k, False: 4.34k]
  ------------------
 1288|  4.34k|#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|  4.34k|  } else {
 1295|  4.34k|    Destroy<TypeHandler>();
 1296|  4.34k|  }
 1297|  4.34k|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase7DestroyINS1_18GenericTypeHandlerINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEEEEvv:
  220|  4.34k|  void Destroy() {
  221|  4.34k|    ABSL_DCHECK(NeedsDestroy());
  ------------------
  |  |   47|  4.34k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   40|  4.34k|  ABSL_LOG_INTERNAL_CHECK_IMPL(condition, condition_text)
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  8.69k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  4.34k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  8.69k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  8.69k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 4.34k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  4.34k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 4.34k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  8.69k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 4.34k, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 4.34k]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 4.34k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  8.69k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  8.69k|  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|  4.34k|    if (PROTOBUF_PREDICT_FALSE(arena_ != nullptr)) return;
  ------------------
  |  |  365|  4.34k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 4.34k]
  |  |  |  Branch (365:54): [Folded, False: 4.34k]
  |  |  |  Branch (365:63): [True: 0, False: 4.34k]
  |  |  ------------------
  ------------------
  226|       |
  227|  4.34k|    using H = CommonHandler<TypeHandler>;
  228|  4.34k|    int n = allocated_size();
  229|  4.34k|    void** elems = elements();
  230|  18.9k|    for (int i = 0; i < n; i++) {
  ------------------
  |  Branch (230:21): [True: 14.6k, False: 4.34k]
  ------------------
  231|  14.6k|      Delete<H>(elems[i], nullptr);
  232|  14.6k|    }
  233|  4.34k|    if (!using_sso()) {
  ------------------
  |  Branch (233:9): [True: 2.66k, False: 1.68k]
  ------------------
  234|  2.66k|      internal::SizedDelete(rep(),
  235|  2.66k|                            Capacity() * sizeof(elems[0]) + kRepHeaderSize);
  236|  2.66k|    }
  237|  4.34k|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase6DeleteINS1_18GenericTypeHandlerINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEEEEvPvPNS0_5ArenaE:
  669|  14.6k|  static inline void Delete(void* obj, Arena* arena) {
  670|  14.6k|    TypeHandler::Delete(cast<TypeHandler>(obj), arena);
  671|  14.6k|  }
_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|   186k|const ::google::protobuf::internal::ClassData* Any::GetClassData() const {
  221|   186k|  ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
  222|   186k|  ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
  223|   186k|  return _class_data_.base();
  224|   186k|}
_ZNK6google8protobuf3Any11GetMetadataEv:
  383|   186k|::google::protobuf::Metadata Any::GetMetadata() const {
  384|   186k|  return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
  385|   186k|}

_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|  21.7k|        [arena](auto&&... args) {
  245|  21.7k|          if (PROTOBUF_PREDICT_FALSE(arena == nullptr)) {
  ------------------
  |  |  365|  21.7k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 21.2k, False: 529]
  |  |  |  Branch (365:54): [Folded, False: 21.7k]
  |  |  |  Branch (365:63): [True: 21.2k, False: 529]
  |  |  ------------------
  ------------------
  246|  21.2k|            return new T(std::forward<Args>(args)...);
  247|  21.2k|          }
  248|    529|          return new (arena->AllocateInternal<T>())
  249|    529|              T(std::forward<Args>(args)...);
  250|  21.7k|        },
_ZN6google8protobuf5Arena6CreateINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJEEEPT_PS1_DpOT0_:
  216|  21.7k|  PROTOBUF_NDEBUG_INLINE static T* Create(Arena* arena, Args&&... args) {
  217|  21.7k|    return absl::utility_internal::IfConstexprElse<
  218|  21.7k|        is_arena_constructable<T>::value>(
  219|       |        // Arena-constructable
  220|  21.7k|        [arena](auto&&... args) {
  221|  21.7k|          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|  21.7k|          return CreateArenaCompatible<Type>(arena,
  241|  21.7k|                                             std::forward<Args>(args)...);
  242|  21.7k|        },
  243|       |        // Non arena-constructable
  244|  21.7k|        [arena](auto&&... args) {
  245|  21.7k|          if (PROTOBUF_PREDICT_FALSE(arena == nullptr)) {
  246|  21.7k|            return new T(std::forward<Args>(args)...);
  247|  21.7k|          }
  248|  21.7k|          return new (arena->AllocateInternal<T>())
  249|  21.7k|              T(std::forward<Args>(args)...);
  250|  21.7k|        },
  251|  21.7k|        std::forward<Args>(args)...);
  252|  21.7k|  }
_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|  7.07k|        [arena](auto&&... args) {
  221|  7.07k|          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|  7.07k|          return CreateArenaCompatible<Type>(arena,
  241|  7.07k|                                             std::forward<Args>(args)...);
  242|  7.07k|        },
_ZN6google8protobuf5Arena6CreateINS0_8internal16InternalMetadata9ContainerINS0_15UnknownFieldSetEEEJEEEPT_PS1_DpOT0_:
  216|  7.07k|  PROTOBUF_NDEBUG_INLINE static T* Create(Arena* arena, Args&&... args) {
  217|  7.07k|    return absl::utility_internal::IfConstexprElse<
  218|  7.07k|        is_arena_constructable<T>::value>(
  219|       |        // Arena-constructable
  220|  7.07k|        [arena](auto&&... args) {
  221|  7.07k|          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|  7.07k|          return CreateArenaCompatible<Type>(arena,
  241|  7.07k|                                             std::forward<Args>(args)...);
  242|  7.07k|        },
  243|       |        // Non arena-constructable
  244|  7.07k|        [arena](auto&&... args) {
  245|  7.07k|          if (PROTOBUF_PREDICT_FALSE(arena == nullptr)) {
  246|  7.07k|            return new T(std::forward<Args>(args)...);
  247|  7.07k|          }
  248|  7.07k|          return new (arena->AllocateInternal<T>())
  249|  7.07k|              T(std::forward<Args>(args)...);
  250|  7.07k|        },
  251|  7.07k|        std::forward<Args>(args)...);
  252|  7.07k|  }
_ZN6google8protobuf5Arena21CreateArenaCompatibleINS0_8internal16InternalMetadata9ContainerINS0_15UnknownFieldSetEEEEEPT_PS1_:
  547|  7.07k|  PROTOBUF_NDEBUG_INLINE static T* CreateArenaCompatible(Arena* arena) {
  548|  7.07k|    static_assert(is_arena_constructable<T>::value,
  549|  7.07k|                  "Can only construct types that are ArenaConstructable");
  550|  7.07k|    if (PROTOBUF_PREDICT_FALSE(arena == nullptr)) {
  ------------------
  |  |  365|  7.07k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 7.07k, False: 0]
  |  |  |  Branch (365:54): [Folded, False: 7.07k]
  |  |  |  Branch (365:63): [True: 7.07k, False: 0]
  |  |  ------------------
  ------------------
  551|       |      // Generated arena constructor T(Arena*) is protected. Call via
  552|       |      // InternalHelper.
  553|  7.07k|      return InternalHelper<T>::New();
  554|  7.07k|    } else {
  555|      0|      return arena->DoCreateMessage<T>();
  556|      0|    }
  557|  7.07k|  }
_ZN6google8protobuf5Arena14InternalHelperINS0_8internal16InternalMetadata9ContainerINS0_15UnknownFieldSetEEEE3NewEv:
  461|  7.07k|    static inline PROTOBUF_ALWAYS_INLINE T* New() {
  462|  7.07k|      return new T(nullptr);
  463|  7.07k|    }
_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|  1.03k|  PROTOBUF_NDEBUG_INLINE static T* Create(Arena* arena, Args&&... args) {
  217|  1.03k|    return absl::utility_internal::IfConstexprElse<
  218|  1.03k|        is_arena_constructable<T>::value>(
  219|       |        // Arena-constructable
  220|  1.03k|        [arena](auto&&... args) {
  221|  1.03k|          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|  1.03k|          return CreateArenaCompatible<Type>(arena,
  241|  1.03k|                                             std::forward<Args>(args)...);
  242|  1.03k|        },
  243|       |        // Non arena-constructable
  244|  1.03k|        [arena](auto&&... args) {
  245|  1.03k|          if (PROTOBUF_PREDICT_FALSE(arena == nullptr)) {
  246|  1.03k|            return new T(std::forward<Args>(args)...);
  247|  1.03k|          }
  248|  1.03k|          return new (arena->AllocateInternal<T>())
  249|  1.03k|              T(std::forward<Args>(args)...);
  250|  1.03k|        },
  251|  1.03k|        std::forward<Args>(args)...);
  252|  1.03k|  }
_ZZN6google8protobuf5Arena6CreateINS0_15UnknownFieldSetEJEEEPT_PS1_DpOT0_ENKUlDpOT_E_clIJEEEDaSC_:
  220|  1.03k|        [arena](auto&&... args) {
  221|  1.03k|          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|  1.03k|          return CreateArenaCompatible<Type>(arena,
  241|  1.03k|                                             std::forward<Args>(args)...);
  242|  1.03k|        },
_ZN6google8protobuf5Arena21CreateArenaCompatibleINS0_15UnknownFieldSetEEEPT_PS1_:
  547|  1.03k|  PROTOBUF_NDEBUG_INLINE static T* CreateArenaCompatible(Arena* arena) {
  548|  1.03k|    static_assert(is_arena_constructable<T>::value,
  549|  1.03k|                  "Can only construct types that are ArenaConstructable");
  550|  1.03k|    if (PROTOBUF_PREDICT_FALSE(arena == nullptr)) {
  ------------------
  |  |  365|  1.03k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 1.03k, False: 0]
  |  |  |  Branch (365:54): [Folded, False: 1.03k]
  |  |  |  Branch (365:63): [True: 1.03k, False: 0]
  |  |  ------------------
  ------------------
  551|       |      // Generated arena constructor T(Arena*) is protected. Call via
  552|       |      // InternalHelper.
  553|  1.03k|      return InternalHelper<T>::New();
  554|  1.03k|    } else {
  555|      0|      return arena->DoCreateMessage<T>();
  556|      0|    }
  557|  1.03k|  }
_ZN6google8protobuf5Arena14InternalHelperINS0_15UnknownFieldSetEE3NewEv:
  461|  1.03k|    static inline PROTOBUF_ALWAYS_INLINE T* New() {
  462|  1.03k|      return new T(nullptr);
  463|  1.03k|    }

_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|  27.5k|std::string* ArenaStringPtr::MutableNoCopy(Arena* arena) {
  183|  27.5k|  ScopedCheckPtrInvariants check(&tagged_ptr_);
  184|  27.5k|  if (tagged_ptr_.IsMutable()) {
  ------------------
  |  Branch (184:7): [True: 95, False: 27.4k]
  ------------------
  185|     95|    return tagged_ptr_.Get();
  186|  27.4k|  } else {
  187|  27.4k|    ABSL_DCHECK(IsDefault());
  ------------------
  |  |   47|  27.4k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  27.4k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  54.8k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  27.4k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  54.8k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  54.8k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 27.4k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  27.4k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 27.4k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  27.4k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 27.4k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  54.8k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  54.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|  27.4k|    return NewString(arena);
  190|  27.4k|  }
  191|  27.5k|}
_ZN6google8protobuf8internal14ArenaStringPtr7DestroyEv:
  237|  37.0k|void ArenaStringPtr::Destroy() {
  238|  37.0k|  delete tagged_ptr_.GetIfAllocated();
  239|  37.0k|}
_ZN6google8protobuf8internal14ArenaStringPtr12ClearToEmptyEv:
  241|  20.9k|void ArenaStringPtr::ClearToEmpty() {
  242|  20.9k|  ScopedCheckPtrInvariants check(&tagged_ptr_);
  243|  20.9k|  if (IsDefault()) {
  ------------------
  |  Branch (243:7): [True: 20.9k, False: 47]
  ------------------
  244|       |    // Already set to default -- do nothing.
  245|  20.9k|  } 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|     47|    tagged_ptr_.Get()->clear();
  252|     47|  }
  253|  20.9k|}
_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|  49.0k|  explicit ScopedCheckPtrInvariants(const TaggedStringPtr*) {}

_ZN6google8protobuf8internal15TaggedStringPtr12SetAllocatedEPNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
  122|  27.4k|  inline std::string* SetAllocated(std::string* p) {
  123|  27.4k|    return TagAs(kAllocated, p);
  124|  27.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|  27.5k|  inline bool IsMutable() const { return as_int() & kMutableBit; }
_ZNK6google8protobuf8internal15TaggedStringPtr14GetIfAllocatedEv:
  148|  37.0k|  inline std::string* GetIfAllocated() const {
  149|  37.0k|    auto allocated = as_int() ^ kAllocated;
  150|  37.0k|    if (allocated & kMask) return nullptr;
  ------------------
  |  Branch (150:9): [True: 9.65k, False: 27.3k]
  ------------------
  151|       |
  152|  27.3k|    auto ptr = reinterpret_cast<std::string*>(allocated);
  153|  27.3k|    PROTOBUF_ASSUME(ptr != nullptr);
  ------------------
  |  |  941|  27.3k|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
  154|  27.3k|    return ptr;
  155|  37.0k|  }
_ZN6google8protobuf8internal15TaggedStringPtr14assert_alignedEPKv:
  186|  27.9k|  static inline void assert_aligned(const void* p) {
  187|  27.9k|    static_assert(kMask <= alignof(void*), "Pointer underaligned for bit mask");
  188|  27.9k|    static_assert(kMask <= alignof(std::string),
  189|  27.9k|                  "std::string underaligned for bit mask");
  190|  27.9k|    ABSL_DCHECK_EQ(reinterpret_cast<uintptr_t>(p) & kMask, 0UL);
  ------------------
  |  |   74|  27.9k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  27.9k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  27.9k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 27.9k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  27.9k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  191|  27.9k|  }
_ZN6google8protobuf8internal15TaggedStringPtr5TagAsENS2_4TypeEPNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE:
  196|  27.9k|  inline std::string* TagAs(Type type, std::string* p) {
  197|  27.9k|    ABSL_DCHECK(p != nullptr);
  ------------------
  |  |   47|  27.9k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  27.9k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  55.9k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  27.9k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  55.9k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  55.9k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 27.9k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  27.9k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 27.9k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  27.9k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 27.9k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  55.9k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  55.9k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  198|  27.9k|    assert_aligned(p);
  199|  27.9k|    ptr_ = reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(p) | type);
  200|  27.9k|    return p;
  201|  27.9k|  }
_ZNK6google8protobuf8internal14ArenaStringPtr9IsDefaultEv:
  392|  20.9k|  inline bool IsDefault() const { return tagged_ptr_.IsDefault(); }
_ZN6google8protobuf8internal14ArenaStringPtr9NewStringIJEEEPNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEPNS0_5ArenaEDpOT_:
  396|  27.9k|  inline std::string* NewString(Arena* arena, Args&&... args) {
  397|  27.9k|    if (arena == nullptr) {
  ------------------
  |  Branch (397:9): [True: 27.4k, False: 529]
  ------------------
  398|  27.4k|      auto* s = new std::string(std::forward<Args>(args)...);
  399|  27.4k|      return tagged_ptr_.SetAllocated(s);
  400|  27.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|  27.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|   181k|bool FieldDescriptor::is_map_message_type() const {
 2817|   181k|  return message_type()->options().map_entry();
 2818|   181k|}
_ZNK6google8protobuf15FieldDescriptor11is_requiredEv:
 3945|   420k|bool FieldDescriptor::is_required() const {
 3946|   420k|  return features().field_presence() == FeatureSet::LEGACY_REQUIRED;
 3947|   420k|}
_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|   181k|const Descriptor* FieldDescriptor::message_type() const {
 9677|   181k|  if (type_ == TYPE_MESSAGE || type_ == TYPE_GROUP) {
  ------------------
  |  Branch (9677:7): [True: 181k, False: 0]
  |  Branch (9677:32): [True: 0, False: 0]
  ------------------
 9678|   181k|    if (type_once_) {
  ------------------
  |  Branch (9678:9): [True: 0, False: 181k]
  ------------------
 9679|      0|      absl::call_once(*type_once_, FieldDescriptor::TypeOnceInit, this);
 9680|      0|    }
 9681|   181k|    return type_descriptor_.message_type;
 9682|   181k|  }
 9683|      0|  return nullptr;
 9684|   181k|}
_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|    979|  absl::string_view full_name() const {
  708|    979|    switch (type()) {
  709|    158|      case MESSAGE:
  ------------------
  |  Branch (709:7): [True: 158, False: 821]
  ------------------
  710|    158|        return descriptor()->full_name();
  711|    539|      case FIELD:
  ------------------
  |  Branch (711:7): [True: 539, False: 440]
  ------------------
  712|    539|        return field_descriptor()->full_name();
  713|      1|      case ONEOF:
  ------------------
  |  Branch (713:7): [True: 1, False: 978]
  ------------------
  714|      1|        return oneof_descriptor()->full_name();
  715|     61|      case ENUM:
  ------------------
  |  Branch (715:7): [True: 61, False: 918]
  ------------------
  716|     61|        return enum_descriptor()->full_name();
  717|    203|      case ENUM_VALUE:
  ------------------
  |  Branch (717:7): [True: 203, False: 776]
  ------------------
  718|    203|        return enum_value_descriptor()->full_name();
  719|      0|      case SERVICE:
  ------------------
  |  Branch (719:7): [True: 0, False: 979]
  ------------------
  720|      0|        return service_descriptor()->full_name();
  721|      0|      case METHOD:
  ------------------
  |  Branch (721:7): [True: 0, False: 979]
  ------------------
  722|      0|        return method_descriptor()->full_name();
  723|      9|      case FULL_PACKAGE:
  ------------------
  |  Branch (723:7): [True: 9, False: 970]
  ------------------
  724|      9|        return file_descriptor()->package();
  725|      8|      case SUB_PACKAGE:
  ------------------
  |  Branch (725:7): [True: 8, False: 971]
  ------------------
  726|      8|        return absl::string_view(sub_package_file_descriptor()->file->package())
  727|      8|            .substr(0, sub_package_file_descriptor()->name_size);
  728|      0|      default:
  ------------------
  |  Branch (728:7): [True: 0, False: 979]
  ------------------
  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|    979|    }
  731|      0|    return "";
  732|    979|  }
_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|     16|  const TYPE* FIELD() const {                                                  \
  623|     16|    return type() == TYPE_CONSTANT ? static_cast<const TYPE*>(ptr_) : nullptr; \
  ------------------
  |  Branch (623:12): [True: 16, False: 0]
  ------------------
  624|     16|  }
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.08k|  const TYPE* FIELD() const {                                                  \
  623|  1.08k|    return type() == TYPE_CONSTANT ? static_cast<const TYPE*>(ptr_) : nullptr; \
  ------------------
  |  Branch (623:12): [True: 1.08k, False: 0]
  ------------------
  624|  1.08k|  }
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|    231|  const FileDescriptor* GetFile() const {
  683|    231|    switch (type()) {
  684|    138|      case MESSAGE:
  ------------------
  |  Branch (684:7): [True: 138, False: 93]
  ------------------
  685|    138|        return descriptor()->file();
  686|      1|      case FIELD:
  ------------------
  |  Branch (686:7): [True: 1, False: 230]
  ------------------
  687|      1|        return field_descriptor()->file();
  688|      0|      case ONEOF:
  ------------------
  |  Branch (688:7): [True: 0, False: 231]
  ------------------
  689|      0|        return oneof_descriptor()->containing_type()->file();
  690|     32|      case ENUM:
  ------------------
  |  Branch (690:7): [True: 32, False: 199]
  ------------------
  691|     32|        return enum_descriptor()->file();
  692|     60|      case ENUM_VALUE:
  ------------------
  |  Branch (692:7): [True: 60, False: 171]
  ------------------
  693|     60|        return enum_value_descriptor()->type()->file();
  694|      0|      case SERVICE:
  ------------------
  |  Branch (694:7): [True: 0, False: 231]
  ------------------
  695|      0|        return service_descriptor()->file();
  696|      0|      case METHOD:
  ------------------
  |  Branch (696:7): [True: 0, False: 231]
  ------------------
  697|      0|        return method_descriptor()->service()->file();
  698|      0|      case FULL_PACKAGE:
  ------------------
  |  Branch (698:7): [True: 0, False: 231]
  ------------------
  699|      0|        return file_descriptor();
  700|      0|      case SUB_PACKAGE:
  ------------------
  |  Branch (700:7): [True: 0, False: 231]
  ------------------
  701|      0|        return sub_package_file_descriptor()->file;
  702|      0|      default:
  ------------------
  |  Branch (702:7): [True: 0, False: 231]
  ------------------
  703|      0|        return nullptr;
  704|    231|    }
  705|    231|  }
_ZNK6google8protobuf6Symbol10descriptorEv:
  622|    554|  const TYPE* FIELD() const {                                                  \
  623|    554|    return type() == TYPE_CONSTANT ? static_cast<const TYPE*>(ptr_) : nullptr; \
  ------------------
  |  Branch (623:12): [True: 554, False: 0]
  ------------------
  624|    554|  }
_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|    190|  const TYPE* FIELD() const {                                                  \
  623|    190|    return type() == TYPE_CONSTANT ? static_cast<const TYPE*>(ptr_) : nullptr; \
  ------------------
  |  Branch (623:12): [True: 190, False: 0]
  ------------------
  624|    190|  }
_ZNK6google8protobuf6Symbol21enum_value_descriptorEv:
  660|  1.10k|  const EnumValueDescriptor* enum_value_descriptor() const {
  661|  1.10k|    return type() == ENUM_VALUE
  ------------------
  |  Branch (661:12): [True: 686, False: 416]
  ------------------
  662|  1.10k|               ? static_cast<const EnumValueDescriptor*>(
  663|    686|                     static_cast<const internal::SymbolBaseN<0>*>(ptr_))
  664|  1.10k|           : type() == ENUM_VALUE_OTHER_PARENT
  ------------------
  |  Branch (664:14): [True: 416, False: 0]
  ------------------
  665|    416|               ? static_cast<const EnumValueDescriptor*>(
  666|    416|                     static_cast<const internal::SymbolBaseN<1>*>(ptr_))
  667|    416|               : nullptr;
  668|  1.10k|  }
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_120ObjectToParentNumberEPKNS0_15FieldDescriptorE:
 1031|    211|std::pair<const void*, int> ObjectToParentNumber(const FieldDescriptor* field) {
 1032|    211|  return {field->containing_type(), field->number()};
 1033|    211|}
_ZNK6google8protobuf6Symbol15parent_name_keyEv:
  734|  1.10k|  std::pair<const void*, absl::string_view> parent_name_key() const {
  735|  1.10k|    const auto or_file = [&](const void* p) { return p ? p : GetFile(); };
  736|  1.10k|    switch (type()) {
  737|     99|      case MESSAGE:
  ------------------
  |  Branch (737:7): [True: 99, False: 1.00k]
  ------------------
  738|     99|        return {or_file(descriptor()->containing_type()), descriptor()->name()};
  739|    546|      case FIELD: {
  ------------------
  |  Branch (739:7): [True: 546, False: 555]
  ------------------
  740|    546|        auto* field = field_descriptor();
  741|    546|        return {or_file(field->is_extension() ? field->extension_scope()
  ------------------
  |  Branch (741:25): [True: 1, False: 545]
  ------------------
  742|    546|                                              : field->containing_type()),
  743|    546|                field->name()};
  744|      0|      }
  745|      4|      case ONEOF:
  ------------------
  |  Branch (745:7): [True: 4, False: 1.09k]
  ------------------
  746|      4|        return {oneof_descriptor()->containing_type(),
  747|      4|                oneof_descriptor()->name()};
  748|     35|      case ENUM:
  ------------------
  |  Branch (748:7): [True: 35, False: 1.06k]
  ------------------
  749|     35|        return {or_file(enum_descriptor()->containing_type()),
  750|     35|                enum_descriptor()->name()};
  751|    209|      case ENUM_VALUE:
  ------------------
  |  Branch (751:7): [True: 209, False: 892]
  ------------------
  752|    209|        return {or_file(enum_value_descriptor()->type()->containing_type()),
  753|    209|                enum_value_descriptor()->name()};
  754|    208|      case ENUM_VALUE_OTHER_PARENT:
  ------------------
  |  Branch (754:7): [True: 208, False: 893]
  ------------------
  755|    208|        return {enum_value_descriptor()->type(),
  756|    208|                enum_value_descriptor()->name()};
  757|      0|      case SERVICE:
  ------------------
  |  Branch (757:7): [True: 0, False: 1.10k]
  ------------------
  758|      0|        return {GetFile(), service_descriptor()->name()};
  759|      0|      case METHOD:
  ------------------
  |  Branch (759:7): [True: 0, False: 1.10k]
  ------------------
  760|      0|        return {method_descriptor()->service(), method_descriptor()->name()};
  761|      0|      default:
  ------------------
  |  Branch (761:7): [True: 0, False: 1.10k]
  ------------------
  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.10k|    }
  764|      0|    return {};
  765|  1.10k|  }
_ZZNK6google8protobuf6Symbol15parent_name_keyEvENKUlPKvE_clES3_:
  735|    889|    const auto or_file = [&](const void* p) { return p ? p : GetFile(); };
  ------------------
  |  Branch (735:54): [True: 750, False: 139]
  ------------------
descriptor.cc:_ZN6google8protobuf12_GLOBAL__N_120ObjectToParentNumberEPKNS0_19EnumValueDescriptorE:
 1035|     68|    const EnumValueDescriptor* enum_value) {
 1036|     68|  return {enum_value->type(), enum_value->number()};
 1037|     68|}
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.33k|  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|     35|  bool operator()(const T& a, const U& b) const {
  959|     35|    return a.full_name() == b.full_name();
  960|     35|  }
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|      3|  bool operator()(const T& a, const U& b) const {
 1054|      3|    return ObjectToParentNumber(a) == ObjectToParentNumber(b);
 1055|      3|  }
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|     41|  bool operator()(const T& a, const U& b) const {
  984|     41|    return a.parent_name_key() == b.parent_name_key();
  985|     41|  }
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|      5|  bool operator()(const T& a, const U& b) const {
 1054|      5|    return ObjectToParentNumber(a) == ObjectToParentNumber(b);
 1055|      5|  }
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|   420k|  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|    140|  inline internal::DescriptorStringView CLASS::name() const {      \
 2521|    140|    return all_names_[0];                                          \
 2522|    140|  }                                                                \
_ZNK6google8protobuf10Descriptor9full_nameEv:
 2523|    621|  inline internal::DescriptorStringView CLASS::full_name() const { \
 2524|    621|    return all_names_[1];                                          \
 2525|    621|  }
_ZNK6google8protobuf10Descriptor15containing_typeEv:
 2510|    593|  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|    951|  inline internal::DescriptorStringView CLASS::name() const {      \
 2521|    951|    return all_names_[0];                                          \
 2522|    951|  }                                                                \
_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|   251k|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf15FieldDescriptor15containing_typeEv:
 2510|   560k|  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|    166|  inline internal::DescriptorStringView CLASS::name() const {      \
 2521|    166|    return all_names_[0];                                          \
 2522|    166|  }                                                                \
_ZNK6google8protobuf14EnumDescriptor9full_nameEv:
 2523|    368|  inline internal::DescriptorStringView CLASS::full_name() const { \
 2524|    368|    return all_names_[1];                                          \
 2525|    368|  }
_ZNK6google8protobuf14EnumDescriptor4fileEv:
 2510|    226|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf14EnumDescriptor15containing_typeEv:
 2510|    614|  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|    750|  inline internal::DescriptorStringView CLASS::name() const {      \
 2521|    750|    return all_names_[0];                                          \
 2522|    750|  }                                                                \
_ZNK6google8protobuf19EnumValueDescriptor9full_nameEv:
 2523|    647|  inline internal::DescriptorStringView CLASS::full_name() const { \
 2524|    647|    return all_names_[1];                                          \
 2525|    647|  }
_ZNK6google8protobuf19EnumValueDescriptor6numberEv:
 2510|    406|  inline TYPE CLASS::FIELD() const { return FIELD##_; }
_ZNK6google8protobuf14FileDescriptor4nameEv:
 2514|     17|  inline internal::DescriptorStringView CLASS::FIELD() const { \
 2515|     17|    return *FIELD##_;                                          \
 2516|     17|  }
_ZNK6google8protobuf14FileDescriptor7packageEv:
 2514|     75|  inline internal::DescriptorStringView CLASS::FIELD() const { \
 2515|     75|    return *FIELD##_;                                          \
 2516|     75|  }
_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|   250k|inline FieldDescriptor::Label FieldDescriptor::label() const {
 2731|   250k|  return static_cast<Label>(label_);
 2732|   250k|}
_ZNK6google8protobuf15FieldDescriptor6is_mapEv:
 2751|   181k|inline bool FieldDescriptor::is_map() const {
 2752|   181k|  return type() == TYPE_MESSAGE && is_map_message_type();
  ------------------
  |  Branch (2752:10): [True: 181k, False: 0]
  |  Branch (2752:36): [True: 0, False: 181k]
  ------------------
 2753|   181k|}
_ZNK6google8protobuf15FieldDescriptor21real_containing_oneofEv:
 2755|   268k|inline const OneofDescriptor* FieldDescriptor::real_containing_oneof() const {
 2756|   268k|  if (in_real_oneof_) {
  ------------------
  |  Branch (2756:7): [True: 0, False: 268k]
  ------------------
 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|   268k|  return nullptr;
 2763|   268k|}
_ZNK6google8protobuf15FieldDescriptor5indexEv:
 2767|   308k|inline int FieldDescriptor::index() const {
 2768|   308k|  if (!is_extension_) {
  ------------------
  |  Branch (2768:7): [True: 308k, False: 1]
  ------------------
 2769|   308k|    return static_cast<int>(this - containing_type()->fields_);
 2770|   308k|  } 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|   308k|}
_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|   420k|inline ::google::protobuf::FeatureSet_FieldPresence FeatureSet::field_presence() const {
19822|       |  // @@protoc_insertion_point(field_get:google.protobuf.FeatureSet.field_presence)
19823|   420k|  return _internal_field_presence();
19824|   420k|}
_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|   421k|inline ::google::protobuf::FeatureSet_FieldPresence FeatureSet::_internal_field_presence() const {
19831|   421k|  ::google::protobuf::internal::TSanRead(&_impl_);
19832|   421k|  return static_cast<::google::protobuf::FeatureSet_FieldPresence>(_impl_.field_presence_);
19833|   421k|}
_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|   209k|inline uint16_t ToHost(uint16_t value) {
   94|       |#if defined(ABSL_IS_BIG_ENDIAN)
   95|       |  return BSwap16(value);
   96|       |#else
   97|   209k|  return value;
   98|   209k|#endif
   99|   209k|}
_ZN6google8protobuf8internal13little_endian6ToHostEj:
  101|  1.66k|inline uint32_t ToHost(uint32_t value) {
  102|       |#if defined(ABSL_IS_BIG_ENDIAN)
  103|       |  return BSwap32(value);
  104|       |#else
  105|  1.66k|  return value;
  106|  1.66k|#endif
  107|  1.66k|}
_ZN6google8protobuf8internal13little_endian6ToHostEm:
  109|  2.20k|inline uint64_t ToHost(uint64_t value) {
  110|       |#if defined(ABSL_IS_BIG_ENDIAN)
  111|       |  return BSwap64(value);
  112|       |#else
  113|  2.20k|  return value;
  114|  2.20k|#endif
  115|  2.20k|}

_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|  49.2k|                          const FieldDescriptor* field) const {
 1225|  49.2k|  USAGE_CHECK_MESSAGE(HasField, &message);
 1226|  49.2k|  USAGE_CHECK_MESSAGE_TYPE(HasField);
  ------------------
  |  |  286|  49.2k|  USAGE_CHECK_EQ(field->containing_type(), descriptor_, METHOD, \
  |  |  ------------------
  |  |  |  |  262|  49.2k|  USAGE_CHECK((A) == (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  ------------------
  |  |  |  |  |  |  259|  49.2k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 49.2k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  260|  49.2k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  287|  49.2k|                 "Field does not match message type.");
  ------------------
 1227|  49.2k|  USAGE_CHECK_SINGULAR(HasField);
  ------------------
  |  |  289|  49.2k|  USAGE_CHECK_NE(field->label(), FieldDescriptor::LABEL_REPEATED, METHOD, \
  |  |  ------------------
  |  |  |  |  264|  49.2k|  USAGE_CHECK((A) != (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  ------------------
  |  |  |  |  |  |  259|  49.2k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 49.2k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  260|  49.2k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  290|  49.2k|                 "Field is repeated; the method requires a singular field.")
  ------------------
 1228|       |
 1229|  49.2k|  if (field->is_extension()) {
  ------------------
  |  Branch (1229:7): [True: 0, False: 49.2k]
  ------------------
 1230|      0|    return GetExtensionSet(message).Has(field->number());
 1231|  49.2k|  } else {
 1232|  49.2k|    if (schema_.InRealOneof(field)) {
  ------------------
  |  Branch (1232:9): [True: 0, False: 49.2k]
  ------------------
 1233|      0|      return HasOneofField(message, field);
 1234|  49.2k|    } else {
 1235|  49.2k|      return HasFieldSingular(message, field);
 1236|  49.2k|    }
 1237|  49.2k|  }
 1238|  49.2k|}
_ZNK6google8protobuf10Reflection9FieldSizeERKNS0_7MessageEPKNS0_15FieldDescriptorE:
 1325|  34.6k|                          const FieldDescriptor* field) const {
 1326|  34.6k|  USAGE_CHECK_MESSAGE(FieldSize, &message);
 1327|  34.6k|  USAGE_CHECK_MESSAGE_TYPE(FieldSize);
  ------------------
  |  |  286|  34.6k|  USAGE_CHECK_EQ(field->containing_type(), descriptor_, METHOD, \
  |  |  ------------------
  |  |  |  |  262|  34.6k|  USAGE_CHECK((A) == (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  ------------------
  |  |  |  |  |  |  259|  34.6k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 34.6k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  260|  34.6k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  287|  34.6k|                 "Field does not match message type.");
  ------------------
 1328|  34.6k|  USAGE_CHECK_REPEATED(FieldSize);
  ------------------
  |  |  292|  34.6k|  USAGE_CHECK_EQ(field->label(), FieldDescriptor::LABEL_REPEATED, METHOD, \
  |  |  ------------------
  |  |  |  |  262|  34.6k|  USAGE_CHECK((A) == (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  ------------------
  |  |  |  |  |  |  259|  34.6k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 34.6k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  260|  34.6k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  293|  34.6k|                 "Field is singular; the method requires a repeated field.")
  ------------------
 1329|       |
 1330|  34.6k|  if (field->is_extension()) {
  ------------------
  |  Branch (1330:7): [True: 0, False: 34.6k]
  ------------------
 1331|      0|    return GetExtensionSet(message).ExtensionSize(field->number());
 1332|  34.6k|  } else {
 1333|  34.6k|    switch (field->cpp_type()) {
  ------------------
  |  Branch (1333:13): [True: 34.6k, 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: 34.6k]
  |  |  ------------------
  |  | 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: 34.6k]
  |  |  ------------------
  |  | 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: 34.6k]
  |  |  ------------------
  |  | 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: 34.6k]
  |  |  ------------------
  |  | 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: 34.6k]
  |  |  ------------------
  |  | 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: 34.6k]
  |  |  ------------------
  |  | 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: 34.6k]
  |  |  ------------------
  |  | 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: 34.6k]
  |  |  ------------------
  |  | 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: 34.6k]
  ------------------
 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|  34.6k|      case FieldDescriptor::CPPTYPE_MESSAGE:
  ------------------
  |  Branch (1353:7): [True: 34.6k, False: 0]
  ------------------
 1354|  34.6k|        if (IsMapFieldInApi(field)) {
  ------------------
  |  Branch (1354:13): [True: 0, False: 34.6k]
  ------------------
 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|  34.6k|        } else {
 1365|  34.6k|          return GetRaw<RepeatedPtrFieldBase>(message, field).size();
 1366|  34.6k|        }
 1367|  34.6k|    }
 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|  34.6k|      ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
  |  |  |  |  ------------------
  |  |  |  |  |  |   55|  34.6k|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1370|      0|    return 0;
 1371|      0|  }
 1372|  34.6k|}
_ZNK6google8protobuf10Reflection10GetMessageERKNS0_7MessageEPKNS0_15FieldDescriptorEPNS0_14MessageFactoryE:
 2340|  9.38k|                                      MessageFactory* factory) const {
 2341|  9.38k|  USAGE_CHECK_ALL(GetMessage, SINGULAR, MESSAGE);
  ------------------
  |  |  296|  9.38k|  USAGE_CHECK_MESSAGE(METHOD, &message);        \
  |  |  297|  9.38k|  USAGE_CHECK_MESSAGE_TYPE(METHOD);             \
  |  |  ------------------
  |  |  |  |  286|  9.38k|  USAGE_CHECK_EQ(field->containing_type(), descriptor_, METHOD, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  262|  9.38k|  USAGE_CHECK((A) == (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  259|  9.38k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 9.38k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  260|  9.38k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  287|  9.38k|                 "Field does not match message type.");
  |  |  ------------------
  |  |  298|  9.38k|  USAGE_CHECK_##LABEL(METHOD);                  \
  |  |  ------------------
  |  |  |  |  289|  9.38k|  USAGE_CHECK_NE(field->label(), FieldDescriptor::LABEL_REPEATED, METHOD, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  264|  9.38k|  USAGE_CHECK((A) != (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  259|  9.38k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 9.38k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  260|  9.38k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  290|  9.38k|                 "Field is repeated; the method requires a singular field.")
  |  |  ------------------
  |  |  299|  9.38k|  USAGE_CHECK_TYPE(METHOD, CPPTYPE)
  |  |  ------------------
  |  |  |  |  267|  9.38k|  if (field->cpp_type() != FieldDescriptor::CPPTYPE_##CPPTYPE) \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (267:7): [True: 0, False: 9.38k]
  |  |  |  |  ------------------
  |  |  |  |  268|  9.38k|  ReportReflectionUsageTypeError(descriptor_, field, #METHOD,  \
  |  |  |  |  269|      0|                                 FieldDescriptor::CPPTYPE_##CPPTYPE)
  |  |  ------------------
  ------------------
 2342|       |
 2343|  9.38k|  if (factory == nullptr) factory = message_factory_;
  ------------------
  |  Branch (2343:7): [True: 9.38k, False: 0]
  ------------------
 2344|       |
 2345|  9.38k|  if (field->is_extension()) {
  ------------------
  |  Branch (2345:7): [True: 0, False: 9.38k]
  ------------------
 2346|      0|    return static_cast<const Message&>(GetExtensionSet(message).GetMessage(
 2347|      0|        field->number(), field->message_type(), factory));
 2348|  9.38k|  } else {
 2349|  9.38k|    if (schema_.InRealOneof(field) && !HasOneofField(message, field)) {
  ------------------
  |  Branch (2349:9): [True: 0, False: 9.38k]
  |  Branch (2349:39): [True: 0, False: 0]
  ------------------
 2350|      0|      return *GetDefaultMessageInstance(field);
 2351|      0|    }
 2352|  9.38k|    const Message* result = GetRaw<const Message*>(message, field);
 2353|  9.38k|    if (result == nullptr) {
  ------------------
  |  Branch (2353:9): [True: 0, False: 9.38k]
  ------------------
 2354|      0|      result = GetDefaultMessageInstance(field);
 2355|      0|    }
 2356|  9.38k|    return *result;
 2357|  9.38k|  }
 2358|  9.38k|}
_ZNK6google8protobuf10Reflection14MutableMessageEPNS0_7MessageEPKNS0_15FieldDescriptorEPNS0_14MessageFactoryE:
 2362|  9.38k|                                    MessageFactory* factory) const {
 2363|  9.38k|  USAGE_MUTABLE_CHECK_ALL(MutableMessage, SINGULAR, MESSAGE);
  ------------------
  |  |  302|  9.38k|  USAGE_CHECK_MESSAGE(METHOD, message);                 \
  |  |  303|  9.38k|  USAGE_CHECK_MESSAGE_TYPE(METHOD);                     \
  |  |  ------------------
  |  |  |  |  286|  9.38k|  USAGE_CHECK_EQ(field->containing_type(), descriptor_, METHOD, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  262|  9.38k|  USAGE_CHECK((A) == (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  259|  9.38k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 9.38k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  260|  9.38k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  287|  9.38k|                 "Field does not match message type.");
  |  |  ------------------
  |  |  304|  9.38k|  USAGE_CHECK_##LABEL(METHOD);                          \
  |  |  ------------------
  |  |  |  |  289|  9.38k|  USAGE_CHECK_NE(field->label(), FieldDescriptor::LABEL_REPEATED, METHOD, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  264|  9.38k|  USAGE_CHECK((A) != (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  259|  9.38k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 9.38k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  260|  9.38k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  290|  9.38k|                 "Field is repeated; the method requires a singular field.")
  |  |  ------------------
  |  |  305|  9.38k|  USAGE_CHECK_TYPE(METHOD, CPPTYPE)
  |  |  ------------------
  |  |  |  |  267|  9.38k|  if (field->cpp_type() != FieldDescriptor::CPPTYPE_##CPPTYPE) \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (267:7): [True: 0, False: 9.38k]
  |  |  |  |  ------------------
  |  |  |  |  268|  9.38k|  ReportReflectionUsageTypeError(descriptor_, field, #METHOD,  \
  |  |  |  |  269|      0|                                 FieldDescriptor::CPPTYPE_##CPPTYPE)
  |  |  ------------------
  ------------------
 2364|       |
 2365|  9.38k|  if (factory == nullptr) factory = message_factory_;
  ------------------
  |  Branch (2365:7): [True: 9.38k, False: 0]
  ------------------
 2366|       |
 2367|  9.38k|  if (field->is_extension()) {
  ------------------
  |  Branch (2367:7): [True: 0, False: 9.38k]
  ------------------
 2368|      0|    return static_cast<Message*>(
 2369|      0|        MutableExtensionSet(message)->MutableMessage(field, factory));
 2370|  9.38k|  } else {
 2371|  9.38k|    Message* result;
 2372|       |
 2373|  9.38k|    Message** result_holder = MutableRaw<Message*>(message, field);
 2374|       |
 2375|  9.38k|    if (schema_.InRealOneof(field)) {
  ------------------
  |  Branch (2375:9): [True: 0, False: 9.38k]
  ------------------
 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|  9.38k|    } else {
 2383|  9.38k|      SetHasBit(message, field);
 2384|  9.38k|    }
 2385|       |
 2386|  9.38k|    if (*result_holder == nullptr) {
  ------------------
  |  Branch (2386:9): [True: 0, False: 9.38k]
  ------------------
 2387|      0|      const Message* default_message = GetDefaultMessageInstance(field);
 2388|      0|      *result_holder = default_message->New(message->GetArena());
 2389|      0|    }
 2390|  9.38k|    result = *result_holder;
 2391|  9.38k|    return result;
 2392|  9.38k|  }
 2393|  9.38k|}
_ZNK6google8protobuf10Reflection18GetRepeatedMessageERKNS0_7MessageEPKNS0_15FieldDescriptorEi:
 2511|  73.6k|                                              int index) const {
 2512|  73.6k|  USAGE_CHECK_ALL(GetRepeatedMessage, REPEATED, MESSAGE);
  ------------------
  |  |  296|  73.6k|  USAGE_CHECK_MESSAGE(METHOD, &message);        \
  |  |  297|  73.6k|  USAGE_CHECK_MESSAGE_TYPE(METHOD);             \
  |  |  ------------------
  |  |  |  |  286|  73.6k|  USAGE_CHECK_EQ(field->containing_type(), descriptor_, METHOD, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  262|  73.6k|  USAGE_CHECK((A) == (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  259|  73.6k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 73.6k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  260|  73.6k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  287|  73.6k|                 "Field does not match message type.");
  |  |  ------------------
  |  |  298|  73.6k|  USAGE_CHECK_##LABEL(METHOD);                  \
  |  |  ------------------
  |  |  |  |  292|  73.6k|  USAGE_CHECK_EQ(field->label(), FieldDescriptor::LABEL_REPEATED, METHOD, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  262|  73.6k|  USAGE_CHECK((A) == (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  259|  73.6k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 73.6k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  260|  73.6k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  293|  73.6k|                 "Field is singular; the method requires a repeated field.")
  |  |  ------------------
  |  |  299|  73.6k|  USAGE_CHECK_TYPE(METHOD, CPPTYPE)
  |  |  ------------------
  |  |  |  |  267|  73.6k|  if (field->cpp_type() != FieldDescriptor::CPPTYPE_##CPPTYPE) \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (267:7): [True: 0, False: 73.6k]
  |  |  |  |  ------------------
  |  |  |  |  268|  73.6k|  ReportReflectionUsageTypeError(descriptor_, field, #METHOD,  \
  |  |  |  |  269|      0|                                 FieldDescriptor::CPPTYPE_##CPPTYPE)
  |  |  ------------------
  ------------------
 2513|       |
 2514|  73.6k|  if (field->is_extension()) {
  ------------------
  |  Branch (2514:7): [True: 0, False: 73.6k]
  ------------------
 2515|      0|    return static_cast<const Message&>(
 2516|      0|        GetExtensionSet(message).GetRepeatedMessage(field->number(), index));
 2517|  73.6k|  } else {
 2518|  73.6k|    if (IsMapFieldInApi(field)) {
  ------------------
  |  Branch (2518:9): [True: 0, False: 73.6k]
  ------------------
 2519|      0|      return GetRaw<MapFieldBase>(message, field)
 2520|      0|          .GetRepeatedField()
 2521|      0|          .Get<GenericTypeHandler<Message> >(index);
 2522|  73.6k|    } else {
 2523|  73.6k|      return GetRaw<RepeatedPtrFieldBase>(message, field)
 2524|  73.6k|          .Get<GenericTypeHandler<Message> >(index);
 2525|  73.6k|    }
 2526|  73.6k|  }
 2527|  73.6k|}
_ZNK6google8protobuf10Reflection22MutableRepeatedMessageEPNS0_7MessageEPKNS0_15FieldDescriptorEi:
 2531|  73.6k|                                            int index) const {
 2532|  73.6k|  USAGE_MUTABLE_CHECK_ALL(MutableRepeatedMessage, REPEATED, MESSAGE);
  ------------------
  |  |  302|  73.6k|  USAGE_CHECK_MESSAGE(METHOD, message);                 \
  |  |  303|  73.6k|  USAGE_CHECK_MESSAGE_TYPE(METHOD);                     \
  |  |  ------------------
  |  |  |  |  286|  73.6k|  USAGE_CHECK_EQ(field->containing_type(), descriptor_, METHOD, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  262|  73.6k|  USAGE_CHECK((A) == (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  259|  73.6k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 73.6k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  260|  73.6k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  287|  73.6k|                 "Field does not match message type.");
  |  |  ------------------
  |  |  304|  73.6k|  USAGE_CHECK_##LABEL(METHOD);                          \
  |  |  ------------------
  |  |  |  |  292|  73.6k|  USAGE_CHECK_EQ(field->label(), FieldDescriptor::LABEL_REPEATED, METHOD, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  262|  73.6k|  USAGE_CHECK((A) == (B), METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  259|  73.6k|  if (!(CONDITION))                                       \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (259:7): [True: 0, False: 73.6k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  260|  73.6k|  ReportReflectionUsageError(descriptor_, field, #METHOD, ERROR_DESCRIPTION)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  293|  73.6k|                 "Field is singular; the method requires a repeated field.")
  |  |  ------------------
  |  |  305|  73.6k|  USAGE_CHECK_TYPE(METHOD, CPPTYPE)
  |  |  ------------------
  |  |  |  |  267|  73.6k|  if (field->cpp_type() != FieldDescriptor::CPPTYPE_##CPPTYPE) \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (267:7): [True: 0, False: 73.6k]
  |  |  |  |  ------------------
  |  |  |  |  268|  73.6k|  ReportReflectionUsageTypeError(descriptor_, field, #METHOD,  \
  |  |  |  |  269|      0|                                 FieldDescriptor::CPPTYPE_##CPPTYPE)
  |  |  ------------------
  ------------------
 2533|       |
 2534|  73.6k|  if (field->is_extension()) {
  ------------------
  |  Branch (2534:7): [True: 0, False: 73.6k]
  ------------------
 2535|      0|    return static_cast<Message*>(
 2536|      0|        MutableExtensionSet(message)->MutableRepeatedMessage(field->number(),
 2537|      0|                                                             index));
 2538|  73.6k|  } else {
 2539|  73.6k|    if (IsMapFieldInApi(field)) {
  ------------------
  |  Branch (2539:9): [True: 0, False: 73.6k]
  ------------------
 2540|      0|      return MutableRaw<MapFieldBase>(message, field)
 2541|      0|          ->MutableRepeatedField()
 2542|      0|          ->Mutable<GenericTypeHandler<Message> >(index);
 2543|  73.6k|    } else {
 2544|  73.6k|      return MutableRaw<RepeatedPtrFieldBase>(message, field)
 2545|  73.6k|          ->Mutable<GenericTypeHandler<Message> >(index);
 2546|  73.6k|    }
 2547|  73.6k|  }
 2548|  73.6k|}
_ZNK6google8protobuf10Reflection22MutableRawNonOneofImplEPNS0_7MessageEPKNS0_15FieldDescriptorE:
 2825|  83.0k|                                         const FieldDescriptor* field) const {
 2826|  83.0k|  if (PROTOBUF_PREDICT_FALSE(schema_.IsSplit(field))) {
  ------------------
  |  |  365|  83.0k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 83.0k]
  |  |  |  Branch (365:54): [Folded, False: 83.0k]
  |  |  |  Branch (365:63): [True: 0, False: 83.0k]
  |  |  ------------------
  ------------------
 2827|      0|    return MutableRawSplitImpl(message, field);
 2828|      0|  }
 2829|       |
 2830|  83.0k|  const uint32_t field_offset = schema_.GetFieldOffsetNonOneof(field);
 2831|  83.0k|  return GetPointerAtOffset<void>(message, field_offset);
 2832|  83.0k|}
_ZNK6google8protobuf10Reflection14MutableRawImplEPNS0_7MessageEPKNS0_15FieldDescriptorE:
 2835|  83.0k|                                 const FieldDescriptor* field) const {
 2836|  83.0k|  if (PROTOBUF_PREDICT_TRUE(!schema_.InRealOneof(field))) {
  ------------------
  |  |  364|  83.0k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 83.0k, False: 0]
  |  |  |  Branch (364:53): [Folded, False: 83.0k]
  |  |  |  Branch (364:62): [True: 83.0k, False: 0]
  |  |  ------------------
  ------------------
 2837|  83.0k|    return MutableRawNonOneofImpl(message, field);
 2838|  83.0k|  }
 2839|       |
 2840|       |  // Oneof fields are not split.
 2841|      0|  ABSL_DCHECK(!schema_.IsSplit(field));
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  83.0k|  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|  49.2k|const uint32_t* Reflection::GetHasBits(const Message& message) const {
 2848|  49.2k|  ABSL_DCHECK(schema_.HasHasbits());
  ------------------
  |  |   47|  49.2k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  49.2k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  98.5k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  49.2k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  98.5k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  98.5k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 49.2k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  49.2k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 49.2k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  49.2k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 49.2k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  98.5k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  98.5k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2849|  49.2k|  return &GetConstRefAtOffset<uint32_t>(message, schema_.HasBitsOffset());
 2850|  49.2k|}
_ZNK6google8protobuf10Reflection16HasFieldSingularERKNS0_7MessageEPKNS0_15FieldDescriptorE:
 2954|  49.2k|                                  const FieldDescriptor* field) const {
 2955|  49.2k|  ABSL_DCHECK(!field->options().weak());
  ------------------
  |  |   47|  49.2k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  49.2k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  98.5k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  49.2k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  98.5k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  98.5k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 49.2k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  49.2k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 49.2k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  49.2k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 49.2k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  98.5k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  98.5k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2956|  49.2k|  if (schema_.HasBitIndex(field) != static_cast<uint32_t>(-1)) {
  ------------------
  |  Branch (2956:7): [True: 49.2k, False: 0]
  ------------------
 2957|  49.2k|    return IsIndexInHasBitSet(GetHasBits(message), schema_.HasBitIndex(field));
 2958|  49.2k|  }
 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|  9.38k|                           const FieldDescriptor* field) const {
 3024|  9.38k|  ABSL_DCHECK(!field->options().weak());
  ------------------
  |  |   47|  9.38k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  9.38k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  18.7k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  9.38k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  18.7k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  18.7k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 9.38k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  9.38k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 9.38k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  9.38k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 9.38k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  18.7k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  18.7k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3025|  9.38k|  const uint32_t index = schema_.HasBitIndex(field);
 3026|  9.38k|  if (index == static_cast<uint32_t>(-1)) return;
  ------------------
  |  Branch (3026:7): [True: 0, False: 9.38k]
  ------------------
 3027|  9.38k|  MutableHasBits(message)[index / 32] |=
 3028|  9.38k|      (static_cast<uint32_t>(1) << (index % 32));
 3029|  9.38k|}
_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|   181k|bool IsMapFieldInApi(const FieldDescriptor* field) { return field->is_map(); }
generated_message_reflection.cc:_ZN6google8protobuf12_GLOBAL__N_118IsIndexInHasBitSetEPKjj:
 1647|  49.2k|bool IsIndexInHasBitSet(const uint32_t* has_bit_set, uint32_t has_bit_index) {
 1648|  49.2k|  ABSL_DCHECK_NE(has_bit_index, ~0u);
  ------------------
  |  |   76|  49.2k|  ABSL_LOG_INTERNAL_DCHECK_NE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   88|  49.2k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  49.2k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 49.2k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  49.2k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1649|  49.2k|  return ((has_bit_set[has_bit_index / 32] >> (has_bit_index % 32)) &
 1650|  49.2k|          static_cast<uint32_t>(1)) != 0;
 1651|  49.2k|}
_ZNK6google8protobuf10Reflection14MutableHasBitsEPNS0_7MessageE:
 2852|  9.38k|uint32_t* Reflection::MutableHasBits(Message* message) const {
 2853|  9.38k|  ABSL_DCHECK(schema_.HasHasbits());
  ------------------
  |  |   47|  9.38k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  9.38k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  18.7k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  9.38k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  18.7k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  18.7k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 9.38k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  9.38k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 9.38k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  9.38k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 9.38k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  18.7k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  18.7k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2854|  9.38k|  return GetPointerAtOffset<uint32_t>(message, schema_.HasBitsOffset());
 2855|  9.38k|}
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|   268k|  bool InRealOneof(const FieldDescriptor* field) const {
  118|   268k|    return field->real_containing_oneof();
  119|   268k|  }
_ZNK6google8protobuf8internal16ReflectionSchema22GetFieldOffsetNonOneofEPKNS0_15FieldDescriptorE:
  123|   200k|  uint32_t GetFieldOffsetNonOneof(const FieldDescriptor* field) const {
  124|   200k|    ABSL_DCHECK(!InRealOneof(field));
  ------------------
  |  |   47|   200k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|   200k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|   401k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|   200k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|   401k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|   401k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 200k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|   200k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 200k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|   200k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 200k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|   401k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|   401k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  125|   200k|    return OffsetValue(offsets_[field->index()], field->type());
  126|   200k|  }
_ZNK6google8protobuf8internal16ReflectionSchema11HasBitIndexEPKNS0_15FieldDescriptorE:
  154|   107k|  uint32_t HasBitIndex(const FieldDescriptor* field) const {
  155|   107k|    if (has_bits_offset_ == -1) return static_cast<uint32_t>(-1);
  ------------------
  |  Branch (155:9): [True: 0, False: 107k]
  ------------------
  156|   107k|    ABSL_DCHECK(HasHasbits());
  ------------------
  |  |   47|   107k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|   107k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|   323k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|   107k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|   215k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|   215k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 107k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|   107k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 107k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|   107k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 107k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|   323k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|   323k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  157|   107k|    return has_bit_indices_[field->index()];
  158|   107k|  }
_ZNK6google8protobuf8internal16ReflectionSchema13HasBitsOffsetEv:
  161|  58.6k|  uint32_t HasBitsOffset() const {
  162|  58.6k|    ABSL_DCHECK(HasHasbits());
  ------------------
  |  |   47|  58.6k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  58.6k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|   117k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  58.6k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|   117k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|   117k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 58.6k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  58.6k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 58.6k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  58.6k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 58.6k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|   117k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|   117k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  163|  58.6k|    return static_cast<uint32_t>(has_bits_offset_);
  164|  58.6k|  }
_ZNK6google8protobuf8internal16ReflectionSchema7IsSplitEPKNS0_15FieldDescriptorE:
  222|   200k|  bool IsSplit(const FieldDescriptor* field) const {
  223|   200k|    return split_offset_ != -1 &&
  ------------------
  |  Branch (223:12): [True: 0, False: 200k]
  ------------------
  224|      0|           (offsets_[field->index()] & kSplitFieldOffsetMask) != 0;
  ------------------
  |  Branch (224:12): [True: 0, False: 0]
  ------------------
  225|   200k|  }
_ZN6google8protobuf8internal16ReflectionSchema11OffsetValueEjNS1_19FieldDescriptorLite4TypeE:
  263|   200k|  static uint32_t OffsetValue(uint32_t v, FieldDescriptor::Type type) {
  264|   200k|    if (type == FieldDescriptor::TYPE_MESSAGE ||
  ------------------
  |  Branch (264:9): [True: 200k, False: 0]
  ------------------
  265|      0|        type == FieldDescriptor::TYPE_STRING ||
  ------------------
  |  Branch (265:9): [True: 0, False: 0]
  ------------------
  266|   200k|        type == FieldDescriptor::TYPE_BYTES) {
  ------------------
  |  Branch (266:9): [True: 0, False: 0]
  ------------------
  267|   200k|      return v & (~kSplitFieldOffsetMask) & (~kInlinedMask) & (~kLazyMask);
  268|   200k|    }
  269|      0|    return v & (~kSplitFieldOffsetMask);
  270|   200k|  }

_ZN6google8protobuf8internal11TcFieldDataC2ENS2_11DefaultInitE:
   64|   588k|  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|  42.1k|  uint8_t aux_idx() const { return static_cast<uint8_t>(data >> 24); }
_ZNK6google8protobuf8internal11TcFieldData6offsetEv:
   87|   137k|  uint16_t offset() const { return static_cast<uint16_t>(data >> 48); }
_ZNK6google8protobuf8internal11TcFieldData3tagEv:
  122|   110k|  uint32_t tag() const { return static_cast<uint32_t>(data); }
_ZNK6google8protobuf8internal11TcFieldData12entry_offsetEv:
  123|  40.4k|  uint32_t entry_offset() const { return static_cast<uint32_t>(data >> 32); }
_ZNK6google8protobuf8internal16TcParseTableBase14FastFieldEntry6targetEv:
  370|   209k|    TailCallParseFunc target() const {
  371|   209k|      return target_atomic.load(std::memory_order_relaxed);
  372|   209k|    }
_ZNK6google8protobuf8internal16TcParseTableBase10fast_entryEm:
  378|   209k|  const FastFieldEntry* fast_entry(size_t idx) const {
  379|   209k|    return reinterpret_cast<const FastFieldEntry*>(this + 1) + idx;
  380|   209k|  }
_ZNK6google8protobuf8internal16TcParseTableBase18field_lookup_beginEv:
  386|  1.16k|  const uint16_t* field_lookup_begin() const {
  387|  1.16k|    return reinterpret_cast<const uint16_t*>(reinterpret_cast<uintptr_t>(this) +
  388|  1.16k|                                             lookup_table_offset);
  389|  1.16k|  }
_ZNK6google8protobuf8internal16TcParseTableBase19field_entries_beginEv:
  406|  71.4k|  const FieldEntry* field_entries_begin() const {
  407|  71.4k|    return reinterpret_cast<const FieldEntry*>(
  408|  71.4k|        reinterpret_cast<uintptr_t>(this) + field_entries_offset);
  409|  71.4k|  }
_ZN6google8protobuf8internal16TcParseTableBase8FieldAuxC2Ev:
  420|     27|    constexpr FieldAux() : message_default_p(nullptr) {}
_ZNK6google8protobuf8internal16TcParseTableBase9field_auxEj:
  451|  22.1k|  const FieldAux* field_aux(uint32_t idx) const {
  452|  22.1k|    return reinterpret_cast<const FieldAux*>(reinterpret_cast<uintptr_t>(this) +
  453|  22.1k|                                             aux_offset) +
  454|  22.1k|           idx;
  455|  22.1k|  }
_ZNK6google8protobuf8internal16TcParseTableBase9field_auxEPKNS2_10FieldEntryE:
  461|    199|  const FieldAux* field_aux(const FieldEntry* entry) const {
  462|    199|    return field_aux(entry->aux_idx);
  463|    199|  }
_ZNK6google8protobuf8internal16TcParseTableBase16default_instanceEv:
  477|      8|  const MessageLite* default_instance() const { return class_data->prototype; }
_ZNK6google8protobuf8internal11TcFieldData9coded_tagIhEET_v:
   82|   197k|  TagType coded_tag() const {
   83|   197k|    return static_cast<TagType>(data);
   84|   197k|  }
_ZNK6google8protobuf8internal11TcFieldData9coded_tagItEET_v:
   82|  9.54k|  TagType coded_tag() const {
   83|  9.54k|    return static_cast<TagType>(data);
   84|  9.54k|  }

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

_ZN6google8protobuf8internal8TcParser11SyncHasbitsEPNS0_11MessageLiteEmPKNS1_16TcParseTableBaseE:
  860|   133k|      MessageLite* msg, uint64_t hasbits, const TcParseTableBase* table) {
  861|   133k|    const uint32_t has_bits_offset = table->has_bits_offset;
  862|   133k|    if (has_bits_offset) {
  ------------------
  |  Branch (862:9): [True: 55.1k, False: 77.9k]
  ------------------
  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|  55.1k|      RefAt<uint32_t>(msg, has_bits_offset) |= static_cast<uint32_t>(hasbits);
  866|  55.1k|    }
  867|   133k|  }
_ZN6google8protobuf8internal8TcParser11TagDispatchEPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1098|   209k|    PROTOBUF_TC_PARAM_NO_DATA_DECL) {
 1099|   209k|  const auto coded_tag = UnalignedLoad<uint16_t>(ptr);
 1100|   209k|  const size_t idx = coded_tag & table->fast_idx_mask;
 1101|   209k|  PROTOBUF_ASSUME((idx & 7) == 0);
  ------------------
  |  |  941|   209k|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
 1102|   209k|  auto* fast_entry = table->fast_entry(idx >> 3);
 1103|   209k|  TcFieldData data = fast_entry->bits;
 1104|   209k|  data.data ^= coded_tag;
 1105|   209k|  PROTOBUF_MUSTTAIL return fast_entry->target()(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|   209k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return fast_entry->target()(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|   209k|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1106|   209k|}
_ZN6google8protobuf8internal8TcParser13ToTagDispatchEPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1114|   153k|    PROTOBUF_TC_PARAM_NO_DATA_DECL) {
 1115|   153k|  constexpr bool always_return = !PROTOBUF_TAILCALL;
  ------------------
  |  |  237|   153k|#define PROTOBUF_TAILCALL true
  ------------------
 1116|   153k|  if (always_return || !ctx->DataAvailable(ptr)) {
  ------------------
  |  Branch (1116:7): [Folded, False: 153k]
  |  Branch (1116:24): [True: 77.0k, False: 76.1k]
  ------------------
 1117|  77.0k|    PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  77.0k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  77.0k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1118|  77.0k|  }
 1119|  76.1k|  PROTOBUF_MUSTTAIL return TagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  76.1k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return TagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  76.1k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1120|   153k|}
_ZN6google8protobuf8internal8TcParser11ToParseLoopEPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1123|  84.3k|    PROTOBUF_TC_PARAM_NO_DATA_DECL) {
 1124|  84.3k|  (void)ctx;
 1125|  84.3k|  SyncHasbits(msg, hasbits, table);
 1126|  84.3k|  return ptr;
 1127|  84.3k|}
_ZN6google8protobuf8internal8TcParser9ParseLoopEPNS0_11MessageLiteEPKcPNS1_12ParseContextEPKNS1_16TcParseTableBaseE:
 1131|  98.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|  98.0k|  table += 1;
 1139|   231k|  while (!ctx->Done(&ptr)) {
  ------------------
  |  Branch (1139:10): [True: 133k, False: 97.9k]
  ------------------
 1140|   133k|#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|   133k|    asm("" : "+r"(table));
 1146|   133k|#endif
 1147|   133k|    ptr = TagDispatch(msg, ptr, ctx, TcFieldData::DefaultInit(), table - 1, 0);
 1148|   133k|    if (ptr == nullptr) break;
  ------------------
  |  Branch (1148:9): [True: 108, False: 132k]
  ------------------
 1149|   132k|    if (ctx->LastTag() != 1) break;  // Ended on terminating tag
  ------------------
  |  Branch (1149:9): [True: 5, False: 132k]
  ------------------
 1150|   132k|  }
 1151|  98.0k|  table -= 1;
 1152|  98.0k|  if (ABSL_PREDICT_FALSE(table->has_post_loop_handler)) {
  ------------------
  |  |  178|  98.0k|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 0, False: 98.0k]
  |  |  |  Branch (178:49): [Folded, False: 98.0k]
  |  |  |  Branch (178:58): [True: 0, False: 98.0k]
  |  |  ------------------
  ------------------
 1153|      0|    return table->post_loop_handler(msg, ptr, ctx);
 1154|      0|  }
 1155|  98.0k|  return ptr;
 1156|  98.0k|}
_ZN6google8protobuf8internal8TcParser5RefAtIjEERT_Pvm:
  714|   168k|  static inline T& RefAt(void* x, size_t offset) {
  715|   168k|    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|   168k|    return *target;
  728|   168k|  }
_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|  40.4k|  static inline const T& RefAt(const void* x, size_t offset) {
  732|  40.4k|    const T* target =
  733|  40.4k|        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|  40.4k|    return *target;
  746|  40.4k|  }
_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|  14.5k|  static inline T& RefAt(void* x, size_t offset) {
  715|  14.5k|    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|  14.5k|    return *target;
  728|  14.5k|  }
_ZN6google8protobuf8internal8TcParser32MaybeCreateRepeatedPtrFieldRefAtINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELb0EEERNS0_16RepeatedPtrFieldIT_EEPvmPNS0_11MessageLiteE:
  773|     73|      void* x, size_t offset, MessageLite* msg) {
  774|     73|    return MaybeCreateRepeatedRefAt<RepeatedPtrField<T>, is_split>(x, offset,
  775|     73|                                                                   msg);
  776|     73|  }
_ZN6google8protobuf8internal8TcParser24MaybeCreateRepeatedRefAtINS0_16RepeatedPtrFieldINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEELb0EEERT_PvmPNS0_11MessageLiteE:
  756|     73|                                            MessageLite* msg) {
  757|     73|    if (!is_split) return RefAt<T>(x, offset);
  ------------------
  |  Branch (757:9): [True: 73, 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|     73|  }
_ZN6google8protobuf8internal8TcParser5RefAtINS0_16RepeatedPtrFieldINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEEEERT_Pvm:
  714|  5.06k|  static inline T& RefAt(void* x, size_t offset) {
  715|  5.06k|    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|  5.06k|    return *target;
  728|  5.06k|  }
_ZN6google8protobuf8internal8TcParser24MaybeCreateRepeatedRefAtINS1_20RepeatedPtrFieldBaseELb0EEERT_PvmPNS0_11MessageLiteE:
  756|     99|                                            MessageLite* msg) {
  757|     99|    if (!is_split) return RefAt<T>(x, offset);
  ------------------
  |  Branch (757:9): [True: 99, 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|     99|  }
_ZN6google8protobuf8internal8TcParser5RefAtINS1_20RepeatedPtrFieldBaseEEERT_Pvm:
  714|  12.3k|  static inline T& RefAt(void* x, size_t offset) {
  715|  12.3k|    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|  12.3k|    return *target;
  728|  12.3k|  }
_ZN6google8protobuf8internal8TcParser5RefAtIbEERT_Pvm:
  714|  17.7k|  static inline T& RefAt(void* x, size_t offset) {
  715|  17.7k|    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|  17.7k|    return *target;
  728|  17.7k|  }
_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|  28.0k|  static inline T& RefAt(void* x, size_t offset) {
  715|  28.0k|    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|  28.0k|    return *target;
  728|  28.0k|  }
_ZN6google8protobuf8internal8TcParser5RefAtIPNS0_11MessageLiteEEERT_Pvm:
  714|  9.64k|  static inline T& RefAt(void* x, size_t offset) {
  715|  9.64k|    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.64k|    return *target;
  728|  9.64k|  }
_ZN6google8protobuf8internal8TcParser19GenericFallbackImplINS0_7MessageENS0_15UnknownFieldSetEEEPKcPNS0_11MessageLiteES7_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  906|  38.9k|  PROTOBUF_CC static const char* GenericFallbackImpl(PROTOBUF_TC_PARAM_DECL) {
  907|  38.9k|    if (PROTOBUF_PREDICT_FALSE(ptr == nullptr)) {
  ------------------
  |  |  365|  38.9k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 38.9k]
  |  |  |  Branch (365:54): [Folded, False: 38.9k]
  |  |  |  Branch (365:63): [True: 0, False: 38.9k]
  |  |  ------------------
  ------------------
  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|  38.9k|    SyncHasbits(msg, hasbits, table);
  916|  38.9k|    uint32_t tag = data.tag();
  917|  38.9k|    if ((tag & 7) == WireFormatLite::WIRETYPE_END_GROUP || tag == 0) {
  ------------------
  |  Branch (917:9): [True: 2, False: 38.9k]
  |  Branch (917:60): [True: 3, False: 38.9k]
  ------------------
  918|      5|      ctx->SetLastTag(tag);
  919|      5|      return ptr;
  920|      5|    }
  921|       |
  922|  38.9k|    if (table->extension_offset != 0) {
  ------------------
  |  Branch (922:9): [True: 8, False: 38.9k]
  ------------------
  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|  38.9k|    } else {
  932|       |      // Otherwise, we directly put it on the unknown field set.
  933|  38.9k|      return UnknownFieldParse(
  934|  38.9k|          tag,
  935|  38.9k|          msg->_internal_metadata_.mutable_unknown_fields<UnknownFieldsT>(),
  936|  38.9k|          ptr, ctx);
  937|  38.9k|    }
  938|  38.9k|  }

_ZN6google8protobuf8internal8TcParser21ParseLoopPreserveNoneEPNS0_11MessageLiteEPKcPNS1_12ParseContextEPKNS1_16TcParseTableBaseE:
   82|    506|    const TcParseTableBase* table) {
   83|    506|  return ParseLoop(msg, ptr, ctx, table);
   84|    506|}
_ZN6google8protobuf8internal8TcParser14FindFieldEntryEPKNS1_16TcParseTableBaseEj:
  138|  71.4k|    const TcParseTableBase* table, uint32_t field_num) {
  139|  71.4k|  const FieldEntry* const field_entries = table->field_entries_begin();
  140|       |
  141|  71.4k|  uint32_t fstart = 1;
  142|  71.4k|  uint32_t adj_fnum = field_num - fstart;
  143|       |
  144|  71.4k|  if (PROTOBUF_PREDICT_TRUE(adj_fnum < 32)) {
  ------------------
  |  |  364|  71.4k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 70.3k, False: 1.16k]
  |  |  |  Branch (364:53): [Folded, False: 71.4k]
  |  |  |  Branch (364:62): [True: 70.3k, False: 1.16k]
  |  |  ------------------
  ------------------
  145|  70.3k|    uint32_t skipmap = table->skipmap32;
  146|  70.3k|    uint32_t skipbit = 1 << adj_fnum;
  147|  70.3k|    if (PROTOBUF_PREDICT_FALSE(skipmap & skipbit)) return nullptr;
  ------------------
  |  |  365|  70.3k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 30.3k, False: 39.9k]
  |  |  |  Branch (365:54): [Folded, False: 70.3k]
  |  |  |  Branch (365:63): [True: 30.3k, False: 39.9k]
  |  |  ------------------
  ------------------
  148|  39.9k|    skipmap &= skipbit - 1;
  149|  39.9k|    adj_fnum -= absl::popcount(skipmap);
  150|  39.9k|    auto* entry = field_entries + adj_fnum;
  151|  39.9k|    PROTOBUF_ASSUME(entry != nullptr);
  ------------------
  |  |  941|  39.9k|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
  152|  39.9k|    return entry;
  153|  70.3k|  }
  154|  1.16k|  const uint16_t* lookup_table = table->field_lookup_begin();
  155|  1.16k|  for (;;) {
  156|  1.16k|#ifdef ABSL_IS_LITTLE_ENDIAN
  157|  1.16k|    memcpy(&fstart, lookup_table, sizeof(fstart));
  158|       |#else
  159|       |    fstart = lookup_table[0] | (lookup_table[1] << 16);
  160|       |#endif
  161|  1.16k|    lookup_table += sizeof(fstart) / sizeof(*lookup_table);
  162|  1.16k|    uint32_t num_skip_entries = *lookup_table++;
  163|  1.16k|    if (field_num < fstart) return nullptr;
  ------------------
  |  Branch (163:9): [True: 1.16k, 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|  1.16k|}
_ZN6google8protobuf8internal8TcParser5ErrorEPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  229|     45|PROTOBUF_NOINLINE const char* TcParser::Error(PROTOBUF_TC_PARAM_NO_DATA_DECL) {
  230|     45|  (void)ctx;
  231|     45|  (void)ptr;
  232|     45|  SyncHasbits(msg, hasbits, table);
  233|     45|  return nullptr;
  234|     45|}
_ZN6google8protobuf8internal8TcParser9MiniParseEPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  322|  71.4k|    PROTOBUF_TC_PARAM_NO_DATA_DECL) {
  323|  71.4k|  PROTOBUF_MUSTTAIL return MiniParse<false>(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  71.4k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return MiniParse<false>(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  71.4k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  324|  71.4k|}
_ZN6google8protobuf8internal8TcParser10AddMessageEPKNS1_16TcParseTableBaseERNS1_20RepeatedPtrFieldBaseE:
  364|  78.2k|                                  RepeatedPtrFieldBase& field) {
  365|  78.2k|  return static_cast<MessageLite*>(field.AddInternal(
  366|  78.2k|      [table](Arena* arena) { return NewMessage(table, arena); }));
  367|  78.2k|}
_ZN6google8protobuf8internal8TcParser8FastMtS1EPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  417|  14.0k|PROTOBUF_NOINLINE const char* TcParser::FastMtS1(PROTOBUF_TC_PARAM_DECL) {
  418|  14.0k|  PROTOBUF_MUSTTAIL return SingularParseMessageAuxImpl<uint8_t, false, true>(
  ------------------
  |  |  236|  14.0k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
  419|  14.0k|      PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|  14.0k|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
  420|  14.0k|}
_ZN6google8protobuf8internal8TcParser8FastMtR1EPNS0_11MessageLiteEPKcPNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  503|  27.1k|PROTOBUF_NOINLINE const char* TcParser::FastMtR1(PROTOBUF_TC_PARAM_DECL) {
  504|  27.1k|  PROTOBUF_MUSTTAIL return RepeatedParseMessageAuxImpl<uint8_t, false, true>(
  ------------------
  |  |  236|  27.1k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
  505|  27.1k|      PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|  27.1k|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
  506|  27.1k|}
_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|  9.50k|PROTOBUF_NOINLINE const char* TcParser::FastV8S1(PROTOBUF_TC_PARAM_DECL) {
  830|  9.50k|  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|  9.50k|  auto coded_tag = data.coded_tag<uint16_t>();
  836|  9.50k|  if (PROTOBUF_PREDICT_TRUE(coded_tag == 0x0000 || coded_tag == 0x0100)) {
  ------------------
  |  |  364|  19.0k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 8.86k, False: 640]
  |  |  |  Branch (364:53): [Folded, False: 9.50k]
  |  |  |  Branch (364:63): [True: 7, False: 9.49k]
  |  |  |  Branch (364:63): [True: 8.85k, False: 640]
  |  |  ------------------
  ------------------
  837|  8.86k|    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|  8.86k|    uint8_t value = data.data >> 8;
  843|       |    // The assume allows using a mov instead of test+setne.
  844|  8.86k|    PROTOBUF_ASSUME(value <= 1);
  ------------------
  |  |  941|  8.86k|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
  845|  8.86k|    field = static_cast<bool>(value);
  846|       |
  847|  8.86k|    ptr += sizeof(TagType) + 1;  // Consume the tag and the value.
  848|  8.86k|    hasbits |= (uint64_t{1} << data.hasbit_idx());
  849|       |
  850|  8.86k|    PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  8.86k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  8.86k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  851|  8.86k|  }
  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|    640|  PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|    640|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|    640|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  857|  9.50k|}
_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|   126k|PROTOBUF_NOINLINE const char* TcParser::FastV32S1(PROTOBUF_TC_PARAM_DECL) {
  864|   126k|  PROTOBUF_MUSTTAIL return FastVarintS1<uint32_t>(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|   126k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return FastVarintS1<uint32_t>(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|   126k|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
  865|   126k|}
_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|  22.8k|PROTOBUF_NOINLINE const char* TcParser::FastBS1(PROTOBUF_TC_PARAM_DECL) {
 1449|  22.8k|  PROTOBUF_MUSTTAIL return SingularString<uint8_t, ArenaStringPtr, kNoUtf8>(
  ------------------
  |  |  236|  22.8k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
 1450|  22.8k|      PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|  22.8k|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1451|  22.8k|}
_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|  5.18k|PROTOBUF_NOINLINE const char* TcParser::FastBR1(PROTOBUF_TC_PARAM_DECL) {
 1574|  5.18k|  PROTOBUF_MUSTTAIL return RepeatedString<
  ------------------
  |  |  236|  5.18k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
 1575|  5.18k|      uint8_t, RepeatedPtrField<std::string>, kNoUtf8>(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|  5.18k|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1576|  5.18k|}
_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|  31.6k|                           MessageLite* msg) {
 1625|       |  // The _oneof_case_ value offset is stored in the has-bit index.
 1626|  31.6k|  uint32_t* oneof_case = &TcParser::RefAt<uint32_t>(msg, entry.has_idx);
 1627|  31.6k|  uint32_t current_case = *oneof_case;
 1628|  31.6k|  *oneof_case = field_num;
 1629|       |
 1630|  31.6k|  if (current_case == 0) {
  ------------------
  |  Branch (1630:7): [True: 31.6k, False: 6]
  ------------------
 1631|       |    // If the member is empty, we don't have anything to clear. Caller is
 1632|       |    // responsible for creating a new member object.
 1633|  31.6k|    return true;
 1634|  31.6k|  }
 1635|      6|  if (current_case == field_num) {
  ------------------
  |  Branch (1635:7): [True: 6, False: 0]
  ------------------
 1636|       |    // If the member is already active, then it should be merged. We're done.
 1637|      6|    return false;
 1638|      6|  }
 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|  32.5k|                                  const TcParseTableBase* table) {
 1694|  32.5k|  void* out = msg;
 1695|  32.5k|  if (is_split) {
  ------------------
  |  Branch (1695:7): [True: 0, False: 32.5k]
  ------------------
 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|  32.5k|  return out;
 1711|  32.5k|}
_ZN6google8protobuf8internal8TcParser12MpVerifyUtf8EN4absl12lts_2024011611string_viewEPKNS1_16TcParseTableBaseERKNS6_10FieldEntryEt:
 2116|  8.91k|                            const FieldEntry& entry, uint16_t xform_val) {
 2117|  8.91k|  if (xform_val == field_layout::kTvUtf8) {
  ------------------
  |  Branch (2117:7): [True: 0, False: 8.91k]
  ------------------
 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|  8.91k|  return true;
 2134|  8.91k|}
_ZN6google8protobuf8internal8TcParser9MiniParseILb0EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  238|  71.4k|    PROTOBUF_TC_PARAM_DECL) {
  239|  71.4k|  TestMiniParseResult* test_out;
  240|  71.4k|  if (export_called_function) {
  ------------------
  |  Branch (240:7): [Folded, False: 71.4k]
  ------------------
  241|      0|    test_out = reinterpret_cast<TestMiniParseResult*>(
  242|      0|        static_cast<uintptr_t>(data.data));
  243|      0|  }
  244|       |
  245|  71.4k|  uint32_t tag;
  246|  71.4k|  ptr = ReadTagInlined(ptr, &tag);
  247|  71.4k|  if (PROTOBUF_PREDICT_FALSE(ptr == nullptr)) {
  ------------------
  |  |  365|  71.4k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 71.4k]
  |  |  |  Branch (365:54): [Folded, False: 71.4k]
  |  |  |  Branch (365:63): [True: 0, False: 71.4k]
  |  |  ------------------
  ------------------
  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|  71.4k|  auto* entry = FindFieldEntry(table, tag >> 3);
  253|  71.4k|  if (entry == nullptr) {
  ------------------
  |  Branch (253:7): [True: 31.5k, False: 39.9k]
  ------------------
  254|  31.5k|    if (export_called_function) *test_out = {table->fallback, tag};
  ------------------
  |  Branch (254:9): [Folded, False: 31.5k]
  ------------------
  255|  31.5k|    data.data = tag;
  256|  31.5k|    PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|  31.5k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|  31.5k|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
  257|  31.5k|  }
  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|  39.9k|  uint64_t entry_offset = reinterpret_cast<const char*>(entry) -
  263|  39.9k|                          reinterpret_cast<const char*>(table);
  264|  39.9k|  data.data = entry_offset << 32 | tag;
  265|       |
  266|  39.9k|  using field_layout::FieldKind;
  267|  39.9k|  auto field_type =
  268|  39.9k|      entry->type_card & (+field_layout::kSplitMask | FieldKind::kFkMask);
  269|       |
  270|  39.9k|  static constexpr TailCallParseFunc kMiniParseTable[] = {
  271|  39.9k|      &MpFallback,             // FieldKind::kFkNone
  272|  39.9k|      &MpVarint<false>,        // FieldKind::kFkVarint
  273|  39.9k|      &MpPackedVarint<false>,  // FieldKind::kFkPackedVarint
  274|  39.9k|      &MpFixed<false>,         // FieldKind::kFkFixed
  275|  39.9k|      &MpPackedFixed<false>,   // FieldKind::kFkPackedFixed
  276|  39.9k|      &MpString<false>,        // FieldKind::kFkString
  277|  39.9k|      &MpMessage<false>,       // FieldKind::kFkMessage
  278|  39.9k|      &MpMap<false>,           // FieldKind::kFkMap
  279|  39.9k|      &Error,                  // kSplitMask | FieldKind::kFkNone
  280|  39.9k|      &MpVarint<true>,         // kSplitMask | FieldKind::kFkVarint
  281|  39.9k|      &MpPackedVarint<true>,   // kSplitMask | FieldKind::kFkPackedVarint
  282|  39.9k|      &MpFixed<true>,          // kSplitMask | FieldKind::kFkFixed
  283|  39.9k|      &MpPackedFixed<true>,    // kSplitMask | FieldKind::kFkPackedFixed
  284|  39.9k|      &MpString<true>,         // kSplitMask | FieldKind::kFkString
  285|  39.9k|      &MpMessage<true>,        // kSplitMask | FieldKind::kFkMessage
  286|  39.9k|      &MpMap<true>,            // kSplitMask | FieldKind::kFkMap
  287|  39.9k|  };
  288|       |  // Just to be sure we got the order right, above.
  289|  39.9k|  static_assert(0 == FieldKind::kFkNone, "Invalid table order");
  290|  39.9k|  static_assert(1 == FieldKind::kFkVarint, "Invalid table order");
  291|  39.9k|  static_assert(2 == FieldKind::kFkPackedVarint, "Invalid table order");
  292|  39.9k|  static_assert(3 == FieldKind::kFkFixed, "Invalid table order");
  293|  39.9k|  static_assert(4 == FieldKind::kFkPackedFixed, "Invalid table order");
  294|  39.9k|  static_assert(5 == FieldKind::kFkString, "Invalid table order");
  295|  39.9k|  static_assert(6 == FieldKind::kFkMessage, "Invalid table order");
  296|  39.9k|  static_assert(7 == FieldKind::kFkMap, "Invalid table order");
  297|       |
  298|  39.9k|  static_assert(8 == (+field_layout::kSplitMask | FieldKind::kFkNone),
  299|  39.9k|    "Invalid table order");
  300|  39.9k|  static_assert(9 == (+field_layout::kSplitMask | FieldKind::kFkVarint),
  301|  39.9k|    "Invalid table order");
  302|  39.9k|  static_assert(10 == (+field_layout::kSplitMask | FieldKind::kFkPackedVarint),
  303|  39.9k|    "Invalid table order");
  304|  39.9k|  static_assert(11 == (+field_layout::kSplitMask | FieldKind::kFkFixed),
  305|  39.9k|    "Invalid table order");
  306|  39.9k|  static_assert(12 == (+field_layout::kSplitMask | FieldKind::kFkPackedFixed),
  307|  39.9k|    "Invalid table order");
  308|  39.9k|  static_assert(13 == (+field_layout::kSplitMask | FieldKind::kFkString),
  309|  39.9k|    "Invalid table order");
  310|  39.9k|  static_assert(14 == (+field_layout::kSplitMask | FieldKind::kFkMessage),
  311|  39.9k|    "Invalid table order");
  312|  39.9k|  static_assert(15 == (+field_layout::kSplitMask | FieldKind::kFkMap),
  313|  39.9k|    "Invalid table order");
  314|       |
  315|  39.9k|  TailCallParseFunc parse_fn = kMiniParseTable[field_type];
  316|  39.9k|  if (export_called_function) *test_out = {parse_fn, tag, entry};
  ------------------
  |  Branch (316:7): [Folded, False: 39.9k]
  ------------------
  317|       |
  318|  39.9k|  PROTOBUF_MUSTTAIL return parse_fn(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|  39.9k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return parse_fn(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|  39.9k|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
  319|  71.4k|}
_ZN6google8protobuf8internal8TcParser8MpVarintILb0EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 1845|  28.0k|PROTOBUF_NOINLINE const char* TcParser::MpVarint(PROTOBUF_TC_PARAM_DECL) {
 1846|  28.0k|  const auto& entry = RefAt<FieldEntry>(table, data.entry_offset());
 1847|  28.0k|  const uint16_t type_card = entry.type_card;
 1848|  28.0k|  const uint16_t card = type_card & field_layout::kFcMask;
 1849|       |
 1850|       |  // Check for repeated parsing:
 1851|  28.0k|  if (card == field_layout::kFcRepeated) {
  ------------------
  |  Branch (1851:7): [True: 27, False: 28.0k]
  ------------------
 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.0k|  if ((data.tag() & 7) != WireFormatLite::WIRETYPE_VARINT) {
  ------------------
  |  Branch (1855:7): [True: 4.48k, False: 23.5k]
  ------------------
 1856|  4.48k|    PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|  4.48k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|  4.48k|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 1857|  4.48k|  }
 1858|  23.5k|  const uint16_t xform_val = type_card & field_layout::kTvMask;
 1859|  23.5k|  const bool is_zigzag = xform_val == field_layout::kTvZigZag;
 1860|  23.5k|  const bool is_validated_enum = xform_val & field_layout::kTvEnum;
 1861|       |
 1862|       |  // Parse the value:
 1863|  23.5k|  const char* ptr2 = ptr;  // save for unknown enum case
 1864|  23.5k|  uint64_t tmp;
 1865|  23.5k|  ptr = ParseVarint(ptr, &tmp);
 1866|  23.5k|  if (ptr == nullptr) {
  ------------------
  |  Branch (1866:7): [True: 0, False: 23.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|  23.5k|  uint16_t rep = type_card & field_layout::kRepMask;
 1872|  23.5k|  if (rep == field_layout::kRep64Bits) {
  ------------------
  |  Branch (1872:7): [True: 14.5k, False: 8.95k]
  ------------------
 1873|  14.5k|    if (is_zigzag) {
  ------------------
  |  Branch (1873:9): [True: 0, False: 14.5k]
  ------------------
 1874|      0|      tmp = WireFormatLite::ZigZagDecode64(tmp);
 1875|      0|    }
 1876|  14.5k|  } else if (rep == field_layout::kRep32Bits) {
  ------------------
  |  Branch (1876:14): [True: 47, False: 8.91k]
  ------------------
 1877|     47|    if (is_validated_enum) {
  ------------------
  |  Branch (1877:9): [True: 34, False: 13]
  ------------------
 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: 13]
  ------------------
 1883|      0|      tmp = WireFormatLite::ZigZagDecode32(static_cast<uint32_t>(tmp));
 1884|      0|    }
 1885|     47|  }
 1886|       |
 1887|       |  // Mark the field as present:
 1888|  23.5k|  const bool is_oneof = card == field_layout::kFcOneof;
 1889|  23.5k|  if (card == field_layout::kFcOptional) {
  ------------------
  |  Branch (1889:7): [True: 34, False: 23.4k]
  ------------------
 1890|     34|    SetHas(entry, msg);
 1891|  23.4k|  } else if (is_oneof) {
  ------------------
  |  Branch (1891:14): [True: 22.9k, False: 551]
  ------------------
 1892|  22.9k|    ChangeOneof(table, entry, data.tag() >> 3, ctx, msg);
 1893|  22.9k|  }
 1894|       |
 1895|  23.5k|  void* const base = MaybeGetSplitBase(msg, is_split, table);
 1896|  23.5k|  if (rep == field_layout::kRep64Bits) {
  ------------------
  |  Branch (1896:7): [True: 14.5k, False: 8.95k]
  ------------------
 1897|  14.5k|    RefAt<uint64_t>(base, entry.offset) = tmp;
 1898|  14.5k|  } else if (rep == field_layout::kRep32Bits) {
  ------------------
  |  Branch (1898:14): [True: 47, False: 8.91k]
  ------------------
 1899|     47|    RefAt<uint32_t>(base, entry.offset) = static_cast<uint32_t>(tmp);
 1900|  8.91k|  } else {
 1901|  8.91k|    ABSL_DCHECK_EQ(rep, static_cast<uint16_t>(field_layout::kRep8Bits));
  ------------------
  |  |   74|  8.91k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  8.91k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  8.91k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 8.91k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  8.91k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1902|  8.91k|    RefAt<bool>(base, entry.offset) = static_cast<bool>(tmp);
 1903|  8.91k|  }
 1904|       |
 1905|  23.5k|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  23.5k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  23.5k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1906|  23.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|     80|inline void SetHas(const FieldEntry& entry, MessageLite* msg) {
 1608|     80|  auto has_idx = static_cast<uint32_t>(entry.has_idx);
 1609|     80|#if defined(__x86_64__) && defined(__GNUC__)
 1610|     80|  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|     80|}
_ZN6google8protobuf8internal8TcParser8MpStringILb0EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 2146|  10.9k|PROTOBUF_NOINLINE const char* TcParser::MpString(PROTOBUF_TC_PARAM_DECL) {
 2147|  10.9k|  const auto& entry = RefAt<FieldEntry>(table, data.entry_offset());
 2148|  10.9k|  const uint16_t type_card = entry.type_card;
 2149|  10.9k|  const uint16_t card = type_card & field_layout::kFcMask;
 2150|  10.9k|  const uint32_t decoded_wiretype = data.tag() & 7;
 2151|       |
 2152|  10.9k|  if (decoded_wiretype != WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  ------------------
  |  Branch (2152:7): [True: 2.14k, False: 8.80k]
  ------------------
 2153|  2.14k|    PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|  2.14k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|  2.14k|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 2154|  2.14k|  }
 2155|  8.80k|  if (card == field_layout::kFcRepeated) {
  ------------------
  |  Branch (2155:7): [True: 73, False: 8.73k]
  ------------------
 2156|     73|    PROTOBUF_MUSTTAIL return MpRepeatedString<is_split>(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|     73|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MpRepeatedString<is_split>(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|     73|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 2157|     73|  }
 2158|  8.73k|  const uint16_t xform_val = type_card & field_layout::kTvMask;
 2159|  8.73k|  const uint16_t rep = type_card & field_layout::kRepMask;
 2160|       |
 2161|       |  // Mark the field as present:
 2162|  8.73k|  const bool is_oneof = card == field_layout::kFcOneof;
 2163|  8.73k|  bool need_init = false;
 2164|  8.73k|  if (card == field_layout::kFcOptional) {
  ------------------
  |  Branch (2164:7): [True: 7, False: 8.72k]
  ------------------
 2165|      7|    SetHas(entry, msg);
 2166|  8.72k|  } else if (is_oneof) {
  ------------------
  |  Branch (2166:14): [True: 8.72k, False: 2]
  ------------------
 2167|  8.72k|    need_init = ChangeOneof(table, entry, data.tag() >> 3, ctx, msg);
 2168|  8.72k|  }
 2169|       |
 2170|  8.73k|  bool is_valid = false;
 2171|  8.73k|  void* const base = MaybeGetSplitBase(msg, is_split, table);
 2172|  8.73k|  switch (rep) {
 2173|  8.73k|    case field_layout::kRepAString: {
  ------------------
  |  Branch (2173:5): [True: 8.73k, False: 0]
  ------------------
 2174|  8.73k|      auto& field = RefAt<ArenaStringPtr>(base, entry.offset);
 2175|  8.73k|      if (need_init) field.InitDefault();
  ------------------
  |  Branch (2175:11): [True: 8.71k, False: 15]
  ------------------
 2176|  8.73k|      Arena* arena = msg->GetArena();
 2177|  8.73k|      if (arena) {
  ------------------
  |  Branch (2177:11): [True: 2, False: 8.72k]
  ------------------
 2178|      2|        ptr = ctx->ReadArenaString(ptr, &field, arena);
 2179|  8.72k|      } else {
 2180|  8.72k|        std::string* str = field.MutableNoCopy(nullptr);
 2181|  8.72k|        ptr = InlineGreedyStringParser(str, ptr, ctx);
 2182|  8.72k|      }
 2183|  8.73k|      if (!ptr) break;
  ------------------
  |  Branch (2183:11): [True: 1, False: 8.73k]
  ------------------
 2184|  8.73k|      is_valid = MpVerifyUtf8(field.Get(), table, entry, xform_val);
 2185|  8.73k|      break;
 2186|  8.73k|    }
 2187|       |
 2188|       |
 2189|      0|    case field_layout::kRepCord: {
  ------------------
  |  Branch (2189:5): [True: 0, False: 8.73k]
  ------------------
 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: 8.73k]
  ------------------
 2208|      0|      Unreachable();
 2209|  8.73k|  }
 2210|       |
 2211|  8.73k|  if (PROTOBUF_PREDICT_FALSE(ptr == nullptr || !is_valid)) {
  ------------------
  |  |  365|  17.4k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 1, False: 8.73k]
  |  |  |  Branch (365:54): [Folded, False: 8.73k]
  |  |  |  Branch (365:64): [True: 1, False: 8.73k]
  |  |  |  Branch (365:64): [True: 0, False: 8.73k]
  |  |  ------------------
  ------------------
 2212|      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
  ------------------
 2213|      1|  }
 2214|  8.73k|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  8.73k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  8.73k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 2215|  8.73k|}
_ZN6google8protobuf8internal8TcParser16MpRepeatedStringILb0EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 2232|     73|    PROTOBUF_TC_PARAM_DECL) {
 2233|     73|  const auto& entry = RefAt<FieldEntry>(table, data.entry_offset());
 2234|     73|  const uint16_t type_card = entry.type_card;
 2235|     73|  const uint32_t decoded_tag = data.tag();
 2236|     73|  const uint32_t decoded_wiretype = decoded_tag & 7;
 2237|       |
 2238|     73|  if (decoded_wiretype != WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  ------------------
  |  Branch (2238:7): [True: 0, False: 73]
  ------------------
 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|     73|  const uint16_t rep = type_card & field_layout::kRepMask;
 2243|     73|  const uint16_t xform_val = type_card & field_layout::kTvMask;
 2244|     73|  void* const base = MaybeGetSplitBase(msg, is_split, table);
 2245|     73|  switch (rep) {
  ------------------
  |  Branch (2245:11): [True: 73, False: 0]
  ------------------
 2246|     73|    case field_layout::kRepSString: {
  ------------------
  |  Branch (2246:5): [True: 73, False: 0]
  ------------------
 2247|     73|      auto& field = MaybeCreateRepeatedPtrFieldRefAt<std::string, is_split>(
 2248|     73|          base, entry.offset, msg);
 2249|     73|      const char* ptr2 = ptr;
 2250|     73|      uint32_t next_tag;
 2251|       |
 2252|     73|      auto* arena = field.GetArena();
 2253|     73|      SerialArena* serial_arena;
 2254|     73|      if (PROTOBUF_PREDICT_TRUE(
  ------------------
  |  |  364|    146|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 0, False: 73]
  |  |  |  Branch (364:53): [Folded, False: 73]
  |  |  |  Branch (364:63): [True: 0, False: 73]
  |  |  |  Branch (364:63): [True: 0, False: 0]
  |  |  |  Branch (364:63): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2255|     73|              arena != nullptr &&
 2256|     73|              arena->impl_.GetSerialArenaFast(&serial_arena) &&
 2257|     73|              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|     73|      } else {
 2270|    180|        do {
 2271|    180|          ptr = ptr2;
 2272|    180|          std::string* str = field.Add();
 2273|    180|          ptr = InlineGreedyStringParser(str, ptr, ctx);
 2274|    180|          if (PROTOBUF_PREDICT_FALSE(
  ------------------
  |  |  365|    360|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 180]
  |  |  |  Branch (365:54): [Folded, False: 180]
  |  |  |  Branch (365:64): [True: 0, False: 180]
  |  |  |  Branch (365:64): [True: 0, False: 180]
  |  |  ------------------
  ------------------
 2275|    180|                  ptr == nullptr ||
 2276|    180|                  !MpVerifyUtf8(*str, table, entry, xform_val))) {
 2277|      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
  ------------------
 2278|      0|          }
 2279|    180|          if (PROTOBUF_PREDICT_FALSE(!ctx->DataAvailable(ptr))) goto parse_loop;
  ------------------
  |  |  365|    180|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 20, False: 160]
  |  |  |  Branch (365:54): [Folded, False: 180]
  |  |  |  Branch (365:63): [True: 20, False: 160]
  |  |  ------------------
  ------------------
 2280|    160|          ptr2 = ReadTag(ptr, &next_tag);
 2281|    160|        } while (next_tag == decoded_tag);
  ------------------
  |  Branch (2281:18): [True: 107, False: 53]
  ------------------
 2282|     73|      }
 2283|       |
 2284|     53|      break;
 2285|     73|    }
 2286|       |
 2287|       |#ifndef NDEBUG
 2288|       |    default:
 2289|       |      ABSL_LOG(FATAL) << "Unsupported repeated string rep: " << rep;
 2290|       |      break;
 2291|       |#endif
 2292|     73|  }
 2293|       |
 2294|     53|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|     53|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|     53|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 2295|     20|parse_loop:
 2296|     20|  PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|     20|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|     20|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 2297|     73|}
_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|    996|PROTOBUF_NOINLINE const char* TcParser::MpMessage(PROTOBUF_TC_PARAM_DECL) {
 2315|    996|  const auto& entry = RefAt<FieldEntry>(table, data.entry_offset());
 2316|    996|  const uint16_t type_card = entry.type_card;
 2317|    996|  const uint16_t card = type_card & field_layout::kFcMask;
 2318|       |
 2319|       |  // Check for repeated parsing:
 2320|    996|  if (card == field_layout::kFcRepeated) {
  ------------------
  |  Branch (2320:7): [True: 336, False: 660]
  ------------------
 2321|    336|    const uint16_t rep = type_card & field_layout::kRepMask;
 2322|    336|    switch (rep) {
 2323|    336|      case field_layout::kRepMessage:
  ------------------
  |  Branch (2323:7): [True: 336, False: 0]
  ------------------
 2324|    336|        PROTOBUF_MUSTTAIL return MpRepeatedMessageOrGroup<is_split, false>(
  ------------------
  |  |  236|    336|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
 2325|    336|            PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|    336|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 2326|      0|      case field_layout::kRepGroup:
  ------------------
  |  Branch (2326:7): [True: 0, False: 336]
  ------------------
 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: 336]
  ------------------
 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|    336|    }
 2332|    336|  }
 2333|       |
 2334|    660|  const uint32_t decoded_tag = data.tag();
 2335|    660|  const uint32_t decoded_wiretype = decoded_tag & 7;
 2336|    660|  const uint16_t rep = type_card & field_layout::kRepMask;
 2337|    660|  const bool is_group = rep == field_layout::kRepGroup;
 2338|       |
 2339|       |  // Validate wiretype:
 2340|    660|  switch (rep) {
 2341|    660|    case field_layout::kRepMessage:
  ------------------
  |  Branch (2341:5): [True: 660, False: 0]
  ------------------
 2342|    660|      if (decoded_wiretype != WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  ------------------
  |  Branch (2342:11): [True: 621, False: 39]
  ------------------
 2343|    621|        goto fallback;
 2344|    621|      }
 2345|     39|      break;
 2346|     39|    case field_layout::kRepGroup:
  ------------------
  |  Branch (2346:5): [True: 0, False: 660]
  ------------------
 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: 660]
  ------------------
 2352|    621|    fallback:
 2353|    621|      PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|    621|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                    PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|    621|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 2354|      0|    }
 2355|    660|  }
 2356|       |
 2357|     39|  const bool is_oneof = card == field_layout::kFcOneof;
 2358|     39|  bool need_init = false;
 2359|     39|  if (card == field_layout::kFcOptional) {
  ------------------
  |  Branch (2359:7): [True: 39, False: 0]
  ------------------
 2360|     39|    SetHas(entry, msg);
 2361|     39|  } 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|     39|  void* const base = MaybeGetSplitBase(msg, is_split, table);
 2366|     39|  SyncHasbits(msg, hasbits, table);
 2367|     39|  MessageLite*& field = RefAt<MessageLite*>(base, entry.offset);
 2368|       |
 2369|     39|  const TcParseTableBase* inner_table =
 2370|     39|      GetTableFromAux(type_card, *table->field_aux(&entry));
 2371|     39|  if (need_init || field == nullptr) {
  ------------------
  |  Branch (2371:7): [True: 0, False: 39]
  |  Branch (2371:20): [True: 35, False: 4]
  ------------------
 2372|     35|    field = NewMessage(inner_table, msg->GetArena());
 2373|     35|  }
 2374|     39|  const auto inner_loop = [&](const char* ptr) {
 2375|     39|    return ParseLoopPreserveNone(field, ptr, ctx, inner_table);
 2376|     39|  };
 2377|     39|  return is_group ? ctx->ParseGroupInlined(ptr, decoded_tag, inner_loop)
  ------------------
  |  Branch (2377:10): [True: 0, False: 39]
  ------------------
 2378|     39|                  : ctx->ParseLengthDelimitedInlined(ptr, inner_loop);
 2379|    660|}
_ZN6google8protobuf8internal8TcParser24MpRepeatedMessageOrGroupILb0ELb0EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
 2382|    336|const char* TcParser::MpRepeatedMessageOrGroup(PROTOBUF_TC_PARAM_DECL) {
 2383|    336|  const auto& entry = RefAt<FieldEntry>(table, data.entry_offset());
 2384|    336|  const uint16_t type_card = entry.type_card;
 2385|    336|  ABSL_DCHECK_EQ(type_card & field_layout::kFcMask,
  ------------------
  |  |   74|    336|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|    336|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    336|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 336]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    336|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2386|    336|                 static_cast<uint16_t>(field_layout::kFcRepeated));
 2387|    336|  const uint32_t decoded_tag = data.tag();
 2388|    336|  const uint32_t decoded_wiretype = decoded_tag & 7;
 2389|       |
 2390|       |  // Validate wiretype:
 2391|    336|  if (!is_group) {
  ------------------
  |  Branch (2391:7): [True: 336, Folded]
  ------------------
 2392|    336|    ABSL_DCHECK_EQ(type_card & field_layout::kRepMask,
  ------------------
  |  |   74|    336|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|    336|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    336|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 336]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    336|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2393|    336|                   static_cast<uint16_t>(field_layout::kRepMessage));
 2394|    336|    if (decoded_wiretype != WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
  ------------------
  |  Branch (2394:9): [True: 237, False: 99]
  ------------------
 2395|    237|      PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  236|    237|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                    PROTOBUF_MUSTTAIL return table->fallback(PROTOBUF_TC_PARAM_PASS);
  ------------------
  |  |  600|    237|#define PROTOBUF_TC_PARAM_PASS msg, ptr, ctx, data, table, hasbits
  ------------------
 2396|    237|    }
 2397|    336|  } 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|     99|  void* const base = MaybeGetSplitBase(msg, is_split, table);
 2406|     99|  RepeatedPtrFieldBase& field =
 2407|     99|      MaybeCreateRepeatedRefAt<RepeatedPtrFieldBase, is_split>(
 2408|     99|          base, entry.offset, msg);
 2409|     99|  const TcParseTableBase* inner_table =
 2410|     99|      GetTableFromAux(type_card, *table->field_aux(&entry));
 2411|       |
 2412|     99|  const char* ptr2 = ptr;
 2413|     99|  uint32_t next_tag;
 2414|    468|  do {
 2415|    468|    MessageLite* value = AddMessage(inner_table, field);
 2416|    468|    const auto inner_loop = [&](const char* ptr) {
 2417|    468|      return ParseLoopPreserveNone(value, ptr, ctx, inner_table);
 2418|    468|    };
 2419|    468|    ptr = is_group ? ctx->ParseGroupInlined(ptr2, decoded_tag, inner_loop)
  ------------------
  |  Branch (2419:11): [Folded, False: 468]
  ------------------
 2420|    468|                   : ctx->ParseLengthDelimitedInlined(ptr2, inner_loop);
 2421|    468|    if (PROTOBUF_PREDICT_FALSE(ptr == nullptr)) goto error;
  ------------------
  |  |  365|    468|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 21, False: 447]
  |  |  |  Branch (365:54): [Folded, False: 468]
  |  |  |  Branch (365:63): [True: 21, False: 447]
  |  |  ------------------
  ------------------
 2422|    447|    if (PROTOBUF_PREDICT_FALSE(!ctx->DataAvailable(ptr))) goto parse_loop;
  ------------------
  |  |  365|    447|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 51, False: 396]
  |  |  |  Branch (365:54): [Folded, False: 447]
  |  |  |  Branch (365:63): [True: 51, False: 396]
  |  |  ------------------
  ------------------
 2423|    396|    ptr2 = ReadTag(ptr, &next_tag);
 2424|    396|    if (PROTOBUF_PREDICT_FALSE(ptr2 == nullptr)) goto error;
  ------------------
  |  |  365|    396|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 396]
  |  |  |  Branch (365:54): [Folded, False: 396]
  |  |  |  Branch (365:63): [True: 0, False: 396]
  |  |  ------------------
  ------------------
 2425|    396|  } while (next_tag == decoded_tag);
  ------------------
  |  Branch (2425:12): [True: 369, False: 27]
  ------------------
 2426|     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
  ------------------
 2427|     51|parse_loop:
 2428|     51|  PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|     51|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|     51|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 2429|     21|error:
 2430|     21|  PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|     21|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|     21|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 2431|     99|}
_ZZN6google8protobuf8internal8TcParser24MpRepeatedMessageOrGroupILb0ELb0EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEmENKUlS5_E_clES5_:
 2416|    467|    const auto inner_loop = [&](const char* ptr) {
 2417|    467|      return ParseLoopPreserveNone(value, ptr, ctx, inner_table);
 2418|    467|    };
_ZN6google8protobuf8internal8TcParser15GetTableFromAuxEtNS1_16TcParseTableBase8FieldAuxE:
 2301|    138|    uint16_t type_card, TcParseTableBase::FieldAux aux) {
 2302|    138|  uint16_t tv = type_card & field_layout::kTvMask;
 2303|    138|  if (ABSL_PREDICT_TRUE(tv == field_layout::kTvTable)) {
  ------------------
  |  |  179|    138|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 138, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 138]
  |  |  |  Branch (179:57): [True: 138, False: 0]
  |  |  ------------------
  ------------------
 2304|    138|    return aux.table;
 2305|    138|  }
 2306|      0|  ABSL_DCHECK(tv == field_layout::kTvDefault || tv == field_layout::kTvWeakPtr);
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|    138|  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.7k|    const TcParseTableBase* table, Arena* arena) {
  360|  87.7k|  return table->class_data->New(arena);
  361|  87.7k|}
_ZZN6google8protobuf8internal8TcParser9MpMessageILb0EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEmENKUlS5_E_clES5_:
 2374|     39|  const auto inner_loop = [&](const char* ptr) {
 2375|     39|    return ParseLoopPreserveNone(field, ptr, ctx, inner_table);
 2376|     39|  };
generated_message_tctable_lite.cc:_ZZN6google8protobuf8internal8TcParser10AddMessageEPKNS1_16TcParseTableBaseERNS1_20RepeatedPtrFieldBaseEENK3$_0clEPNS0_5ArenaE:
  366|  78.2k|      [table](Arena* arena) { return NewMessage(table, arena); }));
_ZN6google8protobuf8internal8TcParser27SingularParseMessageAuxImplIhLb0ELb1EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  371|  14.0k|    PROTOBUF_TC_PARAM_DECL) {
  372|  14.0k|  PROTOBUF_PREFETCH_WITH_OFFSET(ptr, 192);
  ------------------
  |  |  670|  14.0k|  asm("prefetcht0 " #offset "(%0)" : : "r"(base));
  ------------------
  373|  14.0k|  PROTOBUF_PREFETCH_WITH_OFFSET(ptr, 256);
  ------------------
  |  |  670|  14.0k|  asm("prefetcht0 " #offset "(%0)" : : "r"(base));
  ------------------
  374|  14.0k|  if (PROTOBUF_PREDICT_FALSE(data.coded_tag<TagType>() != 0)) {
  ------------------
  |  |  365|  14.0k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 4.47k, False: 9.60k]
  |  |  |  Branch (365:54): [Folded, False: 14.0k]
  |  |  |  Branch (365:63): [True: 4.47k, False: 9.60k]
  |  |  ------------------
  ------------------
  375|  4.47k|    PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  4.47k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  4.47k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  376|  4.47k|  }
  377|  9.60k|  auto saved_tag = UnalignedLoad<TagType>(ptr);
  378|  9.60k|  ptr += sizeof(TagType);
  379|  9.60k|  hasbits |= (uint64_t{1} << data.hasbit_idx());
  380|  9.60k|  SyncHasbits(msg, hasbits, table);
  381|  9.60k|  auto& field = RefAt<MessageLite*>(msg, data.offset());
  382|  9.60k|  const auto aux = *table->field_aux(data.aux_idx());
  383|  9.60k|  const auto* inner_table =
  384|  9.60k|      aux_is_table ? aux.table : aux.message_default()->GetTcParseTable();
  ------------------
  |  Branch (384:7): [True: 9.60k, Folded]
  ------------------
  385|       |
  386|  9.60k|  if (field == nullptr) {
  ------------------
  |  Branch (386:7): [True: 9.47k, False: 135]
  ------------------
  387|  9.47k|    field = NewMessage(inner_table, msg->GetArena());
  388|  9.47k|  }
  389|  9.60k|  const auto inner_loop = [&](const char* ptr) {
  390|  9.60k|    return ParseLoop(field, ptr, ctx, inner_table);
  391|  9.60k|  };
  392|  9.60k|  return group_coding
  ------------------
  |  Branch (392:10): [Folded, False: 9.60k]
  ------------------
  393|  9.60k|             ? ctx->ParseGroupInlined(ptr, FastDecodeTag(saved_tag), inner_loop)
  394|  9.60k|             : ctx->ParseLengthDelimitedInlined(ptr, inner_loop);
  395|  14.0k|}
_ZZN6google8protobuf8internal8TcParser27SingularParseMessageAuxImplIhLb0ELb1EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEmENKUlS5_E_clES5_:
  389|  9.60k|  const auto inner_loop = [&](const char* ptr) {
  390|  9.60k|    return ParseLoop(field, ptr, ctx, inner_table);
  391|  9.60k|  };
_ZN6google8protobuf8internal8TcParser27RepeatedParseMessageAuxImplIhLb0ELb1EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEm:
  453|  27.1k|    PROTOBUF_TC_PARAM_DECL) {
  454|  27.1k|  if (PROTOBUF_PREDICT_FALSE(data.coded_tag<TagType>() != 0)) {
  ------------------
  |  |  365|  27.1k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 14.9k, False: 12.2k]
  |  |  |  Branch (365:54): [Folded, False: 27.1k]
  |  |  |  Branch (365:63): [True: 14.9k, False: 12.2k]
  |  |  ------------------
  ------------------
  455|  14.9k|    PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  14.9k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  14.9k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  456|  14.9k|  }
  457|  12.2k|  PROTOBUF_PREFETCH_WITH_OFFSET(ptr, 256);
  ------------------
  |  |  670|  12.2k|  asm("prefetcht0 " #offset "(%0)" : : "r"(base));
  ------------------
  458|  12.2k|  const auto expected_tag = UnalignedLoad<TagType>(ptr);
  459|  12.2k|  const auto aux = *table->field_aux(data.aux_idx());
  460|  12.2k|  auto& field = RefAt<RepeatedPtrFieldBase>(msg, data.offset());
  461|  12.2k|  const TcParseTableBase* inner_table =
  462|  12.2k|      aux_is_table ? aux.table : aux.message_default()->GetTcParseTable();
  ------------------
  |  Branch (462:7): [True: 12.2k, Folded]
  ------------------
  463|  77.7k|  do {
  464|  77.7k|    ptr += sizeof(TagType);
  465|  77.7k|    MessageLite* submsg = AddMessage(inner_table, field);
  466|  77.7k|    const auto inner_loop = [&](const char* ptr) {
  467|  77.7k|      return ParseLoop(submsg, ptr, ctx, inner_table);
  468|  77.7k|    };
  469|  77.7k|    ptr = group_coding ? ctx->ParseGroupInlined(
  ------------------
  |  Branch (469:11): [Folded, False: 77.7k]
  ------------------
  470|      0|                             ptr, FastDecodeTag(expected_tag), inner_loop)
  471|  77.7k|                       : ctx->ParseLengthDelimitedInlined(ptr, inner_loop);
  472|  77.7k|    if (PROTOBUF_PREDICT_FALSE(ptr == nullptr)) {
  ------------------
  |  |  365|  77.7k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 21, False: 77.7k]
  |  |  |  Branch (365:54): [Folded, False: 77.7k]
  |  |  |  Branch (365:63): [True: 21, False: 77.7k]
  |  |  ------------------
  ------------------
  473|     21|      PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|     21|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                    PROTOBUF_MUSTTAIL return Error(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|     21|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  474|     21|    }
  475|  77.7k|    if (PROTOBUF_PREDICT_FALSE(!ctx->DataAvailable(ptr))) {
  ------------------
  |  |  365|  77.7k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 4.49k, False: 73.2k]
  |  |  |  Branch (365:54): [Folded, False: 77.7k]
  |  |  |  Branch (365:63): [True: 4.49k, False: 73.2k]
  |  |  ------------------
  ------------------
  476|  4.49k|      PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  4.49k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                    PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  4.49k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  477|  4.49k|    }
  478|  77.7k|  } while (UnalignedLoad<TagType>(ptr) == expected_tag);
  ------------------
  |  Branch (478:12): [True: 65.5k, False: 7.69k]
  ------------------
  479|       |
  480|  7.69k|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  7.69k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  7.69k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  481|  12.2k|}
_ZZN6google8protobuf8internal8TcParser27RepeatedParseMessageAuxImplIhLb0ELb1EEEPKcPNS0_11MessageLiteES5_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEmENKUlS5_E_clES5_:
  466|  77.7k|    const auto inner_loop = [&](const char* ptr) {
  467|  77.7k|      return ParseLoop(submsg, ptr, ctx, inner_table);
  468|  77.7k|    };
_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|   126k|    PROTOBUF_TC_PARAM_DECL) {
  815|   126k|  using TagType = uint8_t;
  816|   126k|  if (PROTOBUF_PREDICT_FALSE(data.coded_tag<TagType>() != 0)) {
  ------------------
  |  |  365|   126k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 44.7k, False: 81.7k]
  |  |  |  Branch (365:54): [Folded, False: 126k]
  |  |  |  Branch (365:63): [True: 44.7k, False: 81.7k]
  |  |  ------------------
  ------------------
  817|  44.7k|    PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  44.7k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  44.7k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  818|  44.7k|  }
  819|  81.7k|  int64_t res;
  820|  81.7k|  ptr = ShiftMixParseVarint<FieldType>(ptr + sizeof(TagType), res);
  821|  81.7k|  if (PROTOBUF_PREDICT_FALSE(ptr == nullptr)) {
  ------------------
  |  |  365|  81.7k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 81.7k]
  |  |  |  Branch (365:54): [Folded, False: 81.7k]
  |  |  |  Branch (365:63): [True: 0, False: 81.7k]
  |  |  ------------------
  ------------------
  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|  81.7k|  hasbits |= (uint64_t{1} << data.hasbit_idx());
  825|  81.7k|  RefAt<FieldType>(msg, data.offset()) = res;
  826|  81.7k|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  81.7k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  81.7k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
  827|  81.7k|}
generated_message_tctable_lite.cc:_ZN6google8protobuf8internal12_GLOBAL__N_111ParseVarintImEEPKcS5_PT_:
  634|  23.6k|                                                      Type* value) {
  635|  23.6k|  static_assert(sizeof(Type) == 4 || sizeof(Type) == 8,
  636|  23.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|  23.6k|  int64_t res;
  647|  23.6k|  p = ShiftMixParseVarint<Type>(p, res);
  648|  23.6k|  *value = res;
  649|  23.6k|  return p;
  650|  23.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|  22.8k|    PROTOBUF_TC_PARAM_DECL) {
 1411|  22.8k|  if (PROTOBUF_PREDICT_FALSE(data.coded_tag<TagType>() != 0)) {
  ------------------
  |  |  365|  22.8k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 4.68k, False: 18.1k]
  |  |  |  Branch (365:54): [Folded, False: 22.8k]
  |  |  |  Branch (365:63): [True: 4.68k, False: 18.1k]
  |  |  ------------------
  ------------------
 1412|  4.68k|    PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  4.68k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  4.68k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1413|  4.68k|  }
 1414|  18.1k|  auto saved_tag = UnalignedLoad<TagType>(ptr);
 1415|  18.1k|  ptr += sizeof(TagType);
 1416|  18.1k|  hasbits |= (uint64_t{1} << data.hasbit_idx());
 1417|  18.1k|  auto& field = RefAt<FieldType>(msg, data.offset());
 1418|  18.1k|  auto arena = msg->GetArena();
 1419|  18.1k|  if (arena) {
  ------------------
  |  Branch (1419:7): [True: 0, False: 18.1k]
  ------------------
 1420|      0|    ptr =
 1421|      0|        ReadStringIntoArena(msg, ptr, ctx, data.aux_idx(), table, field, arena);
 1422|  18.1k|  } else {
 1423|  18.1k|    ptr = ReadStringNoArena(msg, ptr, ctx, data.aux_idx(), table, field);
 1424|  18.1k|  }
 1425|  18.1k|  if (PROTOBUF_PREDICT_FALSE(ptr == nullptr)) {
  ------------------
  |  |  365|  18.1k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 18.1k]
  |  |  |  Branch (365:54): [Folded, False: 18.1k]
  |  |  |  Branch (365:63): [True: 0, False: 18.1k]
  |  |  ------------------
  ------------------
 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|  18.1k|  switch (utf8) {
 1429|  18.1k|    case kNoUtf8:
  ------------------
  |  Branch (1429:5): [True: 18.1k, False: 0]
  ------------------
 1430|  18.1k|#ifdef NDEBUG
 1431|  18.1k|    case kUtf8ValidateOnly:
  ------------------
  |  Branch (1431:5): [True: 0, False: 18.1k]
  ------------------
 1432|  18.1k|#endif
 1433|  18.1k|      break;
 1434|      0|    default:
  ------------------
  |  Branch (1434:5): [True: 0, False: 18.1k]
  ------------------
 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|  18.1k|  }
 1444|       |
 1445|  18.1k|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  18.1k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  18.1k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1446|  18.1k|}
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|  18.7k|                              ArenaStringPtr& field) {
 1396|  18.7k|  int size = ReadSize(&ptr);
 1397|  18.7k|  if (!ptr) return nullptr;
  ------------------
  |  Branch (1397:7): [True: 0, False: 18.7k]
  ------------------
 1398|  18.7k|  return ctx->ReadString(ptr, size, field.MutableNoCopy(nullptr));
 1399|  18.7k|}
_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|  5.18k|    PROTOBUF_TC_PARAM_DECL) {
 1519|  5.18k|  if (PROTOBUF_PREDICT_FALSE(data.coded_tag<TagType>() != 0)) {
  ------------------
  |  |  365|  5.18k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 199, False: 4.98k]
  |  |  |  Branch (365:54): [Folded, False: 5.18k]
  |  |  |  Branch (365:63): [True: 199, False: 4.98k]
  |  |  ------------------
  ------------------
 1520|    199|    PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|    199|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                  PROTOBUF_MUSTTAIL return MiniParse(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|    199|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1521|    199|  }
 1522|  4.98k|  const auto expected_tag = UnalignedLoad<TagType>(ptr);
 1523|  4.98k|  auto& field = RefAt<FieldType>(msg, data.offset());
 1524|       |
 1525|  4.98k|  const auto validate_last_string = [expected_tag, table, &field] {
 1526|  4.98k|    switch (utf8) {
 1527|  4.98k|      case kNoUtf8:
 1528|  4.98k|#ifdef NDEBUG
 1529|  4.98k|      case kUtf8ValidateOnly:
 1530|  4.98k|#endif
 1531|  4.98k|        return true;
 1532|  4.98k|      default:
 1533|  4.98k|        if (PROTOBUF_PREDICT_TRUE(
 1534|  4.98k|                utf8_range::IsStructurallyValid(field[field.size() - 1]))) {
 1535|  4.98k|          return true;
 1536|  4.98k|        }
 1537|  4.98k|        ReportFastUtf8Error(FastDecodeTag(expected_tag), table);
 1538|  4.98k|        if (utf8 == kUtf8) return false;
 1539|  4.98k|        return true;
 1540|  4.98k|    }
 1541|  4.98k|  };
 1542|       |
 1543|  4.98k|  auto* arena = field.GetArena();
 1544|  4.98k|  SerialArena* serial_arena;
 1545|  4.98k|  if (PROTOBUF_PREDICT_TRUE(arena != nullptr &&
  ------------------
  |  |  364|  9.97k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 0, False: 4.98k]
  |  |  |  Branch (364:53): [Folded, False: 4.98k]
  |  |  |  Branch (364:63): [True: 0, False: 4.98k]
  |  |  |  Branch (364:63): [True: 0, False: 0]
  |  |  |  Branch (364:63): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1546|  4.98k|                            arena->impl_.GetSerialArenaFast(&serial_arena) &&
 1547|  4.98k|                            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|  4.98k|  } else {
 1558|  14.4k|    do {
 1559|  14.4k|      ptr += sizeof(TagType);
 1560|  14.4k|      std::string* str = field.Add();
 1561|  14.4k|      ptr = InlineGreedyStringParser(str, ptr, ctx);
 1562|  14.4k|      if (PROTOBUF_PREDICT_FALSE(ptr == nullptr || !validate_last_string())) {
  ------------------
  |  |  365|  28.9k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 2, False: 14.4k]
  |  |  |  Branch (365:54): [Folded, False: 14.4k]
  |  |  |  Branch (365:64): [True: 2, False: 14.4k]
  |  |  |  Branch (365:64): [True: 0, False: 14.4k]
  |  |  ------------------
  ------------------
 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|  14.4k|      if (PROTOBUF_PREDICT_FALSE(!ctx->DataAvailable(ptr))) goto parse_loop;
  ------------------
  |  |  365|  14.4k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 2.77k, False: 11.6k]
  |  |  |  Branch (365:54): [Folded, False: 14.4k]
  |  |  |  Branch (365:63): [True: 2.77k, False: 11.6k]
  |  |  ------------------
  ------------------
 1566|  14.4k|    } while (UnalignedLoad<TagType>(ptr) == expected_tag);
  ------------------
  |  Branch (1566:14): [True: 9.46k, False: 2.21k]
  ------------------
 1567|  4.98k|  }
 1568|  2.21k|  PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  2.21k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToTagDispatch(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  2.21k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1569|  2.77k|parse_loop:
 1570|  2.77k|  PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  236|  2.77k|#define PROTOBUF_MUSTTAIL [[clang::musttail]]
  ------------------
                PROTOBUF_MUSTTAIL return ToParseLoop(PROTOBUF_TC_PARAM_NO_DATA_PASS);
  ------------------
  |  |  613|  2.77k|  msg, ptr, ctx, ::google::protobuf::internal::TcFieldData::DefaultInit(), table, hasbits
  ------------------
 1571|  4.98k|}
_ZZN6google8protobuf8internal8TcParser14RepeatedStringIhNS0_16RepeatedPtrFieldINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEELNS2_8Utf8TypeE0EEEPKcPNS0_11MessageLiteESF_PNS1_12ParseContextENS1_11TcFieldDataEPKNS1_16TcParseTableBaseEmENKUlvE_clEv:
 1525|  14.4k|  const auto validate_last_string = [expected_tag, table, &field] {
 1526|  14.4k|    switch (utf8) {
 1527|  14.4k|      case kNoUtf8:
  ------------------
  |  Branch (1527:7): [True: 14.4k, False: 0]
  ------------------
 1528|  14.4k|#ifdef NDEBUG
 1529|  14.4k|      case kUtf8ValidateOnly:
  ------------------
  |  Branch (1529:7): [True: 0, False: 14.4k]
  ------------------
 1530|  14.4k|#endif
 1531|  14.4k|        return true;
 1532|      0|      default:
  ------------------
  |  Branch (1532:7): [True: 0, False: 14.4k]
  ------------------
 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|  14.4k|    }
 1541|  14.4k|  };
_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|  10.1k|  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|   558k|Metadata Message::GetMetadata() const {
  156|   558k|  return GetMetadataImpl(GetClassData()->full());
  157|   558k|}
_ZN6google8protobuf7Message15GetMetadataImplERKNS0_8internal13ClassDataFullE:
  159|   744k|Metadata Message::GetMetadataImpl(const internal::ClassDataFull& data) {
  160|   744k|  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|   744k|  if (ABSL_PREDICT_TRUE(table != nullptr)) {
  ------------------
  |  |  179|   744k|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 744k, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 744k]
  |  |  |  Branch (179:57): [True: 744k, False: 0]
  |  |  ------------------
  ------------------
  164|   744k|    if (ABSL_PREDICT_FALSE(data.get_metadata_tracker != nullptr)) {
  ------------------
  |  |  178|   744k|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 0, False: 744k]
  |  |  |  Branch (178:49): [Folded, False: 744k]
  |  |  |  Branch (178:58): [True: 0, False: 744k]
  |  |  ------------------
  ------------------
  165|      0|      data.get_metadata_tracker();
  166|      0|    }
  167|   744k|    absl::call_once(*table->once, [table] {
  168|   744k|      internal::AssignDescriptorsOnceInnerCall(table);
  169|   744k|    });
  170|   744k|  }
  171|   744k|  return {data.descriptor, data.reflection};
  172|   744k|}
_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|  9.38k|inline To* GetPointerAtOffset(void* message, uint32_t offset) {
  215|  9.38k|  return reinterpret_cast<To*>(reinterpret_cast<char*>(message) + offset);
  216|  9.38k|}
_ZNK6google8protobuf10Reflection6GetRawINS0_8internal20RepeatedPtrFieldBaseEEERKT_RKNS0_7MessageEPKNS0_15FieldDescriptorE:
 1624|   108k|                               const FieldDescriptor* field) const {
 1625|   216k|  ABSL_DCHECK(!schema_.InRealOneof(field) || HasOneofField(message, field))
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|   108k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|   108k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|   216k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|   216k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 108k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|   108k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 108k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|   108k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 108k, 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|   108k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|   108k|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1626|   216k|      << "Field = " << field->full_name();
 1627|       |
 1628|   108k|  if (PROTOBUF_PREDICT_TRUE(!schema_.InRealOneof(field))) {
  ------------------
  |  |  364|   108k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 108k, False: 0]
  |  |  |  Branch (364:53): [Folded, False: 108k]
  |  |  |  Branch (364:62): [True: 108k, False: 0]
  |  |  ------------------
  ------------------
 1629|   108k|    return GetRawNonOneof<Type>(message, field);
 1630|   108k|  }
 1631|       |
 1632|       |  // Oneof fields are not split.
 1633|      0|  ABSL_DCHECK(!schema_.IsSplit(field));
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|   108k|  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|   108k|                                       const FieldDescriptor* field) const {
 1615|   108k|  if (PROTOBUF_PREDICT_FALSE(schema_.IsSplit(field))) {
  ------------------
  |  |  365|   108k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 108k]
  |  |  |  Branch (365:54): [Folded, False: 108k]
  |  |  |  Branch (365:63): [True: 0, False: 108k]
  |  |  ------------------
  ------------------
 1616|      0|    return GetRawSplit<Type>(message, field);
 1617|      0|  }
 1618|   108k|  const uint32_t field_offset = schema_.GetFieldOffsetNonOneof(field);
 1619|   108k|  return internal::GetConstRefAtOffset<Type>(message, field_offset);
 1620|   108k|}
_ZN6google8protobuf8internal23GetConstPointerAtOffsetINS1_20RepeatedPtrFieldBaseEEEPKT_PKvj:
  219|   108k|const To* GetConstPointerAtOffset(const void* message, uint32_t offset) {
  220|   108k|  return reinterpret_cast<const To*>(reinterpret_cast<const char*>(message) +
  221|   108k|                                     offset);
  222|   108k|}
_ZN6google8protobuf8internal19GetConstRefAtOffsetINS1_20RepeatedPtrFieldBaseEEERKT_RKNS0_7MessageEj:
  225|   108k|const To& GetConstRefAtOffset(const Message& message, uint32_t offset) {
  226|   108k|  return *GetConstPointerAtOffset<To>(&message, offset);
  227|   108k|}
_ZNK6google8protobuf10Reflection6GetRawIPKNS0_7MessageEEERKT_RS4_PKNS0_15FieldDescriptorE:
 1624|  9.38k|                               const FieldDescriptor* field) const {
 1625|  18.7k|  ABSL_DCHECK(!schema_.InRealOneof(field) || HasOneofField(message, field))
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  9.38k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  9.38k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  18.7k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  18.7k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 9.38k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  9.38k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 9.38k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  9.38k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 9.38k, 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|  9.38k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|  9.38k|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1626|  18.7k|      << "Field = " << field->full_name();
 1627|       |
 1628|  9.38k|  if (PROTOBUF_PREDICT_TRUE(!schema_.InRealOneof(field))) {
  ------------------
  |  |  364|  9.38k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 9.38k, False: 0]
  |  |  |  Branch (364:53): [Folded, False: 9.38k]
  |  |  |  Branch (364:62): [True: 9.38k, False: 0]
  |  |  ------------------
  ------------------
 1629|  9.38k|    return GetRawNonOneof<Type>(message, field);
 1630|  9.38k|  }
 1631|       |
 1632|       |  // Oneof fields are not split.
 1633|      0|  ABSL_DCHECK(!schema_.IsSplit(field));
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  9.38k|  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|  9.38k|                                       const FieldDescriptor* field) const {
 1615|  9.38k|  if (PROTOBUF_PREDICT_FALSE(schema_.IsSplit(field))) {
  ------------------
  |  |  365|  9.38k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 9.38k]
  |  |  |  Branch (365:54): [Folded, False: 9.38k]
  |  |  |  Branch (365:63): [True: 0, False: 9.38k]
  |  |  ------------------
  ------------------
 1616|      0|    return GetRawSplit<Type>(message, field);
 1617|      0|  }
 1618|  9.38k|  const uint32_t field_offset = schema_.GetFieldOffsetNonOneof(field);
 1619|  9.38k|  return internal::GetConstRefAtOffset<Type>(message, field_offset);
 1620|  9.38k|}
_ZN6google8protobuf8internal23GetConstPointerAtOffsetIPKNS0_7MessageEEEPKT_PKvj:
  219|  9.38k|const To* GetConstPointerAtOffset(const void* message, uint32_t offset) {
  220|  9.38k|  return reinterpret_cast<const To*>(reinterpret_cast<const char*>(message) +
  221|  9.38k|                                     offset);
  222|  9.38k|}
_ZN6google8protobuf8internal19GetConstRefAtOffsetIPKNS0_7MessageEEERKT_RS4_j:
  225|  9.38k|const To& GetConstRefAtOffset(const Message& message, uint32_t offset) {
  226|  9.38k|  return *GetConstPointerAtOffset<To>(&message, offset);
  227|  9.38k|}
_ZNK6google8protobuf10Reflection10MutableRawIPNS0_7MessageEEEPT_S4_PKNS0_15FieldDescriptorE:
 1207|  9.38k|  Type* MutableRaw(Message* message, const FieldDescriptor* field) const {
 1208|  9.38k|    return reinterpret_cast<Type*>(MutableRawImpl(message, field));
 1209|  9.38k|  }
_ZNK6google8protobuf10Reflection10MutableRawINS0_8internal20RepeatedPtrFieldBaseEEEPT_PNS0_7MessageEPKNS0_15FieldDescriptorE:
 1207|  73.6k|  Type* MutableRaw(Message* message, const FieldDescriptor* field) const {
 1208|  73.6k|    return reinterpret_cast<Type*>(MutableRawImpl(message, field));
 1209|  73.6k|  }
_ZN6google8protobuf8internal23GetConstPointerAtOffsetIjEEPKT_PKvj:
  219|  49.2k|const To* GetConstPointerAtOffset(const void* message, uint32_t offset) {
  220|  49.2k|  return reinterpret_cast<const To*>(reinterpret_cast<const char*>(message) +
  221|  49.2k|                                     offset);
  222|  49.2k|}
_ZN6google8protobuf8internal18GetPointerAtOffsetIvEEPT_Pvj:
  214|  83.0k|inline To* GetPointerAtOffset(void* message, uint32_t offset) {
  215|  83.0k|  return reinterpret_cast<To*>(reinterpret_cast<char*>(message) + offset);
  216|  83.0k|}
_ZN6google8protobuf8internal19GetConstRefAtOffsetIjEERKT_RKNS0_7MessageEj:
  225|  49.2k|const To& GetConstRefAtOffset(const Message& message, uint32_t offset) {
  226|  49.2k|  return *GetConstPointerAtOffset<To>(&message, offset);
  227|  49.2k|}

_ZN6google8protobuf8internal13MergeFromImplILb0EEEbN4absl12lts_2024011611string_viewEPNS0_11MessageLiteEPKNS1_16TcParseTableBaseENS6_10ParseFlagsE:
  214|  10.1k|                   MessageLite::ParseFlags parse_flags) {
  215|  10.1k|  const char* ptr;
  216|  10.1k|  internal::ParseContext ctx(io::CodedInputStream::GetDefaultRecursionLimit(),
  217|  10.1k|                             aliasing, &ptr, input);
  218|  10.1k|  ptr = internal::TcParser::ParseLoop(msg, ptr, &ctx, tc_table);
  219|       |  // ctx has an explicit limit set (length of string_view).
  220|  10.1k|  if (PROTOBUF_PREDICT_TRUE(ptr && ctx.EndedAtLimit())) {
  ------------------
  |  |  364|  20.1k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 10.0k, False: 71]
  |  |  |  Branch (364:53): [Folded, False: 10.1k]
  |  |  |  Branch (364:63): [True: 10.0k, False: 71]
  |  |  |  Branch (364:63): [True: 10.0k, False: 0]
  |  |  ------------------
  ------------------
  221|  10.0k|    return CheckFieldPresence(ctx, *msg, parse_flags);
  222|  10.0k|  }
  223|     71|  return false;
  224|  10.1k|}
_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|  10.0k|bool MessageLite::ParsePartialFromString(absl::string_view data) {
  405|  10.0k|  return ParseFrom<kParsePartial>(data);
  406|  10.0k|}
_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|  10.0k|                               MessageLite::ParseFlags parse_flags) {
  185|  10.0k|  (void)ctx;  // Parameter is used by Google-internal code.
  186|  10.0k|  if (PROTOBUF_PREDICT_FALSE((parse_flags & MessageLite::kMergePartial) != 0)) {
  ------------------
  |  |  365|  10.0k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 10.0k, False: 6]
  |  |  |  Branch (365:54): [Folded, False: 10.0k]
  |  |  |  Branch (365:63): [True: 10.0k, False: 6]
  |  |  ------------------
  ------------------
  187|  10.0k|    return true;
  188|  10.0k|  }
  189|      6|  return msg.IsInitializedWithErrors();
  190|  10.0k|}
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.2k|  Tag tag() const { return tag_; }
_ZNK6google8protobuf8internal14MessageCreator10arena_bitsEv:
  137|  88.6k|  uintptr_t arena_bits() const {
  138|  88.6k|    ABSL_DCHECK_NE(+tag(), +kFunc);
  ------------------
  |  |   76|  88.6k|  ABSL_LOG_INTERNAL_DCHECK_NE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   88|  88.6k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  88.6k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 88.6k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  88.6k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  139|  88.6k|    return arena_bits_;
  140|  88.6k|  }
_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.7k|  MessageLite* New(Arena* arena) const {
  411|  87.7k|    return message_creator.New(prototype, prototype, arena);
  412|  87.7k|  }
_ZNK6google8protobuf11MessageLite15GetTcParseTableEv:
  860|  10.1k|  const internal::TcParseTableBase* GetTcParseTable() const {
  861|  10.1k|    auto* data = GetClassData();
  862|  10.1k|    ABSL_DCHECK(data != nullptr);
  ------------------
  |  |   47|  10.1k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  10.1k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  20.2k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  10.1k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  20.2k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  20.2k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 10.1k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  10.1k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 10.1k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  10.1k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 10.1k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  20.2k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  20.2k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  863|       |
  864|  10.1k|    auto* tc_table = data->tc_table;
  865|  10.1k|    if (ABSL_PREDICT_FALSE(tc_table == nullptr)) {
  ------------------
  |  |  178|  10.1k|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 0, False: 10.1k]
  |  |  |  Branch (178:49): [Folded, False: 10.1k]
  |  |  |  Branch (178:58): [True: 0, False: 10.1k]
  |  |  ------------------
  ------------------
  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|  10.1k|    return tc_table;
  870|  10.1k|  }
_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.2k|    const MessageLite* prototype_for_copy, Arena* arena) const {
 1300|  88.2k|  return PlacementNew<test_call>(prototype_for_func, prototype_for_copy,
 1301|  88.2k|                                 arena != nullptr
  ------------------
  |  Branch (1301:34): [True: 451, False: 87.7k]
  ------------------
 1302|  88.2k|                                     ? arena->AllocateAligned(allocation_size_)
 1303|  88.2k|                                     : ::operator new(allocation_size_),
 1304|  88.2k|                                 arena);
 1305|  88.2k|}
_ZNK6google8protobuf8internal14MessageCreator12PlacementNewILb0ENS0_11MessageLiteEEEPT0_PKS5_S8_PvPNS0_5ArenaE:
 1193|  88.2k|    const MessageLite* prototype_for_copy, void* mem, Arena* arena) const {
 1194|  88.2k|  ABSL_DCHECK_EQ(reinterpret_cast<uintptr_t>(mem) % alignment_, 0u);
  ------------------
  |  |   74|  88.2k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  88.2k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  88.2k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 88.2k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  88.2k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1195|  88.2k|  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.2k|  constexpr bool kMustBeFunc = !test_call && !internal::EnableCustomNew();
  ------------------
  |  Branch (1199:32): [True: 0, Folded]
  |  Branch (1199:46): [Folded, False: 0]
  ------------------
 1200|  88.2k|  static_assert(kFunc < 0 && !(kZeroInit < 0) && !(kMemcpy < 0),
 1201|  88.2k|                "Only kFunc must be the only negative value");
 1202|  88.2k|  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.2k]
  |  |  |  Branch (178:49): [Folded, False: 88.2k]
  |  |  |  Branch (178:59): [Folded, False: 88.2k]
  |  |  |  Branch (178:59): [True: 0, False: 88.2k]
  |  |  ------------------
  ------------------
 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.2k|  char* dst = static_cast<char*>(mem);
 1208|  88.2k|  const size_t size = allocation_size_;
 1209|  88.2k|  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.2k|#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.2k|#endif  // !PROTO2_OPENSOUCE
 1220|  88.2k|  if (as_tag == kZeroInit) {
  ------------------
  |  Branch (1220:7): [True: 70.5k, False: 17.7k]
  ------------------
 1221|       |    // Make sure the input is really all zeros.
 1222|  70.5k|    ABSL_DCHECK(std::all_of(src + sizeof(MessageLite), src + size,
  ------------------
  |  |   47|  70.5k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  70.5k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|   141k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  70.5k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|   141k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|   141k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 70.5k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  70.5k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 70.5k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  70.5k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 70.5k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|   141k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|   141k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1223|  70.5k|                            [](auto c) { return c == 0; }));
 1224|       |
 1225|  70.5k|    if (sizeof(MessageLite) != 16) {
  ------------------
  |  Branch (1225:9): [Folded, False: 70.5k]
  ------------------
 1226|      0|      memset(dst, 0, size);
 1227|  70.5k|    } else if (size <= 32) {
  ------------------
  |  Branch (1227:16): [True: 2.54k, False: 67.9k]
  ------------------
 1228|  2.54k|      memset(dst + size - 16, 0, 16);
 1229|  67.9k|    } else if (size <= 64) {
  ------------------
  |  Branch (1229:16): [True: 67.9k, False: 42]
  ------------------
 1230|  67.9k|      memset(dst + 16, 0, 16);
 1231|  67.9k|      memset(dst + size - 32, 0, 32);
 1232|  67.9k|    } 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|  70.5k|  } else {
 1240|  17.7k|    ABSL_DCHECK_EQ(+as_tag, +kMemcpy);
  ------------------
  |  |   74|  17.7k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  17.7k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  17.7k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 17.7k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  17.7k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1241|       |
 1242|  17.7k|    if (sizeof(MessageLite) != 16) {
  ------------------
  |  Branch (1242:9): [Folded, False: 17.7k]
  ------------------
 1243|      0|      memcpy(dst, src, size);
 1244|  17.7k|    } else if (size <= 32) {
  ------------------
  |  Branch (1244:16): [True: 0, False: 17.7k]
  ------------------
 1245|      0|      memcpy(dst + size - 16, src + size - 16, 16);
 1246|  17.7k|    } else if (size <= 64) {
  ------------------
  |  Branch (1246:16): [True: 9.77k, False: 7.92k]
  ------------------
 1247|  9.77k|      memcpy(dst + 16, src + 16, 16);
 1248|  9.77k|      memcpy(dst + size - 32, src + size - 32, 32);
 1249|  9.77k|    } else {
 1250|  16.0k|      for (size_t offset = 16; offset + 64 < size; offset += 64) {
  ------------------
  |  Branch (1250:32): [True: 8.10k, False: 7.92k]
  ------------------
 1251|  8.10k|        absl::PrefetchToLocalCache(src + offset + 64);
 1252|  8.10k|        absl::PrefetchToLocalCacheForWrite(dst + offset + 64);
 1253|  8.10k|        memcpy(dst + offset, src + offset, 64);
 1254|  8.10k|      }
 1255|  7.92k|      memcpy(dst + size - 64, src + size - 64, 64);
 1256|  7.92k|    }
 1257|  17.7k|  }
 1258|       |
 1259|  88.2k|  if (arena_bits() != 0) {
  ------------------
  |  Branch (1259:7): [True: 7.53k, False: 80.7k]
  ------------------
 1260|  7.53k|    if (as_tag == kZeroInit) {
  ------------------
  |  Branch (1260:9): [True: 42, False: 7.49k]
  ------------------
 1261|     42|      PROTOBUF_DEBUG_COUNTER("MessageCreator.ZeroArena").Inc();
  ------------------
  |  |  983|     42|  ::google::protobuf::internal::NoopDebugCounter {}
  ------------------
 1262|  7.49k|    } else {
 1263|  7.49k|      PROTOBUF_DEBUG_COUNTER("MessageCreator.McpyArena").Inc();
  ------------------
  |  |  983|  7.49k|  ::google::protobuf::internal::NoopDebugCounter {}
  ------------------
 1264|  7.49k|    }
 1265|  80.7k|  } else {
 1266|  80.7k|    if (as_tag == kZeroInit) {
  ------------------
  |  Branch (1266:9): [True: 70.4k, False: 10.2k]
  ------------------
 1267|  70.4k|      PROTOBUF_DEBUG_COUNTER("MessageCreator.Zero").Inc();
  ------------------
  |  |  983|  70.4k|  ::google::protobuf::internal::NoopDebugCounter {}
  ------------------
 1268|  70.4k|    } else {
 1269|  10.2k|      PROTOBUF_DEBUG_COUNTER("MessageCreator.Mcpy").Inc();
  ------------------
  |  |  983|  10.2k|  ::google::protobuf::internal::NoopDebugCounter {}
  ------------------
 1270|  10.2k|    }
 1271|  80.7k|  }
 1272|       |
 1273|  88.2k|  if (internal::PerformDebugChecks() || arena != nullptr) {
  ------------------
  |  Branch (1273:7): [Folded, False: 88.2k]
  |  Branch (1273:41): [True: 451, False: 87.7k]
  ------------------
 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.2k|  memcpy(dst, static_cast<const void*>(prototype_for_copy),
 1290|  88.2k|         sizeof(MessageLite));
 1291|  88.2k|  memcpy(dst + PROTOBUF_FIELD_OFFSET(MessageLite, _internal_metadata_), &arena,
  ------------------
  |  |  303|  88.2k|  _Pragma("clang diagnostic push")                           \
  |  |  304|  88.2k|  _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
  |  |  305|  88.2k|  __builtin_offsetof(TYPE, FIELD)                            \
  |  |  306|  88.2k|  _Pragma("clang diagnostic pop")
  ------------------
 1292|  88.2k|         sizeof(arena));
 1293|  88.2k|  return Launder(reinterpret_cast<MessageLite*>(mem));
 1294|  88.2k|}
_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|  10.0k|bool MessageLite::ParseFrom(const T& input) {
 1145|  10.0k|  if (flags & kParse) Clear();
  ------------------
  |  Branch (1145:7): [True: 10.0k, Folded]
  ------------------
 1146|  10.0k|  constexpr bool alias = (flags & kMergeWithAliasing) != 0;
 1147|  10.0k|  const internal::TcParseTableBase* tc_table;
 1148|  10.0k|  PROTOBUF_ALWAYS_INLINE_CALL tc_table = GetTcParseTable();
  ------------------
  |  |  187|  10.0k|#define PROTOBUF_ALWAYS_INLINE_CALL [[clang::always_inline]]
  ------------------
 1149|  10.0k|  return internal::MergeFromImpl<alias>(input, this, tc_table, flags);
 1150|  10.0k|}
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|  39.5k|  PROTOBUF_NDEBUG_INLINE T* mutable_unknown_fields() {
   93|  39.5k|    if (PROTOBUF_PREDICT_TRUE(have_unknown_fields())) {
  ------------------
  |  |  364|  39.5k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 32.5k, False: 7.07k]
  |  |  |  Branch (364:53): [Folded, False: 39.5k]
  |  |  |  Branch (364:62): [True: 32.5k, False: 7.07k]
  |  |  ------------------
  ------------------
   94|  32.5k|      return &PtrValue<Container<T>>()->unknown_fields;
   95|  32.5k|    } else {
   96|  7.07k|      return mutable_unknown_fields_slow<T>();
   97|  7.07k|    }
   98|  39.5k|  }
_ZN6google8protobuf8internal16InternalMetadata27mutable_unknown_fields_slowINS0_15UnknownFieldSetEEEPT_v:
  169|  7.07k|  PROTOBUF_NOINLINE T* mutable_unknown_fields_slow() {
  170|  7.07k|    Arena* my_arena = arena();
  171|  7.07k|    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|  7.07k|    ptr_ = reinterpret_cast<intptr_t>(container);
  175|  7.07k|    ptr_ |= kUnknownFieldsTagMask;
  176|  7.07k|    container->arena = my_arena;
  177|  7.07k|    return &(container->unknown_fields);
  178|  7.07k|  }
_ZN6google8protobuf8internal16InternalMetadata21DeleteOutOfLineHelperINS0_15UnknownFieldSetEEEvv:
  161|  7.07k|  PROTOBUF_NOINLINE void DeleteOutOfLineHelper() {
  162|  7.07k|    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|  7.07k|    ptr_ = 0;
  166|  7.07k|  }
_ZN6google8protobuf8internal16InternalMetadata7DoClearINS0_15UnknownFieldSetEEEvv:
  183|    597|  PROTOBUF_NOINLINE void DoClear() {
  184|    597|    mutable_unknown_fields<T>()->Clear();
  185|    597|  }

_ZN6google8protobuf8internal18EpsCopyInputStream4NextEv:
  134|      1|const char* EpsCopyInputStream::Next() {
  135|      1|  ABSL_DCHECK(limit_ > kSlopBytes);
  ------------------
  |  |   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)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  136|      1|  auto p = NextBuffer(0 /* immaterial */, -1);
  137|      1|  if (p == nullptr) {
  ------------------
  |  Branch (137:7): [True: 0, False: 1]
  ------------------
  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|      1|  limit_ -= buffer_end_ - p;  // Adjust limit_ relative to new anchor
  144|      1|  limit_end_ = buffer_end_ + std::min(0, limit_);
  145|      1|  return p;
  146|      1|}
_ZN6google8protobuf8internal18EpsCopyInputStream12DoneFallbackEii:
  149|  7.44k|                                                              int depth) {
  150|       |  // Did we exceeded the limit (parse error).
  151|  7.44k|  if (PROTOBUF_PREDICT_FALSE(overrun > limit_)) return {nullptr, true};
  ------------------
  |  |  365|  7.44k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 11, False: 7.43k]
  |  |  |  Branch (365:54): [Folded, False: 7.44k]
  |  |  |  Branch (365:63): [True: 11, False: 7.43k]
  |  |  ------------------
  ------------------
  152|  7.43k|  ABSL_DCHECK(overrun != limit_);  // Guaranteed by caller.
  ------------------
  |  |   47|  7.43k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  7.44k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  22.2k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  7.43k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  14.8k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  14.8k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 7.43k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  7.43k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 7.43k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  7.43k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 7.43k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  22.2k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  22.2k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  153|  7.43k|  ABSL_DCHECK(overrun < limit_);   // Follows from above
  ------------------
  |  |   47|  7.43k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  7.43k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  22.2k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  7.43k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  14.8k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  14.8k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 7.43k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  7.43k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 7.43k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  7.43k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 7.43k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  22.2k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  22.2k|  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|  7.43k|  ABSL_DCHECK(limit_end_ == buffer_end_ + (std::min)(0, limit_));
  ------------------
  |  |   47|  7.43k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  7.43k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  22.2k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  7.43k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  14.8k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  14.8k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 7.43k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  7.43k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 7.43k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  7.43k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 7.43k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  22.2k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  22.2k|  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|  7.43k|  ABSL_DCHECK_GT(limit_, 0);
  ------------------
  |  |   84|  7.43k|  ABSL_LOG_INTERNAL_DCHECK_GT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   96|  7.43k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  7.43k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 7.43k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  7.43k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  161|  7.43k|  ABSL_DCHECK(limit_end_ == buffer_end_);  // because limit_ > 0
  ------------------
  |  |   47|  7.43k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  7.43k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  14.8k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  7.43k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  14.8k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  14.8k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 7.43k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  7.43k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 7.43k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  7.43k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 7.43k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  14.8k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  14.8k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  162|  7.43k|  const char* p;
  163|  7.43k|  do {
  164|       |    // We are past the end of buffer_end_, in the slop region.
  165|  7.43k|    ABSL_DCHECK_GE(overrun, 0);
  ------------------
  |  |   82|  7.43k|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|  7.43k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  7.43k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 7.43k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  7.43k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  166|  7.43k|    p = NextBuffer(overrun, depth);
  167|  7.43k|    if (p == nullptr) {
  ------------------
  |  Branch (167:9): [True: 13, False: 7.41k]
  ------------------
  168|       |      // We are at the end of the stream
  169|     13|      if (PROTOBUF_PREDICT_FALSE(overrun != 0)) return {nullptr, true};
  ------------------
  |  |  365|     13|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 10, False: 3]
  |  |  |  Branch (365:54): [Folded, False: 13]
  |  |  |  Branch (365:63): [True: 10, False: 3]
  |  |  ------------------
  ------------------
  170|      3|      ABSL_DCHECK_GT(limit_, 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()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  171|      3|      limit_end_ = buffer_end_;
  172|       |      // Distinguish ending on a pushed limit or ending on end-of-stream.
  173|      3|      SetEndOfStream();
  174|      3|      return {buffer_end_, true};
  175|     13|    }
  176|  7.41k|    limit_ -= buffer_end_ - p;  // Adjust limit_ relative to new anchor
  177|  7.41k|    p += overrun;
  178|  7.41k|    overrun = p - buffer_end_;
  179|  7.41k|  } while (overrun >= 0);
  ------------------
  |  Branch (179:12): [True: 1, False: 7.41k]
  ------------------
  180|  7.41k|  limit_end_ = buffer_end_ + std::min(0, limit_);
  181|  7.41k|  return {p, false};
  182|  7.43k|}
_ZN6google8protobuf8internal18EpsCopyInputStream18ReadStringFallbackEPKciPNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
  189|      5|                                                   std::string* str) {
  190|      5|  str->clear();
  191|      5|  if (PROTOBUF_PREDICT_TRUE(size <= buffer_end_ - ptr + limit_)) {
  ------------------
  |  |  364|      5|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 2, False: 3]
  |  |  |  Branch (364:53): [Folded, False: 5]
  |  |  |  Branch (364:62): [True: 2, False: 3]
  |  |  ------------------
  ------------------
  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|      2|    str->reserve(str->size() + std::min<int>(size, kSafeStringSize));
  196|      2|  }
  197|      5|  return AppendSize(ptr, size,
  198|      5|                    [str](const char* p, int s) { str->append(p, s); });
  199|      5|}
_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|    574|                                                   uint32_t res32) {
  356|    574|  uint64_t res = res32;
  357|  1.12k|  for (std::uint32_t i = 1; i < 10; i++) {
  ------------------
  |  Branch (357:29): [True: 1.12k, False: 0]
  ------------------
  358|  1.12k|    uint64_t byte = static_cast<uint8_t>(p[i]);
  359|  1.12k|    res += (byte - 1) << (7 * i);
  360|  1.12k|    if (PROTOBUF_PREDICT_TRUE(byte < 128)) {
  ------------------
  |  |  364|  1.12k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 574, False: 553]
  |  |  |  Branch (364:53): [Folded, False: 1.12k]
  |  |  |  Branch (364:62): [True: 574, False: 553]
  |  |  ------------------
  ------------------
  361|    574|      return {p + i + 1, res};
  362|    574|    }
  363|  1.12k|  }
  364|      0|  return {nullptr, 0};
  365|    574|}
_ZN6google8protobuf8internal15ReadTagFallbackEPKcj:
  367|     15|std::pair<const char*, uint32_t> ReadTagFallback(const char* p, uint32_t res) {
  368|     18|  for (std::uint32_t i = 2; i < 5; i++) {
  ------------------
  |  Branch (368:29): [True: 18, False: 0]
  ------------------
  369|     18|    uint32_t byte = static_cast<uint8_t>(p[i]);
  370|     18|    res += (byte - 1) << (7 * i);
  371|     18|    if (PROTOBUF_PREDICT_TRUE(byte < 128)) {
  ------------------
  |  |  364|     18|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 15, False: 3]
  |  |  |  Branch (364:53): [Folded, False: 18]
  |  |  |  Branch (364:62): [True: 15, False: 3]
  |  |  ------------------
  ------------------
  372|     15|      return {p + i + 1, res};
  373|     15|    }
  374|     18|  }
  375|      0|  return {nullptr, 0};
  376|     15|}
_ZN6google8protobuf8internal16ReadSizeFallbackEPKcj:
  378|  4.61k|std::pair<const char*, int32_t> ReadSizeFallback(const char* p, uint32_t res) {
  379|  4.89k|  for (std::uint32_t i = 1; i < 4; i++) {
  ------------------
  |  Branch (379:29): [True: 4.89k, False: 6]
  ------------------
  380|  4.89k|    uint32_t byte = static_cast<uint8_t>(p[i]);
  381|  4.89k|    res += (byte - 1) << (7 * i);
  382|  4.89k|    if (PROTOBUF_PREDICT_TRUE(byte < 128)) {
  ------------------
  |  |  364|  4.89k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 4.60k, False: 284]
  |  |  |  Branch (364:53): [Folded, False: 4.89k]
  |  |  |  Branch (364:62): [True: 4.60k, False: 284]
  |  |  ------------------
  ------------------
  383|  4.60k|      return {p + i + 1, res};
  384|  4.60k|    }
  385|  4.89k|  }
  386|      6|  std::uint32_t byte = static_cast<uint8_t>(p[4]);
  387|      6|  if (PROTOBUF_PREDICT_FALSE(byte >= 8)) return {nullptr, 0};  // size >= 2gb
  ------------------
  |  |  365|      6|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 1, False: 5]
  |  |  |  Branch (365:54): [Folded, False: 6]
  |  |  |  Branch (365:63): [True: 1, False: 5]
  |  |  ------------------
  ------------------
  388|      5|  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|      5|  if (PROTOBUF_PREDICT_FALSE(res > INT_MAX - ParseContext::kSlopBytes)) {
  ------------------
  |  |  365|      5|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 5]
  |  |  |  Branch (365:54): [Folded, False: 5]
  |  |  |  Branch (365:63): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  393|      0|    return {nullptr, 0};
  394|      0|  }
  395|      5|  return {p + 5, res};
  396|      5|}
_ZN6google8protobuf8internal24InlineGreedyStringParserEPNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEPKcPNS1_12ParseContextE:
  419|  23.3k|                                     ParseContext* ctx) {
  420|  23.3k|  int size = ReadSize(&ptr);
  421|  23.3k|  if (!ptr) return nullptr;
  ------------------
  |  Branch (421:7): [True: 0, False: 23.3k]
  ------------------
  422|  23.3k|  return ctx->ReadString(ptr, size, s);
  423|  23.3k|}
_ZN6google8protobuf8internal18EpsCopyInputStream10NextBufferEii:
   79|  7.43k|const char* EpsCopyInputStream::NextBuffer(int overrun, int depth) {
   80|  7.43k|  if (next_chunk_ == nullptr) return nullptr;  // We've reached end of stream.
  ------------------
  |  Branch (80:7): [True: 13, False: 7.41k]
  ------------------
   81|  7.41k|  if (next_chunk_ != patch_buffer_) {
  ------------------
  |  Branch (81:7): [True: 0, False: 7.41k]
  ------------------
   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|  7.41k|  std::memmove(patch_buffer_, buffer_end_, kSlopBytes);
   94|  7.41k|  if (overall_limit_ > 0 &&
  ------------------
  |  Branch (94:7): [True: 0, False: 7.41k]
  ------------------
   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|  7.41k|  if (aliasing_ == kNoDelta) {
  ------------------
  |  Branch (119:7): [True: 0, False: 7.41k]
  ------------------
  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|  7.41k|  next_chunk_ = nullptr;
  129|  7.41k|  buffer_end_ = patch_buffer_ + kSlopBytes;
  130|  7.41k|  size_ = 0;
  131|  7.41k|  return patch_buffer_;
  132|  7.41k|}
parse_context.cc:_ZZN6google8protobuf8internal18EpsCopyInputStream18ReadStringFallbackEPKciPNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEENK3$_0clES4_i:
  198|      3|                    [str](const char* p, int s) { str->append(p, s); });

_ZN6google8protobuf8internal18EpsCopyInputStreamC2Eb:
  100|  10.1k|      : aliasing_(enable_aliasing ? kOnPatch : kNoAliasing) {}
  ------------------
  |  Branch (100:19): [True: 0, False: 10.1k]
  ------------------
_ZN6google8protobuf8internal18EpsCopyInputStream10LimitTokenC2Ev:
  119|  87.9k|    LimitToken() { PROTOBUF_POISON_MEMORY_REGION(&token_, sizeof(token_)); }
_ZN6google8protobuf8internal18EpsCopyInputStream10LimitTokenC2Ei:
  121|  87.9k|    explicit LimitToken(int token) : token_(token) {
  122|  87.9k|      PROTOBUF_UNPOISON_MEMORY_REGION(&token_, sizeof(token_));
  123|  87.9k|    }
_ZN6google8protobuf8internal18EpsCopyInputStream10LimitTokenC2EOS3_:
  128|  87.9k|    LimitToken(LimitToken&& other) { *this = std::move(other); }
_ZN6google8protobuf8internal18EpsCopyInputStream10LimitTokenaSEOS3_:
  130|   175k|    LimitToken& operator=(LimitToken&& other) {
  131|   175k|      PROTOBUF_UNPOISON_MEMORY_REGION(&token_, sizeof(token_));
  132|   175k|      token_ = other.token_;
  133|   175k|      PROTOBUF_POISON_MEMORY_REGION(&other.token_, sizeof(token_));
  134|   175k|      return *this;
  135|   175k|    }
_ZN6google8protobuf8internal18EpsCopyInputStream10LimitTokenD2Ev:
  137|   263k|    ~LimitToken() { PROTOBUF_UNPOISON_MEMORY_REGION(&token_, sizeof(token_)); }
_ZNO6google8protobuf8internal18EpsCopyInputStream10LimitToken5tokenEv:
  139|  87.9k|    int token() && {
  140|  87.9k|      int t = token_;
  141|  87.9k|      PROTOBUF_POISON_MEMORY_REGION(&token_, sizeof(token_));
  142|  87.9k|      return t;
  143|  87.9k|    }
_ZN6google8protobuf8internal18EpsCopyInputStream9PushLimitEPKci:
  150|  87.9k|  PROTOBUF_NODISCARD LimitToken PushLimit(const char* ptr, int limit) {
  151|  87.9k|    ABSL_DCHECK(limit >= 0 && limit <= INT_MAX - kSlopBytes);
  ------------------
  |  |   47|  87.9k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  87.9k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|   175k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  87.9k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|   175k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|   175k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 87.9k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  87.9k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 87.9k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  87.9k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 87.9k, 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|   175k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|   175k|  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|  87.9k|    limit += static_cast<int>(ptr - buffer_end_);
  155|  87.9k|    limit_end_ = buffer_end_ + (std::min)(0, limit);
  156|  87.9k|    auto old_limit = limit_;
  157|  87.9k|    limit_ = limit;
  158|  87.9k|    return LimitToken(old_limit - limit);
  159|  87.9k|  }
_ZN6google8protobuf8internal18EpsCopyInputStream8PopLimitENS2_10LimitTokenE:
  161|  87.9k|  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|  87.9k|    limit_ = limit_ + std::move(delta).token();
  165|  87.9k|    if (PROTOBUF_PREDICT_FALSE(!EndedAtLimit())) return false;
  ------------------
  |  |  365|  87.9k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 12, False: 87.9k]
  |  |  |  Branch (365:54): [Folded, False: 87.9k]
  |  |  |  Branch (365:63): [True: 12, False: 87.9k]
  |  |  ------------------
  ------------------
  166|       |    // TODO We could remove this line and hoist the code to
  167|       |    // DoneFallback. Study the perf/bin-size effects.
  168|  87.9k|    limit_end_ = buffer_end_ + (std::min)(0, limit_);
  169|  87.9k|    return true;
  170|  87.9k|  }
_ZN6google8protobuf8internal18EpsCopyInputStream10ReadStringEPKciPNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
  179|  49.3k|                                            std::string* s) {
  180|  49.3k|    if (size <= buffer_end_ + kSlopBytes - ptr) {
  ------------------
  |  Branch (180:9): [True: 49.3k, False: 5]
  ------------------
  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|  49.3k|      absl::strings_internal::STLStringResizeUninitialized(s, size);
  186|  49.3k|      char* z = &(*s)[0];
  187|  49.3k|      memcpy(z, ptr, size);
  188|  49.3k|      return ptr + size;
  189|  49.3k|    }
  190|      5|    return ReadStringFallback(ptr, size, s);
  191|  49.3k|  }
_ZNK6google8protobuf8internal18EpsCopyInputStream7LastTagEv:
  232|   132k|  uint32_t LastTag() const { return last_tag_minus_1_ + 1; }
_ZN6google8protobuf8internal18EpsCopyInputStream15ConsumeEndGroupEj:
  233|  1.03k|  bool ConsumeEndGroup(uint32_t start_tag) {
  234|  1.03k|    bool res = last_tag_minus_1_ == start_tag;
  235|  1.03k|    last_tag_minus_1_ = 0;
  236|  1.03k|    return res;
  237|  1.03k|  }
_ZNK6google8protobuf8internal18EpsCopyInputStream12EndedAtLimitEv:
  238|  97.9k|  bool EndedAtLimit() const { return last_tag_minus_1_ == 0; }
_ZN6google8protobuf8internal18EpsCopyInputStream10SetLastTagEj:
  240|  1.04k|  void SetLastTag(uint32_t tag) { last_tag_minus_1_ = tag - 1; }
_ZN6google8protobuf8internal18EpsCopyInputStream14SetEndOfStreamEv:
  241|      3|  void SetEndOfStream() { last_tag_minus_1_ = 1; }
_ZN6google8protobuf8internal18EpsCopyInputStream13DataAvailableEPKc:
  256|   246k|  bool DataAvailable(const char* ptr) { return ptr < limit_end_; }
_ZN6google8protobuf8internal18EpsCopyInputStream13DoneWithCheckEPPKci:
  262|   232k|  bool DoneWithCheck(const char** ptr, int d) {
  263|   232k|    ABSL_DCHECK(*ptr);
  ------------------
  |  |   47|   232k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|   232k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|   464k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|   232k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|   464k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|   464k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 232k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|   232k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 232k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|   232k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 232k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|   464k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|   464k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  264|   232k|    if (PROTOBUF_PREDICT_TRUE(*ptr < limit_end_)) return false;
  ------------------
  |  |  364|   232k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 126k, False: 105k]
  |  |  |  Branch (364:53): [Folded, False: 232k]
  |  |  |  Branch (364:62): [True: 126k, False: 105k]
  |  |  ------------------
  ------------------
  265|   105k|    int overrun = static_cast<int>(*ptr - buffer_end_);
  266|   105k|    ABSL_DCHECK_LE(overrun, kSlopBytes);  // Guaranteed by parse loop.
  ------------------
  |  |   78|   105k|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|   105k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|   105k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 105k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|   105k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  267|   105k|    if (overrun ==
  ------------------
  |  Branch (267:9): [True: 97.9k, False: 7.44k]
  ------------------
  268|   105k|        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|  97.9k|      if (overrun > 0 && next_chunk_ == nullptr) *ptr = nullptr;
  ------------------
  |  Branch (271:11): [True: 4.63k, False: 93.3k]
  |  Branch (271:26): [True: 16, False: 4.61k]
  ------------------
  272|  97.9k|      return true;
  273|  97.9k|    }
  274|  7.44k|    auto res = DoneFallback(overrun, d);
  275|  7.44k|    *ptr = res.first;
  276|  7.44k|    return res.second;
  277|   105k|  }
_ZN6google8protobuf8internal18EpsCopyInputStream8InitFromEN4absl12lts_2024011611string_viewE:
  279|  10.1k|  const char* InitFrom(absl::string_view flat) {
  280|  10.1k|    overall_limit_ = 0;
  281|  10.1k|    if (flat.size() > kSlopBytes) {
  ------------------
  |  Branch (281:9): [True: 9.17k, False: 953]
  ------------------
  282|  9.17k|      limit_ = kSlopBytes;
  283|  9.17k|      limit_end_ = buffer_end_ = flat.data() + flat.size() - kSlopBytes;
  284|  9.17k|      next_chunk_ = patch_buffer_;
  285|  9.17k|      if (aliasing_ == kOnPatch) aliasing_ = kNoDelta;
  ------------------
  |  Branch (285:11): [True: 0, False: 9.17k]
  ------------------
  286|  9.17k|      return flat.data();
  287|  9.17k|    } else {
  288|    953|      if (!flat.empty()) {
  ------------------
  |  Branch (288:11): [True: 953, False: 0]
  ------------------
  289|    953|        std::memcpy(patch_buffer_, flat.data(), flat.size());
  290|    953|      }
  291|    953|      limit_ = 0;
  292|    953|      limit_end_ = buffer_end_ = patch_buffer_ + flat.size();
  293|    953|      next_chunk_ = nullptr;
  294|    953|      if (aliasing_ == kOnPatch) {
  ------------------
  |  Branch (294:11): [True: 0, False: 953]
  ------------------
  295|      0|        aliasing_ = reinterpret_cast<std::uintptr_t>(flat.data()) -
  296|      0|                    reinterpret_cast<std::uintptr_t>(patch_buffer_);
  297|      0|      }
  298|    953|      return patch_buffer_;
  299|    953|    }
  300|  10.1k|  }
_ZN6google8protobuf8internal12ParseContext4DoneEPPKc:
  487|   232k|  bool Done(const char** ptr) { return DoneWithCheck(ptr, group_depth_); }
_ZNK6google8protobuf8internal12ParseContext4dataEv:
  492|      8|  const Data& data() const { return data_; }
_ZN6google8protobuf8internal12EndianHelperILi1EE4LoadEPKv:
  578|   131k|  static uint8_t Load(const void* p) { return *static_cast<const uint8_t*>(p); }
_ZN6google8protobuf8internal12EndianHelperILi2EE4LoadEPKv:
  583|   209k|  static uint16_t Load(const void* p) {
  584|   209k|    uint16_t tmp;
  585|   209k|    std::memcpy(&tmp, p, 2);
  586|   209k|    return little_endian::ToHost(tmp);
  587|   209k|  }
_ZN6google8protobuf8internal12EndianHelperILi4EE4LoadEPKv:
  592|  1.66k|  static uint32_t Load(const void* p) {
  593|  1.66k|    uint32_t tmp;
  594|  1.66k|    std::memcpy(&tmp, p, 4);
  595|  1.66k|    return little_endian::ToHost(tmp);
  596|  1.66k|  }
_ZN6google8protobuf8internal12EndianHelperILi8EE4LoadEPKv:
  601|  2.20k|  static uint64_t Load(const void* p) {
  602|  2.20k|    uint64_t tmp;
  603|  2.20k|    std::memcpy(&tmp, p, 8);
  604|  2.20k|    return little_endian::ToHost(tmp);
  605|  2.20k|  }
_ZN6google8protobuf8internal10RotateLeftImEET_S3_i:
  930|  1.55k|    T x, int s) noexcept {
  931|  1.55k|  return static_cast<T>(x << (s & (std::numeric_limits<T>::digits - 1))) |
  932|  1.55k|         static_cast<T>(x >> ((-s) & (std::numeric_limits<T>::digits - 1)));
  933|  1.55k|}
_ZN6google8protobuf8internal15VarintParseSlowEPKcjPm:
  632|    574|inline const char* VarintParseSlow(const char* p, uint32_t res, uint64_t* out) {
  633|    574|  auto tmp = VarintParseSlow64(p, res);
  634|    574|  *out = tmp.second;
  635|    574|  return tmp.first;
  636|    574|}
_ZN6google8protobuf8internal7ReadTagEPKcPjj:
  906|  1.82k|                           uint32_t /*max_tag*/ = 0) {
  907|  1.82k|  uint32_t res = static_cast<uint8_t>(p[0]);
  908|  1.82k|  if (res < 128) {
  ------------------
  |  Branch (908:7): [True: 1.53k, False: 286]
  ------------------
  909|  1.53k|    *out = res;
  910|  1.53k|    return p + 1;
  911|  1.53k|  }
  912|    286|  uint32_t second = static_cast<uint8_t>(p[1]);
  913|    286|  res += (second - 1) << 7;
  914|    286|  if (second < 128) {
  ------------------
  |  Branch (914:7): [True: 271, False: 15]
  ------------------
  915|    271|    *out = res;
  916|    271|    return p + 2;
  917|    271|  }
  918|     15|  auto tmp = ReadTagFallback(p, res);
  919|     15|  *out = tmp.second;
  920|     15|  return tmp.first;
  921|    286|}
_ZN6google8protobuf8internal26RotRight7AndReplaceLowByteEmRKc:
  936|  1.76k|RotRight7AndReplaceLowByte(uint64_t res, const char& byte) {
  937|       |  // TODO: remove the inline assembly
  938|  1.76k|#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|  1.76k|  asm("ror $7,%0\n\t"
  947|  1.76k|      "movb %1,%b0"
  948|  1.76k|      : "+r"(res)
  949|  1.76k|      : "m"(byte));
  950|       |#else
  951|       |  res = RotateLeft(res, -7);
  952|       |  res = res & ~0xFF;
  953|       |  res |= 0xFF & byte;
  954|       |#endif
  955|  1.76k|  return res;
  956|  1.76k|}
_ZN6google8protobuf8internal14ReadTagInlinedEPKcPj:
  959|  71.4k|                                                         uint32_t* out) {
  960|  71.4k|  uint64_t res = 0xFF & ptr[0];
  961|  71.4k|  if (PROTOBUF_PREDICT_FALSE(res >= 128)) {
  ------------------
  |  |  365|  71.4k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 1.55k, False: 69.9k]
  |  |  |  Branch (365:54): [Folded, False: 71.4k]
  |  |  |  Branch (365:63): [True: 1.55k, False: 69.9k]
  |  |  ------------------
  ------------------
  962|  1.55k|    res = RotRight7AndReplaceLowByte(res, ptr[1]);
  963|  1.55k|    if (PROTOBUF_PREDICT_FALSE(res & 0x80)) {
  ------------------
  |  |  365|  1.55k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 161, False: 1.39k]
  |  |  |  Branch (365:54): [Folded, False: 1.55k]
  |  |  |  Branch (365:63): [True: 161, False: 1.39k]
  |  |  ------------------
  ------------------
  964|    161|      res = RotRight7AndReplaceLowByte(res, ptr[2]);
  965|    161|      if (PROTOBUF_PREDICT_FALSE(res & 0x80)) {
  ------------------
  |  |  365|    161|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 48, False: 113]
  |  |  |  Branch (365:54): [Folded, False: 161]
  |  |  |  Branch (365:63): [True: 48, False: 113]
  |  |  ------------------
  ------------------
  966|     48|        res = RotRight7AndReplaceLowByte(res, ptr[3]);
  967|     48|        if (PROTOBUF_PREDICT_FALSE(res & 0x80)) {
  ------------------
  |  |  365|     48|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 3, False: 45]
  |  |  |  Branch (365:54): [Folded, False: 48]
  |  |  |  Branch (365:63): [True: 3, False: 45]
  |  |  ------------------
  ------------------
  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|      3|          res = RotRight7AndReplaceLowByte(res, ptr[4]);
  972|      3|          if (PROTOBUF_PREDICT_FALSE(res & 0x80)) {
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  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|      3|          *out = static_cast<uint32_t>(RotateLeft(res, 28));
  979|      3|#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|      3|          asm("" : "+r"(ptr));
  984|      3|#endif
  985|      3|          return ptr + 5;
  986|      3|        }
  987|     45|        *out = static_cast<uint32_t>(RotateLeft(res, 21));
  988|     45|        return ptr + 4;
  989|     48|      }
  990|    113|      *out = static_cast<uint32_t>(RotateLeft(res, 14));
  991|    113|      return ptr + 3;
  992|    161|    }
  993|  1.39k|    *out = static_cast<uint32_t>(RotateLeft(res, 7));
  994|  1.39k|    return ptr + 2;
  995|  1.55k|  }
  996|  69.9k|  *out = static_cast<uint32_t>(res);
  997|  69.9k|  return ptr + 1;
  998|  71.4k|}
_ZN6google8protobuf8internal8ReadSizeEPPKc:
 1050|   137k|inline uint32_t ReadSize(const char** pp) {
 1051|   137k|  auto p = *pp;
 1052|   137k|  uint32_t res = static_cast<uint8_t>(p[0]);
 1053|   137k|  if (res < 128) {
  ------------------
  |  Branch (1053:7): [True: 132k, False: 4.61k]
  ------------------
 1054|   132k|    *pp = p + 1;
 1055|   132k|    return res;
 1056|   132k|  }
 1057|  4.61k|  auto x = ReadSizeFallback(p, res);
 1058|  4.61k|  *pp = x.first;
 1059|  4.61k|  return x.second;
 1060|   137k|}
_ZN6google8protobuf8internal12ParseContext35ReadSizeAndPushLimitAndDepthInlinedEPKcPNS1_18EpsCopyInputStream10LimitTokenE:
 1125|  87.9k|    const char* ptr, LimitToken* old_limit) {
 1126|  87.9k|  int size = ReadSize(&ptr);
 1127|  87.9k|  if (PROTOBUF_PREDICT_FALSE(!ptr) || depth_ <= 0) {
  ------------------
  |  |  365|   175k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 1, False: 87.9k]
  |  |  |  Branch (365:54): [Folded, False: 87.9k]
  |  |  |  Branch (365:63): [True: 1, False: 87.9k]
  |  |  ------------------
  ------------------
  |  Branch (1127:39): [True: 0, False: 87.9k]
  ------------------
 1128|      1|    return nullptr;
 1129|      1|  }
 1130|  87.9k|  *old_limit = PushLimit(ptr, size);
 1131|  87.9k|  --depth_;
 1132|  87.9k|  return ptr;
 1133|  87.9k|}
_ZN6google8protobuf8internal13UnalignedLoadItEET_PKc:
  609|   209k|T UnalignedLoad(const char* p) {
  610|   209k|  auto tmp = EndianHelper<sizeof(T)>::Load(p);
  611|   209k|  T res;
  612|   209k|  memcpy(&res, &tmp, sizeof(T));
  613|   209k|  return res;
  614|   209k|}
_ZN6google8protobuf8internal11VarintParseImEEPKcS4_PT_:
  868|  27.6k|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|  27.6k|  auto ptr = reinterpret_cast<const uint8_t*>(p);
  889|  27.6k|  uint32_t res = ptr[0];
  890|  27.6k|  if ((res & 0x80) == 0) {
  ------------------
  |  Branch (890:7): [True: 27.0k, False: 574]
  ------------------
  891|  27.0k|    *out = res;
  892|  27.0k|    return p + 1;
  893|  27.0k|  }
  894|    574|  return VarintParseSlow(p, res, out);
  895|  27.6k|#endif  // __aarch64__
  896|  27.6k|}
_ZN6google8protobuf8internal13UnalignedLoadImEET_PKc:
  609|  2.20k|T UnalignedLoad(const char* p) {
  610|  2.20k|  auto tmp = EndianHelper<sizeof(T)>::Load(p);
  611|  2.20k|  T res;
  612|  2.20k|  memcpy(&res, &tmp, sizeof(T));
  613|  2.20k|  return res;
  614|  2.20k|}
_ZN6google8protobuf8internal13UnalignedLoadIjEET_PKc:
  609|  1.66k|T UnalignedLoad(const char* p) {
  610|  1.66k|  auto tmp = EndianHelper<sizeof(T)>::Load(p);
  611|  1.66k|  T res;
  612|  1.66k|  memcpy(&res, &tmp, sizeof(T));
  613|  1.66k|  return res;
  614|  1.66k|}
_ZN6google8protobuf8internal12ParseContext27ParseLengthDelimitedInlinedIZNS1_8TcParser24MpRepeatedMessageOrGroupILb0ELb0EEEPKcPNS0_11MessageLiteES7_PS2_NS1_11TcFieldDataEPKNS1_16TcParseTableBaseEmEUlS7_E_EES7_S7_RKT_:
 1093|    468|ParseContext::ParseLengthDelimitedInlined(const char* ptr, const Func& func) {
 1094|    468|  LimitToken old;
 1095|    468|  ptr = ReadSizeAndPushLimitAndDepthInlined(ptr, &old);
 1096|    468|  if (ptr == nullptr) return ptr;
  ------------------
  |  Branch (1096:7): [True: 1, False: 467]
  ------------------
 1097|    467|  auto old_depth = depth_;
 1098|    467|  PROTOBUF_ALWAYS_INLINE_CALL ptr = func(ptr);
  ------------------
  |  |  187|    467|#define PROTOBUF_ALWAYS_INLINE_CALL [[clang::always_inline]]
  ------------------
 1099|    467|  if (ptr != nullptr) ABSL_DCHECK_EQ(old_depth, depth_);
  ------------------
  |  |   74|    467|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|    448|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|    448|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 448]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|    448|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1099:7): [True: 448, False: 19]
  ------------------
 1100|    467|  depth_++;
 1101|    467|  if (!PopLimit(std::move(old))) return nullptr;
  ------------------
  |  Branch (1101:7): [True: 1, False: 466]
  ------------------
 1102|    466|  return ptr;
 1103|    467|}
_ZN6google8protobuf8internal12ParseContext27ParseLengthDelimitedInlinedIZNS1_8TcParser9MpMessageILb0EEEPKcPNS0_11MessageLiteES7_PS2_NS1_11TcFieldDataEPKNS1_16TcParseTableBaseEmEUlS7_E_EES7_S7_RKT_:
 1093|     39|ParseContext::ParseLengthDelimitedInlined(const char* ptr, const Func& func) {
 1094|     39|  LimitToken old;
 1095|     39|  ptr = ReadSizeAndPushLimitAndDepthInlined(ptr, &old);
 1096|     39|  if (ptr == nullptr) return ptr;
  ------------------
  |  Branch (1096:7): [True: 0, False: 39]
  ------------------
 1097|     39|  auto old_depth = depth_;
 1098|     39|  PROTOBUF_ALWAYS_INLINE_CALL ptr = func(ptr);
  ------------------
  |  |  187|     39|#define PROTOBUF_ALWAYS_INLINE_CALL [[clang::always_inline]]
  ------------------
 1099|     39|  if (ptr != nullptr) ABSL_DCHECK_EQ(old_depth, depth_);
  ------------------
  |  |   74|     39|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|     34|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     34|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 34]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|     34|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1099:7): [True: 34, False: 5]
  ------------------
 1100|     39|  depth_++;
 1101|     39|  if (!PopLimit(std::move(old))) return nullptr;
  ------------------
  |  Branch (1101:7): [True: 3, False: 36]
  ------------------
 1102|     36|  return ptr;
 1103|     39|}
_ZN6google8protobuf8internal13UnalignedLoadIhEET_PKc:
  609|   131k|T UnalignedLoad(const char* p) {
  610|   131k|  auto tmp = EndianHelper<sizeof(T)>::Load(p);
  611|   131k|  T res;
  612|   131k|  memcpy(&res, &tmp, sizeof(T));
  613|   131k|  return res;
  614|   131k|}
_ZN6google8protobuf8internal12ParseContext27ParseLengthDelimitedInlinedIZNS1_8TcParser27SingularParseMessageAuxImplIhLb0ELb1EEEPKcPNS0_11MessageLiteES7_PS2_NS1_11TcFieldDataEPKNS1_16TcParseTableBaseEmEUlS7_E_EES7_S7_RKT_:
 1093|  9.60k|ParseContext::ParseLengthDelimitedInlined(const char* ptr, const Func& func) {
 1094|  9.60k|  LimitToken old;
 1095|  9.60k|  ptr = ReadSizeAndPushLimitAndDepthInlined(ptr, &old);
 1096|  9.60k|  if (ptr == nullptr) return ptr;
  ------------------
  |  Branch (1096:7): [True: 0, False: 9.60k]
  ------------------
 1097|  9.60k|  auto old_depth = depth_;
 1098|  9.60k|  PROTOBUF_ALWAYS_INLINE_CALL ptr = func(ptr);
  ------------------
  |  |  187|  9.60k|#define PROTOBUF_ALWAYS_INLINE_CALL [[clang::always_inline]]
  ------------------
 1099|  9.60k|  if (ptr != nullptr) ABSL_DCHECK_EQ(old_depth, depth_);
  ------------------
  |  |   74|  9.60k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  9.57k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  9.57k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 9.57k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  9.57k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1099:7): [True: 9.57k, False: 30]
  ------------------
 1100|  9.60k|  depth_++;
 1101|  9.60k|  if (!PopLimit(std::move(old))) return nullptr;
  ------------------
  |  Branch (1101:7): [True: 6, False: 9.60k]
  ------------------
 1102|  9.60k|  return ptr;
 1103|  9.60k|}
_ZN6google8protobuf8internal12ParseContext27ParseLengthDelimitedInlinedIZNS1_8TcParser27RepeatedParseMessageAuxImplIhLb0ELb1EEEPKcPNS0_11MessageLiteES7_PS2_NS1_11TcFieldDataEPKNS1_16TcParseTableBaseEmEUlS7_E_EES7_S7_RKT_:
 1093|  77.7k|ParseContext::ParseLengthDelimitedInlined(const char* ptr, const Func& func) {
 1094|  77.7k|  LimitToken old;
 1095|  77.7k|  ptr = ReadSizeAndPushLimitAndDepthInlined(ptr, &old);
 1096|  77.7k|  if (ptr == nullptr) return ptr;
  ------------------
  |  Branch (1096:7): [True: 0, False: 77.7k]
  ------------------
 1097|  77.7k|  auto old_depth = depth_;
 1098|  77.7k|  PROTOBUF_ALWAYS_INLINE_CALL ptr = func(ptr);
  ------------------
  |  |  187|  77.7k|#define PROTOBUF_ALWAYS_INLINE_CALL [[clang::always_inline]]
  ------------------
 1099|  77.7k|  if (ptr != nullptr) ABSL_DCHECK_EQ(old_depth, depth_);
  ------------------
  |  |   74|  77.7k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  77.7k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  77.7k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 77.7k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  77.7k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1099:7): [True: 77.7k, False: 19]
  ------------------
 1100|  77.7k|  depth_++;
 1101|  77.7k|  if (!PopLimit(std::move(old))) return nullptr;
  ------------------
  |  Branch (1101:7): [True: 2, False: 77.7k]
  ------------------
 1102|  77.7k|  return ptr;
 1103|  77.7k|}
_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|  10.1k|      : EpsCopyInputStream(aliasing), depth_(depth) {
  456|  10.1k|    *start = InitFrom(std::forward<T>(args)...);
  457|  10.1k|  }
parse_context.cc:_ZN6google8protobuf8internal18EpsCopyInputStream10AppendSizeIZNS2_18ReadStringFallbackEPKciPNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEE3$_0EES5_S5_iRKT_:
  384|      5|  const char* AppendSize(const char* ptr, int size, const A& append) {
  385|      5|    int chunk_size = static_cast<int>(buffer_end_ + kSlopBytes - ptr);
  386|      5|    do {
  387|      5|      ABSL_DCHECK(size > chunk_size);
  ------------------
  |  |   47|      5|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|      5|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|     10|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|      5|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|     10|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|     10|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 5, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|      5|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 5]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|      5|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 5, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|     10|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|     10|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  388|      5|      if (next_chunk_ == nullptr) return nullptr;
  ------------------
  |  Branch (388:11): [True: 3, False: 2]
  ------------------
  389|      2|      append(ptr, chunk_size);
  390|      2|      ptr += chunk_size;
  391|      2|      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|      2|      if (limit_ <= kSlopBytes) return nullptr;
  ------------------
  |  Branch (395:11): [True: 1, False: 1]
  ------------------
  396|      1|      ptr = Next();
  397|      1|      if (ptr == nullptr) return nullptr;  // passed the limit
  ------------------
  |  Branch (397:11): [True: 0, False: 1]
  ------------------
  398|      1|      ptr += kSlopBytes;
  399|      1|      chunk_size = static_cast<int>(buffer_end_ + kSlopBytes - ptr);
  400|      1|    } while (size > chunk_size);
  ------------------
  |  Branch (400:14): [True: 0, False: 1]
  ------------------
  401|      1|    append(ptr, size);
  402|      1|    return ptr + size;
  403|      5|  }
_ZN6google8protobuf8internal16WireFormatParserINS1_24UnknownFieldParserHelperEEEPKcRT_S5_PNS1_12ParseContextE:
 1320|  1.03k|                                                ParseContext* ctx) {
 1321|  1.21k|  while (!ctx->Done(&ptr)) {
  ------------------
  |  Branch (1321:10): [True: 1.21k, False: 2]
  ------------------
 1322|  1.21k|    uint32_t tag;
 1323|  1.21k|    ptr = ReadTag(ptr, &tag);
 1324|  1.21k|    GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
  ------------------
  |  | 1157|  1.21k|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  ------------------
  |  |  |  | 1150|  1.21k|  if (!(predicate)) {                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1150:7): [True: 0, False: 1.21k]
  |  |  |  |  ------------------
  |  |  |  | 1151|      0|    /*  ::raise(SIGINT);  */                           \
  |  |  |  | 1152|      0|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  | 1153|      0|    return ret;                                        \
  |  |  |  | 1154|      0|  }
  |  |  ------------------
  ------------------
 1325|  1.21k|    if (tag == 0 || (tag & 7) == 4) {
  ------------------
  |  Branch (1325:9): [True: 1, False: 1.21k]
  |  Branch (1325:21): [True: 1.03k, False: 177]
  ------------------
 1326|  1.03k|      ctx->SetLastTag(tag);
 1327|  1.03k|      return ptr;
 1328|  1.03k|    }
 1329|    177|    ptr = FieldParser(tag, field_parser, ptr, ctx);
 1330|    177|    GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
  ------------------
  |  | 1157|    177|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  ------------------
  |  |  |  | 1150|    177|  if (!(predicate)) {                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1150:7): [True: 2, False: 175]
  |  |  |  |  ------------------
  |  |  |  | 1151|      2|    /*  ::raise(SIGINT);  */                           \
  |  |  |  | 1152|      2|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  | 1153|      2|    return ret;                                        \
  |  |  |  | 1154|      2|  }
  |  |  ------------------
  ------------------
 1331|    175|  }
 1332|      2|  return ptr;
 1333|  1.03k|}
_ZN6google8protobuf8internal11FieldParserINS1_24UnknownFieldParserHelperEEEPKcmRT_S5_PNS1_12ParseContextE:
 1273|  39.1k|                                           const char* ptr, ParseContext* ctx) {
 1274|  39.1k|  uint32_t number = tag >> 3;
 1275|  39.1k|  GOOGLE_PROTOBUF_PARSER_ASSERT(number != 0);
  ------------------
  |  | 1157|  39.1k|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  ------------------
  |  |  |  | 1150|  39.1k|  if (!(predicate)) {                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1150:7): [True: 3, False: 39.1k]
  |  |  |  |  ------------------
  |  |  |  | 1151|      3|    /*  ::raise(SIGINT);  */                           \
  |  |  |  | 1152|      3|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  | 1153|      3|    return ret;                                        \
  |  |  |  | 1154|      3|  }
  |  |  ------------------
  ------------------
 1276|  39.1k|  using WireType = internal::WireFormatLite::WireType;
 1277|  39.1k|  switch (tag & 7) {
 1278|  27.6k|    case WireType::WIRETYPE_VARINT: {
  ------------------
  |  Branch (1278:5): [True: 27.6k, False: 11.5k]
  ------------------
 1279|  27.6k|      uint64_t value;
 1280|  27.6k|      ptr = VarintParse(ptr, &value);
 1281|  27.6k|      GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
  ------------------
  |  | 1157|  27.6k|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  ------------------
  |  |  |  | 1150|  27.6k|  if (!(predicate)) {                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1150:7): [True: 0, False: 27.6k]
  |  |  |  |  ------------------
  |  |  |  | 1151|      0|    /*  ::raise(SIGINT);  */                           \
  |  |  |  | 1152|      0|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  | 1153|      0|    return ret;                                        \
  |  |  |  | 1154|      0|  }
  |  |  ------------------
  ------------------
 1282|  27.6k|      field_parser.AddVarint(number, value);
 1283|  27.6k|      break;
 1284|  27.6k|    }
 1285|  2.20k|    case WireType::WIRETYPE_FIXED64: {
  ------------------
  |  Branch (1285:5): [True: 2.20k, False: 36.9k]
  ------------------
 1286|  2.20k|      uint64_t value = UnalignedLoad<uint64_t>(ptr);
 1287|  2.20k|      ptr += 8;
 1288|  2.20k|      field_parser.AddFixed64(number, value);
 1289|  2.20k|      break;
 1290|  27.6k|    }
 1291|  6.62k|    case WireType::WIRETYPE_LENGTH_DELIMITED: {
  ------------------
  |  Branch (1291:5): [True: 6.62k, False: 32.5k]
  ------------------
 1292|  6.62k|      ptr = field_parser.ParseLengthDelimited(number, ptr, ctx);
 1293|  6.62k|      GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
  ------------------
  |  | 1157|  6.62k|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  ------------------
  |  |  |  | 1150|  6.62k|  if (!(predicate)) {                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1150:7): [True: 1, False: 6.62k]
  |  |  |  |  ------------------
  |  |  |  | 1151|      1|    /*  ::raise(SIGINT);  */                           \
  |  |  |  | 1152|      1|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  | 1153|      1|    return ret;                                        \
  |  |  |  | 1154|      1|  }
  |  |  ------------------
  ------------------
 1294|  6.62k|      break;
 1295|  6.62k|    }
 1296|  1.03k|    case WireType::WIRETYPE_START_GROUP: {
  ------------------
  |  Branch (1296:5): [True: 1.03k, False: 38.1k]
  ------------------
 1297|  1.03k|      ptr = field_parser.ParseGroup(number, ptr, ctx);
 1298|  1.03k|      GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
  ------------------
  |  | 1157|  1.03k|  GOOGLE_PROTOBUF_ASSERT_RETURN(predicate, nullptr)
  |  |  ------------------
  |  |  |  | 1150|  1.03k|  if (!(predicate)) {                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1150:7): [True: 6, False: 1.03k]
  |  |  |  |  ------------------
  |  |  |  | 1151|      6|    /*  ::raise(SIGINT);  */                           \
  |  |  |  | 1152|      6|    /*  ABSL_LOG(ERROR) << "Parse failure";  */        \
  |  |  |  | 1153|      6|    return ret;                                        \
  |  |  |  | 1154|      6|  }
  |  |  ------------------
  ------------------
 1299|  1.03k|      break;
 1300|  1.03k|    }
 1301|      0|    case WireType::WIRETYPE_END_GROUP: {
  ------------------
  |  Branch (1301:5): [True: 0, False: 39.1k]
  ------------------
 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|  1.66k|    case WireType::WIRETYPE_FIXED32: {
  ------------------
  |  Branch (1305:5): [True: 1.66k, False: 37.4k]
  ------------------
 1306|  1.66k|      uint32_t value = UnalignedLoad<uint32_t>(ptr);
 1307|  1.66k|      ptr += 4;
 1308|  1.66k|      field_parser.AddFixed32(number, value);
 1309|  1.66k|      break;
 1310|      0|    }
 1311|     15|    default:
  ------------------
  |  Branch (1311:5): [True: 15, False: 39.1k]
  ------------------
 1312|     15|      return nullptr;
 1313|  39.1k|  }
 1314|  39.1k|  return ptr;
 1315|  39.1k|}
_ZN6google8protobuf8internal12ParseContext17ParseGroupInlinedIZNS1_24UnknownFieldParserHelper10ParseGroupEjPKcPS2_EUlS6_E_EES6_S6_jRKT_:
 1108|  1.03k|                                const Func& func) {
 1109|  1.03k|  if (--depth_ < 0) return nullptr;
  ------------------
  |  Branch (1109:7): [True: 0, False: 1.03k]
  ------------------
 1110|  1.03k|  group_depth_++;
 1111|  1.03k|  auto old_depth = depth_;
 1112|  1.03k|  auto old_group_depth = group_depth_;
 1113|  1.03k|  PROTOBUF_ALWAYS_INLINE_CALL ptr = func(ptr);
  ------------------
  |  |  187|  1.03k|#define PROTOBUF_ALWAYS_INLINE_CALL [[clang::always_inline]]
  ------------------
 1114|  1.03k|  if (ptr != nullptr) {
  ------------------
  |  Branch (1114:7): [True: 1.03k, False: 3]
  ------------------
 1115|  1.03k|    ABSL_DCHECK_EQ(old_depth, depth_);
  ------------------
  |  |   74|  1.03k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  1.03k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  1.03k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 1.03k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  1.03k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1116|  1.03k|    ABSL_DCHECK_EQ(old_group_depth, group_depth_);
  ------------------
  |  |   74|  1.03k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  1.03k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  1.03k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 1.03k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  1.03k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1117|  1.03k|  }
 1118|  1.03k|  group_depth_--;
 1119|  1.03k|  depth_++;
 1120|  1.03k|  if (PROTOBUF_PREDICT_FALSE(!ConsumeEndGroup(start_tag))) return nullptr;
  ------------------
  |  |  365|  1.03k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 6, False: 1.03k]
  |  |  |  Branch (365:54): [Folded, False: 1.03k]
  |  |  |  Branch (365:63): [True: 6, False: 1.03k]
  |  |  ------------------
  ------------------
 1121|  1.03k|  return ptr;
 1122|  1.03k|}

_ZN6google8protobuf8internal16NoopDebugCounter3IncEv:
  440|  88.2k|  constexpr void Inc() {}
_ZN6google8protobuf8internal15AllocateAtLeastEm:
  129|  26.7k|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|  26.7k|  return {::operator new(size), size};
  137|  26.7k|}
_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.2k|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.2k|}
_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|   206k|  char* elements() const {
  151|   206k|    auto ret = reinterpret_cast<char*>(elements_int & kSooPtrMask);
  152|   206k|    ABSL_DCHECK_NE(ret, nullptr);
  ------------------
  |  |   76|   206k|  ABSL_LOG_INTERNAL_DCHECK_NE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   88|   206k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|   206k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 206k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|   206k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  153|   206k|    return ret;
  154|   206k|  }
_ZN6google8protobuf8internal11ShortSooRepC2EPNS0_5ArenaE:
  163|  8.15k|      : arena_and_size(reinterpret_cast<uintptr_t>(arena)) {
  164|  8.15k|    ABSL_DCHECK_EQ(size(), 0);
  ------------------
  |  |   74|  8.15k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  8.15k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  8.15k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 8.15k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  8.15k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  165|  8.15k|  }
_ZNK6google8protobuf8internal11ShortSooRep4sizeEv:
  167|  24.7k|  int size() const { return arena_and_size & kSooSizeMask; }
_ZNK6google8protobuf8internal11ShortSooRep6is_sooEv:
  168|   321k|  bool is_soo() const { return (arena_and_size & kNotSooBit) == 0; }
_ZN6google8protobuf8internal6SooRepC2EPNS0_5ArenaE:
  181|  8.15k|  explicit SooRep(Arena* arena) : short_rep(arena) {}
_ZNK6google8protobuf8internal6SooRep6is_sooEv:
  183|   321k|  bool is_soo() const {
  184|   321k|    static_assert(sizeof(LongSooRep) == sizeof(ShortSooRep), "");
  185|   321k|    static_assert(offsetof(SooRep, long_rep) == offsetof(SooRep, short_rep),
  186|   321k|                  "");
  187|   321k|    static_assert(offsetof(LongSooRep, elements_int) ==
  188|   321k|                      offsetof(ShortSooRep, arena_and_size),
  189|   321k|                  "");
  190|   321k|    return short_rep.is_soo();
  191|   321k|  }
_ZNK6google8protobuf8internal6SooRep9soo_arenaEv:
  192|  7.07k|  Arena* soo_arena() const {
  193|  7.07k|    ABSL_DCHECK(is_soo());
  ------------------
  |  |   47|  7.07k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  7.07k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  14.1k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  7.07k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  14.1k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  14.1k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 7.07k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  7.07k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 7.07k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  7.07k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 7.07k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  14.1k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  14.1k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  194|  7.07k|    return reinterpret_cast<Arena*>(short_rep.arena_and_size & kSooPtrMask);
  195|  7.07k|  }
_ZNK6google8protobuf8internal6SooRep4sizeEb:
  196|   138k|  int size(bool is_soo) const {
  197|   138k|    ABSL_DCHECK_EQ(is_soo, this->is_soo());
  ------------------
  |  |   74|   138k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|   138k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|   138k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 138k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|   138k|  ::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|   138k|    return is_soo ? short_rep.size() : long_rep.size;
  ------------------
  |  Branch (202:12): [True: 17.6k, False: 120k]
  ------------------
  203|       |#if !defined(__clang__) && defined(__GNUC__)
  204|       |#pragma GCC diagnostic pop
  205|       |#endif
  206|   138k|  }
_ZN6google8protobuf8internal6SooRep8set_sizeEbi:
  207|  46.3k|  void set_size(bool is_soo, int size) {
  208|  46.3k|    ABSL_DCHECK_EQ(is_soo, this->is_soo());
  ------------------
  |  |   74|  46.3k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  46.3k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  46.3k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 46.3k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  46.3k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  209|  46.3k|    if (is_soo) {
  ------------------
  |  Branch (209:9): [True: 91, False: 46.2k]
  ------------------
  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|  46.2k|    } else {
  214|  46.2k|      long_rep.size = size;
  215|  46.2k|    }
  216|  46.3k|  }
_ZN6google8protobuf8internal6SooRep11set_non_sooEbiPv:
  219|  13.4k|  void set_non_soo(bool was_soo, int capacity, void* elements) {
  220|  13.4k|    ABSL_DCHECK_EQ(was_soo, is_soo());
  ------------------
  |  |   74|  13.4k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  13.4k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  13.4k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 13.4k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  13.4k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  221|  13.4k|    ABSL_DCHECK_NE(elements, nullptr);
  ------------------
  |  |   76|  13.4k|  ABSL_LOG_INTERNAL_DCHECK_NE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   88|  13.4k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  13.4k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 13.4k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  13.4k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  222|  13.4k|    ABSL_DCHECK_EQ(reinterpret_cast<uintptr_t>(elements) % kSooPtrAlignment,
  ------------------
  |  |   74|  13.4k|  ABSL_LOG_INTERNAL_DCHECK_EQ_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   86|  13.4k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  13.4k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 13.4k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  13.4k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  223|  13.4k|                   uintptr_t{0});
  224|  13.4k|    if (was_soo) long_rep.size = short_rep.size();
  ------------------
  |  Branch (224:9): [True: 7.07k, False: 6.35k]
  ------------------
  225|  13.4k|    long_rep.capacity = capacity;
  226|  13.4k|    long_rep.elements_int = reinterpret_cast<uintptr_t>(elements) | kNotSooBit;
  227|  13.4k|  }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE19StaticValidityCheckEv:
  259|  16.2k|  static constexpr PROTOBUF_ALWAYS_INLINE void StaticValidityCheck() {
  260|  16.2k|    static_assert(
  261|  16.2k|        absl::disjunction<internal::is_supported_integral_type<Element>,
  262|  16.2k|                          internal::is_supported_floating_point_type<Element>,
  263|  16.2k|                          std::is_same<absl::Cord, Element>,
  264|  16.2k|                          std::is_same<UnknownField, Element>,
  265|  16.2k|                          is_proto_enum<Element>>::value,
  266|  16.2k|        "We only support non-string scalars in RepeatedField.");
  267|  16.2k|  }
_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|  89.2k|  void AnnotateSize(int old_size, int new_size) const {
  544|  89.2k|    if (old_size != new_size) {
  ------------------
  |  Branch (544:9): [True: 66.6k, False: 22.5k]
  ------------------
  545|  66.6k|      ABSL_ATTRIBUTE_UNUSED const bool is_soo = this->is_soo();
  ------------------
  |  |  557|  66.6k|#define ABSL_ATTRIBUTE_UNUSED __attribute__((__unused__))
  ------------------
  546|  66.6k|      ABSL_ATTRIBUTE_UNUSED const Element* elem = unsafe_elements(is_soo);
  ------------------
  |  |  557|  66.6k|#define ABSL_ATTRIBUTE_UNUSED __attribute__((__unused__))
  ------------------
  547|  66.6k|      ABSL_ANNOTATE_CONTIGUOUS_CONTAINER(elem, elem + Capacity(is_soo),
  548|  66.6k|                                         elem + old_size, elem + new_size);
  549|  66.6k|      if (new_size < old_size) {
  ------------------
  |  Branch (549:11): [True: 20.4k, False: 46.2k]
  ------------------
  550|  20.4k|        ABSL_ANNOTATE_MEMORY_IS_UNINITIALIZED(
  551|  20.4k|            elem + new_size, (old_size - new_size) * sizeof(Element));
  552|  20.4k|      }
  553|  66.6k|    }
  554|  89.2k|  }
_ZNK6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE6is_sooEv:
  476|   321k|  bool is_soo() const { return soo_rep_.is_soo(); }
_ZNK6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE15unsafe_elementsEb:
  596|  66.6k|  const Element* unsafe_elements(bool is_soo) const {
  597|  66.6k|    return const_cast<RepeatedField*>(this)->unsafe_elements(is_soo);
  598|  66.6k|  }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE15unsafe_elementsEb:
  592|   158k|  Element* unsafe_elements(bool is_soo) {
  593|   158k|    return is_soo ? reinterpret_cast<Element*>(soo_rep_.short_rep.data)
  ------------------
  |  Branch (593:12): [True: 0, False: 158k]
  ------------------
  594|   158k|                  : reinterpret_cast<Element*>(soo_rep_.long_rep.elements());
  595|   158k|  }
_ZNK6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE8GetArenaEb:
  472|  28.1k|  inline Arena* GetArena(bool is_soo) const {
  473|  28.1k|    return is_soo ? soo_rep_.soo_arena() : heap_rep()->arena;
  ------------------
  |  Branch (473:12): [True: 7.06k, False: 21.0k]
  ------------------
  474|  28.1k|  }
_ZNK6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE8heap_repEv:
  602|  47.9k|  HeapRep* heap_rep() const {
  603|  47.9k|    ABSL_DCHECK(!is_soo());
  ------------------
  |  |   47|  47.9k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  47.9k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  95.8k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  47.9k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  95.8k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  95.8k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 47.9k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  47.9k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 47.9k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  47.9k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 47.9k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  95.8k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  95.8k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  604|  47.9k|    return reinterpret_cast<HeapRep*>(soo_rep_.long_rep.elements() -
  605|  47.9k|                                      kHeapRepHeaderSize);
  606|  47.9k|  }
_ZNK6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE4sizeEb:
  477|   137k|  int size(bool is_soo) const { return soo_rep_.size(is_soo); }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE7DestroyEPKS2_S5_:
  518|  7.06k|  static void Destroy(const Element* begin, const Element* end) {
  519|  7.06k|    if (!std::is_trivial<Element>::value) {
  ------------------
  |  Branch (519:9): [Folded, False: 7.06k]
  ------------------
  520|      0|      std::for_each(begin, end, [&](const Element& e) { e.~Element(); });
  521|      0|    }
  522|  7.06k|  }
_ZNK6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE14UnpoisonBufferEv:
  557|  21.5k|  void UnpoisonBuffer() const {
  558|  21.5k|    AnnotateSize(size(), Capacity());
  559|  21.5k|    if (is_soo()) {
  ------------------
  |  Branch (559:9): [True: 8.11k, False: 13.4k]
  ------------------
  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|  8.11k|      PROTOBUF_UNPOISON_MEMORY_REGION(soo_rep_.short_rep.data,
  564|  8.11k|                                      sizeof(soo_rep_.short_rep.data));
  565|  8.11k|    }
  566|  21.5k|  }
_ZNK6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE8CapacityEv:
  743|  74.0k|inline int RepeatedField<Element>::Capacity() const {
  744|  74.0k|  return Capacity(is_soo());
  745|  74.0k|}
_ZNK6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE8CapacityEb:
  478|   100k|  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|   100k|    return is_soo ? kSooCapacityElements : soo_rep_.long_rep.capacity;
  ------------------
  |  Branch (483:12): [True: 22.2k, False: 78.6k]
  ------------------
  484|       |#if !defined(__clang__) && defined(__GNUC__)
  485|       |#pragma GCC diagnostic pop
  486|       |#endif
  487|   100k|  }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE18InternalDeallocateILb1EEEvv:
  610|  7.06k|  void InternalDeallocate() {
  611|  7.06k|    ABSL_DCHECK(!is_soo());
  ------------------
  |  |   47|  7.06k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  7.06k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  14.1k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  7.06k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  14.1k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  14.1k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 7.06k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  7.06k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 7.06k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  7.06k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 7.06k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  14.1k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  14.1k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  612|  7.06k|    const size_t bytes = Capacity(false) * sizeof(Element) + kHeapRepHeaderSize;
  613|  7.06k|    if (heap_rep()->arena == nullptr) {
  ------------------
  |  Branch (613:9): [True: 7.06k, False: 0]
  ------------------
  614|  7.06k|      internal::SizedDelete(heap_rep(), bytes);
  615|  7.06k|    } 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|  7.06k|  }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE8GetArenaEv:
  440|  28.1k|  inline Arena* GetArena() { return GetArena(is_soo()); }
_ZNK6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE5emptyEv:
  733|  8.72k|inline bool RepeatedField<Element>::empty() const {
  734|  8.72k|  return size() == 0;
  735|  8.72k|}
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE4GrowEbii:
 1240|  13.4k|                                                    int new_size) {
 1241|  13.4k|  UnpoisonBuffer();
 1242|  13.4k|  GrowNoAnnotate(was_soo, old_size, new_size);
 1243|  13.4k|  AnnotateSize(Capacity(), old_size);
 1244|  13.4k|}
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE14GrowNoAnnotateEbii:
 1184|  13.4k|                                                              int new_size) {
 1185|  13.4k|  const int old_capacity = Capacity(was_soo);
 1186|  13.4k|  ABSL_DCHECK_GT(new_size, old_capacity);
  ------------------
  |  |   84|  13.4k|  ABSL_LOG_INTERNAL_DCHECK_GT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   96|  13.4k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  13.4k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 13.4k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  13.4k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1187|  13.4k|  HeapRep* new_rep;
 1188|  13.4k|  Arena* arena = GetArena();
 1189|       |
 1190|  13.4k|  new_size = internal::CalculateReserveSize<Element, kHeapRepHeaderSize>(
 1191|  13.4k|      old_capacity, new_size);
 1192|       |
 1193|  13.4k|  ABSL_DCHECK_LE(static_cast<size_t>(new_size),
  ------------------
  |  |   78|      0|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|  13.4k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  13.4k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 13.4k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  13.4k|  ::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|  13.4k|  size_t bytes =
 1198|  13.4k|      kHeapRepHeaderSize + sizeof(Element) * static_cast<size_t>(new_size);
 1199|  13.4k|  if (arena == nullptr) {
  ------------------
  |  Branch (1199:7): [True: 13.4k, False: 0]
  ------------------
 1200|  13.4k|    ABSL_DCHECK_LE((bytes - kHeapRepHeaderSize) / sizeof(Element),
  ------------------
  |  |   78|      0|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|  13.4k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  13.4k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 13.4k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  13.4k|  ::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|  13.4k|    internal::SizedPtr res = internal::AllocateAtLeast(bytes);
 1204|  13.4k|    size_t num_available =
 1205|  13.4k|        std::min((res.n - kHeapRepHeaderSize) / sizeof(Element),
 1206|  13.4k|                 static_cast<size_t>(std::numeric_limits<int>::max()));
 1207|  13.4k|    new_size = static_cast<int>(num_available);
 1208|  13.4k|    new_rep = static_cast<HeapRep*>(res.p);
 1209|  13.4k|  } else {
 1210|      0|    new_rep =
 1211|      0|        reinterpret_cast<HeapRep*>(Arena::CreateArray<char>(arena, bytes));
 1212|      0|  }
 1213|  13.4k|  new_rep->arena = arena;
 1214|       |
 1215|  13.4k|  if (old_size > 0) {
  ------------------
  |  Branch (1215:7): [True: 6.35k, False: 7.06k]
  ------------------
 1216|  6.35k|    Element* pnew = static_cast<Element*>(new_rep->elements());
 1217|  6.35k|    Element* pold = elements(was_soo);
 1218|       |    // TODO: add absl::is_trivially_relocatable<Element>
 1219|  6.35k|    if (std::is_trivial<Element>::value) {
  ------------------
  |  Branch (1219:9): [True: 6.35k, Folded]
  ------------------
 1220|  6.35k|      memcpy(static_cast<void*>(pnew), pold, old_size * sizeof(Element));
 1221|  6.35k|    } 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|  6.35k|  }
 1228|  13.4k|  if (!was_soo) InternalDeallocate();
  ------------------
  |  Branch (1228:7): [True: 6.35k, False: 7.06k]
  ------------------
 1229|       |
 1230|  13.4k|  soo_rep_.set_non_soo(was_soo, new_size, new_rep->elements());
 1231|  13.4k|}
_ZN6google8protobuf8internal20CalculateReserveSizeINS0_12UnknownFieldELi16EEEiii:
 1142|  13.4k|inline int CalculateReserveSize(int capacity, int new_size) {
 1143|  13.4k|  constexpr int lower_limit =
 1144|  13.4k|      RepeatedFieldLowerClampLimit<T, kHeapRepHeaderSize>();
 1145|  13.4k|  if (new_size < lower_limit) {
  ------------------
  |  Branch (1145:7): [True: 0, False: 13.4k]
  ------------------
 1146|       |    // Clamp to smallest allowed size.
 1147|      0|    return lower_limit;
 1148|      0|  }
 1149|  13.4k|  constexpr int kMaxSizeBeforeClamp =
 1150|  13.4k|      (std::numeric_limits<int>::max() - kHeapRepHeaderSize) / 2;
 1151|  13.4k|  if (PROTOBUF_PREDICT_FALSE(capacity > kMaxSizeBeforeClamp)) {
  ------------------
  |  |  365|  13.4k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 13.4k]
  |  |  |  Branch (365:54): [Folded, False: 13.4k]
  |  |  |  Branch (365:63): [True: 0, False: 13.4k]
  |  |  ------------------
  ------------------
 1152|      0|    return std::numeric_limits<int>::max();
 1153|      0|  }
 1154|  13.4k|  constexpr int kSooCapacityElements = SooCapacityElements(sizeof(T));
 1155|  13.4k|  if (kSooCapacityElements > 0 && kSooCapacityElements < lower_limit) {
  ------------------
  |  Branch (1155:7): [Folded, False: 13.4k]
  |  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|  13.4k|  } else {
 1160|  26.8k|    ABSL_DCHECK(capacity == 0 || capacity >= lower_limit)
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  13.4k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  13.4k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  26.8k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  26.8k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 13.4k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  13.4k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 13.4k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  13.4k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 13.4k, 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|  13.4k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|  13.4k|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1161|  26.8k|        << capacity << " " << lower_limit;
 1162|  13.4k|  }
 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|  13.4k|  int doubled_size = 2 * capacity + kHeapRepHeaderSize / sizeof(T);
 1167|  13.4k|  return std::max(doubled_size, new_size);
 1168|  13.4k|}
_ZN6google8protobuf8internal7HeapRepILm16EE8elementsEv:
  107|  19.7k|  void* elements() { return this + 1; }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE18InternalDeallocateILb0EEEvv:
  610|  6.35k|  void InternalDeallocate() {
  611|  6.35k|    ABSL_DCHECK(!is_soo());
  ------------------
  |  |   47|  6.35k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  6.35k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  12.7k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  6.35k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  12.7k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  12.7k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 6.35k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  6.35k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 6.35k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  6.35k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 6.35k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  12.7k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  12.7k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  612|  6.35k|    const size_t bytes = Capacity(false) * sizeof(Element) + kHeapRepHeaderSize;
  613|  6.35k|    if (heap_rep()->arena == nullptr) {
  ------------------
  |  Branch (613:9): [True: 6.35k, False: 0]
  ------------------
  614|  6.35k|      internal::SizedDelete(heap_rep(), bytes);
  615|  6.35k|    } 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|  6.35k|  }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE8elementsEb:
  581|  45.4k|  Element* elements(bool is_soo) {
  582|  45.4k|    ABSL_DCHECK_GT(Capacity(is_soo), 0);
  ------------------
  |  |   84|  45.4k|  ABSL_LOG_INTERNAL_DCHECK_GT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   96|  45.4k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  45.4k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 45.4k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  45.4k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  583|  45.4k|    return unsafe_elements(is_soo);
  584|  45.4k|  }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE19ExchangeCurrentSizeEbi:
  572|  46.2k|  inline int ExchangeCurrentSize(bool is_soo, int new_size) {
  573|  46.2k|    const int prev_size = size(is_soo);
  574|  46.2k|    AnnotateSize(prev_size, new_size);
  575|  46.2k|    set_size(is_soo, new_size);
  576|  46.2k|    return prev_size;
  577|  46.2k|  }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE8set_sizeEbi:
  488|  46.2k|  void set_size(bool is_soo, int size) {
  489|  46.2k|    ABSL_DCHECK_LE(size, Capacity(is_soo));
  ------------------
  |  |   78|  46.2k|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|  46.2k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  46.2k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 46.2k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  46.2k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  490|  46.2k|    soo_rep_.set_size(is_soo, size);
  491|  46.2k|  }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE5ClearEv:
  984|  7.06k|inline void RepeatedField<Element>::Clear() {
  985|  7.06k|  const bool is_soo = this->is_soo();
  986|  7.06k|  Element* elem = unsafe_elements(is_soo);
  987|  7.06k|  Destroy(elem, elem + size(is_soo));
  988|  7.06k|  ExchangeCurrentSize(is_soo, 0);
  989|  7.06k|}
_ZNK6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE4sizeEv:
  738|  37.3k|inline int RepeatedField<Element>::size() const {
  739|  37.3k|  return size(is_soo());
  740|  37.3k|}
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEEixEi:
  319|  39.1k|  reference operator[](int index) ABSL_ATTRIBUTE_LIFETIME_BOUND {
  320|  39.1k|    return *Mutable(index);
  321|  39.1k|  }
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE7MutableEi:
  829|  39.1k|    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  830|  39.1k|  ABSL_DCHECK_GE(index, 0);
  ------------------
  |  |   82|  39.1k|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|  39.1k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  39.1k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 39.1k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  39.1k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  831|  39.1k|  ABSL_DCHECK_LT(index, size());
  ------------------
  |  |   80|  39.1k|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|  39.1k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  39.1k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 39.1k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  39.1k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  832|  39.1k|  return &elements(is_soo())[index];
  833|  39.1k|}
_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|  13.4k|inline int CalculateReserveSize(int capacity, int new_size) {
 1143|  13.4k|  constexpr int lower_limit =
 1144|  13.4k|      RepeatedFieldLowerClampLimit<T, kHeapRepHeaderSize>();
 1145|  13.4k|  if (new_size < lower_limit) {
  ------------------
  |  Branch (1145:7): [True: 0, False: 13.4k]
  ------------------
 1146|       |    // Clamp to smallest allowed size.
 1147|      0|    return lower_limit;
 1148|      0|  }
 1149|  13.4k|  constexpr int kMaxSizeBeforeClamp =
 1150|  13.4k|      (std::numeric_limits<int>::max() - kHeapRepHeaderSize) / 2;
 1151|  13.4k|  if (PROTOBUF_PREDICT_FALSE(capacity > kMaxSizeBeforeClamp)) {
  ------------------
  |  |  365|  13.4k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 13.4k]
  |  |  |  Branch (365:54): [Folded, False: 13.4k]
  |  |  |  Branch (365:63): [True: 0, False: 13.4k]
  |  |  ------------------
  ------------------
 1152|      0|    return std::numeric_limits<int>::max();
 1153|      0|  }
 1154|  13.4k|  constexpr int kSooCapacityElements = SooCapacityElements(sizeof(T));
 1155|  13.4k|  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|  13.4k|  } else {
 1160|  26.8k|    ABSL_DCHECK(capacity == 0 || capacity >= lower_limit)
  ------------------
  |  |   47|      0|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  13.4k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|      0|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  13.4k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  26.8k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  26.8k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 13.4k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  13.4k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 13.4k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  13.4k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 13.4k, 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|  13.4k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|  13.4k|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1161|  26.8k|        << capacity << " " << lower_limit;
 1162|  13.4k|  }
 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|  13.4k|  int doubled_size = 2 * capacity + kHeapRepHeaderSize / sizeof(T);
 1167|  13.4k|  return std::max(doubled_size, new_size);
 1168|  13.4k|}
_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|  8.11k|RepeatedField<Element>::~RepeatedField() {
  681|  8.11k|  StaticValidityCheck();
  682|  8.11k|  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|  8.11k|  const int size = this->size(is_soo);
  690|  8.11k|  if (size > 0) {
  ------------------
  |  Branch (690:7): [True: 0, False: 8.11k]
  ------------------
  691|      0|    Element* elem = unsafe_elements(is_soo);
  692|      0|    Destroy(elem, elem + size);
  693|      0|  }
  694|  8.11k|  UnpoisonBuffer();
  695|  8.11k|  if (!is_soo) InternalDeallocate<true>();
  ------------------
  |  Branch (695:7): [True: 7.06k, False: 1.04k]
  ------------------
  696|  8.11k|}
_ZN6google8protobuf13RepeatedFieldIiEC2ENS0_8internal18InternalVisibilityEPNS0_5ArenaE:
  295|     37|      : RepeatedField(arena) {}
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEEC2EPNS0_5ArenaE:
  648|  8.11k|inline RepeatedField<Element>::RepeatedField(Arena* arena) : soo_rep_(arena) {
  649|  8.11k|  StaticValidityCheck();
  650|  8.11k|  AnnotateSize(kSooCapacityElements, 0);
  651|  8.11k|}
_ZN6google8protobuf13RepeatedFieldINS0_12UnknownFieldEE3AddEv:
  869|  39.1k|inline Element* RepeatedField<Element>::Add() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  870|  39.1k|  bool is_soo = this->is_soo();
  871|  39.1k|  const int old_size = size(is_soo);
  872|  39.1k|  if (ABSL_PREDICT_FALSE(old_size == Capacity())) {
  ------------------
  |  |  178|  39.1k|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 13.4k, False: 25.7k]
  |  |  |  Branch (178:49): [Folded, False: 39.1k]
  |  |  |  Branch (178:58): [True: 13.4k, False: 25.7k]
  |  |  ------------------
  ------------------
  873|  13.4k|    Grow(is_soo, old_size, old_size + 1);
  874|  13.4k|    is_soo = false;
  875|  13.4k|  }
  876|  39.1k|  void* p = unsafe_elements(is_soo) + ExchangeCurrentSize(is_soo, old_size + 1);
  877|  39.1k|  return ::new (p) Element;
  878|  39.1k|}

_ZN6google8protobuf8internal20RepeatedPtrFieldBase14InternalExtendEi:
   36|  13.4k|void** RepeatedPtrFieldBase::InternalExtend(int extend_amount) {
   37|  13.4k|  ABSL_DCHECK(extend_amount > 0);
  ------------------
  |  |   47|  13.4k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  13.4k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  26.8k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  13.4k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  26.8k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  26.8k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 13.4k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  13.4k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 13.4k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  13.4k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 13.4k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  26.8k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  26.8k|  ABSL_LOG_INTERNAL_CHECK(condition_text).InternalStream()
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   66|      0|  ::absl::log_internal::LogMessageFatal(__FILE__, __LINE__, failure_message)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   38|  13.4k|  constexpr size_t kPtrSize = sizeof(rep()->elements[0]);
   39|  13.4k|  constexpr size_t kMaxSize = std::numeric_limits<size_t>::max();
   40|  13.4k|  constexpr size_t kMaxCapacity = (kMaxSize - kRepHeaderSize) / kPtrSize;
   41|  13.4k|  const int old_capacity = Capacity();
   42|  13.4k|  Arena* arena = GetArena();
   43|  13.4k|  Rep* new_rep = nullptr;
   44|  13.4k|  {
   45|  13.4k|    int new_capacity = internal::CalculateReserveSize<void*, kRepHeaderSize>(
   46|  13.4k|        old_capacity, old_capacity + extend_amount);
   47|  13.4k|    ABSL_DCHECK_LE(new_capacity, kMaxCapacity)
  ------------------
  |  |   78|      0|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|  13.4k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  13.4k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 13.4k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  13.4k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   48|      0|        << "New capacity is too large to fit into internal representation";
   49|  13.4k|    const size_t new_size = kRepHeaderSize + kPtrSize * new_capacity;
   50|  13.4k|    if (arena == nullptr) {
  ------------------
  |  Branch (50:9): [True: 13.2k, False: 128]
  ------------------
   51|  13.2k|      const internal::SizedPtr alloc = internal::AllocateAtLeast(new_size);
   52|  13.2k|      new_capacity = static_cast<int>((alloc.n - kRepHeaderSize) / kPtrSize);
   53|  13.2k|      new_rep = reinterpret_cast<Rep*>(alloc.p);
   54|  13.2k|    } else {
   55|    128|      auto* alloc = Arena::CreateArray<char>(arena, new_size);
   56|    128|      new_rep = reinterpret_cast<Rep*>(alloc);
   57|    128|    }
   58|  13.4k|    capacity_proxy_ = new_capacity - kSSOCapacity;
   59|  13.4k|  }
   60|       |
   61|  13.4k|  if (using_sso()) {
  ------------------
  |  Branch (61:7): [True: 8.32k, False: 5.09k]
  ------------------
   62|  8.32k|    new_rep->allocated_size = tagged_rep_or_elem_ != nullptr ? 1 : 0;
  ------------------
  |  Branch (62:31): [True: 8.32k, False: 0]
  ------------------
   63|  8.32k|    new_rep->elements[0] = tagged_rep_or_elem_;
   64|  8.32k|  } else {
   65|  5.09k|    Rep* old_rep = rep();
   66|  5.09k|    memcpy(new_rep, old_rep,
   67|  5.09k|           old_rep->allocated_size * kPtrSize + kRepHeaderSize);
   68|  5.09k|    size_t old_size = old_capacity * kPtrSize + kRepHeaderSize;
   69|  5.09k|    if (arena == nullptr) {
  ------------------
  |  Branch (69:9): [True: 5.04k, False: 49]
  ------------------
   70|  5.04k|      internal::SizedDelete(old_rep, old_size);
   71|  5.04k|    } else {
   72|     49|      arena->ReturnArrayMemory(old_rep, old_size);
   73|     49|    }
   74|  5.09k|  }
   75|       |
   76|  13.4k|  tagged_rep_or_elem_ =
   77|  13.4k|      reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(new_rep) + 1);
   78|       |
   79|  13.4k|  return &new_rep->elements[current_size_];
   80|  13.4k|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase13DestroyProtosEv:
   89|  11.1k|void RepeatedPtrFieldBase::DestroyProtos() {
   90|  11.1k|  PROTOBUF_ALWAYS_INLINE_CALL Destroy<GenericTypeHandler<MessageLite>>();
  ------------------
  |  |  187|  11.1k|#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|  11.1k|  tagged_rep_or_elem_ = nullptr;
   95|  11.1k|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase9AddStringEv:
  101|  14.6k|void* RepeatedPtrFieldBase::AddString() {
  102|  14.6k|  return AddInternal([](Arena* arena) { return NewStringElement(arena); });
  103|  14.6k|}
_ZN6google8protobuf8internal16NewStringElementEPNS0_5ArenaE:
  231|  14.6k|void* NewStringElement(Arena* arena) {
  232|  14.6k|  return Arena::Create<std::string>(arena);
  233|  14.6k|}
repeated_ptr_field.cc:_ZZN6google8protobuf8internal20RepeatedPtrFieldBase9AddStringEvENK3$_0clEPNS0_5ArenaE:
  102|  14.6k|  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|  68.9k|  inline bool SizeAtCapacity() const {
  606|       |    // Harden invariant size() <= allocated_size() <= Capacity().
  607|  68.9k|    ABSL_DCHECK_LE(size(), allocated_size());
  ------------------
  |  |   78|  68.9k|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|  68.9k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  68.9k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 68.9k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  68.9k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  608|  68.9k|    ABSL_DCHECK_LE(allocated_size(), Capacity());
  ------------------
  |  |   78|  68.9k|  ABSL_LOG_INTERNAL_DCHECK_LE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   90|  68.9k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  68.9k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 68.9k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  68.9k|  ::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|  68.9k|    return current_size_ >= Capacity();
  614|  68.9k|  }
_ZN6google8protobuf16RepeatedPtrFieldINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE3AddEv:
 1370|  14.6k|inline Element* RepeatedPtrField<Element>::Add() ABSL_ATTRIBUTE_LIFETIME_BOUND {
 1371|  14.6k|  return RepeatedPtrFieldBase::Add<TypeHandler>();
 1372|  14.6k|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase3AddINS1_18GenericTypeHandlerINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEEEEPNT_4TypeEv:
  194|  14.6k|  Value<TypeHandler>* Add() {
  195|  14.6k|    if (std::is_same<Value<TypeHandler>, std::string>{}) {
  ------------------
  |  Branch (195:9): [True: 14.6k, Folded]
  ------------------
  196|  14.6k|      return cast<TypeHandler>(AddString());
  197|  14.6k|    }
  198|      0|    return cast<TypeHandler>(AddMessageLite(TypeHandler::GetNewFunc()));
  199|  14.6k|  }
_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|  5.06k|inline Arena* RepeatedPtrField<Element>::GetArena() {
 1542|  5.06k|  return RepeatedPtrFieldBase::GetArena();
 1543|  5.06k|}
_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.2k|void* RepeatedPtrFieldBase::AddInternal(Factory factory) {
  780|  78.2k|  Arena* const arena = GetArena();
  781|  78.2k|  if (tagged_rep_or_elem_ == nullptr) {
  ------------------
  |  Branch (781:7): [True: 11.3k, False: 66.9k]
  ------------------
  782|  11.3k|    ExchangeCurrentSize(1);
  783|  11.3k|    tagged_rep_or_elem_ = factory(arena);
  784|  11.3k|    return tagged_rep_or_elem_;
  785|  11.3k|  }
  786|  66.9k|  absl::PrefetchToLocalCache(tagged_rep_or_elem_);
  787|  66.9k|  if (using_sso()) {
  ------------------
  |  Branch (787:7): [True: 5.66k, False: 61.3k]
  ------------------
  788|  5.66k|    if (current_size_ == 0) {
  ------------------
  |  Branch (788:9): [True: 0, False: 5.66k]
  ------------------
  789|      0|      ExchangeCurrentSize(1);
  790|      0|      return tagged_rep_or_elem_;
  791|      0|    }
  792|  5.66k|    void*& result = *InternalExtend(1);
  793|  5.66k|    result = factory(arena);
  794|  5.66k|    Rep* r = rep();
  795|  5.66k|    r->allocated_size = 2;
  796|  5.66k|    ExchangeCurrentSize(2);
  797|  5.66k|    return result;
  798|  5.66k|  }
  799|  61.3k|  Rep* r = rep();
  800|  61.3k|  if (PROTOBUF_PREDICT_FALSE(SizeAtCapacity())) {
  ------------------
  |  |  365|  61.3k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 3.34k, False: 57.9k]
  |  |  |  Branch (365:54): [Folded, False: 61.3k]
  |  |  |  Branch (365:63): [True: 3.34k, False: 57.9k]
  |  |  ------------------
  ------------------
  801|  3.34k|    InternalExtend(1);
  802|  3.34k|    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|  61.3k|  ++r->allocated_size;
  809|  61.3k|  void*& result = r->elements[ExchangeCurrentSize(current_size_ + 1)];
  810|  61.3k|  result = factory(arena);
  811|  61.3k|  return result;
  812|  61.3k|}
_ZN6google8protobuf8internal20RepeatedPtrFieldBase7DestroyINS1_18GenericTypeHandlerINS0_11MessageLiteEEEEEvv:
  220|  11.1k|  void Destroy() {
  221|  11.1k|    ABSL_DCHECK(NeedsDestroy());
  ------------------
  |  |   47|  11.1k|  ABSL_LOG_INTERNAL_DCHECK_IMPL((condition), #condition)
  |  |  ------------------
  |  |  |  |   43|  11.1k|  ABSL_LOG_INTERNAL_CHECK_IMPL(true || (condition), "true")
  |  |  |  |  ------------------
  |  |  |  |  |  |   26|  22.3k|  ABSL_LOG_INTERNAL_CONDITION_FATAL(STATELESS,                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  172|  11.1k|  ABSL_LOG_INTERNAL_##type##_CONDITION(condition)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   65|  22.3k|  switch (0)                                             \
  |  |  |  |  |  |  |  |  |  |   66|  22.3k|  case 0:                                                \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (66:3): [True: 11.1k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   67|  11.1k|  default:                                               \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (67:3): [True: 0, False: 11.1k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   68|  11.1k|    !(condition) ? (void)0 : ::absl::log_internal::Voidify()&&
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:5): [True: 11.1k, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  Branch (68:7): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  22.3k|                                    ABSL_PREDICT_FALSE(!(condition))) \
  |  |  |  |  |  |   28|  22.3k|  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|  11.1k|    if (PROTOBUF_PREDICT_FALSE(arena_ != nullptr)) return;
  ------------------
  |  |  365|  11.1k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 11.1k]
  |  |  |  Branch (365:54): [Folded, False: 11.1k]
  |  |  |  Branch (365:63): [True: 0, False: 11.1k]
  |  |  ------------------
  ------------------
  226|       |
  227|  11.1k|    using H = CommonHandler<TypeHandler>;
  228|  11.1k|    int n = allocated_size();
  229|  11.1k|    void** elems = elements();
  230|  89.0k|    for (int i = 0; i < n; i++) {
  ------------------
  |  Branch (230:21): [True: 77.8k, False: 11.1k]
  ------------------
  231|  77.8k|      Delete<H>(elems[i], nullptr);
  232|  77.8k|    }
  233|  11.1k|    if (!using_sso()) {
  ------------------
  |  Branch (233:9): [True: 5.57k, False: 5.60k]
  ------------------
  234|  5.57k|      internal::SizedDelete(rep(),
  235|  5.57k|                            Capacity() * sizeof(elems[0]) + kRepHeaderSize);
  236|  5.57k|    }
  237|  11.1k|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase6DeleteINS1_18GenericTypeHandlerINS0_11MessageLiteEEEEEvPvPNS0_5ArenaE:
  669|  77.8k|  static inline void Delete(void* obj, Arena* arena) {
  670|  77.8k|    TypeHandler::Delete(cast<TypeHandler>(obj), arena);
  671|  77.8k|  }
_ZN6google8protobuf8internal18GenericTypeHandlerINS0_11MessageLiteEE6DeleteEPS3_PNS0_5ArenaE:
  837|  77.8k|  static inline void Delete(Type* value, Arena* arena) {
  838|  77.8k|    if (arena != nullptr) return;
  ------------------
  |  Branch (838:9): [True: 0, False: 77.8k]
  ------------------
  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|  77.8k|    delete value;
  849|  77.8k|#endif
  850|  77.8k|  }
repeated_ptr_field.cc:_ZN6google8protobuf8internal20RepeatedPtrFieldBase11AddInternalIZNS2_9AddStringEvE3$_0EEPvT_:
  779|  14.6k|void* RepeatedPtrFieldBase::AddInternal(Factory factory) {
  780|  14.6k|  Arena* const arena = GetArena();
  781|  14.6k|  if (tagged_rep_or_elem_ == nullptr) {
  ------------------
  |  Branch (781:7): [True: 4.34k, False: 10.2k]
  ------------------
  782|  4.34k|    ExchangeCurrentSize(1);
  783|  4.34k|    tagged_rep_or_elem_ = factory(arena);
  784|  4.34k|    return tagged_rep_or_elem_;
  785|  4.34k|  }
  786|  10.2k|  absl::PrefetchToLocalCache(tagged_rep_or_elem_);
  787|  10.2k|  if (using_sso()) {
  ------------------
  |  Branch (787:7): [True: 2.66k, False: 7.62k]
  ------------------
  788|  2.66k|    if (current_size_ == 0) {
  ------------------
  |  Branch (788:9): [True: 0, False: 2.66k]
  ------------------
  789|      0|      ExchangeCurrentSize(1);
  790|      0|      return tagged_rep_or_elem_;
  791|      0|    }
  792|  2.66k|    void*& result = *InternalExtend(1);
  793|  2.66k|    result = factory(arena);
  794|  2.66k|    Rep* r = rep();
  795|  2.66k|    r->allocated_size = 2;
  796|  2.66k|    ExchangeCurrentSize(2);
  797|  2.66k|    return result;
  798|  2.66k|  }
  799|  7.62k|  Rep* r = rep();
  800|  7.62k|  if (PROTOBUF_PREDICT_FALSE(SizeAtCapacity())) {
  ------------------
  |  |  365|  7.62k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 1.75k, False: 5.87k]
  |  |  |  Branch (365:54): [Folded, False: 7.62k]
  |  |  |  Branch (365:63): [True: 1.75k, False: 5.87k]
  |  |  ------------------
  ------------------
  801|  1.75k|    InternalExtend(1);
  802|  1.75k|    r = rep();
  803|  5.87k|  } else {
  804|  5.87k|    if (current_size_ != r->allocated_size) {
  ------------------
  |  Branch (804:9): [True: 0, False: 5.87k]
  ------------------
  805|      0|      return r->elements[ExchangeCurrentSize(current_size_ + 1)];
  806|      0|    }
  807|  5.87k|  }
  808|  7.62k|  ++r->allocated_size;
  809|  7.62k|  void*& result = r->elements[ExchangeCurrentSize(current_size_ + 1)];
  810|  7.62k|  result = factory(arena);
  811|  7.62k|  return result;
  812|  7.62k|}
_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|  73.6k|  static inline Value<TypeHandler>* cast(void* element) {
  662|  73.6k|    return reinterpret_cast<Value<TypeHandler>*>(element);
  663|  73.6k|  }
_ZNK6google8protobuf8internal20RepeatedPtrFieldBase3GetINS1_18GenericTypeHandlerINS0_7MessageEEEEERKNT_4TypeEi:
  252|  73.6k|  const Value<TypeHandler>& Get(int index) const {
  253|  73.6k|    ABSL_DCHECK_GE(index, 0);
  ------------------
  |  |   82|  73.6k|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|  73.6k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  73.6k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 73.6k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  73.6k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  254|  73.6k|    ABSL_DCHECK_LT(index, current_size_);
  ------------------
  |  |   80|  73.6k|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|  73.6k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  73.6k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 73.6k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  73.6k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  255|  73.6k|    return *cast<TypeHandler>(element_at(index));
  256|  73.6k|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase4castINS1_18GenericTypeHandlerINS0_7MessageEEEEEPKNT_4TypeEPKv:
  665|  73.6k|  static inline const Value<TypeHandler>* cast(const void* element) {
  666|  73.6k|    return reinterpret_cast<const Value<TypeHandler>*>(element);
  667|  73.6k|  }
_ZN6google8protobuf8internal20RepeatedPtrFieldBase7MutableINS1_18GenericTypeHandlerINS0_7MessageEEEEEPNT_4TypeEi:
  187|  73.6k|  Value<TypeHandler>* Mutable(int index) {
  188|  73.6k|    ABSL_DCHECK_GE(index, 0);
  ------------------
  |  |   82|  73.6k|  ABSL_LOG_INTERNAL_DCHECK_GE_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   94|  73.6k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  73.6k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 73.6k]
  |  |  |  |  |  |  |  Branch (56:19): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  73.6k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  189|  73.6k|    ABSL_DCHECK_LT(index, current_size_);
  ------------------
  |  |   80|  73.6k|  ABSL_LOG_INTERNAL_DCHECK_LT_IMPL((val1), #val1, (val2), #val2)
  |  |  ------------------
  |  |  |  |   92|  73.6k|  ABSL_LOG_INTERNAL_DCHECK_NOP(val1, val2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  73.6k|  while (false && ((void)(x), (void)(y), 0)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [Folded, False: 73.6k]
  |  |  |  |  |  |  |  Branch (56:19): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  73.6k|  ::absl::log_internal::NullStream().InternalStream()
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  190|  73.6k|    return cast<TypeHandler>(element_at(index));
  191|  73.6k|  }

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

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

_ZN6google8protobuf8internal19ShiftMixParseVarintIjLi10EEEPKcS4_Rl:
   53|  81.7k|                                                              int64_t& res1) {
   54|  81.7k|  using Signed = std::make_signed_t<VarintType>;
   55|  81.7k|  constexpr bool kIs64BitVarint = std::is_same<Signed, int64_t>::value;
   56|  81.7k|  constexpr bool kIs32BitVarint = std::is_same<Signed, int32_t>::value;
   57|  81.7k|  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|  81.7k|  const auto next = [&p] { return static_cast<const int8_t>(*p++); };
   78|  81.7k|  const auto last = [&p] { return static_cast<const int8_t>(p[-1]); };
   79|       |
   80|  81.7k|  int64_t res2, res3;  // accumulated result chunks
   81|  81.7k|  res1 = next();
   82|  81.7k|  if (PROTOBUF_PREDICT_TRUE(res1 >= 0)) return p;
  ------------------
  |  |  364|  81.7k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 51.9k, False: 29.8k]
  |  |  |  Branch (364:53): [Folded, False: 81.7k]
  |  |  |  Branch (364:62): [True: 51.9k, False: 29.8k]
  |  |  ------------------
  ------------------
   83|  29.8k|  if (limit <= 1) goto limit0;
  ------------------
  |  Branch (83:7): [Folded, False: 29.8k]
  ------------------
   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|  29.8k|  if (PROTOBUF_PREDICT_FALSE(VarintShl<1>(next(), res1, res2))) goto done1;
  ------------------
  |  |  365|  29.8k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 26.4k, False: 3.37k]
  |  |  |  Branch (365:54): [Folded, False: 29.8k]
  |  |  |  Branch (365:63): [True: 26.4k, False: 3.37k]
  |  |  ------------------
  ------------------
   88|  3.37k|  if (limit <= 2) goto limit1;
  ------------------
  |  Branch (88:7): [Folded, False: 3.37k]
  ------------------
   89|  3.37k|  if (PROTOBUF_PREDICT_FALSE(VarintShl<2>(next(), res1, res3))) goto done2;
  ------------------
  |  |  365|  3.37k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 1.70k, False: 1.66k]
  |  |  |  Branch (365:54): [Folded, False: 3.37k]
  |  |  |  Branch (365:63): [True: 1.70k, False: 1.66k]
  |  |  ------------------
  ------------------
   90|  1.66k|  if (limit <= 3) goto limit2;
  ------------------
  |  Branch (90:7): [Folded, False: 1.66k]
  ------------------
   91|  1.66k|  if (PROTOBUF_PREDICT_FALSE(VarintShlAnd<3>(next(), res1, res2))) goto done2;
  ------------------
  |  |  365|  1.66k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 618, False: 1.05k]
  |  |  |  Branch (365:54): [Folded, False: 1.66k]
  |  |  |  Branch (365:63): [True: 618, False: 1.05k]
  |  |  ------------------
  ------------------
   92|  1.05k|  if (limit <= 4) goto limit2;
  ------------------
  |  Branch (92:7): [Folded, False: 1.05k]
  ------------------
   93|  1.05k|  if (PROTOBUF_PREDICT_TRUE(VarintShlAnd<4>(next(), res1, res3))) goto done2;
  ------------------
  |  |  364|  1.05k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 1.03k, False: 19]
  |  |  |  Branch (364:53): [Folded, False: 1.05k]
  |  |  |  Branch (364:62): [True: 1.03k, False: 19]
  |  |  ------------------
  ------------------
   94|     19|  if (limit <= 5) goto limit2;
  ------------------
  |  Branch (94:7): [Folded, False: 19]
  ------------------
   95|       |
   96|     19|  if (kIs64BitVarint) {
  ------------------
  |  Branch (96:7): [Folded, False: 19]
  ------------------
   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|     19|  } else {
  106|       |    // An overlong int32 is expected to span the full 10 bytes
  107|     19|    if (PROTOBUF_PREDICT_FALSE(!(next() & 0x80))) goto done2;
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  108|     19|    if (limit <= 6) goto limit2;
  ------------------
  |  Branch (108:9): [Folded, False: 19]
  ------------------
  109|     19|    if (PROTOBUF_PREDICT_FALSE(!(next() & 0x80))) goto done2;
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  110|     19|    if (limit <= 7) goto limit2;
  ------------------
  |  Branch (110:9): [Folded, False: 19]
  ------------------
  111|     19|    if (PROTOBUF_PREDICT_FALSE(!(next() & 0x80))) goto done2;
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  112|     19|    if (limit <= 8) goto limit2;
  ------------------
  |  Branch (112:9): [Folded, False: 19]
  ------------------
  113|     19|    if (PROTOBUF_PREDICT_FALSE(!(next() & 0x80))) goto done2;
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  114|     19|    if (limit <= 9) goto limit2;
  ------------------
  |  Branch (114:9): [Folded, False: 19]
  ------------------
  115|     19|  }
  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|     19|  if (PROTOBUF_PREDICT_TRUE(next() == 1)) goto done2;
  ------------------
  |  |  364|     19|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 19, False: 0]
  |  |  |  Branch (364:53): [Folded, False: 19]
  |  |  |  Branch (364:62): [True: 19, 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|  3.37k|done2:
  142|  3.37k|  res2 &= res3;
  143|  29.8k|done1:
  144|  29.8k|  res1 &= res2;
  145|  29.8k|  PROTOBUF_ASSUME(p != nullptr);
  ------------------
  |  |  941|  29.8k|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
  146|  29.8k|  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|   117k|  const auto next = [&p] { return static_cast<const int8_t>(*p++); };
_ZN6google8protobuf8internal9VarintShlILi1EEEbalRl:
   46|  31.9k|                                             int64_t& res) {
   47|  31.9k|  res = VarintShlByte<n>(byte, ones);
   48|  31.9k|  return res >= 0;
   49|  31.9k|}
_ZN6google8protobuf8internal13VarintShlByteILi1EEElal:
   26|  31.9k|inline PROTOBUF_ALWAYS_INLINE int64_t VarintShlByte(int8_t byte, int64_t ones) {
   27|  31.9k|  return static_cast<int64_t>((static_cast<uint64_t>(byte) << n * 7) |
   28|  31.9k|                              (static_cast<uint64_t>(ones) >> (64 - n * 7)));
   29|  31.9k|}
_ZN6google8protobuf8internal9VarintShlILi2EEEbalRl:
   46|  5.04k|                                             int64_t& res) {
   47|  5.04k|  res = VarintShlByte<n>(byte, ones);
   48|  5.04k|  return res >= 0;
   49|  5.04k|}
_ZN6google8protobuf8internal13VarintShlByteILi2EEElal:
   26|  5.04k|inline PROTOBUF_ALWAYS_INLINE int64_t VarintShlByte(int8_t byte, int64_t ones) {
   27|  5.04k|  return static_cast<int64_t>((static_cast<uint64_t>(byte) << n * 7) |
   28|  5.04k|                              (static_cast<uint64_t>(ones) >> (64 - n * 7)));
   29|  5.04k|}
_ZN6google8protobuf8internal12VarintShlAndILi3EEEbalRl:
   36|  3.20k|                                                int64_t& res) {
   37|  3.20k|  res &= VarintShlByte<n>(byte, ones);
   38|  3.20k|  return res >= 0;
   39|  3.20k|}
_ZN6google8protobuf8internal13VarintShlByteILi3EEElal:
   26|  3.20k|inline PROTOBUF_ALWAYS_INLINE int64_t VarintShlByte(int8_t byte, int64_t ones) {
   27|  3.20k|  return static_cast<int64_t>((static_cast<uint64_t>(byte) << n * 7) |
   28|  3.20k|                              (static_cast<uint64_t>(ones) >> (64 - n * 7)));
   29|  3.20k|}
_ZN6google8protobuf8internal12VarintShlAndILi4EEEbalRl:
   36|  2.36k|                                                int64_t& res) {
   37|  2.36k|  res &= VarintShlByte<n>(byte, ones);
   38|  2.36k|  return res >= 0;
   39|  2.36k|}
_ZN6google8protobuf8internal13VarintShlByteILi4EEElal:
   26|  2.36k|inline PROTOBUF_ALWAYS_INLINE int64_t VarintShlByte(int8_t byte, int64_t ones) {
   27|  2.36k|  return static_cast<int64_t>((static_cast<uint64_t>(byte) << n * 7) |
   28|  2.36k|                              (static_cast<uint64_t>(ones) >> (64 - n * 7)));
   29|  2.36k|}
_ZN6google8protobuf8internal19ShiftMixParseVarintImLi10EEEPKcS4_Rl:
   53|  23.6k|                                                              int64_t& res1) {
   54|  23.6k|  using Signed = std::make_signed_t<VarintType>;
   55|  23.6k|  constexpr bool kIs64BitVarint = std::is_same<Signed, int64_t>::value;
   56|  23.6k|  constexpr bool kIs32BitVarint = std::is_same<Signed, int32_t>::value;
   57|  23.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|  23.6k|  const auto next = [&p] { return static_cast<const int8_t>(*p++); };
   78|  23.6k|  const auto last = [&p] { return static_cast<const int8_t>(p[-1]); };
   79|       |
   80|  23.6k|  int64_t res2, res3;  // accumulated result chunks
   81|  23.6k|  res1 = next();
   82|  23.6k|  if (PROTOBUF_PREDICT_TRUE(res1 >= 0)) return p;
  ------------------
  |  |  364|  23.6k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 21.5k, False: 2.08k]
  |  |  |  Branch (364:53): [Folded, False: 23.6k]
  |  |  |  Branch (364:62): [True: 21.5k, False: 2.08k]
  |  |  ------------------
  ------------------
   83|  2.08k|  if (limit <= 1) goto limit0;
  ------------------
  |  Branch (83:7): [Folded, False: 2.08k]
  ------------------
   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.08k|  if (PROTOBUF_PREDICT_FALSE(VarintShl<1>(next(), res1, res2))) goto done1;
  ------------------
  |  |  365|  2.08k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 420, False: 1.66k]
  |  |  |  Branch (365:54): [Folded, False: 2.08k]
  |  |  |  Branch (365:63): [True: 420, False: 1.66k]
  |  |  ------------------
  ------------------
   88|  1.66k|  if (limit <= 2) goto limit1;
  ------------------
  |  Branch (88:7): [Folded, False: 1.66k]
  ------------------
   89|  1.66k|  if (PROTOBUF_PREDICT_FALSE(VarintShl<2>(next(), res1, res3))) goto done2;
  ------------------
  |  |  365|  1.66k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 138, False: 1.53k]
  |  |  |  Branch (365:54): [Folded, False: 1.66k]
  |  |  |  Branch (365:63): [True: 138, False: 1.53k]
  |  |  ------------------
  ------------------
   90|  1.53k|  if (limit <= 3) goto limit2;
  ------------------
  |  Branch (90:7): [Folded, False: 1.53k]
  ------------------
   91|  1.53k|  if (PROTOBUF_PREDICT_FALSE(VarintShlAnd<3>(next(), res1, res2))) goto done2;
  ------------------
  |  |  365|  1.53k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 220, False: 1.31k]
  |  |  |  Branch (365:54): [Folded, False: 1.53k]
  |  |  |  Branch (365:63): [True: 220, False: 1.31k]
  |  |  ------------------
  ------------------
   92|  1.31k|  if (limit <= 4) goto limit2;
  ------------------
  |  Branch (92:7): [Folded, False: 1.31k]
  ------------------
   93|  1.31k|  if (PROTOBUF_PREDICT_TRUE(VarintShlAnd<4>(next(), res1, res3))) goto done2;
  ------------------
  |  |  364|  1.31k|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 84, False: 1.22k]
  |  |  |  Branch (364:53): [Folded, False: 1.31k]
  |  |  |  Branch (364:62): [True: 84, False: 1.22k]
  |  |  ------------------
  ------------------
   94|  1.22k|  if (limit <= 5) goto limit2;
  ------------------
  |  Branch (94:7): [Folded, False: 1.22k]
  ------------------
   95|       |
   96|  1.22k|  if (kIs64BitVarint) {
  ------------------
  |  Branch (96:7): [True: 1.22k, Folded]
  ------------------
   97|  1.22k|    if (PROTOBUF_PREDICT_FALSE(VarintShlAnd<5>(next(), res1, res2))) goto done2;
  ------------------
  |  |  365|  1.22k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 95, False: 1.13k]
  |  |  |  Branch (365:54): [Folded, False: 1.22k]
  |  |  |  Branch (365:63): [True: 95, False: 1.13k]
  |  |  ------------------
  ------------------
   98|  1.13k|    if (limit <= 6) goto limit2;
  ------------------
  |  Branch (98:9): [Folded, False: 1.13k]
  ------------------
   99|  1.13k|    if (PROTOBUF_PREDICT_FALSE(VarintShlAnd<6>(next(), res1, res3))) goto done2;
  ------------------
  |  |  365|  1.13k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 86, False: 1.04k]
  |  |  |  Branch (365:54): [Folded, False: 1.13k]
  |  |  |  Branch (365:63): [True: 86, False: 1.04k]
  |  |  ------------------
  ------------------
  100|  1.04k|    if (limit <= 7) goto limit2;
  ------------------
  |  Branch (100:9): [Folded, False: 1.04k]
  ------------------
  101|  1.04k|    if (PROTOBUF_PREDICT_FALSE(VarintShlAnd<7>(next(), res1, res2))) goto done2;
  ------------------
  |  |  365|  1.04k|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 199, False: 847]
  |  |  |  Branch (365:54): [Folded, False: 1.04k]
  |  |  |  Branch (365:63): [True: 199, False: 847]
  |  |  ------------------
  ------------------
  102|    847|    if (limit <= 8) goto limit2;
  ------------------
  |  Branch (102:9): [Folded, False: 847]
  ------------------
  103|    847|    if (PROTOBUF_PREDICT_FALSE(VarintShlAnd<8>(next(), res1, res3))) goto done2;
  ------------------
  |  |  365|    847|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 247, False: 600]
  |  |  |  Branch (365:54): [Folded, False: 847]
  |  |  |  Branch (365:63): [True: 247, False: 600]
  |  |  ------------------
  ------------------
  104|    600|    if (limit <= 9) goto limit2;
  ------------------
  |  Branch (104:9): [Folded, False: 600]
  ------------------
  105|    600|  } 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|    600|  if (PROTOBUF_PREDICT_TRUE(next() == 1)) goto done2;
  ------------------
  |  |  364|    600|# define PROTOBUF_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (364:35): [True: 571, False: 29]
  |  |  |  Branch (364:53): [Folded, False: 600]
  |  |  |  Branch (364:62): [True: 571, False: 29]
  |  |  ------------------
  ------------------
  121|       |
  122|     29|  if (PROTOBUF_PREDICT_FALSE(last() & 0x80)) {
  ------------------
  |  |  365|     29|# define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (365:36): [True: 0, False: 29]
  |  |  |  Branch (365:54): [Folded, False: 29]
  |  |  |  Branch (365:63): [True: 0, False: 29]
  |  |  ------------------
  ------------------
  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|     29|  if (kIs64BitVarint && (last() & 1) == 0) {
  ------------------
  |  Branch (131:7): [True: 29, Folded]
  |  Branch (131:25): [True: 0, False: 29]
  ------------------
  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|  1.66k|done2:
  142|  1.66k|  res2 &= res3;
  143|  2.08k|done1:
  144|  2.08k|  res1 &= res2;
  145|  2.08k|  PROTOBUF_ASSUME(p != nullptr);
  ------------------
  |  |  941|  2.08k|#define PROTOBUF_ASSUME(pred) __builtin_assume(pred)
  ------------------
  146|  2.08k|  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|  35.1k|  const auto next = [&p] { return static_cast<const int8_t>(*p++); };
_ZN6google8protobuf8internal12VarintShlAndILi5EEEbalRl:
   36|  1.22k|                                                int64_t& res) {
   37|  1.22k|  res &= VarintShlByte<n>(byte, ones);
   38|  1.22k|  return res >= 0;
   39|  1.22k|}
_ZN6google8protobuf8internal13VarintShlByteILi5EEElal:
   26|  1.22k|inline PROTOBUF_ALWAYS_INLINE int64_t VarintShlByte(int8_t byte, int64_t ones) {
   27|  1.22k|  return static_cast<int64_t>((static_cast<uint64_t>(byte) << n * 7) |
   28|  1.22k|                              (static_cast<uint64_t>(ones) >> (64 - n * 7)));
   29|  1.22k|}
_ZN6google8protobuf8internal12VarintShlAndILi6EEEbalRl:
   36|  1.13k|                                                int64_t& res) {
   37|  1.13k|  res &= VarintShlByte<n>(byte, ones);
   38|  1.13k|  return res >= 0;
   39|  1.13k|}
_ZN6google8protobuf8internal13VarintShlByteILi6EEElal:
   26|  1.13k|inline PROTOBUF_ALWAYS_INLINE int64_t VarintShlByte(int8_t byte, int64_t ones) {
   27|  1.13k|  return static_cast<int64_t>((static_cast<uint64_t>(byte) << n * 7) |
   28|  1.13k|                              (static_cast<uint64_t>(ones) >> (64 - n * 7)));
   29|  1.13k|}
_ZN6google8protobuf8internal12VarintShlAndILi7EEEbalRl:
   36|  1.04k|                                                int64_t& res) {
   37|  1.04k|  res &= VarintShlByte<n>(byte, ones);
   38|  1.04k|  return res >= 0;
   39|  1.04k|}
_ZN6google8protobuf8internal13VarintShlByteILi7EEElal:
   26|  1.04k|inline PROTOBUF_ALWAYS_INLINE int64_t VarintShlByte(int8_t byte, int64_t ones) {
   27|  1.04k|  return static_cast<int64_t>((static_cast<uint64_t>(byte) << n * 7) |
   28|  1.04k|                              (static_cast<uint64_t>(ones) >> (64 - n * 7)));
   29|  1.04k|}
_ZN6google8protobuf8internal12VarintShlAndILi8EEEbalRl:
   36|    847|                                                int64_t& res) {
   37|    847|  res &= VarintShlByte<n>(byte, ones);
   38|    847|  return res >= 0;
   39|    847|}
_ZN6google8protobuf8internal13VarintShlByteILi8EEElal:
   26|    847|inline PROTOBUF_ALWAYS_INLINE int64_t VarintShlByte(int8_t byte, int64_t ones) {
   27|    847|  return static_cast<int64_t>((static_cast<uint64_t>(byte) << n * 7) |
   28|    847|                              (static_cast<uint64_t>(ones) >> (64 - n * 7)));
   29|    847|}
_ZZN6google8protobuf8internal19ShiftMixParseVarintImLi10EEEPKcS4_RlENKUlvE0_clEv:
   78|     58|  const auto last = [&p] { return static_cast<const int8_t>(p[-1]); };

_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|   744k|    absl::Nonnull<once_flag*> flag) {
  194|   744k|  return &flag->control_;
  195|   744k|}
message.cc:_ZN4absl12lts_202401169call_onceIZN6google8protobuf7Message15GetMetadataImplERKNS3_8internal13ClassDataFullEE3$_0JEEEvRNS0_9once_flagEOT_DpOT0_:
  212|   744k|void call_once(absl::once_flag& flag, Callable&& fn, Args&&... args) {
  213|   744k|  std::atomic<uint32_t>* once = base_internal::ControlWord(&flag);
  214|   744k|  uint32_t s = once->load(std::memory_order_acquire);
  215|   744k|  if (ABSL_PREDICT_FALSE(s != base_internal::kOnceDone)) {
  ------------------
  |  |  178|   744k|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 4, False: 744k]
  |  |  |  Branch (178:49): [Folded, False: 744k]
  |  |  |  Branch (178:58): [True: 4, False: 744k]
  |  |  ------------------
  ------------------
  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|   744k|}
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|  9.10k|    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|  9.10k|#if defined(__x86_64__) && !defined(__PRFCHW__)
  162|  9.10k|  asm("prefetchw %0" : : "m"(*reinterpret_cast<const char*>(addr)));
  163|       |#else
  164|       |  __builtin_prefetch(addr, 1, 3);
  165|       |#endif
  166|  9.10k|}

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|      8|  apply(F&& f, Args&&... args) {
  591|      8|    return absl::container_internal::DecomposePair(std::forward<F>(f),
  592|      8|                                                   std::forward<Args>(args)...);
  593|      8|  }
_ZN4absl12lts_2024011618container_internal17FlatHashMapPolicyINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEE7elementEPNS1_13map_slot_typeIS9_SD_EE:
  597|     37|  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|    410|  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|    203|  apply(F&& f, Args&&... args) {
  591|    203|    return absl::container_internal::DecomposePair(std::forward<F>(f),
  592|    203|                                                   std::forward<Args>(args)...);
  593|    203|  }
_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.23k|  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|    213|  static T& element(slot_type* slot) { return *slot; }
_ZN4absl12lts_2024011618container_internal17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEE7elementEPS7_:
  481|     81|  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|     35|  apply(F&& f, Args&&... args) {
  487|     35|    return absl::container_internal::DecomposeValue(
  488|     35|        std::forward<F>(f), std::forward<Args>(args)...);
  489|     35|  }
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|      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_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|     41|  apply(F&& f, Args&&... args) {
  487|     41|    return absl::container_internal::DecomposeValue(
  488|     41|        std::forward<F>(f), std::forward<Args>(args)...);
  489|     41|  }
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|      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_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.23k|      -> decltype(P::element(slot)) {
   76|  2.23k|    return P::element(slot);
   77|  2.23k|  }
_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|    213|      -> decltype(P::element(slot)) {
   76|    213|    return P::element(slot);
   77|    213|  }
_ZN4absl12lts_2024011618container_internal20common_policy_traitsINS1_17FlatHashSetPolicyIPKN6google8protobuf19EnumValueDescriptorEEEvE7elementIS9_EEDTclsrT_7elementfp_EEPS8_:
   75|     81|      -> decltype(P::element(slot)) {
   76|     81|    return P::element(slot);
   77|     81|  }
_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|     37|      -> decltype(P::element(slot)) {
   76|     37|    return P::element(slot);
   77|     37|  }
_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|    410|      -> decltype(P::element(slot)) {
   76|    410|    return P::element(slot);
   77|    410|  }
_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.05k|  constexpr const ElemT<I>& get() const& {
  247|  1.05k|    return StorageT<I>::get();
  248|  1.05k|  }
_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|    425|  constexpr const ElemT<I>& get() const& {
  247|    425|    return StorageT<I>::get();
  248|    425|  }
_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|    317|  constexpr const ElemT<I>& get() const& {
  247|    317|    return StorageT<I>::get();
  248|    317|  }
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|    874|  constexpr const ElemT<I>& get() const& {
  247|    874|    return StorageT<I>::get();
  248|    874|  }
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.03k|  constexpr const ElemT<I>& get() const& {
  247|  4.03k|    return StorageT<I>::get();
  248|  4.03k|  }
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|    128|  ElemT<I>& get() & {
  242|    128|    return StorageT<I>::get();
  243|    128|  }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_118SymbolByFullNameEqELm2ELb1EE3getEv:
  106|    128|  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|    211|  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|      5|  ElemT<I>& get() & {
  242|      5|    return StorageT<I>::get();
  243|      5|  }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_114ParentNumberEqELm2ELb1EE3getEv:
  106|      8|  T& get() & { return *this; }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_118SymbolByParentHashENS6_16SymbolByParentEqENSt3__19allocatorINS5_6SymbolEEEEE3getILi2EEERNS1_25internal_compressed_tuple4ElemISD_XT_EE4typeEv:
  241|     41|  ElemT<I>& get() & {
  242|     41|    return StorageT<I>::get();
  243|     41|  }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal25internal_compressed_tuple7StorageIN6google8protobuf12_GLOBAL__N_116SymbolByParentEqELm2ELb1EE3getEv:
  106|     41|  T& get() & { return *this; }
descriptor.cc:_ZNR4absl12lts_2024011618container_internal15CompressedTupleIJNS1_12CommonFieldsEN6google8protobuf12_GLOBAL__N_116ParentNumberHashENS6_14ParentNumberEqENSt3__19allocatorIPKNS5_19EnumValueDescriptorEEEEE3getILi2EEERNS1_25internal_compressed_tuple4ElemISF_XT_EE4typeEv:
  241|      3|  ElemT<I>& get() & {
  242|      3|    return StorageT<I>::get();
  243|      3|  }
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|      8|  ElemT<I>& get() & {
  242|      8|    return StorageT<I>::get();
  243|      8|  }
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|    203|  ElemT<I>& get() & {
  242|    203|    return StorageT<I>::get();
  243|    203|  }
_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|      8|        std::forward<F>(f), PairArgs(std::forward<Args>(args)...))) {
  207|      8|  return memory_internal::DecomposePairImpl(
  208|      8|      std::forward<F>(f), PairArgs(std::forward<Args>(args)...));
  209|      8|}
_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|      8|DecomposePairImpl(F&& f, std::pair<std::tuple<K>, V> p) {
  139|      8|  const auto& key = std::get<0>(p.first);
  140|      8|  return std::forward<F>(f)(key, std::piecewise_construct, std::move(p.first),
  141|      8|                            std::move(p.second));
  142|      8|}
_ZN4absl12lts_2024011618container_internal8PairArgsIKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS3_4pairINS3_5tupleIJRKT_EEENSG_IJRKT0_EEEEERKNSF_ISH_SL_EE:
  187|     36|    const std::pair<F, S>& p) {
  188|     36|  return PairArgs(p.first, p.second);
  189|     36|}
_ZN4absl12lts_2024011618container_internal8PairArgsIRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKN6google8protobuf10Descriptor13WellKnownTypeEEENS3_4pairINS3_5tupleIJOT_EEENSJ_IJOT0_EEEEESL_SO_:
  181|     68|std::pair<std::tuple<F&&>, std::tuple<S&&>> PairArgs(F&& f, S&& s) {
  182|     68|  return {std::piecewise_construct, std::forward_as_tuple(std::forward<F>(f)),
  183|     68|          std::forward_as_tuple(std::forward<S>(s))};
  184|     68|}
_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|     35|DecomposeValue(F&& f, Arg&& arg) {
  215|     35|  const auto& key = arg;
  216|     35|  return std::forward<F>(f)(key, std::forward<Arg>(arg));
  217|     35|}
_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|      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|}
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|     41|DecomposeValue(F&& f, Arg&& arg) {
  215|     41|  const auto& key = arg;
  216|     41|  return std::forward<F>(f)(key, std::forward<Arg>(arg));
  217|     41|}
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|      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|}
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|    203|        std::forward<F>(f), PairArgs(std::forward<Args>(args)...))) {
  207|    203|  return memory_internal::DecomposePairImpl(
  208|    203|      std::forward<F>(f), PairArgs(std::forward<Args>(args)...));
  209|    203|}
_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|    203|DecomposePairImpl(F&& f, std::pair<std::tuple<K>, V> p) {
  139|    203|  const auto& key = std::get<0>(p.first);
  140|    203|  return std::forward<F>(f)(key, std::piecewise_construct, std::move(p.first),
  141|    203|                            std::move(p.second));
  142|    203|}
_ZN4absl12lts_2024011618container_internal8PairArgsIKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS3_10unique_ptrIN6google8protobuf10FeatureSetENS3_14default_deleteISE_EEEEEENS3_4pairINS3_5tupleIJRKT_EEENSJ_IJRKT0_EEEEERKNSI_ISK_SO_EE:
  187|    203|    const std::pair<F, S>& p) {
  188|    203|  return PairArgs(p.first, p.second);
  189|    203|}
_ZN4absl12lts_2024011618container_internal8PairArgsIRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKNS3_10unique_ptrIN6google8protobuf10FeatureSetENS3_14default_deleteISF_EEEEEENS3_4pairINS3_5tupleIJOT_EEENSM_IJOT0_EEEEESO_SR_:
  181|    203|std::pair<std::tuple<F&&>, std::tuple<S&&>> PairArgs(F&& f, S&& s) {
  182|    203|  return {std::piecewise_construct, std::forward_as_tuple(std::forward<F>(f)),
  183|    203|          std::forward_as_tuple(std::forward<S>(s))};
  184|    203|}
_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|    211|  bool operator()(absl::string_view lhs, absl::string_view rhs) const {
   88|    211|    return lhs == rhs;
   89|    211|  }
_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|      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|  }
_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|     35|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|     35|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|     35|  }
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|      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|  }
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|     41|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|     41|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|     41|  }
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|      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|  }
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|    203|      -> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
  134|    203|    return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
  135|    203|  }
_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.22k|  explicit GroupSse2Impl(const ctrl_t* pos) {
  616|  4.22k|    ctrl = _mm_loadu_si128(reinterpret_cast<const __m128i*>(pos));
  617|  4.22k|  }
_ZNK4absl12lts_2024011618container_internal13GroupSse2Impl5MatchEh:
  620|  1.93k|  BitMask<uint16_t, kWidth> Match(h2_t hash) const {
  621|  1.93k|    auto match = _mm_set1_epi8(static_cast<char>(hash));
  622|  1.93k|    BitMask<uint16_t, kWidth> result = BitMask<uint16_t, kWidth>(0);
  623|  1.93k|    result = BitMask<uint16_t, kWidth>(
  624|  1.93k|        static_cast<uint16_t>(_mm_movemask_epi8(_mm_cmpeq_epi8(match, ctrl))));
  625|  1.93k|    return result;
  626|  1.93k|  }
_ZNK4absl12lts_2024011618container_internal13GroupSse2Impl9MaskEmptyEv:
  629|  1.62k|  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.62k|    auto match = _mm_set1_epi8(static_cast<char>(ctrl_t::kEmpty));
  636|  1.62k|    return NonIterableBitMask<uint16_t, kWidth>(
  637|  1.62k|        static_cast<uint16_t>(_mm_movemask_epi8(_mm_cmpeq_epi8(match, ctrl))));
  638|  1.62k|#endif
  639|  1.62k|  }
_ZNK4absl12lts_2024011618container_internal13GroupSse2Impl18MaskEmptyOrDeletedEv:
  650|  2.29k|  NonIterableBitMask<uint16_t, kWidth> MaskEmptyOrDeleted() const {
  651|  2.29k|    auto special = _mm_set1_epi8(static_cast<char>(ctrl_t::kSentinel));
  652|  2.29k|    return NonIterableBitMask<uint16_t, kWidth>(static_cast<uint16_t>(
  653|  2.29k|        _mm_movemask_epi8(_mm_cmpgt_epi8_fixed(special, ctrl))));
  654|  2.29k|  }
_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.86k|  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: 45, False: 11]
  ------------------
 1549|       |      // Offset fall on kSentinel or into the mostly occupied first half.
 1550|     45|      offset = old_capacity / 2;
 1551|     45|    }
 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.29k|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.29k|  return _mm_cmpgt_epi8(a, b);
  610|  2.29k|}
_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.29k|  while (true) {
  ------------------
  |  Branch (1435:10): [True: 2.29k, Folded]
  ------------------
 1436|  2.29k|    GroupEmptyOrDeleted g{ctrl + seq.offset()};
 1437|  2.29k|    auto mask = g.MaskEmptyOrDeleted();
 1438|  2.29k|    if (mask) {
  ------------------
  |  Branch (1438:9): [True: 2.19k, False: 96]
  ------------------
 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|     96|    seq.next();
 1451|       |    assert(seq.index() <= common.capacity() && "full table!");
 1452|     96|  }
 1453|  2.19k|}
_ZNK4absl12lts_2024011618container_internal18NonIterableBitMaskItLi16ELi0EEcvbEv:
  391|  3.91k|  explicit operator bool() const { return this->mask_ != 0; }
_ZNK4absl12lts_2024011618container_internal9probe_seqILm16EE6offsetEm:
  324|  2.90k|  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.59k|  uint32_t LowestBitSet() const {
  395|  2.59k|    return container_internal::TrailingZeros(mask_) >> Shift;
  396|  2.59k|  }
_ZN4absl12lts_2024011618container_internal13TrailingZerosItEEjT_:
  372|  2.59k|uint32_t TrailingZeros(T x) {
  373|  2.59k|  ABSL_ASSUME(x != 0);
  ------------------
  |  |  259|  2.59k|#define ABSL_ASSUME(cond) __builtin_assume(cond)
  ------------------
  374|  2.59k|  return static_cast<uint32_t>(countr_zero(x));
  375|  2.59k|}
_ZN4absl12lts_2024011618container_internal9probe_seqILm16EE4nextEv:
  326|    193|  void next() {
  327|    193|    index_ += Width;
  328|    193|    offset_ += index_;
  329|    193|    offset_ &= mask_;
  330|    193|  }
_ZNK4absl12lts_2024011618container_internal9probe_seqILm16EE6offsetEv:
  323|  4.27k|  size_t offset() const { return offset_; }
_ZNK4absl12lts_2024011618container_internal7BitMaskItLi16ELi0EE5beginEv:
  454|  1.93k|  BitMask begin() const { return *this; }
_ZNK4absl12lts_2024011618container_internal7BitMaskItLi16ELi0EE3endEv:
  455|  1.93k|  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|     91|  BitMask& operator++() {
  444|     91|    if (Shift == 3) {
  ------------------
  |  Branch (444:9): [Folded, False: 91]
  ------------------
  445|      0|      constexpr uint64_t msbs = 0x8080808080808080ULL;
  446|      0|      this->mask_ &= msbs;
  447|      0|    }
  448|     91|    this->mask_ &= (this->mask_ - 1);
  449|     91|    return *this;
  450|     91|  }
_ZNK4absl12lts_2024011618container_internal7BitMaskItLi16ELi0EEdeEv:
  452|    401|  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.79k|  explicit BitMask(T mask) : Base(mask) {}
_ZN4absl12lts_2024011618container_internal18NonIterableBitMaskItLi16ELi0EEC2Et:
  389|  9.70k|  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.05k|  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|    417|  slot_type* slot_array() const {
 3198|    417|    return static_cast<slot_type*>(common().slot_array());
 3199|    417|  }
_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|    425|  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|    120|  slot_type* slot_array() const {
 3198|    120|    return static_cast<slot_type*>(common().slot_array());
 3199|    120|  }
_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|    317|  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|     83|  slot_type* slot_array() const {
 3198|     83|    return static_cast<slot_type*>(common().slot_array());
 3199|     83|  }
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|    874|  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|    224|  slot_type* slot_array() const {
 3198|    224|    return static_cast<slot_type*>(common().slot_array());
 3199|    224|  }
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.03k|  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.04k|  slot_type* slot_array() const {
 3198|  1.04k|    return static_cast<slot_type*>(common().slot_array());
 3199|  1.04k|  }
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|    100|    while (true) {
  ------------------
  |  Branch (2692:12): [True: 100, Folded]
  ------------------
 2693|    100|      Group g{ctrl + seq.offset()};
 2694|    100|      for (uint32_t i : g.Match(H2(hash))) {
  ------------------
  |  Branch (2694:23): [True: 93, False: 7]
  ------------------
 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|      7|      if (ABSL_PREDICT_TRUE(g.MaskEmpty())) return end();
  ------------------
  |  |  179|      7|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 6, False: 1]
  |  |  |  Branch (179:48): [Folded, False: 7]
  |  |  |  Branch (179:57): [True: 6, False: 1]
  |  |  ------------------
  ------------------
 2701|      1|      seq.next();
 2702|       |      assert(seq.index() <= capacity() && "full table!");
 2703|      1|    }
 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|    128|  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|      5|  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|     41|  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|      3|  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: 2, False: 32]
  ------------------
 3094|      2|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|      2|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 0, False: 2]
  |  |  |  Branch (179:48): [Folded, False: 2]
  |  |  |  Branch (179:57): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 3095|      2|                EqualElement<K>{key, eq_ref()},
 3096|      2|                PolicyTraits::element(slot_array() + seq.offset(i)))))
 3097|      0|          return {seq.offset(i), false};
 3098|      2|      }
 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|      8|    bool operator()(const K2& lhs, Args&&...) const {
 2814|      8|      return eq(lhs, rhs);
 2815|      8|    }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN6google8protobuf10Descriptor13WellKnownTypeEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SE_EEEEE6eq_refEv:
 3204|      8|  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|     35|    bool operator()(const K2& lhs, Args&&...) const {
 2814|     35|      return eq(lhs, rhs);
 2815|     35|    }
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: 3, False: 34]
  ------------------
 3094|      3|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|      3|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 0, False: 3]
  |  |  |  Branch (179:48): [Folded, False: 3]
  |  |  |  Branch (179:57): [True: 0, False: 3]
  |  |  ------------------
  ------------------
 3095|      3|                EqualElement<K>{key, eq_ref()},
 3096|      3|                PolicyTraits::element(slot_array() + seq.offset(i)))))
 3097|      0|          return {seq.offset(i), false};
 3098|      3|      }
 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|      3|    bool operator()(const K2& lhs, Args&&...) const {
 2814|      3|      return eq(lhs, rhs);
 2815|      3|    }
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|    432|    while (true) {
  ------------------
  |  Branch (3091:12): [True: 432, Folded]
  ------------------
 3092|    432|      Group g{ctrl + seq.offset()};
 3093|    432|      for (uint32_t i : g.Match(H2(hash))) {
  ------------------
  |  Branch (3093:23): [True: 35, False: 432]
  ------------------
 3094|     35|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|     35|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 0, False: 35]
  |  |  |  Branch (179:48): [Folded, False: 35]
  |  |  |  Branch (179:57): [True: 0, False: 35]
  |  |  ------------------
  ------------------
 3095|     35|                EqualElement<K>{key, eq_ref()},
 3096|     35|                PolicyTraits::element(slot_array() + seq.offset(i)))))
 3097|      0|          return {seq.offset(i), false};
 3098|     35|      }
 3099|    432|      if (ABSL_PREDICT_TRUE(g.MaskEmpty())) break;
  ------------------
  |  |  179|    432|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 382, False: 50]
  |  |  |  Branch (179:48): [Folded, False: 432]
  |  |  |  Branch (179:57): [True: 382, False: 50]
  |  |  ------------------
  ------------------
 3100|     50|      seq.next();
 3101|     50|      assert(seq.index() <= capacity() && "full table!");
 3102|     50|    }
 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|    532|    while (true) {
  ------------------
  |  Branch (3091:12): [True: 532, Folded]
  ------------------
 3092|    532|      Group g{ctrl + seq.offset()};
 3093|    532|      for (uint32_t i : g.Match(H2(hash))) {
  ------------------
  |  Branch (3093:23): [True: 41, False: 532]
  ------------------
 3094|     41|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|     41|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 0, False: 41]
  |  |  |  Branch (179:48): [Folded, False: 41]
  |  |  |  Branch (179:57): [True: 0, False: 41]
  |  |  ------------------
  ------------------
 3095|     41|                EqualElement<K>{key, eq_ref()},
 3096|     41|                PolicyTraits::element(slot_array() + seq.offset(i)))))
 3097|      0|          return {seq.offset(i), false};
 3098|     41|      }
 3099|    532|      if (ABSL_PREDICT_TRUE(g.MaskEmpty())) break;
  ------------------
  |  |  179|    532|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 487, False: 45]
  |  |  |  Branch (179:48): [Folded, False: 532]
  |  |  |  Branch (179:57): [True: 487, False: 45]
  |  |  ------------------
  ------------------
 3100|     45|      seq.next();
 3101|     45|      assert(seq.index() <= capacity() && "full table!");
 3102|     45|    }
 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|     41|    bool operator()(const K2& lhs, Args&&...) const {
 2814|     41|      return eq(lhs, rhs);
 2815|     41|    }
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|    104|    while (true) {
  ------------------
  |  Branch (3091:12): [True: 104, Folded]
  ------------------
 3092|    104|      Group g{ctrl + seq.offset()};
 3093|    104|      for (uint32_t i : g.Match(H2(hash))) {
  ------------------
  |  Branch (3093:23): [True: 5, False: 104]
  ------------------
 3094|      5|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|      5|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 0, False: 5]
  |  |  |  Branch (179:48): [Folded, False: 5]
  |  |  |  Branch (179:57): [True: 0, False: 5]
  |  |  ------------------
  ------------------
 3095|      5|                EqualElement<K>{key, eq_ref()},
 3096|      5|                PolicyTraits::element(slot_array() + seq.offset(i)))))
 3097|      0|          return {seq.offset(i), false};
 3098|      5|      }
 3099|    104|      if (ABSL_PREDICT_TRUE(g.MaskEmpty())) break;
  ------------------
  |  |  179|    104|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 103, False: 1]
  |  |  |  Branch (179:48): [Folded, False: 104]
  |  |  |  Branch (179:57): [True: 103, False: 1]
  |  |  ------------------
  ------------------
 3100|      1|      seq.next();
 3101|      1|      assert(seq.index() <= capacity() && "full table!");
 3102|      1|    }
 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|      5|    bool operator()(const K2& lhs, Args&&...) const {
 2814|      5|      return eq(lhs, rhs);
 2815|      5|    }
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: 203, False: 4]
  ------------------
 3094|    203|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|    203|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 203, False: 0]
  |  |  |  Branch (179:48): [Folded, False: 203]
  |  |  |  Branch (179:57): [True: 203, False: 0]
  |  |  ------------------
  ------------------
 3095|    203|                EqualElement<K>{key, eq_ref()},
 3096|    203|                PolicyTraits::element(slot_array() + seq.offset(i)))))
 3097|    203|          return {seq.offset(i), false};
 3098|    203|      }
 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|    203|    bool operator()(const K2& lhs, Args&&...) const {
 2814|    203|      return eq(lhs, rhs);
 2815|    203|    }
_ZN4absl12lts_2024011618container_internal12raw_hash_setINS1_17FlatHashMapPolicyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS4_10unique_ptrIN6google8protobuf10FeatureSetENS4_14default_deleteISE_EEEEEENS1_10StringHashENS1_8StringEqENS8_INS4_4pairIKSA_SH_EEEEE6eq_refEv:
 3204|    203|  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: 6, False: 40]
  ------------------
 2695|      6|        if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
  ------------------
  |  |  179|      6|#define ABSL_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
  |  |  ------------------
  |  |  |  Branch (179:30): [True: 1, False: 5]
  |  |  |  Branch (179:48): [Folded, False: 6]
  |  |  |  Branch (179:57): [True: 1, False: 5]
  |  |  ------------------
  ------------------
 2696|      6|                EqualElement<K>{key, eq_ref()},
 2697|      6|                PolicyTraits::element(slot_ptr + seq.offset(i)))))
 2698|      1|          return iterator_at(seq.offset(i));
 2699|      6|      }
 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.59k|    countr_zero(T x) noexcept {
  119|  2.59k|  return numeric_internal::CountTrailingZeroes(x);
  120|  2.59k|}
_ZN4absl12lts_202401168popcountIjEENSt3__19enable_ifIXsr3std11is_unsignedIT_EE5valueEiE4typeES4_:
  133|  39.9k|    popcount(T x) noexcept {
  134|  39.9k|  return numeric_internal::Popcount(x);
  135|  39.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|  39.9k|Popcount32(uint32_t x) noexcept {
   97|  39.9k|#if ABSL_NUMERIC_INTERNAL_HAVE_BUILTIN_OR_GCC(__builtin_popcount)
   98|  39.9k|  static_assert(sizeof(unsigned int) == sizeof(x),
   99|  39.9k|                "__builtin_popcount does not take 32-bit arg");
  100|  39.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|  39.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.59k|CountTrailingZeroesNonzero16(uint16_t x) {
  306|  2.59k|#if ABSL_HAVE_BUILTIN(__builtin_ctzs)
  307|  2.59k|  static_assert(sizeof(unsigned short) == sizeof(x),  // NOLINT(runtime/int)
  308|  2.59k|                "__builtin_ctzs does not take 16-bit arg");
  309|  2.59k|  return __builtin_ctzs(x);
  310|       |#else
  311|       |  return CountTrailingZeroesNonzero32(x);
  312|       |#endif
  313|  2.59k|}
_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.59k|CountTrailingZeroes(T x) noexcept {
  318|  2.59k|  static_assert(std::is_unsigned<T>::value, "T must be unsigned");
  319|  2.59k|  static_assert(IsPowerOf2(std::numeric_limits<T>::digits),
  320|  2.59k|                "T must have a power-of-2 size");
  321|  2.59k|  static_assert(sizeof(T) <= sizeof(uint64_t), "T too large");
  322|  2.59k|  return x == 0 ? std::numeric_limits<T>::digits
  ------------------
  |  Branch (322:10): [True: 0, False: 2.59k]
  ------------------
  323|  2.59k|                : (sizeof(T) <= sizeof(uint16_t)
  ------------------
  |  Branch (323:20): [True: 2.59k, Folded]
  ------------------
  324|  2.59k|                       ? CountTrailingZeroesNonzero16(static_cast<uint16_t>(x))
  325|  2.59k|                       : (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.59k|}
_ZN4absl12lts_2024011616numeric_internal8PopcountIjEEiT_:
  124|  39.9k|Popcount(T x) noexcept {
  125|  39.9k|  static_assert(std::is_unsigned<T>::value, "T must be unsigned");
  126|  39.9k|  static_assert(IsPowerOf2(std::numeric_limits<T>::digits),
  127|  39.9k|                "T must have a power-of-2 size");
  128|  39.9k|  static_assert(sizeof(x) <= sizeof(uint64_t), "T is too large");
  129|  39.9k|  return sizeof(x) <= sizeof(uint32_t) ? Popcount32(x) : Popcount64(x);
  ------------------
  |  Branch (129:10): [True: 39.9k, Folded]
  ------------------
  130|  39.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|  49.6k|inline void STLStringResizeUninitialized(string_type* s, size_t new_size) {
   68|  49.6k|  ResizeUninitializedTraits<string_type>::Resize(s, new_size);
   69|  49.6k|}
_ZN4absl12lts_2024011616strings_internal25ResizeUninitializedTraitsINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEvE6ResizeEPS9_m:
   47|  49.6k|  static void Resize(string_type* s, size_t new_size) {
   48|  49.6k|    s->__resize_default_init(new_size);
   49|  49.6k|  }
_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|    650|      : 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|  33.8k|  constexpr size_type size() const noexcept { return length_; }
_ZNK4absl12lts_2024011611string_view5emptyEv:
  288|  3.53k|  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|  24.4k|  constexpr const_pointer data() const noexcept { return ptr_; }
_ZNK4absl12lts_2024011611string_view6substrEmm:
  395|    639|  constexpr string_view substr(size_type pos = 0, size_type n = npos) const {
  396|    639|    return ABSL_PREDICT_FALSE(pos > length_)
  ------------------
  |  |  178|    639|#define ABSL_PREDICT_FALSE(x) (__builtin_expect(false || (x), false))
  |  |  ------------------
  |  |  |  Branch (178:31): [True: 0, False: 639]
  |  |  |  Branch (178:49): [Folded, False: 639]
  |  |  |  Branch (178:58): [True: 0, False: 639]
  |  |  ------------------
  ------------------
  397|    639|               ? (base_internal::ThrowStdOutOfRange(
  398|      0|                      "absl::string_view::substr"),
  399|      0|                  string_view())
  400|    639|               : string_view(ptr_ + pos, Min(n, length_ - pos));
  401|    639|  }
_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|    650|  static constexpr size_type CheckLengthInternal(size_type len) {
  669|    650|    return ABSL_HARDENING_ASSERT(len <= kMaxSize), len;
  ------------------
  |  |  128|    650|#define ABSL_HARDENING_ASSERT(expr) ABSL_ASSERT(expr)
  |  |  ------------------
  |  |  |  |   95|    650|  (false ? static_cast<void>(expr) : static_cast<void>(0))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (95:4): [Folded, False: 650]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  670|    650|  }
_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: 312, 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|    435|constexpr bool operator==(string_view x, string_view y) noexcept {
  709|    435|  return x.size() == y.size() &&
  ------------------
  |  Branch (709:10): [True: 312, False: 123]
  ------------------
  710|    312|         (x.empty() ||
  ------------------
  |  Branch (710:11): [True: 0, False: 312]
  ------------------
  711|    312|          ABSL_INTERNAL_STRING_VIEW_MEMCMP(x.data(), y.data(), x.size()) == 0);
  ------------------
  |  |   62|    312|#define ABSL_INTERNAL_STRING_VIEW_MEMCMP __builtin_memcmp
  ------------------
  |  Branch (711:11): [True: 308, False: 4]
  ------------------
  712|    435|}
_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|  21.7k|                     Args&&... args) {
   54|  21.7k|  return std::get<condition>(std::forward_as_tuple(
   55|  21.7k|      std::forward<FalseFunc>(false_func), std::forward<TrueFunc>(true_func)))(
   56|  21.7k|      std::forward<Args>(args)...);
   57|  21.7k|}
_ZN4absl12lts_2024011616utility_internal15IfConstexprElseILb1EZN6google8protobuf5Arena6CreateINS4_8internal16InternalMetadata9ContainerINS4_15UnknownFieldSetEEEJEEEPT_PS5_DpOT0_EUlDpOT_E_ZNS6_ISB_JEEESD_SE_SH_EUlSK_E0_JEEEDaOT0_OT1_DpOT2_:
   53|  7.07k|                     Args&&... args) {
   54|  7.07k|  return std::get<condition>(std::forward_as_tuple(
   55|  7.07k|      std::forward<FalseFunc>(false_func), std::forward<TrueFunc>(true_func)))(
   56|  7.07k|      std::forward<Args>(args)...);
   57|  7.07k|}
_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|  1.03k|                     Args&&... args) {
   54|  1.03k|  return std::get<condition>(std::forward_as_tuple(
   55|  1.03k|      std::forward<FalseFunc>(false_func), std::forward<TrueFunc>(true_func)))(
   56|  1.03k|      std::forward<Args>(args)...);
   57|  1.03k|}

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

_ZN16protobuf_mutator7Mutator4SeedEj:
  622|  10.0k|void Mutator::Seed(uint32_t value) { random_.seed(value); }
_ZN16protobuf_mutator7Mutator3FixEPN6google8protobuf7MessageE:
  624|  10.0k|void Mutator::Fix(Message* message) {
  625|  10.0k|  UnpackedAny any;
  626|  10.0k|  UnpackAny(*message, &any);
  627|       |
  628|  10.0k|  PostProcessing(keep_initialized_, post_processors_, any, &random_)
  629|  10.0k|      .Run(message, kMaxInitializeDepth);
  630|       |  assert(IsInitialized(*message));
  631|  10.0k|}
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|  93.0k|void UnpackAny(const Message& message, UnpackedAny* result) {
  400|  93.0k|  if (std::unique_ptr<Message> any = UnpackIfAny(message)) {
  ------------------
  |  Branch (400:32): [True: 0, False: 93.0k]
  ------------------
  401|      0|    UnpackAny(*any, result);
  402|      0|    result->emplace(&message, std::move(any));
  403|      0|    return;
  404|      0|  }
  405|       |
  406|  93.0k|  const Descriptor* descriptor = message.GetDescriptor();
  407|  93.0k|  const Reflection* reflection = message.GetReflection();
  408|       |
  409|   513k|  for (int i = 0; i < descriptor->field_count(); ++i) {
  ------------------
  |  Branch (409:19): [True: 420k, False: 93.0k]
  ------------------
  410|   420k|    const FieldDescriptor* field = descriptor->field(i);
  411|   420k|    if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) {
  ------------------
  |  Branch (411:9): [True: 41.9k, False: 378k]
  ------------------
  412|  41.9k|      if (field->is_repeated()) {
  ------------------
  |  Branch (412:11): [True: 17.3k, False: 24.6k]
  ------------------
  413|  17.3k|        const int field_size = reflection->FieldSize(message, field);
  414|  90.9k|        for (int j = 0; j < field_size; ++j) {
  ------------------
  |  Branch (414:25): [True: 73.6k, False: 17.3k]
  ------------------
  415|  73.6k|          UnpackAny(reflection->GetRepeatedMessage(message, field, j), result);
  416|  73.6k|        }
  417|  24.6k|      } else if (reflection->HasField(message, field)) {
  ------------------
  |  Branch (417:18): [True: 9.38k, False: 15.2k]
  ------------------
  418|  9.38k|        UnpackAny(reflection->GetMessage(message, field), result);
  419|  9.38k|      }
  420|  41.9k|    }
  421|   420k|  }
  422|  93.0k|}
mutator.cc:_ZN16protobuf_mutator12_GLOBAL__N_111UnpackIfAnyERKN6google8protobuf7MessageE:
  394|  93.0k|std::unique_ptr<Message> UnpackIfAny(const Message& message) {
  395|  93.0k|  if (const Any* any = CastToAny(&message)) return UnpackAny(*any);
  ------------------
  |  Branch (395:18): [True: 0, False: 93.0k]
  ------------------
  396|  93.0k|  return {};
  397|  93.0k|}
mutator.cc:_ZN16protobuf_mutator12_GLOBAL__N_19CastToAnyEPKN6google8protobuf7MessageE:
  382|  93.0k|const Any* CastToAny(const Message* message) {
  383|  93.0k|  return Any::descriptor() == message->GetDescriptor()
  ------------------
  |  Branch (383:10): [True: 0, False: 93.0k]
  ------------------
  384|  93.0k|             ? protobuf::DownCastMessage<Any>(message)
  385|  93.0k|             : nullptr;
  386|  93.0k|}
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|  10.0k|      : keep_initialized_(keep_initialized),
  432|  10.0k|        post_processors_(post_processors),
  433|  10.0k|        any_(any),
  434|  10.0k|        random_(random) {}
mutator.cc:_ZN16protobuf_mutator12_GLOBAL__N_114PostProcessing3RunEPN6google8protobuf7MessageEi:
  436|  93.0k|  void Run(Message* message, int max_depth) {
  437|  93.0k|    --max_depth;
  438|  93.0k|    const Descriptor* descriptor = message->GetDescriptor();
  439|       |
  440|       |    // Apply custom mutators in nested messages before packing any.
  441|  93.0k|    const Reflection* reflection = message->GetReflection();
  442|   513k|    for (int i = 0; i < descriptor->field_count(); i++) {
  ------------------
  |  Branch (442:21): [True: 420k, False: 93.0k]
  ------------------
  443|   420k|      const FieldDescriptor* field = descriptor->field(i);
  444|   420k|      if (keep_initialized_ &&
  ------------------
  |  Branch (444:11): [True: 420k, False: 0]
  ------------------
  445|   420k|          (field->is_required() || descriptor->options().map_entry()) &&
  ------------------
  |  Branch (445:12): [True: 0, False: 420k]
  |  Branch (445:36): [True: 0, False: 420k]
  ------------------
  446|      0|          !reflection->HasField(*message, field)) {
  ------------------
  |  Branch (446:11): [True: 0, False: 0]
  ------------------
  447|      0|        CreateDefaultField()(FieldInstance(message, field));
  448|      0|      }
  449|       |
  450|   420k|      if (field->cpp_type() != FieldDescriptor::CPPTYPE_MESSAGE) continue;
  ------------------
  |  Branch (450:11): [True: 378k, False: 41.9k]
  ------------------
  451|       |
  452|  41.9k|      if (max_depth < 0 && !field->is_required()) {
  ------------------
  |  Branch (452:11): [True: 0, False: 41.9k]
  |  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|  41.9k|      if (field->is_repeated()) {
  ------------------
  |  Branch (462:11): [True: 17.3k, False: 24.6k]
  ------------------
  463|  17.3k|        const int field_size = reflection->FieldSize(*message, field);
  464|  90.9k|        for (int j = 0; j < field_size; ++j) {
  ------------------
  |  Branch (464:25): [True: 73.6k, False: 17.3k]
  ------------------
  465|  73.6k|          Message* nested_message =
  466|  73.6k|              reflection->MutableRepeatedMessage(message, field, j);
  467|  73.6k|          Run(nested_message, max_depth);
  468|  73.6k|        }
  469|  24.6k|      } else if (reflection->HasField(*message, field)) {
  ------------------
  |  Branch (469:18): [True: 9.38k, False: 15.2k]
  ------------------
  470|  9.38k|        Message* nested_message = reflection->MutableMessage(message, field);
  471|  9.38k|        Run(nested_message, max_depth);
  472|  9.38k|      }
  473|  41.9k|    }
  474|       |
  475|  93.0k|    if (Any* any = CastToAny(message)) {
  ------------------
  |  Branch (475:14): [True: 0, False: 93.0k]
  ------------------
  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|  93.0k|    auto range = post_processors_.equal_range(descriptor);
  492|  93.0k|    for (auto it = range.first; it != range.second; ++it)
  ------------------
  |  Branch (492:33): [True: 0, False: 93.0k]
  ------------------
  493|      0|      it->second(message, (*random_)());
  494|  93.0k|  }
mutator.cc:_ZN16protobuf_mutator12_GLOBAL__N_19CastToAnyEPN6google8protobuf7MessageE:
  388|  93.0k|Any* CastToAny(Message* message) {
  389|  93.0k|  return Any::descriptor() == message->GetDescriptor()
  ------------------
  |  Branch (389:10): [True: 0, False: 93.0k]
  ------------------
  390|  93.0k|             ? protobuf::DownCastMessage<Any>(message)
  391|  93.0k|             : nullptr;
  392|  93.0k|}

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

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

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

nghttp2_frame_pack_frame_hd:
   37|  22.6k|void nghttp2_frame_pack_frame_hd(uint8_t *buf, const nghttp2_frame_hd *hd) {
   38|  22.6k|  nghttp2_put_uint32be(&buf[0], (uint32_t)(hd->length << 8));
   39|  22.6k|  buf[3] = hd->type;
   40|  22.6k|  buf[4] = hd->flags;
   41|  22.6k|  nghttp2_put_uint32be(&buf[5], (uint32_t)hd->stream_id);
   42|       |  /* ignore hd->reserved for now */
   43|  22.6k|}
nghttp2_frame_unpack_frame_hd:
   45|  8.51k|void nghttp2_frame_unpack_frame_hd(nghttp2_frame_hd *hd, const uint8_t *buf) {
   46|  8.51k|  hd->length = nghttp2_get_uint32(&buf[0]) >> 8;
   47|  8.51k|  hd->type = buf[3];
   48|  8.51k|  hd->flags = buf[4];
   49|  8.51k|  hd->stream_id = nghttp2_get_uint32(&buf[5]) & NGHTTP2_STREAM_ID_MASK;
  ------------------
  |  |   36|  8.51k|#define NGHTTP2_STREAM_ID_MASK ((1u << 31) - 1)
  ------------------
   50|  8.51k|  hd->reserved = 0;
   51|  8.51k|}
nghttp2_frame_hd_init:
   54|  24.6k|                           uint8_t flags, int32_t stream_id) {
   55|  24.6k|  hd->length = length;
   56|  24.6k|  hd->type = type;
   57|  24.6k|  hd->flags = flags;
   58|  24.6k|  hd->stream_id = stream_id;
   59|  24.6k|  hd->reserved = 0;
   60|  24.6k|}
nghttp2_frame_headers_init:
   65|  4.38k|                                nghttp2_nv *nva, size_t nvlen) {
   66|  4.38k|  nghttp2_frame_hd_init(&frame->hd, 0, NGHTTP2_HEADERS, flags, stream_id);
   67|  4.38k|  frame->padlen = 0;
   68|  4.38k|  frame->nva = nva;
   69|  4.38k|  frame->nvlen = nvlen;
   70|  4.38k|  frame->cat = cat;
   71|       |
   72|  4.38k|  if (pri_spec) {
  ------------------
  |  Branch (72:7): [True: 0, False: 4.38k]
  ------------------
   73|      0|    frame->pri_spec = *pri_spec;
   74|  4.38k|  } else {
   75|  4.38k|    nghttp2_priority_spec_default_init(&frame->pri_spec);
   76|  4.38k|  }
   77|  4.38k|}
nghttp2_frame_headers_free:
   79|  6.68k|void nghttp2_frame_headers_free(nghttp2_headers *frame, nghttp2_mem *mem) {
   80|  6.68k|  nghttp2_nv_array_del(frame->nva, mem);
   81|  6.68k|}
nghttp2_frame_priority_free:
   90|      7|void nghttp2_frame_priority_free(nghttp2_priority *frame) { (void)frame; }
nghttp2_frame_rst_stream_init:
   93|  4.45k|                                   uint32_t error_code) {
   94|  4.45k|  nghttp2_frame_hd_init(&frame->hd, 4, NGHTTP2_RST_STREAM, NGHTTP2_FLAG_NONE,
   95|  4.45k|                        stream_id);
   96|  4.45k|  frame->error_code = error_code;
   97|  4.45k|}
nghttp2_frame_rst_stream_free:
   99|  4.52k|void nghttp2_frame_rst_stream_free(nghttp2_rst_stream *frame) { (void)frame; }
nghttp2_frame_settings_init:
  102|  8.49k|                                 nghttp2_settings_entry *iv, size_t niv) {
  103|  8.49k|  nghttp2_frame_hd_init(&frame->hd, niv * NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH,
  ------------------
  |  |   61|  8.49k|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
  104|  8.49k|                        NGHTTP2_SETTINGS, flags, 0);
  105|  8.49k|  frame->niv = niv;
  106|  8.49k|  frame->iv = iv;
  107|  8.49k|}
nghttp2_frame_settings_free:
  109|  13.0k|void nghttp2_frame_settings_free(nghttp2_settings *frame, nghttp2_mem *mem) {
  110|  13.0k|  nghttp2_mem_free(mem, frame->iv);
  111|  13.0k|}
nghttp2_frame_push_promise_free:
  126|    261|                                     nghttp2_mem *mem) {
  127|    261|  nghttp2_nv_array_del(frame->nva, mem);
  128|    261|}
nghttp2_frame_ping_init:
  131|     36|                             const uint8_t *opaque_data) {
  132|     36|  nghttp2_frame_hd_init(&frame->hd, 8, NGHTTP2_PING, flags, 0);
  133|     36|  if (opaque_data) {
  ------------------
  |  Branch (133:7): [True: 36, False: 0]
  ------------------
  134|     36|    memcpy(frame->opaque_data, opaque_data, sizeof(frame->opaque_data));
  135|     36|  } else {
  136|      0|    memset(frame->opaque_data, 0, sizeof(frame->opaque_data));
  137|      0|  }
  138|     36|}
nghttp2_frame_ping_free:
  140|    103|void nghttp2_frame_ping_free(nghttp2_ping *frame) { (void)frame; }
nghttp2_frame_goaway_init:
  144|  2.18k|                               size_t opaque_data_len) {
  145|  2.18k|  nghttp2_frame_hd_init(&frame->hd, 8 + opaque_data_len, NGHTTP2_GOAWAY,
  146|  2.18k|                        NGHTTP2_FLAG_NONE, 0);
  147|  2.18k|  frame->last_stream_id = last_stream_id;
  148|  2.18k|  frame->error_code = error_code;
  149|  2.18k|  frame->opaque_data = opaque_data;
  150|  2.18k|  frame->opaque_data_len = opaque_data_len;
  151|  2.18k|  frame->reserved = 0;
  152|  2.18k|}
nghttp2_frame_goaway_free:
  154|  2.30k|void nghttp2_frame_goaway_free(nghttp2_goaway *frame, nghttp2_mem *mem) {
  155|  2.30k|  nghttp2_mem_free(mem, frame->opaque_data);
  156|  2.30k|}
nghttp2_frame_window_update_init:
  160|  4.50k|                                      int32_t window_size_increment) {
  161|  4.50k|  nghttp2_frame_hd_init(&frame->hd, 4, NGHTTP2_WINDOW_UPDATE, flags, stream_id);
  162|  4.50k|  frame->window_size_increment = window_size_increment;
  163|  4.50k|  frame->reserved = 0;
  164|  4.50k|}
nghttp2_frame_window_update_free:
  166|  4.70k|void nghttp2_frame_window_update_free(nghttp2_window_update *frame) {
  167|  4.70k|  (void)frame;
  168|  4.70k|}
nghttp2_frame_trail_padlen:
  170|  12.6k|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|  12.6k|  if (padlen == 0) {
  ------------------
  |  Branch (175:7): [True: 12.1k, False: 528]
  ------------------
  176|  12.1k|    return 0;
  177|  12.1k|  }
  178|    528|  return padlen - ((frame->hd.flags & NGHTTP2_FLAG_PADDED) > 0);
  179|  12.6k|}
nghttp2_frame_data_init:
  182|    600|                             int32_t stream_id) {
  183|       |  /* At this moment, the length of DATA frame is unknown */
  184|    600|  nghttp2_frame_hd_init(&frame->hd, 0, NGHTTP2_DATA, flags, stream_id);
  185|    600|  frame->padlen = 0;
  186|    600|}
nghttp2_frame_data_free:
  188|    600|void nghttp2_frame_data_free(nghttp2_data *frame) { (void)frame; }
nghttp2_frame_priority_len:
  281|  6.67k|size_t nghttp2_frame_priority_len(uint8_t flags) {
  282|  6.67k|  if (flags & NGHTTP2_FLAG_PRIORITY) {
  ------------------
  |  Branch (282:7): [True: 1.25k, False: 5.41k]
  ------------------
  283|  1.25k|    return NGHTTP2_PRIORITY_SPECLEN;
  ------------------
  |  |   64|  1.25k|#define NGHTTP2_PRIORITY_SPECLEN 5
  ------------------
  284|  1.25k|  }
  285|       |
  286|  5.41k|  return 0;
  287|  6.67k|}
nghttp2_frame_headers_payload_nv_offset:
  289|  4.38k|size_t nghttp2_frame_headers_payload_nv_offset(nghttp2_headers *frame) {
  290|  4.38k|  return nghttp2_frame_priority_len(frame->hd.flags);
  291|  4.38k|}
nghttp2_frame_pack_headers:
  362|  4.38k|                               nghttp2_hd_deflater *deflater) {
  363|  4.38k|  size_t nv_offset;
  364|  4.38k|  int rv;
  365|  4.38k|  nghttp2_buf *buf;
  366|       |
  367|  4.38k|  assert(bufs->head == bufs->cur);
  ------------------
  |  Branch (367:3): [True: 0, False: 4.38k]
  |  Branch (367:3): [True: 4.38k, False: 0]
  ------------------
  368|       |
  369|  4.38k|  nv_offset = nghttp2_frame_headers_payload_nv_offset(frame);
  370|       |
  371|  4.38k|  buf = &bufs->cur->buf;
  372|       |
  373|  4.38k|  buf->pos += nv_offset;
  374|  4.38k|  buf->last = buf->pos;
  375|       |
  376|       |  /* This call will adjust buf->last to the correct position */
  377|  4.38k|  rv = nghttp2_hd_deflate_hd_bufs(deflater, bufs, frame->nva, frame->nvlen);
  378|       |
  379|  4.38k|  if (rv == NGHTTP2_ERR_BUFFER_ERROR) {
  ------------------
  |  Branch (379:7): [True: 0, False: 4.38k]
  ------------------
  380|      0|    rv = NGHTTP2_ERR_HEADER_COMP;
  381|      0|  }
  382|       |
  383|  4.38k|  buf->pos -= nv_offset;
  384|       |
  385|  4.38k|  if (rv != 0) {
  ------------------
  |  Branch (385:7): [True: 0, False: 4.38k]
  ------------------
  386|      0|    return rv;
  387|      0|  }
  388|       |
  389|  4.38k|  if (frame->hd.flags & NGHTTP2_FLAG_PRIORITY) {
  ------------------
  |  Branch (389:7): [True: 0, False: 4.38k]
  ------------------
  390|      0|    nghttp2_frame_pack_priority_spec(buf->pos, &frame->pri_spec);
  391|      0|  }
  392|       |
  393|  4.38k|  frame->padlen = 0;
  394|  4.38k|  frame->hd.length = nghttp2_bufs_len(bufs);
  395|       |
  396|  4.38k|  return frame_pack_headers_shared(bufs, &frame->hd);
  397|  4.38k|}
nghttp2_frame_unpack_priority_spec:
  409|  1.24k|                                        const uint8_t *payload) {
  410|  1.24k|  int32_t dep_stream_id;
  411|  1.24k|  uint8_t exclusive;
  412|  1.24k|  int32_t weight;
  413|       |
  414|  1.24k|  dep_stream_id = nghttp2_get_uint32(payload) & NGHTTP2_STREAM_ID_MASK;
  ------------------
  |  |   36|  1.24k|#define NGHTTP2_STREAM_ID_MASK ((1u << 31) - 1)
  ------------------
  415|  1.24k|  exclusive = (payload[0] & 0x80) > 0;
  416|  1.24k|  weight = payload[4] + 1;
  417|       |
  418|  1.24k|  nghttp2_priority_spec_init(pri_spec, dep_stream_id, weight, exclusive);
  419|  1.24k|}
nghttp2_frame_unpack_headers_payload:
  422|  2.28k|                                          const uint8_t *payload) {
  423|  2.28k|  if (frame->hd.flags & NGHTTP2_FLAG_PRIORITY) {
  ------------------
  |  Branch (423:7): [True: 1.24k, False: 1.03k]
  ------------------
  424|  1.24k|    nghttp2_frame_unpack_priority_spec(&frame->pri_spec, payload);
  425|  1.24k|  } else {
  426|  1.03k|    nghttp2_priority_spec_default_init(&frame->pri_spec);
  427|  1.03k|  }
  428|       |
  429|       |  frame->nva = NULL;
  430|  2.28k|  frame->nvlen = 0;
  431|  2.28k|}
nghttp2_frame_pack_rst_stream:
  457|  2.99k|                                   nghttp2_rst_stream *frame) {
  458|  2.99k|  nghttp2_buf *buf;
  459|       |
  460|  2.99k|  assert(bufs->head == bufs->cur);
  ------------------
  |  Branch (460:3): [True: 0, False: 2.99k]
  |  Branch (460:3): [True: 2.99k, False: 0]
  ------------------
  461|       |
  462|  2.99k|  buf = &bufs->head->buf;
  463|       |
  464|  2.99k|  assert(nghttp2_buf_avail(buf) >= 4);
  ------------------
  |  Branch (464:3): [True: 0, False: 2.99k]
  |  Branch (464:3): [True: 2.99k, False: 0]
  ------------------
  465|       |
  466|  2.99k|  buf->pos -= NGHTTP2_FRAME_HDLEN;
  ------------------
  |  |   40|  2.99k|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
  467|       |
  468|  2.99k|  nghttp2_frame_pack_frame_hd(buf->pos, &frame->hd);
  469|       |
  470|  2.99k|  nghttp2_put_uint32be(buf->last, frame->error_code);
  471|  2.99k|  buf->last += 4;
  472|  2.99k|}
nghttp2_frame_unpack_rst_stream_payload:
  475|     62|                                             const uint8_t *payload) {
  476|     62|  frame->error_code = nghttp2_get_uint32(payload);
  477|     62|}
nghttp2_frame_pack_settings:
  479|  7.76k|int nghttp2_frame_pack_settings(nghttp2_bufs *bufs, nghttp2_settings *frame) {
  480|  7.76k|  nghttp2_buf *buf;
  481|       |
  482|  7.76k|  assert(bufs->head == bufs->cur);
  ------------------
  |  Branch (482:3): [True: 0, False: 7.76k]
  |  Branch (482:3): [True: 7.76k, False: 0]
  ------------------
  483|       |
  484|  7.76k|  buf = &bufs->head->buf;
  485|       |
  486|  7.76k|  if (nghttp2_buf_avail(buf) < frame->hd.length) {
  ------------------
  |  |   55|  7.76k|#define nghttp2_buf_avail(BUF) ((size_t)((BUF)->end - (BUF)->last))
  ------------------
  |  Branch (486:7): [True: 0, False: 7.76k]
  ------------------
  487|      0|    return NGHTTP2_ERR_FRAME_SIZE_ERROR;
  488|      0|  }
  489|       |
  490|  7.76k|  buf->pos -= NGHTTP2_FRAME_HDLEN;
  ------------------
  |  |   40|  7.76k|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
  491|       |
  492|  7.76k|  nghttp2_frame_pack_frame_hd(buf->pos, &frame->hd);
  493|       |
  494|  7.76k|  buf->last +=
  495|  7.76k|    nghttp2_frame_pack_settings_payload(buf->last, frame->iv, frame->niv);
  496|       |
  497|  7.76k|  return 0;
  498|  7.76k|}
nghttp2_frame_pack_settings_payload:
  502|  8.11k|                                           size_t niv) {
  503|  8.11k|  size_t i;
  504|  22.4k|  for (i = 0; i < niv; ++i, buf += NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH) {
  ------------------
  |  |   61|  14.2k|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
  |  Branch (504:15): [True: 14.2k, False: 8.11k]
  ------------------
  505|  14.2k|    nghttp2_put_uint16be(buf, (uint16_t)iv[i].settings_id);
  506|  14.2k|    nghttp2_put_uint32be(buf + 2, iv[i].value);
  507|  14.2k|  }
  508|  8.11k|  return NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH * niv;
  ------------------
  |  |   61|  8.11k|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
  509|  8.11k|}
nghttp2_frame_unpack_settings_payload:
  513|  4.43k|                                           size_t niv) {
  514|  4.43k|  frame->iv = iv;
  515|  4.43k|  frame->niv = niv;
  516|  4.43k|}
nghttp2_frame_unpack_settings_entry:
  519|  5.57k|                                         const uint8_t *payload) {
  520|  5.57k|  iv->settings_id = nghttp2_get_uint16(&payload[0]);
  521|  5.57k|  iv->value = nghttp2_get_uint32(&payload[2]);
  522|  5.57k|}
nghttp2_frame_unpack_settings_payload2:
  528|     19|                                           nghttp2_mem *mem) {
  529|     19|  size_t i;
  530|       |
  531|     19|  *niv_ptr = payloadlen / NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH;
  ------------------
  |  |   61|     19|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
  532|       |
  533|     19|  if (*niv_ptr == 0) {
  ------------------
  |  Branch (533:7): [True: 0, False: 19]
  ------------------
  534|      0|    *iv_ptr = NULL;
  535|       |
  536|      0|    return 0;
  537|      0|  }
  538|       |
  539|     19|  *iv_ptr =
  540|     19|    nghttp2_mem_malloc(mem, (*niv_ptr) * sizeof(nghttp2_settings_entry));
  541|       |
  542|     19|  if (*iv_ptr == NULL) {
  ------------------
  |  Branch (542:7): [True: 0, False: 19]
  ------------------
  543|      0|    return NGHTTP2_ERR_NOMEM;
  544|      0|  }
  545|       |
  546|     76|  for (i = 0; i < *niv_ptr; ++i) {
  ------------------
  |  Branch (546:15): [True: 57, False: 19]
  ------------------
  547|     57|    size_t off = i * NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH;
  ------------------
  |  |   61|     57|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
  548|     57|    nghttp2_frame_unpack_settings_entry(&(*iv_ptr)[i], &payload[off]);
  549|     57|  }
  550|       |
  551|     19|  return 0;
  552|     19|}
nghttp2_frame_unpack_push_promise_payload:
  590|    252|                                               const uint8_t *payload) {
  591|    252|  frame->promised_stream_id =
  592|    252|    nghttp2_get_uint32(payload) & NGHTTP2_STREAM_ID_MASK;
  ------------------
  |  |   36|    252|#define NGHTTP2_STREAM_ID_MASK ((1u << 31) - 1)
  ------------------
  593|       |  frame->nva = NULL;
  594|    252|  frame->nvlen = 0;
  595|    252|}
nghttp2_frame_pack_ping:
  597|     13|void nghttp2_frame_pack_ping(nghttp2_bufs *bufs, nghttp2_ping *frame) {
  598|     13|  nghttp2_buf *buf;
  599|       |
  600|     13|  assert(bufs->head == bufs->cur);
  ------------------
  |  Branch (600:3): [True: 0, False: 13]
  |  Branch (600:3): [True: 13, False: 0]
  ------------------
  601|       |
  602|     13|  buf = &bufs->head->buf;
  603|       |
  604|     13|  assert(nghttp2_buf_avail(buf) >= 8);
  ------------------
  |  Branch (604:3): [True: 0, False: 13]
  |  Branch (604:3): [True: 13, False: 0]
  ------------------
  605|       |
  606|     13|  buf->pos -= NGHTTP2_FRAME_HDLEN;
  ------------------
  |  |   40|     13|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
  607|       |
  608|     13|  nghttp2_frame_pack_frame_hd(buf->pos, &frame->hd);
  609|       |
  610|     13|  buf->last =
  611|     13|    nghttp2_cpymem(buf->last, frame->opaque_data, sizeof(frame->opaque_data));
  612|     13|}
nghttp2_frame_unpack_ping_payload:
  615|     62|                                       const uint8_t *payload) {
  616|     62|  memcpy(frame->opaque_data, payload, sizeof(frame->opaque_data));
  617|     62|}
nghttp2_frame_pack_goaway:
  619|  2.13k|int nghttp2_frame_pack_goaway(nghttp2_bufs *bufs, nghttp2_goaway *frame) {
  620|  2.13k|  int rv;
  621|  2.13k|  nghttp2_buf *buf;
  622|       |
  623|  2.13k|  assert(bufs->head == bufs->cur);
  ------------------
  |  Branch (623:3): [True: 0, False: 2.13k]
  |  Branch (623:3): [True: 2.13k, False: 0]
  ------------------
  624|       |
  625|  2.13k|  buf = &bufs->head->buf;
  626|       |
  627|  2.13k|  buf->pos -= NGHTTP2_FRAME_HDLEN;
  ------------------
  |  |   40|  2.13k|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
  628|       |
  629|  2.13k|  nghttp2_frame_pack_frame_hd(buf->pos, &frame->hd);
  630|       |
  631|  2.13k|  nghttp2_put_uint32be(buf->last, (uint32_t)frame->last_stream_id);
  632|  2.13k|  buf->last += 4;
  633|       |
  634|  2.13k|  nghttp2_put_uint32be(buf->last, frame->error_code);
  635|  2.13k|  buf->last += 4;
  636|       |
  637|  2.13k|  rv = nghttp2_bufs_add(bufs, frame->opaque_data, frame->opaque_data_len);
  638|       |
  639|  2.13k|  if (rv == NGHTTP2_ERR_BUFFER_ERROR) {
  ------------------
  |  Branch (639:7): [True: 0, False: 2.13k]
  ------------------
  640|      0|    return NGHTTP2_ERR_FRAME_SIZE_ERROR;
  641|      0|  }
  642|       |
  643|  2.13k|  if (rv != 0) {
  ------------------
  |  Branch (643:7): [True: 0, False: 2.13k]
  ------------------
  644|      0|    return rv;
  645|      0|  }
  646|       |
  647|  2.13k|  return 0;
  648|  2.13k|}
nghttp2_frame_unpack_goaway_payload:
  653|    106|                                         size_t var_gift_payloadlen) {
  654|    106|  frame->last_stream_id = nghttp2_get_uint32(payload) & NGHTTP2_STREAM_ID_MASK;
  ------------------
  |  |   36|    106|#define NGHTTP2_STREAM_ID_MASK ((1u << 31) - 1)
  ------------------
  655|    106|  frame->error_code = nghttp2_get_uint32(payload + 4);
  656|       |
  657|    106|  frame->opaque_data = var_gift_payload;
  658|    106|  frame->opaque_data_len = var_gift_payloadlen;
  659|    106|}
nghttp2_frame_pack_window_update:
  692|  4.48k|                                      nghttp2_window_update *frame) {
  693|  4.48k|  nghttp2_buf *buf;
  694|       |
  695|  4.48k|  assert(bufs->head == bufs->cur);
  ------------------
  |  Branch (695:3): [True: 0, False: 4.48k]
  |  Branch (695:3): [True: 4.48k, False: 0]
  ------------------
  696|       |
  697|  4.48k|  buf = &bufs->head->buf;
  698|       |
  699|  4.48k|  assert(nghttp2_buf_avail(buf) >= 4);
  ------------------
  |  Branch (699:3): [True: 0, False: 4.48k]
  |  Branch (699:3): [True: 4.48k, False: 0]
  ------------------
  700|       |
  701|  4.48k|  buf->pos -= NGHTTP2_FRAME_HDLEN;
  ------------------
  |  |   40|  4.48k|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
  702|       |
  703|  4.48k|  nghttp2_frame_pack_frame_hd(buf->pos, &frame->hd);
  704|       |
  705|  4.48k|  nghttp2_put_uint32be(buf->last, (uint32_t)frame->window_size_increment);
  706|  4.48k|  buf->last += 4;
  707|  4.48k|}
nghttp2_frame_unpack_window_update_payload:
  710|    191|                                                const uint8_t *payload) {
  711|    191|  frame->window_size_increment =
  712|    191|    nghttp2_get_uint32(payload) & NGHTTP2_WINDOW_SIZE_INCREMENT_MASK;
  ------------------
  |  |   37|    191|#define NGHTTP2_WINDOW_SIZE_INCREMENT_MASK ((1u << 31) - 1)
  ------------------
  713|    191|}
nghttp2_frame_iv_copy:
  951|  8.82k|                                              size_t niv, nghttp2_mem *mem) {
  952|  8.82k|  nghttp2_settings_entry *iv_copy;
  953|  8.82k|  size_t len = niv * sizeof(nghttp2_settings_entry);
  954|       |
  955|  8.82k|  if (len == 0) {
  ------------------
  |  Branch (955:7): [True: 0, False: 8.82k]
  ------------------
  956|      0|    return NULL;
  957|      0|  }
  958|       |
  959|  8.82k|  iv_copy = nghttp2_mem_malloc(mem, len);
  960|       |
  961|  8.82k|  if (iv_copy == NULL) {
  ------------------
  |  Branch (961:7): [True: 0, False: 8.82k]
  ------------------
  962|      0|    return NULL;
  963|      0|  }
  964|       |
  965|  8.82k|  memcpy(iv_copy, iv, len);
  966|       |
  967|  8.82k|  return iv_copy;
  968|  8.82k|}
nghttp2_nv_array_del:
  992|  6.94k|void nghttp2_nv_array_del(nghttp2_nv *nva, nghttp2_mem *mem) {
  993|  6.94k|  nghttp2_mem_free(mem, nva);
  994|  6.94k|}
nghttp2_nv_array_copy:
 1046|  4.38k|                          size_t nvlen, nghttp2_mem *mem) {
 1047|  4.38k|  size_t i;
 1048|  4.38k|  uint8_t *data = NULL;
 1049|  4.38k|  size_t buflen = 0;
 1050|  4.38k|  nghttp2_nv *p;
 1051|       |
 1052|  4.38k|  if (nvlen == 0) {
  ------------------
  |  Branch (1052:7): [True: 0, False: 4.38k]
  ------------------
 1053|      0|    *nva_ptr = NULL;
 1054|       |
 1055|      0|    return 0;
 1056|      0|  }
 1057|       |
 1058|  66.6k|  for (i = 0; i < nvlen; ++i) {
  ------------------
  |  Branch (1058:15): [True: 62.2k, False: 4.38k]
  ------------------
 1059|       |    /* + 1 for null-termination */
 1060|  62.2k|    if ((nva[i].flags & NGHTTP2_NV_FLAG_NO_COPY_NAME) == 0) {
  ------------------
  |  Branch (1060:9): [True: 62.2k, False: 0]
  ------------------
 1061|  62.2k|      buflen += nva[i].namelen + 1;
 1062|  62.2k|    }
 1063|  62.2k|    if ((nva[i].flags & NGHTTP2_NV_FLAG_NO_COPY_VALUE) == 0) {
  ------------------
  |  Branch (1063:9): [True: 62.2k, False: 0]
  ------------------
 1064|  62.2k|      buflen += nva[i].valuelen + 1;
 1065|  62.2k|    }
 1066|  62.2k|  }
 1067|       |
 1068|  4.38k|  buflen += sizeof(nghttp2_nv) * nvlen;
 1069|       |
 1070|  4.38k|  *nva_ptr = nghttp2_mem_malloc(mem, buflen);
 1071|       |
 1072|  4.38k|  if (*nva_ptr == NULL) {
  ------------------
  |  Branch (1072:7): [True: 0, False: 4.38k]
  ------------------
 1073|      0|    return NGHTTP2_ERR_NOMEM;
 1074|      0|  }
 1075|       |
 1076|  4.38k|  p = *nva_ptr;
 1077|  4.38k|  data = (uint8_t *)(*nva_ptr) + sizeof(nghttp2_nv) * nvlen;
 1078|       |
 1079|  66.6k|  for (i = 0; i < nvlen; ++i) {
  ------------------
  |  Branch (1079:15): [True: 62.2k, False: 4.38k]
  ------------------
 1080|  62.2k|    p->flags = nva[i].flags;
 1081|       |
 1082|  62.2k|    if (nva[i].flags & NGHTTP2_NV_FLAG_NO_COPY_NAME) {
  ------------------
  |  Branch (1082:9): [True: 0, False: 62.2k]
  ------------------
 1083|      0|      p->name = nva[i].name;
 1084|      0|      p->namelen = nva[i].namelen;
 1085|  62.2k|    } else {
 1086|  62.2k|      if (nva[i].namelen) {
  ------------------
  |  Branch (1086:11): [True: 61.5k, False: 752]
  ------------------
 1087|  61.5k|        memcpy(data, nva[i].name, nva[i].namelen);
 1088|  61.5k|      }
 1089|  62.2k|      p->name = data;
 1090|  62.2k|      p->namelen = nva[i].namelen;
 1091|  62.2k|      data[p->namelen] = '\0';
 1092|  62.2k|      nghttp2_downcase(p->name, p->namelen);
 1093|  62.2k|      data += nva[i].namelen + 1;
 1094|  62.2k|    }
 1095|       |
 1096|  62.2k|    if (nva[i].flags & NGHTTP2_NV_FLAG_NO_COPY_VALUE) {
  ------------------
  |  Branch (1096:9): [True: 0, False: 62.2k]
  ------------------
 1097|      0|      p->value = nva[i].value;
 1098|      0|      p->valuelen = nva[i].valuelen;
 1099|  62.2k|    } else {
 1100|  62.2k|      if (nva[i].valuelen) {
  ------------------
  |  Branch (1100:11): [True: 54.4k, False: 7.83k]
  ------------------
 1101|  54.4k|        memcpy(data, nva[i].value, nva[i].valuelen);
 1102|  54.4k|      }
 1103|  62.2k|      p->value = data;
 1104|  62.2k|      p->valuelen = nva[i].valuelen;
 1105|  62.2k|      data[p->valuelen] = '\0';
 1106|  62.2k|      data += nva[i].valuelen + 1;
 1107|  62.2k|    }
 1108|       |
 1109|  62.2k|    ++p;
 1110|  62.2k|  }
 1111|  4.38k|  return 0;
 1112|  4.38k|}
nghttp2_iv_check:
 1114|  8.84k|int nghttp2_iv_check(const nghttp2_settings_entry *iv, size_t niv) {
 1115|  8.84k|  size_t i;
 1116|  23.1k|  for (i = 0; i < niv; ++i) {
  ------------------
  |  Branch (1116:15): [True: 14.2k, False: 8.84k]
  ------------------
 1117|  14.2k|    switch (iv[i].settings_id) {
  ------------------
  |  Branch (1117:13): [True: 14.2k, False: 0]
  ------------------
 1118|      0|    case NGHTTP2_SETTINGS_HEADER_TABLE_SIZE:
  ------------------
  |  Branch (1118:5): [True: 0, False: 14.2k]
  ------------------
 1119|      0|      break;
 1120|  4.76k|    case NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS:
  ------------------
  |  Branch (1120:5): [True: 4.76k, False: 9.52k]
  ------------------
 1121|  4.76k|      break;
 1122|  4.76k|    case NGHTTP2_SETTINGS_ENABLE_PUSH:
  ------------------
  |  Branch (1122:5): [True: 4.76k, False: 9.52k]
  ------------------
 1123|  4.76k|      if (iv[i].value != 0 && iv[i].value != 1) {
  ------------------
  |  Branch (1123:11): [True: 0, False: 4.76k]
  |  Branch (1123:31): [True: 0, False: 0]
  ------------------
 1124|      0|        return 0;
 1125|      0|      }
 1126|  4.76k|      break;
 1127|  4.76k|    case NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE:
  ------------------
  |  Branch (1127:5): [True: 4.76k, False: 9.52k]
  ------------------
 1128|  4.76k|      if (iv[i].value > (uint32_t)NGHTTP2_MAX_WINDOW_SIZE) {
  ------------------
  |  |  224|  4.76k|#define NGHTTP2_MAX_WINDOW_SIZE ((int32_t)((1U << 31) - 1))
  ------------------
  |  Branch (1128:11): [True: 0, False: 4.76k]
  ------------------
 1129|      0|        return 0;
 1130|      0|      }
 1131|  4.76k|      break;
 1132|  4.76k|    case NGHTTP2_SETTINGS_MAX_FRAME_SIZE:
  ------------------
  |  Branch (1132:5): [True: 0, False: 14.2k]
  ------------------
 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: 14.2k]
  ------------------
 1139|      0|      break;
 1140|      0|    case NGHTTP2_SETTINGS_ENABLE_CONNECT_PROTOCOL:
  ------------------
  |  Branch (1140:5): [True: 0, False: 14.2k]
  ------------------
 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: 14.2k]
  ------------------
 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|  14.2k|    }
 1151|  14.2k|  }
 1152|  8.84k|  return 1;
 1153|  8.84k|}
nghttp2_frame_add_pad:
 1185|  5.15k|                           size_t padlen, int framehd_only) {
 1186|  5.15k|  nghttp2_buf *buf;
 1187|       |
 1188|  5.15k|  if (padlen == 0) {
  ------------------
  |  Branch (1188:7): [True: 5.15k, False: 0]
  ------------------
 1189|  5.15k|    DEBUGF("send: padlen = 0, nothing to do\n");
  ------------------
  |  |   39|  5.15k|    do {                                                                       \
  |  |   40|  5.15k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 5.15k]
  |  |  ------------------
  ------------------
 1190|       |
 1191|  5.15k|    return;
 1192|  5.15k|  }
 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|  4.38k|                                     nghttp2_frame_hd *frame_hd) {
  307|  4.38k|  nghttp2_buf *buf;
  308|  4.38k|  nghttp2_buf_chain *ci, *ce;
  309|  4.38k|  nghttp2_frame_hd hd;
  310|       |
  311|  4.38k|  buf = &bufs->head->buf;
  312|       |
  313|  4.38k|  hd = *frame_hd;
  314|  4.38k|  hd.length = nghttp2_buf_len(buf);
  ------------------
  |  |   54|  4.38k|#define nghttp2_buf_len(BUF) ((size_t)((BUF)->last - (BUF)->pos))
  ------------------
  315|       |
  316|  4.38k|  DEBUGF("send: HEADERS/PUSH_PROMISE, payloadlen=%zu\n", hd.length);
  ------------------
  |  |   39|  4.38k|    do {                                                                       \
  |  |   40|  4.38k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 4.38k]
  |  |  ------------------
  ------------------
  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|  4.38k|  if (bufs->head != bufs->cur) {
  ------------------
  |  Branch (321:7): [True: 31, False: 4.34k]
  ------------------
  322|     31|    hd.flags = (uint8_t)(hd.flags & ~NGHTTP2_FLAG_END_HEADERS);
  323|     31|  }
  324|       |
  325|  4.38k|  buf->pos -= NGHTTP2_FRAME_HDLEN;
  ------------------
  |  |   40|  4.38k|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
  326|  4.38k|  nghttp2_frame_pack_frame_hd(buf->pos, &hd);
  327|       |
  328|  4.38k|  if (bufs->head != bufs->cur) {
  ------------------
  |  Branch (328:7): [True: 31, False: 4.34k]
  ------------------
  329|       |    /* 2nd and later frames are CONTINUATION frames. */
  330|     31|    hd.type = NGHTTP2_CONTINUATION;
  331|       |    /* We don't have no flags except for last CONTINUATION */
  332|     31|    hd.flags = NGHTTP2_FLAG_NONE;
  333|       |
  334|     31|    ce = bufs->cur;
  335|       |
  336|     54|    for (ci = bufs->head->next; ci != ce; ci = ci->next) {
  ------------------
  |  Branch (336:33): [True: 23, False: 31]
  ------------------
  337|     23|      buf = &ci->buf;
  338|       |
  339|     23|      hd.length = nghttp2_buf_len(buf);
  ------------------
  |  |   54|     23|#define nghttp2_buf_len(BUF) ((size_t)((BUF)->last - (BUF)->pos))
  ------------------
  340|       |
  341|     23|      DEBUGF("send: int CONTINUATION, payloadlen=%zu\n", hd.length);
  ------------------
  |  |   39|     23|    do {                                                                       \
  |  |   40|     23|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 23]
  |  |  ------------------
  ------------------
  342|       |
  343|     23|      buf->pos -= NGHTTP2_FRAME_HDLEN;
  ------------------
  |  |   40|     23|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
  344|     23|      nghttp2_frame_pack_frame_hd(buf->pos, &hd);
  345|     23|    }
  346|       |
  347|     31|    buf = &ci->buf;
  348|     31|    hd.length = nghttp2_buf_len(buf);
  ------------------
  |  |   54|     31|#define nghttp2_buf_len(BUF) ((size_t)((BUF)->last - (BUF)->pos))
  ------------------
  349|       |    /* Set END_HEADERS flag for last CONTINUATION */
  350|     31|    hd.flags = NGHTTP2_FLAG_END_HEADERS;
  351|       |
  352|     31|    DEBUGF("send: last CONTINUATION, payloadlen=%zu\n", hd.length);
  ------------------
  |  |   39|     31|    do {                                                                       \
  |  |   40|     31|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 31]
  |  |  ------------------
  ------------------
  353|       |
  354|     31|    buf->pos -= NGHTTP2_FRAME_HDLEN;
  ------------------
  |  |   40|     31|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
  355|     31|    nghttp2_frame_pack_frame_hd(buf->pos, &hd);
  356|     31|  }
  357|       |
  358|  4.38k|  return 0;
  359|  4.38k|}

nghttp2_hd_entry_init:
  489|  29.3k|void nghttp2_hd_entry_init(nghttp2_hd_entry *ent, nghttp2_hd_nv *nv) {
  490|  29.3k|  ent->nv = *nv;
  491|  29.3k|  ent->cnv.name = nv->name->base;
  492|  29.3k|  ent->cnv.namelen = nv->name->len;
  493|  29.3k|  ent->cnv.value = nv->value->base;
  494|  29.3k|  ent->cnv.valuelen = nv->value->len;
  495|  29.3k|  ent->cnv.flags = nv->flags;
  496|  29.3k|  ent->next = NULL;
  497|  29.3k|  ent->hash = 0;
  498|       |
  499|  29.3k|  nghttp2_rcbuf_incref(ent->nv.name);
  500|  29.3k|  nghttp2_rcbuf_incref(ent->nv.value);
  501|  29.3k|}
nghttp2_hd_entry_free:
  503|  29.3k|void nghttp2_hd_entry_free(nghttp2_hd_entry *ent) {
  504|  29.3k|  nghttp2_rcbuf_decref(ent->nv.value);
  505|  29.3k|  nghttp2_rcbuf_decref(ent->nv.name);
  506|  29.3k|}
nghttp2_hd_deflate_init2:
  716|  4.41k|                             nghttp2_mem *mem) {
  717|  4.41k|  int rv;
  718|  4.41k|  rv = hd_context_init(&deflater->ctx, mem);
  719|  4.41k|  if (rv != 0) {
  ------------------
  |  Branch (719:7): [True: 0, False: 4.41k]
  ------------------
  720|      0|    return rv;
  721|      0|  }
  722|       |
  723|  4.41k|  hd_map_init(&deflater->map);
  724|       |
  725|  4.41k|  if (max_deflate_dynamic_table_size < NGHTTP2_HD_DEFAULT_MAX_BUFFER_SIZE) {
  ------------------
  |  |   39|  4.41k|#define NGHTTP2_HD_DEFAULT_MAX_BUFFER_SIZE NGHTTP2_DEFAULT_HEADER_TABLE_SIZE
  |  |  ------------------
  |  |  |  |  244|  4.41k|#define NGHTTP2_DEFAULT_HEADER_TABLE_SIZE (1 << 12)
  |  |  ------------------
  ------------------
  |  Branch (725:7): [True: 0, False: 4.41k]
  ------------------
  726|      0|    deflater->notify_table_size_change = 1;
  727|      0|    deflater->ctx.hd_table_bufsize_max = max_deflate_dynamic_table_size;
  728|  4.41k|  } else {
  729|  4.41k|    deflater->notify_table_size_change = 0;
  730|  4.41k|  }
  731|       |
  732|  4.41k|  deflater->deflate_hd_table_bufsize_max = max_deflate_dynamic_table_size;
  733|  4.41k|  deflater->min_hd_table_bufsize_max = UINT32_MAX;
  734|       |
  735|  4.41k|  return 0;
  736|  4.41k|}
nghttp2_hd_inflate_init:
  738|  4.41k|int nghttp2_hd_inflate_init(nghttp2_hd_inflater *inflater, nghttp2_mem *mem) {
  739|  4.41k|  int rv;
  740|       |
  741|  4.41k|  rv = hd_context_init(&inflater->ctx, mem);
  742|  4.41k|  if (rv != 0) {
  ------------------
  |  Branch (742:7): [True: 0, False: 4.41k]
  ------------------
  743|      0|    goto fail;
  744|      0|  }
  745|       |
  746|  4.41k|  inflater->settings_hd_table_bufsize_max = NGHTTP2_HD_DEFAULT_MAX_BUFFER_SIZE;
  ------------------
  |  |   39|  4.41k|#define NGHTTP2_HD_DEFAULT_MAX_BUFFER_SIZE NGHTTP2_DEFAULT_HEADER_TABLE_SIZE
  |  |  ------------------
  |  |  |  |  244|  4.41k|#define NGHTTP2_DEFAULT_HEADER_TABLE_SIZE (1 << 12)
  |  |  ------------------
  ------------------
  747|  4.41k|  inflater->min_hd_table_bufsize_max = UINT32_MAX;
  748|       |
  749|  4.41k|  inflater->nv_name_keep = NULL;
  750|  4.41k|  inflater->nv_value_keep = NULL;
  751|       |
  752|  4.41k|  inflater->opcode = NGHTTP2_HD_OPCODE_NONE;
  753|  4.41k|  inflater->state = NGHTTP2_HD_STATE_INFLATE_START;
  754|       |
  755|  4.41k|  nghttp2_buf_init(&inflater->namebuf);
  756|  4.41k|  nghttp2_buf_init(&inflater->valuebuf);
  757|       |
  758|  4.41k|  inflater->namercbuf = NULL;
  759|  4.41k|  inflater->valuercbuf = NULL;
  760|       |
  761|  4.41k|  inflater->huffman_encoded = 0;
  762|  4.41k|  inflater->index = 0;
  763|  4.41k|  inflater->left = 0;
  764|  4.41k|  inflater->shift = 0;
  765|  4.41k|  inflater->index_required = 0;
  766|  4.41k|  inflater->no_index = 0;
  767|       |
  768|  4.41k|  return 0;
  769|       |
  770|      0|fail:
  771|      0|  return rv;
  772|  4.41k|}
nghttp2_hd_deflate_free:
  782|  4.41k|void nghttp2_hd_deflate_free(nghttp2_hd_deflater *deflater) {
  783|  4.41k|  hd_context_free(&deflater->ctx);
  784|  4.41k|}
nghttp2_hd_inflate_free:
  786|  4.41k|void nghttp2_hd_inflate_free(nghttp2_hd_inflater *inflater) {
  787|  4.41k|  hd_inflate_keep_free(inflater);
  788|       |
  789|  4.41k|  nghttp2_rcbuf_decref(inflater->valuercbuf);
  790|  4.41k|  nghttp2_rcbuf_decref(inflater->namercbuf);
  791|       |
  792|  4.41k|  hd_context_free(&inflater->ctx);
  793|  4.41k|}
nghttp2_hd_deflate_change_table_size:
 1259|    236|  nghttp2_hd_deflater *deflater, size_t settings_max_dynamic_table_size) {
 1260|    236|  size_t next_bufsize = nghttp2_min_size(
 1261|    236|    settings_max_dynamic_table_size, deflater->deflate_hd_table_bufsize_max);
 1262|       |
 1263|    236|  deflater->ctx.hd_table_bufsize_max = next_bufsize;
 1264|       |
 1265|    236|  deflater->min_hd_table_bufsize_max =
 1266|    236|    nghttp2_min_size(deflater->min_hd_table_bufsize_max, next_bufsize);
 1267|       |
 1268|    236|  deflater->notify_table_size_change = 1;
 1269|       |
 1270|    236|  hd_context_shrink_table_size(&deflater->ctx, &deflater->map);
 1271|    236|  return 0;
 1272|    236|}
nghttp2_hd_table_get:
 1314|  65.1k|nghttp2_hd_nv nghttp2_hd_table_get(nghttp2_hd_context *context, size_t idx) {
 1315|  65.1k|  assert(INDEX_RANGE_VALID(context, idx));
  ------------------
  |  Branch (1315:3): [True: 0, False: 65.1k]
  |  Branch (1315:3): [True: 65.1k, False: 0]
  ------------------
 1316|  65.1k|  if (idx >= NGHTTP2_STATIC_TABLE_LENGTH) {
  ------------------
  |  |   53|  65.1k|#define NGHTTP2_STATIC_TABLE_LENGTH 61
  ------------------
  |  Branch (1316:7): [True: 24.6k, False: 40.4k]
  ------------------
 1317|  24.6k|    return hd_ringbuf_get(&context->hd_table, idx - NGHTTP2_STATIC_TABLE_LENGTH)
  ------------------
  |  |   53|  24.6k|#define NGHTTP2_STATIC_TABLE_LENGTH 61
  ------------------
 1318|  24.6k|      ->nv;
 1319|  40.4k|  } else {
 1320|  40.4k|    const nghttp2_hd_static_entry *ent = &static_table[idx];
 1321|  40.4k|    nghttp2_hd_nv nv = {(nghttp2_rcbuf *)&ent->name,
 1322|  40.4k|                        (nghttp2_rcbuf *)&ent->value, ent->token,
 1323|  40.4k|                        NGHTTP2_NV_FLAG_NONE};
 1324|  40.4k|    return nv;
 1325|  40.4k|  }
 1326|  65.1k|}
nghttp2_hd_deflate_hd_bufs:
 1453|  4.38k|                               size_t nvlen) {
 1454|  4.38k|  size_t i;
 1455|  4.38k|  int rv = 0;
 1456|       |
 1457|  4.38k|  if (deflater->ctx.bad) {
  ------------------
  |  Branch (1457:7): [True: 0, False: 4.38k]
  ------------------
 1458|      0|    return NGHTTP2_ERR_HEADER_COMP;
 1459|      0|  }
 1460|       |
 1461|  4.38k|  if (deflater->notify_table_size_change) {
  ------------------
  |  Branch (1461:7): [True: 0, False: 4.38k]
  ------------------
 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|  66.6k|  for (i = 0; i < nvlen; ++i) {
  ------------------
  |  Branch (1484:15): [True: 62.2k, False: 4.38k]
  ------------------
 1485|  62.2k|    rv = deflate_nv(deflater, bufs, &nv[i]);
 1486|  62.2k|    if (rv != 0) {
  ------------------
  |  Branch (1486:9): [True: 0, False: 62.2k]
  ------------------
 1487|      0|      goto fail;
 1488|      0|    }
 1489|  62.2k|  }
 1490|       |
 1491|  4.38k|  DEBUGF("deflatehd: all input name/value pairs were deflated\n");
  ------------------
  |  |   39|  4.38k|    do {                                                                       \
  |  |   40|  4.38k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 4.38k]
  |  |  ------------------
  ------------------
 1492|       |
 1493|  4.38k|  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|  4.38k|}
nghttp2_hd_deflate_bound:
 1579|  4.38k|                                const nghttp2_nv *nva, size_t nvlen) {
 1580|  4.38k|  size_t n = 0;
 1581|  4.38k|  size_t i;
 1582|  4.38k|  (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|  4.38k|  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|  4.38k|  n += 6 * 2 * nvlen;
 1597|       |
 1598|  66.6k|  for (i = 0; i < nvlen; ++i) {
  ------------------
  |  Branch (1598:15): [True: 62.2k, False: 4.38k]
  ------------------
 1599|  62.2k|    n += nva[i].namelen + nva[i].valuelen;
 1600|  62.2k|  }
 1601|       |
 1602|  4.38k|  return n;
 1603|  4.38k|}
nghttp2_hd_inflate_hd_nv:
 1904|  59.8k|                                       size_t inlen, int in_final) {
 1905|  59.8k|  nghttp2_ssize rv = 0;
 1906|  59.8k|  const uint8_t *first = in;
 1907|  59.8k|  const uint8_t *last = in + inlen;
 1908|  59.8k|  int rfin = 0;
 1909|  59.8k|  int busy = 0;
 1910|  59.8k|  nghttp2_mem *mem;
 1911|       |
 1912|  59.8k|  mem = inflater->ctx.mem;
 1913|       |
 1914|  59.8k|  if (inflater->ctx.bad) {
  ------------------
  |  Branch (1914:7): [True: 0, False: 59.8k]
  ------------------
 1915|      0|    return NGHTTP2_ERR_HEADER_COMP;
 1916|      0|  }
 1917|       |
 1918|  59.8k|  DEBUGF("inflatehd: start state=%d\n", inflater->state);
  ------------------
  |  |   39|  59.8k|    do {                                                                       \
  |  |   40|  59.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 59.8k]
  |  |  ------------------
  ------------------
 1919|  59.8k|  hd_inflate_keep_free(inflater);
 1920|  59.8k|  *inflate_flags = NGHTTP2_HD_INFLATE_NONE;
 1921|   155k|  for (; in != last || busy;) {
  ------------------
  |  Branch (1921:10): [True: 153k, False: 2.36k]
  |  Branch (1921:24): [True: 426, False: 1.93k]
  ------------------
 1922|   153k|    busy = 0;
 1923|   153k|    switch (inflater->state) {
  ------------------
  |  Branch (1923:13): [True: 153k, False: 0]
  ------------------
 1924|      0|    case NGHTTP2_HD_STATE_EXPECT_TABLE_SIZE:
  ------------------
  |  Branch (1924:5): [True: 0, False: 153k]
  ------------------
 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|  4.25k|    case NGHTTP2_HD_STATE_INFLATE_START:
  ------------------
  |  Branch (1933:5): [True: 4.25k, False: 149k]
  ------------------
 1934|  57.9k|    case NGHTTP2_HD_STATE_OPCODE:
  ------------------
  |  Branch (1934:5): [True: 53.6k, False: 100k]
  ------------------
 1935|  57.9k|      if ((*in & 0xe0u) == 0x20u) {
  ------------------
  |  Branch (1935:11): [True: 2.16k, False: 55.7k]
  ------------------
 1936|  2.16k|        DEBUGF("inflatehd: header table size change\n");
  ------------------
  |  |   39|  2.16k|    do {                                                                       \
  |  |   40|  2.16k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 2.16k]
  |  |  ------------------
  ------------------
 1937|  2.16k|        if (inflater->state == NGHTTP2_HD_STATE_OPCODE) {
  ------------------
  |  Branch (1937:13): [True: 88, False: 2.07k]
  ------------------
 1938|     88|          DEBUGF("inflatehd: header table size change must appear at the head "
  ------------------
  |  |   39|     88|    do {                                                                       \
  |  |   40|     88|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 88]
  |  |  ------------------
  ------------------
 1939|     88|                 "of header block\n");
 1940|     88|          rv = NGHTTP2_ERR_HEADER_COMP;
 1941|     88|          goto fail;
 1942|     88|        }
 1943|  2.07k|        inflater->opcode = NGHTTP2_HD_OPCODE_INDEXED;
 1944|  2.07k|        inflater->state = NGHTTP2_HD_STATE_READ_TABLE_SIZE;
 1945|  55.7k|      } else if (*in & 0x80u) {
  ------------------
  |  Branch (1945:18): [True: 41.1k, False: 14.6k]
  ------------------
 1946|  41.1k|        DEBUGF("inflatehd: indexed repr\n");
  ------------------
  |  |   39|  41.1k|    do {                                                                       \
  |  |   40|  41.1k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 41.1k]
  |  |  ------------------
  ------------------
 1947|  41.1k|        inflater->opcode = NGHTTP2_HD_OPCODE_INDEXED;
 1948|  41.1k|        inflater->state = NGHTTP2_HD_STATE_READ_INDEX;
 1949|  41.1k|      } else {
 1950|  14.6k|        if (*in == 0x40u || *in == 0 || *in == 0x10u) {
  ------------------
  |  Branch (1950:13): [True: 1.04k, False: 13.6k]
  |  Branch (1950:29): [True: 6.57k, False: 7.05k]
  |  Branch (1950:41): [True: 488, False: 6.56k]
  ------------------
 1951|  8.10k|          DEBUGF("inflatehd: literal header repr - new name\n");
  ------------------
  |  |   39|  8.10k|    do {                                                                       \
  |  |   40|  8.10k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 8.10k]
  |  |  ------------------
  ------------------
 1952|  8.10k|          inflater->opcode = NGHTTP2_HD_OPCODE_NEWNAME;
 1953|  8.10k|          inflater->state = NGHTTP2_HD_STATE_NEWNAME_CHECK_NAMELEN;
 1954|  8.10k|        } else {
 1955|  6.56k|          DEBUGF("inflatehd: literal header repr - indexed name\n");
  ------------------
  |  |   39|  6.56k|    do {                                                                       \
  |  |   40|  6.56k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 6.56k]
  |  |  ------------------
  ------------------
 1956|  6.56k|          inflater->opcode = NGHTTP2_HD_OPCODE_INDNAME;
 1957|  6.56k|          inflater->state = NGHTTP2_HD_STATE_READ_INDEX;
 1958|  6.56k|        }
 1959|  14.6k|        inflater->index_required = (*in & 0x40) != 0;
 1960|  14.6k|        inflater->no_index = (*in & 0xf0u) == 0x10u;
 1961|  14.6k|        DEBUGF("inflatehd: indexing required=%d, no_index=%d\n",
  ------------------
  |  |   39|  14.6k|    do {                                                                       \
  |  |   40|  14.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 14.6k]
  |  |  ------------------
  ------------------
 1962|  14.6k|               inflater->index_required, inflater->no_index);
 1963|  14.6k|        if (inflater->opcode == NGHTTP2_HD_OPCODE_NEWNAME) {
  ------------------
  |  Branch (1963:13): [True: 8.10k, False: 6.56k]
  ------------------
 1964|  8.10k|          ++in;
 1965|  8.10k|        }
 1966|  14.6k|      }
 1967|  57.8k|      inflater->left = 0;
 1968|  57.8k|      inflater->shift = 0;
 1969|  57.8k|      break;
 1970|  2.31k|    case NGHTTP2_HD_STATE_READ_TABLE_SIZE:
  ------------------
  |  Branch (1970:5): [True: 2.31k, False: 151k]
  ------------------
 1971|  2.31k|      rfin = 0;
 1972|  2.31k|      rv = hd_inflate_read_len(
 1973|  2.31k|        inflater, &rfin, in, last, 5,
 1974|  2.31k|        nghttp2_min_size(inflater->min_hd_table_bufsize_max,
 1975|  2.31k|                         inflater->settings_hd_table_bufsize_max));
 1976|  2.31k|      if (rv < 0) {
  ------------------
  |  Branch (1976:11): [True: 84, False: 2.23k]
  ------------------
 1977|     84|        goto fail;
 1978|     84|      }
 1979|  2.23k|      in += rv;
 1980|  2.23k|      if (!rfin) {
  ------------------
  |  Branch (1980:11): [True: 247, False: 1.98k]
  ------------------
 1981|    247|        goto almost_ok;
 1982|    247|      }
 1983|  1.98k|      DEBUGF("inflatehd: table_size=%zu\n", inflater->left);
  ------------------
  |  |   39|  1.98k|    do {                                                                       \
  |  |   40|  1.98k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 1.98k]
  |  |  ------------------
  ------------------
 1984|  1.98k|      inflater->min_hd_table_bufsize_max = UINT32_MAX;
 1985|  1.98k|      inflater->ctx.hd_table_bufsize_max = inflater->left;
 1986|  1.98k|      hd_context_shrink_table_size(&inflater->ctx, NULL);
 1987|  1.98k|      inflater->state = NGHTTP2_HD_STATE_INFLATE_START;
 1988|  1.98k|      break;
 1989|  47.8k|    case NGHTTP2_HD_STATE_READ_INDEX: {
  ------------------
  |  Branch (1989:5): [True: 47.8k, False: 105k]
  ------------------
 1990|  47.8k|      size_t prefixlen;
 1991|       |
 1992|  47.8k|      if (inflater->opcode == NGHTTP2_HD_OPCODE_INDEXED) {
  ------------------
  |  Branch (1992:11): [True: 41.1k, False: 6.78k]
  ------------------
 1993|  41.1k|        prefixlen = 7;
 1994|  41.1k|      } else if (inflater->index_required) {
  ------------------
  |  Branch (1994:18): [True: 3.42k, False: 3.35k]
  ------------------
 1995|  3.42k|        prefixlen = 6;
 1996|  3.42k|      } else {
 1997|  3.35k|        prefixlen = 4;
 1998|  3.35k|      }
 1999|       |
 2000|  47.8k|      rfin = 0;
 2001|  47.8k|      rv = hd_inflate_read_len(inflater, &rfin, in, last, prefixlen,
 2002|  47.8k|                               get_max_index(&inflater->ctx));
 2003|  47.8k|      if (rv < 0) {
  ------------------
  |  Branch (2003:11): [True: 479, False: 47.4k]
  ------------------
 2004|    479|        goto fail;
 2005|    479|      }
 2006|       |
 2007|  47.4k|      in += rv;
 2008|       |
 2009|  47.4k|      if (!rfin) {
  ------------------
  |  Branch (2009:11): [True: 224, False: 47.1k]
  ------------------
 2010|    224|        goto almost_ok;
 2011|    224|      }
 2012|       |
 2013|  47.1k|      if (inflater->left == 0) {
  ------------------
  |  Branch (2013:11): [True: 26, False: 47.1k]
  ------------------
 2014|     26|        rv = NGHTTP2_ERR_HEADER_COMP;
 2015|     26|        goto fail;
 2016|     26|      }
 2017|       |
 2018|  47.1k|      DEBUGF("inflatehd: index=%zu\n", inflater->left);
  ------------------
  |  |   39|  47.1k|    do {                                                                       \
  |  |   40|  47.1k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 47.1k]
  |  |  ------------------
  ------------------
 2019|  47.1k|      if (inflater->opcode == NGHTTP2_HD_OPCODE_INDEXED) {
  ------------------
  |  Branch (2019:11): [True: 40.7k, False: 6.44k]
  ------------------
 2020|  40.7k|        inflater->index = inflater->left;
 2021|  40.7k|        --inflater->index;
 2022|       |
 2023|  40.7k|        hd_inflate_commit_indexed(inflater, nv_out);
 2024|       |
 2025|  40.7k|        inflater->state = NGHTTP2_HD_STATE_OPCODE;
 2026|  40.7k|        *inflate_flags |= NGHTTP2_HD_INFLATE_EMIT;
 2027|  40.7k|        return (nghttp2_ssize)(in - first);
 2028|  40.7k|      } else {
 2029|  6.44k|        inflater->index = inflater->left;
 2030|  6.44k|        --inflater->index;
 2031|       |
 2032|  6.44k|        inflater->state = NGHTTP2_HD_STATE_CHECK_VALUELEN;
 2033|  6.44k|      }
 2034|  6.44k|      break;
 2035|  47.1k|    }
 2036|  8.01k|    case NGHTTP2_HD_STATE_NEWNAME_CHECK_NAMELEN:
  ------------------
  |  Branch (2036:5): [True: 8.01k, False: 145k]
  ------------------
 2037|  8.01k|      hd_inflate_set_huffman_encoded(inflater, in);
 2038|  8.01k|      inflater->state = NGHTTP2_HD_STATE_NEWNAME_READ_NAMELEN;
 2039|  8.01k|      inflater->left = 0;
 2040|  8.01k|      inflater->shift = 0;
 2041|  8.01k|      DEBUGF("inflatehd: huffman encoded=%d\n", inflater->huffman_encoded != 0);
  ------------------
  |  |   39|  8.01k|    do {                                                                       \
  |  |   40|  8.01k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 8.01k]
  |  |  ------------------
  ------------------
 2042|       |    /* Fall through */
 2043|  8.29k|    case NGHTTP2_HD_STATE_NEWNAME_READ_NAMELEN:
  ------------------
  |  Branch (2043:5): [True: 284, False: 153k]
  ------------------
 2044|  8.29k|      rfin = 0;
 2045|  8.29k|      rv = hd_inflate_read_len(inflater, &rfin, in, last, 7, NGHTTP2_HD_MAX_NV);
  ------------------
  |  |   45|  8.29k|#define NGHTTP2_HD_MAX_NV 65536
  ------------------
 2046|  8.29k|      if (rv < 0) {
  ------------------
  |  Branch (2046:11): [True: 99, False: 8.19k]
  ------------------
 2047|     99|        goto fail;
 2048|     99|      }
 2049|  8.19k|      in += rv;
 2050|  8.19k|      if (!rfin) {
  ------------------
  |  Branch (2050:11): [True: 294, False: 7.90k]
  ------------------
 2051|    294|        DEBUGF("inflatehd: integer not fully decoded. current=%zu\n",
  ------------------
  |  |   39|    294|    do {                                                                       \
  |  |   40|    294|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 294]
  |  |  ------------------
  ------------------
 2052|    294|               inflater->left);
 2053|       |
 2054|    294|        goto almost_ok;
 2055|    294|      }
 2056|       |
 2057|  7.90k|      if (inflater->huffman_encoded) {
  ------------------
  |  Branch (2057:11): [True: 991, False: 6.91k]
  ------------------
 2058|    991|        nghttp2_hd_huff_decode_context_init(&inflater->huff_decode_ctx);
 2059|       |
 2060|    991|        inflater->state = NGHTTP2_HD_STATE_NEWNAME_READ_NAMEHUFF;
 2061|       |
 2062|    991|        rv = nghttp2_rcbuf_new(
 2063|    991|          &inflater->namercbuf,
 2064|    991|          nghttp2_huff_estimate_decode_length(inflater->left) + 1, mem);
 2065|  6.91k|      } else {
 2066|  6.91k|        inflater->state = NGHTTP2_HD_STATE_NEWNAME_READ_NAME;
 2067|  6.91k|        rv = nghttp2_rcbuf_new(&inflater->namercbuf, inflater->left + 1, mem);
 2068|  6.91k|      }
 2069|       |
 2070|  7.90k|      if (rv != 0) {
  ------------------
  |  Branch (2070:11): [True: 0, False: 7.90k]
  ------------------
 2071|      0|        goto fail;
 2072|      0|      }
 2073|       |
 2074|  7.90k|      nghttp2_buf_wrap_init(&inflater->namebuf, inflater->namercbuf->base,
 2075|  7.90k|                            inflater->namercbuf->len);
 2076|       |
 2077|  7.90k|      break;
 2078|  1.05k|    case NGHTTP2_HD_STATE_NEWNAME_READ_NAMEHUFF:
  ------------------
  |  Branch (2078:5): [True: 1.05k, False: 152k]
  ------------------
 2079|  1.05k|      rv = hd_inflate_read_huff(inflater, &inflater->namebuf, in, last);
 2080|  1.05k|      if (rv < 0) {
  ------------------
  |  Branch (2080:11): [True: 10, False: 1.04k]
  ------------------
 2081|     10|        goto fail;
 2082|     10|      }
 2083|       |
 2084|  1.04k|      in += rv;
 2085|       |
 2086|  1.04k|      DEBUGF("inflatehd: %td bytes read\n", rv);
  ------------------
  |  |   39|  1.04k|    do {                                                                       \
  |  |   40|  1.04k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 1.04k]
  |  |  ------------------
  ------------------
 2087|       |
 2088|  1.04k|      if (inflater->left) {
  ------------------
  |  Branch (2088:11): [True: 154, False: 886]
  ------------------
 2089|    154|        DEBUGF("inflatehd: still %zu bytes to go\n", inflater->left);
  ------------------
  |  |   39|    154|    do {                                                                       \
  |  |   40|    154|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 154]
  |  |  ------------------
  ------------------
 2090|       |
 2091|    154|        goto almost_ok;
 2092|    154|      }
 2093|       |
 2094|    886|      *inflater->namebuf.last = '\0';
 2095|    886|      inflater->namercbuf->len = nghttp2_buf_len(&inflater->namebuf);
  ------------------
  |  |   54|    886|#define nghttp2_buf_len(BUF) ((size_t)((BUF)->last - (BUF)->pos))
  ------------------
 2096|       |
 2097|    886|      inflater->state = NGHTTP2_HD_STATE_CHECK_VALUELEN;
 2098|       |
 2099|    886|      break;
 2100|  7.20k|    case NGHTTP2_HD_STATE_NEWNAME_READ_NAME:
  ------------------
  |  Branch (2100:5): [True: 7.20k, False: 146k]
  ------------------
 2101|  7.20k|      rv = hd_inflate_read(inflater, &inflater->namebuf, in, last);
 2102|  7.20k|      if (rv < 0) {
  ------------------
  |  Branch (2102:11): [True: 0, False: 7.20k]
  ------------------
 2103|      0|        goto fail;
 2104|      0|      }
 2105|       |
 2106|  7.20k|      in += rv;
 2107|       |
 2108|  7.20k|      DEBUGF("inflatehd: %td bytes read\n", rv);
  ------------------
  |  |   39|  7.20k|    do {                                                                       \
  |  |   40|  7.20k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 7.20k]
  |  |  ------------------
  ------------------
 2109|  7.20k|      if (inflater->left) {
  ------------------
  |  Branch (2109:11): [True: 407, False: 6.80k]
  ------------------
 2110|    407|        DEBUGF("inflatehd: still %zu bytes to go\n", inflater->left);
  ------------------
  |  |   39|    407|    do {                                                                       \
  |  |   40|    407|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 407]
  |  |  ------------------
  ------------------
 2111|       |
 2112|    407|        goto almost_ok;
 2113|    407|      }
 2114|       |
 2115|  6.80k|      *inflater->namebuf.last = '\0';
 2116|  6.80k|      inflater->namercbuf->len = nghttp2_buf_len(&inflater->namebuf);
  ------------------
  |  |   54|  6.80k|#define nghttp2_buf_len(BUF) ((size_t)((BUF)->last - (BUF)->pos))
  ------------------
 2117|       |
 2118|  6.80k|      inflater->state = NGHTTP2_HD_STATE_CHECK_VALUELEN;
 2119|       |
 2120|  6.80k|      break;
 2121|  14.0k|    case NGHTTP2_HD_STATE_CHECK_VALUELEN:
  ------------------
  |  Branch (2121:5): [True: 14.0k, False: 139k]
  ------------------
 2122|  14.0k|      hd_inflate_set_huffman_encoded(inflater, in);
 2123|  14.0k|      inflater->state = NGHTTP2_HD_STATE_READ_VALUELEN;
 2124|  14.0k|      inflater->left = 0;
 2125|  14.0k|      inflater->shift = 0;
 2126|  14.0k|      DEBUGF("inflatehd: huffman encoded=%d\n", inflater->huffman_encoded != 0);
  ------------------
  |  |   39|  14.0k|    do {                                                                       \
  |  |   40|  14.0k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 14.0k]
  |  |  ------------------
  ------------------
 2127|       |    /* Fall through */
 2128|  14.2k|    case NGHTTP2_HD_STATE_READ_VALUELEN:
  ------------------
  |  Branch (2128:5): [True: 227, False: 153k]
  ------------------
 2129|  14.2k|      rfin = 0;
 2130|  14.2k|      rv = hd_inflate_read_len(inflater, &rfin, in, last, 7, NGHTTP2_HD_MAX_NV);
  ------------------
  |  |   45|  14.2k|#define NGHTTP2_HD_MAX_NV 65536
  ------------------
 2131|  14.2k|      if (rv < 0) {
  ------------------
  |  Branch (2131:11): [True: 97, False: 14.1k]
  ------------------
 2132|     97|        goto fail;
 2133|     97|      }
 2134|       |
 2135|  14.1k|      in += rv;
 2136|       |
 2137|  14.1k|      if (!rfin) {
  ------------------
  |  Branch (2137:11): [True: 239, False: 13.9k]
  ------------------
 2138|    239|        goto almost_ok;
 2139|    239|      }
 2140|       |
 2141|  13.9k|      DEBUGF("inflatehd: valuelen=%zu\n", inflater->left);
  ------------------
  |  |   39|  13.9k|    do {                                                                       \
  |  |   40|  13.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 13.9k]
  |  |  ------------------
  ------------------
 2142|       |
 2143|  13.9k|      if (inflater->huffman_encoded) {
  ------------------
  |  Branch (2143:11): [True: 2.52k, False: 11.4k]
  ------------------
 2144|  2.52k|        nghttp2_hd_huff_decode_context_init(&inflater->huff_decode_ctx);
 2145|       |
 2146|  2.52k|        inflater->state = NGHTTP2_HD_STATE_READ_VALUEHUFF;
 2147|       |
 2148|  2.52k|        rv = nghttp2_rcbuf_new(
 2149|  2.52k|          &inflater->valuercbuf,
 2150|  2.52k|          nghttp2_huff_estimate_decode_length(inflater->left) + 1, mem);
 2151|  11.4k|      } else {
 2152|  11.4k|        inflater->state = NGHTTP2_HD_STATE_READ_VALUE;
 2153|       |
 2154|  11.4k|        rv = nghttp2_rcbuf_new(&inflater->valuercbuf, inflater->left + 1, mem);
 2155|  11.4k|      }
 2156|       |
 2157|  13.9k|      if (rv != 0) {
  ------------------
  |  Branch (2157:11): [True: 0, False: 13.9k]
  ------------------
 2158|      0|        goto fail;
 2159|      0|      }
 2160|       |
 2161|  13.9k|      nghttp2_buf_wrap_init(&inflater->valuebuf, inflater->valuercbuf->base,
 2162|  13.9k|                            inflater->valuercbuf->len);
 2163|       |
 2164|  13.9k|      busy = 1;
 2165|       |
 2166|  13.9k|      break;
 2167|  2.80k|    case NGHTTP2_HD_STATE_READ_VALUEHUFF:
  ------------------
  |  Branch (2167:5): [True: 2.80k, False: 150k]
  ------------------
 2168|  2.80k|      rv = hd_inflate_read_huff(inflater, &inflater->valuebuf, in, last);
 2169|  2.80k|      if (rv < 0) {
  ------------------
  |  Branch (2169:11): [True: 43, False: 2.75k]
  ------------------
 2170|     43|        goto fail;
 2171|     43|      }
 2172|       |
 2173|  2.75k|      in += rv;
 2174|       |
 2175|  2.75k|      DEBUGF("inflatehd: %td bytes read\n", rv);
  ------------------
  |  |   39|  2.75k|    do {                                                                       \
  |  |   40|  2.75k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 2.75k]
  |  |  ------------------
  ------------------
 2176|       |
 2177|  2.75k|      if (inflater->left) {
  ------------------
  |  Branch (2177:11): [True: 461, False: 2.29k]
  ------------------
 2178|    461|        DEBUGF("inflatehd: still %zu bytes to go\n", inflater->left);
  ------------------
  |  |   39|    461|    do {                                                                       \
  |  |   40|    461|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 461]
  |  |  ------------------
  ------------------
 2179|       |
 2180|    461|        goto almost_ok;
 2181|    461|      }
 2182|       |
 2183|  2.29k|      *inflater->valuebuf.last = '\0';
 2184|  2.29k|      inflater->valuercbuf->len = nghttp2_buf_len(&inflater->valuebuf);
  ------------------
  |  |   54|  2.29k|#define nghttp2_buf_len(BUF) ((size_t)((BUF)->last - (BUF)->pos))
  ------------------
 2185|       |
 2186|  2.29k|      if (inflater->opcode == NGHTTP2_HD_OPCODE_NEWNAME) {
  ------------------
  |  Branch (2186:11): [True: 629, False: 1.66k]
  ------------------
 2187|    629|        rv = hd_inflate_commit_newname(inflater, nv_out);
 2188|  1.66k|      } else {
 2189|  1.66k|        rv = hd_inflate_commit_indname(inflater, nv_out);
 2190|  1.66k|      }
 2191|       |
 2192|  2.29k|      if (rv != 0) {
  ------------------
  |  Branch (2192:11): [True: 0, False: 2.29k]
  ------------------
 2193|      0|        goto fail;
 2194|      0|      }
 2195|       |
 2196|  2.29k|      inflater->state = NGHTTP2_HD_STATE_OPCODE;
 2197|  2.29k|      *inflate_flags |= NGHTTP2_HD_INFLATE_EMIT;
 2198|       |
 2199|  2.29k|      return (nghttp2_ssize)(in - first);
 2200|  11.9k|    case NGHTTP2_HD_STATE_READ_VALUE:
  ------------------
  |  Branch (2200:5): [True: 11.9k, False: 141k]
  ------------------
 2201|  11.9k|      rv = hd_inflate_read(inflater, &inflater->valuebuf, in, last);
 2202|  11.9k|      if (rv < 0) {
  ------------------
  |  Branch (2202:11): [True: 0, False: 11.9k]
  ------------------
 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|  11.9k|      in += rv;
 2209|       |
 2210|  11.9k|      DEBUGF("inflatehd: %td bytes read\n", rv);
  ------------------
  |  |   39|  11.9k|    do {                                                                       \
  |  |   40|  11.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 11.9k]
  |  |  ------------------
  ------------------
 2211|       |
 2212|  11.9k|      if (inflater->left) {
  ------------------
  |  Branch (2212:11): [True: 686, False: 11.2k]
  ------------------
 2213|    686|        DEBUGF("inflatehd: still %zu bytes to go\n", inflater->left);
  ------------------
  |  |   39|    686|    do {                                                                       \
  |  |   40|    686|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 686]
  |  |  ------------------
  ------------------
 2214|    686|        goto almost_ok;
 2215|    686|      }
 2216|       |
 2217|  11.2k|      *inflater->valuebuf.last = '\0';
 2218|  11.2k|      inflater->valuercbuf->len = nghttp2_buf_len(&inflater->valuebuf);
  ------------------
  |  |   54|  11.2k|#define nghttp2_buf_len(BUF) ((size_t)((BUF)->last - (BUF)->pos))
  ------------------
 2219|       |
 2220|  11.2k|      if (inflater->opcode == NGHTTP2_HD_OPCODE_NEWNAME) {
  ------------------
  |  Branch (2220:11): [True: 6.87k, False: 4.36k]
  ------------------
 2221|  6.87k|        rv = hd_inflate_commit_newname(inflater, nv_out);
 2222|  6.87k|      } else {
 2223|  4.36k|        rv = hd_inflate_commit_indname(inflater, nv_out);
 2224|  4.36k|      }
 2225|       |
 2226|  11.2k|      if (rv != 0) {
  ------------------
  |  Branch (2226:11): [True: 0, False: 11.2k]
  ------------------
 2227|      0|        goto fail;
 2228|      0|      }
 2229|       |
 2230|  11.2k|      inflater->state = NGHTTP2_HD_STATE_OPCODE;
 2231|  11.2k|      *inflate_flags |= NGHTTP2_HD_INFLATE_EMIT;
 2232|       |
 2233|  11.2k|      return (nghttp2_ssize)(in - first);
 2234|   153k|    }
 2235|   153k|  }
 2236|       |
 2237|  59.8k|  assert(in == last);
  ------------------
  |  Branch (2237:3): [True: 0, False: 1.93k]
  |  Branch (2237:3): [True: 1.93k, False: 0]
  ------------------
 2238|       |
 2239|  1.93k|  DEBUGF("inflatehd: all input bytes were processed\n");
  ------------------
  |  |   39|  1.93k|    do {                                                                       \
  |  |   40|  1.93k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 1.93k]
  |  |  ------------------
  ------------------
 2240|       |
 2241|  1.93k|  if (in_final) {
  ------------------
  |  Branch (2241:7): [True: 471, False: 1.46k]
  ------------------
 2242|    471|    DEBUGF("inflatehd: in_final set\n");
  ------------------
  |  |   39|    471|    do {                                                                       \
  |  |   40|    471|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 471]
  |  |  ------------------
  ------------------
 2243|       |
 2244|    471|    if (inflater->state != NGHTTP2_HD_STATE_OPCODE &&
  ------------------
  |  Branch (2244:9): [True: 178, False: 293]
  ------------------
 2245|    178|        inflater->state != NGHTTP2_HD_STATE_INFLATE_START) {
  ------------------
  |  Branch (2245:9): [True: 15, False: 163]
  ------------------
 2246|     15|      DEBUGF("inflatehd: unacceptable state=%d\n", inflater->state);
  ------------------
  |  |   39|     15|    do {                                                                       \
  |  |   40|     15|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 15]
  |  |  ------------------
  ------------------
 2247|     15|      rv = NGHTTP2_ERR_HEADER_COMP;
 2248|       |
 2249|     15|      goto fail;
 2250|     15|    }
 2251|    456|    *inflate_flags |= NGHTTP2_HD_INFLATE_FINAL;
 2252|    456|  }
 2253|  1.92k|  return (nghttp2_ssize)(in - first);
 2254|       |
 2255|  2.71k|almost_ok:
 2256|  2.71k|  if (in_final) {
  ------------------
  |  Branch (2256:7): [True: 17, False: 2.69k]
  ------------------
 2257|     17|    DEBUGF("inflatehd: input ended prematurely\n");
  ------------------
  |  |   39|     17|    do {                                                                       \
  |  |   40|     17|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 17]
  |  |  ------------------
  ------------------
 2258|       |
 2259|     17|    rv = NGHTTP2_ERR_HEADER_COMP;
 2260|       |
 2261|     17|    goto fail;
 2262|     17|  }
 2263|  2.69k|  return (nghttp2_ssize)(in - first);
 2264|       |
 2265|    958|fail:
 2266|    958|  DEBUGF("inflatehd: error return %td\n", rv);
  ------------------
  |  |   39|    958|    do {                                                                       \
  |  |   40|    958|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 958]
  |  |  ------------------
  ------------------
 2267|       |
 2268|    958|  inflater->ctx.bad = 1;
 2269|    958|  return rv;
 2270|  2.71k|}
nghttp2_hd_inflate_end_headers:
 2272|    456|int nghttp2_hd_inflate_end_headers(nghttp2_hd_inflater *inflater) {
 2273|    456|  hd_inflate_keep_free(inflater);
 2274|    456|  inflater->state = NGHTTP2_HD_STATE_INFLATE_START;
 2275|    456|  return 0;
 2276|    456|}
nghttp2_hd.c:hd_context_init:
  687|  8.82k|static int hd_context_init(nghttp2_hd_context *context, nghttp2_mem *mem) {
  688|  8.82k|  int rv;
  689|  8.82k|  context->mem = mem;
  690|  8.82k|  context->bad = 0;
  691|  8.82k|  context->hd_table_bufsize_max = NGHTTP2_HD_DEFAULT_MAX_BUFFER_SIZE;
  ------------------
  |  |   39|  8.82k|#define NGHTTP2_HD_DEFAULT_MAX_BUFFER_SIZE NGHTTP2_DEFAULT_HEADER_TABLE_SIZE
  |  |  ------------------
  |  |  |  |  244|  8.82k|#define NGHTTP2_DEFAULT_HEADER_TABLE_SIZE (1 << 12)
  |  |  ------------------
  ------------------
  692|  8.82k|  rv = hd_ringbuf_init(
  693|  8.82k|    &context->hd_table,
  694|  8.82k|    context->hd_table_bufsize_max / NGHTTP2_HD_ENTRY_OVERHEAD, mem);
  ------------------
  |  |   40|  8.82k|#define NGHTTP2_HD_ENTRY_OVERHEAD 32
  ------------------
  695|  8.82k|  if (rv != 0) {
  ------------------
  |  Branch (695:7): [True: 0, False: 8.82k]
  ------------------
  696|      0|    return rv;
  697|      0|  }
  698|       |
  699|  8.82k|  context->hd_table_bufsize = 0;
  700|  8.82k|  context->next_seq = 0;
  701|       |
  702|  8.82k|  return 0;
  703|  8.82k|}
nghttp2_hd.c:hd_ringbuf_init:
  596|  8.82k|                           nghttp2_mem *mem) {
  597|  8.82k|  size_t size;
  598|  8.82k|  const size_t max_size = SIZE_MAX / sizeof(nghttp2_hd_entry *);
  599|       |
  600|  8.82k|  if (bufsize > max_size) {
  ------------------
  |  Branch (600:7): [True: 0, False: 8.82k]
  ------------------
  601|      0|    return NGHTTP2_ERR_NOMEM;
  602|      0|  }
  603|       |
  604|  70.5k|  for (size = 1; size < bufsize; size <<= 1)
  ------------------
  |  Branch (604:18): [True: 61.7k, False: 8.82k]
  ------------------
  605|  61.7k|    ;
  606|       |
  607|  8.82k|  if (size > max_size) {
  ------------------
  |  Branch (607:7): [True: 0, False: 8.82k]
  ------------------
  608|      0|    return NGHTTP2_ERR_NOMEM;
  609|      0|  }
  610|       |
  611|  8.82k|  ringbuf->buffer = nghttp2_mem_malloc(mem, sizeof(nghttp2_hd_entry *) * size);
  612|  8.82k|  if (ringbuf->buffer == NULL) {
  ------------------
  |  Branch (612:7): [True: 0, False: 8.82k]
  ------------------
  613|      0|    return NGHTTP2_ERR_NOMEM;
  614|      0|  }
  615|  8.82k|  ringbuf->mask = size - 1;
  616|  8.82k|  ringbuf->first = 0;
  617|  8.82k|  ringbuf->len = 0;
  618|  8.82k|  return 0;
  619|  8.82k|}
nghttp2_hd.c:hd_map_init:
  531|  4.41k|static void hd_map_init(nghttp2_hd_map *map) {
  532|  4.41k|  memset(map, 0, sizeof(nghttp2_hd_map));
  533|  4.41k|}
nghttp2_hd.c:hd_context_free:
  705|  8.82k|static void hd_context_free(nghttp2_hd_context *context) {
  706|  8.82k|  hd_ringbuf_free(&context->hd_table, context->mem);
  707|  8.82k|}
nghttp2_hd.c:hd_ringbuf_free:
  652|  8.82k|static void hd_ringbuf_free(nghttp2_hd_ringbuf *ringbuf, nghttp2_mem *mem) {
  653|  8.82k|  size_t i;
  654|  8.82k|  if (ringbuf == NULL) {
  ------------------
  |  Branch (654:7): [True: 0, False: 8.82k]
  ------------------
  655|      0|    return;
  656|      0|  }
  657|  31.2k|  for (i = 0; i < ringbuf->len; ++i) {
  ------------------
  |  Branch (657:15): [True: 22.3k, False: 8.82k]
  ------------------
  658|  22.3k|    nghttp2_hd_entry *ent = hd_ringbuf_get(ringbuf, i);
  659|       |
  660|  22.3k|    nghttp2_hd_entry_free(ent);
  661|  22.3k|    nghttp2_mem_free(mem, ent);
  662|  22.3k|  }
  663|  8.82k|  nghttp2_mem_free(mem, ringbuf->buffer);
  664|  8.82k|}
nghttp2_hd.c:hd_inflate_keep_free:
  774|  64.6k|static void hd_inflate_keep_free(nghttp2_hd_inflater *inflater) {
  775|  64.6k|  nghttp2_rcbuf_decref(inflater->nv_value_keep);
  776|  64.6k|  nghttp2_rcbuf_decref(inflater->nv_name_keep);
  777|       |
  778|  64.6k|  inflater->nv_value_keep = NULL;
  779|       |  inflater->nv_name_keep = NULL;
  780|  64.6k|}
nghttp2_hd.c:hd_context_shrink_table_size:
 1237|  2.21k|                                         nghttp2_hd_map *map) {
 1238|  2.21k|  nghttp2_mem *mem;
 1239|       |
 1240|  2.21k|  mem = context->mem;
 1241|       |
 1242|  2.63k|  while (context->hd_table_bufsize > context->hd_table_bufsize_max &&
  ------------------
  |  Branch (1242:10): [True: 411, False: 2.21k]
  ------------------
 1243|    411|         context->hd_table.len > 0) {
  ------------------
  |  Branch (1243:10): [True: 411, False: 0]
  ------------------
 1244|    411|    size_t idx = context->hd_table.len - 1;
 1245|    411|    nghttp2_hd_entry *ent = hd_ringbuf_get(&context->hd_table, idx);
 1246|    411|    context->hd_table_bufsize -=
 1247|    411|      entry_room(ent->nv.name->len, ent->nv.value->len);
 1248|    411|    hd_ringbuf_pop_back(&context->hd_table);
 1249|    411|    if (map) {
  ------------------
  |  Branch (1249:9): [True: 408, False: 3]
  ------------------
 1250|    408|      hd_map_remove(map, ent);
 1251|    408|    }
 1252|       |
 1253|    411|    nghttp2_hd_entry_free(ent);
 1254|    411|    nghttp2_mem_free(mem, ent);
 1255|    411|  }
 1256|  2.21k|}
nghttp2_hd.c:entry_room:
  795|  94.0k|static size_t entry_room(size_t namelen, size_t valuelen) {
  796|  94.0k|  return NGHTTP2_HD_ENTRY_OVERHEAD + namelen + valuelen;
  ------------------
  |  |   40|  94.0k|#define NGHTTP2_HD_ENTRY_OVERHEAD 32
  ------------------
  797|  94.0k|}
nghttp2_hd.c:hd_ringbuf_pop_back:
  682|  7.01k|static void hd_ringbuf_pop_back(nghttp2_hd_ringbuf *ringbuf) {
  683|  7.01k|  assert(ringbuf->len > 0);
  ------------------
  |  Branch (683:3): [True: 0, False: 7.01k]
  |  Branch (683:3): [True: 7.01k, False: 0]
  ------------------
  684|  7.01k|  --ringbuf->len;
  685|  7.01k|}
nghttp2_hd.c:hd_map_remove:
  579|  6.35k|static void hd_map_remove(nghttp2_hd_map *map, nghttp2_hd_entry *ent) {
  580|  6.35k|  nghttp2_hd_entry **dst;
  581|       |
  582|  6.35k|  dst = &map->table[ent->hash & (HD_MAP_SIZE - 1)];
  ------------------
  |  |  214|  6.35k|#define HD_MAP_SIZE 128
  ------------------
  583|       |
  584|  38.5k|  for (; *dst; dst = &(*dst)->next) {
  ------------------
  |  Branch (584:10): [True: 38.5k, False: 0]
  ------------------
  585|  38.5k|    if (*dst != ent) {
  ------------------
  |  Branch (585:9): [True: 32.1k, False: 6.35k]
  ------------------
  586|  32.1k|      continue;
  587|  32.1k|    }
  588|       |
  589|  6.35k|    *dst = ent->next;
  590|       |    ent->next = NULL;
  591|  6.35k|    return;
  592|  38.5k|  }
  593|  6.35k|}
nghttp2_hd.c:hd_ringbuf_get:
  622|  54.0k|                                        size_t idx) {
  623|  54.0k|  assert(idx < ringbuf->len);
  ------------------
  |  Branch (623:3): [True: 0, False: 54.0k]
  |  Branch (623:3): [True: 54.0k, False: 0]
  ------------------
  624|  54.0k|  return ringbuf->buffer[(ringbuf->first + idx) & ringbuf->mask];
  625|  54.0k|}
nghttp2_hd.c:count_encoded_length:
  807|  89.0k|static size_t count_encoded_length(size_t n, size_t prefix) {
  808|  89.0k|  size_t k = (size_t)((1 << prefix) - 1);
  809|  89.0k|  size_t len = 0;
  810|       |
  811|  89.0k|  if (n < k) {
  ------------------
  |  Branch (811:7): [True: 80.8k, False: 8.25k]
  ------------------
  812|  80.8k|    return 1;
  813|  80.8k|  }
  814|       |
  815|  8.25k|  n -= k;
  816|  8.25k|  ++len;
  817|       |
  818|  8.54k|  for (; n >= 128; n >>= 7, ++len)
  ------------------
  |  Branch (818:10): [True: 287, False: 8.25k]
  ------------------
  819|    287|    ;
  820|       |
  821|  8.25k|  return len + 1;
  822|  89.0k|}
nghttp2_hd.c:encode_length:
  824|  89.0k|static size_t encode_length(uint8_t *buf, size_t n, size_t prefix) {
  825|  89.0k|  size_t k = (size_t)((1 << prefix) - 1);
  826|  89.0k|  uint8_t *begin = buf;
  827|       |
  828|  89.0k|  *buf = (uint8_t)(*buf & ~k);
  829|       |
  830|  89.0k|  if (n < k) {
  ------------------
  |  Branch (830:7): [True: 80.8k, False: 8.25k]
  ------------------
  831|  80.8k|    *buf = (uint8_t)(*buf | n);
  832|  80.8k|    return 1;
  833|  80.8k|  }
  834|       |
  835|  8.25k|  *buf = (uint8_t)(*buf | k);
  836|  8.25k|  ++buf;
  837|       |
  838|  8.25k|  n -= k;
  839|       |
  840|  8.54k|  for (; n >= 128; n >>= 7) {
  ------------------
  |  Branch (840:10): [True: 287, False: 8.25k]
  ------------------
  841|    287|    *buf++ = (uint8_t)((1 << 7) | (n & 0x7f));
  842|    287|  }
  843|       |
  844|  8.25k|  *buf++ = (uint8_t)n;
  845|       |
  846|  8.25k|  return (size_t)(buf - begin);
  847|  89.0k|}
nghttp2_hd.c:deflate_nv:
 1356|  62.2k|                      const nghttp2_nv *nv) {
 1357|  62.2k|  int rv;
 1358|  62.2k|  search_result res;
 1359|  62.2k|  nghttp2_ssize idx;
 1360|  62.2k|  int indexing_mode;
 1361|  62.2k|  int32_t token;
 1362|  62.2k|  nghttp2_mem *mem;
 1363|  62.2k|  uint32_t hash = 0;
 1364|       |
 1365|  62.2k|  DEBUGF("deflatehd: deflating %.*s: %.*s\n", (int)nv->namelen, nv->name,
  ------------------
  |  |   39|  62.2k|    do {                                                                       \
  |  |   40|  62.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 62.2k]
  |  |  ------------------
  ------------------
 1366|  62.2k|         (int)nv->valuelen, nv->value);
 1367|       |
 1368|  62.2k|  mem = deflater->ctx.mem;
 1369|       |
 1370|  62.2k|  token = lookup_token(nv->name, nv->namelen);
 1371|  62.2k|  if (token == -1) {
  ------------------
  |  Branch (1371:7): [True: 37.4k, False: 24.8k]
  ------------------
 1372|  37.4k|    hash = name_hash(nv);
 1373|  37.4k|  } else if (token <= NGHTTP2_TOKEN_WWW_AUTHENTICATE) {
  ------------------
  |  Branch (1373:14): [True: 24.8k, False: 0]
  ------------------
 1374|  24.8k|    hash = static_table[token].hash;
 1375|  24.8k|  }
 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|  62.2k|  indexing_mode = token == NGHTTP2_TOKEN_AUTHORIZATION ||
  ------------------
  |  Branch (1381:19): [True: 65, False: 62.1k]
  ------------------
 1382|  62.1k|                      (token == NGHTTP2_TOKEN_COOKIE && nv->valuelen < 20) ||
  ------------------
  |  Branch (1382:24): [True: 0, False: 62.1k]
  |  Branch (1382:57): [True: 0, False: 0]
  ------------------
 1383|  62.1k|                      (nv->flags & NGHTTP2_NV_FLAG_NO_INDEX)
  ------------------
  |  Branch (1383:23): [True: 0, False: 62.1k]
  ------------------
 1384|  62.2k|                    ? NGHTTP2_HD_NEVER_INDEXING
 1385|  62.2k|                    : hd_deflate_decide_indexing(deflater, nv, token);
 1386|       |
 1387|  62.2k|  res = search_hd_table(&deflater->ctx, nv, token, indexing_mode,
 1388|  62.2k|                        &deflater->map, hash);
 1389|       |
 1390|  62.2k|  idx = res.index;
 1391|       |
 1392|  62.2k|  if (res.name_value_match) {
  ------------------
  |  Branch (1392:7): [True: 35.4k, False: 26.8k]
  ------------------
 1393|  35.4k|    DEBUGF("deflatehd: name/value match index=%td\n", idx);
  ------------------
  |  |   39|  35.4k|    do {                                                                       \
  |  |   40|  35.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 35.4k]
  |  |  ------------------
  ------------------
 1394|       |
 1395|  35.4k|    rv = emit_indexed_block(bufs, (size_t)idx);
 1396|  35.4k|    if (rv != 0) {
  ------------------
  |  Branch (1396:9): [True: 0, False: 35.4k]
  ------------------
 1397|      0|      return rv;
 1398|      0|    }
 1399|       |
 1400|  35.4k|    return 0;
 1401|  35.4k|  }
 1402|       |
 1403|  26.8k|  if (res.index != -1) {
  ------------------
  |  Branch (1403:7): [True: 19.4k, False: 7.38k]
  ------------------
 1404|  19.4k|    DEBUGF("deflatehd: name match index=%td\n", res.index);
  ------------------
  |  |   39|  19.4k|    do {                                                                       \
  |  |   40|  19.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 19.4k]
  |  |  ------------------
  ------------------
 1405|  19.4k|  }
 1406|       |
 1407|  26.8k|  if (indexing_mode == NGHTTP2_HD_WITH_INDEXING) {
  ------------------
  |  Branch (1407:7): [True: 25.7k, False: 1.12k]
  ------------------
 1408|  25.7k|    nghttp2_hd_nv hd_nv;
 1409|       |
 1410|  25.7k|    if (idx != -1) {
  ------------------
  |  Branch (1410:9): [True: 18.3k, False: 7.36k]
  ------------------
 1411|  18.3k|      hd_nv.name = nghttp2_hd_table_get(&deflater->ctx, (size_t)idx).name;
 1412|  18.3k|      nghttp2_rcbuf_incref(hd_nv.name);
 1413|  18.3k|    } else {
 1414|  7.36k|      rv = nghttp2_rcbuf_new2(&hd_nv.name, nv->name, nv->namelen, mem);
 1415|  7.36k|      if (rv != 0) {
  ------------------
  |  Branch (1415:11): [True: 0, False: 7.36k]
  ------------------
 1416|      0|        return rv;
 1417|      0|      }
 1418|  7.36k|    }
 1419|       |
 1420|  25.7k|    rv = nghttp2_rcbuf_new2(&hd_nv.value, nv->value, nv->valuelen, mem);
 1421|       |
 1422|  25.7k|    if (rv != 0) {
  ------------------
  |  Branch (1422:9): [True: 0, False: 25.7k]
  ------------------
 1423|      0|      nghttp2_rcbuf_decref(hd_nv.name);
 1424|      0|      return rv;
 1425|      0|    }
 1426|       |
 1427|  25.7k|    hd_nv.token = token;
 1428|  25.7k|    hd_nv.flags = NGHTTP2_NV_FLAG_NONE;
 1429|       |
 1430|  25.7k|    rv = add_hd_table_incremental(&deflater->ctx, &hd_nv, &deflater->map, hash);
 1431|       |
 1432|  25.7k|    nghttp2_rcbuf_decref(hd_nv.value);
 1433|  25.7k|    nghttp2_rcbuf_decref(hd_nv.name);
 1434|       |
 1435|  25.7k|    if (rv != 0) {
  ------------------
  |  Branch (1435:9): [True: 0, False: 25.7k]
  ------------------
 1436|      0|      return NGHTTP2_ERR_HEADER_COMP;
 1437|      0|    }
 1438|  25.7k|  }
 1439|  26.8k|  if (idx == -1) {
  ------------------
  |  Branch (1439:7): [True: 7.38k, False: 19.4k]
  ------------------
 1440|  7.38k|    rv = emit_newname_block(bufs, nv, indexing_mode);
 1441|  19.4k|  } else {
 1442|  19.4k|    rv = emit_indname_block(bufs, (size_t)idx, nv, indexing_mode);
 1443|  19.4k|  }
 1444|  26.8k|  if (rv != 0) {
  ------------------
  |  Branch (1444:7): [True: 0, False: 26.8k]
  ------------------
 1445|      0|    return rv;
 1446|      0|  }
 1447|       |
 1448|  26.8k|  return 0;
 1449|  26.8k|}
nghttp2_hd.c:lookup_token:
  122|  69.7k|static int32_t lookup_token(const uint8_t *name, size_t namelen) {
  123|  69.7k|  switch (namelen) {
  ------------------
  |  Branch (123:11): [True: 62.5k, False: 7.24k]
  ------------------
  124|  7.85k|  case 2:
  ------------------
  |  Branch (124:3): [True: 7.85k, False: 61.9k]
  ------------------
  125|  7.85k|    switch (name[1]) {
  ------------------
  |  Branch (125:13): [True: 55, False: 7.79k]
  ------------------
  126|     55|    case 'e':
  ------------------
  |  Branch (126:5): [True: 55, False: 7.79k]
  ------------------
  127|     55|      if (memeq("t", name, 1)) {
  ------------------
  |  Branch (127:11): [True: 0, False: 55]
  ------------------
  128|      0|        return NGHTTP2_TOKEN_TE;
  129|      0|      }
  130|     55|      break;
  131|  7.85k|    }
  132|  7.85k|    break;
  133|  16.5k|  case 3:
  ------------------
  |  Branch (133:3): [True: 16.5k, False: 53.1k]
  ------------------
  134|  16.5k|    switch (name[2]) {
  ------------------
  |  Branch (134:13): [True: 5.75k, False: 10.8k]
  ------------------
  135|  5.72k|    case 'a':
  ------------------
  |  Branch (135:5): [True: 5.72k, False: 10.8k]
  ------------------
  136|  5.72k|      if (memeq("vi", name, 2)) {
  ------------------
  |  Branch (136:11): [True: 13, False: 5.70k]
  ------------------
  137|     13|        return NGHTTP2_TOKEN_VIA;
  138|     13|      }
  139|  5.70k|      break;
  140|  5.70k|    case 'e':
  ------------------
  |  Branch (140:5): [True: 34, False: 16.5k]
  ------------------
  141|     34|      if (memeq("ag", name, 2)) {
  ------------------
  |  Branch (141:11): [True: 13, False: 21]
  ------------------
  142|     13|        return NGHTTP2_TOKEN_AGE;
  143|     13|      }
  144|     21|      break;
  145|  16.5k|    }
  146|  16.5k|    break;
  147|  16.5k|  case 4:
  ------------------
  |  Branch (147:3): [True: 6.30k, False: 63.4k]
  ------------------
  148|  6.30k|    switch (name[3]) {
  ------------------
  |  Branch (148:13): [True: 3.71k, False: 2.59k]
  ------------------
  149|    253|    case 'e':
  ------------------
  |  Branch (149:5): [True: 253, False: 6.05k]
  ------------------
  150|    253|      if (memeq("dat", name, 3)) {
  ------------------
  |  Branch (150:11): [True: 53, False: 200]
  ------------------
  151|     53|        return NGHTTP2_TOKEN_DATE;
  152|     53|      }
  153|    200|      break;
  154|    200|    case 'g':
  ------------------
  |  Branch (154:5): [True: 26, False: 6.27k]
  ------------------
  155|     26|      if (memeq("eta", name, 3)) {
  ------------------
  |  Branch (155:11): [True: 12, False: 14]
  ------------------
  156|     12|        return NGHTTP2_TOKEN_ETAG;
  157|     12|      }
  158|     14|      break;
  159|  3.34k|    case 'k':
  ------------------
  |  Branch (159:5): [True: 3.34k, False: 2.96k]
  ------------------
  160|  3.34k|      if (memeq("lin", name, 3)) {
  ------------------
  |  Branch (160:11): [True: 0, False: 3.34k]
  ------------------
  161|      0|        return NGHTTP2_TOKEN_LINK;
  162|      0|      }
  163|  3.34k|      break;
  164|  3.34k|    case 'm':
  ------------------
  |  Branch (164:5): [True: 18, False: 6.28k]
  ------------------
  165|     18|      if (memeq("fro", name, 3)) {
  ------------------
  |  Branch (165:11): [True: 0, False: 18]
  ------------------
  166|      0|        return NGHTTP2_TOKEN_FROM;
  167|      0|      }
  168|     18|      break;
  169|     44|    case 't':
  ------------------
  |  Branch (169:5): [True: 44, False: 6.25k]
  ------------------
  170|     44|      if (memeq("hos", name, 3)) {
  ------------------
  |  Branch (170:11): [True: 0, False: 44]
  ------------------
  171|      0|        return NGHTTP2_TOKEN_HOST;
  172|      0|      }
  173|     44|      break;
  174|     44|    case 'y':
  ------------------
  |  Branch (174:5): [True: 28, False: 6.27k]
  ------------------
  175|     28|      if (memeq("var", name, 3)) {
  ------------------
  |  Branch (175:11): [True: 10, False: 18]
  ------------------
  176|     10|        return NGHTTP2_TOKEN_VARY;
  177|     10|      }
  178|     18|      break;
  179|  6.30k|    }
  180|  6.22k|    break;
  181|  6.22k|  case 5:
  ------------------
  |  Branch (181:3): [True: 5.01k, False: 64.7k]
  ------------------
  182|  5.01k|    switch (name[4]) {
  ------------------
  |  Branch (182:13): [True: 4.72k, False: 291]
  ------------------
  183|     83|    case 'e':
  ------------------
  |  Branch (183:5): [True: 83, False: 4.92k]
  ------------------
  184|     83|      if (memeq("rang", name, 4)) {
  ------------------
  |  Branch (184:11): [True: 0, False: 83]
  ------------------
  185|      0|        return NGHTTP2_TOKEN_RANGE;
  186|      0|      }
  187|     83|      break;
  188|  4.55k|    case 'h':
  ------------------
  |  Branch (188:5): [True: 4.55k, False: 461]
  ------------------
  189|  4.55k|      if (memeq(":pat", name, 4)) {
  ------------------
  |  Branch (189:11): [True: 4.37k, False: 171]
  ------------------
  190|  4.37k|        return NGHTTP2_TOKEN__PATH;
  191|  4.37k|      }
  192|    171|      break;
  193|    171|    case 'w':
  ------------------
  |  Branch (193:5): [True: 87, False: 4.92k]
  ------------------
  194|     87|      if (memeq("allo", name, 4)) {
  ------------------
  |  Branch (194:11): [True: 0, False: 87]
  ------------------
  195|      0|        return NGHTTP2_TOKEN_ALLOW;
  196|      0|      }
  197|     87|      break;
  198|  5.01k|    }
  199|    632|    break;
  200|  4.55k|  case 6:
  ------------------
  |  Branch (200:3): [True: 4.55k, False: 65.1k]
  ------------------
  201|  4.55k|    switch (name[5]) {
  ------------------
  |  Branch (201:13): [True: 4.33k, False: 222]
  ------------------
  202|     16|    case 'e':
  ------------------
  |  Branch (202:5): [True: 16, False: 4.54k]
  ------------------
  203|     16|      if (memeq("cooki", name, 5)) {
  ------------------
  |  Branch (203:11): [True: 0, False: 16]
  ------------------
  204|      0|        return NGHTTP2_TOKEN_COOKIE;
  205|      0|      }
  206|     16|      break;
  207|     20|    case 'r':
  ------------------
  |  Branch (207:5): [True: 20, False: 4.53k]
  ------------------
  208|     20|      if (memeq("serve", name, 5)) {
  ------------------
  |  Branch (208:11): [True: 0, False: 20]
  ------------------
  209|      0|        return NGHTTP2_TOKEN_SERVER;
  210|      0|      }
  211|     20|      break;
  212|  4.29k|    case 't':
  ------------------
  |  Branch (212:5): [True: 4.29k, False: 258]
  ------------------
  213|  4.29k|      if (memeq("accep", name, 5)) {
  ------------------
  |  Branch (213:11): [True: 4.27k, False: 27]
  ------------------
  214|  4.27k|        return NGHTTP2_TOKEN_ACCEPT;
  215|  4.27k|      }
  216|     27|      if (memeq("expec", name, 5)) {
  ------------------
  |  Branch (216:11): [True: 10, False: 17]
  ------------------
  217|     10|        return NGHTTP2_TOKEN_EXPECT;
  218|     10|      }
  219|     17|      break;
  220|  4.55k|    }
  221|    275|    break;
  222|  10.3k|  case 7:
  ------------------
  |  Branch (222:3): [True: 10.3k, False: 59.4k]
  ------------------
  223|  10.3k|    switch (name[6]) {
  ------------------
  |  Branch (223:13): [True: 9.31k, False: 1.02k]
  ------------------
  224|  4.39k|    case 'd':
  ------------------
  |  Branch (224:5): [True: 4.39k, False: 5.94k]
  ------------------
  225|  4.39k|      if (memeq(":metho", name, 6)) {
  ------------------
  |  Branch (225:11): [True: 4.38k, False: 10]
  ------------------
  226|  4.38k|        return NGHTTP2_TOKEN__METHOD;
  227|  4.38k|      }
  228|     10|      break;
  229|  4.49k|    case 'e':
  ------------------
  |  Branch (229:5): [True: 4.49k, False: 5.84k]
  ------------------
  230|  4.49k|      if (memeq(":schem", name, 6)) {
  ------------------
  |  Branch (230:11): [True: 4.38k, False: 110]
  ------------------
  231|  4.38k|        return NGHTTP2_TOKEN__SCHEME;
  232|  4.38k|      }
  233|    110|      if (memeq("upgrad", name, 6)) {
  ------------------
  |  Branch (233:11): [True: 0, False: 110]
  ------------------
  234|      0|        return NGHTTP2_TOKEN_UPGRADE;
  235|      0|      }
  236|    110|      break;
  237|    110|    case 'h':
  ------------------
  |  Branch (237:5): [True: 64, False: 10.2k]
  ------------------
  238|     64|      if (memeq("refres", name, 6)) {
  ------------------
  |  Branch (238:11): [True: 0, False: 64]
  ------------------
  239|      0|        return NGHTTP2_TOKEN_REFRESH;
  240|      0|      }
  241|     64|      break;
  242|    356|    case 'r':
  ------------------
  |  Branch (242:5): [True: 356, False: 9.98k]
  ------------------
  243|    356|      if (memeq("refere", name, 6)) {
  ------------------
  |  Branch (243:11): [True: 339, False: 17]
  ------------------
  244|    339|        return NGHTTP2_TOKEN_REFERER;
  245|    339|      }
  246|     17|      break;
  247|     17|    case 's':
  ------------------
  |  Branch (247:5): [True: 13, False: 10.3k]
  ------------------
  248|     13|      if (memeq(":statu", name, 6)) {
  ------------------
  |  Branch (248:11): [True: 0, False: 13]
  ------------------
  249|      0|        return NGHTTP2_TOKEN__STATUS;
  250|      0|      }
  251|     13|      if (memeq("expire", name, 6)) {
  ------------------
  |  Branch (251:11): [True: 0, False: 13]
  ------------------
  252|      0|        return NGHTTP2_TOKEN_EXPIRES;
  253|      0|      }
  254|     13|      break;
  255|  10.3k|    }
  256|  1.23k|    break;
  257|  1.64k|  case 8:
  ------------------
  |  Branch (257:3): [True: 1.64k, False: 68.1k]
  ------------------
  258|  1.64k|    switch (name[7]) {
  ------------------
  |  Branch (258:13): [True: 1.51k, False: 133]
  ------------------
  259|     45|    case 'e':
  ------------------
  |  Branch (259:5): [True: 45, False: 1.60k]
  ------------------
  260|     45|      if (memeq("if-rang", name, 7)) {
  ------------------
  |  Branch (260:11): [True: 0, False: 45]
  ------------------
  261|      0|        return NGHTTP2_TOKEN_IF_RANGE;
  262|      0|      }
  263|     45|      break;
  264|    152|    case 'h':
  ------------------
  |  Branch (264:5): [True: 152, False: 1.49k]
  ------------------
  265|    152|      if (memeq("if-matc", name, 7)) {
  ------------------
  |  Branch (265:11): [True: 0, False: 152]
  ------------------
  266|      0|        return NGHTTP2_TOKEN_IF_MATCH;
  267|      0|      }
  268|    152|      break;
  269|  1.30k|    case 'n':
  ------------------
  |  Branch (269:5): [True: 1.30k, False: 348]
  ------------------
  270|  1.30k|      if (memeq("locatio", name, 7)) {
  ------------------
  |  Branch (270:11): [True: 268, False: 1.03k]
  ------------------
  271|    268|        return NGHTTP2_TOKEN_LOCATION;
  272|    268|      }
  273|  1.03k|      break;
  274|  1.03k|    case 'y':
  ------------------
  |  Branch (274:5): [True: 18, False: 1.63k]
  ------------------
  275|     18|      if (memeq("priorit", name, 7)) {
  ------------------
  |  Branch (275:11): [True: 0, False: 18]
  ------------------
  276|      0|        return NGHTTP2_TOKEN_PRIORITY;
  277|      0|      }
  278|     18|      break;
  279|  1.64k|    }
  280|  1.38k|    break;
  281|  1.38k|  case 9:
  ------------------
  |  Branch (281:3): [True: 332, False: 69.4k]
  ------------------
  282|    332|    switch (name[8]) {
  ------------------
  |  Branch (282:13): [True: 39, False: 293]
  ------------------
  283|     39|    case 'l':
  ------------------
  |  Branch (283:5): [True: 39, False: 293]
  ------------------
  284|     39|      if (memeq(":protoco", name, 8)) {
  ------------------
  |  Branch (284:11): [True: 0, False: 39]
  ------------------
  285|      0|        return NGHTTP2_TOKEN__PROTOCOL;
  286|      0|      }
  287|     39|      break;
  288|    332|    }
  289|    332|    break;
  290|  5.23k|  case 10:
  ------------------
  |  Branch (290:3): [True: 5.23k, False: 64.5k]
  ------------------
  291|  5.23k|    switch (name[9]) {
  ------------------
  |  Branch (291:13): [True: 4.92k, False: 305]
  ------------------
  292|     78|    case 'e':
  ------------------
  |  Branch (292:5): [True: 78, False: 5.15k]
  ------------------
  293|     78|      if (memeq("keep-aliv", name, 9)) {
  ------------------
  |  Branch (293:11): [True: 0, False: 78]
  ------------------
  294|      0|        return NGHTTP2_TOKEN_KEEP_ALIVE;
  295|      0|      }
  296|     78|      if (memeq("set-cooki", name, 9)) {
  ------------------
  |  Branch (296:11): [True: 0, False: 78]
  ------------------
  297|      0|        return NGHTTP2_TOKEN_SET_COOKIE;
  298|      0|      }
  299|     78|      break;
  300|     78|    case 'n':
  ------------------
  |  Branch (300:5): [True: 10, False: 5.22k]
  ------------------
  301|     10|      if (memeq("connectio", name, 9)) {
  ------------------
  |  Branch (301:11): [True: 0, False: 10]
  ------------------
  302|      0|        return NGHTTP2_TOKEN_CONNECTION;
  303|      0|      }
  304|     10|      break;
  305|    447|    case 't':
  ------------------
  |  Branch (305:5): [True: 447, False: 4.78k]
  ------------------
  306|    447|      if (memeq("user-agen", name, 9)) {
  ------------------
  |  Branch (306:11): [True: 433, False: 14]
  ------------------
  307|    433|        return NGHTTP2_TOKEN_USER_AGENT;
  308|    433|      }
  309|     14|      break;
  310|  4.39k|    case 'y':
  ------------------
  |  Branch (310:5): [True: 4.39k, False: 840]
  ------------------
  311|  4.39k|      if (memeq(":authorit", name, 9)) {
  ------------------
  |  Branch (311:11): [True: 4.38k, False: 10]
  ------------------
  312|  4.38k|        return NGHTTP2_TOKEN__AUTHORITY;
  313|  4.38k|      }
  314|     10|      break;
  315|  5.23k|    }
  316|    417|    break;
  317|    417|  case 11:
  ------------------
  |  Branch (317:3): [True: 68, False: 69.6k]
  ------------------
  318|     68|    switch (name[10]) {
  ------------------
  |  Branch (318:13): [True: 11, False: 57]
  ------------------
  319|     11|    case 'r':
  ------------------
  |  Branch (319:5): [True: 11, False: 57]
  ------------------
  320|     11|      if (memeq("retry-afte", name, 10)) {
  ------------------
  |  Branch (320:11): [True: 0, False: 11]
  ------------------
  321|      0|        return NGHTTP2_TOKEN_RETRY_AFTER;
  322|      0|      }
  323|     11|      break;
  324|     68|    }
  325|     68|    break;
  326|  1.26k|  case 12:
  ------------------
  |  Branch (326:3): [True: 1.26k, False: 68.4k]
  ------------------
  327|  1.26k|    switch (name[11]) {
  ------------------
  |  Branch (327:13): [True: 1.06k, False: 197]
  ------------------
  328|  1.05k|    case 'e':
  ------------------
  |  Branch (328:5): [True: 1.05k, False: 212]
  ------------------
  329|  1.05k|      if (memeq("content-typ", name, 11)) {
  ------------------
  |  Branch (329:11): [True: 849, False: 204]
  ------------------
  330|    849|        return NGHTTP2_TOKEN_CONTENT_TYPE;
  331|    849|      }
  332|    204|      break;
  333|    204|    case 's':
  ------------------
  |  Branch (333:5): [True: 15, False: 1.25k]
  ------------------
  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|  1.26k|    }
  339|    416|    break;
  340|    478|  case 13:
  ------------------
  |  Branch (340:3): [True: 478, False: 69.2k]
  ------------------
  341|    478|    switch (name[12]) {
  ------------------
  |  Branch (341:13): [True: 384, False: 94]
  ------------------
  342|     76|    case 'd':
  ------------------
  |  Branch (342:5): [True: 76, False: 402]
  ------------------
  343|     76|      if (memeq("last-modifie", name, 12)) {
  ------------------
  |  Branch (343:11): [True: 0, False: 76]
  ------------------
  344|      0|        return NGHTTP2_TOKEN_LAST_MODIFIED;
  345|      0|      }
  346|     76|      break;
  347|     76|    case 'e':
  ------------------
  |  Branch (347:5): [True: 42, False: 436]
  ------------------
  348|     42|      if (memeq("content-rang", name, 12)) {
  ------------------
  |  Branch (348:11): [True: 0, False: 42]
  ------------------
  349|      0|        return NGHTTP2_TOKEN_CONTENT_RANGE;
  350|      0|      }
  351|     42|      break;
  352|     71|    case 'h':
  ------------------
  |  Branch (352:5): [True: 71, False: 407]
  ------------------
  353|     71|      if (memeq("if-none-matc", name, 12)) {
  ------------------
  |  Branch (353:11): [True: 0, False: 71]
  ------------------
  354|      0|        return NGHTTP2_TOKEN_IF_NONE_MATCH;
  355|      0|      }
  356|     71|      break;
  357|     71|    case 'l':
  ------------------
  |  Branch (357:5): [True: 71, False: 407]
  ------------------
  358|     71|      if (memeq("cache-contro", name, 12)) {
  ------------------
  |  Branch (358:11): [True: 0, False: 71]
  ------------------
  359|      0|        return NGHTTP2_TOKEN_CACHE_CONTROL;
  360|      0|      }
  361|     71|      break;
  362|    106|    case 'n':
  ------------------
  |  Branch (362:5): [True: 106, False: 372]
  ------------------
  363|    106|      if (memeq("authorizatio", name, 12)) {
  ------------------
  |  Branch (363:11): [True: 65, False: 41]
  ------------------
  364|     65|        return NGHTTP2_TOKEN_AUTHORIZATION;
  365|     65|      }
  366|     41|      break;
  367|     41|    case 's':
  ------------------
  |  Branch (367:5): [True: 18, False: 460]
  ------------------
  368|     18|      if (memeq("accept-range", name, 12)) {
  ------------------
  |  Branch (368:11): [True: 0, False: 18]
  ------------------
  369|      0|        return NGHTTP2_TOKEN_ACCEPT_RANGES;
  370|      0|      }
  371|     18|      break;
  372|    478|    }
  373|    413|    break;
  374|    684|  case 14:
  ------------------
  |  Branch (374:3): [True: 684, False: 69.0k]
  ------------------
  375|    684|    switch (name[13]) {
  ------------------
  |  Branch (375:13): [True: 440, False: 244]
  ------------------
  376|    429|    case 'h':
  ------------------
  |  Branch (376:5): [True: 429, False: 255]
  ------------------
  377|    429|      if (memeq("content-lengt", name, 13)) {
  ------------------
  |  Branch (377:11): [True: 400, False: 29]
  ------------------
  378|    400|        return NGHTTP2_TOKEN_CONTENT_LENGTH;
  379|    400|      }
  380|     29|      break;
  381|     29|    case 't':
  ------------------
  |  Branch (381:5): [True: 11, False: 673]
  ------------------
  382|     11|      if (memeq("accept-charse", name, 13)) {
  ------------------
  |  Branch (382:11): [True: 0, False: 11]
  ------------------
  383|      0|        return NGHTTP2_TOKEN_ACCEPT_CHARSET;
  384|      0|      }
  385|     11|      break;
  386|    684|    }
  387|    284|    break;
  388|    503|  case 15:
  ------------------
  |  Branch (388:3): [True: 503, False: 69.2k]
  ------------------
  389|    503|    switch (name[14]) {
  ------------------
  |  Branch (389:13): [True: 394, False: 109]
  ------------------
  390|     20|    case 'e':
  ------------------
  |  Branch (390:5): [True: 20, False: 483]
  ------------------
  391|     20|      if (memeq("accept-languag", name, 14)) {
  ------------------
  |  Branch (391:11): [True: 0, False: 20]
  ------------------
  392|      0|        return NGHTTP2_TOKEN_ACCEPT_LANGUAGE;
  393|      0|      }
  394|     20|      break;
  395|    374|    case 'g':
  ------------------
  |  Branch (395:5): [True: 374, False: 129]
  ------------------
  396|    374|      if (memeq("accept-encodin", name, 14)) {
  ------------------
  |  Branch (396:11): [True: 363, False: 11]
  ------------------
  397|    363|        return NGHTTP2_TOKEN_ACCEPT_ENCODING;
  398|    363|      }
  399|     11|      break;
  400|    503|    }
  401|    140|    break;
  402|    768|  case 16:
  ------------------
  |  Branch (402:3): [True: 768, False: 68.9k]
  ------------------
  403|    768|    switch (name[15]) {
  ------------------
  |  Branch (403:13): [True: 328, False: 440]
  ------------------
  404|     16|    case 'e':
  ------------------
  |  Branch (404:5): [True: 16, False: 752]
  ------------------
  405|     16|      if (memeq("content-languag", name, 15)) {
  ------------------
  |  Branch (405:11): [True: 0, False: 16]
  ------------------
  406|      0|        return NGHTTP2_TOKEN_CONTENT_LANGUAGE;
  407|      0|      }
  408|     16|      if (memeq("www-authenticat", name, 15)) {
  ------------------
  |  Branch (408:11): [True: 0, False: 16]
  ------------------
  409|      0|        return NGHTTP2_TOKEN_WWW_AUTHENTICATE;
  410|      0|      }
  411|     16|      break;
  412|    261|    case 'g':
  ------------------
  |  Branch (412:5): [True: 261, False: 507]
  ------------------
  413|    261|      if (memeq("content-encodin", name, 15)) {
  ------------------
  |  Branch (413:11): [True: 171, False: 90]
  ------------------
  414|    171|        return NGHTTP2_TOKEN_CONTENT_ENCODING;
  415|    171|      }
  416|     90|      break;
  417|     90|    case 'n':
  ------------------
  |  Branch (417:5): [True: 51, False: 717]
  ------------------
  418|     51|      if (memeq("content-locatio", name, 15)) {
  ------------------
  |  Branch (418:11): [True: 18, False: 33]
  ------------------
  419|     18|        return NGHTTP2_TOKEN_CONTENT_LOCATION;
  420|     18|      }
  421|     33|      if (memeq("proxy-connectio", name, 15)) {
  ------------------
  |  Branch (421:11): [True: 0, False: 33]
  ------------------
  422|      0|        return NGHTTP2_TOKEN_PROXY_CONNECTION;
  423|      0|      }
  424|     33|      break;
  425|    768|    }
  426|    579|    break;
  427|    579|  case 17:
  ------------------
  |  Branch (427:3): [True: 372, False: 69.3k]
  ------------------
  428|    372|    switch (name[16]) {
  ------------------
  |  Branch (428:13): [True: 97, False: 275]
  ------------------
  429|     50|    case 'e':
  ------------------
  |  Branch (429:5): [True: 50, False: 322]
  ------------------
  430|     50|      if (memeq("if-modified-sinc", name, 16)) {
  ------------------
  |  Branch (430:11): [True: 0, False: 50]
  ------------------
  431|      0|        return NGHTTP2_TOKEN_IF_MODIFIED_SINCE;
  432|      0|      }
  433|     50|      break;
  434|     50|    case 'g':
  ------------------
  |  Branch (434:5): [True: 47, False: 325]
  ------------------
  435|     47|      if (memeq("transfer-encodin", name, 16)) {
  ------------------
  |  Branch (435:11): [True: 0, False: 47]
  ------------------
  436|      0|        return NGHTTP2_TOKEN_TRANSFER_ENCODING;
  437|      0|      }
  438|     47|      break;
  439|    372|    }
  440|    372|    break;
  441|    372|  case 18:
  ------------------
  |  Branch (441:3): [True: 65, False: 69.6k]
  ------------------
  442|     65|    switch (name[17]) {
  ------------------
  |  Branch (442:13): [True: 26, False: 39]
  ------------------
  443|     26|    case 'e':
  ------------------
  |  Branch (443:5): [True: 26, False: 39]
  ------------------
  444|     26|      if (memeq("proxy-authenticat", name, 17)) {
  ------------------
  |  Branch (444:11): [True: 0, False: 26]
  ------------------
  445|      0|        return NGHTTP2_TOKEN_PROXY_AUTHENTICATE;
  446|      0|      }
  447|     26|      break;
  448|     65|    }
  449|     65|    break;
  450|    150|  case 19:
  ------------------
  |  Branch (450:3): [True: 150, False: 69.6k]
  ------------------
  451|    150|    switch (name[18]) {
  ------------------
  |  Branch (451:13): [True: 36, False: 114]
  ------------------
  452|     26|    case 'e':
  ------------------
  |  Branch (452:5): [True: 26, False: 124]
  ------------------
  453|     26|      if (memeq("if-unmodified-sinc", name, 18)) {
  ------------------
  |  Branch (453:11): [True: 0, False: 26]
  ------------------
  454|      0|        return NGHTTP2_TOKEN_IF_UNMODIFIED_SINCE;
  455|      0|      }
  456|     26|      break;
  457|     26|    case 'n':
  ------------------
  |  Branch (457:5): [True: 10, False: 140]
  ------------------
  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|    150|    }
  466|    150|    break;
  467|    150|  case 25:
  ------------------
  |  Branch (467:3): [True: 122, False: 69.6k]
  ------------------
  468|    122|    switch (name[24]) {
  ------------------
  |  Branch (468:13): [True: 10, False: 112]
  ------------------
  469|     10|    case 'y':
  ------------------
  |  Branch (469:5): [True: 10, False: 112]
  ------------------
  470|     10|      if (memeq("strict-transport-securit", name, 24)) {
  ------------------
  |  Branch (470:11): [True: 0, False: 10]
  ------------------
  471|      0|        return NGHTTP2_TOKEN_STRICT_TRANSPORT_SECURITY;
  472|      0|      }
  473|     10|      break;
  474|    122|    }
  475|    122|    break;
  476|    185|  case 27:
  ------------------
  |  Branch (476:3): [True: 185, False: 69.5k]
  ------------------
  477|    185|    switch (name[26]) {
  ------------------
  |  Branch (477:13): [True: 10, False: 175]
  ------------------
  478|     10|    case 'n':
  ------------------
  |  Branch (478:5): [True: 10, False: 175]
  ------------------
  479|     10|      if (memeq("access-control-allow-origi", name, 26)) {
  ------------------
  |  Branch (479:11): [True: 0, False: 10]
  ------------------
  480|      0|        return NGHTTP2_TOKEN_ACCESS_CONTROL_ALLOW_ORIGIN;
  481|      0|      }
  482|     10|      break;
  483|    185|    }
  484|    185|    break;
  485|  69.7k|  }
  486|  44.9k|  return -1;
  487|  69.7k|}
nghttp2_hd.c:memeq:
  114|   226k|static int memeq(const void *s1, const void *s2, size_t n) {
  115|   226k|  return memcmp(s1, s2, n) == 0;
  116|   226k|}
nghttp2_hd.c:name_hash:
  518|  37.4k|static uint32_t name_hash(const nghttp2_nv *nv) {
  519|       |  /* 32 bit FNV-1a: http://isthe.com/chongo/tech/comp/fnv/ */
  520|  37.4k|  uint32_t h = 2166136261u;
  521|  37.4k|  size_t i;
  522|       |
  523|   272k|  for (i = 0; i < nv->namelen; ++i) {
  ------------------
  |  Branch (523:15): [True: 235k, False: 37.4k]
  ------------------
  524|   235k|    h ^= nv->name[i];
  525|   235k|    h += (h << 1) + (h << 4) + (h << 7) + (h << 8) + (h << 24);
  526|   235k|  }
  527|       |
  528|  37.4k|  return h;
  529|  37.4k|}
nghttp2_hd.c:hd_deflate_decide_indexing:
 1341|  62.1k|                                      const nghttp2_nv *nv, int32_t token) {
 1342|  62.1k|  if (token == NGHTTP2_TOKEN__PATH || token == NGHTTP2_TOKEN_AGE ||
  ------------------
  |  Branch (1342:7): [True: 4.37k, False: 57.8k]
  |  Branch (1342:39): [True: 13, False: 57.7k]
  ------------------
 1343|  57.7k|      token == NGHTTP2_TOKEN_CONTENT_LENGTH || token == NGHTTP2_TOKEN_ETAG ||
  ------------------
  |  Branch (1343:7): [True: 400, False: 57.3k]
  |  Branch (1343:48): [True: 12, False: 57.3k]
  ------------------
 1344|  57.3k|      token == NGHTTP2_TOKEN_IF_MODIFIED_SINCE ||
  ------------------
  |  Branch (1344:7): [True: 0, False: 57.3k]
  ------------------
 1345|  57.3k|      token == NGHTTP2_TOKEN_IF_NONE_MATCH || token == NGHTTP2_TOKEN_LOCATION ||
  ------------------
  |  Branch (1345:7): [True: 0, False: 57.3k]
  |  Branch (1345:47): [True: 268, False: 57.1k]
  ------------------
 1346|  57.1k|      token == NGHTTP2_TOKEN_SET_COOKIE ||
  ------------------
  |  Branch (1346:7): [True: 0, False: 57.1k]
  ------------------
 1347|  57.1k|      entry_room(nv->namelen, nv->valuelen) >
  ------------------
  |  Branch (1347:7): [True: 47, False: 57.0k]
  ------------------
 1348|  57.1k|        deflater->ctx.hd_table_bufsize_max * 3 / 4) {
 1349|  5.11k|    return NGHTTP2_HD_WITHOUT_INDEXING;
 1350|  5.11k|  }
 1351|       |
 1352|  57.0k|  return NGHTTP2_HD_WITH_INDEXING;
 1353|  62.1k|}
nghttp2_hd.c:search_hd_table:
 1212|  62.2k|                                     uint32_t hash) {
 1213|  62.2k|  search_result res = {-1, 0};
 1214|  62.2k|  const nghttp2_hd_entry *ent;
 1215|  62.2k|  int exact_match;
 1216|  62.2k|  int name_only = indexing_mode == NGHTTP2_HD_NEVER_INDEXING;
 1217|       |
 1218|  62.2k|  exact_match = 0;
 1219|  62.2k|  ent = hd_map_find(map, &exact_match, nv, token, hash, name_only);
 1220|       |
 1221|  62.2k|  if (!exact_match && token >= 0 && token <= NGHTTP2_TOKEN_WWW_AUTHENTICATE) {
  ------------------
  |  Branch (1221:7): [True: 39.8k, False: 22.4k]
  |  Branch (1221:23): [True: 24.4k, False: 15.3k]
  |  Branch (1221:37): [True: 24.4k, False: 0]
  ------------------
 1222|  24.4k|    return search_static_table(nv, token, name_only);
 1223|  24.4k|  }
 1224|       |
 1225|  37.7k|  if (ent == NULL) {
  ------------------
  |  Branch (1225:7): [True: 7.38k, False: 30.4k]
  ------------------
 1226|  7.38k|    return res;
 1227|  7.38k|  }
 1228|       |
 1229|  30.4k|  res.index = (nghttp2_ssize)(context->next_seq - 1 - ent->seq +
 1230|  30.4k|                              NGHTTP2_STATIC_TABLE_LENGTH);
  ------------------
  |  |   53|  30.4k|#define NGHTTP2_STATIC_TABLE_LENGTH 61
  ------------------
 1231|  30.4k|  res.name_value_match = exact_match;
 1232|       |
 1233|  30.4k|  return res;
 1234|  37.7k|}
nghttp2_hd.c:hd_map_find:
  552|  62.2k|                                     uint32_t hash, int name_only) {
  553|  62.2k|  nghttp2_hd_entry *p;
  554|  62.2k|  nghttp2_hd_entry *res = NULL;
  555|       |
  556|  62.2k|  *exact_match = 0;
  557|       |
  558|   199k|  for (p = map->table[hash & (HD_MAP_SIZE - 1)]; p; p = p->next) {
  ------------------
  |  |  214|  62.2k|#define HD_MAP_SIZE 128
  ------------------
  |  Branch (558:50): [True: 159k, False: 39.8k]
  ------------------
  559|   159k|    if (token != p->nv.token ||
  ------------------
  |  Branch (559:9): [True: 1.10k, False: 158k]
  ------------------
  560|   158k|        (token == -1 && (hash != p->hash || !name_eq(&p->nv, nv)))) {
  ------------------
  |  Branch (560:10): [True: 156k, False: 2.05k]
  |  Branch (560:26): [True: 7.39k, False: 149k]
  |  Branch (560:45): [True: 0, False: 149k]
  ------------------
  561|  8.49k|      continue;
  562|  8.49k|    }
  563|   151k|    if (!res) {
  ------------------
  |  Branch (563:9): [True: 30.8k, False: 120k]
  ------------------
  564|  30.8k|      res = p;
  565|  30.8k|      if (name_only) {
  ------------------
  |  Branch (565:11): [True: 0, False: 30.8k]
  ------------------
  566|      0|        break;
  567|      0|      }
  568|  30.8k|    }
  569|   151k|    if (value_eq(&p->nv, nv)) {
  ------------------
  |  Branch (569:9): [True: 22.4k, False: 129k]
  ------------------
  570|  22.4k|      res = p;
  571|  22.4k|      *exact_match = 1;
  572|  22.4k|      break;
  573|  22.4k|    }
  574|   151k|  }
  575|       |
  576|  62.2k|  return res;
  577|  62.2k|}
nghttp2_hd.c:name_eq:
  508|   149k|static int name_eq(const nghttp2_hd_nv *a, const nghttp2_nv *b) {
  509|   149k|  return a->name->len == b->namelen &&
  ------------------
  |  Branch (509:10): [True: 149k, False: 0]
  ------------------
  510|   149k|         memeq(a->name->base, b->name, b->namelen);
  ------------------
  |  Branch (510:10): [True: 149k, False: 0]
  ------------------
  511|   149k|}
nghttp2_hd.c:value_eq:
  513|   151k|static int value_eq(const nghttp2_hd_nv *a, const nghttp2_nv *b) {
  514|   151k|  return a->value->len == b->valuelen &&
  ------------------
  |  Branch (514:10): [True: 39.1k, False: 112k]
  ------------------
  515|  39.1k|         memeq(a->value->base, b->value, b->valuelen);
  ------------------
  |  Branch (515:10): [True: 22.4k, False: 16.7k]
  ------------------
  516|   151k|}
nghttp2_hd.c:search_static_table:
 1186|  24.4k|                                         int name_only) {
 1187|  24.4k|  search_result res = {token, 0};
 1188|  24.4k|  int i;
 1189|  24.4k|  const nghttp2_hd_static_entry *ent;
 1190|       |
 1191|  24.4k|  if (name_only) {
  ------------------
  |  Branch (1191:7): [True: 65, False: 24.4k]
  ------------------
 1192|     65|    return res;
 1193|     65|  }
 1194|       |
 1195|  24.4k|  for (i = token;
 1196|  36.8k|       i <= NGHTTP2_TOKEN_WWW_AUTHENTICATE && static_table[i].token == token;
  ------------------
  |  Branch (1196:8): [True: 36.8k, False: 0]
  |  Branch (1196:47): [True: 25.3k, False: 11.4k]
  ------------------
 1197|  25.3k|       ++i) {
 1198|  25.3k|    ent = &static_table[i];
 1199|  25.3k|    if (ent->value.len == nv->valuelen &&
  ------------------
  |  Branch (1199:9): [True: 13.2k, False: 12.1k]
  ------------------
 1200|  13.2k|        memcmp(ent->value.base, nv->value, nv->valuelen) == 0) {
  ------------------
  |  Branch (1200:9): [True: 12.9k, False: 290]
  ------------------
 1201|  12.9k|      res.index = i;
 1202|  12.9k|      res.name_value_match = 1;
 1203|  12.9k|      return res;
 1204|  12.9k|    }
 1205|  25.3k|  }
 1206|  11.4k|  return res;
 1207|  24.4k|}
nghttp2_hd.c:emit_indexed_block:
  959|  35.4k|static int emit_indexed_block(nghttp2_bufs *bufs, size_t idx) {
  960|  35.4k|  int rv;
  961|  35.4k|  size_t blocklen;
  962|  35.4k|  uint8_t sb[16];
  963|  35.4k|  uint8_t *bufp;
  964|       |
  965|  35.4k|  blocklen = count_encoded_length(idx + 1, 7);
  966|       |
  967|  35.4k|  DEBUGF("deflatehd: emit indexed index=%zu, %zu bytes\n", idx, blocklen);
  ------------------
  |  |   39|  35.4k|    do {                                                                       \
  |  |   40|  35.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 35.4k]
  |  |  ------------------
  ------------------
  968|       |
  969|  35.4k|  if (sizeof(sb) < blocklen) {
  ------------------
  |  Branch (969:7): [True: 0, False: 35.4k]
  ------------------
  970|      0|    return NGHTTP2_ERR_HEADER_COMP;
  971|      0|  }
  972|       |
  973|  35.4k|  bufp = sb;
  974|  35.4k|  *bufp = 0x80u;
  975|  35.4k|  encode_length(bufp, idx + 1, 7);
  976|       |
  977|  35.4k|  rv = nghttp2_bufs_add(bufs, sb, blocklen);
  978|  35.4k|  if (rv != 0) {
  ------------------
  |  Branch (978:7): [True: 0, False: 35.4k]
  ------------------
  979|      0|    return rv;
  980|      0|  }
  981|       |
  982|  35.4k|  return 0;
  983|  35.4k|}
nghttp2_hd.c:add_hd_table_incremental:
 1116|  29.9k|                                    uint32_t hash) {
 1117|  29.9k|  int rv;
 1118|  29.9k|  nghttp2_hd_entry *new_ent;
 1119|  29.9k|  size_t room;
 1120|  29.9k|  nghttp2_mem *mem;
 1121|       |
 1122|  29.9k|  mem = context->mem;
 1123|  29.9k|  room = entry_room(nv->name->len, nv->value->len);
 1124|       |
 1125|  36.5k|  while (context->hd_table_bufsize + room > context->hd_table_bufsize_max &&
  ------------------
  |  Branch (1125:10): [True: 7.17k, False: 29.3k]
  ------------------
 1126|  7.17k|         context->hd_table.len > 0) {
  ------------------
  |  Branch (1126:10): [True: 6.60k, False: 576]
  ------------------
 1127|  6.60k|    size_t idx = context->hd_table.len - 1;
 1128|  6.60k|    nghttp2_hd_entry *ent = hd_ringbuf_get(&context->hd_table, idx);
 1129|       |
 1130|  6.60k|    context->hd_table_bufsize -=
 1131|  6.60k|      entry_room(ent->nv.name->len, ent->nv.value->len);
 1132|       |
 1133|  6.60k|    DEBUGF("hpack: remove item from header table: %s: %s\n",
  ------------------
  |  |   39|  6.60k|    do {                                                                       \
  |  |   40|  6.60k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 6.60k]
  |  |  ------------------
  ------------------
 1134|  6.60k|           (char *)ent->nv.name->base, (char *)ent->nv.value->base);
 1135|       |
 1136|  6.60k|    hd_ringbuf_pop_back(&context->hd_table);
 1137|  6.60k|    if (map) {
  ------------------
  |  Branch (1137:9): [True: 5.94k, False: 653]
  ------------------
 1138|  5.94k|      hd_map_remove(map, ent);
 1139|  5.94k|    }
 1140|       |
 1141|  6.60k|    nghttp2_hd_entry_free(ent);
 1142|  6.60k|    nghttp2_mem_free(mem, ent);
 1143|  6.60k|  }
 1144|       |
 1145|  29.9k|  if (room > context->hd_table_bufsize_max) {
  ------------------
  |  Branch (1145:7): [True: 576, False: 29.3k]
  ------------------
 1146|       |    /* The entry taking more than NGHTTP2_HD_MAX_BUFFER_SIZE is
 1147|       |       immediately evicted.  So we don't allocate memory for it. */
 1148|    576|    return 0;
 1149|    576|  }
 1150|       |
 1151|  29.3k|  new_ent = nghttp2_mem_malloc(mem, sizeof(nghttp2_hd_entry));
 1152|  29.3k|  if (new_ent == NULL) {
  ------------------
  |  Branch (1152:7): [True: 0, False: 29.3k]
  ------------------
 1153|      0|    return NGHTTP2_ERR_NOMEM;
 1154|      0|  }
 1155|       |
 1156|  29.3k|  nghttp2_hd_entry_init(new_ent, nv);
 1157|       |
 1158|  29.3k|  rv = hd_ringbuf_push_front(&context->hd_table, new_ent, mem);
 1159|       |
 1160|  29.3k|  if (rv != 0) {
  ------------------
  |  Branch (1160:7): [True: 0, False: 29.3k]
  ------------------
 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|  29.3k|  new_ent->seq = context->next_seq++;
 1168|  29.3k|  new_ent->hash = hash;
 1169|       |
 1170|  29.3k|  if (map) {
  ------------------
  |  Branch (1170:7): [True: 25.7k, False: 3.67k]
  ------------------
 1171|  25.7k|    hd_map_insert(map, new_ent);
 1172|  25.7k|  }
 1173|       |
 1174|  29.3k|  context->hd_table_bufsize += room;
 1175|       |
 1176|  29.3k|  return 0;
 1177|  29.3k|}
nghttp2_hd.c:hd_ringbuf_push_front:
  667|  29.3k|                                 nghttp2_hd_entry *ent, nghttp2_mem *mem) {
  668|  29.3k|  int rv;
  669|       |
  670|  29.3k|  rv = hd_ringbuf_reserve(ringbuf, ringbuf->len + 1, mem);
  671|       |
  672|  29.3k|  if (rv != 0) {
  ------------------
  |  Branch (672:7): [True: 0, False: 29.3k]
  ------------------
  673|      0|    return rv;
  674|      0|  }
  675|       |
  676|  29.3k|  ringbuf->buffer[--ringbuf->first & ringbuf->mask] = ent;
  677|  29.3k|  ++ringbuf->len;
  678|       |
  679|  29.3k|  return 0;
  680|  29.3k|}
nghttp2_hd.c:hd_ringbuf_reserve:
  628|  29.3k|                              nghttp2_mem *mem) {
  629|  29.3k|  size_t i;
  630|  29.3k|  size_t size;
  631|  29.3k|  nghttp2_hd_entry **buffer;
  632|       |
  633|  29.3k|  if (ringbuf->mask + 1 >= bufsize) {
  ------------------
  |  Branch (633:7): [True: 29.3k, False: 0]
  ------------------
  634|  29.3k|    return 0;
  635|  29.3k|  }
  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|  25.7k|static void hd_map_insert(nghttp2_hd_map *map, nghttp2_hd_entry *ent) {
  536|  25.7k|  nghttp2_hd_entry **bucket;
  537|       |
  538|  25.7k|  bucket = &map->table[ent->hash & (HD_MAP_SIZE - 1)];
  ------------------
  |  |  214|  25.7k|#define HD_MAP_SIZE 128
  ------------------
  539|       |
  540|  25.7k|  if (*bucket == NULL) {
  ------------------
  |  Branch (540:7): [True: 16.2k, False: 9.51k]
  ------------------
  541|  16.2k|    *bucket = ent;
  542|  16.2k|    return;
  543|  16.2k|  }
  544|       |
  545|       |  /* lower index is linked near the root */
  546|  9.51k|  ent->next = *bucket;
  547|  9.51k|  *bucket = ent;
  548|  9.51k|}
nghttp2_hd.c:hd_inflate_read_len:
 1671|  72.7k|                                         size_t maxlen) {
 1672|  72.7k|  nghttp2_ssize rv;
 1673|  72.7k|  uint32_t out;
 1674|       |
 1675|  72.7k|  *rfin = 0;
 1676|       |
 1677|  72.7k|  rv = decode_length(&out, &inflater->shift, rfin, (uint32_t)inflater->left,
 1678|  72.7k|                     inflater->shift, in, last, prefix);
 1679|       |
 1680|  72.7k|  if (rv == -1) {
  ------------------
  |  Branch (1680:7): [True: 140, False: 72.6k]
  ------------------
 1681|    140|    DEBUGF("inflatehd: integer decoding failed\n");
  ------------------
  |  |   39|    140|    do {                                                                       \
  |  |   40|    140|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 140]
  |  |  ------------------
  ------------------
 1682|    140|    return NGHTTP2_ERR_HEADER_COMP;
 1683|    140|  }
 1684|       |
 1685|  72.6k|  if (out > maxlen) {
  ------------------
  |  Branch (1685:7): [True: 619, False: 72.0k]
  ------------------
 1686|    619|    DEBUGF("inflatehd: integer exceeded the maximum value %zu\n", maxlen);
  ------------------
  |  |   39|    619|    do {                                                                       \
  |  |   40|    619|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 619]
  |  |  ------------------
  ------------------
 1687|    619|    return NGHTTP2_ERR_HEADER_COMP;
 1688|    619|  }
 1689|       |
 1690|  72.0k|  inflater->left = out;
 1691|       |
 1692|  72.0k|  DEBUGF("inflatehd: decoded integer is %u\n", out);
  ------------------
  |  |   39|  72.0k|    do {                                                                       \
  |  |   40|  72.0k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 72.0k]
  |  |  ------------------
  ------------------
 1693|       |
 1694|  72.0k|  return rv;
 1695|  72.6k|}
nghttp2_hd.c:get_max_index:
 1310|  47.8k|static size_t get_max_index(nghttp2_hd_context *context) {
 1311|  47.8k|  return context->hd_table.len + NGHTTP2_STATIC_TABLE_LENGTH;
  ------------------
  |  |   53|  47.8k|#define NGHTTP2_STATIC_TABLE_LENGTH 61
  ------------------
 1312|  47.8k|}
nghttp2_hd.c:hd_inflate_commit_indexed:
 1763|  40.7k|                                      nghttp2_hd_nv *nv_out) {
 1764|  40.7k|  nghttp2_hd_nv nv = nghttp2_hd_table_get(&inflater->ctx, inflater->index);
 1765|       |
 1766|  40.7k|  emit_header(nv_out, &nv);
 1767|  40.7k|}
nghttp2_hd.c:emit_header:
  799|  54.2k|static void emit_header(nghttp2_hd_nv *nv_out, nghttp2_hd_nv *nv) {
  800|  54.2k|  DEBUGF("inflatehd: header emission: %s: %s\n", nv->name->base,
  ------------------
  |  |   39|  54.2k|    do {                                                                       \
  |  |   40|  54.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 54.2k]
  |  |  ------------------
  ------------------
  801|  54.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|  54.2k|  *nv_out = *nv;
  805|  54.2k|}
nghttp2_hd.c:hd_inflate_set_huffman_encoded:
 1651|  22.0k|                                           const uint8_t *in) {
 1652|  22.0k|  inflater->huffman_encoded = (*in & (1 << 7)) != 0;
 1653|  22.0k|}
nghttp2_hd.c:hd_inflate_read_huff:
 1712|  3.85k|                                          const uint8_t *last) {
 1713|  3.85k|  nghttp2_ssize readlen;
 1714|  3.85k|  int fin = 0;
 1715|  3.85k|  if ((size_t)(last - in) >= inflater->left) {
  ------------------
  |  Branch (1715:7): [True: 3.22k, False: 622]
  ------------------
 1716|  3.22k|    last = in + inflater->left;
 1717|  3.22k|    fin = 1;
 1718|  3.22k|  }
 1719|  3.85k|  readlen = nghttp2_hd_huff_decode(&inflater->huff_decode_ctx, buf, in,
 1720|  3.85k|                                   (size_t)(last - in), fin);
 1721|       |
 1722|  3.85k|  if (readlen < 0) {
  ------------------
  |  Branch (1722:7): [True: 46, False: 3.80k]
  ------------------
 1723|     46|    DEBUGF("inflatehd: huffman decoding failed\n");
  ------------------
  |  |   39|     46|    do {                                                                       \
  |  |   40|     46|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 46]
  |  |  ------------------
  ------------------
 1724|     46|    return readlen;
 1725|     46|  }
 1726|  3.80k|  if (nghttp2_hd_huff_decode_failure_state(&inflater->huff_decode_ctx)) {
  ------------------
  |  Branch (1726:7): [True: 7, False: 3.79k]
  ------------------
 1727|      7|    DEBUGF("inflatehd: huffman decoding failed\n");
  ------------------
  |  |   39|      7|    do {                                                                       \
  |  |   40|      7|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 7]
  |  |  ------------------
  ------------------
 1728|      7|    return NGHTTP2_ERR_HEADER_COMP;
 1729|      7|  }
 1730|       |
 1731|  3.79k|  inflater->left -= (size_t)readlen;
 1732|  3.79k|  return readlen;
 1733|  3.80k|}
nghttp2_hd.c:hd_inflate_read:
 1749|  19.1k|                                     const uint8_t *last) {
 1750|  19.1k|  size_t len = nghttp2_min_size((size_t)(last - in), inflater->left);
 1751|       |
 1752|  19.1k|  buf->last = nghttp2_cpymem(buf->last, in, len);
 1753|       |
 1754|  19.1k|  inflater->left -= len;
 1755|  19.1k|  return (nghttp2_ssize)len;
 1756|  19.1k|}
nghttp2_hd.c:hd_inflate_commit_newname:
 1781|  7.50k|                                     nghttp2_hd_nv *nv_out) {
 1782|  7.50k|  nghttp2_hd_nv nv;
 1783|  7.50k|  int rv;
 1784|       |
 1785|  7.50k|  if (inflater->no_index) {
  ------------------
  |  Branch (1785:7): [True: 431, False: 7.07k]
  ------------------
 1786|    431|    nv.flags = NGHTTP2_NV_FLAG_NO_INDEX;
 1787|  7.07k|  } else {
 1788|  7.07k|    nv.flags = NGHTTP2_NV_FLAG_NONE;
 1789|  7.07k|  }
 1790|       |
 1791|  7.50k|  nv.name = inflater->namercbuf;
 1792|  7.50k|  nv.value = inflater->valuercbuf;
 1793|  7.50k|  nv.token = lookup_token(inflater->namercbuf->base, inflater->namercbuf->len);
 1794|       |
 1795|  7.50k|  if (inflater->index_required) {
  ------------------
  |  Branch (1795:7): [True: 1.01k, False: 6.48k]
  ------------------
 1796|  1.01k|    rv = add_hd_table_incremental(&inflater->ctx, &nv, NULL, 0);
 1797|       |
 1798|  1.01k|    if (rv != 0) {
  ------------------
  |  Branch (1798:9): [True: 0, False: 1.01k]
  ------------------
 1799|      0|      return rv;
 1800|      0|    }
 1801|  1.01k|  }
 1802|       |
 1803|  7.50k|  emit_header(nv_out, &nv);
 1804|       |
 1805|  7.50k|  inflater->nv_name_keep = nv.name;
 1806|  7.50k|  inflater->nv_value_keep = nv.value;
 1807|       |
 1808|  7.50k|  inflater->namercbuf = NULL;
 1809|  7.50k|  inflater->valuercbuf = NULL;
 1810|       |
 1811|  7.50k|  return 0;
 1812|  7.50k|}
nghttp2_hd.c:hd_inflate_commit_indname:
 1826|  6.02k|                                     nghttp2_hd_nv *nv_out) {
 1827|  6.02k|  nghttp2_hd_nv nv;
 1828|  6.02k|  int rv;
 1829|       |
 1830|  6.02k|  nv = nghttp2_hd_table_get(&inflater->ctx, inflater->index);
 1831|       |
 1832|  6.02k|  if (inflater->no_index) {
  ------------------
  |  Branch (1832:7): [True: 519, False: 5.50k]
  ------------------
 1833|    519|    nv.flags = NGHTTP2_NV_FLAG_NO_INDEX;
 1834|  5.50k|  } else {
 1835|  5.50k|    nv.flags = NGHTTP2_NV_FLAG_NONE;
 1836|  5.50k|  }
 1837|       |
 1838|  6.02k|  nghttp2_rcbuf_incref(nv.name);
 1839|       |
 1840|  6.02k|  nv.value = inflater->valuercbuf;
 1841|       |
 1842|  6.02k|  if (inflater->index_required) {
  ------------------
  |  Branch (1842:7): [True: 3.22k, False: 2.79k]
  ------------------
 1843|  3.22k|    rv = add_hd_table_incremental(&inflater->ctx, &nv, NULL, 0);
 1844|  3.22k|    if (rv != 0) {
  ------------------
  |  Branch (1844:9): [True: 0, False: 3.22k]
  ------------------
 1845|      0|      nghttp2_rcbuf_decref(nv.name);
 1846|      0|      return NGHTTP2_ERR_NOMEM;
 1847|      0|    }
 1848|  3.22k|  }
 1849|       |
 1850|  6.02k|  emit_header(nv_out, &nv);
 1851|       |
 1852|  6.02k|  inflater->nv_name_keep = nv.name;
 1853|  6.02k|  inflater->nv_value_keep = nv.value;
 1854|       |
 1855|  6.02k|  inflater->valuercbuf = NULL;
 1856|       |
 1857|  6.02k|  return 0;
 1858|  6.02k|}
nghttp2_hd.c:emit_indname_block:
 1047|  19.4k|                              const nghttp2_nv *nv, int indexing_mode) {
 1048|  19.4k|  int rv;
 1049|  19.4k|  uint8_t *bufp;
 1050|  19.4k|  size_t blocklen;
 1051|  19.4k|  uint8_t sb[16];
 1052|  19.4k|  size_t prefixlen;
 1053|       |
 1054|  19.4k|  if (indexing_mode == NGHTTP2_HD_WITH_INDEXING) {
  ------------------
  |  Branch (1054:7): [True: 18.3k, False: 1.10k]
  ------------------
 1055|  18.3k|    prefixlen = 6;
 1056|  18.3k|  } else {
 1057|  1.10k|    prefixlen = 4;
 1058|  1.10k|  }
 1059|       |
 1060|  19.4k|  DEBUGF("deflatehd: emit indname index=%zu, valuelen=%zu, indexing_mode=%d\n",
  ------------------
  |  |   39|  19.4k|    do {                                                                       \
  |  |   40|  19.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 19.4k]
  |  |  ------------------
  ------------------
 1061|  19.4k|         idx, nv->valuelen, indexing_mode);
 1062|       |
 1063|  19.4k|  blocklen = count_encoded_length(idx + 1, prefixlen);
 1064|       |
 1065|  19.4k|  if (sizeof(sb) < blocklen) {
  ------------------
  |  Branch (1065:7): [True: 0, False: 19.4k]
  ------------------
 1066|      0|    return NGHTTP2_ERR_HEADER_COMP;
 1067|      0|  }
 1068|       |
 1069|  19.4k|  bufp = sb;
 1070|       |
 1071|  19.4k|  *bufp = pack_first_byte(indexing_mode);
 1072|       |
 1073|  19.4k|  encode_length(bufp, idx + 1, prefixlen);
 1074|       |
 1075|  19.4k|  rv = nghttp2_bufs_add(bufs, sb, blocklen);
 1076|  19.4k|  if (rv != 0) {
  ------------------
  |  Branch (1076:7): [True: 0, False: 19.4k]
  ------------------
 1077|      0|    return rv;
 1078|      0|  }
 1079|       |
 1080|  19.4k|  rv = emit_string(bufs, nv->value, nv->valuelen);
 1081|  19.4k|  if (rv != 0) {
  ------------------
  |  Branch (1081:7): [True: 0, False: 19.4k]
  ------------------
 1082|      0|    return rv;
 1083|      0|  }
 1084|       |
 1085|  19.4k|  return 0;
 1086|  19.4k|}
nghttp2_hd.c:pack_first_byte:
 1030|  26.8k|static uint8_t pack_first_byte(int indexing_mode) {
 1031|  26.8k|  switch (indexing_mode) {
 1032|  25.7k|  case NGHTTP2_HD_WITH_INDEXING:
  ------------------
  |  Branch (1032:3): [True: 25.7k, False: 1.12k]
  ------------------
 1033|  25.7k|    return 0x40u;
 1034|  1.05k|  case NGHTTP2_HD_WITHOUT_INDEXING:
  ------------------
  |  Branch (1034:3): [True: 1.05k, False: 25.7k]
  ------------------
 1035|  1.05k|    return 0;
 1036|     65|  case NGHTTP2_HD_NEVER_INDEXING:
  ------------------
  |  Branch (1036:3): [True: 65, False: 26.7k]
  ------------------
 1037|     65|    return 0x10u;
 1038|      0|  default:
  ------------------
  |  Branch (1038:3): [True: 0, False: 26.8k]
  ------------------
 1039|      0|    assert(0);
  ------------------
  |  Branch (1039:5): [Folded, False: 0]
  |  Branch (1039:5): [Folded, False: 0]
  ------------------
 1040|  26.8k|  }
 1041|       |  /* This is required to compile with android NDK r10d +
 1042|       |     --enable-werror */
 1043|      0|  return 0;
 1044|  26.8k|}
nghttp2_hd.c:emit_string:
  985|  34.2k|static int emit_string(nghttp2_bufs *bufs, const uint8_t *str, size_t len) {
  986|  34.2k|  int rv;
  987|  34.2k|  uint8_t sb[16];
  988|  34.2k|  uint8_t *bufp;
  989|  34.2k|  size_t blocklen;
  990|  34.2k|  size_t enclen;
  991|  34.2k|  int huffman = 0;
  992|       |
  993|  34.2k|  enclen = nghttp2_hd_huff_encode_count(str, len);
  994|       |
  995|  34.2k|  if (enclen < len) {
  ------------------
  |  Branch (995:7): [True: 6.15k, False: 28.0k]
  ------------------
  996|  6.15k|    huffman = 1;
  997|  28.0k|  } else {
  998|  28.0k|    enclen = len;
  999|  28.0k|  }
 1000|       |
 1001|  34.2k|  blocklen = count_encoded_length(enclen, 7);
 1002|       |
 1003|  34.2k|  DEBUGF("deflatehd: emit string str=%.*s, length=%zu, huffman=%d, "
  ------------------
  |  |   39|  34.2k|    do {                                                                       \
  |  |   40|  34.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 34.2k]
  |  |  ------------------
  ------------------
 1004|  34.2k|         "encoded_length=%zu\n",
 1005|  34.2k|         (int)len, (const char *)str, len, huffman, enclen);
 1006|       |
 1007|  34.2k|  if (sizeof(sb) < blocklen) {
  ------------------
  |  Branch (1007:7): [True: 0, False: 34.2k]
  ------------------
 1008|      0|    return NGHTTP2_ERR_HEADER_COMP;
 1009|      0|  }
 1010|       |
 1011|  34.2k|  bufp = sb;
 1012|  34.2k|  *bufp = huffman ? 1 << 7 : 0;
  ------------------
  |  Branch (1012:11): [True: 6.15k, False: 28.0k]
  ------------------
 1013|  34.2k|  encode_length(bufp, enclen, 7);
 1014|       |
 1015|  34.2k|  rv = nghttp2_bufs_add(bufs, sb, blocklen);
 1016|  34.2k|  if (rv != 0) {
  ------------------
  |  Branch (1016:7): [True: 0, False: 34.2k]
  ------------------
 1017|      0|    return rv;
 1018|      0|  }
 1019|       |
 1020|  34.2k|  if (huffman) {
  ------------------
  |  Branch (1020:7): [True: 6.15k, False: 28.0k]
  ------------------
 1021|  6.15k|    rv = nghttp2_hd_huff_encode(bufs, str, len);
 1022|  28.0k|  } else {
 1023|  28.0k|    assert(enclen == len);
  ------------------
  |  Branch (1023:5): [True: 0, False: 28.0k]
  |  Branch (1023:5): [True: 28.0k, False: 0]
  ------------------
 1024|  28.0k|    rv = nghttp2_bufs_add(bufs, str, len);
 1025|  28.0k|  }
 1026|       |
 1027|  34.2k|  return rv;
 1028|  34.2k|}
nghttp2_hd.c:emit_newname_block:
 1089|  7.38k|                              int indexing_mode) {
 1090|  7.38k|  int rv;
 1091|       |
 1092|  7.38k|  DEBUGF(
  ------------------
  |  |   39|  7.38k|    do {                                                                       \
  |  |   40|  7.38k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 7.38k]
  |  |  ------------------
  ------------------
 1093|  7.38k|    "deflatehd: emit newname namelen=%zu, valuelen=%zu, indexing_mode=%d\n",
 1094|  7.38k|    nv->namelen, nv->valuelen, indexing_mode);
 1095|       |
 1096|  7.38k|  rv = nghttp2_bufs_addb(bufs, pack_first_byte(indexing_mode));
 1097|  7.38k|  if (rv != 0) {
  ------------------
  |  Branch (1097:7): [True: 0, False: 7.38k]
  ------------------
 1098|      0|    return rv;
 1099|      0|  }
 1100|       |
 1101|  7.38k|  rv = emit_string(bufs, nv->name, nv->namelen);
 1102|  7.38k|  if (rv != 0) {
  ------------------
  |  Branch (1102:7): [True: 0, False: 7.38k]
  ------------------
 1103|      0|    return rv;
 1104|      0|  }
 1105|       |
 1106|  7.38k|  rv = emit_string(bufs, nv->value, nv->valuelen);
 1107|  7.38k|  if (rv != 0) {
  ------------------
  |  Branch (1107:7): [True: 0, False: 7.38k]
  ------------------
 1108|      0|    return rv;
 1109|      0|  }
 1110|       |
 1111|  7.38k|  return 0;
 1112|  7.38k|}
nghttp2_hd.c:decode_length:
  869|  72.7k|                                   size_t prefix) {
  870|  72.7k|  uint32_t k = (uint8_t)((1 << prefix) - 1);
  871|  72.7k|  uint32_t n = initial;
  872|  72.7k|  const uint8_t *start = in;
  873|       |
  874|  72.7k|  *shift_ptr = 0;
  875|  72.7k|  *fin = 0;
  876|       |
  877|  72.7k|  if (n == 0) {
  ------------------
  |  Branch (877:7): [True: 71.8k, False: 966]
  ------------------
  878|  71.8k|    if ((*in & k) != k) {
  ------------------
  |  Branch (878:9): [True: 69.1k, False: 2.66k]
  ------------------
  879|  69.1k|      *res = (*in) & k;
  880|  69.1k|      *fin = 1;
  881|  69.1k|      return 1;
  882|  69.1k|    }
  883|       |
  884|  2.66k|    n = k;
  885|       |
  886|  2.66k|    if (++in == last) {
  ------------------
  |  Branch (886:9): [True: 626, False: 2.04k]
  ------------------
  887|    626|      *res = n;
  888|    626|      return (nghttp2_ssize)(in - start);
  889|    626|    }
  890|  2.66k|  }
  891|       |
  892|  5.17k|  for (; in != last; ++in, shift += 7) {
  ------------------
  |  Branch (892:10): [True: 4.58k, False: 589]
  ------------------
  893|  4.58k|    uint32_t add = *in & 0x7f;
  894|       |
  895|  4.58k|    if (shift >= 32) {
  ------------------
  |  Branch (895:9): [True: 61, False: 4.52k]
  ------------------
  896|     61|      DEBUGF("inflate: shift exponent overflow\n");
  ------------------
  |  |   39|     61|    do {                                                                       \
  |  |   40|     61|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 61]
  |  |  ------------------
  ------------------
  897|     61|      return -1;
  898|     61|    }
  899|       |
  900|  4.52k|    if ((UINT32_MAX >> shift) < add) {
  ------------------
  |  Branch (900:9): [True: 75, False: 4.44k]
  ------------------
  901|     75|      DEBUGF("inflate: integer overflow on shift\n");
  ------------------
  |  |   39|     75|    do {                                                                       \
  |  |   40|     75|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 75]
  |  |  ------------------
  ------------------
  902|     75|      return -1;
  903|     75|    }
  904|       |
  905|  4.44k|    add <<= shift;
  906|       |
  907|  4.44k|    if (UINT32_MAX - add < n) {
  ------------------
  |  Branch (907:9): [True: 4, False: 4.44k]
  ------------------
  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|  4.44k|    n += add;
  913|       |
  914|  4.44k|    if ((*in & (1 << 7)) == 0) {
  ------------------
  |  Branch (914:9): [True: 2.28k, False: 2.16k]
  ------------------
  915|  2.28k|      break;
  916|  2.28k|    }
  917|  4.44k|  }
  918|       |
  919|  2.86k|  *shift_ptr = shift;
  920|       |
  921|  2.86k|  if (in == last) {
  ------------------
  |  Branch (921:7): [True: 589, False: 2.28k]
  ------------------
  922|    589|    *res = n;
  923|    589|    return (nghttp2_ssize)(in - start);
  924|    589|  }
  925|       |
  926|  2.28k|  *res = n;
  927|  2.28k|  *fin = 1;
  928|  2.28k|  return (nghttp2_ssize)(in + 1 - start);
  929|  2.86k|}

nghttp2_hd_huff_encode_count:
   34|  34.2k|size_t nghttp2_hd_huff_encode_count(const uint8_t *src, size_t len) {
   35|  34.2k|  size_t i;
   36|  34.2k|  size_t nbits = 0;
   37|       |
   38|  2.10M|  for (i = 0; i < len; ++i) {
  ------------------
  |  Branch (38:15): [True: 2.06M, False: 34.2k]
  ------------------
   39|  2.06M|    nbits += huff_sym_table[src[i]].nbits;
   40|  2.06M|  }
   41|       |  /* pad the prefix of EOS (256) */
   42|  34.2k|  return (nbits + 7) / 8;
   43|  34.2k|}
nghttp2_hd_huff_encode:
   46|  6.15k|                           size_t srclen) {
   47|  6.15k|  const nghttp2_huff_sym *sym;
   48|  6.15k|  const uint8_t *end = src + srclen;
   49|  6.15k|  uint64_t code = 0;
   50|  6.15k|  uint32_t x;
   51|  6.15k|  size_t nbits = 0;
   52|  6.15k|  size_t avail;
   53|  6.15k|  int rv;
   54|       |
   55|  6.15k|  avail = nghttp2_bufs_cur_avail(bufs);
  ------------------
  |  |  405|  6.15k|#define nghttp2_bufs_cur_avail(BUFS) nghttp2_buf_avail(&(BUFS)->cur->buf)
  |  |  ------------------
  |  |  |  |   55|  6.15k|#define nghttp2_buf_avail(BUF) ((size_t)((BUF)->end - (BUF)->last))
  |  |  ------------------
  ------------------
   56|       |
   57|  1.42M|  for (; src != end;) {
  ------------------
  |  Branch (57:10): [True: 1.41M, False: 6.15k]
  ------------------
   58|  1.41M|    sym = &huff_sym_table[*src++];
   59|  1.41M|    code |= (uint64_t)sym->code << (32 - nbits);
   60|  1.41M|    nbits += sym->nbits;
   61|  1.41M|    if (nbits < 32) {
  ------------------
  |  Branch (61:9): [True: 1.15M, False: 261k]
  ------------------
   62|  1.15M|      continue;
   63|  1.15M|    }
   64|   261k|    if (avail >= 4) {
  ------------------
  |  Branch (64:9): [True: 261k, False: 40]
  ------------------
   65|   261k|      x = htonl((uint32_t)(code >> 32));
   66|   261k|      memcpy(bufs->cur->buf.last, &x, 4);
   67|   261k|      bufs->cur->buf.last += 4;
   68|   261k|      avail -= 4;
   69|   261k|      code <<= 32;
   70|   261k|      nbits -= 32;
   71|   261k|      continue;
   72|   261k|    }
   73|       |
   74|    200|    for (; nbits >= 8;) {
  ------------------
  |  Branch (74:12): [True: 160, False: 40]
  ------------------
   75|    160|      rv = nghttp2_bufs_addb(bufs, (uint8_t)(code >> 56));
   76|    160|      if (rv != 0) {
  ------------------
  |  Branch (76:11): [True: 0, False: 160]
  ------------------
   77|      0|        return rv;
   78|      0|      }
   79|    160|      code <<= 8;
   80|    160|      nbits -= 8;
   81|    160|    }
   82|       |
   83|     40|    avail = nghttp2_bufs_cur_avail(bufs);
  ------------------
  |  |  405|     40|#define nghttp2_bufs_cur_avail(BUFS) nghttp2_buf_avail(&(BUFS)->cur->buf)
  |  |  ------------------
  |  |  |  |   55|     40|#define nghttp2_buf_avail(BUF) ((size_t)((BUF)->end - (BUF)->last))
  |  |  ------------------
  ------------------
   84|     40|  }
   85|       |
   86|  15.7k|  for (; nbits >= 8;) {
  ------------------
  |  Branch (86:10): [True: 9.55k, False: 6.15k]
  ------------------
   87|  9.55k|    rv = nghttp2_bufs_addb(bufs, (uint8_t)(code >> 56));
   88|  9.55k|    if (rv != 0) {
  ------------------
  |  Branch (88:9): [True: 0, False: 9.55k]
  ------------------
   89|      0|      return rv;
   90|      0|    }
   91|  9.55k|    code <<= 8;
   92|  9.55k|    nbits -= 8;
   93|  9.55k|  }
   94|       |
   95|  6.15k|  if (nbits) {
  ------------------
  |  Branch (95:7): [True: 5.36k, False: 795]
  ------------------
   96|  5.36k|    rv = nghttp2_bufs_addb(
   97|  5.36k|      bufs, (uint8_t)((uint8_t)(code >> 56) | ((1 << (8 - nbits)) - 1)));
   98|  5.36k|    if (rv != 0) {
  ------------------
  |  Branch (98:9): [True: 0, False: 5.36k]
  ------------------
   99|      0|      return rv;
  100|      0|    }
  101|  5.36k|  }
  102|       |
  103|  6.15k|  return 0;
  104|  6.15k|}
nghttp2_hd_huff_decode_context_init:
  106|  3.51k|void nghttp2_hd_huff_decode_context_init(nghttp2_hd_huff_decode_context *ctx) {
  107|  3.51k|  ctx->fstate = 0;
  108|  3.51k|  ctx->flags = NGHTTP2_HUFF_ACCEPTED;
  109|  3.51k|}
nghttp2_hd_huff_decode:
  113|  3.85k|                                     size_t srclen, int final) {
  114|  3.85k|  const uint8_t *end = src + srclen;
  115|  3.85k|  nghttp2_huff_decode t = {ctx->fstate, ctx->flags, 0};
  116|  3.85k|  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|  38.3k|  for (; src != end;) {
  ------------------
  |  Branch (122:10): [True: 34.4k, False: 3.85k]
  ------------------
  123|  34.4k|    c = *src++;
  124|  34.4k|    t = huff_decode_table[t.fstate][c >> 4];
  125|  34.4k|    if (t.flags & NGHTTP2_HUFF_SYM) {
  ------------------
  |  Branch (125:9): [True: 23.4k, False: 11.0k]
  ------------------
  126|  23.4k|      *buf->last++ = t.sym;
  127|  23.4k|    }
  128|       |
  129|  34.4k|    t = huff_decode_table[t.fstate][c & 0xf];
  130|  34.4k|    if (t.flags & NGHTTP2_HUFF_SYM) {
  ------------------
  |  Branch (130:9): [True: 21.1k, False: 13.2k]
  ------------------
  131|  21.1k|      *buf->last++ = t.sym;
  132|  21.1k|    }
  133|  34.4k|  }
  134|       |
  135|  3.85k|  ctx->fstate = t.fstate;
  136|  3.85k|  ctx->flags = t.flags;
  137|       |
  138|  3.85k|  if (final && !(ctx->flags & NGHTTP2_HUFF_ACCEPTED)) {
  ------------------
  |  Branch (138:7): [True: 3.22k, False: 622]
  |  Branch (138:16): [True: 46, False: 3.18k]
  ------------------
  139|     46|    return NGHTTP2_ERR_HEADER_COMP;
  140|     46|  }
  141|       |
  142|  3.80k|  return (nghttp2_ssize)srclen;
  143|  3.85k|}
nghttp2_hd_huff_decode_failure_state:
  145|  3.80k|int nghttp2_hd_huff_decode_failure_state(nghttp2_hd_huff_decode_context *ctx) {
  146|  3.80k|  return ctx->fstate == 0x100;
  147|  3.80k|}

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

nghttp2_put_uint16be:
   32|  14.2k|void nghttp2_put_uint16be(uint8_t *buf, uint16_t n) {
   33|       |  uint16_t x = htons(n);
   34|  14.2k|  memcpy(buf, &x, sizeof(uint16_t));
   35|  14.2k|}
nghttp2_put_uint32be:
   37|  71.2k|void nghttp2_put_uint32be(uint8_t *buf, uint32_t n) {
   38|       |  uint32_t x = htonl(n);
   39|  71.2k|  memcpy(buf, &x, sizeof(uint32_t));
   40|  71.2k|}
nghttp2_get_uint16:
   42|  5.57k|uint16_t nghttp2_get_uint16(const uint8_t *data) {
   43|  5.57k|  uint16_t n;
   44|  5.57k|  memcpy(&n, data, sizeof(uint16_t));
   45|       |  return ntohs(n);
   46|  5.57k|}
nghttp2_get_uint32:
   48|  24.5k|uint32_t nghttp2_get_uint32(const uint8_t *data) {
   49|  24.5k|  uint32_t n;
   50|  24.5k|  memcpy(&n, data, sizeof(uint32_t));
   51|       |  return ntohl(n);
   52|  24.5k|}
nghttp2_downcase:
  122|  62.2k|void nghttp2_downcase(uint8_t *s, size_t len) {
  123|  62.2k|  size_t i;
  124|   484k|  for (i = 0; i < len; ++i) {
  ------------------
  |  Branch (124:15): [True: 422k, False: 62.2k]
  ------------------
  125|   422k|    s[i] = DOWNCASE_TBL[s[i]];
  126|   422k|  }
  127|  62.2k|}
nghttp2_adjust_local_window_size:
  158|  4.78k|                                     int32_t *delta_ptr) {
  159|  4.78k|  if (*delta_ptr > 0) {
  ------------------
  |  Branch (159:7): [True: 90, False: 4.69k]
  ------------------
  160|     90|    int32_t recv_reduction_delta;
  161|     90|    int32_t delta;
  162|     90|    int32_t new_recv_window_size =
  163|     90|      nghttp2_max_int32(0, *recv_window_size_ptr) - *delta_ptr;
  164|       |
  165|     90|    if (new_recv_window_size >= 0) {
  ------------------
  |  Branch (165:9): [True: 0, False: 90]
  ------------------
  166|      0|      *recv_window_size_ptr = new_recv_window_size;
  167|      0|      return 0;
  168|      0|    }
  169|       |
  170|     90|    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|     90|    if (*local_window_size_ptr > NGHTTP2_MAX_WINDOW_SIZE - delta) {
  ------------------
  |  |  224|     90|#define NGHTTP2_MAX_WINDOW_SIZE ((int32_t)((1U << 31) - 1))
  ------------------
  |  Branch (174:9): [True: 0, False: 90]
  ------------------
  175|      0|      return NGHTTP2_ERR_FLOW_CONTROL;
  176|      0|    }
  177|     90|    *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|     90|    recv_reduction_delta = nghttp2_min_int32(*recv_reduction_ptr, delta);
  181|     90|    *recv_reduction_ptr -= recv_reduction_delta;
  182|     90|    if (*recv_window_size_ptr < 0) {
  ------------------
  |  Branch (182:9): [True: 0, False: 90]
  ------------------
  183|      0|      *recv_window_size_ptr += recv_reduction_delta;
  184|     90|    } 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|     90|      *recv_window_size_ptr = recv_reduction_delta;
  191|     90|    }
  192|       |    /* recv_reduction_delta must be paid from *delta_ptr, since it was
  193|       |       added in window size reduction (see below). */
  194|     90|    *delta_ptr -= recv_reduction_delta;
  195|       |
  196|     90|    return 0;
  197|     90|  }
  198|       |
  199|  4.69k|  if (*local_window_size_ptr + *delta_ptr < 0 ||
  ------------------
  |  Branch (199:7): [True: 0, False: 4.69k]
  ------------------
  200|  4.69k|      *recv_window_size_ptr < INT32_MIN - *delta_ptr ||
  ------------------
  |  Branch (200:7): [True: 0, False: 4.69k]
  ------------------
  201|  4.69k|      *recv_reduction_ptr > INT32_MAX + *delta_ptr) {
  ------------------
  |  Branch (201:7): [True: 0, False: 4.69k]
  ------------------
  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|  4.69k|  *local_window_size_ptr += *delta_ptr;
  209|  4.69k|  *recv_window_size_ptr += *delta_ptr;
  210|  4.69k|  *recv_reduction_ptr -= *delta_ptr;
  211|  4.69k|  *delta_ptr = 0;
  212|       |
  213|  4.69k|  return 0;
  214|  4.69k|}
nghttp2_increase_local_window_size:
  219|  4.50k|                                       int32_t *delta_ptr) {
  220|  4.50k|  int32_t recv_reduction_delta;
  221|  4.50k|  int32_t delta;
  222|       |
  223|  4.50k|  delta = *delta_ptr;
  224|       |
  225|  4.50k|  assert(delta >= 0);
  ------------------
  |  Branch (225:3): [True: 0, False: 4.50k]
  |  Branch (225:3): [True: 4.50k, False: 0]
  ------------------
  226|       |
  227|       |  /* The delta size is strictly more than received bytes. Increase
  228|       |     local_window_size by that difference |delta|. */
  229|  4.50k|  if (*local_window_size_ptr > NGHTTP2_MAX_WINDOW_SIZE - delta) {
  ------------------
  |  |  224|  4.50k|#define NGHTTP2_MAX_WINDOW_SIZE ((int32_t)((1U << 31) - 1))
  ------------------
  |  Branch (229:7): [True: 0, False: 4.50k]
  ------------------
  230|      0|    return NGHTTP2_ERR_FLOW_CONTROL;
  231|      0|  }
  232|       |
  233|  4.50k|  *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|  4.50k|  recv_reduction_delta = nghttp2_min_int32(*recv_reduction_ptr, delta);
  237|  4.50k|  *recv_reduction_ptr -= recv_reduction_delta;
  238|       |
  239|  4.50k|  *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|  4.50k|  *delta_ptr -= recv_reduction_delta;
  244|       |
  245|  4.50k|  return 0;
  246|  4.50k|}
nghttp2_should_send_window_update:
  249|  5.68k|                                      int32_t recv_window_size) {
  250|  5.68k|  return recv_window_size > 0 && recv_window_size >= local_window_size / 2;
  ------------------
  |  Branch (250:10): [True: 700, False: 4.98k]
  |  Branch (250:34): [True: 0, False: 700]
  ------------------
  251|  5.68k|}
nghttp2_strerror:
  253|    756|const char *nghttp2_strerror(int error_code) {
  254|    756|  switch (error_code) {
  255|      0|  case 0:
  ------------------
  |  Branch (255:3): [True: 0, False: 756]
  ------------------
  256|      0|    return "Success";
  257|      0|  case NGHTTP2_ERR_INVALID_ARGUMENT:
  ------------------
  |  Branch (257:3): [True: 0, False: 756]
  ------------------
  258|      0|    return "Invalid argument";
  259|      0|  case NGHTTP2_ERR_BUFFER_ERROR:
  ------------------
  |  Branch (259:3): [True: 0, False: 756]
  ------------------
  260|      0|    return "Out of buffer space";
  261|      0|  case NGHTTP2_ERR_UNSUPPORTED_VERSION:
  ------------------
  |  Branch (261:3): [True: 0, False: 756]
  ------------------
  262|      0|    return "Unsupported SPDY version";
  263|      0|  case NGHTTP2_ERR_WOULDBLOCK:
  ------------------
  |  Branch (263:3): [True: 0, False: 756]
  ------------------
  264|      0|    return "Operation would block";
  265|     25|  case NGHTTP2_ERR_PROTO:
  ------------------
  |  Branch (265:3): [True: 25, False: 731]
  ------------------
  266|     25|    return "Protocol error";
  267|      0|  case NGHTTP2_ERR_INVALID_FRAME:
  ------------------
  |  Branch (267:3): [True: 0, False: 756]
  ------------------
  268|      0|    return "Invalid frame octets";
  269|      0|  case NGHTTP2_ERR_EOF:
  ------------------
  |  Branch (269:3): [True: 0, False: 756]
  ------------------
  270|      0|    return "EOF";
  271|      0|  case NGHTTP2_ERR_DEFERRED:
  ------------------
  |  Branch (271:3): [True: 0, False: 756]
  ------------------
  272|      0|    return "Data transfer deferred";
  273|      0|  case NGHTTP2_ERR_STREAM_ID_NOT_AVAILABLE:
  ------------------
  |  Branch (273:3): [True: 0, False: 756]
  ------------------
  274|      0|    return "No more Stream ID available";
  275|      2|  case NGHTTP2_ERR_STREAM_CLOSED:
  ------------------
  |  Branch (275:3): [True: 2, False: 754]
  ------------------
  276|      2|    return "Stream was already closed or invalid";
  277|      0|  case NGHTTP2_ERR_STREAM_CLOSING:
  ------------------
  |  Branch (277:3): [True: 0, False: 756]
  ------------------
  278|      0|    return "Stream is closing";
  279|      0|  case NGHTTP2_ERR_STREAM_SHUT_WR:
  ------------------
  |  Branch (279:3): [True: 0, False: 756]
  ------------------
  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: 756]
  ------------------
  282|      0|    return "Stream ID is invalid";
  283|      0|  case NGHTTP2_ERR_INVALID_STREAM_STATE:
  ------------------
  |  Branch (283:3): [True: 0, False: 756]
  ------------------
  284|      0|    return "Invalid stream state";
  285|      0|  case NGHTTP2_ERR_DEFERRED_DATA_EXIST:
  ------------------
  |  Branch (285:3): [True: 0, False: 756]
  ------------------
  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: 756]
  ------------------
  288|      0|    return "request HEADERS is not allowed";
  289|      0|  case NGHTTP2_ERR_GOAWAY_ALREADY_SENT:
  ------------------
  |  Branch (289:3): [True: 0, False: 756]
  ------------------
  290|      0|    return "GOAWAY has already been sent";
  291|      0|  case NGHTTP2_ERR_INVALID_HEADER_BLOCK:
  ------------------
  |  Branch (291:3): [True: 0, False: 756]
  ------------------
  292|      0|    return "Invalid header block";
  293|      0|  case NGHTTP2_ERR_INVALID_STATE:
  ------------------
  |  Branch (293:3): [True: 0, False: 756]
  ------------------
  294|      0|    return "Invalid state";
  295|      0|  case NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE:
  ------------------
  |  Branch (295:3): [True: 0, False: 756]
  ------------------
  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: 756]
  ------------------
  298|      0|    return "The length of the frame is invalid";
  299|      0|  case NGHTTP2_ERR_HEADER_COMP:
  ------------------
  |  Branch (299:3): [True: 0, False: 756]
  ------------------
  300|      0|    return "Header compression/decompression error";
  301|      4|  case NGHTTP2_ERR_FLOW_CONTROL:
  ------------------
  |  Branch (301:3): [True: 4, False: 752]
  ------------------
  302|      4|    return "Flow control error";
  303|      0|  case NGHTTP2_ERR_INSUFF_BUFSIZE:
  ------------------
  |  Branch (303:3): [True: 0, False: 756]
  ------------------
  304|      0|    return "Insufficient buffer size given to function";
  305|      0|  case NGHTTP2_ERR_PAUSE:
  ------------------
  |  Branch (305:3): [True: 0, False: 756]
  ------------------
  306|      0|    return "Callback was paused by the application";
  307|      0|  case NGHTTP2_ERR_TOO_MANY_INFLIGHT_SETTINGS:
  ------------------
  |  Branch (307:3): [True: 0, False: 756]
  ------------------
  308|      0|    return "Too many inflight SETTINGS";
  309|      0|  case NGHTTP2_ERR_PUSH_DISABLED:
  ------------------
  |  Branch (309:3): [True: 0, False: 756]
  ------------------
  310|      0|    return "Server push is disabled by peer";
  311|      0|  case NGHTTP2_ERR_DATA_EXIST:
  ------------------
  |  Branch (311:3): [True: 0, False: 756]
  ------------------
  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: 756]
  ------------------
  314|      0|    return "The current session is closing";
  315|    385|  case NGHTTP2_ERR_HTTP_HEADER:
  ------------------
  |  Branch (315:3): [True: 385, False: 371]
  ------------------
  316|    385|    return "Invalid HTTP header field was received";
  317|     11|  case NGHTTP2_ERR_HTTP_MESSAGING:
  ------------------
  |  Branch (317:3): [True: 11, False: 745]
  ------------------
  318|     11|    return "Violation in HTTP messaging rule";
  319|      0|  case NGHTTP2_ERR_REFUSED_STREAM:
  ------------------
  |  Branch (319:3): [True: 0, False: 756]
  ------------------
  320|      0|    return "Stream was refused";
  321|      0|  case NGHTTP2_ERR_INTERNAL:
  ------------------
  |  Branch (321:3): [True: 0, False: 756]
  ------------------
  322|      0|    return "Internal error";
  323|      0|  case NGHTTP2_ERR_CANCEL:
  ------------------
  |  Branch (323:3): [True: 0, False: 756]
  ------------------
  324|      0|    return "Cancel";
  325|      0|  case NGHTTP2_ERR_SETTINGS_EXPECTED:
  ------------------
  |  Branch (325:3): [True: 0, False: 756]
  ------------------
  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: 756]
  ------------------
  329|      0|    return "Out of memory";
  330|    328|  case NGHTTP2_ERR_CALLBACK_FAILURE:
  ------------------
  |  Branch (330:3): [True: 328, False: 428]
  ------------------
  331|    328|    return "The user callback function failed";
  332|      0|  case NGHTTP2_ERR_BAD_CLIENT_MAGIC:
  ------------------
  |  Branch (332:3): [True: 0, False: 756]
  ------------------
  333|      0|    return "Received bad client magic byte string";
  334|      0|  case NGHTTP2_ERR_FLOODED:
  ------------------
  |  Branch (334:3): [True: 0, False: 756]
  ------------------
  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: 756]
  ------------------
  338|      0|    return "SETTINGS frame contained more than the maximum allowed entries";
  339|      1|  case NGHTTP2_ERR_TOO_MANY_CONTINUATIONS:
  ------------------
  |  Branch (339:3): [True: 1, False: 755]
  ------------------
  340|      1|    return "Too many CONTINUATION frames following a HEADER frame";
  341|      0|  default:
  ------------------
  |  Branch (341:3): [True: 0, False: 756]
  ------------------
  342|      0|    return "Unknown error code";
  343|    756|  }
  344|    756|}
nghttp2_check_header_name:
  414|  47.3k|int nghttp2_check_header_name(const uint8_t *name, size_t len) {
  415|  47.3k|  const uint8_t *last;
  416|  47.3k|  if (len == 0) {
  ------------------
  |  Branch (416:7): [True: 4.04k, False: 43.3k]
  ------------------
  417|  4.04k|    return 0;
  418|  4.04k|  }
  419|  43.3k|  if (*name == ':') {
  ------------------
  |  Branch (419:7): [True: 1.53k, False: 41.7k]
  ------------------
  420|  1.53k|    if (len == 1) {
  ------------------
  |  Branch (420:9): [True: 1, False: 1.53k]
  ------------------
  421|      1|      return 0;
  422|      1|    }
  423|  1.53k|    ++name;
  424|  1.53k|    --len;
  425|  1.53k|  }
  426|   483k|  for (last = name + len; name != last; ++name) {
  ------------------
  |  Branch (426:27): [True: 441k, False: 41.9k]
  ------------------
  427|   441k|    if (!VALID_HD_NAME_CHARS[*name]) {
  ------------------
  |  Branch (427:9): [True: 1.30k, False: 440k]
  ------------------
  428|  1.30k|      return 0;
  429|  1.30k|    }
  430|   441k|  }
  431|  41.9k|  return 1;
  432|  43.3k|}
nghttp2_check_header_value:
  502|  41.8k|int nghttp2_check_header_value(const uint8_t *value, size_t len) {
  503|  41.8k|  const uint8_t *last;
  504|   512k|  for (last = value + len; value != last; ++value) {
  ------------------
  |  Branch (504:28): [True: 471k, False: 40.8k]
  ------------------
  505|   471k|    if (!VALID_HD_VALUE_CHARS[*value]) {
  ------------------
  |  Branch (505:9): [True: 993, False: 470k]
  ------------------
  506|    993|      return 0;
  507|    993|    }
  508|   471k|  }
  509|  40.8k|  return 1;
  510|  41.8k|}
nghttp2_check_method:
  593|     45|int nghttp2_check_method(const uint8_t *value, size_t len) {
  594|     45|  const uint8_t *last;
  595|     45|  if (len == 0) {
  ------------------
  |  Branch (595:7): [True: 11, False: 34]
  ------------------
  596|     11|    return 0;
  597|     11|  }
  598|    337|  for (last = value + len; value != last; ++value) {
  ------------------
  |  Branch (598:28): [True: 320, False: 17]
  ------------------
  599|    320|    if (!VALID_METHOD_CHARS[*value]) {
  ------------------
  |  Branch (599:9): [True: 17, False: 303]
  ------------------
  600|     17|      return 0;
  601|     17|    }
  602|    320|  }
  603|     17|  return 1;
  604|     34|}
nghttp2_check_path:
  674|     64|int nghttp2_check_path(const uint8_t *value, size_t len) {
  675|     64|  const uint8_t *last;
  676|    569|  for (last = value + len; value != last; ++value) {
  ------------------
  |  Branch (676:28): [True: 517, False: 52]
  ------------------
  677|    517|    if (!VALID_PATH_CHARS[*value]) {
  ------------------
  |  Branch (677:9): [True: 12, False: 505]
  ------------------
  678|     12|      return 0;
  679|     12|    }
  680|    517|  }
  681|     52|  return 1;
  682|     64|}
nghttp2_cpymem:
  762|   199k|uint8_t *nghttp2_cpymem(uint8_t *dest, const void *src, size_t len) {
  763|   199k|  if (len == 0) {
  ------------------
  |  Branch (763:7): [True: 20.7k, False: 178k]
  ------------------
  764|  20.7k|    return dest;
  765|  20.7k|  }
  766|       |
  767|   178k|  memcpy(dest, src, len);
  768|       |
  769|   178k|  return dest + len;
  770|   199k|}
nghttp2_http2_strerror:
  772|  1.81k|const char *nghttp2_http2_strerror(uint32_t error_code) {
  773|  1.81k|  switch (error_code) {
  774|      0|  case NGHTTP2_NO_ERROR:
  ------------------
  |  Branch (774:3): [True: 0, False: 1.81k]
  ------------------
  775|      0|    return "NO_ERROR";
  776|    209|  case NGHTTP2_PROTOCOL_ERROR:
  ------------------
  |  Branch (776:3): [True: 209, False: 1.60k]
  ------------------
  777|    209|    return "PROTOCOL_ERROR";
  778|      1|  case NGHTTP2_INTERNAL_ERROR:
  ------------------
  |  Branch (778:3): [True: 1, False: 1.81k]
  ------------------
  779|      1|    return "INTERNAL_ERROR";
  780|      4|  case NGHTTP2_FLOW_CONTROL_ERROR:
  ------------------
  |  Branch (780:3): [True: 4, False: 1.81k]
  ------------------
  781|      4|    return "FLOW_CONTROL_ERROR";
  782|      3|  case NGHTTP2_SETTINGS_TIMEOUT:
  ------------------
  |  Branch (782:3): [True: 3, False: 1.81k]
  ------------------
  783|      3|    return "SETTINGS_TIMEOUT";
  784|      3|  case NGHTTP2_STREAM_CLOSED:
  ------------------
  |  Branch (784:3): [True: 3, False: 1.81k]
  ------------------
  785|      3|    return "STREAM_CLOSED";
  786|    212|  case NGHTTP2_FRAME_SIZE_ERROR:
  ------------------
  |  Branch (786:3): [True: 212, False: 1.60k]
  ------------------
  787|    212|    return "FRAME_SIZE_ERROR";
  788|      0|  case NGHTTP2_REFUSED_STREAM:
  ------------------
  |  Branch (788:3): [True: 0, False: 1.81k]
  ------------------
  789|      0|    return "REFUSED_STREAM";
  790|      2|  case NGHTTP2_CANCEL:
  ------------------
  |  Branch (790:3): [True: 2, False: 1.81k]
  ------------------
  791|      2|    return "CANCEL";
  792|    957|  case NGHTTP2_COMPRESSION_ERROR:
  ------------------
  |  Branch (792:3): [True: 957, False: 858]
  ------------------
  793|    957|    return "COMPRESSION_ERROR";
  794|      1|  case NGHTTP2_CONNECT_ERROR:
  ------------------
  |  Branch (794:3): [True: 1, False: 1.81k]
  ------------------
  795|      1|    return "CONNECT_ERROR";
  796|      1|  case NGHTTP2_ENHANCE_YOUR_CALM:
  ------------------
  |  Branch (796:3): [True: 1, False: 1.81k]
  ------------------
  797|      1|    return "ENHANCE_YOUR_CALM";
  798|      1|  case NGHTTP2_INADEQUATE_SECURITY:
  ------------------
  |  Branch (798:3): [True: 1, False: 1.81k]
  ------------------
  799|      1|    return "INADEQUATE_SECURITY";
  800|     19|  case NGHTTP2_HTTP_1_1_REQUIRED:
  ------------------
  |  Branch (800:3): [True: 19, False: 1.79k]
  ------------------
  801|     19|    return "HTTP_1_1_REQUIRED";
  802|    402|  default:
  ------------------
  |  Branch (802:3): [True: 402, False: 1.41k]
  ------------------
  803|    402|    return "unknown";
  804|  1.81k|  }
  805|  1.81k|}

nghttp2_session.c:nghttp2_min_size:
   52|  39.1k|  static inline T nghttp2_min_##SUFFIX(T a, T b) { return a < b ? a : b; }
  ------------------
  |  Branch (52:59): [True: 10.4k, False: 28.7k]
  ------------------
nghttp2_session.c:nghttp2_min_int32:
   52|  11.2k|  static inline T nghttp2_min_##SUFFIX(T a, T b) { return a < b ? a : b; }
  ------------------
  |  Branch (52:59): [True: 4.43k, False: 6.80k]
  ------------------
nghttp2_session.c:nghttp2_max_int32:
   39|  1.09k|  static inline T nghttp2_max_##SUFFIX(T a, T b) { return a < b ? b : a; }
  ------------------
  |  Branch (39:59): [True: 1.00k, False: 87]
  ------------------
nghttp2_submit.c:nghttp2_max_int32:
   39|     90|  static inline T nghttp2_max_##SUFFIX(T a, T b) { return a < b ? b : a; }
  ------------------
  |  Branch (39:59): [True: 0, False: 90]
  ------------------
nghttp2_helper.c:nghttp2_max_int32:
   39|     90|  static inline T nghttp2_max_##SUFFIX(T a, T b) { return a < b ? b : a; }
  ------------------
  |  Branch (39:59): [True: 16, False: 74]
  ------------------
nghttp2_helper.c:nghttp2_min_int32:
   52|  4.59k|  static inline T nghttp2_min_##SUFFIX(T a, T b) { return a < b ? a : b; }
  ------------------
  |  Branch (52:59): [True: 4.50k, False: 90]
  ------------------
nghttp2_hd.c:nghttp2_min_size:
   52|  21.9k|  static inline T nghttp2_min_##SUFFIX(T a, T b) { return a < b ? a : b; }
  ------------------
  |  Branch (52:59): [True: 1.19k, False: 20.7k]
  ------------------
nghttp2_ratelim.c:nghttp2_min_uint64:
   52|    557|  static inline T nghttp2_min_##SUFFIX(T a, T b) { return a < b ? a : b; }
  ------------------
  |  Branch (52:59): [True: 0, False: 557]
  ------------------
nghttp2_pq.c:nghttp2_max_size:
   39|    595|  static inline T nghttp2_max_##SUFFIX(T a, T b) { return a < b ? b : a; }
  ------------------
  |  Branch (39:59): [True: 0, False: 595]
  ------------------
nghttp2_buf.c:nghttp2_max_size:
   39|  4.46k|  static inline T nghttp2_max_##SUFFIX(T a, T b) { return a < b ? b : a; }
  ------------------
  |  Branch (39:59): [True: 0, False: 4.46k]
  ------------------
nghttp2_buf.c:nghttp2_min_size:
   52|   120k|  static inline T nghttp2_min_##SUFFIX(T a, T b) { return a < b ? a : b; }
  ------------------
  |  Branch (52:59): [True: 28, False: 120k]
  ------------------

nghttp2_http_on_header:
  430|  47.3k|                           int trailer) {
  431|  47.3k|  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|  47.3k|  if (!nghttp2_check_header_name(nv->name->base, nv->name->len)) {
  ------------------
  |  Branch (440:7): [True: 5.35k, False: 41.9k]
  ------------------
  441|  5.35k|    size_t i;
  442|  5.35k|    if (nv->name->len > 0 && nv->name->base[0] == ':') {
  ------------------
  |  Branch (442:9): [True: 1.30k, False: 4.04k]
  |  Branch (442:30): [True: 2, False: 1.30k]
  ------------------
  443|      2|      return NGHTTP2_ERR_HTTP_HEADER;
  444|      2|    }
  445|       |    /* header field name must be lower-cased without exception */
  446|  19.4k|    for (i = 0; i < nv->name->len; ++i) {
  ------------------
  |  Branch (446:17): [True: 14.1k, False: 5.32k]
  ------------------
  447|  14.1k|      uint8_t c = nv->name->base[i];
  448|  14.1k|      if ('A' <= c && c <= 'Z') {
  ------------------
  |  Branch (448:11): [True: 3.98k, False: 10.1k]
  |  Branch (448:23): [True: 27, False: 3.95k]
  ------------------
  449|     27|        return NGHTTP2_ERR_HTTP_HEADER;
  450|     27|      }
  451|  14.1k|    }
  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|  5.32k|    stream->http_flags |= NGHTTP2_HTTP_FLAG_PSEUDO_HEADER_DISALLOWED;
  456|  5.32k|    return NGHTTP2_ERR_IGN_HTTP_HEADER;
  457|  5.35k|  }
  458|       |
  459|  41.9k|  switch (nv->token) {
  460|     45|  case NGHTTP2_TOKEN__METHOD:
  ------------------
  |  Branch (460:3): [True: 45, False: 41.9k]
  ------------------
  461|     45|    rv = nghttp2_check_method(nv->value->base, nv->value->len);
  462|     45|    break;
  463|     64|  case NGHTTP2_TOKEN__PATH:
  ------------------
  |  Branch (463:3): [True: 64, False: 41.9k]
  ------------------
  464|     64|    rv = nghttp2_check_path(nv->value->base, nv->value->len);
  465|     64|    break;
  466|     47|  case NGHTTP2_TOKEN__AUTHORITY:
  ------------------
  |  Branch (466:3): [True: 47, False: 41.9k]
  ------------------
  467|    371|  case NGHTTP2_TOKEN_HOST:
  ------------------
  |  Branch (467:3): [True: 324, False: 41.6k]
  ------------------
  468|    371|    if (session->server || frame->hd.type == NGHTTP2_PUSH_PROMISE) {
  ------------------
  |  Branch (468:9): [True: 0, False: 371]
  |  Branch (468:28): [True: 0, False: 371]
  ------------------
  469|      0|      rv = check_authority(nv->value->base, nv->value->len);
  470|    371|    } else if (
  471|    371|      stream->flags &
  ------------------
  |  Branch (471:7): [True: 371, False: 0]
  ------------------
  472|    371|      NGHTTP2_STREAM_FLAG_NO_RFC9113_LEADING_AND_TRAILING_WS_VALIDATION) {
  473|    371|      rv = nghttp2_check_header_value(nv->value->base, nv->value->len);
  474|    371|    } else {
  475|      0|      rv = nghttp2_check_header_value_rfc9113(nv->value->base, nv->value->len);
  476|      0|    }
  477|    371|    break;
  478|     80|  case NGHTTP2_TOKEN__SCHEME:
  ------------------
  |  Branch (478:3): [True: 80, False: 41.9k]
  ------------------
  479|     80|    rv = check_scheme(nv->value->base, nv->value->len);
  480|     80|    break;
  481|      0|  case NGHTTP2_TOKEN__PROTOCOL:
  ------------------
  |  Branch (481:3): [True: 0, False: 41.9k]
  ------------------
  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|  41.4k|  default:
  ------------------
  |  Branch (492:3): [True: 41.4k, False: 560]
  ------------------
  493|  41.4k|    if (stream->flags &
  ------------------
  |  Branch (493:9): [True: 41.4k, False: 0]
  ------------------
  494|  41.4k|        NGHTTP2_STREAM_FLAG_NO_RFC9113_LEADING_AND_TRAILING_WS_VALIDATION) {
  495|  41.4k|      rv = nghttp2_check_header_value(nv->value->base, nv->value->len);
  496|  41.4k|    } else {
  497|      0|      rv = nghttp2_check_header_value_rfc9113(nv->value->base, nv->value->len);
  498|      0|    }
  499|  41.9k|  }
  500|       |
  501|  41.9k|  if (rv == 0) {
  ------------------
  |  Branch (501:7): [True: 1.08k, False: 40.9k]
  ------------------
  502|  1.08k|    assert(nv->name->len > 0);
  ------------------
  |  Branch (502:5): [True: 0, False: 1.08k]
  |  Branch (502:5): [True: 1.08k, False: 0]
  ------------------
  503|  1.08k|    if (nv->name->base[0] == ':') {
  ------------------
  |  Branch (503:9): [True: 129, False: 960]
  ------------------
  504|    129|      return NGHTTP2_ERR_HTTP_HEADER;
  505|    129|    }
  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|    960|    stream->http_flags |= NGHTTP2_HTTP_FLAG_PSEUDO_HEADER_DISALLOWED;
  510|    960|    return NGHTTP2_ERR_IGN_HTTP_HEADER;
  511|  1.08k|  }
  512|       |
  513|  40.9k|  if (session->server || frame->hd.type == NGHTTP2_PUSH_PROMISE) {
  ------------------
  |  Branch (513:7): [True: 0, False: 40.9k]
  |  Branch (513:26): [True: 0, False: 40.9k]
  ------------------
  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|  40.9k|  return http_response_on_header(stream, nv, trailer);
  520|  40.9k|}
nghttp2_http_on_response_headers:
  559|    263|int nghttp2_http_on_response_headers(nghttp2_stream *stream) {
  560|    263|  if ((stream->http_flags & NGHTTP2_HTTP_FLAG__STATUS) == 0) {
  ------------------
  |  Branch (560:7): [True: 6, False: 257]
  ------------------
  561|      6|    return -1;
  562|      6|  }
  563|       |
  564|    257|  if (stream->status_code / 100 == 1) {
  ------------------
  |  Branch (564:7): [True: 0, False: 257]
  ------------------
  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|    257|  stream->http_flags =
  574|    257|    stream->http_flags & (uint32_t)~NGHTTP2_HTTP_FLAG_EXPECT_FINAL_RESPONSE;
  575|       |
  576|    257|  if (!expect_response_body(stream)) {
  ------------------
  |  Branch (576:7): [True: 91, False: 166]
  ------------------
  577|     91|    stream->content_length = 0;
  578|    166|  } else if (stream->http_flags & (NGHTTP2_HTTP_FLAG_METH_CONNECT |
  ------------------
  |  Branch (578:14): [True: 0, False: 166]
  ------------------
  579|    166|                                   NGHTTP2_HTTP_FLAG_METH_UPGRADE_WORKAROUND)) {
  580|      0|    stream->content_length = -1;
  581|      0|  }
  582|       |
  583|    257|  return 0;
  584|    257|}
nghttp2_http_on_trailer_headers:
  587|     12|                                    nghttp2_frame *frame) {
  588|     12|  (void)stream;
  589|       |
  590|     12|  if ((frame->hd.flags & NGHTTP2_FLAG_END_STREAM) == 0) {
  ------------------
  |  Branch (590:7): [True: 3, False: 9]
  ------------------
  591|      3|    return -1;
  592|      3|  }
  593|       |
  594|      9|  return 0;
  595|     12|}
nghttp2_http_on_remote_end_stream:
  597|     84|int nghttp2_http_on_remote_end_stream(nghttp2_stream *stream) {
  598|     84|  if (stream->http_flags & NGHTTP2_HTTP_FLAG_EXPECT_FINAL_RESPONSE) {
  ------------------
  |  Branch (598:7): [True: 0, False: 84]
  ------------------
  599|      0|    return -1;
  600|      0|  }
  601|       |
  602|     84|  if (stream->content_length != -1 &&
  ------------------
  |  Branch (602:7): [True: 55, False: 29]
  ------------------
  603|     55|      stream->content_length != stream->recv_content_length) {
  ------------------
  |  Branch (603:7): [True: 2, False: 53]
  ------------------
  604|      2|    return -1;
  605|      2|  }
  606|       |
  607|     82|  return 0;
  608|     84|}
nghttp2_http_on_data_chunk:
  610|    393|int nghttp2_http_on_data_chunk(nghttp2_stream *stream, size_t n) {
  611|    393|  stream->recv_content_length += (int64_t)n;
  612|       |
  613|    393|  if ((stream->http_flags & NGHTTP2_HTTP_FLAG_EXPECT_FINAL_RESPONSE) ||
  ------------------
  |  Branch (613:7): [True: 0, False: 393]
  ------------------
  614|    393|      (stream->content_length != -1 &&
  ------------------
  |  Branch (614:8): [True: 4, False: 389]
  ------------------
  615|      4|       stream->recv_content_length > stream->content_length)) {
  ------------------
  |  Branch (615:8): [True: 4, False: 0]
  ------------------
  616|      4|    return -1;
  617|      4|  }
  618|       |
  619|    389|  return 0;
  620|    393|}
nghttp2_http_record_request_method:
  623|  4.38k|                                        nghttp2_frame *frame) {
  624|  4.38k|  const nghttp2_nv *nva;
  625|  4.38k|  size_t nvlen;
  626|  4.38k|  size_t i;
  627|       |
  628|  4.38k|  switch (frame->hd.type) {
  629|  4.38k|  case NGHTTP2_HEADERS:
  ------------------
  |  Branch (629:3): [True: 4.38k, False: 0]
  ------------------
  630|  4.38k|    nva = frame->headers.nva;
  631|  4.38k|    nvlen = frame->headers.nvlen;
  632|  4.38k|    break;
  633|      0|  case NGHTTP2_PUSH_PROMISE:
  ------------------
  |  Branch (633:3): [True: 0, False: 4.38k]
  ------------------
  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: 4.38k]
  ------------------
  638|      0|    return;
  639|  4.38k|  }
  640|       |
  641|       |  /* TODO we should do this strictly. */
  642|  4.38k|  for (i = 0; i < nvlen; ++i) {
  ------------------
  |  Branch (642:15): [True: 4.38k, False: 0]
  ------------------
  643|  4.38k|    const nghttp2_nv *nv = &nva[i];
  644|  4.38k|    if (!(nv->namelen == 7 && nv->name[6] == 'd' &&
  ------------------
  |  Branch (644:11): [True: 4.38k, False: 0]
  |  Branch (644:31): [True: 4.38k, False: 0]
  ------------------
  645|  4.38k|          memcmp(":metho", nv->name, nv->namelen - 1) == 0)) {
  ------------------
  |  Branch (645:11): [True: 4.38k, False: 0]
  ------------------
  646|      0|      continue;
  647|      0|    }
  648|  4.38k|    if (lstreq("CONNECT", nv->value, nv->valuelen)) {
  ------------------
  |  |   72|  4.38k|  (nghttp2_strlen_lit((A)) == (N) && memcmp((A), (B), (N)) == 0)
  |  |  ------------------
  |  |  |  |   69|  4.38k|#define nghttp2_strlen_lit(S) (sizeof(S) - 1)
  |  |  ------------------
  |  |  |  Branch (72:4): [True: 6, False: 4.38k]
  |  |  |  Branch (72:38): [True: 0, False: 6]
  |  |  ------------------
  ------------------
  649|      0|      stream->http_flags |= NGHTTP2_HTTP_FLAG_METH_CONNECT;
  650|      0|      return;
  651|      0|    }
  652|  4.38k|    if (lstreq("HEAD", nv->value, nv->valuelen)) {
  ------------------
  |  |   72|  4.38k|  (nghttp2_strlen_lit((A)) == (N) && memcmp((A), (B), (N)) == 0)
  |  |  ------------------
  |  |  |  |   69|  4.38k|#define nghttp2_strlen_lit(S) (sizeof(S) - 1)
  |  |  ------------------
  |  |  |  Branch (72:4): [True: 379, False: 4.00k]
  |  |  |  Branch (72:38): [True: 16, False: 363]
  |  |  ------------------
  ------------------
  653|     16|      stream->http_flags |= NGHTTP2_HTTP_FLAG_METH_HEAD;
  654|     16|      return;
  655|     16|    }
  656|  4.37k|    return;
  657|  4.38k|  }
  658|  4.38k|}
nghttp2_http.c:check_scheme:
  316|     80|static int check_scheme(const uint8_t *value, size_t len) {
  317|     80|  const uint8_t *last;
  318|     80|  if (len == 0) {
  ------------------
  |  Branch (318:7): [True: 10, False: 70]
  ------------------
  319|     10|    return 0;
  320|     10|  }
  321|       |
  322|     70|  if (!(('A' <= *value && *value <= 'Z') || ('a' <= *value && *value <= 'z'))) {
  ------------------
  |  Branch (322:10): [True: 60, False: 10]
  |  Branch (322:27): [True: 16, False: 44]
  |  Branch (322:46): [True: 42, False: 12]
  |  Branch (322:63): [True: 37, False: 5]
  ------------------
  323|     17|    return 0;
  324|     17|  }
  325|       |
  326|     53|  last = value + len;
  327|     53|  ++value;
  328|       |
  329|    991|  for (; value != last; ++value) {
  ------------------
  |  Branch (329:10): [True: 967, False: 24]
  ------------------
  330|    967|    if (!(('A' <= *value && *value <= 'Z') ||
  ------------------
  |  Branch (330:12): [True: 487, False: 480]
  |  Branch (330:29): [True: 138, False: 349]
  ------------------
  331|    829|          ('a' <= *value && *value <= 'z') ||
  ------------------
  |  Branch (331:12): [True: 348, False: 481]
  |  Branch (331:29): [True: 343, False: 5]
  ------------------
  332|    486|          ('0' <= *value && *value <= '9') || *value == '+' || *value == '-' ||
  ------------------
  |  Branch (332:12): [True: 191, False: 295]
  |  Branch (332:29): [True: 181, False: 10]
  |  Branch (332:47): [True: 173, False: 132]
  |  Branch (332:64): [True: 44, False: 88]
  ------------------
  333|     88|          *value == '.')) {
  ------------------
  |  Branch (333:11): [True: 59, False: 29]
  ------------------
  334|     29|      return 0;
  335|     29|    }
  336|    967|  }
  337|     24|  return 1;
  338|     53|}
nghttp2_http.c:check_pseudo_header:
   79|  1.21k|                               uint32_t flag) {
   80|  1.21k|  if ((stream->http_flags & flag) || nv->value->len == 0) {
  ------------------
  |  Branch (80:7): [True: 3, False: 1.20k]
  |  Branch (80:38): [True: 2, False: 1.20k]
  ------------------
   81|      5|    return 0;
   82|      5|  }
   83|  1.20k|  stream->http_flags = stream->http_flags | flag;
   84|  1.20k|  return 1;
   85|  1.21k|}
nghttp2_http.c:memieq:
   40|      3|static int memieq(const void *a, const void *b, size_t n) {
   41|      3|  size_t i;
   42|      3|  const uint8_t *aa = a, *bb = b;
   43|       |
   44|      4|  for (i = 0; i < n; ++i) {
  ------------------
  |  Branch (44:15): [True: 3, False: 1]
  ------------------
   45|      3|    if (downcase(aa[i]) != downcase(bb[i])) {
  ------------------
  |  Branch (45:9): [True: 2, False: 1]
  ------------------
   46|      2|      return 0;
   47|      2|    }
   48|      3|  }
   49|      1|  return 1;
   50|      3|}
nghttp2_http.c:downcase:
   36|      6|static uint8_t downcase(uint8_t c) {
   37|      6|  return 'A' <= c && c <= 'Z' ? (uint8_t)(c - 'A' + 'a') : c;
  ------------------
  |  Branch (37:10): [True: 1, False: 5]
  |  Branch (37:22): [True: 1, False: 0]
  ------------------
   38|      6|}
nghttp2_http.c:parse_uint:
   55|  1.22k|static int64_t parse_uint(const uint8_t *s, size_t len) {
   56|  1.22k|  int64_t n = 0;
   57|  1.22k|  size_t i;
   58|  1.22k|  if (len == 0) {
  ------------------
  |  Branch (58:7): [True: 10, False: 1.21k]
  ------------------
   59|     10|    return -1;
   60|     10|  }
   61|  4.86k|  for (i = 0; i < len; ++i) {
  ------------------
  |  Branch (61:15): [True: 3.65k, False: 1.20k]
  ------------------
   62|  3.65k|    if ('0' <= s[i] && s[i] <= '9') {
  ------------------
  |  Branch (62:9): [True: 3.65k, False: 4]
  |  Branch (62:24): [True: 3.65k, False: 3]
  ------------------
   63|  3.65k|      if (n > INT64_MAX / 10) {
  ------------------
  |  Branch (63:11): [True: 1, False: 3.65k]
  ------------------
   64|      1|        return -1;
   65|      1|      }
   66|  3.65k|      n *= 10;
   67|  3.65k|      if (n > INT64_MAX - (s[i] - '0')) {
  ------------------
  |  Branch (67:11): [True: 0, False: 3.65k]
  ------------------
   68|      0|        return -1;
   69|      0|      }
   70|  3.65k|      n += s[i] - '0';
   71|  3.65k|      continue;
   72|  3.65k|    }
   73|      7|    return -1;
   74|  3.65k|  }
   75|  1.20k|  return n;
   76|  1.21k|}
nghttp2_http.c:http_response_on_header:
  237|  40.9k|                                   int trailer) {
  238|  40.9k|  if (nv->name->base[0] == ':') {
  ------------------
  |  Branch (238:7): [True: 1.40k, False: 39.5k]
  ------------------
  239|  1.40k|    if (trailer ||
  ------------------
  |  Branch (239:9): [True: 7, False: 1.39k]
  ------------------
  240|  1.39k|        (stream->http_flags & NGHTTP2_HTTP_FLAG_PSEUDO_HEADER_DISALLOWED)) {
  ------------------
  |  Branch (240:9): [True: 144, False: 1.25k]
  ------------------
  241|    151|      return NGHTTP2_ERR_HTTP_HEADER;
  242|    151|    }
  243|  1.40k|  }
  244|       |
  245|  40.7k|  switch (nv->token) {
  246|  1.21k|  case NGHTTP2_TOKEN__STATUS: {
  ------------------
  |  Branch (246:3): [True: 1.21k, False: 39.5k]
  ------------------
  247|  1.21k|    if (!check_pseudo_header(stream, nv, NGHTTP2_HTTP_FLAG__STATUS)) {
  ------------------
  |  Branch (247:9): [True: 5, False: 1.20k]
  ------------------
  248|      5|      return NGHTTP2_ERR_HTTP_HEADER;
  249|      5|    }
  250|  1.20k|    if (nv->value->len != 3) {
  ------------------
  |  Branch (250:9): [True: 2, False: 1.20k]
  ------------------
  251|      2|      return NGHTTP2_ERR_HTTP_HEADER;
  252|      2|    }
  253|  1.20k|    stream->status_code = (int16_t)parse_uint(nv->value->base, nv->value->len);
  254|  1.20k|    if (stream->status_code == -1 || stream->status_code == 101) {
  ------------------
  |  Branch (254:9): [True: 3, False: 1.20k]
  |  Branch (254:38): [True: 1, False: 1.19k]
  ------------------
  255|      4|      return NGHTTP2_ERR_HTTP_HEADER;
  256|      4|    }
  257|  1.19k|    break;
  258|  1.20k|  }
  259|  1.19k|  case NGHTTP2_TOKEN_CONTENT_LENGTH: {
  ------------------
  |  Branch (259:3): [True: 29, False: 40.7k]
  ------------------
  260|     29|    if (stream->status_code == 204) {
  ------------------
  |  Branch (260:9): [True: 5, False: 24]
  ------------------
  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|      5|      if (stream->content_length != -1) {
  ------------------
  |  Branch (264:11): [True: 1, False: 4]
  ------------------
  265|       |        /* Found multiple content-length field */
  266|      1|        return NGHTTP2_ERR_HTTP_HEADER;
  267|      1|      }
  268|      4|      if (!lstrieq("0", nv->value->base, nv->value->len)) {
  ------------------
  |  |   53|      4|  (nghttp2_strlen_lit((A)) == (N) && memieq((A), (B), (N)))
  |  |  ------------------
  |  |  |  |   69|      4|#define nghttp2_strlen_lit(S) (sizeof(S) - 1)
  |  |  ------------------
  |  |  |  Branch (53:4): [True: 3, False: 1]
  |  |  |  Branch (53:38): [True: 1, False: 2]
  |  |  ------------------
  ------------------
  269|      3|        return NGHTTP2_ERR_HTTP_HEADER;
  270|      3|      }
  271|      1|      stream->content_length = 0;
  272|      1|      return NGHTTP2_ERR_REMOVE_HTTP_HEADER;
  273|      4|    }
  274|     24|    if (stream->status_code / 100 == 1) {
  ------------------
  |  Branch (274:9): [True: 0, False: 24]
  ------------------
  275|      0|      return NGHTTP2_ERR_HTTP_HEADER;
  276|      0|    }
  277|       |    /* https://tools.ietf.org/html/rfc7230#section-3.3.3 */
  278|     24|    if (stream->status_code / 100 == 2 &&
  ------------------
  |  Branch (278:9): [True: 7, False: 17]
  ------------------
  279|      7|        (stream->http_flags & NGHTTP2_HTTP_FLAG_METH_CONNECT)) {
  ------------------
  |  Branch (279:9): [True: 0, False: 7]
  ------------------
  280|      0|      return NGHTTP2_ERR_REMOVE_HTTP_HEADER;
  281|      0|    }
  282|     24|    if (stream->content_length != -1) {
  ------------------
  |  Branch (282:9): [True: 3, False: 21]
  ------------------
  283|      3|      return NGHTTP2_ERR_HTTP_HEADER;
  284|      3|    }
  285|     21|    stream->content_length = parse_uint(nv->value->base, nv->value->len);
  286|     21|    if (stream->content_length == -1) {
  ------------------
  |  Branch (286:9): [True: 15, False: 6]
  ------------------
  287|     15|      return NGHTTP2_ERR_HTTP_HEADER;
  288|     15|    }
  289|      6|    break;
  290|     21|  }
  291|       |  /* disallowed header fields */
  292|      6|  case NGHTTP2_TOKEN_CONNECTION:
  ------------------
  |  Branch (292:3): [True: 0, False: 40.7k]
  ------------------
  293|      0|  case NGHTTP2_TOKEN_KEEP_ALIVE:
  ------------------
  |  Branch (293:3): [True: 0, False: 40.7k]
  ------------------
  294|      0|  case NGHTTP2_TOKEN_PROXY_CONNECTION:
  ------------------
  |  Branch (294:3): [True: 0, False: 40.7k]
  ------------------
  295|      3|  case NGHTTP2_TOKEN_TRANSFER_ENCODING:
  ------------------
  |  Branch (295:3): [True: 3, False: 40.7k]
  ------------------
  296|      3|  case NGHTTP2_TOKEN_UPGRADE:
  ------------------
  |  Branch (296:3): [True: 0, False: 40.7k]
  ------------------
  297|      3|    return NGHTTP2_ERR_HTTP_HEADER;
  298|      0|  case NGHTTP2_TOKEN_TE:
  ------------------
  |  Branch (298:3): [True: 0, False: 40.7k]
  ------------------
  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|  39.5k|  default:
  ------------------
  |  Branch (303:3): [True: 39.5k, False: 1.24k]
  ------------------
  304|  39.5k|    if (nv->name->base[0] == ':') {
  ------------------
  |  Branch (304:9): [True: 40, False: 39.4k]
  ------------------
  305|     40|      return NGHTTP2_ERR_HTTP_HEADER;
  306|     40|    }
  307|  40.7k|  }
  308|       |
  309|  40.6k|  if (nv->name->base[0] != ':') {
  ------------------
  |  Branch (309:7): [True: 39.4k, False: 1.19k]
  ------------------
  310|  39.4k|    stream->http_flags |= NGHTTP2_HTTP_FLAG_PSEUDO_HEADER_DISALLOWED;
  311|  39.4k|  }
  312|       |
  313|  40.6k|  return 0;
  314|  40.7k|}
nghttp2_http.c:expect_response_body:
   87|    257|static int expect_response_body(nghttp2_stream *stream) {
   88|    257|  return (stream->http_flags & NGHTTP2_HTTP_FLAG_METH_HEAD) == 0 &&
  ------------------
  |  Branch (88:10): [True: 254, False: 3]
  ------------------
   89|    254|         stream->status_code / 100 != 1 && stream->status_code != 304 &&
  ------------------
  |  Branch (89:10): [True: 254, False: 0]
  |  Branch (89:44): [True: 167, False: 87]
  ------------------
   90|    167|         stream->status_code != 204;
  ------------------
  |  Branch (90:10): [True: 166, False: 1]
  ------------------
   91|    257|}

nghttp2_map_init:
   36|  4.41k|void nghttp2_map_init(nghttp2_map *map, uint64_t seed, nghttp2_mem *mem) {
   37|  4.41k|  *map = (nghttp2_map){
   38|  4.41k|    .mem = mem,
   39|  4.41k|    .seed = seed,
   40|  4.41k|  };
   41|  4.41k|}
nghttp2_map_free:
   43|  4.41k|void nghttp2_map_free(nghttp2_map *map) {
   44|  4.41k|  if (!map) {
  ------------------
  |  Branch (44:7): [True: 0, False: 4.41k]
  ------------------
   45|      0|    return;
   46|      0|  }
   47|       |
   48|  4.41k|  nghttp2_mem_free(map->mem, map->keys);
   49|  4.41k|}
nghttp2_map_each:
   52|  7.39k|                     void *ptr) {
   53|  7.39k|  int rv;
   54|  7.39k|  size_t i;
   55|  7.39k|  size_t tablelen;
   56|       |
   57|  7.39k|  if (map->size == 0) {
  ------------------
  |  Branch (57:7): [True: 3.75k, False: 3.63k]
  ------------------
   58|  3.75k|    return 0;
   59|  3.75k|  }
   60|       |
   61|  3.63k|  tablelen = (size_t)1 << map->hashbits;
   62|       |
   63|  61.8k|  for (i = 0; i < tablelen; ++i) {
  ------------------
  |  Branch (63:15): [True: 58.1k, False: 3.63k]
  ------------------
   64|  58.1k|    if (map->psl[i] == 0) {
  ------------------
  |  Branch (64:9): [True: 54.5k, False: 3.63k]
  ------------------
   65|  54.5k|      continue;
   66|  54.5k|    }
   67|       |
   68|  3.63k|    rv = func(map->data[i], ptr);
   69|  3.63k|    if (rv != 0) {
  ------------------
  |  Branch (69:9): [True: 1, False: 3.63k]
  ------------------
   70|      1|      return rv;
   71|      1|    }
   72|  3.63k|  }
   73|       |
   74|  3.63k|  return 0;
   75|  3.63k|}
nghttp2_map_insert:
  239|  4.40k|int nghttp2_map_insert(nghttp2_map *map, nghttp2_map_key_type key, void *data) {
  240|  4.40k|  int rv;
  241|  4.40k|  size_t tablelen;
  242|  4.40k|  nghttp2_ssize idx;
  243|       |
  244|  4.40k|  assert(data);
  ------------------
  |  Branch (244:3): [True: 0, False: 4.40k]
  |  Branch (244:3): [True: 4.40k, 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|  4.40k|  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|  4.40k|  if (map->size + 1 >= (tablelen - (tablelen >> 3))) {
  ------------------
  |  Branch (253:7): [True: 4.39k, False: 12]
  ------------------
  254|  4.39k|    rv = map_resize(map, map->hashbits ? map->hashbits + 1
  ------------------
  |  Branch (254:26): [True: 0, False: 4.39k]
  ------------------
  255|  4.39k|                                       : NGHTTP2_INITIAL_HASHBITS);
  ------------------
  |  |   34|  4.39k|#define NGHTTP2_INITIAL_HASHBITS 4
  ------------------
  256|  4.39k|    if (rv != 0) {
  ------------------
  |  Branch (256:9): [True: 0, False: 4.39k]
  ------------------
  257|      0|      return rv;
  258|      0|    }
  259|       |
  260|  4.39k|    idx = map_insert(map, key, data);
  261|  4.39k|    if (idx < 0) {
  ------------------
  |  Branch (261:9): [True: 0, False: 4.39k]
  ------------------
  262|      0|      return (int)idx;
  263|      0|    }
  264|       |
  265|  4.39k|    return 0;
  266|  4.39k|  }
  267|       |
  268|     12|  idx = map_insert(map, key, data);
  269|     12|  if (idx < 0) {
  ------------------
  |  Branch (269:7): [True: 0, False: 12]
  ------------------
  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|     12|  if (map->psl[idx] - 1 < NGHTTP2_MAX_PSL_RESIZE_THRESH) {
  ------------------
  |  |  237|     12|#define NGHTTP2_MAX_PSL_RESIZE_THRESH 128
  ------------------
  |  Branch (275:7): [True: 12, False: 0]
  ------------------
  276|     12|    return 0;
  277|     12|  }
  278|       |
  279|      0|  return map_resize(map, map->hashbits + 1);
  280|     12|}
nghttp2_map_find:
  282|   127k|void *nghttp2_map_find(const nghttp2_map *map, nghttp2_map_key_type key) {
  283|   127k|  size_t idx;
  284|   127k|  size_t psl = 1;
  285|   127k|  size_t mask;
  286|       |
  287|   127k|  if (map->size == 0) {
  ------------------
  |  Branch (287:7): [True: 23.2k, False: 104k]
  ------------------
  288|  23.2k|    return NULL;
  289|  23.2k|  }
  290|       |
  291|   104k|  idx = map_index(map, key);
  292|   104k|  mask = ((size_t)1 << map->hashbits) - 1;
  293|       |
  294|   104k|  for (;;) {
  295|   104k|    if (psl > map->psl[idx]) {
  ------------------
  |  Branch (295:9): [True: 7.12k, False: 97.7k]
  ------------------
  296|  7.12k|      return NULL;
  297|  7.12k|    }
  298|       |
  299|  97.7k|    if (map->keys[idx] == key) {
  ------------------
  |  Branch (299:9): [True: 97.1k, False: 592]
  ------------------
  300|  97.1k|      return map->data[idx];
  301|  97.1k|    }
  302|       |
  303|    592|    ++psl;
  304|    592|    idx = (idx + 1) & mask;
  305|    592|  }
  306|   104k|}
nghttp2_map_remove:
  308|  2.96k|int nghttp2_map_remove(nghttp2_map *map, nghttp2_map_key_type key) {
  309|  2.96k|  size_t idx;
  310|  2.96k|  size_t dest;
  311|  2.96k|  size_t psl = 1, kpsl;
  312|  2.96k|  size_t mask;
  313|       |
  314|  2.96k|  if (map->size == 0) {
  ------------------
  |  Branch (314:7): [True: 0, False: 2.96k]
  ------------------
  315|      0|    return NGHTTP2_ERR_INVALID_ARGUMENT;
  316|      0|  }
  317|       |
  318|  2.96k|  idx = map_index(map, key);
  319|  2.96k|  mask = ((size_t)1 << map->hashbits) - 1;
  320|       |
  321|  2.96k|  for (;;) {
  322|  2.96k|    if (psl > map->psl[idx]) {
  ------------------
  |  Branch (322:9): [True: 0, False: 2.96k]
  ------------------
  323|      0|      return NGHTTP2_ERR_INVALID_ARGUMENT;
  324|      0|    }
  325|       |
  326|  2.96k|    if (map->keys[idx] == key) {
  ------------------
  |  Branch (326:9): [True: 2.96k, False: 0]
  ------------------
  327|  2.96k|      dest = idx;
  328|  2.96k|      idx = (idx + 1) & mask;
  329|       |
  330|  2.96k|      for (;;) {
  331|  2.96k|        kpsl = map->psl[idx];
  332|  2.96k|        if (kpsl <= 1) {
  ------------------
  |  Branch (332:13): [True: 2.96k, False: 0]
  ------------------
  333|  2.96k|          map->psl[dest] = 0;
  334|  2.96k|          break;
  335|  2.96k|        }
  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|  2.96k|      --map->size;
  345|       |
  346|  2.96k|      return 0;
  347|  2.96k|    }
  348|       |
  349|      0|    ++psl;
  350|      0|    idx = (idx + 1) & mask;
  351|      0|  }
  352|  2.96k|}
nghttp2_map_size:
  363|  70.6k|size_t nghttp2_map_size(const nghttp2_map *map) { return map->size; }
nghttp2_map.c:map_index:
   85|   111k|static size_t map_index(const nghttp2_map *map, nghttp2_map_key_type key32) {
   86|   111k|  uint64_t key = (uint64_t)key32;
   87|       |
   88|   111k|  key += map->seed;
   89|   111k|  key *= NGHTTP2_MAP_HASHER;
  ------------------
  |  |   80|   111k|#define NGHTTP2_MAP_HASHER 0xf1357aea2e62a9c5ull
  ------------------
   90|   111k|  return (size_t)((key * NGHTTP2_MAP_FIBO) >> (64 - map->hashbits));
  ------------------
  |  |   83|   111k|#define NGHTTP2_MAP_FIBO 0x9e3779b97f4a7c15ull
  ------------------
   91|   111k|}
nghttp2_map.c:map_resize:
  180|  4.39k|static int map_resize(nghttp2_map *map, size_t new_hashbits) {
  181|  4.39k|  size_t i;
  182|  4.39k|  size_t tablelen;
  183|  4.39k|  nghttp2_ssize idx;
  184|  4.39k|  nghttp2_map new_map = {
  185|  4.39k|    .mem = map->mem,
  186|  4.39k|    .seed = map->seed,
  187|  4.39k|    .hashbits = new_hashbits,
  188|  4.39k|  };
  189|  4.39k|  void *buf;
  190|  4.39k|  (void)idx;
  191|       |
  192|  4.39k|  if (new_hashbits > NGHTTP2_MAP_MAX_HASHBITS) {
  ------------------
  |  |  178|  4.39k|#define NGHTTP2_MAP_MAX_HASHBITS (sizeof(size_t) * 8 - 1)
  ------------------
  |  Branch (192:7): [True: 0, False: 4.39k]
  ------------------
  193|      0|    return NGHTTP2_ERR_NOMEM;
  194|      0|  }
  195|       |
  196|  4.39k|  tablelen = (size_t)1 << new_hashbits;
  197|       |
  198|  4.39k|  buf = nghttp2_mem_calloc(map->mem, tablelen,
  199|  4.39k|                           sizeof(nghttp2_map_key_type) + sizeof(void *) +
  200|  4.39k|                             sizeof(uint8_t));
  201|  4.39k|  if (buf == NULL) {
  ------------------
  |  Branch (201:7): [True: 0, False: 4.39k]
  ------------------
  202|      0|    return NGHTTP2_ERR_NOMEM;
  203|      0|  }
  204|       |
  205|  4.39k|  new_map.keys = buf;
  206|  4.39k|  new_map.data =
  207|  4.39k|    (void *)((uint8_t *)new_map.keys + tablelen * sizeof(nghttp2_map_key_type));
  208|  4.39k|  new_map.psl = (uint8_t *)new_map.data + tablelen * sizeof(void *);
  209|       |
  210|  4.39k|  if (map->size) {
  ------------------
  |  Branch (210:7): [True: 0, False: 4.39k]
  ------------------
  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|  4.39k|  nghttp2_mem_free(map->mem, map->keys);
  227|  4.39k|  map->keys = new_map.keys;
  228|  4.39k|  map->data = new_map.data;
  229|  4.39k|  map->psl = new_map.psl;
  230|  4.39k|  map->hashbits = new_hashbits;
  231|       |
  232|  4.39k|  return 0;
  233|  4.39k|}
nghttp2_map.c:map_insert:
  142|  4.40k|                                void *data) {
  143|  4.40k|  size_t idx = map_index(map, key);
  144|  4.40k|  size_t mask = ((size_t)1 << map->hashbits) - 1;
  145|  4.40k|  size_t psl = 1;
  146|  4.40k|  size_t kpsl;
  147|       |
  148|  4.40k|  for (;;) {
  149|  4.40k|    kpsl = map->psl[idx];
  150|       |
  151|  4.40k|    if (kpsl == 0) {
  ------------------
  |  Branch (151:9): [True: 4.40k, False: 0]
  ------------------
  152|  4.40k|      map_set_entry(map, idx, key, data, psl);
  153|  4.40k|      ++map->size;
  154|       |
  155|  4.40k|      return (nghttp2_ssize)idx;
  156|  4.40k|    }
  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|  4.40k|}
nghttp2_map.c:map_set_entry:
  119|  4.40k|                          nghttp2_map_key_type key, void *data, size_t psl) {
  120|  4.40k|  map->keys[idx] = key;
  121|  4.40k|  map->data[idx] = data;
  122|  4.40k|  map->psl[idx] = (uint8_t)psl;
  123|  4.40k|}

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

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

nghttp2_data_provider_wrap_v1:
   32|  4.38k|                              const nghttp2_data_provider *data_prd) {
   33|  4.38k|  if (!data_prd) {
  ------------------
  |  Branch (33:7): [True: 3.78k, False: 602]
  ------------------
   34|  3.78k|    return NULL;
   35|  3.78k|  }
   36|       |
   37|    602|  dpw->version = NGHTTP2_DATA_PROVIDER_V1;
  ------------------
  |  |   36|    602|#define NGHTTP2_DATA_PROVIDER_V1 1
  ------------------
   38|    602|  dpw->data_prd.v1 = *data_prd;
   39|       |
   40|    602|  return dpw;
   41|  4.38k|}
nghttp2_data_provider_wrap_contains_read_callback:
   57|  5.58k|  const nghttp2_data_provider_wrap *dpw) {
   58|  5.58k|  switch (dpw->version) {
   59|  1.80k|  case NGHTTP2_DATA_PROVIDER_V1:
  ------------------
  |  |   36|  1.80k|#define NGHTTP2_DATA_PROVIDER_V1 1
  ------------------
  |  Branch (59:3): [True: 1.80k, False: 3.77k]
  ------------------
   60|  1.80k|    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: 5.58k]
  ------------------
   62|      0|    return dpw->data_prd.v2.read_callback != NULL;
   63|  3.77k|  default:
  ------------------
  |  Branch (63:3): [True: 3.77k, False: 1.80k]
  ------------------
   64|  3.77k|    return 0;
   65|  5.58k|  }
   66|  5.58k|}
nghttp2_outbound_item_init:
   68|  24.6k|void nghttp2_outbound_item_init(nghttp2_outbound_item *item) {
   69|  24.6k|  item->cycle = 0;
   70|  24.6k|  item->qnext = NULL;
   71|  24.6k|  item->queued = 0;
   72|       |
   73|  24.6k|  memset(&item->aux_data, 0, sizeof(nghttp2_aux_data));
   74|  24.6k|}
nghttp2_outbound_item_free:
   76|  40.5k|void nghttp2_outbound_item_free(nghttp2_outbound_item *item, nghttp2_mem *mem) {
   77|  40.5k|  nghttp2_frame *frame;
   78|       |
   79|  40.5k|  if (item == NULL) {
  ------------------
  |  Branch (79:7): [True: 15.8k, False: 24.6k]
  ------------------
   80|  15.8k|    return;
   81|  15.8k|  }
   82|       |
   83|  24.6k|  frame = &item->frame;
   84|       |
   85|  24.6k|  switch (frame->hd.type) {
   86|    600|  case NGHTTP2_DATA:
  ------------------
  |  Branch (86:3): [True: 600, False: 24.0k]
  ------------------
   87|    600|    nghttp2_frame_data_free(&frame->data);
   88|    600|    break;
   89|  4.38k|  case NGHTTP2_HEADERS:
  ------------------
  |  Branch (89:3): [True: 4.38k, False: 20.2k]
  ------------------
   90|  4.38k|    nghttp2_frame_headers_free(&frame->headers, mem);
   91|  4.38k|    break;
   92|      0|  case NGHTTP2_PRIORITY:
  ------------------
  |  Branch (92:3): [True: 0, False: 24.6k]
  ------------------
   93|      0|    nghttp2_frame_priority_free(&frame->priority);
   94|      0|    break;
   95|  4.45k|  case NGHTTP2_RST_STREAM:
  ------------------
  |  Branch (95:3): [True: 4.45k, False: 20.2k]
  ------------------
   96|  4.45k|    nghttp2_frame_rst_stream_free(&frame->rst_stream);
   97|  4.45k|    break;
   98|  8.49k|  case NGHTTP2_SETTINGS:
  ------------------
  |  Branch (98:3): [True: 8.49k, False: 16.1k]
  ------------------
   99|  8.49k|    nghttp2_frame_settings_free(&frame->settings, mem);
  100|  8.49k|    break;
  101|      0|  case NGHTTP2_PUSH_PROMISE:
  ------------------
  |  Branch (101:3): [True: 0, False: 24.6k]
  ------------------
  102|      0|    nghttp2_frame_push_promise_free(&frame->push_promise, mem);
  103|      0|    break;
  104|     36|  case NGHTTP2_PING:
  ------------------
  |  Branch (104:3): [True: 36, False: 24.6k]
  ------------------
  105|     36|    nghttp2_frame_ping_free(&frame->ping);
  106|     36|    break;
  107|  2.18k|  case NGHTTP2_GOAWAY:
  ------------------
  |  Branch (107:3): [True: 2.18k, False: 22.4k]
  ------------------
  108|  2.18k|    nghttp2_frame_goaway_free(&frame->goaway, mem);
  109|  2.18k|    break;
  110|  4.50k|  case NGHTTP2_WINDOW_UPDATE:
  ------------------
  |  Branch (110:3): [True: 4.50k, False: 20.1k]
  ------------------
  111|  4.50k|    nghttp2_frame_window_update_free(&frame->window_update);
  112|  4.50k|    break;
  113|      0|  default: {
  ------------------
  |  Branch (113:3): [True: 0, False: 24.6k]
  ------------------
  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|  24.6k|  }
  139|  24.6k|}
nghttp2_outbound_queue_push:
  147|  24.0k|                                 nghttp2_outbound_item *item) {
  148|  24.0k|  if (q->tail) {
  ------------------
  |  Branch (148:7): [True: 1.24k, False: 22.8k]
  ------------------
  149|  1.24k|    q->tail = q->tail->qnext = item;
  150|  22.8k|  } else {
  151|  22.8k|    q->head = q->tail = item;
  152|  22.8k|  }
  153|  24.0k|  ++q->n;
  154|  24.0k|}
nghttp2_outbound_queue_pop:
  156|  23.7k|void nghttp2_outbound_queue_pop(nghttp2_outbound_queue *q) {
  157|  23.7k|  nghttp2_outbound_item *item;
  158|  23.7k|  if (!q->head) {
  ------------------
  |  Branch (158:7): [True: 0, False: 23.7k]
  ------------------
  159|      0|    return;
  160|      0|  }
  161|  23.7k|  item = q->head;
  162|  23.7k|  q->head = q->head->qnext;
  163|  23.7k|  item->qnext = NULL;
  164|  23.7k|  if (!q->head) {
  ------------------
  |  Branch (164:7): [True: 22.6k, False: 1.12k]
  ------------------
  165|       |    q->tail = NULL;
  166|  22.6k|  }
  167|  23.7k|  --q->n;
  168|  23.7k|}

nghttp2_pq_init:
   32|  35.2k|void nghttp2_pq_init(nghttp2_pq *pq, nghttp2_less less, nghttp2_mem *mem) {
   33|  35.2k|  pq->mem = mem;
   34|  35.2k|  pq->capacity = 0;
   35|       |  pq->q = NULL;
   36|  35.2k|  pq->length = 0;
   37|  35.2k|  pq->less = less;
   38|  35.2k|}
nghttp2_pq_free:
   40|  35.2k|void nghttp2_pq_free(nghttp2_pq *pq) {
   41|  35.2k|  nghttp2_mem_free(pq->mem, pq->q);
   42|       |  pq->q = NULL;
   43|  35.2k|}
nghttp2_pq_push:
   67|    759|int nghttp2_pq_push(nghttp2_pq *pq, nghttp2_pq_entry *item) {
   68|    759|  if (pq->capacity <= pq->length) {
  ------------------
  |  Branch (68:7): [True: 595, False: 164]
  ------------------
   69|    595|    void *nq;
   70|    595|    size_t ncapacity;
   71|       |
   72|    595|    ncapacity = nghttp2_max_size(4, (pq->capacity * 2));
   73|       |
   74|    595|    nq = nghttp2_mem_realloc(pq->mem, pq->q,
   75|    595|                             ncapacity * sizeof(nghttp2_pq_entry *));
   76|    595|    if (nq == NULL) {
  ------------------
  |  Branch (76:9): [True: 0, False: 595]
  ------------------
   77|      0|      return NGHTTP2_ERR_NOMEM;
   78|      0|    }
   79|    595|    pq->capacity = ncapacity;
   80|    595|    pq->q = nq;
   81|    595|  }
   82|    759|  pq->q[pq->length] = item;
   83|    759|  item->index = pq->length;
   84|    759|  ++pq->length;
   85|    759|  bubble_up(pq, pq->length - 1);
   86|    759|  return 0;
   87|    759|}
nghttp2_pq_top:
   89|   151k|nghttp2_pq_entry *nghttp2_pq_top(nghttp2_pq *pq) {
   90|   151k|  if (pq->length == 0) {
  ------------------
  |  Branch (90:7): [True: 150k, False: 1.13k]
  ------------------
   91|   150k|    return NULL;
   92|   150k|  } else {
   93|  1.13k|    return pq->q[0];
   94|  1.13k|  }
   95|   151k|}
nghttp2_pq_pop:
  118|    678|void nghttp2_pq_pop(nghttp2_pq *pq) {
  119|    678|  if (pq->length > 0) {
  ------------------
  |  Branch (119:7): [True: 678, False: 0]
  ------------------
  120|    678|    pq->q[0] = pq->q[pq->length - 1];
  121|    678|    pq->q[0]->index = 0;
  122|    678|    --pq->length;
  123|    678|    bubble_down(pq, 0);
  124|    678|  }
  125|    678|}
nghttp2_pq_remove:
  127|    678|void nghttp2_pq_remove(nghttp2_pq *pq, nghttp2_pq_entry *item) {
  128|    678|  assert(pq->q[item->index] == item);
  ------------------
  |  Branch (128:3): [True: 0, False: 678]
  |  Branch (128:3): [True: 678, False: 0]
  ------------------
  129|       |
  130|    678|  if (item->index == 0) {
  ------------------
  |  Branch (130:7): [True: 678, False: 0]
  ------------------
  131|    678|    nghttp2_pq_pop(pq);
  132|    678|    return;
  133|    678|  }
  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|   301k|int nghttp2_pq_empty(nghttp2_pq *pq) { return pq->length == 0; }
nghttp2_pq.c:bubble_up:
   55|    759|static void bubble_up(nghttp2_pq *pq, size_t index) {
   56|    759|  size_t parent;
   57|    759|  while (index != 0) {
  ------------------
  |  Branch (57:10): [True: 0, False: 759]
  ------------------
   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|    759|}
nghttp2_pq.c:bubble_down:
   97|    678|static void bubble_down(nghttp2_pq *pq, size_t index) {
   98|    678|  size_t i, j, minindex;
   99|    678|  for (;;) {
  100|    678|    j = index * 2 + 1;
  101|    678|    minindex = index;
  102|    678|    for (i = 0; i < 2; ++i, ++j) {
  ------------------
  |  Branch (102:17): [True: 678, False: 0]
  ------------------
  103|    678|      if (j >= pq->length) {
  ------------------
  |  Branch (103:11): [True: 678, False: 0]
  ------------------
  104|    678|        break;
  105|    678|      }
  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|    678|    if (minindex == index) {
  ------------------
  |  Branch (110:9): [True: 678, False: 0]
  ------------------
  111|    678|      return;
  112|    678|    }
  113|      0|    swap(pq, index, minindex);
  114|      0|    index = minindex;
  115|      0|  }
  116|    678|}

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

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

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

nghttp2_is_fatal:
   86|   196k|int nghttp2_is_fatal(int lib_error_code) {
   87|   196k|  return lib_error_code < NGHTTP2_ERR_FATAL;
   88|   196k|}
nghttp2_session_terminate_session:
  253|    981|                                      uint32_t error_code) {
  254|    981|  return session_terminate_session(session, session->last_proc_stream_id,
  255|       |                                   error_code, NULL);
  256|    981|}
nghttp2_session_terminate_session_with_reason:
  266|    441|                                                  const char *reason) {
  267|    441|  return session_terminate_session(session, session->last_proc_stream_id,
  268|    441|                                   error_code, reason);
  269|    441|}
nghttp2_session_is_my_stream_id:
  272|  28.0k|                                    int32_t stream_id) {
  273|  28.0k|  int rem;
  274|  28.0k|  if (stream_id == 0) {
  ------------------
  |  Branch (274:7): [True: 2.18k, False: 25.8k]
  ------------------
  275|  2.18k|    return 0;
  276|  2.18k|  }
  277|  25.8k|  rem = stream_id & 0x1;
  278|  25.8k|  if (session->server) {
  ------------------
  |  Branch (278:7): [True: 0, False: 25.8k]
  ------------------
  279|      0|    return rem == 0;
  280|      0|  }
  281|  25.8k|  return rem == 1;
  282|  25.8k|}
nghttp2_session_get_stream:
  285|   122k|                                           int32_t stream_id) {
  286|   122k|  nghttp2_stream *stream;
  287|       |
  288|   122k|  stream = (nghttp2_stream *)nghttp2_map_find(&session->streams, stream_id);
  289|       |
  290|   122k|  if (stream == NULL || (stream->flags & NGHTTP2_STREAM_FLAG_CLOSED) ||
  ------------------
  |  Branch (290:7): [True: 25.8k, False: 97.1k]
  |  Branch (290:25): [True: 0, False: 97.1k]
  ------------------
  291|  97.1k|      stream->state == NGHTTP2_STREAM_IDLE) {
  ------------------
  |  Branch (291:7): [True: 0, False: 97.1k]
  ------------------
  292|  25.8k|    return NULL;
  293|  25.8k|  }
  294|       |
  295|  97.1k|  return stream;
  296|   122k|}
nghttp2_session_get_stream_raw:
  299|  4.55k|                                               int32_t stream_id) {
  300|  4.55k|  return (nghttp2_stream *)nghttp2_map_find(&session->streams, stream_id);
  301|  4.55k|}
nghttp2_session_client_new3:
  673|  4.41k|                                nghttp2_mem *mem) {
  674|  4.41k|  int rv;
  675|  4.41k|  nghttp2_session *session;
  676|       |
  677|  4.41k|  rv = session_new(&session, callbacks, user_data, 0, option, mem);
  678|       |
  679|  4.41k|  if (rv != 0) {
  ------------------
  |  Branch (679:7): [True: 0, False: 4.41k]
  ------------------
  680|      0|    return rv;
  681|      0|  }
  682|       |  /* IDs for use in client */
  683|  4.41k|  session->next_stream_id = 1;
  684|       |
  685|  4.41k|  *session_ptr = session;
  686|       |
  687|  4.41k|  return 0;
  688|  4.41k|}
nghttp2_session_del:
  790|  4.41k|void nghttp2_session_del(nghttp2_session *session) {
  791|  4.41k|  nghttp2_mem *mem;
  792|  4.41k|  nghttp2_inflight_settings *settings;
  793|  4.41k|  size_t i;
  794|       |
  795|  4.41k|  if (session == NULL) {
  ------------------
  |  Branch (795:7): [True: 0, False: 4.41k]
  ------------------
  796|      0|    return;
  797|      0|  }
  798|       |
  799|  4.41k|  mem = &session->mem;
  800|       |
  801|  8.69k|  for (settings = session->inflight_settings_head; settings;) {
  ------------------
  |  Branch (801:52): [True: 4.28k, False: 4.41k]
  ------------------
  802|  4.28k|    nghttp2_inflight_settings *next = settings->next;
  803|  4.28k|    inflight_settings_del(settings, mem);
  804|  4.28k|    settings = next;
  805|  4.28k|  }
  806|       |
  807|  39.7k|  for (i = 0; i < NGHTTP2_EXTPRI_URGENCY_LEVELS; ++i) {
  ------------------
  |  | 5028|  39.7k|#define NGHTTP2_EXTPRI_URGENCY_LEVELS (NGHTTP2_EXTPRI_URGENCY_LOW + 1)
  |  |  ------------------
  |  |  |  | 5020|  39.7k|#define NGHTTP2_EXTPRI_URGENCY_LOW 7
  |  |  ------------------
  ------------------
  |  Branch (807:15): [True: 35.2k, False: 4.41k]
  ------------------
  808|  35.2k|    nghttp2_pq_free(&session->sched[i].ob_data);
  809|  35.2k|  }
  810|       |
  811|       |  /* Have to free streams first, so that we can check
  812|       |     stream->item->queued */
  813|  4.41k|  nghttp2_map_each(&session->streams, free_streams, session);
  814|  4.41k|  nghttp2_map_free(&session->streams);
  815|       |
  816|  4.41k|  ob_q_free(&session->ob_urgent, mem);
  817|  4.41k|  ob_q_free(&session->ob_reg, mem);
  818|  4.41k|  ob_q_free(&session->ob_syn, mem);
  819|       |
  820|  4.41k|  active_outbound_item_reset(&session->aob, mem);
  821|  4.41k|  session_inbound_frame_reset(session);
  822|  4.41k|  nghttp2_hd_deflate_free(&session->hd_deflater);
  823|  4.41k|  nghttp2_hd_inflate_free(&session->hd_inflater);
  824|  4.41k|  nghttp2_bufs_free(&session->aob.framebufs);
  825|  4.41k|  nghttp2_mem_free(mem, session);
  826|  4.41k|}
nghttp2_session_add_item:
 1015|  24.6k|                             nghttp2_outbound_item *item) {
 1016|       |  /* TODO Return error if stream is not found for the frame requiring
 1017|       |     stream presence. */
 1018|  24.6k|  int rv = 0;
 1019|  24.6k|  nghttp2_stream *stream;
 1020|  24.6k|  nghttp2_frame *frame;
 1021|       |
 1022|  24.6k|  frame = &item->frame;
 1023|  24.6k|  stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 1024|       |
 1025|  24.6k|  switch (frame->hd.type) {
 1026|    600|  case NGHTTP2_DATA:
  ------------------
  |  Branch (1026:3): [True: 600, False: 24.0k]
  ------------------
 1027|    600|    if (!stream) {
  ------------------
  |  Branch (1027:9): [True: 0, False: 600]
  ------------------
 1028|      0|      return NGHTTP2_ERR_STREAM_CLOSED;
 1029|      0|    }
 1030|       |
 1031|    600|    if (stream->item) {
  ------------------
  |  Branch (1031:9): [True: 0, False: 600]
  ------------------
 1032|      0|      return NGHTTP2_ERR_DATA_EXIST;
 1033|      0|    }
 1034|       |
 1035|    600|    rv = session_attach_stream_item(session, stream, item);
 1036|       |
 1037|    600|    if (rv != 0) {
  ------------------
  |  Branch (1037:9): [True: 0, False: 600]
  ------------------
 1038|      0|      return rv;
 1039|      0|    }
 1040|       |
 1041|    600|    return 0;
 1042|  4.38k|  case NGHTTP2_HEADERS:
  ------------------
  |  Branch (1042:3): [True: 4.38k, False: 20.2k]
  ------------------
 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|  4.38k|    if (frame->headers.cat == NGHTTP2_HCAT_REQUEST ||
  ------------------
  |  Branch (1049:9): [True: 4.38k, False: 0]
  ------------------
 1050|  4.38k|        (stream && stream->state == NGHTTP2_STREAM_RESERVED)) {
  ------------------
  |  Branch (1050:10): [True: 0, False: 0]
  |  Branch (1050:20): [True: 0, False: 0]
  ------------------
 1051|  4.38k|      nghttp2_outbound_queue_push(&session->ob_syn, item);
 1052|  4.38k|      item->queued = 1;
 1053|  4.38k|      return 0;
 1054|  4.38k|    }
 1055|       |
 1056|      0|    nghttp2_outbound_queue_push(&session->ob_reg, item);
 1057|      0|    item->queued = 1;
 1058|      0|    return 0;
 1059|  8.49k|  case NGHTTP2_SETTINGS:
  ------------------
  |  Branch (1059:3): [True: 8.49k, False: 16.1k]
  ------------------
 1060|  8.53k|  case NGHTTP2_PING:
  ------------------
  |  Branch (1060:3): [True: 36, False: 24.6k]
  ------------------
 1061|  8.53k|    nghttp2_outbound_queue_push(&session->ob_urgent, item);
 1062|  8.53k|    item->queued = 1;
 1063|  8.53k|    return 0;
 1064|  4.45k|  case NGHTTP2_RST_STREAM:
  ------------------
  |  Branch (1064:3): [True: 4.45k, False: 20.2k]
  ------------------
 1065|  4.45k|    if (stream) {
  ------------------
  |  Branch (1065:9): [True: 4.24k, False: 205]
  ------------------
 1066|  4.24k|      stream->state = NGHTTP2_STREAM_CLOSING;
 1067|  4.24k|    }
 1068|  4.45k|    nghttp2_outbound_queue_push(&session->ob_reg, item);
 1069|  4.45k|    item->queued = 1;
 1070|  4.45k|    return 0;
 1071|      0|  case NGHTTP2_PUSH_PROMISE: {
  ------------------
  |  Branch (1071:3): [True: 0, False: 24.6k]
  ------------------
 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|  4.50k|  case NGHTTP2_WINDOW_UPDATE:
  ------------------
  |  Branch (1092:3): [True: 4.50k, False: 20.1k]
  ------------------
 1093|  4.50k|    if (stream) {
  ------------------
  |  Branch (1093:9): [True: 90, False: 4.41k]
  ------------------
 1094|     90|      stream->window_update_queued = 1;
 1095|  4.41k|    } else if (frame->hd.stream_id == 0) {
  ------------------
  |  Branch (1095:16): [True: 4.41k, False: 0]
  ------------------
 1096|  4.41k|      session->window_update_queued = 1;
 1097|  4.41k|    }
 1098|  4.50k|    nghttp2_outbound_queue_push(&session->ob_reg, item);
 1099|  4.50k|    item->queued = 1;
 1100|  4.50k|    return 0;
 1101|  2.18k|  default:
  ------------------
  |  Branch (1101:3): [True: 2.18k, False: 22.4k]
  ------------------
 1102|  2.18k|    nghttp2_outbound_queue_push(&session->ob_reg, item);
 1103|  2.18k|    item->queued = 1;
 1104|  2.18k|    return 0;
 1105|  24.6k|  }
 1106|  24.6k|}
nghttp2_session_add_rst_stream:
 1109|  1.79k|                                   uint32_t error_code) {
 1110|  1.79k|  return nghttp2_session_add_rst_stream_continue(
 1111|  1.79k|    session, stream_id, error_code,
 1112|  1.79k|    /* continue_without_stream = */ 1);
 1113|  1.79k|}
nghttp2_session_add_rst_stream_continue:
 1118|  6.04k|                                            int continue_without_stream) {
 1119|  6.04k|  int rv;
 1120|  6.04k|  nghttp2_outbound_item *item;
 1121|  6.04k|  nghttp2_frame *frame;
 1122|  6.04k|  nghttp2_stream *stream;
 1123|  6.04k|  nghttp2_mem *mem;
 1124|       |
 1125|  6.04k|  mem = &session->mem;
 1126|  6.04k|  stream = nghttp2_session_get_stream(session, stream_id);
 1127|  6.04k|  if (stream && stream->state == NGHTTP2_STREAM_CLOSING) {
  ------------------
  |  Branch (1127:7): [True: 5.83k, False: 205]
  |  Branch (1127:17): [True: 1.59k, False: 4.24k]
  ------------------
 1128|  1.59k|    return 0;
 1129|  1.59k|  }
 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|  4.45k|  if (nghttp2_session_is_my_stream_id(session, stream_id)) {
  ------------------
  |  Branch (1135:7): [True: 4.24k, False: 205]
  ------------------
 1136|  4.24k|    if ((uint32_t)stream_id >= session->next_stream_id) {
  ------------------
  |  Branch (1136:9): [True: 0, False: 4.24k]
  ------------------
 1137|      0|      return 0;
 1138|      0|    }
 1139|  4.24k|  } else if (session->last_recv_stream_id < stream_id) {
  ------------------
  |  Branch (1139:14): [True: 0, False: 205]
  ------------------
 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|  4.45k|  if (!session->server && nghttp2_session_is_my_stream_id(session, stream_id) &&
  ------------------
  |  Branch (1145:7): [True: 4.45k, False: 0]
  |  Branch (1145:27): [True: 4.24k, False: 205]
  ------------------
 1146|  4.24k|      nghttp2_outbound_queue_top(&session->ob_syn)) {
  ------------------
  |  |  192|  4.24k|#define nghttp2_outbound_queue_top(Q) ((Q)->head)
  |  |  ------------------
  |  |  |  Branch (192:39): [True: 0, False: 4.24k]
  |  |  ------------------
  ------------------
 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|  4.45k|  if (!continue_without_stream && !stream) {
  ------------------
  |  Branch (1177:7): [True: 3.04k, False: 1.40k]
  |  Branch (1177:35): [True: 0, False: 3.04k]
  ------------------
 1178|      0|    return 0;
 1179|      0|  }
 1180|       |
 1181|  4.45k|  item = nghttp2_mem_malloc(mem, sizeof(nghttp2_outbound_item));
 1182|  4.45k|  if (item == NULL) {
  ------------------
  |  Branch (1182:7): [True: 0, False: 4.45k]
  ------------------
 1183|      0|    return NGHTTP2_ERR_NOMEM;
 1184|      0|  }
 1185|       |
 1186|  4.45k|  nghttp2_outbound_item_init(item);
 1187|       |
 1188|  4.45k|  frame = &item->frame;
 1189|       |
 1190|  4.45k|  nghttp2_frame_rst_stream_init(&frame->rst_stream, stream_id, error_code);
 1191|       |
 1192|  4.45k|  item->aux_data.rst_stream.continue_without_stream =
 1193|  4.45k|    (uint8_t)(continue_without_stream != 0);
 1194|       |
 1195|  4.45k|  rv = nghttp2_session_add_item(session, item);
 1196|  4.45k|  if (rv != 0) {
  ------------------
  |  Branch (1196:7): [True: 0, False: 4.45k]
  ------------------
 1197|      0|    nghttp2_frame_rst_stream_free(&frame->rst_stream);
 1198|      0|    nghttp2_mem_free(mem, item);
 1199|      0|    return rv;
 1200|      0|  }
 1201|  4.45k|  return 0;
 1202|  4.45k|}
nghttp2_session_open_stream:
 1207|  4.40k|                                            void *stream_user_data) {
 1208|  4.40k|  int rv;
 1209|  4.40k|  nghttp2_stream *stream;
 1210|  4.40k|  int stream_alloc = 0;
 1211|  4.40k|  nghttp2_mem *mem;
 1212|       |
 1213|  4.40k|  mem = &session->mem;
 1214|  4.40k|  stream = nghttp2_session_get_stream_raw(session, stream_id);
 1215|       |
 1216|  4.40k|  if (session->opt_flags &
  ------------------
  |  Branch (1216:7): [True: 4.40k, False: 0]
  ------------------
 1217|  4.40k|      NGHTTP2_OPTMASK_NO_RFC9113_LEADING_AND_TRAILING_WS_VALIDATION) {
 1218|  4.40k|    flags |= NGHTTP2_STREAM_FLAG_NO_RFC9113_LEADING_AND_TRAILING_WS_VALIDATION;
 1219|  4.40k|  }
 1220|       |
 1221|  4.40k|  if (stream) {
  ------------------
  |  Branch (1221:7): [True: 0, False: 4.40k]
  ------------------
 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|  4.40k|  } else {
 1227|  4.40k|    stream = nghttp2_mem_malloc(mem, sizeof(nghttp2_stream));
 1228|  4.40k|    if (stream == NULL) {
  ------------------
  |  Branch (1228:9): [True: 0, False: 4.40k]
  ------------------
 1229|      0|      return NULL;
 1230|      0|    }
 1231|       |
 1232|  4.40k|    stream_alloc = 1;
 1233|  4.40k|  }
 1234|       |
 1235|  4.40k|  if (initial_state == NGHTTP2_STREAM_RESERVED) {
  ------------------
  |  Branch (1235:7): [True: 0, False: 4.40k]
  ------------------
 1236|      0|    flags |= NGHTTP2_STREAM_FLAG_PUSH;
 1237|      0|  }
 1238|       |
 1239|  4.40k|  if (stream_alloc) {
  ------------------
  |  Branch (1239:7): [True: 4.40k, False: 0]
  ------------------
 1240|  4.40k|    nghttp2_stream_init(stream, stream_id, flags, initial_state,
 1241|  4.40k|                        (int32_t)session->remote_settings.initial_window_size,
 1242|  4.40k|                        (int32_t)session->local_settings.initial_window_size,
 1243|  4.40k|                        stream_user_data);
 1244|  4.40k|    stream->seq = session->stream_seq++;
 1245|       |
 1246|  4.40k|    rv = nghttp2_map_insert(&session->streams, stream_id, stream);
 1247|  4.40k|    if (rv != 0) {
  ------------------
  |  Branch (1247:9): [True: 0, False: 4.40k]
  ------------------
 1248|      0|      nghttp2_stream_free(stream);
 1249|      0|      nghttp2_mem_free(mem, stream);
 1250|      0|      return NULL;
 1251|      0|    }
 1252|  4.40k|  } 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|  4.40k|  switch (initial_state) {
 1259|      0|  case NGHTTP2_STREAM_RESERVED:
  ------------------
  |  Branch (1259:3): [True: 0, False: 4.40k]
  ------------------
 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: 4.40k]
  ------------------
 1272|      0|    ++session->num_idle_streams;
 1273|      0|    break;
 1274|  4.40k|  default:
  ------------------
  |  Branch (1274:3): [True: 4.40k, False: 0]
  ------------------
 1275|  4.40k|    if (nghttp2_session_is_my_stream_id(session, stream_id)) {
  ------------------
  |  Branch (1275:9): [True: 4.40k, False: 0]
  ------------------
 1276|  4.40k|      ++session->num_outgoing_streams;
 1277|  4.40k|    } else {
 1278|      0|      ++session->num_incoming_streams;
 1279|      0|    }
 1280|  4.40k|  }
 1281|       |
 1282|  4.40k|  return stream;
 1283|  4.40k|}
nghttp2_session_close_stream:
 1286|  3.15k|                                 uint32_t error_code) {
 1287|  3.15k|  nghttp2_stream *stream;
 1288|  3.15k|  nghttp2_mem *mem;
 1289|  3.15k|  int is_my_stream_id;
 1290|       |
 1291|  3.15k|  mem = &session->mem;
 1292|  3.15k|  stream = nghttp2_session_get_stream(session, stream_id);
 1293|       |
 1294|  3.15k|  if (!stream) {
  ------------------
  |  Branch (1294:7): [True: 190, False: 2.96k]
  ------------------
 1295|    190|    return NGHTTP2_ERR_INVALID_ARGUMENT;
 1296|    190|  }
 1297|       |
 1298|  2.96k|  DEBUGF("stream: stream(%p)=%d close\n", stream, stream->stream_id);
  ------------------
  |  |   39|  2.96k|    do {                                                                       \
  |  |   40|  2.96k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 2.96k]
  |  |  ------------------
  ------------------
 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|  2.96k|  if (session->callbacks.on_stream_close_callback) {
  ------------------
  |  Branch (1307:7): [True: 2.96k, False: 0]
  ------------------
 1308|  2.96k|    if (session->callbacks.on_stream_close_callback(
  ------------------
  |  Branch (1308:9): [True: 0, False: 2.96k]
  ------------------
 1309|  2.96k|          session, stream_id, error_code, session->user_data) != 0) {
 1310|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 1311|      0|    }
 1312|  2.96k|  }
 1313|       |
 1314|  2.96k|  if (stream->item) {
  ------------------
  |  Branch (1314:7): [True: 178, False: 2.78k]
  ------------------
 1315|    178|    nghttp2_outbound_item *item;
 1316|       |
 1317|    178|    item = stream->item;
 1318|       |
 1319|    178|    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|    178|    if (!item->queued && item != session->aob.item) {
  ------------------
  |  Branch (1325:9): [True: 178, False: 0]
  |  Branch (1325:26): [True: 164, False: 14]
  ------------------
 1326|    164|      nghttp2_outbound_item_free(item, mem);
 1327|    164|      nghttp2_mem_free(mem, item);
 1328|    164|    }
 1329|    178|  }
 1330|       |
 1331|  2.96k|  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|  2.96k|  if ((stream->flags & NGHTTP2_STREAM_FLAG_PUSH)) {
  ------------------
  |  Branch (1335:7): [True: 0, False: 2.96k]
  ------------------
 1336|      0|    if (!is_my_stream_id) {
  ------------------
  |  Branch (1336:9): [True: 0, False: 0]
  ------------------
 1337|      0|      --session->num_incoming_reserved_streams;
 1338|      0|    }
 1339|  2.96k|  } else {
 1340|  2.96k|    if (is_my_stream_id) {
  ------------------
  |  Branch (1340:9): [True: 2.96k, False: 0]
  ------------------
 1341|  2.96k|      --session->num_outgoing_streams;
 1342|  2.96k|    } else {
 1343|      0|      --session->num_incoming_streams;
 1344|      0|    }
 1345|  2.96k|  }
 1346|       |
 1347|       |  /* Closes both directions just in case they are not closed yet */
 1348|  2.96k|  stream->flags |= NGHTTP2_STREAM_FLAG_CLOSED;
 1349|       |
 1350|  2.96k|  nghttp2_session_destroy_stream(session, stream);
 1351|       |
 1352|  2.96k|  return 0;
 1353|  2.96k|}
nghttp2_session_destroy_stream:
 1356|  2.96k|                                    nghttp2_stream *stream) {
 1357|  2.96k|  nghttp2_mem *mem;
 1358|       |
 1359|  2.96k|  DEBUGF("stream: destroy closed stream(%p)=%d\n", stream, stream->stream_id);
  ------------------
  |  |   39|  2.96k|    do {                                                                       \
  |  |   40|  2.96k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 2.96k]
  |  |  ------------------
  ------------------
 1360|       |
 1361|  2.96k|  mem = &session->mem;
 1362|       |
 1363|  2.96k|  if (stream->queued) {
  ------------------
  |  Branch (1363:7): [True: 0, False: 2.96k]
  ------------------
 1364|      0|    session_ob_data_remove(session, stream);
 1365|      0|  }
 1366|       |
 1367|  2.96k|  nghttp2_map_remove(&session->streams, stream->stream_id);
 1368|  2.96k|  nghttp2_stream_free(stream);
 1369|  2.96k|  nghttp2_mem_free(mem, stream);
 1370|  2.96k|}
nghttp2_session_close_stream_if_shut_rdwr:
 1386|  4.73k|                                              nghttp2_stream *stream) {
 1387|  4.73k|  if ((stream->shut_flags & NGHTTP2_SHUT_RDWR) == NGHTTP2_SHUT_RDWR) {
  ------------------
  |  Branch (1387:7): [True: 73, False: 4.66k]
  ------------------
 1388|     73|    return nghttp2_session_close_stream(session, stream->stream_id,
 1389|     73|                                        NGHTTP2_NO_ERROR);
 1390|     73|  }
 1391|  4.66k|  return 0;
 1392|  4.73k|}
nghttp2_session_check_request_allowed:
 1438|  17.0k|int nghttp2_session_check_request_allowed(nghttp2_session *session) {
 1439|  17.0k|  return !session->server && session->next_stream_id <= INT32_MAX &&
  ------------------
  |  Branch (1439:10): [True: 17.0k, False: 0]
  |  Branch (1439:30): [True: 17.0k, False: 0]
  ------------------
 1440|  17.0k|         (session->goaway_flags & NGHTTP2_GOAWAY_RECV) == 0 &&
  ------------------
  |  Branch (1440:10): [True: 16.8k, False: 165]
  ------------------
 1441|  16.8k|         !session_is_closing(session);
  ------------------
  |  Branch (1441:10): [True: 15.3k, False: 1.54k]
  ------------------
 1442|  17.0k|}
nghttp2_session_pop_next_ob_item:
 2327|  43.2k|nghttp2_session_pop_next_ob_item(nghttp2_session *session) {
 2328|  43.2k|  nghttp2_outbound_item *item;
 2329|       |
 2330|  43.2k|  item = nghttp2_outbound_queue_top(&session->ob_urgent);
  ------------------
  |  |  192|  43.2k|#define nghttp2_outbound_queue_top(Q) ((Q)->head)
  ------------------
 2331|  43.2k|  if (item) {
  ------------------
  |  Branch (2331:7): [True: 8.42k, False: 34.8k]
  ------------------
 2332|  8.42k|    nghttp2_outbound_queue_pop(&session->ob_urgent);
 2333|  8.42k|    item->queued = 0;
 2334|  8.42k|    return item;
 2335|  8.42k|  }
 2336|       |
 2337|  34.8k|  item = nghttp2_outbound_queue_top(&session->ob_reg);
  ------------------
  |  |  192|  34.8k|#define nghttp2_outbound_queue_top(Q) ((Q)->head)
  ------------------
 2338|  34.8k|  if (item) {
  ------------------
  |  Branch (2338:7): [True: 10.9k, False: 23.8k]
  ------------------
 2339|  10.9k|    nghttp2_outbound_queue_pop(&session->ob_reg);
 2340|  10.9k|    item->queued = 0;
 2341|  10.9k|    return item;
 2342|  10.9k|  }
 2343|       |
 2344|  23.8k|  if (!session_is_outgoing_concurrent_streams_max(session)) {
  ------------------
  |  Branch (2344:7): [True: 23.3k, False: 478]
  ------------------
 2345|  23.3k|    item = nghttp2_outbound_queue_top(&session->ob_syn);
  ------------------
  |  |  192|  23.3k|#define nghttp2_outbound_queue_top(Q) ((Q)->head)
  ------------------
 2346|  23.3k|    if (item) {
  ------------------
  |  Branch (2346:9): [True: 4.38k, False: 18.9k]
  ------------------
 2347|  4.38k|      nghttp2_outbound_queue_pop(&session->ob_syn);
 2348|  4.38k|      item->queued = 0;
 2349|  4.38k|      return item;
 2350|  4.38k|    }
 2351|  23.3k|  }
 2352|       |
 2353|  19.4k|  if (session->remote_window_size > 0) {
  ------------------
  |  Branch (2353:7): [True: 19.4k, False: 0]
  ------------------
 2354|  19.4k|    return session_sched_get_next_outbound_item(session);
 2355|  19.4k|  }
 2356|       |
 2357|      0|  return NULL;
 2358|  19.4k|}
nghttp2_session_send:
 3154|  20.5k|int nghttp2_session_send(nghttp2_session *session) {
 3155|  20.5k|  const uint8_t *data = NULL;
 3156|  20.5k|  nghttp2_ssize datalen;
 3157|  20.5k|  nghttp2_ssize sentlen;
 3158|  20.5k|  nghttp2_bufs *framebufs;
 3159|       |
 3160|  20.5k|  framebufs = &session->aob.framebufs;
 3161|       |
 3162|  47.6k|  for (;;) {
 3163|  47.6k|    datalen = nghttp2_session_mem_send_internal(session, &data, 0);
 3164|  47.6k|    if (datalen <= 0) {
  ------------------
  |  Branch (3164:9): [True: 18.3k, False: 29.3k]
  ------------------
 3165|  18.3k|      return (int)datalen;
 3166|  18.3k|    }
 3167|  29.3k|    if (session->callbacks.send_callback2) {
  ------------------
  |  Branch (3167:9): [True: 0, False: 29.3k]
  ------------------
 3168|      0|      sentlen = session->callbacks.send_callback2(
 3169|      0|        session, data, (size_t)datalen, 0, session->user_data);
 3170|  29.3k|    } else {
 3171|  29.3k|      sentlen = (nghttp2_ssize)session->callbacks.send_callback(
 3172|  29.3k|        session, data, (size_t)datalen, 0, session->user_data);
 3173|  29.3k|    }
 3174|  29.3k|    if (sentlen < 0) {
  ------------------
  |  Branch (3174:9): [True: 2.23k, False: 27.1k]
  ------------------
 3175|  2.23k|      if (sentlen == NGHTTP2_ERR_WOULDBLOCK) {
  ------------------
  |  Branch (3175:11): [True: 2.23k, False: 0]
  ------------------
 3176|       |        /* Transmission canceled. Rewind the offset */
 3177|  2.23k|        framebufs->cur->buf.pos -= datalen;
 3178|       |
 3179|  2.23k|        return 0;
 3180|  2.23k|      }
 3181|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 3182|  2.23k|    }
 3183|       |    /* Rewind the offset to the amount of unsent bytes */
 3184|  27.1k|    framebufs->cur->buf.pos -= datalen - sentlen;
 3185|  27.1k|  }
 3186|  20.5k|}
nghttp2_session_on_request_headers_received:
 3828|     58|                                                nghttp2_frame *frame) {
 3829|     58|  int rv = 0;
 3830|     58|  nghttp2_stream *stream;
 3831|     58|  if (frame->hd.stream_id == 0) {
  ------------------
  |  Branch (3831:7): [True: 5, False: 53]
  ------------------
 3832|      5|    return session_inflate_handle_invalid_connection(
 3833|      5|      session, frame, NGHTTP2_ERR_PROTO, "request HEADERS: stream_id == 0");
 3834|      5|  }
 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|     53|  if (!session->server) {
  ------------------
  |  Branch (3839:7): [True: 53, False: 0]
  ------------------
 3840|     53|    if (session_detect_idle_stream(session, frame->hd.stream_id)) {
  ------------------
  |  Branch (3840:9): [True: 36, False: 17]
  ------------------
 3841|     36|      return session_inflate_handle_invalid_connection(
 3842|     36|        session, frame, NGHTTP2_ERR_PROTO,
 3843|     36|        "request HEADERS: client received request");
 3844|     36|    }
 3845|       |
 3846|     17|    return NGHTTP2_ERR_IGN_HEADER_BLOCK;
 3847|     53|  }
 3848|       |
 3849|     53|  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|  2.16k|                                                 nghttp2_stream *stream) {
 3929|  2.16k|  int rv;
 3930|       |  /* This function is only called if stream->state ==
 3931|       |     NGHTTP2_STREAM_OPENING and stream_id is local side initiated. */
 3932|  2.16k|  assert(stream->state == NGHTTP2_STREAM_OPENING &&
  ------------------
  |  Branch (3932:3): [True: 0, False: 2.16k]
  |  Branch (3932:3): [True: 0, False: 0]
  |  Branch (3932:3): [True: 2.16k, False: 0]
  |  Branch (3932:3): [True: 2.16k, False: 0]
  ------------------
 3933|  2.16k|         nghttp2_session_is_my_stream_id(session, frame->hd.stream_id));
 3934|  2.16k|  if (frame->hd.stream_id == 0) {
  ------------------
  |  Branch (3934:7): [True: 0, False: 2.16k]
  ------------------
 3935|      0|    return session_inflate_handle_invalid_connection(
 3936|      0|      session, frame, NGHTTP2_ERR_PROTO, "response HEADERS: stream_id == 0");
 3937|      0|  }
 3938|  2.16k|  if (stream->shut_flags & NGHTTP2_SHUT_RD) {
  ------------------
  |  Branch (3938:7): [True: 0, False: 2.16k]
  ------------------
 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|  2.16k|  stream->state = NGHTTP2_STREAM_OPENED;
 3951|  2.16k|  rv = session_call_on_begin_headers(session, frame);
 3952|  2.16k|  if (rv != 0) {
  ------------------
  |  Branch (3952:7): [True: 0, False: 2.16k]
  ------------------
 3953|      0|    return rv;
 3954|      0|  }
 3955|  2.16k|  return 0;
 3956|  2.16k|}
nghttp2_session_on_headers_received:
 4005|     64|                                        nghttp2_stream *stream) {
 4006|     64|  int rv = 0;
 4007|     64|  if (frame->hd.stream_id == 0) {
  ------------------
  |  Branch (4007:7): [True: 0, False: 64]
  ------------------
 4008|      0|    return session_inflate_handle_invalid_connection(
 4009|      0|      session, frame, NGHTTP2_ERR_PROTO, "HEADERS: stream_id == 0");
 4010|      0|  }
 4011|     64|  if ((stream->shut_flags & NGHTTP2_SHUT_RD)) {
  ------------------
  |  Branch (4011:7): [True: 2, False: 62]
  ------------------
 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|     62|  if (nghttp2_session_is_my_stream_id(session, frame->hd.stream_id)) {
  ------------------
  |  Branch (4023:7): [True: 62, False: 0]
  ------------------
 4024|     62|    if (stream->state == NGHTTP2_STREAM_OPENED) {
  ------------------
  |  Branch (4024:9): [True: 51, False: 11]
  ------------------
 4025|     51|      rv = session_call_on_begin_headers(session, frame);
 4026|     51|      if (rv != 0) {
  ------------------
  |  Branch (4026:11): [True: 0, False: 51]
  ------------------
 4027|      0|        return rv;
 4028|      0|      }
 4029|     51|      return 0;
 4030|     51|    }
 4031|       |
 4032|     11|    return NGHTTP2_ERR_IGN_HEADER_BLOCK;
 4033|     62|  }
 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|     62|                                           nghttp2_frame *frame) {
 4096|     62|  int rv;
 4097|     62|  nghttp2_stream *stream;
 4098|     62|  if (frame->hd.stream_id == 0) {
  ------------------
  |  Branch (4098:7): [True: 1, False: 61]
  ------------------
 4099|      1|    return session_handle_invalid_connection(session, frame, NGHTTP2_ERR_PROTO,
 4100|      1|                                             "RST_STREAM: stream_id == 0");
 4101|      1|  }
 4102|       |
 4103|     61|  if (session_detect_idle_stream(session, frame->hd.stream_id)) {
  ------------------
  |  Branch (4103:7): [True: 13, False: 48]
  ------------------
 4104|     13|    return session_handle_invalid_connection(session, frame, NGHTTP2_ERR_PROTO,
 4105|     13|                                             "RST_STREAM: stream in idle");
 4106|     13|  }
 4107|       |
 4108|     48|  stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 4109|     48|  if (stream) {
  ------------------
  |  Branch (4109:7): [True: 46, False: 2]
  ------------------
 4110|       |    /* We may use stream->shut_flags for strict error checking. */
 4111|     46|    nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_RD);
 4112|     46|  }
 4113|       |
 4114|     48|  rv = session_call_on_frame_received(session, frame);
 4115|     48|  if (rv != 0) {
  ------------------
  |  Branch (4115:7): [True: 0, False: 48]
  ------------------
 4116|      0|    return rv;
 4117|      0|  }
 4118|     48|  rv = nghttp2_session_close_stream(session, frame->hd.stream_id,
 4119|     48|                                    frame->rst_stream.error_code);
 4120|     48|  if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (4120:7): [True: 0, False: 48]
  ------------------
 4121|      0|    return rv;
 4122|      0|  }
 4123|       |
 4124|     48|  return session_update_stream_reset_ratelim(session);
 4125|     48|}
nghttp2_session_update_local_settings:
 4262|    128|                                          size_t niv) {
 4263|    128|  int rv;
 4264|    128|  size_t i;
 4265|    128|  int32_t new_initial_window_size = -1;
 4266|    128|  uint32_t header_table_size = 0;
 4267|    128|  uint32_t min_header_table_size = UINT32_MAX;
 4268|    128|  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|    512|  for (i = 0; i < niv; ++i) {
  ------------------
  |  Branch (4272:15): [True: 384, False: 128]
  ------------------
 4273|    384|    switch (iv[i].settings_id) {
  ------------------
  |  Branch (4273:13): [True: 128, False: 256]
  ------------------
 4274|      0|    case NGHTTP2_SETTINGS_HEADER_TABLE_SIZE:
  ------------------
  |  Branch (4274:5): [True: 0, False: 384]
  ------------------
 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|    128|    case NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE:
  ------------------
  |  Branch (4280:5): [True: 128, False: 256]
  ------------------
 4281|    128|      new_initial_window_size = (int32_t)iv[i].value;
 4282|    128|      break;
 4283|    384|    }
 4284|    384|  }
 4285|    128|  if (header_table_size_seen) {
  ------------------
  |  Branch (4285:7): [True: 0, False: 128]
  ------------------
 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|    128|  if (new_initial_window_size != -1) {
  ------------------
  |  Branch (4300:7): [True: 128, False: 0]
  ------------------
 4301|    128|    rv = session_update_local_initial_window_size(
 4302|    128|      session, new_initial_window_size,
 4303|    128|      (int32_t)session->local_settings.initial_window_size);
 4304|    128|    if (rv != 0) {
  ------------------
  |  Branch (4304:9): [True: 0, False: 128]
  ------------------
 4305|      0|      return rv;
 4306|      0|    }
 4307|    128|  }
 4308|       |
 4309|    512|  for (i = 0; i < niv; ++i) {
  ------------------
  |  Branch (4309:15): [True: 384, False: 128]
  ------------------
 4310|    384|    switch (iv[i].settings_id) {
  ------------------
  |  Branch (4310:13): [True: 384, False: 0]
  ------------------
 4311|      0|    case NGHTTP2_SETTINGS_HEADER_TABLE_SIZE:
  ------------------
  |  Branch (4311:5): [True: 0, False: 384]
  ------------------
 4312|      0|      session->local_settings.header_table_size = iv[i].value;
 4313|      0|      break;
 4314|    128|    case NGHTTP2_SETTINGS_ENABLE_PUSH:
  ------------------
  |  Branch (4314:5): [True: 128, False: 256]
  ------------------
 4315|    128|      session->local_settings.enable_push = iv[i].value;
 4316|    128|      break;
 4317|    128|    case NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS:
  ------------------
  |  Branch (4317:5): [True: 128, False: 256]
  ------------------
 4318|    128|      session->local_settings.max_concurrent_streams = iv[i].value;
 4319|    128|      break;
 4320|    128|    case NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE:
  ------------------
  |  Branch (4320:5): [True: 128, False: 256]
  ------------------
 4321|    128|      session->local_settings.initial_window_size = iv[i].value;
 4322|    128|      break;
 4323|      0|    case NGHTTP2_SETTINGS_MAX_FRAME_SIZE:
  ------------------
  |  Branch (4323:5): [True: 0, False: 384]
  ------------------
 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: 384]
  ------------------
 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: 384]
  ------------------
 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: 384]
  ------------------
 4333|      0|      session->local_settings.no_rfc7540_priorities = iv[i].value;
 4334|      0|      break;
 4335|    384|    }
 4336|    384|  }
 4337|       |
 4338|    128|  return 0;
 4339|    128|}
nghttp2_session_on_settings_received:
 4342|  4.43k|                                         nghttp2_frame *frame, int noack) {
 4343|  4.43k|  int rv;
 4344|  4.43k|  size_t i;
 4345|  4.43k|  nghttp2_mem *mem;
 4346|  4.43k|  nghttp2_inflight_settings *settings;
 4347|       |
 4348|  4.43k|  mem = &session->mem;
 4349|       |
 4350|  4.43k|  if (frame->hd.stream_id != 0) {
  ------------------
  |  Branch (4350:7): [True: 36, False: 4.39k]
  ------------------
 4351|     36|    return session_handle_invalid_connection(session, frame, NGHTTP2_ERR_PROTO,
 4352|     36|                                             "SETTINGS: stream_id != 0");
 4353|     36|  }
 4354|  4.39k|  if (frame->hd.flags & NGHTTP2_FLAG_ACK) {
  ------------------
  |  Branch (4354:7): [True: 129, False: 4.26k]
  ------------------
 4355|    129|    if (frame->settings.niv != 0) {
  ------------------
  |  Branch (4355:9): [True: 0, False: 129]
  ------------------
 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|    129|    settings = session->inflight_settings_head;
 4362|       |
 4363|    129|    if (!settings) {
  ------------------
  |  Branch (4363:9): [True: 1, False: 128]
  ------------------
 4364|      1|      return session_handle_invalid_connection(
 4365|      1|        session, frame, NGHTTP2_ERR_PROTO, "SETTINGS: unexpected ACK");
 4366|      1|    }
 4367|       |
 4368|    128|    rv = nghttp2_session_update_local_settings(session, settings->iv,
 4369|    128|                                               settings->niv);
 4370|       |
 4371|    128|    session->inflight_settings_head = settings->next;
 4372|       |
 4373|    128|    inflight_settings_del(settings, mem);
 4374|       |
 4375|    128|    if (rv != 0) {
  ------------------
  |  Branch (4375:9): [True: 0, False: 128]
  ------------------
 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|    128|    return session_call_on_frame_received(session, frame);
 4382|    128|  }
 4383|       |
 4384|  4.26k|  if (!session->remote_settings_received) {
  ------------------
  |  Branch (4384:7): [True: 3.28k, False: 979]
  ------------------
 4385|  3.28k|    session->remote_settings.max_concurrent_streams =
 4386|  3.28k|      NGHTTP2_DEFAULT_MAX_CONCURRENT_STREAMS;
  ------------------
  |  |  103|  3.28k|#define NGHTTP2_DEFAULT_MAX_CONCURRENT_STREAMS 0xffffffffu
  ------------------
 4387|  3.28k|    session->remote_settings_received = 1;
 4388|  3.28k|  }
 4389|       |
 4390|  8.02k|  for (i = 0; i < frame->settings.niv; ++i) {
  ------------------
  |  Branch (4390:15): [True: 3.93k, False: 4.09k]
  ------------------
 4391|  3.93k|    nghttp2_settings_entry *entry = &frame->settings.iv[i];
 4392|       |
 4393|  3.93k|    switch (entry->settings_id) {
  ------------------
  |  Branch (4393:13): [True: 1.67k, False: 2.25k]
  ------------------
 4394|    236|    case NGHTTP2_SETTINGS_HEADER_TABLE_SIZE:
  ------------------
  |  Branch (4394:5): [True: 236, False: 3.69k]
  ------------------
 4395|       |
 4396|    236|      rv = nghttp2_hd_deflate_change_table_size(&session->hd_deflater,
 4397|    236|                                                entry->value);
 4398|    236|      if (rv != 0) {
  ------------------
  |  Branch (4398:11): [True: 0, False: 236]
  ------------------
 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|    236|      session->remote_settings.header_table_size = entry->value;
 4408|       |
 4409|    236|      break;
 4410|     66|    case NGHTTP2_SETTINGS_ENABLE_PUSH:
  ------------------
  |  Branch (4410:5): [True: 66, False: 3.86k]
  ------------------
 4411|       |
 4412|     66|      if (entry->value != 0 && entry->value != 1) {
  ------------------
  |  Branch (4412:11): [True: 42, False: 24]
  |  Branch (4412:32): [True: 36, False: 6]
  ------------------
 4413|     36|        return session_handle_invalid_connection(
 4414|     36|          session, frame, NGHTTP2_ERR_PROTO,
 4415|     36|          "SETTINGS: invalid SETTINGS_ENBLE_PUSH");
 4416|     36|      }
 4417|       |
 4418|     30|      if (!session->server && entry->value != 0) {
  ------------------
  |  Branch (4418:11): [True: 30, False: 0]
  |  Branch (4418:31): [True: 6, False: 24]
  ------------------
 4419|      6|        return session_handle_invalid_connection(
 4420|      6|          session, frame, NGHTTP2_ERR_PROTO,
 4421|      6|          "SETTINGS: server attempted to enable push");
 4422|      6|      }
 4423|       |
 4424|     24|      session->remote_settings.enable_push = entry->value;
 4425|       |
 4426|     24|      break;
 4427|    562|    case NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS:
  ------------------
  |  Branch (4427:5): [True: 562, False: 3.36k]
  ------------------
 4428|       |
 4429|    562|      session->remote_settings.max_concurrent_streams = entry->value;
 4430|       |
 4431|    562|      break;
 4432|    641|    case NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE:
  ------------------
  |  Branch (4432:5): [True: 641, False: 3.28k]
  ------------------
 4433|       |
 4434|       |      /* Update the initial window size of the all active streams */
 4435|       |      /* Check that initial_window_size < (1u << 31) */
 4436|    641|      if (entry->value > NGHTTP2_MAX_WINDOW_SIZE) {
  ------------------
  |  |  224|    641|#define NGHTTP2_MAX_WINDOW_SIZE ((int32_t)((1U << 31) - 1))
  ------------------
  |  Branch (4436:11): [True: 18, False: 623]
  ------------------
 4437|     18|        return session_handle_invalid_connection(
 4438|     18|          session, frame, NGHTTP2_ERR_FLOW_CONTROL,
 4439|     18|          "SETTINGS: too large SETTINGS_INITIAL_WINDOW_SIZE");
 4440|     18|      }
 4441|       |
 4442|    623|      rv = session_update_remote_initial_window_size(session,
 4443|    623|                                                     (int32_t)entry->value);
 4444|       |
 4445|    623|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (4445:11): [True: 0, False: 623]
  ------------------
 4446|      0|        return rv;
 4447|      0|      }
 4448|       |
 4449|    623|      if (rv != 0) {
  ------------------
  |  Branch (4449:11): [True: 1, False: 622]
  ------------------
 4450|      1|        return session_handle_invalid_connection(
 4451|      1|          session, frame, NGHTTP2_ERR_FLOW_CONTROL, NULL);
 4452|      1|      }
 4453|       |
 4454|    622|      session->remote_settings.initial_window_size = entry->value;
 4455|       |
 4456|    622|      break;
 4457|     53|    case NGHTTP2_SETTINGS_MAX_FRAME_SIZE:
  ------------------
  |  Branch (4457:5): [True: 53, False: 3.87k]
  ------------------
 4458|       |
 4459|     53|      if (entry->value < NGHTTP2_MAX_FRAME_SIZE_MIN ||
  ------------------
  |  |   43|    106|#define NGHTTP2_MAX_FRAME_SIZE_MIN (1 << 14)
  ------------------
  |  Branch (4459:11): [True: 3, False: 50]
  ------------------
 4460|     50|          entry->value > NGHTTP2_MAX_FRAME_SIZE_MAX) {
  ------------------
  |  |   42|     50|#define NGHTTP2_MAX_FRAME_SIZE_MAX ((1 << 24) - 1)
  ------------------
  |  Branch (4460:11): [True: 32, False: 18]
  ------------------
 4461|     35|        return session_handle_invalid_connection(
 4462|     35|          session, frame, NGHTTP2_ERR_PROTO,
 4463|     35|          "SETTINGS: invalid SETTINGS_MAX_FRAME_SIZE");
 4464|     35|      }
 4465|       |
 4466|     18|      session->remote_settings.max_frame_size = entry->value;
 4467|       |
 4468|     18|      break;
 4469|     17|    case NGHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE:
  ------------------
  |  Branch (4469:5): [True: 17, False: 3.91k]
  ------------------
 4470|       |
 4471|     17|      session->remote_settings.max_header_list_size = entry->value;
 4472|       |
 4473|     17|      break;
 4474|     38|    case NGHTTP2_SETTINGS_ENABLE_CONNECT_PROTOCOL:
  ------------------
  |  Branch (4474:5): [True: 38, False: 3.89k]
  ------------------
 4475|       |
 4476|     38|      if (entry->value != 0 && entry->value != 1) {
  ------------------
  |  Branch (4476:11): [True: 36, False: 2]
  |  Branch (4476:32): [True: 35, False: 1]
  ------------------
 4477|     35|        return session_handle_invalid_connection(
 4478|     35|          session, frame, NGHTTP2_ERR_PROTO,
 4479|     35|          "SETTINGS: invalid SETTINGS_ENABLE_CONNECT_PROTOCOL");
 4480|     35|      }
 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|     63|    case NGHTTP2_SETTINGS_NO_RFC7540_PRIORITIES:
  ------------------
  |  Branch (4494:5): [True: 63, False: 3.86k]
  ------------------
 4495|       |
 4496|     63|      if (entry->value != 0 && entry->value != 1) {
  ------------------
  |  Branch (4496:11): [True: 46, False: 17]
  |  Branch (4496:32): [True: 44, False: 2]
  ------------------
 4497|     44|        return session_handle_invalid_connection(
 4498|     44|          session, frame, NGHTTP2_ERR_PROTO,
 4499|     44|          "SETTINGS: invalid SETTINGS_NO_RFC7540_PRIORITIES");
 4500|     44|      }
 4501|       |
 4502|     19|      if (session->remote_settings.no_rfc7540_priorities != UINT32_MAX &&
  ------------------
  |  Branch (4502:11): [True: 13, False: 6]
  ------------------
 4503|     13|          session->remote_settings.no_rfc7540_priorities != entry->value) {
  ------------------
  |  Branch (4503:11): [True: 1, False: 12]
  ------------------
 4504|      1|        return session_handle_invalid_connection(
 4505|      1|          session, frame, NGHTTP2_ERR_PROTO,
 4506|      1|          "SETTINGS: SETTINGS_NO_RFC7540_PRIORITIES cannot be changed");
 4507|      1|      }
 4508|       |
 4509|     18|      session->remote_settings.no_rfc7540_priorities = entry->value;
 4510|       |
 4511|     18|      break;
 4512|  3.93k|    }
 4513|  3.93k|  }
 4514|       |
 4515|  4.09k|  if (session->remote_settings.no_rfc7540_priorities == UINT32_MAX) {
  ------------------
  |  Branch (4515:7): [True: 3.11k, False: 977]
  ------------------
 4516|  3.11k|    session->remote_settings.no_rfc7540_priorities = 0;
 4517|  3.11k|  }
 4518|       |
 4519|  4.09k|  if (!noack && !session_is_closing(session)) {
  ------------------
  |  Branch (4519:7): [True: 4.09k, False: 0]
  |  Branch (4519:17): [True: 4.08k, False: 10]
  ------------------
 4520|  4.08k|    rv = nghttp2_session_add_settings(session, NGHTTP2_FLAG_ACK, NULL, 0);
 4521|       |
 4522|  4.08k|    if (rv != 0) {
  ------------------
  |  Branch (4522:9): [True: 0, False: 4.08k]
  ------------------
 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|  4.08k|  }
 4531|       |
 4532|  4.09k|  return session_call_on_frame_received(session, frame);
 4533|  4.09k|}
nghttp2_session_on_push_promise_received:
 4573|    252|                                             nghttp2_frame *frame) {
 4574|    252|  int rv;
 4575|    252|  nghttp2_stream *stream;
 4576|    252|  nghttp2_stream *promised_stream;
 4577|       |
 4578|    252|  if (frame->hd.stream_id == 0) {
  ------------------
  |  Branch (4578:7): [True: 1, False: 251]
  ------------------
 4579|      1|    return session_inflate_handle_invalid_connection(
 4580|      1|      session, frame, NGHTTP2_ERR_PROTO, "PUSH_PROMISE: stream_id == 0");
 4581|      1|  }
 4582|    251|  if (session->server || session->local_settings.enable_push == 0) {
  ------------------
  |  Branch (4582:7): [True: 0, False: 251]
  |  Branch (4582:26): [True: 2, False: 249]
  ------------------
 4583|      2|    return session_inflate_handle_invalid_connection(
 4584|      2|      session, frame, NGHTTP2_ERR_PROTO, "PUSH_PROMISE: push disabled");
 4585|      2|  }
 4586|       |
 4587|    249|  if (!nghttp2_session_is_my_stream_id(session, frame->hd.stream_id)) {
  ------------------
  |  Branch (4587:7): [True: 6, False: 243]
  ------------------
 4588|      6|    return session_inflate_handle_invalid_connection(
 4589|      6|      session, frame, NGHTTP2_ERR_PROTO, "PUSH_PROMISE: invalid stream_id");
 4590|      6|  }
 4591|       |
 4592|    243|  if (!session_allow_incoming_new_stream(session)) {
  ------------------
  |  Branch (4592:7): [True: 0, False: 243]
  ------------------
 4593|       |    /* We just discard PUSH_PROMISE after GOAWAY was sent */
 4594|      0|    return NGHTTP2_ERR_IGN_HEADER_BLOCK;
 4595|      0|  }
 4596|       |
 4597|    243|  if (!session_is_new_peer_stream_id(session,
  ------------------
  |  Branch (4597:7): [True: 20, False: 223]
  ------------------
 4598|    243|                                     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|     20|    return session_inflate_handle_invalid_connection(
 4603|     20|      session, frame, NGHTTP2_ERR_PROTO,
 4604|     20|      "PUSH_PROMISE: invalid promised_stream_id");
 4605|     20|  }
 4606|       |
 4607|    223|  if (session_detect_idle_stream(session, frame->hd.stream_id)) {
  ------------------
  |  Branch (4607:7): [True: 18, False: 205]
  ------------------
 4608|     18|    return session_inflate_handle_invalid_connection(
 4609|     18|      session, frame, NGHTTP2_ERR_PROTO, "PUSH_PROMISE: stream in idle");
 4610|     18|  }
 4611|       |
 4612|    205|  session->last_recv_stream_id = frame->push_promise.promised_stream_id;
 4613|    205|  stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 4614|    205|  if (!stream || stream->state == NGHTTP2_STREAM_CLOSING ||
  ------------------
  |  Branch (4614:7): [True: 2, False: 203]
  |  Branch (4614:18): [True: 2, False: 201]
  ------------------
 4615|    201|      !session->pending_enable_push ||
  ------------------
  |  Branch (4615:7): [True: 201, False: 0]
  ------------------
 4616|      0|      session->num_incoming_reserved_streams >=
  ------------------
  |  Branch (4616:7): [True: 0, False: 0]
  ------------------
 4617|    205|        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|    205|    rv = session_handle_invalid_stream2(session,
 4621|    205|                                        frame->push_promise.promised_stream_id,
 4622|    205|                                        NULL, NGHTTP2_ERR_PUSH_CANCEL);
 4623|    205|    if (rv != 0) {
  ------------------
  |  Branch (4623:9): [True: 0, False: 205]
  ------------------
 4624|      0|      return rv;
 4625|      0|    }
 4626|    205|    return NGHTTP2_ERR_IGN_HEADER_BLOCK;
 4627|    205|  }
 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|     62|                                     nghttp2_frame *frame) {
 4662|     62|  int rv = 0;
 4663|     62|  if (frame->hd.stream_id != 0) {
  ------------------
  |  Branch (4663:7): [True: 4, False: 58]
  ------------------
 4664|      4|    return session_handle_invalid_connection(session, frame, NGHTTP2_ERR_PROTO,
 4665|      4|                                             "PING: stream_id != 0");
 4666|      4|  }
 4667|     58|  if ((session->opt_flags & NGHTTP2_OPTMASK_NO_AUTO_PING_ACK) == 0 &&
  ------------------
  |  Branch (4667:7): [True: 58, False: 0]
  ------------------
 4668|     58|      (frame->hd.flags & NGHTTP2_FLAG_ACK) == 0 &&
  ------------------
  |  Branch (4668:7): [True: 46, False: 12]
  ------------------
 4669|     46|      !session_is_closing(session)) {
  ------------------
  |  Branch (4669:7): [True: 36, False: 10]
  ------------------
 4670|       |    /* Peer sent ping, so ping it back */
 4671|     36|    rv = nghttp2_session_add_ping(session, NGHTTP2_FLAG_ACK,
 4672|     36|                                  frame->ping.opaque_data);
 4673|     36|    if (rv != 0) {
  ------------------
  |  Branch (4673:9): [True: 0, False: 36]
  ------------------
 4674|      0|      return rv;
 4675|      0|    }
 4676|     36|  }
 4677|     58|  return session_call_on_frame_received(session, frame);
 4678|     58|}
nghttp2_session_on_goaway_received:
 4690|    106|                                       nghttp2_frame *frame) {
 4691|    106|  int rv;
 4692|       |
 4693|    106|  if (frame->hd.stream_id != 0) {
  ------------------
  |  Branch (4693:7): [True: 6, False: 100]
  ------------------
 4694|      6|    return session_handle_invalid_connection(session, frame, NGHTTP2_ERR_PROTO,
 4695|      6|                                             "GOAWAY: stream_id != 0");
 4696|      6|  }
 4697|       |  /* Spec says Endpoints MUST NOT increase the value they send in the
 4698|       |     last stream identifier. */
 4699|    100|  if ((frame->goaway.last_stream_id > 0 &&
  ------------------
  |  Branch (4699:8): [True: 61, False: 39]
  ------------------
 4700|     61|       !nghttp2_session_is_my_stream_id(session,
  ------------------
  |  Branch (4700:8): [True: 3, False: 58]
  ------------------
 4701|     61|                                        frame->goaway.last_stream_id)) ||
 4702|     97|      session->remote_last_stream_id < frame->goaway.last_stream_id) {
  ------------------
  |  Branch (4702:7): [True: 1, False: 96]
  ------------------
 4703|      4|    return session_handle_invalid_connection(session, frame, NGHTTP2_ERR_PROTO,
 4704|      4|                                             "GOAWAY: invalid last_stream_id");
 4705|      4|  }
 4706|       |
 4707|     96|  session->goaway_flags |= NGHTTP2_GOAWAY_RECV;
 4708|       |
 4709|     96|  session->remote_last_stream_id = frame->goaway.last_stream_id;
 4710|       |
 4711|     96|  rv = session_call_on_frame_received(session, frame);
 4712|       |
 4713|     96|  if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (4713:7): [True: 0, False: 96]
  ------------------
 4714|      0|    return rv;
 4715|      0|  }
 4716|       |
 4717|     96|  return session_close_stream_on_goaway(session, frame->goaway.last_stream_id,
 4718|     96|                                        0);
 4719|     96|}
nghttp2_session_on_window_update_received:
 4798|    191|                                              nghttp2_frame *frame) {
 4799|    191|  if (frame->hd.stream_id == 0) {
  ------------------
  |  Branch (4799:7): [True: 72, False: 119]
  ------------------
 4800|     72|    return session_on_connection_window_update_received(session, frame);
 4801|    119|  } else {
 4802|    119|    return session_on_stream_window_update_received(session, frame);
 4803|    119|  }
 4804|    191|}
nghttp2_session_on_data_received:
 4994|     68|                                     nghttp2_frame *frame) {
 4995|     68|  int rv = 0;
 4996|     68|  nghttp2_stream *stream;
 4997|     68|  nghttp2_inbound_frame *iframe = &session->iframe;
 4998|       |
 4999|       |  /* We don't call on_frame_recv_callback if stream has been closed
 5000|       |     already or being closed. */
 5001|     68|  stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 5002|     68|  if (!stream || stream->state == NGHTTP2_STREAM_CLOSING) {
  ------------------
  |  Branch (5002:7): [True: 0, False: 68]
  |  Branch (5002:18): [True: 0, False: 68]
  ------------------
 5003|       |    /* This should be treated as stream error, but it results in lots
 5004|       |       of RST_STREAM. So just ignore frame against nonexistent stream
 5005|       |       for now. */
 5006|      0|    return 0;
 5007|      0|  }
 5008|       |
 5009|     68|  if (session_enforce_http_messaging(session) &&
  ------------------
  |  Branch (5009:7): [True: 68, False: 0]
  ------------------
 5010|     68|      (frame->hd.flags & NGHTTP2_FLAG_END_STREAM)) {
  ------------------
  |  Branch (5010:7): [True: 19, False: 49]
  ------------------
 5011|     19|    if (nghttp2_http_on_remote_end_stream(stream) != 0) {
  ------------------
  |  Branch (5011:9): [True: 0, False: 19]
  ------------------
 5012|      0|      rv = session_handle_invalid_stream2(session, stream->stream_id, frame,
 5013|      0|                                          NGHTTP2_ERR_HTTP_MESSAGING);
 5014|      0|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5014:11): [True: 0, False: 0]
  ------------------
 5015|      0|        return rv;
 5016|      0|      }
 5017|       |
 5018|      0|      rv = session_update_glitch_ratelim(session);
 5019|      0|      if (rv != 0) {
  ------------------
  |  Branch (5019:11): [True: 0, False: 0]
  ------------------
 5020|      0|        return rv;
 5021|      0|      }
 5022|       |
 5023|      0|      if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (5023:11): [True: 0, False: 0]
  ------------------
 5024|      0|        return 0;
 5025|      0|      }
 5026|       |
 5027|      0|      nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_RD);
 5028|       |
 5029|       |      /* Don't call nghttp2_session_close_stream_if_shut_rdwr because
 5030|       |         RST_STREAM has been submitted. */
 5031|       |
 5032|      0|      return 0;
 5033|      0|    }
 5034|     19|  }
 5035|       |
 5036|     68|  rv = session_call_on_frame_received(session, frame);
 5037|     68|  if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5037:7): [True: 0, False: 68]
  ------------------
 5038|      0|    return rv;
 5039|      0|  }
 5040|       |
 5041|     68|  if (frame->hd.flags & NGHTTP2_FLAG_END_STREAM) {
  ------------------
  |  Branch (5041:7): [True: 19, False: 49]
  ------------------
 5042|     19|    nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_RD);
 5043|     19|    rv = nghttp2_session_close_stream_if_shut_rdwr(session, stream);
 5044|     19|    if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5044:9): [True: 0, False: 19]
  ------------------
 5045|      0|      return rv;
 5046|      0|    }
 5047|     19|  }
 5048|     68|  return 0;
 5049|     68|}
nghttp2_session_update_recv_stream_window_size:
 5085|    666|                                                   int send_window_update) {
 5086|    666|  int rv;
 5087|    666|  rv = adjust_recv_window_size(&stream->recv_window_size, delta_size,
 5088|    666|                               stream->local_window_size);
 5089|    666|  if (rv != 0) {
  ------------------
  |  Branch (5089:7): [True: 0, False: 666]
  ------------------
 5090|      0|    return nghttp2_session_terminate_session(session,
 5091|      0|                                             NGHTTP2_FLOW_CONTROL_ERROR);
 5092|      0|  }
 5093|       |  /* We don't have to send WINDOW_UPDATE if the data received is the
 5094|       |     last chunk in the incoming stream. */
 5095|       |  /* We have to use local_settings here because it is the constraint
 5096|       |     the remote endpoint should honor. */
 5097|    666|  if (send_window_update &&
  ------------------
  |  Branch (5097:7): [True: 648, False: 18]
  ------------------
 5098|    648|      !(session->opt_flags & NGHTTP2_OPTMASK_NO_AUTO_WINDOW_UPDATE) &&
  ------------------
  |  Branch (5098:7): [True: 0, False: 648]
  ------------------
 5099|      0|      stream->window_update_queued == 0 &&
  ------------------
  |  Branch (5099:7): [True: 0, False: 0]
  ------------------
 5100|      0|      nghttp2_should_send_window_update(stream->local_window_size,
  ------------------
  |  Branch (5100:7): [True: 0, False: 0]
  ------------------
 5101|      0|                                        stream->recv_window_size)) {
 5102|      0|    rv = nghttp2_session_add_window_update(
 5103|      0|      session, NGHTTP2_FLAG_NONE, stream->stream_id, stream->recv_window_size);
 5104|      0|    if (rv != 0) {
  ------------------
  |  Branch (5104:9): [True: 0, False: 0]
  ------------------
 5105|      0|      return rv;
 5106|      0|    }
 5107|       |
 5108|      0|    stream->recv_window_size = 0;
 5109|      0|  }
 5110|    666|  return 0;
 5111|    666|}
nghttp2_session_update_recv_connection_window_size:
 5114|    616|                                                       size_t delta_size) {
 5115|    616|  int rv;
 5116|    616|  rv = adjust_recv_window_size(&session->recv_window_size, delta_size,
 5117|    616|                               session->local_window_size);
 5118|    616|  if (rv != 0) {
  ------------------
  |  Branch (5118:7): [True: 0, False: 616]
  ------------------
 5119|      0|    return nghttp2_session_terminate_session(session,
 5120|      0|                                             NGHTTP2_FLOW_CONTROL_ERROR);
 5121|      0|  }
 5122|    616|  if (!(session->opt_flags & NGHTTP2_OPTMASK_NO_AUTO_WINDOW_UPDATE) &&
  ------------------
  |  Branch (5122:7): [True: 0, False: 616]
  ------------------
 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|    616|  return 0;
 5137|    616|}
nghttp2_session_mem_recv:
 5420|  12.2k|                                 size_t inlen) {
 5421|  12.2k|  return (ssize_t)nghttp2_session_mem_recv2(session, in, inlen);
 5422|  12.2k|}
nghttp2_session_mem_recv2:
 5425|  12.2k|                                        const uint8_t *in, size_t inlen) {
 5426|  12.2k|  const uint8_t *first, *last;
 5427|  12.2k|  nghttp2_inbound_frame *iframe = &session->iframe;
 5428|  12.2k|  size_t readlen;
 5429|  12.2k|  nghttp2_ssize padlen;
 5430|  12.2k|  int rv;
 5431|  12.2k|  int busy = 0;
 5432|  12.2k|  nghttp2_frame_hd cont_hd;
 5433|  12.2k|  nghttp2_stream *stream;
 5434|  12.2k|  size_t pri_fieldlen;
 5435|  12.2k|  nghttp2_mem *mem;
 5436|       |
 5437|  12.2k|  if (in == NULL) {
  ------------------
  |  Branch (5437:7): [True: 0, False: 12.2k]
  ------------------
 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|  12.2k|  first = in;
 5443|  12.2k|  last = in + inlen;
 5444|       |
 5445|  12.2k|  DEBUGF("recv: connection recv_window_size=%d, local_window=%d\n",
  ------------------
  |  |   39|  12.2k|    do {                                                                       \
  |  |   40|  12.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 12.2k]
  |  |  ------------------
  ------------------
 5446|  12.2k|         session->recv_window_size, session->local_window_size);
 5447|       |
 5448|  12.2k|  mem = &session->mem;
 5449|       |
 5450|  12.2k|  if (!nghttp2_session_want_read(session)) {
  ------------------
  |  Branch (5450:7): [True: 0, False: 12.2k]
  ------------------
 5451|      0|    return (nghttp2_ssize)inlen;
 5452|      0|  }
 5453|       |
 5454|  30.8k|  for (;;) {
 5455|  30.8k|    switch (iframe->state) {
  ------------------
  |  Branch (5455:13): [True: 30.8k, False: 0]
  ------------------
 5456|      0|    case NGHTTP2_IB_READ_CLIENT_MAGIC:
  ------------------
  |  Branch (5456:5): [True: 0, False: 30.8k]
  ------------------
 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|  3.69k|    case NGHTTP2_IB_READ_FIRST_SETTINGS:
  ------------------
  |  Branch (5474:5): [True: 3.69k, False: 27.1k]
  ------------------
 5475|  3.69k|      DEBUGF("recv: [IB_READ_FIRST_SETTINGS]\n");
  ------------------
  |  |   39|  3.69k|    do {                                                                       \
  |  |   40|  3.69k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 3.69k]
  |  |  ------------------
  ------------------
 5476|       |
 5477|  3.69k|      readlen = inbound_frame_buf_read(iframe, in, last);
 5478|  3.69k|      in += readlen;
 5479|       |
 5480|  3.69k|      if (nghttp2_buf_mark_avail(&iframe->sbuf)) {
  ------------------
  |  |   56|  3.69k|#define nghttp2_buf_mark_avail(BUF) ((size_t)((BUF)->mark - (BUF)->last))
  |  |  ------------------
  |  |  |  Branch (56:37): [True: 263, False: 3.43k]
  |  |  ------------------
  ------------------
 5481|    263|        return (nghttp2_ssize)(in - first);
 5482|    263|      }
 5483|       |
 5484|  3.43k|      if (iframe->sbuf.pos[3] != NGHTTP2_SETTINGS ||
  ------------------
  |  Branch (5484:11): [True: 59, False: 3.37k]
  ------------------
 5485|  3.37k|          (iframe->sbuf.pos[4] & NGHTTP2_FLAG_ACK)) {
  ------------------
  |  Branch (5485:11): [True: 5, False: 3.37k]
  ------------------
 5486|     64|        rv = session_call_error_callback(
 5487|     64|          session, NGHTTP2_ERR_SETTINGS_EXPECTED,
 5488|     64|          "Remote peer returned unexpected data while we expected "
 5489|     64|          "SETTINGS frame.  Perhaps, peer does not support HTTP/2 "
 5490|     64|          "properly.");
 5491|       |
 5492|     64|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5492:13): [True: 0, False: 64]
  ------------------
 5493|      0|          return rv;
 5494|      0|        }
 5495|       |
 5496|     64|        rv = nghttp2_session_terminate_session_with_reason(
 5497|     64|          session, NGHTTP2_PROTOCOL_ERROR, "SETTINGS expected");
 5498|       |
 5499|     64|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5499:13): [True: 0, False: 64]
  ------------------
 5500|      0|          return rv;
 5501|      0|        }
 5502|       |
 5503|     64|        return (nghttp2_ssize)inlen;
 5504|     64|      }
 5505|       |
 5506|  3.37k|      iframe->state = NGHTTP2_IB_READ_HEAD;
 5507|       |
 5508|       |    /* Fall through */
 5509|  9.91k|    case NGHTTP2_IB_READ_HEAD: {
  ------------------
  |  Branch (5509:5): [True: 6.54k, False: 24.3k]
  ------------------
 5510|  9.91k|      int on_begin_frame_called = 0;
 5511|       |
 5512|  9.91k|      DEBUGF("recv: [IB_READ_HEAD]\n");
  ------------------
  |  |   39|  9.91k|    do {                                                                       \
  |  |   40|  9.91k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 9.91k]
  |  |  ------------------
  ------------------
 5513|       |
 5514|  9.91k|      readlen = inbound_frame_buf_read(iframe, in, last);
 5515|  9.91k|      in += readlen;
 5516|       |
 5517|  9.91k|      if (nghttp2_buf_mark_avail(&iframe->sbuf)) {
  ------------------
  |  |   56|  9.91k|#define nghttp2_buf_mark_avail(BUF) ((size_t)((BUF)->mark - (BUF)->last))
  |  |  ------------------
  |  |  |  Branch (56:37): [True: 1.45k, False: 8.45k]
  |  |  ------------------
  ------------------
 5518|  1.45k|        return (nghttp2_ssize)(in - first);
 5519|  1.45k|      }
 5520|       |
 5521|  8.45k|      nghttp2_frame_unpack_frame_hd(&iframe->frame.hd, iframe->sbuf.pos);
 5522|  8.45k|      iframe->payloadleft = iframe->frame.hd.length;
 5523|       |
 5524|  8.45k|      DEBUGF("recv: payloadlen=%zu, type=%u, flags=0x%02x, stream_id=%d\n",
  ------------------
  |  |   39|  8.45k|    do {                                                                       \
  |  |   40|  8.45k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 8.45k]
  |  |  ------------------
  ------------------
 5525|  8.45k|             iframe->frame.hd.length, iframe->frame.hd.type,
 5526|  8.45k|             iframe->frame.hd.flags, iframe->frame.hd.stream_id);
 5527|       |
 5528|  8.45k|      if (iframe->frame.hd.length > session->local_settings.max_frame_size) {
  ------------------
  |  Branch (5528:11): [True: 201, False: 8.25k]
  ------------------
 5529|    201|        DEBUGF("recv: length is too large %zu > %u\n", iframe->frame.hd.length,
  ------------------
  |  |   39|    201|    do {                                                                       \
  |  |   40|    201|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 201]
  |  |  ------------------
  ------------------
 5530|    201|               session->local_settings.max_frame_size);
 5531|       |
 5532|    201|        rv = nghttp2_session_terminate_session_with_reason(
 5533|    201|          session, NGHTTP2_FRAME_SIZE_ERROR, "too large frame size");
 5534|       |
 5535|    201|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5535:13): [True: 0, False: 201]
  ------------------
 5536|      0|          return rv;
 5537|      0|        }
 5538|       |
 5539|    201|        return (nghttp2_ssize)inlen;
 5540|    201|      }
 5541|       |
 5542|  8.25k|      switch (iframe->frame.hd.type) {
 5543|    399|      case NGHTTP2_DATA: {
  ------------------
  |  Branch (5543:7): [True: 399, False: 7.85k]
  ------------------
 5544|    399|        DEBUGF("recv: DATA\n");
  ------------------
  |  |   39|    399|    do {                                                                       \
  |  |   40|    399|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 399]
  |  |  ------------------
  ------------------
 5545|       |
 5546|    399|        iframe->frame.hd.flags &=
 5547|    399|          (NGHTTP2_FLAG_END_STREAM | NGHTTP2_FLAG_PADDED);
 5548|       |        /* Check stream is open. If it is not open or closing,
 5549|       |           ignore payload. */
 5550|    399|        busy = 1;
 5551|       |
 5552|    399|        rv = session_on_data_received_fail_fast(session);
 5553|    399|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5553:13): [True: 0, False: 399]
  ------------------
 5554|      0|          return rv;
 5555|      0|        }
 5556|       |
 5557|    399|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (5557:13): [True: 97, False: 302]
  ------------------
 5558|     97|          return (nghttp2_ssize)inlen;
 5559|     97|        }
 5560|    302|        if (rv == NGHTTP2_ERR_IGN_PAYLOAD) {
  ------------------
  |  Branch (5560:13): [True: 142, False: 160]
  ------------------
 5561|    142|          DEBUGF("recv: DATA not allowed stream_id=%d\n",
  ------------------
  |  |   39|    142|    do {                                                                       \
  |  |   40|    142|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 142]
  |  |  ------------------
  ------------------
 5562|    142|                 iframe->frame.hd.stream_id);
 5563|       |
 5564|    142|          iframe->state = NGHTTP2_IB_IGN_DATA;
 5565|    142|          break;
 5566|    142|        }
 5567|       |
 5568|    160|        rv = inbound_frame_handle_pad(iframe, &iframe->frame.hd);
 5569|    160|        if (rv < 0) {
  ------------------
  |  Branch (5569:13): [True: 1, False: 159]
  ------------------
 5570|      1|          rv = nghttp2_session_terminate_session_with_reason(
 5571|      1|            session, NGHTTP2_PROTOCOL_ERROR,
 5572|      1|            "DATA: insufficient padding space");
 5573|       |
 5574|      1|          if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5574:15): [True: 0, False: 1]
  ------------------
 5575|      0|            return rv;
 5576|      0|          }
 5577|      1|          return (nghttp2_ssize)inlen;
 5578|      1|        }
 5579|       |
 5580|    159|        if (rv == 1) {
  ------------------
  |  Branch (5580:13): [True: 48, False: 111]
  ------------------
 5581|     48|          iframe->state = NGHTTP2_IB_READ_PAD_DATA;
 5582|     48|          break;
 5583|     48|        }
 5584|       |
 5585|       |        /* Empty DATA frame without END_STREAM flag set is
 5586|       |           suspicious. */
 5587|    111|        if (iframe->payloadleft == 0 &&
  ------------------
  |  Branch (5587:13): [True: 5, False: 106]
  ------------------
 5588|      5|            (iframe->frame.hd.flags & NGHTTP2_FLAG_END_STREAM) == 0) {
  ------------------
  |  Branch (5588:13): [True: 4, False: 1]
  ------------------
 5589|      4|          rv = session_update_glitch_ratelim(session);
 5590|      4|          if (rv != 0) {
  ------------------
  |  Branch (5590:15): [True: 0, False: 4]
  ------------------
 5591|      0|            return rv;
 5592|      0|          }
 5593|       |
 5594|      4|          if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (5594:15): [True: 0, False: 4]
  ------------------
 5595|      0|            return (nghttp2_ssize)inlen;
 5596|      0|          }
 5597|      4|        }
 5598|       |
 5599|    111|        iframe->state = NGHTTP2_IB_READ_DATA;
 5600|    111|        break;
 5601|    111|      }
 5602|  2.29k|      case NGHTTP2_HEADERS:
  ------------------
  |  Branch (5602:7): [True: 2.29k, False: 5.96k]
  ------------------
 5603|       |
 5604|  2.29k|        DEBUGF("recv: HEADERS\n");
  ------------------
  |  |   39|  2.29k|    do {                                                                       \
  |  |   40|  2.29k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 2.29k]
  |  |  ------------------
  ------------------
 5605|       |
 5606|  2.29k|        iframe->frame.hd.flags &=
 5607|  2.29k|          (NGHTTP2_FLAG_END_STREAM | NGHTTP2_FLAG_END_HEADERS |
 5608|  2.29k|           NGHTTP2_FLAG_PADDED | NGHTTP2_FLAG_PRIORITY);
 5609|       |
 5610|  2.29k|        rv = inbound_frame_handle_pad(iframe, &iframe->frame.hd);
 5611|  2.29k|        if (rv < 0) {
  ------------------
  |  Branch (5611:13): [True: 2, False: 2.29k]
  ------------------
 5612|      2|          rv = nghttp2_session_terminate_session_with_reason(
 5613|      2|            session, NGHTTP2_PROTOCOL_ERROR,
 5614|      2|            "HEADERS: insufficient padding space");
 5615|      2|          if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5615:15): [True: 0, False: 2]
  ------------------
 5616|      0|            return rv;
 5617|      0|          }
 5618|      2|          return (nghttp2_ssize)inlen;
 5619|      2|        }
 5620|       |
 5621|  2.29k|        if (rv == 1) {
  ------------------
  |  Branch (5621:13): [True: 80, False: 2.21k]
  ------------------
 5622|     80|          iframe->state = NGHTTP2_IB_READ_NBYTE;
 5623|     80|          break;
 5624|     80|        }
 5625|       |
 5626|  2.21k|        pri_fieldlen = nghttp2_frame_priority_len(iframe->frame.hd.flags);
 5627|       |
 5628|  2.21k|        if (pri_fieldlen > 0) {
  ------------------
  |  Branch (5628:13): [True: 1.22k, False: 984]
  ------------------
 5629|  1.22k|          if (iframe->payloadleft < pri_fieldlen) {
  ------------------
  |  Branch (5629:15): [True: 1, False: 1.22k]
  ------------------
 5630|      1|            busy = 1;
 5631|      1|            iframe->state = NGHTTP2_IB_FRAME_SIZE_ERROR;
 5632|      1|            break;
 5633|      1|          }
 5634|       |
 5635|  1.22k|          iframe->state = NGHTTP2_IB_READ_NBYTE;
 5636|       |
 5637|  1.22k|          inbound_frame_set_mark(iframe, pri_fieldlen);
 5638|       |
 5639|  1.22k|          break;
 5640|  1.22k|        }
 5641|       |
 5642|       |        /* Call on_begin_frame_callback here because
 5643|       |           session_process_headers_frame() may call
 5644|       |           on_begin_headers_callback */
 5645|    984|        rv = session_call_on_begin_frame(session, &iframe->frame.hd);
 5646|       |
 5647|    984|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5647:13): [True: 0, False: 984]
  ------------------
 5648|      0|          return rv;
 5649|      0|        }
 5650|       |
 5651|    984|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (5651:13): [True: 0, False: 984]
  ------------------
 5652|      0|          return (nghttp2_ssize)inlen;
 5653|      0|        }
 5654|       |
 5655|    984|        on_begin_frame_called = 1;
 5656|       |
 5657|    984|        rv = session_process_headers_frame(session);
 5658|    984|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5658:13): [True: 8, False: 976]
  ------------------
 5659|      8|          return rv;
 5660|      8|        }
 5661|       |
 5662|    976|        busy = 1;
 5663|       |
 5664|    976|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (5664:13): [True: 1, False: 975]
  ------------------
 5665|      1|          return (nghttp2_ssize)inlen;
 5666|      1|        }
 5667|       |
 5668|    975|        if (rv == NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE) {
  ------------------
  |  Branch (5668:13): [True: 0, False: 975]
  ------------------
 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|    975|        if (rv == NGHTTP2_ERR_IGN_HEADER_BLOCK) {
  ------------------
  |  Branch (5678:13): [True: 23, False: 952]
  ------------------
 5679|     23|          rv = session_update_glitch_ratelim(session);
 5680|     23|          if (rv != 0) {
  ------------------
  |  Branch (5680:15): [True: 0, False: 23]
  ------------------
 5681|      0|            return rv;
 5682|      0|          }
 5683|       |
 5684|     23|          if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (5684:15): [True: 0, False: 23]
  ------------------
 5685|      0|            return (nghttp2_ssize)inlen;
 5686|      0|          }
 5687|       |
 5688|     23|          iframe->state = NGHTTP2_IB_IGN_HEADER_BLOCK;
 5689|     23|          break;
 5690|     23|        }
 5691|       |
 5692|    952|        iframe->state = NGHTTP2_IB_READ_HEADER_BLOCK;
 5693|       |
 5694|    952|        break;
 5695|      3|      case NGHTTP2_PRIORITY:
  ------------------
  |  Branch (5695:7): [True: 3, False: 8.25k]
  ------------------
 5696|      3|        DEBUGF("recv: PRIORITY\n");
  ------------------
  |  |   39|      3|    do {                                                                       \
  |  |   40|      3|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 3]
  |  |  ------------------
  ------------------
 5697|       |
 5698|      3|        iframe->frame.hd.flags = NGHTTP2_FLAG_NONE;
 5699|       |
 5700|      3|        if (iframe->payloadleft != NGHTTP2_PRIORITY_SPECLEN) {
  ------------------
  |  |   64|      3|#define NGHTTP2_PRIORITY_SPECLEN 5
  ------------------
  |  Branch (5700:13): [True: 1, False: 2]
  ------------------
 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|      2|        rv = session_update_glitch_ratelim(session);
 5712|      2|        if (rv != 0) {
  ------------------
  |  Branch (5712:13): [True: 0, False: 2]
  ------------------
 5713|      0|          return rv;
 5714|      0|        }
 5715|       |
 5716|      2|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (5716:13): [True: 0, False: 2]
  ------------------
 5717|      0|          return (nghttp2_ssize)inlen;
 5718|      0|        }
 5719|       |
 5720|      2|        iframe->state = NGHTTP2_IB_READ_NBYTE;
 5721|       |
 5722|      2|        inbound_frame_set_mark(iframe, NGHTTP2_PRIORITY_SPECLEN);
  ------------------
  |  |   64|      2|#define NGHTTP2_PRIORITY_SPECLEN 5
  ------------------
 5723|       |
 5724|      2|        break;
 5725|     70|      case NGHTTP2_RST_STREAM:
  ------------------
  |  Branch (5725:7): [True: 70, False: 8.18k]
  ------------------
 5726|    266|      case NGHTTP2_WINDOW_UPDATE:
  ------------------
  |  Branch (5726:7): [True: 196, False: 8.06k]
  ------------------
 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|    266|        iframe->frame.hd.flags = NGHTTP2_FLAG_NONE;
 5739|       |
 5740|    266|        if (iframe->payloadleft != 4) {
  ------------------
  |  Branch (5740:13): [True: 10, False: 256]
  ------------------
 5741|     10|          busy = 1;
 5742|     10|          iframe->state = NGHTTP2_IB_FRAME_SIZE_ERROR;
 5743|     10|          break;
 5744|     10|        }
 5745|       |
 5746|    256|        iframe->state = NGHTTP2_IB_READ_NBYTE;
 5747|       |
 5748|    256|        inbound_frame_set_mark(iframe, 4);
 5749|       |
 5750|    256|        break;
 5751|  4.50k|      case NGHTTP2_SETTINGS:
  ------------------
  |  Branch (5751:7): [True: 4.50k, False: 3.75k]
  ------------------
 5752|  4.50k|        DEBUGF("recv: SETTINGS\n");
  ------------------
  |  |   39|  4.50k|    do {                                                                       \
  |  |   40|  4.50k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 4.50k]
  |  |  ------------------
  ------------------
 5753|       |
 5754|  4.50k|        iframe->frame.hd.flags &= NGHTTP2_FLAG_ACK;
 5755|       |
 5756|  4.50k|        if ((iframe->frame.hd.length % NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH) ||
  ------------------
  |  |   61|  4.50k|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
  |  Branch (5756:13): [True: 2, False: 4.50k]
  ------------------
 5757|  4.50k|            ((iframe->frame.hd.flags & NGHTTP2_FLAG_ACK) &&
  ------------------
  |  Branch (5757:14): [True: 143, False: 4.36k]
  ------------------
 5758|    143|             iframe->payloadleft > 0)) {
  ------------------
  |  Branch (5758:14): [True: 5, False: 138]
  ------------------
 5759|      7|          busy = 1;
 5760|      7|          iframe->state = NGHTTP2_IB_FRAME_SIZE_ERROR;
 5761|      7|          break;
 5762|      7|        }
 5763|       |
 5764|       |        /* Check the settings flood counter early to be safe */
 5765|  4.49k|        if (session->obq_flood_counter_ >= session->max_outbound_ack &&
  ------------------
  |  Branch (5765:13): [True: 0, False: 4.49k]
  ------------------
 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|  4.49k|        iframe->state = NGHTTP2_IB_READ_SETTINGS;
 5771|       |
 5772|  4.49k|        if (iframe->payloadleft) {
  ------------------
  |  Branch (5772:13): [True: 1.21k, False: 3.28k]
  ------------------
 5773|  1.21k|          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|  1.21k|          iframe->max_niv =
 5778|  1.21k|            iframe->frame.hd.length / NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH + 1;
  ------------------
  |  |   61|  1.21k|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
 5779|       |
 5780|  1.21k|          if (iframe->max_niv - 1 > session->max_settings) {
  ------------------
  |  Branch (5780:15): [True: 1, False: 1.21k]
  ------------------
 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|  1.21k|          iframe->iv = nghttp2_mem_malloc(mem, sizeof(nghttp2_settings_entry) *
 5791|  1.21k|                                                 iframe->max_niv);
 5792|       |
 5793|  1.21k|          if (!iframe->iv) {
  ------------------
  |  Branch (5793:15): [True: 0, False: 1.21k]
  ------------------
 5794|      0|            return NGHTTP2_ERR_NOMEM;
 5795|      0|          }
 5796|       |
 5797|  1.21k|          min_header_table_size_entry = &iframe->iv[iframe->max_niv - 1];
 5798|  1.21k|          min_header_table_size_entry->settings_id =
 5799|  1.21k|            NGHTTP2_SETTINGS_HEADER_TABLE_SIZE;
 5800|  1.21k|          min_header_table_size_entry->value = UINT32_MAX;
 5801|       |
 5802|  1.21k|          inbound_frame_set_mark(iframe, NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH);
  ------------------
  |  |   61|  1.21k|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
 5803|  1.21k|          break;
 5804|  1.21k|        }
 5805|       |
 5806|  3.28k|        busy = 1;
 5807|       |
 5808|  3.28k|        inbound_frame_set_mark(iframe, 0);
 5809|       |
 5810|  3.28k|        break;
 5811|    259|      case NGHTTP2_PUSH_PROMISE:
  ------------------
  |  Branch (5811:7): [True: 259, False: 7.99k]
  ------------------
 5812|    259|        DEBUGF("recv: PUSH_PROMISE\n");
  ------------------
  |  |   39|    259|    do {                                                                       \
  |  |   40|    259|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 259]
  |  |  ------------------
  ------------------
 5813|       |
 5814|    259|        iframe->frame.hd.flags &=
 5815|    259|          (NGHTTP2_FLAG_END_HEADERS | NGHTTP2_FLAG_PADDED);
 5816|       |
 5817|    259|        rv = inbound_frame_handle_pad(iframe, &iframe->frame.hd);
 5818|    259|        if (rv < 0) {
  ------------------
  |  Branch (5818:13): [True: 1, False: 258]
  ------------------
 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|    258|        if (rv == 1) {
  ------------------
  |  Branch (5828:13): [True: 45, False: 213]
  ------------------
 5829|     45|          iframe->state = NGHTTP2_IB_READ_NBYTE;
 5830|     45|          break;
 5831|     45|        }
 5832|       |
 5833|    213|        if (iframe->payloadleft < 4) {
  ------------------
  |  Branch (5833:13): [True: 2, False: 211]
  ------------------
 5834|      2|          busy = 1;
 5835|      2|          iframe->state = NGHTTP2_IB_FRAME_SIZE_ERROR;
 5836|      2|          break;
 5837|      2|        }
 5838|       |
 5839|    211|        iframe->state = NGHTTP2_IB_READ_NBYTE;
 5840|       |
 5841|    211|        inbound_frame_set_mark(iframe, 4);
 5842|       |
 5843|    211|        break;
 5844|     66|      case NGHTTP2_PING:
  ------------------
  |  Branch (5844:7): [True: 66, False: 8.19k]
  ------------------
 5845|     66|        DEBUGF("recv: PING\n");
  ------------------
  |  |   39|     66|    do {                                                                       \
  |  |   40|     66|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 66]
  |  |  ------------------
  ------------------
 5846|       |
 5847|     66|        iframe->frame.hd.flags &= NGHTTP2_FLAG_ACK;
 5848|       |
 5849|     66|        if (iframe->payloadleft != 8) {
  ------------------
  |  Branch (5849:13): [True: 1, False: 65]
  ------------------
 5850|      1|          busy = 1;
 5851|      1|          iframe->state = NGHTTP2_IB_FRAME_SIZE_ERROR;
 5852|      1|          break;
 5853|      1|        }
 5854|       |
 5855|     65|        iframe->state = NGHTTP2_IB_READ_NBYTE;
 5856|     65|        inbound_frame_set_mark(iframe, 8);
 5857|       |
 5858|     65|        break;
 5859|    123|      case NGHTTP2_GOAWAY:
  ------------------
  |  Branch (5859:7): [True: 123, False: 8.13k]
  ------------------
 5860|    123|        DEBUGF("recv: GOAWAY\n");
  ------------------
  |  |   39|    123|    do {                                                                       \
  |  |   40|    123|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 123]
  |  |  ------------------
  ------------------
 5861|       |
 5862|    123|        iframe->frame.hd.flags = NGHTTP2_FLAG_NONE;
 5863|       |
 5864|    123|        if (iframe->payloadleft < 8) {
  ------------------
  |  Branch (5864:13): [True: 1, False: 122]
  ------------------
 5865|      1|          busy = 1;
 5866|      1|          iframe->state = NGHTTP2_IB_FRAME_SIZE_ERROR;
 5867|      1|          break;
 5868|      1|        }
 5869|       |
 5870|    122|        iframe->state = NGHTTP2_IB_READ_NBYTE;
 5871|    122|        inbound_frame_set_mark(iframe, 8);
 5872|       |
 5873|    122|        break;
 5874|      1|      case NGHTTP2_CONTINUATION:
  ------------------
  |  Branch (5874:7): [True: 1, False: 8.25k]
  ------------------
 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|    339|      default:
  ------------------
  |  Branch (5886:7): [True: 339, False: 7.91k]
  ------------------
 5887|    339|        DEBUGF("recv: extension frame\n");
  ------------------
  |  |   39|    339|    do {                                                                       \
  |  |   40|    339|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 339]
  |  |  ------------------
  ------------------
 5888|       |
 5889|    339|        if (check_ext_type_set(session->user_recv_ext_types,
  ------------------
  |  Branch (5889:13): [True: 0, False: 339]
  ------------------
 5890|    339|                               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|    339|        } else {
 5916|    339|          switch (iframe->frame.hd.type) {
 5917|     19|          case NGHTTP2_ALTSVC:
  ------------------
  |  Branch (5917:11): [True: 19, False: 320]
  ------------------
 5918|     19|            if ((session->builtin_recv_ext_types & NGHTTP2_TYPEMASK_ALTSVC) ==
  ------------------
  |  Branch (5918:17): [True: 19, False: 0]
  ------------------
 5919|     19|                0) {
 5920|       |              /* Receiving too frequent unknown frames is suspicious. */
 5921|     19|              rv = session_update_glitch_ratelim(session);
 5922|     19|              if (rv != 0) {
  ------------------
  |  Branch (5922:19): [True: 0, False: 19]
  ------------------
 5923|      0|                return rv;
 5924|      0|              }
 5925|       |
 5926|     19|              if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (5926:19): [True: 0, False: 19]
  ------------------
 5927|      0|                return (nghttp2_ssize)inlen;
 5928|      0|              }
 5929|       |
 5930|     19|              busy = 1;
 5931|     19|              iframe->state = NGHTTP2_IB_IGN_PAYLOAD;
 5932|     19|              break;
 5933|     19|            }
 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|    106|          case NGHTTP2_ORIGIN:
  ------------------
  |  Branch (5969:11): [True: 106, False: 233]
  ------------------
 5970|    106|            if (!(session->builtin_recv_ext_types & NGHTTP2_TYPEMASK_ORIGIN)) {
  ------------------
  |  Branch (5970:17): [True: 106, False: 0]
  ------------------
 5971|       |              /* Receiving too frequent unknown frames is suspicious. */
 5972|    106|              rv = session_update_glitch_ratelim(session);
 5973|    106|              if (rv != 0) {
  ------------------
  |  Branch (5973:19): [True: 0, False: 106]
  ------------------
 5974|      0|                return rv;
 5975|      0|              }
 5976|       |
 5977|    106|              if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (5977:19): [True: 0, False: 106]
  ------------------
 5978|      0|                return (nghttp2_ssize)inlen;
 5979|      0|              }
 5980|       |
 5981|    106|              busy = 1;
 5982|    106|              iframe->state = NGHTTP2_IB_IGN_PAYLOAD;
 5983|    106|              break;
 5984|    106|            }
 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|     51|          case NGHTTP2_PRIORITY_UPDATE:
  ------------------
  |  Branch (6026:11): [True: 51, False: 288]
  ------------------
 6027|     51|            if ((session->builtin_recv_ext_types &
  ------------------
  |  Branch (6027:17): [True: 51, False: 0]
  ------------------
 6028|     51|                 NGHTTP2_TYPEMASK_PRIORITY_UPDATE) == 0) {
 6029|       |              /* Receiving too frequent unknown frames is suspicious. */
 6030|     51|              rv = session_update_glitch_ratelim(session);
 6031|     51|              if (rv != 0) {
  ------------------
  |  Branch (6031:19): [True: 0, False: 51]
  ------------------
 6032|      0|                return rv;
 6033|      0|              }
 6034|       |
 6035|     51|              if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6035:19): [True: 0, False: 51]
  ------------------
 6036|      0|                return (nghttp2_ssize)inlen;
 6037|      0|              }
 6038|       |
 6039|     51|              busy = 1;
 6040|     51|              iframe->state = NGHTTP2_IB_IGN_PAYLOAD;
 6041|     51|              break;
 6042|     51|            }
 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|    163|          default:
  ------------------
  |  Branch (6089:11): [True: 163, False: 176]
  ------------------
 6090|       |            /* Receiving too frequent unknown frames is suspicious. */
 6091|    163|            rv = session_update_glitch_ratelim(session);
 6092|    163|            if (rv != 0) {
  ------------------
  |  Branch (6092:17): [True: 0, False: 163]
  ------------------
 6093|      0|              return rv;
 6094|      0|            }
 6095|       |
 6096|    163|            if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6096:17): [True: 0, False: 163]
  ------------------
 6097|      0|              return (nghttp2_ssize)inlen;
 6098|      0|            }
 6099|       |
 6100|    163|            busy = 1;
 6101|       |
 6102|    163|            iframe->state = NGHTTP2_IB_IGN_PAYLOAD;
 6103|       |
 6104|    163|            break;
 6105|    339|          }
 6106|    339|        }
 6107|  8.25k|      }
 6108|       |
 6109|  8.14k|      if (!on_begin_frame_called) {
  ------------------
  |  Branch (6109:11): [True: 7.16k, False: 975]
  ------------------
 6110|  7.16k|        switch (iframe->state) {
 6111|      0|        case NGHTTP2_IB_IGN_HEADER_BLOCK:
  ------------------
  |  Branch (6111:9): [True: 0, False: 7.16k]
  ------------------
 6112|    339|        case NGHTTP2_IB_IGN_PAYLOAD:
  ------------------
  |  Branch (6112:9): [True: 339, False: 6.83k]
  ------------------
 6113|    362|        case NGHTTP2_IB_FRAME_SIZE_ERROR:
  ------------------
  |  Branch (6113:9): [True: 23, False: 7.14k]
  ------------------
 6114|    504|        case NGHTTP2_IB_IGN_DATA:
  ------------------
  |  Branch (6114:9): [True: 142, False: 7.02k]
  ------------------
 6115|    504|        case NGHTTP2_IB_IGN_ALL:
  ------------------
  |  Branch (6115:9): [True: 0, False: 7.16k]
  ------------------
 6116|    504|          break;
 6117|  6.66k|        default:
  ------------------
  |  Branch (6117:9): [True: 6.66k, False: 504]
  ------------------
 6118|  6.66k|          rv = session_call_on_begin_frame(session, &iframe->frame.hd);
 6119|       |
 6120|  6.66k|          if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6120:15): [True: 0, False: 6.66k]
  ------------------
 6121|      0|            return rv;
 6122|      0|          }
 6123|       |
 6124|  6.66k|          if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6124:15): [True: 0, False: 6.66k]
  ------------------
 6125|      0|            return (nghttp2_ssize)inlen;
 6126|      0|          }
 6127|  7.16k|        }
 6128|  7.16k|      }
 6129|       |
 6130|  8.14k|      break;
 6131|  8.14k|    }
 6132|  8.14k|    case NGHTTP2_IB_READ_NBYTE:
  ------------------
  |  Branch (6132:5): [True: 2.53k, False: 28.3k]
  ------------------
 6133|  2.53k|      DEBUGF("recv: [IB_READ_NBYTE]\n");
  ------------------
  |  |   39|  2.53k|    do {                                                                       \
  |  |   40|  2.53k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 2.53k]
  |  |  ------------------
  ------------------
 6134|       |
 6135|  2.53k|      readlen = inbound_frame_buf_read(iframe, in, last);
 6136|  2.53k|      in += readlen;
 6137|  2.53k|      iframe->payloadleft -= readlen;
 6138|       |
 6139|  2.53k|      DEBUGF("recv: readlen=%zu, payloadleft=%zu, left=%zu\n", readlen,
  ------------------
  |  |   39|  2.53k|    do {                                                                       \
  |  |   40|  2.53k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 2.53k]
  |  |  ------------------
  ------------------
 6140|  2.53k|             iframe->payloadleft, nghttp2_buf_mark_avail(&iframe->sbuf));
 6141|       |
 6142|  2.53k|      if (nghttp2_buf_mark_avail(&iframe->sbuf)) {
  ------------------
  |  |   56|  2.53k|#define nghttp2_buf_mark_avail(BUF) ((size_t)((BUF)->mark - (BUF)->last))
  |  |  ------------------
  |  |  |  Branch (56:37): [True: 478, False: 2.05k]
  |  |  ------------------
  ------------------
 6143|    478|        return (nghttp2_ssize)(in - first);
 6144|    478|      }
 6145|       |
 6146|  2.05k|      switch (iframe->frame.hd.type) {
 6147|  1.32k|      case NGHTTP2_HEADERS:
  ------------------
  |  Branch (6147:7): [True: 1.32k, False: 731]
  ------------------
 6148|  1.32k|        if (iframe->padlen == 0 &&
  ------------------
  |  Branch (6148:13): [True: 1.30k, False: 22]
  ------------------
 6149|  1.30k|            (iframe->frame.hd.flags & NGHTTP2_FLAG_PADDED)) {
  ------------------
  |  Branch (6149:13): [True: 80, False: 1.22k]
  ------------------
 6150|     80|          pri_fieldlen = nghttp2_frame_priority_len(iframe->frame.hd.flags);
 6151|     80|          padlen = inbound_frame_compute_pad(iframe);
 6152|     80|          if (padlen < 0 ||
  ------------------
  |  Branch (6152:15): [True: 1, False: 79]
  ------------------
 6153|     79|              (size_t)padlen + pri_fieldlen > 1 + iframe->payloadleft) {
  ------------------
  |  Branch (6153:15): [True: 1, False: 78]
  ------------------
 6154|      2|            rv = nghttp2_session_terminate_session_with_reason(
 6155|      2|              session, NGHTTP2_PROTOCOL_ERROR, "HEADERS: invalid padding");
 6156|      2|            if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6156:17): [True: 0, False: 2]
  ------------------
 6157|      0|              return rv;
 6158|      0|            }
 6159|      2|            return (nghttp2_ssize)inlen;
 6160|      2|          }
 6161|     78|          iframe->frame.headers.padlen = (size_t)padlen;
 6162|       |
 6163|     78|          if (pri_fieldlen > 0) {
  ------------------
  |  Branch (6163:15): [True: 27, False: 51]
  ------------------
 6164|     27|            if (iframe->payloadleft < pri_fieldlen) {
  ------------------
  |  Branch (6164:17): [True: 0, False: 27]
  ------------------
 6165|      0|              busy = 1;
 6166|      0|              iframe->state = NGHTTP2_IB_FRAME_SIZE_ERROR;
 6167|      0|              break;
 6168|      0|            }
 6169|     27|            iframe->state = NGHTTP2_IB_READ_NBYTE;
 6170|     27|            inbound_frame_set_mark(iframe, pri_fieldlen);
 6171|     27|            break;
 6172|     51|          } else {
 6173|       |            /* Truncate buffers used for padding spec */
 6174|     51|            inbound_frame_set_mark(iframe, 0);
 6175|     51|          }
 6176|     78|        }
 6177|       |
 6178|  1.29k|        rv = session_process_headers_frame(session);
 6179|  1.29k|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6179:13): [True: 33, False: 1.26k]
  ------------------
 6180|     33|          return rv;
 6181|     33|        }
 6182|       |
 6183|  1.26k|        busy = 1;
 6184|       |
 6185|  1.26k|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6185:13): [True: 1, False: 1.26k]
  ------------------
 6186|      1|          return (nghttp2_ssize)inlen;
 6187|      1|        }
 6188|       |
 6189|  1.26k|        if (rv == NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE) {
  ------------------
  |  Branch (6189:13): [True: 0, False: 1.26k]
  ------------------
 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|  1.26k|        if (rv == NGHTTP2_ERR_IGN_HEADER_BLOCK) {
  ------------------
  |  Branch (6199:13): [True: 5, False: 1.25k]
  ------------------
 6200|      5|          rv = session_update_glitch_ratelim(session);
 6201|      5|          if (rv != 0) {
  ------------------
  |  Branch (6201:15): [True: 0, False: 5]
  ------------------
 6202|      0|            return rv;
 6203|      0|          }
 6204|       |
 6205|      5|          if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6205:15): [True: 0, False: 5]
  ------------------
 6206|      0|            return (nghttp2_ssize)inlen;
 6207|      0|          }
 6208|       |
 6209|      5|          iframe->state = NGHTTP2_IB_IGN_HEADER_BLOCK;
 6210|      5|          break;
 6211|      5|        }
 6212|       |
 6213|  1.25k|        iframe->state = NGHTTP2_IB_READ_HEADER_BLOCK;
 6214|       |
 6215|  1.25k|        break;
 6216|      2|      case NGHTTP2_PRIORITY:
  ------------------
  |  Branch (6216:7): [True: 2, False: 2.05k]
  ------------------
 6217|      2|        session_inbound_frame_reset(session);
 6218|       |
 6219|      2|        break;
 6220|     62|      case NGHTTP2_RST_STREAM:
  ------------------
  |  Branch (6220:7): [True: 62, False: 1.99k]
  ------------------
 6221|     62|        rv = session_process_rst_stream_frame(session);
 6222|     62|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6222:13): [True: 14, False: 48]
  ------------------
 6223|     14|          return rv;
 6224|     14|        }
 6225|       |
 6226|     48|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6226:13): [True: 0, False: 48]
  ------------------
 6227|      0|          return (nghttp2_ssize)inlen;
 6228|      0|        }
 6229|       |
 6230|     48|        session_inbound_frame_reset(session);
 6231|       |
 6232|     48|        break;
 6233|    297|      case NGHTTP2_PUSH_PROMISE:
  ------------------
  |  Branch (6233:7): [True: 297, False: 1.76k]
  ------------------
 6234|    297|        if (iframe->padlen == 0 &&
  ------------------
  |  Branch (6234:13): [True: 255, False: 42]
  ------------------
 6235|    255|            (iframe->frame.hd.flags & NGHTTP2_FLAG_PADDED)) {
  ------------------
  |  Branch (6235:13): [True: 45, False: 210]
  ------------------
 6236|     45|          padlen = inbound_frame_compute_pad(iframe);
 6237|     45|          if (padlen < 0 || (size_t)padlen + 4 /* promised stream id */
  ------------------
  |  Branch (6237:15): [True: 1, False: 44]
  |  Branch (6237:29): [True: 1, False: 43]
  ------------------
 6238|     44|                              > 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|     43|          iframe->frame.push_promise.padlen = (size_t)padlen;
 6248|       |
 6249|     43|          if (iframe->payloadleft < 4) {
  ------------------
  |  Branch (6249:15): [True: 0, False: 43]
  ------------------
 6250|      0|            busy = 1;
 6251|      0|            iframe->state = NGHTTP2_IB_FRAME_SIZE_ERROR;
 6252|      0|            break;
 6253|      0|          }
 6254|       |
 6255|     43|          iframe->state = NGHTTP2_IB_READ_NBYTE;
 6256|       |
 6257|     43|          inbound_frame_set_mark(iframe, 4);
 6258|       |
 6259|     43|          break;
 6260|     43|        }
 6261|       |
 6262|    252|        rv = session_process_push_promise_frame(session);
 6263|    252|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6263:13): [True: 37, False: 215]
  ------------------
 6264|     37|          return rv;
 6265|     37|        }
 6266|       |
 6267|    215|        busy = 1;
 6268|       |
 6269|    215|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6269:13): [True: 10, False: 205]
  ------------------
 6270|     10|          return (nghttp2_ssize)inlen;
 6271|     10|        }
 6272|       |
 6273|    205|        if (rv == NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE) {
  ------------------
  |  Branch (6273:13): [True: 0, False: 205]
  ------------------
 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|    205|        if (rv == NGHTTP2_ERR_IGN_HEADER_BLOCK) {
  ------------------
  |  Branch (6284:13): [True: 205, False: 0]
  ------------------
 6285|    205|          iframe->state = NGHTTP2_IB_IGN_HEADER_BLOCK;
 6286|    205|          break;
 6287|    205|        }
 6288|       |
 6289|      0|        iframe->state = NGHTTP2_IB_READ_HEADER_BLOCK;
 6290|       |
 6291|      0|        break;
 6292|     62|      case NGHTTP2_PING:
  ------------------
  |  Branch (6292:7): [True: 62, False: 1.99k]
  ------------------
 6293|     62|        rv = session_process_ping_frame(session);
 6294|     62|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6294:13): [True: 3, False: 59]
  ------------------
 6295|      3|          return rv;
 6296|      3|        }
 6297|       |
 6298|     59|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6298:13): [True: 1, False: 58]
  ------------------
 6299|      1|          return (nghttp2_ssize)inlen;
 6300|      1|        }
 6301|       |
 6302|     58|        session_inbound_frame_reset(session);
 6303|       |
 6304|     58|        break;
 6305|    117|      case NGHTTP2_GOAWAY: {
  ------------------
  |  Branch (6305:7): [True: 117, False: 1.94k]
  ------------------
 6306|    117|        size_t debuglen;
 6307|       |
 6308|       |        /* 8 is Last-stream-ID + Error Code */
 6309|    117|        debuglen = iframe->frame.hd.length - 8;
 6310|       |
 6311|    117|        if (debuglen > 0) {
  ------------------
  |  Branch (6311:13): [True: 62, False: 55]
  ------------------
 6312|     62|          iframe->raw_lbuf = nghttp2_mem_malloc(mem, debuglen);
 6313|       |
 6314|     62|          if (iframe->raw_lbuf == NULL) {
  ------------------
  |  Branch (6314:15): [True: 0, False: 62]
  ------------------
 6315|      0|            return NGHTTP2_ERR_NOMEM;
 6316|      0|          }
 6317|       |
 6318|     62|          nghttp2_buf_wrap_init(&iframe->lbuf, iframe->raw_lbuf, debuglen);
 6319|     62|        }
 6320|       |
 6321|    117|        busy = 1;
 6322|       |
 6323|    117|        iframe->state = NGHTTP2_IB_READ_GOAWAY_DEBUG;
 6324|       |
 6325|    117|        break;
 6326|    117|      }
 6327|    191|      case NGHTTP2_WINDOW_UPDATE:
  ------------------
  |  Branch (6327:7): [True: 191, False: 1.86k]
  ------------------
 6328|    191|        rv = session_process_window_update_frame(session);
 6329|    191|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6329:13): [True: 19, False: 172]
  ------------------
 6330|     19|          return rv;
 6331|     19|        }
 6332|       |
 6333|    172|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6333:13): [True: 5, False: 167]
  ------------------
 6334|      5|          return (nghttp2_ssize)inlen;
 6335|      5|        }
 6336|       |
 6337|    167|        session_inbound_frame_reset(session);
 6338|       |
 6339|    167|        break;
 6340|      0|      case NGHTTP2_ALTSVC: {
  ------------------
  |  Branch (6340:7): [True: 0, False: 2.05k]
  ------------------
 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: 2.05k]
  ------------------
 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: 2.05k]
  ------------------
 6388|       |        /* This is unknown frame */
 6389|      0|        session_inbound_frame_reset(session);
 6390|       |
 6391|      0|        break;
 6392|  2.05k|      }
 6393|  1.93k|      break;
 6394|  5.28k|    case NGHTTP2_IB_READ_HEADER_BLOCK:
  ------------------
  |  Branch (6394:5): [True: 5.28k, False: 25.5k]
  ------------------
 6395|  6.08k|    case NGHTTP2_IB_IGN_HEADER_BLOCK: {
  ------------------
  |  Branch (6395:5): [True: 793, False: 30.0k]
  ------------------
 6396|  6.08k|      nghttp2_ssize data_readlen;
 6397|  6.08k|      size_t trail_padlen;
 6398|  6.08k|      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|  6.08k|      readlen = inbound_frame_payload_readlen(iframe, in, last);
 6408|       |
 6409|  6.08k|      DEBUGF("recv: readlen=%zu, payloadleft=%zu\n", readlen,
  ------------------
  |  |   39|  6.08k|    do {                                                                       \
  |  |   40|  6.08k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 6.08k]
  |  |  ------------------
  ------------------
 6410|  6.08k|             iframe->payloadleft - readlen);
 6411|       |
 6412|  6.08k|      data_readlen = inbound_frame_effective_readlen(
 6413|  6.08k|        iframe, iframe->payloadleft - readlen, readlen);
 6414|       |
 6415|  6.08k|      if (data_readlen == -1) {
  ------------------
  |  Branch (6415:11): [True: 30, False: 6.05k]
  ------------------
 6416|       |        /* everything is padding */
 6417|     30|        data_readlen = 0;
 6418|     30|      }
 6419|       |
 6420|  6.08k|      trail_padlen = nghttp2_frame_trail_padlen(&iframe->frame, iframe->padlen);
 6421|       |
 6422|  6.08k|      final = (iframe->frame.hd.flags & NGHTTP2_FLAG_END_HEADERS) &&
  ------------------
  |  Branch (6422:15): [True: 1.04k, False: 5.04k]
  ------------------
 6423|  1.04k|              iframe->payloadleft - (size_t)data_readlen == trail_padlen;
  ------------------
  |  Branch (6423:15): [True: 512, False: 528]
  ------------------
 6424|       |
 6425|  6.08k|      if (data_readlen > 0 || (data_readlen == 0 && final)) {
  ------------------
  |  Branch (6425:11): [True: 5.79k, False: 292]
  |  Branch (6425:32): [True: 292, False: 0]
  |  Branch (6425:53): [True: 169, False: 123]
  ------------------
 6426|  5.95k|        size_t hd_proclen = 0;
 6427|       |
 6428|  5.95k|        DEBUGF("recv: block final=%d\n", final);
  ------------------
  |  |   39|  5.95k|    do {                                                                       \
  |  |   40|  5.95k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 5.95k]
  |  |  ------------------
  ------------------
 6429|       |
 6430|  5.95k|        rv =
 6431|  5.95k|          inflate_header_block(session, &iframe->frame, &hd_proclen,
 6432|  5.95k|                               (uint8_t *)in, (size_t)data_readlen, final,
 6433|  5.95k|                               iframe->state == NGHTTP2_IB_READ_HEADER_BLOCK);
 6434|       |
 6435|  5.95k|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6435:13): [True: 0, False: 5.95k]
  ------------------
 6436|      0|          return rv;
 6437|      0|        }
 6438|       |
 6439|  5.95k|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6439:13): [True: 958, False: 5.00k]
  ------------------
 6440|    958|          return (nghttp2_ssize)inlen;
 6441|    958|        }
 6442|       |
 6443|  5.00k|        if (rv == NGHTTP2_ERR_PAUSE) {
  ------------------
  |  Branch (6443:13): [True: 0, False: 5.00k]
  ------------------
 6444|      0|          in += hd_proclen;
 6445|      0|          iframe->payloadleft -= hd_proclen;
 6446|       |
 6447|      0|          return (nghttp2_ssize)(in - first);
 6448|      0|        }
 6449|       |
 6450|  5.00k|        if (rv == NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE) {
  ------------------
  |  Branch (6450:13): [True: 385, False: 4.61k]
  ------------------
 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|    385|          in += hd_proclen;
 6455|    385|          iframe->payloadleft -= hd_proclen;
 6456|       |
 6457|       |          /* Use promised stream ID for PUSH_PROMISE */
 6458|    385|          rv = session_handle_invalid_stream2(
 6459|    385|            session,
 6460|    385|            iframe->frame.hd.type == NGHTTP2_PUSH_PROMISE
  ------------------
  |  Branch (6460:13): [True: 0, False: 385]
  ------------------
 6461|    385|              ? iframe->frame.push_promise.promised_stream_id
 6462|    385|              : iframe->frame.hd.stream_id,
 6463|    385|            NULL, NGHTTP2_ERR_INTERNAL);
 6464|    385|          if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6464:15): [True: 0, False: 385]
  ------------------
 6465|      0|            return rv;
 6466|      0|          }
 6467|    385|          busy = 1;
 6468|    385|          iframe->state = NGHTTP2_IB_IGN_HEADER_BLOCK;
 6469|    385|          break;
 6470|    385|        }
 6471|       |
 6472|  4.61k|        in += readlen;
 6473|  4.61k|        iframe->payloadleft -= readlen;
 6474|       |
 6475|  4.61k|        if (rv == NGHTTP2_ERR_HEADER_COMP) {
  ------------------
  |  Branch (6475:13): [True: 0, False: 4.61k]
  ------------------
 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|  4.61k|      } else {
 6486|    123|        in += readlen;
 6487|    123|        iframe->payloadleft -= readlen;
 6488|    123|      }
 6489|       |
 6490|  4.73k|      if (iframe->payloadleft) {
  ------------------
  |  Branch (6490:11): [True: 4.19k, False: 547]
  ------------------
 6491|  4.19k|        break;
 6492|  4.19k|      }
 6493|       |
 6494|    547|      if ((iframe->frame.hd.flags & NGHTTP2_FLAG_END_HEADERS) == 0) {
  ------------------
  |  Branch (6494:11): [True: 91, False: 456]
  ------------------
 6495|     91|        inbound_frame_set_mark(iframe, NGHTTP2_FRAME_HDLEN);
  ------------------
  |  |   40|     91|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
 6496|       |
 6497|     91|        iframe->padlen = 0;
 6498|       |
 6499|     91|        if (iframe->state == NGHTTP2_IB_READ_HEADER_BLOCK) {
  ------------------
  |  Branch (6499:13): [True: 59, False: 32]
  ------------------
 6500|     59|          iframe->state = NGHTTP2_IB_EXPECT_CONTINUATION;
 6501|     59|        } else {
 6502|     32|          iframe->state = NGHTTP2_IB_IGN_CONTINUATION;
 6503|     32|        }
 6504|    456|      } else {
 6505|    456|        if (iframe->state == NGHTTP2_IB_READ_HEADER_BLOCK) {
  ------------------
  |  Branch (6505:13): [True: 275, False: 181]
  ------------------
 6506|    275|          rv = session_after_header_block_received(session);
 6507|    275|          if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6507:15): [True: 0, False: 275]
  ------------------
 6508|      0|            return rv;
 6509|      0|          }
 6510|       |
 6511|    275|          if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6511:15): [True: 0, False: 275]
  ------------------
 6512|      0|            return (nghttp2_ssize)inlen;
 6513|      0|          }
 6514|    275|        }
 6515|    456|        session_inbound_frame_reset(session);
 6516|       |
 6517|    456|        session->num_continuations = 0;
 6518|    456|      }
 6519|    547|      break;
 6520|    547|    }
 6521|    547|    case NGHTTP2_IB_IGN_PAYLOAD:
  ------------------
  |  Branch (6521:5): [True: 459, False: 30.4k]
  ------------------
 6522|    459|      DEBUGF("recv: [IB_IGN_PAYLOAD]\n");
  ------------------
  |  |   39|    459|    do {                                                                       \
  |  |   40|    459|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 459]
  |  |  ------------------
  ------------------
 6523|       |
 6524|    459|      readlen = inbound_frame_payload_readlen(iframe, in, last);
 6525|    459|      iframe->payloadleft -= readlen;
 6526|    459|      in += readlen;
 6527|       |
 6528|    459|      DEBUGF("recv: readlen=%zu, payloadleft=%zu\n", readlen,
  ------------------
  |  |   39|    459|    do {                                                                       \
  |  |   40|    459|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 459]
  |  |  ------------------
  ------------------
 6529|    459|             iframe->payloadleft);
 6530|       |
 6531|    459|      if (iframe->payloadleft) {
  ------------------
  |  Branch (6531:11): [True: 167, False: 292]
  ------------------
 6532|    167|        break;
 6533|    167|      }
 6534|       |
 6535|    292|      switch (iframe->frame.hd.type) {
 6536|      0|      case NGHTTP2_HEADERS:
  ------------------
  |  Branch (6536:7): [True: 0, False: 292]
  ------------------
 6537|      0|      case NGHTTP2_PUSH_PROMISE:
  ------------------
  |  Branch (6537:7): [True: 0, False: 292]
  ------------------
 6538|      0|      case NGHTTP2_CONTINUATION:
  ------------------
  |  Branch (6538:7): [True: 0, False: 292]
  ------------------
 6539|       |        /* Mark inflater bad so that we won't perform further decoding */
 6540|      0|        session->hd_inflater.ctx.bad = 1;
 6541|      0|        break;
 6542|    292|      default:
  ------------------
  |  Branch (6542:7): [True: 292, False: 0]
  ------------------
 6543|    292|        break;
 6544|    292|      }
 6545|       |
 6546|    292|      session_inbound_frame_reset(session);
 6547|       |
 6548|    292|      break;
 6549|     23|    case NGHTTP2_IB_FRAME_SIZE_ERROR:
  ------------------
  |  Branch (6549:5): [True: 23, False: 30.8k]
  ------------------
 6550|     23|      DEBUGF("recv: [IB_FRAME_SIZE_ERROR]\n");
  ------------------
  |  |   39|     23|    do {                                                                       \
  |  |   40|     23|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 23]
  |  |  ------------------
  ------------------
 6551|       |
 6552|     23|      rv = session_handle_frame_size_error(session);
 6553|     23|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6553:11): [True: 0, False: 23]
  ------------------
 6554|      0|        return rv;
 6555|      0|      }
 6556|       |
 6557|     23|      assert(iframe->state == NGHTTP2_IB_IGN_ALL);
  ------------------
  |  Branch (6557:7): [True: 0, False: 23]
  |  Branch (6557:7): [True: 23, False: 0]
  ------------------
 6558|       |
 6559|     23|      return (nghttp2_ssize)inlen;
 6560|  10.2k|    case NGHTTP2_IB_READ_SETTINGS:
  ------------------
  |  Branch (6560:5): [True: 10.2k, False: 20.6k]
  ------------------
 6561|  10.2k|      DEBUGF("recv: [IB_READ_SETTINGS]\n");
  ------------------
  |  |   39|  10.2k|    do {                                                                       \
  |  |   40|  10.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 10.2k]
  |  |  ------------------
  ------------------
 6562|       |
 6563|  10.2k|      readlen = inbound_frame_buf_read(iframe, in, last);
 6564|  10.2k|      iframe->payloadleft -= readlen;
 6565|  10.2k|      in += readlen;
 6566|       |
 6567|  10.2k|      DEBUGF("recv: readlen=%zu, payloadleft=%zu\n", readlen,
  ------------------
  |  |   39|  10.2k|    do {                                                                       \
  |  |   40|  10.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 10.2k]
  |  |  ------------------
  ------------------
 6568|  10.2k|             iframe->payloadleft);
 6569|       |
 6570|  10.2k|      if (nghttp2_buf_mark_avail(&iframe->sbuf)) {
  ------------------
  |  |   56|  10.2k|#define nghttp2_buf_mark_avail(BUF) ((size_t)((BUF)->mark - (BUF)->last))
  |  |  ------------------
  |  |  |  Branch (56:37): [True: 1.46k, False: 8.80k]
  |  |  ------------------
  ------------------
 6571|  1.46k|        break;
 6572|  1.46k|      }
 6573|       |
 6574|  8.80k|      if (readlen > 0) {
  ------------------
  |  Branch (6574:11): [True: 5.51k, False: 3.28k]
  ------------------
 6575|  5.51k|        inbound_frame_set_settings_entry(iframe);
 6576|  5.51k|      }
 6577|  8.80k|      if (iframe->payloadleft) {
  ------------------
  |  Branch (6577:11): [True: 4.36k, False: 4.43k]
  ------------------
 6578|  4.36k|        inbound_frame_set_mark(iframe, NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH);
  ------------------
  |  |   61|  4.36k|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
 6579|  4.36k|        break;
 6580|  4.36k|      }
 6581|       |
 6582|  4.43k|      rv = session_process_settings_frame(session);
 6583|       |
 6584|  4.43k|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6584:11): [True: 208, False: 4.22k]
  ------------------
 6585|    208|        return rv;
 6586|    208|      }
 6587|       |
 6588|  4.22k|      if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6588:11): [True: 5, False: 4.22k]
  ------------------
 6589|      5|        return (nghttp2_ssize)inlen;
 6590|      5|      }
 6591|       |
 6592|  4.22k|      session_inbound_frame_reset(session);
 6593|       |
 6594|  4.22k|      break;
 6595|    202|    case NGHTTP2_IB_READ_GOAWAY_DEBUG:
  ------------------
  |  Branch (6595:5): [True: 202, False: 30.6k]
  ------------------
 6596|    202|      DEBUGF("recv: [IB_READ_GOAWAY_DEBUG]\n");
  ------------------
  |  |   39|    202|    do {                                                                       \
  |  |   40|    202|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 202]
  |  |  ------------------
  ------------------
 6597|       |
 6598|    202|      readlen = inbound_frame_payload_readlen(iframe, in, last);
 6599|       |
 6600|    202|      if (readlen > 0) {
  ------------------
  |  Branch (6600:11): [True: 138, False: 64]
  ------------------
 6601|    138|        iframe->lbuf.last = nghttp2_cpymem(iframe->lbuf.last, in, readlen);
 6602|       |
 6603|    138|        iframe->payloadleft -= readlen;
 6604|    138|        in += readlen;
 6605|    138|      }
 6606|       |
 6607|    202|      DEBUGF("recv: readlen=%zu, payloadleft=%zu\n", readlen,
  ------------------
  |  |   39|    202|    do {                                                                       \
  |  |   40|    202|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 202]
  |  |  ------------------
  ------------------
 6608|    202|             iframe->payloadleft);
 6609|       |
 6610|    202|      if (iframe->payloadleft) {
  ------------------
  |  Branch (6610:11): [True: 96, False: 106]
  ------------------
 6611|     96|        assert(nghttp2_buf_avail(&iframe->lbuf) > 0);
  ------------------
  |  Branch (6611:9): [True: 0, False: 96]
  |  Branch (6611:9): [True: 96, False: 0]
  ------------------
 6612|       |
 6613|     96|        break;
 6614|     96|      }
 6615|       |
 6616|    106|      rv = session_process_goaway_frame(session);
 6617|       |
 6618|    106|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6618:11): [True: 6, False: 100]
  ------------------
 6619|      6|        return rv;
 6620|      6|      }
 6621|       |
 6622|    100|      if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6622:11): [True: 4, False: 96]
  ------------------
 6623|      4|        return (nghttp2_ssize)inlen;
 6624|      4|      }
 6625|       |
 6626|     96|      session_inbound_frame_reset(session);
 6627|       |
 6628|     96|      break;
 6629|     88|    case NGHTTP2_IB_EXPECT_CONTINUATION:
  ------------------
  |  Branch (6629:5): [True: 88, False: 30.7k]
  ------------------
 6630|    132|    case NGHTTP2_IB_IGN_CONTINUATION:
  ------------------
  |  Branch (6630:5): [True: 44, False: 30.8k]
  ------------------
 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|    132|      if (++session->num_continuations > session->max_continuations) {
  ------------------
  |  Branch (6639:11): [True: 1, False: 131]
  ------------------
 6640|      1|        return NGHTTP2_ERR_TOO_MANY_CONTINUATIONS;
 6641|      1|      }
 6642|       |
 6643|    131|      readlen = inbound_frame_buf_read(iframe, in, last);
 6644|    131|      in += readlen;
 6645|       |
 6646|    131|      if (nghttp2_buf_mark_avail(&iframe->sbuf)) {
  ------------------
  |  |   56|    131|#define nghttp2_buf_mark_avail(BUF) ((size_t)((BUF)->mark - (BUF)->last))
  |  |  ------------------
  |  |  |  Branch (56:37): [True: 78, False: 53]
  |  |  ------------------
  ------------------
 6647|     78|        return (nghttp2_ssize)(in - first);
 6648|     78|      }
 6649|       |
 6650|     53|      nghttp2_frame_unpack_frame_hd(&cont_hd, iframe->sbuf.pos);
 6651|     53|      iframe->payloadleft = cont_hd.length;
 6652|       |
 6653|     53|      DEBUGF("recv: payloadlen=%zu, type=%u, flags=0x%02x, stream_id=%d\n",
  ------------------
  |  |   39|     53|    do {                                                                       \
  |  |   40|     53|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 53]
  |  |  ------------------
  ------------------
 6654|     53|             cont_hd.length, cont_hd.type, cont_hd.flags, cont_hd.stream_id);
 6655|       |
 6656|     53|      if (cont_hd.type != NGHTTP2_CONTINUATION ||
  ------------------
  |  Branch (6656:11): [True: 32, False: 21]
  ------------------
 6657|     41|          cont_hd.stream_id != iframe->frame.hd.stream_id) {
  ------------------
  |  Branch (6657:11): [True: 9, False: 12]
  ------------------
 6658|     41|        DEBUGF("recv: expected stream_id=%d, type=%d, but got stream_id=%d, "
  ------------------
  |  |   39|     41|    do {                                                                       \
  |  |   40|     41|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 41]
  |  |  ------------------
  ------------------
 6659|     41|               "type=%u\n",
 6660|     41|               iframe->frame.hd.stream_id, NGHTTP2_CONTINUATION,
 6661|     41|               cont_hd.stream_id, cont_hd.type);
 6662|     41|        rv = nghttp2_session_terminate_session_with_reason(
 6663|     41|          session, NGHTTP2_PROTOCOL_ERROR,
 6664|     41|          "unexpected non-CONTINUATION frame or stream_id is invalid");
 6665|     41|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6665:13): [True: 0, False: 41]
  ------------------
 6666|      0|          return rv;
 6667|      0|        }
 6668|       |
 6669|     41|        return (nghttp2_ssize)inlen;
 6670|     41|      }
 6671|       |
 6672|       |      /* CONTINUATION won't bear NGHTTP2_PADDED flag */
 6673|       |
 6674|     12|      iframe->frame.hd.flags =
 6675|     12|        (uint8_t)(iframe->frame.hd.flags |
 6676|     12|                  (cont_hd.flags & NGHTTP2_FLAG_END_HEADERS));
 6677|     12|      iframe->frame.hd.length += cont_hd.length;
 6678|       |
 6679|     12|      busy = 1;
 6680|       |
 6681|     12|      if (iframe->state == NGHTTP2_IB_EXPECT_CONTINUATION) {
  ------------------
  |  Branch (6681:11): [True: 11, False: 1]
  ------------------
 6682|     11|        iframe->state = NGHTTP2_IB_READ_HEADER_BLOCK;
 6683|       |
 6684|     11|        rv = session_call_on_begin_frame(session, &cont_hd);
 6685|       |
 6686|     11|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6686:13): [True: 0, False: 11]
  ------------------
 6687|      0|          return rv;
 6688|      0|        }
 6689|       |
 6690|     11|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6690:13): [True: 0, False: 11]
  ------------------
 6691|      0|          return (nghttp2_ssize)inlen;
 6692|      0|        }
 6693|     11|      } else {
 6694|      1|        iframe->state = NGHTTP2_IB_IGN_HEADER_BLOCK;
 6695|      1|      }
 6696|       |
 6697|     12|      break;
 6698|     48|    case NGHTTP2_IB_READ_PAD_DATA:
  ------------------
  |  Branch (6698:5): [True: 48, False: 30.8k]
  ------------------
 6699|     48|      DEBUGF("recv: [IB_READ_PAD_DATA]\n");
  ------------------
  |  |   39|     48|    do {                                                                       \
  |  |   40|     48|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 48]
  |  |  ------------------
  ------------------
 6700|       |
 6701|     48|      readlen = inbound_frame_buf_read(iframe, in, last);
 6702|     48|      in += readlen;
 6703|     48|      iframe->payloadleft -= readlen;
 6704|       |
 6705|     48|      DEBUGF("recv: readlen=%zu, payloadleft=%zu, left=%zu\n", readlen,
  ------------------
  |  |   39|     48|    do {                                                                       \
  |  |   40|     48|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 48]
  |  |  ------------------
  ------------------
 6706|     48|             iframe->payloadleft, nghttp2_buf_mark_avail(&iframe->sbuf));
 6707|       |
 6708|     48|      if (nghttp2_buf_mark_avail(&iframe->sbuf)) {
  ------------------
  |  |   56|     48|#define nghttp2_buf_mark_avail(BUF) ((size_t)((BUF)->mark - (BUF)->last))
  |  |  ------------------
  |  |  |  Branch (56:37): [True: 0, False: 48]
  |  |  ------------------
  ------------------
 6709|      0|        return (nghttp2_ssize)(in - first);
 6710|      0|      }
 6711|       |
 6712|       |      /* Pad Length field is subject to flow control */
 6713|     48|      rv = nghttp2_session_update_recv_connection_window_size(session, readlen);
 6714|     48|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6714:11): [True: 0, False: 48]
  ------------------
 6715|      0|        return rv;
 6716|      0|      }
 6717|       |
 6718|     48|      if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6718:11): [True: 0, False: 48]
  ------------------
 6719|      0|        return (nghttp2_ssize)inlen;
 6720|      0|      }
 6721|       |
 6722|       |      /* Pad Length field is consumed immediately */
 6723|     48|      rv =
 6724|     48|        nghttp2_session_consume(session, iframe->frame.hd.stream_id, readlen);
 6725|       |
 6726|     48|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6726:11): [True: 0, False: 48]
  ------------------
 6727|      0|        return rv;
 6728|      0|      }
 6729|       |
 6730|     48|      if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6730:11): [True: 0, False: 48]
  ------------------
 6731|      0|        return (nghttp2_ssize)inlen;
 6732|      0|      }
 6733|       |
 6734|     48|      stream = nghttp2_session_get_stream(session, iframe->frame.hd.stream_id);
 6735|     48|      if (stream) {
  ------------------
  |  Branch (6735:11): [True: 48, False: 0]
  ------------------
 6736|     48|        rv = nghttp2_session_update_recv_stream_window_size(
 6737|     48|          session, stream, readlen,
 6738|     48|          iframe->payloadleft ||
  ------------------
  |  Branch (6738:11): [True: 44, False: 4]
  ------------------
 6739|      4|            (iframe->frame.hd.flags & NGHTTP2_FLAG_END_STREAM) == 0);
  ------------------
  |  Branch (6739:13): [True: 3, False: 1]
  ------------------
 6740|     48|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6740:13): [True: 0, False: 48]
  ------------------
 6741|      0|          return rv;
 6742|      0|        }
 6743|       |
 6744|     48|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6744:13): [True: 0, False: 48]
  ------------------
 6745|      0|          return (nghttp2_ssize)inlen;
 6746|      0|        }
 6747|     48|      }
 6748|       |
 6749|     48|      busy = 1;
 6750|       |
 6751|     48|      padlen = inbound_frame_compute_pad(iframe);
 6752|     48|      if (padlen < 0) {
  ------------------
  |  Branch (6752:11): [True: 1, False: 47]
  ------------------
 6753|      1|        rv = nghttp2_session_terminate_session_with_reason(
 6754|      1|          session, NGHTTP2_PROTOCOL_ERROR, "DATA: invalid padding");
 6755|      1|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6755:13): [True: 0, False: 1]
  ------------------
 6756|      0|          return rv;
 6757|      0|        }
 6758|      1|        return (nghttp2_ssize)inlen;
 6759|      1|      }
 6760|       |
 6761|     47|      iframe->frame.data.padlen = (size_t)padlen;
 6762|       |
 6763|       |      /* Empty DATA frame without END_STREAM flag set is
 6764|       |         suspicious. */
 6765|     47|      if (iframe->payloadleft == 0 &&
  ------------------
  |  Branch (6765:11): [True: 4, False: 43]
  ------------------
 6766|      4|          (iframe->frame.hd.flags & NGHTTP2_FLAG_END_STREAM) == 0) {
  ------------------
  |  Branch (6766:11): [True: 3, False: 1]
  ------------------
 6767|      3|        rv = session_update_glitch_ratelim(session);
 6768|      3|        if (rv != 0) {
  ------------------
  |  Branch (6768:13): [True: 0, False: 3]
  ------------------
 6769|      0|          return rv;
 6770|      0|        }
 6771|       |
 6772|      3|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6772:13): [True: 0, False: 3]
  ------------------
 6773|      0|          return (nghttp2_ssize)inlen;
 6774|      0|        }
 6775|      3|      }
 6776|       |
 6777|     47|      iframe->state = NGHTTP2_IB_READ_DATA;
 6778|       |
 6779|     47|      break;
 6780|    537|    case NGHTTP2_IB_READ_DATA:
  ------------------
  |  Branch (6780:5): [True: 537, False: 30.3k]
  ------------------
 6781|    537|      stream = nghttp2_session_get_stream(session, iframe->frame.hd.stream_id);
 6782|       |
 6783|    537|      if (!stream) {
  ------------------
  |  Branch (6783:11): [True: 0, False: 537]
  ------------------
 6784|      0|        busy = 1;
 6785|      0|        iframe->state = NGHTTP2_IB_IGN_DATA;
 6786|      0|        break;
 6787|      0|      }
 6788|       |
 6789|    537|      DEBUGF("recv: [IB_READ_DATA]\n");
  ------------------
  |  |   39|    537|    do {                                                                       \
  |  |   40|    537|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 537]
  |  |  ------------------
  ------------------
 6790|       |
 6791|    537|      readlen = inbound_frame_payload_readlen(iframe, in, last);
 6792|    537|      iframe->payloadleft -= readlen;
 6793|    537|      in += readlen;
 6794|       |
 6795|    537|      DEBUGF("recv: readlen=%zu, payloadleft=%zu\n", readlen,
  ------------------
  |  |   39|    537|    do {                                                                       \
  |  |   40|    537|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 537]
  |  |  ------------------
  ------------------
 6796|    537|             iframe->payloadleft);
 6797|       |
 6798|    537|      if (readlen > 0) {
  ------------------
  |  Branch (6798:11): [True: 528, False: 9]
  ------------------
 6799|    528|        nghttp2_ssize data_readlen;
 6800|       |
 6801|    528|        rv =
 6802|    528|          nghttp2_session_update_recv_connection_window_size(session, readlen);
 6803|    528|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6803:13): [True: 0, False: 528]
  ------------------
 6804|      0|          return rv;
 6805|      0|        }
 6806|       |
 6807|    528|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6807:13): [True: 0, False: 528]
  ------------------
 6808|      0|          return (nghttp2_ssize)inlen;
 6809|      0|        }
 6810|       |
 6811|    528|        rv = nghttp2_session_update_recv_stream_window_size(
 6812|    528|          session, stream, readlen,
 6813|    528|          iframe->payloadleft ||
  ------------------
  |  Branch (6813:11): [True: 469, False: 59]
  ------------------
 6814|     59|            (iframe->frame.hd.flags & NGHTTP2_FLAG_END_STREAM) == 0);
  ------------------
  |  Branch (6814:13): [True: 42, False: 17]
  ------------------
 6815|    528|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6815:13): [True: 0, False: 528]
  ------------------
 6816|      0|          return rv;
 6817|      0|        }
 6818|       |
 6819|    528|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6819:13): [True: 0, False: 528]
  ------------------
 6820|      0|          return (nghttp2_ssize)inlen;
 6821|      0|        }
 6822|       |
 6823|    528|        data_readlen =
 6824|    528|          inbound_frame_effective_readlen(iframe, iframe->payloadleft, readlen);
 6825|       |
 6826|    528|        if (data_readlen == -1) {
  ------------------
  |  Branch (6826:13): [True: 110, False: 418]
  ------------------
 6827|       |          /* everything is padding */
 6828|    110|          data_readlen = 0;
 6829|    110|        }
 6830|       |
 6831|    528|        padlen = (nghttp2_ssize)readlen - data_readlen;
 6832|       |
 6833|    528|        if (padlen > 0) {
  ------------------
  |  Branch (6833:13): [True: 142, False: 386]
  ------------------
 6834|       |          /* Padding is considered as "consumed" immediately */
 6835|    142|          rv = nghttp2_session_consume(session, iframe->frame.hd.stream_id,
 6836|    142|                                       (size_t)padlen);
 6837|       |
 6838|    142|          if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6838:15): [True: 0, False: 142]
  ------------------
 6839|      0|            return rv;
 6840|      0|          }
 6841|       |
 6842|    142|          if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6842:15): [True: 0, False: 142]
  ------------------
 6843|      0|            return (nghttp2_ssize)inlen;
 6844|      0|          }
 6845|    142|        }
 6846|       |
 6847|    528|        DEBUGF("recv: data_readlen=%td\n", data_readlen);
  ------------------
  |  |   39|    528|    do {                                                                       \
  |  |   40|    528|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 528]
  |  |  ------------------
  ------------------
 6848|       |
 6849|    528|        if (data_readlen > 0) {
  ------------------
  |  Branch (6849:13): [True: 393, False: 135]
  ------------------
 6850|    393|          if (session_enforce_http_messaging(session)) {
  ------------------
  |  Branch (6850:15): [True: 393, False: 0]
  ------------------
 6851|    393|            if (nghttp2_http_on_data_chunk(stream, (size_t)data_readlen) != 0) {
  ------------------
  |  Branch (6851:17): [True: 4, False: 389]
  ------------------
 6852|      4|              if (session->opt_flags & NGHTTP2_OPTMASK_NO_AUTO_WINDOW_UPDATE) {
  ------------------
  |  Branch (6852:19): [True: 4, False: 0]
  ------------------
 6853|       |                /* Consume all data for connection immediately here */
 6854|      4|                rv = session_update_connection_consumed_size(
 6855|      4|                  session, (size_t)data_readlen);
 6856|       |
 6857|      4|                if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6857:21): [True: 0, False: 4]
  ------------------
 6858|      0|                  return rv;
 6859|      0|                }
 6860|       |
 6861|      4|                if (iframe->state == NGHTTP2_IB_IGN_DATA) {
  ------------------
  |  Branch (6861:21): [True: 0, False: 4]
  ------------------
 6862|      0|                  return (nghttp2_ssize)inlen;
 6863|      0|                }
 6864|      4|              }
 6865|       |
 6866|      4|              rv = session_handle_invalid_stream2(
 6867|      4|                session, iframe->frame.hd.stream_id, &iframe->frame,
 6868|      4|                NGHTTP2_ERR_PROTO);
 6869|      4|              if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6869:19): [True: 0, False: 4]
  ------------------
 6870|      0|                return rv;
 6871|      0|              }
 6872|       |
 6873|      4|              rv = session_update_glitch_ratelim(session);
 6874|      4|              if (rv != 0) {
  ------------------
  |  Branch (6874:19): [True: 0, False: 4]
  ------------------
 6875|      0|                return rv;
 6876|      0|              }
 6877|       |
 6878|      4|              if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6878:19): [True: 0, False: 4]
  ------------------
 6879|      0|                return (nghttp2_ssize)inlen;
 6880|      0|              }
 6881|       |
 6882|      4|              busy = 1;
 6883|      4|              iframe->state = NGHTTP2_IB_IGN_DATA;
 6884|       |
 6885|      4|              break;
 6886|      4|            }
 6887|    393|          }
 6888|    389|          if (session->callbacks.on_data_chunk_recv_callback) {
  ------------------
  |  Branch (6888:15): [True: 389, False: 0]
  ------------------
 6889|    389|            rv = session->callbacks.on_data_chunk_recv_callback(
 6890|    389|              session, iframe->frame.hd.flags, iframe->frame.hd.stream_id,
 6891|    389|              in - readlen, (size_t)data_readlen, session->user_data);
 6892|    389|            if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6892:17): [True: 0, False: 389]
  ------------------
 6893|      0|              return NGHTTP2_ERR_CALLBACK_FAILURE;
 6894|      0|            }
 6895|       |
 6896|    389|            if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6896:17): [True: 0, False: 389]
  ------------------
 6897|      0|              return (nghttp2_ssize)inlen;
 6898|      0|            }
 6899|       |
 6900|    389|            if (rv == NGHTTP2_ERR_PAUSE) {
  ------------------
  |  Branch (6900:17): [True: 0, False: 389]
  ------------------
 6901|      0|              return (nghttp2_ssize)(in - first);
 6902|      0|            }
 6903|    389|          }
 6904|    389|        }
 6905|    528|      }
 6906|       |
 6907|    533|      if (iframe->payloadleft) {
  ------------------
  |  Branch (6907:11): [True: 465, False: 68]
  ------------------
 6908|    465|        break;
 6909|    465|      }
 6910|       |
 6911|     68|      rv = session_process_data_frame(session);
 6912|     68|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6912:11): [True: 0, False: 68]
  ------------------
 6913|      0|        return rv;
 6914|      0|      }
 6915|       |
 6916|     68|      if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6916:11): [True: 0, False: 68]
  ------------------
 6917|      0|        return (nghttp2_ssize)inlen;
 6918|      0|      }
 6919|       |
 6920|     68|      session_inbound_frame_reset(session);
 6921|       |
 6922|     68|      break;
 6923|    166|    case NGHTTP2_IB_IGN_DATA:
  ------------------
  |  Branch (6923:5): [True: 166, False: 30.7k]
  ------------------
 6924|    166|      DEBUGF("recv: [IB_IGN_DATA]\n");
  ------------------
  |  |   39|    166|    do {                                                                       \
  |  |   40|    166|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 166]
  |  |  ------------------
  ------------------
 6925|       |
 6926|    166|      readlen = inbound_frame_payload_readlen(iframe, in, last);
 6927|    166|      iframe->payloadleft -= readlen;
 6928|    166|      in += readlen;
 6929|       |
 6930|    166|      DEBUGF("recv: readlen=%zu, payloadleft=%zu\n", readlen,
  ------------------
  |  |   39|    166|    do {                                                                       \
  |  |   40|    166|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 166]
  |  |  ------------------
  ------------------
 6931|    166|             iframe->payloadleft);
 6932|       |
 6933|    166|      if (readlen > 0) {
  ------------------
  |  Branch (6933:11): [True: 40, False: 126]
  ------------------
 6934|       |        /* Update connection-level flow control window for ignored
 6935|       |           DATA frame too */
 6936|     40|        rv =
 6937|     40|          nghttp2_session_update_recv_connection_window_size(session, readlen);
 6938|     40|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6938:13): [True: 0, False: 40]
  ------------------
 6939|      0|          return rv;
 6940|      0|        }
 6941|       |
 6942|     40|        if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6942:13): [True: 0, False: 40]
  ------------------
 6943|      0|          return (nghttp2_ssize)inlen;
 6944|      0|        }
 6945|       |
 6946|     40|        if (session->opt_flags & NGHTTP2_OPTMASK_NO_AUTO_WINDOW_UPDATE) {
  ------------------
  |  Branch (6946:13): [True: 40, False: 0]
  ------------------
 6947|       |          /* Ignored DATA is considered as "consumed" immediately. */
 6948|     40|          rv = session_update_connection_consumed_size(session, readlen);
 6949|       |
 6950|     40|          if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (6950:15): [True: 0, False: 40]
  ------------------
 6951|      0|            return rv;
 6952|      0|          }
 6953|       |
 6954|     40|          if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (6954:15): [True: 0, False: 40]
  ------------------
 6955|      0|            return (nghttp2_ssize)inlen;
 6956|      0|          }
 6957|     40|        }
 6958|     40|      }
 6959|       |
 6960|    166|      if (iframe->payloadleft) {
  ------------------
  |  Branch (6960:11): [True: 31, False: 135]
  ------------------
 6961|     31|        break;
 6962|     31|      }
 6963|       |
 6964|    135|      session_inbound_frame_reset(session);
 6965|       |
 6966|    135|      break;
 6967|    174|    case NGHTTP2_IB_IGN_ALL:
  ------------------
  |  Branch (6967:5): [True: 174, False: 30.6k]
  ------------------
 6968|    174|      return (nghttp2_ssize)inlen;
 6969|      0|    case NGHTTP2_IB_READ_EXTENSION_PAYLOAD:
  ------------------
  |  Branch (6969:5): [True: 0, False: 30.8k]
  ------------------
 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: 30.8k]
  ------------------
 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: 30.8k]
  ------------------
 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|  30.8k|    }
 7082|       |
 7083|  26.6k|    if (!busy && in == last) {
  ------------------
  |  Branch (7083:9): [True: 19.7k, False: 6.95k]
  |  Branch (7083:18): [True: 8.01k, False: 11.6k]
  ------------------
 7084|  8.01k|      break;
 7085|  8.01k|    }
 7086|       |
 7087|  18.6k|    busy = 0;
 7088|  18.6k|  }
 7089|       |
 7090|  12.2k|  assert(in == last);
  ------------------
  |  Branch (7090:3): [True: 0, False: 8.01k]
  |  Branch (7090:3): [True: 8.01k, False: 0]
  ------------------
 7091|       |
 7092|  8.01k|  return (nghttp2_ssize)(in - first);
 7093|  8.01k|}
nghttp2_session_want_read:
 7126|  71.0k|int nghttp2_session_want_read(nghttp2_session *session) {
 7127|  71.0k|  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|  71.0k|  if (session->goaway_flags & NGHTTP2_GOAWAY_TERM_SENT) {
  ------------------
  |  Branch (7131:7): [True: 348, False: 70.6k]
  ------------------
 7132|    348|    return 0;
 7133|    348|  }
 7134|       |
 7135|  70.6k|  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|  70.6k|  if (num_active_streams > 0) {
  ------------------
  |  Branch (7140:7): [True: 59.3k, False: 11.2k]
  ------------------
 7141|  59.3k|    return 1;
 7142|  59.3k|  }
 7143|       |
 7144|       |  /* If there is no active streams and GOAWAY has been sent or
 7145|       |     received, we are done with this session. */
 7146|  11.2k|  return (session->goaway_flags &
 7147|  11.2k|          (NGHTTP2_GOAWAY_SENT | NGHTTP2_GOAWAY_RECV)) == 0;
 7148|  70.6k|}
nghttp2_session_want_write:
 7150|  53.0k|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|  53.0k|  if (session->goaway_flags & NGHTTP2_GOAWAY_TERM_SENT) {
  ------------------
  |  Branch (7153:7): [True: 2.27k, False: 50.7k]
  ------------------
 7154|  2.27k|    return 0;
 7155|  2.27k|  }
 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|  50.7k|  return session->aob.item || nghttp2_outbound_queue_top(&session->ob_urgent) ||
  ------------------
  |  |  192|  99.3k|#define nghttp2_outbound_queue_top(Q) ((Q)->head)
  |  |  ------------------
  |  |  |  Branch (192:39): [True: 8.22k, False: 40.3k]
  |  |  ------------------
  ------------------
  |  Branch (7163:10): [True: 2.15k, False: 48.5k]
  ------------------
 7164|  40.3k|         nghttp2_outbound_queue_top(&session->ob_reg) ||
  ------------------
  |  |  192|  91.1k|#define nghttp2_outbound_queue_top(Q) ((Q)->head)
  |  |  ------------------
  |  |  |  Branch (192:39): [True: 2.71k, False: 37.6k]
  |  |  ------------------
  ------------------
 7165|  37.6k|         (!session_sched_empty(session) && session->remote_window_size > 0) ||
  ------------------
  |  Branch (7165:11): [True: 140, False: 37.5k]
  |  Branch (7165:44): [True: 140, False: 0]
  ------------------
 7166|  37.5k|         (nghttp2_outbound_queue_top(&session->ob_syn) &&
  ------------------
  |  |  192|  75.0k|#define nghttp2_outbound_queue_top(Q) ((Q)->head)
  |  |  ------------------
  |  |  |  Branch (192:39): [True: 4.38k, False: 33.1k]
  |  |  ------------------
  ------------------
 7167|  4.38k|          !session_is_outgoing_concurrent_streams_max(session));
  ------------------
  |  Branch (7167:11): [True: 4.38k, False: 0]
  ------------------
 7168|  53.0k|}
nghttp2_session_add_ping:
 7171|     36|                             const uint8_t *opaque_data) {
 7172|     36|  int rv;
 7173|     36|  nghttp2_outbound_item *item;
 7174|     36|  nghttp2_frame *frame;
 7175|     36|  nghttp2_mem *mem;
 7176|       |
 7177|     36|  mem = &session->mem;
 7178|       |
 7179|     36|  if ((flags & NGHTTP2_FLAG_ACK) &&
  ------------------
  |  Branch (7179:7): [True: 36, False: 0]
  ------------------
 7180|     36|      session->obq_flood_counter_ >= session->max_outbound_ack) {
  ------------------
  |  Branch (7180:7): [True: 0, False: 36]
  ------------------
 7181|      0|    return NGHTTP2_ERR_FLOODED;
 7182|      0|  }
 7183|       |
 7184|     36|  item = nghttp2_mem_malloc(mem, sizeof(nghttp2_outbound_item));
 7185|     36|  if (item == NULL) {
  ------------------
  |  Branch (7185:7): [True: 0, False: 36]
  ------------------
 7186|      0|    return NGHTTP2_ERR_NOMEM;
 7187|      0|  }
 7188|       |
 7189|     36|  nghttp2_outbound_item_init(item);
 7190|       |
 7191|     36|  frame = &item->frame;
 7192|       |
 7193|     36|  nghttp2_frame_ping_init(&frame->ping, flags, opaque_data);
 7194|       |
 7195|     36|  rv = nghttp2_session_add_item(session, item);
 7196|       |
 7197|     36|  if (rv != 0) {
  ------------------
  |  Branch (7197:7): [True: 0, False: 36]
  ------------------
 7198|      0|    nghttp2_frame_ping_free(&frame->ping);
 7199|      0|    nghttp2_mem_free(mem, item);
 7200|      0|    return rv;
 7201|      0|  }
 7202|       |
 7203|     36|  if (flags & NGHTTP2_FLAG_ACK) {
  ------------------
  |  Branch (7203:7): [True: 36, False: 0]
  ------------------
 7204|     36|    ++session->obq_flood_counter_;
 7205|     36|  }
 7206|       |
 7207|     36|  return 0;
 7208|     36|}
nghttp2_session_add_goaway:
 7212|  2.18k|                               size_t opaque_data_len, uint8_t aux_flags) {
 7213|  2.18k|  int rv;
 7214|  2.18k|  nghttp2_outbound_item *item;
 7215|  2.18k|  nghttp2_frame *frame;
 7216|  2.18k|  uint8_t *opaque_data_copy = NULL;
 7217|  2.18k|  nghttp2_goaway_aux_data *aux_data;
 7218|  2.18k|  nghttp2_mem *mem;
 7219|       |
 7220|  2.18k|  mem = &session->mem;
 7221|       |
 7222|  2.18k|  if (nghttp2_session_is_my_stream_id(session, last_stream_id)) {
  ------------------
  |  Branch (7222:7): [True: 0, False: 2.18k]
  ------------------
 7223|      0|    return NGHTTP2_ERR_INVALID_ARGUMENT;
 7224|      0|  }
 7225|       |
 7226|  2.18k|  if (opaque_data_len) {
  ------------------
  |  Branch (7226:7): [True: 1.20k, False: 981]
  ------------------
 7227|  1.20k|    if (opaque_data_len + 8 > NGHTTP2_MAX_PAYLOADLEN) {
  ------------------
  |  |   45|  1.20k|#define NGHTTP2_MAX_PAYLOADLEN 16384
  ------------------
  |  Branch (7227:9): [True: 0, False: 1.20k]
  ------------------
 7228|      0|      return NGHTTP2_ERR_INVALID_ARGUMENT;
 7229|      0|    }
 7230|  1.20k|    opaque_data_copy = nghttp2_mem_malloc(mem, opaque_data_len);
 7231|  1.20k|    if (opaque_data_copy == NULL) {
  ------------------
  |  Branch (7231:9): [True: 0, False: 1.20k]
  ------------------
 7232|      0|      return NGHTTP2_ERR_NOMEM;
 7233|      0|    }
 7234|  1.20k|    memcpy(opaque_data_copy, opaque_data, opaque_data_len);
 7235|  1.20k|  }
 7236|       |
 7237|  2.18k|  item = nghttp2_mem_malloc(mem, sizeof(nghttp2_outbound_item));
 7238|  2.18k|  if (item == NULL) {
  ------------------
  |  Branch (7238:7): [True: 0, False: 2.18k]
  ------------------
 7239|      0|    nghttp2_mem_free(mem, opaque_data_copy);
 7240|      0|    return NGHTTP2_ERR_NOMEM;
 7241|      0|  }
 7242|       |
 7243|  2.18k|  nghttp2_outbound_item_init(item);
 7244|       |
 7245|  2.18k|  frame = &item->frame;
 7246|       |
 7247|       |  /* last_stream_id must not be increased from the value previously
 7248|       |     sent */
 7249|  2.18k|  last_stream_id =
 7250|  2.18k|    nghttp2_min_int32(last_stream_id, session->local_last_stream_id);
 7251|       |
 7252|  2.18k|  nghttp2_frame_goaway_init(&frame->goaway, last_stream_id, error_code,
 7253|  2.18k|                            opaque_data_copy, opaque_data_len);
 7254|       |
 7255|  2.18k|  aux_data = &item->aux_data.goaway;
 7256|  2.18k|  aux_data->flags = aux_flags;
 7257|       |
 7258|  2.18k|  rv = nghttp2_session_add_item(session, item);
 7259|  2.18k|  if (rv != 0) {
  ------------------
  |  Branch (7259:7): [True: 0, False: 2.18k]
  ------------------
 7260|      0|    nghttp2_frame_goaway_free(&frame->goaway, mem);
 7261|      0|    nghttp2_mem_free(mem, item);
 7262|      0|    return rv;
 7263|      0|  }
 7264|       |
 7265|  2.18k|  session->goaway_flags |= NGHTTP2_GOAWAY_SUBMITTED;
 7266|       |
 7267|  2.18k|  return 0;
 7268|  2.18k|}
nghttp2_session_add_window_update:
 7272|  4.50k|                                      int32_t window_size_increment) {
 7273|  4.50k|  int rv;
 7274|  4.50k|  nghttp2_outbound_item *item;
 7275|  4.50k|  nghttp2_frame *frame;
 7276|  4.50k|  nghttp2_mem *mem;
 7277|       |
 7278|  4.50k|  mem = &session->mem;
 7279|  4.50k|  item = nghttp2_mem_malloc(mem, sizeof(nghttp2_outbound_item));
 7280|  4.50k|  if (item == NULL) {
  ------------------
  |  Branch (7280:7): [True: 0, False: 4.50k]
  ------------------
 7281|      0|    return NGHTTP2_ERR_NOMEM;
 7282|      0|  }
 7283|       |
 7284|  4.50k|  nghttp2_outbound_item_init(item);
 7285|       |
 7286|  4.50k|  frame = &item->frame;
 7287|       |
 7288|  4.50k|  nghttp2_frame_window_update_init(&frame->window_update, flags, stream_id,
 7289|  4.50k|                                   window_size_increment);
 7290|       |
 7291|  4.50k|  rv = nghttp2_session_add_item(session, item);
 7292|       |
 7293|  4.50k|  if (rv != 0) {
  ------------------
  |  Branch (7293:7): [True: 0, False: 4.50k]
  ------------------
 7294|      0|    nghttp2_frame_window_update_free(&frame->window_update);
 7295|      0|    nghttp2_mem_free(mem, item);
 7296|      0|    return rv;
 7297|      0|  }
 7298|  4.50k|  return 0;
 7299|  4.50k|}
nghttp2_session_add_settings:
 7313|  8.49k|                                 const nghttp2_settings_entry *iv, size_t niv) {
 7314|  8.49k|  nghttp2_outbound_item *item;
 7315|  8.49k|  nghttp2_frame *frame;
 7316|  8.49k|  nghttp2_settings_entry *iv_copy;
 7317|  8.49k|  size_t i;
 7318|  8.49k|  int rv;
 7319|  8.49k|  nghttp2_mem *mem;
 7320|  8.49k|  nghttp2_inflight_settings *inflight_settings = NULL;
 7321|  8.49k|  uint8_t no_rfc7540_pri = session->pending_no_rfc7540_priorities;
 7322|       |
 7323|  8.49k|  mem = &session->mem;
 7324|       |
 7325|  8.49k|  if (flags & NGHTTP2_FLAG_ACK) {
  ------------------
  |  Branch (7325:7): [True: 4.08k, False: 4.41k]
  ------------------
 7326|  4.08k|    if (niv != 0) {
  ------------------
  |  Branch (7326:9): [True: 0, False: 4.08k]
  ------------------
 7327|      0|      return NGHTTP2_ERR_INVALID_ARGUMENT;
 7328|      0|    }
 7329|       |
 7330|  4.08k|    if (session->obq_flood_counter_ >= session->max_outbound_ack) {
  ------------------
  |  Branch (7330:9): [True: 0, False: 4.08k]
  ------------------
 7331|      0|      return NGHTTP2_ERR_FLOODED;
 7332|      0|    }
 7333|  4.08k|  }
 7334|       |
 7335|  8.49k|  if (!nghttp2_iv_check(iv, niv)) {
  ------------------
  |  Branch (7335:7): [True: 0, False: 8.49k]
  ------------------
 7336|      0|    return NGHTTP2_ERR_INVALID_ARGUMENT;
 7337|      0|  }
 7338|       |
 7339|  21.7k|  for (i = 0; i < niv; ++i) {
  ------------------
  |  Branch (7339:15): [True: 13.2k, False: 8.49k]
  ------------------
 7340|  13.2k|    if (iv[i].settings_id != NGHTTP2_SETTINGS_NO_RFC7540_PRIORITIES) {
  ------------------
  |  Branch (7340:9): [True: 13.2k, False: 0]
  ------------------
 7341|  13.2k|      continue;
 7342|  13.2k|    }
 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|  8.49k|  item = nghttp2_mem_malloc(mem, sizeof(nghttp2_outbound_item));
 7355|  8.49k|  if (item == NULL) {
  ------------------
  |  Branch (7355:7): [True: 0, False: 8.49k]
  ------------------
 7356|      0|    return NGHTTP2_ERR_NOMEM;
 7357|      0|  }
 7358|       |
 7359|  8.49k|  if (niv > 0) {
  ------------------
  |  Branch (7359:7): [True: 4.41k, False: 4.08k]
  ------------------
 7360|  4.41k|    iv_copy = nghttp2_frame_iv_copy(iv, niv, mem);
 7361|  4.41k|    if (iv_copy == NULL) {
  ------------------
  |  Branch (7361:9): [True: 0, False: 4.41k]
  ------------------
 7362|      0|      nghttp2_mem_free(mem, item);
 7363|      0|      return NGHTTP2_ERR_NOMEM;
 7364|      0|    }
 7365|  4.41k|  } else {
 7366|  4.08k|    iv_copy = NULL;
 7367|  4.08k|  }
 7368|       |
 7369|  8.49k|  if ((flags & NGHTTP2_FLAG_ACK) == 0) {
  ------------------
  |  Branch (7369:7): [True: 4.41k, False: 4.08k]
  ------------------
 7370|  4.41k|    rv = inflight_settings_new(&inflight_settings, iv, niv, mem);
 7371|  4.41k|    if (rv != 0) {
  ------------------
  |  Branch (7371:9): [True: 0, False: 4.41k]
  ------------------
 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|  4.41k|  }
 7378|       |
 7379|  8.49k|  nghttp2_outbound_item_init(item);
 7380|       |
 7381|  8.49k|  frame = &item->frame;
 7382|       |
 7383|  8.49k|  nghttp2_frame_settings_init(&frame->settings, flags, iv_copy, niv);
 7384|  8.49k|  rv = nghttp2_session_add_item(session, item);
 7385|  8.49k|  if (rv != 0) {
  ------------------
  |  Branch (7385:7): [True: 0, False: 8.49k]
  ------------------
 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|  8.49k|  if (flags & NGHTTP2_FLAG_ACK) {
  ------------------
  |  Branch (7397:7): [True: 4.08k, False: 4.41k]
  ------------------
 7398|  4.08k|    ++session->obq_flood_counter_;
 7399|  4.41k|  } else {
 7400|  4.41k|    session_append_inflight_settings(session, inflight_settings);
 7401|  4.41k|  }
 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|  17.3k|  for (i = niv; i > 0; --i) {
  ------------------
  |  Branch (7407:17): [True: 13.2k, False: 4.08k]
  ------------------
 7408|  13.2k|    if (iv[i - 1].settings_id == NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS) {
  ------------------
  |  Branch (7408:9): [True: 4.41k, False: 8.82k]
  ------------------
 7409|  4.41k|      session->pending_local_max_concurrent_stream = iv[i - 1].value;
 7410|  4.41k|      break;
 7411|  4.41k|    }
 7412|  13.2k|  }
 7413|       |
 7414|  8.49k|  for (i = niv; i > 0; --i) {
  ------------------
  |  Branch (7414:17): [True: 4.41k, False: 4.08k]
  ------------------
 7415|  4.41k|    if (iv[i - 1].settings_id == NGHTTP2_SETTINGS_ENABLE_PUSH) {
  ------------------
  |  Branch (7415:9): [True: 4.41k, False: 0]
  ------------------
 7416|  4.41k|      session->pending_enable_push = (uint8_t)iv[i - 1].value;
 7417|  4.41k|      break;
 7418|  4.41k|    }
 7419|  4.41k|  }
 7420|       |
 7421|  21.7k|  for (i = niv; i > 0; --i) {
  ------------------
  |  Branch (7421:17): [True: 13.2k, False: 8.49k]
  ------------------
 7422|  13.2k|    if (iv[i - 1].settings_id == NGHTTP2_SETTINGS_ENABLE_CONNECT_PROTOCOL) {
  ------------------
  |  Branch (7422:9): [True: 0, False: 13.2k]
  ------------------
 7423|      0|      session->pending_enable_connect_protocol = (uint8_t)iv[i - 1].value;
 7424|      0|      break;
 7425|      0|    }
 7426|  13.2k|  }
 7427|       |
 7428|  8.49k|  if (no_rfc7540_pri == UINT8_MAX) {
  ------------------
  |  Branch (7428:7): [True: 4.41k, False: 4.08k]
  ------------------
 7429|  4.41k|    session->pending_no_rfc7540_priorities = 0;
 7430|  4.41k|  } else {
 7431|  4.08k|    session->pending_no_rfc7540_priorities = no_rfc7540_pri;
 7432|  4.08k|  }
 7433|       |
 7434|  8.49k|  return 0;
 7435|  8.49k|}
nghttp2_session_pack_data:
 7440|  1.08k|                              nghttp2_stream *stream) {
 7441|  1.08k|  int rv;
 7442|  1.08k|  uint32_t data_flags;
 7443|  1.08k|  nghttp2_ssize payloadlen;
 7444|  1.08k|  nghttp2_ssize padded_payloadlen;
 7445|  1.08k|  nghttp2_buf *buf;
 7446|  1.08k|  size_t max_payloadlen;
 7447|       |
 7448|  1.08k|  assert(bufs->head == bufs->cur);
  ------------------
  |  Branch (7448:3): [True: 0, False: 1.08k]
  |  Branch (7448:3): [True: 1.08k, False: 0]
  ------------------
 7449|       |
 7450|  1.08k|  buf = &bufs->cur->buf;
 7451|       |
 7452|  1.08k|  if (session->callbacks.read_length_callback2 ||
  ------------------
  |  Branch (7452:7): [True: 0, False: 1.08k]
  ------------------
 7453|  1.08k|      session->callbacks.read_length_callback) {
  ------------------
  |  Branch (7453:7): [True: 0, False: 1.08k]
  ------------------
 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.08k|  assert(nghttp2_buf_avail(buf) >= datamax);
  ------------------
  |  Branch (7500:3): [True: 0, False: 1.08k]
  |  Branch (7500:3): [True: 1.08k, False: 0]
  ------------------
 7501|       |
 7502|  1.08k|  data_flags = NGHTTP2_DATA_FLAG_NONE;
 7503|  1.08k|  switch (aux_data->dpw.version) {
 7504|  1.08k|  case NGHTTP2_DATA_PROVIDER_V1:
  ------------------
  |  |   36|  1.08k|#define NGHTTP2_DATA_PROVIDER_V1 1
  ------------------
  |  Branch (7504:3): [True: 1.08k, False: 0]
  ------------------
 7505|  1.08k|    payloadlen = (nghttp2_ssize)aux_data->dpw.data_prd.v1.read_callback(
 7506|  1.08k|      session, frame->hd.stream_id, buf->pos, datamax, &data_flags,
 7507|  1.08k|      &aux_data->dpw.data_prd.v1.source, session->user_data);
 7508|       |
 7509|  1.08k|    break;
 7510|      0|  case NGHTTP2_DATA_PROVIDER_V2:
  ------------------
  |  |   37|      0|#define NGHTTP2_DATA_PROVIDER_V2 2
  ------------------
  |  Branch (7510:3): [True: 0, False: 1.08k]
  ------------------
 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.08k]
  ------------------
 7517|      0|    assert(0);
  ------------------
  |  Branch (7517:5): [Folded, False: 0]
  |  Branch (7517:5): [Folded, False: 0]
  ------------------
 7518|      0|    abort();
 7519|  1.08k|  }
 7520|       |
 7521|  1.08k|  if (payloadlen == NGHTTP2_ERR_DEFERRED ||
  ------------------
  |  Branch (7521:7): [True: 310, False: 772]
  ------------------
 7522|    772|      payloadlen == NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE ||
  ------------------
  |  Branch (7522:7): [True: 0, False: 772]
  ------------------
 7523|    772|      payloadlen == NGHTTP2_ERR_PAUSE) {
  ------------------
  |  Branch (7523:7): [True: 0, False: 772]
  ------------------
 7524|    310|    DEBUGF("send: DATA postponed due to %s\n",
  ------------------
  |  |   39|    310|    do {                                                                       \
  |  |   40|    310|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 310]
  |  |  ------------------
  ------------------
 7525|    310|           nghttp2_strerror((int)payloadlen));
 7526|       |
 7527|    310|    return (int)payloadlen;
 7528|    310|  }
 7529|       |
 7530|    772|  if (payloadlen < 0 || datamax < (size_t)payloadlen) {
  ------------------
  |  Branch (7530:7): [True: 0, False: 772]
  |  Branch (7530:25): [True: 0, False: 772]
  ------------------
 7531|       |    /* This is the error code when callback is failed. */
 7532|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
 7533|      0|  }
 7534|       |
 7535|    772|  buf->last = buf->pos + payloadlen;
 7536|    772|  buf->pos -= NGHTTP2_FRAME_HDLEN;
  ------------------
  |  |   40|    772|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
 7537|       |
 7538|       |  /* Clear flags, because this may contain previous flags of previous
 7539|       |     DATA */
 7540|    772|  frame->hd.flags = NGHTTP2_FLAG_NONE;
 7541|       |
 7542|    772|  if (data_flags & NGHTTP2_DATA_FLAG_EOF) {
  ------------------
  |  Branch (7542:7): [True: 281, False: 491]
  ------------------
 7543|    281|    aux_data->eof = 1;
 7544|       |    /* If NGHTTP2_DATA_FLAG_NO_END_STREAM is set, don't set
 7545|       |       NGHTTP2_FLAG_END_STREAM */
 7546|    281|    if ((aux_data->flags & NGHTTP2_FLAG_END_STREAM) &&
  ------------------
  |  Branch (7546:9): [True: 281, False: 0]
  ------------------
 7547|    281|        (data_flags & NGHTTP2_DATA_FLAG_NO_END_STREAM) == 0) {
  ------------------
  |  Branch (7547:9): [True: 281, False: 0]
  ------------------
 7548|    281|      frame->hd.flags |= NGHTTP2_FLAG_END_STREAM;
 7549|    281|    }
 7550|    281|  }
 7551|       |
 7552|    772|  if (data_flags & NGHTTP2_DATA_FLAG_NO_COPY) {
  ------------------
  |  Branch (7552:7): [True: 0, False: 772]
  ------------------
 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|    772|  frame->hd.length = (size_t)payloadlen;
 7562|    772|  frame->data.padlen = 0;
 7563|       |
 7564|    772|  max_payloadlen =
 7565|    772|    nghttp2_min_size(datamax, frame->hd.length + NGHTTP2_MAX_PADLEN);
  ------------------
  |  |   67|    772|#define NGHTTP2_MAX_PADLEN 256
  ------------------
 7566|       |
 7567|    772|  padded_payloadlen =
 7568|    772|    session_call_select_padding(session, frame, max_payloadlen);
 7569|       |
 7570|    772|  if (nghttp2_is_fatal((int)padded_payloadlen)) {
  ------------------
  |  Branch (7570:7): [True: 0, False: 772]
  ------------------
 7571|      0|    return (int)padded_payloadlen;
 7572|      0|  }
 7573|       |
 7574|    772|  frame->data.padlen = (size_t)(padded_payloadlen - payloadlen);
 7575|       |
 7576|    772|  nghttp2_frame_pack_frame_hd(buf->pos, &frame->hd);
 7577|       |
 7578|    772|  nghttp2_frame_add_pad(bufs, &frame->hd, frame->data.padlen,
 7579|    772|                        aux_data->no_copy);
 7580|       |
 7581|    772|  session_reschedule_stream(session, stream);
 7582|       |
 7583|    772|  if (frame->hd.length == 0 && (data_flags & NGHTTP2_DATA_FLAG_EOF) &&
  ------------------
  |  Branch (7583:7): [True: 214, False: 558]
  |  Branch (7583:32): [True: 214, False: 0]
  ------------------
 7584|    214|      (data_flags & NGHTTP2_DATA_FLAG_NO_END_STREAM)) {
  ------------------
  |  Branch (7584:7): [True: 0, False: 214]
  ------------------
 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|    772|  return 0;
 7592|    772|}
nghttp2_session_get_stream_user_data:
 7595|  48.5k|                                           int32_t stream_id) {
 7596|  48.5k|  nghttp2_stream *stream;
 7597|  48.5k|  stream = nghttp2_session_get_stream(session, stream_id);
 7598|  48.5k|  if (stream) {
  ------------------
  |  Branch (7598:7): [True: 48.2k, False: 330]
  ------------------
 7599|  48.2k|    return stream->stream_user_data;
 7600|  48.2k|  } else {
 7601|       |    return NULL;
 7602|    330|  }
 7603|  48.5k|}
nghttp2_session_set_stream_user_data:
 7607|  4.85k|                                         void *stream_user_data) {
 7608|  4.85k|  nghttp2_stream *stream;
 7609|  4.85k|  nghttp2_frame *frame;
 7610|  4.85k|  nghttp2_outbound_item *item;
 7611|       |
 7612|  4.85k|  stream = nghttp2_session_get_stream(session, stream_id);
 7613|  4.85k|  if (stream) {
  ------------------
  |  Branch (7613:7): [True: 4.42k, False: 427]
  ------------------
 7614|  4.42k|    stream->stream_user_data = stream_user_data;
 7615|  4.42k|    return 0;
 7616|  4.42k|  }
 7617|       |
 7618|    427|  if (session->server || !nghttp2_session_is_my_stream_id(session, stream_id) ||
  ------------------
  |  Branch (7618:7): [True: 0, False: 427]
  |  Branch (7618:26): [True: 0, False: 427]
  ------------------
 7619|    427|      !nghttp2_outbound_queue_top(&session->ob_syn)) {
  ------------------
  |  |  192|    427|#define nghttp2_outbound_queue_top(Q) ((Q)->head)
  ------------------
  |  Branch (7619:7): [True: 427, False: 0]
  ------------------
 7620|    427|    return NGHTTP2_ERR_INVALID_ARGUMENT;
 7621|    427|  }
 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|  4.91k|int nghttp2_session_resume_data(nghttp2_session *session, int32_t stream_id) {
 7648|  4.91k|  int rv;
 7649|  4.91k|  nghttp2_stream *stream;
 7650|  4.91k|  stream = nghttp2_session_get_stream(session, stream_id);
 7651|  4.91k|  if (stream == NULL || !nghttp2_stream_check_deferred_item(stream)) {
  ------------------
  |  Branch (7651:7): [True: 4.38k, False: 534]
  |  Branch (7651:25): [True: 342, False: 192]
  ------------------
 7652|  4.72k|    return NGHTTP2_ERR_INVALID_ARGUMENT;
 7653|  4.72k|  }
 7654|       |
 7655|    192|  rv = session_resume_deferred_stream_item(session, stream,
 7656|    192|                                           NGHTTP2_STREAM_FLAG_DEFERRED_USER);
 7657|       |
 7658|    192|  if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (7658:7): [True: 0, False: 192]
  ------------------
 7659|      0|    return rv;
 7660|      0|  }
 7661|       |
 7662|    192|  return 0;
 7663|    192|}
nghttp2_session_get_stream_effective_local_window_size:
 7685|  4.78k|                                                       int32_t stream_id) {
 7686|  4.78k|  nghttp2_stream *stream;
 7687|  4.78k|  stream = nghttp2_session_get_stream(session, stream_id);
 7688|  4.78k|  if (stream == NULL) {
  ------------------
  |  Branch (7688:7): [True: 0, False: 4.78k]
  ------------------
 7689|      0|    return -1;
 7690|      0|  }
 7691|  4.78k|  return stream->local_window_size;
 7692|  4.78k|}
nghttp2_session_get_stream_remote_window_size:
 7729|  1.09k|                                                      int32_t stream_id) {
 7730|  1.09k|  nghttp2_stream *stream;
 7731|       |
 7732|  1.09k|  stream = nghttp2_session_get_stream(session, stream_id);
 7733|  1.09k|  if (stream == NULL) {
  ------------------
  |  Branch (7733:7): [True: 0, False: 1.09k]
  ------------------
 7734|      0|    return -1;
 7735|      0|  }
 7736|       |
 7737|       |  /* stream->remote_window_size can be negative when
 7738|       |     SETTINGS_INITIAL_WINDOW_SIZE is changed. */
 7739|  1.09k|  return nghttp2_max_int32(0, stream->remote_window_size);
 7740|  1.09k|}
nghttp2_session_get_remote_window_size:
 7742|  1.09k|int32_t nghttp2_session_get_remote_window_size(nghttp2_session *session) {
 7743|  1.09k|  return session->remote_window_size;
 7744|  1.09k|}
nghttp2_session_get_remote_settings:
 7747|  8.18k|                                             nghttp2_settings_id id) {
 7748|  8.18k|  switch (id) {
  ------------------
  |  Branch (7748:11): [True: 8.18k, False: 0]
  ------------------
 7749|      0|  case NGHTTP2_SETTINGS_HEADER_TABLE_SIZE:
  ------------------
  |  Branch (7749:3): [True: 0, False: 8.18k]
  ------------------
 7750|      0|    return session->remote_settings.header_table_size;
 7751|  4.09k|  case NGHTTP2_SETTINGS_ENABLE_PUSH:
  ------------------
  |  Branch (7751:3): [True: 4.09k, False: 4.09k]
  ------------------
 7752|  4.09k|    return session->remote_settings.enable_push;
 7753|  4.09k|  case NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS:
  ------------------
  |  Branch (7753:3): [True: 4.09k, False: 4.09k]
  ------------------
 7754|  4.09k|    return session->remote_settings.max_concurrent_streams;
 7755|      0|  case NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE:
  ------------------
  |  Branch (7755:3): [True: 0, False: 8.18k]
  ------------------
 7756|      0|    return session->remote_settings.initial_window_size;
 7757|      0|  case NGHTTP2_SETTINGS_MAX_FRAME_SIZE:
  ------------------
  |  Branch (7757:3): [True: 0, False: 8.18k]
  ------------------
 7758|      0|    return session->remote_settings.max_frame_size;
 7759|      0|  case NGHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE:
  ------------------
  |  Branch (7759:3): [True: 0, False: 8.18k]
  ------------------
 7760|      0|    return session->remote_settings.max_header_list_size;
 7761|      0|  case NGHTTP2_SETTINGS_ENABLE_CONNECT_PROTOCOL:
  ------------------
  |  Branch (7761:3): [True: 0, False: 8.18k]
  ------------------
 7762|      0|    return session->remote_settings.enable_connect_protocol;
 7763|      0|  case NGHTTP2_SETTINGS_NO_RFC7540_PRIORITIES:
  ------------------
  |  Branch (7763:3): [True: 0, False: 8.18k]
  ------------------
 7764|      0|    return session->remote_settings.no_rfc7540_priorities;
 7765|  8.18k|  }
 7766|       |
 7767|  8.18k|  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|     19|                             void *stream_user_data) {
 7893|     19|  int rv;
 7894|     19|  nghttp2_stream *stream;
 7895|       |
 7896|     19|  rv = nghttp2_session_upgrade_internal(session, settings_payload,
 7897|     19|                                        settings_payloadlen, stream_user_data);
 7898|     19|  if (rv != 0) {
  ------------------
  |  Branch (7898:7): [True: 0, False: 19]
  ------------------
 7899|      0|    return rv;
 7900|      0|  }
 7901|       |
 7902|     19|  stream = nghttp2_session_get_stream(session, 1);
 7903|     19|  assert(stream);
  ------------------
  |  Branch (7903:3): [True: 0, False: 19]
  |  Branch (7903:3): [True: 19, False: 0]
  ------------------
 7904|       |
 7905|     19|  if (head_request) {
  ------------------
  |  Branch (7905:7): [True: 1, False: 18]
  ------------------
 7906|      1|    stream->http_flags |= NGHTTP2_HTTP_FLAG_METH_HEAD;
 7907|      1|  }
 7908|       |
 7909|     19|  return 0;
 7910|     19|}
nghttp2_session_consume:
 7939|    579|                            size_t size) {
 7940|    579|  int rv;
 7941|    579|  nghttp2_stream *stream;
 7942|       |
 7943|    579|  if (stream_id == 0) {
  ------------------
  |  Branch (7943:7): [True: 0, False: 579]
  ------------------
 7944|      0|    return NGHTTP2_ERR_INVALID_ARGUMENT;
 7945|      0|  }
 7946|       |
 7947|    579|  if (!(session->opt_flags & NGHTTP2_OPTMASK_NO_AUTO_WINDOW_UPDATE)) {
  ------------------
  |  Branch (7947:7): [True: 0, False: 579]
  ------------------
 7948|      0|    return NGHTTP2_ERR_INVALID_STATE;
 7949|      0|  }
 7950|       |
 7951|    579|  rv = session_update_connection_consumed_size(session, size);
 7952|       |
 7953|    579|  if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (7953:7): [True: 0, False: 579]
  ------------------
 7954|      0|    return rv;
 7955|      0|  }
 7956|       |
 7957|    579|  stream = nghttp2_session_get_stream(session, stream_id);
 7958|       |
 7959|    579|  if (!stream) {
  ------------------
  |  Branch (7959:7): [True: 0, False: 579]
  ------------------
 7960|      0|    return 0;
 7961|      0|  }
 7962|       |
 7963|    579|  rv = session_update_stream_consumed_size(session, stream, size);
 7964|       |
 7965|    579|  if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (7965:7): [True: 0, False: 579]
  ------------------
 7966|      0|    return rv;
 7967|      0|  }
 7968|       |
 7969|    579|  return 0;
 7970|    579|}
nghttp2_session.c:session_terminate_session:
  218|  1.42k|                                     uint32_t error_code, const char *reason) {
  219|  1.42k|  int rv;
  220|  1.42k|  const uint8_t *debug_data;
  221|  1.42k|  size_t debug_datalen;
  222|       |
  223|  1.42k|  if (session->goaway_flags & NGHTTP2_GOAWAY_TERM_ON_SEND) {
  ------------------
  |  Branch (223:7): [True: 0, False: 1.42k]
  ------------------
  224|      0|    return 0;
  225|      0|  }
  226|       |
  227|       |  /* Ignore all incoming frames because we are going to tear down the
  228|       |     session. */
  229|  1.42k|  session->iframe.state = NGHTTP2_IB_IGN_ALL;
  230|       |
  231|  1.42k|  if (reason == NULL) {
  ------------------
  |  Branch (231:7): [True: 981, False: 441]
  ------------------
  232|    981|    debug_data = NULL;
  233|    981|    debug_datalen = 0;
  234|    981|  } else {
  235|    441|    debug_data = (const uint8_t *)reason;
  236|    441|    debug_datalen = strlen(reason);
  237|    441|  }
  238|       |
  239|  1.42k|  rv =
  240|  1.42k|    nghttp2_session_add_goaway(session, last_stream_id, error_code, debug_data,
  241|  1.42k|                               debug_datalen, NGHTTP2_GOAWAY_AUX_TERM_ON_SEND);
  242|       |
  243|  1.42k|  if (rv != 0) {
  ------------------
  |  Branch (243:7): [True: 0, False: 1.42k]
  ------------------
  244|      0|    return rv;
  245|      0|  }
  246|       |
  247|  1.42k|  session->goaway_flags |= NGHTTP2_GOAWAY_TERM_ON_SEND;
  248|       |
  249|  1.42k|  return 0;
  250|  1.42k|}
nghttp2_session.c:session_new:
  435|  4.41k|                       const nghttp2_option *option, nghttp2_mem *mem) {
  436|  4.41k|  int rv;
  437|  4.41k|  size_t nbuffer;
  438|  4.41k|  size_t max_deflate_dynamic_table_size =
  439|  4.41k|    NGHTTP2_HD_DEFAULT_MAX_DEFLATE_BUFFER_SIZE;
  ------------------
  |  |   50|  4.41k|#define NGHTTP2_HD_DEFAULT_MAX_DEFLATE_BUFFER_SIZE (1 << 12)
  ------------------
  440|  4.41k|  size_t i;
  441|  4.41k|  uint64_t map_seed;
  442|       |
  443|  4.41k|  if (mem == NULL) {
  ------------------
  |  Branch (443:7): [True: 0, False: 4.41k]
  ------------------
  444|      0|    mem = nghttp2_mem_default();
  445|      0|  }
  446|       |
  447|  4.41k|  *session_ptr = nghttp2_mem_calloc(mem, 1, sizeof(nghttp2_session));
  448|  4.41k|  if (*session_ptr == NULL) {
  ------------------
  |  Branch (448:7): [True: 0, False: 4.41k]
  ------------------
  449|      0|    rv = NGHTTP2_ERR_NOMEM;
  450|      0|    goto fail_session;
  451|      0|  }
  452|       |
  453|  4.41k|  (*session_ptr)->mem = *mem;
  454|  4.41k|  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|  4.41k|  (*session_ptr)->remote_window_size = NGHTTP2_INITIAL_CONNECTION_WINDOW_SIZE;
  ------------------
  |  |  237|  4.41k|#define NGHTTP2_INITIAL_CONNECTION_WINDOW_SIZE ((1 << 16) - 1)
  ------------------
  460|  4.41k|  (*session_ptr)->recv_window_size = 0;
  461|  4.41k|  (*session_ptr)->consumed_size = 0;
  462|  4.41k|  (*session_ptr)->recv_reduction = 0;
  463|  4.41k|  (*session_ptr)->local_window_size = NGHTTP2_INITIAL_CONNECTION_WINDOW_SIZE;
  ------------------
  |  |  237|  4.41k|#define NGHTTP2_INITIAL_CONNECTION_WINDOW_SIZE ((1 << 16) - 1)
  ------------------
  464|       |
  465|  4.41k|  (*session_ptr)->goaway_flags = NGHTTP2_GOAWAY_NONE;
  466|  4.41k|  (*session_ptr)->local_last_stream_id = (1u << 31) - 1;
  467|  4.41k|  (*session_ptr)->remote_last_stream_id = (1u << 31) - 1;
  468|       |
  469|  4.41k|  (*session_ptr)->pending_local_max_concurrent_stream =
  470|  4.41k|    NGHTTP2_DEFAULT_MAX_CONCURRENT_STREAMS;
  ------------------
  |  |  103|  4.41k|#define NGHTTP2_DEFAULT_MAX_CONCURRENT_STREAMS 0xffffffffu
  ------------------
  471|  4.41k|  (*session_ptr)->pending_enable_push = 1;
  472|  4.41k|  (*session_ptr)->pending_no_rfc7540_priorities = UINT8_MAX;
  473|       |
  474|  4.41k|  nghttp2_ratelim_init(&(*session_ptr)->stream_reset_ratelim,
  475|  4.41k|                       NGHTTP2_DEFAULT_STREAM_RESET_BURST,
  ------------------
  |  |  106|  4.41k|#define NGHTTP2_DEFAULT_STREAM_RESET_BURST 1000
  ------------------
  476|  4.41k|                       NGHTTP2_DEFAULT_STREAM_RESET_RATE);
  ------------------
  |  |  107|  4.41k|#define NGHTTP2_DEFAULT_STREAM_RESET_RATE 33
  ------------------
  477|       |
  478|  4.41k|  nghttp2_ratelim_init(&(*session_ptr)->glitch_ratelim,
  479|  4.41k|                       NGHTTP2_DEFAULT_GLITCH_BURST,
  ------------------
  |  |  110|  4.41k|#define NGHTTP2_DEFAULT_GLITCH_BURST 10000
  ------------------
  480|  4.41k|                       NGHTTP2_DEFAULT_GLITCH_RATE);
  ------------------
  |  |  111|  4.41k|#define NGHTTP2_DEFAULT_GLITCH_RATE 330
  ------------------
  481|       |
  482|  4.41k|  if (server) {
  ------------------
  |  Branch (482:7): [True: 0, False: 4.41k]
  ------------------
  483|      0|    (*session_ptr)->server = 1;
  484|      0|  }
  485|       |
  486|  4.41k|  init_settings(&(*session_ptr)->remote_settings);
  487|  4.41k|  init_settings(&(*session_ptr)->local_settings);
  488|       |
  489|  4.41k|  (*session_ptr)->max_incoming_reserved_streams =
  490|  4.41k|    NGHTTP2_MAX_INCOMING_RESERVED_STREAMS;
  ------------------
  |  |   90|  4.41k|#define NGHTTP2_MAX_INCOMING_RESERVED_STREAMS 200
  ------------------
  491|       |
  492|       |  /* Limit max outgoing concurrent streams to sensible value */
  493|  4.41k|  (*session_ptr)->remote_settings.max_concurrent_streams = 100;
  494|       |
  495|  4.41k|  (*session_ptr)->max_send_header_block_length = NGHTTP2_MAX_HEADERSLEN;
  ------------------
  |  |   58|  4.41k|#define NGHTTP2_MAX_HEADERSLEN 65536
  ------------------
  496|  4.41k|  (*session_ptr)->max_outbound_ack = NGHTTP2_DEFAULT_MAX_OBQ_FLOOD_ITEM;
  ------------------
  |  |  100|  4.41k|#define NGHTTP2_DEFAULT_MAX_OBQ_FLOOD_ITEM 1000
  ------------------
  497|  4.41k|  (*session_ptr)->max_settings = NGHTTP2_DEFAULT_MAX_SETTINGS;
  ------------------
  |  |  266|  4.41k|#define NGHTTP2_DEFAULT_MAX_SETTINGS 32
  ------------------
  498|  4.41k|  (*session_ptr)->max_continuations = NGHTTP2_DEFAULT_MAX_CONTINUATIONS;
  ------------------
  |  |  115|  4.41k|#define NGHTTP2_DEFAULT_MAX_CONTINUATIONS 8
  ------------------
  499|       |
  500|  4.41k|  if (option) {
  ------------------
  |  Branch (500:7): [True: 4.41k, False: 0]
  ------------------
  501|  4.41k|    if ((option->opt_set_mask & NGHTTP2_OPT_NO_AUTO_WINDOW_UPDATE) &&
  ------------------
  |  Branch (501:9): [True: 4.41k, False: 0]
  ------------------
  502|  4.41k|        option->no_auto_window_update) {
  ------------------
  |  Branch (502:9): [True: 4.41k, False: 0]
  ------------------
  503|  4.41k|      (*session_ptr)->opt_flags |= NGHTTP2_OPTMASK_NO_AUTO_WINDOW_UPDATE;
  504|  4.41k|    }
  505|       |
  506|  4.41k|    if (option->opt_set_mask & NGHTTP2_OPT_PEER_MAX_CONCURRENT_STREAMS) {
  ------------------
  |  Branch (506:9): [True: 0, False: 4.41k]
  ------------------
  507|      0|      (*session_ptr)->remote_settings.max_concurrent_streams =
  508|      0|        option->peer_max_concurrent_streams;
  509|      0|    }
  510|       |
  511|  4.41k|    if (option->opt_set_mask & NGHTTP2_OPT_MAX_RESERVED_REMOTE_STREAMS) {
  ------------------
  |  Branch (511:9): [True: 0, False: 4.41k]
  ------------------
  512|      0|      (*session_ptr)->max_incoming_reserved_streams =
  513|      0|        option->max_reserved_remote_streams;
  514|      0|    }
  515|       |
  516|  4.41k|    if ((option->opt_set_mask & NGHTTP2_OPT_NO_RECV_CLIENT_MAGIC) &&
  ------------------
  |  Branch (516:9): [True: 0, False: 4.41k]
  ------------------
  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|  4.41k|    if ((option->opt_set_mask & NGHTTP2_OPT_NO_HTTP_MESSAGING) &&
  ------------------
  |  Branch (521:9): [True: 0, False: 4.41k]
  ------------------
  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|  4.41k|    if (option->opt_set_mask & NGHTTP2_OPT_USER_RECV_EXT_TYPES) {
  ------------------
  |  Branch (526:9): [True: 0, False: 4.41k]
  ------------------
  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|  4.41k|    if (option->opt_set_mask & NGHTTP2_OPT_BUILTIN_RECV_EXT_TYPES) {
  ------------------
  |  Branch (531:9): [True: 0, False: 4.41k]
  ------------------
  532|      0|      (*session_ptr)->builtin_recv_ext_types = option->builtin_recv_ext_types;
  533|      0|    }
  534|       |
  535|  4.41k|    if ((option->opt_set_mask & NGHTTP2_OPT_NO_AUTO_PING_ACK) &&
  ------------------
  |  Branch (535:9): [True: 0, False: 4.41k]
  ------------------
  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|  4.41k|    if (option->opt_set_mask & NGHTTP2_OPT_MAX_SEND_HEADER_BLOCK_LENGTH) {
  ------------------
  |  Branch (540:9): [True: 0, False: 4.41k]
  ------------------
  541|      0|      (*session_ptr)->max_send_header_block_length =
  542|      0|        option->max_send_header_block_length;
  543|      0|    }
  544|       |
  545|  4.41k|    if (option->opt_set_mask & NGHTTP2_OPT_MAX_DEFLATE_DYNAMIC_TABLE_SIZE) {
  ------------------
  |  Branch (545:9): [True: 0, False: 4.41k]
  ------------------
  546|      0|      max_deflate_dynamic_table_size = option->max_deflate_dynamic_table_size;
  547|      0|    }
  548|       |
  549|  4.41k|    if (option->opt_set_mask & NGHTTP2_OPT_MAX_OUTBOUND_ACK) {
  ------------------
  |  Branch (549:9): [True: 0, False: 4.41k]
  ------------------
  550|      0|      (*session_ptr)->max_outbound_ack = option->max_outbound_ack;
  551|      0|    }
  552|       |
  553|  4.41k|    if ((option->opt_set_mask & NGHTTP2_OPT_MAX_SETTINGS) &&
  ------------------
  |  Branch (553:9): [True: 0, False: 4.41k]
  ------------------
  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|  4.41k|    if ((option->opt_set_mask &
  ------------------
  |  Branch (558:9): [True: 4.41k, False: 0]
  ------------------
  559|  4.41k|         NGHTTP2_OPT_NO_RFC9113_LEADING_AND_TRAILING_WS_VALIDATION) &&
  560|  4.41k|        option->no_rfc9113_leading_and_trailing_ws_validation) {
  ------------------
  |  Branch (560:9): [True: 4.41k, False: 0]
  ------------------
  561|  4.41k|      (*session_ptr)->opt_flags |=
  562|  4.41k|        NGHTTP2_OPTMASK_NO_RFC9113_LEADING_AND_TRAILING_WS_VALIDATION;
  563|  4.41k|    }
  564|       |
  565|  4.41k|    if (option->opt_set_mask & NGHTTP2_OPT_STREAM_RESET_RATE_LIMIT) {
  ------------------
  |  Branch (565:9): [True: 0, False: 4.41k]
  ------------------
  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|  4.41k|    if (option->opt_set_mask & NGHTTP2_OPT_MAX_CONTINUATIONS) {
  ------------------
  |  Branch (571:9): [True: 0, False: 4.41k]
  ------------------
  572|      0|      (*session_ptr)->max_continuations = option->max_continuations;
  573|      0|    }
  574|       |
  575|  4.41k|    if (option->opt_set_mask & NGHTTP2_OPT_GLITCH_RATE_LIMIT) {
  ------------------
  |  Branch (575:9): [True: 0, False: 4.41k]
  ------------------
  576|      0|      nghttp2_ratelim_init(&(*session_ptr)->glitch_ratelim,
  577|      0|                           option->glitch_burst, option->glitch_rate);
  578|      0|    }
  579|  4.41k|  }
  580|       |
  581|  4.41k|  rv = nghttp2_hd_deflate_init2(&(*session_ptr)->hd_deflater,
  582|  4.41k|                                max_deflate_dynamic_table_size, mem);
  583|  4.41k|  if (rv != 0) {
  ------------------
  |  Branch (583:7): [True: 0, False: 4.41k]
  ------------------
  584|      0|    goto fail_hd_deflater;
  585|      0|  }
  586|  4.41k|  rv = nghttp2_hd_inflate_init(&(*session_ptr)->hd_inflater, mem);
  587|  4.41k|  if (rv != 0) {
  ------------------
  |  Branch (587:7): [True: 0, False: 4.41k]
  ------------------
  588|      0|    goto fail_hd_inflater;
  589|      0|  }
  590|       |
  591|  4.41k|  nbuffer = ((*session_ptr)->max_send_header_block_length +
  592|  4.41k|             NGHTTP2_FRAMEBUF_CHUNKLEN - 1) /
  ------------------
  |  |   50|  4.41k|  (NGHTTP2_FRAME_HDLEN + 1 + NGHTTP2_MAX_PAYLOADLEN)
  |  |  ------------------
  |  |  |  |   40|  4.41k|#define NGHTTP2_FRAME_HDLEN 9
  |  |  ------------------
  |  |                 (NGHTTP2_FRAME_HDLEN + 1 + NGHTTP2_MAX_PAYLOADLEN)
  |  |  ------------------
  |  |  |  |   45|  4.41k|#define NGHTTP2_MAX_PAYLOADLEN 16384
  |  |  ------------------
  ------------------
  593|  4.41k|            NGHTTP2_FRAMEBUF_CHUNKLEN;
  ------------------
  |  |   50|  4.41k|  (NGHTTP2_FRAME_HDLEN + 1 + NGHTTP2_MAX_PAYLOADLEN)
  |  |  ------------------
  |  |  |  |   40|  4.41k|#define NGHTTP2_FRAME_HDLEN 9
  |  |  ------------------
  |  |                 (NGHTTP2_FRAME_HDLEN + 1 + NGHTTP2_MAX_PAYLOADLEN)
  |  |  ------------------
  |  |  |  |   45|  4.41k|#define NGHTTP2_MAX_PAYLOADLEN 16384
  |  |  ------------------
  ------------------
  594|       |
  595|  4.41k|  if (nbuffer == 0) {
  ------------------
  |  Branch (595:7): [True: 0, False: 4.41k]
  ------------------
  596|      0|    nbuffer = 1;
  597|      0|  }
  598|       |
  599|       |  /* 1 for Pad Field. */
  600|  4.41k|  rv = nghttp2_bufs_init3(&(*session_ptr)->aob.framebufs,
  601|  4.41k|                          NGHTTP2_FRAMEBUF_CHUNKLEN, nbuffer, 1,
  ------------------
  |  |   50|  4.41k|  (NGHTTP2_FRAME_HDLEN + 1 + NGHTTP2_MAX_PAYLOADLEN)
  |  |  ------------------
  |  |  |  |   40|  4.41k|#define NGHTTP2_FRAME_HDLEN 9
  |  |  ------------------
  |  |                 (NGHTTP2_FRAME_HDLEN + 1 + NGHTTP2_MAX_PAYLOADLEN)
  |  |  ------------------
  |  |  |  |   45|  4.41k|#define NGHTTP2_MAX_PAYLOADLEN 16384
  |  |  ------------------
  ------------------
  602|  4.41k|                          NGHTTP2_FRAME_HDLEN + 1, mem);
  ------------------
  |  |   40|  4.41k|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
  603|  4.41k|  if (rv != 0) {
  ------------------
  |  Branch (603:7): [True: 0, False: 4.41k]
  ------------------
  604|      0|    goto fail_aob_framebuf;
  605|      0|  }
  606|       |
  607|  4.41k|  if (callbacks->rand_callback) {
  ------------------
  |  Branch (607:7): [True: 0, False: 4.41k]
  ------------------
  608|      0|    callbacks->rand_callback((uint8_t *)&map_seed, sizeof(map_seed));
  609|  4.41k|  } else {
  610|  4.41k|    map_seed = 0;
  611|  4.41k|  }
  612|       |
  613|  4.41k|  nghttp2_map_init(&(*session_ptr)->streams, map_seed, mem);
  614|       |
  615|  4.41k|  active_outbound_item_reset(&(*session_ptr)->aob, mem);
  616|       |
  617|  4.41k|  (*session_ptr)->callbacks = *callbacks;
  618|  4.41k|  (*session_ptr)->user_data = user_data;
  619|       |
  620|  4.41k|  session_inbound_frame_reset(*session_ptr);
  621|       |
  622|  4.41k|  if (nghttp2_enable_strict_preface) {
  ------------------
  |  Branch (622:7): [True: 4.41k, False: 0]
  ------------------
  623|  4.41k|    nghttp2_inbound_frame *iframe = &(*session_ptr)->iframe;
  624|       |
  625|  4.41k|    if (server && ((*session_ptr)->opt_flags &
  ------------------
  |  Branch (625:9): [True: 0, False: 4.41k]
  |  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|  4.41k|    } else {
  630|  4.41k|      iframe->state = NGHTTP2_IB_READ_FIRST_SETTINGS;
  631|  4.41k|    }
  632|       |
  633|  4.41k|    if (!server) {
  ------------------
  |  Branch (633:9): [True: 4.41k, False: 0]
  ------------------
  634|  4.41k|      (*session_ptr)->aob.state = NGHTTP2_OB_SEND_CLIENT_MAGIC;
  635|  4.41k|      nghttp2_bufs_add(&(*session_ptr)->aob.framebufs, NGHTTP2_CLIENT_MAGIC,
  ------------------
  |  |  252|  4.41k|#define NGHTTP2_CLIENT_MAGIC "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"
  ------------------
  636|  4.41k|                       NGHTTP2_CLIENT_MAGIC_LEN);
  ------------------
  |  |  259|  4.41k|#define NGHTTP2_CLIENT_MAGIC_LEN 24
  ------------------
  637|  4.41k|    }
  638|  4.41k|  }
  639|       |
  640|  39.7k|  for (i = 0; i < NGHTTP2_EXTPRI_URGENCY_LEVELS; ++i) {
  ------------------
  |  | 5028|  39.7k|#define NGHTTP2_EXTPRI_URGENCY_LEVELS (NGHTTP2_EXTPRI_URGENCY_LOW + 1)
  |  |  ------------------
  |  |  |  | 5020|  39.7k|#define NGHTTP2_EXTPRI_URGENCY_LOW 7
  |  |  ------------------
  ------------------
  |  Branch (640:15): [True: 35.2k, False: 4.41k]
  ------------------
  641|  35.2k|    nghttp2_pq_init(&(*session_ptr)->sched[i].ob_data, stream_less, mem);
  642|  35.2k|  }
  643|       |
  644|  4.41k|  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|  8.82k|static void init_settings(nghttp2_settings_storage *settings) {
  395|  8.82k|  settings->header_table_size = NGHTTP2_HD_DEFAULT_MAX_BUFFER_SIZE;
  ------------------
  |  |   39|  8.82k|#define NGHTTP2_HD_DEFAULT_MAX_BUFFER_SIZE NGHTTP2_DEFAULT_HEADER_TABLE_SIZE
  |  |  ------------------
  |  |  |  |  244|  8.82k|#define NGHTTP2_DEFAULT_HEADER_TABLE_SIZE (1 << 12)
  |  |  ------------------
  ------------------
  396|  8.82k|  settings->enable_push = 1;
  397|  8.82k|  settings->max_concurrent_streams = NGHTTP2_DEFAULT_MAX_CONCURRENT_STREAMS;
  ------------------
  |  |  103|  8.82k|#define NGHTTP2_DEFAULT_MAX_CONCURRENT_STREAMS 0xffffffffu
  ------------------
  398|  8.82k|  settings->initial_window_size = NGHTTP2_INITIAL_WINDOW_SIZE;
  ------------------
  |  |  231|  8.82k|#define NGHTTP2_INITIAL_WINDOW_SIZE ((1 << 16) - 1)
  ------------------
  399|  8.82k|  settings->max_frame_size = NGHTTP2_MAX_FRAME_SIZE_MIN;
  ------------------
  |  |   43|  8.82k|#define NGHTTP2_MAX_FRAME_SIZE_MIN (1 << 14)
  ------------------
  400|  8.82k|  settings->max_header_list_size = UINT32_MAX;
  401|       |  settings->no_rfc7540_priorities = UINT32_MAX;
  402|  8.82k|}
nghttp2_session.c:inflight_settings_del:
  781|  4.41k|                                  nghttp2_mem *mem) {
  782|  4.41k|  if (!settings) {
  ------------------
  |  Branch (782:7): [True: 0, False: 4.41k]
  ------------------
  783|      0|    return;
  784|      0|  }
  785|       |
  786|  4.41k|  nghttp2_mem_free(mem, settings->iv);
  787|  4.41k|  nghttp2_mem_free(mem, settings);
  788|  4.41k|}
nghttp2_session.c:free_streams:
  724|  1.44k|static int free_streams(void *entry, void *ptr) {
  725|  1.44k|  nghttp2_session *session;
  726|  1.44k|  nghttp2_stream *stream;
  727|  1.44k|  nghttp2_outbound_item *item;
  728|  1.44k|  nghttp2_mem *mem;
  729|       |
  730|  1.44k|  session = (nghttp2_session *)ptr;
  731|  1.44k|  mem = &session->mem;
  732|  1.44k|  stream = (nghttp2_stream *)entry;
  733|  1.44k|  item = stream->item;
  734|       |
  735|  1.44k|  if (item && !item->queued && item != session->aob.item) {
  ------------------
  |  Branch (735:7): [True: 108, False: 1.33k]
  |  Branch (735:15): [True: 108, False: 0]
  |  Branch (735:32): [True: 27, False: 81]
  ------------------
  736|     27|    nghttp2_outbound_item_free(item, mem);
  737|     27|    nghttp2_mem_free(mem, item);
  738|     27|  }
  739|       |
  740|  1.44k|  nghttp2_stream_free(stream);
  741|  1.44k|  nghttp2_mem_free(mem, stream);
  742|       |
  743|  1.44k|  return 0;
  744|  1.44k|}
nghttp2_session.c:ob_q_free:
  746|  13.2k|static void ob_q_free(nghttp2_outbound_queue *q, nghttp2_mem *mem) {
  747|  13.2k|  nghttp2_outbound_item *item, *next;
  748|  13.4k|  for (item = q->head; item;) {
  ------------------
  |  Branch (748:24): [True: 257, False: 13.2k]
  ------------------
  749|    257|    next = item->qnext;
  750|    257|    nghttp2_outbound_item_free(item, mem);
  751|    257|    nghttp2_mem_free(mem, item);
  752|    257|    item = next;
  753|    257|  }
  754|  13.2k|}
nghttp2_session.c:active_outbound_item_reset:
  405|  38.0k|                                       nghttp2_mem *mem) {
  406|  38.0k|  DEBUGF("send: reset nghttp2_active_outbound_item\n");
  ------------------
  |  |   39|  38.0k|    do {                                                                       \
  |  |   40|  38.0k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 38.0k]
  |  |  ------------------
  ------------------
  407|  38.0k|  DEBUGF("send: aob->item = %p\n", aob->item);
  ------------------
  |  |   39|  38.0k|    do {                                                                       \
  |  |   40|  38.0k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 38.0k]
  |  |  ------------------
  ------------------
  408|  38.0k|  nghttp2_outbound_item_free(aob->item, mem);
  409|  38.0k|  nghttp2_mem_free(mem, aob->item);
  410|       |  aob->item = NULL;
  411|  38.0k|  nghttp2_bufs_reset(&aob->framebufs);
  412|  38.0k|  aob->state = NGHTTP2_OB_POP_ITEM;
  413|  38.0k|}
nghttp2_session.c:session_inbound_frame_reset:
  303|  14.3k|static void session_inbound_frame_reset(nghttp2_session *session) {
  304|  14.3k|  nghttp2_inbound_frame *iframe = &session->iframe;
  305|  14.3k|  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|  14.3k|  switch (iframe->frame.hd.type) {
  310|  6.38k|  case NGHTTP2_DATA:
  ------------------
  |  Branch (310:3): [True: 6.38k, False: 7.98k]
  ------------------
  311|  6.38k|    break;
  312|  2.29k|  case NGHTTP2_HEADERS:
  ------------------
  |  Branch (312:3): [True: 2.29k, False: 12.0k]
  ------------------
  313|  2.29k|    nghttp2_frame_headers_free(&iframe->frame.headers, mem);
  314|  2.29k|    break;
  315|      7|  case NGHTTP2_PRIORITY:
  ------------------
  |  Branch (315:3): [True: 7, False: 14.3k]
  ------------------
  316|      7|    nghttp2_frame_priority_free(&iframe->frame.priority);
  317|      7|    break;
  318|     71|  case NGHTTP2_RST_STREAM:
  ------------------
  |  Branch (318:3): [True: 71, False: 14.2k]
  ------------------
  319|     71|    nghttp2_frame_rst_stream_free(&iframe->frame.rst_stream);
  320|     71|    break;
  321|  4.50k|  case NGHTTP2_SETTINGS:
  ------------------
  |  Branch (321:3): [True: 4.50k, False: 9.85k]
  ------------------
  322|  4.50k|    nghttp2_frame_settings_free(&iframe->frame.settings, mem);
  323|       |
  324|  4.50k|    nghttp2_mem_free(mem, iframe->iv);
  325|       |
  326|  4.50k|    iframe->iv = NULL;
  327|  4.50k|    iframe->niv = 0;
  328|  4.50k|    iframe->max_niv = 0;
  329|       |
  330|  4.50k|    break;
  331|    261|  case NGHTTP2_PUSH_PROMISE:
  ------------------
  |  Branch (331:3): [True: 261, False: 14.1k]
  ------------------
  332|    261|    nghttp2_frame_push_promise_free(&iframe->frame.push_promise, mem);
  333|    261|    break;
  334|     67|  case NGHTTP2_PING:
  ------------------
  |  Branch (334:3): [True: 67, False: 14.2k]
  ------------------
  335|     67|    nghttp2_frame_ping_free(&iframe->frame.ping);
  336|     67|    break;
  337|    123|  case NGHTTP2_GOAWAY:
  ------------------
  |  Branch (337:3): [True: 123, False: 14.2k]
  ------------------
  338|    123|    nghttp2_frame_goaway_free(&iframe->frame.goaway, mem);
  339|    123|    break;
  340|    198|  case NGHTTP2_WINDOW_UPDATE:
  ------------------
  |  Branch (340:3): [True: 198, False: 14.1k]
  ------------------
  341|    198|    nghttp2_frame_window_update_free(&iframe->frame.window_update);
  342|    198|    break;
  343|    449|  default:
  ------------------
  |  Branch (343:3): [True: 449, False: 13.9k]
  ------------------
  344|       |    /* extension frame */
  345|    449|    if (check_ext_type_set(session->user_recv_ext_types,
  ------------------
  |  Branch (345:9): [True: 0, False: 449]
  ------------------
  346|    449|                           iframe->frame.hd.type)) {
  347|      0|      nghttp2_frame_extension_free(&iframe->frame.ext);
  348|    449|    } else {
  349|    449|      switch (iframe->frame.hd.type) {
  ------------------
  |  Branch (349:15): [True: 177, False: 272]
  ------------------
  350|     19|      case NGHTTP2_ALTSVC:
  ------------------
  |  Branch (350:7): [True: 19, False: 430]
  ------------------
  351|     19|        if ((session->builtin_recv_ext_types & NGHTTP2_TYPEMASK_ALTSVC) == 0) {
  ------------------
  |  Branch (351:13): [True: 19, False: 0]
  ------------------
  352|     19|          break;
  353|     19|        }
  354|      0|        nghttp2_frame_altsvc_free(&iframe->frame.ext, mem);
  355|      0|        break;
  356|    107|      case NGHTTP2_ORIGIN:
  ------------------
  |  Branch (356:7): [True: 107, False: 342]
  ------------------
  357|    107|        if ((session->builtin_recv_ext_types & NGHTTP2_TYPEMASK_ORIGIN) == 0) {
  ------------------
  |  Branch (357:13): [True: 107, False: 0]
  ------------------
  358|    107|          break;
  359|    107|        }
  360|      0|        nghttp2_frame_origin_free(&iframe->frame.ext, mem);
  361|      0|        break;
  362|     51|      case NGHTTP2_PRIORITY_UPDATE:
  ------------------
  |  Branch (362:7): [True: 51, False: 398]
  ------------------
  363|     51|        if ((session->builtin_recv_ext_types &
  ------------------
  |  Branch (363:13): [True: 51, False: 0]
  ------------------
  364|     51|             NGHTTP2_TYPEMASK_PRIORITY_UPDATE) == 0) {
  365|     51|          break;
  366|     51|        }
  367|       |        /* Do not call nghttp2_frame_priority_update_free, because all
  368|       |           fields point to sbuf. */
  369|      0|        break;
  370|    449|      }
  371|    449|    }
  372|       |
  373|    449|    break;
  374|  14.3k|  }
  375|       |
  376|  14.3k|  memset(&iframe->frame, 0, sizeof(nghttp2_frame));
  377|  14.3k|  memset(&iframe->ext_frame_payload, 0, sizeof(nghttp2_ext_frame_payload));
  378|       |
  379|  14.3k|  iframe->state = NGHTTP2_IB_READ_HEAD;
  380|       |
  381|  14.3k|  nghttp2_buf_wrap_init(&iframe->sbuf, iframe->raw_sbuf,
  382|  14.3k|                        sizeof(iframe->raw_sbuf));
  383|  14.3k|  iframe->sbuf.mark += NGHTTP2_FRAME_HDLEN;
  ------------------
  |  |   40|  14.3k|#define NGHTTP2_FRAME_HDLEN 9
  ------------------
  384|       |
  385|  14.3k|  nghttp2_buf_free(&iframe->lbuf, mem);
  386|  14.3k|  nghttp2_buf_wrap_init(&iframe->lbuf, NULL, 0);
  387|       |
  388|  14.3k|  iframe->raw_lbuf = NULL;
  389|       |
  390|  14.3k|  iframe->payloadleft = 0;
  391|  14.3k|  iframe->padlen = 0;
  392|  14.3k|}
nghttp2_session.c:session_attach_stream_item:
  887|    600|                                      nghttp2_outbound_item *item) {
  888|    600|  int rv;
  889|       |
  890|    600|  nghttp2_stream_attach_item(stream, item);
  891|       |
  892|    600|  rv = session_ob_data_push(session, stream);
  893|    600|  if (rv != 0) {
  ------------------
  |  Branch (893:7): [True: 0, False: 600]
  ------------------
  894|      0|    nghttp2_stream_detach_item(stream);
  895|       |
  896|      0|    return rv;
  897|      0|  }
  898|       |
  899|    600|  return 0;
  900|    600|}
nghttp2_session.c:session_ob_data_push:
  840|    759|                                nghttp2_stream *stream) {
  841|    759|  int rv;
  842|    759|  uint32_t urgency;
  843|    759|  int inc;
  844|    759|  nghttp2_pq *pq;
  845|       |
  846|    759|  assert(stream->queued == 0);
  ------------------
  |  Branch (846:3): [True: 0, False: 759]
  |  Branch (846:3): [True: 759, False: 0]
  ------------------
  847|       |
  848|    759|  urgency = nghttp2_extpri_uint8_urgency(stream->extpri);
  ------------------
  |  |   57|    759|  ((uint32_t)((PRI) & ~NGHTTP2_EXTPRI_INC_MASK))
  |  |  ------------------
  |  |  |  |   39|    759|#define NGHTTP2_EXTPRI_INC_MASK (1 << 7)
  |  |  ------------------
  ------------------
  849|    759|  inc = nghttp2_extpri_uint8_inc(stream->extpri);
  ------------------
  |  |   63|    759|#define nghttp2_extpri_uint8_inc(PRI) (((PRI) & NGHTTP2_EXTPRI_INC_MASK) != 0)
  |  |  ------------------
  |  |  |  |   39|    759|#define NGHTTP2_EXTPRI_INC_MASK (1 << 7)
  |  |  ------------------
  ------------------
  850|       |
  851|    759|  assert(urgency < NGHTTP2_EXTPRI_URGENCY_LEVELS);
  ------------------
  |  Branch (851:3): [True: 0, False: 759]
  |  Branch (851:3): [True: 759, False: 0]
  ------------------
  852|       |
  853|    759|  pq = &session->sched[urgency].ob_data;
  854|       |
  855|    759|  stream->cycle = pq_get_first_cycle(pq);
  856|    759|  if (inc) {
  ------------------
  |  Branch (856:7): [True: 0, False: 759]
  ------------------
  857|      0|    stream->cycle += stream->last_writelen;
  858|      0|  }
  859|       |
  860|    759|  rv = nghttp2_pq_push(pq, &stream->pq_entry);
  861|    759|  if (rv != 0) {
  ------------------
  |  Branch (861:7): [True: 0, False: 759]
  ------------------
  862|      0|    return rv;
  863|      0|  }
  864|       |
  865|    759|  stream->queued = 1;
  866|       |
  867|    759|  return 0;
  868|    759|}
nghttp2_session.c:pq_get_first_cycle:
  828|    759|static uint64_t pq_get_first_cycle(nghttp2_pq *pq) {
  829|    759|  nghttp2_stream *stream;
  830|       |
  831|    759|  if (nghttp2_pq_empty(pq)) {
  ------------------
  |  Branch (831:7): [True: 759, False: 0]
  ------------------
  832|    759|    return 0;
  833|    759|  }
  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|    759|}
nghttp2_session.c:session_detach_stream_item:
  903|    492|                                       nghttp2_stream *stream) {
  904|    492|  nghttp2_stream_detach_item(stream);
  905|       |
  906|    492|  if (!stream->queued) {
  ------------------
  |  Branch (906:7): [True: 164, False: 328]
  ------------------
  907|    164|    return;
  908|    164|  }
  909|       |
  910|    328|  session_ob_data_remove(session, stream);
  911|    328|}
nghttp2_session.c:session_ob_data_remove:
  871|    678|                                   nghttp2_stream *stream) {
  872|    678|  uint32_t urgency;
  873|       |
  874|    678|  assert(stream->queued == 1);
  ------------------
  |  Branch (874:3): [True: 0, False: 678]
  |  Branch (874:3): [True: 678, False: 0]
  ------------------
  875|       |
  876|    678|  urgency = nghttp2_extpri_uint8_urgency(stream->extpri);
  ------------------
  |  |   57|    678|  ((uint32_t)((PRI) & ~NGHTTP2_EXTPRI_INC_MASK))
  |  |  ------------------
  |  |  |  |   39|    678|#define NGHTTP2_EXTPRI_INC_MASK (1 << 7)
  |  |  ------------------
  ------------------
  877|       |
  878|    678|  assert(urgency < NGHTTP2_EXTPRI_URGENCY_LEVELS);
  ------------------
  |  Branch (878:3): [True: 0, False: 678]
  |  Branch (878:3): [True: 678, False: 0]
  ------------------
  879|       |
  880|    678|  nghttp2_pq_remove(&session->sched[urgency].ob_data, &stream->pq_entry);
  881|       |
  882|    678|  stream->queued = 0;
  883|    678|}
nghttp2_session.c:session_is_closing:
 1406|  39.7k|static int session_is_closing(nghttp2_session *session) {
 1407|  39.7k|  return (session->goaway_flags & NGHTTP2_GOAWAY_TERM_ON_SEND) != 0 ||
  ------------------
  |  Branch (1407:10): [True: 3.56k, False: 36.1k]
  ------------------
 1408|  36.1k|         (nghttp2_session_want_read(session) == 0 &&
  ------------------
  |  Branch (1408:11): [True: 59, False: 36.1k]
  ------------------
 1409|     59|          nghttp2_session_want_write(session) == 0);
  ------------------
  |  Branch (1409:11): [True: 26, False: 33]
  ------------------
 1410|  39.7k|}
nghttp2_session.c:session_is_outgoing_concurrent_streams_max:
   52|  28.2k|session_is_outgoing_concurrent_streams_max(nghttp2_session *session) {
   53|  28.2k|  return session->remote_settings.max_concurrent_streams <=
   54|  28.2k|         session->num_outgoing_streams;
   55|  28.2k|}
nghttp2_session.c:session_sched_get_next_outbound_item:
  937|  19.4k|session_sched_get_next_outbound_item(nghttp2_session *session) {
  938|  19.4k|  size_t i;
  939|  19.4k|  nghttp2_pq_entry *ent;
  940|  19.4k|  nghttp2_stream *stream;
  941|       |
  942|   169k|  for (i = 0; i < NGHTTP2_EXTPRI_URGENCY_LEVELS; ++i) {
  ------------------
  |  | 5028|   169k|#define NGHTTP2_EXTPRI_URGENCY_LEVELS (NGHTTP2_EXTPRI_URGENCY_LOW + 1)
  |  |  ------------------
  |  |  |  | 5020|   169k|#define NGHTTP2_EXTPRI_URGENCY_LOW 7
  |  |  ------------------
  ------------------
  |  Branch (942:15): [True: 151k, False: 18.3k]
  ------------------
  943|   151k|    ent = nghttp2_pq_top(&session->sched[i].ob_data);
  944|   151k|    if (!ent) {
  ------------------
  |  Branch (944:9): [True: 150k, False: 1.13k]
  ------------------
  945|   150k|      continue;
  946|   150k|    }
  947|       |
  948|  1.13k|    stream = nghttp2_struct_of(ent, nghttp2_stream, pq_entry);
  ------------------
  |  |   75|  1.13k|  ((type *)(void *)((char *)(ptr) - offsetof(type, member)))
  ------------------
  949|  1.13k|    return stream->item;
  950|   151k|  }
  951|       |
  952|  18.3k|  return NULL;
  953|  19.4k|}
nghttp2_session.c:nghttp2_session_mem_send_internal:
 2826|  47.6k|                                                       int fast_cb) {
 2827|  47.6k|  int rv;
 2828|  47.6k|  nghttp2_active_outbound_item *aob;
 2829|  47.6k|  nghttp2_bufs *framebufs;
 2830|  47.6k|  nghttp2_mem *mem;
 2831|       |
 2832|  47.6k|  mem = &session->mem;
 2833|  47.6k|  aob = &session->aob;
 2834|  47.6k|  framebufs = &aob->framebufs;
 2835|       |
 2836|  99.5k|  for (;;) {
 2837|  99.5k|    switch (aob->state) {
  ------------------
  |  Branch (2837:13): [True: 99.5k, False: 0]
  ------------------
 2838|  43.2k|    case NGHTTP2_OB_POP_ITEM: {
  ------------------
  |  Branch (2838:5): [True: 43.2k, False: 56.2k]
  ------------------
 2839|  43.2k|      nghttp2_outbound_item *item;
 2840|       |
 2841|  43.2k|      item = nghttp2_session_pop_next_ob_item(session);
 2842|  43.2k|      if (item == NULL) {
  ------------------
  |  Branch (2842:11): [True: 18.3k, False: 24.9k]
  ------------------
 2843|  18.3k|        return 0;
 2844|  18.3k|      }
 2845|       |
 2846|  24.9k|      rv = session_prep_frame(session, item);
 2847|  24.9k|      if (rv == NGHTTP2_ERR_PAUSE) {
  ------------------
  |  Branch (2847:11): [True: 0, False: 24.9k]
  ------------------
 2848|      0|        return 0;
 2849|      0|      }
 2850|  24.9k|      if (rv == NGHTTP2_ERR_DEFERRED) {
  ------------------
  |  Branch (2850:11): [True: 350, False: 24.5k]
  ------------------
 2851|    350|        DEBUGF("send: frame transmission deferred\n");
  ------------------
  |  |   39|    350|    do {                                                                       \
  |  |   40|    350|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 350]
  |  |  ------------------
  ------------------
 2852|    350|        break;
 2853|    350|      }
 2854|  24.5k|      if (rv < 0) {
  ------------------
  |  Branch (2854:11): [True: 2.03k, False: 22.5k]
  ------------------
 2855|  2.03k|        int32_t opened_stream_id = 0;
 2856|  2.03k|        uint32_t error_code = NGHTTP2_INTERNAL_ERROR;
 2857|  2.03k|        int rv2 = 0;
 2858|       |
 2859|  2.03k|        DEBUGF("send: frame preparation failed with %s\n",
  ------------------
  |  |   39|  2.03k|    do {                                                                       \
  |  |   40|  2.03k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 2.03k]
  |  |  ------------------
  ------------------
 2860|  2.03k|               nghttp2_strerror(rv));
 2861|       |        /* TODO If the error comes from compressor, the connection
 2862|       |           must be closed. */
 2863|  2.03k|        if (item->frame.hd.type != NGHTTP2_DATA &&
  ------------------
  |  Branch (2863:13): [True: 2.01k, False: 12]
  ------------------
 2864|  2.01k|            session->callbacks.on_frame_not_send_callback && is_non_fatal(rv)) {
  ------------------
  |  Branch (2864:13): [True: 0, False: 2.01k]
  |  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|  2.03k|        switch (item->frame.hd.type) {
  ------------------
  |  Branch (2884:17): [True: 6, False: 2.02k]
  ------------------
 2885|      6|        case NGHTTP2_HEADERS:
  ------------------
  |  Branch (2885:9): [True: 6, False: 2.02k]
  ------------------
 2886|      6|          if (item->frame.headers.cat == NGHTTP2_HCAT_REQUEST) {
  ------------------
  |  Branch (2886:15): [True: 6, False: 0]
  ------------------
 2887|      6|            opened_stream_id = item->frame.hd.stream_id;
 2888|      6|            if (item->aux_data.headers.canceled) {
  ------------------
  |  Branch (2888:17): [True: 0, False: 6]
  ------------------
 2889|      0|              error_code = item->aux_data.headers.error_code;
 2890|      6|            } else {
 2891|       |              /* Set error_code to REFUSED_STREAM so that application
 2892|       |                 can send request again. */
 2893|      6|              error_code = NGHTTP2_REFUSED_STREAM;
 2894|      6|            }
 2895|      6|          }
 2896|      6|          break;
 2897|      0|        case NGHTTP2_PUSH_PROMISE:
  ------------------
  |  Branch (2897:9): [True: 0, False: 2.03k]
  ------------------
 2898|      0|          opened_stream_id = item->frame.push_promise.promised_stream_id;
 2899|      0|          break;
 2900|  2.03k|        }
 2901|  2.03k|        if (opened_stream_id) {
  ------------------
  |  Branch (2901:13): [True: 6, False: 2.02k]
  ------------------
 2902|       |          /* careful not to override rv */
 2903|      6|          rv2 =
 2904|      6|            nghttp2_session_close_stream(session, opened_stream_id, error_code);
 2905|      6|        }
 2906|       |
 2907|  2.03k|        nghttp2_outbound_item_free(item, mem);
 2908|  2.03k|        nghttp2_mem_free(mem, item);
 2909|  2.03k|        active_outbound_item_reset(aob, mem);
 2910|       |
 2911|  2.03k|        if (nghttp2_is_fatal(rv2)) {
  ------------------
  |  Branch (2911:13): [True: 0, False: 2.03k]
  ------------------
 2912|      0|          return rv2;
 2913|      0|        }
 2914|       |
 2915|  2.03k|        if (rv == NGHTTP2_ERR_HEADER_COMP) {
  ------------------
  |  Branch (2915:13): [True: 0, False: 2.03k]
  ------------------
 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|  2.03k|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2921:13): [True: 0, False: 2.03k]
  ------------------
 2922|      0|          return rv;
 2923|      0|        }
 2924|  2.03k|        break;
 2925|  2.03k|      }
 2926|       |
 2927|  22.5k|      aob->item = item;
 2928|       |
 2929|  22.5k|      nghttp2_bufs_rewind(framebufs);
  ------------------
  |  |  387|  22.5k|  do {                                                                         \
  |  |  388|  22.5k|    (BUFS)->cur = (BUFS)->head;                                                \
  |  |  389|  22.5k|  } while (0)
  |  |  ------------------
  |  |  |  Branch (389:12): [Folded, False: 22.5k]
  |  |  ------------------
  ------------------
 2930|       |
 2931|  22.5k|      if (item->frame.hd.type != NGHTTP2_DATA) {
  ------------------
  |  Branch (2931:11): [True: 21.7k, False: 772]
  ------------------
 2932|  21.7k|        nghttp2_frame *frame;
 2933|       |
 2934|  21.7k|        frame = &item->frame;
 2935|       |
 2936|  21.7k|        DEBUGF("send: next frame: payloadlen=%zu, type=%u, flags=0x%02x, "
  ------------------
  |  |   39|  21.7k|    do {                                                                       \
  |  |   40|  21.7k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 21.7k]
  |  |  ------------------
  ------------------
 2937|  21.7k|               "stream_id=%d\n",
 2938|  21.7k|               frame->hd.length, frame->hd.type, frame->hd.flags,
 2939|  21.7k|               frame->hd.stream_id);
 2940|       |
 2941|  21.7k|        rv = session_call_before_frame_send(session, frame);
 2942|  21.7k|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2942:13): [True: 0, False: 21.7k]
  ------------------
 2943|      0|          return rv;
 2944|      0|        }
 2945|       |
 2946|  21.7k|        if (rv == NGHTTP2_ERR_CANCEL) {
  ------------------
  |  Branch (2946:13): [True: 0, False: 21.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|  21.7k|      } else {
 2991|    772|        DEBUGF("send: next frame: DATA\n");
  ------------------
  |  |   39|    772|    do {                                                                       \
  |  |   40|    772|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 772]
  |  |  ------------------
  ------------------
 2992|       |
 2993|    772|        if (item->aux_data.data.no_copy) {
  ------------------
  |  Branch (2993:13): [True: 0, False: 772]
  ------------------
 2994|      0|          aob->state = NGHTTP2_OB_SEND_NO_COPY;
 2995|      0|          break;
 2996|      0|        }
 2997|    772|      }
 2998|       |
 2999|  22.5k|      DEBUGF("send: start transmitting frame type=%u, length=%td\n",
  ------------------
  |  |   39|  22.5k|    do {                                                                       \
  |  |   40|  22.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 22.5k]
  |  |  ------------------
  ------------------
 3000|  22.5k|             framebufs->cur->buf.pos[3],
 3001|  22.5k|             framebufs->cur->buf.last - framebufs->cur->buf.pos);
 3002|       |
 3003|  22.5k|      aob->state = NGHTTP2_OB_SEND_DATA;
 3004|       |
 3005|  22.5k|      break;
 3006|  22.5k|    }
 3007|  47.4k|    case NGHTTP2_OB_SEND_DATA: {
  ------------------
  |  Branch (3007:5): [True: 47.4k, False: 52.0k]
  ------------------
 3008|  47.4k|      size_t datalen;
 3009|  47.4k|      nghttp2_buf *buf;
 3010|       |
 3011|  47.4k|      buf = &framebufs->cur->buf;
 3012|       |
 3013|  47.4k|      if (buf->pos == buf->last) {
  ------------------
  |  Branch (3013:11): [True: 22.5k, False: 24.9k]
  ------------------
 3014|  22.5k|        DEBUGF("send: end transmission of a frame\n");
  ------------------
  |  |   39|  22.5k|    do {                                                                       \
  |  |   40|  22.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 22.5k]
  |  |  ------------------
  ------------------
 3015|       |
 3016|       |        /* Frame has completely sent */
 3017|  22.5k|        if (fast_cb) {
  ------------------
  |  Branch (3017:13): [True: 0, False: 22.5k]
  ------------------
 3018|      0|          session_after_frame_sent2(session);
 3019|  22.5k|        } else {
 3020|  22.5k|          rv = session_after_frame_sent1(session);
 3021|  22.5k|          if (rv < 0) {
  ------------------
  |  Branch (3021:15): [True: 0, False: 22.5k]
  ------------------
 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|  22.5k|          session_after_frame_sent2(session);
 3027|  22.5k|        }
 3028|       |        /* We have already adjusted the next state */
 3029|  22.5k|        break;
 3030|  22.5k|      }
 3031|       |
 3032|  24.9k|      *data_ptr = buf->pos;
 3033|  24.9k|      datalen = nghttp2_buf_len(buf);
  ------------------
  |  |   54|  24.9k|#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|  24.9k|      buf->pos += datalen;
 3038|       |
 3039|  24.9k|      return (nghttp2_ssize)datalen;
 3040|  47.4k|    }
 3041|      0|    case NGHTTP2_OB_SEND_NO_COPY: {
  ------------------
  |  Branch (3041:5): [True: 0, False: 99.5k]
  ------------------
 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|  8.82k|    case NGHTTP2_OB_SEND_CLIENT_MAGIC: {
  ------------------
  |  Branch (3099:5): [True: 8.82k, False: 90.6k]
  ------------------
 3100|  8.82k|      size_t datalen;
 3101|  8.82k|      nghttp2_buf *buf;
 3102|       |
 3103|  8.82k|      buf = &framebufs->cur->buf;
 3104|       |
 3105|  8.82k|      if (buf->pos == buf->last) {
  ------------------
  |  Branch (3105:11): [True: 4.41k, False: 4.41k]
  ------------------
 3106|  4.41k|        DEBUGF("send: end transmission of client magic\n");
  ------------------
  |  |   39|  4.41k|    do {                                                                       \
  |  |   40|  4.41k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 4.41k]
  |  |  ------------------
  ------------------
 3107|  4.41k|        active_outbound_item_reset(aob, mem);
 3108|  4.41k|        break;
 3109|  4.41k|      }
 3110|       |
 3111|  4.41k|      *data_ptr = buf->pos;
 3112|  4.41k|      datalen = nghttp2_buf_len(buf);
  ------------------
  |  |   54|  4.41k|#define nghttp2_buf_len(BUF) ((size_t)((BUF)->last - (BUF)->pos))
  ------------------
 3113|       |
 3114|  4.41k|      buf->pos += datalen;
 3115|       |
 3116|  4.41k|      return (nghttp2_ssize)datalen;
 3117|  8.82k|    }
 3118|  99.5k|    }
 3119|  99.5k|  }
 3120|  47.6k|}
nghttp2_session.c:session_prep_frame:
 1961|  24.9k|                              nghttp2_outbound_item *item) {
 1962|  24.9k|  int rv;
 1963|  24.9k|  nghttp2_frame *frame;
 1964|  24.9k|  nghttp2_mem *mem;
 1965|       |
 1966|  24.9k|  mem = &session->mem;
 1967|  24.9k|  frame = &item->frame;
 1968|       |
 1969|  24.9k|  switch (frame->hd.type) {
 1970|  1.13k|  case NGHTTP2_DATA: {
  ------------------
  |  Branch (1970:3): [True: 1.13k, False: 23.7k]
  ------------------
 1971|  1.13k|    size_t next_readmax;
 1972|  1.13k|    nghttp2_stream *stream;
 1973|       |
 1974|  1.13k|    stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 1975|       |
 1976|  1.13k|    if (stream) {
  ------------------
  |  Branch (1976:9): [True: 1.13k, False: 0]
  ------------------
 1977|  1.13k|      assert(stream->item == item);
  ------------------
  |  Branch (1977:7): [True: 0, False: 1.13k]
  |  Branch (1977:7): [True: 1.13k, False: 0]
  ------------------
 1978|  1.13k|    }
 1979|       |
 1980|  1.13k|    rv = nghttp2_session_predicate_data_send(session, stream);
 1981|  1.13k|    if (rv != 0) {
  ------------------
  |  Branch (1981:9): [True: 12, False: 1.12k]
  ------------------
 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|     12|      stream = nghttp2_session_get_stream_raw(session, frame->hd.stream_id);
 1986|     12|      if (stream) {
  ------------------
  |  Branch (1986:11): [True: 12, False: 0]
  ------------------
 1987|     12|        session_detach_stream_item(session, stream);
 1988|     12|      }
 1989|       |
 1990|     12|      return rv;
 1991|     12|    }
 1992|       |    /* Assuming stream is not NULL */
 1993|  1.13k|    assert(stream);
  ------------------
  |  Branch (1993:5): [True: 0, False: 1.12k]
  |  Branch (1993:5): [True: 1.12k, False: 0]
  ------------------
 1994|  1.12k|    next_readmax = nghttp2_session_next_data_read(session, stream);
 1995|       |
 1996|  1.12k|    if (next_readmax == 0) {
  ------------------
  |  Branch (1996:9): [True: 40, False: 1.08k]
  ------------------
 1997|       |      /* This must be true since we only pop DATA frame item from
 1998|       |         queue when session->remote_window_size > 0 */
 1999|     40|      assert(session->remote_window_size > 0);
  ------------------
  |  Branch (1999:7): [True: 0, False: 40]
  |  Branch (1999:7): [True: 40, False: 0]
  ------------------
 2000|       |
 2001|     40|      session_defer_stream_item(session, stream,
 2002|     40|                                NGHTTP2_STREAM_FLAG_DEFERRED_FLOW_CONTROL);
 2003|       |
 2004|     40|      session->aob.item = NULL;
 2005|     40|      active_outbound_item_reset(&session->aob, mem);
 2006|     40|      return NGHTTP2_ERR_DEFERRED;
 2007|     40|    }
 2008|       |
 2009|  1.08k|    rv =
 2010|  1.08k|      nghttp2_session_pack_data(session, &session->aob.framebufs, next_readmax,
 2011|  1.08k|                                frame, &item->aux_data.data, stream);
 2012|  1.08k|    if (rv == NGHTTP2_ERR_PAUSE) {
  ------------------
  |  Branch (2012:9): [True: 0, False: 1.08k]
  ------------------
 2013|      0|      return rv;
 2014|      0|    }
 2015|  1.08k|    if (rv == NGHTTP2_ERR_DEFERRED) {
  ------------------
  |  Branch (2015:9): [True: 310, False: 772]
  ------------------
 2016|    310|      session_defer_stream_item(session, stream,
 2017|    310|                                NGHTTP2_STREAM_FLAG_DEFERRED_USER);
 2018|       |
 2019|    310|      session->aob.item = NULL;
 2020|    310|      active_outbound_item_reset(&session->aob, mem);
 2021|    310|      return NGHTTP2_ERR_DEFERRED;
 2022|    310|    }
 2023|    772|    if (rv == NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE) {
  ------------------
  |  Branch (2023:9): [True: 0, False: 772]
  ------------------
 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|    772|    if (rv != 0) {
  ------------------
  |  Branch (2033:9): [True: 0, False: 772]
  ------------------
 2034|      0|      session_detach_stream_item(session, stream);
 2035|       |
 2036|      0|      return rv;
 2037|      0|    }
 2038|    772|    return 0;
 2039|    772|  }
 2040|  4.38k|  case NGHTTP2_HEADERS: {
  ------------------
  |  Branch (2040:3): [True: 4.38k, False: 20.5k]
  ------------------
 2041|  4.38k|    nghttp2_headers_aux_data *aux_data;
 2042|  4.38k|    size_t estimated_payloadlen;
 2043|       |
 2044|  4.38k|    aux_data = &item->aux_data.headers;
 2045|       |
 2046|  4.38k|    if (frame->headers.cat == NGHTTP2_HCAT_REQUEST) {
  ------------------
  |  Branch (2046:9): [True: 4.38k, False: 0]
  ------------------
 2047|       |      /* initial HEADERS, which opens stream */
 2048|  4.38k|      nghttp2_stream *stream;
 2049|       |
 2050|  4.38k|      stream = nghttp2_session_open_stream(
 2051|  4.38k|        session, frame->hd.stream_id, NGHTTP2_STREAM_FLAG_NONE,
 2052|  4.38k|        NGHTTP2_STREAM_INITIAL, aux_data->stream_user_data);
 2053|       |
 2054|  4.38k|      if (stream == NULL) {
  ------------------
  |  Branch (2054:11): [True: 0, False: 4.38k]
  ------------------
 2055|      0|        return NGHTTP2_ERR_NOMEM;
 2056|      0|      }
 2057|       |
 2058|  4.38k|      rv = session_predicate_request_headers_send(session, item);
 2059|  4.38k|      if (rv != 0) {
  ------------------
  |  Branch (2059:11): [True: 0, False: 4.38k]
  ------------------
 2060|      0|        return rv;
 2061|      0|      }
 2062|       |
 2063|  4.38k|      if (session_enforce_http_messaging(session)) {
  ------------------
  |  Branch (2063:11): [True: 4.38k, False: 0]
  ------------------
 2064|  4.38k|        nghttp2_http_record_request_method(stream, frame);
 2065|  4.38k|      }
 2066|  4.38k|    } 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|  4.38k|    estimated_payloadlen = session_estimate_headers_payload(
 2096|  4.38k|      session, frame->headers.nva, frame->headers.nvlen,
 2097|  4.38k|      NGHTTP2_PRIORITY_SPECLEN);
  ------------------
  |  |   64|  4.38k|#define NGHTTP2_PRIORITY_SPECLEN 5
  ------------------
 2098|       |
 2099|  4.38k|    if (estimated_payloadlen > session->max_send_header_block_length) {
  ------------------
  |  Branch (2099:9): [True: 6, False: 4.38k]
  ------------------
 2100|      6|      return NGHTTP2_ERR_FRAME_SIZE_ERROR;
 2101|      6|    }
 2102|       |
 2103|  4.38k|    rv = nghttp2_frame_pack_headers(&session->aob.framebufs, &frame->headers,
 2104|  4.38k|                                    &session->hd_deflater);
 2105|       |
 2106|  4.38k|    if (rv != 0) {
  ------------------
  |  Branch (2106:9): [True: 0, False: 4.38k]
  ------------------
 2107|      0|      return rv;
 2108|      0|    }
 2109|       |
 2110|  4.38k|    DEBUGF("send: before padding, HEADERS serialized in %zu bytes\n",
  ------------------
  |  |   39|  4.38k|    do {                                                                       \
  |  |   40|  4.38k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 4.38k]
  |  |  ------------------
  ------------------
 2111|  4.38k|           nghttp2_bufs_len(&session->aob.framebufs));
 2112|       |
 2113|  4.38k|    rv = session_headers_add_pad(session, frame);
 2114|       |
 2115|  4.38k|    if (rv != 0) {
  ------------------
  |  Branch (2115:9): [True: 0, False: 4.38k]
  ------------------
 2116|      0|      return rv;
 2117|      0|    }
 2118|       |
 2119|  4.38k|    DEBUGF("send: HEADERS finally serialized in %zu bytes\n",
  ------------------
  |  |   39|  4.38k|    do {                                                                       \
  |  |   40|  4.38k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 4.38k]
  |  |  ------------------
  ------------------
 2120|  4.38k|           nghttp2_bufs_len(&session->aob.framebufs));
 2121|       |
 2122|  4.38k|    if (frame->headers.cat == NGHTTP2_HCAT_REQUEST) {
  ------------------
  |  Branch (2122:9): [True: 4.38k, False: 0]
  ------------------
 2123|  4.38k|      assert(session->last_sent_stream_id < frame->hd.stream_id);
  ------------------
  |  Branch (2123:7): [True: 0, False: 4.38k]
  |  Branch (2123:7): [True: 4.38k, False: 0]
  ------------------
 2124|  4.38k|      session->last_sent_stream_id = frame->hd.stream_id;
 2125|  4.38k|    }
 2126|       |
 2127|  4.38k|    return 0;
 2128|  4.38k|  }
 2129|      0|  case NGHTTP2_PRIORITY: {
  ------------------
  |  Branch (2129:3): [True: 0, False: 24.9k]
  ------------------
 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|  4.35k|  case NGHTTP2_RST_STREAM:
  ------------------
  |  Branch (2143:3): [True: 4.35k, False: 20.5k]
  ------------------
 2144|  4.35k|    if (session_is_closing(session)) {
  ------------------
  |  Branch (2144:9): [True: 1.36k, False: 2.99k]
  ------------------
 2145|  1.36k|      return NGHTTP2_ERR_SESSION_CLOSING;
 2146|  1.36k|    }
 2147|       |
 2148|  2.99k|    if (!item->aux_data.rst_stream.continue_without_stream &&
  ------------------
  |  Branch (2148:9): [True: 2.55k, False: 434]
  ------------------
 2149|  2.55k|        !nghttp2_session_get_stream(session, frame->rst_stream.hd.stream_id)) {
  ------------------
  |  Branch (2149:9): [True: 1, False: 2.55k]
  ------------------
 2150|      1|      return NGHTTP2_ERR_STREAM_CLOSED;
 2151|      1|    }
 2152|       |
 2153|  2.99k|    nghttp2_frame_pack_rst_stream(&session->aob.framebufs, &frame->rst_stream);
 2154|  2.99k|    return 0;
 2155|  8.39k|  case NGHTTP2_SETTINGS: {
  ------------------
  |  Branch (2155:3): [True: 8.39k, False: 16.5k]
  ------------------
 2156|  8.39k|    if (frame->hd.flags & NGHTTP2_FLAG_ACK) {
  ------------------
  |  Branch (2156:9): [True: 3.98k, False: 4.41k]
  ------------------
 2157|  3.98k|      assert(session->obq_flood_counter_ > 0);
  ------------------
  |  Branch (2157:7): [True: 0, False: 3.98k]
  |  Branch (2157:7): [True: 3.98k, False: 0]
  ------------------
 2158|  3.98k|      --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|  3.98k|      if (session_is_closing(session)) {
  ------------------
  |  Branch (2163:11): [True: 628, False: 3.35k]
  ------------------
 2164|    628|        return NGHTTP2_ERR_SESSION_CLOSING;
 2165|    628|      }
 2166|  3.98k|    }
 2167|       |
 2168|  7.76k|    rv = nghttp2_frame_pack_settings(&session->aob.framebufs, &frame->settings);
 2169|  7.76k|    if (rv != 0) {
  ------------------
  |  Branch (2169:9): [True: 0, False: 7.76k]
  ------------------
 2170|      0|      return rv;
 2171|      0|    }
 2172|  7.76k|    return 0;
 2173|  7.76k|  }
 2174|      0|  case NGHTTP2_PUSH_PROMISE: {
  ------------------
  |  Branch (2174:3): [True: 0, False: 24.9k]
  ------------------
 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|     27|  case NGHTTP2_PING:
  ------------------
  |  Branch (2213:3): [True: 27, False: 24.9k]
  ------------------
 2214|     27|    if (frame->hd.flags & NGHTTP2_FLAG_ACK) {
  ------------------
  |  Branch (2214:9): [True: 27, False: 0]
  ------------------
 2215|     27|      assert(session->obq_flood_counter_ > 0);
  ------------------
  |  Branch (2215:7): [True: 0, False: 27]
  |  Branch (2215:7): [True: 27, False: 0]
  ------------------
 2216|     27|      --session->obq_flood_counter_;
 2217|     27|    }
 2218|       |    /* PING frame is allowed to be sent unless termination GOAWAY is
 2219|       |       sent */
 2220|     27|    if (session->goaway_flags & NGHTTP2_GOAWAY_TERM_ON_SEND) {
  ------------------
  |  Branch (2220:9): [True: 14, False: 13]
  ------------------
 2221|     14|      return NGHTTP2_ERR_SESSION_CLOSING;
 2222|     14|    }
 2223|     13|    nghttp2_frame_pack_ping(&session->aob.framebufs, &frame->ping);
 2224|     13|    return 0;
 2225|  2.13k|  case NGHTTP2_GOAWAY:
  ------------------
  |  Branch (2225:3): [True: 2.13k, False: 22.7k]
  ------------------
 2226|  2.13k|    rv = nghttp2_frame_pack_goaway(&session->aob.framebufs, &frame->goaway);
 2227|  2.13k|    if (rv != 0) {
  ------------------
  |  Branch (2227:9): [True: 0, False: 2.13k]
  ------------------
 2228|      0|      return rv;
 2229|      0|    }
 2230|  2.13k|    session->local_last_stream_id = frame->goaway.last_stream_id;
 2231|       |
 2232|  2.13k|    return 0;
 2233|  4.49k|  case NGHTTP2_WINDOW_UPDATE:
  ------------------
  |  Branch (2233:3): [True: 4.49k, False: 20.4k]
  ------------------
 2234|  4.49k|    rv = session_predicate_window_update_send(session, frame->hd.stream_id);
 2235|  4.49k|    if (rv != 0) {
  ------------------
  |  Branch (2235:9): [True: 7, False: 4.48k]
  ------------------
 2236|      7|      return rv;
 2237|      7|    }
 2238|  4.48k|    nghttp2_frame_pack_window_update(&session->aob.framebufs,
 2239|  4.48k|                                     &frame->window_update);
 2240|  4.48k|    return 0;
 2241|      0|  case NGHTTP2_CONTINUATION:
  ------------------
  |  Branch (2241:3): [True: 0, False: 24.9k]
  ------------------
 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: 24.9k]
  ------------------
 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|  24.9k|  }
 2301|  24.9k|}
nghttp2_session.c:nghttp2_session_predicate_data_send:
 1810|  1.53k|                                               nghttp2_stream *stream) {
 1811|  1.53k|  int rv;
 1812|  1.53k|  rv = session_predicate_for_stream_send(session, stream);
 1813|  1.53k|  if (rv != 0) {
  ------------------
  |  Branch (1813:7): [True: 40, False: 1.49k]
  ------------------
 1814|     40|    return rv;
 1815|     40|  }
 1816|  1.53k|  assert(stream);
  ------------------
  |  Branch (1816:3): [True: 0, False: 1.49k]
  |  Branch (1816:3): [True: 1.49k, False: 0]
  ------------------
 1817|  1.49k|  if (nghttp2_session_is_my_stream_id(session, stream->stream_id)) {
  ------------------
  |  Branch (1817:7): [True: 1.49k, 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.49k|    if (stream->state == NGHTTP2_STREAM_CLOSING) {
  ------------------
  |  Branch (1822:9): [True: 1, False: 1.49k]
  ------------------
 1823|      1|      return NGHTTP2_ERR_STREAM_CLOSING;
 1824|      1|    }
 1825|  1.49k|    if (stream->state == NGHTTP2_STREAM_RESERVED) {
  ------------------
  |  Branch (1825:9): [True: 0, False: 1.49k]
  ------------------
 1826|      0|      return NGHTTP2_ERR_INVALID_STREAM_STATE;
 1827|      0|    }
 1828|  1.49k|    return 0;
 1829|  1.49k|  }
 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.53k|                                             nghttp2_stream *stream) {
 1426|  1.53k|  if (stream == NULL) {
  ------------------
  |  Branch (1426:7): [True: 8, False: 1.53k]
  ------------------
 1427|      8|    return NGHTTP2_ERR_STREAM_CLOSED;
 1428|      8|  }
 1429|  1.53k|  if (session_is_closing(session)) {
  ------------------
  |  Branch (1429:7): [True: 32, False: 1.49k]
  ------------------
 1430|     32|    return NGHTTP2_ERR_SESSION_CLOSING;
 1431|     32|  }
 1432|  1.49k|  if (stream->shut_flags & NGHTTP2_SHUT_WR) {
  ------------------
  |  Branch (1432:7): [True: 0, False: 1.49k]
  ------------------
 1433|      0|    return NGHTTP2_ERR_STREAM_SHUT_WR;
 1434|      0|  }
 1435|  1.49k|  return 0;
 1436|  1.49k|}
nghttp2_session.c:nghttp2_session_next_data_read:
 1779|  1.12k|                                             nghttp2_stream *stream) {
 1780|  1.12k|  nghttp2_ssize window_size;
 1781|       |
 1782|  1.12k|  window_size = nghttp2_session_enforce_flow_control_limits(
 1783|  1.12k|    session, stream, NGHTTP2_DATA_PAYLOADLEN);
  ------------------
  |  |   53|  1.12k|#define NGHTTP2_DATA_PAYLOADLEN NGHTTP2_MAX_FRAME_SIZE_MIN
  |  |  ------------------
  |  |  |  |   43|  1.12k|#define NGHTTP2_MAX_FRAME_SIZE_MIN (1 << 14)
  |  |  ------------------
  ------------------
 1784|       |
 1785|  1.12k|  DEBUGF("send: available window=%td\n", window_size);
  ------------------
  |  |   39|  1.12k|    do {                                                                       \
  |  |   40|  1.12k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 1.12k]
  |  |  ------------------
  ------------------
 1786|       |
 1787|  1.12k|  return window_size > 0 ? (size_t)window_size : 0;
  ------------------
  |  Branch (1787:10): [True: 1.08k, False: 40]
  ------------------
 1788|  1.12k|}
nghttp2_session.c:session_defer_stream_item:
  914|    350|                                      nghttp2_stream *stream, uint8_t flags) {
  915|    350|  nghttp2_stream_defer_item(stream, flags);
  916|       |
  917|    350|  if (!stream->queued) {
  ------------------
  |  Branch (917:7): [True: 0, False: 350]
  ------------------
  918|      0|    return;
  919|      0|  }
  920|       |
  921|    350|  session_ob_data_remove(session, stream);
  922|    350|}
nghttp2_session.c:session_predicate_request_headers_send:
 1459|  4.38k|                                                  nghttp2_outbound_item *item) {
 1460|  4.38k|  if (item->aux_data.headers.canceled) {
  ------------------
  |  Branch (1460:7): [True: 0, False: 4.38k]
  ------------------
 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|  4.38k|  if ((session->goaway_flags & NGHTTP2_GOAWAY_RECV) ||
  ------------------
  |  Branch (1466:7): [True: 0, False: 4.38k]
  ------------------
 1467|  4.38k|      session_is_closing(session)) {
  ------------------
  |  Branch (1467:7): [True: 0, False: 4.38k]
  ------------------
 1468|      0|    return NGHTTP2_ERR_START_STREAM_NOT_ALLOWED;
 1469|      0|  }
 1470|  4.38k|  return 0;
 1471|  4.38k|}
nghttp2_session.c:session_estimate_headers_payload:
 1908|  4.38k|                                               size_t additional) {
 1909|  4.38k|  return nghttp2_hd_deflate_bound(&session->hd_deflater, nva, nvlen) +
 1910|  4.38k|         additional;
 1911|  4.38k|}
nghttp2_session.c:session_headers_add_pad:
 1873|  4.38k|                                   nghttp2_frame *frame) {
 1874|  4.38k|  nghttp2_ssize padded_payloadlen;
 1875|  4.38k|  nghttp2_active_outbound_item *aob;
 1876|  4.38k|  nghttp2_bufs *framebufs;
 1877|  4.38k|  size_t padlen;
 1878|  4.38k|  size_t max_payloadlen;
 1879|       |
 1880|  4.38k|  aob = &session->aob;
 1881|  4.38k|  framebufs = &aob->framebufs;
 1882|       |
 1883|  4.38k|  max_payloadlen = nghttp2_min_size(NGHTTP2_MAX_PAYLOADLEN,
  ------------------
  |  |   45|  4.38k|#define NGHTTP2_MAX_PAYLOADLEN 16384
  ------------------
 1884|  4.38k|                                    frame->hd.length + NGHTTP2_MAX_PADLEN);
  ------------------
  |  |   67|  4.38k|#define NGHTTP2_MAX_PADLEN 256
  ------------------
 1885|       |
 1886|  4.38k|  padded_payloadlen =
 1887|  4.38k|    session_call_select_padding(session, frame, max_payloadlen);
 1888|       |
 1889|  4.38k|  if (nghttp2_is_fatal((int)padded_payloadlen)) {
  ------------------
  |  Branch (1889:7): [True: 0, False: 4.38k]
  ------------------
 1890|      0|    return (int)padded_payloadlen;
 1891|      0|  }
 1892|       |
 1893|  4.38k|  padlen = (size_t)padded_payloadlen - frame->hd.length;
 1894|       |
 1895|  4.38k|  DEBUGF("send: padding selected: payloadlen=%td, padlen=%zu\n",
  ------------------
  |  |   39|  4.38k|    do {                                                                       \
  |  |   40|  4.38k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 4.38k]
  |  |  ------------------
  ------------------
 1896|  4.38k|         padded_payloadlen, padlen);
 1897|       |
 1898|  4.38k|  nghttp2_frame_add_pad(framebufs, &frame->hd, padlen, 0);
 1899|       |
 1900|  4.38k|  frame->headers.padlen = padlen;
 1901|       |
 1902|  4.38k|  return 0;
 1903|  4.38k|}
nghttp2_session.c:session_predicate_window_update_send:
 1679|  4.49k|                                                int32_t stream_id) {
 1680|  4.49k|  nghttp2_stream *stream;
 1681|       |
 1682|  4.49k|  if (session_is_closing(session)) {
  ------------------
  |  Branch (1682:7): [True: 4, False: 4.49k]
  ------------------
 1683|      4|    return NGHTTP2_ERR_SESSION_CLOSING;
 1684|      4|  }
 1685|       |
 1686|  4.49k|  if (stream_id == 0) {
  ------------------
  |  Branch (1686:7): [True: 4.41k, False: 78]
  ------------------
 1687|       |    /* Connection-level window update */
 1688|  4.41k|    return 0;
 1689|  4.41k|  }
 1690|     78|  stream = nghttp2_session_get_stream(session, stream_id);
 1691|     78|  if (stream == NULL) {
  ------------------
  |  Branch (1691:7): [True: 2, False: 76]
  ------------------
 1692|      2|    return NGHTTP2_ERR_STREAM_CLOSED;
 1693|      2|  }
 1694|     76|  if (stream->state == NGHTTP2_STREAM_CLOSING) {
  ------------------
  |  Branch (1694:7): [True: 1, False: 75]
  ------------------
 1695|      1|    return NGHTTP2_ERR_STREAM_CLOSING;
 1696|      1|  }
 1697|     75|  if (state_reserved_local(session, stream)) {
  ------------------
  |  Branch (1697:7): [True: 0, False: 75]
  ------------------
 1698|      0|    return NGHTTP2_ERR_INVALID_STREAM_STATE;
 1699|      0|  }
 1700|     75|  return 0;
 1701|     75|}
nghttp2_session.c:state_reserved_local:
  120|     75|                                nghttp2_stream *stream) {
  121|     75|  return stream->state == NGHTTP2_STREAM_RESERVED &&
  ------------------
  |  Branch (121:10): [True: 0, False: 75]
  ------------------
  122|      0|         nghttp2_session_is_my_stream_id(session, stream->stream_id);
  ------------------
  |  Branch (122:10): [True: 0, False: 0]
  ------------------
  123|     75|}
nghttp2_session.c:session_call_before_frame_send:
 2361|  21.7k|                                          nghttp2_frame *frame) {
 2362|  21.7k|  int rv;
 2363|  21.7k|  if (session->callbacks.before_frame_send_callback) {
  ------------------
  |  Branch (2363:7): [True: 0, False: 21.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|  21.7k|  return 0;
 2375|  21.7k|}
nghttp2_session.c:session_after_frame_sent2:
 2725|  22.5k|static void session_after_frame_sent2(nghttp2_session *session) {
 2726|  22.5k|  nghttp2_active_outbound_item *aob = &session->aob;
 2727|  22.5k|  nghttp2_outbound_item *item = aob->item;
 2728|  22.5k|  nghttp2_bufs *framebufs = &aob->framebufs;
 2729|  22.5k|  nghttp2_frame *frame;
 2730|  22.5k|  nghttp2_mem *mem;
 2731|  22.5k|  nghttp2_stream *stream;
 2732|  22.5k|  nghttp2_data_aux_data *aux_data;
 2733|       |
 2734|  22.5k|  mem = &session->mem;
 2735|  22.5k|  frame = &item->frame;
 2736|       |
 2737|  22.5k|  if (frame->hd.type != NGHTTP2_DATA) {
  ------------------
  |  Branch (2737:7): [True: 21.8k, False: 685]
  ------------------
 2738|  21.8k|    if (frame->hd.type == NGHTTP2_HEADERS ||
  ------------------
  |  Branch (2738:9): [True: 4.42k, False: 17.3k]
  ------------------
 2739|  17.3k|        frame->hd.type == NGHTTP2_PUSH_PROMISE) {
  ------------------
  |  Branch (2739:9): [True: 0, False: 17.3k]
  ------------------
 2740|  4.42k|      if (nghttp2_bufs_next_present(framebufs)) {
  ------------------
  |  Branch (2740:11): [True: 49, False: 4.37k]
  ------------------
 2741|     49|        framebufs->cur = framebufs->cur->next;
 2742|       |
 2743|     49|        DEBUGF("send: next CONTINUATION frame, %zu bytes\n",
  ------------------
  |  |   39|     49|    do {                                                                       \
  |  |   40|     49|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 49]
  |  |  ------------------
  ------------------
 2744|     49|               nghttp2_buf_len(&framebufs->cur->buf));
 2745|       |
 2746|     49|        return;
 2747|     49|      }
 2748|  4.42k|    }
 2749|       |
 2750|  21.7k|    active_outbound_item_reset(&session->aob, mem);
 2751|       |
 2752|  21.7k|    return;
 2753|  21.8k|  }
 2754|       |
 2755|       |  /* DATA frame */
 2756|       |
 2757|    685|  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|    685|  if (aux_data->eof) {
  ------------------
  |  Branch (2763:7): [True: 281, False: 404]
  ------------------
 2764|    281|    active_outbound_item_reset(aob, mem);
 2765|       |
 2766|    281|    return;
 2767|    281|  }
 2768|       |
 2769|       |  /* Reset no_copy here because next write may not use this. */
 2770|    404|  aux_data->no_copy = 0;
 2771|       |
 2772|    404|  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|    404|  if (nghttp2_session_predicate_data_send(session, stream) != 0) {
  ------------------
  |  Branch (2776:7): [True: 29, False: 375]
  ------------------
 2777|     29|    if (stream) {
  ------------------
  |  Branch (2777:9): [True: 21, False: 8]
  ------------------
 2778|     21|      session_detach_stream_item(session, stream);
 2779|     21|    }
 2780|       |
 2781|     29|    active_outbound_item_reset(aob, mem);
 2782|       |
 2783|     29|    return;
 2784|     29|  }
 2785|       |
 2786|    375|  aob->item = NULL;
 2787|    375|  active_outbound_item_reset(&session->aob, mem);
 2788|       |
 2789|    375|  return;
 2790|    404|}
nghttp2_session.c:session_after_frame_sent1:
 2495|  22.5k|static int session_after_frame_sent1(nghttp2_session *session) {
 2496|  22.5k|  int rv;
 2497|  22.5k|  nghttp2_active_outbound_item *aob = &session->aob;
 2498|  22.5k|  nghttp2_outbound_item *item = aob->item;
 2499|  22.5k|  nghttp2_bufs *framebufs = &aob->framebufs;
 2500|  22.5k|  nghttp2_frame *frame;
 2501|  22.5k|  nghttp2_stream *stream;
 2502|       |
 2503|  22.5k|  frame = &item->frame;
 2504|       |
 2505|  22.5k|  if (frame->hd.type == NGHTTP2_DATA) {
  ------------------
  |  Branch (2505:7): [True: 685, False: 21.8k]
  ------------------
 2506|    685|    nghttp2_data_aux_data *aux_data;
 2507|       |
 2508|    685|    aux_data = &item->aux_data.data;
 2509|       |
 2510|    685|    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|    685|    session->remote_window_size -= (int32_t)frame->hd.length;
 2515|    685|    if (stream) {
  ------------------
  |  Branch (2515:9): [True: 677, False: 8]
  ------------------
 2516|    677|      stream->remote_window_size -= (int32_t)frame->hd.length;
 2517|    677|    }
 2518|       |
 2519|    685|    if (stream && aux_data->eof) {
  ------------------
  |  Branch (2519:9): [True: 677, False: 8]
  |  Branch (2519:19): [True: 281, False: 396]
  ------------------
 2520|    281|      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|    281|      if (session->callbacks.on_frame_send_callback) {
  ------------------
  |  Branch (2525:11): [True: 281, False: 0]
  ------------------
 2526|    281|        rv = session_call_on_frame_send(session, frame);
 2527|    281|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2527:13): [True: 0, False: 281]
  ------------------
 2528|      0|          return rv;
 2529|      0|        }
 2530|    281|      }
 2531|       |
 2532|    281|      if (frame->hd.flags & NGHTTP2_FLAG_END_STREAM) {
  ------------------
  |  Branch (2532:11): [True: 281, False: 0]
  ------------------
 2533|    281|        int stream_closed;
 2534|       |
 2535|    281|        stream_closed =
 2536|    281|          (stream->shut_flags & NGHTTP2_SHUT_RDWR) == NGHTTP2_SHUT_RDWR;
 2537|       |
 2538|    281|        nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_WR);
 2539|       |
 2540|    281|        rv = nghttp2_session_close_stream_if_shut_rdwr(session, stream);
 2541|    281|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2541:13): [True: 0, False: 281]
  ------------------
 2542|      0|          return rv;
 2543|      0|        }
 2544|       |        /* stream may be NULL if it was closed */
 2545|    281|        if (stream_closed) {
  ------------------
  |  Branch (2545:13): [True: 0, False: 281]
  ------------------
 2546|      0|          stream = NULL;
 2547|      0|        }
 2548|    281|      }
 2549|    281|      return 0;
 2550|    281|    }
 2551|       |
 2552|    404|    if (session->callbacks.on_frame_send_callback) {
  ------------------
  |  Branch (2552:9): [True: 404, False: 0]
  ------------------
 2553|    404|      rv = session_call_on_frame_send(session, frame);
 2554|    404|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2554:11): [True: 0, False: 404]
  ------------------
 2555|      0|        return rv;
 2556|      0|      }
 2557|    404|    }
 2558|       |
 2559|    404|    return 0;
 2560|    404|  }
 2561|       |
 2562|       |  /* non-DATA frame */
 2563|       |
 2564|  21.8k|  if (frame->hd.type == NGHTTP2_HEADERS ||
  ------------------
  |  Branch (2564:7): [True: 4.42k, False: 17.3k]
  ------------------
 2565|  17.3k|      frame->hd.type == NGHTTP2_PUSH_PROMISE) {
  ------------------
  |  Branch (2565:7): [True: 0, False: 17.3k]
  ------------------
 2566|  4.42k|    if (nghttp2_bufs_next_present(framebufs)) {
  ------------------
  |  Branch (2566:9): [True: 49, False: 4.37k]
  ------------------
 2567|     49|      DEBUGF("send: CONTINUATION exists, just return\n");
  ------------------
  |  |   39|     49|    do {                                                                       \
  |  |   40|     49|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 49]
  |  |  ------------------
  ------------------
 2568|     49|      return 0;
 2569|     49|    }
 2570|  4.42k|  }
 2571|  21.7k|  rv = session_call_on_frame_send(session, frame);
 2572|  21.7k|  if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2572:7): [True: 0, False: 21.7k]
  ------------------
 2573|      0|    return rv;
 2574|      0|  }
 2575|  21.7k|  switch (frame->hd.type) {
 2576|  4.37k|  case NGHTTP2_HEADERS: {
  ------------------
  |  Branch (2576:3): [True: 4.37k, False: 17.3k]
  ------------------
 2577|  4.37k|    nghttp2_headers_aux_data *aux_data;
 2578|       |
 2579|  4.37k|    stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 2580|  4.37k|    if (!stream) {
  ------------------
  |  Branch (2580:9): [True: 0, False: 4.37k]
  ------------------
 2581|      0|      return 0;
 2582|      0|    }
 2583|       |
 2584|  4.37k|    switch (frame->headers.cat) {
 2585|  4.37k|    case NGHTTP2_HCAT_REQUEST: {
  ------------------
  |  Branch (2585:5): [True: 4.37k, False: 0]
  ------------------
 2586|  4.37k|      stream->state = NGHTTP2_STREAM_OPENING;
 2587|  4.37k|      if (frame->hd.flags & NGHTTP2_FLAG_END_STREAM) {
  ------------------
  |  Branch (2587:11): [True: 3.77k, False: 600]
  ------------------
 2588|  3.77k|        nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_WR);
 2589|  3.77k|      }
 2590|  4.37k|      rv = nghttp2_session_close_stream_if_shut_rdwr(session, stream);
 2591|  4.37k|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2591:11): [True: 0, False: 4.37k]
  ------------------
 2592|      0|        return rv;
 2593|      0|      }
 2594|       |      /* We assume aux_data is a pointer to nghttp2_headers_aux_data */
 2595|  4.37k|      aux_data = &item->aux_data.headers;
 2596|  4.37k|      if (nghttp2_data_provider_wrap_contains_read_callback(&aux_data->dpw)) {
  ------------------
  |  Branch (2596:11): [True: 600, False: 3.77k]
  ------------------
 2597|       |        /* nghttp2_submit_data_shared() makes a copy of
 2598|       |           aux_data->dpw */
 2599|    600|        rv = nghttp2_submit_data_shared(session, NGHTTP2_FLAG_END_STREAM,
 2600|    600|                                        frame->hd.stream_id, &aux_data->dpw);
 2601|    600|        if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2601:13): [True: 0, False: 600]
  ------------------
 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|    600|      }
 2608|  4.37k|      return 0;
 2609|  4.37k|    }
 2610|      0|    case NGHTTP2_HCAT_PUSH_RESPONSE:
  ------------------
  |  Branch (2610:5): [True: 0, False: 4.37k]
  ------------------
 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: 4.37k]
  ------------------
 2615|      0|      stream->state = NGHTTP2_STREAM_OPENED;
 2616|       |    /* Fall through */
 2617|      0|    case NGHTTP2_HCAT_HEADERS:
  ------------------
  |  Branch (2617:5): [True: 0, False: 4.37k]
  ------------------
 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: 4.37k]
  ------------------
 2639|       |      /* Unreachable */
 2640|      0|      assert(0);
  ------------------
  |  Branch (2640:7): [Folded, False: 0]
  |  Branch (2640:7): [Folded, False: 0]
  ------------------
 2641|      0|      return 0;
 2642|  4.37k|    }
 2643|  4.37k|  }
 2644|      0|  case NGHTTP2_PRIORITY:
  ------------------
  |  Branch (2644:3): [True: 0, False: 21.7k]
  ------------------
 2645|      0|    return 0;
 2646|  2.99k|  case NGHTTP2_RST_STREAM:
  ------------------
  |  Branch (2646:3): [True: 2.99k, False: 18.7k]
  ------------------
 2647|  2.99k|    rv = nghttp2_session_close_stream(session, frame->hd.stream_id,
 2648|  2.99k|                                      frame->rst_stream.error_code);
 2649|  2.99k|    if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2649:9): [True: 0, False: 2.99k]
  ------------------
 2650|      0|      return rv;
 2651|      0|    }
 2652|  2.99k|    return 0;
 2653|  2.13k|  case NGHTTP2_GOAWAY: {
  ------------------
  |  Branch (2653:3): [True: 2.13k, False: 19.6k]
  ------------------
 2654|  2.13k|    nghttp2_goaway_aux_data *aux_data;
 2655|       |
 2656|  2.13k|    aux_data = &item->aux_data.goaway;
 2657|       |
 2658|  2.13k|    if ((aux_data->flags & NGHTTP2_GOAWAY_AUX_SHUTDOWN_NOTICE) == 0) {
  ------------------
  |  Branch (2658:9): [True: 2.13k, False: 0]
  ------------------
 2659|  2.13k|      if (aux_data->flags & NGHTTP2_GOAWAY_AUX_TERM_ON_SEND) {
  ------------------
  |  Branch (2659:11): [True: 1.38k, False: 751]
  ------------------
 2660|  1.38k|        session->goaway_flags |= NGHTTP2_GOAWAY_TERM_SENT;
 2661|  1.38k|      }
 2662|       |
 2663|  2.13k|      session->goaway_flags |= NGHTTP2_GOAWAY_SENT;
 2664|       |
 2665|  2.13k|      rv = session_close_stream_on_goaway(session, frame->goaway.last_stream_id,
 2666|  2.13k|                                          1);
 2667|       |
 2668|  2.13k|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2668:11): [True: 0, False: 2.13k]
  ------------------
 2669|      0|        return rv;
 2670|      0|      }
 2671|  2.13k|    }
 2672|       |
 2673|  2.13k|    return 0;
 2674|  2.13k|  }
 2675|  4.48k|  case NGHTTP2_WINDOW_UPDATE:
  ------------------
  |  Branch (2675:3): [True: 4.48k, False: 17.2k]
  ------------------
 2676|  4.48k|    if (frame->hd.stream_id == 0) {
  ------------------
  |  Branch (2676:9): [True: 4.41k, False: 75]
  ------------------
 2677|  4.41k|      session->window_update_queued = 0;
 2678|  4.41k|      if (session->opt_flags & NGHTTP2_OPTMASK_NO_AUTO_WINDOW_UPDATE) {
  ------------------
  |  Branch (2678:11): [True: 4.41k, False: 0]
  ------------------
 2679|  4.41k|        rv = session_update_connection_consumed_size(session, 0);
 2680|  4.41k|      } else {
 2681|      0|        rv = nghttp2_session_update_recv_connection_window_size(session, 0);
 2682|      0|      }
 2683|       |
 2684|  4.41k|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2684:11): [True: 0, False: 4.41k]
  ------------------
 2685|      0|        return rv;
 2686|      0|      }
 2687|       |
 2688|  4.41k|      return 0;
 2689|  4.41k|    }
 2690|       |
 2691|     75|    stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 2692|     75|    if (!stream) {
  ------------------
  |  Branch (2692:9): [True: 0, False: 75]
  ------------------
 2693|      0|      return 0;
 2694|      0|    }
 2695|       |
 2696|     75|    stream->window_update_queued = 0;
 2697|       |
 2698|       |    /* We don't have to send WINDOW_UPDATE if END_STREAM from peer
 2699|       |       is seen. */
 2700|     75|    if (stream->shut_flags & NGHTTP2_SHUT_RD) {
  ------------------
  |  Branch (2700:9): [True: 1, False: 74]
  ------------------
 2701|      1|      return 0;
 2702|      1|    }
 2703|       |
 2704|     74|    if (session->opt_flags & NGHTTP2_OPTMASK_NO_AUTO_WINDOW_UPDATE) {
  ------------------
  |  Branch (2704:9): [True: 74, False: 0]
  ------------------
 2705|     74|      rv = session_update_stream_consumed_size(session, stream, 0);
 2706|     74|    } else {
 2707|      0|      rv =
 2708|      0|        nghttp2_session_update_recv_stream_window_size(session, stream, 0, 1);
 2709|      0|    }
 2710|       |
 2711|     74|    if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2711:9): [True: 0, False: 74]
  ------------------
 2712|      0|      return rv;
 2713|      0|    }
 2714|       |
 2715|     74|    return 0;
 2716|  7.77k|  default:
  ------------------
  |  Branch (2716:3): [True: 7.77k, False: 13.9k]
  ------------------
 2717|  7.77k|    return 0;
 2718|  21.7k|  }
 2719|  21.7k|}
nghttp2_session.c:session_call_on_frame_send:
 2378|  22.4k|                                      nghttp2_frame *frame) {
 2379|  22.4k|  int rv;
 2380|  22.4k|  if (session->callbacks.on_frame_send_callback) {
  ------------------
  |  Branch (2380:7): [True: 22.4k, False: 0]
  ------------------
 2381|  22.4k|    rv = session->callbacks.on_frame_send_callback(session, frame,
 2382|  22.4k|                                                   session->user_data);
 2383|  22.4k|    if (rv != 0) {
  ------------------
  |  Branch (2383:9): [True: 0, False: 22.4k]
  ------------------
 2384|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 2385|      0|    }
 2386|  22.4k|  }
 2387|  22.4k|  return 0;
 2388|  22.4k|}
nghttp2_session.c:session_inflate_handle_invalid_connection:
 3480|     90|                                                     const char *reason) {
 3481|     90|  int rv;
 3482|     90|  rv =
 3483|     90|    session_handle_invalid_connection(session, frame, lib_error_code, reason);
 3484|     90|  if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (3484:7): [True: 78, False: 12]
  ------------------
 3485|     78|    return rv;
 3486|     78|  }
 3487|     12|  return NGHTTP2_ERR_IGN_HEADER_BLOCK;
 3488|     90|}
nghttp2_session.c:session_detect_idle_stream:
  137|    838|                                      int32_t stream_id) {
  138|       |  /* Assume that stream object with stream_id does not exist */
  139|    838|  if (nghttp2_session_is_my_stream_id(session, stream_id)) {
  ------------------
  |  Branch (139:7): [True: 595, False: 243]
  ------------------
  140|    595|    if (session->last_sent_stream_id < stream_id) {
  ------------------
  |  Branch (140:9): [True: 84, False: 511]
  ------------------
  141|     84|      return 1;
  142|     84|    }
  143|    511|    return 0;
  144|    595|  }
  145|    243|  if (session_is_new_peer_stream_id(session, stream_id)) {
  ------------------
  |  Branch (145:7): [True: 77, False: 166]
  ------------------
  146|     77|    return 1;
  147|     77|  }
  148|    166|  return 0;
  149|    243|}
nghttp2_session.c:session_is_new_peer_stream_id:
  130|    486|                                         int32_t stream_id) {
  131|    486|  return stream_id != 0 &&
  ------------------
  |  Branch (131:10): [True: 485, False: 1]
  ------------------
  132|    485|         !nghttp2_session_is_my_stream_id(session, stream_id) &&
  ------------------
  |  Branch (132:10): [True: 479, False: 6]
  ------------------
  133|    479|         session->last_recv_stream_id < stream_id;
  ------------------
  |  Branch (133:10): [True: 300, False: 179]
  ------------------
  134|    486|}
nghttp2_session.c:session_allow_incoming_new_stream:
 1398|    243|static int session_allow_incoming_new_stream(nghttp2_session *session) {
 1399|    243|  return (session->goaway_flags &
 1400|    243|          (NGHTTP2_GOAWAY_TERM_ON_SEND | NGHTTP2_GOAWAY_SENT)) == 0;
 1401|    243|}
nghttp2_session.c:session_call_on_begin_headers:
 3239|  2.21k|                                         nghttp2_frame *frame) {
 3240|  2.21k|  int rv;
 3241|  2.21k|  DEBUGF("recv: call on_begin_headers callback stream_id=%d\n",
  ------------------
  |  |   39|  2.21k|    do {                                                                       \
  |  |   40|  2.21k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 2.21k]
  |  |  ------------------
  ------------------
 3242|  2.21k|         frame->hd.stream_id);
 3243|  2.21k|  if (session->callbacks.on_begin_headers_callback) {
  ------------------
  |  Branch (3243:7): [True: 2.21k, False: 0]
  ------------------
 3244|  2.21k|    rv = session->callbacks.on_begin_headers_callback(session, frame,
 3245|  2.21k|                                                      session->user_data);
 3246|  2.21k|    if (rv == NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE) {
  ------------------
  |  Branch (3246:9): [True: 0, False: 2.21k]
  ------------------
 3247|      0|      return rv;
 3248|      0|    }
 3249|  2.21k|    if (rv != 0) {
  ------------------
  |  Branch (3249:9): [True: 0, False: 2.21k]
  ------------------
 3250|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 3251|      0|    }
 3252|  2.21k|  }
 3253|  2.21k|  return 0;
 3254|  2.21k|}
nghttp2_session.c:session_handle_invalid_connection:
 3466|    355|                                             const char *reason) {
 3467|    355|  if (session->callbacks.on_invalid_frame_recv_callback) {
  ------------------
  |  Branch (3467:7): [True: 355, False: 0]
  ------------------
 3468|    355|    if (session->callbacks.on_invalid_frame_recv_callback(
  ------------------
  |  Branch (3468:9): [True: 328, False: 27]
  ------------------
 3469|    355|          session, frame, lib_error_code, session->user_data) != 0) {
 3470|    328|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 3471|    328|    }
 3472|    355|  }
 3473|     27|  return nghttp2_session_terminate_session_with_reason(
 3474|     27|    session, get_error_code_from_lib_error_code(lib_error_code), reason);
 3475|    355|}
nghttp2_session.c:get_error_code_from_lib_error_code:
 3362|  1.01k|static uint32_t get_error_code_from_lib_error_code(int lib_error_code) {
 3363|  1.01k|  switch (lib_error_code) {
 3364|      2|  case NGHTTP2_ERR_STREAM_CLOSED:
  ------------------
  |  Branch (3364:3): [True: 2, False: 1.01k]
  ------------------
 3365|      2|    return NGHTTP2_STREAM_CLOSED;
 3366|      0|  case NGHTTP2_ERR_HEADER_COMP:
  ------------------
  |  Branch (3366:3): [True: 0, False: 1.01k]
  ------------------
 3367|      0|    return NGHTTP2_COMPRESSION_ERROR;
 3368|      0|  case NGHTTP2_ERR_FRAME_SIZE_ERROR:
  ------------------
  |  Branch (3368:3): [True: 0, False: 1.01k]
  ------------------
 3369|      0|    return NGHTTP2_FRAME_SIZE_ERROR;
 3370|      4|  case NGHTTP2_ERR_FLOW_CONTROL:
  ------------------
  |  Branch (3370:3): [True: 4, False: 1.01k]
  ------------------
 3371|      4|    return NGHTTP2_FLOW_CONTROL_ERROR;
 3372|      0|  case NGHTTP2_ERR_REFUSED_STREAM:
  ------------------
  |  Branch (3372:3): [True: 0, False: 1.01k]
  ------------------
 3373|      0|    return NGHTTP2_REFUSED_STREAM;
 3374|     25|  case NGHTTP2_ERR_PROTO:
  ------------------
  |  Branch (3374:3): [True: 25, False: 992]
  ------------------
 3375|    410|  case NGHTTP2_ERR_HTTP_HEADER:
  ------------------
  |  Branch (3375:3): [True: 385, False: 632]
  ------------------
 3376|    421|  case NGHTTP2_ERR_HTTP_MESSAGING:
  ------------------
  |  Branch (3376:3): [True: 11, False: 1.00k]
  ------------------
 3377|    421|    return NGHTTP2_PROTOCOL_ERROR;
 3378|    385|  case NGHTTP2_ERR_INTERNAL:
  ------------------
  |  Branch (3378:3): [True: 385, False: 632]
  ------------------
 3379|    385|    return NGHTTP2_INTERNAL_ERROR;
 3380|    205|  case NGHTTP2_ERR_PUSH_CANCEL:
  ------------------
  |  Branch (3380:3): [True: 205, False: 812]
  ------------------
 3381|    205|    return NGHTTP2_CANCEL;
 3382|      0|  default:
  ------------------
  |  Branch (3382:3): [True: 0, False: 1.01k]
  ------------------
 3383|      0|    return NGHTTP2_INTERNAL_ERROR;
 3384|  1.01k|  }
 3385|  1.01k|}
nghttp2_session.c:session_call_on_frame_received:
 3226|  4.91k|                                          nghttp2_frame *frame) {
 3227|  4.91k|  int rv;
 3228|  4.91k|  if (session->callbacks.on_frame_recv_callback) {
  ------------------
  |  Branch (3228:7): [True: 4.91k, False: 0]
  ------------------
 3229|  4.91k|    rv = session->callbacks.on_frame_recv_callback(session, frame,
 3230|  4.91k|                                                   session->user_data);
 3231|  4.91k|    if (rv != 0) {
  ------------------
  |  Branch (3231:9): [True: 0, False: 4.91k]
  ------------------
 3232|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 3233|      0|    }
 3234|  4.91k|  }
 3235|  4.91k|  return 0;
 3236|  4.91k|}
nghttp2_session.c:session_update_stream_reset_ratelim:
 4077|     48|static int session_update_stream_reset_ratelim(nghttp2_session *session) {
 4078|     48|  if (!session->server || (session->goaway_flags & NGHTTP2_GOAWAY_SUBMITTED)) {
  ------------------
  |  Branch (4078:7): [True: 48, False: 0]
  |  Branch (4078:27): [True: 0, False: 0]
  ------------------
 4079|     48|    return 0;
 4080|     48|  }
 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|    128|                                         int32_t old_initial_window_size) {
 4239|    128|  nghttp2_update_window_size_arg arg;
 4240|    128|  arg.session = session;
 4241|    128|  arg.new_window_size = new_initial_window_size;
 4242|    128|  arg.old_window_size = old_initial_window_size;
 4243|    128|  return nghttp2_map_each(&session->streams,
 4244|    128|                          update_local_initial_window_size_func, &arg);
 4245|    128|}
nghttp2_session.c:update_local_initial_window_size_func:
 4189|    127|static int update_local_initial_window_size_func(void *entry, void *ptr) {
 4190|    127|  int rv;
 4191|    127|  nghttp2_update_window_size_arg *arg;
 4192|    127|  nghttp2_stream *stream;
 4193|    127|  arg = (nghttp2_update_window_size_arg *)ptr;
 4194|    127|  stream = (nghttp2_stream *)entry;
 4195|    127|  rv = nghttp2_stream_update_local_initial_window_size(
 4196|    127|    stream, arg->new_window_size, arg->old_window_size);
 4197|    127|  if (rv != 0) {
  ------------------
  |  Branch (4197:7): [True: 0, False: 127]
  ------------------
 4198|      0|    return NGHTTP2_ERR_FLOW_CONTROL;
 4199|      0|  }
 4200|       |
 4201|    127|  if (stream->window_update_queued) {
  ------------------
  |  Branch (4201:7): [True: 0, False: 127]
  ------------------
 4202|      0|    return 0;
 4203|      0|  }
 4204|       |
 4205|    127|  if (arg->session->opt_flags & NGHTTP2_OPTMASK_NO_AUTO_WINDOW_UPDATE) {
  ------------------
  |  Branch (4205:7): [True: 127, False: 0]
  ------------------
 4206|    127|    return session_update_stream_consumed_size(arg->session, stream, 0);
 4207|    127|  }
 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|    623|                                          int32_t new_initial_window_size) {
 4179|    623|  nghttp2_update_window_size_arg arg;
 4180|       |
 4181|    623|  arg.session = session;
 4182|    623|  arg.new_window_size = new_initial_window_size;
 4183|    623|  arg.old_window_size = (int32_t)session->remote_settings.initial_window_size;
 4184|       |
 4185|    623|  return nghttp2_map_each(&session->streams,
 4186|    623|                          update_remote_initial_window_size_func, &arg);
 4187|    623|}
nghttp2_session.c:update_remote_initial_window_size_func:
 4136|    623|static int update_remote_initial_window_size_func(void *entry, void *ptr) {
 4137|    623|  int rv;
 4138|    623|  nghttp2_update_window_size_arg *arg;
 4139|    623|  nghttp2_stream *stream;
 4140|       |
 4141|    623|  arg = (nghttp2_update_window_size_arg *)ptr;
 4142|    623|  stream = (nghttp2_stream *)entry;
 4143|       |
 4144|    623|  rv = nghttp2_stream_update_remote_initial_window_size(
 4145|    623|    stream, arg->new_window_size, arg->old_window_size);
 4146|    623|  if (rv != 0) {
  ------------------
  |  Branch (4146:7): [True: 1, False: 622]
  ------------------
 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|    622|  if (stream->remote_window_size > 0 &&
  ------------------
  |  Branch (4152:7): [True: 466, False: 156]
  ------------------
 4153|    466|      nghttp2_stream_check_deferred_by_flow_control(stream)) {
  ------------------
  |  Branch (4153:7): [True: 7, False: 459]
  ------------------
 4154|      7|    rv = session_resume_deferred_stream_item(
 4155|      7|      arg->session, stream, NGHTTP2_STREAM_FLAG_DEFERRED_FLOW_CONTROL);
 4156|       |
 4157|      7|    if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (4157:9): [True: 0, False: 7]
  ------------------
 4158|      0|      return rv;
 4159|      0|    }
 4160|      7|  }
 4161|    622|  return 0;
 4162|    622|}
nghttp2_session.c:session_handle_invalid_stream2:
 3425|    990|                                          int lib_error_code) {
 3426|    990|  int rv;
 3427|       |
 3428|    990|  rv = nghttp2_session_add_rst_stream(
 3429|    990|    session, stream_id, get_error_code_from_lib_error_code(lib_error_code));
 3430|    990|  if (rv != 0) {
  ------------------
  |  Branch (3430:7): [True: 0, False: 990]
  ------------------
 3431|      0|    return rv;
 3432|      0|  }
 3433|    990|  if (frame && session->callbacks.on_invalid_frame_recv_callback) {
  ------------------
  |  Branch (3433:7): [True: 400, False: 590]
  |  Branch (3433:16): [True: 400, False: 0]
  ------------------
 3434|    400|    if (session->callbacks.on_invalid_frame_recv_callback(
  ------------------
  |  Branch (3434:9): [True: 0, False: 400]
  ------------------
 3435|    400|          session, frame, lib_error_code, session->user_data) != 0) {
 3436|      0|      return NGHTTP2_ERR_CALLBACK_FAILURE;
 3437|      0|    }
 3438|    400|  }
 3439|    990|  return 0;
 3440|    990|}
nghttp2_session.c:session_close_stream_on_goaway:
 2429|  2.23k|                                          int incoming) {
 2430|  2.23k|  int rv;
 2431|  2.23k|  nghttp2_stream *stream, *next_stream;
 2432|  2.23k|  nghttp2_close_stream_on_goaway_arg arg = {session, NULL, last_stream_id,
 2433|  2.23k|                                            incoming};
 2434|       |
 2435|  2.23k|  rv = nghttp2_map_each(&session->streams, find_stream_on_goaway_func, &arg);
 2436|  2.23k|  assert(rv == 0);
  ------------------
  |  Branch (2436:3): [True: 0, False: 2.23k]
  |  Branch (2436:3): [True: 2.23k, False: 0]
  ------------------
 2437|       |
 2438|  2.23k|  stream = arg.head;
 2439|  2.26k|  while (stream) {
  ------------------
  |  Branch (2439:10): [True: 36, False: 2.23k]
  ------------------
 2440|     36|    next_stream = stream->closed_next;
 2441|     36|    stream->closed_next = NULL;
 2442|     36|    rv = nghttp2_session_close_stream(session, stream->stream_id,
 2443|     36|                                      NGHTTP2_REFUSED_STREAM);
 2444|       |
 2445|       |    /* stream may be deleted here */
 2446|       |
 2447|     36|    stream = next_stream;
 2448|       |
 2449|     36|    if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (2449:9): [True: 0, False: 36]
  ------------------
 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|     36|  }
 2459|       |
 2460|  2.23k|  return 0;
 2461|  2.23k|}
nghttp2_session.c:find_stream_on_goaway_func:
 2390|  1.44k|static int find_stream_on_goaway_func(void *entry, void *ptr) {
 2391|  1.44k|  nghttp2_close_stream_on_goaway_arg *arg;
 2392|  1.44k|  nghttp2_stream *stream;
 2393|       |
 2394|  1.44k|  arg = (nghttp2_close_stream_on_goaway_arg *)ptr;
 2395|  1.44k|  stream = (nghttp2_stream *)entry;
 2396|       |
 2397|  1.44k|  if (nghttp2_session_is_my_stream_id(arg->session, stream->stream_id)) {
  ------------------
  |  Branch (2397:7): [True: 1.44k, False: 0]
  ------------------
 2398|  1.44k|    if (arg->incoming) {
  ------------------
  |  Branch (2398:9): [True: 1.35k, False: 92]
  ------------------
 2399|  1.35k|      return 0;
 2400|  1.35k|    }
 2401|  1.44k|  } else if (!arg->incoming) {
  ------------------
  |  Branch (2401:14): [True: 0, False: 0]
  ------------------
 2402|      0|    return 0;
 2403|      0|  }
 2404|       |
 2405|     92|  if (stream->state != NGHTTP2_STREAM_IDLE &&
  ------------------
  |  Branch (2405:7): [True: 92, False: 0]
  ------------------
 2406|     92|      (stream->flags & NGHTTP2_STREAM_FLAG_CLOSED) == 0 &&
  ------------------
  |  Branch (2406:7): [True: 92, False: 0]
  ------------------
 2407|     92|      stream->stream_id > arg->last_stream_id) {
  ------------------
  |  Branch (2407:7): [True: 36, False: 56]
  ------------------
 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|     36|    assert(stream->closed_next == NULL);
  ------------------
  |  Branch (2411:5): [True: 0, False: 36]
  |  Branch (2411:5): [True: 36, False: 0]
  ------------------
 2412|       |
 2413|     36|    if (arg->head) {
  ------------------
  |  Branch (2413:9): [True: 0, False: 36]
  ------------------
 2414|      0|      stream->closed_next = arg->head;
 2415|      0|      arg->head = stream;
 2416|     36|    } else {
 2417|     36|      arg->head = stream;
 2418|     36|    }
 2419|     36|  }
 2420|       |
 2421|     92|  return 0;
 2422|     92|}
nghttp2_session.c:session_on_connection_window_update_received:
 4736|     72|                                             nghttp2_frame *frame) {
 4737|       |  /* Handle connection-level flow control */
 4738|     72|  if (frame->window_update.window_size_increment == 0) {
  ------------------
  |  Branch (4738:7): [True: 1, False: 71]
  ------------------
 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|     71|  if (NGHTTP2_MAX_WINDOW_SIZE - frame->window_update.window_size_increment <
  ------------------
  |  |  224|     71|#define NGHTTP2_MAX_WINDOW_SIZE ((int32_t)((1U << 31) - 1))
  ------------------
  |  Branch (4744:7): [True: 1, False: 70]
  ------------------
 4745|     71|      session->remote_window_size) {
 4746|      1|    return session_handle_invalid_connection(session, frame,
 4747|      1|                                             NGHTTP2_ERR_FLOW_CONTROL, NULL);
 4748|      1|  }
 4749|     70|  session->remote_window_size += frame->window_update.window_size_increment;
 4750|       |
 4751|     70|  return session_call_on_frame_received(session, frame);
 4752|     71|}
nghttp2_session.c:session_on_stream_window_update_received:
 4755|    119|                                                    nghttp2_frame *frame) {
 4756|    119|  int rv;
 4757|    119|  nghttp2_stream *stream;
 4758|       |
 4759|    119|  if (session_detect_idle_stream(session, frame->hd.stream_id)) {
  ------------------
  |  Branch (4759:7): [True: 17, False: 102]
  ------------------
 4760|     17|    return session_handle_invalid_connection(session, frame, NGHTTP2_ERR_PROTO,
 4761|     17|                                             "WINDOW_UPDATE to idle stream");
 4762|     17|  }
 4763|       |
 4764|    102|  stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 4765|    102|  if (!stream) {
  ------------------
  |  Branch (4765:7): [True: 11, False: 91]
  ------------------
 4766|     11|    return 0;
 4767|     11|  }
 4768|     91|  if (state_reserved_remote(session, stream)) {
  ------------------
  |  Branch (4768:7): [True: 0, False: 91]
  ------------------
 4769|      0|    return session_handle_invalid_connection(
 4770|      0|      session, frame, NGHTTP2_ERR_PROTO, "WINDOW_UPADATE to reserved stream");
 4771|      0|  }
 4772|     91|  if (frame->window_update.window_size_increment == 0) {
  ------------------
  |  Branch (4772:7): [True: 1, False: 90]
  ------------------
 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|     90|  if (NGHTTP2_MAX_WINDOW_SIZE - frame->window_update.window_size_increment <
  ------------------
  |  |  224|     90|#define NGHTTP2_MAX_WINDOW_SIZE ((int32_t)((1U << 31) - 1))
  ------------------
  |  Branch (4777:7): [True: 4, False: 86]
  ------------------
 4778|     90|      stream->remote_window_size) {
 4779|      4|    return session_handle_invalid_connection(
 4780|      4|      session, frame, NGHTTP2_ERR_FLOW_CONTROL,
 4781|      4|      "WINDOW_UPDATE: window size overflow");
 4782|      4|  }
 4783|     86|  stream->remote_window_size += frame->window_update.window_size_increment;
 4784|       |
 4785|     86|  if (stream->remote_window_size > 0 &&
  ------------------
  |  Branch (4785:7): [True: 86, False: 0]
  ------------------
 4786|     86|      nghttp2_stream_check_deferred_by_flow_control(stream)) {
  ------------------
  |  Branch (4786:7): [True: 0, False: 86]
  ------------------
 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|     86|  return session_call_on_frame_received(session, frame);
 4795|     86|}
nghttp2_session.c:state_reserved_remote:
  113|     91|                                 nghttp2_stream *stream) {
  114|     91|  return stream->state == NGHTTP2_STREAM_RESERVED &&
  ------------------
  |  Branch (114:10): [True: 0, False: 91]
  ------------------
  115|      0|         !nghttp2_session_is_my_stream_id(session, stream->stream_id);
  ------------------
  |  Branch (115:10): [True: 0, False: 0]
  ------------------
  116|     91|}
nghttp2_session.c:session_enforce_http_messaging:
   90|  52.4k|static int session_enforce_http_messaging(nghttp2_session *session) {
   91|  52.4k|  return (session->opt_flags & NGHTTP2_OPTMASK_NO_HTTP_MESSAGING) == 0;
   92|  52.4k|}
nghttp2_session.c:session_update_glitch_ratelim:
 3408|    776|static int session_update_glitch_ratelim(nghttp2_session *session) {
 3409|    776|  if (session->goaway_flags & NGHTTP2_GOAWAY_TERM_ON_SEND) {
  ------------------
  |  Branch (3409:7): [True: 0, False: 776]
  ------------------
 3410|      0|    return 0;
 3411|      0|  }
 3412|       |
 3413|    776|  nghttp2_ratelim_update(&session->glitch_ratelim, nghttp2_time_now_sec());
 3414|       |
 3415|    776|  if (nghttp2_ratelim_drain(&session->glitch_ratelim, 1) == 0) {
  ------------------
  |  Branch (3415:7): [True: 776, False: 0]
  ------------------
 3416|    776|    return 0;
 3417|    776|  }
 3418|       |
 3419|      0|  return nghttp2_session_terminate_session(session, NGHTTP2_ENHANCE_YOUR_CALM);
 3420|    776|}
nghttp2_session.c:adjust_recv_window_size:
 5073|  1.28k|                                   int32_t local_window_size) {
 5074|  1.28k|  if (*recv_window_size_ptr > local_window_size - (int32_t)delta ||
  ------------------
  |  Branch (5074:7): [True: 0, False: 1.28k]
  ------------------
 5075|  1.28k|      *recv_window_size_ptr > NGHTTP2_MAX_WINDOW_SIZE - (int32_t)delta) {
  ------------------
  |  |  224|  1.28k|#define NGHTTP2_MAX_WINDOW_SIZE ((int32_t)((1U << 31) - 1))
  ------------------
  |  Branch (5075:7): [True: 0, False: 1.28k]
  ------------------
 5076|      0|    return -1;
 5077|      0|  }
 5078|  1.28k|  *recv_window_size_ptr += (int32_t)delta;
 5079|  1.28k|  return 0;
 5080|  1.28k|}
nghttp2_session.c:inbound_frame_buf_read:
 5294|  26.5k|                                     const uint8_t *in, const uint8_t *last) {
 5295|  26.5k|  size_t readlen;
 5296|       |
 5297|  26.5k|  readlen = nghttp2_min_size((size_t)(last - in),
 5298|  26.5k|                             nghttp2_buf_mark_avail(&iframe->sbuf));
  ------------------
  |  |   56|  26.5k|#define nghttp2_buf_mark_avail(BUF) ((size_t)((BUF)->mark - (BUF)->last))
  ------------------
 5299|       |
 5300|  26.5k|  iframe->sbuf.last = nghttp2_cpymem(iframe->sbuf.last, in, readlen);
 5301|       |
 5302|  26.5k|  return readlen;
 5303|  26.5k|}
nghttp2_session.c:session_call_error_callback:
  157|  6.73k|                                       ...) {
  158|  6.73k|  size_t bufsize;
  159|  6.73k|  va_list ap;
  160|  6.73k|  char *buf;
  161|  6.73k|  int rv;
  162|  6.73k|  nghttp2_mem *mem;
  163|       |
  164|  6.73k|  if (!session->callbacks.error_callback &&
  ------------------
  |  Branch (164:7): [True: 0, False: 6.73k]
  ------------------
  165|      0|      !session->callbacks.error_callback2) {
  ------------------
  |  Branch (165:7): [True: 0, False: 0]
  ------------------
  166|      0|    return 0;
  167|      0|  }
  168|       |
  169|  6.73k|  mem = &session->mem;
  170|       |
  171|  6.73k|  va_start(ap, fmt);
  172|  6.73k|  rv = vsnprintf(NULL, 0, fmt, ap);
  173|  6.73k|  va_end(ap);
  174|       |
  175|  6.73k|  if (rv < 0) {
  ------------------
  |  Branch (175:7): [True: 0, False: 6.73k]
  ------------------
  176|      0|    return NGHTTP2_ERR_NOMEM;
  177|      0|  }
  178|       |
  179|  6.73k|  bufsize = (size_t)(rv + 1);
  180|       |
  181|  6.73k|  buf = nghttp2_mem_malloc(mem, bufsize);
  182|  6.73k|  if (buf == NULL) {
  ------------------
  |  Branch (182:7): [True: 0, False: 6.73k]
  ------------------
  183|      0|    return NGHTTP2_ERR_NOMEM;
  184|      0|  }
  185|       |
  186|  6.73k|  va_start(ap, fmt);
  187|  6.73k|  rv = vsnprintf(buf, bufsize, fmt, ap);
  188|  6.73k|  va_end(ap);
  189|       |
  190|  6.73k|  if (rv < 0) {
  ------------------
  |  Branch (190:7): [True: 0, False: 6.73k]
  ------------------
  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|  6.73k|  if (session->callbacks.error_callback2) {
  ------------------
  |  Branch (199:7): [True: 0, False: 6.73k]
  ------------------
  200|      0|    rv = session->callbacks.error_callback2(session, lib_error_code, buf,
  201|      0|                                            (size_t)rv, session->user_data);
  202|  6.73k|  } else {
  203|  6.73k|    rv = session->callbacks.error_callback(session, buf, (size_t)rv,
  204|  6.73k|                                           session->user_data);
  205|  6.73k|  }
  206|       |
  207|  6.73k|  nghttp2_mem_free(mem, buf);
  208|       |
  209|  6.73k|  if (rv != 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 6.73k]
  ------------------
  210|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
  211|      0|  }
  212|       |
  213|  6.73k|  return 0;
  214|  6.73k|}
nghttp2_session.c:session_on_data_received_fail_fast:
 5210|    399|static int session_on_data_received_fail_fast(nghttp2_session *session) {
 5211|    399|  int rv;
 5212|    399|  nghttp2_stream *stream;
 5213|    399|  nghttp2_inbound_frame *iframe;
 5214|    399|  int32_t stream_id;
 5215|    399|  const char *failure_reason;
 5216|    399|  uint32_t error_code = NGHTTP2_PROTOCOL_ERROR;
 5217|       |
 5218|    399|  iframe = &session->iframe;
 5219|    399|  stream_id = iframe->frame.hd.stream_id;
 5220|       |
 5221|    399|  if (stream_id == 0) {
  ------------------
  |  Branch (5221:7): [True: 17, False: 382]
  ------------------
 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|    382|  if (session_detect_idle_stream(session, stream_id)) {
  ------------------
  |  Branch (5229:7): [True: 77, False: 305]
  ------------------
 5230|     77|    failure_reason = "DATA: stream in idle";
 5231|     77|    error_code = NGHTTP2_PROTOCOL_ERROR;
 5232|     77|    goto fail;
 5233|     77|  }
 5234|       |
 5235|    305|  stream = nghttp2_session_get_stream(session, stream_id);
 5236|    305|  if (!stream) {
  ------------------
  |  Branch (5236:7): [True: 139, False: 166]
  ------------------
 5237|    139|    stream = nghttp2_session_get_stream_raw(session, stream_id);
 5238|    139|    if (stream && (stream->shut_flags & NGHTTP2_SHUT_RD)) {
  ------------------
  |  Branch (5238:9): [True: 0, False: 139]
  |  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|    139|    return NGHTTP2_ERR_IGN_PAYLOAD;
 5245|    139|  }
 5246|    166|  if (stream->shut_flags & NGHTTP2_SHUT_RD) {
  ------------------
  |  Branch (5246:7): [True: 1, False: 165]
  ------------------
 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|    165|  if (nghttp2_session_is_my_stream_id(session, stream_id)) {
  ------------------
  |  Branch (5252:7): [True: 165, False: 0]
  ------------------
 5253|    165|    if (stream->state == NGHTTP2_STREAM_CLOSING) {
  ------------------
  |  Branch (5253:9): [True: 3, False: 162]
  ------------------
 5254|      3|      return NGHTTP2_ERR_IGN_PAYLOAD;
 5255|      3|    }
 5256|    162|    if (stream->state != NGHTTP2_STREAM_OPENED) {
  ------------------
  |  Branch (5256:9): [True: 2, False: 160]
  ------------------
 5257|      2|      failure_reason = "DATA: stream not opened";
 5258|      2|      goto fail;
 5259|      2|    }
 5260|    160|    return 0;
 5261|    162|  }
 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|     97|fail:
 5271|     97|  rv = nghttp2_session_terminate_session_with_reason(session, error_code,
 5272|     97|                                                     failure_reason);
 5273|     97|  if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5273:7): [True: 0, False: 97]
  ------------------
 5274|      0|    return rv;
 5275|      0|  }
 5276|     97|  return NGHTTP2_ERR_IGN_PAYLOAD;
 5277|     97|}
nghttp2_session.c:inbound_frame_handle_pad:
 5360|  2.71k|                                    nghttp2_frame_hd *hd) {
 5361|  2.71k|  if (hd->flags & NGHTTP2_FLAG_PADDED) {
  ------------------
  |  Branch (5361:7): [True: 177, False: 2.53k]
  ------------------
 5362|    177|    if (hd->length < 1) {
  ------------------
  |  Branch (5362:9): [True: 4, False: 173]
  ------------------
 5363|      4|      return -1;
 5364|      4|    }
 5365|    173|    inbound_frame_set_mark(iframe, 1);
 5366|    173|    return 1;
 5367|    177|  }
 5368|  2.53k|  DEBUGF("recv: no padding in payload\n");
  ------------------
  |  |   39|  2.53k|    do {                                                                       \
  |  |   40|  2.53k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 2.53k]
  |  |  ------------------
  ------------------
 5369|  2.53k|  return 0;
 5370|  2.71k|}
nghttp2_session.c:inbound_frame_set_mark:
 5288|  11.1k|static void inbound_frame_set_mark(nghttp2_inbound_frame *iframe, size_t left) {
 5289|  11.1k|  nghttp2_buf_reset(&iframe->sbuf);
 5290|  11.1k|  iframe->sbuf.mark += left;
 5291|  11.1k|}
nghttp2_session.c:session_call_on_begin_frame:
 3210|  7.66k|                                       const nghttp2_frame_hd *hd) {
 3211|  7.66k|  int rv;
 3212|       |
 3213|  7.66k|  if (session->callbacks.on_begin_frame_callback) {
  ------------------
  |  Branch (3213:7): [True: 0, False: 7.66k]
  ------------------
 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|  7.66k|  return 0;
 3223|  7.66k|}
nghttp2_session.c:session_process_headers_frame:
 4048|  2.28k|static int session_process_headers_frame(nghttp2_session *session) {
 4049|  2.28k|  nghttp2_inbound_frame *iframe = &session->iframe;
 4050|  2.28k|  nghttp2_frame *frame = &iframe->frame;
 4051|  2.28k|  nghttp2_stream *stream;
 4052|       |
 4053|  2.28k|  nghttp2_frame_unpack_headers_payload(&frame->headers, iframe->sbuf.pos);
 4054|       |
 4055|  2.28k|  stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 4056|  2.28k|  if (!stream) {
  ------------------
  |  Branch (4056:7): [True: 58, False: 2.22k]
  ------------------
 4057|     58|    frame->headers.cat = NGHTTP2_HCAT_REQUEST;
 4058|     58|    return nghttp2_session_on_request_headers_received(session, frame);
 4059|     58|  }
 4060|       |
 4061|  2.22k|  if (stream->state == NGHTTP2_STREAM_RESERVED) {
  ------------------
  |  Branch (4061:7): [True: 0, False: 2.22k]
  ------------------
 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|  2.22k|  if (stream->state == NGHTTP2_STREAM_OPENING &&
  ------------------
  |  Branch (4067:7): [True: 2.16k, False: 64]
  ------------------
 4068|  2.16k|      nghttp2_session_is_my_stream_id(session, frame->hd.stream_id)) {
  ------------------
  |  Branch (4068:7): [True: 2.16k, False: 0]
  ------------------
 4069|  2.16k|    frame->headers.cat = NGHTTP2_HCAT_RESPONSE;
 4070|  2.16k|    return nghttp2_session_on_response_headers_received(session, frame, stream);
 4071|  2.16k|  }
 4072|       |
 4073|     64|  frame->headers.cat = NGHTTP2_HCAT_HEADERS;
 4074|     64|  return nghttp2_session_on_headers_received(session, frame, stream);
 4075|  2.22k|}
nghttp2_session.c:check_ext_type_set:
  151|    788|static int check_ext_type_set(const uint8_t *ext_types, uint8_t type) {
  152|    788|  return (ext_types[type / 8] & (1 << (type & 0x7))) > 0;
  153|    788|}
nghttp2_session.c:inbound_frame_compute_pad:
 5376|    173|static nghttp2_ssize inbound_frame_compute_pad(nghttp2_inbound_frame *iframe) {
 5377|    173|  size_t padlen;
 5378|       |
 5379|       |  /* 1 for Pad Length field */
 5380|    173|  padlen = (size_t)(iframe->sbuf.pos[0] + 1);
 5381|       |
 5382|    173|  DEBUGF("recv: padlen=%zu\n", padlen);
  ------------------
  |  |   39|    173|    do {                                                                       \
  |  |   40|    173|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 173]
  |  |  ------------------
  ------------------
 5383|       |
 5384|       |  /* We cannot use iframe->frame.hd.length because of CONTINUATION */
 5385|    173|  if (padlen - 1 > iframe->payloadleft) {
  ------------------
  |  Branch (5385:7): [True: 3, False: 170]
  ------------------
 5386|      3|    return -1;
 5387|      3|  }
 5388|       |
 5389|    170|  iframe->padlen = padlen;
 5390|       |
 5391|    170|  return (nghttp2_ssize)padlen;
 5392|    173|}
nghttp2_session.c:session_process_rst_stream_frame:
 4127|     62|static int session_process_rst_stream_frame(nghttp2_session *session) {
 4128|     62|  nghttp2_inbound_frame *iframe = &session->iframe;
 4129|     62|  nghttp2_frame *frame = &iframe->frame;
 4130|       |
 4131|     62|  nghttp2_frame_unpack_rst_stream_payload(&frame->rst_stream, iframe->sbuf.pos);
 4132|       |
 4133|     62|  return nghttp2_session_on_rst_stream_received(session, frame);
 4134|     62|}
nghttp2_session.c:session_process_push_promise_frame:
 4650|    252|static int session_process_push_promise_frame(nghttp2_session *session) {
 4651|    252|  nghttp2_inbound_frame *iframe = &session->iframe;
 4652|    252|  nghttp2_frame *frame = &iframe->frame;
 4653|       |
 4654|    252|  nghttp2_frame_unpack_push_promise_payload(&frame->push_promise,
 4655|    252|                                            iframe->sbuf.pos);
 4656|       |
 4657|    252|  return nghttp2_session_on_push_promise_received(session, frame);
 4658|    252|}
nghttp2_session.c:session_process_ping_frame:
 4680|     62|static int session_process_ping_frame(nghttp2_session *session) {
 4681|     62|  nghttp2_inbound_frame *iframe = &session->iframe;
 4682|     62|  nghttp2_frame *frame = &iframe->frame;
 4683|       |
 4684|     62|  nghttp2_frame_unpack_ping_payload(&frame->ping, iframe->sbuf.pos);
 4685|       |
 4686|     62|  return nghttp2_session_on_ping_received(session, frame);
 4687|     62|}
nghttp2_session.c:session_process_window_update_frame:
 4806|    191|static int session_process_window_update_frame(nghttp2_session *session) {
 4807|    191|  nghttp2_inbound_frame *iframe = &session->iframe;
 4808|    191|  nghttp2_frame *frame = &iframe->frame;
 4809|       |
 4810|    191|  nghttp2_frame_unpack_window_update_payload(&frame->window_update,
 4811|    191|                                             iframe->sbuf.pos);
 4812|       |
 4813|    191|  return nghttp2_session_on_window_update_received(session, frame);
 4814|    191|}
nghttp2_session.c:inbound_frame_payload_readlen:
 5281|  7.44k|                                            const uint8_t *last) {
 5282|  7.44k|  return nghttp2_min_size((size_t)(last - in), iframe->payloadleft);
 5283|  7.44k|}
nghttp2_session.c:inbound_frame_effective_readlen:
 5402|  6.61k|                                size_t payloadleft, size_t readlen) {
 5403|  6.61k|  size_t trail_padlen =
 5404|  6.61k|    nghttp2_frame_trail_padlen(&iframe->frame, iframe->padlen);
 5405|       |
 5406|  6.61k|  if (trail_padlen > payloadleft) {
  ------------------
  |  Branch (5406:7): [True: 206, False: 6.40k]
  ------------------
 5407|    206|    size_t padlen;
 5408|    206|    padlen = trail_padlen - payloadleft;
 5409|    206|    if (readlen < padlen) {
  ------------------
  |  Branch (5409:9): [True: 140, False: 66]
  ------------------
 5410|    140|      return -1;
 5411|    140|    }
 5412|     66|    return (nghttp2_ssize)(readlen - padlen);
 5413|    206|  }
 5414|  6.40k|  return (nghttp2_ssize)(readlen);
 5415|  6.61k|}
nghttp2_session.c:inflate_header_block:
 3519|  5.95k|                                int final, int call_header_cb) {
 3520|  5.95k|  nghttp2_inbound_frame *iframe = &session->iframe;
 3521|  5.95k|  nghttp2_ssize proclen;
 3522|  5.95k|  int rv;
 3523|  5.95k|  int inflate_flags;
 3524|  5.95k|  nghttp2_hd_nv nv;
 3525|  5.95k|  nghttp2_stream *stream;
 3526|  5.95k|  nghttp2_stream *subject_stream;
 3527|  5.95k|  int trailer = 0;
 3528|       |
 3529|  5.95k|  *readlen_ptr = 0;
 3530|  5.95k|  stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 3531|       |
 3532|  5.95k|  if (frame->hd.type == NGHTTP2_PUSH_PROMISE) {
  ------------------
  |  Branch (3532:7): [True: 323, False: 5.63k]
  ------------------
 3533|    323|    subject_stream = nghttp2_session_get_stream(
 3534|    323|      session, frame->push_promise.promised_stream_id);
 3535|  5.63k|  } else {
 3536|  5.63k|    subject_stream = stream;
 3537|  5.63k|    trailer = session_trailer_headers(session, stream, frame);
 3538|  5.63k|  }
 3539|       |
 3540|  5.95k|  DEBUGF("recv: decoding header block %zu bytes\n", inlen);
  ------------------
  |  |   39|  5.95k|    do {                                                                       \
  |  |   40|  5.95k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 5.95k]
  |  |  ------------------
  ------------------
 3541|  59.8k|  for (;;) {
 3542|  59.8k|    inflate_flags = 0;
 3543|  59.8k|    proclen = nghttp2_hd_inflate_hd_nv(&session->hd_inflater, &nv,
 3544|  59.8k|                                       &inflate_flags, in, inlen, final);
 3545|  59.8k|    if (nghttp2_is_fatal((int)proclen)) {
  ------------------
  |  Branch (3545:9): [True: 0, False: 59.8k]
  ------------------
 3546|      0|      return (int)proclen;
 3547|      0|    }
 3548|  59.8k|    if (proclen < 0) {
  ------------------
  |  Branch (3548:9): [True: 958, False: 58.8k]
  ------------------
 3549|    958|      if (session->iframe.state == NGHTTP2_IB_READ_HEADER_BLOCK) {
  ------------------
  |  Branch (3549:11): [True: 804, False: 154]
  ------------------
 3550|    804|        if (subject_stream && subject_stream->state != NGHTTP2_STREAM_CLOSING) {
  ------------------
  |  Branch (3550:13): [True: 804, False: 0]
  |  Branch (3550:31): [True: 804, False: 0]
  ------------------
 3551|       |          /* Adding RST_STREAM here is very important. It prevents
 3552|       |             from invoking subsequent callbacks for the same stream
 3553|       |             ID. */
 3554|    804|          rv = nghttp2_session_add_rst_stream(
 3555|    804|            session, subject_stream->stream_id, NGHTTP2_COMPRESSION_ERROR);
 3556|       |
 3557|    804|          if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (3557:15): [True: 0, False: 804]
  ------------------
 3558|      0|            return rv;
 3559|      0|          }
 3560|    804|        }
 3561|    804|      }
 3562|    958|      rv =
 3563|    958|        nghttp2_session_terminate_session(session, NGHTTP2_COMPRESSION_ERROR);
 3564|    958|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (3564:11): [True: 0, False: 958]
  ------------------
 3565|      0|        return rv;
 3566|      0|      }
 3567|       |
 3568|    958|      return NGHTTP2_ERR_HEADER_COMP;
 3569|    958|    }
 3570|  58.8k|    in += proclen;
 3571|  58.8k|    inlen -= (size_t)proclen;
 3572|  58.8k|    *readlen_ptr += (size_t)proclen;
 3573|       |
 3574|  58.8k|    DEBUGF("recv: proclen=%td\n", proclen);
  ------------------
  |  |   39|  58.8k|    do {                                                                       \
  |  |   40|  58.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 58.8k]
  |  |  ------------------
  ------------------
 3575|       |
 3576|  58.8k|    if (call_header_cb && (inflate_flags & NGHTTP2_HD_INFLATE_EMIT)) {
  ------------------
  |  Branch (3576:9): [True: 51.4k, False: 7.45k]
  |  Branch (3576:27): [True: 47.3k, False: 4.05k]
  ------------------
 3577|  47.3k|      rv = 0;
 3578|  47.3k|      if (subject_stream) {
  ------------------
  |  Branch (3578:11): [True: 47.3k, False: 0]
  ------------------
 3579|  47.3k|        if (session_enforce_http_messaging(session)) {
  ------------------
  |  Branch (3579:13): [True: 47.3k, False: 0]
  ------------------
 3580|  47.3k|          rv = nghttp2_http_on_header(session, subject_stream, frame, &nv,
 3581|  47.3k|                                      trailer);
 3582|       |
 3583|  47.3k|          if (rv == NGHTTP2_ERR_IGN_HTTP_HEADER) {
  ------------------
  |  Branch (3583:15): [True: 6.28k, False: 41.0k]
  ------------------
 3584|       |            /* Don't overwrite rv here */
 3585|  6.28k|            int rv2;
 3586|       |
 3587|  6.28k|            rv2 = session_call_on_invalid_header(session, frame, &nv);
 3588|  6.28k|            if (rv2 == NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE) {
  ------------------
  |  Branch (3588:17): [True: 0, False: 6.28k]
  ------------------
 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.28k|            } else {
 3613|  6.28k|              if (rv2 != 0) {
  ------------------
  |  Branch (3613:19): [True: 0, False: 6.28k]
  ------------------
 3614|      0|                return rv2;
 3615|      0|              }
 3616|       |
 3617|       |              /* header is ignored */
 3618|  6.28k|              DEBUGF("recv: HTTP ignored: type=%u, id=%d, header %.*s: %.*s\n",
  ------------------
  |  |   39|  6.28k|    do {                                                                       \
  |  |   40|  6.28k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 6.28k]
  |  |  ------------------
  ------------------
 3619|  6.28k|                     frame->hd.type, frame->hd.stream_id, (int)nv.name->len,
 3620|  6.28k|                     nv.name->base, (int)nv.value->len, nv.value->base);
 3621|       |
 3622|  6.28k|              rv2 = session_call_error_callback(
 3623|  6.28k|                session, NGHTTP2_ERR_HTTP_HEADER,
 3624|  6.28k|                "Ignoring received invalid HTTP header field: frame type: "
 3625|  6.28k|                "%u, stream: %d, name: [%.*s], value: [%.*s]",
 3626|  6.28k|                frame->hd.type, frame->hd.stream_id, (int)nv.name->len,
 3627|  6.28k|                nv.name->base, (int)nv.value->len, nv.value->base);
 3628|       |
 3629|  6.28k|              if (nghttp2_is_fatal(rv2)) {
  ------------------
  |  Branch (3629:19): [True: 0, False: 6.28k]
  ------------------
 3630|      0|                return rv2;
 3631|      0|              }
 3632|  6.28k|            }
 3633|  6.28k|          }
 3634|       |
 3635|  47.3k|          if (rv == NGHTTP2_ERR_HTTP_HEADER) {
  ------------------
  |  Branch (3635:15): [True: 385, False: 46.9k]
  ------------------
 3636|    385|            DEBUGF("recv: HTTP error: type=%u, id=%d, header %.*s: %.*s\n",
  ------------------
  |  |   39|    385|    do {                                                                       \
  |  |   40|    385|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 385]
  |  |  ------------------
  ------------------
 3637|    385|                   frame->hd.type, frame->hd.stream_id, (int)nv.name->len,
 3638|    385|                   nv.name->base, (int)nv.value->len, nv.value->base);
 3639|       |
 3640|    385|            rv = session_call_error_callback(
 3641|    385|              session, NGHTTP2_ERR_HTTP_HEADER,
 3642|    385|              "Invalid HTTP header field was received: frame type: "
 3643|    385|              "%u, stream: %d, name: [%.*s], value: [%.*s]",
 3644|    385|              frame->hd.type, frame->hd.stream_id, (int)nv.name->len,
 3645|    385|              nv.name->base, (int)nv.value->len, nv.value->base);
 3646|       |
 3647|    385|            if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (3647:17): [True: 0, False: 385]
  ------------------
 3648|      0|              return rv;
 3649|      0|            }
 3650|       |
 3651|    385|            rv =
 3652|    385|              session_handle_invalid_stream2(session, subject_stream->stream_id,
 3653|    385|                                             frame, NGHTTP2_ERR_HTTP_HEADER);
 3654|    385|            if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (3654:17): [True: 0, False: 385]
  ------------------
 3655|      0|              return rv;
 3656|      0|            }
 3657|       |
 3658|    385|            rv = session_update_glitch_ratelim(session);
 3659|    385|            if (rv != 0) {
  ------------------
  |  Branch (3659:17): [True: 0, False: 385]
  ------------------
 3660|      0|              return rv;
 3661|      0|            }
 3662|       |
 3663|    385|            if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (3663:17): [True: 0, False: 385]
  ------------------
 3664|      0|              return 0;
 3665|      0|            }
 3666|       |
 3667|    385|            return NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE;
 3668|    385|          }
 3669|  47.3k|        }
 3670|  46.9k|        if (rv == 0) {
  ------------------
  |  Branch (3670:13): [True: 40.6k, False: 6.28k]
  ------------------
 3671|  40.6k|          rv = session_call_on_header(session, frame, &nv);
 3672|       |          /* This handles NGHTTP2_ERR_PAUSE and
 3673|       |             NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE as well */
 3674|  40.6k|          if (rv != 0) {
  ------------------
  |  Branch (3674:15): [True: 0, False: 40.6k]
  ------------------
 3675|      0|            return rv;
 3676|      0|          }
 3677|  40.6k|        }
 3678|  46.9k|      }
 3679|  47.3k|    }
 3680|  58.4k|    if (inflate_flags & NGHTTP2_HD_INFLATE_FINAL) {
  ------------------
  |  Branch (3680:9): [True: 456, False: 58.0k]
  ------------------
 3681|    456|      nghttp2_hd_inflate_end_headers(&session->hd_inflater);
 3682|    456|      break;
 3683|    456|    }
 3684|  58.0k|    if ((inflate_flags & NGHTTP2_HD_INFLATE_EMIT) == 0 && inlen == 0) {
  ------------------
  |  Branch (3684:9): [True: 4.16k, False: 53.8k]
  |  Branch (3684:59): [True: 4.16k, False: 0]
  ------------------
 3685|  4.16k|      break;
 3686|  4.16k|    }
 3687|  58.0k|  }
 3688|  4.61k|  return 0;
 3689|  5.95k|}
nghttp2_session.c:session_trailer_headers:
   99|  5.63k|                                   nghttp2_frame *frame) {
  100|  5.63k|  if (!stream || frame->hd.type != NGHTTP2_HEADERS) {
  ------------------
  |  Branch (100:7): [True: 31, False: 5.60k]
  |  Branch (100:18): [True: 0, False: 5.60k]
  ------------------
  101|     31|    return 0;
  102|     31|  }
  103|  5.60k|  if (session->server) {
  ------------------
  |  Branch (103:7): [True: 0, False: 5.60k]
  ------------------
  104|      0|    return frame->headers.cat == NGHTTP2_HCAT_HEADERS;
  105|      0|  }
  106|       |
  107|  5.60k|  return frame->headers.cat == NGHTTP2_HCAT_HEADERS &&
  ------------------
  |  Branch (107:10): [True: 183, False: 5.42k]
  ------------------
  108|    183|         (stream->http_flags & NGHTTP2_HTTP_FLAG_EXPECT_FINAL_RESPONSE) == 0;
  ------------------
  |  Branch (108:10): [True: 183, False: 0]
  ------------------
  109|  5.60k|}
nghttp2_session.c:session_call_on_invalid_header:
 3281|  6.28k|                                          const nghttp2_hd_nv *nv) {
 3282|  6.28k|  int rv;
 3283|  6.28k|  if (session->callbacks.on_invalid_header_callback2) {
  ------------------
  |  Branch (3283:7): [True: 0, False: 6.28k]
  ------------------
 3284|      0|    rv = session->callbacks.on_invalid_header_callback2(
 3285|      0|      session, frame, nv->name, nv->value, nv->flags, session->user_data);
 3286|  6.28k|  } else if (session->callbacks.on_invalid_header_callback) {
  ------------------
  |  Branch (3286:14): [True: 0, False: 6.28k]
  ------------------
 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.28k|  } else {
 3291|       |    /* If both callbacks are not set, the invalid field nv is
 3292|       |       ignored. */
 3293|  6.28k|    return 0;
 3294|  6.28k|  }
 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|  40.6k|                                  const nghttp2_hd_nv *nv) {
 3259|  40.6k|  int rv = 0;
 3260|  40.6k|  if (session->callbacks.on_header_callback2) {
  ------------------
  |  Branch (3260:7): [True: 0, False: 40.6k]
  ------------------
 3261|      0|    rv = session->callbacks.on_header_callback2(
 3262|      0|      session, frame, nv->name, nv->value, nv->flags, session->user_data);
 3263|  40.6k|  } else if (session->callbacks.on_header_callback) {
  ------------------
  |  Branch (3263:14): [True: 40.6k, False: 0]
  ------------------
 3264|  40.6k|    rv = session->callbacks.on_header_callback(
 3265|  40.6k|      session, frame, nv->name->base, nv->name->len, nv->value->base,
 3266|  40.6k|      nv->value->len, nv->flags, session->user_data);
 3267|  40.6k|  }
 3268|       |
 3269|  40.6k|  if (rv == NGHTTP2_ERR_PAUSE || rv == NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE) {
  ------------------
  |  Branch (3269:7): [True: 0, False: 40.6k]
  |  Branch (3269:34): [True: 0, False: 40.6k]
  ------------------
 3270|      0|    return rv;
 3271|      0|  }
 3272|  40.6k|  if (rv != 0) {
  ------------------
  |  Branch (3272:7): [True: 0, False: 40.6k]
  ------------------
 3273|      0|    return NGHTTP2_ERR_CALLBACK_FAILURE;
 3274|      0|  }
 3275|       |
 3276|  40.6k|  return 0;
 3277|  40.6k|}
nghttp2_session.c:session_after_header_block_received:
 3733|    275|static int session_after_header_block_received(nghttp2_session *session) {
 3734|    275|  int rv = 0;
 3735|    275|  nghttp2_frame *frame = &session->iframe.frame;
 3736|    275|  nghttp2_inbound_frame *iframe = &session->iframe;
 3737|    275|  nghttp2_stream *stream;
 3738|       |
 3739|       |  /* We don't call on_frame_recv_callback if stream has been closed
 3740|       |     already or being closed. */
 3741|    275|  stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
 3742|    275|  if (!stream || stream->state == NGHTTP2_STREAM_CLOSING) {
  ------------------
  |  Branch (3742:7): [True: 0, False: 275]
  |  Branch (3742:18): [True: 0, False: 275]
  ------------------
 3743|      0|    return 0;
 3744|      0|  }
 3745|       |
 3746|    275|  if (session_enforce_http_messaging(session)) {
  ------------------
  |  Branch (3746:7): [True: 275, False: 0]
  ------------------
 3747|    275|    if (frame->hd.type == NGHTTP2_PUSH_PROMISE) {
  ------------------
  |  Branch (3747:9): [True: 0, False: 275]
  ------------------
 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|    275|    } else {
 3756|    275|      assert(frame->hd.type == NGHTTP2_HEADERS);
  ------------------
  |  Branch (3756:7): [True: 0, False: 275]
  |  Branch (3756:7): [True: 275, False: 0]
  ------------------
 3757|    275|      switch (frame->headers.cat) {
 3758|      0|      case NGHTTP2_HCAT_REQUEST:
  ------------------
  |  Branch (3758:7): [True: 0, False: 275]
  ------------------
 3759|      0|        rv = nghttp2_http_on_request_headers(stream, frame);
 3760|      0|        break;
 3761|    263|      case NGHTTP2_HCAT_RESPONSE:
  ------------------
  |  Branch (3761:7): [True: 263, False: 12]
  ------------------
 3762|    263|      case NGHTTP2_HCAT_PUSH_RESPONSE:
  ------------------
  |  Branch (3762:7): [True: 0, False: 275]
  ------------------
 3763|    263|        rv = nghttp2_http_on_response_headers(stream);
 3764|    263|        break;
 3765|     12|      case NGHTTP2_HCAT_HEADERS:
  ------------------
  |  Branch (3765:7): [True: 12, False: 263]
  ------------------
 3766|     12|        if (stream->http_flags & NGHTTP2_HTTP_FLAG_EXPECT_FINAL_RESPONSE) {
  ------------------
  |  Branch (3766:13): [True: 0, False: 12]
  ------------------
 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|     12|        } else {
 3770|     12|          rv = nghttp2_http_on_trailer_headers(stream, frame);
 3771|     12|        }
 3772|     12|        break;
 3773|     12|      default:
  ------------------
  |  Branch (3773:7): [True: 0, False: 275]
  ------------------
 3774|      0|        assert(0);
  ------------------
  |  Branch (3774:9): [Folded, False: 0]
  |  Branch (3774:9): [Folded, False: 0]
  ------------------
 3775|    275|      }
 3776|    275|      if (rv == 0 && (frame->hd.flags & NGHTTP2_FLAG_END_STREAM)) {
  ------------------
  |  Branch (3776:11): [True: 266, False: 9]
  |  Branch (3776:22): [True: 65, False: 201]
  ------------------
 3777|     65|        rv = nghttp2_http_on_remote_end_stream(stream);
 3778|     65|      }
 3779|    275|    }
 3780|    275|    if (rv != 0) {
  ------------------
  |  Branch (3780:9): [True: 11, False: 264]
  ------------------
 3781|     11|      int32_t stream_id;
 3782|       |
 3783|     11|      if (frame->hd.type == NGHTTP2_PUSH_PROMISE) {
  ------------------
  |  Branch (3783:11): [True: 0, False: 11]
  ------------------
 3784|      0|        stream_id = frame->push_promise.promised_stream_id;
 3785|     11|      } else {
 3786|     11|        stream_id = frame->hd.stream_id;
 3787|     11|      }
 3788|       |
 3789|     11|      rv = session_handle_invalid_stream2(session, stream_id, frame,
 3790|     11|                                          NGHTTP2_ERR_HTTP_MESSAGING);
 3791|     11|      if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (3791:11): [True: 0, False: 11]
  ------------------
 3792|      0|        return rv;
 3793|      0|      }
 3794|       |
 3795|     11|      rv = session_update_glitch_ratelim(session);
 3796|     11|      if (rv != 0) {
  ------------------
  |  Branch (3796:11): [True: 0, False: 11]
  ------------------
 3797|      0|        return rv;
 3798|      0|      }
 3799|       |
 3800|     11|      if (iframe->state == NGHTTP2_IB_IGN_ALL) {
  ------------------
  |  Branch (3800:11): [True: 0, False: 11]
  ------------------
 3801|      0|        return 0;
 3802|      0|      }
 3803|       |
 3804|     11|      if (frame->hd.type == NGHTTP2_HEADERS &&
  ------------------
  |  Branch (3804:11): [True: 11, False: 0]
  ------------------
 3805|     11|          (frame->hd.flags & NGHTTP2_FLAG_END_STREAM)) {
  ------------------
  |  Branch (3805:11): [True: 6, False: 5]
  ------------------
 3806|      6|        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|      6|      }
 3810|       |
 3811|     11|      return 0;
 3812|     11|    }
 3813|    275|  }
 3814|       |
 3815|    264|  rv = session_call_on_frame_received(session, frame);
 3816|    264|  if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (3816:7): [True: 0, False: 264]
  ------------------
 3817|      0|    return rv;
 3818|      0|  }
 3819|       |
 3820|    264|  if (frame->hd.type != NGHTTP2_HEADERS) {
  ------------------
  |  Branch (3820:7): [True: 0, False: 264]
  ------------------
 3821|      0|    return 0;
 3822|      0|  }
 3823|       |
 3824|    264|  return session_end_stream_headers_received(session, frame, stream);
 3825|    264|}
nghttp2_session.c:session_end_stream_headers_received:
 3704|    264|                                               nghttp2_stream *stream) {
 3705|    264|  int rv;
 3706|       |
 3707|    264|  assert(frame->hd.type == NGHTTP2_HEADERS);
  ------------------
  |  Branch (3707:3): [True: 0, False: 264]
  |  Branch (3707:3): [True: 264, False: 0]
  ------------------
 3708|       |
 3709|    264|  if (session->server && session_enforce_http_messaging(session) &&
  ------------------
  |  Branch (3709:7): [True: 0, False: 264]
  |  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|    264|  if ((frame->hd.flags & NGHTTP2_FLAG_END_STREAM) == 0) {
  ------------------
  |  Branch (3720:7): [True: 201, False: 63]
  ------------------
 3721|    201|    return 0;
 3722|    201|  }
 3723|       |
 3724|     63|  nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_RD);
 3725|     63|  rv = nghttp2_session_close_stream_if_shut_rdwr(session, stream);
 3726|     63|  if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (3726:7): [True: 0, False: 63]
  ------------------
 3727|      0|    return rv;
 3728|      0|  }
 3729|       |
 3730|     63|  return 0;
 3731|     63|}
nghttp2_session.c:session_handle_frame_size_error:
 3356|     23|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|     23|  return nghttp2_session_terminate_session(session, NGHTTP2_FRAME_SIZE_ERROR);
 3360|     23|}
nghttp2_session.c:inbound_frame_set_settings_entry:
 5308|  5.51k|static void inbound_frame_set_settings_entry(nghttp2_inbound_frame *iframe) {
 5309|  5.51k|  nghttp2_settings_entry iv;
 5310|  5.51k|  nghttp2_settings_entry *min_header_table_size_entry;
 5311|  5.51k|  size_t i;
 5312|       |
 5313|  5.51k|  nghttp2_frame_unpack_settings_entry(&iv, iframe->sbuf.pos);
 5314|       |
 5315|  5.51k|  switch (iv.settings_id) {
 5316|    407|  case NGHTTP2_SETTINGS_HEADER_TABLE_SIZE:
  ------------------
  |  Branch (5316:3): [True: 407, False: 5.10k]
  ------------------
 5317|    491|  case NGHTTP2_SETTINGS_ENABLE_PUSH:
  ------------------
  |  Branch (5317:3): [True: 84, False: 5.43k]
  ------------------
 5318|  1.18k|  case NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS:
  ------------------
  |  Branch (5318:3): [True: 689, False: 4.82k]
  ------------------
 5319|  1.86k|  case NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE:
  ------------------
  |  Branch (5319:3): [True: 683, False: 4.83k]
  ------------------
 5320|  1.94k|  case NGHTTP2_SETTINGS_MAX_FRAME_SIZE:
  ------------------
  |  Branch (5320:3): [True: 86, False: 5.43k]
  ------------------
 5321|  1.97k|  case NGHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE:
  ------------------
  |  Branch (5321:3): [True: 30, False: 5.48k]
  ------------------
 5322|  2.07k|  case NGHTTP2_SETTINGS_ENABLE_CONNECT_PROTOCOL:
  ------------------
  |  Branch (5322:3): [True: 92, False: 5.42k]
  ------------------
 5323|  2.15k|  case NGHTTP2_SETTINGS_NO_RFC7540_PRIORITIES:
  ------------------
  |  Branch (5323:3): [True: 81, False: 5.43k]
  ------------------
 5324|  2.15k|    break;
 5325|  3.36k|  default:
  ------------------
  |  Branch (5325:3): [True: 3.36k, False: 2.15k]
  ------------------
 5326|  3.36k|    DEBUGF("recv: unknown settings id=0x%02x\n", iv.settings_id);
  ------------------
  |  |   39|  3.36k|    do {                                                                       \
  |  |   40|  3.36k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 3.36k]
  |  |  ------------------
  ------------------
 5327|       |
 5328|  3.36k|    iframe->iv[iframe->niv++] = iv;
 5329|       |
 5330|  3.36k|    return;
 5331|  5.51k|  }
 5332|       |
 5333|  6.86k|  for (i = 0; i < iframe->niv; ++i) {
  ------------------
  |  Branch (5333:15): [True: 5.14k, False: 1.72k]
  ------------------
 5334|  5.14k|    if (iframe->iv[i].settings_id == iv.settings_id) {
  ------------------
  |  Branch (5334:9): [True: 432, False: 4.71k]
  ------------------
 5335|    432|      iframe->iv[i] = iv;
 5336|    432|      break;
 5337|    432|    }
 5338|  5.14k|  }
 5339|       |
 5340|  2.15k|  if (i == iframe->niv) {
  ------------------
  |  Branch (5340:7): [True: 1.72k, False: 432]
  ------------------
 5341|  1.72k|    iframe->iv[iframe->niv++] = iv;
 5342|  1.72k|  }
 5343|       |
 5344|  2.15k|  if (iv.settings_id == NGHTTP2_SETTINGS_HEADER_TABLE_SIZE) {
  ------------------
  |  Branch (5344:7): [True: 407, False: 1.74k]
  ------------------
 5345|       |    /* Keep track of minimum value of SETTINGS_HEADER_TABLE_SIZE */
 5346|    407|    min_header_table_size_entry = &iframe->iv[iframe->max_niv - 1];
 5347|       |
 5348|    407|    if (iv.value < min_header_table_size_entry->value) {
  ------------------
  |  Branch (5348:9): [True: 251, False: 156]
  ------------------
 5349|    251|      min_header_table_size_entry->value = iv.value;
 5350|    251|    }
 5351|    407|  }
 5352|  2.15k|}
nghttp2_session.c:session_process_settings_frame:
 4535|  4.43k|static int session_process_settings_frame(nghttp2_session *session) {
 4536|  4.43k|  nghttp2_inbound_frame *iframe = &session->iframe;
 4537|  4.43k|  nghttp2_frame *frame = &iframe->frame;
 4538|  4.43k|  size_t i;
 4539|  4.43k|  nghttp2_settings_entry min_header_size_entry;
 4540|       |
 4541|  4.43k|  if (iframe->max_niv) {
  ------------------
  |  Branch (4541:7): [True: 1.14k, False: 3.28k]
  ------------------
 4542|  1.14k|    min_header_size_entry = iframe->iv[iframe->max_niv - 1];
 4543|       |
 4544|  1.14k|    if (min_header_size_entry.value < UINT32_MAX) {
  ------------------
  |  Branch (4544:9): [True: 213, False: 935]
  ------------------
 4545|       |      /* If we have less value, then we must have
 4546|       |         SETTINGS_HEADER_TABLE_SIZE in i < iframe->niv */
 4547|    731|      for (i = 0; i < iframe->niv; ++i) {
  ------------------
  |  Branch (4547:19): [True: 731, False: 0]
  ------------------
 4548|    731|        if (iframe->iv[i].settings_id == NGHTTP2_SETTINGS_HEADER_TABLE_SIZE) {
  ------------------
  |  Branch (4548:13): [True: 213, False: 518]
  ------------------
 4549|    213|          break;
 4550|    213|        }
 4551|    731|      }
 4552|       |
 4553|    213|      assert(i < iframe->niv);
  ------------------
  |  Branch (4553:7): [True: 0, False: 213]
  |  Branch (4553:7): [True: 213, False: 0]
  ------------------
 4554|       |
 4555|    213|      if (min_header_size_entry.value != iframe->iv[i].value) {
  ------------------
  |  Branch (4555:11): [True: 35, False: 178]
  ------------------
 4556|     35|        iframe->iv[iframe->niv++] = iframe->iv[i];
 4557|     35|        iframe->iv[i] = min_header_size_entry;
 4558|     35|      }
 4559|    213|    }
 4560|  1.14k|  }
 4561|       |
 4562|  4.43k|  nghttp2_frame_unpack_settings_payload(&frame->settings, iframe->iv,
 4563|  4.43k|                                        iframe->niv);
 4564|       |
 4565|  4.43k|  iframe->iv = NULL;
 4566|  4.43k|  iframe->niv = 0;
 4567|  4.43k|  iframe->max_niv = 0;
 4568|       |
 4569|  4.43k|  return nghttp2_session_on_settings_received(session, frame, 0 /* ACK */);
 4570|  4.43k|}
nghttp2_session.c:session_process_goaway_frame:
 4721|    106|static int session_process_goaway_frame(nghttp2_session *session) {
 4722|    106|  nghttp2_inbound_frame *iframe = &session->iframe;
 4723|    106|  nghttp2_frame *frame = &iframe->frame;
 4724|       |
 4725|    106|  nghttp2_frame_unpack_goaway_payload(&frame->goaway, iframe->sbuf.pos,
 4726|    106|                                      iframe->lbuf.pos,
 4727|    106|                                      nghttp2_buf_len(&iframe->lbuf));
  ------------------
  |  |   54|    106|#define nghttp2_buf_len(BUF) ((size_t)((BUF)->last - (BUF)->pos))
  ------------------
 4728|       |
 4729|    106|  nghttp2_buf_wrap_init(&iframe->lbuf, NULL, 0);
 4730|       |
 4731|    106|  return nghttp2_session_on_goaway_received(session, frame);
 4732|    106|}
nghttp2_session.c:session_update_connection_consumed_size:
 5187|  5.03k|                                                   size_t delta_size) {
 5188|  5.03k|  return session_update_consumed_size(
 5189|  5.03k|    session, &session->consumed_size, &session->recv_window_size,
 5190|  5.03k|    session->window_update_queued, 0, delta_size, session->local_window_size);
 5191|  5.03k|}
nghttp2_session.c:session_update_consumed_size:
 5144|  5.81k|                                        int32_t local_window_size) {
 5145|  5.81k|  int32_t recv_size;
 5146|  5.81k|  int rv;
 5147|       |
 5148|  5.81k|  if ((size_t)*consumed_size_ptr > NGHTTP2_MAX_WINDOW_SIZE - delta_size) {
  ------------------
  |  |  224|  5.81k|#define NGHTTP2_MAX_WINDOW_SIZE ((int32_t)((1U << 31) - 1))
  ------------------
  |  Branch (5148:7): [True: 0, False: 5.81k]
  ------------------
 5149|      0|    return nghttp2_session_terminate_session(session,
 5150|      0|                                             NGHTTP2_FLOW_CONTROL_ERROR);
 5151|      0|  }
 5152|       |
 5153|  5.81k|  *consumed_size_ptr += (int32_t)delta_size;
 5154|       |
 5155|  5.81k|  if (window_update_queued == 0) {
  ------------------
  |  Branch (5155:7): [True: 5.68k, False: 130]
  ------------------
 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|  5.68k|    recv_size = nghttp2_min_int32(*consumed_size_ptr, *recv_window_size_ptr);
 5160|       |
 5161|  5.68k|    if (nghttp2_should_send_window_update(local_window_size, recv_size)) {
  ------------------
  |  Branch (5161:9): [True: 0, False: 5.68k]
  ------------------
 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|  5.68k|  }
 5173|       |
 5174|  5.81k|  return 0;
 5175|  5.81k|}
nghttp2_session.c:session_process_data_frame:
 5052|     68|static int session_process_data_frame(nghttp2_session *session) {
 5053|     68|  int rv;
 5054|     68|  nghttp2_frame *public_data_frame = &session->iframe.frame;
 5055|     68|  rv = nghttp2_session_on_data_received(session, public_data_frame);
 5056|     68|  if (nghttp2_is_fatal(rv)) {
  ------------------
  |  Branch (5056:7): [True: 0, False: 68]
  ------------------
 5057|      0|    return rv;
 5058|      0|  }
 5059|     68|  return 0;
 5060|     68|}
nghttp2_session.c:session_get_num_active_streams:
 7121|  70.6k|static size_t session_get_num_active_streams(nghttp2_session *session) {
 7122|  70.6k|  return nghttp2_map_size(&session->streams) - session->num_closed_streams -
 7123|  70.6k|         session->num_idle_streams;
 7124|  70.6k|}
nghttp2_session.c:session_sched_empty:
  955|  37.6k|static int session_sched_empty(nghttp2_session *session) {
  956|  37.6k|  size_t i;
  957|       |
  958|   338k|  for (i = 0; i < NGHTTP2_EXTPRI_URGENCY_LEVELS; ++i) {
  ------------------
  |  | 5028|   338k|#define NGHTTP2_EXTPRI_URGENCY_LEVELS (NGHTTP2_EXTPRI_URGENCY_LOW + 1)
  |  |  ------------------
  |  |  |  | 5020|   338k|#define NGHTTP2_EXTPRI_URGENCY_LOW 7
  |  |  ------------------
  ------------------
  |  Branch (958:15): [True: 300k, False: 37.5k]
  ------------------
  959|   300k|    if (!nghttp2_pq_empty(&session->sched[i].ob_data)) {
  ------------------
  |  Branch (959:9): [True: 140, False: 300k]
  ------------------
  960|    140|      return 0;
  961|    140|    }
  962|   300k|  }
  963|       |
  964|  37.5k|  return 1;
  965|  37.6k|}
nghttp2_session.c:inflight_settings_new:
  758|  4.41k|                                 nghttp2_mem *mem) {
  759|  4.41k|  *settings_ptr = nghttp2_mem_malloc(mem, sizeof(nghttp2_inflight_settings));
  760|  4.41k|  if (!*settings_ptr) {
  ------------------
  |  Branch (760:7): [True: 0, False: 4.41k]
  ------------------
  761|      0|    return NGHTTP2_ERR_NOMEM;
  762|      0|  }
  763|       |
  764|  4.41k|  if (niv > 0) {
  ------------------
  |  Branch (764:7): [True: 4.41k, False: 0]
  ------------------
  765|  4.41k|    (*settings_ptr)->iv = nghttp2_frame_iv_copy(iv, niv, mem);
  766|  4.41k|    if (!(*settings_ptr)->iv) {
  ------------------
  |  Branch (766:9): [True: 0, False: 4.41k]
  ------------------
  767|      0|      nghttp2_mem_free(mem, *settings_ptr);
  768|      0|      return NGHTTP2_ERR_NOMEM;
  769|      0|    }
  770|  4.41k|  } else {
  771|      0|    (*settings_ptr)->iv = NULL;
  772|      0|  }
  773|       |
  774|  4.41k|  (*settings_ptr)->niv = niv;
  775|  4.41k|  (*settings_ptr)->next = NULL;
  776|       |
  777|  4.41k|  return 0;
  778|  4.41k|}
nghttp2_session.c:session_append_inflight_settings:
 7303|  4.41k|                                 nghttp2_inflight_settings *settings) {
 7304|  4.41k|  nghttp2_inflight_settings **i;
 7305|       |
 7306|  4.41k|  for (i = &session->inflight_settings_head; *i; i = &(*i)->next)
  ------------------
  |  Branch (7306:46): [True: 0, False: 4.41k]
  ------------------
 7307|      0|    ;
 7308|       |
 7309|  4.41k|  *i = settings;
 7310|  4.41k|}
nghttp2_session.c:nghttp2_session_enforce_flow_control_limits:
 1759|  1.12k|  nghttp2_ssize requested_window_size) {
 1760|  1.12k|  DEBUGF("send: remote windowsize connection=%d, remote maxframsize=%u, "
  ------------------
  |  |   39|  1.12k|    do {                                                                       \
  |  |   40|  1.12k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 1.12k]
  |  |  ------------------
  ------------------
 1761|  1.12k|         "stream(id %d)=%d\n",
 1762|  1.12k|         session->remote_window_size, session->remote_settings.max_frame_size,
 1763|  1.12k|         stream->stream_id, stream->remote_window_size);
 1764|       |
 1765|  1.12k|  return nghttp2_min_int32(
 1766|  1.12k|    nghttp2_min_int32(nghttp2_min_int32((int32_t)requested_window_size,
 1767|  1.12k|                                        stream->remote_window_size),
 1768|  1.12k|                      session->remote_window_size),
 1769|  1.12k|    (int32_t)session->remote_settings.max_frame_size);
 1770|  1.12k|}
nghttp2_session.c:session_call_select_padding:
 1842|  5.15k|                                                 size_t max_payloadlen) {
 1843|  5.15k|  nghttp2_ssize rv;
 1844|  5.15k|  size_t max_paddedlen;
 1845|       |
 1846|  5.15k|  if (frame->hd.length >= max_payloadlen ||
  ------------------
  |  Branch (1846:7): [True: 483, False: 4.66k]
  ------------------
 1847|  4.66k|      (!session->callbacks.select_padding_callback2 &&
  ------------------
  |  Branch (1847:8): [True: 4.66k, False: 0]
  ------------------
 1848|  5.15k|       !session->callbacks.select_padding_callback)) {
  ------------------
  |  Branch (1848:8): [True: 4.66k, False: 0]
  ------------------
 1849|  5.15k|    return (nghttp2_ssize)frame->hd.length;
 1850|  5.15k|  }
 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|    772|                                      nghttp2_stream *stream) {
 2465|    772|  stream->last_writelen = stream->item->frame.hd.length;
 2466|       |
 2467|    772|  if (!session->server) {
  ------------------
  |  Branch (2467:7): [True: 772, False: 0]
  ------------------
 2468|    772|    return;
 2469|    772|  }
 2470|       |
 2471|      0|  session_sched_reschedule_stream(session, stream);
 2472|      0|}
nghttp2_session.c:session_resume_deferred_stream_item:
  926|    199|                                               uint8_t flags) {
  927|    199|  nghttp2_stream_resume_deferred_item(stream, flags);
  928|       |
  929|    199|  if (stream->flags & NGHTTP2_STREAM_FLAG_DEFERRED_ALL) {
  ------------------
  |  Branch (929:7): [True: 40, False: 159]
  ------------------
  930|     40|    return 0;
  931|     40|  }
  932|       |
  933|    159|  return session_ob_data_push(session, stream);
  934|    199|}
nghttp2_session.c:nghttp2_session_upgrade_internal:
 7799|     19|                                            void *stream_user_data) {
 7800|     19|  nghttp2_stream *stream;
 7801|     19|  nghttp2_frame frame;
 7802|     19|  nghttp2_settings_entry *iv;
 7803|     19|  size_t niv;
 7804|     19|  int rv;
 7805|     19|  nghttp2_mem *mem;
 7806|       |
 7807|     19|  mem = &session->mem;
 7808|       |
 7809|     19|  if ((!session->server && session->next_stream_id != 1) ||
  ------------------
  |  Branch (7809:8): [True: 19, False: 0]
  |  Branch (7809:28): [True: 0, False: 19]
  ------------------
 7810|     19|      (session->server && session->last_recv_stream_id >= 1)) {
  ------------------
  |  Branch (7810:8): [True: 0, False: 19]
  |  Branch (7810:27): [True: 0, False: 0]
  ------------------
 7811|      0|    return NGHTTP2_ERR_PROTO;
 7812|      0|  }
 7813|     19|  if (settings_payloadlen % NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH) {
  ------------------
  |  |   61|     19|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
  |  Branch (7813:7): [True: 0, False: 19]
  ------------------
 7814|      0|    return NGHTTP2_ERR_INVALID_ARGUMENT;
 7815|      0|  }
 7816|       |  /* SETTINGS frame contains too many settings */
 7817|     19|  if (settings_payloadlen / NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH >
  ------------------
  |  |   61|     19|#define NGHTTP2_FRAME_SETTINGS_ENTRY_LENGTH 6
  ------------------
  |  Branch (7817:7): [True: 0, False: 19]
  ------------------
 7818|     19|      session->max_settings) {
 7819|      0|    return NGHTTP2_ERR_TOO_MANY_SETTINGS;
 7820|      0|  }
 7821|     19|  rv = nghttp2_frame_unpack_settings_payload2(&iv, &niv, settings_payload,
 7822|     19|                                              settings_payloadlen, mem);
 7823|     19|  if (rv != 0) {
  ------------------
  |  Branch (7823:7): [True: 0, False: 19]
  ------------------
 7824|      0|    return rv;
 7825|      0|  }
 7826|       |
 7827|     19|  if (session->server) {
  ------------------
  |  Branch (7827:7): [True: 0, False: 19]
  ------------------
 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|     19|  } else {
 7834|     19|    rv = nghttp2_submit_settings(session, NGHTTP2_FLAG_NONE, iv, niv);
 7835|     19|  }
 7836|     19|  nghttp2_mem_free(mem, iv);
 7837|     19|  if (rv != 0) {
  ------------------
  |  Branch (7837:7): [True: 0, False: 19]
  ------------------
 7838|      0|    return rv;
 7839|      0|  }
 7840|       |
 7841|     19|  stream = nghttp2_session_open_stream(
 7842|     19|    session, 1, NGHTTP2_STREAM_FLAG_NONE, NGHTTP2_STREAM_OPENING,
 7843|     19|    session->server ? NULL : stream_user_data);
  ------------------
  |  Branch (7843:5): [True: 0, False: 19]
  ------------------
 7844|     19|  if (stream == NULL) {
  ------------------
  |  Branch (7844:7): [True: 0, False: 19]
  ------------------
 7845|      0|    return NGHTTP2_ERR_NOMEM;
 7846|      0|  }
 7847|       |
 7848|     19|  if (session->server) {
  ------------------
  |  Branch (7848:7): [True: 0, False: 19]
  ------------------
 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|     19|  } else {
 7853|     19|    nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_WR);
 7854|     19|    session->last_sent_stream_id = 1;
 7855|     19|    session->next_stream_id += 2;
 7856|     19|  }
 7857|     19|  return 0;
 7858|     19|}
nghttp2_session.c:session_update_stream_consumed_size:
 5179|    780|                                               size_t delta_size) {
 5180|    780|  return session_update_consumed_size(
 5181|    780|    session, &stream->consumed_size, &stream->recv_window_size,
 5182|    780|    stream->window_update_queued, stream->stream_id, delta_size,
 5183|    780|    stream->local_window_size);
 5184|    780|}

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

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

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

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

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

asn1_d2i_read_bio:
  110|  82.7k|{
  111|  82.7k|    BUF_MEM *b;
  112|  82.7k|    unsigned char *p;
  113|  82.7k|    size_t want = HEADER_SIZE;
  ------------------
  |  |  107|  82.7k|#define HEADER_SIZE 2
  ------------------
  114|  82.7k|    uint32_t eos = 0;
  115|  82.7k|    size_t off = 0;
  116|  82.7k|    size_t len = 0;
  117|  82.7k|    size_t diff;
  118|       |
  119|  82.7k|    const unsigned char *q;
  120|  82.7k|    long slen;
  121|  82.7k|    int inf, tag, xclass;
  122|       |
  123|  82.7k|    b = BUF_MEM_new();
  124|  82.7k|    if (b == NULL) {
  ------------------
  |  Branch (124:9): [True: 0, False: 82.7k]
  ------------------
  125|      0|        ERR_raise(ERR_LIB_ASN1, ERR_R_BUF_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  126|      0|        return -1;
  127|      0|    }
  128|       |
  129|  82.7k|    ERR_set_mark();
  130|   139k|    for (;;) {
  131|   139k|        diff = len - off;
  132|   139k|        if (want >= diff) {
  ------------------
  |  Branch (132:13): [True: 139k, False: 0]
  ------------------
  133|   139k|            int i;
  134|       |
  135|   139k|            want -= diff;
  136|       |
  137|   139k|            if (len + want < len || !BUF_MEM_grow_clean(b, len + want)) {
  ------------------
  |  Branch (137:17): [True: 0, False: 139k]
  |  Branch (137:37): [True: 0, False: 139k]
  ------------------
  138|      0|                ERR_raise(ERR_LIB_ASN1, ERR_R_BUF_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  139|      0|                goto err;
  140|      0|            }
  141|   139k|            i = BIO_read(in, &(b->data[len]), (int)want);
  142|       |
  143|   139k|            if (i <= 0) {
  ------------------
  |  Branch (143:17): [True: 0, False: 139k]
  ------------------
  144|      0|                ERR_raise(ERR_LIB_ASN1, ASN1_R_NOT_ENOUGH_DATA);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  145|      0|                goto err;
  146|      0|            }
  147|       |
  148|   139k|            if (i > 0) {
  ------------------
  |  Branch (148:17): [True: 139k, False: 0]
  ------------------
  149|   139k|                if (len + i < len) {
  ------------------
  |  Branch (149:21): [True: 0, False: 139k]
  ------------------
  150|      0|                    ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_LONG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  151|      0|                    goto err;
  152|      0|                }
  153|   139k|                len += i;
  154|   139k|                if ((size_t)i < want)
  ------------------
  |  Branch (154:21): [True: 0, False: 139k]
  ------------------
  155|      0|                    continue;
  156|   139k|            }
  157|   139k|        }
  158|       |        /* else data already loaded */
  159|       |
  160|       |        /* make sure there is enough data for a complete header */
  161|   139k|        p = (unsigned char *)&(b->data[off]);
  162|   139k|        q = p;
  163|   139k|        diff = len - off;
  164|   139k|        if (diff < 2) {
  ------------------
  |  Branch (164:13): [True: 0, False: 139k]
  ------------------
  165|       |            /* Failed sanity check */
  166|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_NOT_ENOUGH_DATA);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  167|      0|            goto err;
  168|      0|        }
  169|       |
  170|   139k|        diff--;
  171|   139k|        if ((*(q++) & V_ASN1_PRIMITIVE_TAG) == V_ASN1_PRIMITIVE_TAG) {
  ------------------
  |  |   55|   139k|#define V_ASN1_PRIMITIVE_TAG 0x1f
  ------------------
                      if ((*(q++) & V_ASN1_PRIMITIVE_TAG) == V_ASN1_PRIMITIVE_TAG) {
  ------------------
  |  |   55|   139k|#define V_ASN1_PRIMITIVE_TAG 0x1f
  ------------------
  |  Branch (171:13): [True: 0, False: 139k]
  ------------------
  172|      0|            unsigned int i = 0;
  173|       |            /* Multi-byte tag.  See if we have the whole thing yet */
  174|      0|            do {
  175|      0|                if (i > 4) {
  ------------------
  |  Branch (175:21): [True: 0, False: 0]
  ------------------
  176|       |                    /* The tag value must fit into int */
  177|      0|                    ERR_raise(ERR_LIB_ASN1, ASN1_R_HEADER_TOO_LONG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  178|      0|                    goto err;
  179|      0|                }
  180|      0|                ++i;
  181|      0|                diff--;
  182|      0|            } while (diff > 0 && *(q++) & 0x80);
  ------------------
  |  Branch (182:22): [True: 0, False: 0]
  |  Branch (182:34): [True: 0, False: 0]
  ------------------
  183|       |
  184|      0|            if (diff == 0) {
  ------------------
  |  Branch (184:17): [True: 0, False: 0]
  ------------------
  185|       |                /*
  186|       |                 * End of current data, will need at least 1 more byte for
  187|       |                 * length.  2 if the tag is still incomplete
  188|       |                 */
  189|      0|                want = q - p + 2;
  190|      0|                if (*q & 0x80) {
  ------------------
  |  Branch (190:21): [True: 0, False: 0]
  ------------------
  191|      0|                    want++;
  192|      0|                }
  193|      0|                continue;
  194|      0|            }
  195|      0|        }
  196|       |
  197|       |        /* Check the length.  This should also work for indefinite length */
  198|   139k|        diff--;
  199|   139k|        if (*q & 0x80) {
  ------------------
  |  Branch (199:13): [True: 113k, False: 25.9k]
  ------------------
  200|   113k|            unsigned int i = *q & 0x7f;
  201|       |
  202|   113k|            if (i > sizeof(long)) {
  ------------------
  |  Branch (202:17): [True: 0, False: 113k]
  ------------------
  203|      0|                ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_LONG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  204|      0|                goto err;
  205|      0|            }
  206|   113k|            if (i > diff) {
  ------------------
  |  Branch (206:17): [True: 56.7k, False: 56.7k]
  ------------------
  207|  56.7k|                want = q - p + i + 1;
  208|  56.7k|                continue;
  209|  56.7k|            }
  210|   113k|        }
  211|       |
  212|       |        /*
  213|       |         * We have a complete header now, assuming we didn't hit EOF. Parse the
  214|       |         * tag and length
  215|       |         */
  216|  82.7k|        q = p;
  217|  82.7k|        diff = len - off;
  218|  82.7k|        inf = ASN1_get_object(&q, &slen, &tag, &xclass, (int)diff);
  219|  82.7k|        if (inf & 0x80) {
  ------------------
  |  Branch (219:13): [True: 82.7k, False: 0]
  ------------------
  220|  82.7k|            unsigned long e;
  221|       |
  222|  82.7k|            e = ERR_GET_REASON(ERR_peek_last_error());
  223|  82.7k|            if (e != ASN1_R_TOO_LONG)
  ------------------
  |  |  118|  82.7k|#define ASN1_R_TOO_LONG 155
  ------------------
  |  Branch (223:17): [True: 0, False: 82.7k]
  ------------------
  224|      0|                goto err;
  225|  82.7k|            ERR_pop_to_mark();
  226|  82.7k|            ERR_set_mark();
  227|  82.7k|        }
  228|  82.7k|        off += q - p; /* end of data */
  229|       |
  230|  82.7k|        if (inf & 1) {
  ------------------
  |  Branch (230:13): [True: 0, False: 82.7k]
  ------------------
  231|       |            /* no data body so go round again */
  232|      0|            if (eos == UINT32_MAX) {
  ------------------
  |  Branch (232:17): [True: 0, False: 0]
  ------------------
  233|      0|                ERR_raise(ERR_LIB_ASN1, ASN1_R_HEADER_TOO_LONG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  234|      0|                goto err;
  235|      0|            }
  236|      0|            eos++;
  237|      0|            want = HEADER_SIZE;
  ------------------
  |  |  107|      0|#define HEADER_SIZE 2
  ------------------
  238|  82.7k|        } else if (eos && (slen == 0) && (tag == V_ASN1_EOC)) {
  ------------------
  |  |   64|      0|#define V_ASN1_EOC 0
  ------------------
  |  Branch (238:20): [True: 0, False: 82.7k]
  |  Branch (238:27): [True: 0, False: 0]
  |  Branch (238:42): [True: 0, False: 0]
  ------------------
  239|       |            /* eos value, so go back and read another header */
  240|      0|            eos--;
  241|      0|            if (eos == 0)
  ------------------
  |  Branch (241:17): [True: 0, False: 0]
  ------------------
  242|      0|                break;
  243|      0|            else
  244|      0|                want = HEADER_SIZE;
  ------------------
  |  |  107|      0|#define HEADER_SIZE 2
  ------------------
  245|  82.7k|        } else {
  246|       |            /* suck in slen bytes of data */
  247|  82.7k|            want = slen;
  248|  82.7k|            if (want > (len - off)) {
  ------------------
  |  Branch (248:17): [True: 82.7k, False: 0]
  ------------------
  249|  82.7k|                size_t chunk_max = ASN1_CHUNK_INITIAL_SIZE;
  ------------------
  |  |  108|  82.7k|#define ASN1_CHUNK_INITIAL_SIZE (16 * 1024)
  ------------------
  250|       |
  251|  82.7k|                want -= (len - off);
  252|  82.7k|                if (want > INT_MAX /* BIO_read takes an int length */ || len + want < len) {
  ------------------
  |  Branch (252:21): [True: 0, False: 82.7k]
  |  Branch (252:74): [True: 0, False: 82.7k]
  ------------------
  253|      0|                    ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_LONG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  254|      0|                    goto err;
  255|      0|                }
  256|   165k|                while (want > 0) {
  ------------------
  |  Branch (256:24): [True: 82.7k, False: 82.7k]
  ------------------
  257|       |                    /*
  258|       |                     * Read content in chunks of increasing size
  259|       |                     * so we can return an error for EOF without
  260|       |                     * having to allocate the entire content length
  261|       |                     * in one go.
  262|       |                     */
  263|  82.7k|                    size_t chunk = want > chunk_max ? chunk_max : want;
  ------------------
  |  Branch (263:36): [True: 0, False: 82.7k]
  ------------------
  264|  82.7k|                    int i;
  265|       |
  266|  82.7k|                    if (!BUF_MEM_grow_clean(b, len + chunk)) {
  ------------------
  |  Branch (266:25): [True: 0, False: 82.7k]
  ------------------
  267|      0|                        ERR_raise(ERR_LIB_ASN1, ERR_R_BUF_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  268|      0|                        goto err;
  269|      0|                    }
  270|  82.7k|                    want -= chunk;
  271|   165k|                    while (chunk > 0) {
  ------------------
  |  Branch (271:28): [True: 82.7k, False: 82.7k]
  ------------------
  272|  82.7k|                        i = BIO_read(in, &(b->data[len]), (int)chunk);
  273|  82.7k|                        if (i <= 0) {
  ------------------
  |  Branch (273:29): [True: 0, False: 82.7k]
  ------------------
  274|      0|                            ERR_raise(ERR_LIB_ASN1, ASN1_R_NOT_ENOUGH_DATA);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  275|      0|                            goto err;
  276|      0|                        }
  277|       |                        /*
  278|       |                         * This can't overflow because |len+want| didn't
  279|       |                         * overflow.
  280|       |                         */
  281|  82.7k|                        len += i;
  282|  82.7k|                        chunk -= i;
  283|  82.7k|                    }
  284|  82.7k|                    if (chunk_max < INT_MAX / 2)
  ------------------
  |  Branch (284:25): [True: 82.7k, False: 0]
  ------------------
  285|  82.7k|                        chunk_max *= 2;
  286|  82.7k|                }
  287|  82.7k|            }
  288|  82.7k|            if (off + slen < off) {
  ------------------
  |  Branch (288:17): [True: 0, False: 82.7k]
  ------------------
  289|      0|                ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_LONG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  290|      0|                goto err;
  291|      0|            }
  292|  82.7k|            off += slen;
  293|  82.7k|            if (eos == 0) {
  ------------------
  |  Branch (293:17): [True: 82.7k, False: 0]
  ------------------
  294|  82.7k|                break;
  295|  82.7k|            } else
  296|      0|                want = HEADER_SIZE;
  ------------------
  |  |  107|      0|#define HEADER_SIZE 2
  ------------------
  297|  82.7k|        }
  298|  82.7k|    }
  299|       |
  300|  82.7k|    if (off > INT_MAX) {
  ------------------
  |  Branch (300:9): [True: 0, False: 82.7k]
  ------------------
  301|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_LONG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  302|      0|        goto err;
  303|      0|    }
  304|       |
  305|  82.7k|    *pb = b;
  306|  82.7k|    ERR_clear_last_mark();
  307|  82.7k|    return (int)off;
  308|      0|err:
  309|      0|    ERR_clear_last_mark();
  310|      0|    BUF_MEM_free(b);
  311|      0|    return -1;
  312|  82.7k|}

ossl_c2i_ASN1_INTEGER:
  301|  82.7k|{
  302|  82.7k|    ASN1_INTEGER *ret = NULL;
  303|  82.7k|    size_t r;
  304|  82.7k|    int neg;
  305|       |
  306|  82.7k|    r = c2i_ibuf(NULL, NULL, *pp, len);
  307|       |
  308|  82.7k|    if (r == 0)
  ------------------
  |  Branch (308:9): [True: 0, False: 82.7k]
  ------------------
  309|      0|        return NULL;
  310|       |
  311|  82.7k|    if ((a == NULL) || ((*a) == NULL)) {
  ------------------
  |  Branch (311:9): [True: 0, False: 82.7k]
  |  Branch (311:24): [True: 41.3k, False: 41.3k]
  ------------------
  312|  41.3k|        ret = ASN1_INTEGER_new();
  313|  41.3k|        if (ret == NULL)
  ------------------
  |  Branch (313:13): [True: 0, False: 41.3k]
  ------------------
  314|      0|            return NULL;
  315|  41.3k|        ret->type = V_ASN1_INTEGER;
  ------------------
  |  |   66|  41.3k|#define V_ASN1_INTEGER 2
  ------------------
  316|  41.3k|    } else
  317|  41.3k|        ret = *a;
  318|       |
  319|  82.7k|    if (r > INT_MAX || ASN1_STRING_set(ret, NULL, (int)r) == 0) {
  ------------------
  |  Branch (319:9): [True: 0, False: 82.7k]
  |  Branch (319:24): [True: 0, False: 82.7k]
  ------------------
  320|      0|        ERR_raise(ERR_LIB_ASN1, ERR_R_ASN1_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  321|      0|        goto err;
  322|      0|    }
  323|       |
  324|  82.7k|    c2i_ibuf(ret->data, &neg, *pp, len);
  325|       |
  326|  82.7k|    if (neg != 0)
  ------------------
  |  Branch (326:9): [True: 0, False: 82.7k]
  ------------------
  327|      0|        ret->type |= V_ASN1_NEG;
  ------------------
  |  |   99|      0|#define V_ASN1_NEG 0x100
  ------------------
  328|  82.7k|    else
  329|  82.7k|        ret->type &= ~V_ASN1_NEG;
  ------------------
  |  |   99|  82.7k|#define V_ASN1_NEG 0x100
  ------------------
  330|       |
  331|  82.7k|    *pp += len;
  332|  82.7k|    if (a != NULL)
  ------------------
  |  Branch (332:9): [True: 82.7k, False: 0]
  ------------------
  333|  82.7k|        (*a) = ret;
  334|  82.7k|    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|  82.7k|}
a_int.c:twos_complement:
   78|  37.2k|{
   79|  37.2k|    unsigned int carry = pad & 1;
   80|       |
   81|       |    /* Begin at the end of the encoding */
   82|  37.2k|    if (len != 0) {
  ------------------
  |  Branch (82:9): [True: 37.2k, False: 0]
  ------------------
   83|       |        /*
   84|       |         * if len == 0 then src/dst could be NULL, and this would be undefined
   85|       |         * behaviour.
   86|       |         */
   87|  37.2k|        dst += len;
   88|  37.2k|        src += len;
   89|  37.2k|    }
   90|       |    /* two's complement value: ~value + 1 */
   91|   576k|    while (len-- != 0) {
  ------------------
  |  Branch (91:12): [True: 539k, False: 37.2k]
  ------------------
   92|   539k|        *(--dst) = (unsigned char)(carry += *(--src) ^ pad);
   93|   539k|        carry >>= 8;
   94|   539k|    }
   95|  37.2k|}
a_int.c:c2i_ibuf:
  156|   165k|{
  157|   165k|    int neg, pad;
  158|       |    /* Zero content length is illegal */
  159|   165k|    if (plen == 0) {
  ------------------
  |  Branch (159:9): [True: 0, False: 165k]
  ------------------
  160|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_ILLEGAL_ZERO_CONTENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  161|      0|        return 0;
  162|      0|    }
  163|   165k|    neg = p[0] & 0x80;
  164|   165k|    if (pneg)
  ------------------
  |  Branch (164:9): [True: 82.7k, False: 82.7k]
  ------------------
  165|  82.7k|        *pneg = neg;
  166|       |    /* Handle common case where length is 1 octet separately */
  167|   165k|    if (plen == 1) {
  ------------------
  |  Branch (167:9): [True: 90.9k, False: 74.5k]
  ------------------
  168|  90.9k|        if (b != NULL) {
  ------------------
  |  Branch (168:13): [True: 45.4k, False: 45.4k]
  ------------------
  169|  45.4k|            if (neg)
  ------------------
  |  Branch (169:17): [True: 0, False: 45.4k]
  ------------------
  170|      0|                b[0] = (p[0] ^ 0xFF) + 1;
  171|  45.4k|            else
  172|  45.4k|                b[0] = p[0];
  173|  45.4k|        }
  174|  90.9k|        return 1;
  175|  90.9k|    }
  176|       |
  177|  74.5k|    pad = 0;
  178|  74.5k|    if (p[0] == 0) {
  ------------------
  |  Branch (178:9): [True: 6.15k, False: 68.4k]
  ------------------
  179|  6.15k|        pad = 1;
  180|  68.4k|    } else if (p[0] == 0xFF) {
  ------------------
  |  Branch (180:16): [True: 0, False: 68.4k]
  ------------------
  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|  74.5k|    if (pad && (neg == (p[1] & 0x80))) {
  ------------------
  |  Branch (192:9): [True: 6.15k, False: 68.4k]
  |  Branch (192:16): [True: 0, False: 6.15k]
  ------------------
  193|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_ILLEGAL_PADDING);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  194|      0|        return 0;
  195|      0|    }
  196|       |
  197|       |    /* skip over pad */
  198|  74.5k|    p += pad;
  199|  74.5k|    plen -= pad;
  200|       |
  201|  74.5k|    if (b != NULL)
  ------------------
  |  Branch (201:9): [True: 37.2k, False: 37.2k]
  ------------------
  202|  37.2k|        twos_complement(b, p, plen, neg ? 0xffU : 0);
  ------------------
  |  Branch (202:37): [True: 0, False: 37.2k]
  ------------------
  203|       |
  204|  74.5k|    return plen;
  205|  74.5k|}

ASN1_mbstring_copy:
   40|   292k|{
   41|   292k|    return ASN1_mbstring_ncopy(out, in, len, inform, mask, 0, 0);
   42|   292k|}
ASN1_mbstring_ncopy:
   47|   292k|{
   48|   292k|    int str_type;
   49|   292k|    int ret;
   50|   292k|    char free_out;
   51|   292k|    int outform, outlen = 0;
   52|   292k|    ASN1_STRING *dest;
   53|   292k|    unsigned char *p;
   54|   292k|    int nchar;
   55|   292k|    int (*cpyfunc)(unsigned long, void *) = NULL;
   56|   292k|    if (len == -1) {
  ------------------
  |  Branch (56:9): [True: 0, False: 292k]
  ------------------
   57|      0|        size_t len_s = strlen((const char *)in);
   58|       |
   59|      0|        if (len_s >= INT_MAX) {
  ------------------
  |  Branch (59:13): [True: 0, False: 0]
  ------------------
   60|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_STRING_TOO_LONG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   61|      0|            return -1;
   62|      0|        }
   63|      0|        len = (int)len_s;
   64|      0|    }
   65|   292k|    if (!mask)
  ------------------
  |  Branch (65:9): [True: 0, False: 292k]
  ------------------
   66|      0|        mask = DIRSTRING_TYPE;
  ------------------
  |  |  192|      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
  |  |  ------------------
  ------------------
   67|   292k|    if (len < 0) {
  ------------------
  |  Branch (67:9): [True: 0, False: 292k]
  ------------------
   68|      0|        ERR_raise(ERR_LIB_ASN1, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   69|      0|        return -1;
   70|      0|    }
   71|       |
   72|       |    /* First do a string check and work out the number of characters */
   73|   292k|    switch (inform) {
   74|       |
   75|      0|    case MBSTRING_BMP:
  ------------------
  |  |  127|      0|#define MBSTRING_BMP (MBSTRING_FLAG | 2)
  |  |  ------------------
  |  |  |  |  124|      0|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  |  Branch (75:5): [True: 0, False: 292k]
  ------------------
   76|      0|        if (len & 1) {
  ------------------
  |  Branch (76:13): [True: 0, False: 0]
  ------------------
   77|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_INVALID_BMPSTRING_LENGTH);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   78|      0|            return -1;
   79|      0|        }
   80|      0|        nchar = len >> 1;
   81|      0|        break;
   82|       |
   83|      0|    case MBSTRING_UNIV:
  ------------------
  |  |  128|      0|#define MBSTRING_UNIV (MBSTRING_FLAG | 4)
  |  |  ------------------
  |  |  |  |  124|      0|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  |  Branch (83:5): [True: 0, False: 292k]
  ------------------
   84|      0|        if (len & 3) {
  ------------------
  |  Branch (84:13): [True: 0, False: 0]
  ------------------
   85|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_INVALID_UNIVERSALSTRING_LENGTH);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   86|      0|            return -1;
   87|      0|        }
   88|      0|        nchar = len >> 2;
   89|      0|        break;
   90|       |
   91|  79.3k|    case MBSTRING_UTF8:
  ------------------
  |  |  125|  79.3k|#define MBSTRING_UTF8 (MBSTRING_FLAG)
  |  |  ------------------
  |  |  |  |  124|  79.3k|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  |  Branch (91:5): [True: 79.3k, False: 213k]
  ------------------
   92|  79.3k|        nchar = 0;
   93|       |        /* This counts the characters and does utf8 syntax checking */
   94|  79.3k|        ret = traverse_string(in, len, MBSTRING_UTF8, in_utf8, &nchar);
  ------------------
  |  |  125|  79.3k|#define MBSTRING_UTF8 (MBSTRING_FLAG)
  |  |  ------------------
  |  |  |  |  124|  79.3k|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
   95|  79.3k|        if (ret < 0) {
  ------------------
  |  Branch (95:13): [True: 0, False: 79.3k]
  ------------------
   96|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_INVALID_UTF8STRING);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   97|      0|            return -1;
   98|      0|        }
   99|  79.3k|        break;
  100|       |
  101|   213k|    case MBSTRING_ASC:
  ------------------
  |  |  126|   213k|#define MBSTRING_ASC (MBSTRING_FLAG | 1)
  |  |  ------------------
  |  |  |  |  124|   213k|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  |  Branch (101:5): [True: 213k, False: 79.3k]
  ------------------
  102|   213k|        nchar = len;
  103|   213k|        break;
  104|       |
  105|      0|    default:
  ------------------
  |  Branch (105:5): [True: 0, False: 292k]
  ------------------
  106|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_UNKNOWN_FORMAT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  107|      0|        return -1;
  108|   292k|    }
  109|       |
  110|   292k|    if ((minsize > 0) && (nchar < minsize)) {
  ------------------
  |  Branch (110:9): [True: 0, False: 292k]
  |  Branch (110:26): [True: 0, False: 0]
  ------------------
  111|      0|        ERR_raise_data(ERR_LIB_ASN1, ASN1_R_STRING_TOO_SHORT,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_ASN1, ASN1_R_STRING_TOO_SHORT,
  ------------------
  |  |   66|      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
  ------------------
  112|      0|            "minsize=%ld", minsize);
  113|      0|        return -1;
  114|      0|    }
  115|       |
  116|   292k|    if ((maxsize > 0) && (nchar > maxsize)) {
  ------------------
  |  Branch (116:9): [True: 0, False: 292k]
  |  Branch (116:26): [True: 0, False: 0]
  ------------------
  117|      0|        ERR_raise_data(ERR_LIB_ASN1, ASN1_R_STRING_TOO_LONG,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_ASN1, ASN1_R_STRING_TOO_LONG,
  ------------------
  |  |   66|      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
  ------------------
  118|      0|            "maxsize=%ld", maxsize);
  119|      0|        return -1;
  120|      0|    }
  121|       |
  122|       |    /* Now work out minimal type (if any) */
  123|   292k|    if (traverse_string(in, len, inform, type_str, &mask) < 0) {
  ------------------
  |  Branch (123:9): [True: 0, False: 292k]
  ------------------
  124|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_ILLEGAL_CHARACTERS);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  125|      0|        return -1;
  126|      0|    }
  127|       |
  128|       |    /*
  129|       |     * Now work out output format and string type.
  130|       |     * These checks should be in sync with the checks in type_str.
  131|       |     */
  132|   292k|    outform = MBSTRING_ASC;
  ------------------
  |  |  126|   292k|#define MBSTRING_ASC (MBSTRING_FLAG | 1)
  |  |  ------------------
  |  |  |  |  124|   292k|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  133|   292k|    if (mask & B_ASN1_NUMERICSTRING)
  ------------------
  |  |  104|   292k|#define B_ASN1_NUMERICSTRING 0x0001
  ------------------
  |  Branch (133:9): [True: 0, False: 292k]
  ------------------
  134|      0|        str_type = V_ASN1_NUMERICSTRING;
  ------------------
  |  |   78|      0|#define V_ASN1_NUMERICSTRING 18
  ------------------
  135|   292k|    else if (mask & B_ASN1_PRINTABLESTRING)
  ------------------
  |  |  105|   292k|#define B_ASN1_PRINTABLESTRING 0x0002
  ------------------
  |  Branch (135:14): [True: 0, False: 292k]
  ------------------
  136|      0|        str_type = V_ASN1_PRINTABLESTRING;
  ------------------
  |  |   79|      0|#define V_ASN1_PRINTABLESTRING 19
  ------------------
  137|   292k|    else if (mask & B_ASN1_IA5STRING)
  ------------------
  |  |  109|   292k|#define B_ASN1_IA5STRING 0x0010
  ------------------
  |  Branch (137:14): [True: 0, False: 292k]
  ------------------
  138|      0|        str_type = V_ASN1_IA5STRING;
  ------------------
  |  |   83|      0|#define V_ASN1_IA5STRING 22
  ------------------
  139|   292k|    else if (mask & B_ASN1_T61STRING)
  ------------------
  |  |  106|   292k|#define B_ASN1_T61STRING 0x0004
  ------------------
  |  Branch (139:14): [True: 0, False: 292k]
  ------------------
  140|      0|        str_type = V_ASN1_T61STRING;
  ------------------
  |  |   80|      0|#define V_ASN1_T61STRING 20
  ------------------
  141|   292k|    else if (mask & B_ASN1_BMPSTRING) {
  ------------------
  |  |  117|   292k|#define B_ASN1_BMPSTRING 0x0800
  ------------------
  |  Branch (141:14): [True: 0, False: 292k]
  ------------------
  142|      0|        str_type = V_ASN1_BMPSTRING;
  ------------------
  |  |   91|      0|#define V_ASN1_BMPSTRING 30
  ------------------
  143|      0|        outform = MBSTRING_BMP;
  ------------------
  |  |  127|      0|#define MBSTRING_BMP (MBSTRING_FLAG | 2)
  |  |  ------------------
  |  |  |  |  124|      0|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  144|   292k|    } else if (mask & B_ASN1_UNIVERSALSTRING) {
  ------------------
  |  |  114|   292k|#define B_ASN1_UNIVERSALSTRING 0x0100
  ------------------
  |  Branch (144:16): [True: 0, False: 292k]
  ------------------
  145|      0|        str_type = V_ASN1_UNIVERSALSTRING;
  ------------------
  |  |   90|      0|#define V_ASN1_UNIVERSALSTRING 28
  ------------------
  146|      0|        outform = MBSTRING_UNIV;
  ------------------
  |  |  128|      0|#define MBSTRING_UNIV (MBSTRING_FLAG | 4)
  |  |  ------------------
  |  |  |  |  124|      0|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  147|   292k|    } else {
  148|   292k|        str_type = V_ASN1_UTF8STRING;
  ------------------
  |  |   75|   292k|#define V_ASN1_UTF8STRING 12
  ------------------
  149|   292k|        outform = MBSTRING_UTF8;
  ------------------
  |  |  125|   292k|#define MBSTRING_UTF8 (MBSTRING_FLAG)
  |  |  ------------------
  |  |  |  |  124|   292k|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  150|   292k|    }
  151|   292k|    if (!out)
  ------------------
  |  Branch (151:9): [True: 0, False: 292k]
  ------------------
  152|      0|        return str_type;
  153|   292k|    if (*out) {
  ------------------
  |  Branch (153:9): [True: 292k, False: 0]
  ------------------
  154|   292k|        free_out = 0;
  155|   292k|        dest = *out;
  156|   292k|        ASN1_STRING_set0(dest, NULL, 0);
  157|   292k|        dest->type = str_type;
  158|   292k|    } else {
  159|      0|        free_out = 1;
  160|      0|        dest = ASN1_STRING_type_new(str_type);
  161|      0|        if (dest == NULL) {
  ------------------
  |  Branch (161:13): [True: 0, False: 0]
  ------------------
  162|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_ASN1_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  163|      0|            return -1;
  164|      0|        }
  165|      0|        *out = dest;
  166|      0|    }
  167|       |    /* If both the same type just copy across */
  168|   292k|    if (inform == outform) {
  ------------------
  |  Branch (168:9): [True: 79.3k, False: 213k]
  ------------------
  169|  79.3k|        if (!ASN1_STRING_set(dest, in, len)) {
  ------------------
  |  Branch (169:13): [True: 0, False: 79.3k]
  ------------------
  170|      0|            if (free_out) {
  ------------------
  |  Branch (170:17): [True: 0, False: 0]
  ------------------
  171|      0|                ASN1_STRING_free(dest);
  172|      0|                *out = NULL;
  173|      0|            }
  174|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_ASN1_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  175|      0|            return -1;
  176|      0|        }
  177|  79.3k|        return str_type;
  178|  79.3k|    }
  179|       |
  180|       |    /* Work out how much space the destination will need */
  181|   213k|    switch (outform) {
  ------------------
  |  Branch (181:13): [True: 213k, False: 0]
  ------------------
  182|      0|    case MBSTRING_ASC:
  ------------------
  |  |  126|      0|#define MBSTRING_ASC (MBSTRING_FLAG | 1)
  |  |  ------------------
  |  |  |  |  124|      0|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  |  Branch (182:5): [True: 0, False: 213k]
  ------------------
  183|      0|        outlen = nchar;
  184|      0|        cpyfunc = cpy_asc;
  185|      0|        break;
  186|       |
  187|      0|    case MBSTRING_BMP:
  ------------------
  |  |  127|      0|#define MBSTRING_BMP (MBSTRING_FLAG | 2)
  |  |  ------------------
  |  |  |  |  124|      0|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  |  Branch (187:5): [True: 0, False: 213k]
  ------------------
  188|      0|        if (nchar > INT_MAX / 2) {
  ------------------
  |  Branch (188:13): [True: 0, False: 0]
  ------------------
  189|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_STRING_TOO_LONG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  190|      0|            if (free_out) {
  ------------------
  |  Branch (190:17): [True: 0, False: 0]
  ------------------
  191|      0|                ASN1_STRING_free(dest);
  192|      0|                *out = NULL;
  193|      0|            }
  194|      0|            return -1;
  195|      0|        }
  196|      0|        outlen = nchar << 1;
  197|      0|        cpyfunc = cpy_bmp;
  198|      0|        break;
  199|       |
  200|      0|    case MBSTRING_UNIV:
  ------------------
  |  |  128|      0|#define MBSTRING_UNIV (MBSTRING_FLAG | 4)
  |  |  ------------------
  |  |  |  |  124|      0|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  |  Branch (200:5): [True: 0, False: 213k]
  ------------------
  201|      0|        if (nchar > INT_MAX / 4) {
  ------------------
  |  Branch (201:13): [True: 0, False: 0]
  ------------------
  202|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_STRING_TOO_LONG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  203|      0|            if (free_out) {
  ------------------
  |  Branch (203:17): [True: 0, False: 0]
  ------------------
  204|      0|                ASN1_STRING_free(dest);
  205|      0|                *out = NULL;
  206|      0|            }
  207|      0|            return -1;
  208|      0|        }
  209|      0|        outlen = nchar << 2;
  210|      0|        cpyfunc = cpy_univ;
  211|      0|        break;
  212|       |
  213|   213k|    case MBSTRING_UTF8:
  ------------------
  |  |  125|   213k|#define MBSTRING_UTF8 (MBSTRING_FLAG)
  |  |  ------------------
  |  |  |  |  124|   213k|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  |  Branch (213:5): [True: 213k, False: 0]
  ------------------
  214|   213k|        outlen = 0;
  215|   213k|        ret = traverse_string(in, len, inform, out_utf8, &outlen);
  216|   213k|        if (ret < 0) { /* error already raised in out_utf8() */
  ------------------
  |  Branch (216:13): [True: 0, False: 213k]
  ------------------
  217|      0|            if (free_out) {
  ------------------
  |  Branch (217:17): [True: 0, False: 0]
  ------------------
  218|      0|                ASN1_STRING_free(dest);
  219|      0|                *out = NULL;
  220|      0|            }
  221|      0|            return -1;
  222|      0|        }
  223|   213k|        cpyfunc = cpy_utf8;
  224|   213k|        break;
  225|   213k|    }
  226|   213k|    if ((p = OPENSSL_malloc(outlen + 1)) == NULL) {
  ------------------
  |  |  107|   213k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (226:9): [True: 0, False: 213k]
  ------------------
  227|      0|        if (free_out) {
  ------------------
  |  Branch (227:13): [True: 0, False: 0]
  ------------------
  228|      0|            ASN1_STRING_free(dest);
  229|      0|            *out = NULL;
  230|      0|        }
  231|      0|        return -1;
  232|      0|    }
  233|   213k|    dest->length = outlen;
  234|   213k|    dest->data = p;
  235|   213k|    p[outlen] = 0;
  236|   213k|    traverse_string(in, len, inform, cpyfunc, &p);
  237|   213k|    return str_type;
  238|   213k|}
a_mbstr.c:traverse_string:
  248|   798k|{
  249|   798k|    unsigned long value;
  250|   798k|    int ret;
  251|  12.8M|    while (len) {
  ------------------
  |  Branch (251:12): [True: 12.0M, False: 798k]
  ------------------
  252|  12.0M|        if (inform == MBSTRING_ASC) {
  ------------------
  |  |  126|  12.0M|#define MBSTRING_ASC (MBSTRING_FLAG | 1)
  |  |  ------------------
  |  |  |  |  124|  12.0M|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  |  Branch (252:13): [True: 8.69M, False: 3.38M]
  ------------------
  253|  8.69M|            value = *p++;
  254|  8.69M|            len--;
  255|  8.69M|        } else if (inform == MBSTRING_BMP) {
  ------------------
  |  |  127|  3.38M|#define MBSTRING_BMP (MBSTRING_FLAG | 2)
  |  |  ------------------
  |  |  |  |  124|  3.38M|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  |  Branch (255:20): [True: 0, False: 3.38M]
  ------------------
  256|      0|            value = *p++ << 8;
  257|      0|            value |= *p++;
  258|      0|            len -= 2;
  259|  3.38M|        } else if (inform == MBSTRING_UNIV) {
  ------------------
  |  |  128|  3.38M|#define MBSTRING_UNIV (MBSTRING_FLAG | 4)
  |  |  ------------------
  |  |  |  |  124|  3.38M|#define MBSTRING_FLAG 0x1000
  |  |  ------------------
  ------------------
  |  Branch (259:20): [True: 0, False: 3.38M]
  ------------------
  260|      0|            value = ((unsigned long)*p++) << 24;
  261|      0|            value |= ((unsigned long)*p++) << 16;
  262|      0|            value |= *p++ << 8;
  263|      0|            value |= *p++;
  264|      0|            len -= 4;
  265|  3.38M|        } else {
  266|  3.38M|            ret = UTF8_getc(p, len, &value);
  267|  3.38M|            if (ret < 0)
  ------------------
  |  Branch (267:17): [True: 0, False: 3.38M]
  ------------------
  268|      0|                return -1;
  269|  3.38M|            len -= ret;
  270|  3.38M|            p += ret;
  271|  3.38M|        }
  272|  12.0M|        if (rfunc) {
  ------------------
  |  Branch (272:13): [True: 12.0M, False: 0]
  ------------------
  273|  12.0M|            ret = rfunc(value, arg);
  274|  12.0M|            if (ret <= 0)
  ------------------
  |  Branch (274:17): [True: 0, False: 12.0M]
  ------------------
  275|      0|                return ret;
  276|  12.0M|        }
  277|  12.0M|    }
  278|   798k|    return 1;
  279|   798k|}
a_mbstr.c:in_utf8:
  286|  1.69M|{
  287|  1.69M|    int *nchar;
  288|       |
  289|  1.69M|    if (!is_unicode_valid(value))
  ------------------
  |  Branch (289:9): [True: 0, False: 1.69M]
  ------------------
  290|      0|        return -2;
  291|  1.69M|    nchar = arg;
  292|  1.69M|    (*nchar)++;
  293|  1.69M|    return 1;
  294|  1.69M|}
a_mbstr.c:out_utf8:
  299|  2.89M|{
  300|  2.89M|    int *outlen, len;
  301|       |
  302|  2.89M|    len = UTF8_putc(NULL, -1, value);
  303|  2.89M|    if (len <= 0) {
  ------------------
  |  Branch (303:9): [True: 0, False: 2.89M]
  ------------------
  304|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_INVALID_UTF8STRING);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  305|      0|        return len;
  306|      0|    }
  307|  2.89M|    outlen = arg;
  308|  2.89M|    if (*outlen > INT_MAX - len) {
  ------------------
  |  Branch (308:9): [True: 0, False: 2.89M]
  ------------------
  309|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_STRING_TOO_LONG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  310|      0|        return -1;
  311|      0|    }
  312|  2.89M|    *outlen += len;
  313|  2.89M|    return 1;
  314|  2.89M|}
a_mbstr.c:type_str:
  322|  4.58M|{
  323|  4.58M|    unsigned long usable_types = *((unsigned long *)arg);
  324|  4.58M|    unsigned long types = usable_types;
  325|  4.58M|    const int native = value > INT_MAX ? INT_MAX : ossl_fromascii(value);
  ------------------
  |  |   57|  9.17M|#define ossl_fromascii(c) (c)
  ------------------
  |  Branch (325:24): [True: 0, False: 4.58M]
  ------------------
  326|       |
  327|       |    /*
  328|       |     * Clear out all the types which are not checked later. If any of those
  329|       |     * is present in the mask, then the UTF8 type will be added and checked
  330|       |     * below.
  331|       |     */
  332|  4.58M|    types &= B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING
  ------------------
  |  |  104|  4.58M|#define B_ASN1_NUMERICSTRING 0x0001
  ------------------
                  types &= B_ASN1_NUMERICSTRING | B_ASN1_PRINTABLESTRING
  ------------------
  |  |  105|  4.58M|#define B_ASN1_PRINTABLESTRING 0x0002
  ------------------
  333|  4.58M|        | B_ASN1_IA5STRING | B_ASN1_T61STRING | B_ASN1_BMPSTRING
  ------------------
  |  |  109|  4.58M|#define B_ASN1_IA5STRING 0x0010
  ------------------
                      | B_ASN1_IA5STRING | B_ASN1_T61STRING | B_ASN1_BMPSTRING
  ------------------
  |  |  106|  4.58M|#define B_ASN1_T61STRING 0x0004
  ------------------
                      | B_ASN1_IA5STRING | B_ASN1_T61STRING | B_ASN1_BMPSTRING
  ------------------
  |  |  117|  4.58M|#define B_ASN1_BMPSTRING 0x0800
  ------------------
  334|  4.58M|        | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING;
  ------------------
  |  |  114|  4.58M|#define B_ASN1_UNIVERSALSTRING 0x0100
  ------------------
                      | B_ASN1_UNIVERSALSTRING | B_ASN1_UTF8STRING;
  ------------------
  |  |  119|  4.58M|#define B_ASN1_UTF8STRING 0x2000
  ------------------
  335|       |
  336|       |    /*
  337|       |     * If any other types were in the input mask, they're effectively treated
  338|       |     * as UTF8
  339|       |     */
  340|  4.58M|    if (types != usable_types)
  ------------------
  |  Branch (340:9): [True: 0, False: 4.58M]
  ------------------
  341|      0|        types |= B_ASN1_UTF8STRING;
  ------------------
  |  |  119|      0|#define B_ASN1_UTF8STRING 0x2000
  ------------------
  342|       |
  343|       |    /*
  344|       |     * These checks should be in sync with ASN1_mbstring_ncopy.
  345|       |     */
  346|  4.58M|    if ((types & B_ASN1_NUMERICSTRING) && !(ossl_isdigit(native) || native == ' '))
  ------------------
  |  |  104|  4.58M|#define B_ASN1_NUMERICSTRING 0x0001
  ------------------
  |  Branch (346:9): [True: 0, False: 4.58M]
  |  Branch (346:45): [True: 0, False: 0]
  |  Branch (346:69): [True: 0, False: 0]
  ------------------
  347|      0|        types &= ~B_ASN1_NUMERICSTRING;
  ------------------
  |  |  104|      0|#define B_ASN1_NUMERICSTRING 0x0001
  ------------------
  348|  4.58M|    if ((types & B_ASN1_PRINTABLESTRING) && !ossl_isasn1print(native))
  ------------------
  |  |  105|  4.58M|#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 (348:9): [True: 0, False: 4.58M]
  |  Branch (348:45): [True: 0, False: 0]
  ------------------
  349|      0|        types &= ~B_ASN1_PRINTABLESTRING;
  ------------------
  |  |  105|      0|#define B_ASN1_PRINTABLESTRING 0x0002
  ------------------
  350|  4.58M|    if ((types & B_ASN1_IA5STRING) && !ossl_isascii(native))
  ------------------
  |  |  109|  4.58M|#define B_ASN1_IA5STRING 0x0010
  ------------------
                  if ((types & B_ASN1_IA5STRING) && !ossl_isascii(native))
  ------------------
  |  |   75|      0|#define ossl_isascii(c) (((c) & ~127) == 0)
  ------------------
  |  Branch (350:9): [True: 0, False: 4.58M]
  |  Branch (350:39): [True: 0, False: 0]
  ------------------
  351|      0|        types &= ~B_ASN1_IA5STRING;
  ------------------
  |  |  109|      0|#define B_ASN1_IA5STRING 0x0010
  ------------------
  352|  4.58M|    if ((types & B_ASN1_T61STRING) && (value > 0xff))
  ------------------
  |  |  106|  4.58M|#define B_ASN1_T61STRING 0x0004
  ------------------
  |  Branch (352:9): [True: 0, False: 4.58M]
  |  Branch (352:39): [True: 0, False: 0]
  ------------------
  353|      0|        types &= ~B_ASN1_T61STRING;
  ------------------
  |  |  106|      0|#define B_ASN1_T61STRING 0x0004
  ------------------
  354|  4.58M|    if ((types & B_ASN1_BMPSTRING) && (value > 0xffff))
  ------------------
  |  |  117|  4.58M|#define B_ASN1_BMPSTRING 0x0800
  ------------------
  |  Branch (354:9): [True: 0, False: 4.58M]
  |  Branch (354:39): [True: 0, False: 0]
  ------------------
  355|      0|        types &= ~B_ASN1_BMPSTRING;
  ------------------
  |  |  117|      0|#define B_ASN1_BMPSTRING 0x0800
  ------------------
  356|  4.58M|    if ((types & B_ASN1_UTF8STRING) && !is_unicode_valid(value))
  ------------------
  |  |  119|  4.58M|#define B_ASN1_UTF8STRING 0x2000
  ------------------
  |  Branch (356:9): [True: 4.58M, False: 0]
  |  Branch (356:40): [True: 0, False: 4.58M]
  ------------------
  357|      0|        types &= ~B_ASN1_UTF8STRING;
  ------------------
  |  |  119|      0|#define B_ASN1_UTF8STRING 0x2000
  ------------------
  358|  4.58M|    if (!types)
  ------------------
  |  Branch (358:9): [True: 0, False: 4.58M]
  ------------------
  359|      0|        return -1;
  360|  4.58M|    *((unsigned long *)arg) = types;
  361|  4.58M|    return 1;
  362|  4.58M|}
a_mbstr.c:cpy_utf8:
  407|  2.89M|{
  408|  2.89M|    unsigned char **p;
  409|  2.89M|    int ret;
  410|  2.89M|    p = arg;
  411|       |    /* We already know there is enough room so pass 0xff as the length */
  412|  2.89M|    ret = UTF8_putc(*p, 0xff, value);
  413|  2.89M|    if (ret < 0)
  ------------------
  |  Branch (413:9): [True: 0, False: 2.89M]
  ------------------
  414|      0|        return ret;
  415|  2.89M|    *p += ret;
  416|  2.89M|    return 1;
  417|  2.89M|}

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

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

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

UTF8_getc:
   29|  3.38M|{
   30|  3.38M|    const unsigned char *p;
   31|  3.38M|    unsigned long value;
   32|  3.38M|    int ret;
   33|  3.38M|    if (len <= 0)
  ------------------
  |  Branch (33:9): [True: 0, False: 3.38M]
  ------------------
   34|      0|        return 0;
   35|  3.38M|    p = str;
   36|       |
   37|       |    /* Check syntax and work out the encoded value (if correct) */
   38|  3.38M|    if ((*p & 0x80) == 0) {
  ------------------
  |  Branch (38:9): [True: 3.36M, False: 10.9k]
  ------------------
   39|  3.36M|        value = *p++ & 0x7f;
   40|  3.36M|        ret = 1;
   41|  3.36M|    } else if ((*p & 0xe0) == 0xc0) {
  ------------------
  |  Branch (41:16): [True: 10.9k, False: 0]
  ------------------
   42|  10.9k|        if (len < 2)
  ------------------
  |  Branch (42:13): [True: 0, False: 10.9k]
  ------------------
   43|      0|            return -1;
   44|  10.9k|        if ((p[1] & 0xc0) != 0x80)
  ------------------
  |  Branch (44:13): [True: 0, False: 10.9k]
  ------------------
   45|      0|            return -3;
   46|  10.9k|        value = (*p++ & 0x1f) << 6;
   47|  10.9k|        value |= *p++ & 0x3f;
   48|  10.9k|        if (value < 0x80)
  ------------------
  |  Branch (48:13): [True: 0, False: 10.9k]
  ------------------
   49|      0|            return -4;
   50|  10.9k|        ret = 2;
   51|  10.9k|    } 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|  3.38M|    *val = value;
   82|  3.38M|    return ret;
   83|  3.38M|}
UTF8_putc:
   94|  5.79M|{
   95|  5.79M|    if (!str)
  ------------------
  |  Branch (95:9): [True: 2.89M, False: 2.89M]
  ------------------
   96|  2.89M|        len = 4; /* Maximum we will need */
   97|  2.89M|    else if (len <= 0)
  ------------------
  |  Branch (97:14): [True: 0, False: 2.89M]
  ------------------
   98|      0|        return -1;
   99|  5.79M|    if (value < 0x80) {
  ------------------
  |  Branch (99:9): [True: 5.79M, False: 0]
  ------------------
  100|  5.79M|        if (str)
  ------------------
  |  Branch (100:13): [True: 2.89M, False: 2.89M]
  ------------------
  101|  2.89M|            *str = (unsigned char)value;
  102|  5.79M|        return 1;
  103|  5.79M|    }
  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:
   34|   197k|{
   35|   197k|    int num = OSSL_NELEM(standard_methods);
  ------------------
  |  |   14|   197k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
   36|   197k|    return num;
   37|   197k|}
evp_pkey_asn1_get0:
   40|  2.75M|{
   41|  2.75M|    int num = OSSL_NELEM(standard_methods);
  ------------------
  |  |   14|  2.75M|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
   42|       |
   43|  2.75M|    if (idx < 0 || idx >= num)
  ------------------
  |  Branch (43:9): [True: 0, False: 2.75M]
  |  Branch (43:20): [True: 0, False: 2.75M]
  ------------------
   44|      0|        return NULL;
   45|       |
   46|  2.75M|    return standard_methods[idx];
   47|  2.75M|}
evp_pkey_asn1_find:
   67|   100k|{
   68|   100k|    const EVP_PKEY_ASN1_METHOD *t;
   69|       |
   70|   100k|    for (;;) {
   71|   100k|        t = pkey_asn1_find(type);
   72|   100k|        if (!t || !(t->pkey_flags & ASN1_PKEY_ALIAS))
  ------------------
  |  | 1501|  98.5k|#define ASN1_PKEY_ALIAS 0x1
  ------------------
  |  Branch (72:13): [True: 1.51k, False: 98.5k]
  |  Branch (72:19): [True: 98.5k, False: 0]
  ------------------
   73|   100k|            break;
   74|      0|        type = t->pkey_base_id;
   75|      0|    }
   76|   100k|    return t;
   77|   100k|}
evp_pkey_asn1_find_str:
   80|   197k|{
   81|   197k|    int i;
   82|   197k|    const EVP_PKEY_ASN1_METHOD *ameth = NULL;
   83|       |
   84|   197k|    if (len == -1)
  ------------------
  |  Branch (84:9): [True: 0, False: 197k]
  ------------------
   85|      0|        len = (int)strlen(str);
   86|  2.87M|    for (i = evp_pkey_asn1_get_count(); i-- > 0;) {
  ------------------
  |  Branch (86:41): [True: 2.75M, False: 113k]
  ------------------
   87|  2.75M|        ameth = evp_pkey_asn1_get0(i);
   88|  2.75M|        if (ameth->pkey_flags & ASN1_PKEY_ALIAS)
  ------------------
  |  | 1501|  2.75M|#define ASN1_PKEY_ALIAS 0x1
  ------------------
  |  Branch (88:13): [True: 874k, False: 1.88M]
  ------------------
   89|   874k|            continue;
   90|  1.88M|        if ((int)strlen(ameth->pem_str) == len
  ------------------
  |  Branch (90:13): [True: 140k, False: 1.74M]
  ------------------
   91|   140k|            && OPENSSL_strncasecmp(ameth->pem_str, str, len) == 0)
  ------------------
  |  Branch (91:16): [True: 84.1k, False: 56.4k]
  ------------------
   92|  84.1k|            return ameth;
   93|  1.88M|    }
   94|   113k|    return NULL;
   95|   197k|}
evp_pkey_asn1_get0_info:
  101|     15|{
  102|     15|    if (!ameth)
  ------------------
  |  Branch (102:9): [True: 0, False: 15]
  ------------------
  103|      0|        return 0;
  104|     15|    if (ppkey_id)
  ------------------
  |  Branch (104:9): [True: 15, False: 0]
  ------------------
  105|     15|        *ppkey_id = ameth->pkey_id;
  106|     15|    if (ppkey_base_id)
  ------------------
  |  Branch (106:9): [True: 15, False: 0]
  ------------------
  107|     15|        *ppkey_base_id = ameth->pkey_base_id;
  108|     15|    if (ppkey_flags)
  ------------------
  |  Branch (108:9): [True: 15, False: 0]
  ------------------
  109|     15|        *ppkey_flags = ameth->pkey_flags;
  110|     15|    if (pinfo)
  ------------------
  |  Branch (110:9): [True: 0, False: 15]
  ------------------
  111|      0|        *pinfo = ameth->info;
  112|     15|    if (ppem_str)
  ------------------
  |  Branch (112:9): [True: 15, False: 0]
  ------------------
  113|     15|        *ppem_str = ameth->pem_str;
  114|     15|    return 1;
  115|     15|}
ameth_lib.c:pkey_asn1_find:
   50|   100k|{
   51|   100k|    EVP_PKEY_ASN1_METHOD tmp;
   52|   100k|    const EVP_PKEY_ASN1_METHOD *t = &tmp, **ret;
   53|       |
   54|   100k|    tmp.pkey_id = type;
   55|   100k|    ret = OBJ_bsearch_ameth(&t, standard_methods, OSSL_NELEM(standard_methods));
  ------------------
  |  |   14|   100k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
   56|   100k|    if (ret == NULL || *ret == NULL)
  ------------------
  |  Branch (56:9): [True: 1.51k, False: 98.5k]
  |  Branch (56:24): [True: 0, False: 98.5k]
  ------------------
   57|  1.51k|        return NULL;
   58|  98.5k|    return *ret;
   59|   100k|}
ameth_lib.c:ameth_cmp:
   26|   277k|{
   27|   277k|    return ((*a)->pkey_id - (*b)->pkey_id);
   28|   277k|}

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|  3.22M|{
   49|  3.22M|    int i, ret;
   50|  3.22M|    long len;
   51|  3.22M|    const unsigned char *p = *pp;
   52|  3.22M|    int tag, xclass, inf;
   53|  3.22M|    long max = omax;
   54|       |
   55|  3.22M|    if (omax <= 0) {
  ------------------
  |  Branch (55:9): [True: 0, False: 3.22M]
  ------------------
   56|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_SMALL);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   57|      0|        return 0x80;
   58|      0|    }
   59|  3.22M|    ret = (*p & V_ASN1_CONSTRUCTED);
  ------------------
  |  |   54|  3.22M|#define V_ASN1_CONSTRUCTED 0x20
  ------------------
   60|  3.22M|    xclass = (*p & V_ASN1_PRIVATE);
  ------------------
  |  |   52|  3.22M|#define V_ASN1_PRIVATE 0xc0
  ------------------
   61|  3.22M|    i = *p & V_ASN1_PRIMITIVE_TAG;
  ------------------
  |  |   55|  3.22M|#define V_ASN1_PRIMITIVE_TAG 0x1f
  ------------------
   62|  3.22M|    if (i == V_ASN1_PRIMITIVE_TAG) { /* high-tag */
  ------------------
  |  |   55|  3.22M|#define V_ASN1_PRIMITIVE_TAG 0x1f
  ------------------
  |  Branch (62:9): [True: 0, False: 3.22M]
  ------------------
   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|  3.22M|    } else {
   81|  3.22M|        tag = i;
   82|  3.22M|        p++;
   83|  3.22M|        if (--max == 0)
  ------------------
  |  Branch (83:13): [True: 0, False: 3.22M]
  ------------------
   84|      0|            goto err;
   85|  3.22M|    }
   86|  3.22M|    *ptag = tag;
   87|  3.22M|    *pclass = xclass;
   88|  3.22M|    if (!asn1_get_length(&p, &inf, plength, max))
  ------------------
  |  Branch (88:9): [True: 0, False: 3.22M]
  ------------------
   89|      0|        goto err;
   90|       |
   91|  3.22M|    if (inf && !(ret & V_ASN1_CONSTRUCTED))
  ------------------
  |  |   54|      0|#define V_ASN1_CONSTRUCTED 0x20
  ------------------
  |  Branch (91:9): [True: 0, False: 3.22M]
  |  Branch (91:16): [True: 0, False: 0]
  ------------------
   92|      0|        goto err;
   93|       |
   94|  3.22M|    if (*plength > (omax - (p - *pp))) {
  ------------------
  |  Branch (94:9): [True: 82.7k, False: 3.14M]
  ------------------
   95|  82.7k|        ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_LONG);
  ------------------
  |  |  357|  82.7k|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|  82.7k|    (ERR_new(),                                                  \
  |  |  |  |  360|  82.7k|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|  82.7k|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|  82.7k|        ERR_set_error)
  |  |  ------------------
  ------------------
   96|       |        /*
   97|       |         * Set this so that even if things are not long enough the values are
   98|       |         * set correctly
   99|       |         */
  100|  82.7k|        ret |= 0x80;
  101|  82.7k|    }
  102|  3.22M|    *pp = p;
  103|  3.22M|    return ret | inf;
  104|      0|err:
  105|       |    ERR_raise(ERR_LIB_ASN1, ASN1_R_HEADER_TOO_LONG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  106|      0|    return 0x80;
  107|  3.22M|}
ASN1_put_object:
  162|  1.17M|{
  163|  1.17M|    unsigned char *p = *pp;
  164|  1.17M|    int i, ttag;
  165|       |
  166|  1.17M|    i = (constructed) ? V_ASN1_CONSTRUCTED : 0;
  ------------------
  |  |   54|   585k|#define V_ASN1_CONSTRUCTED 0x20
  ------------------
  |  Branch (166:9): [True: 585k, False: 586k]
  ------------------
  167|  1.17M|    i |= (xclass & V_ASN1_PRIVATE);
  ------------------
  |  |   52|  1.17M|#define V_ASN1_PRIVATE 0xc0
  ------------------
  168|  1.17M|    if (tag < 31) {
  ------------------
  |  Branch (168:9): [True: 1.17M, False: 0]
  ------------------
  169|  1.17M|        *(p++) = i | (tag & V_ASN1_PRIMITIVE_TAG);
  ------------------
  |  |   55|  1.17M|#define V_ASN1_PRIMITIVE_TAG 0x1f
  ------------------
  170|  1.17M|    } 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|  1.17M|    if (constructed == 2)
  ------------------
  |  Branch (183:9): [True: 0, False: 1.17M]
  ------------------
  184|      0|        *(p++) = 0x80;
  185|  1.17M|    else
  186|  1.17M|        asn1_put_length(&p, length);
  187|  1.17M|    *pp = p;
  188|  1.17M|}
ASN1_object_size:
  223|  3.80M|{
  224|  3.80M|    int ret = 1;
  225|       |
  226|  3.80M|    if (length < 0)
  ------------------
  |  Branch (226:9): [True: 0, False: 3.80M]
  ------------------
  227|      0|        return -1;
  228|  3.80M|    if (tag >= 31) {
  ------------------
  |  Branch (228:9): [True: 0, False: 3.80M]
  ------------------
  229|      0|        while (tag > 0) {
  ------------------
  |  Branch (229:16): [True: 0, False: 0]
  ------------------
  230|      0|            tag >>= 7;
  231|      0|            ret++;
  232|      0|        }
  233|      0|    }
  234|  3.80M|    if (constructed == 2) {
  ------------------
  |  Branch (234:9): [True: 0, False: 3.80M]
  ------------------
  235|      0|        ret += 3;
  236|  3.80M|    } else {
  237|  3.80M|        ret++;
  238|  3.80M|        if (length > 127) {
  ------------------
  |  Branch (238:13): [True: 0, False: 3.80M]
  ------------------
  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|  3.80M|    }
  246|  3.80M|    if (ret >= INT_MAX - length)
  ------------------
  |  Branch (246:9): [True: 0, False: 3.80M]
  ------------------
  247|      0|        return -1;
  248|  3.80M|    return ret + length;
  249|  3.80M|}
ossl_asn1_string_set_bits_left:
  252|   165k|{
  253|   165k|    str->flags &= ~0x07;
  254|   165k|    str->flags |= ASN1_STRING_FLAG_BITS_LEFT | (num & 0x07);
  ------------------
  |  |   23|   165k|#define ASN1_STRING_FLAG_BITS_LEFT 0x08 /* Set if 0x07 has bits left value */
  ------------------
  255|   165k|}
ASN1_STRING_set:
  287|   678k|{
  288|   678k|    unsigned char *c;
  289|   678k|    const char *data = _data;
  290|   678k|    size_t len;
  291|       |
  292|   678k|    if (len_in < 0) {
  ------------------
  |  Branch (292:9): [True: 0, False: 678k]
  ------------------
  293|      0|        if (data == NULL)
  ------------------
  |  Branch (293:13): [True: 0, False: 0]
  ------------------
  294|      0|            return 0;
  295|      0|        len = strlen(data);
  296|   678k|    } else {
  297|   678k|        len = (size_t)len_in;
  298|   678k|    }
  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|   678k|    if (len > INT_MAX - 1) {
  ------------------
  |  Branch (304:9): [True: 0, False: 678k]
  ------------------
  305|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_LARGE);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  306|      0|        return 0;
  307|      0|    }
  308|   678k|    if ((size_t)str->length <= len || str->data == NULL) {
  ------------------
  |  Branch (308:9): [True: 678k, False: 0]
  |  Branch (308:39): [True: 0, False: 0]
  ------------------
  309|   678k|        c = str->data;
  310|   678k|#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
  311|       |        /* No NUL terminator in fuzzing builds */
  312|   678k|        str->data = OPENSSL_realloc(c, len != 0 ? len : 1);
  ------------------
  |  |  121|  1.35M|    CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |  |  Branch (121:26): [True: 678k, False: 0]
  |  |  ------------------
  ------------------
  313|       |#else
  314|       |        str->data = OPENSSL_realloc(c, len + 1);
  315|       |#endif
  316|   678k|        if (str->data == NULL) {
  ------------------
  |  Branch (316:13): [True: 0, False: 678k]
  ------------------
  317|      0|            str->data = c;
  318|      0|            return 0;
  319|      0|        }
  320|   678k|    }
  321|   678k|    str->length = (int)len;
  322|   678k|    if (data != NULL) {
  ------------------
  |  Branch (322:9): [True: 595k, False: 82.7k]
  ------------------
  323|   595k|        memcpy(str->data, data, len);
  324|   595k|#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
  325|       |        /* Set the unused byte to something non NUL and printable. */
  326|   595k|        if (len == 0)
  ------------------
  |  Branch (326:13): [True: 0, False: 595k]
  ------------------
  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|   595k|    }
  336|   678k|    return 1;
  337|   678k|}
ASN1_STRING_set0:
  340|   458k|{
  341|   458k|    OPENSSL_free(str->data);
  ------------------
  |  |  132|   458k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  342|   458k|    str->data = data;
  343|   458k|    str->length = len;
  344|   458k|}
ASN1_STRING_type_new:
  352|   833k|{
  353|   833k|    ASN1_STRING *ret;
  354|       |
  355|   833k|    ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  109|   833k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  356|   833k|    if (ret == NULL)
  ------------------
  |  Branch (356:9): [True: 0, False: 833k]
  ------------------
  357|      0|        return NULL;
  358|   833k|    ret->type = type;
  359|   833k|    return ret;
  360|   833k|}
ossl_asn1_string_embed_free:
  363|  1.05M|{
  364|  1.05M|    if (a == NULL)
  ------------------
  |  Branch (364:9): [True: 0, False: 1.05M]
  ------------------
  365|      0|        return;
  366|  1.05M|    if (!(a->flags & ASN1_STRING_FLAG_NDEF))
  ------------------
  |  |   29|  1.05M|#define ASN1_STRING_FLAG_NDEF 0x010
  ------------------
  |  Branch (366:9): [True: 1.05M, False: 0]
  ------------------
  367|  1.05M|        OPENSSL_free(a->data);
  ------------------
  |  |  132|  1.05M|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  368|  1.05M|    if (embed == 0)
  ------------------
  |  Branch (368:9): [True: 833k, False: 223k]
  ------------------
  369|   833k|        OPENSSL_free(a);
  ------------------
  |  |  132|   833k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  370|  1.05M|}
ASN1_STRING_free:
  373|   248k|{
  374|   248k|    if (a == NULL)
  ------------------
  |  Branch (374:9): [True: 165k, False: 82.7k]
  ------------------
  375|   165k|        return;
  376|  82.7k|    ossl_asn1_string_embed_free(a, a->flags & ASN1_STRING_FLAG_EMBED);
  ------------------
  |  |   44|  82.7k|#define ASN1_STRING_FLAG_EMBED 0x080
  ------------------
  377|  82.7k|}
asn1_lib.c:asn1_get_length:
  118|  3.22M|{
  119|  3.22M|    const unsigned char *p = *pp;
  120|  3.22M|    unsigned long ret = 0;
  121|  3.22M|    int i;
  122|       |
  123|  3.22M|    if (max-- < 1)
  ------------------
  |  Branch (123:9): [True: 0, False: 3.22M]
  ------------------
  124|      0|        return 0;
  125|  3.22M|    if (*p == 0x80) {
  ------------------
  |  Branch (125:9): [True: 0, False: 3.22M]
  ------------------
  126|      0|        *inf = 1;
  127|      0|        p++;
  128|  3.22M|    } else {
  129|  3.22M|        *inf = 0;
  130|  3.22M|        i = *p & 0x7f;
  131|  3.22M|        if (*p++ & 0x80) {
  ------------------
  |  Branch (131:13): [True: 419k, False: 2.80M]
  ------------------
  132|   419k|            if (max < i)
  ------------------
  |  Branch (132:17): [True: 0, False: 419k]
  ------------------
  133|      0|                return 0;
  134|       |            /* Skip leading zeroes */
  135|   419k|            while (i > 0 && *p == 0) {
  ------------------
  |  Branch (135:20): [True: 419k, False: 0]
  |  Branch (135:29): [True: 0, False: 419k]
  ------------------
  136|      0|                p++;
  137|      0|                i--;
  138|      0|            }
  139|   419k|            if (i > (int)sizeof(long))
  ------------------
  |  Branch (139:17): [True: 0, False: 419k]
  ------------------
  140|      0|                return 0;
  141|  1.23M|            while (i > 0) {
  ------------------
  |  Branch (141:20): [True: 816k, False: 419k]
  ------------------
  142|   816k|                ret <<= 8;
  143|   816k|                ret |= *p++;
  144|   816k|                i--;
  145|   816k|            }
  146|   419k|            if (ret > LONG_MAX)
  ------------------
  |  Branch (146:17): [True: 0, False: 419k]
  ------------------
  147|      0|                return 0;
  148|  2.80M|        } else {
  149|  2.80M|            ret = i;
  150|  2.80M|        }
  151|  3.22M|    }
  152|  3.22M|    *pp = p;
  153|  3.22M|    *rl = (long)ret;
  154|  3.22M|    return 1;
  155|  3.22M|}
asn1_lib.c:asn1_put_length:
  201|  1.17M|{
  202|  1.17M|    unsigned char *p = *pp;
  203|  1.17M|    int i, len;
  204|       |
  205|  1.17M|    if (length <= 127) {
  ------------------
  |  Branch (205:9): [True: 1.17M, False: 0]
  ------------------
  206|  1.17M|        *(p++) = (unsigned char)length;
  207|  1.17M|    } 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|  1.17M|    *pp = p;
  220|  1.17M|}

ASN1_tag2bit:
  106|   668k|{
  107|   668k|    if ((tag < 0) || (tag > 30))
  ------------------
  |  Branch (107:9): [True: 0, False: 668k]
  |  Branch (107:22): [True: 0, False: 668k]
  ------------------
  108|      0|        return 0;
  109|   668k|    return tag2bit[tag];
  110|   668k|}
ASN1_item_ex_d2i:
  153|  82.7k|{
  154|  82.7k|    return asn1_item_ex_d2i_intern(pval, in, len, it, tag, aclass, opt, ctx,
  155|  82.7k|        NULL, NULL);
  156|  82.7k|}
ASN1_item_d2i_ex:
  162|   152k|{
  163|   152k|    ASN1_TLC c;
  164|   152k|    ASN1_VALUE *ptmpval = NULL;
  165|       |
  166|   152k|    if (pval == NULL)
  ------------------
  |  Branch (166:9): [True: 28.0k, False: 124k]
  ------------------
  167|  28.0k|        pval = &ptmpval;
  168|   152k|    asn1_tlc_clear_nc(&c);
  ------------------
  |  |  121|   152k|    do {                     \
  |  |  122|   152k|        (c)->valid = 0;      \
  |  |  123|   152k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (123:14): [Folded, False: 152k]
  |  |  ------------------
  ------------------
  169|   152k|    if (asn1_item_ex_d2i_intern(pval, in, len, it, -1, 0, 0, &c, libctx,
  ------------------
  |  Branch (169:9): [True: 152k, False: 0]
  ------------------
  170|   152k|            propq)
  171|   152k|        > 0)
  172|   152k|        return *pval;
  173|      0|    return NULL;
  174|   152k|}
ASN1_item_d2i:
  179|   110k|{
  180|   110k|    return ASN1_item_d2i_ex(pval, in, len, it, NULL, NULL);
  181|   110k|}
asn1_item_embed_d2i:
  193|  3.32M|{
  194|  3.32M|    const ASN1_TEMPLATE *tt, *errtt = NULL;
  195|  3.32M|    const ASN1_EXTERN_FUNCS *ef;
  196|  3.32M|    const ASN1_AUX *aux;
  197|  3.32M|    ASN1_aux_cb *asn1_cb;
  198|  3.32M|    const unsigned char *p = NULL, *q;
  199|  3.32M|    unsigned char oclass;
  200|  3.32M|    char seq_eoc, seq_nolen, cst, isopt;
  201|  3.32M|    long tmplen;
  202|  3.32M|    int i;
  203|  3.32M|    int otag;
  204|  3.32M|    int ret = 0;
  205|  3.32M|    ASN1_VALUE **pchptr;
  206|       |
  207|  3.32M|    if (pval == NULL || it == NULL) {
  ------------------
  |  Branch (207:9): [True: 0, False: 3.32M]
  |  Branch (207:25): [True: 0, False: 3.32M]
  ------------------
  208|      0|        ERR_raise(ERR_LIB_ASN1, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  209|      0|        return 0;
  210|      0|    }
  211|  3.32M|    if (len <= 0) {
  ------------------
  |  Branch (211:9): [True: 0, False: 3.32M]
  ------------------
  212|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_SMALL);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  213|      0|        return 0;
  214|      0|    }
  215|  3.32M|    aux = it->funcs;
  216|  3.32M|    if (aux && aux->asn1_cb)
  ------------------
  |  Branch (216:9): [True: 332k, False: 2.99M]
  |  Branch (216:16): [True: 125k, False: 206k]
  ------------------
  217|   125k|        asn1_cb = aux->asn1_cb;
  218|  3.19M|    else
  219|  3.19M|        asn1_cb = 0;
  220|       |
  221|  3.32M|    if (++depth > ASN1_MAX_CONSTRUCTED_NEST) {
  ------------------
  |  |   27|  3.32M|#define ASN1_MAX_CONSTRUCTED_NEST 30
  ------------------
  |  Branch (221:9): [True: 0, False: 3.32M]
  ------------------
  222|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_NESTED_TOO_DEEP);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  223|      0|        goto err;
  224|      0|    }
  225|       |
  226|  3.32M|    switch (it->itype) {
  227|  1.86M|    case ASN1_ITYPE_PRIMITIVE:
  ------------------
  |  |   82|  1.86M|#define ASN1_ITYPE_PRIMITIVE 0x0
  ------------------
  |  Branch (227:5): [True: 1.86M, False: 1.45M]
  ------------------
  228|  1.86M|        if (it->templates) {
  ------------------
  |  Branch (228:13): [True: 375k, False: 1.48M]
  ------------------
  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|   375k|            if ((tag != -1) || opt) {
  ------------------
  |  Branch (235:17): [True: 0, False: 375k]
  |  Branch (235:32): [True: 0, False: 375k]
  ------------------
  236|      0|                ERR_raise(ERR_LIB_ASN1,
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  237|      0|                    ASN1_R_ILLEGAL_OPTIONS_ON_ITEM_TEMPLATE);
  238|      0|                goto err;
  239|      0|            }
  240|   375k|            return asn1_template_ex_d2i(pval, in, len, it->templates, opt, ctx,
  241|   375k|                depth, libctx, propq);
  242|   375k|        }
  243|  1.48M|        return asn1_d2i_ex_primitive(pval, in, len, it,
  244|  1.48M|            tag, aclass, opt, ctx);
  245|       |
  246|   375k|    case ASN1_ITYPE_MSTRING:
  ------------------
  |  |   87|   375k|#define ASN1_ITYPE_MSTRING 0x5
  ------------------
  |  Branch (246:5): [True: 375k, False: 2.94M]
  ------------------
  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|   375k|        if (tag != -1) {
  ------------------
  |  Branch (251:13): [True: 0, False: 375k]
  ------------------
  252|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_BAD_TEMPLATE);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  253|      0|            goto err;
  254|      0|        }
  255|       |
  256|   375k|        p = *in;
  257|       |        /* Just read in tag and class */
  258|   375k|        ret = asn1_check_tlen(NULL, &otag, &oclass, NULL, NULL,
  259|   375k|            &p, len, -1, 0, 1, ctx);
  260|   375k|        if (!ret) {
  ------------------
  |  Branch (260:13): [True: 0, False: 375k]
  ------------------
  261|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  262|      0|            goto err;
  263|      0|        }
  264|       |
  265|       |        /* Must be UNIVERSAL class */
  266|   375k|        if (oclass != V_ASN1_UNIVERSAL) {
  ------------------
  |  |   49|   375k|#define V_ASN1_UNIVERSAL 0x00
  ------------------
  |  Branch (266:13): [True: 0, False: 375k]
  ------------------
  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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  271|      0|            goto err;
  272|      0|        }
  273|       |
  274|       |        /* Check tag matches bit map */
  275|   375k|        if (!(ASN1_tag2bit(otag) & it->utype)) {
  ------------------
  |  Branch (275:13): [True: 0, False: 375k]
  ------------------
  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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  280|      0|            goto err;
  281|      0|        }
  282|   375k|        return asn1_d2i_ex_primitive(pval, in, len, it, otag, 0, 0, ctx);
  283|       |
  284|   165k|    case ASN1_ITYPE_EXTERN:
  ------------------
  |  |   86|   165k|#define ASN1_ITYPE_EXTERN 0x4
  ------------------
  |  Branch (284:5): [True: 165k, False: 3.15M]
  ------------------
  285|       |        /* Use new style d2i */
  286|   165k|        ef = it->funcs;
  287|   165k|        if (ef->asn1_ex_d2i_ex != NULL)
  ------------------
  |  Branch (287:13): [True: 82.7k, False: 82.7k]
  ------------------
  288|  82.7k|            return ef->asn1_ex_d2i_ex(pval, in, len, it, tag, aclass, opt, ctx,
  289|  82.7k|                libctx, propq);
  290|  82.7k|        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: 3.32M]
  ------------------
  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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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: 3.32M]
  ------------------
  362|   916k|    case ASN1_ITYPE_SEQUENCE:
  ------------------
  |  |   83|   916k|#define ASN1_ITYPE_SEQUENCE 0x1
  ------------------
  |  Branch (362:5): [True: 916k, False: 2.40M]
  ------------------
  363|   916k|        p = *in;
  364|   916k|        tmplen = len;
  365|       |
  366|       |        /* If no IMPLICIT tagging set to SEQUENCE, UNIVERSAL */
  367|   916k|        if (tag == -1) {
  ------------------
  |  Branch (367:13): [True: 916k, False: 0]
  ------------------
  368|   916k|            tag = V_ASN1_SEQUENCE;
  ------------------
  |  |   76|   916k|#define V_ASN1_SEQUENCE 16
  ------------------
  369|   916k|            aclass = V_ASN1_UNIVERSAL;
  ------------------
  |  |   49|   916k|#define V_ASN1_UNIVERSAL 0x00
  ------------------
  370|   916k|        }
  371|       |        /* Get SEQUENCE length and update len, p */
  372|   916k|        ret = asn1_check_tlen(&len, NULL, NULL, &seq_eoc, &cst,
  373|   916k|            &p, len, tag, aclass, opt, ctx);
  374|   916k|        if (!ret) {
  ------------------
  |  Branch (374:13): [True: 0, False: 916k]
  ------------------
  375|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  376|      0|            goto err;
  377|   916k|        } else if (ret == -1)
  ------------------
  |  Branch (377:20): [True: 0, False: 916k]
  ------------------
  378|      0|            return -1;
  379|   916k|        if (aux && (aux->flags & ASN1_AFLG_BROKEN)) {
  ------------------
  |  |  725|   110k|#define ASN1_AFLG_BROKEN 4
  ------------------
  |  Branch (379:13): [True: 110k, False: 806k]
  |  Branch (379:20): [True: 0, False: 110k]
  ------------------
  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|   916k|        else
  385|   916k|            seq_nolen = seq_eoc;
  386|   916k|        if (!cst) {
  ------------------
  |  Branch (386:13): [True: 0, False: 916k]
  ------------------
  387|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_SEQUENCE_NOT_CONSTRUCTED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  388|      0|            goto err;
  389|      0|        }
  390|       |
  391|   916k|        if (*pval == NULL
  ------------------
  |  Branch (391:13): [True: 503k, False: 413k]
  ------------------
  392|   503k|            && !ossl_asn1_item_ex_new_intern(pval, it, libctx, propq)) {
  ------------------
  |  Branch (392:16): [True: 0, False: 503k]
  ------------------
  393|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  394|      0|            goto err;
  395|      0|        }
  396|       |
  397|   916k|        if (asn1_cb && !asn1_cb(ASN1_OP_D2I_PRE, pval, it, NULL))
  ------------------
  |  |  735|  69.4k|#define ASN1_OP_D2I_PRE 4
  ------------------
  |  Branch (397:13): [True: 69.4k, False: 847k]
  |  Branch (397:24): [True: 0, False: 69.4k]
  ------------------
  398|      0|            goto auxerr;
  399|       |
  400|       |        /* Free up and zero any ADB found */
  401|  3.26M|        for (i = 0, tt = it->templates; i < it->tcount; i++, tt++) {
  ------------------
  |  Branch (401:41): [True: 2.34M, False: 916k]
  ------------------
  402|  2.34M|            if (tt->flags & ASN1_TFLG_ADB_MASK) {
  ------------------
  |  |  572|  2.34M|#define ASN1_TFLG_ADB_MASK (0x3 << 8)
  ------------------
  |  Branch (402:17): [True: 0, False: 2.34M]
  ------------------
  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|  2.34M|        }
  412|       |
  413|       |        /* Get each field entry */
  414|  3.23M|        for (i = 0, tt = it->templates; i < it->tcount; i++, tt++) {
  ------------------
  |  Branch (414:41): [True: 2.34M, False: 890k]
  ------------------
  415|  2.34M|            const ASN1_TEMPLATE *seqtt;
  416|  2.34M|            ASN1_VALUE **pseqval;
  417|  2.34M|            seqtt = ossl_asn1_do_adb(*pval, tt, 1);
  418|  2.34M|            if (seqtt == NULL)
  ------------------
  |  Branch (418:17): [True: 0, False: 2.34M]
  ------------------
  419|      0|                goto err;
  420|  2.34M|            pseqval = ossl_asn1_get_field_ptr(pval, seqtt);
  421|       |            /* Have we ran out of data? */
  422|  2.34M|            if (!len)
  ------------------
  |  Branch (422:17): [True: 26.6k, False: 2.32M]
  ------------------
  423|  26.6k|                break;
  424|  2.32M|            q = p;
  425|  2.32M|            if (asn1_check_eoc(&p, len)) {
  ------------------
  |  Branch (425:17): [True: 0, False: 2.32M]
  ------------------
  426|      0|                if (!seq_eoc) {
  ------------------
  |  Branch (426:21): [True: 0, False: 0]
  ------------------
  427|      0|                    ERR_raise(ERR_LIB_ASN1, ASN1_R_UNEXPECTED_EOC);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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|  2.32M|            if (i == (it->tcount - 1))
  ------------------
  |  Branch (440:17): [True: 890k, False: 1.43M]
  ------------------
  441|   890k|                isopt = 0;
  442|  1.43M|            else
  443|  1.43M|                isopt = (char)(seqtt->flags & ASN1_TFLG_OPTIONAL);
  ------------------
  |  |  512|  1.43M|#define ASN1_TFLG_OPTIONAL (0x1)
  ------------------
  444|       |            /*
  445|       |             * attempt to read in field, allowing each to be OPTIONAL
  446|       |             */
  447|       |
  448|  2.32M|            ret = asn1_template_ex_d2i(pseqval, &p, len, seqtt, isopt, ctx,
  449|  2.32M|                depth, libctx, propq);
  450|  2.32M|            if (!ret) {
  ------------------
  |  Branch (450:17): [True: 0, False: 2.32M]
  ------------------
  451|      0|                errtt = seqtt;
  452|      0|                goto err;
  453|  2.32M|            } else if (ret == -1) {
  ------------------
  |  Branch (453:24): [True: 141k, False: 2.17M]
  ------------------
  454|       |                /*
  455|       |                 * OPTIONAL component absent. Free and zero the field.
  456|       |                 */
  457|   141k|                ossl_asn1_template_free(pseqval, seqtt);
  458|   141k|                continue;
  459|   141k|            }
  460|       |            /* Update length */
  461|  2.17M|            len -= (long)(p - q);
  462|  2.17M|        }
  463|       |
  464|       |        /* Check for EOC if expecting one */
  465|   916k|        if (seq_eoc && !asn1_check_eoc(&p, len)) {
  ------------------
  |  Branch (465:13): [True: 0, False: 916k]
  |  Branch (465:24): [True: 0, False: 0]
  ------------------
  466|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_MISSING_EOC);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  467|      0|            goto err;
  468|      0|        }
  469|       |        /* Check all data read */
  470|   916k|        if (!seq_nolen && len) {
  ------------------
  |  Branch (470:13): [True: 916k, False: 0]
  |  Branch (470:27): [True: 0, False: 916k]
  ------------------
  471|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_SEQUENCE_LENGTH_MISMATCH);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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|   943k|        for (; i < it->tcount; tt++, i++) {
  ------------------
  |  Branch (480:16): [True: 26.6k, False: 916k]
  ------------------
  481|  26.6k|            const ASN1_TEMPLATE *seqtt;
  482|  26.6k|            seqtt = ossl_asn1_do_adb(*pval, tt, 1);
  483|  26.6k|            if (seqtt == NULL)
  ------------------
  |  Branch (483:17): [True: 0, False: 26.6k]
  ------------------
  484|      0|                goto err;
  485|  26.6k|            if (seqtt->flags & ASN1_TFLG_OPTIONAL) {
  ------------------
  |  |  512|  26.6k|#define ASN1_TFLG_OPTIONAL (0x1)
  ------------------
  |  Branch (485:17): [True: 26.6k, False: 0]
  ------------------
  486|  26.6k|                ASN1_VALUE **pseqval;
  487|  26.6k|                pseqval = ossl_asn1_get_field_ptr(pval, seqtt);
  488|  26.6k|                ossl_asn1_template_free(pseqval, seqtt);
  489|  26.6k|            } else {
  490|      0|                errtt = seqtt;
  491|      0|                ERR_raise(ERR_LIB_ASN1, ASN1_R_FIELD_MISSING);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  492|      0|                goto err;
  493|      0|            }
  494|  26.6k|        }
  495|       |        /* Save encoding */
  496|   916k|        if (!ossl_asn1_enc_save(pval, *in, (long)(p - *in), it))
  ------------------
  |  Branch (496:13): [True: 0, False: 916k]
  ------------------
  497|      0|            goto auxerr;
  498|   916k|        if (asn1_cb && !asn1_cb(ASN1_OP_D2I_POST, pval, it, NULL))
  ------------------
  |  |  736|  69.4k|#define ASN1_OP_D2I_POST 5
  ------------------
  |  Branch (498:13): [True: 69.4k, False: 847k]
  |  Branch (498:24): [True: 0, False: 69.4k]
  ------------------
  499|      0|            goto auxerr;
  500|   916k|        *in = p;
  501|   916k|        return 1;
  502|       |
  503|      0|    default:
  ------------------
  |  Branch (503:5): [True: 0, False: 3.32M]
  ------------------
  504|      0|        return 0;
  505|  3.32M|    }
  506|      0|auxerr:
  507|      0|    ERR_raise(ERR_LIB_ASN1, ASN1_R_AUX_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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|   234k|{
  137|   234k|    int rv;
  138|       |
  139|   234k|    if (pval == NULL || it == NULL) {
  ------------------
  |  Branch (139:9): [True: 0, False: 234k]
  |  Branch (139:25): [True: 0, False: 234k]
  ------------------
  140|      0|        ERR_raise(ERR_LIB_ASN1, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  141|      0|        return 0;
  142|      0|    }
  143|   234k|    rv = asn1_item_embed_d2i(pval, in, len, it, tag, aclass, opt, ctx, 0,
  144|   234k|        libctx, propq);
  145|   234k|    if (rv <= 0)
  ------------------
  |  Branch (145:9): [True: 0, False: 234k]
  ------------------
  146|      0|        ASN1_item_ex_free(pval, it);
  147|   234k|    return rv;
  148|   234k|}
tasn_dec.c:asn1_template_ex_d2i:
  527|  2.69M|{
  528|  2.69M|    int flags, aclass;
  529|  2.69M|    int ret;
  530|  2.69M|    long len;
  531|  2.69M|    const unsigned char *p, *q;
  532|  2.69M|    char exp_eoc;
  533|  2.69M|    if (!val)
  ------------------
  |  Branch (533:9): [True: 0, False: 2.69M]
  ------------------
  534|      0|        return 0;
  535|  2.69M|    flags = tt->flags;
  536|  2.69M|    aclass = flags & ASN1_TFLG_TAG_CLASS;
  ------------------
  |  |  564|  2.69M|#define ASN1_TFLG_TAG_CLASS (0x3 << 6)
  ------------------
  537|       |
  538|  2.69M|    p = *in;
  539|       |
  540|       |    /* Check if EXPLICIT tag expected */
  541|  2.69M|    if (flags & ASN1_TFLG_EXPTAG) {
  ------------------
  |  |  539|  2.69M|#define ASN1_TFLG_EXPTAG (0x2 << 3)
  ------------------
  |  Branch (541:9): [True: 82.7k, False: 2.61M]
  ------------------
  542|  82.7k|        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|  82.7k|        ret = asn1_check_tlen(&len, NULL, NULL, &exp_eoc, &cst,
  548|  82.7k|            &p, inlen, tt->tag, aclass, opt, ctx);
  549|  82.7k|        q = p;
  550|  82.7k|        if (!ret) {
  ------------------
  |  Branch (550:13): [True: 0, False: 82.7k]
  ------------------
  551|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  552|      0|            return 0;
  553|  82.7k|        } else if (ret == -1)
  ------------------
  |  Branch (553:20): [True: 0, False: 82.7k]
  ------------------
  554|      0|            return -1;
  555|  82.7k|        if (!cst) {
  ------------------
  |  Branch (555:13): [True: 0, False: 82.7k]
  ------------------
  556|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  557|      0|            return 0;
  558|      0|        }
  559|       |        /* We've found the field so it can't be OPTIONAL now */
  560|  82.7k|        ret = asn1_template_noexp_d2i(val, &p, len, tt, 0, ctx, depth, libctx,
  561|  82.7k|            propq);
  562|  82.7k|        if (!ret) {
  ------------------
  |  Branch (562:13): [True: 0, False: 82.7k]
  ------------------
  563|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  564|      0|            return 0;
  565|      0|        }
  566|       |        /* We read the field in OK so update length */
  567|  82.7k|        len -= (long)(p - q);
  568|  82.7k|        if (exp_eoc) {
  ------------------
  |  Branch (568:13): [True: 0, False: 82.7k]
  ------------------
  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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  572|      0|                goto err;
  573|      0|            }
  574|  82.7k|        } else {
  575|       |            /*
  576|       |             * Otherwise we must hit the EXPLICIT tag end or its an error
  577|       |             */
  578|  82.7k|            if (len) {
  ------------------
  |  Branch (578:17): [True: 0, False: 82.7k]
  ------------------
  579|      0|                ERR_raise(ERR_LIB_ASN1, ASN1_R_EXPLICIT_LENGTH_MISMATCH);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  580|      0|                goto err;
  581|      0|            }
  582|  82.7k|        }
  583|  82.7k|    } else
  584|  2.61M|        return asn1_template_noexp_d2i(val, in, inlen, tt, opt, ctx, depth,
  585|  2.61M|            libctx, propq);
  586|       |
  587|  82.7k|    *in = p;
  588|  82.7k|    return 1;
  589|       |
  590|      0|err:
  591|      0|    return 0;
  592|  2.69M|}
tasn_dec.c:asn1_template_noexp_d2i:
  599|  2.69M|{
  600|  2.69M|    int flags, aclass;
  601|  2.69M|    int ret;
  602|  2.69M|    ASN1_VALUE *tval;
  603|  2.69M|    const unsigned char *p, *q;
  604|  2.69M|    if (!val)
  ------------------
  |  Branch (604:9): [True: 0, False: 2.69M]
  ------------------
  605|      0|        return 0;
  606|  2.69M|    flags = tt->flags;
  607|  2.69M|    aclass = flags & ASN1_TFLG_TAG_CLASS;
  ------------------
  |  |  564|  2.69M|#define ASN1_TFLG_TAG_CLASS (0x3 << 6)
  ------------------
  608|       |
  609|  2.69M|    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.69M|    if (tt->flags & ASN1_TFLG_EMBED) {
  ------------------
  |  |  586|  2.69M|#define ASN1_TFLG_EMBED (0x1 << 12)
  ------------------
  |  Branch (615:9): [True: 389k, False: 2.30M]
  ------------------
  616|   389k|        tval = (ASN1_VALUE *)val;
  617|   389k|        val = &tval;
  618|   389k|    }
  619|       |
  620|  2.69M|    if (flags & ASN1_TFLG_SK_MASK) {
  ------------------
  |  |  528|  2.69M|#define ASN1_TFLG_SK_MASK (0x3 << 1)
  ------------------
  |  Branch (620:9): [True: 416k, False: 2.27M]
  ------------------
  621|       |        /* SET OF, SEQUENCE OF */
  622|   416k|        int sktag, skaclass;
  623|   416k|        char sk_eoc;
  624|       |        /* First work out expected inner tag value */
  625|   416k|        if (flags & ASN1_TFLG_IMPTAG) {
  ------------------
  |  |  536|   416k|#define ASN1_TFLG_IMPTAG (0x1 << 3)
  ------------------
  |  Branch (625:13): [True: 0, False: 416k]
  ------------------
  626|      0|            sktag = tt->tag;
  627|      0|            skaclass = aclass;
  628|   416k|        } else {
  629|   416k|            skaclass = V_ASN1_UNIVERSAL;
  ------------------
  |  |   49|   416k|#define V_ASN1_UNIVERSAL 0x00
  ------------------
  630|   416k|            if (flags & ASN1_TFLG_SET_OF)
  ------------------
  |  |  515|   416k|#define ASN1_TFLG_SET_OF (0x1 << 1)
  ------------------
  |  Branch (630:17): [True: 292k, False: 124k]
  ------------------
  631|   292k|                sktag = V_ASN1_SET;
  ------------------
  |  |   77|   292k|#define V_ASN1_SET 17
  ------------------
  632|   124k|            else
  633|   124k|                sktag = V_ASN1_SEQUENCE;
  ------------------
  |  |   76|   124k|#define V_ASN1_SEQUENCE 16
  ------------------
  634|   416k|        }
  635|       |        /* Get the tag */
  636|   416k|        ret = asn1_check_tlen(&len, NULL, NULL, &sk_eoc, NULL,
  637|   416k|            &p, len, sktag, skaclass, opt, ctx);
  638|   416k|        if (!ret) {
  ------------------
  |  Branch (638:13): [True: 0, False: 416k]
  ------------------
  639|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  640|      0|            return 0;
  641|   416k|        } else if (ret == -1)
  ------------------
  |  Branch (641:20): [True: 0, False: 416k]
  ------------------
  642|      0|            return -1;
  643|   416k|        if (*val == NULL)
  ------------------
  |  Branch (643:13): [True: 416k, False: 0]
  ------------------
  644|   416k|            *val = (ASN1_VALUE *)sk_ASN1_VALUE_new_null();
  ------------------
  |  |  890|   416k|#define sk_ASN1_VALUE_new_null() ((STACK_OF(ASN1_VALUE) *)OPENSSL_sk_set_thunks(OPENSSL_sk_new_null(), sk_ASN1_VALUE_freefunc_thunk))
  ------------------
  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));
  ------------------
  |  |  394|      0|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  654|      0|            }
  655|      0|        }
  656|       |
  657|   416k|        if (*val == NULL) {
  ------------------
  |  Branch (657:13): [True: 0, False: 416k]
  ------------------
  658|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  659|      0|            goto err;
  660|      0|        }
  661|       |
  662|       |        /* Read as many items as we can */
  663|  1.14M|        while (len > 0) {
  ------------------
  |  Branch (663:16): [True: 726k, False: 416k]
  ------------------
  664|   726k|            ASN1_VALUE *skfield;
  665|   726k|            q = p;
  666|       |            /* See if EOC found */
  667|   726k|            if (asn1_check_eoc(&p, len)) {
  ------------------
  |  Branch (667:17): [True: 0, False: 726k]
  ------------------
  668|      0|                if (!sk_eoc) {
  ------------------
  |  Branch (668:21): [True: 0, False: 0]
  ------------------
  669|      0|                    ERR_raise(ERR_LIB_ASN1, ASN1_R_UNEXPECTED_EOC);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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|   726k|            skfield = NULL;
  677|   726k|            if (asn1_item_embed_d2i(&skfield, &p, len,
  ------------------
  |  Branch (677:17): [True: 0, False: 726k]
  ------------------
  678|   726k|                    ASN1_ITEM_ptr(tt->item), -1, 0, 0, ctx,
  ------------------
  |  |  394|   726k|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  679|   726k|                    depth, libctx, propq)
  680|   726k|                <= 0) {
  681|      0|                ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  682|       |                /* |skfield| may be partially allocated despite failure. */
  683|      0|                ASN1_item_free(skfield, ASN1_ITEM_ptr(tt->item));
  ------------------
  |  |  394|      0|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  684|      0|                goto err;
  685|      0|            }
  686|   726k|            len -= (long)(p - q);
  687|   726k|            if (!sk_ASN1_VALUE_push((STACK_OF(ASN1_VALUE) *)*val, skfield)) {
  ------------------
  |  |  897|   726k|#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: 726k]
  ------------------
  688|      0|                ERR_raise(ERR_LIB_ASN1, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  689|      0|                ASN1_item_free(skfield, ASN1_ITEM_ptr(tt->item));
  ------------------
  |  |  394|      0|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  690|      0|                goto err;
  691|      0|            }
  692|   726k|        }
  693|   416k|        if (sk_eoc) {
  ------------------
  |  Branch (693:13): [True: 0, False: 416k]
  ------------------
  694|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_MISSING_EOC);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  695|      0|            goto err;
  696|      0|        }
  697|  2.27M|    } else if (flags & ASN1_TFLG_IMPTAG) {
  ------------------
  |  |  536|  2.27M|#define ASN1_TFLG_IMPTAG (0x1 << 3)
  ------------------
  |  Branch (697:16): [True: 82.7k, False: 2.19M]
  ------------------
  698|       |        /* IMPLICIT tagging */
  699|  82.7k|        ret = asn1_item_embed_d2i(val, &p, len,
  700|  82.7k|            ASN1_ITEM_ptr(tt->item), tt->tag, aclass, opt,
  ------------------
  |  |  394|  82.7k|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  701|  82.7k|            ctx, depth, libctx, propq);
  702|  82.7k|        if (!ret) {
  ------------------
  |  Branch (702:13): [True: 0, False: 82.7k]
  ------------------
  703|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  704|      0|            goto err;
  705|  82.7k|        } else if (ret == -1)
  ------------------
  |  Branch (705:20): [True: 82.7k, False: 0]
  ------------------
  706|  82.7k|            return -1;
  707|  2.19M|    } else {
  708|       |        /* Nothing special */
  709|  2.19M|        ret = asn1_item_embed_d2i(val, &p, len, ASN1_ITEM_ptr(tt->item),
  ------------------
  |  |  394|  2.19M|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  710|  2.19M|            -1, 0, opt, ctx, depth, libctx, propq);
  711|  2.19M|        if (!ret) {
  ------------------
  |  Branch (711:13): [True: 0, False: 2.19M]
  ------------------
  712|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  713|      0|            goto err;
  714|  2.19M|        } else if (ret == -1)
  ------------------
  |  Branch (714:20): [True: 59.1k, False: 2.13M]
  ------------------
  715|  59.1k|            return -1;
  716|  2.19M|    }
  717|       |
  718|  2.55M|    *in = p;
  719|  2.55M|    return 1;
  720|       |
  721|      0|err:
  722|      0|    return 0;
  723|  2.69M|}
tasn_dec.c:asn1_d2i_ex_primitive:
  729|  1.86M|{
  730|  1.86M|    int ret = 0, utype;
  731|  1.86M|    long plen;
  732|  1.86M|    char cst, inf, free_cont = 0;
  733|  1.86M|    const unsigned char *p;
  734|  1.86M|    BUF_MEM buf = { 0, NULL, 0, 0 };
  735|  1.86M|    const unsigned char *cont = NULL;
  736|  1.86M|    long len;
  737|       |
  738|  1.86M|    if (pval == NULL) {
  ------------------
  |  Branch (738:9): [True: 0, False: 1.86M]
  ------------------
  739|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_ILLEGAL_NULL);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  740|      0|        return 0; /* Should never happen */
  741|      0|    }
  742|       |
  743|  1.86M|    if (it->itype == ASN1_ITYPE_MSTRING) {
  ------------------
  |  |   87|  1.86M|#define ASN1_ITYPE_MSTRING 0x5
  ------------------
  |  Branch (743:9): [True: 375k, False: 1.48M]
  ------------------
  744|   375k|        utype = tag;
  745|   375k|        tag = -1;
  746|   375k|    } else
  747|  1.48M|        utype = it->utype;
  748|       |
  749|  1.86M|    if (utype == V_ASN1_ANY) {
  ------------------
  |  |   60|  1.86M|#define V_ASN1_ANY -4 /* used in ASN1 template code */
  ------------------
  |  Branch (749:9): [True: 180k, False: 1.68M]
  ------------------
  750|       |        /* If type is ANY need to figure out type from tag */
  751|   180k|        unsigned char oclass;
  752|   180k|        if (tag >= 0) {
  ------------------
  |  Branch (752:13): [True: 0, False: 180k]
  ------------------
  753|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_ILLEGAL_TAGGED_ANY);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  754|      0|            return 0;
  755|      0|        }
  756|   180k|        if (opt) {
  ------------------
  |  Branch (756:13): [True: 0, False: 180k]
  ------------------
  757|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_ILLEGAL_OPTIONAL_ANY);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  758|      0|            return 0;
  759|      0|        }
  760|   180k|        p = *in;
  761|   180k|        ret = asn1_check_tlen(NULL, &utype, &oclass, NULL, NULL,
  762|   180k|            &p, inlen, -1, 0, 0, ctx);
  763|   180k|        if (!ret) {
  ------------------
  |  Branch (763:13): [True: 0, False: 180k]
  ------------------
  764|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  765|      0|            return 0;
  766|      0|        }
  767|   180k|        if (oclass != V_ASN1_UNIVERSAL)
  ------------------
  |  |   49|   180k|#define V_ASN1_UNIVERSAL 0x00
  ------------------
  |  Branch (767:13): [True: 0, False: 180k]
  ------------------
  768|      0|            utype = V_ASN1_OTHER;
  ------------------
  |  |   59|      0|#define V_ASN1_OTHER -3 /* used in ASN1_TYPE */
  ------------------
  769|   180k|    }
  770|  1.86M|    if (tag == -1) {
  ------------------
  |  Branch (770:9): [True: 1.78M, False: 82.7k]
  ------------------
  771|  1.78M|        tag = utype;
  772|  1.78M|        aclass = V_ASN1_UNIVERSAL;
  ------------------
  |  |   49|  1.78M|#define V_ASN1_UNIVERSAL 0x00
  ------------------
  773|  1.78M|    }
  774|  1.86M|    p = *in;
  775|       |    /* Check header */
  776|  1.86M|    ret = asn1_check_tlen(&plen, NULL, NULL, &inf, &cst,
  777|  1.86M|        &p, inlen, tag, aclass, opt, ctx);
  778|  1.86M|    if (!ret) {
  ------------------
  |  Branch (778:9): [True: 0, False: 1.86M]
  ------------------
  779|      0|        ERR_raise(ERR_LIB_ASN1, ERR_R_NESTED_ASN1_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  780|      0|        return 0;
  781|  1.86M|    } else if (ret == -1)
  ------------------
  |  Branch (781:16): [True: 141k, False: 1.72M]
  ------------------
  782|   141k|        return -1;
  783|  1.72M|    ret = 0;
  784|       |    /* SEQUENCE, SET and "OTHER" are left in encoded form */
  785|  1.72M|    if ((utype == V_ASN1_SEQUENCE)
  ------------------
  |  |   76|  1.72M|#define V_ASN1_SEQUENCE 16
  ------------------
  |  Branch (785:9): [True: 0, False: 1.72M]
  ------------------
  786|  1.72M|        || (utype == V_ASN1_SET) || (utype == V_ASN1_OTHER)) {
  ------------------
  |  |   77|  1.72M|#define V_ASN1_SET 17
  ------------------
                      || (utype == V_ASN1_SET) || (utype == V_ASN1_OTHER)) {
  ------------------
  |  |   59|  1.72M|#define V_ASN1_OTHER -3 /* used in ASN1_TYPE */
  ------------------
  |  Branch (786:12): [True: 0, False: 1.72M]
  |  Branch (786:37): [True: 0, False: 1.72M]
  ------------------
  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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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.72M|    } else if (cst) {
  ------------------
  |  Branch (810:16): [True: 0, False: 1.72M]
  ------------------
  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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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.72M|    } else {
  838|  1.72M|        cont = p;
  839|  1.72M|        len = plen;
  840|  1.72M|        p += plen;
  841|  1.72M|    }
  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.72M|    if (!asn1_ex_c2i(pval, cont, len, utype, &free_cont, it))
  ------------------
  |  Branch (845:9): [True: 0, False: 1.72M]
  ------------------
  846|      0|        goto err;
  847|       |
  848|  1.72M|    *in = p;
  849|  1.72M|    ret = 1;
  850|  1.72M|err:
  851|  1.72M|    if (free_cont)
  ------------------
  |  Branch (851:9): [True: 0, False: 1.72M]
  ------------------
  852|      0|        OPENSSL_free(buf.data);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  853|  1.72M|    return ret;
  854|  1.72M|}
tasn_dec.c:asn1_ex_c2i:
  860|  1.72M|{
  861|  1.72M|    ASN1_VALUE **opval = NULL;
  862|  1.72M|    ASN1_STRING *stmp;
  863|  1.72M|    ASN1_TYPE *typ = NULL;
  864|  1.72M|    int ret = 0;
  865|  1.72M|    int ilen = (int)len;
  866|  1.72M|    const ASN1_PRIMITIVE_FUNCS *pf;
  867|  1.72M|    ASN1_INTEGER **tint;
  868|  1.72M|    pf = it->funcs;
  869|       |
  870|  1.72M|    if (pf && pf->prim_c2i) {
  ------------------
  |  Branch (870:9): [True: 56.0k, False: 1.66M]
  |  Branch (870:15): [True: 56.0k, False: 0]
  ------------------
  871|  56.0k|        if (len == (long)ilen)
  ------------------
  |  Branch (871:13): [True: 56.0k, False: 0]
  ------------------
  872|  56.0k|            return pf->prim_c2i(pval, cont, ilen, utype, free_cont, it);
  873|  56.0k|        ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_LONG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  874|      0|        return 0;
  875|  56.0k|    }
  876|       |    /* If ANY type clear type and set pointer to internal value */
  877|  1.66M|    if (it->utype == V_ASN1_ANY) {
  ------------------
  |  |   60|  1.66M|#define V_ASN1_ANY -4 /* used in ASN1 template code */
  ------------------
  |  Branch (877:9): [True: 180k, False: 1.48M]
  ------------------
  878|   180k|        if (*pval == NULL) {
  ------------------
  |  Branch (878:13): [True: 180k, False: 0]
  ------------------
  879|   180k|            typ = ASN1_TYPE_new();
  880|   180k|            if (typ == NULL)
  ------------------
  |  Branch (880:17): [True: 0, False: 180k]
  ------------------
  881|      0|                goto err;
  882|   180k|            *pval = (ASN1_VALUE *)typ;
  883|   180k|        } else
  884|      0|            typ = (ASN1_TYPE *)*pval;
  885|       |
  886|   180k|        if (utype != typ->type)
  ------------------
  |  Branch (886:13): [True: 180k, False: 0]
  ------------------
  887|   180k|            ASN1_TYPE_set(typ, utype, NULL);
  888|   180k|        opval = pval;
  889|   180k|        pval = &typ->value.asn1_value;
  890|   180k|    }
  891|  1.66M|    switch (utype) {
  892|   680k|    case V_ASN1_OBJECT:
  ------------------
  |  |   70|   680k|#define V_ASN1_OBJECT 6
  ------------------
  |  Branch (892:5): [True: 680k, False: 986k]
  ------------------
  893|   680k|        if (len != (long)ilen
  ------------------
  |  Branch (893:13): [True: 0, False: 680k]
  ------------------
  894|   680k|            || !ossl_c2i_ASN1_OBJECT((ASN1_OBJECT **)pval, &cont, ilen))
  ------------------
  |  Branch (894:16): [True: 0, False: 680k]
  ------------------
  895|      0|            goto err;
  896|   680k|        break;
  897|       |
  898|   680k|    case V_ASN1_NULL:
  ------------------
  |  |   69|   140k|#define V_ASN1_NULL 5
  ------------------
  |  Branch (898:5): [True: 140k, False: 1.52M]
  ------------------
  899|   140k|        if (len) {
  ------------------
  |  Branch (899:13): [True: 0, False: 140k]
  ------------------
  900|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_NULL_IS_WRONG_LENGTH);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  901|      0|            goto err;
  902|      0|        }
  903|   140k|        *pval = (ASN1_VALUE *)1;
  904|   140k|        break;
  905|       |
  906|  81.7k|    case V_ASN1_BOOLEAN:
  ------------------
  |  |   65|  81.7k|#define V_ASN1_BOOLEAN 1
  ------------------
  |  Branch (906:5): [True: 81.7k, False: 1.58M]
  ------------------
  907|  81.7k|        if (len != 1) {
  ------------------
  |  Branch (907:13): [True: 0, False: 81.7k]
  ------------------
  908|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_BOOLEAN_IS_WRONG_LENGTH);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  909|      0|            goto err;
  910|  81.7k|        } else {
  911|  81.7k|            ASN1_BOOLEAN *tbool;
  912|  81.7k|            tbool = (ASN1_BOOLEAN *)pval;
  913|  81.7k|            *tbool = *cont;
  914|  81.7k|        }
  915|  81.7k|        break;
  916|       |
  917|   165k|    case V_ASN1_BIT_STRING:
  ------------------
  |  |   67|   165k|#define V_ASN1_BIT_STRING 3
  ------------------
  |  Branch (917:5): [True: 165k, False: 1.50M]
  ------------------
  918|   165k|        if (!ossl_c2i_ASN1_BIT_STRING((ASN1_BIT_STRING **)pval, &cont, len))
  ------------------
  |  Branch (918:13): [True: 0, False: 165k]
  ------------------
  919|      0|            goto err;
  920|   165k|        break;
  921|       |
  922|   165k|    case V_ASN1_INTEGER:
  ------------------
  |  |   66|  82.7k|#define V_ASN1_INTEGER 2
  ------------------
  |  Branch (922:5): [True: 82.7k, False: 1.58M]
  ------------------
  923|  82.7k|    case V_ASN1_ENUMERATED:
  ------------------
  |  |   74|  82.7k|#define V_ASN1_ENUMERATED 10
  ------------------
  |  Branch (923:5): [True: 0, False: 1.66M]
  ------------------
  924|  82.7k|        tint = (ASN1_INTEGER **)pval;
  925|  82.7k|        if (!ossl_c2i_ASN1_INTEGER(tint, &cont, len))
  ------------------
  |  Branch (925:13): [True: 0, False: 82.7k]
  ------------------
  926|      0|            goto err;
  927|       |        /* Fixup type to match the expected form */
  928|  82.7k|        (*tint)->type = utype | ((*tint)->type & V_ASN1_NEG);
  ------------------
  |  |   99|  82.7k|#define V_ASN1_NEG 0x100
  ------------------
  929|  82.7k|        break;
  930|       |
  931|   140k|    case V_ASN1_OCTET_STRING:
  ------------------
  |  |   68|   140k|#define V_ASN1_OCTET_STRING 4
  ------------------
  |  Branch (931:5): [True: 140k, False: 1.52M]
  ------------------
  932|   140k|    case V_ASN1_NUMERICSTRING:
  ------------------
  |  |   78|   140k|#define V_ASN1_NUMERICSTRING 18
  ------------------
  |  Branch (932:5): [True: 0, False: 1.66M]
  ------------------
  933|   353k|    case V_ASN1_PRINTABLESTRING:
  ------------------
  |  |   79|   353k|#define V_ASN1_PRINTABLESTRING 19
  ------------------
  |  Branch (933:5): [True: 212k, False: 1.45M]
  ------------------
  934|   353k|    case V_ASN1_T61STRING:
  ------------------
  |  |   80|   353k|#define V_ASN1_T61STRING 20
  ------------------
  |  Branch (934:5): [True: 0, False: 1.66M]
  ------------------
  935|   353k|    case V_ASN1_VIDEOTEXSTRING:
  ------------------
  |  |   82|   353k|#define V_ASN1_VIDEOTEXSTRING 21
  ------------------
  |  Branch (935:5): [True: 0, False: 1.66M]
  ------------------
  936|   354k|    case V_ASN1_IA5STRING:
  ------------------
  |  |   83|   354k|#define V_ASN1_IA5STRING 22
  ------------------
  |  Branch (936:5): [True: 684, False: 1.66M]
  ------------------
  937|   436k|    case V_ASN1_UTCTIME:
  ------------------
  |  |   84|   436k|#define V_ASN1_UTCTIME 23
  ------------------
  |  Branch (937:5): [True: 82.0k, False: 1.58M]
  ------------------
  938|   437k|    case V_ASN1_GENERALIZEDTIME:
  ------------------
  |  |   85|   437k|#define V_ASN1_GENERALIZEDTIME 24
  ------------------
  |  Branch (938:5): [True: 684, False: 1.66M]
  ------------------
  939|   437k|    case V_ASN1_GRAPHICSTRING:
  ------------------
  |  |   86|   437k|#define V_ASN1_GRAPHICSTRING 25
  ------------------
  |  Branch (939:5): [True: 0, False: 1.66M]
  ------------------
  940|   437k|    case V_ASN1_VISIBLESTRING:
  ------------------
  |  |   88|   437k|#define V_ASN1_VISIBLESTRING 26 /* alias */
  ------------------
  |  Branch (940:5): [True: 0, False: 1.66M]
  ------------------
  941|   437k|    case V_ASN1_GENERALSTRING:
  ------------------
  |  |   89|   437k|#define V_ASN1_GENERALSTRING 27
  ------------------
  |  Branch (941:5): [True: 0, False: 1.66M]
  ------------------
  942|   437k|    case V_ASN1_UNIVERSALSTRING:
  ------------------
  |  |   90|   437k|#define V_ASN1_UNIVERSALSTRING 28
  ------------------
  |  Branch (942:5): [True: 0, False: 1.66M]
  ------------------
  943|   437k|    case V_ASN1_BMPSTRING:
  ------------------
  |  |   91|   437k|#define V_ASN1_BMPSTRING 30
  ------------------
  |  Branch (943:5): [True: 0, False: 1.66M]
  ------------------
  944|   516k|    case V_ASN1_UTF8STRING:
  ------------------
  |  |   75|   516k|#define V_ASN1_UTF8STRING 12
  ------------------
  |  Branch (944:5): [True: 79.3k, False: 1.58M]
  ------------------
  945|   516k|    case V_ASN1_OTHER:
  ------------------
  |  |   59|   516k|#define V_ASN1_OTHER -3 /* used in ASN1_TYPE */
  ------------------
  |  Branch (945:5): [True: 0, False: 1.66M]
  ------------------
  946|   516k|    case V_ASN1_SET:
  ------------------
  |  |   77|   516k|#define V_ASN1_SET 17
  ------------------
  |  Branch (946:5): [True: 0, False: 1.66M]
  ------------------
  947|   516k|    case V_ASN1_SEQUENCE:
  ------------------
  |  |   76|   516k|#define V_ASN1_SEQUENCE 16
  ------------------
  |  Branch (947:5): [True: 0, False: 1.66M]
  ------------------
  948|   516k|    default:
  ------------------
  |  Branch (948:5): [True: 0, False: 1.66M]
  ------------------
  949|   516k|        if (len != (long)ilen) {
  ------------------
  |  Branch (949:13): [True: 0, False: 516k]
  ------------------
  950|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_LONG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  951|      0|            goto err;
  952|      0|        }
  953|   516k|        if (utype == V_ASN1_BMPSTRING && (len & 1)) {
  ------------------
  |  |   91|  1.03M|#define V_ASN1_BMPSTRING 30
  ------------------
  |  Branch (953:13): [True: 0, False: 516k]
  |  Branch (953:42): [True: 0, False: 0]
  ------------------
  954|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_BMPSTRING_IS_WRONG_LENGTH);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  955|      0|            goto err;
  956|      0|        }
  957|   516k|        if (utype == V_ASN1_UNIVERSALSTRING && (len & 3)) {
  ------------------
  |  |   90|  1.03M|#define V_ASN1_UNIVERSALSTRING 28
  ------------------
  |  Branch (957:13): [True: 0, False: 516k]
  |  Branch (957:48): [True: 0, False: 0]
  ------------------
  958|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_UNIVERSALSTRING_IS_WRONG_LENGTH);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  959|      0|            goto err;
  960|      0|        }
  961|   516k|        if (utype == V_ASN1_GENERALIZEDTIME && (len < 15)) {
  ------------------
  |  |   85|  1.03M|#define V_ASN1_GENERALIZEDTIME 24
  ------------------
  |  Branch (961:13): [True: 684, False: 515k]
  |  Branch (961:48): [True: 0, False: 684]
  ------------------
  962|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_GENERALIZEDTIME_IS_TOO_SHORT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  963|      0|            goto err;
  964|      0|        }
  965|   516k|        if (utype == V_ASN1_UTCTIME && (len < 13)) {
  ------------------
  |  |   84|  1.03M|#define V_ASN1_UTCTIME 23
  ------------------
  |  Branch (965:13): [True: 82.0k, False: 434k]
  |  Branch (965:40): [True: 0, False: 82.0k]
  ------------------
  966|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_UTCTIME_IS_TOO_SHORT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  967|      0|            goto err;
  968|      0|        }
  969|       |        /* All based on ASN1_STRING and handled the same */
  970|   516k|        if (*pval == NULL) {
  ------------------
  |  Branch (970:13): [True: 0, False: 516k]
  ------------------
  971|      0|            stmp = ASN1_STRING_type_new(utype);
  972|      0|            if (stmp == NULL) {
  ------------------
  |  Branch (972:17): [True: 0, False: 0]
  ------------------
  973|      0|                ERR_raise(ERR_LIB_ASN1, ERR_R_ASN1_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  974|      0|                goto err;
  975|      0|            }
  976|      0|            *pval = (ASN1_VALUE *)stmp;
  977|   516k|        } else {
  978|   516k|            stmp = (ASN1_STRING *)*pval;
  979|   516k|            stmp->type = utype;
  980|   516k|        }
  981|       |        /* If we've already allocated a buffer use it */
  982|   516k|        if (*free_cont) {
  ------------------
  |  Branch (982:13): [True: 0, False: 516k]
  ------------------
  983|      0|            ASN1_STRING_set0(stmp, (unsigned char *)cont /* UGLY CAST! */, ilen);
  984|      0|            *free_cont = 0;
  985|   516k|        } else {
  986|   516k|            if (!ASN1_STRING_set(stmp, cont, ilen)) {
  ------------------
  |  Branch (986:17): [True: 0, False: 516k]
  ------------------
  987|      0|                ERR_raise(ERR_LIB_ASN1, ERR_R_ASN1_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  988|      0|                ASN1_STRING_free(stmp);
  989|      0|                *pval = NULL;
  990|      0|                goto err;
  991|      0|            }
  992|   516k|        }
  993|   516k|        break;
  994|  1.66M|    }
  995|       |    /* If ASN1_ANY and NULL type fix up value */
  996|  1.66M|    if (typ && (utype == V_ASN1_NULL))
  ------------------
  |  |   69|   180k|#define V_ASN1_NULL 5
  ------------------
  |  Branch (996:9): [True: 180k, False: 1.48M]
  |  Branch (996:16): [True: 140k, False: 40.0k]
  ------------------
  997|   140k|        typ->value.ptr = NULL;
  998|       |
  999|  1.66M|    ret = 1;
 1000|  1.66M|err:
 1001|  1.66M|    if (!ret) {
  ------------------
  |  Branch (1001:9): [True: 0, False: 1.66M]
  ------------------
 1002|      0|        ASN1_TYPE_free(typ);
 1003|      0|        if (opval)
  ------------------
  |  Branch (1003:13): [True: 0, False: 0]
  ------------------
 1004|      0|            *opval = NULL;
 1005|      0|    }
 1006|  1.66M|    return ret;
 1007|  1.66M|}
tasn_dec.c:asn1_check_eoc:
 1163|  3.04M|{
 1164|  3.04M|    const unsigned char *p;
 1165|       |
 1166|  3.04M|    if (len < 2)
  ------------------
  |  Branch (1166:9): [True: 0, False: 3.04M]
  ------------------
 1167|      0|        return 0;
 1168|  3.04M|    p = *in;
 1169|  3.04M|    if (p[0] == '\0' && p[1] == '\0') {
  ------------------
  |  Branch (1169:9): [True: 0, False: 3.04M]
  |  Branch (1169:25): [True: 0, False: 0]
  ------------------
 1170|      0|        *in += 2;
 1171|      0|        return 1;
 1172|      0|    }
 1173|  3.04M|    return 0;
 1174|  3.04M|}
tasn_dec.c:asn1_check_tlen:
 1187|  3.83M|{
 1188|  3.83M|    int i;
 1189|  3.83M|    int ptag, pclass;
 1190|  3.83M|    long plen;
 1191|  3.83M|    const unsigned char *p, *q;
 1192|  3.83M|    p = *in;
 1193|  3.83M|    q = p;
 1194|       |
 1195|  3.83M|    if (len <= 0) {
  ------------------
  |  Branch (1195:9): [True: 0, False: 3.83M]
  ------------------
 1196|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_SMALL);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1197|      0|        goto err;
 1198|      0|    }
 1199|  3.83M|    if (ctx != NULL && ctx->valid) {
  ------------------
  |  Branch (1199:9): [True: 3.83M, False: 0]
  |  Branch (1199:24): [True: 697k, False: 3.13M]
  ------------------
 1200|   697k|        i = ctx->ret;
 1201|   697k|        plen = ctx->plen;
 1202|   697k|        pclass = ctx->pclass;
 1203|   697k|        ptag = ctx->ptag;
 1204|   697k|        p += ctx->hdrlen;
 1205|  3.13M|    } else {
 1206|  3.13M|        i = ASN1_get_object(&p, &plen, &ptag, &pclass, len);
 1207|  3.13M|        if (ctx != NULL) {
  ------------------
  |  Branch (1207:13): [True: 3.13M, False: 0]
  ------------------
 1208|  3.13M|            ctx->ret = i;
 1209|  3.13M|            ctx->plen = plen;
 1210|  3.13M|            ctx->pclass = pclass;
 1211|  3.13M|            ctx->ptag = ptag;
 1212|  3.13M|            ctx->hdrlen = (int)(p - q);
 1213|  3.13M|            ctx->valid = 1;
 1214|       |            /*
 1215|       |             * If definite length, and no error, length + header can't exceed
 1216|       |             * total amount of data available.
 1217|       |             */
 1218|  3.13M|            if ((i & 0x81) == 0 && (plen + ctx->hdrlen) > len) {
  ------------------
  |  Branch (1218:17): [True: 3.13M, False: 0]
  |  Branch (1218:36): [True: 0, False: 3.13M]
  ------------------
 1219|      0|                ERR_raise(ERR_LIB_ASN1, ASN1_R_TOO_LONG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1220|      0|                goto err;
 1221|      0|            }
 1222|  3.13M|        }
 1223|  3.13M|    }
 1224|       |
 1225|  3.83M|    if ((i & 0x80) != 0) {
  ------------------
  |  Branch (1225:9): [True: 0, False: 3.83M]
  ------------------
 1226|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_BAD_OBJECT_HEADER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1227|      0|        goto err;
 1228|      0|    }
 1229|  3.83M|    if (exptag >= 0) {
  ------------------
  |  Branch (1229:9): [True: 3.28M, False: 555k]
  ------------------
 1230|  3.28M|        if (exptag != ptag || expclass != pclass) {
  ------------------
  |  Branch (1230:13): [True: 141k, False: 3.13M]
  |  Branch (1230:31): [True: 0, False: 3.13M]
  ------------------
 1231|       |            /*
 1232|       |             * If type is OPTIONAL, not an error: indicate missing type.
 1233|       |             */
 1234|   141k|            if (opt != 0)
  ------------------
  |  Branch (1234:17): [True: 141k, False: 0]
  ------------------
 1235|   141k|                return -1;
 1236|   141k|            ERR_raise(ERR_LIB_ASN1, ASN1_R_WRONG_TAG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1237|      0|            goto err;
 1238|   141k|        }
 1239|       |        /*
 1240|       |         * We have a tag and class match: assume we are going to do something
 1241|       |         * with it
 1242|       |         */
 1243|  3.13M|        asn1_tlc_clear(ctx);
  ------------------
  |  |  115|  3.13M|    do {                    \
  |  |  116|  3.13M|        if ((c) != NULL)    \
  |  |  ------------------
  |  |  |  Branch (116:13): [True: 3.13M, False: 0]
  |  |  ------------------
  |  |  117|  3.13M|            (c)->valid = 0; \
  |  |  118|  3.13M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (118:14): [Folded, False: 3.13M]
  |  |  ------------------
  ------------------
 1244|  3.13M|    }
 1245|       |
 1246|  3.69M|    if ((i & 1) != 0)
  ------------------
  |  Branch (1246:9): [True: 0, False: 3.69M]
  ------------------
 1247|      0|        plen = len - (long)(p - q);
 1248|       |
 1249|  3.69M|    if (inf != NULL)
  ------------------
  |  Branch (1249:9): [True: 3.13M, False: 555k]
  ------------------
 1250|  3.13M|        *inf = i & 1;
 1251|       |
 1252|  3.69M|    if (cst != NULL)
  ------------------
  |  Branch (1252:9): [True: 2.72M, False: 972k]
  ------------------
 1253|  2.72M|        *cst = i & V_ASN1_CONSTRUCTED;
  ------------------
  |  |   54|  2.72M|#define V_ASN1_CONSTRUCTED 0x20
  ------------------
 1254|       |
 1255|  3.69M|    if (olen != NULL)
  ------------------
  |  Branch (1255:9): [True: 3.13M, False: 555k]
  ------------------
 1256|  3.13M|        *olen = plen;
 1257|       |
 1258|  3.69M|    if (oclass != NULL)
  ------------------
  |  Branch (1258:9): [True: 555k, False: 3.13M]
  ------------------
 1259|   555k|        *oclass = pclass;
 1260|       |
 1261|  3.69M|    if (otag != NULL)
  ------------------
  |  Branch (1261:9): [True: 555k, False: 3.13M]
  ------------------
 1262|   555k|        *otag = ptag;
 1263|       |
 1264|  3.69M|    *in = p;
 1265|  3.69M|    return 1;
 1266|       |
 1267|      0|err:
 1268|       |    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]
  |  |  ------------------
  ------------------
 1269|      0|    return 0;
 1270|  3.83M|}

ASN1_item_ex_i2d:
   83|  3.80M|{
   84|  3.80M|    const ASN1_TEMPLATE *tt = NULL;
   85|  3.80M|    int i, seqcontlen, seqlen, ndef = 1;
   86|  3.80M|    const ASN1_EXTERN_FUNCS *ef;
   87|  3.80M|    const ASN1_AUX *aux = it->funcs;
   88|  3.80M|    ASN1_aux_const_cb *asn1_cb = NULL;
   89|       |
   90|  3.80M|    if ((it->itype != ASN1_ITYPE_PRIMITIVE) && *pval == NULL)
  ------------------
  |  |   82|  3.80M|#define ASN1_ITYPE_PRIMITIVE 0x0
  ------------------
  |  Branch (90:9): [True: 2.04M, False: 1.75M]
  |  Branch (90:48): [True: 0, False: 2.04M]
  ------------------
   91|      0|        return 0;
   92|       |
   93|  3.80M|    if (aux != NULL) {
  ------------------
  |  Branch (93:9): [True: 0, False: 3.80M]
  ------------------
   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|  3.80M|    switch (it->itype) {
   99|       |
  100|  1.75M|    case ASN1_ITYPE_PRIMITIVE:
  ------------------
  |  |   82|  1.75M|#define ASN1_ITYPE_PRIMITIVE 0x0
  ------------------
  |  Branch (100:5): [True: 1.75M, False: 2.04M]
  ------------------
  101|  1.75M|        if (it->templates)
  ------------------
  |  Branch (101:13): [True: 585k, False: 1.17M]
  ------------------
  102|   585k|            return asn1_template_ex_i2d(pval, out, it->templates,
  103|   585k|                tag, aclass);
  104|  1.17M|        return asn1_i2d_ex_primitive(pval, out, it, tag, aclass);
  105|       |
  106|  1.17M|    case ASN1_ITYPE_MSTRING:
  ------------------
  |  |   87|  1.17M|#define ASN1_ITYPE_MSTRING 0x5
  ------------------
  |  Branch (106:5): [True: 1.17M, False: 2.63M]
  ------------------
  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|  1.17M|        if (tag != -1) {
  ------------------
  |  Branch (111:13): [True: 0, False: 1.17M]
  ------------------
  112|      0|            ERR_raise(ERR_LIB_ASN1, ASN1_R_BAD_TEMPLATE);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  113|      0|            return -1;
  114|      0|        }
  115|  1.17M|        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: 3.80M]
  ------------------
  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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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: 3.80M]
  ------------------
  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: 3.80M]
  ------------------
  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|   878k|    case ASN1_ITYPE_SEQUENCE:
  ------------------
  |  |   83|   878k|#define ASN1_ITYPE_SEQUENCE 0x1
  ------------------
  |  Branch (152:5): [True: 878k, False: 2.92M]
  ------------------
  153|   878k|        i = ossl_asn1_enc_restore(&seqcontlen, out, pval, it);
  154|       |        /* An error occurred */
  155|   878k|        if (i < 0)
  ------------------
  |  Branch (155:13): [True: 0, False: 878k]
  ------------------
  156|      0|            return 0;
  157|       |        /* We have a valid cached encoding... */
  158|   878k|        if (i > 0)
  ------------------
  |  Branch (158:13): [True: 0, False: 878k]
  ------------------
  159|      0|            return seqcontlen;
  160|       |        /* Otherwise carry on */
  161|   878k|        seqcontlen = 0;
  162|       |        /* If no IMPLICIT tagging set to SEQUENCE, UNIVERSAL */
  163|   878k|        if (tag == -1) {
  ------------------
  |  Branch (163:13): [True: 878k, False: 0]
  ------------------
  164|   878k|            tag = V_ASN1_SEQUENCE;
  ------------------
  |  |   76|   878k|#define V_ASN1_SEQUENCE 16
  ------------------
  165|       |            /* Retain any other flags in aclass */
  166|   878k|            aclass = (aclass & ~ASN1_TFLG_TAG_CLASS)
  ------------------
  |  |  564|   878k|#define ASN1_TFLG_TAG_CLASS (0x3 << 6)
  ------------------
  167|   878k|                | V_ASN1_UNIVERSAL;
  ------------------
  |  |   49|   878k|#define V_ASN1_UNIVERSAL 0x00
  ------------------
  168|   878k|        }
  169|   878k|        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: 878k]
  |  Branch (169:24): [True: 0, False: 0]
  ------------------
  170|      0|            return 0;
  171|       |        /* First work out sequence content length */
  172|  2.63M|        for (i = 0, tt = it->templates; i < it->tcount; tt++, i++) {
  ------------------
  |  Branch (172:41): [True: 1.75M, False: 878k]
  ------------------
  173|  1.75M|            const ASN1_TEMPLATE *seqtt;
  174|  1.75M|            const ASN1_VALUE **pseqval;
  175|  1.75M|            int tmplen;
  176|  1.75M|            seqtt = ossl_asn1_do_adb(*pval, tt, 1);
  177|  1.75M|            if (!seqtt)
  ------------------
  |  Branch (177:17): [True: 0, False: 1.75M]
  ------------------
  178|      0|                return 0;
  179|  1.75M|            pseqval = ossl_asn1_get_const_field_ptr(pval, seqtt);
  180|  1.75M|            tmplen = asn1_template_ex_i2d(pseqval, NULL, seqtt, -1, aclass);
  181|  1.75M|            if (tmplen == -1 || (tmplen > INT_MAX - seqcontlen))
  ------------------
  |  Branch (181:17): [True: 0, False: 1.75M]
  |  Branch (181:33): [True: 0, False: 1.75M]
  ------------------
  182|      0|                return -1;
  183|  1.75M|            seqcontlen += tmplen;
  184|  1.75M|        }
  185|       |
  186|   878k|        seqlen = ASN1_object_size(ndef, seqcontlen, tag);
  187|   878k|        if (!out || seqlen == -1)
  ------------------
  |  Branch (187:13): [True: 585k, False: 292k]
  |  Branch (187:21): [True: 0, False: 292k]
  ------------------
  188|   585k|            return seqlen;
  189|       |        /* Output SEQUENCE header */
  190|   292k|        ASN1_put_object(out, ndef, seqcontlen, tag, aclass);
  191|   878k|        for (i = 0, tt = it->templates; i < it->tcount; tt++, i++) {
  ------------------
  |  Branch (191:41): [True: 585k, False: 292k]
  ------------------
  192|   585k|            const ASN1_TEMPLATE *seqtt;
  193|   585k|            const ASN1_VALUE **pseqval;
  194|   585k|            seqtt = ossl_asn1_do_adb(*pval, tt, 1);
  195|   585k|            if (!seqtt)
  ------------------
  |  Branch (195:17): [True: 0, False: 585k]
  ------------------
  196|      0|                return 0;
  197|   585k|            pseqval = ossl_asn1_get_const_field_ptr(pval, seqtt);
  198|       |            /* FIXME: check for errors in enhanced version */
  199|   585k|            asn1_template_ex_i2d(pseqval, out, seqtt, -1, aclass);
  200|   585k|        }
  201|   292k|        if (ndef == 2)
  ------------------
  |  Branch (201:13): [True: 0, False: 292k]
  ------------------
  202|      0|            ASN1_put_eoc(out);
  203|   292k|        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: 292k]
  |  Branch (203:24): [True: 0, False: 0]
  ------------------
  204|      0|            return 0;
  205|   292k|        return seqlen;
  206|       |
  207|      0|    default:
  ------------------
  |  Branch (207:5): [True: 0, False: 3.80M]
  ------------------
  208|      0|        return 0;
  209|  3.80M|    }
  210|      0|    return 0;
  211|  3.80M|}
tasn_enc.c:asn1_template_ex_i2d:
  215|  2.92M|{
  216|  2.92M|    const int flags = tt->flags;
  217|  2.92M|    int i, ret, ttag, tclass, ndef, len;
  218|  2.92M|    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.92M|    if (flags & ASN1_TFLG_EMBED) {
  ------------------
  |  |  586|  2.92M|#define ASN1_TFLG_EMBED (0x1 << 12)
  ------------------
  |  Branch (224:9): [True: 0, False: 2.92M]
  ------------------
  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.92M|    if (flags & ASN1_TFLG_TAG_MASK) {
  ------------------
  |  |  541|  2.92M|#define ASN1_TFLG_TAG_MASK (0x3 << 3)
  ------------------
  |  Branch (235:9): [True: 0, False: 2.92M]
  ------------------
  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.92M|    } else if (tag != -1) {
  ------------------
  |  Branch (243:16): [True: 0, False: 2.92M]
  ------------------
  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.92M|    } else {
  248|  2.92M|        ttag = -1;
  249|  2.92M|        tclass = 0;
  250|  2.92M|    }
  251|       |    /*
  252|       |     * Remove any class mask from iflag.
  253|       |     */
  254|  2.92M|    iclass &= ~ASN1_TFLG_TAG_CLASS;
  ------------------
  |  |  564|  2.92M|#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.92M|    if ((flags & ASN1_TFLG_NDEF) && (iclass & ASN1_TFLG_NDEF))
  ------------------
  |  |  583|  2.92M|#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.92M]
  |  Branch (262:37): [True: 0, False: 0]
  ------------------
  263|      0|        ndef = 2;
  264|  2.92M|    else
  265|  2.92M|        ndef = 1;
  266|       |
  267|  2.92M|    if (flags & ASN1_TFLG_SK_MASK) {
  ------------------
  |  |  528|  2.92M|#define ASN1_TFLG_SK_MASK (0x3 << 1)
  ------------------
  |  Branch (267:9): [True: 585k, False: 2.34M]
  ------------------
  268|       |        /* SET OF, SEQUENCE OF */
  269|   585k|        STACK_OF(const_ASN1_VALUE) *sk = (STACK_OF(const_ASN1_VALUE) *)*pval;
  ------------------
  |  |   33|   585k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  270|   585k|        int isset, sktag, skaclass;
  271|   585k|        int skcontlen, sklen;
  272|   585k|        const ASN1_VALUE *skitem;
  273|       |
  274|   585k|        if (*pval == NULL)
  ------------------
  |  Branch (274:13): [True: 0, False: 585k]
  ------------------
  275|      0|            return 0;
  276|       |
  277|   585k|        if (flags & ASN1_TFLG_SET_OF) {
  ------------------
  |  |  515|   585k|#define ASN1_TFLG_SET_OF (0x1 << 1)
  ------------------
  |  Branch (277:13): [True: 585k, False: 0]
  ------------------
  278|   585k|            isset = 1;
  279|       |            /* 2 means we reorder */
  280|   585k|            if (flags & ASN1_TFLG_SEQUENCE_OF)
  ------------------
  |  |  518|   585k|#define ASN1_TFLG_SEQUENCE_OF (0x2 << 1)
  ------------------
  |  Branch (280:17): [True: 0, False: 585k]
  ------------------
  281|      0|                isset = 2;
  282|   585k|        } else
  283|      0|            isset = 0;
  284|       |
  285|       |        /*
  286|       |         * Work out inner tag value: if EXPLICIT or no tagging use underlying
  287|       |         * type.
  288|       |         */
  289|   585k|        if ((ttag != -1) && !(flags & ASN1_TFLG_EXPTAG)) {
  ------------------
  |  |  539|      0|#define ASN1_TFLG_EXPTAG (0x2 << 3)
  ------------------
  |  Branch (289:13): [True: 0, False: 585k]
  |  Branch (289:29): [True: 0, False: 0]
  ------------------
  290|      0|            sktag = ttag;
  291|      0|            skaclass = tclass;
  292|   585k|        } else {
  293|   585k|            skaclass = V_ASN1_UNIVERSAL;
  ------------------
  |  |   49|   585k|#define V_ASN1_UNIVERSAL 0x00
  ------------------
  294|   585k|            if (isset)
  ------------------
  |  Branch (294:17): [True: 585k, False: 0]
  ------------------
  295|   585k|                sktag = V_ASN1_SET;
  ------------------
  |  |   77|   585k|#define V_ASN1_SET 17
  ------------------
  296|      0|            else
  297|      0|                sktag = V_ASN1_SEQUENCE;
  ------------------
  |  |   76|      0|#define V_ASN1_SEQUENCE 16
  ------------------
  298|   585k|        }
  299|       |
  300|       |        /* Determine total length of items */
  301|   585k|        skcontlen = 0;
  302|  1.17M|        for (i = 0; i < sk_const_ASN1_VALUE_num(sk); i++) {
  ------------------
  |  Branch (302:21): [True: 585k, False: 585k]
  ------------------
  303|   585k|            skitem = sk_const_ASN1_VALUE_value(sk, i);
  304|   585k|            len = ASN1_item_ex_i2d(&skitem, NULL, ASN1_ITEM_ptr(tt->item),
  ------------------
  |  |  394|   585k|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  305|   585k|                -1, iclass);
  306|   585k|            if (len == -1 || (skcontlen > INT_MAX - len))
  ------------------
  |  Branch (306:17): [True: 0, False: 585k]
  |  Branch (306:30): [True: 0, False: 585k]
  ------------------
  307|      0|                return -1;
  308|   585k|            if (len == 0 && (tt->flags & ASN1_TFLG_OPTIONAL) == 0) {
  ------------------
  |  |  512|      0|#define ASN1_TFLG_OPTIONAL (0x1)
  ------------------
  |  Branch (308:17): [True: 0, False: 585k]
  |  Branch (308:29): [True: 0, False: 0]
  ------------------
  309|      0|                ERR_raise(ERR_LIB_ASN1, ASN1_R_ILLEGAL_ZERO_CONTENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  310|      0|                return -1;
  311|      0|            }
  312|   585k|            skcontlen += len;
  313|   585k|        }
  314|   585k|        sklen = ASN1_object_size(ndef, skcontlen, sktag);
  315|   585k|        if (sklen == -1)
  ------------------
  |  Branch (315:13): [True: 0, False: 585k]
  ------------------
  316|      0|            return -1;
  317|       |        /* If EXPLICIT need length of surrounding tag */
  318|   585k|        if (flags & ASN1_TFLG_EXPTAG)
  ------------------
  |  |  539|   585k|#define ASN1_TFLG_EXPTAG (0x2 << 3)
  ------------------
  |  Branch (318:13): [True: 0, False: 585k]
  ------------------
  319|      0|            ret = ASN1_object_size(ndef, sklen, ttag);
  320|   585k|        else
  321|   585k|            ret = sklen;
  322|       |
  323|   585k|        if (!out || ret == -1)
  ------------------
  |  Branch (323:13): [True: 292k, False: 292k]
  |  Branch (323:21): [True: 0, False: 292k]
  ------------------
  324|   292k|            return ret;
  325|       |
  326|       |        /* Now encode this lot... */
  327|       |        /* EXPLICIT tag */
  328|   292k|        if (flags & ASN1_TFLG_EXPTAG)
  ------------------
  |  |  539|   292k|#define ASN1_TFLG_EXPTAG (0x2 << 3)
  ------------------
  |  Branch (328:13): [True: 0, False: 292k]
  ------------------
  329|      0|            ASN1_put_object(out, ndef, sklen, ttag, tclass);
  330|       |        /* SET or SEQUENCE and IMPLICIT tag */
  331|   292k|        ASN1_put_object(out, ndef, skcontlen, sktag, skaclass);
  332|       |        /* And the stuff itself */
  333|   292k|        asn1_set_seq_out(sk, out, skcontlen, ASN1_ITEM_ptr(tt->item),
  ------------------
  |  |  394|   292k|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  334|   292k|            isset, iclass);
  335|   292k|        if (ndef == 2) {
  ------------------
  |  Branch (335:13): [True: 0, False: 292k]
  ------------------
  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|   292k|        return ret;
  342|   585k|    }
  343|       |
  344|  2.34M|    if (flags & ASN1_TFLG_EXPTAG) {
  ------------------
  |  |  539|  2.34M|#define ASN1_TFLG_EXPTAG (0x2 << 3)
  ------------------
  |  Branch (344:9): [True: 0, False: 2.34M]
  ------------------
  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);
  ------------------
  |  |  394|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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);
  ------------------
  |  |  394|      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|  2.34M|    len = ASN1_item_ex_i2d(pval, out, ASN1_ITEM_ptr(tt->item),
  ------------------
  |  |  394|  2.34M|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  369|  2.34M|        ttag, tclass | iclass);
  370|  2.34M|    if (len == 0 && (tt->flags & ASN1_TFLG_OPTIONAL) == 0) {
  ------------------
  |  |  512|      0|#define ASN1_TFLG_OPTIONAL (0x1)
  ------------------
  |  Branch (370:9): [True: 0, False: 2.34M]
  |  Branch (370:21): [True: 0, False: 0]
  ------------------
  371|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_ILLEGAL_ZERO_CONTENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  372|      0|        return -1;
  373|      0|    }
  374|  2.34M|    return len;
  375|  2.34M|}
tasn_enc.c:asn1_set_seq_out:
  402|   292k|{
  403|   292k|    int i, ret = 0;
  404|   292k|    const ASN1_VALUE *skitem;
  405|   292k|    unsigned char *tmpdat = NULL, *p = NULL;
  406|   292k|    DER_ENC *derlst = NULL, *tder;
  407|       |
  408|   292k|    if (do_sort) {
  ------------------
  |  Branch (408:9): [True: 292k, False: 0]
  ------------------
  409|       |        /* Don't need to sort less than 2 items */
  410|   292k|        if (sk_const_ASN1_VALUE_num(sk) < 2)
  ------------------
  |  Branch (410:13): [True: 292k, False: 0]
  ------------------
  411|   292k|            do_sort = 0;
  412|      0|        else {
  413|      0|            derlst = OPENSSL_malloc(sk_const_ASN1_VALUE_num(sk)
  ------------------
  |  |  107|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  107|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  418|      0|            if (tmpdat == NULL)
  ------------------
  |  Branch (418:17): [True: 0, False: 0]
  ------------------
  419|      0|                goto err;
  420|      0|        }
  421|   292k|    }
  422|       |    /* If not sorting just output each item */
  423|   292k|    if (!do_sort) {
  ------------------
  |  Branch (423:9): [True: 292k, False: 0]
  ------------------
  424|   585k|        for (i = 0; i < sk_const_ASN1_VALUE_num(sk); i++) {
  ------------------
  |  Branch (424:21): [True: 292k, False: 292k]
  ------------------
  425|   292k|            skitem = sk_const_ASN1_VALUE_value(sk, i);
  426|   292k|            ASN1_item_ex_i2d(&skitem, out, item, -1, iclass);
  427|   292k|        }
  428|   292k|        return 1;
  429|   292k|    }
  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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  457|      0|    OPENSSL_free(tmpdat);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  458|      0|    return ret;
  459|      0|}
tasn_enc.c:asn1_i2d_ex_primitive:
  463|  2.34M|{
  464|  2.34M|    int len;
  465|  2.34M|    int utype;
  466|  2.34M|    int usetag;
  467|  2.34M|    int ndef = 0;
  468|       |
  469|  2.34M|    utype = it->utype;
  470|       |
  471|       |    /*
  472|       |     * Get length of content octets and maybe find out the underlying type.
  473|       |     */
  474|       |
  475|  2.34M|    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|  2.34M|    if ((utype == V_ASN1_SEQUENCE) || (utype == V_ASN1_SET) || (utype == V_ASN1_OTHER))
  ------------------
  |  |   76|  2.34M|#define V_ASN1_SEQUENCE 16
  ------------------
                  if ((utype == V_ASN1_SEQUENCE) || (utype == V_ASN1_SET) || (utype == V_ASN1_OTHER))
  ------------------
  |  |   77|  2.34M|#define V_ASN1_SET 17
  ------------------
                  if ((utype == V_ASN1_SEQUENCE) || (utype == V_ASN1_SET) || (utype == V_ASN1_OTHER))
  ------------------
  |  |   59|  2.34M|#define V_ASN1_OTHER -3 /* used in ASN1_TYPE */
  ------------------
  |  Branch (482:9): [True: 0, False: 2.34M]
  |  Branch (482:39): [True: 0, False: 2.34M]
  |  Branch (482:64): [True: 0, False: 2.34M]
  ------------------
  483|      0|        usetag = 0;
  484|  2.34M|    else
  485|  2.34M|        usetag = 1;
  486|       |
  487|       |    /* -1 means omit type */
  488|       |
  489|  2.34M|    if (len == -1)
  ------------------
  |  Branch (489:9): [True: 0, False: 2.34M]
  ------------------
  490|      0|        return 0;
  491|       |
  492|       |    /* -2 return is special meaning use ndef */
  493|  2.34M|    if (len == -2) {
  ------------------
  |  Branch (493:9): [True: 0, False: 2.34M]
  ------------------
  494|      0|        ndef = 2;
  495|      0|        len = 0;
  496|      0|    }
  497|       |
  498|       |    /* If not implicitly tagged get tag from underlying type */
  499|  2.34M|    if (tag == -1)
  ------------------
  |  Branch (499:9): [True: 2.34M, False: 0]
  ------------------
  500|  2.34M|        tag = utype;
  501|       |
  502|       |    /* Output tag+length followed by content octets */
  503|  2.34M|    if (out) {
  ------------------
  |  Branch (503:9): [True: 585k, False: 1.75M]
  ------------------
  504|   585k|        if (usetag)
  ------------------
  |  Branch (504:13): [True: 585k, False: 0]
  ------------------
  505|   585k|            ASN1_put_object(out, ndef, len, tag, aclass);
  506|   585k|        asn1_ex_i2c(pval, *out, &utype, it);
  507|   585k|        if (ndef)
  ------------------
  |  Branch (507:13): [True: 0, False: 585k]
  ------------------
  508|      0|            ASN1_put_eoc(out);
  509|   585k|        else
  510|   585k|            *out += len;
  511|   585k|    }
  512|       |
  513|  2.34M|    if (usetag)
  ------------------
  |  Branch (513:9): [True: 2.34M, False: 0]
  ------------------
  514|  2.34M|        return ASN1_object_size(ndef, len, tag);
  515|      0|    return len;
  516|  2.34M|}
tasn_enc.c:asn1_ex_i2c:
  522|  2.92M|{
  523|  2.92M|    ASN1_BOOLEAN *tbool = NULL;
  524|  2.92M|    ASN1_STRING *strtmp;
  525|  2.92M|    ASN1_OBJECT *otmp;
  526|  2.92M|    int utype;
  527|  2.92M|    const unsigned char *cont;
  528|  2.92M|    unsigned char c;
  529|  2.92M|    int len;
  530|  2.92M|    const ASN1_PRIMITIVE_FUNCS *pf;
  531|  2.92M|    pf = it->funcs;
  532|  2.92M|    if (pf && pf->prim_i2c)
  ------------------
  |  Branch (532:9): [True: 0, False: 2.92M]
  |  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.92M|    if ((it->itype != ASN1_ITYPE_PRIMITIVE)
  ------------------
  |  |   82|  2.92M|#define ASN1_ITYPE_PRIMITIVE 0x0
  ------------------
  |  Branch (536:9): [True: 1.46M, False: 1.46M]
  ------------------
  537|  2.92M|        || (it->utype != V_ASN1_BOOLEAN)) {
  ------------------
  |  |   65|  1.46M|#define V_ASN1_BOOLEAN 1
  ------------------
  |  Branch (537:12): [True: 1.46M, False: 0]
  ------------------
  538|  2.92M|        if (*pval == NULL)
  ------------------
  |  Branch (538:13): [True: 0, False: 2.92M]
  ------------------
  539|      0|            return -1;
  540|  2.92M|    }
  541|       |
  542|  2.92M|    if (it->itype == ASN1_ITYPE_MSTRING) {
  ------------------
  |  |   87|  2.92M|#define ASN1_ITYPE_MSTRING 0x5
  ------------------
  |  Branch (542:9): [True: 1.46M, False: 1.46M]
  ------------------
  543|       |        /* If MSTRING type set the underlying type */
  544|  1.46M|        strtmp = (ASN1_STRING *)*pval;
  545|  1.46M|        utype = strtmp->type;
  546|  1.46M|        *putype = utype;
  547|  1.46M|    } else if (it->utype == V_ASN1_ANY) {
  ------------------
  |  |   60|  1.46M|#define V_ASN1_ANY -4 /* used in ASN1 template code */
  ------------------
  |  Branch (547:16): [True: 0, False: 1.46M]
  ------------------
  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.46M|        utype = *putype;
  556|       |
  557|  2.92M|    switch (utype) {
  558|  1.46M|    case V_ASN1_OBJECT:
  ------------------
  |  |   70|  1.46M|#define V_ASN1_OBJECT 6
  ------------------
  |  Branch (558:5): [True: 1.46M, False: 1.46M]
  ------------------
  559|  1.46M|        otmp = (ASN1_OBJECT *)*pval;
  560|  1.46M|        cont = otmp->data;
  561|  1.46M|        len = otmp->length;
  562|  1.46M|        if (cont == NULL || len == 0)
  ------------------
  |  Branch (562:13): [True: 0, False: 1.46M]
  |  Branch (562:29): [True: 0, False: 1.46M]
  ------------------
  563|      0|            return -1;
  564|  1.46M|        break;
  565|       |
  566|  1.46M|    case V_ASN1_UNDEF:
  ------------------
  |  |   62|      0|#define V_ASN1_UNDEF -1
  ------------------
  |  Branch (566:5): [True: 0, False: 2.92M]
  ------------------
  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.92M]
  ------------------
  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.92M]
  ------------------
  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.92M]
  ------------------
  593|      0|        return ossl_i2c_ASN1_BIT_STRING((const 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.92M]
  ------------------
  597|      0|    case V_ASN1_ENUMERATED:
  ------------------
  |  |   74|      0|#define V_ASN1_ENUMERATED 10
  ------------------
  |  Branch (597:5): [True: 0, False: 2.92M]
  ------------------
  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.92M]
  ------------------
  604|      0|    case V_ASN1_NUMERICSTRING:
  ------------------
  |  |   78|      0|#define V_ASN1_NUMERICSTRING 18
  ------------------
  |  Branch (604:5): [True: 0, False: 2.92M]
  ------------------
  605|      0|    case V_ASN1_PRINTABLESTRING:
  ------------------
  |  |   79|      0|#define V_ASN1_PRINTABLESTRING 19
  ------------------
  |  Branch (605:5): [True: 0, False: 2.92M]
  ------------------
  606|      0|    case V_ASN1_T61STRING:
  ------------------
  |  |   80|      0|#define V_ASN1_T61STRING 20
  ------------------
  |  Branch (606:5): [True: 0, False: 2.92M]
  ------------------
  607|      0|    case V_ASN1_VIDEOTEXSTRING:
  ------------------
  |  |   82|      0|#define V_ASN1_VIDEOTEXSTRING 21
  ------------------
  |  Branch (607:5): [True: 0, False: 2.92M]
  ------------------
  608|      0|    case V_ASN1_IA5STRING:
  ------------------
  |  |   83|      0|#define V_ASN1_IA5STRING 22
  ------------------
  |  Branch (608:5): [True: 0, False: 2.92M]
  ------------------
  609|      0|    case V_ASN1_UTCTIME:
  ------------------
  |  |   84|      0|#define V_ASN1_UTCTIME 23
  ------------------
  |  Branch (609:5): [True: 0, False: 2.92M]
  ------------------
  610|      0|    case V_ASN1_GENERALIZEDTIME:
  ------------------
  |  |   85|      0|#define V_ASN1_GENERALIZEDTIME 24
  ------------------
  |  Branch (610:5): [True: 0, False: 2.92M]
  ------------------
  611|      0|    case V_ASN1_GRAPHICSTRING:
  ------------------
  |  |   86|      0|#define V_ASN1_GRAPHICSTRING 25
  ------------------
  |  Branch (611:5): [True: 0, False: 2.92M]
  ------------------
  612|      0|    case V_ASN1_VISIBLESTRING:
  ------------------
  |  |   88|      0|#define V_ASN1_VISIBLESTRING 26 /* alias */
  ------------------
  |  Branch (612:5): [True: 0, False: 2.92M]
  ------------------
  613|      0|    case V_ASN1_GENERALSTRING:
  ------------------
  |  |   89|      0|#define V_ASN1_GENERALSTRING 27
  ------------------
  |  Branch (613:5): [True: 0, False: 2.92M]
  ------------------
  614|      0|    case V_ASN1_UNIVERSALSTRING:
  ------------------
  |  |   90|      0|#define V_ASN1_UNIVERSALSTRING 28
  ------------------
  |  Branch (614:5): [True: 0, False: 2.92M]
  ------------------
  615|      0|    case V_ASN1_BMPSTRING:
  ------------------
  |  |   91|      0|#define V_ASN1_BMPSTRING 30
  ------------------
  |  Branch (615:5): [True: 0, False: 2.92M]
  ------------------
  616|  1.46M|    case V_ASN1_UTF8STRING:
  ------------------
  |  |   75|  1.46M|#define V_ASN1_UTF8STRING 12
  ------------------
  |  Branch (616:5): [True: 1.46M, False: 1.46M]
  ------------------
  617|  1.46M|    case V_ASN1_SEQUENCE:
  ------------------
  |  |   76|  1.46M|#define V_ASN1_SEQUENCE 16
  ------------------
  |  Branch (617:5): [True: 0, False: 2.92M]
  ------------------
  618|  1.46M|    case V_ASN1_SET:
  ------------------
  |  |   77|  1.46M|#define V_ASN1_SET 17
  ------------------
  |  Branch (618:5): [True: 0, False: 2.92M]
  ------------------
  619|  1.46M|    default:
  ------------------
  |  Branch (619:5): [True: 0, False: 2.92M]
  ------------------
  620|       |        /* All based on ASN1_STRING and handled the same */
  621|  1.46M|        strtmp = (ASN1_STRING *)*pval;
  622|       |        /* Special handling for NDEF */
  623|  1.46M|        if ((it->size == ASN1_TFLG_NDEF)
  ------------------
  |  |  583|  1.46M|#define ASN1_TFLG_NDEF (0x1 << 11)
  ------------------
  |  Branch (623:13): [True: 0, False: 1.46M]
  ------------------
  624|      0|            && (strtmp->flags & ASN1_STRING_FLAG_NDEF)) {
  ------------------
  |  |   29|      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.46M|        cont = strtmp->data;
  633|  1.46M|        len = strtmp->length;
  634|       |
  635|  1.46M|        break;
  636|  2.92M|    }
  637|  2.92M|    if (cout && len)
  ------------------
  |  Branch (637:9): [True: 585k, False: 2.34M]
  |  Branch (637:17): [True: 585k, False: 0]
  ------------------
  638|   585k|        memcpy(cout, cont, len);
  639|  2.92M|    return len;
  640|  2.92M|}

ASN1_item_free:
   19|  1.57M|{
   20|  1.57M|    ossl_asn1_item_embed_free(&val, it, 0);
   21|  1.57M|}
ossl_asn1_item_embed_free:
   29|  4.55M|{
   30|  4.55M|    const ASN1_TEMPLATE *tt = NULL, *seqtt;
   31|  4.55M|    const ASN1_EXTERN_FUNCS *ef;
   32|  4.55M|    const ASN1_AUX *aux = it->funcs;
   33|  4.55M|    ASN1_aux_cb *asn1_cb;
   34|  4.55M|    int i;
   35|       |
   36|  4.55M|    if (pval == NULL)
  ------------------
  |  Branch (36:9): [True: 0, False: 4.55M]
  ------------------
   37|      0|        return;
   38|  4.55M|    if ((it->itype != ASN1_ITYPE_PRIMITIVE) && *pval == NULL)
  ------------------
  |  |   82|  4.55M|#define ASN1_ITYPE_PRIMITIVE 0x0
  ------------------
  |  Branch (38:9): [True: 2.55M, False: 2.00M]
  |  Branch (38:48): [True: 576k, False: 1.97M]
  ------------------
   39|   576k|        return;
   40|  3.97M|    if (aux && aux->asn1_cb)
  ------------------
  |  Branch (40:9): [True: 289k, False: 3.68M]
  |  Branch (40:16): [True: 82.7k, False: 206k]
  ------------------
   41|  82.7k|        asn1_cb = aux->asn1_cb;
   42|  3.89M|    else
   43|  3.89M|        asn1_cb = 0;
   44|       |
   45|  3.97M|    switch (it->itype) {
  ------------------
  |  Branch (45:13): [True: 3.97M, False: 0]
  ------------------
   46|       |
   47|  2.00M|    case ASN1_ITYPE_PRIMITIVE:
  ------------------
  |  |   82|  2.00M|#define ASN1_ITYPE_PRIMITIVE 0x0
  ------------------
  |  Branch (47:5): [True: 2.00M, False: 1.97M]
  ------------------
   48|  2.00M|        if (it->templates)
  ------------------
  |  Branch (48:13): [True: 165k, False: 1.83M]
  ------------------
   49|   165k|            ossl_asn1_template_free(pval, it->templates);
   50|  1.83M|        else
   51|  1.83M|            ossl_asn1_primitive_free(pval, it, embed);
   52|  2.00M|        break;
   53|       |
   54|   668k|    case ASN1_ITYPE_MSTRING:
  ------------------
  |  |   87|   668k|#define ASN1_ITYPE_MSTRING 0x5
  ------------------
  |  Branch (54:5): [True: 668k, False: 3.31M]
  ------------------
   55|   668k|        ossl_asn1_primitive_free(pval, it, embed);
   56|   668k|        break;
   57|       |
   58|      0|    case ASN1_ITYPE_CHOICE:
  ------------------
  |  |   84|      0|#define ASN1_ITYPE_CHOICE 0x2
  ------------------
  |  Branch (58:5): [True: 0, False: 3.97M]
  ------------------
   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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   76|      0|            *pval = NULL;
   77|      0|        }
   78|      0|        break;
   79|       |
   80|   165k|    case ASN1_ITYPE_EXTERN:
  ------------------
  |  |   86|   165k|#define ASN1_ITYPE_EXTERN 0x4
  ------------------
  |  Branch (80:5): [True: 165k, False: 3.81M]
  ------------------
   81|   165k|        ef = it->funcs;
   82|   165k|        if (ef && ef->asn1_ex_free)
  ------------------
  |  Branch (82:13): [True: 165k, False: 0]
  |  Branch (82:19): [True: 165k, False: 0]
  ------------------
   83|   165k|            ef->asn1_ex_free(pval, it);
   84|   165k|        break;
   85|       |
   86|      0|    case ASN1_ITYPE_NDEF_SEQUENCE:
  ------------------
  |  |   88|      0|#define ASN1_ITYPE_NDEF_SEQUENCE 0x6
  ------------------
  |  Branch (86:5): [True: 0, False: 3.97M]
  ------------------
   87|  1.14M|    case ASN1_ITYPE_SEQUENCE:
  ------------------
  |  |   83|  1.14M|#define ASN1_ITYPE_SEQUENCE 0x1
  ------------------
  |  Branch (87:5): [True: 1.14M, False: 2.83M]
  ------------------
   88|  1.14M|        if (ossl_asn1_do_lock(pval, -1, it) != 0) {
  ------------------
  |  Branch (88:13): [True: 41.3k, False: 1.09M]
  ------------------
   89|       |            /* if error or ref-counter > 0 */
   90|  41.3k|            OPENSSL_assert(embed == 0);
  ------------------
  |  |  477|  41.3k|    (void)((e) ? 0 : (OPENSSL_die("assertion failed: " #e, OPENSSL_FILE, OPENSSL_LINE), 1))
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   (void)((e) ? 0 : (OPENSSL_die("assertion failed: " #e, OPENSSL_FILE, OPENSSL_LINE), 1))
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |  |  Branch (477:12): [True: 41.3k, False: 0]
  |  |  ------------------
  ------------------
   91|  41.3k|            *pval = NULL;
   92|  41.3k|            return;
   93|  41.3k|        }
   94|  1.09M|        if (asn1_cb) {
  ------------------
  |  Branch (94:13): [True: 41.3k, False: 1.05M]
  ------------------
   95|  41.3k|            i = asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL);
  ------------------
  |  |  733|  41.3k|#define ASN1_OP_FREE_PRE 2
  ------------------
   96|  41.3k|            if (i == 2)
  ------------------
  |  Branch (96:17): [True: 0, False: 41.3k]
  ------------------
   97|      0|                return;
   98|  41.3k|        }
   99|  1.09M|        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|  1.09M|        tt = it->templates + it->tcount;
  106|  3.80M|        for (i = 0; i < it->tcount; i++) {
  ------------------
  |  Branch (106:21): [True: 2.71M, False: 1.09M]
  ------------------
  107|  2.71M|            ASN1_VALUE **pseqval;
  108|       |
  109|  2.71M|            tt--;
  110|  2.71M|            seqtt = ossl_asn1_do_adb(*pval, tt, 0);
  111|  2.71M|            if (!seqtt)
  ------------------
  |  Branch (111:17): [True: 0, False: 2.71M]
  ------------------
  112|      0|                continue;
  113|  2.71M|            pseqval = ossl_asn1_get_field_ptr(pval, seqtt);
  114|  2.71M|            ossl_asn1_template_free(pseqval, seqtt);
  115|  2.71M|        }
  116|  1.09M|        if (asn1_cb)
  ------------------
  |  Branch (116:13): [True: 41.3k, False: 1.05M]
  ------------------
  117|  41.3k|            asn1_cb(ASN1_OP_FREE_POST, pval, it, NULL);
  ------------------
  |  |  734|  41.3k|#define ASN1_OP_FREE_POST 3
  ------------------
  118|  1.09M|        if (embed == 0) {
  ------------------
  |  Branch (118:13): [True: 933k, False: 165k]
  ------------------
  119|   933k|            OPENSSL_free(*pval);
  ------------------
  |  |  132|   933k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  120|       |            *pval = NULL;
  121|   933k|        }
  122|  1.09M|        break;
  123|  3.97M|    }
  124|  3.97M|}
ossl_asn1_template_free:
  127|  3.04M|{
  128|  3.04M|    int embed = tt->flags & ASN1_TFLG_EMBED;
  ------------------
  |  |  586|  3.04M|#define ASN1_TFLG_EMBED (0x1 << 12)
  ------------------
  129|  3.04M|    ASN1_VALUE *tval;
  130|  3.04M|    if (embed) {
  ------------------
  |  Branch (130:9): [True: 389k, False: 2.65M]
  ------------------
  131|   389k|        tval = (ASN1_VALUE *)pval;
  132|   389k|        pval = &tval;
  133|   389k|    }
  134|  3.04M|    if (tt->flags & ASN1_TFLG_SK_MASK) {
  ------------------
  |  |  528|  3.04M|#define ASN1_TFLG_SK_MASK (0x3 << 1)
  ------------------
  |  Branch (134:9): [True: 206k, False: 2.83M]
  ------------------
  135|   206k|        STACK_OF(ASN1_VALUE) *sk = (STACK_OF(ASN1_VALUE) *)*pval;
  ------------------
  |  |   33|   206k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  136|   206k|        int i;
  137|       |
  138|   347k|        for (i = 0; i < sk_ASN1_VALUE_num(sk); i++) {
  ------------------
  |  |  887|   347k|#define sk_ASN1_VALUE_num(sk) OPENSSL_sk_num(ossl_check_const_ASN1_VALUE_sk_type(sk))
  ------------------
  |  Branch (138:21): [True: 140k, False: 206k]
  ------------------
  139|   140k|            ASN1_VALUE *vtmp = sk_ASN1_VALUE_value(sk, i);
  ------------------
  |  |  888|   140k|#define sk_ASN1_VALUE_value(sk, idx) ((ASN1_VALUE *)OPENSSL_sk_value(ossl_check_const_ASN1_VALUE_sk_type(sk), (idx)))
  ------------------
  140|       |
  141|   140k|            ossl_asn1_item_embed_free(&vtmp, ASN1_ITEM_ptr(tt->item), embed);
  ------------------
  |  |  394|   140k|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  142|   140k|        }
  143|   206k|        sk_ASN1_VALUE_free(sk);
  ------------------
  |  |  893|   206k|#define sk_ASN1_VALUE_free(sk) OPENSSL_sk_free(ossl_check_ASN1_VALUE_sk_type(sk))
  ------------------
  144|   206k|        *pval = NULL;
  145|  2.83M|    } else {
  146|  2.83M|        ossl_asn1_item_embed_free(pval, ASN1_ITEM_ptr(tt->item), embed);
  ------------------
  |  |  394|  2.83M|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  147|  2.83M|    }
  148|  3.04M|}
ossl_asn1_primitive_free:
  151|  2.68M|{
  152|  2.68M|    int utype;
  153|       |
  154|       |    /* Special case: if 'it' is a primitive with a free_func, use that. */
  155|  2.68M|    if (it) {
  ------------------
  |  Branch (155:9): [True: 2.50M, False: 180k]
  ------------------
  156|  2.50M|        const ASN1_PRIMITIVE_FUNCS *pf = it->funcs;
  157|       |
  158|  2.50M|        if (embed) {
  ------------------
  |  Branch (158:13): [True: 223k, False: 2.28M]
  ------------------
  159|   223k|            if (pf && pf->prim_clear) {
  ------------------
  |  Branch (159:17): [True: 0, False: 223k]
  |  Branch (159:23): [True: 0, False: 0]
  ------------------
  160|      0|                pf->prim_clear(pval, it);
  161|      0|                return;
  162|      0|            }
  163|  2.28M|        } else if (pf && pf->prim_free) {
  ------------------
  |  Branch (163:20): [True: 0, False: 2.28M]
  |  Branch (163:26): [True: 0, False: 0]
  ------------------
  164|      0|            pf->prim_free(pval, it);
  165|      0|            return;
  166|      0|        }
  167|  2.50M|    }
  168|       |
  169|       |    /* Special case: if 'it' is NULL, free contents of ASN1_TYPE */
  170|  2.68M|    if (!it) {
  ------------------
  |  Branch (170:9): [True: 180k, False: 2.50M]
  ------------------
  171|   180k|        ASN1_TYPE *typ = (ASN1_TYPE *)*pval;
  172|       |
  173|   180k|        utype = typ->type;
  174|   180k|        pval = &typ->value.asn1_value;
  175|   180k|        if (*pval == NULL)
  ------------------
  |  Branch (175:13): [True: 140k, False: 40.0k]
  ------------------
  176|   140k|            return;
  177|  2.50M|    } else if (it->itype == ASN1_ITYPE_MSTRING) {
  ------------------
  |  |   87|  2.50M|#define ASN1_ITYPE_MSTRING 0x5
  ------------------
  |  Branch (177:16): [True: 668k, False: 1.83M]
  ------------------
  178|   668k|        utype = -1;
  179|   668k|        if (*pval == NULL)
  ------------------
  |  Branch (179:13): [True: 0, False: 668k]
  ------------------
  180|      0|            return;
  181|  1.83M|    } else {
  182|  1.83M|        utype = it->utype;
  183|  1.83M|        if ((utype != V_ASN1_BOOLEAN) && *pval == NULL)
  ------------------
  |  |   65|  1.83M|#define V_ASN1_BOOLEAN 1
  ------------------
  |  Branch (183:13): [True: 1.63M, False: 200k]
  |  Branch (183:42): [True: 218k, False: 1.41M]
  ------------------
  184|   218k|            return;
  185|  1.83M|    }
  186|       |
  187|  2.32M|    switch (utype) {
  188|   973k|    case V_ASN1_OBJECT:
  ------------------
  |  |   70|   973k|#define V_ASN1_OBJECT 6
  ------------------
  |  Branch (188:5): [True: 973k, False: 1.35M]
  ------------------
  189|   973k|        ASN1_OBJECT_free((ASN1_OBJECT *)*pval);
  190|   973k|        break;
  191|       |
  192|   200k|    case V_ASN1_BOOLEAN:
  ------------------
  |  |   65|   200k|#define V_ASN1_BOOLEAN 1
  ------------------
  |  Branch (192:5): [True: 200k, False: 2.12M]
  ------------------
  193|   200k|        if (it)
  ------------------
  |  Branch (193:13): [True: 200k, False: 0]
  ------------------
  194|   200k|            *(ASN1_BOOLEAN *)pval = it->size;
  195|      0|        else
  196|      0|            *(ASN1_BOOLEAN *)pval = -1;
  197|   200k|        return;
  198|       |
  199|      0|    case V_ASN1_NULL:
  ------------------
  |  |   69|      0|#define V_ASN1_NULL 5
  ------------------
  |  Branch (199:5): [True: 0, False: 2.32M]
  ------------------
  200|      0|        break;
  201|       |
  202|   180k|    case V_ASN1_ANY:
  ------------------
  |  |   60|   180k|#define V_ASN1_ANY -4 /* used in ASN1 template code */
  ------------------
  |  Branch (202:5): [True: 180k, False: 2.14M]
  ------------------
  203|   180k|        ossl_asn1_primitive_free(pval, NULL, 0);
  204|   180k|        OPENSSL_free(*pval);
  ------------------
  |  |  132|   180k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  205|   180k|        break;
  206|       |
  207|   974k|    default:
  ------------------
  |  Branch (207:5): [True: 974k, False: 1.35M]
  ------------------
  208|   974k|        ossl_asn1_string_embed_free((ASN1_STRING *)*pval, embed);
  209|   974k|        break;
  210|  2.32M|    }
  211|  2.12M|    *pval = NULL;
  212|  2.12M|}

ASN1_item_new:
   30|   555k|{
   31|   555k|    ASN1_VALUE *ret = NULL;
   32|   555k|    if (ASN1_item_ex_new(&ret, it) > 0)
  ------------------
  |  Branch (32:9): [True: 555k, False: 0]
  ------------------
   33|   555k|        return ret;
   34|      0|    return NULL;
   35|   555k|}
ASN1_item_new_ex:
   39|  41.3k|{
   40|  41.3k|    ASN1_VALUE *ret = NULL;
   41|  41.3k|    if (asn1_item_embed_new(&ret, it, 0, libctx, propq) > 0)
  ------------------
  |  Branch (41:9): [True: 41.3k, False: 0]
  ------------------
   42|  41.3k|        return ret;
   43|      0|    return NULL;
   44|  41.3k|}
ossl_asn1_item_ex_new_intern:
   50|   503k|{
   51|   503k|    return asn1_item_embed_new(pval, it, 0, libctx, propq);
   52|   503k|}
ASN1_item_ex_new:
   55|   555k|{
   56|   555k|    return asn1_item_embed_new(pval, it, 0, NULL, NULL);
   57|   555k|}
tasn_new.c:asn1_item_embed_new:
   61|  3.21M|{
   62|  3.21M|    const ASN1_TEMPLATE *tt = NULL;
   63|  3.21M|    const ASN1_EXTERN_FUNCS *ef;
   64|  3.21M|    const ASN1_AUX *aux = it->funcs;
   65|  3.21M|    ASN1_aux_cb *asn1_cb;
   66|  3.21M|    ASN1_VALUE **pseqval;
   67|  3.21M|    int i;
   68|  3.21M|    if (aux && aux->asn1_cb)
  ------------------
  |  Branch (68:9): [True: 234k, False: 2.98M]
  |  Branch (68:16): [True: 69.4k, False: 165k]
  ------------------
   69|  69.4k|        asn1_cb = aux->asn1_cb;
   70|  3.14M|    else
   71|  3.14M|        asn1_cb = 0;
   72|       |
   73|  3.21M|    switch (it->itype) {
  ------------------
  |  Branch (73:13): [True: 3.21M, False: 0]
  ------------------
   74|       |
   75|   124k|    case ASN1_ITYPE_EXTERN:
  ------------------
  |  |   86|   124k|#define ASN1_ITYPE_EXTERN 0x4
  ------------------
  |  Branch (75:5): [True: 124k, False: 3.09M]
  ------------------
   76|   124k|        ef = it->funcs;
   77|   124k|        if (ef != NULL) {
  ------------------
  |  Branch (77:13): [True: 124k, False: 0]
  ------------------
   78|   124k|            if (ef->asn1_ex_new_ex != NULL) {
  ------------------
  |  Branch (78:17): [True: 41.3k, False: 82.7k]
  ------------------
   79|  41.3k|                if (!ef->asn1_ex_new_ex(pval, it, libctx, propq))
  ------------------
  |  Branch (79:21): [True: 0, False: 41.3k]
  ------------------
   80|      0|                    goto asn1err;
   81|  82.7k|            } else if (ef->asn1_ex_new != NULL) {
  ------------------
  |  Branch (81:24): [True: 82.7k, False: 0]
  ------------------
   82|  82.7k|                if (!ef->asn1_ex_new(pval, it))
  ------------------
  |  Branch (82:21): [True: 0, False: 82.7k]
  ------------------
   83|      0|                    goto asn1err;
   84|  82.7k|            }
   85|   124k|        }
   86|   124k|        break;
   87|       |
   88|  1.33M|    case ASN1_ITYPE_PRIMITIVE:
  ------------------
  |  |   82|  1.33M|#define ASN1_ITYPE_PRIMITIVE 0x0
  ------------------
  |  Branch (88:5): [True: 1.33M, False: 1.87M]
  ------------------
   89|  1.33M|        if (it->templates) {
  ------------------
  |  Branch (89:13): [True: 0, False: 1.33M]
  ------------------
   90|      0|            if (!asn1_template_new(pval, it->templates, libctx, propq))
  ------------------
  |  Branch (90:17): [True: 0, False: 0]
  ------------------
   91|      0|                goto asn1err;
   92|  1.33M|        } else if (!asn1_primitive_new(pval, it, embed))
  ------------------
  |  Branch (92:20): [True: 0, False: 1.33M]
  ------------------
   93|      0|            goto asn1err;
   94|  1.33M|        break;
   95|       |
   96|  1.33M|    case ASN1_ITYPE_MSTRING:
  ------------------
  |  |   87|   668k|#define ASN1_ITYPE_MSTRING 0x5
  ------------------
  |  Branch (96:5): [True: 668k, False: 2.54M]
  ------------------
   97|   668k|        if (!asn1_primitive_new(pval, it, embed))
  ------------------
  |  Branch (97:13): [True: 0, False: 668k]
  ------------------
   98|      0|            goto asn1err;
   99|   668k|        break;
  100|       |
  101|   668k|    case ASN1_ITYPE_CHOICE:
  ------------------
  |  |   84|      0|#define ASN1_ITYPE_CHOICE 0x2
  ------------------
  |  Branch (101:5): [True: 0, False: 3.21M]
  ------------------
  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);
  ------------------
  |  |  109|      0|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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: 3.21M]
  ------------------
  123|  1.08M|    case ASN1_ITYPE_SEQUENCE:
  ------------------
  |  |   83|  1.08M|#define ASN1_ITYPE_SEQUENCE 0x1
  ------------------
  |  Branch (123:5): [True: 1.08M, False: 2.12M]
  ------------------
  124|  1.08M|        if (asn1_cb) {
  ------------------
  |  Branch (124:13): [True: 69.4k, False: 1.01M]
  ------------------
  125|  69.4k|            i = asn1_cb(ASN1_OP_NEW_PRE, pval, it, NULL);
  ------------------
  |  |  731|  69.4k|#define ASN1_OP_NEW_PRE 0
  ------------------
  126|  69.4k|            if (!i)
  ------------------
  |  Branch (126:17): [True: 0, False: 69.4k]
  ------------------
  127|      0|                goto auxerr;
  128|  69.4k|            if (i == 2) {
  ------------------
  |  Branch (128:17): [True: 28.0k, False: 41.3k]
  ------------------
  129|  28.0k|                return 1;
  130|  28.0k|            }
  131|  69.4k|        }
  132|  1.05M|        if (embed) {
  ------------------
  |  Branch (132:13): [True: 165k, False: 891k]
  ------------------
  133|   165k|            memset(*pval, 0, it->size);
  134|   891k|        } else {
  135|   891k|            *pval = OPENSSL_zalloc(it->size);
  ------------------
  |  |  109|   891k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  136|   891k|            if (*pval == NULL)
  ------------------
  |  Branch (136:17): [True: 0, False: 891k]
  ------------------
  137|      0|                return 0;
  138|   891k|        }
  139|       |        /* 0 : init. lock */
  140|  1.05M|        if (ossl_asn1_do_lock(pval, 0, it) < 0) {
  ------------------
  |  Branch (140:13): [True: 0, False: 1.05M]
  ------------------
  141|      0|            if (!embed) {
  ------------------
  |  Branch (141:17): [True: 0, False: 0]
  ------------------
  142|      0|                OPENSSL_free(*pval);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  143|      0|                *pval = NULL;
  144|      0|            }
  145|      0|            goto asn1err;
  146|      0|        }
  147|  1.05M|        ossl_asn1_enc_init(pval, it);
  148|  3.68M|        for (i = 0, tt = it->templates; i < it->tcount; tt++, i++) {
  ------------------
  |  Branch (148:41): [True: 2.62M, False: 1.05M]
  ------------------
  149|  2.62M|            pseqval = ossl_asn1_get_field_ptr(pval, tt);
  150|  2.62M|            if (!asn1_template_new(pseqval, tt, libctx, propq))
  ------------------
  |  Branch (150:17): [True: 0, False: 2.62M]
  ------------------
  151|      0|                goto asn1err2;
  152|  2.62M|        }
  153|  1.05M|        if (asn1_cb && !asn1_cb(ASN1_OP_NEW_POST, pval, it, NULL))
  ------------------
  |  |  732|  41.3k|#define ASN1_OP_NEW_POST 1
  ------------------
  |  Branch (153:13): [True: 41.3k, False: 1.01M]
  |  Branch (153:24): [True: 0, False: 41.3k]
  ------------------
  154|      0|            goto auxerr2;
  155|  1.05M|        break;
  156|  3.21M|    }
  157|  3.18M|    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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  169|      0|    return 0;
  170|      0|}
tasn_new.c:asn1_template_new:
  207|  2.62M|{
  208|  2.62M|    const ASN1_ITEM *it = ASN1_ITEM_ptr(tt->item);
  ------------------
  |  |  394|  2.62M|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  209|  2.62M|    int embed = tt->flags & ASN1_TFLG_EMBED;
  ------------------
  |  |  586|  2.62M|#define ASN1_TFLG_EMBED (0x1 << 12)
  ------------------
  210|  2.62M|    ASN1_VALUE *tval;
  211|  2.62M|    int ret;
  212|  2.62M|    if (embed) {
  ------------------
  |  Branch (212:9): [True: 389k, False: 2.23M]
  ------------------
  213|   389k|        tval = (ASN1_VALUE *)pval;
  214|   389k|        pval = &tval;
  215|   389k|    }
  216|  2.62M|    if (tt->flags & ASN1_TFLG_OPTIONAL) {
  ------------------
  |  |  512|  2.62M|#define ASN1_TFLG_OPTIONAL (0x1)
  ------------------
  |  Branch (216:9): [True: 513k, False: 2.11M]
  ------------------
  217|   513k|        asn1_template_clear(pval, tt);
  218|   513k|        return 1;
  219|   513k|    }
  220|       |    /* If ANY DEFINED BY nothing to do */
  221|       |
  222|  2.11M|    if (tt->flags & ASN1_TFLG_ADB_MASK) {
  ------------------
  |  |  572|  2.11M|#define ASN1_TFLG_ADB_MASK (0x3 << 8)
  ------------------
  |  Branch (222:9): [True: 0, False: 2.11M]
  ------------------
  223|      0|        *pval = NULL;
  224|      0|        return 1;
  225|      0|    }
  226|       |    /* If SET OF or SEQUENCE OF, its a STACK */
  227|  2.11M|    if (tt->flags & ASN1_TFLG_SK_MASK) {
  ------------------
  |  |  528|  2.11M|#define ASN1_TFLG_SK_MASK (0x3 << 1)
  ------------------
  |  Branch (227:9): [True: 0, False: 2.11M]
  ------------------
  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_set_thunks(OPENSSL_sk_new_null(), sk_ASN1_VALUE_freefunc_thunk))
  ------------------
  230|      0|        if (!skval) {
  ------------------
  |  Branch (230:13): [True: 0, False: 0]
  ------------------
  231|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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|  2.11M|    ret = asn1_item_embed_new(pval, it, embed, libctx, propq);
  241|  2.11M|done:
  242|  2.11M|    return ret;
  243|  2.11M|}
tasn_new.c:asn1_template_clear:
  246|   513k|{
  247|       |    /* If ADB or STACK just NULL the field */
  248|   513k|    if (tt->flags & (ASN1_TFLG_ADB_MASK | ASN1_TFLG_SK_MASK))
  ------------------
  |  |  572|   513k|#define ASN1_TFLG_ADB_MASK (0x3 << 8)
  ------------------
                  if (tt->flags & (ASN1_TFLG_ADB_MASK | ASN1_TFLG_SK_MASK))
  ------------------
  |  |  528|   513k|#define ASN1_TFLG_SK_MASK (0x3 << 1)
  ------------------
  |  Branch (248:9): [True: 41.3k, False: 471k]
  ------------------
  249|  41.3k|        *pval = NULL;
  250|   471k|    else
  251|   471k|        asn1_item_clear(pval, ASN1_ITEM_ptr(tt->item));
  ------------------
  |  |  394|   471k|#define ASN1_ITEM_ptr(iptr) (iptr())
  ------------------
  252|   513k|}
tasn_new.c:asn1_item_clear:
  173|   471k|{
  174|   471k|    const ASN1_EXTERN_FUNCS *ef;
  175|       |
  176|   471k|    switch (it->itype) {
  ------------------
  |  Branch (176:13): [True: 471k, False: 0]
  ------------------
  177|       |
  178|      0|    case ASN1_ITYPE_EXTERN:
  ------------------
  |  |   86|      0|#define ASN1_ITYPE_EXTERN 0x4
  ------------------
  |  Branch (178:5): [True: 0, False: 471k]
  ------------------
  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|   471k|    case ASN1_ITYPE_PRIMITIVE:
  ------------------
  |  |   82|   471k|#define ASN1_ITYPE_PRIMITIVE 0x0
  ------------------
  |  Branch (186:5): [True: 471k, False: 0]
  ------------------
  187|   471k|        if (it->templates)
  ------------------
  |  Branch (187:13): [True: 0, False: 471k]
  ------------------
  188|      0|            asn1_template_clear(pval, it->templates);
  189|   471k|        else
  190|   471k|            asn1_primitive_clear(pval, it);
  191|   471k|        break;
  192|       |
  193|      0|    case ASN1_ITYPE_MSTRING:
  ------------------
  |  |   87|      0|#define ASN1_ITYPE_MSTRING 0x5
  ------------------
  |  Branch (193:5): [True: 0, False: 471k]
  ------------------
  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: 471k]
  ------------------
  198|      0|    case ASN1_ITYPE_SEQUENCE:
  ------------------
  |  |   83|      0|#define ASN1_ITYPE_SEQUENCE 0x1
  ------------------
  |  Branch (198:5): [True: 0, False: 471k]
  ------------------
  199|      0|    case ASN1_ITYPE_NDEF_SEQUENCE:
  ------------------
  |  |   88|      0|#define ASN1_ITYPE_NDEF_SEQUENCE 0x6
  ------------------
  |  Branch (199:5): [True: 0, False: 471k]
  ------------------
  200|       |        *pval = NULL;
  201|      0|        break;
  202|   471k|    }
  203|   471k|}
tasn_new.c:asn1_primitive_clear:
  326|   471k|{
  327|   471k|    int utype;
  328|   471k|    if (it && it->funcs) {
  ------------------
  |  Branch (328:9): [True: 471k, False: 0]
  |  Branch (328:15): [True: 0, False: 471k]
  ------------------
  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|   471k|    if (!it || (it->itype == ASN1_ITYPE_MSTRING))
  ------------------
  |  |   87|   471k|#define ASN1_ITYPE_MSTRING 0x5
  ------------------
  |  Branch (336:9): [True: 0, False: 471k]
  |  Branch (336:16): [True: 0, False: 471k]
  ------------------
  337|      0|        utype = -1;
  338|   471k|    else
  339|   471k|        utype = it->utype;
  340|   471k|    if (utype == V_ASN1_BOOLEAN)
  ------------------
  |  |   65|   471k|#define V_ASN1_BOOLEAN 1
  ------------------
  |  Branch (340:9): [True: 140k, False: 331k]
  ------------------
  341|   140k|        *(ASN1_BOOLEAN *)pval = it->size;
  342|   331k|    else
  343|   331k|        *pval = NULL;
  344|   471k|}
tasn_new.c:asn1_primitive_new:
  261|  2.00M|{
  262|  2.00M|    ASN1_TYPE *typ;
  263|  2.00M|    ASN1_STRING *str;
  264|  2.00M|    int utype;
  265|       |
  266|  2.00M|    if (!it)
  ------------------
  |  Branch (266:9): [True: 0, False: 2.00M]
  ------------------
  267|      0|        return 0;
  268|       |
  269|  2.00M|    if (it->funcs) {
  ------------------
  |  Branch (269:9): [True: 0, False: 2.00M]
  ------------------
  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|  2.00M|    if (it->itype == ASN1_ITYPE_MSTRING)
  ------------------
  |  |   87|  2.00M|#define ASN1_ITYPE_MSTRING 0x5
  ------------------
  |  Branch (281:9): [True: 668k, False: 1.33M]
  ------------------
  282|   668k|        utype = -1;
  283|  1.33M|    else
  284|  1.33M|        utype = it->utype;
  285|  2.00M|    switch (utype) {
  286|   933k|    case V_ASN1_OBJECT:
  ------------------
  |  |   70|   933k|#define V_ASN1_OBJECT 6
  ------------------
  |  Branch (286:5): [True: 933k, False: 1.07M]
  ------------------
  287|   933k|        *pval = (ASN1_VALUE *)OBJ_nid2obj(NID_undef);
  ------------------
  |  |   18|   933k|#define NID_undef                       0
  ------------------
  288|   933k|        return 1;
  289|       |
  290|      0|    case V_ASN1_BOOLEAN:
  ------------------
  |  |   65|      0|#define V_ASN1_BOOLEAN 1
  ------------------
  |  Branch (290:5): [True: 0, False: 2.00M]
  ------------------
  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: 2.00M]
  ------------------
  295|      0|        *pval = (ASN1_VALUE *)1;
  296|      0|        return 1;
  297|       |
  298|   180k|    case V_ASN1_ANY:
  ------------------
  |  |   60|   180k|#define V_ASN1_ANY -4 /* used in ASN1 template code */
  ------------------
  |  Branch (298:5): [True: 180k, False: 1.82M]
  ------------------
  299|   180k|        if ((typ = OPENSSL_malloc(sizeof(*typ))) == NULL)
  ------------------
  |  |  107|   180k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (299:13): [True: 0, False: 180k]
  ------------------
  300|      0|            return 0;
  301|   180k|        typ->value.ptr = NULL;
  302|   180k|        typ->type = -1;
  303|   180k|        *pval = (ASN1_VALUE *)typ;
  304|   180k|        break;
  305|       |
  306|   891k|    default:
  ------------------
  |  Branch (306:5): [True: 891k, False: 1.11M]
  ------------------
  307|   891k|        if (embed) {
  ------------------
  |  Branch (307:13): [True: 223k, False: 668k]
  ------------------
  308|   223k|            str = *(ASN1_STRING **)pval;
  309|   223k|            memset(str, 0, sizeof(*str));
  310|   223k|            str->type = utype;
  311|   223k|            str->flags = ASN1_STRING_FLAG_EMBED;
  ------------------
  |  |   44|   223k|#define ASN1_STRING_FLAG_EMBED 0x080
  ------------------
  312|   668k|        } else {
  313|   668k|            str = ASN1_STRING_type_new(utype);
  314|   668k|            *pval = (ASN1_VALUE *)str;
  315|   668k|        }
  316|   891k|        if (it->itype == ASN1_ITYPE_MSTRING && str)
  ------------------
  |  |   87|  1.78M|#define ASN1_ITYPE_MSTRING 0x5
  ------------------
  |  Branch (316:13): [True: 668k, False: 223k]
  |  Branch (316:48): [True: 668k, False: 0]
  ------------------
  317|   668k|            str->flags |= ASN1_STRING_FLAG_MSTRING;
  ------------------
  |  |   42|   668k|#define ASN1_STRING_FLAG_MSTRING 0x040
  ------------------
  318|   891k|        break;
  319|  2.00M|    }
  320|  1.07M|    if (*pval)
  ------------------
  |  Branch (320:9): [True: 1.07M, False: 0]
  ------------------
  321|  1.07M|        return 1;
  322|      0|    return 0;
  323|  1.07M|}

ASN1_OCTET_STRING_free:
   26|   165k|    {                                                          \
   27|   165k|        ASN1_STRING_free(x);                                   \
   28|   165k|    }
ASN1_INTEGER_new:
   22|  41.3k|    {                                                          \
   23|  41.3k|        return ASN1_STRING_type_new(V_##sname);                \
  ------------------
  |  |   66|  41.3k|#define V_ASN1_INTEGER 2
  ------------------
   24|  41.3k|    }                                                          \
ASN1_BIT_STRING_new:
   22|   124k|    {                                                          \
   23|   124k|        return ASN1_STRING_type_new(V_##sname);                \
  ------------------
  |  |   67|   124k|#define V_ASN1_BIT_STRING 3
  ------------------
   24|   124k|    }                                                          \
ASN1_BIT_STRING_free:
   26|  82.7k|    {                                                          \
   27|  82.7k|        ASN1_STRING_free(x);                                   \
   28|  82.7k|    }

ossl_asn1_do_lock:
   69|  2.19M|{
   70|  2.19M|    const ASN1_AUX *aux;
   71|  2.19M|    CRYPTO_RWLOCK **lock;
   72|  2.19M|    CRYPTO_REF_COUNT *refcnt;
   73|  2.19M|    int ret = -1;
   74|       |
   75|  2.19M|    if ((it->itype != ASN1_ITYPE_SEQUENCE)
  ------------------
  |  |   83|  2.19M|#define ASN1_ITYPE_SEQUENCE 0x1
  ------------------
  |  Branch (75:9): [True: 0, False: 2.19M]
  ------------------
   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|  2.19M|    aux = it->funcs;
   79|  2.19M|    if (aux == NULL || (aux->flags & ASN1_AFLG_REFCOUNT) == 0)
  ------------------
  |  |  721|   206k|#define ASN1_AFLG_REFCOUNT 1
  ------------------
  |  Branch (79:9): [True: 1.99M, False: 206k]
  |  Branch (79:24): [True: 82.7k, False: 124k]
  ------------------
   80|  2.07M|        return 0;
   81|   124k|    lock = offset2ptr(*pval, aux->ref_lock);
  ------------------
  |  |   23|   124k|#define offset2ptr(addr, offset) (void *)(((char *)addr) + offset)
  ------------------
   82|   124k|    refcnt = offset2ptr(*pval, aux->ref_offset);
  ------------------
  |  |   23|   124k|#define offset2ptr(addr, offset) (void *)(((char *)addr) + offset)
  ------------------
   83|       |
   84|   124k|    switch (op) {
  ------------------
  |  Branch (84:13): [True: 124k, False: 0]
  ------------------
   85|  41.3k|    case 0:
  ------------------
  |  Branch (85:5): [True: 41.3k, False: 82.7k]
  ------------------
   86|  41.3k|        if (!CRYPTO_NEW_REF(refcnt, 1))
  ------------------
  |  Branch (86:13): [True: 0, False: 41.3k]
  ------------------
   87|      0|            return -1;
   88|  41.3k|        *lock = CRYPTO_THREAD_lock_new();
   89|  41.3k|        if (*lock == NULL) {
  ------------------
  |  Branch (89:13): [True: 0, False: 41.3k]
  ------------------
   90|      0|            CRYPTO_FREE_REF(refcnt);
   91|      0|            ERR_raise(ERR_LIB_ASN1, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   92|      0|            return -1;
   93|      0|        }
   94|  41.3k|        ret = 1;
   95|  41.3k|        break;
   96|      0|    case 1:
  ------------------
  |  Branch (96:5): [True: 0, False: 124k]
  ------------------
   97|      0|        if (!CRYPTO_UP_REF(refcnt, &ret))
  ------------------
  |  Branch (97:13): [True: 0, False: 0]
  ------------------
   98|      0|            return -1;
   99|      0|        break;
  100|  82.7k|    case -1:
  ------------------
  |  Branch (100:5): [True: 82.7k, False: 41.3k]
  ------------------
  101|  82.7k|        if (!CRYPTO_DOWN_REF(refcnt, &ret))
  ------------------
  |  Branch (101:13): [True: 0, False: 82.7k]
  ------------------
  102|      0|            return -1; /* failed */
  103|  82.7k|        REF_PRINT_EX(it->sname, ret, (void *)it);
  ------------------
  |  |  299|  82.7k|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  ------------------
  |  |  |  |  295|  82.7k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|  82.7k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  104|  82.7k|        REF_ASSERT_ISNT(ret < 0);
  ------------------
  |  |  293|  82.7k|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 82.7k]
  |  |  ------------------
  ------------------
  105|  82.7k|        if (ret == 0) {
  ------------------
  |  Branch (105:13): [True: 41.3k, False: 41.3k]
  ------------------
  106|  41.3k|            CRYPTO_THREAD_lock_free(*lock);
  107|  41.3k|            *lock = NULL;
  108|  41.3k|            CRYPTO_FREE_REF(refcnt);
  109|  41.3k|        }
  110|  82.7k|        break;
  111|   124k|    }
  112|       |
  113|   124k|    return ret;
  114|   124k|}
ossl_asn1_enc_init:
  142|  1.05M|{
  143|  1.05M|    ASN1_ENCODING *enc = asn1_get_enc_ptr(pval, it);
  144|       |
  145|  1.05M|    if (enc != NULL) {
  ------------------
  |  Branch (145:9): [True: 41.3k, False: 1.01M]
  ------------------
  146|       |        enc->enc = NULL;
  147|  41.3k|        enc->len = 0;
  148|  41.3k|        enc->modified = 1;
  149|  41.3k|    }
  150|  1.05M|}
ossl_asn1_enc_free:
  153|  1.09M|{
  154|  1.09M|    ASN1_ENCODING *enc = asn1_get_enc_ptr(pval, it);
  155|       |
  156|  1.09M|    if (enc != NULL) {
  ------------------
  |  Branch (156:9): [True: 41.3k, False: 1.05M]
  ------------------
  157|  41.3k|        OPENSSL_free(enc->enc);
  ------------------
  |  |  132|  41.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  158|       |        enc->enc = NULL;
  159|  41.3k|        enc->len = 0;
  160|  41.3k|        enc->modified = 1;
  161|  41.3k|    }
  162|  1.09M|}
ossl_asn1_enc_save:
  166|   916k|{
  167|   916k|    ASN1_ENCODING *enc = asn1_get_enc_ptr(pval, it);
  168|       |
  169|   916k|    if (enc == NULL)
  ------------------
  |  Branch (169:9): [True: 875k, False: 41.3k]
  ------------------
  170|   875k|        return 1;
  171|       |
  172|  41.3k|    OPENSSL_free(enc->enc);
  ------------------
  |  |  132|  41.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  173|  41.3k|    if (inlen <= 0) {
  ------------------
  |  Branch (173:9): [True: 0, False: 41.3k]
  ------------------
  174|      0|        enc->enc = NULL;
  175|      0|        return 0;
  176|      0|    }
  177|  41.3k|    if ((enc->enc = OPENSSL_malloc(inlen)) == NULL)
  ------------------
  |  |  107|  41.3k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (177:9): [True: 0, False: 41.3k]
  ------------------
  178|      0|        return 0;
  179|  41.3k|    memcpy(enc->enc, in, inlen);
  180|  41.3k|    enc->len = inlen;
  181|  41.3k|    enc->modified = 0;
  182|       |
  183|  41.3k|    return 1;
  184|  41.3k|}
ossl_asn1_enc_restore:
  188|   878k|{
  189|   878k|    const ASN1_ENCODING *enc = asn1_get_const_enc_ptr(pval, it);
  190|       |
  191|   878k|    if (enc == NULL || enc->modified)
  ------------------
  |  Branch (191:9): [True: 878k, False: 0]
  |  Branch (191:24): [True: 0, False: 0]
  ------------------
  192|   878k|        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|   878k|}
ossl_asn1_get_field_ptr:
  204|  7.71M|{
  205|  7.71M|    ASN1_VALUE **pvaltmp = offset2ptr(*pval, tt->offset);
  ------------------
  |  |   23|  7.71M|#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|  7.71M|    return pvaltmp;
  212|  7.71M|}
ossl_asn1_get_const_field_ptr:
  217|  2.34M|{
  218|  2.34M|    return offset2ptr(*pval, tt->offset);
  ------------------
  |  |   23|  2.34M|#define offset2ptr(addr, offset) (void *)(((char *)addr) + offset)
  ------------------
  219|  2.34M|}
ossl_asn1_do_adb:
  229|  7.42M|{
  230|  7.42M|    const ASN1_ADB *adb;
  231|  7.42M|    const ASN1_ADB_TABLE *atbl;
  232|  7.42M|    long selector;
  233|  7.42M|    const ASN1_VALUE **sfld;
  234|  7.42M|    int i;
  235|       |
  236|  7.42M|    if ((tt->flags & ASN1_TFLG_ADB_MASK) == 0)
  ------------------
  |  |  572|  7.42M|#define ASN1_TFLG_ADB_MASK (0x3 << 8)
  ------------------
  |  Branch (236:9): [True: 7.42M, False: 0]
  ------------------
  237|  7.42M|        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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  289|       |    return NULL;
  290|      0|}
tasn_utl.c:asn1_get_enc_ptr:
  117|  3.07M|{
  118|  3.07M|    const ASN1_AUX *aux;
  119|       |
  120|  3.07M|    if (pval == NULL || *pval == NULL)
  ------------------
  |  Branch (120:9): [True: 0, False: 3.07M]
  |  Branch (120:25): [True: 0, False: 3.07M]
  ------------------
  121|      0|        return NULL;
  122|  3.07M|    aux = it->funcs;
  123|  3.07M|    if (aux == NULL || (aux->flags & ASN1_AFLG_ENCODING) == 0)
  ------------------
  |  |  723|   276k|#define ASN1_AFLG_ENCODING 2
  ------------------
  |  Branch (123:9): [True: 2.79M, False: 276k]
  |  Branch (123:24): [True: 152k, False: 124k]
  ------------------
  124|  2.94M|        return NULL;
  125|   124k|    return offset2ptr(*pval, aux->enc_offset);
  ------------------
  |  |   23|   124k|#define offset2ptr(addr, offset) (void *)(((char *)addr) + offset)
  ------------------
  126|  3.07M|}
tasn_utl.c:asn1_get_const_enc_ptr:
  130|   878k|{
  131|   878k|    const ASN1_AUX *aux;
  132|       |
  133|   878k|    if (pval == NULL || *pval == NULL)
  ------------------
  |  Branch (133:9): [True: 0, False: 878k]
  |  Branch (133:25): [True: 0, False: 878k]
  ------------------
  134|      0|        return NULL;
  135|   878k|    aux = it->funcs;
  136|   878k|    if (aux == NULL || (aux->flags & ASN1_AFLG_ENCODING) == 0)
  ------------------
  |  |  723|      0|#define ASN1_AFLG_ENCODING 2
  ------------------
  |  Branch (136:9): [True: 878k, False: 0]
  |  Branch (136:24): [True: 0, False: 0]
  ------------------
  137|   878k|        return NULL;
  138|      0|    return offset2ptr(*pval, aux->enc_offset);
  ------------------
  |  |   23|      0|#define offset2ptr(addr, offset) (void *)(((char *)addr) + offset)
  ------------------
  139|   878k|}

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

BIGNUM_it:
   57|  56.0k|ASN1_ITEM_start(BIGNUM)
  ------------------
  |  |   97|  56.0k|    {                                  \
  |  |   98|  56.0k|        static const ASN1_ITEM local_it = {
  ------------------
   58|  56.0k|    ASN1_ITYPE_PRIMITIVE,
  ------------------
  |  |   82|  56.0k|#define ASN1_ITYPE_PRIMITIVE 0x0
  ------------------
   59|  56.0k|    V_ASN1_INTEGER, NULL, 0, &bignum_pf, 0, "BIGNUM" ASN1_ITEM_end(BIGNUM)
  ------------------
  |  |   66|  56.0k|#define V_ASN1_INTEGER 2
  ------------------
                  V_ASN1_INTEGER, NULL, 0, &bignum_pf, 0, "BIGNUM" ASN1_ITEM_end(BIGNUM)
  ------------------
  |  |  104|  56.0k|    }                         \
  |  |  105|  56.0k|    ;                         \
  |  |  106|  56.0k|    return &local_it;         \
  |  |  107|  56.0k|    }
  ------------------
x_bignum.c:bn_new:
   65|  56.0k|{
   66|  56.0k|    *pval = (ASN1_VALUE *)BN_new();
   67|  56.0k|    if (*pval != NULL)
  ------------------
  |  Branch (67:9): [True: 56.0k, False: 0]
  ------------------
   68|  56.0k|        return 1;
   69|      0|    else
   70|      0|        return 0;
   71|  56.0k|}
x_bignum.c:bn_c2i:
  116|  56.0k|{
  117|  56.0k|    int allocated = 0;
  118|  56.0k|    BIGNUM *bn;
  119|       |
  120|       |    /* Reject encodings that imply a negative number. */
  121|  56.0k|    if (len == 0 || (*cont & 0x80) != 0) {
  ------------------
  |  Branch (121:9): [True: 0, False: 56.0k]
  |  Branch (121:21): [True: 0, False: 56.0k]
  ------------------
  122|      0|        ERR_raise(ERR_LIB_ASN1, ASN1_R_INVALID_VALUE);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  123|      0|        return 0;
  124|      0|    }
  125|       |
  126|  56.0k|    if (*pval == NULL && (allocated = bn_new(pval, it)) == 0)
  ------------------
  |  Branch (126:9): [True: 56.0k, False: 0]
  |  Branch (126:26): [True: 0, False: 56.0k]
  ------------------
  127|      0|        return 0;
  128|  56.0k|    bn = (BIGNUM *)*pval;
  129|  56.0k|    if (!BN_bin2bn(cont, len, bn)) {
  ------------------
  |  Branch (129:9): [True: 0, False: 56.0k]
  ------------------
  130|      0|        if (allocated != 0)
  ------------------
  |  Branch (130:13): [True: 0, False: 0]
  ------------------
  131|      0|            bn_free(pval, it);
  132|      0|        return 0;
  133|      0|    }
  134|  56.0k|    return 1;
  135|  56.0k|}

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

X509_PKEY_free:
   36|  41.3k|{
   37|  41.3k|    if (x == NULL)
  ------------------
  |  Branch (37:9): [True: 41.3k, False: 0]
  ------------------
   38|  41.3k|        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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   45|      0|    OPENSSL_free(x);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   46|      0|}

ossl_encode_der_length:
   40|  40.0k|{
   41|  40.0k|    if (cont_len > 0xffff)
  ------------------
  |  Branch (41:9): [True: 0, False: 40.0k]
  ------------------
   42|      0|        return 0; /* Too large for supported length encodings */
   43|       |
   44|  40.0k|    if (cont_len > 0xff) {
  ------------------
  |  Branch (44:9): [True: 0, False: 40.0k]
  ------------------
   45|      0|        if (!WPACKET_put_bytes_u8(pkt, 0x82)
  ------------------
  |  |  909|      0|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (45:13): [True: 0, False: 0]
  ------------------
   46|      0|            || !WPACKET_put_bytes_u16(pkt, cont_len))
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (46:16): [True: 0, False: 0]
  ------------------
   47|      0|            return 0;
   48|  40.0k|    } else {
   49|  40.0k|        if (cont_len > 0x7f
  ------------------
  |  Branch (49:13): [True: 342, False: 39.6k]
  ------------------
   50|    342|            && !WPACKET_put_bytes_u8(pkt, 0x81))
  ------------------
  |  |  909|    342|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (50:16): [True: 0, False: 342]
  ------------------
   51|      0|            return 0;
   52|  40.0k|        if (!WPACKET_put_bytes_u8(pkt, cont_len))
  ------------------
  |  |  909|  40.0k|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (52:13): [True: 0, False: 40.0k]
  ------------------
   53|      0|            return 0;
   54|  40.0k|    }
   55|       |
   56|  40.0k|    return 1;
   57|  40.0k|}
ossl_encode_der_integer:
   67|  26.6k|{
   68|  26.6k|    unsigned char *bnbytes;
   69|  26.6k|    size_t cont_len;
   70|       |
   71|  26.6k|    if (BN_is_negative(n))
  ------------------
  |  Branch (71:9): [True: 0, False: 26.6k]
  ------------------
   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|  26.6k|    cont_len = BN_num_bits(n) / 8 + 1;
   84|       |
   85|  26.6k|    if (!WPACKET_start_sub_packet(pkt)
  ------------------
  |  Branch (85:9): [True: 0, False: 26.6k]
  ------------------
   86|  26.6k|        || !WPACKET_put_bytes_u8(pkt, ID_INTEGER)
  ------------------
  |  |  909|  53.3k|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (86:12): [True: 0, False: 26.6k]
  ------------------
   87|  26.6k|        || !ossl_encode_der_length(pkt, cont_len)
  ------------------
  |  Branch (87:12): [True: 0, False: 26.6k]
  ------------------
   88|  26.6k|        || !WPACKET_allocate_bytes(pkt, cont_len, &bnbytes)
  ------------------
  |  Branch (88:12): [True: 0, False: 26.6k]
  ------------------
   89|  26.6k|        || !WPACKET_close(pkt))
  ------------------
  |  Branch (89:12): [True: 0, False: 26.6k]
  ------------------
   90|      0|        return 0;
   91|       |
   92|  26.6k|    if (bnbytes != NULL
  ------------------
  |  Branch (92:9): [True: 0, False: 26.6k]
  ------------------
   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|  26.6k|    return 1;
   97|  26.6k|}
ossl_encode_der_dsa_sig:
  107|  13.3k|{
  108|  13.3k|    WPACKET tmppkt, *dummypkt;
  109|  13.3k|    size_t cont_len;
  110|  13.3k|    int isnull = WPACKET_is_null_buf(pkt);
  111|       |
  112|  13.3k|    if (!WPACKET_start_sub_packet(pkt))
  ------------------
  |  Branch (112:9): [True: 0, False: 13.3k]
  ------------------
  113|      0|        return 0;
  114|       |
  115|  13.3k|    if (!isnull) {
  ------------------
  |  Branch (115:9): [True: 0, False: 13.3k]
  ------------------
  116|      0|        if (!WPACKET_init_null(&tmppkt, 0))
  ------------------
  |  Branch (116:13): [True: 0, False: 0]
  ------------------
  117|      0|            return 0;
  118|      0|        dummypkt = &tmppkt;
  119|  13.3k|    } else {
  120|       |        /* If the input packet has a NULL buffer, we don't need a dummy packet */
  121|  13.3k|        dummypkt = pkt;
  122|  13.3k|    }
  123|       |
  124|       |    /* Calculate the content length */
  125|  13.3k|    if (!ossl_encode_der_integer(dummypkt, r)
  ------------------
  |  Branch (125:9): [True: 0, False: 13.3k]
  ------------------
  126|  13.3k|        || !ossl_encode_der_integer(dummypkt, s)
  ------------------
  |  Branch (126:12): [True: 0, False: 13.3k]
  ------------------
  127|  13.3k|        || !WPACKET_get_length(dummypkt, &cont_len)
  ------------------
  |  Branch (127:12): [True: 0, False: 13.3k]
  ------------------
  128|  13.3k|        || (!isnull && !WPACKET_finish(dummypkt))) {
  ------------------
  |  Branch (128:13): [True: 0, False: 13.3k]
  |  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|  13.3k|    if (!WPACKET_put_bytes_u8(pkt, ID_SEQUENCE)
  ------------------
  |  |  909|  26.6k|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (135:9): [True: 0, False: 13.3k]
  ------------------
  136|  13.3k|        || !ossl_encode_der_length(pkt, cont_len)
  ------------------
  |  Branch (136:12): [True: 0, False: 13.3k]
  ------------------
  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|  13.3k|        || (!isnull && !ossl_encode_der_integer(pkt, r))
  ------------------
  |  Branch (141:13): [True: 0, False: 13.3k]
  |  Branch (141:24): [True: 0, False: 0]
  ------------------
  142|  13.3k|        || (!isnull && !ossl_encode_der_integer(pkt, s))
  ------------------
  |  Branch (142:13): [True: 0, False: 13.3k]
  |  Branch (142:24): [True: 0, False: 0]
  ------------------
  143|  13.3k|        || !WPACKET_close(pkt))
  ------------------
  |  Branch (143:12): [True: 0, False: 13.3k]
  ------------------
  144|      0|        return 0;
  145|       |
  146|  13.3k|    return 1;
  147|  13.3k|}

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|    347|{
   22|    347|    struct fd_lookup_st *curr;
   23|    347|    struct fd_lookup_st *next;
   24|       |
   25|    347|    if (ctx == NULL)
  ------------------
  |  Branch (25:9): [True: 347, False: 0]
  ------------------
   26|    347|        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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   38|      0|        curr = next;
   39|      0|    }
   40|       |
   41|      0|    OPENSSL_free(ctx);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   42|      0|}

BIO_f_buffer:
   41|    342|{
   42|    342|    return &methods_buffer;
   43|    342|}
bf_buff.c:buffer_write:
  159|    342|{
  160|    342|    int i, num = 0;
  161|    342|    BIO_F_BUFFER_CTX *ctx;
  162|       |
  163|    342|    if ((in == NULL) || (inl <= 0))
  ------------------
  |  Branch (163:9): [True: 0, False: 342]
  |  Branch (163:25): [True: 0, False: 342]
  ------------------
  164|      0|        return 0;
  165|    342|    ctx = (BIO_F_BUFFER_CTX *)b->ptr;
  166|    342|    if ((ctx == NULL) || (b->next_bio == NULL))
  ------------------
  |  Branch (166:9): [True: 0, False: 342]
  |  Branch (166:26): [True: 0, False: 342]
  ------------------
  167|      0|        return 0;
  168|       |
  169|    342|    BIO_clear_retry_flags(b);
  ------------------
  |  |  272|    342|    BIO_clear_flags(b, (BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  225|    342|#define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  222|    342|#define BIO_FLAGS_READ 0x01
  |  |  |  |  ------------------
  |  |  |  |               #define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  223|    342|#define BIO_FLAGS_WRITE 0x02
  |  |  |  |  ------------------
  |  |  |  |               #define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  224|    342|#define BIO_FLAGS_IO_SPECIAL 0x04
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   BIO_clear_flags(b, (BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  226|    342|#define BIO_FLAGS_SHOULD_RETRY 0x08
  |  |  ------------------
  ------------------
  170|    342|start:
  171|    342|    i = ctx->obuf_size - (ctx->obuf_len + ctx->obuf_off);
  172|       |    /* add to buffer and return */
  173|    342|    if (i >= inl) {
  ------------------
  |  Branch (173:9): [True: 342, False: 0]
  ------------------
  174|    342|        memcpy(&(ctx->obuf[ctx->obuf_off + ctx->obuf_len]), in, inl);
  175|    342|        ctx->obuf_len += inl;
  176|    342|        return (num + inl);
  177|    342|    }
  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|  1.36k|{
  237|  1.36k|    BIO *dbio;
  238|  1.36k|    BIO_F_BUFFER_CTX *ctx;
  239|  1.36k|    long ret = 1;
  240|  1.36k|    char *p1, *p2;
  241|  1.36k|    int r, i, *ip;
  242|  1.36k|    int ibs, obs;
  243|       |
  244|  1.36k|    ctx = (BIO_F_BUFFER_CTX *)b->ptr;
  245|       |
  246|  1.36k|    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: 1.36k]
  ------------------
  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: 1.36k]
  ------------------
  257|      0|        if (ctx->ibuf_len > 0)
  ------------------
  |  Branch (257:13): [True: 0, False: 0]
  ------------------
  258|      0|            return 0;
  259|       |        /*
  260|       |         * If there is no next BIO, BIO_read() returns 0, which means EOF,
  261|       |         * BIO_eof() should return 1 in this case.
  262|       |         */
  263|      0|        if (b->next_bio == NULL)
  ------------------
  |  Branch (263:13): [True: 0, False: 0]
  ------------------
  264|      0|            return 1;
  265|      0|        ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
  266|      0|        break;
  267|      0|    case BIO_CTRL_INFO:
  ------------------
  |  |   92|      0|#define BIO_CTRL_INFO 3 /* opt - extra tit-bits */
  ------------------
  |  Branch (267:5): [True: 0, False: 1.36k]
  ------------------
  268|      0|        ret = (long)ctx->obuf_len;
  269|      0|        break;
  270|      0|    case BIO_C_GET_BUFF_NUM_LINES:
  ------------------
  |  |  459|      0|#define BIO_C_GET_BUFF_NUM_LINES 116
  ------------------
  |  Branch (270:5): [True: 0, False: 1.36k]
  ------------------
  271|      0|        ret = 0;
  272|      0|        p1 = ctx->ibuf;
  273|      0|        for (i = 0; i < ctx->ibuf_len; i++) {
  ------------------
  |  Branch (273:21): [True: 0, False: 0]
  ------------------
  274|      0|            if (p1[ctx->ibuf_off + i] == '\n')
  ------------------
  |  Branch (274:17): [True: 0, False: 0]
  ------------------
  275|      0|                ret++;
  276|      0|        }
  277|      0|        break;
  278|      0|    case BIO_CTRL_WPENDING:
  ------------------
  |  |  102|      0|#define BIO_CTRL_WPENDING 13 /* opt - number of bytes still to write */
  ------------------
  |  Branch (278:5): [True: 0, False: 1.36k]
  ------------------
  279|      0|        ret = (long)ctx->obuf_len;
  280|      0|        if (ret == 0) {
  ------------------
  |  Branch (280:13): [True: 0, False: 0]
  ------------------
  281|      0|            if (b->next_bio == NULL)
  ------------------
  |  Branch (281:17): [True: 0, False: 0]
  ------------------
  282|      0|                return 0;
  283|      0|            ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
  284|      0|        }
  285|      0|        break;
  286|      0|    case BIO_CTRL_PENDING:
  ------------------
  |  |   99|      0|#define BIO_CTRL_PENDING 10 /* opt - is their more data buffered */
  ------------------
  |  Branch (286:5): [True: 0, False: 1.36k]
  ------------------
  287|      0|        ret = (long)ctx->ibuf_len;
  288|      0|        if (ret == 0) {
  ------------------
  |  Branch (288:13): [True: 0, False: 0]
  ------------------
  289|      0|            if (b->next_bio == NULL)
  ------------------
  |  Branch (289:17): [True: 0, False: 0]
  ------------------
  290|      0|                return 0;
  291|      0|            ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
  292|      0|        }
  293|      0|        break;
  294|      0|    case BIO_C_SET_BUFF_READ_DATA:
  ------------------
  |  |  465|      0|#define BIO_C_SET_BUFF_READ_DATA 122 /* data to read first */
  ------------------
  |  Branch (294:5): [True: 0, False: 1.36k]
  ------------------
  295|      0|        if (num > ctx->ibuf_size) {
  ------------------
  |  Branch (295:13): [True: 0, False: 0]
  ------------------
  296|      0|            if (num <= 0)
  ------------------
  |  Branch (296:17): [True: 0, False: 0]
  ------------------
  297|      0|                return 0;
  298|      0|            p1 = OPENSSL_malloc((size_t)num);
  ------------------
  |  |  107|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  299|      0|            if (p1 == NULL)
  ------------------
  |  Branch (299:17): [True: 0, False: 0]
  ------------------
  300|      0|                return 0;
  301|      0|            OPENSSL_free(ctx->ibuf);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  302|      0|            ctx->ibuf = p1;
  303|      0|        }
  304|      0|        ctx->ibuf_off = 0;
  305|      0|        ctx->ibuf_len = (int)num;
  306|      0|        memcpy(ctx->ibuf, ptr, (int)num);
  307|      0|        ret = 1;
  308|      0|        break;
  309|    342|    case BIO_C_SET_BUFF_SIZE:
  ------------------
  |  |  460|    342|#define BIO_C_SET_BUFF_SIZE 117
  ------------------
  |  Branch (309:5): [True: 342, False: 1.02k]
  ------------------
  310|    342|        if (ptr != NULL) {
  ------------------
  |  Branch (310:13): [True: 342, False: 0]
  ------------------
  311|    342|            ip = (int *)ptr;
  312|    342|            if (*ip == 0) {
  ------------------
  |  Branch (312:17): [True: 342, False: 0]
  ------------------
  313|    342|                ibs = (int)num;
  314|    342|                obs = ctx->obuf_size;
  315|    342|            } else { /* if (*ip == 1) */
  316|       |
  317|      0|                ibs = ctx->ibuf_size;
  318|      0|                obs = (int)num;
  319|      0|            }
  320|    342|        } else {
  321|      0|            ibs = (int)num;
  322|      0|            obs = (int)num;
  323|      0|        }
  324|    342|        p1 = ctx->ibuf;
  325|    342|        p2 = ctx->obuf;
  326|    342|        if ((ibs > DEFAULT_BUFFER_SIZE) && (ibs != ctx->ibuf_size)) {
  ------------------
  |  |   23|    342|#define DEFAULT_BUFFER_SIZE 4096
  ------------------
  |  Branch (326:13): [True: 0, False: 342]
  |  Branch (326:44): [True: 0, False: 0]
  ------------------
  327|      0|            if (num <= 0)
  ------------------
  |  Branch (327:17): [True: 0, False: 0]
  ------------------
  328|      0|                return 0;
  329|      0|            p1 = OPENSSL_malloc((size_t)num);
  ------------------
  |  |  107|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  330|      0|            if (p1 == NULL)
  ------------------
  |  Branch (330:17): [True: 0, False: 0]
  ------------------
  331|      0|                return 0;
  332|      0|        }
  333|    342|        if ((obs > DEFAULT_BUFFER_SIZE) && (obs != ctx->obuf_size)) {
  ------------------
  |  |   23|    342|#define DEFAULT_BUFFER_SIZE 4096
  ------------------
  |  Branch (333:13): [True: 0, False: 342]
  |  Branch (333:44): [True: 0, False: 0]
  ------------------
  334|      0|            p2 = OPENSSL_malloc((size_t)num);
  ------------------
  |  |  107|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  335|      0|            if (p2 == NULL) {
  ------------------
  |  Branch (335:17): [True: 0, False: 0]
  ------------------
  336|      0|                if (p1 != ctx->ibuf)
  ------------------
  |  Branch (336:21): [True: 0, False: 0]
  ------------------
  337|      0|                    OPENSSL_free(p1);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  338|      0|                return 0;
  339|      0|            }
  340|      0|        }
  341|    342|        if (ctx->ibuf != p1) {
  ------------------
  |  Branch (341:13): [True: 0, False: 342]
  ------------------
  342|      0|            OPENSSL_free(ctx->ibuf);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  343|      0|            ctx->ibuf = p1;
  344|      0|            ctx->ibuf_off = 0;
  345|      0|            ctx->ibuf_len = 0;
  346|      0|            ctx->ibuf_size = ibs;
  347|      0|        }
  348|    342|        if (ctx->obuf != p2) {
  ------------------
  |  Branch (348:13): [True: 0, False: 342]
  ------------------
  349|      0|            OPENSSL_free(ctx->obuf);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  350|      0|            ctx->obuf = p2;
  351|      0|            ctx->obuf_off = 0;
  352|      0|            ctx->obuf_len = 0;
  353|      0|            ctx->obuf_size = obs;
  354|      0|        }
  355|    342|        break;
  356|      0|    case BIO_C_DO_STATE_MACHINE:
  ------------------
  |  |  444|      0|#define BIO_C_DO_STATE_MACHINE 101
  ------------------
  |  Branch (356:5): [True: 0, False: 1.36k]
  ------------------
  357|      0|        if (b->next_bio == NULL)
  ------------------
  |  Branch (357:13): [True: 0, False: 0]
  ------------------
  358|      0|            return 0;
  359|      0|        BIO_clear_retry_flags(b);
  ------------------
  |  |  272|      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
  |  |  ------------------
  ------------------
  360|      0|        ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
  361|      0|        BIO_copy_next_retry(b);
  362|      0|        break;
  363|       |
  364|    342|    case BIO_CTRL_FLUSH:
  ------------------
  |  |  100|    342|#define BIO_CTRL_FLUSH 11 /* opt - 'flush' buffered output */
  ------------------
  |  Branch (364:5): [True: 342, False: 1.02k]
  ------------------
  365|    342|        if (b->next_bio == NULL)
  ------------------
  |  Branch (365:13): [True: 0, False: 342]
  ------------------
  366|      0|            return 0;
  367|    342|        if (ctx->obuf_len <= 0) {
  ------------------
  |  Branch (367:13): [True: 0, False: 342]
  ------------------
  368|      0|            ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
  369|      0|            BIO_copy_next_retry(b);
  370|      0|            break;
  371|      0|        }
  372|       |
  373|    684|        for (;;) {
  374|    684|            BIO_clear_retry_flags(b);
  ------------------
  |  |  272|    684|    BIO_clear_flags(b, (BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  225|    684|#define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  222|    684|#define BIO_FLAGS_READ 0x01
  |  |  |  |  ------------------
  |  |  |  |               #define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  223|    684|#define BIO_FLAGS_WRITE 0x02
  |  |  |  |  ------------------
  |  |  |  |               #define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  224|    684|#define BIO_FLAGS_IO_SPECIAL 0x04
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   BIO_clear_flags(b, (BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  226|    684|#define BIO_FLAGS_SHOULD_RETRY 0x08
  |  |  ------------------
  ------------------
  375|    684|            if (ctx->obuf_len > 0) {
  ------------------
  |  Branch (375:17): [True: 342, False: 342]
  ------------------
  376|    342|                r = BIO_write(b->next_bio,
  377|    342|                    &(ctx->obuf[ctx->obuf_off]), ctx->obuf_len);
  378|    342|                BIO_copy_next_retry(b);
  379|    342|                if (r <= 0)
  ------------------
  |  Branch (379:21): [True: 0, False: 342]
  ------------------
  380|      0|                    return (long)r;
  381|    342|                ctx->obuf_off += r;
  382|    342|                ctx->obuf_len -= r;
  383|    342|            } else {
  384|    342|                ctx->obuf_len = 0;
  385|    342|                ctx->obuf_off = 0;
  386|    342|                break;
  387|    342|            }
  388|    684|        }
  389|    342|        ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
  390|    342|        BIO_copy_next_retry(b);
  391|    342|        break;
  392|      0|    case BIO_CTRL_DUP:
  ------------------
  |  |  101|      0|#define BIO_CTRL_DUP 12 /* man - extra stuff for 'duped' BIO */
  ------------------
  |  Branch (392:5): [True: 0, False: 1.36k]
  ------------------
  393|      0|        dbio = (BIO *)ptr;
  394|      0|        if (BIO_set_read_buffer_size(dbio, ctx->ibuf_size) <= 0 || BIO_set_write_buffer_size(dbio, ctx->obuf_size) <= 0)
  ------------------
  |  |  635|      0|#define BIO_set_read_buffer_size(b, size) BIO_int_ctrl(b, BIO_C_SET_BUFF_SIZE, size, 0)
  |  |  ------------------
  |  |  |  |  460|      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)
  ------------------
  |  |  636|      0|#define BIO_set_write_buffer_size(b, size) BIO_int_ctrl(b, BIO_C_SET_BUFF_SIZE, size, 1)
  |  |  ------------------
  |  |  |  |  460|      0|#define BIO_C_SET_BUFF_SIZE 117
  |  |  ------------------
  ------------------
  |  Branch (394:13): [True: 0, False: 0]
  |  Branch (394:68): [True: 0, False: 0]
  ------------------
  395|      0|            ret = 0;
  396|      0|        break;
  397|      0|    case BIO_CTRL_PEEK:
  ------------------
  |  |  106|      0|#define BIO_CTRL_PEEK 29 /* BIO_f_buffer special */
  ------------------
  |  Branch (397:5): [True: 0, False: 1.36k]
  ------------------
  398|       |        /* Ensure there's stuff in the input buffer */
  399|      0|        {
  400|      0|            char fake_buf[1];
  401|      0|            (void)buffer_read(b, fake_buf, 0);
  402|      0|        }
  403|      0|        if (num > ctx->ibuf_len)
  ------------------
  |  Branch (403:13): [True: 0, False: 0]
  ------------------
  404|      0|            num = ctx->ibuf_len;
  405|      0|        memcpy(ptr, &(ctx->ibuf[ctx->ibuf_off]), num);
  406|      0|        ret = num;
  407|      0|        break;
  408|    684|    default:
  ------------------
  |  Branch (408:5): [True: 684, False: 684]
  ------------------
  409|    684|        if (b->next_bio == NULL)
  ------------------
  |  Branch (409:13): [True: 0, False: 684]
  ------------------
  410|      0|            return 0;
  411|    684|        ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
  412|    684|        break;
  413|  1.36k|    }
  414|  1.36k|    return ret;
  415|  1.36k|}
bf_buff.c:buffer_new:
   46|    342|{
   47|    342|    BIO_F_BUFFER_CTX *ctx = OPENSSL_zalloc(sizeof(*ctx));
  ------------------
  |  |  109|    342|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   48|       |
   49|    342|    if (ctx == NULL)
  ------------------
  |  Branch (49:9): [True: 0, False: 342]
  ------------------
   50|      0|        return 0;
   51|    342|    ctx->ibuf_size = DEFAULT_BUFFER_SIZE;
  ------------------
  |  |   23|    342|#define DEFAULT_BUFFER_SIZE 4096
  ------------------
   52|    342|    ctx->ibuf = OPENSSL_malloc(DEFAULT_BUFFER_SIZE);
  ------------------
  |  |  107|    342|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   53|    342|    if (ctx->ibuf == NULL) {
  ------------------
  |  Branch (53:9): [True: 0, False: 342]
  ------------------
   54|      0|        OPENSSL_free(ctx);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   55|      0|        return 0;
   56|      0|    }
   57|    342|    ctx->obuf_size = DEFAULT_BUFFER_SIZE;
  ------------------
  |  |   23|    342|#define DEFAULT_BUFFER_SIZE 4096
  ------------------
   58|    342|    ctx->obuf = OPENSSL_malloc(DEFAULT_BUFFER_SIZE);
  ------------------
  |  |  107|    342|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   59|    342|    if (ctx->obuf == NULL) {
  ------------------
  |  Branch (59:9): [True: 0, False: 342]
  ------------------
   60|      0|        OPENSSL_free(ctx->ibuf);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   61|      0|        OPENSSL_free(ctx);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   62|      0|        return 0;
   63|      0|    }
   64|       |
   65|    342|    bi->init = 1;
   66|    342|    bi->ptr = (char *)ctx;
   67|    342|    bi->flags = 0;
   68|    342|    return 1;
   69|    342|}
bf_buff.c:buffer_free:
   72|    342|{
   73|    342|    BIO_F_BUFFER_CTX *b;
   74|       |
   75|    342|    if (a == NULL)
  ------------------
  |  Branch (75:9): [True: 0, False: 342]
  ------------------
   76|      0|        return 0;
   77|    342|    b = (BIO_F_BUFFER_CTX *)a->ptr;
   78|    342|    OPENSSL_free(b->ibuf);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   79|    342|    OPENSSL_free(b->obuf);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   80|    342|    OPENSSL_free(a->ptr);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   81|       |    a->ptr = NULL;
   82|    342|    a->init = 0;
   83|    342|    a->flags = 0;
   84|    342|    return 1;
   85|    342|}

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|   251k|{
   83|   251k|    BIO *bio = OPENSSL_zalloc(sizeof(*bio));
  ------------------
  |  |  109|   251k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   84|       |
   85|   251k|    if (bio == NULL)
  ------------------
  |  Branch (85:9): [True: 0, False: 251k]
  ------------------
   86|      0|        return NULL;
   87|       |
   88|   251k|    bio->libctx = libctx;
   89|   251k|    bio->method = method;
   90|   251k|    bio->shutdown = 1;
   91|       |
   92|   251k|    if (!CRYPTO_NEW_REF(&bio->references, 1))
  ------------------
  |  Branch (92:9): [True: 0, False: 251k]
  ------------------
   93|      0|        goto err;
   94|       |
   95|   251k|    if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_BIO, bio, &bio->ex_data))
  ------------------
  |  |  263|   251k|#define CRYPTO_EX_INDEX_BIO 12
  ------------------
  |  Branch (95:9): [True: 0, False: 251k]
  ------------------
   96|      0|        goto err;
   97|       |
   98|   251k|    if (method->create != NULL && !method->create(bio)) {
  ------------------
  |  Branch (98:9): [True: 251k, False: 0]
  |  Branch (98:35): [True: 0, False: 251k]
  ------------------
   99|      0|        ERR_raise(ERR_LIB_BIO, ERR_R_INIT_FAIL);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  100|      0|        CRYPTO_free_ex_data(CRYPTO_EX_INDEX_BIO, bio, &bio->ex_data);
  ------------------
  |  |  263|      0|#define CRYPTO_EX_INDEX_BIO 12
  ------------------
  101|      0|        goto err;
  102|      0|    }
  103|   251k|    if (method->create == NULL)
  ------------------
  |  Branch (103:9): [True: 0, False: 251k]
  ------------------
  104|      0|        bio->init = 1;
  105|       |
  106|   251k|    return bio;
  107|       |
  108|      0|err:
  109|      0|    CRYPTO_FREE_REF(&bio->references);
  110|      0|    OPENSSL_free(bio);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  111|       |    return NULL;
  112|   251k|}
BIO_new:
  115|   251k|{
  116|       |    return BIO_new_ex(NULL, method);
  117|   251k|}
BIO_free:
  120|   427k|{
  121|   427k|    int ret;
  122|       |
  123|   427k|    if (a == NULL)
  ------------------
  |  Branch (123:9): [True: 90.0k, False: 337k]
  ------------------
  124|  90.0k|        return 0;
  125|       |
  126|   337k|    if (CRYPTO_DOWN_REF(&a->references, &ret) <= 0)
  ------------------
  |  Branch (126:9): [True: 0, False: 337k]
  ------------------
  127|      0|        return 0;
  128|       |
  129|   337k|    REF_PRINT_COUNT("BIO", ret, a);
  ------------------
  |  |  301|   337k|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|   337k|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  295|   337k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|   337k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  130|   337k|    if (ret > 0)
  ------------------
  |  Branch (130:9): [True: 86.1k, False: 251k]
  ------------------
  131|  86.1k|        return 1;
  132|   251k|    REF_ASSERT_ISNT(ret < 0);
  ------------------
  |  |  293|   251k|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 251k]
  |  |  ------------------
  ------------------
  133|       |
  134|   251k|    if (HAS_CALLBACK(a)) {
  ------------------
  |  |   26|   251k|#define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL)
  |  |  ------------------
  |  |  |  Branch (26:26): [True: 0, False: 251k]
  |  |  |  Branch (26:51): [True: 0, False: 251k]
  |  |  ------------------
  ------------------
  135|      0|        ret = (int)bio_call_callback(a, BIO_CB_FREE, NULL, 0, 0, 0L, 1L, NULL);
  ------------------
  |  |  300|      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|   251k|    if ((a->method != NULL) && (a->method->destroy != NULL))
  ------------------
  |  Branch (140:9): [True: 251k, False: 0]
  |  Branch (140:32): [True: 251k, False: 0]
  ------------------
  141|   251k|        a->method->destroy(a);
  142|       |
  143|   251k|    CRYPTO_free_ex_data(CRYPTO_EX_INDEX_BIO, a, &a->ex_data);
  ------------------
  |  |  263|   251k|#define CRYPTO_EX_INDEX_BIO 12
  ------------------
  144|       |
  145|   251k|    CRYPTO_FREE_REF(&a->references);
  146|       |
  147|   251k|    OPENSSL_free(a);
  ------------------
  |  |  132|   251k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  148|       |
  149|   251k|    return 1;
  150|   251k|}
BIO_set_data:
  153|  83.4k|{
  154|  83.4k|    a->ptr = ptr;
  155|  83.4k|}
BIO_get_data:
  158|   312k|{
  159|   312k|    return a->ptr;
  160|   312k|}
BIO_set_init:
  163|   165k|{
  164|   165k|    a->init = init;
  165|   165k|}
BIO_set_shutdown:
  173|    342|{
  174|    342|    a->shutdown = shut;
  175|    342|}
BIO_up_ref:
  188|  86.1k|{
  189|  86.1k|    int i;
  190|       |
  191|  86.1k|    if (CRYPTO_UP_REF(&a->references, &i) <= 0)
  ------------------
  |  Branch (191:9): [True: 0, False: 86.1k]
  ------------------
  192|      0|        return 0;
  193|       |
  194|  86.1k|    REF_PRINT_COUNT("BIO", i, a);
  ------------------
  |  |  301|  86.1k|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|  86.1k|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  295|  86.1k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|  86.1k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  195|  86.1k|    REF_ASSERT_ISNT(i < 2);
  ------------------
  |  |  293|  86.1k|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 86.1k]
  |  |  ------------------
  ------------------
  196|  86.1k|    return i > 1;
  197|  86.1k|}
BIO_clear_flags:
  200|  1.21M|{
  201|  1.21M|    b->flags &= ~flags;
  202|  1.21M|}
BIO_test_flags:
  205|  13.7k|{
  206|  13.7k|    return (b->flags & flags);
  207|  13.7k|}
BIO_set_flags:
  210|  7.20k|{
  211|  7.20k|    b->flags |= flags;
  212|  7.20k|}
BIO_read:
  318|   270k|{
  319|   270k|    size_t readbytes;
  320|   270k|    int ret;
  321|       |
  322|   270k|    if (dlen < 0) {
  ------------------
  |  Branch (322:9): [True: 0, False: 270k]
  ------------------
  323|      0|        ERR_raise(ERR_LIB_BIO, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  324|      0|        return -1;
  325|      0|    }
  326|       |
  327|   270k|    ret = bio_read_intern(b, data, (size_t)dlen, &readbytes);
  328|       |
  329|   270k|    if (ret > 0) {
  ------------------
  |  Branch (329:9): [True: 263k, False: 6.51k]
  ------------------
  330|       |        /* *readbytes should always be <= dlen */
  331|   263k|        ret = (int)readbytes;
  332|   263k|    }
  333|       |
  334|   270k|    return ret;
  335|   270k|}
BIO_read_ex:
  338|   222k|{
  339|   222k|    return bio_read_intern(b, data, dlen, readbytes) > 0;
  340|   222k|}
BIO_write:
  385|  1.02k|{
  386|  1.02k|    size_t written;
  387|  1.02k|    int ret;
  388|       |
  389|  1.02k|    if (dlen <= 0)
  ------------------
  |  Branch (389:9): [True: 0, False: 1.02k]
  ------------------
  390|      0|        return 0;
  391|       |
  392|  1.02k|    ret = bio_write_intern(b, data, (size_t)dlen, &written);
  393|       |
  394|  1.02k|    if (ret > 0) {
  ------------------
  |  Branch (394:9): [True: 1.02k, False: 0]
  ------------------
  395|       |        /* written should always be <= dlen */
  396|  1.02k|        ret = (int)written;
  397|  1.02k|    }
  398|       |
  399|  1.02k|    return ret;
  400|  1.02k|}
BIO_puts:
  513|   943k|{
  514|   943k|    int ret;
  515|   943k|    size_t written = 0;
  516|       |
  517|   943k|    if (b == NULL) {
  ------------------
  |  Branch (517:9): [True: 0, False: 943k]
  ------------------
  518|      0|        ERR_raise(ERR_LIB_BIO, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  519|      0|        return -1;
  520|      0|    }
  521|   943k|    if (b->method == NULL || b->method->bputs == NULL) {
  ------------------
  |  Branch (521:9): [True: 0, False: 943k]
  |  Branch (521:30): [True: 0, False: 943k]
  ------------------
  522|      0|        ERR_raise(ERR_LIB_BIO, BIO_R_UNSUPPORTED_METHOD);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  523|      0|        return -2;
  524|      0|    }
  525|       |
  526|   943k|    if (HAS_CALLBACK(b)) {
  ------------------
  |  |   26|   943k|#define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL)
  |  |  ------------------
  |  |  |  Branch (26:26): [True: 0, False: 943k]
  |  |  |  Branch (26:51): [True: 0, False: 943k]
  |  |  ------------------
  ------------------
  527|      0|        ret = (int)bio_call_callback(b, BIO_CB_PUTS, buf, 0, 0, 0L, 1L, NULL);
  ------------------
  |  |  303|      0|#define BIO_CB_PUTS 0x04
  ------------------
  528|      0|        if (ret <= 0)
  ------------------
  |  Branch (528:13): [True: 0, False: 0]
  ------------------
  529|      0|            return ret;
  530|      0|    }
  531|       |
  532|   943k|    if (!b->init) {
  ------------------
  |  Branch (532:9): [True: 0, False: 943k]
  ------------------
  533|      0|        ERR_raise(ERR_LIB_BIO, BIO_R_UNINITIALIZED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  534|      0|        return -1;
  535|      0|    }
  536|       |
  537|   943k|    ret = b->method->bputs(b, buf);
  538|       |
  539|   943k|    if (ret > 0) {
  ------------------
  |  Branch (539:9): [True: 943k, False: 0]
  ------------------
  540|   943k|        b->num_write += (uint64_t)ret;
  541|   943k|        written = ret;
  542|   943k|        ret = 1;
  543|   943k|    }
  544|       |
  545|   943k|    if (HAS_CALLBACK(b))
  ------------------
  |  |   26|   943k|#define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL)
  |  |  ------------------
  |  |  |  Branch (26:26): [True: 0, False: 943k]
  |  |  |  Branch (26:51): [True: 0, False: 943k]
  |  |  ------------------
  ------------------
  546|      0|        ret = (int)bio_call_callback(b, BIO_CB_PUTS | BIO_CB_RETURN, buf, 0, 0,
  ------------------
  |  |  303|      0|#define BIO_CB_PUTS 0x04
  ------------------
                      ret = (int)bio_call_callback(b, BIO_CB_PUTS | BIO_CB_RETURN, buf, 0, 0,
  ------------------
  |  |  313|      0|#define BIO_CB_RETURN 0x80
  ------------------
  547|      0|            0L, ret, &written);
  548|       |
  549|   943k|    if (ret > 0) {
  ------------------
  |  Branch (549:9): [True: 943k, False: 0]
  ------------------
  550|   943k|        if (written > INT_MAX) {
  ------------------
  |  Branch (550:13): [True: 0, False: 943k]
  ------------------
  551|      0|            ERR_raise(ERR_LIB_BIO, BIO_R_LENGTH_TOO_LONG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  552|      0|            ret = -1;
  553|   943k|        } else {
  554|   943k|            ret = (int)written;
  555|   943k|        }
  556|   943k|    }
  557|       |
  558|   943k|    return ret;
  559|   943k|}
BIO_gets:
  562|  1.02M|{
  563|  1.02M|    int ret;
  564|  1.02M|    size_t readbytes = 0;
  565|       |
  566|  1.02M|    if (b == NULL) {
  ------------------
  |  Branch (566:9): [True: 0, False: 1.02M]
  ------------------
  567|      0|        ERR_raise(ERR_LIB_BIO, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  568|      0|        return -1;
  569|      0|    }
  570|  1.02M|    if (b->method == NULL || b->method->bgets == NULL) {
  ------------------
  |  Branch (570:9): [True: 0, False: 1.02M]
  |  Branch (570:30): [True: 0, False: 1.02M]
  ------------------
  571|      0|        ERR_raise(ERR_LIB_BIO, BIO_R_UNSUPPORTED_METHOD);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  572|      0|        return -2;
  573|      0|    }
  574|       |
  575|  1.02M|    if (size < 0) {
  ------------------
  |  Branch (575:9): [True: 0, False: 1.02M]
  ------------------
  576|      0|        ERR_raise(ERR_LIB_BIO, BIO_R_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  577|      0|        return -1;
  578|      0|    }
  579|       |
  580|  1.02M|    if (HAS_CALLBACK(b)) {
  ------------------
  |  |   26|  1.02M|#define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL)
  |  |  ------------------
  |  |  |  Branch (26:26): [True: 0, False: 1.02M]
  |  |  |  Branch (26:51): [True: 0, False: 1.02M]
  |  |  ------------------
  ------------------
  581|      0|        ret = (int)bio_call_callback(b, BIO_CB_GETS, buf, size, 0, 0L, 1, NULL);
  ------------------
  |  |  304|      0|#define BIO_CB_GETS 0x05
  ------------------
  582|      0|        if (ret <= 0)
  ------------------
  |  Branch (582:13): [True: 0, False: 0]
  ------------------
  583|      0|            return ret;
  584|      0|    }
  585|       |
  586|  1.02M|    if (!b->init) {
  ------------------
  |  Branch (586:9): [True: 0, False: 1.02M]
  ------------------
  587|      0|        ERR_raise(ERR_LIB_BIO, BIO_R_UNINITIALIZED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  588|      0|        return -1;
  589|      0|    }
  590|       |
  591|  1.02M|    ret = b->method->bgets(b, buf, size);
  592|       |
  593|  1.02M|    if (ret > 0) {
  ------------------
  |  Branch (593:9): [True: 1.02M, False: 342]
  ------------------
  594|  1.02M|        readbytes = ret;
  595|  1.02M|        ret = 1;
  596|  1.02M|    }
  597|       |
  598|  1.02M|    if (HAS_CALLBACK(b))
  ------------------
  |  |   26|  1.02M|#define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL)
  |  |  ------------------
  |  |  |  Branch (26:26): [True: 0, False: 1.02M]
  |  |  |  Branch (26:51): [True: 0, False: 1.02M]
  |  |  ------------------
  ------------------
  599|      0|        ret = (int)bio_call_callback(b, BIO_CB_GETS | BIO_CB_RETURN, buf, size,
  ------------------
  |  |  304|      0|#define BIO_CB_GETS 0x05
  ------------------
                      ret = (int)bio_call_callback(b, BIO_CB_GETS | BIO_CB_RETURN, buf, size,
  ------------------
  |  |  313|      0|#define BIO_CB_RETURN 0x80
  ------------------
  600|      0|            0, 0L, ret, &readbytes);
  601|       |
  602|  1.02M|    if (ret > 0) {
  ------------------
  |  Branch (602:9): [True: 1.02M, False: 342]
  ------------------
  603|       |        /* Shouldn't happen */
  604|  1.02M|        if (readbytes > (size_t)size)
  ------------------
  |  Branch (604:13): [True: 0, False: 1.02M]
  ------------------
  605|      0|            ret = -1;
  606|  1.02M|        else
  607|  1.02M|            ret = (int)readbytes;
  608|  1.02M|    }
  609|       |
  610|  1.02M|    return ret;
  611|  1.02M|}
BIO_int_ctrl:
  657|    342|{
  658|    342|    int i;
  659|       |
  660|    342|    i = iarg;
  661|    342|    return BIO_ctrl(b, cmd, larg, (char *)&i);
  662|    342|}
BIO_ctrl:
  675|   416k|{
  676|   416k|    long ret;
  677|       |
  678|   416k|    if (b == NULL)
  ------------------
  |  Branch (678:9): [True: 0, False: 416k]
  ------------------
  679|      0|        return -1;
  680|   416k|    if (b->method == NULL || b->method->ctrl == NULL) {
  ------------------
  |  Branch (680:9): [True: 0, False: 416k]
  |  Branch (680:30): [True: 0, False: 416k]
  ------------------
  681|      0|        ERR_raise(ERR_LIB_BIO, BIO_R_UNSUPPORTED_METHOD);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  682|      0|        return -2;
  683|      0|    }
  684|       |
  685|   416k|    if (HAS_CALLBACK(b)) {
  ------------------
  |  |   26|   416k|#define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL)
  |  |  ------------------
  |  |  |  Branch (26:26): [True: 0, False: 416k]
  |  |  |  Branch (26:51): [True: 0, False: 416k]
  |  |  ------------------
  ------------------
  686|      0|        ret = bio_call_callback(b, BIO_CB_CTRL, parg, 0, cmd, larg, 1L, NULL);
  ------------------
  |  |  305|      0|#define BIO_CB_CTRL 0x06
  ------------------
  687|      0|        if (ret <= 0)
  ------------------
  |  Branch (687:13): [True: 0, False: 0]
  ------------------
  688|      0|            return ret;
  689|      0|    }
  690|       |
  691|   416k|    ret = b->method->ctrl(b, cmd, larg, parg);
  692|       |
  693|   416k|    if (HAS_CALLBACK(b))
  ------------------
  |  |   26|   416k|#define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL)
  |  |  ------------------
  |  |  |  Branch (26:26): [True: 0, False: 416k]
  |  |  |  Branch (26:51): [True: 0, False: 416k]
  |  |  ------------------
  ------------------
  694|      0|        ret = bio_call_callback(b, BIO_CB_CTRL | BIO_CB_RETURN, parg, 0, cmd,
  ------------------
  |  |  305|      0|#define BIO_CB_CTRL 0x06
  ------------------
                      ret = bio_call_callback(b, BIO_CB_CTRL | BIO_CB_RETURN, parg, 0, cmd,
  ------------------
  |  |  313|      0|#define BIO_CB_RETURN 0x80
  ------------------
  695|      0|            larg, ret, NULL);
  696|       |
  697|   416k|    return ret;
  698|   416k|}
BIO_push:
  768|    342|{
  769|    342|    BIO *lb;
  770|       |
  771|    342|    if (b == NULL)
  ------------------
  |  Branch (771:9): [True: 0, False: 342]
  ------------------
  772|      0|        return bio;
  773|    342|    lb = b;
  774|    342|    while (lb->next_bio != NULL)
  ------------------
  |  Branch (774:12): [True: 0, False: 342]
  ------------------
  775|      0|        lb = lb->next_bio;
  776|    342|    lb->next_bio = bio;
  777|    342|    if (bio != NULL)
  ------------------
  |  Branch (777:9): [True: 342, False: 0]
  ------------------
  778|    342|        bio->prev_bio = lb;
  779|       |    /* called to do internal processing */
  780|    342|    BIO_ctrl(b, BIO_CTRL_PUSH, 0, lb);
  ------------------
  |  |   95|    342|#define BIO_CTRL_PUSH 6 /* opt - internal, used to signify change */
  ------------------
  781|    342|    return b;
  782|    342|}
BIO_pop:
  786|    342|{
  787|    342|    BIO *ret;
  788|       |
  789|    342|    if (b == NULL)
  ------------------
  |  Branch (789:9): [True: 0, False: 342]
  ------------------
  790|      0|        return NULL;
  791|    342|    ret = b->next_bio;
  792|       |
  793|    342|    BIO_ctrl(b, BIO_CTRL_POP, 0, b);
  ------------------
  |  |   96|    342|#define BIO_CTRL_POP 7 /* opt - internal, used to signify change */
  ------------------
  794|       |
  795|    342|    if (b->prev_bio != NULL)
  ------------------
  |  Branch (795:9): [True: 0, False: 342]
  ------------------
  796|      0|        b->prev_bio->next_bio = b->next_bio;
  797|    342|    if (b->next_bio != NULL)
  ------------------
  |  Branch (797:9): [True: 342, False: 0]
  ------------------
  798|    342|        b->next_bio->prev_bio = b->prev_bio;
  799|       |
  800|    342|    b->next_bio = NULL;
  801|       |    b->prev_bio = NULL;
  802|    342|    return ret;
  803|    342|}
BIO_free_all:
  871|  6.89k|{
  872|  6.89k|    BIO *b;
  873|  6.89k|    int ref;
  874|       |
  875|  7.23k|    while (bio != NULL) {
  ------------------
  |  Branch (875:12): [True: 2.73k, False: 4.49k]
  ------------------
  876|  2.73k|        b = bio;
  877|  2.73k|        CRYPTO_GET_REF(&b->references, &ref);
  878|  2.73k|        bio = bio->next_bio;
  879|  2.73k|        BIO_free(b);
  880|       |        /* Since ref count > 1, don't free anyone else. */
  881|  2.73k|        if (ref > 1)
  ------------------
  |  Branch (881:13): [True: 2.39k, False: 342]
  ------------------
  882|  2.39k|            break;
  883|  2.73k|    }
  884|  6.89k|}
BIO_copy_next_retry:
  933|    684|{
  934|    684|    BIO_set_flags(b, BIO_get_retry_flags(b->next_bio));
  ------------------
  |  |  274|    684|    BIO_test_flags(b, (BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  225|    684|#define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  222|    684|#define BIO_FLAGS_READ 0x01
  |  |  |  |  ------------------
  |  |  |  |               #define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  223|    684|#define BIO_FLAGS_WRITE 0x02
  |  |  |  |  ------------------
  |  |  |  |               #define BIO_FLAGS_RWS (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  224|    684|#define BIO_FLAGS_IO_SPECIAL 0x04
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   BIO_test_flags(b, (BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY))
  |  |  ------------------
  |  |  |  |  226|    684|#define BIO_FLAGS_SHOULD_RETRY 0x08
  |  |  ------------------
  ------------------
  935|    684|    b->retry_reason = b->next_bio->retry_reason;
  936|    684|}
bio_lib.c:bio_read_intern:
  272|   492k|{
  273|   492k|    int ret;
  274|       |
  275|   492k|    if (b == NULL) {
  ------------------
  |  Branch (275:9): [True: 0, False: 492k]
  ------------------
  276|      0|        ERR_raise(ERR_LIB_BIO, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  277|      0|        return -1;
  278|      0|    }
  279|   492k|    if (b->method == NULL || b->method->bread == NULL) {
  ------------------
  |  Branch (279:9): [True: 0, False: 492k]
  |  Branch (279:30): [True: 0, False: 492k]
  ------------------
  280|      0|        ERR_raise(ERR_LIB_BIO, BIO_R_UNSUPPORTED_METHOD);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  281|      0|        return -2;
  282|      0|    }
  283|       |
  284|   492k|    if (HAS_CALLBACK(b) && ((ret = (int)bio_call_callback(b, BIO_CB_READ, data, dlen, 0, 0L, 1L, NULL)) <= 0))
  ------------------
  |  |   26|   984k|#define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL)
  |  |  ------------------
  |  |  |  Branch (26:26): [True: 0, False: 492k]
  |  |  |  Branch (26:51): [True: 0, False: 492k]
  |  |  ------------------
  ------------------
                  if (HAS_CALLBACK(b) && ((ret = (int)bio_call_callback(b, BIO_CB_READ, data, dlen, 0, 0L, 1L, NULL)) <= 0))
  ------------------
  |  |  301|      0|#define BIO_CB_READ 0x02
  ------------------
  |  Branch (284:28): [True: 0, False: 0]
  ------------------
  285|      0|        return ret;
  286|       |
  287|   492k|    if (!b->init) {
  ------------------
  |  Branch (287:9): [True: 0, False: 492k]
  ------------------
  288|      0|        ERR_raise(ERR_LIB_BIO, BIO_R_UNINITIALIZED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  289|      0|        return -1;
  290|      0|    }
  291|       |
  292|   492k|    ret = b->method->bread(b, data, dlen, readbytes);
  293|       |
  294|   492k|    if (ret > 0)
  ------------------
  |  Branch (294:9): [True: 485k, False: 6.51k]
  ------------------
  295|   485k|        b->num_read += (uint64_t)*readbytes;
  296|       |
  297|       |    /*
  298|       |     * If method->bread() returned 0 when dlen>0, it can be either EOF or
  299|       |     * an error, and we should distinguish them
  300|       |     */
  301|   492k|    if (ret == 0 && dlen > 0 && BIO_eof(b) == 0)
  ------------------
  |  Branch (301:9): [True: 0, False: 492k]
  |  Branch (301:21): [True: 0, False: 0]
  |  Branch (301:33): [True: 0, False: 0]
  ------------------
  302|      0|        ret = -1;
  303|       |
  304|   492k|    if (HAS_CALLBACK(b))
  ------------------
  |  |   26|   492k|#define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL)
  |  |  ------------------
  |  |  |  Branch (26:26): [True: 0, False: 492k]
  |  |  |  Branch (26:51): [True: 0, False: 492k]
  |  |  ------------------
  ------------------
  305|      0|        ret = (int)bio_call_callback(b, BIO_CB_READ | BIO_CB_RETURN, data,
  ------------------
  |  |  301|      0|#define BIO_CB_READ 0x02
  ------------------
                      ret = (int)bio_call_callback(b, BIO_CB_READ | BIO_CB_RETURN, data,
  ------------------
  |  |  313|      0|#define BIO_CB_RETURN 0x80
  ------------------
  306|      0|            dlen, 0, 0L, ret, readbytes);
  307|       |
  308|       |    /* Shouldn't happen */
  309|   492k|    if (ret > 0 && *readbytes > dlen) {
  ------------------
  |  Branch (309:9): [True: 485k, False: 6.51k]
  |  Branch (309:20): [True: 0, False: 485k]
  ------------------
  310|      0|        ERR_raise(ERR_LIB_BIO, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  311|      0|        return -1;
  312|      0|    }
  313|       |
  314|   492k|    return ret;
  315|   492k|}
bio_lib.c:bio_write_intern:
  344|  1.02k|{
  345|  1.02k|    size_t local_written;
  346|  1.02k|    int ret;
  347|       |
  348|  1.02k|    if (written != NULL)
  ------------------
  |  Branch (348:9): [True: 1.02k, False: 0]
  ------------------
  349|  1.02k|        *written = 0;
  350|       |    /*
  351|       |     * b == NULL is not an error but just means that zero bytes are written.
  352|       |     * Do not raise an error here.
  353|       |     */
  354|  1.02k|    if (b == NULL)
  ------------------
  |  Branch (354:9): [True: 0, False: 1.02k]
  ------------------
  355|      0|        return 0;
  356|       |
  357|  1.02k|    if (b->method == NULL || b->method->bwrite == NULL) {
  ------------------
  |  Branch (357:9): [True: 0, False: 1.02k]
  |  Branch (357:30): [True: 0, False: 1.02k]
  ------------------
  358|      0|        ERR_raise(ERR_LIB_BIO, BIO_R_UNSUPPORTED_METHOD);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  359|      0|        return -2;
  360|      0|    }
  361|       |
  362|  1.02k|    if (HAS_CALLBACK(b) && ((ret = (int)bio_call_callback(b, BIO_CB_WRITE, data, dlen, 0, 0L, 1L, NULL)) <= 0))
  ------------------
  |  |   26|  2.05k|#define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL)
  |  |  ------------------
  |  |  |  Branch (26:26): [True: 0, False: 1.02k]
  |  |  |  Branch (26:51): [True: 0, False: 1.02k]
  |  |  ------------------
  ------------------
                  if (HAS_CALLBACK(b) && ((ret = (int)bio_call_callback(b, BIO_CB_WRITE, data, dlen, 0, 0L, 1L, NULL)) <= 0))
  ------------------
  |  |  302|      0|#define BIO_CB_WRITE 0x03
  ------------------
  |  Branch (362:28): [True: 0, False: 0]
  ------------------
  363|      0|        return ret;
  364|       |
  365|  1.02k|    if (!b->init) {
  ------------------
  |  Branch (365:9): [True: 0, False: 1.02k]
  ------------------
  366|      0|        ERR_raise(ERR_LIB_BIO, BIO_R_UNINITIALIZED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  367|      0|        return -1;
  368|      0|    }
  369|       |
  370|  1.02k|    ret = b->method->bwrite(b, data, dlen, &local_written);
  371|       |
  372|  1.02k|    if (ret > 0)
  ------------------
  |  Branch (372:9): [True: 1.02k, False: 0]
  ------------------
  373|  1.02k|        b->num_write += (uint64_t)local_written;
  374|       |
  375|  1.02k|    if (HAS_CALLBACK(b))
  ------------------
  |  |   26|  1.02k|#define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL)
  |  |  ------------------
  |  |  |  Branch (26:26): [True: 0, False: 1.02k]
  |  |  |  Branch (26:51): [True: 0, False: 1.02k]
  |  |  ------------------
  ------------------
  376|      0|        ret = (int)bio_call_callback(b, BIO_CB_WRITE | BIO_CB_RETURN, data,
  ------------------
  |  |  302|      0|#define BIO_CB_WRITE 0x03
  ------------------
                      ret = (int)bio_call_callback(b, BIO_CB_WRITE | BIO_CB_RETURN, data,
  ------------------
  |  |  313|      0|#define BIO_CB_RETURN 0x80
  ------------------
  377|      0|            dlen, 0, 0L, ret, &local_written);
  378|       |
  379|  1.02k|    if (written != NULL)
  ------------------
  |  Branch (379:9): [True: 1.02k, False: 0]
  ------------------
  380|  1.02k|        *written = local_written;
  381|  1.02k|    return ret;
  382|  1.02k|}

BIO_meth_new:
   38|    343|{
   39|    343|    BIO_METHOD *biom = OPENSSL_zalloc(sizeof(BIO_METHOD));
  ------------------
  |  |  109|    343|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   40|       |
   41|    343|    if (biom == NULL
  ------------------
  |  Branch (41:9): [True: 0, False: 343]
  ------------------
   42|    343|        || (biom->name = OPENSSL_strdup(name)) == NULL) {
  ------------------
  |  |  136|    343|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (42:12): [True: 0, False: 343]
  ------------------
   43|      0|        OPENSSL_free(biom);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   44|      0|        return NULL;
   45|      0|    }
   46|    343|    biom->type = type;
   47|    343|    return biom;
   48|    343|}
BIO_meth_free:
   51|    342|{
   52|    342|    if (biom != NULL) {
  ------------------
  |  Branch (52:9): [True: 342, False: 0]
  ------------------
   53|    342|        OPENSSL_free(biom->name);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   54|    342|        OPENSSL_free(biom);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   55|    342|    }
   56|    342|}
bwrite_conv:
   73|  1.02k|{
   74|  1.02k|    int ret;
   75|       |
   76|  1.02k|    if (datal > INT_MAX)
  ------------------
  |  Branch (76:9): [True: 0, False: 1.02k]
  ------------------
   77|      0|        datal = INT_MAX;
   78|       |
   79|  1.02k|    ret = bio->method->bwrite_old(bio, data, (int)datal);
   80|       |
   81|  1.02k|    if (ret <= 0) {
  ------------------
  |  Branch (81:9): [True: 0, False: 1.02k]
  ------------------
   82|      0|        *written = 0;
   83|      0|        return ret;
   84|      0|    }
   85|       |
   86|  1.02k|    *written = (size_t)ret;
   87|       |
   88|  1.02k|    return 1;
   89|  1.02k|}
BIO_meth_set_write:
   93|    342|{
   94|    342|    biom->bwrite_old = bwrite;
   95|    342|    biom->bwrite = bwrite_conv;
   96|    342|    return 1;
   97|    342|}
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|   270k|{
  122|   270k|    int ret;
  123|       |
  124|   270k|    if (datal == 0) {
  ------------------
  |  Branch (124:9): [True: 0, False: 270k]
  ------------------
  125|      0|        *readbytes = 0;
  126|      0|        return 1;
  127|      0|    }
  128|       |
  129|   270k|    if (datal > INT_MAX)
  ------------------
  |  Branch (129:9): [True: 0, False: 270k]
  ------------------
  130|      0|        datal = INT_MAX;
  131|       |
  132|   270k|    ret = bio->method->bread_old(bio, data, (int)datal);
  133|       |
  134|   270k|    bio->flags &= ~BIO_FLAGS_AUTO_EOF;
  ------------------
  |  |   49|   270k|#define BIO_FLAGS_AUTO_EOF 0x80
  ------------------
  135|   270k|    if (ret == 0) {
  ------------------
  |  Branch (135:9): [True: 0, False: 270k]
  ------------------
  136|      0|        if (BIO_ctrl(bio, BIO_CTRL_EOF, 0, NULL) == 0)
  ------------------
  |  |   91|      0|#define BIO_CTRL_EOF 2 /* opt - are we at the eof */
  ------------------
  |  Branch (136:13): [True: 0, False: 0]
  ------------------
  137|      0|            bio->flags |= BIO_FLAGS_AUTO_EOF;
  ------------------
  |  |   49|      0|#define BIO_FLAGS_AUTO_EOF 0x80
  ------------------
  138|      0|        *readbytes = 0;
  139|      0|        return 0;
  140|      0|    }
  141|       |
  142|   270k|    if (ret < 0) {
  ------------------
  |  Branch (142:9): [True: 6.51k, False: 263k]
  ------------------
  143|  6.51k|        *readbytes = 0;
  144|  6.51k|        return ret;
  145|  6.51k|    }
  146|       |
  147|   263k|    *readbytes = (size_t)ret;
  148|       |
  149|   263k|    return 1;
  150|   270k|}
BIO_meth_set_read:
  154|    342|{
  155|    342|    biom->bread_old = bread;
  156|    342|    biom->bread = bread_conv;
  157|    342|    return 1;
  158|    342|}
BIO_meth_set_read_ex:
  162|      1|{
  163|       |    biom->bread_old = NULL;
  164|      1|    biom->bread = bread;
  165|      1|    return 1;
  166|      1|}
BIO_meth_set_puts:
  177|      1|{
  178|      1|    biom->bputs = bputs;
  179|      1|    return 1;
  180|      1|}
BIO_meth_set_gets:
  191|      1|{
  192|      1|    biom->bgets = bgets;
  193|      1|    return 1;
  194|      1|}
BIO_meth_set_ctrl:
  205|    343|{
  206|    343|    biom->ctrl = ctrl;
  207|    343|    return 1;
  208|    343|}
BIO_meth_set_create:
  218|    343|{
  219|    343|    biom->create = create;
  220|    343|    return 1;
  221|    343|}
BIO_meth_set_destroy:
  231|    343|{
  232|    343|    biom->destroy = destroy;
  233|    343|    return 1;
  234|    343|}

BIO_snprintf:
  142|  1.36k|{
  143|  1.36k|    va_list args;
  144|  1.36k|    int ret;
  145|       |
  146|  1.36k|    va_start(args, format);
  147|       |
  148|       |#if defined(_MSC_VER) && _MSC_VER < 1900
  149|       |    ret = _vsnprintf_s(buf, n, _TRUNCATE, format, args);
  150|       |#else
  151|  1.36k|    ret = vsnprintf(buf, n, format, args);
  152|  1.36k|    if ((size_t)ret >= n)
  ------------------
  |  Branch (152:9): [True: 0, False: 1.36k]
  ------------------
  153|      0|        ret = -1;
  154|  1.36k|#endif
  155|  1.36k|    va_end(args);
  156|       |
  157|  1.36k|    return ret;
  158|  1.36k|}
BIO_vsnprintf:
  161|  5.55k|{
  162|  5.55k|    int ret;
  163|       |
  164|       |#if defined(_MSC_VER) && _MSC_VER < 1900
  165|       |    ret = _vsnprintf_s(buf, n, _TRUNCATE, format, args);
  166|       |#else
  167|  5.55k|    ret = vsnprintf(buf, n, format, args);
  168|  5.55k|    if ((size_t)ret >= n)
  ------------------
  |  Branch (168:9): [True: 0, False: 5.55k]
  ------------------
  169|      0|        ret = -1;
  170|  5.55k|#endif
  171|  5.55k|    return ret;
  172|  5.55k|}

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

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

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

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

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

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

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

BN_div:
  213|   155k|{
  214|   155k|    int ret;
  215|       |
  216|   155k|    if (BN_is_zero(divisor)) {
  ------------------
  |  Branch (216:9): [True: 0, False: 155k]
  ------------------
  217|      0|        ERR_raise(ERR_LIB_BN, BN_R_DIV_BY_ZERO);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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|   155k|    if (divisor->d[divisor->top - 1] == 0) {
  ------------------
  |  Branch (226:9): [True: 0, False: 155k]
  ------------------
  227|      0|        ERR_raise(ERR_LIB_BN, BN_R_NOT_INITIALIZED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  228|      0|        return 0;
  229|      0|    }
  230|       |
  231|   155k|    ret = bn_div_fixed_top(dv, rm, num, divisor, ctx);
  232|       |
  233|   155k|    if (ret) {
  ------------------
  |  Branch (233:9): [True: 155k, False: 0]
  ------------------
  234|   155k|        if (dv != NULL)
  ------------------
  |  Branch (234:13): [True: 12.3k, False: 143k]
  ------------------
  235|  12.3k|            bn_correct_top(dv);
  236|   155k|        if (rm != NULL)
  ------------------
  |  Branch (236:13): [True: 143k, False: 12.3k]
  ------------------
  237|   143k|            bn_correct_top(rm);
  238|   155k|    }
  239|       |
  240|   155k|    return ret;
  241|   155k|}
bn_div_fixed_top:
  268|   155k|{
  269|   155k|    int norm_shift, i, j, loop;
  270|   155k|    BIGNUM *tmp, *snum, *sdiv, *res;
  271|   155k|    BN_ULONG *resp, *wnum, *wnumtop;
  272|   155k|    BN_ULONG d0, d1;
  273|   155k|    int num_n, div_n, num_neg;
  274|       |
  275|   155k|    assert(divisor->top > 0 && divisor->d[divisor->top - 1] != 0);
  ------------------
  |  Branch (275:5): [True: 0, False: 155k]
  |  Branch (275:5): [True: 0, False: 0]
  |  Branch (275:5): [True: 155k, False: 0]
  |  Branch (275:5): [True: 155k, False: 0]
  ------------------
  276|       |
  277|   155k|    bn_check_top(num);
  278|   155k|    bn_check_top(divisor);
  279|   155k|    bn_check_top(dv);
  280|   155k|    bn_check_top(rm);
  281|       |
  282|   155k|    BN_CTX_start(ctx);
  283|   155k|    res = (dv == NULL) ? BN_CTX_get(ctx) : dv;
  ------------------
  |  Branch (283:11): [True: 143k, False: 12.3k]
  ------------------
  284|   155k|    tmp = BN_CTX_get(ctx);
  285|   155k|    snum = BN_CTX_get(ctx);
  286|   155k|    sdiv = BN_CTX_get(ctx);
  287|   155k|    if (sdiv == NULL)
  ------------------
  |  Branch (287:9): [True: 0, False: 155k]
  ------------------
  288|      0|        goto err;
  289|       |
  290|       |    /* First we normalise the numbers */
  291|   155k|    if (!BN_copy(sdiv, divisor))
  ------------------
  |  Branch (291:9): [True: 0, False: 155k]
  ------------------
  292|      0|        goto err;
  293|   155k|    norm_shift = bn_left_align(sdiv);
  294|   155k|    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|   155k|    if (!(bn_lshift_fixed_top(snum, num, norm_shift)))
  ------------------
  |  Branch (302:9): [True: 0, False: 155k]
  ------------------
  303|      0|        goto err;
  304|       |
  305|   155k|    div_n = sdiv->top;
  306|   155k|    num_n = snum->top;
  307|       |
  308|   155k|    if (num_n <= div_n) {
  ------------------
  |  Branch (308:9): [True: 26.6k, False: 129k]
  ------------------
  309|       |        /* caller didn't pad dividend -> no constant-time guarantee... */
  310|  26.6k|        if (bn_wexpand(snum, div_n + 1) == NULL)
  ------------------
  |  Branch (310:13): [True: 0, False: 26.6k]
  ------------------
  311|      0|            goto err;
  312|  26.6k|        memset(&(snum->d[num_n]), 0, (div_n - num_n + 1) * sizeof(BN_ULONG));
  313|  26.6k|        snum->top = num_n = div_n + 1;
  314|  26.6k|    }
  315|       |
  316|   155k|    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|   155k|    wnum = &(snum->d[loop]);
  322|   155k|    wnumtop = &(snum->d[num_n - 1]);
  323|       |
  324|       |    /* Get the top 2 words of sdiv */
  325|   155k|    d0 = sdiv->d[div_n - 1];
  326|   155k|    d1 = (div_n == 1) ? 0 : sdiv->d[div_n - 2];
  ------------------
  |  Branch (326:10): [True: 36.9k, False: 119k]
  ------------------
  327|       |
  328|       |    /* Setup quotient */
  329|   155k|    if (!bn_wexpand(res, loop))
  ------------------
  |  Branch (329:9): [True: 0, False: 155k]
  ------------------
  330|      0|        goto err;
  331|   155k|    num_neg = num->neg;
  332|   155k|    res->neg = (num_neg ^ divisor->neg);
  333|   155k|    res->top = loop;
  334|   155k|    res->flags |= BN_FLG_FIXED_TOP;
  ------------------
  |  |  213|   155k|#define BN_FLG_FIXED_TOP 0
  ------------------
  335|   155k|    resp = &(res->d[loop]);
  336|       |
  337|       |    /* space for temp */
  338|   155k|    if (!bn_wexpand(tmp, (div_n + 1)))
  ------------------
  |  Branch (338:9): [True: 0, False: 155k]
  ------------------
  339|      0|        goto err;
  340|       |
  341|   436k|    for (i = 0; i < loop; i++, wnumtop--) {
  ------------------
  |  Branch (341:17): [True: 280k, False: 155k]
  ------------------
  342|   280k|        BN_ULONG q, l0;
  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|   280k|        BN_ULONG n0, n1, rem = 0;
  351|       |
  352|   280k|        n0 = wnumtop[0];
  353|   280k|        n1 = wnumtop[-1];
  354|   280k|        if (n0 == d0)
  ------------------
  |  Branch (354:13): [True: 0, False: 280k]
  ------------------
  355|      0|            q = BN_MASK2;
  ------------------
  |  |   77|      0|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  356|   280k|        else { /* n0 < d0 */
  357|   280k|            BN_ULONG n2 = (wnumtop == wnum) ? 0 : wnumtop[-2];
  ------------------
  |  Branch (357:27): [True: 73.8k, False: 206k]
  ------------------
  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|   280k|            BN_ULONG t2l, t2h;
  387|       |
  388|   280k|            q = bn_div_words(n0, n1, d0);
  389|   280k|#ifndef REMAINDER_IS_ALREADY_CALCULATED
  390|   280k|            rem = (n1 - q * d0) & BN_MASK2;
  ------------------
  |  |   77|   280k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  391|   280k|#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|   280k|            {
  400|   280k|                BN_ULONG ql, qh;
  401|   280k|                t2l = LBITS(d1);
  ------------------
  |  |  560|   280k|#define LBITS(a) ((a) & BN_MASK2l)
  |  |  ------------------
  |  |  |  |   78|   280k|#define BN_MASK2l (0xffffffffL)
  |  |  ------------------
  ------------------
  402|   280k|                t2h = HBITS(d1);
  ------------------
  |  |  561|   280k|#define HBITS(a) (((a) >> BN_BITS4) & BN_MASK2l)
  |  |  ------------------
  |  |  |  |   76|   280k|#define BN_BITS4 32
  |  |  ------------------
  |  |               #define HBITS(a) (((a) >> BN_BITS4) & BN_MASK2l)
  |  |  ------------------
  |  |  |  |   78|   280k|#define BN_MASK2l (0xffffffffL)
  |  |  ------------------
  ------------------
  403|   280k|                ql = LBITS(q);
  ------------------
  |  |  560|   280k|#define LBITS(a) ((a) & BN_MASK2l)
  |  |  ------------------
  |  |  |  |   78|   280k|#define BN_MASK2l (0xffffffffL)
  |  |  ------------------
  ------------------
  404|   280k|                qh = HBITS(q);
  ------------------
  |  |  561|   280k|#define HBITS(a) (((a) >> BN_BITS4) & BN_MASK2l)
  |  |  ------------------
  |  |  |  |   76|   280k|#define BN_BITS4 32
  |  |  ------------------
  |  |               #define HBITS(a) (((a) >> BN_BITS4) & BN_MASK2l)
  |  |  ------------------
  |  |  |  |   78|   280k|#define BN_MASK2l (0xffffffffL)
  |  |  ------------------
  ------------------
  405|   280k|                mul64(t2l, t2h, ql, qh); /* t2=(BN_ULLONG)d1*q; */
  ------------------
  |  |  569|   280k|    {                                      \
  |  |  570|   280k|        BN_ULONG m, m1, lt, ht;            \
  |  |  571|   280k|                                           \
  |  |  572|   280k|        lt = l;                            \
  |  |  573|   280k|        ht = h;                            \
  |  |  574|   280k|        m = (bh) * (lt);                   \
  |  |  575|   280k|        lt = (bl) * (lt);                  \
  |  |  576|   280k|        m1 = (bl) * (ht);                  \
  |  |  577|   280k|        ht = (bh) * (ht);                  \
  |  |  578|   280k|        m = (m + m1) & BN_MASK2;           \
  |  |  ------------------
  |  |  |  |   77|   280k|#define BN_MASK2 (0xffffffffffffffffL)
  |  |  ------------------
  |  |  579|   280k|        ht += L2HBITS((BN_ULONG)(m < m1)); \
  |  |  ------------------
  |  |  |  |  562|   280k|#define L2HBITS(a) (((a) << BN_BITS4) & BN_MASK2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|   280k|#define BN_BITS4 32
  |  |  |  |  ------------------
  |  |  |  |               #define L2HBITS(a) (((a) << BN_BITS4) & BN_MASK2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   77|   280k|#define BN_MASK2 (0xffffffffffffffffL)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  580|   280k|        ht += HBITS(m);                    \
  |  |  ------------------
  |  |  |  |  561|   280k|#define HBITS(a) (((a) >> BN_BITS4) & BN_MASK2l)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|   280k|#define BN_BITS4 32
  |  |  |  |  ------------------
  |  |  |  |               #define HBITS(a) (((a) >> BN_BITS4) & BN_MASK2l)
  |  |  |  |  ------------------
  |  |  |  |  |  |   78|   280k|#define BN_MASK2l (0xffffffffL)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  581|   280k|        m1 = L2HBITS(m);                   \
  |  |  ------------------
  |  |  |  |  562|   280k|#define L2HBITS(a) (((a) << BN_BITS4) & BN_MASK2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   76|   280k|#define BN_BITS4 32
  |  |  |  |  ------------------
  |  |  |  |               #define L2HBITS(a) (((a) << BN_BITS4) & BN_MASK2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   77|   280k|#define BN_MASK2 (0xffffffffffffffffL)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  582|   280k|        lt = (lt + m1) & BN_MASK2;         \
  |  |  ------------------
  |  |  |  |   77|   280k|#define BN_MASK2 (0xffffffffffffffffL)
  |  |  ------------------
  |  |  583|   280k|        ht += (lt < m1);                   \
  |  |  584|   280k|        (l) = lt;                          \
  |  |  585|   280k|        (h) = ht;                          \
  |  |  586|   280k|    }
  ------------------
  406|   280k|            }
  407|   280k|#endif
  408|       |
  409|   280k|            for (;;) {
  410|   280k|                if ((t2h < rem) || ((t2h == rem) && (t2l <= n2)))
  ------------------
  |  Branch (410:21): [True: 202k, False: 77.9k]
  |  Branch (410:37): [True: 76.9k, False: 1.02k]
  |  Branch (410:53): [True: 76.9k, False: 0]
  ------------------
  411|   279k|                    break;
  412|  1.02k|                q--;
  413|  1.02k|                rem += d0;
  414|  1.02k|                if (rem < d0)
  ------------------
  |  Branch (414:21): [True: 1.02k, False: 0]
  ------------------
  415|  1.02k|                    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|   280k|#endif /* !BN_LLONG */
  421|   280k|        }
  422|   280k|#endif /* !BN_DIV3W */
  423|       |
  424|   280k|        l0 = bn_mul_words(tmp->d, sdiv->d, div_n, q);
  425|   280k|        tmp->d[div_n] = l0;
  426|   280k|        wnum--;
  427|       |        /*
  428|       |         * ignore top values of the bignums just sub the two BN_ULONG arrays
  429|       |         * with bn_sub_words
  430|       |         */
  431|   280k|        l0 = bn_sub_words(wnum, wnum, tmp->d, div_n + 1);
  432|   280k|        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.59M|        for (l0 = 0 - l0, j = 0; j < div_n; j++)
  ------------------
  |  Branch (438:34): [True: 1.31M, False: 280k]
  ------------------
  439|  1.31M|            tmp->d[j] = sdiv->d[j] & l0;
  440|   280k|        l0 = bn_add_words(wnum, wnum, tmp->d, div_n);
  441|   280k|        (*wnumtop) += l0;
  442|   280k|        assert((*wnumtop) == 0);
  ------------------
  |  Branch (442:9): [True: 0, False: 280k]
  |  Branch (442:9): [True: 280k, False: 0]
  ------------------
  443|       |
  444|       |        /* store part of the result */
  445|   280k|        *--resp = q;
  446|   280k|    }
  447|       |    /* snum holds remainder, it's as wide as divisor */
  448|   155k|    snum->neg = num_neg;
  449|   155k|    snum->top = div_n;
  450|   155k|    snum->flags |= BN_FLG_FIXED_TOP;
  ------------------
  |  |  213|   155k|#define BN_FLG_FIXED_TOP 0
  ------------------
  451|       |
  452|   155k|    if (rm != NULL && bn_rshift_fixed_top(rm, snum, norm_shift) == 0)
  ------------------
  |  Branch (452:9): [True: 143k, False: 12.3k]
  |  Branch (452:23): [True: 0, False: 143k]
  ------------------
  453|      0|        goto err;
  454|       |
  455|   155k|    BN_CTX_end(ctx);
  456|   155k|    return 1;
  457|      0|err:
  458|      0|    bn_check_top(rm);
  459|      0|    BN_CTX_end(ctx);
  460|      0|    return 0;
  461|   155k|}
bn_div.c:bn_left_align:
  142|   155k|{
  143|   155k|    BN_ULONG *d = num->d, n, m, rmask;
  144|   155k|    int top = num->top;
  145|   155k|    int rshift = BN_num_bits_word(d[top - 1]), lshift, i;
  146|       |
  147|   155k|    lshift = BN_BITS2 - rshift;
  ------------------
  |  |   54|   155k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   155k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  148|   155k|    rshift %= BN_BITS2; /* say no to undefined behaviour */
  ------------------
  |  |   54|   155k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   155k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  149|   155k|    rmask = (BN_ULONG)0 - rshift; /* rmask = 0 - (rshift != 0) */
  150|   155k|    rmask |= rmask >> 8;
  151|       |
  152|   899k|    for (i = 0, m = 0; i < top; i++) {
  ------------------
  |  Branch (152:24): [True: 743k, False: 155k]
  ------------------
  153|   743k|        n = d[i];
  154|   743k|        d[i] = ((n << lshift) | m) & BN_MASK2;
  ------------------
  |  |   77|   743k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  155|   743k|        m = (n >> rshift) & rmask;
  156|   743k|    }
  157|       |
  158|   155k|    return lshift;
  159|   155k|}

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|  12.3k|{
  201|  12.3k|    BIGNUM *A, *B, *X, *Y, *M, *D, *T, *R = NULL;
  202|  12.3k|    BIGNUM *ret = NULL;
  203|  12.3k|    int sign;
  204|       |
  205|       |    /* This is invalid input so we don't worry about constant time here */
  206|  12.3k|    if (BN_abs_is_word(n, 1) || BN_is_zero(n)) {
  ------------------
  |  Branch (206:9): [True: 0, False: 12.3k]
  |  Branch (206:33): [True: 0, False: 12.3k]
  ------------------
  207|      0|        *pnoinv = 1;
  208|      0|        return NULL;
  209|      0|    }
  210|       |
  211|  12.3k|    *pnoinv = 0;
  212|       |
  213|  12.3k|    if ((BN_get_flags(a, BN_FLG_CONSTTIME) != 0)
  ------------------
  |  |   67|  12.3k|#define BN_FLG_CONSTTIME 0x04
  ------------------
  |  Branch (213:9): [True: 0, False: 12.3k]
  ------------------
  214|  12.3k|        || (BN_get_flags(n, BN_FLG_CONSTTIME) != 0)) {
  ------------------
  |  |   67|  12.3k|#define BN_FLG_CONSTTIME 0x04
  ------------------
  |  Branch (214:12): [True: 0, False: 12.3k]
  ------------------
  215|      0|        return bn_mod_inverse_no_branch(in, a, n, ctx, pnoinv);
  216|      0|    }
  217|       |
  218|  12.3k|    bn_check_top(a);
  219|  12.3k|    bn_check_top(n);
  220|       |
  221|  12.3k|    BN_CTX_start(ctx);
  222|  12.3k|    A = BN_CTX_get(ctx);
  223|  12.3k|    B = BN_CTX_get(ctx);
  224|  12.3k|    X = BN_CTX_get(ctx);
  225|  12.3k|    D = BN_CTX_get(ctx);
  226|  12.3k|    M = BN_CTX_get(ctx);
  227|  12.3k|    Y = BN_CTX_get(ctx);
  228|  12.3k|    T = BN_CTX_get(ctx);
  229|  12.3k|    if (T == NULL)
  ------------------
  |  Branch (229:9): [True: 0, False: 12.3k]
  ------------------
  230|      0|        goto err;
  231|       |
  232|  12.3k|    if (in == NULL)
  ------------------
  |  Branch (232:9): [True: 0, False: 12.3k]
  ------------------
  233|      0|        R = BN_new();
  234|  12.3k|    else
  235|  12.3k|        R = in;
  236|  12.3k|    if (R == NULL)
  ------------------
  |  Branch (236:9): [True: 0, False: 12.3k]
  ------------------
  237|      0|        goto err;
  238|       |
  239|  12.3k|    if (!BN_one(X))
  ------------------
  |  |  196|  12.3k|#define BN_one(a) (BN_set_word((a), 1))
  ------------------
  |  Branch (239:9): [True: 0, False: 12.3k]
  ------------------
  240|      0|        goto err;
  241|  12.3k|    BN_zero(Y);
  ------------------
  |  |  201|  12.3k|#define BN_zero(a) BN_zero_ex(a)
  ------------------
  242|  12.3k|    if (BN_copy(B, a) == NULL)
  ------------------
  |  Branch (242:9): [True: 0, False: 12.3k]
  ------------------
  243|      0|        goto err;
  244|  12.3k|    if (BN_copy(A, n) == NULL)
  ------------------
  |  Branch (244:9): [True: 0, False: 12.3k]
  ------------------
  245|      0|        goto err;
  246|  12.3k|    A->neg = 0;
  247|  12.3k|    if (B->neg || (BN_ucmp(B, A) >= 0)) {
  ------------------
  |  Branch (247:9): [True: 0, False: 12.3k]
  |  Branch (247:19): [True: 12.3k, False: 0]
  ------------------
  248|  12.3k|        if (!BN_nnmod(B, B, A, ctx))
  ------------------
  |  Branch (248:13): [True: 0, False: 12.3k]
  ------------------
  249|      0|            goto err;
  250|  12.3k|    }
  251|  12.3k|    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|  12.3k|    if (BN_is_odd(n) && (BN_num_bits(n) <= 2048)) {
  ------------------
  |  Branch (260:9): [True: 12.3k, False: 0]
  |  Branch (260:25): [True: 12.3k, 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|  12.3k|        int shift;
  268|       |
  269|   800k|        while (!BN_is_zero(B)) {
  ------------------
  |  Branch (269:16): [True: 787k, False: 12.3k]
  ------------------
  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|   787k|            shift = 0;
  283|  1.16M|            while (!BN_is_bit_set(B, shift)) { /* note that 0 < B */
  ------------------
  |  Branch (283:20): [True: 381k, False: 787k]
  ------------------
  284|   381k|                shift++;
  285|       |
  286|   381k|                if (BN_is_odd(X)) {
  ------------------
  |  Branch (286:21): [True: 198k, False: 183k]
  ------------------
  287|   198k|                    if (!BN_uadd(X, X, n))
  ------------------
  |  Branch (287:25): [True: 0, False: 198k]
  ------------------
  288|      0|                        goto err;
  289|   198k|                }
  290|       |                /*
  291|       |                 * now X is even, so we can easily divide it by two
  292|       |                 */
  293|   381k|                if (!BN_rshift1(X, X))
  ------------------
  |  Branch (293:21): [True: 0, False: 381k]
  ------------------
  294|      0|                    goto err;
  295|   381k|            }
  296|   787k|            if (shift > 0) {
  ------------------
  |  Branch (296:17): [True: 381k, False: 406k]
  ------------------
  297|   381k|                if (!BN_rshift(B, B, shift))
  ------------------
  |  Branch (297:21): [True: 0, False: 381k]
  ------------------
  298|      0|                    goto err;
  299|   381k|            }
  300|       |
  301|       |            /*
  302|       |             * Same for A and Y.  Afterwards, (2) still holds.
  303|       |             */
  304|   787k|            shift = 0;
  305|  1.18M|            while (!BN_is_bit_set(A, shift)) { /* note that 0 < A */
  ------------------
  |  Branch (305:20): [True: 393k, False: 787k]
  ------------------
  306|   393k|                shift++;
  307|       |
  308|   393k|                if (BN_is_odd(Y)) {
  ------------------
  |  Branch (308:21): [True: 186k, False: 207k]
  ------------------
  309|   186k|                    if (!BN_uadd(Y, Y, n))
  ------------------
  |  Branch (309:25): [True: 0, False: 186k]
  ------------------
  310|      0|                        goto err;
  311|   186k|                }
  312|       |                /* now Y is even */
  313|   393k|                if (!BN_rshift1(Y, Y))
  ------------------
  |  Branch (313:21): [True: 0, False: 393k]
  ------------------
  314|      0|                    goto err;
  315|   393k|            }
  316|   787k|            if (shift > 0) {
  ------------------
  |  Branch (316:17): [True: 393k, False: 393k]
  ------------------
  317|   393k|                if (!BN_rshift(A, A, shift))
  ------------------
  |  Branch (317:21): [True: 0, False: 393k]
  ------------------
  318|      0|                    goto err;
  319|   393k|            }
  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|   787k|            if (BN_ucmp(B, A) >= 0) {
  ------------------
  |  Branch (333:17): [True: 393k, False: 393k]
  ------------------
  334|       |                /* -sign*(X + Y)*a == B - A  (mod |n|) */
  335|   393k|                if (!BN_uadd(X, X, Y))
  ------------------
  |  Branch (335:21): [True: 0, False: 393k]
  ------------------
  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|   393k|                if (!BN_usub(B, B, A))
  ------------------
  |  Branch (341:21): [True: 0, False: 393k]
  ------------------
  342|      0|                    goto err;
  343|   393k|            } else {
  344|       |                /*  sign*(X + Y)*a == A - B  (mod |n|) */
  345|   393k|                if (!BN_uadd(Y, Y, X))
  ------------------
  |  Branch (345:21): [True: 0, False: 393k]
  ------------------
  346|      0|                    goto err;
  347|       |                /*
  348|       |                 * as above, BN_mod_add_quick(Y, Y, X, n) would slow things down
  349|       |                 */
  350|   393k|                if (!BN_usub(A, A, B))
  ------------------
  |  Branch (350:21): [True: 0, False: 393k]
  ------------------
  351|      0|                    goto err;
  352|   393k|            }
  353|   787k|        }
  354|  12.3k|    } 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|  12.3k|    if (sign < 0) {
  ------------------
  |  Branch (486:9): [True: 12.3k, False: 0]
  ------------------
  487|  12.3k|        if (!BN_sub(Y, n, Y))
  ------------------
  |  Branch (487:13): [True: 0, False: 12.3k]
  ------------------
  488|      0|            goto err;
  489|  12.3k|    }
  490|       |    /* Now  Y*a  ==  A  (mod |n|).  */
  491|       |
  492|  12.3k|    if (BN_is_one(A)) {
  ------------------
  |  Branch (492:9): [True: 12.3k, False: 0]
  ------------------
  493|       |        /* Y*a == 1  (mod |n|) */
  494|  12.3k|        if (!Y->neg && BN_ucmp(Y, n) < 0) {
  ------------------
  |  Branch (494:13): [True: 0, False: 12.3k]
  |  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|  12.3k|        } else {
  498|  12.3k|            if (!BN_nnmod(R, Y, n, ctx))
  ------------------
  |  Branch (498:17): [True: 0, False: 12.3k]
  ------------------
  499|      0|                goto err;
  500|  12.3k|        }
  501|  12.3k|    } else {
  502|      0|        *pnoinv = 1;
  503|      0|        goto err;
  504|      0|    }
  505|  12.3k|    ret = R;
  506|  12.3k|err:
  507|  12.3k|    if ((ret == NULL) && (in == NULL))
  ------------------
  |  Branch (507:9): [True: 0, False: 12.3k]
  |  Branch (507:26): [True: 0, False: 0]
  ------------------
  508|      0|        BN_free(R);
  509|  12.3k|    BN_CTX_end(ctx);
  510|  12.3k|    bn_check_top(ret);
  511|  12.3k|    return ret;
  512|  12.3k|}
BN_mod_inverse:
  517|  12.3k|{
  518|  12.3k|    BN_CTX *new_ctx = NULL;
  519|  12.3k|    BIGNUM *rv;
  520|  12.3k|    int noinv = 0;
  521|       |
  522|  12.3k|    if (ctx == NULL) {
  ------------------
  |  Branch (522:9): [True: 0, False: 12.3k]
  ------------------
  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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  526|      0|            return NULL;
  527|      0|        }
  528|      0|    }
  529|       |
  530|  12.3k|    rv = int_bn_mod_inverse(in, a, n, ctx, &noinv);
  531|  12.3k|    if (noinv)
  ------------------
  |  Branch (531:9): [True: 0, False: 12.3k]
  ------------------
  532|       |        ERR_raise(ERR_LIB_BN, BN_R_NO_INVERSE);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  533|  12.3k|    BN_CTX_free(new_ctx);
  534|  12.3k|    return rv;
  535|  12.3k|}

BN_value_one:
   83|  27.7k|{
   84|  27.7k|    static const BN_ULONG data_one = 1L;
   85|  27.7k|    static const BIGNUM const_one = {
   86|  27.7k|        (BN_ULONG *)&data_one, 1, 1, 0, BN_FLG_STATIC_DATA
  ------------------
  |  |   59|  27.7k|#define BN_FLG_STATIC_DATA 0x02
  ------------------
   87|  27.7k|    };
   88|       |
   89|  27.7k|    return &const_one;
   90|  27.7k|}
BN_num_bits_word:
  102|   397k|{
  103|   397k|    BN_ULONG x, mask;
  104|   397k|    int bits = (l != 0);
  105|       |
  106|   397k|#if BN_BITS2 > 32
  107|   397k|    x = l >> 32;
  108|   397k|    mask = (0 - x) & BN_MASK2;
  ------------------
  |  |   77|   397k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  109|   397k|    mask = (0 - (mask >> (BN_BITS2 - 1)));
  ------------------
  |  |   54|   397k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   397k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  110|   397k|    bits += 32 & mask;
  111|   397k|    l ^= (x ^ l) & mask;
  112|   397k|#endif
  113|       |
  114|   397k|    x = l >> 16;
  115|   397k|    mask = (0 - x) & BN_MASK2;
  ------------------
  |  |   77|   397k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  116|   397k|    mask = (0 - (mask >> (BN_BITS2 - 1)));
  ------------------
  |  |   54|   397k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   397k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  117|   397k|    bits += 16 & mask;
  118|   397k|    l ^= (x ^ l) & mask;
  119|       |
  120|   397k|    x = l >> 8;
  121|   397k|    mask = (0 - x) & BN_MASK2;
  ------------------
  |  |   77|   397k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  122|   397k|    mask = (0 - (mask >> (BN_BITS2 - 1)));
  ------------------
  |  |   54|   397k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   397k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  123|   397k|    bits += 8 & mask;
  124|   397k|    l ^= (x ^ l) & mask;
  125|       |
  126|   397k|    x = l >> 4;
  127|   397k|    mask = (0 - x) & BN_MASK2;
  ------------------
  |  |   77|   397k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  128|   397k|    mask = (0 - (mask >> (BN_BITS2 - 1)));
  ------------------
  |  |   54|   397k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   397k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  129|   397k|    bits += 4 & mask;
  130|   397k|    l ^= (x ^ l) & mask;
  131|       |
  132|   397k|    x = l >> 2;
  133|   397k|    mask = (0 - x) & BN_MASK2;
  ------------------
  |  |   77|   397k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  134|   397k|    mask = (0 - (mask >> (BN_BITS2 - 1)));
  ------------------
  |  |   54|   397k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   397k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  135|   397k|    bits += 2 & mask;
  136|   397k|    l ^= (x ^ l) & mask;
  137|       |
  138|   397k|    x = l >> 1;
  139|   397k|    mask = (0 - x) & BN_MASK2;
  ------------------
  |  |   77|   397k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  140|   397k|    mask = (0 - (mask >> (BN_BITS2 - 1)));
  ------------------
  |  |   54|   397k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   397k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  141|   397k|    bits += 1 & mask;
  142|       |
  143|   397k|    return bits;
  144|   397k|}
BN_num_bits:
  179|   241k|{
  180|   241k|    int i = a->top - 1;
  181|   241k|    bn_check_top(a);
  182|       |
  183|   241k|    if (a->flags & BN_FLG_CONSTTIME) {
  ------------------
  |  |   67|   241k|#define BN_FLG_CONSTTIME 0x04
  ------------------
  |  Branch (183:9): [True: 0, False: 241k]
  ------------------
  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|   241k|    if (ossl_unlikely(BN_is_zero(a)))
  ------------------
  |  |   23|   241k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 241k]
  |  |  ------------------
  ------------------
  197|      0|        return 0;
  198|       |
  199|   241k|    return ((i * BN_BITS2) + BN_num_bits_word(a->d[i]));
  ------------------
  |  |   54|   241k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|   241k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  200|   241k|}
BN_clear_free:
  213|   587k|{
  214|   587k|    if (a == NULL)
  ------------------
  |  Branch (214:9): [True: 182k, False: 405k]
  ------------------
  215|   182k|        return;
  216|   405k|    if (a->d != NULL && !BN_get_flags(a, BN_FLG_STATIC_DATA))
  ------------------
  |  |   59|   376k|#define BN_FLG_STATIC_DATA 0x02
  ------------------
  |  Branch (216:9): [True: 376k, False: 28.7k]
  |  Branch (216:25): [True: 376k, False: 0]
  ------------------
  217|   376k|        bn_free_d(a, 1);
  218|   405k|    if (BN_get_flags(a, BN_FLG_MALLOCED)) {
  ------------------
  |  |   58|   405k|#define BN_FLG_MALLOCED 0x01
  ------------------
  |  Branch (218:9): [True: 0, False: 405k]
  ------------------
  219|      0|        OPENSSL_cleanse(a, sizeof(*a));
  220|      0|        OPENSSL_free(a);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  221|      0|    }
  222|   405k|}
BN_free:
  225|   450k|{
  226|   450k|    if (a == NULL)
  ------------------
  |  Branch (226:9): [True: 19.2k, False: 431k]
  ------------------
  227|  19.2k|        return;
  228|   431k|    if (!BN_get_flags(a, BN_FLG_STATIC_DATA))
  ------------------
  |  |   59|   431k|#define BN_FLG_STATIC_DATA 0x02
  ------------------
  |  Branch (228:9): [True: 431k, False: 0]
  ------------------
  229|   431k|        bn_free_d(a, 0);
  230|   431k|    if (a->flags & BN_FLG_MALLOCED)
  ------------------
  |  |   58|   431k|#define BN_FLG_MALLOCED 0x01
  ------------------
  |  Branch (230:9): [True: 431k, False: 0]
  ------------------
  231|   431k|        OPENSSL_free(a);
  ------------------
  |  |  132|   431k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  232|   431k|}
bn_init:
  235|   722k|{
  236|   722k|    static BIGNUM nilbn;
  237|       |
  238|   722k|    *a = nilbn;
  239|   722k|    bn_check_top(a);
  240|   722k|}
BN_new:
  243|   431k|{
  244|   431k|    BIGNUM *ret;
  245|       |
  246|   431k|    if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL)
  ------------------
  |  |  109|   431k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (246:9): [True: 0, False: 431k]
  ------------------
  247|      0|        return NULL;
  248|   431k|    ret->flags = BN_FLG_MALLOCED;
  ------------------
  |  |   58|   431k|#define BN_FLG_MALLOCED 0x01
  ------------------
  249|   431k|    bn_check_top(ret);
  250|   431k|    return ret;
  251|   431k|}
bn_expand2:
  299|  1.02M|{
  300|  1.02M|    if (ossl_likely(words > b->dmax)) {
  ------------------
  |  |   22|  1.02M|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 1.02M, False: 0]
  |  |  ------------------
  ------------------
  301|  1.02M|        BN_ULONG *a = bn_expand_internal(b, words);
  302|       |
  303|  1.02M|        if (ossl_unlikely(!a))
  ------------------
  |  |   23|  1.02M|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.02M]
  |  |  ------------------
  ------------------
  304|      0|            return NULL;
  305|  1.02M|        if (b->d != NULL)
  ------------------
  |  Branch (305:13): [True: 212k, False: 808k]
  ------------------
  306|   212k|            bn_free_d(b, 1);
  307|  1.02M|        b->d = a;
  308|  1.02M|        b->dmax = words;
  309|  1.02M|    }
  310|       |
  311|  1.02M|    return b;
  312|  1.02M|}
BN_dup:
  315|  1.02k|{
  316|  1.02k|    BIGNUM *t;
  317|       |
  318|  1.02k|    if (a == NULL)
  ------------------
  |  Branch (318:9): [True: 0, False: 1.02k]
  ------------------
  319|      0|        return NULL;
  320|  1.02k|    bn_check_top(a);
  321|       |
  322|  1.02k|    t = BN_get_flags(a, BN_FLG_SECURE) ? BN_secure_new() : BN_new();
  ------------------
  |  |   68|  1.02k|#define BN_FLG_SECURE 0x08
  ------------------
  |  Branch (322:9): [True: 0, False: 1.02k]
  ------------------
  323|  1.02k|    if (t == NULL)
  ------------------
  |  Branch (323:9): [True: 0, False: 1.02k]
  ------------------
  324|      0|        return NULL;
  325|  1.02k|    if (!BN_copy(t, a)) {
  ------------------
  |  Branch (325:9): [True: 0, False: 1.02k]
  ------------------
  326|      0|        BN_free(t);
  327|      0|        return NULL;
  328|      0|    }
  329|  1.02k|    bn_check_top(t);
  330|  1.02k|    return t;
  331|  1.02k|}
BN_copy:
  334|   463k|{
  335|   463k|    int bn_words;
  336|       |
  337|   463k|    bn_check_top(b);
  338|       |
  339|   463k|    bn_words = BN_get_flags(b, BN_FLG_CONSTTIME) ? b->dmax : b->top;
  ------------------
  |  |   67|   463k|#define BN_FLG_CONSTTIME 0x04
  ------------------
  |  Branch (339:16): [True: 0, False: 463k]
  ------------------
  340|       |
  341|   463k|    if (ossl_unlikely(a == b))
  ------------------
  |  |   23|   463k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 463k]
  |  |  ------------------
  ------------------
  342|      0|        return a;
  343|   463k|    if (ossl_unlikely(bn_wexpand(a, bn_words) == NULL))
  ------------------
  |  |   23|   463k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 463k]
  |  |  ------------------
  ------------------
  344|      0|        return NULL;
  345|       |
  346|   463k|    if (ossl_likely(b->top > 0))
  ------------------
  |  |   22|   463k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 449k, False: 14.3k]
  |  |  ------------------
  ------------------
  347|   449k|        memcpy(a->d, b->d, sizeof(b->d[0]) * bn_words);
  348|       |
  349|   463k|    a->neg = b->neg;
  350|   463k|    a->top = b->top;
  351|   463k|    a->flags |= b->flags & BN_FLG_FIXED_TOP;
  ------------------
  |  |  213|   463k|#define BN_FLG_FIXED_TOP 0
  ------------------
  352|   463k|    bn_check_top(a);
  353|   463k|    return a;
  354|   463k|}
BN_set_word:
  415|  26.6k|{
  416|  26.6k|    bn_check_top(a);
  417|  26.6k|    if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
  ------------------
  |  Branch (417:9): [True: 0, False: 26.6k]
  ------------------
  418|      0|        return 0;
  419|  26.6k|    a->neg = 0;
  420|  26.6k|    a->d[0] = w;
  421|  26.6k|    a->top = (w ? 1 : 0);
  ------------------
  |  Branch (421:15): [True: 26.6k, False: 0]
  ------------------
  422|  26.6k|    a->flags &= ~BN_FLG_FIXED_TOP;
  ------------------
  |  |  213|  26.6k|#define BN_FLG_FIXED_TOP 0
  ------------------
  423|  26.6k|    bn_check_top(a);
  424|  26.6k|    return 1;
  425|  26.6k|}
BN_bin2bn:
  535|   201k|{
  536|   201k|    return bin2bn(s, len, ret, BIG, UNSIGNED);
  537|   201k|}
BN_ucmp:
  707|  1.02M|{
  708|  1.02M|    int i;
  709|  1.02M|    BN_ULONG t1, t2, *ap, *bp;
  710|       |
  711|  1.02M|    ap = a->d;
  712|  1.02M|    bp = b->d;
  713|       |
  714|  1.02M|    if (BN_get_flags(a, BN_FLG_CONSTTIME)
  ------------------
  |  |   67|  1.02M|#define BN_FLG_CONSTTIME 0x04
  ------------------
  |  Branch (714:9): [True: 0, False: 1.02M]
  ------------------
  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|  1.02M|    bn_check_top(a);
  728|  1.02M|    bn_check_top(b);
  729|       |
  730|  1.02M|    i = a->top - b->top;
  731|  1.02M|    if (i != 0)
  ------------------
  |  Branch (731:9): [True: 98.4k, False: 927k]
  ------------------
  732|  98.4k|        return i;
  733|       |
  734|  1.09M|    for (i = a->top - 1; i >= 0; i--) {
  ------------------
  |  Branch (734:26): [True: 1.05M, False: 38.9k]
  ------------------
  735|  1.05M|        t1 = ap[i];
  736|  1.05M|        t2 = bp[i];
  737|  1.05M|        if (t1 != t2)
  ------------------
  |  Branch (737:13): [True: 888k, False: 170k]
  ------------------
  738|   888k|            return ((t1 > t2) ? 1 : -1);
  ------------------
  |  Branch (738:21): [True: 381k, False: 506k]
  ------------------
  739|  1.05M|    }
  740|  38.9k|    return 0;
  741|   927k|}
BN_cmp:
  744|  50.2k|{
  745|  50.2k|    int i;
  746|  50.2k|    int gt, lt;
  747|  50.2k|    BN_ULONG t1, t2;
  748|       |
  749|  50.2k|    if ((a == NULL) || (b == NULL)) {
  ------------------
  |  Branch (749:9): [True: 0, False: 50.2k]
  |  Branch (749:24): [True: 0, False: 50.2k]
  ------------------
  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|  50.2k|    bn_check_top(a);
  759|  50.2k|    bn_check_top(b);
  760|       |
  761|  50.2k|    if (a->neg != b->neg) {
  ------------------
  |  Branch (761:9): [True: 0, False: 50.2k]
  ------------------
  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|  50.2k|    if (a->neg == 0) {
  ------------------
  |  Branch (767:9): [True: 50.2k, False: 0]
  ------------------
  768|  50.2k|        gt = 1;
  769|  50.2k|        lt = -1;
  770|  50.2k|    } else {
  771|      0|        gt = -1;
  772|      0|        lt = 1;
  773|      0|    }
  774|       |
  775|  50.2k|    if (a->top > b->top)
  ------------------
  |  Branch (775:9): [True: 0, False: 50.2k]
  ------------------
  776|      0|        return gt;
  777|  50.2k|    if (a->top < b->top)
  ------------------
  |  Branch (777:9): [True: 0, False: 50.2k]
  ------------------
  778|      0|        return lt;
  779|   353k|    for (i = a->top - 1; i >= 0; i--) {
  ------------------
  |  Branch (779:26): [True: 303k, False: 50.2k]
  ------------------
  780|   303k|        t1 = a->d[i];
  781|   303k|        t2 = b->d[i];
  782|   303k|        if (t1 > t2)
  ------------------
  |  Branch (782:13): [True: 0, False: 303k]
  ------------------
  783|      0|            return gt;
  784|   303k|        if (t1 < t2)
  ------------------
  |  Branch (784:13): [True: 0, False: 303k]
  ------------------
  785|      0|            return lt;
  786|   303k|    }
  787|  50.2k|    return 0;
  788|  50.2k|}
BN_set_bit:
  791|  24.6k|{
  792|  24.6k|    int i, j, k;
  793|       |
  794|  24.6k|    if (n < 0)
  ------------------
  |  Branch (794:9): [True: 0, False: 24.6k]
  ------------------
  795|      0|        return 0;
  796|       |
  797|  24.6k|    i = n / BN_BITS2;
  ------------------
  |  |   54|  24.6k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  24.6k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  798|  24.6k|    j = n % BN_BITS2;
  ------------------
  |  |   54|  24.6k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  24.6k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  799|  24.6k|    if (a->top <= i) {
  ------------------
  |  Branch (799:9): [True: 24.6k, False: 0]
  ------------------
  800|  24.6k|        if (bn_wexpand(a, i + 1) == NULL)
  ------------------
  |  Branch (800:13): [True: 0, False: 24.6k]
  ------------------
  801|      0|            return 0;
  802|   211k|        for (k = a->top; k < i + 1; k++)
  ------------------
  |  Branch (802:26): [True: 186k, False: 24.6k]
  ------------------
  803|   186k|            a->d[k] = 0;
  804|  24.6k|        a->top = i + 1;
  805|  24.6k|        a->flags &= ~BN_FLG_FIXED_TOP;
  ------------------
  |  |  213|  24.6k|#define BN_FLG_FIXED_TOP 0
  ------------------
  806|  24.6k|    }
  807|       |
  808|  24.6k|    a->d[i] |= (((BN_ULONG)1) << j);
  809|  24.6k|    bn_check_top(a);
  810|  24.6k|    return 1;
  811|  24.6k|}
BN_is_bit_set:
  832|  2.35M|{
  833|  2.35M|    int i, j;
  834|       |
  835|  2.35M|    bn_check_top(a);
  836|  2.35M|    if (ossl_unlikely(n < 0))
  ------------------
  |  |   23|  2.35M|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 2.35M]
  |  |  ------------------
  ------------------
  837|      0|        return 0;
  838|  2.35M|    i = n / BN_BITS2;
  ------------------
  |  |   54|  2.35M|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  2.35M|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  839|  2.35M|    j = n % BN_BITS2;
  ------------------
  |  |   54|  2.35M|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  2.35M|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  840|  2.35M|    if (ossl_unlikely(a->top <= i))
  ------------------
  |  |   23|  2.35M|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 2.35M]
  |  |  ------------------
  ------------------
  841|      0|        return 0;
  842|  2.35M|    return (int)(((a->d[i]) >> j) & ((BN_ULONG)1));
  843|  2.35M|}
BN_set_negative:
  878|  13.3k|{
  879|  13.3k|    if (b && !BN_is_zero(a))
  ------------------
  |  Branch (879:9): [True: 0, False: 13.3k]
  |  Branch (879:14): [True: 0, False: 0]
  ------------------
  880|      0|        a->neg = 1;
  881|  13.3k|    else
  882|  13.3k|        a->neg = 0;
  883|  13.3k|}
BN_zero_ex:
 1024|  1.00M|{
 1025|  1.00M|    a->neg = 0;
 1026|  1.00M|    a->top = 0;
 1027|  1.00M|    a->flags &= ~BN_FLG_FIXED_TOP;
  ------------------
  |  |  213|  1.00M|#define BN_FLG_FIXED_TOP 0
  ------------------
 1028|  1.00M|}
BN_abs_is_word:
 1031|  63.6k|{
 1032|  63.6k|    return ((a->top == 1) && (a->d[0] == w)) || ((w == 0) && (a->top == 0));
  ------------------
  |  Branch (1032:13): [True: 63.6k, False: 0]
  |  Branch (1032:30): [True: 38.9k, False: 24.6k]
  |  Branch (1032:50): [True: 0, False: 24.6k]
  |  Branch (1032:62): [True: 0, False: 0]
  ------------------
 1033|  63.6k|}
BN_is_zero:
 1036|  2.09M|{
 1037|  2.09M|    return a->top == 0;
 1038|  2.09M|}
BN_is_one:
 1041|  51.3k|{
 1042|  51.3k|    return BN_abs_is_word(a, 1) && !a->neg;
  ------------------
  |  Branch (1042:12): [True: 38.9k, False: 12.3k]
  |  Branch (1042:36): [True: 38.9k, False: 0]
  ------------------
 1043|  51.3k|}
BN_is_odd:
 1067|   813k|{
 1068|   813k|    return (a->top > 0) && (a->d[0] & 1);
  ------------------
  |  Branch (1068:12): [True: 813k, False: 0]
  |  Branch (1068:28): [True: 422k, False: 391k]
  ------------------
 1069|   813k|}
BN_is_negative:
 1072|   137k|{
 1073|   137k|    return (a->neg != 0);
 1074|   137k|}
BN_to_montgomery:
 1078|  7.18k|{
 1079|  7.18k|    return BN_mod_mul_montgomery(r, a, &(mont->RR), mont, ctx);
 1080|  7.18k|}
BN_get_flags:
 1116|  5.81M|{
 1117|  5.81M|    return b->flags & n;
 1118|  5.81M|}
bn_wexpand:
 1146|  3.46M|{
 1147|  3.46M|    return (words <= a->dmax) ? a : bn_expand2(a, words);
  ------------------
  |  Branch (1147:12): [True: 2.46M, False: 1.00M]
  ------------------
 1148|  3.46M|}
bn_correct_top:
 1173|  1.36M|{
 1174|  1.36M|    BN_ULONG *ftl;
 1175|  1.36M|    int tmp_top = a->top;
 1176|       |
 1177|  1.36M|    if (ossl_likely(tmp_top > 0)) {
  ------------------
  |  |   22|  1.36M|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 1.36M, False: 0]
  |  |  ------------------
  ------------------
 1178|  1.51M|        for (ftl = &(a->d[tmp_top]); tmp_top > 0; tmp_top--) {
  ------------------
  |  Branch (1178:38): [True: 1.51M, False: 0]
  ------------------
 1179|  1.51M|            ftl--;
 1180|  1.51M|            if (*ftl != 0)
  ------------------
  |  Branch (1180:17): [True: 1.36M, False: 158k]
  ------------------
 1181|  1.36M|                break;
 1182|  1.51M|        }
 1183|  1.36M|        a->top = tmp_top;
 1184|  1.36M|    }
 1185|  1.36M|    if (a->top == 0)
  ------------------
  |  Branch (1185:9): [True: 0, False: 1.36M]
  ------------------
 1186|      0|        a->neg = 0;
 1187|  1.36M|    a->flags &= ~BN_FLG_FIXED_TOP;
  ------------------
  |  |  213|  1.36M|#define BN_FLG_FIXED_TOP 0
  ------------------
 1188|  1.36M|    bn_pollute(a);
 1189|  1.36M|}
bn_lib.c:bn_free_d:
  203|  1.02M|{
  204|  1.02M|    if (BN_get_flags(a, BN_FLG_SECURE))
  ------------------
  |  |   68|  1.02M|#define BN_FLG_SECURE 0x08
  ------------------
  |  Branch (204:9): [True: 0, False: 1.02M]
  ------------------
  205|      0|        OPENSSL_secure_clear_free(a->d, a->dmax * sizeof(a->d[0]));
  ------------------
  |  |  150|      0|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  206|  1.02M|    else if (clear != 0)
  ------------------
  |  Branch (206:14): [True: 588k, False: 431k]
  ------------------
  207|   588k|        OPENSSL_clear_free(a->d, a->dmax * sizeof(a->d[0]));
  ------------------
  |  |  130|   588k|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  208|   431k|    else
  209|   431k|        OPENSSL_free(a->d);
  ------------------
  |  |  132|   431k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  210|  1.02M|}
bn_lib.c:bn_expand_internal:
  265|  1.02M|{
  266|  1.02M|    BN_ULONG *a = NULL;
  267|       |
  268|  1.02M|    if (ossl_unlikely(words > (INT_MAX / (4 * BN_BITS2)))) {
  ------------------
  |  |   23|  1.02M|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.02M]
  |  |  ------------------
  ------------------
  269|      0|        ERR_raise(ERR_LIB_BN, BN_R_BIGNUM_TOO_LONG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  270|      0|        return NULL;
  271|      0|    }
  272|  1.02M|    if (ossl_unlikely(BN_get_flags(b, BN_FLG_STATIC_DATA))) {
  ------------------
  |  |   23|  1.02M|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.02M]
  |  |  ------------------
  ------------------
  273|      0|        ERR_raise(ERR_LIB_BN, BN_R_EXPAND_ON_STATIC_BIGNUM_DATA);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  274|      0|        return NULL;
  275|      0|    }
  276|  1.02M|    if (BN_get_flags(b, BN_FLG_SECURE))
  ------------------
  |  |   68|  1.02M|#define BN_FLG_SECURE 0x08
  ------------------
  |  Branch (276:9): [True: 0, False: 1.02M]
  ------------------
  277|      0|        a = OPENSSL_secure_calloc(words, sizeof(*a));
  ------------------
  |  |  146|      0|    CRYPTO_secure_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  278|  1.02M|    else
  279|  1.02M|        a = OPENSSL_calloc(words, sizeof(*a));
  ------------------
  |  |  113|  1.02M|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  280|  1.02M|    if (ossl_unlikely(a == NULL))
  ------------------
  |  |   23|  1.02M|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.02M]
  |  |  ------------------
  ------------------
  281|      0|        return NULL;
  282|       |
  283|  1.02M|    assert(b->top <= words);
  ------------------
  |  Branch (283:5): [True: 0, False: 1.02M]
  |  Branch (283:5): [True: 1.02M, False: 0]
  ------------------
  284|  1.02M|    if (b->top > 0)
  ------------------
  |  Branch (284:9): [True: 50.2k, False: 970k]
  ------------------
  285|  50.2k|        memcpy(a, b->d, sizeof(*a) * b->top);
  286|       |
  287|  1.02M|    return a;
  288|  1.02M|}
bn_lib.c:bin2bn:
  434|   201k|{
  435|   201k|    int inc;
  436|   201k|    const unsigned char *s2;
  437|   201k|    int inc2;
  438|   201k|    int neg = 0, xor = 0, carry = 0;
  439|   201k|    unsigned int i;
  440|   201k|    unsigned int n;
  441|   201k|    BIGNUM *bn = NULL;
  442|       |
  443|       |    /* Negative length is not acceptable */
  444|   201k|    if (len < 0)
  ------------------
  |  Branch (444:9): [True: 0, False: 201k]
  ------------------
  445|      0|        return NULL;
  446|       |
  447|   201k|    if (ret == NULL)
  ------------------
  |  Branch (447:9): [True: 80.0k, False: 121k]
  ------------------
  448|  80.0k|        ret = bn = BN_new();
  449|   201k|    if (ret == NULL)
  ------------------
  |  Branch (449:9): [True: 0, False: 201k]
  ------------------
  450|      0|        return NULL;
  451|   201k|    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|   201k|    if (len == 0) {
  ------------------
  |  Branch (457:9): [True: 0, False: 201k]
  ------------------
  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|   201k|    if (endianness == LITTLE) {
  ------------------
  |  Branch (467:9): [True: 0, False: 201k]
  ------------------
  468|      0|        s2 = s + len - 1;
  469|      0|        inc2 = -1;
  470|      0|        inc = 1;
  471|   201k|    } else {
  472|   201k|        s2 = s;
  473|   201k|        inc2 = 1;
  474|   201k|        inc = -1;
  475|   201k|        s += len - 1;
  476|   201k|    }
  477|       |
  478|       |    /* Take note of the signedness of the input bytes*/
  479|   201k|    if (signedness == SIGNED) {
  ------------------
  |  Branch (479:9): [True: 0, False: 201k]
  ------------------
  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|   234k|    for (; len > 0 && *s2 == xor; s2 += inc2, len--)
  ------------------
  |  Branch (489:12): [True: 234k, False: 0]
  |  Branch (489:23): [True: 33.1k, False: 201k]
  ------------------
  490|  33.1k|        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|   201k|    if (xor == 0xff) {
  ------------------
  |  Branch (497:9): [True: 0, False: 201k]
  ------------------
  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|   201k|    if (len == 0) {
  ------------------
  |  Branch (502:9): [True: 0, False: 201k]
  ------------------
  503|      0|        ret->top = 0;
  504|      0|        return ret;
  505|      0|    }
  506|   201k|    n = ((len - 1) / BN_BYTES) + 1; /* Number of resulting bignum chunks */
  ------------------
  |  |   38|   201k|#define BN_BYTES 8
  ------------------
  507|   201k|    if (bn_wexpand(ret, (int)n) == NULL) {
  ------------------
  |  Branch (507:9): [True: 0, False: 201k]
  ------------------
  508|      0|        BN_free(bn);
  509|      0|        return NULL;
  510|      0|    }
  511|   201k|    ret->top = n;
  512|   201k|    ret->neg = neg;
  513|  2.62M|    for (i = 0; n-- > 0; i++) {
  ------------------
  |  Branch (513:17): [True: 2.42M, False: 201k]
  ------------------
  514|  2.42M|        BN_ULONG l = 0; /* Accumulator */
  515|  2.42M|        unsigned int m = 0; /* Offset in a bignum chunk, in bits */
  516|       |
  517|  21.6M|        for (; len > 0 && m < BN_BYTES * 8; len--, s += inc, m += 8) {
  ------------------
  |  |   38|  21.4M|#define BN_BYTES 8
  ------------------
  |  Branch (517:16): [True: 21.4M, False: 201k]
  |  Branch (517:27): [True: 19.2M, False: 2.22M]
  ------------------
  518|  19.2M|            BN_ULONG byte_xored = *s ^ xor;
  519|  19.2M|            BN_ULONG byte = (byte_xored + carry) & 0xff;
  520|       |
  521|  19.2M|            carry = byte_xored > byte; /* Implicit 1 or 0 */
  522|  19.2M|            l |= (byte << m);
  523|  19.2M|        }
  524|  2.42M|        ret->d[i] = l;
  525|  2.42M|    }
  526|       |    /*
  527|       |     * need to call this due to clear byte at top if avoiding having the top
  528|       |     * bit set (-ve number)
  529|       |     */
  530|   201k|    bn_correct_top(ret);
  531|   201k|    return ret;
  532|   201k|}

bn_lib.c:bn_expand:
  672|  26.6k|{
  673|  26.6k|    if (bits > (INT_MAX - BN_BITS2 + 1))
  ------------------
  |  |   54|  26.6k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  26.6k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  |  Branch (673:9): [True: 0, False: 26.6k]
  ------------------
  674|      0|        return NULL;
  675|       |
  676|  26.6k|    if (((bits + BN_BITS2 - 1) / BN_BITS2) <= (a)->dmax)
  ------------------
  |  |   54|  26.6k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  26.6k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
                  if (((bits + BN_BITS2 - 1) / BN_BITS2) <= (a)->dmax)
  ------------------
  |  |   54|  26.6k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  26.6k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  |  Branch (676:9): [True: 13.3k, False: 13.3k]
  ------------------
  677|  13.3k|        return a;
  678|       |
  679|  13.3k|    return bn_expand2((a), (bits + BN_BITS2 - 1) / BN_BITS2);
  ------------------
  |  |   54|  13.3k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  13.3k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
                  return bn_expand2((a), (bits + BN_BITS2 - 1) / BN_BITS2);
  ------------------
  |  |   54|  13.3k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  13.3k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  680|  26.6k|}

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

BN_mod_mul_montgomery:
   27|  13.3k|{
   28|  13.3k|    int ret = bn_mul_mont_fixed_top(r, a, b, mont, ctx);
   29|       |
   30|  13.3k|    bn_correct_top(r);
   31|  13.3k|    bn_check_top(r);
   32|       |
   33|  13.3k|    return ret;
   34|  13.3k|}
bn_mul_mont_fixed_top:
   38|  13.3k|{
   39|  13.3k|    BIGNUM *tmp;
   40|  13.3k|    int ret = 0;
   41|  13.3k|    int num = mont->N.top;
   42|       |
   43|  13.3k|#if defined(OPENSSL_BN_ASM_MONT) && defined(MONT_WORD)
   44|  13.3k|    if (num > 1 && num <= BN_SOFT_LIMIT && a->top == num && b->top == num) {
  ------------------
  |  |   52|  26.6k|#define BN_SOFT_LIMIT (4096 / BN_BYTES)
  |  |  ------------------
  |  |  |  |   38|  13.3k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  |  Branch (44:9): [True: 13.3k, False: 0]
  |  Branch (44:20): [True: 13.3k, False: 0]
  |  Branch (44:44): [True: 12.3k, False: 1.02k]
  |  Branch (44:61): [True: 12.3k, False: 0]
  ------------------
   45|  12.3k|        if (bn_wexpand(r, num) == NULL)
  ------------------
  |  Branch (45:13): [True: 0, False: 12.3k]
  ------------------
   46|      0|            return 0;
   47|  12.3k|        if (bn_mul_mont(r->d, a->d, b->d, mont->N.d, mont->n0, num)) {
  ------------------
  |  Branch (47:13): [True: 12.3k, False: 0]
  ------------------
   48|  12.3k|            r->neg = a->neg ^ b->neg;
   49|  12.3k|            r->top = num;
   50|  12.3k|            r->flags |= BN_FLG_FIXED_TOP;
  ------------------
  |  |  213|  12.3k|#define BN_FLG_FIXED_TOP 0
  ------------------
   51|  12.3k|            return 1;
   52|  12.3k|        }
   53|  12.3k|    }
   54|  1.02k|#endif
   55|       |
   56|  1.02k|    if ((a->top + b->top) > 2 * num)
  ------------------
  |  Branch (56:9): [True: 0, False: 1.02k]
  ------------------
   57|      0|        return 0;
   58|       |
   59|  1.02k|    BN_CTX_start(ctx);
   60|  1.02k|    tmp = BN_CTX_get(ctx);
   61|  1.02k|    if (tmp == NULL)
  ------------------
  |  Branch (61:9): [True: 0, False: 1.02k]
  ------------------
   62|      0|        goto err;
   63|       |
   64|  1.02k|    bn_check_top(tmp);
   65|  1.02k|    if (a == b) {
  ------------------
  |  Branch (65:9): [True: 0, False: 1.02k]
  ------------------
   66|      0|        if (!bn_sqr_fixed_top(tmp, a, ctx))
  ------------------
  |  Branch (66:13): [True: 0, False: 0]
  ------------------
   67|      0|            goto err;
   68|  1.02k|    } else {
   69|  1.02k|        if (!bn_mul_fixed_top(tmp, a, b, ctx))
  ------------------
  |  Branch (69:13): [True: 0, False: 1.02k]
  ------------------
   70|      0|            goto err;
   71|  1.02k|    }
   72|       |    /* reduce from aRR to aR */
   73|  1.02k|#ifdef MONT_WORD
   74|  1.02k|    if (!bn_from_montgomery_word(r, tmp, mont))
  ------------------
  |  Branch (74:9): [True: 0, False: 1.02k]
  ------------------
   75|      0|        goto err;
   76|       |#else
   77|       |    if (!BN_from_montgomery(r, tmp, mont, ctx))
   78|       |        goto err;
   79|       |#endif
   80|  1.02k|    ret = 1;
   81|  1.02k|err:
   82|  1.02k|    BN_CTX_end(ctx);
   83|  1.02k|    return ret;
   84|  1.02k|}
BN_MONT_CTX_new:
  228|  28.7k|{
  229|  28.7k|    BN_MONT_CTX *ret;
  230|       |
  231|  28.7k|    if ((ret = OPENSSL_malloc(sizeof(*ret))) == NULL)
  ------------------
  |  |  107|  28.7k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (231:9): [True: 0, False: 28.7k]
  ------------------
  232|      0|        return NULL;
  233|       |
  234|  28.7k|    BN_MONT_CTX_init(ret);
  235|  28.7k|    ret->flags = BN_FLG_MALLOCED;
  ------------------
  |  |   58|  28.7k|#define BN_FLG_MALLOCED 0x01
  ------------------
  236|  28.7k|    return ret;
  237|  28.7k|}
BN_MONT_CTX_init:
  240|  28.7k|{
  241|  28.7k|    ctx->ri = 0;
  242|  28.7k|    bn_init(&ctx->RR);
  243|  28.7k|    bn_init(&ctx->N);
  244|  28.7k|    bn_init(&ctx->Ni);
  245|  28.7k|    ctx->n0[0] = ctx->n0[1] = 0;
  246|  28.7k|    ctx->flags = 0;
  247|  28.7k|}
BN_MONT_CTX_free:
  250|   128k|{
  251|   128k|    if (mont == NULL)
  ------------------
  |  Branch (251:9): [True: 99.5k, False: 28.7k]
  ------------------
  252|  99.5k|        return;
  253|  28.7k|    BN_clear_free(&mont->RR);
  254|  28.7k|    BN_clear_free(&mont->N);
  255|  28.7k|    BN_clear_free(&mont->Ni);
  256|  28.7k|    if (mont->flags & BN_FLG_MALLOCED)
  ------------------
  |  |   58|  28.7k|#define BN_FLG_MALLOCED 0x01
  ------------------
  |  Branch (256:9): [True: 28.7k, False: 0]
  ------------------
  257|  28.7k|        OPENSSL_free(mont);
  ------------------
  |  |  132|  28.7k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  258|  28.7k|}
BN_MONT_CTX_set:
  261|  12.3k|{
  262|  12.3k|    int i, ret = 0;
  263|  12.3k|    BIGNUM *Ri, *R;
  264|       |
  265|  12.3k|    if (BN_is_zero(mod))
  ------------------
  |  Branch (265:9): [True: 0, False: 12.3k]
  ------------------
  266|      0|        return 0;
  267|       |
  268|  12.3k|    BN_CTX_start(ctx);
  269|  12.3k|    if ((Ri = BN_CTX_get(ctx)) == NULL)
  ------------------
  |  Branch (269:9): [True: 0, False: 12.3k]
  ------------------
  270|      0|        goto err;
  271|  12.3k|    R = &(mont->RR); /* grab RR as a temp */
  272|  12.3k|    if (!BN_copy(&(mont->N), mod))
  ------------------
  |  Branch (272:9): [True: 0, False: 12.3k]
  ------------------
  273|      0|        goto err; /* Set N */
  274|  12.3k|    if (BN_get_flags(mod, BN_FLG_CONSTTIME) != 0)
  ------------------
  |  |   67|  12.3k|#define BN_FLG_CONSTTIME 0x04
  ------------------
  |  Branch (274:9): [True: 0, False: 12.3k]
  ------------------
  275|      0|        BN_set_flags(&(mont->N), BN_FLG_CONSTTIME);
  ------------------
  |  |   67|      0|#define BN_FLG_CONSTTIME 0x04
  ------------------
  276|  12.3k|    mont->N.neg = 0;
  277|       |
  278|  12.3k|#ifdef MONT_WORD
  279|  12.3k|    {
  280|  12.3k|        BIGNUM tmod;
  281|  12.3k|        BN_ULONG buf[2];
  282|       |
  283|  12.3k|        bn_init(&tmod);
  284|  12.3k|        tmod.d = buf;
  285|  12.3k|        tmod.dmax = 2;
  286|  12.3k|        tmod.neg = 0;
  287|       |
  288|  12.3k|        if (BN_get_flags(mod, BN_FLG_CONSTTIME) != 0)
  ------------------
  |  |   67|  12.3k|#define BN_FLG_CONSTTIME 0x04
  ------------------
  |  Branch (288:13): [True: 0, False: 12.3k]
  ------------------
  289|      0|            BN_set_flags(&tmod, BN_FLG_CONSTTIME);
  ------------------
  |  |   67|      0|#define BN_FLG_CONSTTIME 0x04
  ------------------
  290|       |
  291|  12.3k|        mont->ri = (BN_num_bits(mod) + (BN_BITS2 - 1)) / BN_BITS2 * BN_BITS2;
  ------------------
  |  |   54|  12.3k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  12.3k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
                      mont->ri = (BN_num_bits(mod) + (BN_BITS2 - 1)) / BN_BITS2 * BN_BITS2;
  ------------------
  |  |   54|  12.3k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  12.3k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
                      mont->ri = (BN_num_bits(mod) + (BN_BITS2 - 1)) / BN_BITS2 * BN_BITS2;
  ------------------
  |  |   54|  12.3k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  12.3k|#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|  12.3k|        BN_zero(R);
  ------------------
  |  |  201|  12.3k|#define BN_zero(a) BN_zero_ex(a)
  ------------------
  339|  12.3k|        if (!(BN_set_bit(R, BN_BITS2)))
  ------------------
  |  |   54|  12.3k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  12.3k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  |  Branch (339:13): [True: 0, False: 12.3k]
  ------------------
  340|      0|            goto err; /* R */
  341|       |
  342|  12.3k|        buf[0] = mod->d[0]; /* tmod = N mod word size */
  343|  12.3k|        buf[1] = 0;
  344|  12.3k|        tmod.top = buf[0] != 0 ? 1 : 0;
  ------------------
  |  Branch (344:20): [True: 12.3k, False: 0]
  ------------------
  345|       |        /* Ri = R^-1 mod N */
  346|  12.3k|        if (BN_is_one(&tmod))
  ------------------
  |  Branch (346:13): [True: 0, False: 12.3k]
  ------------------
  347|      0|            BN_zero(Ri);
  ------------------
  |  |  201|      0|#define BN_zero(a) BN_zero_ex(a)
  ------------------
  348|  12.3k|        else if ((BN_mod_inverse(Ri, R, &tmod, ctx)) == NULL)
  ------------------
  |  Branch (348:18): [True: 0, False: 12.3k]
  ------------------
  349|      0|            goto err;
  350|  12.3k|        if (!BN_lshift(Ri, Ri, BN_BITS2))
  ------------------
  |  |   54|  12.3k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  ------------------
  |  |  |  |   38|  12.3k|#define BN_BYTES 8
  |  |  ------------------
  ------------------
  |  Branch (350:13): [True: 0, False: 12.3k]
  ------------------
  351|      0|            goto err; /* R*Ri */
  352|  12.3k|        if (!BN_is_zero(Ri)) {
  ------------------
  |  Branch (352:13): [True: 12.3k, False: 0]
  ------------------
  353|  12.3k|            if (!BN_sub_word(Ri, 1))
  ------------------
  |  Branch (353:17): [True: 0, False: 12.3k]
  ------------------
  354|      0|                goto err;
  355|  12.3k|        } else { /* if N mod word size == 1 */
  356|       |
  357|      0|            if (!BN_set_word(Ri, BN_MASK2))
  ------------------
  |  |   77|      0|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  |  Branch (357:17): [True: 0, False: 0]
  ------------------
  358|      0|                goto err; /* Ri-- (mod word size) */
  359|      0|        }
  360|  12.3k|        if (!BN_div(Ri, NULL, Ri, &tmod, ctx))
  ------------------
  |  Branch (360:13): [True: 0, False: 12.3k]
  ------------------
  361|      0|            goto err;
  362|       |        /*
  363|       |         * Ni = (R*Ri-1)/N, keep only least significant word:
  364|       |         */
  365|  12.3k|        mont->n0[0] = (Ri->top > 0) ? Ri->d[0] : 0;
  ------------------
  |  Branch (365:23): [True: 12.3k, False: 0]
  ------------------
  366|  12.3k|        mont->n0[1] = 0;
  367|  12.3k|#endif
  368|  12.3k|    }
  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|  12.3k|    BN_zero(&(mont->RR));
  ------------------
  |  |  201|  12.3k|#define BN_zero(a) BN_zero_ex(a)
  ------------------
  392|  12.3k|    if (!BN_set_bit(&(mont->RR), mont->ri * 2))
  ------------------
  |  Branch (392:9): [True: 0, False: 12.3k]
  ------------------
  393|      0|        goto err;
  394|  12.3k|    if (!BN_mod(&(mont->RR), &(mont->RR), &(mont->N), ctx))
  ------------------
  |  |  276|  12.3k|#define BN_mod(rem, a, m, ctx) BN_div(NULL, (rem), (a), (m), (ctx))
  ------------------
  |  Branch (394:9): [True: 0, False: 12.3k]
  ------------------
  395|      0|        goto err;
  396|       |
  397|  12.3k|    for (i = mont->RR.top, ret = mont->N.top; i < ret; i++)
  ------------------
  |  Branch (397:47): [True: 0, False: 12.3k]
  ------------------
  398|      0|        mont->RR.d[i] = 0;
  399|  12.3k|    mont->RR.top = ret;
  400|  12.3k|    mont->RR.flags |= BN_FLG_FIXED_TOP;
  ------------------
  |  |  213|  12.3k|#define BN_FLG_FIXED_TOP 0
  ------------------
  401|       |
  402|  12.3k|    ret = 1;
  403|  12.3k|err:
  404|  12.3k|    BN_CTX_end(ctx);
  405|  12.3k|    return ret;
  406|  12.3k|}
BN_MONT_CTX_copy:
  409|  14.3k|{
  410|  14.3k|    if (to == from)
  ------------------
  |  Branch (410:9): [True: 0, False: 14.3k]
  ------------------
  411|      0|        return to;
  412|       |
  413|  14.3k|    if (!BN_copy(&(to->RR), &(from->RR)))
  ------------------
  |  Branch (413:9): [True: 0, False: 14.3k]
  ------------------
  414|      0|        return NULL;
  415|  14.3k|    if (!BN_copy(&(to->N), &(from->N)))
  ------------------
  |  Branch (415:9): [True: 0, False: 14.3k]
  ------------------
  416|      0|        return NULL;
  417|  14.3k|    if (!BN_copy(&(to->Ni), &(from->Ni)))
  ------------------
  |  Branch (417:9): [True: 0, False: 14.3k]
  ------------------
  418|      0|        return NULL;
  419|  14.3k|    to->ri = from->ri;
  420|  14.3k|    to->n0[0] = from->n0[0];
  421|  14.3k|    to->n0[1] = from->n0[1];
  422|  14.3k|    return to;
  423|  14.3k|}
ossl_bn_mont_ctx_set:
  470|  2.05k|{
  471|  2.05k|    if (BN_copy(&ctx->N, modulus) == NULL)
  ------------------
  |  Branch (471:9): [True: 0, False: 2.05k]
  ------------------
  472|      0|        return 0;
  473|  2.05k|    if (BN_bin2bn(rr, rrlen, &ctx->RR) == NULL)
  ------------------
  |  Branch (473:9): [True: 0, False: 2.05k]
  ------------------
  474|      0|        return 0;
  475|  2.05k|    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|  2.05k|    ctx->n0[0] = ((BN_ULONG)nhi << 32) | nlo;
  484|  2.05k|    ctx->n0[1] = 0;
  485|  2.05k|#endif
  486|       |
  487|  2.05k|    return 1;
  488|  2.05k|}
bn_mont.c:bn_from_montgomery_word:
   88|  1.02k|{
   89|  1.02k|    BIGNUM *n;
   90|  1.02k|    BN_ULONG *ap, *np, *rp, n0, v, carry;
   91|  1.02k|    int nl, max, i;
   92|  1.02k|    unsigned int rtop;
   93|       |
   94|  1.02k|    n = &(mont->N);
   95|  1.02k|    nl = n->top;
   96|  1.02k|    if (nl == 0) {
  ------------------
  |  Branch (96:9): [True: 0, False: 1.02k]
  ------------------
   97|      0|        ret->top = 0;
   98|      0|        return 1;
   99|      0|    }
  100|       |
  101|  1.02k|    max = (2 * nl); /* carry is stored separately */
  102|  1.02k|    if (bn_wexpand(r, max) == NULL)
  ------------------
  |  Branch (102:9): [True: 0, False: 1.02k]
  ------------------
  103|      0|        return 0;
  104|       |
  105|  1.02k|    r->neg ^= n->neg;
  106|  1.02k|    np = n->d;
  107|  1.02k|    rp = r->d;
  108|       |
  109|       |    /* clear the top words of T */
  110|  9.23k|    for (rtop = r->top, i = 0; i < max; i++) {
  ------------------
  |  Branch (110:32): [True: 8.20k, False: 1.02k]
  ------------------
  111|  8.20k|        v = (BN_ULONG)0 - ((i - rtop) >> (8 * sizeof(rtop) - 1));
  112|  8.20k|        rp[i] &= v;
  113|  8.20k|    }
  114|       |
  115|  1.02k|    r->top = max;
  116|  1.02k|    r->flags |= BN_FLG_FIXED_TOP;
  ------------------
  |  |  213|  1.02k|#define BN_FLG_FIXED_TOP 0
  ------------------
  117|  1.02k|    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|  5.13k|    for (carry = 0, i = 0; i < nl; i++, rp++) {
  ------------------
  |  Branch (124:28): [True: 4.10k, False: 1.02k]
  ------------------
  125|  4.10k|        v = bn_mul_add_words(rp, np, nl, (rp[0] * n0) & BN_MASK2);
  ------------------
  |  |   77|  4.10k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  126|  4.10k|        v = (v + carry + rp[nl]) & BN_MASK2;
  ------------------
  |  |   77|  4.10k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  127|  4.10k|        carry |= (v != rp[nl]);
  128|  4.10k|        carry &= (v <= rp[nl]);
  129|  4.10k|        rp[nl] = v;
  130|  4.10k|    }
  131|       |
  132|  1.02k|    if (bn_wexpand(ret, nl) == NULL)
  ------------------
  |  Branch (132:9): [True: 0, False: 1.02k]
  ------------------
  133|      0|        return 0;
  134|  1.02k|    ret->top = nl;
  135|  1.02k|    ret->flags |= BN_FLG_FIXED_TOP;
  ------------------
  |  |  213|  1.02k|#define BN_FLG_FIXED_TOP 0
  ------------------
  136|  1.02k|    ret->neg = r->neg;
  137|       |
  138|  1.02k|    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|  1.02k|    ap = &(r->d[nl]);
  145|       |
  146|  1.02k|    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|  5.13k|    for (i = 0; i < nl; i++) {
  ------------------
  |  Branch (152:17): [True: 4.10k, False: 1.02k]
  ------------------
  153|  4.10k|        rp[i] = (carry & ap[i]) | (~carry & rp[i]);
  154|  4.10k|        ap[i] = 0;
  155|  4.10k|    }
  156|       |
  157|  1.02k|    return 1;
  158|  1.02k|}

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

BN_nist_mod_384:
  889|  71.8k|{
  890|  71.8k|    int i, top = a->top;
  891|  71.8k|    int carry = 0;
  892|  71.8k|    register BN_ULONG *r_d, *a_d = a->d;
  893|  71.8k|    union {
  894|  71.8k|        BN_ULONG bn[BN_NIST_384_TOP];
  895|  71.8k|        unsigned int ui[BN_NIST_384_TOP * sizeof(BN_ULONG) / sizeof(unsigned int)];
  896|  71.8k|    } buf;
  897|  71.8k|    BN_ULONG c_d[BN_NIST_384_TOP], *res;
  898|  71.8k|    bn_addsub_f adjust;
  899|  71.8k|    static const BIGNUM ossl_bignum_nist_p_384_sqr = {
  900|  71.8k|        (BN_ULONG *)_nist_p_384_sqr,
  901|  71.8k|        OSSL_NELEM(_nist_p_384_sqr),
  ------------------
  |  |   14|  71.8k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  902|  71.8k|        OSSL_NELEM(_nist_p_384_sqr),
  ------------------
  |  |   14|  71.8k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  903|  71.8k|        0, BN_FLG_STATIC_DATA
  ------------------
  |  |   59|  71.8k|#define BN_FLG_STATIC_DATA 0x02
  ------------------
  904|  71.8k|    };
  905|       |
  906|  71.8k|    field = &ossl_bignum_nist_p_384; /* just to make sure */
  907|       |
  908|  71.8k|    if (BN_is_negative(a) || BN_ucmp(a, &ossl_bignum_nist_p_384_sqr) >= 0)
  ------------------
  |  Branch (908:9): [True: 0, False: 71.8k]
  |  Branch (908:30): [True: 0, False: 71.8k]
  ------------------
  909|      0|        return BN_nnmod(r, a, field, ctx);
  910|       |
  911|  71.8k|    i = BN_ucmp(field, a);
  912|  71.8k|    if (i == 0) {
  ------------------
  |  Branch (912:9): [True: 0, False: 71.8k]
  ------------------
  913|      0|        BN_zero(r);
  ------------------
  |  |  201|      0|#define BN_zero(a) BN_zero_ex(a)
  ------------------
  914|      0|        return 1;
  915|  71.8k|    } else if (i > 0)
  ------------------
  |  Branch (915:16): [True: 0, False: 71.8k]
  ------------------
  916|      0|        return (r == a) ? 1 : (BN_copy(r, a) != NULL);
  ------------------
  |  Branch (916:16): [True: 0, False: 0]
  ------------------
  917|       |
  918|  71.8k|    if (r != a) {
  ------------------
  |  Branch (918:9): [True: 0, False: 71.8k]
  ------------------
  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|  71.8k|        r_d = a_d;
  925|       |
  926|  71.8k|    nist_cp_bn_0(buf.bn, a_d + BN_NIST_384_TOP, top - BN_NIST_384_TOP,
  ------------------
  |  |  265|  71.8k|    {                                       \
  |  |  266|  71.8k|        int ii;                             \
  |  |  267|  71.8k|        const BN_ULONG *src = src_in;       \
  |  |  268|  71.8k|                                            \
  |  |  269|   502k|        for (ii = 0; ii < top; ii++)        \
  |  |  ------------------
  |  |  |  Branch (269:22): [True: 430k, False: 71.8k]
  |  |  ------------------
  |  |  270|   430k|            (dst)[ii] = src[ii];            \
  |  |  271|  71.8k|        for (; ii < max; ii++)              \
  |  |  ------------------
  |  |  |  Branch (271:16): [True: 0, False: 71.8k]
  |  |  ------------------
  |  |  272|  71.8k|            (dst)[ii] = 0;                  \
  |  |  273|  71.8k|    }
  ------------------
  927|  71.8k|        BN_NIST_384_TOP);
  928|       |
  929|  71.8k|#if defined(NIST_INT64)
  930|  71.8k|    {
  931|  71.8k|        NIST_INT64 acc; /* accumulator */
  ------------------
  |  |  298|  71.8k|#define NIST_INT64 long long
  ------------------
  932|  71.8k|        unsigned int *rp = (unsigned int *)r_d;
  933|  71.8k|        const unsigned int *bp = (const unsigned int *)buf.ui;
  934|       |
  935|  71.8k|        acc = load_u32(&rp[0]);
  936|  71.8k|        acc += bp[12 - 12];
  937|  71.8k|        acc += bp[21 - 12];
  938|  71.8k|        acc += bp[20 - 12];
  939|  71.8k|        acc -= bp[23 - 12];
  940|  71.8k|        store_lo32(&rp[0], acc);
  941|  71.8k|        acc >>= 32;
  942|       |
  943|  71.8k|        acc += load_u32(&rp[1]);
  944|  71.8k|        acc += bp[13 - 12];
  945|  71.8k|        acc += bp[22 - 12];
  946|  71.8k|        acc += bp[23 - 12];
  947|  71.8k|        acc -= bp[12 - 12];
  948|  71.8k|        acc -= bp[20 - 12];
  949|  71.8k|        store_lo32(&rp[1], acc);
  950|  71.8k|        acc >>= 32;
  951|       |
  952|  71.8k|        acc += load_u32(&rp[2]);
  953|  71.8k|        acc += bp[14 - 12];
  954|  71.8k|        acc += bp[23 - 12];
  955|  71.8k|        acc -= bp[13 - 12];
  956|  71.8k|        acc -= bp[21 - 12];
  957|  71.8k|        store_lo32(&rp[2], acc);
  958|  71.8k|        acc >>= 32;
  959|       |
  960|  71.8k|        acc += load_u32(&rp[3]);
  961|  71.8k|        acc += bp[15 - 12];
  962|  71.8k|        acc += bp[12 - 12];
  963|  71.8k|        acc += bp[20 - 12];
  964|  71.8k|        acc += bp[21 - 12];
  965|  71.8k|        acc -= bp[14 - 12];
  966|  71.8k|        acc -= bp[22 - 12];
  967|  71.8k|        acc -= bp[23 - 12];
  968|  71.8k|        store_lo32(&rp[3], acc);
  969|  71.8k|        acc >>= 32;
  970|       |
  971|  71.8k|        acc += load_u32(&rp[4]);
  972|  71.8k|        acc += bp[21 - 12];
  973|  71.8k|        acc += bp[21 - 12];
  974|  71.8k|        acc += bp[16 - 12];
  975|  71.8k|        acc += bp[13 - 12];
  976|  71.8k|        acc += bp[12 - 12];
  977|  71.8k|        acc += bp[20 - 12];
  978|  71.8k|        acc += bp[22 - 12];
  979|  71.8k|        acc -= bp[15 - 12];
  980|  71.8k|        acc -= bp[23 - 12];
  981|  71.8k|        acc -= bp[23 - 12];
  982|  71.8k|        store_lo32(&rp[4], acc);
  983|  71.8k|        acc >>= 32;
  984|       |
  985|  71.8k|        acc += load_u32(&rp[5]);
  986|  71.8k|        acc += bp[22 - 12];
  987|  71.8k|        acc += bp[22 - 12];
  988|  71.8k|        acc += bp[17 - 12];
  989|  71.8k|        acc += bp[14 - 12];
  990|  71.8k|        acc += bp[13 - 12];
  991|  71.8k|        acc += bp[21 - 12];
  992|  71.8k|        acc += bp[23 - 12];
  993|  71.8k|        acc -= bp[16 - 12];
  994|  71.8k|        store_lo32(&rp[5], acc);
  995|  71.8k|        acc >>= 32;
  996|       |
  997|  71.8k|        acc += load_u32(&rp[6]);
  998|  71.8k|        acc += bp[23 - 12];
  999|  71.8k|        acc += bp[23 - 12];
 1000|  71.8k|        acc += bp[18 - 12];
 1001|  71.8k|        acc += bp[15 - 12];
 1002|  71.8k|        acc += bp[14 - 12];
 1003|  71.8k|        acc += bp[22 - 12];
 1004|  71.8k|        acc -= bp[17 - 12];
 1005|  71.8k|        store_lo32(&rp[6], acc);
 1006|  71.8k|        acc >>= 32;
 1007|       |
 1008|  71.8k|        acc += load_u32(&rp[7]);
 1009|  71.8k|        acc += bp[19 - 12];
 1010|  71.8k|        acc += bp[16 - 12];
 1011|  71.8k|        acc += bp[15 - 12];
 1012|  71.8k|        acc += bp[23 - 12];
 1013|  71.8k|        acc -= bp[18 - 12];
 1014|  71.8k|        store_lo32(&rp[7], acc);
 1015|  71.8k|        acc >>= 32;
 1016|       |
 1017|  71.8k|        acc += load_u32(&rp[8]);
 1018|  71.8k|        acc += bp[20 - 12];
 1019|  71.8k|        acc += bp[17 - 12];
 1020|  71.8k|        acc += bp[16 - 12];
 1021|  71.8k|        acc -= bp[19 - 12];
 1022|  71.8k|        store_lo32(&rp[8], acc);
 1023|  71.8k|        acc >>= 32;
 1024|       |
 1025|  71.8k|        acc += load_u32(&rp[9]);
 1026|  71.8k|        acc += bp[21 - 12];
 1027|  71.8k|        acc += bp[18 - 12];
 1028|  71.8k|        acc += bp[17 - 12];
 1029|  71.8k|        acc -= bp[20 - 12];
 1030|  71.8k|        store_lo32(&rp[9], acc);
 1031|  71.8k|        acc >>= 32;
 1032|       |
 1033|  71.8k|        acc += load_u32(&rp[10]);
 1034|  71.8k|        acc += bp[22 - 12];
 1035|  71.8k|        acc += bp[19 - 12];
 1036|  71.8k|        acc += bp[18 - 12];
 1037|  71.8k|        acc -= bp[21 - 12];
 1038|  71.8k|        store_lo32(&rp[10], acc);
 1039|  71.8k|        acc >>= 32;
 1040|       |
 1041|  71.8k|        acc += load_u32(&rp[11]);
 1042|  71.8k|        acc += bp[23 - 12];
 1043|  71.8k|        acc += bp[20 - 12];
 1044|  71.8k|        acc += bp[19 - 12];
 1045|  71.8k|        acc -= bp[22 - 12];
 1046|  71.8k|        store_lo32(&rp[11], acc);
 1047|       |
 1048|  71.8k|        carry = (int)(acc >> 32);
 1049|  71.8k|    }
 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|  71.8k|    adjust = bn_sub_words;
 1118|  71.8k|    if (carry > 0)
  ------------------
  |  Branch (1118:9): [True: 48.2k, False: 23.5k]
  ------------------
 1119|  48.2k|        carry = (int)bn_sub_words(r_d, r_d, _nist_p_384[carry - 1],
 1120|  48.2k|            BN_NIST_384_TOP);
  ------------------
  |  |   16|  48.2k|#define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  48.2k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  48.2k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  48.2k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  48.2k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1121|  23.5k|    else if (carry < 0) {
  ------------------
  |  Branch (1121:14): [True: 1.02k, False: 22.5k]
  ------------------
 1122|  1.02k|        carry = (int)bn_add_words(r_d, r_d, _nist_p_384[-carry - 1],
 1123|  1.02k|            BN_NIST_384_TOP);
  ------------------
  |  |   16|  1.02k|#define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  1.02k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  1.02k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  1.02k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  1.02k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1124|  1.02k|        adjust = carry ? bn_sub_words : bn_add_words;
  ------------------
  |  Branch (1124:18): [True: 1.02k, False: 0]
  ------------------
 1125|  1.02k|    } else
 1126|  22.5k|        carry = 1;
 1127|       |
 1128|  71.8k|    res = ((*adjust)(c_d, r_d, _nist_p_384[0], BN_NIST_384_TOP) && carry)
  ------------------
  |  |   16|  71.8k|#define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  71.8k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  71.8k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  71.8k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  71.8k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1128:12): [True: 71.8k, False: 0]
  |  Branch (1128:68): [True: 71.8k, False: 0]
  ------------------
 1129|  71.8k|        ? r_d
 1130|  71.8k|        : c_d;
 1131|  71.8k|    nist_cp_bn(r_d, res, BN_NIST_384_TOP);
  ------------------
  |  |   16|  71.8k|#define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  71.8k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  71.8k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  71.8k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  71.8k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1132|  71.8k|    r->top = BN_NIST_384_TOP;
  ------------------
  |  |   16|  71.8k|#define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  71.8k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  71.8k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BN_NIST_384_TOP (384 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  71.8k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  71.8k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1133|  71.8k|    bn_correct_top(r);
 1134|       |
 1135|  71.8k|    return 1;
 1136|  71.8k|}
BN_nist_mod_521:
 1144|  2.05k|{
 1145|  2.05k|    int top = a->top, i;
 1146|  2.05k|    BN_ULONG *r_d, *a_d = a->d, t_d[BN_NIST_521_TOP], val, tmp, *res;
 1147|  2.05k|    static const BIGNUM ossl_bignum_nist_p_521_sqr = {
 1148|  2.05k|        (BN_ULONG *)_nist_p_521_sqr,
 1149|  2.05k|        OSSL_NELEM(_nist_p_521_sqr),
  ------------------
  |  |   14|  2.05k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
 1150|  2.05k|        OSSL_NELEM(_nist_p_521_sqr),
  ------------------
  |  |   14|  2.05k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
 1151|  2.05k|        0, BN_FLG_STATIC_DATA
  ------------------
  |  |   59|  2.05k|#define BN_FLG_STATIC_DATA 0x02
  ------------------
 1152|  2.05k|    };
 1153|       |
 1154|  2.05k|    field = &ossl_bignum_nist_p_521; /* just to make sure */
 1155|       |
 1156|  2.05k|    if (BN_is_negative(a) || BN_ucmp(a, &ossl_bignum_nist_p_521_sqr) >= 0)
  ------------------
  |  Branch (1156:9): [True: 0, False: 2.05k]
  |  Branch (1156:30): [True: 0, False: 2.05k]
  ------------------
 1157|      0|        return BN_nnmod(r, a, field, ctx);
 1158|       |
 1159|  2.05k|    i = BN_ucmp(field, a);
 1160|  2.05k|    if (i == 0) {
  ------------------
  |  Branch (1160:9): [True: 0, False: 2.05k]
  ------------------
 1161|      0|        BN_zero(r);
  ------------------
  |  |  201|      0|#define BN_zero(a) BN_zero_ex(a)
  ------------------
 1162|      0|        return 1;
 1163|  2.05k|    } else if (i > 0)
  ------------------
  |  Branch (1163:16): [True: 0, False: 2.05k]
  ------------------
 1164|      0|        return (r == a) ? 1 : (BN_copy(r, a) != NULL);
  ------------------
  |  Branch (1164:16): [True: 0, False: 0]
  ------------------
 1165|       |
 1166|  2.05k|    if (r != a) {
  ------------------
  |  Branch (1166:9): [True: 0, False: 2.05k]
  ------------------
 1167|      0|        if (!bn_wexpand(r, BN_NIST_521_TOP))
  ------------------
  |  |   17|      0|#define BN_NIST_521_TOP (521 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|      0|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|      0|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BN_NIST_521_TOP (521 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|      0|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|      0|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1167:13): [True: 0, False: 0]
  ------------------
 1168|      0|            return 0;
 1169|      0|        r_d = r->d;
 1170|      0|        nist_cp_bn(r_d, a_d, BN_NIST_521_TOP);
  ------------------
  |  |   17|      0|#define BN_NIST_521_TOP (521 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|      0|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|      0|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BN_NIST_521_TOP (521 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|      0|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|      0|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1171|      0|    } else
 1172|  2.05k|        r_d = a_d;
 1173|       |
 1174|       |    /* upper 521 bits, copy ... */
 1175|  2.05k|    nist_cp_bn_0(t_d, a_d + (BN_NIST_521_TOP - 1),
  ------------------
  |  |  265|  2.05k|    {                                       \
  |  |  266|  2.05k|        int ii;                             \
  |  |  267|  2.05k|        const BN_ULONG *src = src_in;       \
  |  |  268|  2.05k|                                            \
  |  |  269|  20.5k|        for (ii = 0; ii < top; ii++)        \
  |  |  ------------------
  |  |  |  Branch (269:22): [True: 18.4k, False: 2.05k]
  |  |  ------------------
  |  |  270|  18.4k|            (dst)[ii] = src[ii];            \
  |  |  271|  2.05k|        for (; ii < max; ii++)              \
  |  |  ------------------
  |  |  |  Branch (271:16): [True: 0, False: 2.05k]
  |  |  ------------------
  |  |  272|  2.05k|            (dst)[ii] = 0;                  \
  |  |  273|  2.05k|    }
  ------------------
 1176|  2.05k|        top - (BN_NIST_521_TOP - 1), BN_NIST_521_TOP);
 1177|       |    /* ... and right shift */
 1178|  18.4k|    for (val = t_d[0], i = 0; i < BN_NIST_521_TOP - 1; i++) {
  ------------------
  |  |   17|  18.4k|#define BN_NIST_521_TOP (521 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  18.4k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  18.4k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BN_NIST_521_TOP (521 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  18.4k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  18.4k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1178:31): [True: 16.4k, False: 2.05k]
  ------------------
 1179|       |#if 0
 1180|       |        /*
 1181|       |         * MSC ARM compiler [version 2013, presumably even earlier,
 1182|       |         * much earlier] miscompiles this code, but not one in
 1183|       |         * #else section. See RT#3541.
 1184|       |         */
 1185|       |        tmp = val >> BN_NIST_521_RSHIFT;
 1186|       |        val = t_d[i + 1];
 1187|       |        t_d[i] = (tmp | val << BN_NIST_521_LSHIFT) & BN_MASK2;
 1188|       |#else
 1189|  16.4k|        t_d[i] = (val >> BN_NIST_521_RSHIFT | (tmp = t_d[i + 1]) << BN_NIST_521_LSHIFT) & BN_MASK2;
  ------------------
  |  | 1138|  16.4k|#define BN_NIST_521_RSHIFT (521 % BN_BITS2)
  |  |  ------------------
  |  |  |  |   54|  16.4k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  16.4k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      t_d[i] = (val >> BN_NIST_521_RSHIFT | (tmp = t_d[i + 1]) << BN_NIST_521_LSHIFT) & BN_MASK2;
  ------------------
  |  | 1139|  16.4k|#define BN_NIST_521_LSHIFT (BN_BITS2 - BN_NIST_521_RSHIFT)
  |  |  ------------------
  |  |  |  |   54|  16.4k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  16.4k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BN_NIST_521_LSHIFT (BN_BITS2 - BN_NIST_521_RSHIFT)
  |  |  ------------------
  |  |  |  | 1138|  16.4k|#define BN_NIST_521_RSHIFT (521 % BN_BITS2)
  |  |  |  |  ------------------
  |  |  |  |  |  |   54|  16.4k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   38|  16.4k|#define BN_BYTES 8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      t_d[i] = (val >> BN_NIST_521_RSHIFT | (tmp = t_d[i + 1]) << BN_NIST_521_LSHIFT) & BN_MASK2;
  ------------------
  |  |   77|  16.4k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
 1190|  16.4k|        val = tmp;
 1191|  16.4k|#endif
 1192|  16.4k|    }
 1193|  2.05k|    t_d[i] = val >> BN_NIST_521_RSHIFT;
  ------------------
  |  | 1138|  2.05k|#define BN_NIST_521_RSHIFT (521 % BN_BITS2)
  |  |  ------------------
  |  |  |  |   54|  2.05k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  2.05k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1194|       |    /* lower 521 bits */
 1195|  2.05k|    r_d[i] &= BN_NIST_521_TOP_MASK;
  ------------------
  |  | 1140|  2.05k|#define BN_NIST_521_TOP_MASK ((BN_ULONG)BN_MASK2 >> BN_NIST_521_LSHIFT)
  |  |  ------------------
  |  |  |  |   77|  2.05k|#define BN_MASK2 (0xffffffffffffffffL)
  |  |  ------------------
  |  |               #define BN_NIST_521_TOP_MASK ((BN_ULONG)BN_MASK2 >> BN_NIST_521_LSHIFT)
  |  |  ------------------
  |  |  |  | 1139|  2.05k|#define BN_NIST_521_LSHIFT (BN_BITS2 - BN_NIST_521_RSHIFT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   54|  2.05k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   38|  2.05k|#define BN_BYTES 8
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define BN_NIST_521_LSHIFT (BN_BITS2 - BN_NIST_521_RSHIFT)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1138|  2.05k|#define BN_NIST_521_RSHIFT (521 % BN_BITS2)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   54|  2.05k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   38|  2.05k|#define BN_BYTES 8
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1196|       |
 1197|  2.05k|    bn_add_words(r_d, r_d, t_d, BN_NIST_521_TOP);
  ------------------
  |  |   17|  2.05k|#define BN_NIST_521_TOP (521 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  2.05k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  2.05k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BN_NIST_521_TOP (521 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  2.05k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  2.05k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1198|  2.05k|    res = bn_sub_words(t_d, r_d, _nist_p_521,
  ------------------
  |  Branch (1198:11): [True: 2.05k, False: 0]
  ------------------
 1199|  2.05k|              BN_NIST_521_TOP)
  ------------------
  |  |   17|  2.05k|#define BN_NIST_521_TOP (521 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  2.05k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  2.05k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BN_NIST_521_TOP (521 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  2.05k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  2.05k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1200|  2.05k|        ? r_d
 1201|  2.05k|        : t_d;
 1202|  2.05k|    nist_cp_bn(r_d, res, BN_NIST_521_TOP);
  ------------------
  |  |   17|  2.05k|#define BN_NIST_521_TOP (521 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  2.05k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  2.05k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BN_NIST_521_TOP (521 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  2.05k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  2.05k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1203|  2.05k|    r->top = BN_NIST_521_TOP;
  ------------------
  |  |   17|  2.05k|#define BN_NIST_521_TOP (521 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  2.05k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  2.05k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define BN_NIST_521_TOP (521 + BN_BITS2 - 1) / BN_BITS2
  |  |  ------------------
  |  |  |  |   54|  2.05k|#define BN_BITS2 (BN_BYTES * 8)
  |  |  |  |  ------------------
  |  |  |  |  |  |   38|  2.05k|#define BN_BYTES 8
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1204|  2.05k|    bn_correct_top(r);
 1205|       |
 1206|  2.05k|    return 1;
 1207|  2.05k|}
bn_nist.c:nist_cp_bn:
  276|  73.8k|{
  277|  73.8k|    int i;
  278|       |
  279|   523k|    for (i = 0; i < top; i++)
  ------------------
  |  Branch (279:17): [True: 449k, False: 73.8k]
  ------------------
  280|   449k|        dst[i] = src[i];
  281|  73.8k|}
bn_nist.c:load_u32:
  325|   861k|{
  326|   861k|    uint32_t tmp;
  327|       |
  328|   861k|    memcpy(&tmp, ptr, sizeof(tmp));
  329|   861k|    return tmp;
  330|   861k|}
bn_nist.c:store_lo32:
  333|   861k|{
  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|   861k|    uint32_t tmp = (uint32_t)val;
  338|       |
  339|   861k|    memcpy(ptr, &tmp, sizeof(tmp));
  340|   861k|}

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

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

BN_add_word:
   98|  13.3k|{
   99|  13.3k|    BN_ULONG l;
  100|  13.3k|    int i;
  101|       |
  102|  13.3k|    bn_check_top(a);
  103|  13.3k|    w &= BN_MASK2;
  ------------------
  |  |   77|  13.3k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  104|       |
  105|       |    /* degenerate case: w is zero */
  106|  13.3k|    if (!w)
  ------------------
  |  Branch (106:9): [True: 0, False: 13.3k]
  ------------------
  107|      0|        return 1;
  108|       |    /* degenerate case: a is zero */
  109|  13.3k|    if (BN_is_zero(a))
  ------------------
  |  Branch (109:9): [True: 0, False: 13.3k]
  ------------------
  110|      0|        return BN_set_word(a, w);
  111|       |    /* handle 'a' when negative */
  112|  13.3k|    if (a->neg) {
  ------------------
  |  Branch (112:9): [True: 0, False: 13.3k]
  ------------------
  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|  26.6k|    for (i = 0; w != 0 && i < a->top; i++) {
  ------------------
  |  Branch (119:17): [True: 13.3k, False: 13.3k]
  |  Branch (119:27): [True: 13.3k, False: 0]
  ------------------
  120|  13.3k|        a->d[i] = l = (a->d[i] + w) & BN_MASK2;
  ------------------
  |  |   77|  13.3k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  121|  13.3k|        w = (w > l) ? 1 : 0;
  ------------------
  |  Branch (121:13): [True: 0, False: 13.3k]
  ------------------
  122|  13.3k|    }
  123|  13.3k|    if (w && i == a->top) {
  ------------------
  |  Branch (123:9): [True: 0, False: 13.3k]
  |  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|  13.3k|    bn_check_top(a);
  130|  13.3k|    return 1;
  131|  13.3k|}
BN_sub_word:
  134|  12.3k|{
  135|  12.3k|    int i;
  136|       |
  137|  12.3k|    bn_check_top(a);
  138|  12.3k|    w &= BN_MASK2;
  ------------------
  |  |   77|  12.3k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  139|       |
  140|       |    /* degenerate case: w is zero */
  141|  12.3k|    if (!w)
  ------------------
  |  Branch (141:9): [True: 0, False: 12.3k]
  ------------------
  142|      0|        return 1;
  143|       |    /* degenerate case: a is zero */
  144|  12.3k|    if (BN_is_zero(a)) {
  ------------------
  |  Branch (144:9): [True: 0, False: 12.3k]
  ------------------
  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|  12.3k|    if (a->neg) {
  ------------------
  |  Branch (151:9): [True: 0, False: 12.3k]
  ------------------
  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|  12.3k|    if ((a->top == 1) && (a->d[0] < w)) {
  ------------------
  |  Branch (158:9): [True: 0, False: 12.3k]
  |  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|  12.3k|    i = 0;
  164|  24.6k|    for (;;) {
  165|  24.6k|        if (a->d[i] >= w) {
  ------------------
  |  Branch (165:13): [True: 12.3k, False: 12.3k]
  ------------------
  166|  12.3k|            a->d[i] -= w;
  167|  12.3k|            break;
  168|  12.3k|        } else {
  169|  12.3k|            a->d[i] = (a->d[i] - w) & BN_MASK2;
  ------------------
  |  |   77|  12.3k|#define BN_MASK2 (0xffffffffffffffffL)
  ------------------
  170|  12.3k|            i++;
  171|  12.3k|            w = 1;
  172|  12.3k|        }
  173|  24.6k|    }
  174|  12.3k|    if ((a->d[i] == 0) && (i == (a->top - 1)))
  ------------------
  |  Branch (174:9): [True: 0, False: 12.3k]
  |  Branch (174:27): [True: 0, False: 0]
  ------------------
  175|      0|        a->top--;
  176|  12.3k|    bn_check_top(a);
  177|  12.3k|    return 1;
  178|  12.3k|}

ossl_bsearch:
   18|   803k|{
   19|   803k|    const char *base_ = base;
   20|   803k|    int l, h, i = 0, c = 0;
   21|   803k|    const char *p = NULL;
   22|       |
   23|   803k|    if (num == 0)
  ------------------
  |  Branch (23:9): [True: 0, False: 803k]
  ------------------
   24|      0|        return NULL;
   25|   803k|    l = 0;
   26|   803k|    h = num;
   27|  7.08M|    while (l < h) {
  ------------------
  |  Branch (27:12): [True: 7.07M, False: 13.0k]
  ------------------
   28|  7.07M|        i = l + (h - l) / 2;
   29|  7.07M|        p = &(base_[i * size]);
   30|  7.07M|        if (cmp_thunk != NULL)
  ------------------
  |  Branch (30:13): [True: 349, False: 7.07M]
  ------------------
   31|    349|            c = cmp_thunk((cmpthunk_fn)cmp, key, (const void *)p);
   32|  7.07M|        else
   33|  7.07M|            c = cmp(key, p);
   34|  7.07M|        if (c < 0)
  ------------------
  |  Branch (34:13): [True: 4.22M, False: 2.84M]
  ------------------
   35|  4.22M|            h = i;
   36|  2.84M|        else if (c > 0)
  ------------------
  |  Branch (36:18): [True: 2.05M, False: 790k]
  ------------------
   37|  2.05M|            l = i + 1;
   38|   790k|        else
   39|   790k|            break;
   40|  7.07M|    }
   41|   803k|    if (c != 0 && !(flags & OSSL_BSEARCH_VALUE_ON_NOMATCH))
  ------------------
  |  |  149|  13.0k|#define OSSL_BSEARCH_VALUE_ON_NOMATCH 0x01
  ------------------
  |  Branch (41:9): [True: 13.0k, False: 790k]
  |  Branch (41:19): [True: 13.0k, False: 0]
  ------------------
   42|  13.0k|        p = NULL;
   43|   790k|    else if (c == 0 && (flags & OSSL_BSEARCH_FIRST_VALUE_ON_MATCH)) {
  ------------------
  |  |  150|   790k|#define OSSL_BSEARCH_FIRST_VALUE_ON_MATCH 0x02
  ------------------
  |  Branch (43:14): [True: 790k, False: 0]
  |  Branch (43:24): [True: 349, False: 789k]
  ------------------
   44|    349|        while (i > 0) {
  ------------------
  |  Branch (44:16): [True: 0, False: 349]
  ------------------
   45|      0|            if (cmp_thunk != NULL) {
  ------------------
  |  Branch (45:17): [True: 0, False: 0]
  ------------------
   46|      0|                if (cmp_thunk((cmpthunk_fn)cmp, key, (const void *)&(base_[(i - 1) * size])))
  ------------------
  |  Branch (46:21): [True: 0, False: 0]
  ------------------
   47|      0|                    break;
   48|      0|            } else {
   49|      0|                if (cmp(key, &(base_[(i - 1) * size])))
  ------------------
  |  Branch (49:21): [True: 0, False: 0]
  ------------------
   50|      0|                    break;
   51|      0|            }
   52|      0|            i--;
   53|      0|        }
   54|    349|        p = &(base_[i * size]);
   55|    349|    }
   56|   803k|    return p;
   57|   803k|}

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|   167k|{
   23|   167k|    BUF_MEM *ret;
   24|       |
   25|   167k|    ret = BUF_MEM_new();
   26|   167k|    if (ret != NULL)
  ------------------
  |  Branch (26:9): [True: 167k, False: 0]
  ------------------
   27|   167k|        ret->flags = flags;
   28|   167k|    return ret;
   29|   167k|}
BUF_MEM_new:
   32|   416k|{
   33|   416k|    BUF_MEM *ret;
   34|       |
   35|   416k|    ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  109|   416k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   36|   416k|    if (ret == NULL)
  ------------------
  |  Branch (36:9): [True: 0, False: 416k]
  ------------------
   37|      0|        return NULL;
   38|   416k|    return ret;
   39|   416k|}
BUF_MEM_free:
   42|   341k|{
   43|   341k|    if (a == NULL)
  ------------------
  |  Branch (43:9): [True: 7.21k, False: 333k]
  ------------------
   44|  7.21k|        return;
   45|   333k|    if (a->data != NULL) {
  ------------------
  |  Branch (45:9): [True: 124k, False: 208k]
  ------------------
   46|   124k|        if (a->flags & BUF_MEM_FLAG_SECURE)
  ------------------
  |  |   48|   124k|#define BUF_MEM_FLAG_SECURE 0x01
  ------------------
  |  Branch (46:13): [True: 0, False: 124k]
  ------------------
   47|      0|            OPENSSL_secure_clear_free(a->data, a->max);
  ------------------
  |  |  150|      0|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   48|   124k|        else
   49|   124k|            OPENSSL_clear_free(a->data, a->max);
  ------------------
  |  |  130|   124k|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   50|   124k|    }
   51|   333k|    OPENSSL_free(a);
  ------------------
  |  |  132|   333k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   52|   333k|}
BUF_MEM_grow:
   72|  83.1k|{
   73|  83.1k|    char *ret;
   74|  83.1k|    size_t n;
   75|       |
   76|  83.1k|    if (str->length >= len) {
  ------------------
  |  Branch (76:9): [True: 0, False: 83.1k]
  ------------------
   77|      0|        str->length = len;
   78|      0|        return len;
   79|      0|    }
   80|  83.1k|    if (str->max >= len) {
  ------------------
  |  Branch (80:9): [True: 0, False: 83.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|  83.1k|    if (len > LIMIT_BEFORE_EXPANSION) {
  ------------------
  |  |   19|  83.1k|#define LIMIT_BEFORE_EXPANSION 0x5ffffffc
  ------------------
  |  Branch (87:9): [True: 0, False: 83.1k]
  ------------------
   88|      0|        ERR_raise(ERR_LIB_BUF, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   89|      0|        return 0;
   90|      0|    }
   91|  83.1k|    n = (len + 3) / 3 * 4;
   92|  83.1k|    if ((str->flags & BUF_MEM_FLAG_SECURE))
  ------------------
  |  |   48|  83.1k|#define BUF_MEM_FLAG_SECURE 0x01
  ------------------
  |  Branch (92:9): [True: 0, False: 83.1k]
  ------------------
   93|      0|        ret = sec_alloc_realloc(str, n);
   94|  83.1k|    else
   95|  83.1k|        ret = OPENSSL_realloc(str->data, n);
  ------------------
  |  |  121|  83.1k|    CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   96|  83.1k|    if (ret == NULL) {
  ------------------
  |  Branch (96:9): [True: 0, False: 83.1k]
  ------------------
   97|      0|        len = 0;
   98|  83.1k|    } else {
   99|  83.1k|        str->data = ret;
  100|  83.1k|        str->max = n;
  101|  83.1k|        memset(&str->data[str->length], 0, len - str->length);
  102|  83.1k|        str->length = len;
  103|  83.1k|    }
  104|  83.1k|    return len;
  105|  83.1k|}
BUF_MEM_grow_clean:
  108|  1.16M|{
  109|  1.16M|    char *ret;
  110|  1.16M|    size_t n;
  111|       |
  112|  1.16M|    if (str->length >= len) {
  ------------------
  |  Branch (112:9): [True: 0, False: 1.16M]
  ------------------
  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|  1.16M|    if (str->max >= len) {
  ------------------
  |  Branch (118:9): [True: 675k, False: 490k]
  ------------------
  119|   675k|        memset(&str->data[str->length], 0, len - str->length);
  120|   675k|        str->length = len;
  121|   675k|        return len;
  122|   675k|    }
  123|       |    /* This limit is sufficient to ensure (len+3)/3*4 < 2**31 */
  124|   490k|    if (len > LIMIT_BEFORE_EXPANSION) {
  ------------------
  |  |   19|   490k|#define LIMIT_BEFORE_EXPANSION 0x5ffffffc
  ------------------
  |  Branch (124:9): [True: 0, False: 490k]
  ------------------
  125|      0|        ERR_raise(ERR_LIB_BUF, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  126|      0|        return 0;
  127|      0|    }
  128|   490k|    n = (len + 3) / 3 * 4;
  129|   490k|    if ((str->flags & BUF_MEM_FLAG_SECURE))
  ------------------
  |  |   48|   490k|#define BUF_MEM_FLAG_SECURE 0x01
  ------------------
  |  Branch (129:9): [True: 0, False: 490k]
  ------------------
  130|      0|        ret = sec_alloc_realloc(str, n);
  131|   490k|    else
  132|   490k|        ret = OPENSSL_clear_realloc(str->data, str->max, n);
  ------------------
  |  |  123|   490k|    CRYPTO_clear_realloc(addr, old_num, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_realloc(addr, old_num, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  133|   490k|    if (ret == NULL) {
  ------------------
  |  Branch (133:9): [True: 0, False: 490k]
  ------------------
  134|      0|        len = 0;
  135|   490k|    } else {
  136|   490k|        str->data = ret;
  137|   490k|        str->max = n;
  138|   490k|        memset(&str->data[str->length], 0, len - str->length);
  139|   490k|        str->length = len;
  140|   490k|    }
  141|   490k|    return len;
  142|   490k|}

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|  2.07k|{
   56|  2.07k|    if (ctx == NULL)
  ------------------
  |  Branch (56:9): [True: 2.07k, False: 0]
  ------------------
   57|  2.07k|        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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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_set_cmp_thunks(OPENSSL_sk_new(ossl_check_SSL_COMP_compfunc_type(cmp)), sk_SSL_COMP_cmpfunc_thunk))
  ------------------
   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));
  ------------------
  |  |  107|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  132|      2|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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));
  ------------------
  |  |  107|      2|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  132|      2|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  357|      2|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      2|    (ERR_new(),                                                  \
  |  |  |  |  360|      2|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      2|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      2|        ERR_set_error)
  |  |  ------------------
  ------------------
  180|      0|        else
  181|      2|            ERR_raise(ERR_LIB_CONF, ERR_R_SYS_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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:
  156|      2|{
  157|      2|    char *file = NULL;
  158|      2|    CONF *conf = NULL;
  159|      2|    int ret = 0, diagnostics = OSSL_LIB_CTX_get_conf_diagnostics(libctx);
  160|       |
  161|      2|    ERR_set_mark();
  162|       |
  163|      2|    if (filename == NULL) {
  ------------------
  |  Branch (163:9): [True: 2, False: 0]
  ------------------
  164|      2|        file = CONF_get1_default_config_file();
  165|      2|        if (file == NULL)
  ------------------
  |  Branch (165:13): [True: 0, False: 2]
  ------------------
  166|      0|            goto err;
  167|      2|        if (*file == '\0') {
  ------------------
  |  Branch (167:13): [True: 0, False: 2]
  ------------------
  168|       |            /* Do not try to load an empty file name but do not error out */
  169|      0|            ret = 1;
  170|      0|            goto err;
  171|      0|        }
  172|      2|    } else {
  173|      0|        file = (char *)filename;
  174|      0|    }
  175|       |
  176|      2|    conf = NCONF_new_ex(libctx, NULL);
  177|      2|    if (conf == NULL)
  ------------------
  |  Branch (177:9): [True: 0, False: 2]
  ------------------
  178|      0|        goto err;
  179|       |
  180|      2|    if (NCONF_load(conf, file, NULL) <= 0) {
  ------------------
  |  Branch (180:9): [True: 2, False: 0]
  ------------------
  181|      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 (181:13): [True: 2, False: 0]
  |  Branch (181:58): [True: 2, False: 0]
  ------------------
  182|      2|            ret = 1;
  183|      2|        }
  184|      2|        goto err;
  185|      2|    }
  186|       |
  187|      0|    ret = CONF_modules_load(conf, appname, flags);
  188|       |    /* CONF_modules_load() might change the diagnostics setting, reread it. */
  189|      0|    diagnostics = OSSL_LIB_CTX_get_conf_diagnostics(libctx);
  190|       |
  191|      2|err:
  192|      2|    if (filename == NULL)
  ------------------
  |  Branch (192:9): [True: 2, False: 0]
  ------------------
  193|      2|        OPENSSL_free(file);
  ------------------
  |  |  132|      2|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  194|      2|    NCONF_free(conf);
  195|       |
  196|      2|    if ((flags & CONF_MFLAGS_IGNORE_RETURN_CODES) != 0 && !diagnostics)
  ------------------
  |  |  111|      2|#define CONF_MFLAGS_IGNORE_RETURN_CODES 0x2
  ------------------
  |  Branch (196:9): [True: 2, False: 0]
  |  Branch (196:59): [True: 2, False: 0]
  ------------------
  197|      2|        ret = 1;
  198|       |
  199|      2|    if (ret > 0)
  ------------------
  |  Branch (199:9): [True: 2, False: 0]
  ------------------
  200|      2|        ERR_pop_to_mark();
  201|      0|    else
  202|      0|        ERR_clear_last_mark();
  203|       |
  204|      2|    return ret;
  205|      0|}
CONF_get1_default_config_file:
  646|      2|{
  647|      2|    const char *t;
  648|      2|    char *file, *sep = "";
  649|      2|    size_t size;
  650|       |
  651|      2|    if ((file = ossl_safe_getenv("OPENSSL_CONF")) != NULL)
  ------------------
  |  Branch (651:9): [True: 0, False: 2]
  ------------------
  652|      0|        return OPENSSL_strdup(file);
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  653|       |
  654|      2|    t = X509_get_default_cert_area();
  655|       |    /*
  656|       |     * On windows systems with -DOSSL_WINCTX set, if the needed registry
  657|       |     * keys are not yet set, openssl applets will return, due to an inability
  658|       |     * to locate various directories, like the default cert area.  In that
  659|       |     * event, clone an empty string here, so that commands like openssl version
  660|       |     * continue to operate properly without needing to set OPENSSL_CONF.
  661|       |     * Applets like cms will fail gracefully later when they try to parse an
  662|       |     * empty config file
  663|       |     */
  664|      2|    if (t == NULL)
  ------------------
  |  Branch (664:9): [True: 0, False: 2]
  ------------------
  665|      0|        return OPENSSL_strdup("");
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  666|       |
  667|      2|#ifndef OPENSSL_SYS_VMS
  668|      2|    sep = "/";
  669|      2|#endif
  670|      2|    size = strlen(t) + strlen(sep) + strlen(OPENSSL_CONF) + 1;
  ------------------
  |  |   80|      2|#define OPENSSL_CONF "openssl.cnf"
  ------------------
  671|      2|    file = OPENSSL_malloc(size);
  ------------------
  |  |  107|      2|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  672|       |
  673|      2|    if (file == NULL)
  ------------------
  |  Branch (673:9): [True: 0, False: 2]
  ------------------
  674|      0|        return NULL;
  675|      2|    BIO_snprintf(file, size, "%s%s%s", t, sep, OPENSSL_CONF);
  ------------------
  |  |   80|      2|#define OPENSSL_CONF "openssl.cnf"
  ------------------
  676|       |
  677|      2|    return file;
  678|      2|}
CONF_parse_list:
  690|  2.42k|{
  691|  2.42k|    int ret;
  692|  2.42k|    const char *lstart, *tmpend, *p;
  693|       |
  694|  2.42k|    if (list_ == NULL) {
  ------------------
  |  Branch (694:9): [True: 0, False: 2.42k]
  ------------------
  695|      0|        ERR_raise(ERR_LIB_CONF, CONF_R_LIST_CANNOT_BE_NULL);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  696|      0|        return 0;
  697|      0|    }
  698|       |
  699|  2.42k|    lstart = list_;
  700|  6.59k|    for (;;) {
  701|  6.59k|        if (nospc) {
  ------------------
  |  Branch (701:13): [True: 6.59k, False: 0]
  ------------------
  702|  7.98k|            while (*lstart && isspace((unsigned char)*lstart))
  ------------------
  |  Branch (702:20): [True: 7.98k, False: 0]
  |  Branch (702:31): [True: 1.38k, False: 6.59k]
  ------------------
  703|  1.38k|                lstart++;
  704|  6.59k|        }
  705|  6.59k|        p = strchr(lstart, sep);
  706|  6.59k|        if (p == lstart || *lstart == '\0')
  ------------------
  |  Branch (706:13): [True: 0, False: 6.59k]
  |  Branch (706:28): [True: 0, False: 6.59k]
  ------------------
  707|      0|            ret = list_cb(NULL, 0, arg);
  708|  6.59k|        else {
  709|  6.59k|            if (p)
  ------------------
  |  Branch (709:17): [True: 4.16k, False: 2.42k]
  ------------------
  710|  4.16k|                tmpend = p - 1;
  711|  2.42k|            else
  712|  2.42k|                tmpend = lstart + strlen(lstart) - 1;
  713|  6.59k|            if (nospc) {
  ------------------
  |  Branch (713:17): [True: 6.59k, False: 0]
  ------------------
  714|  6.59k|                while (isspace((unsigned char)*tmpend))
  ------------------
  |  Branch (714:24): [True: 1.38k, False: 6.59k]
  ------------------
  715|  1.38k|                    tmpend--;
  716|  6.59k|            }
  717|  6.59k|            ret = list_cb(lstart, (int)(tmpend - lstart + 1), arg);
  718|  6.59k|        }
  719|  6.59k|        if (ret <= 0)
  ------------------
  |  Branch (719:13): [True: 0, False: 6.59k]
  ------------------
  720|      0|            return ret;
  721|  6.59k|        if (p == NULL)
  ------------------
  |  Branch (721:13): [True: 2.42k, False: 4.16k]
  ------------------
  722|  2.42k|            return 1;
  723|  4.16k|        lstart = p + 1;
  724|  4.16k|    }
  725|  2.42k|}

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

conf_ssl_name_find:
  154|    347|{
  155|    347|    SSL_MODULE *ssl = md != NULL ? CONF_imodule_get_usr_data(md) : NULL;
  ------------------
  |  Branch (155:23): [True: 0, False: 347]
  ------------------
  156|    347|    const struct ssl_conf_name_st *nm;
  157|    347|    size_t i;
  158|       |
  159|    347|    if (ssl == NULL || ssl->names == NULL)
  ------------------
  |  Branch (159:9): [True: 347, False: 0]
  |  Branch (159:24): [True: 0, False: 0]
  ------------------
  160|    347|        return 0;
  161|       |
  162|      0|    for (i = 0, nm = ssl->names; i < ssl->names_count; i++, nm++) {
  ------------------
  |  Branch (162:34): [True: 0, False: 0]
  ------------------
  163|      0|        if (strcmp(nm->name, name) == 0) {
  ------------------
  |  Branch (163:13): [True: 0, False: 0]
  ------------------
  164|      0|            *idx = i;
  165|      0|            return 1;
  166|      0|        }
  167|      0|    }
  168|      0|    return 0;
  169|      0|}

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|    349|{
   67|    349|    if ((ctx = ossl_lib_ctx_get_concrete(ctx)) == NULL)
  ------------------
  |  Branch (67:9): [True: 0, False: 349]
  ------------------
   68|      0|        return 0;
   69|    349|    return CRYPTO_THREAD_read_lock(ctx->lock);
   70|    349|}
ossl_lib_ctx_unlock:
   73|    365|{
   74|    365|    if ((ctx = ossl_lib_ctx_get_concrete(ctx)) == NULL)
  ------------------
  |  Branch (74:9): [True: 0, False: 365]
  ------------------
   75|      0|        return 0;
   76|    365|    return CRYPTO_THREAD_unlock(ctx->lock);
   77|    365|}
OSSL_LIB_CTX_free:
  536|  19.9k|{
  537|  19.9k|    if (ctx == NULL || ossl_lib_ctx_is_default_nocreate(ctx))
  ------------------
  |  Branch (537:9): [True: 19.9k, False: 0]
  |  Branch (537:24): [True: 0, False: 0]
  ------------------
  538|  19.9k|        return;
  539|       |
  540|      0|#ifndef FIPS_MODULE
  541|      0|    if (ctx->ischild)
  ------------------
  |  Branch (541:9): [True: 0, False: 0]
  ------------------
  542|      0|        ossl_provider_deinit_child(ctx);
  543|      0|#endif
  544|      0|    context_deinit(ctx);
  545|      0|    OPENSSL_free(ctx);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  546|      0|}
OSSL_LIB_CTX_get0_global_default:
  550|    349|{
  551|    349|    if (!RUN_ONCE(&default_context_thread_key_init, default_context_do_thread_key_init))
  ------------------
  |  |  130|    349|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 349, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (551:9): [True: 0, False: 349]
  ------------------
  552|      0|        return NULL;
  553|       |
  554|    349|    if (!RUN_ONCE(&default_context_init, default_context_do_init))
  ------------------
  |  |  130|    349|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 349, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (554:9): [True: 0, False: 349]
  ------------------
  555|      0|        return NULL;
  556|       |
  557|    349|    return &default_context_int;
  558|    349|}
OSSL_LIB_CTX_set0_default:
  561|    347|{
  562|    347|    OSSL_LIB_CTX *current_defctx;
  563|       |
  564|    347|    if ((current_defctx = get_default_context()) != NULL) {
  ------------------
  |  Branch (564:9): [True: 347, False: 0]
  ------------------
  565|    347|        if (libctx != NULL)
  ------------------
  |  Branch (565:13): [True: 0, False: 347]
  ------------------
  566|      0|            set_default_context(libctx);
  567|    347|        return current_defctx;
  568|    347|    }
  569|       |
  570|      0|    return NULL;
  571|    347|}
ossl_lib_ctx_get_concrete:
  584|  1.41M|{
  585|  1.41M|#ifndef FIPS_MODULE
  586|  1.41M|    if (ctx == NULL)
  ------------------
  |  Branch (586:9): [True: 1.08M, False: 326k]
  ------------------
  587|  1.08M|        return get_default_context();
  588|   326k|#endif
  589|   326k|    return ctx;
  590|  1.41M|}
ossl_lib_ctx_is_default:
  593|  8.09k|{
  594|  8.09k|#ifndef FIPS_MODULE
  595|  8.09k|    if (ctx == NULL || ctx == get_default_context())
  ------------------
  |  Branch (595:9): [True: 6.30k, False: 1.79k]
  |  Branch (595:24): [True: 1.79k, False: 0]
  ------------------
  596|  8.09k|        return 1;
  597|      0|#endif
  598|      0|    return 0;
  599|  8.09k|}
ossl_lib_ctx_is_global_default:
  611|  5.55k|{
  612|  5.55k|#ifndef FIPS_MODULE
  613|  5.55k|    if (ossl_lib_ctx_get_concrete(ctx) == &default_context_int)
  ------------------
  |  Branch (613:9): [True: 5.55k, False: 0]
  ------------------
  614|  5.55k|        return 1;
  615|      0|#endif
  616|      0|    return 0;
  617|  5.55k|}
ossl_lib_ctx_get_data:
  620|   464k|{
  621|   464k|    ctx = ossl_lib_ctx_get_concrete(ctx);
  622|   464k|    if (ctx == NULL)
  ------------------
  |  Branch (622:9): [True: 0, False: 464k]
  ------------------
  623|      0|        return NULL;
  624|       |
  625|   464k|    switch (index) {
  626|    790|    case OSSL_LIB_CTX_PROPERTY_STRING_INDEX:
  ------------------
  |  |   98|    790|#define OSSL_LIB_CTX_PROPERTY_STRING_INDEX 3
  ------------------
  |  Branch (626:5): [True: 790, False: 463k]
  ------------------
  627|    790|        return ctx->property_string_data;
  628|  51.7k|    case OSSL_LIB_CTX_EVP_METHOD_STORE_INDEX:
  ------------------
  |  |   95|  51.7k|#define OSSL_LIB_CTX_EVP_METHOD_STORE_INDEX 0
  ------------------
  |  Branch (628:5): [True: 51.7k, False: 412k]
  ------------------
  629|  51.7k|        return ctx->evp_method_store;
  630|  6.30k|    case OSSL_LIB_CTX_PROVIDER_STORE_INDEX:
  ------------------
  |  |   96|  6.30k|#define OSSL_LIB_CTX_PROVIDER_STORE_INDEX 1
  ------------------
  |  Branch (630:5): [True: 6.30k, False: 457k]
  ------------------
  631|  6.30k|        return ctx->provider_store;
  632|   349k|    case OSSL_LIB_CTX_NAMEMAP_INDEX:
  ------------------
  |  |   99|   349k|#define OSSL_LIB_CTX_NAMEMAP_INDEX 4
  ------------------
  |  Branch (632:5): [True: 349k, False: 114k]
  ------------------
  633|   349k|        return ctx->namemap;
  634|    365|    case OSSL_LIB_CTX_PROPERTY_DEFN_INDEX:
  ------------------
  |  |   97|    365|#define OSSL_LIB_CTX_PROPERTY_DEFN_INDEX 2
  ------------------
  |  Branch (634:5): [True: 365, False: 463k]
  ------------------
  635|    365|        return ctx->property_defns;
  636|     59|    case OSSL_LIB_CTX_GLOBAL_PROPERTIES:
  ------------------
  |  |  111|     59|#define OSSL_LIB_CTX_GLOBAL_PROPERTIES 14
  ------------------
  |  Branch (636:5): [True: 59, False: 464k]
  ------------------
  637|     59|        return ctx->global_properties;
  638|  13.0k|    case OSSL_LIB_CTX_DRBG_INDEX:
  ------------------
  |  |  100|  13.0k|#define OSSL_LIB_CTX_DRBG_INDEX 5
  ------------------
  |  Branch (638:5): [True: 13.0k, False: 451k]
  ------------------
  639|  13.0k|        return ctx->drbg;
  640|      0|    case OSSL_LIB_CTX_DRBG_NONCE_INDEX:
  ------------------
  |  |  101|      0|#define OSSL_LIB_CTX_DRBG_NONCE_INDEX 6
  ------------------
  |  Branch (640:5): [True: 0, False: 464k]
  ------------------
  641|      0|        return ctx->drbg_nonce;
  642|      0|#ifndef FIPS_MODULE
  643|      0|    case OSSL_LIB_CTX_PROVIDER_CONF_INDEX:
  ------------------
  |  |  113|      0|#define OSSL_LIB_CTX_PROVIDER_CONF_INDEX 16
  ------------------
  |  Branch (643:5): [True: 0, False: 464k]
  ------------------
  644|      0|        return ctx->provider_conf;
  645|      0|    case OSSL_LIB_CTX_BIO_CORE_INDEX:
  ------------------
  |  |  114|      0|#define OSSL_LIB_CTX_BIO_CORE_INDEX 17
  ------------------
  |  Branch (645:5): [True: 0, False: 464k]
  ------------------
  646|      0|        return ctx->bio_core;
  647|      0|    case OSSL_LIB_CTX_CHILD_PROVIDER_INDEX:
  ------------------
  |  |  115|      0|#define OSSL_LIB_CTX_CHILD_PROVIDER_INDEX 18
  ------------------
  |  Branch (647:5): [True: 0, False: 464k]
  ------------------
  648|      0|        return ctx->child_provider;
  649|     92|    case OSSL_LIB_CTX_DECODER_STORE_INDEX:
  ------------------
  |  |  108|     92|#define OSSL_LIB_CTX_DECODER_STORE_INDEX 11
  ------------------
  |  Branch (649:5): [True: 92, False: 464k]
  ------------------
  650|     92|        return ctx->decoder_store;
  651|  41.3k|    case OSSL_LIB_CTX_DECODER_CACHE_INDEX:
  ------------------
  |  |  117|  41.3k|#define OSSL_LIB_CTX_DECODER_CACHE_INDEX 20
  ------------------
  |  Branch (651:5): [True: 41.3k, False: 422k]
  ------------------
  652|  41.3k|        return ctx->decoder_cache;
  653|      0|    case OSSL_LIB_CTX_ENCODER_STORE_INDEX:
  ------------------
  |  |  107|      0|#define OSSL_LIB_CTX_ENCODER_STORE_INDEX 10
  ------------------
  |  Branch (653:5): [True: 0, False: 464k]
  ------------------
  654|      0|        return ctx->encoder_store;
  655|      0|    case OSSL_LIB_CTX_STORE_LOADER_STORE_INDEX:
  ------------------
  |  |  112|      0|#define OSSL_LIB_CTX_STORE_LOADER_STORE_INDEX 15
  ------------------
  |  Branch (655:5): [True: 0, False: 464k]
  ------------------
  656|      0|        return ctx->store_loader_store;
  657|      0|    case OSSL_LIB_CTX_SELF_TEST_CB_INDEX:
  ------------------
  |  |  109|      0|#define OSSL_LIB_CTX_SELF_TEST_CB_INDEX 12
  ------------------
  |  Branch (657:5): [True: 0, False: 464k]
  ------------------
  658|      0|        return ctx->self_test_cb;
  659|      0|    case OSSL_LIB_CTX_INDICATOR_CB_INDEX:
  ------------------
  |  |  119|      0|#define OSSL_LIB_CTX_INDICATOR_CB_INDEX 22
  ------------------
  |  Branch (659:5): [True: 0, False: 464k]
  ------------------
  660|      0|        return ctx->indicator_cb;
  661|      0|#endif
  662|      0|#ifndef OPENSSL_NO_THREAD_POOL
  663|      0|    case OSSL_LIB_CTX_THREAD_INDEX:
  ------------------
  |  |  116|      0|#define OSSL_LIB_CTX_THREAD_INDEX 19
  ------------------
  |  Branch (663:5): [True: 0, False: 464k]
  ------------------
  664|      0|        return ctx->threads;
  665|      0|#endif
  666|       |
  667|       |#ifdef FIPS_MODULE
  668|       |    case OSSL_LIB_CTX_FIPS_PROV_INDEX:
  669|       |        return ctx->fips_prov;
  670|       |#endif
  671|       |
  672|    349|    case OSSL_LIB_CTX_COMP_METHODS:
  ------------------
  |  |  118|    349|#define OSSL_LIB_CTX_COMP_METHODS 21
  ------------------
  |  Branch (672:5): [True: 349, False: 463k]
  ------------------
  673|    349|        return (void *)&ctx->comp_methods;
  674|       |
  675|    694|    case OSSL_LIB_CTX_SSL_CONF_IMODULE:
  ------------------
  |  |  120|    694|#define OSSL_LIB_CTX_SSL_CONF_IMODULE 23
  ------------------
  |  Branch (675:5): [True: 694, False: 463k]
  ------------------
  676|    694|        return (void *)ctx->ssl_imod;
  677|       |
  678|      0|    default:
  ------------------
  |  Branch (678:5): [True: 0, False: 464k]
  ------------------
  679|       |        return NULL;
  680|   464k|    }
  681|   464k|}
OSSL_LIB_CTX_get_data:
  684|  1.04k|{
  685|  1.04k|    return ossl_lib_ctx_get_data(ctx, index);
  686|  1.04k|}
ossl_lib_ctx_get_ex_data_global:
  689|   922k|{
  690|   922k|    ctx = ossl_lib_ctx_get_concrete(ctx);
  691|   922k|    if (ctx == NULL)
  ------------------
  |  Branch (691:9): [True: 0, False: 922k]
  ------------------
  692|      0|        return NULL;
  693|   922k|    return &ctx->global;
  694|   922k|}
ossl_lib_ctx_get_descriptor:
  697|  5.55k|{
  698|       |#ifdef FIPS_MODULE
  699|       |    return "FIPS internal library context";
  700|       |#else
  701|  5.55k|    if (ossl_lib_ctx_is_global_default(libctx))
  ------------------
  |  Branch (701:9): [True: 5.55k, False: 0]
  ------------------
  702|  5.55k|        return "Global default library context";
  703|      0|    if (ossl_lib_ctx_is_default(libctx))
  ------------------
  |  Branch (703:9): [True: 0, False: 0]
  ------------------
  704|      0|        return "Thread-local default library context";
  705|      0|    return "Non-default library context";
  706|      0|#endif
  707|      0|}
OSSL_LIB_CTX_get_conf_diagnostics:
  710|      2|{
  711|      2|    libctx = ossl_lib_ctx_get_concrete(libctx);
  712|      2|    if (libctx == NULL)
  ------------------
  |  Branch (712:9): [True: 0, False: 2]
  ------------------
  713|      0|        return 0;
  714|      2|    return libctx->conf_diagnostics;
  715|      2|}
context.c:context_init:
  119|      2|{
  120|      2|    int exdata_done = 0;
  121|       |
  122|      2|    ctx->lock = CRYPTO_THREAD_lock_new();
  123|      2|    if (ctx->lock == NULL)
  ------------------
  |  Branch (123:9): [True: 0, False: 2]
  ------------------
  124|      0|        goto err;
  125|       |
  126|       |    /* Initialize ex_data. */
  127|      2|    if (!ossl_do_ex_data_init(ctx))
  ------------------
  |  Branch (127:9): [True: 0, False: 2]
  ------------------
  128|      0|        goto err;
  129|      2|    exdata_done = 1;
  130|       |
  131|       |    /* P2. We want evp_method_store to be cleaned up before the provider store */
  132|      2|    ctx->evp_method_store = ossl_method_store_new(ctx);
  133|      2|    if (ctx->evp_method_store == NULL)
  ------------------
  |  Branch (133:9): [True: 0, False: 2]
  ------------------
  134|      0|        goto err;
  135|      2|    OSSL_TRACE1(QUERY, "context_init: allocating store %p\n", ctx->evp_method_store);
  ------------------
  |  |  291|      2|    OSSL_TRACEV(category, (trc_out, format, arg1))
  |  |  ------------------
  |  |  |  |  283|      2|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  136|       |
  137|      2|#ifndef FIPS_MODULE
  138|       |    /* P2. Must be freed before the provider store is freed */
  139|      2|    ctx->provider_conf = ossl_prov_conf_ctx_new(ctx);
  140|      2|    if (ctx->provider_conf == NULL)
  ------------------
  |  Branch (140:9): [True: 0, False: 2]
  ------------------
  141|      0|        goto err;
  142|      2|#endif
  143|       |
  144|       |    /* P2. */
  145|      2|    ctx->drbg = ossl_rand_ctx_new(ctx);
  146|      2|    if (ctx->drbg == NULL)
  ------------------
  |  Branch (146:9): [True: 0, False: 2]
  ------------------
  147|      0|        goto err;
  148|       |
  149|      2|#ifndef FIPS_MODULE
  150|       |    /*
  151|       |     * P2. We want decoder_store/decoder_cache to be cleaned up before the
  152|       |     * provider store
  153|       |     */
  154|      2|    ctx->decoder_store = ossl_method_store_new(ctx);
  155|      2|    if (ctx->decoder_store == NULL)
  ------------------
  |  Branch (155:9): [True: 0, False: 2]
  ------------------
  156|      0|        goto err;
  157|      2|    ctx->decoder_cache = ossl_decoder_cache_new(ctx);
  158|      2|    if (ctx->decoder_cache == NULL)
  ------------------
  |  Branch (158:9): [True: 0, False: 2]
  ------------------
  159|      0|        goto err;
  160|       |
  161|       |    /* P2. We want encoder_store to be cleaned up before the provider store */
  162|      2|    ctx->encoder_store = ossl_method_store_new(ctx);
  163|      2|    if (ctx->encoder_store == NULL)
  ------------------
  |  Branch (163:9): [True: 0, False: 2]
  ------------------
  164|      0|        goto err;
  165|       |
  166|       |    /* P2. We want loader_store to be cleaned up before the provider store */
  167|      2|    ctx->store_loader_store = ossl_method_store_new(ctx);
  168|      2|    if (ctx->store_loader_store == NULL)
  ------------------
  |  Branch (168:9): [True: 0, False: 2]
  ------------------
  169|      0|        goto err;
  170|      2|#endif
  171|       |
  172|       |    /* P1. Needs to be freed before the child provider data is freed */
  173|      2|    ctx->provider_store = ossl_provider_store_new(ctx);
  174|      2|    if (ctx->provider_store == NULL)
  ------------------
  |  Branch (174:9): [True: 0, False: 2]
  ------------------
  175|      0|        goto err;
  176|       |
  177|       |    /* Default priority. */
  178|      2|    ctx->property_string_data = ossl_property_string_data_new(ctx);
  179|      2|    if (ctx->property_string_data == NULL)
  ------------------
  |  Branch (179:9): [True: 0, False: 2]
  ------------------
  180|      0|        goto err;
  181|       |
  182|      2|    ctx->namemap = ossl_stored_namemap_new(ctx);
  183|      2|    if (ctx->namemap == NULL)
  ------------------
  |  Branch (183:9): [True: 0, False: 2]
  ------------------
  184|      0|        goto err;
  185|       |
  186|      2|    ctx->property_defns = ossl_property_defns_new(ctx);
  187|      2|    if (ctx->property_defns == NULL)
  ------------------
  |  Branch (187:9): [True: 0, False: 2]
  ------------------
  188|      0|        goto err;
  189|       |
  190|      2|    ctx->global_properties = ossl_ctx_global_properties_new(ctx);
  191|      2|    if (ctx->global_properties == NULL)
  ------------------
  |  Branch (191:9): [True: 0, False: 2]
  ------------------
  192|      0|        goto err;
  193|       |
  194|      2|#ifndef FIPS_MODULE
  195|      2|    ctx->bio_core = ossl_bio_core_globals_new(ctx);
  196|      2|    if (ctx->bio_core == NULL)
  ------------------
  |  Branch (196:9): [True: 0, False: 2]
  ------------------
  197|      0|        goto err;
  198|      2|#endif
  199|       |
  200|      2|    ctx->drbg_nonce = ossl_prov_drbg_nonce_ctx_new(ctx);
  201|      2|    if (ctx->drbg_nonce == NULL)
  ------------------
  |  Branch (201:9): [True: 0, False: 2]
  ------------------
  202|      0|        goto err;
  203|       |
  204|      2|#ifndef FIPS_MODULE
  205|      2|    ctx->self_test_cb = ossl_self_test_set_callback_new(ctx);
  206|      2|    if (ctx->self_test_cb == NULL)
  ------------------
  |  Branch (206:9): [True: 0, False: 2]
  ------------------
  207|      0|        goto err;
  208|      2|    ctx->indicator_cb = ossl_indicator_set_callback_new(ctx);
  209|      2|    if (ctx->indicator_cb == NULL)
  ------------------
  |  Branch (209:9): [True: 0, False: 2]
  ------------------
  210|      0|        goto err;
  211|      2|#endif
  212|       |
  213|       |#ifdef FIPS_MODULE
  214|       |    if (!ossl_thread_event_ctx_new(ctx))
  215|       |        goto err;
  216|       |
  217|       |    ctx->fips_prov = ossl_fips_prov_ossl_ctx_new(ctx);
  218|       |    if (ctx->fips_prov == NULL)
  219|       |        goto err;
  220|       |#endif
  221|       |
  222|      2|#ifndef OPENSSL_NO_THREAD_POOL
  223|      2|    ctx->threads = ossl_threads_ctx_new(ctx);
  224|      2|    if (ctx->threads == NULL)
  ------------------
  |  Branch (224:9): [True: 0, False: 2]
  ------------------
  225|      0|        goto err;
  226|      2|#endif
  227|       |
  228|       |    /* Low priority. */
  229|      2|#ifndef FIPS_MODULE
  230|      2|    ctx->child_provider = ossl_child_prov_ctx_new(ctx);
  231|      2|    if (ctx->child_provider == NULL)
  ------------------
  |  Branch (231:9): [True: 0, False: 2]
  ------------------
  232|      0|        goto err;
  233|      2|#endif
  234|       |
  235|       |    /* Everything depends on properties, so we also pre-initialise that */
  236|      2|    if (!ossl_property_parse_init(ctx))
  ------------------
  |  Branch (236:9): [True: 0, False: 2]
  ------------------
  237|      0|        goto err;
  238|       |
  239|      2|#ifndef FIPS_MODULE
  240|      2|    ctx->comp_methods = ossl_load_builtin_compressions();
  241|      2|#endif
  242|       |
  243|      2|    return 1;
  244|       |
  245|      0|err:
  246|      0|    context_deinit_objs(ctx);
  247|       |
  248|      0|    if (exdata_done)
  ------------------
  |  Branch (248:9): [True: 0, False: 0]
  ------------------
  249|      0|        ossl_crypto_cleanup_all_ex_data_int(ctx);
  250|       |
  251|      0|    CRYPTO_THREAD_lock_free(ctx->lock);
  252|      0|    memset(ctx, '\0', sizeof(*ctx));
  253|      0|    return 0;
  254|      2|}
context.c:default_context_do_thread_key_init:
  414|      2|{
  415|      2|    if (!CRYPTO_THREAD_init_local(&default_context_thread_local, NULL))
  ------------------
  |  Branch (415:9): [True: 0, False: 2]
  ------------------
  416|      0|        return 0;
  417|      2|    return 1;
  418|      2|}
context.c:default_context_do_init:
  421|      2|{
  422|      2|    if (!context_init(&default_context_int))
  ------------------
  |  Branch (422:9): [True: 0, False: 2]
  ------------------
  423|      0|        return 0;
  424|       |
  425|      2|    default_context_inited = 1;
  426|      2|    return 1;
  427|      2|}
context.c:get_default_context:
  458|  1.09M|{
  459|  1.09M|    OSSL_LIB_CTX *current_defctx = get_thread_default_context();
  460|       |
  461|  1.09M|    if (current_defctx == NULL && default_context_inited)
  ------------------
  |  Branch (461:9): [True: 1.09M, False: 0]
  |  Branch (461:35): [True: 1.09M, False: 0]
  ------------------
  462|  1.09M|        current_defctx = &default_context_int;
  463|  1.09M|    return current_defctx;
  464|  1.09M|}
context.c:get_thread_default_context:
  439|  1.09M|{
  440|  1.09M|    if (!RUN_ONCE(&default_context_thread_key_init, default_context_do_thread_key_init))
  ------------------
  |  |  130|  1.09M|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 1.09M, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (440:9): [True: 0, False: 1.09M]
  ------------------
  441|      0|        return NULL;
  442|       |
  443|  1.09M|    if (!RUN_ONCE(&default_context_init, default_context_do_init))
  ------------------
  |  |  130|  1.09M|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 1.09M, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (443:9): [True: 0, False: 1.09M]
  ------------------
  444|      0|        return NULL;
  445|       |
  446|  1.09M|    return CRYPTO_THREAD_get_local(&default_context_thread_local);
  447|  1.09M|}

ossl_algorithm_do_all:
  149|  5.61k|{
  150|  5.61k|    struct algorithm_data_st cbdata = {
  151|  5.61k|        0,
  152|  5.61k|    };
  153|       |
  154|  5.61k|    cbdata.libctx = libctx;
  155|  5.61k|    cbdata.operation_id = operation_id;
  156|  5.61k|    cbdata.pre = pre;
  157|  5.61k|    cbdata.reserve_store = reserve_store;
  158|  5.61k|    cbdata.fn = fn;
  159|  5.61k|    cbdata.unreserve_store = unreserve_store;
  160|  5.61k|    cbdata.post = post;
  161|  5.61k|    cbdata.data = data;
  162|       |
  163|  5.61k|    if (provider == NULL) {
  ------------------
  |  Branch (163:9): [True: 5.61k, False: 2]
  ------------------
  164|  5.61k|        ossl_provider_doall_activated(libctx, algorithm_do_this, &cbdata);
  165|  5.61k|    } 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|  5.61k|}
ossl_algorithm_get1_first_name:
  183|    349|{
  184|    349|    const char *first_name_end = NULL;
  185|    349|    size_t first_name_len = 0;
  186|    349|    char *ret;
  187|       |
  188|    349|    if (algo->algorithm_names == NULL)
  ------------------
  |  Branch (188:9): [True: 0, False: 349]
  ------------------
  189|      0|        return NULL;
  190|       |
  191|    349|    first_name_end = strchr(algo->algorithm_names, ':');
  192|    349|    if (first_name_end == NULL)
  ------------------
  |  Branch (192:9): [True: 161, False: 188]
  ------------------
  193|    161|        first_name_len = strlen(algo->algorithm_names);
  194|    188|    else
  195|    188|        first_name_len = first_name_end - algo->algorithm_names;
  196|       |
  197|    349|    ret = OPENSSL_strndup(algo->algorithm_names, first_name_len);
  ------------------
  |  |  138|    349|    CRYPTO_strndup(str, n, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strndup(str, n, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  198|    349|    return ret;
  199|    349|}
core_algorithm.c:algorithm_do_this:
  103|  5.61k|{
  104|  5.61k|    struct algorithm_data_st *data = cbdata;
  105|  5.61k|    int first_operation = 1;
  106|  5.61k|    int last_operation = OSSL_OP__HIGHEST;
  ------------------
  |  |  299|  5.61k|#define OSSL_OP__HIGHEST 22
  ------------------
  107|  5.61k|    int cur_operation;
  108|  5.61k|    int ok = 1;
  109|       |
  110|  5.61k|    if (data->operation_id != 0)
  ------------------
  |  Branch (110:9): [True: 5.61k, False: 0]
  ------------------
  111|  5.61k|        first_operation = last_operation = data->operation_id;
  112|       |
  113|  5.61k|    for (cur_operation = first_operation;
  114|  11.2k|        cur_operation <= last_operation;
  ------------------
  |  Branch (114:9): [True: 5.61k, False: 5.61k]
  ------------------
  115|  5.61k|        cur_operation++) {
  116|  5.61k|        int no_store = 0; /* Assume caching is ok */
  117|  5.61k|        const OSSL_ALGORITHM *map = NULL;
  118|  5.61k|        int ret = 0;
  119|       |
  120|  5.61k|        map = ossl_provider_query_operation(provider, cur_operation,
  121|  5.61k|            &no_store);
  122|  5.61k|        ret = algorithm_do_map(provider, map, cur_operation, no_store, data);
  123|  5.61k|        ossl_provider_unquery_operation(provider, cur_operation, map);
  124|       |
  125|  5.61k|        if (ret < 0)
  ------------------
  |  Branch (125:13): [True: 0, False: 5.61k]
  ------------------
  126|       |            /* Hard error, bail out immediately! */
  127|      0|            return 0;
  128|       |
  129|       |        /* If post-condition not fulfilled, set general failure */
  130|  5.61k|        if (!ret)
  ------------------
  |  Branch (130:13): [True: 0, False: 5.61k]
  ------------------
  131|      0|            ok = 0;
  132|  5.61k|    }
  133|       |
  134|  5.61k|    return ok;
  135|  5.61k|}
core_algorithm.c:algorithm_do_map:
   44|  5.61k|{
   45|  5.61k|    struct algorithm_data_st *data = cbdata;
   46|  5.61k|    int ret = 0;
   47|       |
   48|  5.61k|    if (!data->reserve_store(no_store, data->data))
  ------------------
  |  Branch (48:9): [True: 0, False: 5.61k]
  ------------------
   49|       |        /* Error, bail out! */
   50|      0|        return -1;
   51|       |
   52|       |    /* Do we fulfill pre-conditions? */
   53|  5.61k|    if (data->pre == NULL) {
  ------------------
  |  Branch (53:9): [True: 0, False: 5.61k]
  ------------------
   54|       |        /* If there is no pre-condition function, assume "yes" */
   55|      0|        ret = 1;
   56|  5.61k|    } else if (!data->pre(provider, cur_operation, no_store, data->data,
  ------------------
  |  Branch (56:16): [True: 0, False: 5.61k]
  ------------------
   57|  5.61k|                   &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|  5.61k|    if (ret == 0) {
  ------------------
  |  Branch (68:9): [True: 5.60k, False: 7]
  ------------------
   69|  5.60k|        ret = 1;
   70|  5.60k|        goto end;
   71|  5.60k|    }
   72|       |
   73|      7|    if (map != NULL) {
  ------------------
  |  Branch (73:9): [True: 7, False: 0]
  ------------------
   74|      7|        const OSSL_ALGORITHM *thismap;
   75|       |
   76|    356|        for (thismap = map; thismap->algorithm_names != NULL; thismap++)
  ------------------
  |  Branch (76:29): [True: 349, False: 7]
  ------------------
   77|    349|            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|  5.61k|end:
   91|  5.61k|    data->unreserve_store(data->data);
   92|       |
   93|  5.61k|    return ret;
   94|      7|}

ossl_method_construct:
  137|  5.61k|{
  138|  5.61k|    void *method = NULL;
  139|  5.61k|    OSSL_PROVIDER *provider = provider_rw != NULL ? *provider_rw : NULL;
  ------------------
  |  Branch (139:31): [True: 5.61k, False: 0]
  ------------------
  140|  5.61k|    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|  5.61k|    cbdata.store = NULL;
  154|  5.61k|    cbdata.force_store = force_store;
  155|  5.61k|    cbdata.mcm = mcm;
  156|  5.61k|    cbdata.mcm_data = mcm_data;
  157|  5.61k|    ossl_algorithm_do_all(libctx, operation_id, provider,
  158|  5.61k|        ossl_method_construct_precondition,
  159|  5.61k|        ossl_method_construct_reserve_store,
  160|  5.61k|        ossl_method_construct_this,
  161|  5.61k|        ossl_method_construct_unreserve_store,
  162|  5.61k|        ossl_method_construct_postcondition,
  163|  5.61k|        &cbdata);
  164|       |
  165|       |    /* If there is a temporary store, try there first */
  166|  5.61k|    if (cbdata.store != NULL)
  ------------------
  |  Branch (166:9): [True: 0, False: 5.61k]
  ------------------
  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|  5.61k|    if (method == NULL)
  ------------------
  |  Branch (171:9): [True: 5.61k, False: 0]
  ------------------
  172|  5.61k|        method = mcm->get(NULL, (const OSSL_PROVIDER **)provider_rw, mcm_data);
  173|       |
  174|  5.61k|    return method;
  175|  5.61k|}
core_fetch.c:ossl_method_construct_precondition:
   63|  5.61k|{
   64|  5.61k|    if (!ossl_assert(result != NULL)) {
  ------------------
  |  |   52|  5.61k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  5.61k|    __FILE__, __LINE__)
  ------------------
  |  Branch (64:9): [True: 0, False: 5.61k]
  ------------------
   65|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   66|      0|        return 0;
   67|      0|    }
   68|       |
   69|       |    /* Assume that no bits are set */
   70|  5.61k|    *result = 0;
   71|       |
   72|       |    /* No flag bits for temporary stores */
   73|  5.61k|    if (!is_temporary_method_store(no_store, cbdata)
  ------------------
  |  Branch (73:9): [True: 5.61k, False: 0]
  ------------------
   74|  5.61k|        && !ossl_provider_test_operation_bit(provider, operation_id, result))
  ------------------
  |  Branch (74:12): [True: 0, False: 5.61k]
  ------------------
   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|  5.61k|    *result = !*result;
   83|       |
   84|  5.61k|    return 1;
   85|  5.61k|}
core_fetch.c:is_temporary_method_store:
   29|  11.2k|{
   30|  11.2k|    struct construct_data_st *data = cbdata;
   31|       |
   32|  11.2k|    return no_store && !data->force_store;
  ------------------
  |  Branch (32:12): [True: 0, False: 11.2k]
  |  Branch (32:24): [True: 0, False: 0]
  ------------------
   33|  11.2k|}
core_fetch.c:ossl_method_construct_reserve_store:
   36|  5.61k|{
   37|  5.61k|    struct construct_data_st *data = cbdata;
   38|       |
   39|  5.61k|    if (is_temporary_method_store(no_store, data) && data->store == NULL) {
  ------------------
  |  Branch (39:9): [True: 0, False: 5.61k]
  |  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|  5.61k|    return data->mcm->lock_store(data->store, data->mcm_data);
   51|  5.61k|}
core_fetch.c:ossl_method_construct_this:
  106|    349|{
  107|    349|    struct construct_data_st *data = cbdata;
  108|    349|    void *method = NULL;
  109|       |
  110|    349|    if ((method = data->mcm->construct(algo, provider, data->mcm_data))
  ------------------
  |  Branch (110:9): [True: 0, False: 349]
  ------------------
  111|    349|        == NULL)
  112|      0|        return;
  113|       |
  114|    349|    OSSL_TRACE2(QUERY,
  ------------------
  |  |  293|    349|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2))
  |  |  ------------------
  |  |  |  |  283|    349|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  115|    349|        "ossl_method_construct_this: putting an algo to the store %p with no_store %d\n",
  116|    349|        (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|    349|    data->mcm->put(no_store ? data->store : NULL, method, provider, algo->algorithm_names,
  ------------------
  |  Branch (127:20): [True: 0, False: 349]
  ------------------
  128|    349|        algo->property_definition, data->mcm_data);
  129|       |
  130|       |    /* refcnt-- because we're dropping the reference */
  131|    349|    data->mcm->destruct(method, data->mcm_data);
  132|    349|}
core_fetch.c:ossl_method_construct_unreserve_store:
   54|  5.61k|{
   55|  5.61k|    struct construct_data_st *data = cbdata;
   56|       |
   57|  5.61k|    return data->mcm->unlock_store(data->store, data->mcm_data);
   58|  5.61k|}
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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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:
   58|      2|{
   59|      2|    OSSL_NAMEMAP *namemap = ossl_namemap_new(libctx);
   60|       |
   61|      2|    if (namemap != NULL)
  ------------------
  |  Branch (61:9): [True: 2, False: 0]
  ------------------
   62|      2|        namemap->stored = 1;
   63|       |
   64|      2|    return namemap;
   65|      2|}
ossl_namemap_empty:
   84|   349k|{
   85|       |#ifdef TSAN_REQUIRES_LOCKING
   86|       |    /* No TSAN support */
   87|       |    int rv;
   88|       |
   89|       |    if (namemap == NULL)
   90|       |        return 1;
   91|       |
   92|       |    if (!CRYPTO_THREAD_read_lock(namemap->lock))
   93|       |        return -1;
   94|       |    rv = namemap->max_number == 0;
   95|       |    CRYPTO_THREAD_unlock(namemap->lock);
   96|       |    return rv;
   97|       |#else
   98|       |    /* Have TSAN support */
   99|   349k|    return namemap == NULL || tsan_load(&namemap->max_number) == 0;
  ------------------
  |  |   61|   349k|#define tsan_load(ptr) atomic_load_explicit((ptr), memory_order_relaxed)
  ------------------
  |  Branch (99:12): [True: 0, False: 349k]
  |  Branch (99:31): [True: 1, False: 349k]
  ------------------
  100|   349k|#endif
  101|   349k|}
ossl_namemap_doall_names:
  111|  42.9k|{
  112|  42.9k|    int i;
  113|  42.9k|    NAMES *names;
  114|       |
  115|  42.9k|    if (namemap == NULL || number <= 0)
  ------------------
  |  Branch (115:9): [True: 0, False: 42.9k]
  |  Branch (115:28): [True: 0, False: 42.9k]
  ------------------
  116|      0|        return 0;
  117|       |
  118|       |    /*
  119|       |     * We duplicate the NAMES stack under a read lock. Subsequently we call
  120|       |     * the user function, so that we're not holding the read lock when in user
  121|       |     * code. This could lead to deadlocks.
  122|       |     */
  123|  42.9k|    if (!CRYPTO_THREAD_read_lock(namemap->lock))
  ------------------
  |  Branch (123:9): [True: 0, False: 42.9k]
  ------------------
  124|      0|        return 0;
  125|       |
  126|  42.9k|    names = sk_NAMES_value(namemap->numnames, number - 1);
  127|  42.9k|    if (names != NULL)
  ------------------
  |  Branch (127:9): [True: 42.9k, False: 0]
  ------------------
  128|  42.9k|        names = sk_OPENSSL_STRING_dup(names);
  ------------------
  |  |  278|  42.9k|#define sk_OPENSSL_STRING_dup(sk) ((STACK_OF(OPENSSL_STRING) *)OPENSSL_sk_dup(ossl_check_const_OPENSSL_STRING_sk_type(sk)))
  ------------------
  129|       |
  130|  42.9k|    CRYPTO_THREAD_unlock(namemap->lock);
  131|       |
  132|  42.9k|    if (names == NULL)
  ------------------
  |  Branch (132:9): [True: 0, False: 42.9k]
  ------------------
  133|      0|        return 0;
  134|       |
  135|   198k|    for (i = 0; i < sk_OPENSSL_STRING_num(names); i++)
  ------------------
  |  |  256|   198k|#define sk_OPENSSL_STRING_num(sk) OPENSSL_sk_num(ossl_check_const_OPENSSL_STRING_sk_type(sk))
  ------------------
  |  Branch (135:17): [True: 155k, False: 42.9k]
  ------------------
  136|   155k|        fn(sk_OPENSSL_STRING_value(names, i), data);
  ------------------
  |  |  257|   155k|#define sk_OPENSSL_STRING_value(sk, idx) ((char *)OPENSSL_sk_value(ossl_check_const_OPENSSL_STRING_sk_type(sk), (idx)))
  ------------------
  137|       |
  138|  42.9k|    sk_OPENSSL_STRING_free(names);
  ------------------
  |  |  262|  42.9k|#define sk_OPENSSL_STRING_free(sk) OPENSSL_sk_free(ossl_check_OPENSSL_STRING_sk_type(sk))
  ------------------
  139|  42.9k|    return i > 0;
  140|  42.9k|}
ossl_namemap_name2num:
  143|   303k|{
  144|   303k|    int number = 0;
  145|   303k|    HT_VALUE *val;
  146|   303k|    NAMENUM_KEY key;
  147|       |
  148|   303k|#ifndef FIPS_MODULE
  149|   303k|    if (namemap == NULL)
  ------------------
  |  Branch (149:9): [True: 0, False: 303k]
  ------------------
  150|      0|        namemap = ossl_namemap_stored(NULL);
  151|   303k|#endif
  152|       |
  153|   303k|    if (namemap == NULL || name == NULL)
  ------------------
  |  Branch (153:9): [True: 0, False: 303k]
  |  Branch (153:28): [True: 2, False: 303k]
  ------------------
  154|      2|        return 0;
  155|       |
  156|   303k|    HT_INIT_RAW_KEY(&key);
  ------------------
  |  |  130|   303k|    do {                               \
  |  |  131|   303k|        HT_INIT_KEY((key));            \
  |  |  ------------------
  |  |  |  |  112|   303k|    do {                                                                                           \
  |  |  |  |  113|   303k|        memset((key), 0, sizeof(*(key)));                                                          \
  |  |  |  |  114|   303k|        (key)->key_header.keysize = (key)->key_header.bufsize = (sizeof(*(key)) - sizeof(HT_KEY)); \
  |  |  |  |  115|   303k|        (key)->key_header.keybuf = (((uint8_t *)key) + sizeof(HT_KEY));                            \
  |  |  |  |  116|   303k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (116:14): [Folded, False: 303k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  132|   303k|        (key)->key_header.keysize = 0; \
  |  |  133|   303k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (133:14): [Folded, False: 303k]
  |  |  ------------------
  ------------------
  157|   303k|    HT_COPY_RAW_KEY_CASE(TO_HT_KEY(&key), name, strlen(name));
  ------------------
  |  |  164|   303k|    do {                                                                               \
  |  |  165|   303k|        size_t tmplen = (size_t)(len);                                                 \
  |  |  166|   303k|        if (tmplen > (key)->bufsize - (key)->keysize)                                  \
  |  |  ------------------
  |  |  |  Branch (166:13): [True: 0, False: 303k]
  |  |  ------------------
  |  |  167|   303k|            tmplen = (key)->bufsize - (key)->keysize;                                  \
  |  |  168|   303k|        ossl_ht_strcase((key), (char *)&((key)->keybuf[(key)->keysize]), buf, tmplen); \
  |  |  169|   303k|        (key)->keysize += tmplen;                                                      \
  |  |  170|   303k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (170:14): [Folded, False: 303k]
  |  |  ------------------
  ------------------
  158|       |
  159|   303k|    val = ossl_ht_get(namemap->namenum_ht, TO_HT_KEY(&key));
  ------------------
  |  |  237|   303k|#define TO_HT_KEY(key) &(key)->key_header
  ------------------
  160|       |
  161|   303k|    if (val != NULL)
  ------------------
  |  Branch (161:9): [True: 298k, False: 5.06k]
  ------------------
  162|       |        /* We store a (small) int directly instead of a pointer to it. */
  163|   298k|        number = (int)(intptr_t)val->value;
  164|       |
  165|   303k|    return number;
  166|   303k|}
ossl_namemap_name2num_n:
  170|  4.16k|{
  171|  4.16k|    int number = 0;
  172|  4.16k|    HT_VALUE *val;
  173|  4.16k|    NAMENUM_KEY key;
  174|       |
  175|  4.16k|#ifndef FIPS_MODULE
  176|  4.16k|    if (namemap == NULL)
  ------------------
  |  Branch (176:9): [True: 0, False: 4.16k]
  ------------------
  177|      0|        namemap = ossl_namemap_stored(NULL);
  178|  4.16k|#endif
  179|       |
  180|  4.16k|    if (namemap == NULL)
  ------------------
  |  Branch (180:9): [True: 0, False: 4.16k]
  ------------------
  181|      0|        return 0;
  182|       |
  183|  4.16k|    if (name_len > NAMEMAP_NAME_LEN)
  ------------------
  |  |   19|  4.16k|#define NAMEMAP_NAME_LEN 64
  ------------------
  |  Branch (183:9): [True: 0, False: 4.16k]
  ------------------
  184|      0|        name_len = NAMEMAP_NAME_LEN;
  ------------------
  |  |   19|      0|#define NAMEMAP_NAME_LEN 64
  ------------------
  185|       |
  186|  4.16k|    HT_INIT_RAW_KEY(&key);
  ------------------
  |  |  130|  4.16k|    do {                               \
  |  |  131|  4.16k|        HT_INIT_KEY((key));            \
  |  |  ------------------
  |  |  |  |  112|  4.16k|    do {                                                                                           \
  |  |  |  |  113|  4.16k|        memset((key), 0, sizeof(*(key)));                                                          \
  |  |  |  |  114|  4.16k|        (key)->key_header.keysize = (key)->key_header.bufsize = (sizeof(*(key)) - sizeof(HT_KEY)); \
  |  |  |  |  115|  4.16k|        (key)->key_header.keybuf = (((uint8_t *)key) + sizeof(HT_KEY));                            \
  |  |  |  |  116|  4.16k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (116:14): [Folded, False: 4.16k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  132|  4.16k|        (key)->key_header.keysize = 0; \
  |  |  133|  4.16k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (133:14): [Folded, False: 4.16k]
  |  |  ------------------
  ------------------
  187|  4.16k|    HT_COPY_RAW_KEY_CASE(TO_HT_KEY(&key), name, name_len);
  ------------------
  |  |  164|  4.16k|    do {                                                                               \
  |  |  165|  4.16k|        size_t tmplen = (size_t)(len);                                                 \
  |  |  166|  4.16k|        if (tmplen > (key)->bufsize - (key)->keysize)                                  \
  |  |  ------------------
  |  |  |  Branch (166:13): [True: 0, False: 4.16k]
  |  |  ------------------
  |  |  167|  4.16k|            tmplen = (key)->bufsize - (key)->keysize;                                  \
  |  |  168|  4.16k|        ossl_ht_strcase((key), (char *)&((key)->keybuf[(key)->keysize]), buf, tmplen); \
  |  |  169|  4.16k|        (key)->keysize += tmplen;                                                      \
  |  |  170|  4.16k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (170:14): [Folded, False: 4.16k]
  |  |  ------------------
  ------------------
  188|       |
  189|  4.16k|    val = ossl_ht_get(namemap->namenum_ht, TO_HT_KEY(&key));
  ------------------
  |  |  237|  4.16k|#define TO_HT_KEY(key) &(key)->key_header
  ------------------
  190|       |
  191|  4.16k|    if (val != NULL)
  ------------------
  |  Branch (191:9): [True: 352, False: 3.81k]
  ------------------
  192|       |        /* We store a (small) int directly instead of a pointer to it. */
  193|    352|        number = (int)(intptr_t)val->value;
  194|       |
  195|  4.16k|    return number;
  196|  4.16k|}
ossl_namemap_add_name:
  296|    649|{
  297|    649|    int tmp_number;
  298|       |
  299|    649|#ifndef FIPS_MODULE
  300|    649|    if (namemap == NULL)
  ------------------
  |  Branch (300:9): [True: 0, False: 649]
  ------------------
  301|      0|        namemap = ossl_namemap_stored(NULL);
  302|    649|#endif
  303|       |
  304|    649|    if (name == NULL || *name == 0 || namemap == NULL)
  ------------------
  |  Branch (304:9): [True: 0, False: 649]
  |  Branch (304:25): [True: 0, False: 649]
  |  Branch (304:39): [True: 0, False: 649]
  ------------------
  305|      0|        return 0;
  306|       |
  307|    649|    if (!CRYPTO_THREAD_write_lock(namemap->lock))
  ------------------
  |  Branch (307:9): [True: 0, False: 649]
  ------------------
  308|      0|        return 0;
  309|    649|    tmp_number = namemap_add_name(namemap, number, name);
  310|    649|    CRYPTO_THREAD_unlock(namemap->lock);
  311|    649|    return tmp_number;
  312|    649|}
ossl_namemap_add_names:
  316|    349|{
  317|    349|    char *tmp, *p, *q, *endp;
  318|       |
  319|       |    /* Check that we have a namemap */
  320|    349|    if (!ossl_assert(namemap != NULL)) {
  ------------------
  |  |   52|    349|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    349|    __FILE__, __LINE__)
  ------------------
  |  Branch (320:9): [True: 0, False: 349]
  ------------------
  321|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  322|      0|        return 0;
  323|      0|    }
  324|       |
  325|    349|    if ((tmp = OPENSSL_strdup(names)) == NULL)
  ------------------
  |  |  136|    349|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (325:9): [True: 0, False: 349]
  ------------------
  326|      0|        return 0;
  327|       |
  328|    349|    if (!CRYPTO_THREAD_write_lock(namemap->lock)) {
  ------------------
  |  Branch (328:9): [True: 0, False: 349]
  ------------------
  329|      0|        OPENSSL_free(tmp);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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.05k|    for (p = tmp; *p != '\0'; p = q) {
  ------------------
  |  Branch (336:19): [True: 708, False: 349]
  ------------------
  337|    708|        int this_number;
  338|    708|        size_t l;
  339|       |
  340|    708|        if ((q = strchr(p, separator)) == NULL) {
  ------------------
  |  Branch (340:13): [True: 349, False: 359]
  ------------------
  341|    349|            l = strlen(p); /* offset to \0 */
  342|    349|            q = p + l;
  343|    359|        } else {
  344|    359|            l = q - p; /* offset to the next separator */
  345|    359|            *q++ = '\0';
  346|    359|        }
  347|       |
  348|    708|        if (*p == '\0') {
  ------------------
  |  Branch (348:13): [True: 0, False: 708]
  ------------------
  349|      0|            ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_BAD_ALGORITHM_NAME);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  350|      0|            number = 0;
  351|      0|            goto end;
  352|      0|        }
  353|       |
  354|    708|        this_number = ossl_namemap_name2num(namemap, p);
  355|       |
  356|    708|        if (number == 0) {
  ------------------
  |  Branch (356:13): [True: 522, False: 186]
  ------------------
  357|    522|            number = this_number;
  358|    522|        } 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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                          ERR_raise_data(ERR_LIB_CRYPTO, CRYPTO_R_CONFLICTING_NAMES,
  ------------------
  |  |   68|      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|    708|    }
  366|    349|    endp = p;
  367|       |
  368|       |    /* Now that we have checked, register all names */
  369|  1.05k|    for (p = tmp; p < endp; p = q) {
  ------------------
  |  Branch (369:19): [True: 708, False: 349]
  ------------------
  370|    708|        int this_number;
  371|       |
  372|    708|        q = p + strlen(p) + 1;
  373|       |
  374|    708|        this_number = namemap_add_name(namemap, number, p);
  375|    708|        if (number == 0) {
  ------------------
  |  Branch (375:13): [True: 141, False: 567]
  ------------------
  376|    141|            number = this_number;
  377|    567|        } else if (this_number != number) {
  ------------------
  |  Branch (377:20): [True: 0, False: 567]
  ------------------
  378|      0|            ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                          ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |   68|      0|#define ERR_LIB_CRYPTO 15
  ------------------
                          ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  308|      0|#define ERR_R_INTERNAL_ERROR (259 | ERR_R_FATAL)
  |  |  ------------------
  |  |  |  |  304|      0|#define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  219|      0|#define ERR_RFLAG_FATAL (0x1 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  211|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  220|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  211|      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|    708|    }
  385|       |
  386|    349|end:
  387|    349|    CRYPTO_THREAD_unlock(namemap->lock);
  388|    349|    OPENSSL_free(tmp);
  ------------------
  |  |  132|    349|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  389|    349|    return number;
  390|    349|}
ossl_namemap_stored:
  490|   349k|{
  491|   349k|#ifndef FIPS_MODULE
  492|   349k|    int nms;
  493|   349k|#endif
  494|   349k|    OSSL_NAMEMAP *namemap = ossl_lib_ctx_get_data(libctx, OSSL_LIB_CTX_NAMEMAP_INDEX);
  ------------------
  |  |   99|   349k|#define OSSL_LIB_CTX_NAMEMAP_INDEX 4
  ------------------
  495|       |
  496|   349k|    if (namemap == NULL)
  ------------------
  |  Branch (496:9): [True: 0, False: 349k]
  ------------------
  497|      0|        return NULL;
  498|       |
  499|   349k|#ifndef FIPS_MODULE
  500|   349k|    nms = ossl_namemap_empty(namemap);
  501|   349k|    if (nms < 0) {
  ------------------
  |  Branch (501:9): [True: 0, False: 349k]
  ------------------
  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|   349k|    if (nms == 1) {
  ------------------
  |  Branch (508:9): [True: 1, False: 349k]
  ------------------
  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
  ------------------
  |  |  507|      1|#define OPENSSL_INIT_ADD_ALL_CIPHERS 0x00000004L
  ------------------
  513|      1|                | OPENSSL_INIT_ADD_ALL_DIGESTS,
  ------------------
  |  |  508|      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|   349k|#endif
  543|       |
  544|   349k|    return namemap;
  545|   349k|}
ossl_namemap_new:
  548|      2|{
  549|      2|    OSSL_NAMEMAP *namemap;
  550|      2|    HT_CONFIG htconf = { NULL, NULL, NULL, NAMEMAP_HT_BUCKETS, 1, 1, 0 };
  ------------------
  |  |   17|      2|#define NAMEMAP_HT_BUCKETS 512
  ------------------
  551|       |
  552|      2|    htconf.ctx = libctx;
  553|       |
  554|      2|    if ((namemap = OPENSSL_zalloc(sizeof(*namemap))) == NULL)
  ------------------
  |  |  109|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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:
  263|  1.35k|{
  264|  1.35k|    int ret;
  265|  1.35k|    HT_VALUE val = { 0 };
  266|  1.35k|    NAMENUM_KEY key;
  267|       |
  268|       |    /* If it already exists, we don't add it */
  269|  1.35k|    if ((ret = ossl_namemap_name2num(namemap, name)) != 0)
  ------------------
  |  Branch (269:9): [True: 758, False: 599]
  ------------------
  270|    758|        return ret;
  271|       |
  272|    599|    if ((number = numname_insert(namemap, number, name)) == 0)
  ------------------
  |  Branch (272:9): [True: 0, False: 599]
  ------------------
  273|      0|        return 0;
  274|       |
  275|       |    /* Using tsan_store alone here is safe since we're under lock */
  276|    599|    tsan_store(&namemap->max_number, number);
  ------------------
  |  |   62|    599|#define tsan_store(ptr, val) atomic_store_explicit((ptr), (val), memory_order_relaxed)
  ------------------
  277|       |
  278|    599|    HT_INIT_RAW_KEY(&key);
  ------------------
  |  |  130|    599|    do {                               \
  |  |  131|    599|        HT_INIT_KEY((key));            \
  |  |  ------------------
  |  |  |  |  112|    599|    do {                                                                                           \
  |  |  |  |  113|    599|        memset((key), 0, sizeof(*(key)));                                                          \
  |  |  |  |  114|    599|        (key)->key_header.keysize = (key)->key_header.bufsize = (sizeof(*(key)) - sizeof(HT_KEY)); \
  |  |  |  |  115|    599|        (key)->key_header.keybuf = (((uint8_t *)key) + sizeof(HT_KEY));                            \
  |  |  |  |  116|    599|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (116:14): [Folded, False: 599]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  132|    599|        (key)->key_header.keysize = 0; \
  |  |  133|    599|    } while (0)
  |  |  ------------------
  |  |  |  Branch (133:14): [Folded, False: 599]
  |  |  ------------------
  ------------------
  279|    599|    HT_COPY_RAW_KEY_CASE(TO_HT_KEY(&key), name, strlen(name));
  ------------------
  |  |  164|    599|    do {                                                                               \
  |  |  165|    599|        size_t tmplen = (size_t)(len);                                                 \
  |  |  166|    599|        if (tmplen > (key)->bufsize - (key)->keysize)                                  \
  |  |  ------------------
  |  |  |  Branch (166:13): [True: 0, False: 599]
  |  |  ------------------
  |  |  167|    599|            tmplen = (key)->bufsize - (key)->keysize;                                  \
  |  |  168|    599|        ossl_ht_strcase((key), (char *)&((key)->keybuf[(key)->keysize]), buf, tmplen); \
  |  |  169|    599|        (key)->keysize += tmplen;                                                      \
  |  |  170|    599|    } while (0)
  |  |  ------------------
  |  |  |  Branch (170:14): [Folded, False: 599]
  |  |  ------------------
  ------------------
  280|       |
  281|    599|    val.value = (void *)(intptr_t)number;
  282|    599|    ret = ossl_ht_insert(namemap->namenum_ht, TO_HT_KEY(&key), &val, NULL);
  ------------------
  |  |  237|    599|#define TO_HT_KEY(key) &(key)->key_header
  ------------------
  283|    599|    if (ret <= 0) {
  ------------------
  |  Branch (283:9): [True: 0, False: 599]
  ------------------
  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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  |  |  |  Branch (357:55): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  289|      0|        return 0;
  290|      0|    }
  291|    599|    return number;
  292|    599|}
core_namemap.c:numname_insert:
  222|    599|{
  223|    599|    NAMES *names;
  224|    599|    char *tmpname;
  225|       |
  226|    599|    if (number > 0) {
  ------------------
  |  Branch (226:9): [True: 339, False: 260]
  ------------------
  227|    339|        names = sk_NAMES_value(namemap->numnames, number - 1);
  228|    339|        if (!ossl_assert(names != NULL)) {
  ------------------
  |  |   52|    339|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    339|    __FILE__, __LINE__)
  ------------------
  |  Branch (228:13): [True: 0, False: 339]
  ------------------
  229|       |            /* cannot happen */
  230|      0|            return 0;
  231|      0|        }
  232|    339|    } else {
  233|       |        /* a completely new entry */
  234|    260|        names = sk_OPENSSL_STRING_new_null();
  ------------------
  |  |  259|    260|#define sk_OPENSSL_STRING_new_null() ((STACK_OF(OPENSSL_STRING) *)OPENSSL_sk_set_thunks(OPENSSL_sk_new_null(), sk_OPENSSL_STRING_freefunc_thunk))
  ------------------
  235|    260|        if (names == NULL)
  ------------------
  |  Branch (235:13): [True: 0, False: 260]
  ------------------
  236|      0|            return 0;
  237|    260|    }
  238|       |
  239|    599|    if ((tmpname = OPENSSL_strdup(name)) == NULL)
  ------------------
  |  |  136|    599|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (239:9): [True: 0, False: 599]
  ------------------
  240|      0|        goto err;
  241|       |
  242|    599|    if (!sk_OPENSSL_STRING_push(names, tmpname))
  ------------------
  |  |  266|    599|#define sk_OPENSSL_STRING_push(sk, ptr) OPENSSL_sk_push(ossl_check_OPENSSL_STRING_sk_type(sk), ossl_check_OPENSSL_STRING_type(ptr))
  ------------------
  |  Branch (242:9): [True: 0, False: 599]
  ------------------
  243|      0|        goto err;
  244|    599|    tmpname = NULL;
  245|       |
  246|    599|    if (number <= 0) {
  ------------------
  |  Branch (246:9): [True: 260, False: 339]
  ------------------
  247|    260|        if (!sk_NAMES_push(namemap->numnames, names))
  ------------------
  |  Branch (247:13): [True: 0, False: 260]
  ------------------
  248|      0|            goto err;
  249|    260|        number = sk_NAMES_num(namemap->numnames);
  250|    260|    }
  251|    599|    return number;
  252|       |
  253|      0|err:
  254|      0|    if (number <= 0)
  ------------------
  |  Branch (254:9): [True: 0, False: 0]
  ------------------
  255|      0|        sk_OPENSSL_STRING_pop_free(names, name_string_free);
  ------------------
  |  |  270|      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))
  ------------------
  256|      0|    OPENSSL_free(tmpname);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  257|      0|    return 0;
  258|    599|}
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: 206, False: 4]
  ------------------
  419|    206|                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(NID_undef, EVP_MD_get_type(md), NULL, arg);
  ------------------
  |  |   18|     59|#define NID_undef                       0
  ------------------
  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) {
  ------------------
  |  | 1501|     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
  |  |  ------------------
  |  |  |  | 5526|      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
  |  |  ------------------
  |  |  |  | 1259|      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:
   80|      2|{
   81|      2|#ifndef OPENSSL_NO_ERR
   82|      2|    if (ERR_reason_error_string(CRMF_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (82:9): [True: 2, False: 0]
  ------------------
   83|      2|        ERR_load_strings_const(CRMF_str_reasons);
   84|      2|#endif
   85|      2|    return 1;
   86|      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|    347|{
  102|    347|    CTLOG_STORE *ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  109|    347|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  103|       |
  104|    347|    if (ret == NULL)
  ------------------
  |  Branch (104:9): [True: 0, False: 347]
  ------------------
  105|      0|        return NULL;
  106|       |
  107|    347|    ret->libctx = libctx;
  108|    347|    if (propq != NULL) {
  ------------------
  |  Branch (108:9): [True: 0, False: 347]
  ------------------
  109|      0|        ret->propq = OPENSSL_strdup(propq);
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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|    347|    ret->logs = sk_CTLOG_new_null();
  ------------------
  |  |   74|    347|#define sk_CTLOG_new_null() ((STACK_OF(CTLOG) *)OPENSSL_sk_set_thunks(OPENSSL_sk_new_null(), sk_CTLOG_freefunc_thunk))
  ------------------
  115|    347|    if (ret->logs == NULL) {
  ------------------
  |  Branch (115:9): [True: 0, False: 347]
  ------------------
  116|      0|        ERR_raise(ERR_LIB_CT, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  117|      0|        goto err;
  118|      0|    }
  119|       |
  120|    347|    return ret;
  121|      0|err:
  122|      0|    CTLOG_STORE_free(ret);
  123|       |    return NULL;
  124|    347|}
CTLOG_STORE_free:
  132|    347|{
  133|    347|    if (store != NULL) {
  ------------------
  |  Branch (133:9): [True: 347, False: 0]
  ------------------
  134|    347|        OPENSSL_free(store->propq);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  135|    347|        sk_CTLOG_pop_free(store->logs, CTLOG_free);
  ------------------
  |  |   85|    347|#define sk_CTLOG_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_CTLOG_sk_type(sk), ossl_check_CTLOG_freefunc_type(freefunc))
  ------------------
  136|    347|        OPENSSL_free(store);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  137|    347|    }
  138|    347|}

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

ossl_ctype_check:
  253|  5.64M|{
  254|  5.64M|    const int max = sizeof(ctype_char_map) / sizeof(*ctype_char_map);
  255|  5.64M|    const int a = ossl_toascii(c);
  ------------------
  |  |   56|  5.64M|#define ossl_toascii(c) (c)
  ------------------
  256|       |
  257|  5.64M|    return a >= 0 && a < max && (ctype_char_map[a] & mask) != 0;
  ------------------
  |  Branch (257:12): [True: 5.64M, False: 0]
  |  Branch (257:22): [True: 5.64M, False: 0]
  |  Branch (257:33): [True: 476k, False: 5.17M]
  ------------------
  258|  5.64M|}
ossl_isdigit:
  270|  29.5k|{
  271|  29.5k|    int a = ossl_toascii(c);
  ------------------
  |  |   56|  29.5k|#define ossl_toascii(c) (c)
  ------------------
  272|       |
  273|  29.5k|    return ASCII_IS_DIGIT(a);
  ------------------
  |  |  265|  29.5k|#define ASCII_IS_DIGIT(c) (c >= 0x30 && c <= 0x39)
  |  |  ------------------
  |  |  |  Branch (265:28): [True: 29.5k, False: 0]
  |  |  |  Branch (265:41): [True: 29.1k, False: 357]
  |  |  ------------------
  ------------------
  274|  29.5k|}
ossl_tolower:
  297|  13.7M|{
  298|  13.7M|    int a = ossl_toascii(c);
  ------------------
  |  |   56|  13.7M|#define ossl_toascii(c) (c)
  ------------------
  299|       |
  300|  13.7M|    return ASCII_IS_UPPER(a) ? c ^ case_change : c;
  ------------------
  |  |  266|  13.7M|#define ASCII_IS_UPPER(c) (c >= 0x41 && c <= 0x5A)
  |  |  ------------------
  |  |  |  Branch (266:28): [True: 12.6M, False: 1.03M]
  |  |  |  Branch (266:41): [True: 4.32M, False: 8.35M]
  |  |  ------------------
  ------------------
  301|  13.7M|}

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

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|    347|{
  268|    347|    DSA_free(pkey->pkey.dsa);
  269|    347|}

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

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

o2i_ECPublicKey:
 1137|  13.3k|{
 1138|  13.3k|    EC_KEY *ret = NULL;
 1139|       |
 1140|  13.3k|    if (a == NULL || (*a) == NULL || (*a)->group == NULL) {
  ------------------
  |  Branch (1140:9): [True: 0, False: 13.3k]
  |  Branch (1140:22): [True: 0, False: 13.3k]
  |  Branch (1140:38): [True: 0, False: 13.3k]
  ------------------
 1141|       |        /*
 1142|       |         * sorry, but a EC_GROUP-structure is necessary to set the public key
 1143|       |         */
 1144|      0|        ERR_raise(ERR_LIB_EC, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1145|      0|        return 0;
 1146|      0|    }
 1147|  13.3k|    ret = *a;
 1148|       |    /* EC_KEY_opt2key updates dirty_cnt */
 1149|  13.3k|    if (!EC_KEY_oct2key(ret, *in, len, NULL)) {
  ------------------
  |  Branch (1149:9): [True: 0, False: 13.3k]
  ------------------
 1150|      0|        ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1151|      0|        return 0;
 1152|      0|    }
 1153|  13.3k|    *in += len;
 1154|  13.3k|    return ret;
 1155|  13.3k|}
i2d_ECDSA_SIG:
 1247|  13.3k|{
 1248|  13.3k|    BUF_MEM *buf = NULL;
 1249|  13.3k|    size_t encoded_len;
 1250|  13.3k|    WPACKET pkt;
 1251|       |
 1252|  13.3k|    if (ppout == NULL) {
  ------------------
  |  Branch (1252:9): [True: 13.3k, False: 0]
  ------------------
 1253|  13.3k|        if (!WPACKET_init_null(&pkt, 0))
  ------------------
  |  Branch (1253:13): [True: 0, False: 13.3k]
  ------------------
 1254|      0|            return -1;
 1255|  13.3k|    } else if (*ppout == NULL) {
  ------------------
  |  Branch (1255:16): [True: 0, False: 0]
  ------------------
 1256|      0|        if ((buf = BUF_MEM_new()) == NULL
  ------------------
  |  Branch (1256:13): [True: 0, False: 0]
  ------------------
 1257|      0|            || !WPACKET_init_len(&pkt, buf, 0)) {
  ------------------
  |  Branch (1257:16): [True: 0, False: 0]
  ------------------
 1258|      0|            BUF_MEM_free(buf);
 1259|      0|            return -1;
 1260|      0|        }
 1261|      0|    } else {
 1262|      0|        if (!WPACKET_init_static_len(&pkt, *ppout, SIZE_MAX, 0))
  ------------------
  |  Branch (1262:13): [True: 0, False: 0]
  ------------------
 1263|      0|            return -1;
 1264|      0|    }
 1265|       |
 1266|  13.3k|    if (!ossl_encode_der_dsa_sig(&pkt, sig->r, sig->s)
  ------------------
  |  Branch (1266:9): [True: 0, False: 13.3k]
  ------------------
 1267|  13.3k|        || !WPACKET_get_total_written(&pkt, &encoded_len)
  ------------------
  |  Branch (1267:12): [True: 0, False: 13.3k]
  ------------------
 1268|  13.3k|        || !WPACKET_finish(&pkt)) {
  ------------------
  |  Branch (1268:12): [True: 0, False: 13.3k]
  ------------------
 1269|      0|        BUF_MEM_free(buf);
 1270|      0|        WPACKET_cleanup(&pkt);
 1271|      0|        return -1;
 1272|      0|    }
 1273|       |
 1274|  13.3k|    if (ppout != NULL) {
  ------------------
  |  Branch (1274:9): [True: 0, False: 13.3k]
  ------------------
 1275|      0|        if (*ppout == NULL) {
  ------------------
  |  Branch (1275:13): [True: 0, False: 0]
  ------------------
 1276|      0|            *ppout = (unsigned char *)buf->data;
 1277|      0|            buf->data = NULL;
 1278|      0|            BUF_MEM_free(buf);
 1279|      0|        } else {
 1280|      0|            *ppout += encoded_len;
 1281|      0|        }
 1282|      0|    }
 1283|       |
 1284|  13.3k|    return (int)encoded_len;
 1285|  13.3k|}
ECDSA_size:
 1317|  13.3k|{
 1318|  13.3k|    int ret;
 1319|  13.3k|    ECDSA_SIG sig;
 1320|  13.3k|    const EC_GROUP *group;
 1321|  13.3k|    const BIGNUM *bn;
 1322|       |
 1323|  13.3k|    if (ec == NULL)
  ------------------
  |  Branch (1323:9): [True: 0, False: 13.3k]
  ------------------
 1324|      0|        return 0;
 1325|  13.3k|    group = EC_KEY_get0_group(ec);
 1326|  13.3k|    if (group == NULL)
  ------------------
  |  Branch (1326:9): [True: 0, False: 13.3k]
  ------------------
 1327|      0|        return 0;
 1328|       |
 1329|  13.3k|    bn = EC_GROUP_get0_order(group);
 1330|  13.3k|    if (bn == NULL)
  ------------------
  |  Branch (1330:9): [True: 0, False: 13.3k]
  ------------------
 1331|      0|        return 0;
 1332|       |
 1333|  13.3k|    sig.r = sig.s = (BIGNUM *)bn;
 1334|  13.3k|    ret = i2d_ECDSA_SIG(&sig, NULL);
 1335|       |
 1336|  13.3k|    if (ret < 0)
  ------------------
  |  Branch (1336:9): [True: 0, False: 13.3k]
  ------------------
 1337|      0|        ret = 0;
 1338|  13.3k|    return ret;
 1339|  13.3k|}

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

EC_GROUP_new_by_curve_name_ex:
 3020|  13.3k|{
 3021|  13.3k|    EC_GROUP *ret = NULL;
 3022|  13.3k|    const ec_list_element *curve;
 3023|       |
 3024|  13.3k|    if ((curve = ec_curve_nid2curve(nid)) == NULL
  ------------------
  |  Branch (3024:9): [True: 0, False: 13.3k]
  ------------------
 3025|  13.3k|        || (ret = ec_group_new_from_data(libctx, propq, *curve)) == NULL) {
  ------------------
  |  Branch (3025:12): [True: 0, False: 13.3k]
  ------------------
 3026|      0|#ifndef FIPS_MODULE
 3027|      0|        ERR_raise_data(ERR_LIB_EC, EC_R_UNKNOWN_GROUP,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EC, EC_R_UNKNOWN_GROUP,
  ------------------
  |  |   69|      0|#define ERR_LIB_EC 16
  ------------------
                      ERR_raise_data(ERR_LIB_EC, EC_R_UNKNOWN_GROUP,
  ------------------
  |  |   95|      0|#define EC_R_UNKNOWN_GROUP 129
  ------------------
 3028|      0|            "name=%s", OBJ_nid2sn(nid));
 3029|       |#else
 3030|       |        ERR_raise(ERR_LIB_EC, EC_R_UNKNOWN_GROUP);
 3031|       |#endif
 3032|      0|        return NULL;
 3033|      0|    }
 3034|       |
 3035|  13.3k|    return ret;
 3036|  13.3k|}
ec_curve.c:ec_curve_nid2curve:
 2843|  13.3k|{
 2844|  13.3k|    size_t i;
 2845|       |
 2846|  13.3k|    if (nid <= 0)
  ------------------
  |  Branch (2846:9): [True: 0, False: 13.3k]
  ------------------
 2847|      0|        return NULL;
 2848|       |
 2849|   168k|    for (i = 0; i < curve_list_length; i++) {
  ------------------
  |  | 2840|   168k|#define curve_list_length OSSL_NELEM(curve_list)
  |  |  ------------------
  |  |  |  |   14|   168k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  |  |  ------------------
  ------------------
  |  Branch (2849:17): [True: 168k, False: 0]
  ------------------
 2850|   168k|        if (curve_list[i].nid == nid)
  ------------------
  |  Branch (2850:13): [True: 13.3k, False: 155k]
  ------------------
 2851|  13.3k|            return &curve_list[i];
 2852|   168k|    }
 2853|      0|    return NULL;
 2854|  13.3k|}
ec_curve.c:ec_group_new_from_data:
 2859|  13.3k|{
 2860|  13.3k|    EC_GROUP *group = NULL;
 2861|  13.3k|    EC_POINT *P = NULL;
 2862|  13.3k|    BN_CTX *ctx = NULL;
 2863|  13.3k|    BIGNUM *p = NULL, *a = NULL, *b = NULL, *x = NULL, *y = NULL, *order = NULL;
 2864|  13.3k|    int ok = 0;
 2865|  13.3k|    int seed_len, param_len;
 2866|  13.3k|    const EC_METHOD *meth;
 2867|  13.3k|    const EC_CURVE_DATA *data;
 2868|  13.3k|    const unsigned char *params;
 2869|       |
 2870|       |    /* If no curve data curve method must handle everything */
 2871|  13.3k|    if (curve.data == NULL)
  ------------------
  |  Branch (2871:9): [True: 0, False: 13.3k]
  ------------------
 2872|      0|        return ossl_ec_group_new_ex(libctx, propq,
 2873|      0|            curve.meth != NULL ? curve.meth() : NULL);
  ------------------
  |  Branch (2873:13): [True: 0, False: 0]
  ------------------
 2874|       |
 2875|  13.3k|    if ((ctx = BN_CTX_new_ex(libctx)) == NULL) {
  ------------------
  |  Branch (2875:9): [True: 0, False: 13.3k]
  ------------------
 2876|      0|        ERR_raise(ERR_LIB_EC, ERR_R_BN_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 2877|      0|        goto err;
 2878|      0|    }
 2879|       |
 2880|  13.3k|    data = curve.data;
 2881|  13.3k|    seed_len = data->seed_len;
 2882|  13.3k|    param_len = data->param_len;
 2883|  13.3k|    params = (const unsigned char *)(data + 1); /* skip header */
 2884|       |
 2885|  13.3k|    if (curve.meth != NULL) {
  ------------------
  |  Branch (2885:9): [True: 13.3k, False: 0]
  ------------------
 2886|  13.3k|        meth = curve.meth();
 2887|  13.3k|        if ((group = ossl_ec_group_new_ex(libctx, propq, meth)) == NULL) {
  ------------------
  |  Branch (2887:13): [True: 0, False: 13.3k]
  ------------------
 2888|      0|            ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 2889|      0|            goto err;
 2890|      0|        }
 2891|  13.3k|        if (group->meth->group_full_init != NULL) {
  ------------------
  |  Branch (2891:13): [True: 1.02k, False: 12.3k]
  ------------------
 2892|  1.02k|            if (!group->meth->group_full_init(group, params)) {
  ------------------
  |  Branch (2892:17): [True: 0, False: 1.02k]
  ------------------
 2893|      0|                ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 2894|      0|                goto err;
 2895|      0|            }
 2896|  1.02k|            EC_GROUP_set_curve_name(group, curve.nid);
 2897|  1.02k|            BN_CTX_free(ctx);
 2898|  1.02k|            return group;
 2899|  1.02k|        }
 2900|  13.3k|    }
 2901|       |
 2902|  12.3k|    params += seed_len; /* skip seed */
 2903|       |
 2904|  12.3k|    if ((p = BN_bin2bn(params + 0 * param_len, param_len, NULL)) == NULL
  ------------------
  |  Branch (2904:9): [True: 0, False: 12.3k]
  ------------------
 2905|  12.3k|        || (a = BN_bin2bn(params + 1 * param_len, param_len, NULL)) == NULL
  ------------------
  |  Branch (2905:12): [True: 0, False: 12.3k]
  ------------------
 2906|  12.3k|        || (b = BN_bin2bn(params + 2 * param_len, param_len, NULL)) == NULL) {
  ------------------
  |  Branch (2906:12): [True: 0, False: 12.3k]
  ------------------
 2907|      0|        ERR_raise(ERR_LIB_EC, ERR_R_BN_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 2908|      0|        goto err;
 2909|      0|    }
 2910|       |
 2911|  12.3k|    if (group != NULL) {
  ------------------
  |  Branch (2911:9): [True: 12.3k, False: 0]
  ------------------
 2912|  12.3k|        if (group->meth->group_set_curve(group, p, a, b, ctx) == 0) {
  ------------------
  |  Branch (2912:13): [True: 0, False: 12.3k]
  ------------------
 2913|      0|            ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 2914|      0|            goto err;
 2915|      0|        }
 2916|  12.3k|    } else if (data->field_type == NID_X9_62_prime_field) {
  ------------------
  |  |  152|      0|#define NID_X9_62_prime_field           406
  ------------------
  |  Branch (2916:16): [True: 0, False: 0]
  ------------------
 2917|      0|        if ((group = EC_GROUP_new_curve_GFp(p, a, b, ctx)) == NULL) {
  ------------------
  |  Branch (2917:13): [True: 0, False: 0]
  ------------------
 2918|      0|            ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 2919|      0|            goto err;
 2920|      0|        }
 2921|      0|    }
 2922|      0|#ifndef OPENSSL_NO_EC2M
 2923|      0|    else { /* field_type ==
 2924|       |            * NID_X9_62_characteristic_two_field */
 2925|       |
 2926|      0|        if ((group = EC_GROUP_new_curve_GF2m(p, a, b, ctx)) == NULL) {
  ------------------
  |  Branch (2926:13): [True: 0, False: 0]
  ------------------
 2927|      0|            ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 2928|      0|            goto err;
 2929|      0|        }
 2930|      0|    }
 2931|  12.3k|#endif
 2932|       |
 2933|  12.3k|    EC_GROUP_set_curve_name(group, curve.nid);
 2934|       |
 2935|  12.3k|    if ((P = EC_POINT_new(group)) == NULL) {
  ------------------
  |  Branch (2935:9): [True: 0, False: 12.3k]
  ------------------
 2936|      0|        ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 2937|      0|        goto err;
 2938|      0|    }
 2939|       |
 2940|  12.3k|    if ((x = BN_bin2bn(params + 3 * param_len, param_len, NULL)) == NULL
  ------------------
  |  Branch (2940:9): [True: 0, False: 12.3k]
  ------------------
 2941|  12.3k|        || (y = BN_bin2bn(params + 4 * param_len, param_len, NULL)) == NULL) {
  ------------------
  |  Branch (2941:12): [True: 0, False: 12.3k]
  ------------------
 2942|      0|        ERR_raise(ERR_LIB_EC, ERR_R_BN_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 2943|      0|        goto err;
 2944|      0|    }
 2945|  12.3k|    if (!EC_POINT_set_affine_coordinates(group, P, x, y, ctx)) {
  ------------------
  |  Branch (2945:9): [True: 0, False: 12.3k]
  ------------------
 2946|      0|        ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 2947|      0|        goto err;
 2948|      0|    }
 2949|  12.3k|    if ((order = BN_bin2bn(params + 5 * param_len, param_len, NULL)) == NULL
  ------------------
  |  Branch (2949:9): [True: 0, False: 12.3k]
  ------------------
 2950|  12.3k|        || !BN_set_word(x, (BN_ULONG)data->cofactor)) {
  ------------------
  |  Branch (2950:12): [True: 0, False: 12.3k]
  ------------------
 2951|      0|        ERR_raise(ERR_LIB_EC, ERR_R_BN_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 2952|      0|        goto err;
 2953|      0|    }
 2954|  12.3k|    if (!EC_GROUP_set_generator(group, P, order, x)) {
  ------------------
  |  Branch (2954:9): [True: 0, False: 12.3k]
  ------------------
 2955|      0|        ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 2956|      0|        goto err;
 2957|      0|    }
 2958|  12.3k|    if (seed_len) {
  ------------------
  |  Branch (2958:9): [True: 12.3k, False: 0]
  ------------------
 2959|  12.3k|        if (!EC_GROUP_set_seed(group, params - seed_len, seed_len)) {
  ------------------
  |  Branch (2959:13): [True: 0, False: 12.3k]
  ------------------
 2960|      0|            ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 2961|      0|            goto err;
 2962|      0|        }
 2963|  12.3k|    }
 2964|       |
 2965|  12.3k|#ifndef FIPS_MODULE
 2966|  12.3k|    if (EC_GROUP_get_asn1_flag(group) == OPENSSL_EC_NAMED_CURVE) {
  ------------------
  |  |   31|  12.3k|#define OPENSSL_EC_NAMED_CURVE 0x001
  ------------------
  |  Branch (2966:9): [True: 12.3k, False: 0]
  ------------------
 2967|       |        /*
 2968|       |         * Some curves don't have an associated OID: for those we should not
 2969|       |         * default to `OPENSSL_EC_NAMED_CURVE` encoding of parameters and
 2970|       |         * instead set the ASN1 flag to `OPENSSL_EC_EXPLICIT_CURVE`.
 2971|       |         *
 2972|       |         * Note that `OPENSSL_EC_NAMED_CURVE` is set as the default ASN1 flag on
 2973|       |         * `EC_GROUP_new()`, when we don't have enough elements to determine if
 2974|       |         * an OID for the curve name actually exists.
 2975|       |         * We could implement this check on `EC_GROUP_set_curve_name()` but
 2976|       |         * overloading the simple setter with this lookup could have a negative
 2977|       |         * performance impact and unexpected consequences.
 2978|       |         */
 2979|  12.3k|        ASN1_OBJECT *asn1obj = OBJ_nid2obj(curve.nid);
 2980|       |
 2981|  12.3k|        if (asn1obj == NULL) {
  ------------------
  |  Branch (2981:13): [True: 0, False: 12.3k]
  ------------------
 2982|      0|            ERR_raise(ERR_LIB_EC, ERR_R_OBJ_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 2983|      0|            goto err;
 2984|      0|        }
 2985|  12.3k|        if (OBJ_length(asn1obj) == 0)
  ------------------
  |  Branch (2985:13): [True: 0, False: 12.3k]
  ------------------
 2986|      0|            EC_GROUP_set_asn1_flag(group, OPENSSL_EC_EXPLICIT_CURVE);
  ------------------
  |  |   30|      0|#define OPENSSL_EC_EXPLICIT_CURVE 0x000
  ------------------
 2987|       |
 2988|  12.3k|        ASN1_OBJECT_free(asn1obj);
 2989|  12.3k|    }
 2990|       |#else
 2991|       |    /*
 2992|       |     * Inside the FIPS module we do not support explicit curves anyway
 2993|       |     * so the above check is not necessary.
 2994|       |     *
 2995|       |     * Skipping it is also necessary because `OBJ_length()` and
 2996|       |     * `ASN1_OBJECT_free()` are not available within the FIPS module
 2997|       |     * boundaries.
 2998|       |     */
 2999|       |#endif
 3000|       |
 3001|  12.3k|    ok = 1;
 3002|  12.3k|err:
 3003|  12.3k|    if (!ok) {
  ------------------
  |  Branch (3003:9): [True: 0, False: 12.3k]
  ------------------
 3004|      0|        EC_GROUP_free(group);
 3005|       |        group = NULL;
 3006|      0|    }
 3007|  12.3k|    EC_POINT_free(P);
 3008|  12.3k|    BN_CTX_free(ctx);
 3009|  12.3k|    BN_free(p);
 3010|  12.3k|    BN_free(a);
 3011|  12.3k|    BN_free(b);
 3012|  12.3k|    BN_free(order);
 3013|  12.3k|    BN_free(x);
 3014|  12.3k|    BN_free(y);
 3015|  12.3k|    return group;
 3016|  12.3k|}

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:
   38|  13.3k|{
   39|  13.3k|    return ossl_ec_key_new_method_int(ctx, propq);
   40|  13.3k|}
EC_KEY_free:
   69|  40.0k|{
   70|  40.0k|    int i;
   71|       |
   72|  40.0k|    if (r == NULL)
  ------------------
  |  Branch (72:9): [True: 13.3k, False: 26.6k]
  ------------------
   73|  13.3k|        return;
   74|       |
   75|  26.6k|    CRYPTO_DOWN_REF(&r->references, &i);
   76|  26.6k|    REF_PRINT_COUNT("EC_KEY", i, r);
  ------------------
  |  |  301|  26.6k|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|  26.6k|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  295|  26.6k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|  26.6k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   77|  26.6k|    if (i > 0)
  ------------------
  |  Branch (77:9): [True: 13.3k, False: 13.3k]
  ------------------
   78|  13.3k|        return;
   79|  13.3k|    REF_ASSERT_ISNT(i < 0);
  ------------------
  |  |  293|  13.3k|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 13.3k]
  |  |  ------------------
  ------------------
   80|       |
   81|  13.3k|    if (r->meth != NULL && r->meth->finish != NULL)
  ------------------
  |  Branch (81:9): [True: 13.3k, False: 0]
  |  Branch (81:28): [True: 0, False: 13.3k]
  ------------------
   82|      0|        r->meth->finish(r);
   83|       |
   84|  13.3k|    if (r->group && r->group->meth->keyfinish)
  ------------------
  |  Branch (84:9): [True: 13.3k, False: 0]
  |  Branch (84:21): [True: 0, False: 13.3k]
  ------------------
   85|      0|        r->group->meth->keyfinish(r);
   86|       |
   87|  13.3k|#ifndef FIPS_MODULE
   88|  13.3k|    CRYPTO_free_ex_data(CRYPTO_EX_INDEX_EC_KEY, r, &r->ex_data);
  ------------------
  |  |  259|  13.3k|#define CRYPTO_EX_INDEX_EC_KEY 8
  ------------------
   89|  13.3k|#endif
   90|  13.3k|    CRYPTO_FREE_REF(&r->references);
   91|  13.3k|    EC_GROUP_free(r->group);
   92|  13.3k|    EC_POINT_free(r->pub_key);
   93|  13.3k|    BN_clear_free(r->priv_key);
   94|  13.3k|    OPENSSL_free(r->propq);
  ------------------
  |  |  132|  13.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   95|       |
   96|  13.3k|    OPENSSL_clear_free((void *)r, sizeof(EC_KEY));
  ------------------
  |  |  130|  13.3k|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   97|  13.3k|}
EC_KEY_up_ref:
  176|  13.3k|{
  177|  13.3k|    int i;
  178|       |
  179|  13.3k|    if (CRYPTO_UP_REF(&r->references, &i) <= 0)
  ------------------
  |  Branch (179:9): [True: 0, False: 13.3k]
  ------------------
  180|      0|        return 0;
  181|       |
  182|  13.3k|    REF_PRINT_COUNT("EC_KEY", i, r);
  ------------------
  |  |  301|  13.3k|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|  13.3k|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  295|  13.3k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|  13.3k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  183|  13.3k|    REF_ASSERT_ISNT(i < 2);
  ------------------
  |  |  293|  13.3k|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 13.3k]
  |  |  ------------------
  ------------------
  184|  13.3k|    return ((i > 1) ? 1 : 0);
  ------------------
  |  Branch (184:13): [True: 13.3k, False: 0]
  ------------------
  185|  13.3k|}
ossl_ec_key_get_libctx:
  726|  26.6k|{
  727|  26.6k|    return key->libctx;
  728|  26.6k|}
ossl_ec_key_get0_propq:
  731|  13.3k|{
  732|  13.3k|    return key->propq;
  733|  13.3k|}
ossl_ec_key_set0_libctx:
  736|  13.3k|{
  737|  13.3k|    key->libctx = libctx;
  738|       |    /* Do we need to propagate this to the group? */
  739|  13.3k|}
EC_KEY_get0_group:
  742|  66.6k|{
  743|  66.6k|    return key->group;
  744|  66.6k|}
EC_KEY_set_group:
  747|  13.3k|{
  748|  13.3k|    if (key->meth->set_group != NULL && key->meth->set_group(key, group) == 0)
  ------------------
  |  Branch (748:9): [True: 0, False: 13.3k]
  |  Branch (748:41): [True: 0, False: 0]
  ------------------
  749|      0|        return 0;
  750|  13.3k|    EC_GROUP_free(key->group);
  751|  13.3k|    key->group = EC_GROUP_dup(group);
  752|  13.3k|    if (key->group != NULL && EC_GROUP_get_curve_name(key->group) == NID_sm2)
  ------------------
  |  | 1259|  13.3k|#define NID_sm2         1172
  ------------------
  |  Branch (752:9): [True: 13.3k, False: 0]
  |  Branch (752:31): [True: 0, False: 13.3k]
  ------------------
  753|      0|        EC_KEY_set_flags(key, EC_FLAG_SM2_RANGE);
  ------------------
  |  |  962|      0|#define EC_FLAG_SM2_RANGE 0x0004
  ------------------
  754|       |
  755|  13.3k|    key->dirty_cnt++;
  756|  13.3k|    return (key->group == NULL) ? 0 : 1;
  ------------------
  |  Branch (756:12): [True: 0, False: 13.3k]
  ------------------
  757|  13.3k|}
EC_KEY_get0_private_key:
  760|  13.3k|{
  761|  13.3k|    return key->priv_key;
  762|  13.3k|}
EC_KEY_get0_public_key:
  860|  13.3k|{
  861|  13.3k|    return key->pub_key;
  862|  13.3k|}
EC_KEY_get_enc_flags:
  876|  13.3k|{
  877|  13.3k|    return key->enc_flag;
  878|  13.3k|}
EC_KEY_get_conv_form:
  886|  13.3k|{
  887|  13.3k|    return key->conv_form;
  888|  13.3k|}
EC_KEY_get_flags:
  913|  53.3k|{
  914|  53.3k|    return key->flags;
  915|  53.3k|}
EC_KEY_oct2key:
  946|  13.3k|{
  947|  13.3k|    if (key == NULL || key->group == NULL)
  ------------------
  |  Branch (947:9): [True: 0, False: 13.3k]
  |  Branch (947:24): [True: 0, False: 13.3k]
  ------------------
  948|      0|        return 0;
  949|  13.3k|    if (key->pub_key == NULL)
  ------------------
  |  Branch (949:9): [True: 13.3k, False: 0]
  ------------------
  950|  13.3k|        key->pub_key = EC_POINT_new(key->group);
  951|  13.3k|    if (key->pub_key == NULL)
  ------------------
  |  Branch (951:9): [True: 0, False: 13.3k]
  ------------------
  952|      0|        return 0;
  953|  13.3k|    if (EC_POINT_oct2point(key->group, key->pub_key, buf, len, ctx) == 0)
  ------------------
  |  Branch (953:9): [True: 0, False: 13.3k]
  ------------------
  954|      0|        return 0;
  955|  13.3k|    key->dirty_cnt++;
  956|       |    /*
  957|       |     * Save the point conversion form.
  958|       |     * For non-custom curves the first octet of the buffer (excluding
  959|       |     * the last significant bit) contains the point conversion form.
  960|       |     * EC_POINT_oct2point() has already performed sanity checking of
  961|       |     * the buffer so we know it is valid.
  962|       |     */
  963|  13.3k|    if ((key->group->meth->flags & EC_FLAGS_CUSTOM_CURVE) == 0)
  ------------------
  |  |   29|  13.3k|#define EC_FLAGS_CUSTOM_CURVE 0x2
  ------------------
  |  Branch (963:9): [True: 13.3k, False: 0]
  ------------------
  964|  13.3k|        key->conv_form = (point_conversion_form_t)(buf[0] & ~0x01);
  965|  13.3k|    return 1;
  966|  13.3k|}

EC_KEY_OpenSSL:
   37|  13.3k|{
   38|  13.3k|    return &openssl_ec_key_method;
   39|  13.3k|}
EC_KEY_get_default_method:
   42|  13.3k|{
   43|  13.3k|    return default_ec_key_meth;
   44|  13.3k|}
EC_KEY_get_method:
   55|  13.3k|{
   56|  13.3k|    return key->meth;
   57|  13.3k|}
ossl_ec_key_new_method_int:
   73|  13.3k|{
   74|  13.3k|    EC_KEY *ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  109|  13.3k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   75|       |
   76|  13.3k|    if (ret == NULL)
  ------------------
  |  Branch (76:9): [True: 0, False: 13.3k]
  ------------------
   77|      0|        return NULL;
   78|       |
   79|  13.3k|    if (!CRYPTO_NEW_REF(&ret->references, 1)) {
  ------------------
  |  Branch (79:9): [True: 0, False: 13.3k]
  ------------------
   80|      0|        OPENSSL_free(ret);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   81|      0|        return NULL;
   82|      0|    }
   83|       |
   84|  13.3k|    ret->libctx = libctx;
   85|  13.3k|    if (propq != NULL) {
  ------------------
  |  Branch (85:9): [True: 0, False: 13.3k]
  ------------------
   86|      0|        ret->propq = OPENSSL_strdup(propq);
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   87|      0|        if (ret->propq == NULL)
  ------------------
  |  Branch (87:13): [True: 0, False: 0]
  ------------------
   88|      0|            goto err;
   89|      0|    }
   90|       |
   91|  13.3k|    ret->meth = EC_KEY_get_default_method();
   92|  13.3k|    ret->version = 1;
   93|  13.3k|    ret->conv_form = POINT_CONVERSION_UNCOMPRESSED;
   94|       |
   95|       |/* No ex_data inside the FIPS provider */
   96|  13.3k|#ifndef FIPS_MODULE
   97|  13.3k|    if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_EC_KEY, ret, &ret->ex_data)) {
  ------------------
  |  |  259|  13.3k|#define CRYPTO_EX_INDEX_EC_KEY 8
  ------------------
  |  Branch (97:9): [True: 0, False: 13.3k]
  ------------------
   98|      0|        ERR_raise(ERR_LIB_EC, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   99|      0|        goto err;
  100|      0|    }
  101|  13.3k|#endif
  102|       |
  103|  13.3k|    if (ret->meth->init != NULL && ret->meth->init(ret) == 0) {
  ------------------
  |  Branch (103:9): [True: 0, False: 13.3k]
  |  Branch (103:36): [True: 0, False: 0]
  ------------------
  104|      0|        ERR_raise(ERR_LIB_EC, ERR_R_INIT_FAIL);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  105|      0|        goto err;
  106|      0|    }
  107|  13.3k|    return ret;
  108|       |
  109|      0|err:
  110|      0|    EC_KEY_free(ret);
  111|       |    return NULL;
  112|  13.3k|}

ossl_ec_group_new_ex:
   32|  26.6k|{
   33|  26.6k|    EC_GROUP *ret;
   34|       |
   35|  26.6k|    if (meth == NULL) {
  ------------------
  |  Branch (35:9): [True: 0, False: 26.6k]
  ------------------
   36|      0|        ERR_raise(ERR_LIB_EC, EC_R_SLOT_FULL);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   37|      0|        return NULL;
   38|      0|    }
   39|  26.6k|    if (meth->group_init == 0) {
  ------------------
  |  Branch (39:9): [True: 0, False: 26.6k]
  ------------------
   40|      0|        ERR_raise(ERR_LIB_EC, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   41|      0|        return NULL;
   42|      0|    }
   43|       |
   44|  26.6k|    ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  109|  26.6k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   45|  26.6k|    if (ret == NULL)
  ------------------
  |  Branch (45:9): [True: 0, False: 26.6k]
  ------------------
   46|      0|        return NULL;
   47|       |
   48|  26.6k|    ret->libctx = libctx;
   49|  26.6k|    if (propq != NULL) {
  ------------------
  |  Branch (49:9): [True: 0, False: 26.6k]
  ------------------
   50|      0|        ret->propq = OPENSSL_strdup(propq);
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   51|      0|        if (ret->propq == NULL)
  ------------------
  |  Branch (51:13): [True: 0, False: 0]
  ------------------
   52|      0|            goto err;
   53|      0|    }
   54|  26.6k|    ret->meth = meth;
   55|  26.6k|    if ((ret->meth->flags & EC_FLAGS_CUSTOM_CURVE) == 0) {
  ------------------
  |  |   29|  26.6k|#define EC_FLAGS_CUSTOM_CURVE 0x2
  ------------------
  |  Branch (55:9): [True: 26.6k, False: 0]
  ------------------
   56|  26.6k|        ret->order = BN_new();
   57|  26.6k|        if (ret->order == NULL)
  ------------------
  |  Branch (57:13): [True: 0, False: 26.6k]
  ------------------
   58|      0|            goto err;
   59|  26.6k|        ret->cofactor = BN_new();
   60|  26.6k|        if (ret->cofactor == NULL)
  ------------------
  |  Branch (60:13): [True: 0, False: 26.6k]
  ------------------
   61|      0|            goto err;
   62|  26.6k|    }
   63|  26.6k|    ret->asn1_flag = OPENSSL_EC_EXPLICIT_CURVE;
  ------------------
  |  |   30|  26.6k|#define OPENSSL_EC_EXPLICIT_CURVE 0x000
  ------------------
   64|  26.6k|    ret->asn1_form = POINT_CONVERSION_UNCOMPRESSED;
   65|  26.6k|    if (!meth->group_init(ret))
  ------------------
  |  Branch (65:9): [True: 0, False: 26.6k]
  ------------------
   66|      0|        goto err;
   67|  26.6k|    return ret;
   68|       |
   69|      0|err:
   70|      0|    BN_free(ret->order);
   71|      0|    BN_free(ret->cofactor);
   72|      0|    OPENSSL_free(ret->propq);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   73|      0|    OPENSSL_free(ret);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   74|       |    return NULL;
   75|  26.6k|}
EC_pre_comp_free:
   87|  40.0k|{
   88|  40.0k|    switch (group->pre_comp_type) {
  ------------------
  |  Branch (88:13): [True: 40.0k, False: 0]
  ------------------
   89|  40.0k|    case PCT_none:
  ------------------
  |  Branch (89:5): [True: 40.0k, False: 0]
  ------------------
   90|  40.0k|        break;
   91|      0|    case PCT_nistz256:
  ------------------
  |  Branch (91:5): [True: 0, False: 40.0k]
  ------------------
   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: 40.0k]
  ------------------
   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: 40.0k]
  ------------------
  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: 40.0k]
  ------------------
  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: 40.0k]
  ------------------
  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: 40.0k]
  ------------------
  117|      0|        EC_ec_pre_comp_free(group->pre_comp.ec);
  118|      0|        break;
  119|  40.0k|    }
  120|  40.0k|    group->pre_comp.ec = NULL;
  121|  40.0k|}
EC_GROUP_free:
  124|  40.0k|{
  125|  40.0k|    if (!group)
  ------------------
  |  Branch (125:9): [True: 13.3k, False: 26.6k]
  ------------------
  126|  13.3k|        return;
  127|       |
  128|  26.6k|    if (group->meth->group_finish != 0)
  ------------------
  |  Branch (128:9): [True: 26.6k, False: 0]
  ------------------
  129|  26.6k|        group->meth->group_finish(group);
  130|       |
  131|  26.6k|    EC_pre_comp_free(group);
  132|  26.6k|    BN_MONT_CTX_free(group->mont_data);
  133|  26.6k|    EC_POINT_free(group->generator);
  134|  26.6k|    BN_free(group->order);
  135|  26.6k|    BN_free(group->cofactor);
  136|  26.6k|    OPENSSL_free(group->seed);
  ------------------
  |  |  132|  26.6k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  137|  26.6k|    OPENSSL_free(group->propq);
  ------------------
  |  |  132|  26.6k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  138|  26.6k|    OPENSSL_free(group);
  ------------------
  |  |  132|  26.6k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  139|  26.6k|}
EC_GROUP_copy:
  163|  13.3k|{
  164|  13.3k|    if (dest->meth->group_copy == 0) {
  ------------------
  |  Branch (164:9): [True: 0, False: 13.3k]
  ------------------
  165|      0|        ERR_raise(ERR_LIB_EC, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  166|      0|        return 0;
  167|      0|    }
  168|  13.3k|    if (dest->meth != src->meth) {
  ------------------
  |  Branch (168:9): [True: 0, False: 13.3k]
  ------------------
  169|      0|        ERR_raise(ERR_LIB_EC, EC_R_INCOMPATIBLE_OBJECTS);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  170|      0|        return 0;
  171|      0|    }
  172|  13.3k|    if (dest == src)
  ------------------
  |  Branch (172:9): [True: 0, False: 13.3k]
  ------------------
  173|      0|        return 1;
  174|       |
  175|  13.3k|    dest->libctx = src->libctx;
  176|  13.3k|    dest->curve_name = src->curve_name;
  177|       |
  178|  13.3k|    EC_pre_comp_free(dest);
  179|       |
  180|       |    /* Copy precomputed */
  181|  13.3k|    dest->pre_comp_type = src->pre_comp_type;
  182|  13.3k|    switch (src->pre_comp_type) {
  ------------------
  |  Branch (182:13): [True: 13.3k, False: 0]
  ------------------
  183|  13.3k|    case PCT_none:
  ------------------
  |  Branch (183:5): [True: 13.3k, False: 0]
  ------------------
  184|  13.3k|        dest->pre_comp.ec = NULL;
  185|  13.3k|        break;
  186|      0|    case PCT_nistz256:
  ------------------
  |  Branch (186:5): [True: 0, False: 13.3k]
  ------------------
  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: 13.3k]
  ------------------
  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: 13.3k]
  ------------------
  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: 13.3k]
  ------------------
  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: 13.3k]
  ------------------
  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: 13.3k]
  ------------------
  212|      0|        dest->pre_comp.ec = EC_ec_pre_comp_dup(src->pre_comp.ec);
  213|      0|        break;
  214|  13.3k|    }
  215|       |
  216|  13.3k|    if (src->mont_data != NULL) {
  ------------------
  |  Branch (216:9): [True: 13.3k, False: 0]
  ------------------
  217|  13.3k|        if (dest->mont_data == NULL) {
  ------------------
  |  Branch (217:13): [True: 13.3k, False: 0]
  ------------------
  218|  13.3k|            dest->mont_data = BN_MONT_CTX_new();
  219|  13.3k|            if (dest->mont_data == NULL)
  ------------------
  |  Branch (219:17): [True: 0, False: 13.3k]
  ------------------
  220|      0|                return 0;
  221|  13.3k|        }
  222|  13.3k|        if (!BN_MONT_CTX_copy(dest->mont_data, src->mont_data))
  ------------------
  |  Branch (222:13): [True: 0, False: 13.3k]
  ------------------
  223|      0|            return 0;
  224|  13.3k|    } else {
  225|       |        /* src->generator == NULL */
  226|      0|        BN_MONT_CTX_free(dest->mont_data);
  227|      0|        dest->mont_data = NULL;
  228|      0|    }
  229|       |
  230|  13.3k|    if (src->generator != NULL) {
  ------------------
  |  Branch (230:9): [True: 13.3k, False: 0]
  ------------------
  231|  13.3k|        if (dest->generator == NULL) {
  ------------------
  |  Branch (231:13): [True: 13.3k, False: 0]
  ------------------
  232|  13.3k|            dest->generator = EC_POINT_new(dest);
  233|  13.3k|            if (dest->generator == NULL)
  ------------------
  |  Branch (233:17): [True: 0, False: 13.3k]
  ------------------
  234|      0|                return 0;
  235|  13.3k|        }
  236|  13.3k|        if (!EC_POINT_copy(dest->generator, src->generator))
  ------------------
  |  Branch (236:13): [True: 0, False: 13.3k]
  ------------------
  237|      0|            return 0;
  238|  13.3k|    } else {
  239|       |        /* src->generator == NULL */
  240|      0|        EC_POINT_clear_free(dest->generator);
  241|      0|        dest->generator = NULL;
  242|      0|    }
  243|       |
  244|  13.3k|    if ((src->meth->flags & EC_FLAGS_CUSTOM_CURVE) == 0) {
  ------------------
  |  |   29|  13.3k|#define EC_FLAGS_CUSTOM_CURVE 0x2
  ------------------
  |  Branch (244:9): [True: 13.3k, False: 0]
  ------------------
  245|  13.3k|        if (!BN_copy(dest->order, src->order))
  ------------------
  |  Branch (245:13): [True: 0, False: 13.3k]
  ------------------
  246|      0|            return 0;
  247|  13.3k|        if (!BN_copy(dest->cofactor, src->cofactor))
  ------------------
  |  Branch (247:13): [True: 0, False: 13.3k]
  ------------------
  248|      0|            return 0;
  249|  13.3k|    }
  250|       |
  251|  13.3k|    dest->asn1_flag = src->asn1_flag;
  252|  13.3k|    dest->asn1_form = src->asn1_form;
  253|  13.3k|    dest->decoded_from_explicit_params = src->decoded_from_explicit_params;
  254|       |
  255|  13.3k|    if (src->seed) {
  ------------------
  |  Branch (255:9): [True: 13.3k, False: 0]
  ------------------
  256|  13.3k|        OPENSSL_free(dest->seed);
  ------------------
  |  |  132|  13.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  257|  13.3k|        if ((dest->seed = OPENSSL_malloc(src->seed_len)) == NULL)
  ------------------
  |  |  107|  13.3k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (257:13): [True: 0, False: 13.3k]
  ------------------
  258|      0|            return 0;
  259|  13.3k|        if (!memcpy(dest->seed, src->seed, src->seed_len))
  ------------------
  |  Branch (259:13): [True: 0, False: 13.3k]
  ------------------
  260|      0|            return 0;
  261|  13.3k|        dest->seed_len = src->seed_len;
  262|  13.3k|    } else {
  263|      0|        OPENSSL_free(dest->seed);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  264|      0|        dest->seed = NULL;
  265|      0|        dest->seed_len = 0;
  266|      0|    }
  267|       |
  268|  13.3k|    return dest->meth->group_copy(dest, src);
  269|  13.3k|}
EC_GROUP_dup:
  272|  13.3k|{
  273|  13.3k|    EC_GROUP *t = NULL;
  274|  13.3k|    int ok = 0;
  275|       |
  276|  13.3k|    if (a == NULL)
  ------------------
  |  Branch (276:9): [True: 0, False: 13.3k]
  ------------------
  277|      0|        return NULL;
  278|       |
  279|  13.3k|    if ((t = ossl_ec_group_new_ex(a->libctx, a->propq, a->meth)) == NULL)
  ------------------
  |  Branch (279:9): [True: 0, False: 13.3k]
  ------------------
  280|      0|        return NULL;
  281|  13.3k|    if (!EC_GROUP_copy(t, a))
  ------------------
  |  Branch (281:9): [True: 0, False: 13.3k]
  ------------------
  282|      0|        goto err;
  283|       |
  284|  13.3k|    ok = 1;
  285|       |
  286|  13.3k|err:
  287|  13.3k|    if (!ok) {
  ------------------
  |  Branch (287:9): [True: 0, False: 13.3k]
  ------------------
  288|      0|        EC_GROUP_free(t);
  289|      0|        return NULL;
  290|      0|    }
  291|  13.3k|    return t;
  292|  13.3k|}
EC_GROUP_set_generator:
  372|  12.3k|{
  373|  12.3k|    if (generator == NULL) {
  ------------------
  |  Branch (373:9): [True: 0, False: 12.3k]
  ------------------
  374|      0|        ERR_raise(ERR_LIB_EC, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  375|      0|        return 0;
  376|      0|    }
  377|       |
  378|       |    /* require group->field >= 1 */
  379|  12.3k|    if (group->field == NULL || BN_is_zero(group->field)
  ------------------
  |  Branch (379:9): [True: 0, False: 12.3k]
  |  Branch (379:33): [True: 0, False: 12.3k]
  ------------------
  380|  12.3k|        || BN_is_negative(group->field)) {
  ------------------
  |  Branch (380:12): [True: 0, False: 12.3k]
  ------------------
  381|      0|        ERR_raise(ERR_LIB_EC, EC_R_INVALID_FIELD);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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|  12.3k|    if (order == NULL || BN_is_zero(order) || BN_is_negative(order)
  ------------------
  |  Branch (390:9): [True: 0, False: 12.3k]
  |  Branch (390:26): [True: 0, False: 12.3k]
  |  Branch (390:47): [True: 0, False: 12.3k]
  ------------------
  391|  12.3k|        || BN_num_bits(order) > BN_num_bits(group->field) + 1) {
  ------------------
  |  Branch (391:12): [True: 0, False: 12.3k]
  ------------------
  392|      0|        ERR_raise(ERR_LIB_EC, EC_R_INVALID_GROUP_ORDER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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|  12.3k|    if (cofactor != NULL && BN_is_negative(cofactor)) {
  ------------------
  |  Branch (401:9): [True: 12.3k, False: 0]
  |  Branch (401:29): [True: 0, False: 12.3k]
  ------------------
  402|      0|        ERR_raise(ERR_LIB_EC, EC_R_UNKNOWN_COFACTOR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  403|      0|        return 0;
  404|      0|    }
  405|       |
  406|  12.3k|    if (group->generator == NULL) {
  ------------------
  |  Branch (406:9): [True: 12.3k, False: 0]
  ------------------
  407|  12.3k|        group->generator = EC_POINT_new(group);
  408|  12.3k|        if (group->generator == NULL)
  ------------------
  |  Branch (408:13): [True: 0, False: 12.3k]
  ------------------
  409|      0|            return 0;
  410|  12.3k|    }
  411|  12.3k|    if (!EC_POINT_copy(group->generator, generator))
  ------------------
  |  Branch (411:9): [True: 0, False: 12.3k]
  ------------------
  412|      0|        return 0;
  413|       |
  414|  12.3k|    if (!BN_copy(group->order, order))
  ------------------
  |  Branch (414:9): [True: 0, False: 12.3k]
  ------------------
  415|      0|        return 0;
  416|       |
  417|       |    /* Either take the provided positive cofactor, or try to compute it */
  418|  12.3k|    if (cofactor != NULL && !BN_is_zero(cofactor)) {
  ------------------
  |  Branch (418:9): [True: 12.3k, False: 0]
  |  Branch (418:29): [True: 12.3k, False: 0]
  ------------------
  419|  12.3k|        if (!BN_copy(group->cofactor, cofactor))
  ------------------
  |  Branch (419:13): [True: 0, False: 12.3k]
  ------------------
  420|      0|            return 0;
  421|  12.3k|    } 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|  12.3k|    if (BN_is_odd(group->order)) {
  ------------------
  |  Branch (431:9): [True: 12.3k, False: 0]
  ------------------
  432|  12.3k|        return ec_precompute_mont_data(group);
  433|  12.3k|    }
  434|       |
  435|      0|    BN_MONT_CTX_free(group->mont_data);
  436|       |    group->mont_data = NULL;
  437|      0|    return 1;
  438|  12.3k|}
EC_GROUP_get0_order:
  461|  13.3k|{
  462|  13.3k|    return group->order;
  463|  13.3k|}
EC_GROUP_order_bits:
  466|  13.3k|{
  467|  13.3k|    return group->meth->group_order_bits(group);
  468|  13.3k|}
EC_GROUP_security_bits:
  471|  13.3k|{
  472|  13.3k|    int ecbits = group->meth->group_order_bits(group);
  473|       |
  474|       |    /*
  475|       |     * The following estimates are based on the values published in Table 2 of
  476|       |     * "NIST Special Publication 800-57 Part 1 Revision 4" at
  477|       |     * http://dx.doi.org/10.6028/NIST.SP.800-57pt1r4 .
  478|       |     *
  479|       |     * Note that the above reference explicitly categorizes algorithms in a
  480|       |     * discrete set of values {80, 112, 128, 192, 256}, and that it is relevant
  481|       |     * only for NIST approved Elliptic Curves, while OpenSSL applies the same
  482|       |     * logic also to other curves.
  483|       |     */
  484|  13.3k|    if (ecbits >= 512)
  ------------------
  |  Branch (484:9): [True: 342, False: 12.9k]
  ------------------
  485|    342|        return 256;
  486|  12.9k|    if (ecbits >= 384)
  ------------------
  |  Branch (486:9): [True: 11.9k, False: 1.02k]
  ------------------
  487|  11.9k|        return 192;
  488|  1.02k|    if (ecbits >= 256)
  ------------------
  |  Branch (488:9): [True: 1.02k, False: 0]
  ------------------
  489|  1.02k|        return 128;
  490|      0|    if (ecbits >= 224)
  ------------------
  |  Branch (490:9): [True: 0, False: 0]
  ------------------
  491|      0|        return 112;
  492|      0|    if (ecbits >= 160)
  ------------------
  |  Branch (492:9): [True: 0, False: 0]
  ------------------
  493|      0|        return 80;
  494|      0|    return ecbits / 2;
  495|      0|}
EC_GROUP_set_curve_name:
  514|  13.3k|{
  515|  13.3k|    group->curve_name = nid;
  516|  13.3k|    group->asn1_flag = (nid != NID_undef)
  ------------------
  |  |   18|  13.3k|#define NID_undef                       0
  ------------------
  |  Branch (516:24): [True: 13.3k, False: 0]
  ------------------
  517|  13.3k|        ? OPENSSL_EC_NAMED_CURVE
  ------------------
  |  |   31|  13.3k|#define OPENSSL_EC_NAMED_CURVE 0x001
  ------------------
  518|  13.3k|        : OPENSSL_EC_EXPLICIT_CURVE;
  ------------------
  |  |   30|  13.3k|#define OPENSSL_EC_EXPLICIT_CURVE 0x000
  ------------------
  519|  13.3k|}
EC_GROUP_get_curve_name:
  522|  53.3k|{
  523|  53.3k|    return group->curve_name;
  524|  53.3k|}
EC_GROUP_get_field_type:
  532|  26.6k|{
  533|  26.6k|    return group->meth->field_type;
  534|  26.6k|}
EC_GROUP_set_asn1_flag:
  537|  13.3k|{
  538|  13.3k|    group->asn1_flag = flag;
  539|  13.3k|}
EC_GROUP_get_asn1_flag:
  542|  25.6k|{
  543|  25.6k|    return group->asn1_flag;
  544|  25.6k|}
EC_GROUP_get_point_conversion_form:
  554|  13.3k|{
  555|  13.3k|    return group->asn1_form;
  556|  13.3k|}
EC_GROUP_set_seed:
  559|  13.3k|{
  560|  13.3k|    OPENSSL_free(group->seed);
  ------------------
  |  |  132|  13.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  561|  13.3k|    group->seed = NULL;
  562|  13.3k|    group->seed_len = 0;
  563|       |
  564|  13.3k|    if (!len || !p)
  ------------------
  |  Branch (564:9): [True: 0, False: 13.3k]
  |  Branch (564:17): [True: 0, False: 13.3k]
  ------------------
  565|      0|        return 1;
  566|       |
  567|  13.3k|    if ((group->seed = OPENSSL_malloc(len)) == NULL)
  ------------------
  |  |  107|  13.3k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (567:9): [True: 0, False: 13.3k]
  ------------------
  568|      0|        return 0;
  569|  13.3k|    memcpy(group->seed, p, len);
  570|  13.3k|    group->seed_len = len;
  571|       |
  572|  13.3k|    return len;
  573|  13.3k|}
EC_POINT_new:
  743|  53.3k|{
  744|  53.3k|    EC_POINT *ret;
  745|       |
  746|  53.3k|    if (group == NULL) {
  ------------------
  |  Branch (746:9): [True: 0, False: 53.3k]
  ------------------
  747|      0|        ERR_raise(ERR_LIB_EC, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  748|      0|        return NULL;
  749|      0|    }
  750|  53.3k|    if (group->meth->point_init == NULL) {
  ------------------
  |  Branch (750:9): [True: 0, False: 53.3k]
  ------------------
  751|      0|        ERR_raise(ERR_LIB_EC, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  752|      0|        return NULL;
  753|      0|    }
  754|       |
  755|  53.3k|    ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  109|  53.3k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  756|  53.3k|    if (ret == NULL)
  ------------------
  |  Branch (756:9): [True: 0, False: 53.3k]
  ------------------
  757|      0|        return NULL;
  758|       |
  759|  53.3k|    ret->meth = group->meth;
  760|  53.3k|    ret->curve_name = group->curve_name;
  761|       |
  762|  53.3k|    if (!ret->meth->point_init(ret)) {
  ------------------
  |  Branch (762:9): [True: 0, False: 53.3k]
  ------------------
  763|      0|        OPENSSL_free(ret);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  764|      0|        return NULL;
  765|      0|    }
  766|       |
  767|  53.3k|    return ret;
  768|  53.3k|}
EC_POINT_free:
  771|  53.3k|{
  772|  53.3k|    if (point == NULL)
  ------------------
  |  Branch (772:9): [True: 0, False: 53.3k]
  ------------------
  773|      0|        return;
  774|       |
  775|       |#ifdef OPENSSL_PEDANTIC_ZEROIZATION
  776|       |    EC_POINT_clear_free(point);
  777|       |#else
  778|  53.3k|    if (point->meth->point_finish != 0)
  ------------------
  |  Branch (778:9): [True: 53.3k, False: 0]
  ------------------
  779|  53.3k|        point->meth->point_finish(point);
  780|  53.3k|    OPENSSL_free(point);
  ------------------
  |  |  132|  53.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  781|  53.3k|#endif
  782|  53.3k|}
EC_POINT_copy:
  797|  26.6k|{
  798|  26.6k|    if (dest->meth->point_copy == 0) {
  ------------------
  |  Branch (798:9): [True: 0, False: 26.6k]
  ------------------
  799|      0|        ERR_raise(ERR_LIB_EC, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  800|      0|        return 0;
  801|      0|    }
  802|  26.6k|    if (dest->meth != src->meth
  ------------------
  |  Branch (802:9): [True: 0, False: 26.6k]
  ------------------
  803|  26.6k|        || (dest->curve_name != src->curve_name
  ------------------
  |  Branch (803:13): [True: 1.02k, False: 25.6k]
  ------------------
  804|  1.02k|            && dest->curve_name != 0
  ------------------
  |  Branch (804:16): [True: 1.02k, False: 0]
  ------------------
  805|  1.02k|            && src->curve_name != 0)) {
  ------------------
  |  Branch (805:16): [True: 0, False: 1.02k]
  ------------------
  806|      0|        ERR_raise(ERR_LIB_EC, EC_R_INCOMPATIBLE_OBJECTS);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  807|      0|        return 0;
  808|      0|    }
  809|  26.6k|    if (dest == src)
  ------------------
  |  Branch (809:9): [True: 0, False: 26.6k]
  ------------------
  810|      0|        return 1;
  811|  26.6k|    return dest->meth->point_copy(dest, src);
  812|  26.6k|}
EC_POINT_set_Jprojective_coordinates_GFp:
  858|  26.6k|{
  859|  26.6k|    if (group->meth->field_type != NID_X9_62_prime_field) {
  ------------------
  |  |  152|  26.6k|#define NID_X9_62_prime_field           406
  ------------------
  |  Branch (859:9): [True: 0, False: 26.6k]
  ------------------
  860|      0|        ERR_raise(ERR_LIB_EC, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  861|      0|        return 0;
  862|      0|    }
  863|  26.6k|    if (!ec_point_is_compat(point, group)) {
  ------------------
  |  Branch (863:9): [True: 0, False: 26.6k]
  ------------------
  864|      0|        ERR_raise(ERR_LIB_EC, EC_R_INCOMPATIBLE_OBJECTS);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  865|      0|        return 0;
  866|      0|    }
  867|  26.6k|    return ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp(group, point,
  868|  26.6k|        x, y, z, ctx);
  869|  26.6k|}
EC_POINT_set_affine_coordinates:
  892|  26.6k|{
  893|  26.6k|    if (group->meth->point_set_affine_coordinates == NULL) {
  ------------------
  |  Branch (893:9): [True: 0, False: 26.6k]
  ------------------
  894|      0|        ERR_raise(ERR_LIB_EC, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  895|      0|        return 0;
  896|      0|    }
  897|  26.6k|    if (!ec_point_is_compat(point, group)) {
  ------------------
  |  Branch (897:9): [True: 0, False: 26.6k]
  ------------------
  898|      0|        ERR_raise(ERR_LIB_EC, EC_R_INCOMPATIBLE_OBJECTS);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  899|      0|        return 0;
  900|      0|    }
  901|  26.6k|    if (!group->meth->point_set_affine_coordinates(group, point, x, y, ctx))
  ------------------
  |  Branch (901:9): [True: 0, False: 26.6k]
  ------------------
  902|      0|        return 0;
  903|       |
  904|  26.6k|    if (EC_POINT_is_on_curve(group, point, ctx) <= 0) {
  ------------------
  |  Branch (904:9): [True: 0, False: 26.6k]
  ------------------
  905|      0|        ERR_raise(ERR_LIB_EC, EC_R_POINT_IS_NOT_ON_CURVE);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  906|      0|        return 0;
  907|      0|    }
  908|  26.6k|    return 1;
  909|  26.6k|}
EC_POINT_is_at_infinity:
 1009|  26.6k|{
 1010|  26.6k|    if (group->meth->is_at_infinity == 0) {
  ------------------
  |  Branch (1010:9): [True: 0, False: 26.6k]
  ------------------
 1011|      0|        ERR_raise(ERR_LIB_EC, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1012|      0|        return 0;
 1013|      0|    }
 1014|  26.6k|    if (!ec_point_is_compat(point, group)) {
  ------------------
  |  Branch (1014:9): [True: 0, False: 26.6k]
  ------------------
 1015|      0|        ERR_raise(ERR_LIB_EC, EC_R_INCOMPATIBLE_OBJECTS);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1016|      0|        return 0;
 1017|      0|    }
 1018|  26.6k|    return group->meth->is_at_infinity(group, point);
 1019|  26.6k|}
EC_POINT_is_on_curve:
 1030|  26.6k|{
 1031|  26.6k|    if (group->meth->is_on_curve == 0) {
  ------------------
  |  Branch (1031:9): [True: 0, False: 26.6k]
  ------------------
 1032|      0|        ERR_raise(ERR_LIB_EC, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1033|      0|        return 0;
 1034|      0|    }
 1035|  26.6k|    if (!ec_point_is_compat(point, group)) {
  ------------------
  |  Branch (1035:9): [True: 0, False: 26.6k]
  ------------------
 1036|      0|        ERR_raise(ERR_LIB_EC, EC_R_INCOMPATIBLE_OBJECTS);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1037|      0|        return 0;
 1038|      0|    }
 1039|  26.6k|    return group->meth->is_on_curve(group, point, ctx);
 1040|  26.6k|}
ossl_ec_group_simple_order_bits:
 1256|  26.6k|{
 1257|  26.6k|    if (group->order == NULL)
  ------------------
  |  Branch (1257:9): [True: 0, False: 26.6k]
  ------------------
 1258|      0|        return 0;
 1259|  26.6k|    return BN_num_bits(group->order);
 1260|  26.6k|}
ec_lib.c:ec_precompute_mont_data:
 1215|  12.3k|{
 1216|  12.3k|    BN_CTX *ctx = BN_CTX_new_ex(group->libctx);
 1217|  12.3k|    int ret = 0;
 1218|       |
 1219|  12.3k|    BN_MONT_CTX_free(group->mont_data);
 1220|  12.3k|    group->mont_data = NULL;
 1221|       |
 1222|  12.3k|    if (ctx == NULL)
  ------------------
  |  Branch (1222:9): [True: 0, False: 12.3k]
  ------------------
 1223|      0|        goto err;
 1224|       |
 1225|  12.3k|    group->mont_data = BN_MONT_CTX_new();
 1226|  12.3k|    if (group->mont_data == NULL)
  ------------------
  |  Branch (1226:9): [True: 0, False: 12.3k]
  ------------------
 1227|      0|        goto err;
 1228|       |
 1229|  12.3k|    if (!BN_MONT_CTX_set(group->mont_data, group->order, ctx)) {
  ------------------
  |  Branch (1229:9): [True: 0, False: 12.3k]
  ------------------
 1230|      0|        BN_MONT_CTX_free(group->mont_data);
 1231|      0|        group->mont_data = NULL;
 1232|      0|        goto err;
 1233|      0|    }
 1234|       |
 1235|  12.3k|    ret = 1;
 1236|       |
 1237|  12.3k|err:
 1238|       |
 1239|  12.3k|    BN_CTX_free(ctx);
 1240|  12.3k|    return ret;
 1241|  12.3k|}

ec_lib.c:ec_point_is_compat:
  332|   106k|{
  333|   106k|    return group->meth == point->meth
  ------------------
  |  Branch (333:12): [True: 106k, False: 0]
  ------------------
  334|   106k|        && (group->curve_name == 0
  ------------------
  |  Branch (334:13): [True: 4.10k, False: 102k]
  ------------------
  335|   102k|            || point->curve_name == 0
  ------------------
  |  Branch (335:16): [True: 0, False: 102k]
  ------------------
  336|   102k|            || group->curve_name == point->curve_name);
  ------------------
  |  Branch (336:16): [True: 102k, False: 0]
  ------------------
  337|   106k|}
ec_oct.c:ec_point_is_compat:
  332|  13.3k|{
  333|  13.3k|    return group->meth == point->meth
  ------------------
  |  Branch (333:12): [True: 13.3k, False: 0]
  ------------------
  334|  13.3k|        && (group->curve_name == 0
  ------------------
  |  Branch (334:13): [True: 0, False: 13.3k]
  ------------------
  335|  13.3k|            || point->curve_name == 0
  ------------------
  |  Branch (335:16): [True: 0, False: 13.3k]
  ------------------
  336|  13.3k|            || group->curve_name == point->curve_name);
  ------------------
  |  Branch (336:16): [True: 13.3k, False: 0]
  ------------------
  337|  13.3k|}

EC_POINT_oct2point:
  111|  13.3k|{
  112|  13.3k|    if (group->meth->oct2point == 0
  ------------------
  |  Branch (112:9): [True: 13.3k, False: 0]
  ------------------
  113|  13.3k|        && !(group->meth->flags & EC_FLAGS_DEFAULT_OCT)) {
  ------------------
  |  |   26|  13.3k|#define EC_FLAGS_DEFAULT_OCT 0x1
  ------------------
  |  Branch (113:12): [True: 0, False: 13.3k]
  ------------------
  114|      0|        ERR_raise(ERR_LIB_EC, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  115|      0|        return 0;
  116|      0|    }
  117|  13.3k|    if (!ec_point_is_compat(point, group)) {
  ------------------
  |  Branch (117:9): [True: 0, False: 13.3k]
  ------------------
  118|      0|        ERR_raise(ERR_LIB_EC, EC_R_INCOMPATIBLE_OBJECTS);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  119|      0|        return 0;
  120|      0|    }
  121|  13.3k|    if (group->meth->flags & EC_FLAGS_DEFAULT_OCT) {
  ------------------
  |  |   26|  13.3k|#define EC_FLAGS_DEFAULT_OCT 0x1
  ------------------
  |  Branch (121:9): [True: 13.3k, False: 0]
  ------------------
  122|  13.3k|        if (group->meth->field_type == NID_X9_62_prime_field)
  ------------------
  |  |  152|  13.3k|#define NID_X9_62_prime_field           406
  ------------------
  |  Branch (122:13): [True: 13.3k, False: 0]
  ------------------
  123|  13.3k|            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|  13.3k|#endif
  133|  13.3k|    }
  134|      0|    return group->meth->oct2point(group, point, buf, len, ctx);
  135|  13.3k|}

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

ossl_ec_GFp_nist_group_copy:
   86|  12.3k|{
   87|  12.3k|    dest->field_mod_func = src->field_mod_func;
   88|       |
   89|  12.3k|    return ossl_ec_GFp_simple_group_copy(dest, src);
   90|  12.3k|}
ossl_ec_GFp_nist_field_mul:
  130|  24.6k|{
  131|  24.6k|    int ret = 0;
  132|  24.6k|    BN_CTX *ctx_new = NULL;
  133|       |
  134|  24.6k|    if (!group || !r || !a || !b) {
  ------------------
  |  Branch (134:9): [True: 0, False: 24.6k]
  |  Branch (134:19): [True: 0, False: 24.6k]
  |  Branch (134:25): [True: 0, False: 24.6k]
  |  Branch (134:31): [True: 0, False: 24.6k]
  ------------------
  135|      0|        ERR_raise(ERR_LIB_EC, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  136|      0|        goto err;
  137|      0|    }
  138|  24.6k|    if (!ctx)
  ------------------
  |  Branch (138:9): [True: 0, False: 24.6k]
  ------------------
  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|  24.6k|    if (!BN_mul(r, a, b, ctx))
  ------------------
  |  Branch (142:9): [True: 0, False: 24.6k]
  ------------------
  143|      0|        goto err;
  144|  24.6k|    if (!group->field_mod_func(r, r, group->field, ctx))
  ------------------
  |  Branch (144:9): [True: 0, False: 24.6k]
  ------------------
  145|      0|        goto err;
  146|       |
  147|  24.6k|    ret = 1;
  148|  24.6k|err:
  149|  24.6k|    BN_CTX_free(ctx_new);
  150|  24.6k|    return ret;
  151|  24.6k|}
ossl_ec_GFp_nist_field_sqr:
  155|  49.2k|{
  156|  49.2k|    int ret = 0;
  157|  49.2k|    BN_CTX *ctx_new = NULL;
  158|       |
  159|  49.2k|    if (!group || !r || !a) {
  ------------------
  |  Branch (159:9): [True: 0, False: 49.2k]
  |  Branch (159:19): [True: 0, False: 49.2k]
  |  Branch (159:25): [True: 0, False: 49.2k]
  ------------------
  160|      0|        ERR_raise(ERR_LIB_EC, EC_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  161|      0|        goto err;
  162|      0|    }
  163|  49.2k|    if (!ctx)
  ------------------
  |  Branch (163:9): [True: 0, False: 49.2k]
  ------------------
  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|  49.2k|    if (!BN_sqr(r, a, ctx))
  ------------------
  |  Branch (167:9): [True: 0, False: 49.2k]
  ------------------
  168|      0|        goto err;
  169|  49.2k|    if (!group->field_mod_func(r, r, group->field, ctx))
  ------------------
  |  Branch (169:9): [True: 0, False: 49.2k]
  ------------------
  170|      0|        goto err;
  171|       |
  172|  49.2k|    ret = 1;
  173|  49.2k|err:
  174|  49.2k|    BN_CTX_free(ctx_new);
  175|  49.2k|    return ret;
  176|  49.2k|}

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

EC_GFp_nistp521_method:
 1588|    342|{
 1589|    342|    static const EC_METHOD ret = {
 1590|    342|        EC_FLAGS_DEFAULT_OCT,
  ------------------
  |  |   26|    342|#define EC_FLAGS_DEFAULT_OCT 0x1
  ------------------
 1591|    342|        NID_X9_62_prime_field,
  ------------------
  |  |  152|    342|#define NID_X9_62_prime_field           406
  ------------------
 1592|    342|        ossl_ec_GFp_nistp521_group_init,
 1593|    342|        ossl_ec_GFp_simple_group_finish,
 1594|    342|        ossl_ec_GFp_simple_group_clear_finish,
 1595|    342|        ossl_ec_GFp_nist_group_copy,
 1596|    342|        ossl_ec_GFp_nistp521_group_set_curve,
 1597|    342|        ossl_ec_GFp_simple_group_get_curve,
 1598|    342|        ossl_ec_GFp_simple_group_get_degree,
 1599|    342|        ossl_ec_group_simple_order_bits,
 1600|    342|        ossl_ec_GFp_simple_group_check_discriminant,
 1601|    342|        ossl_ec_GFp_simple_point_init,
 1602|    342|        ossl_ec_GFp_simple_point_finish,
 1603|    342|        ossl_ec_GFp_simple_point_clear_finish,
 1604|    342|        ossl_ec_GFp_simple_point_copy,
 1605|    342|        ossl_ec_GFp_simple_point_set_to_infinity,
 1606|    342|        ossl_ec_GFp_simple_point_set_affine_coordinates,
 1607|    342|        ossl_ec_GFp_nistp521_point_get_affine_coordinates,
 1608|    342|        0 /* point_set_compressed_coordinates */,
 1609|    342|        0 /* point2oct */,
 1610|    342|        0 /* oct2point */,
 1611|    342|        ossl_ec_GFp_simple_add,
 1612|    342|        ossl_ec_GFp_simple_dbl,
 1613|    342|        ossl_ec_GFp_simple_invert,
 1614|    342|        ossl_ec_GFp_simple_is_at_infinity,
 1615|    342|        ossl_ec_GFp_simple_is_on_curve,
 1616|    342|        ossl_ec_GFp_simple_cmp,
 1617|    342|        ossl_ec_GFp_simple_make_affine,
 1618|    342|        ossl_ec_GFp_simple_points_make_affine,
 1619|    342|        ossl_ec_GFp_nistp521_points_mul,
 1620|    342|        ossl_ec_GFp_nistp521_precompute_mult,
 1621|    342|        ossl_ec_GFp_nistp521_have_precompute_mult,
 1622|    342|        ossl_ec_GFp_nist_field_mul,
 1623|    342|        ossl_ec_GFp_nist_field_sqr,
 1624|    342|        0 /* field_div */,
 1625|    342|        ossl_ec_GFp_simple_field_inv,
 1626|    342|        0 /* field_encode */,
 1627|    342|        0 /* field_decode */,
 1628|    342|        0, /* field_set_to_one */
 1629|    342|        ossl_ec_key_simple_priv2oct,
 1630|    342|        ossl_ec_key_simple_oct2priv,
 1631|    342|        0, /* set private */
 1632|    342|        ossl_ec_key_simple_generate_key,
 1633|    342|        ossl_ec_key_simple_check_key,
 1634|    342|        ossl_ec_key_simple_generate_public_key,
 1635|    342|        0, /* keycopy */
 1636|    342|        0, /* keyfinish */
 1637|    342|        ossl_ecdh_simple_compute_key,
 1638|    342|        ossl_ecdsa_simple_sign_setup,
 1639|    342|        ossl_ecdsa_simple_sign_sig,
 1640|    342|        ossl_ecdsa_simple_verify_sig,
 1641|    342|        0, /* field_inverse_mod_ord */
 1642|    342|        0, /* blind_coordinates */
 1643|    342|        0, /* ladder_pre */
 1644|    342|        0, /* ladder_step */
 1645|    342|        0 /* ladder_post */
 1646|    342|    };
 1647|       |
 1648|    342|    return &ret;
 1649|    342|}
ossl_ec_GFp_nistp521_group_init:
 1701|    684|{
 1702|    684|    int ret;
 1703|    684|    ret = ossl_ec_GFp_simple_group_init(group);
 1704|    684|    group->a_is_minus3 = 1;
 1705|    684|    return ret;
 1706|    684|}
ossl_ec_GFp_nistp521_group_set_curve:
 1711|    342|{
 1712|    342|    int ret = 0;
 1713|    342|    BIGNUM *curve_p, *curve_a, *curve_b;
 1714|    342|#ifndef FIPS_MODULE
 1715|    342|    BN_CTX *new_ctx = NULL;
 1716|       |
 1717|    342|    if (ctx == NULL)
  ------------------
  |  Branch (1717:9): [True: 0, False: 342]
  ------------------
 1718|      0|        ctx = new_ctx = BN_CTX_new();
 1719|    342|#endif
 1720|    342|    if (ctx == NULL)
  ------------------
  |  Branch (1720:9): [True: 0, False: 342]
  ------------------
 1721|      0|        return 0;
 1722|       |
 1723|    342|    BN_CTX_start(ctx);
 1724|    342|    curve_p = BN_CTX_get(ctx);
 1725|    342|    curve_a = BN_CTX_get(ctx);
 1726|    342|    curve_b = BN_CTX_get(ctx);
 1727|    342|    if (curve_b == NULL)
  ------------------
  |  Branch (1727:9): [True: 0, False: 342]
  ------------------
 1728|      0|        goto err;
 1729|    342|    BN_bin2bn(nistp521_curve_params[0], sizeof(felem_bytearray), curve_p);
 1730|    342|    BN_bin2bn(nistp521_curve_params[1], sizeof(felem_bytearray), curve_a);
 1731|    342|    BN_bin2bn(nistp521_curve_params[2], sizeof(felem_bytearray), curve_b);
 1732|    342|    if ((BN_cmp(curve_p, p)) || (BN_cmp(curve_a, a)) || (BN_cmp(curve_b, b))) {
  ------------------
  |  Branch (1732:9): [True: 0, False: 342]
  |  Branch (1732:33): [True: 0, False: 342]
  |  Branch (1732:57): [True: 0, False: 342]
  ------------------
 1733|      0|        ERR_raise(ERR_LIB_EC, EC_R_WRONG_CURVE_PARAMETERS);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1734|      0|        goto err;
 1735|      0|    }
 1736|    342|    group->field_mod_func = BN_nist_mod_521;
 1737|    342|    ret = ossl_ec_GFp_simple_group_set_curve(group, p, a, b, ctx);
 1738|    342|err:
 1739|    342|    BN_CTX_end(ctx);
 1740|    342|#ifndef FIPS_MODULE
 1741|    342|    BN_CTX_free(new_ctx);
 1742|    342|#endif
 1743|    342|    return ret;
 1744|    342|}

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

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

ossl_ec_GFp_simple_group_init:
   99|  26.6k|{
  100|  26.6k|    group->field = BN_new();
  101|  26.6k|    group->a = BN_new();
  102|  26.6k|    group->b = BN_new();
  103|  26.6k|    if (group->field == NULL || group->a == NULL || group->b == NULL) {
  ------------------
  |  Branch (103:9): [True: 0, False: 26.6k]
  |  Branch (103:33): [True: 0, False: 26.6k]
  |  Branch (103:53): [True: 0, False: 26.6k]
  ------------------
  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|  26.6k|    group->a_is_minus3 = 0;
  110|  26.6k|    return 1;
  111|  26.6k|}
ossl_ec_GFp_simple_group_finish:
  114|  26.6k|{
  115|  26.6k|    BN_free(group->field);
  116|  26.6k|    BN_free(group->a);
  117|  26.6k|    BN_free(group->b);
  118|  26.6k|}
ossl_ec_GFp_simple_group_copy:
  128|  13.3k|{
  129|  13.3k|    if (!BN_copy(dest->field, src->field))
  ------------------
  |  Branch (129:9): [True: 0, False: 13.3k]
  ------------------
  130|      0|        return 0;
  131|  13.3k|    if (!BN_copy(dest->a, src->a))
  ------------------
  |  Branch (131:9): [True: 0, False: 13.3k]
  ------------------
  132|      0|        return 0;
  133|  13.3k|    if (!BN_copy(dest->b, src->b))
  ------------------
  |  Branch (133:9): [True: 0, False: 13.3k]
  ------------------
  134|      0|        return 0;
  135|       |
  136|  13.3k|    dest->a_is_minus3 = src->a_is_minus3;
  137|       |
  138|  13.3k|    return 1;
  139|  13.3k|}
ossl_ec_GFp_simple_group_set_curve:
  144|  13.3k|{
  145|  13.3k|    int ret = 0;
  146|  13.3k|    BN_CTX *new_ctx = NULL;
  147|  13.3k|    BIGNUM *tmp_a;
  148|       |
  149|       |    /* p must be a prime > 3 */
  150|  13.3k|    if (BN_num_bits(p) <= 2 || !BN_is_odd(p)) {
  ------------------
  |  Branch (150:9): [True: 0, False: 13.3k]
  |  Branch (150:32): [True: 0, False: 13.3k]
  ------------------
  151|      0|        ERR_raise(ERR_LIB_EC, EC_R_INVALID_FIELD);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  152|      0|        return 0;
  153|      0|    }
  154|       |
  155|  13.3k|    if (ctx == NULL) {
  ------------------
  |  Branch (155:9): [True: 0, False: 13.3k]
  ------------------
  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|  13.3k|    BN_CTX_start(ctx);
  162|  13.3k|    tmp_a = BN_CTX_get(ctx);
  163|  13.3k|    if (tmp_a == NULL)
  ------------------
  |  Branch (163:9): [True: 0, False: 13.3k]
  ------------------
  164|      0|        goto err;
  165|       |
  166|       |    /* group->field */
  167|  13.3k|    if (!BN_copy(group->field, p))
  ------------------
  |  Branch (167:9): [True: 0, False: 13.3k]
  ------------------
  168|      0|        goto err;
  169|  13.3k|    BN_set_negative(group->field, 0);
  170|       |
  171|       |    /* group->a */
  172|  13.3k|    if (!BN_nnmod(tmp_a, a, p, ctx))
  ------------------
  |  Branch (172:9): [True: 0, False: 13.3k]
  ------------------
  173|      0|        goto err;
  174|  13.3k|    if (group->meth->field_encode != NULL) {
  ------------------
  |  Branch (174:9): [True: 1.02k, False: 12.3k]
  ------------------
  175|  1.02k|        if (!group->meth->field_encode(group, group->a, tmp_a, ctx))
  ------------------
  |  Branch (175:13): [True: 0, False: 1.02k]
  ------------------
  176|      0|            goto err;
  177|  12.3k|    } else if (!BN_copy(group->a, tmp_a))
  ------------------
  |  Branch (177:16): [True: 0, False: 12.3k]
  ------------------
  178|      0|        goto err;
  179|       |
  180|       |    /* group->b */
  181|  13.3k|    if (!BN_nnmod(group->b, b, p, ctx))
  ------------------
  |  Branch (181:9): [True: 0, False: 13.3k]
  ------------------
  182|      0|        goto err;
  183|  13.3k|    if (group->meth->field_encode != NULL)
  ------------------
  |  Branch (183:9): [True: 1.02k, False: 12.3k]
  ------------------
  184|  1.02k|        if (!group->meth->field_encode(group, group->b, group->b, ctx))
  ------------------
  |  Branch (184:13): [True: 0, False: 1.02k]
  ------------------
  185|      0|            goto err;
  186|       |
  187|       |    /* group->a_is_minus3 */
  188|  13.3k|    if (!BN_add_word(tmp_a, 3))
  ------------------
  |  Branch (188:9): [True: 0, False: 13.3k]
  ------------------
  189|      0|        goto err;
  190|  13.3k|    group->a_is_minus3 = (0 == BN_cmp(tmp_a, group->field));
  191|       |
  192|  13.3k|    ret = 1;
  193|       |
  194|  13.3k|err:
  195|  13.3k|    BN_CTX_end(ctx);
  196|  13.3k|    BN_CTX_free(new_ctx);
  197|  13.3k|    return ret;
  198|  13.3k|}
ossl_ec_GFp_simple_point_init:
  323|  53.3k|{
  324|  53.3k|    point->X = BN_new();
  325|  53.3k|    point->Y = BN_new();
  326|  53.3k|    point->Z = BN_new();
  327|  53.3k|    point->Z_is_one = 0;
  328|       |
  329|  53.3k|    if (point->X == NULL || point->Y == NULL || point->Z == NULL) {
  ------------------
  |  Branch (329:9): [True: 0, False: 53.3k]
  |  Branch (329:29): [True: 0, False: 53.3k]
  |  Branch (329:49): [True: 0, False: 53.3k]
  ------------------
  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|  53.3k|    return 1;
  336|  53.3k|}
ossl_ec_GFp_simple_point_finish:
  339|  53.3k|{
  340|  53.3k|    BN_free(point->X);
  341|  53.3k|    BN_free(point->Y);
  342|  53.3k|    BN_free(point->Z);
  343|  53.3k|}
ossl_ec_GFp_simple_point_copy:
  354|  26.6k|{
  355|  26.6k|    if (!BN_copy(dest->X, src->X))
  ------------------
  |  Branch (355:9): [True: 0, False: 26.6k]
  ------------------
  356|      0|        return 0;
  357|  26.6k|    if (!BN_copy(dest->Y, src->Y))
  ------------------
  |  Branch (357:9): [True: 0, False: 26.6k]
  ------------------
  358|      0|        return 0;
  359|  26.6k|    if (!BN_copy(dest->Z, src->Z))
  ------------------
  |  Branch (359:9): [True: 0, False: 26.6k]
  ------------------
  360|      0|        return 0;
  361|  26.6k|    dest->Z_is_one = src->Z_is_one;
  362|  26.6k|    dest->curve_name = src->curve_name;
  363|       |
  364|  26.6k|    return 1;
  365|  26.6k|}
ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp:
  381|  26.6k|{
  382|  26.6k|    BN_CTX *new_ctx = NULL;
  383|  26.6k|    int ret = 0;
  384|       |
  385|  26.6k|    if (ctx == NULL) {
  ------------------
  |  Branch (385:9): [True: 0, False: 26.6k]
  ------------------
  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|  26.6k|    if (x != NULL) {
  ------------------
  |  Branch (391:9): [True: 26.6k, False: 0]
  ------------------
  392|  26.6k|        if (!BN_nnmod(point->X, x, group->field, ctx))
  ------------------
  |  Branch (392:13): [True: 0, False: 26.6k]
  ------------------
  393|      0|            goto err;
  394|  26.6k|        if (group->meth->field_encode) {
  ------------------
  |  Branch (394:13): [True: 2.05k, False: 24.6k]
  ------------------
  395|  2.05k|            if (!group->meth->field_encode(group, point->X, point->X, ctx))
  ------------------
  |  Branch (395:17): [True: 0, False: 2.05k]
  ------------------
  396|      0|                goto err;
  397|  2.05k|        }
  398|  26.6k|    }
  399|       |
  400|  26.6k|    if (y != NULL) {
  ------------------
  |  Branch (400:9): [True: 26.6k, False: 0]
  ------------------
  401|  26.6k|        if (!BN_nnmod(point->Y, y, group->field, ctx))
  ------------------
  |  Branch (401:13): [True: 0, False: 26.6k]
  ------------------
  402|      0|            goto err;
  403|  26.6k|        if (group->meth->field_encode) {
  ------------------
  |  Branch (403:13): [True: 2.05k, False: 24.6k]
  ------------------
  404|  2.05k|            if (!group->meth->field_encode(group, point->Y, point->Y, ctx))
  ------------------
  |  Branch (404:17): [True: 0, False: 2.05k]
  ------------------
  405|      0|                goto err;
  406|  2.05k|        }
  407|  26.6k|    }
  408|       |
  409|  26.6k|    if (z != NULL) {
  ------------------
  |  Branch (409:9): [True: 26.6k, False: 0]
  ------------------
  410|  26.6k|        int Z_is_one;
  411|       |
  412|  26.6k|        if (!BN_nnmod(point->Z, z, group->field, ctx))
  ------------------
  |  Branch (412:13): [True: 0, False: 26.6k]
  ------------------
  413|      0|            goto err;
  414|  26.6k|        Z_is_one = BN_is_one(point->Z);
  415|  26.6k|        if (group->meth->field_encode) {
  ------------------
  |  Branch (415:13): [True: 2.05k, False: 24.6k]
  ------------------
  416|  2.05k|            if (Z_is_one && (group->meth->field_set_to_one != 0)) {
  ------------------
  |  Branch (416:17): [True: 2.05k, False: 0]
  |  Branch (416:29): [True: 2.05k, False: 0]
  ------------------
  417|  2.05k|                if (!group->meth->field_set_to_one(group, point->Z, ctx))
  ------------------
  |  Branch (417:21): [True: 0, False: 2.05k]
  ------------------
  418|      0|                    goto err;
  419|  2.05k|            } 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|  2.05k|        }
  424|  26.6k|        point->Z_is_one = Z_is_one;
  425|  26.6k|    }
  426|       |
  427|  26.6k|    ret = 1;
  428|       |
  429|  26.6k|err:
  430|  26.6k|    BN_CTX_free(new_ctx);
  431|  26.6k|    return ret;
  432|  26.6k|}
ossl_ec_GFp_simple_point_set_affine_coordinates:
  487|  26.6k|{
  488|  26.6k|    if (x == NULL || y == NULL) {
  ------------------
  |  Branch (488:9): [True: 0, False: 26.6k]
  |  Branch (488:22): [True: 0, False: 26.6k]
  ------------------
  489|       |        /*
  490|       |         * unlike for projective coordinates, we do not tolerate this
  491|       |         */
  492|      0|        ERR_raise(ERR_LIB_EC, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  493|      0|        return 0;
  494|      0|    }
  495|       |
  496|  26.6k|    return EC_POINT_set_Jprojective_coordinates_GFp(group, point, x, y,
  497|  26.6k|        BN_value_one(), ctx);
  498|  26.6k|}
ossl_ec_GFp_simple_is_at_infinity:
  951|  26.6k|{
  952|  26.6k|    return BN_is_zero(point->Z);
  953|  26.6k|}
ossl_ec_GFp_simple_is_on_curve:
  957|  26.6k|{
  958|  26.6k|    int (*field_mul)(const EC_GROUP *, BIGNUM *, const BIGNUM *,
  959|  26.6k|        const BIGNUM *, BN_CTX *);
  960|  26.6k|    int (*field_sqr)(const EC_GROUP *, BIGNUM *, const BIGNUM *, BN_CTX *);
  961|  26.6k|    const BIGNUM *p;
  962|  26.6k|    BN_CTX *new_ctx = NULL;
  963|  26.6k|    BIGNUM *rh, *tmp, *Z4, *Z6;
  964|  26.6k|    int ret = -1;
  965|       |
  966|  26.6k|    if (EC_POINT_is_at_infinity(group, point))
  ------------------
  |  Branch (966:9): [True: 0, False: 26.6k]
  ------------------
  967|      0|        return 1;
  968|       |
  969|  26.6k|    field_mul = group->meth->field_mul;
  970|  26.6k|    field_sqr = group->meth->field_sqr;
  971|  26.6k|    p = group->field;
  972|       |
  973|  26.6k|    if (ctx == NULL) {
  ------------------
  |  Branch (973:9): [True: 0, False: 26.6k]
  ------------------
  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|  26.6k|    BN_CTX_start(ctx);
  980|  26.6k|    rh = BN_CTX_get(ctx);
  981|  26.6k|    tmp = BN_CTX_get(ctx);
  982|  26.6k|    Z4 = BN_CTX_get(ctx);
  983|  26.6k|    Z6 = BN_CTX_get(ctx);
  984|  26.6k|    if (Z6 == NULL)
  ------------------
  |  Branch (984:9): [True: 0, False: 26.6k]
  ------------------
  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|  26.6k|    if (!field_sqr(group, rh, point->X, ctx))
  ------------------
  |  Branch (998:9): [True: 0, False: 26.6k]
  ------------------
  999|      0|        goto err;
 1000|       |
 1001|  26.6k|    if (!point->Z_is_one) {
  ------------------
  |  Branch (1001:9): [True: 0, False: 26.6k]
  ------------------
 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|  26.6k|    } else {
 1034|       |        /* point->Z_is_one */
 1035|       |
 1036|       |        /* rh := (rh + a)*X */
 1037|  26.6k|        if (!BN_mod_add_quick(rh, rh, group->a, p))
  ------------------
  |  Branch (1037:13): [True: 0, False: 26.6k]
  ------------------
 1038|      0|            goto err;
 1039|  26.6k|        if (!field_mul(group, rh, rh, point->X, ctx))
  ------------------
  |  Branch (1039:13): [True: 0, False: 26.6k]
  ------------------
 1040|      0|            goto err;
 1041|       |        /* rh := rh + b */
 1042|  26.6k|        if (!BN_mod_add_quick(rh, rh, group->b, p))
  ------------------
  |  Branch (1042:13): [True: 0, False: 26.6k]
  ------------------
 1043|      0|            goto err;
 1044|  26.6k|    }
 1045|       |
 1046|       |    /* 'lh' := Y^2 */
 1047|  26.6k|    if (!field_sqr(group, tmp, point->Y, ctx))
  ------------------
  |  Branch (1047:9): [True: 0, False: 26.6k]
  ------------------
 1048|      0|        goto err;
 1049|       |
 1050|  26.6k|    ret = (0 == BN_ucmp(tmp, rh));
 1051|       |
 1052|  26.6k|err:
 1053|  26.6k|    BN_CTX_end(ctx);
 1054|  26.6k|    BN_CTX_free(new_ctx);
 1055|  26.6k|    return ret;
 1056|  26.6k|}

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

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

OSSL_DECODER_up_ref:
   53|   235k|{
   54|   235k|    int ref = 0;
   55|       |
   56|   235k|    CRYPTO_UP_REF(&decoder->base.refcnt, &ref);
   57|   235k|    return 1;
   58|   235k|}
OSSL_DECODER_free:
   61|   235k|{
   62|   235k|    int ref = 0;
   63|       |
   64|   235k|    if (decoder == NULL)
  ------------------
  |  Branch (64:9): [True: 0, False: 235k]
  ------------------
   65|      0|        return;
   66|       |
   67|   235k|    CRYPTO_DOWN_REF(&decoder->base.refcnt, &ref);
   68|   235k|    if (ref > 0)
  ------------------
  |  Branch (68:9): [True: 235k, False: 0]
  ------------------
   69|   235k|        return;
   70|      0|    OPENSSL_free(decoder->base.name);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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:
  ------------------
  |  |  992|     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:
  ------------------
  |  |  993|     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:
  ------------------
  |  |  994|      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:
  ------------------
  |  |  995|      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:
  ------------------
  |  |  996|     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:
  ------------------
  |  |  997|     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:
  ------------------
  |  |  998|     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:
  ------------------
  |  |  999|     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:
  ------------------
  |  | 1000|     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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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|   319k|{
  462|   319k|    if (!ossl_assert(decoder != NULL)) {
  ------------------
  |  |   52|   319k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|   319k|    __FILE__, __LINE__)
  ------------------
  |  Branch (462:9): [True: 0, False: 319k]
  ------------------
  463|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  464|      0|        return 0;
  465|      0|    }
  466|       |
  467|   319k|    return decoder->base.prov;
  468|   319k|}
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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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|   112k|{
  493|   112k|    if (!ossl_assert(decoder != NULL)) {
  ------------------
  |  |   52|   112k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|   112k|    __FILE__, __LINE__)
  ------------------
  |  Branch (493:9): [True: 0, False: 112k]
  ------------------
  494|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  495|      0|        return 0;
  496|      0|    }
  497|       |
  498|   112k|    return decoder->base.id;
  499|   112k|}
OSSL_DECODER_is_a:
  512|   110k|{
  513|   110k|    if (decoder->base.prov != NULL) {
  ------------------
  |  Branch (513:9): [True: 110k, False: 0]
  ------------------
  514|   110k|        OSSL_LIB_CTX *libctx = ossl_provider_libctx(decoder->base.prov);
  515|   110k|        OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx);
  516|       |
  517|   110k|        return ossl_namemap_name2num(namemap, name) == decoder->base.id;
  518|   110k|    }
  519|      0|    return 0;
  520|   110k|}
ossl_decoder_fast_is_a:
  531|   112k|{
  532|   112k|    int id = *id_cache;
  533|       |
  534|   112k|    if (id <= 0)
  ------------------
  |  Branch (534:9): [True: 111k, False: 1.35k]
  ------------------
  535|   111k|        *id_cache = id = resolve_name(decoder, name);
  536|       |
  537|   112k|    return id > 0 && ossl_decoder_get_number(decoder) == id;
  ------------------
  |  Branch (537:12): [True: 112k, False: 311]
  |  Branch (537:22): [True: 110k, False: 1.31k]
  ------------------
  538|   112k|}
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|  41.3k|{
  630|  41.3k|    OSSL_DECODER_CTX *ctx;
  631|       |
  632|  41.3k|    ctx = OPENSSL_zalloc(sizeof(*ctx));
  ------------------
  |  |  109|  41.3k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  633|  41.3k|    return ctx;
  634|  41.3k|}
OSSL_DECODER_CTX_free:
  666|  82.7k|{
  667|  82.7k|    if (ctx != NULL) {
  ------------------
  |  Branch (667:9): [True: 41.3k, False: 41.3k]
  ------------------
  668|  41.3k|        if (ctx->cleanup != NULL)
  ------------------
  |  Branch (668:13): [True: 41.3k, False: 0]
  ------------------
  669|  41.3k|            ctx->cleanup(ctx->construct_data);
  670|  41.3k|        sk_OSSL_DECODER_INSTANCE_pop_free(ctx->decoder_insts,
  671|  41.3k|            ossl_decoder_instance_free);
  672|  41.3k|        ossl_pw_clear_passphrase_data(&ctx->pwdata);
  673|  41.3k|        OPENSSL_free(ctx);
  ------------------
  |  |  132|  41.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  674|  41.3k|    }
  675|  82.7k|}
decoder_meth.c:ossl_decoder_new:
   39|     76|{
   40|     76|    OSSL_DECODER *decoder = NULL;
   41|       |
   42|     76|    if ((decoder = OPENSSL_zalloc(sizeof(*decoder))) == NULL)
  ------------------
  |  |  109|     76|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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;
  ------------------
  |  |  317|      0|#define ERR_R_UNSUPPORTED (268 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  220|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  211|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      int code = unsupported ? ERR_R_UNSUPPORTED : ERR_R_FETCH_FAILED;
  ------------------
  |  |  318|      0|#define ERR_R_FETCH_FAILED (269 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  220|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  211|      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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_OSSL_DECODER, code,
  ------------------
  |  |  104|      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);
  ------------------
  |  |  108|     92|#define OSSL_LIB_CTX_DECODER_STORE_INDEX 11
  ------------------
  114|     92|}
decoder_meth.c:resolve_name:
  523|   111k|{
  524|   111k|    OSSL_LIB_CTX *libctx = ossl_provider_libctx(decoder->base.prov);
  525|   111k|    OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx);
  526|       |
  527|   111k|    return ossl_namemap_name2num(namemap, name);
  528|   111k|}
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:
  774|      2|{
  775|      2|    DECODER_CACHE *cache = OPENSSL_malloc(sizeof(*cache));
  ------------------
  |  |  107|      2|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  776|       |
  777|      2|    if (cache == NULL)
  ------------------
  |  Branch (777:9): [True: 0, False: 2]
  ------------------
  778|      0|        return NULL;
  779|       |
  780|      2|    cache->lock = CRYPTO_THREAD_lock_new();
  781|      2|    if (cache->lock == NULL) {
  ------------------
  |  Branch (781:9): [True: 0, False: 2]
  ------------------
  782|      0|        OPENSSL_free(cache);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  783|      0|        return NULL;
  784|      0|    }
  785|      2|    cache->hashtable = lh_DECODER_CACHE_ENTRY_new(decoder_cache_entry_hash,
  786|      2|        decoder_cache_entry_cmp);
  787|      2|    if (cache->hashtable == NULL) {
  ------------------
  |  Branch (787:9): [True: 0, False: 2]
  ------------------
  788|      0|        CRYPTO_THREAD_lock_free(cache->lock);
  789|      0|        OPENSSL_free(cache);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  790|      0|        return NULL;
  791|      0|    }
  792|       |
  793|      2|    return cache;
  794|      2|}
OSSL_DECODER_CTX_new_for_pkey:
  836|  41.3k|{
  837|  41.3k|    OSSL_DECODER_CTX *ctx = NULL;
  838|  41.3k|    OSSL_PARAM decoder_params[] = {
  839|  41.3k|        OSSL_PARAM_END,
  ------------------
  |  |   25|  41.3k|    { NULL, 0, NULL, 0, 0 }
  ------------------
  840|  41.3k|        OSSL_PARAM_END,
  ------------------
  |  |   25|  41.3k|    { NULL, 0, NULL, 0, 0 }
  ------------------
  841|  41.3k|        OSSL_PARAM_END
  ------------------
  |  |   25|  41.3k|    { NULL, 0, NULL, 0, 0 }
  ------------------
  842|  41.3k|    };
  843|  41.3k|    DECODER_CACHE *cache
  844|  41.3k|        = ossl_lib_ctx_get_data(libctx, OSSL_LIB_CTX_DECODER_CACHE_INDEX);
  ------------------
  |  |  117|  41.3k|#define OSSL_LIB_CTX_DECODER_CACHE_INDEX 20
  ------------------
  845|  41.3k|    DECODER_CACHE_ENTRY cacheent, *res, *newcache = NULL;
  846|  41.3k|    int i = 0;
  847|       |
  848|  41.3k|    if (cache == NULL) {
  ------------------
  |  Branch (848:9): [True: 0, False: 41.3k]
  ------------------
  849|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_OSSL_DECODER_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  850|      0|        return NULL;
  851|      0|    }
  852|  41.3k|    if (input_structure != NULL)
  ------------------
  |  Branch (852:9): [True: 41.3k, False: 0]
  ------------------
  853|  41.3k|        decoder_params[i++] = OSSL_PARAM_construct_utf8_string(OSSL_OBJECT_PARAM_DATA_STRUCTURE,
  ------------------
  |  |  365|  41.3k|# define OSSL_OBJECT_PARAM_DATA_STRUCTURE "data-structure"
  ------------------
  854|  41.3k|            (char *)input_structure, 0);
  855|  41.3k|    if (propquery != NULL)
  ------------------
  |  Branch (855:9): [True: 0, False: 41.3k]
  ------------------
  856|      0|        decoder_params[i++] = OSSL_PARAM_construct_utf8_string(OSSL_DECODER_PARAM_PROPERTIES,
  ------------------
  |  |  221|      0|# define OSSL_DECODER_PARAM_PROPERTIES OSSL_ALG_PARAM_PROPERTIES
  |  |  ------------------
  |  |  |  |  130|      0|# define OSSL_ALG_PARAM_PROPERTIES "properties"
  |  |  ------------------
  ------------------
  857|      0|            (char *)propquery, 0);
  858|       |
  859|       |    /* It is safe to cast away the const here */
  860|  41.3k|    cacheent.input_type = (char *)input_type;
  861|  41.3k|    cacheent.input_structure = (char *)input_structure;
  862|  41.3k|    cacheent.keytype = (char *)keytype;
  863|  41.3k|    cacheent.selection = selection;
  864|  41.3k|    cacheent.propquery = (char *)propquery;
  865|       |
  866|  41.3k|    if (!CRYPTO_THREAD_read_lock(cache->lock)) {
  ------------------
  |  Branch (866:9): [True: 0, False: 41.3k]
  ------------------
  867|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  868|      0|        return NULL;
  869|      0|    }
  870|       |
  871|       |    /* First see if we have a template OSSL_DECODER_CTX */
  872|  41.3k|    res = lh_DECODER_CACHE_ENTRY_retrieve(cache->hashtable, &cacheent);
  873|       |
  874|  41.3k|    if (res == NULL) {
  ------------------
  |  Branch (874:9): [True: 2, False: 41.3k]
  ------------------
  875|       |        /*
  876|       |         * There is no template so we will have to construct one. This will be
  877|       |         * time consuming so release the lock and we will later upgrade it to a
  878|       |         * write lock.
  879|       |         */
  880|      2|        CRYPTO_THREAD_unlock(cache->lock);
  881|       |
  882|      2|        if ((ctx = OSSL_DECODER_CTX_new()) == NULL) {
  ------------------
  |  Branch (882:13): [True: 0, False: 2]
  ------------------
  883|      0|            ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_OSSL_DECODER_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  884|      0|            return NULL;
  885|      0|        }
  886|       |
  887|      2|        OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  219|      2|    do {                           \
  |  |  220|      2|        BIO *trc_out = NULL;       \
  |  |  221|      2|        if (0)
  |  |  ------------------
  |  |  |  Branch (221:13): [Folded, False: 2]
  |  |  ------------------
  ------------------
  888|      0|        {
  889|      0|            BIO_printf(trc_out,
  890|      0|                "(ctx %p) Looking for %s decoders with selection %d\n",
  891|      0|                (void *)ctx, keytype, selection);
  892|      0|            BIO_printf(trc_out, "    input type: %s, input structure: %s\n",
  893|      0|                input_type, input_structure);
  894|      0|        }
  895|      2|        OSSL_TRACE_END(DECODER);
  ------------------
  |  |  224|      2|    }                            \
  |  |  225|      2|    while (0)
  |  |  ------------------
  |  |  |  Branch (225:12): [Folded, False: 2]
  |  |  ------------------
  ------------------
  896|       |
  897|      2|        if (OSSL_DECODER_CTX_set_input_type(ctx, input_type)
  ------------------
  |  Branch (897:13): [True: 2, False: 0]
  ------------------
  898|      2|            && OSSL_DECODER_CTX_set_input_structure(ctx, input_structure)
  ------------------
  |  Branch (898:16): [True: 2, False: 0]
  ------------------
  899|      2|            && OSSL_DECODER_CTX_set_selection(ctx, selection)
  ------------------
  |  Branch (899:16): [True: 2, False: 0]
  ------------------
  900|      2|            && ossl_decoder_ctx_setup_for_pkey(ctx, keytype, libctx, propquery)
  ------------------
  |  Branch (900:16): [True: 2, False: 0]
  ------------------
  901|      2|            && OSSL_DECODER_CTX_add_extra(ctx, libctx, propquery)
  ------------------
  |  Branch (901:16): [True: 2, False: 0]
  ------------------
  902|      2|            && (propquery == NULL
  ------------------
  |  Branch (902:17): [True: 2, False: 0]
  ------------------
  903|      2|                || OSSL_DECODER_CTX_set_params(ctx, decoder_params))) {
  ------------------
  |  Branch (903:20): [True: 0, False: 0]
  ------------------
  904|      2|            ctx->frozen = 1;
  905|      2|            OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  219|      2|    do {                           \
  |  |  220|      2|        BIO *trc_out = NULL;       \
  |  |  221|      2|        if (0)
  |  |  ------------------
  |  |  |  Branch (221:13): [Folded, False: 2]
  |  |  ------------------
  ------------------
  906|      0|            {
  907|      0|                BIO_printf(trc_out, "(ctx %p) Got %d decoders\n",
  908|      0|                    (void *)ctx, OSSL_DECODER_CTX_get_num_decoders(ctx));
  909|      0|            }
  910|      2|            OSSL_TRACE_END(DECODER);
  ------------------
  |  |  224|      2|    }                            \
  |  |  225|      2|    while (0)
  |  |  ------------------
  |  |  |  Branch (225:12): [Folded, False: 2]
  |  |  ------------------
  ------------------
  911|      2|        } else {
  912|      0|            ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_OSSL_DECODER_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  913|      0|            OSSL_DECODER_CTX_free(ctx);
  914|      0|            return NULL;
  915|      0|        }
  916|       |
  917|      2|        newcache = OPENSSL_zalloc(sizeof(*newcache));
  ------------------
  |  |  109|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  918|      2|        if (newcache == NULL) {
  ------------------
  |  Branch (918:13): [True: 0, False: 2]
  ------------------
  919|      0|            OSSL_DECODER_CTX_free(ctx);
  920|      0|            return NULL;
  921|      0|        }
  922|       |
  923|      2|        if (input_type != NULL) {
  ------------------
  |  Branch (923:13): [True: 2, False: 0]
  ------------------
  924|      2|            newcache->input_type = OPENSSL_strdup(input_type);
  ------------------
  |  |  136|      2|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  925|      2|            if (newcache->input_type == NULL)
  ------------------
  |  Branch (925:17): [True: 0, False: 2]
  ------------------
  926|      0|                goto err;
  927|      2|        }
  928|      2|        if (input_structure != NULL) {
  ------------------
  |  Branch (928:13): [True: 2, False: 0]
  ------------------
  929|      2|            newcache->input_structure = OPENSSL_strdup(input_structure);
  ------------------
  |  |  136|      2|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  930|      2|            if (newcache->input_structure == NULL)
  ------------------
  |  Branch (930:17): [True: 0, False: 2]
  ------------------
  931|      0|                goto err;
  932|      2|        }
  933|      2|        if (keytype != NULL) {
  ------------------
  |  Branch (933:13): [True: 2, False: 0]
  ------------------
  934|      2|            newcache->keytype = OPENSSL_strdup(keytype);
  ------------------
  |  |  136|      2|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  935|      2|            if (newcache->keytype == NULL)
  ------------------
  |  Branch (935:17): [True: 0, False: 2]
  ------------------
  936|      0|                goto err;
  937|      2|        }
  938|      2|        if (propquery != NULL) {
  ------------------
  |  Branch (938:13): [True: 0, False: 2]
  ------------------
  939|      0|            newcache->propquery = OPENSSL_strdup(propquery);
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  940|      0|            if (newcache->propquery == NULL)
  ------------------
  |  Branch (940:17): [True: 0, False: 0]
  ------------------
  941|      0|                goto err;
  942|      0|        }
  943|      2|        newcache->selection = selection;
  944|      2|        newcache->template = ctx;
  945|       |
  946|      2|        if (!CRYPTO_THREAD_write_lock(cache->lock)) {
  ------------------
  |  Branch (946:13): [True: 0, False: 2]
  ------------------
  947|      0|            ctx = NULL;
  948|      0|            ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  949|      0|            goto err;
  950|      0|        }
  951|      2|        res = lh_DECODER_CACHE_ENTRY_retrieve(cache->hashtable, &cacheent);
  952|      2|        if (res == NULL) {
  ------------------
  |  Branch (952:13): [True: 2, False: 0]
  ------------------
  953|      2|            (void)lh_DECODER_CACHE_ENTRY_insert(cache->hashtable, newcache);
  954|      2|            if (lh_DECODER_CACHE_ENTRY_error(cache->hashtable)) {
  ------------------
  |  Branch (954:17): [True: 0, False: 2]
  ------------------
  955|      0|                ctx = NULL;
  956|      0|                CRYPTO_THREAD_unlock(cache->lock);
  957|      0|                ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  958|      0|                goto err;
  959|      0|            }
  960|      2|        } else {
  961|       |            /*
  962|       |             * We raced with another thread to construct this and lost. Free
  963|       |             * what we just created and use the entry from the hashtable instead
  964|       |             */
  965|      0|            decoder_cache_entry_free(newcache);
  966|      0|            ctx = res->template;
  967|      0|        }
  968|  41.3k|    } else {
  969|  41.3k|        ctx = res->template;
  970|  41.3k|    }
  971|       |
  972|  41.3k|    ctx = ossl_decoder_ctx_for_pkey_dup(ctx, pkey, input_type, input_structure);
  973|  41.3k|    CRYPTO_THREAD_unlock(cache->lock);
  974|       |
  975|  41.3k|    return ctx;
  976|      0|err:
  977|      0|    decoder_cache_entry_free(newcache);
  978|      0|    OSSL_DECODER_CTX_free(ctx);
  979|       |    return NULL;
  980|  41.3k|}
decoder_pkey.c:decoder_cache_entry_hash:
  704|  41.3k|{
  705|  41.3k|    unsigned long hash = 17;
  706|       |
  707|  41.3k|    hash = (hash * 23)
  708|  41.3k|        + (cache->propquery == NULL
  ------------------
  |  Branch (708:12): [True: 41.3k, False: 0]
  ------------------
  709|  41.3k|                ? 0
  710|  41.3k|                : ossl_lh_strcasehash(cache->propquery));
  711|  41.3k|    hash = (hash * 23)
  712|  41.3k|        + (cache->input_structure == NULL
  ------------------
  |  Branch (712:12): [True: 0, False: 41.3k]
  ------------------
  713|  41.3k|                ? 0
  714|  41.3k|                : ossl_lh_strcasehash(cache->input_structure));
  715|  41.3k|    hash = (hash * 23)
  716|  41.3k|        + (cache->input_type == NULL
  ------------------
  |  Branch (716:12): [True: 0, False: 41.3k]
  ------------------
  717|  41.3k|                ? 0
  718|  41.3k|                : ossl_lh_strcasehash(cache->input_type));
  719|  41.3k|    hash = (hash * 23)
  720|  41.3k|        + (cache->keytype == NULL
  ------------------
  |  Branch (720:12): [True: 0, False: 41.3k]
  ------------------
  721|  41.3k|                ? 0
  722|  41.3k|                : ossl_lh_strcasehash(cache->keytype));
  723|       |
  724|  41.3k|    hash ^= cache->selection;
  725|       |
  726|  41.3k|    return hash;
  727|  41.3k|}
decoder_pkey.c:decoder_cache_entry_cmp:
  750|  41.3k|{
  751|  41.3k|    int cmp;
  752|       |
  753|  41.3k|    if (a->selection != b->selection)
  ------------------
  |  Branch (753:9): [True: 0, False: 41.3k]
  ------------------
  754|      0|        return (a->selection < b->selection) ? -1 : 1;
  ------------------
  |  Branch (754:16): [True: 0, False: 0]
  ------------------
  755|       |
  756|  41.3k|    cmp = nullstrcmp(a->keytype, b->keytype, 1);
  757|  41.3k|    if (cmp != 0)
  ------------------
  |  Branch (757:9): [True: 0, False: 41.3k]
  ------------------
  758|      0|        return cmp;
  759|       |
  760|  41.3k|    cmp = nullstrcmp(a->input_type, b->input_type, 1);
  761|  41.3k|    if (cmp != 0)
  ------------------
  |  Branch (761:9): [True: 0, False: 41.3k]
  ------------------
  762|      0|        return cmp;
  763|       |
  764|  41.3k|    cmp = nullstrcmp(a->input_structure, b->input_structure, 1);
  765|  41.3k|    if (cmp != 0)
  ------------------
  |  Branch (765:9): [True: 0, False: 41.3k]
  ------------------
  766|      0|        return cmp;
  767|       |
  768|  41.3k|    cmp = nullstrcmp(a->propquery, b->propquery, 0);
  769|       |
  770|  41.3k|    return cmp;
  771|  41.3k|}
decoder_pkey.c:nullstrcmp:
  730|   165k|{
  731|   165k|    if (a == NULL || b == NULL) {
  ------------------
  |  Branch (731:9): [True: 41.3k, False: 124k]
  |  Branch (731:22): [True: 0, False: 124k]
  ------------------
  732|  41.3k|        if (a == NULL) {
  ------------------
  |  Branch (732:13): [True: 41.3k, False: 0]
  ------------------
  733|  41.3k|            if (b == NULL)
  ------------------
  |  Branch (733:17): [True: 41.3k, False: 0]
  ------------------
  734|  41.3k|                return 0;
  735|      0|            else
  736|      0|                return 1;
  737|  41.3k|        } else {
  738|      0|            return -1;
  739|      0|        }
  740|   124k|    } else {
  741|   124k|        if (casecmp)
  ------------------
  |  Branch (741:13): [True: 124k, False: 0]
  ------------------
  742|   124k|            return OPENSSL_strcasecmp(a, b);
  743|      0|        else
  744|      0|            return strcmp(a, b);
  745|   124k|    }
  746|   165k|}
decoder_pkey.c:ossl_decoder_ctx_setup_for_pkey:
  444|      2|{
  445|      2|    int ok = 0;
  446|      2|    struct decoder_pkey_data_st *process_data = NULL;
  447|      2|    struct collect_data_st collect_data = { NULL };
  448|      2|    STACK_OF(EVP_KEYMGMT) *keymgmts = NULL;
  ------------------
  |  |   33|      2|#define STACK_OF(type) struct stack_st_##type
  ------------------
  449|      2|    OSSL_PROPERTY_LIST **plp;
  450|      2|    OSSL_PROPERTY_LIST *pq = NULL, *p2 = NULL;
  451|       |
  452|      2|    OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  219|      2|    do {                           \
  |  |  220|      2|        BIO *trc_out = NULL;       \
  |  |  221|      2|        if (0)
  |  |  ------------------
  |  |  |  Branch (221:13): [Folded, False: 2]
  |  |  ------------------
  ------------------
  453|      0|    {
  454|      0|        const char *input_type = ctx->start_input_type;
  455|      0|        const char *input_structure = ctx->input_structure;
  456|       |
  457|      0|        BIO_printf(trc_out,
  458|      0|            "(ctx %p) Looking for decoders producing %s%s%s%s%s%s\n",
  459|      0|            (void *)ctx,
  460|      0|            keytype != NULL ? keytype : "",
  ------------------
  |  Branch (460:13): [True: 0, False: 0]
  ------------------
  461|      0|            keytype != NULL ? " keys" : "keys of any type",
  ------------------
  |  Branch (461:13): [True: 0, False: 0]
  ------------------
  462|      0|            input_type != NULL ? " from " : "",
  ------------------
  |  Branch (462:13): [True: 0, False: 0]
  ------------------
  463|      0|            input_type != NULL ? input_type : "",
  ------------------
  |  Branch (463:13): [True: 0, False: 0]
  ------------------
  464|      0|            input_structure != NULL ? " with " : "",
  ------------------
  |  Branch (464:13): [True: 0, False: 0]
  ------------------
  465|      0|            input_structure != NULL ? input_structure : "");
  ------------------
  |  Branch (465:13): [True: 0, False: 0]
  ------------------
  466|      0|    }
  467|      2|    OSSL_TRACE_END(DECODER);
  ------------------
  |  |  224|      2|    }                            \
  |  |  225|      2|    while (0)
  |  |  ------------------
  |  |  |  Branch (225:12): [Folded, False: 2]
  |  |  ------------------
  ------------------
  468|       |
  469|       |    /* Allocate data. */
  470|      2|    if ((process_data = OPENSSL_zalloc(sizeof(*process_data))) == NULL)
  ------------------
  |  |  109|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (470:9): [True: 0, False: 2]
  ------------------
  471|      0|        goto err;
  472|      2|    if ((propquery != NULL
  ------------------
  |  Branch (472:10): [True: 0, False: 2]
  ------------------
  473|      0|            && (process_data->propq = OPENSSL_strdup(propquery)) == NULL))
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (473:16): [True: 0, False: 0]
  ------------------
  474|      0|        goto err;
  475|       |
  476|       |    /* Allocate our list of EVP_KEYMGMTs. */
  477|      2|    keymgmts = sk_EVP_KEYMGMT_new_null();
  478|      2|    if (keymgmts == NULL) {
  ------------------
  |  Branch (478:9): [True: 0, False: 2]
  ------------------
  479|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  480|      0|        goto err;
  481|      0|    }
  482|       |
  483|      2|    process_data->object = NULL;
  484|      2|    process_data->libctx = libctx;
  485|      2|    process_data->selection = ctx->selection;
  486|      2|    process_data->keymgmts = keymgmts;
  487|       |
  488|       |    /*
  489|       |     * Collect passed and default properties to prioritize the decoders.
  490|       |     */
  491|      2|    if (propquery != NULL)
  ------------------
  |  Branch (491:9): [True: 0, False: 2]
  ------------------
  492|      0|        p2 = pq = ossl_parse_query(libctx, propquery, 1);
  493|       |
  494|      2|    plp = ossl_ctx_global_properties(libctx, 0);
  495|      2|    if (plp != NULL && *plp != NULL) {
  ------------------
  |  Branch (495:9): [True: 2, False: 0]
  |  Branch (495:24): [True: 0, False: 2]
  ------------------
  496|      0|        if (pq == NULL) {
  ------------------
  |  Branch (496:13): [True: 0, False: 0]
  ------------------
  497|      0|            pq = *plp;
  498|      0|        } else {
  499|      0|            p2 = ossl_property_merge(pq, *plp);
  500|      0|            ossl_property_free(pq);
  501|      0|            if (p2 == NULL)
  ------------------
  |  Branch (501:17): [True: 0, False: 0]
  ------------------
  502|      0|                goto err;
  503|      0|            pq = p2;
  504|      0|        }
  505|      0|    }
  506|       |
  507|       |    /*
  508|       |     * Enumerate all keymgmts into a stack.
  509|       |     *
  510|       |     * We could nest EVP_KEYMGMT_do_all_provided inside
  511|       |     * OSSL_DECODER_do_all_provided or vice versa but these functions become
  512|       |     * bottlenecks if called repeatedly, which is why we collect the
  513|       |     * EVP_KEYMGMTs into a stack here and call both functions only once.
  514|       |     *
  515|       |     * We resolve the keytype string to a name ID so we don't have to resolve it
  516|       |     * multiple times, avoiding repeated calls to EVP_KEYMGMT_is_a, which is a
  517|       |     * performance bottleneck. However, we do this lazily on the first call to
  518|       |     * collect_keymgmt made by EVP_KEYMGMT_do_all_provided, rather than do it
  519|       |     * upfront, as this ensures that the names for all loaded providers have
  520|       |     * been registered by the time we try to resolve the keytype string.
  521|       |     */
  522|      2|    collect_data.ctx = ctx;
  523|      2|    collect_data.libctx = libctx;
  524|      2|    collect_data.keymgmts = keymgmts;
  525|      2|    collect_data.keytype = keytype;
  526|      2|    collect_data.pq = pq;
  527|      2|    EVP_KEYMGMT_do_all_provided(libctx, collect_keymgmt, &collect_data);
  528|       |
  529|      2|    if (collect_data.error_occurred)
  ------------------
  |  Branch (529:9): [True: 0, False: 2]
  ------------------
  530|      0|        goto err;
  531|       |
  532|       |    /* Enumerate all matching decoders. */
  533|      2|    OSSL_DECODER_do_all_provided(libctx, collect_decoder, &collect_data);
  534|       |
  535|      2|    if (collect_data.error_occurred)
  ------------------
  |  Branch (535:9): [True: 0, False: 2]
  ------------------
  536|      0|        goto err;
  537|       |
  538|      2|    OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  219|      2|    do {                           \
  |  |  220|      2|        BIO *trc_out = NULL;       \
  |  |  221|      2|        if (0)
  |  |  ------------------
  |  |  |  Branch (221:13): [Folded, False: 2]
  |  |  ------------------
  ------------------
  539|      0|    {
  540|      0|        BIO_printf(trc_out,
  541|      0|            "(ctx %p) Got %d decoders producing keys\n",
  542|      0|            (void *)ctx, collect_data.total);
  543|      0|    }
  544|      2|    OSSL_TRACE_END(DECODER);
  ------------------
  |  |  224|      2|    }                            \
  |  |  225|      2|    while (0)
  |  |  ------------------
  |  |  |  Branch (225:12): [Folded, False: 2]
  |  |  ------------------
  ------------------
  545|       |
  546|       |    /*
  547|       |     * Finish initializing the decoder context. If one or more decoders matched
  548|       |     * above then the number of decoders attached to the OSSL_DECODER_CTX will
  549|       |     * be nonzero. Else nothing was found and we do nothing.
  550|       |     */
  551|      2|    if (OSSL_DECODER_CTX_get_num_decoders(ctx) != 0) {
  ------------------
  |  Branch (551:9): [True: 2, False: 0]
  ------------------
  552|      2|        if (!OSSL_DECODER_CTX_set_construct(ctx, decoder_construct_pkey)
  ------------------
  |  Branch (552:13): [True: 0, False: 2]
  ------------------
  553|      2|            || !OSSL_DECODER_CTX_set_construct_data(ctx, process_data)
  ------------------
  |  Branch (553:16): [True: 0, False: 2]
  ------------------
  554|      2|            || !OSSL_DECODER_CTX_set_cleanup(ctx,
  ------------------
  |  Branch (554:16): [True: 0, False: 2]
  ------------------
  555|      2|                decoder_clean_pkey_construct_arg))
  556|      0|            goto err;
  557|       |
  558|      2|        process_data = NULL; /* Avoid it being freed */
  559|      2|    }
  560|       |
  561|      2|    ok = 1;
  562|      2|err:
  563|      2|    decoder_clean_pkey_construct_arg(process_data);
  564|      2|    ossl_property_free(p2);
  565|      2|    return ok;
  566|      2|}
decoder_pkey.c:collect_keymgmt:
  406|     84|{
  407|     84|    struct collect_data_st *data = arg;
  408|       |
  409|     84|    if (!check_keymgmt(keymgmt, data))
  ------------------
  |  Branch (409:9): [True: 81, False: 3]
  ------------------
  410|     81|        return;
  411|       |
  412|       |    /*
  413|       |     * We have to ref EVP_KEYMGMT here because in the success case,
  414|       |     * data->keymgmts is referenced by the constructor we register in the
  415|       |     * OSSL_DECODER_CTX. The registered cleanup function
  416|       |     * (decoder_clean_pkey_construct_arg) unrefs every element of the stack and
  417|       |     * frees it.
  418|       |     */
  419|      3|    if (!EVP_KEYMGMT_up_ref(keymgmt))
  ------------------
  |  Branch (419:9): [True: 0, False: 3]
  ------------------
  420|      0|        return;
  421|       |
  422|      3|    OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  219|      3|    do {                           \
  |  |  220|      3|        BIO *trc_out = NULL;       \
  |  |  221|      3|        if (0)
  |  |  ------------------
  |  |  |  Branch (221:13): [Folded, False: 3]
  |  |  ------------------
  ------------------
  423|      0|    {
  424|      0|        BIO_printf(trc_out,
  425|      0|            "(Collecting KeyManager %s %s [id %d]:\n",
  426|      0|            keymgmt->description, keymgmt->type_name, keymgmt->id);
  427|      0|    }
  428|      3|    OSSL_TRACE_END(DECODER);
  ------------------
  |  |  224|      3|    }                            \
  |  |  225|      3|    while (0)
  |  |  ------------------
  |  |  |  Branch (225:12): [Folded, False: 3]
  |  |  ------------------
  ------------------
  429|      3|    if (sk_EVP_KEYMGMT_push(data->keymgmts, keymgmt) <= 0) {
  ------------------
  |  Branch (429:9): [True: 0, False: 3]
  ------------------
  430|      0|        EVP_KEYMGMT_free(keymgmt);
  431|      0|        data->error_occurred = 1;
  432|      0|    }
  433|      3|}
decoder_pkey.c:check_keymgmt:
  367|     84|{
  368|       |    /* If no keytype was specified, everything matches. */
  369|     84|    if (data->keytype == NULL)
  ------------------
  |  Branch (369:9): [True: 0, False: 84]
  ------------------
  370|      0|        return 1;
  371|       |
  372|     84|    if (!data->keytype_resolved) {
  ------------------
  |  Branch (372:9): [True: 2, False: 82]
  ------------------
  373|       |        /* We haven't cached the IDs from the keytype string yet. */
  374|      2|        OSSL_NAMEMAP *namemap = ossl_namemap_stored(data->libctx);
  375|      2|        data->keytype_id = ossl_namemap_name2num(namemap, data->keytype);
  376|       |
  377|       |        /*
  378|       |         * If keytype is a value ambiguously used for both EC and SM2,
  379|       |         * collect the ID for SM2 as well.
  380|       |         */
  381|      2|        if (data->keytype_id != 0
  ------------------
  |  Branch (381:13): [True: 2, False: 0]
  ------------------
  382|      2|            && (strcmp(data->keytype, "id-ecPublicKey") == 0
  ------------------
  |  Branch (382:17): [True: 1, False: 1]
  ------------------
  383|      1|                || strcmp(data->keytype, "1.2.840.10045.2.1") == 0))
  ------------------
  |  Branch (383:20): [True: 0, False: 1]
  ------------------
  384|      1|            data->sm2_id = ossl_namemap_name2num(namemap, "SM2");
  385|       |
  386|       |        /*
  387|       |         * If keytype_id is zero the name was not found, but we still
  388|       |         * set keytype_resolved to avoid trying all this again.
  389|       |         */
  390|      2|        data->keytype_resolved = 1;
  391|      2|    }
  392|       |
  393|       |    /* Specified keytype could not be resolved, so nothing matches. */
  394|     84|    if (data->keytype_id == 0)
  ------------------
  |  Branch (394:9): [True: 0, False: 84]
  ------------------
  395|      0|        return 0;
  396|       |
  397|       |    /* Does not match the keytype specified, so skip. */
  398|     84|    if (keymgmt->name_id != data->keytype_id
  ------------------
  |  Branch (398:9): [True: 82, False: 2]
  ------------------
  399|     82|        && keymgmt->name_id != data->sm2_id)
  ------------------
  |  Branch (399:12): [True: 81, False: 1]
  ------------------
  400|     81|        return 0;
  401|       |
  402|      3|    return 1;
  403|     84|}
decoder_pkey.c:collect_decoder:
  315|    152|{
  316|    152|    struct collect_data_st *data = arg;
  317|    152|    STACK_OF(EVP_KEYMGMT) *keymgmts = data->keymgmts;
  ------------------
  |  |   33|    152|#define STACK_OF(type) struct stack_st_##type
  ------------------
  318|    152|    int i, end_i;
  319|    152|    EVP_KEYMGMT *keymgmt;
  320|    152|    const OSSL_PROVIDER *prov;
  321|    152|    void *provctx;
  322|       |
  323|    152|    if (data->error_occurred)
  ------------------
  |  Branch (323:9): [True: 0, False: 152]
  ------------------
  324|      0|        return;
  325|       |
  326|    152|    prov = OSSL_DECODER_get0_provider(decoder);
  327|    152|    provctx = OSSL_PROVIDER_get0_provider_ctx(prov);
  328|       |
  329|       |    /*
  330|       |     * Either the caller didn't give us a selection, or if they did, the decoder
  331|       |     * must tell us if it supports that selection to be accepted. If the decoder
  332|       |     * doesn't have |does_selection|, it's seen as taking anything.
  333|       |     */
  334|    152|    if (decoder->does_selection != NULL
  ------------------
  |  Branch (334:9): [True: 146, False: 6]
  ------------------
  335|    146|        && !decoder->does_selection(provctx, data->ctx->selection))
  ------------------
  |  Branch (335:12): [True: 76, False: 70]
  ------------------
  336|     76|        return;
  337|       |
  338|     76|    OSSL_TRACE_BEGIN(DECODER)
  ------------------
  |  |  219|     76|    do {                           \
  |  |  220|     76|        BIO *trc_out = NULL;       \
  |  |  221|     76|        if (0)
  |  |  ------------------
  |  |  |  Branch (221:13): [Folded, False: 76]
  |  |  ------------------
  ------------------
  339|      0|    {
  340|      0|        BIO_printf(trc_out,
  341|      0|            "(ctx %p) Checking out decoder %p (%s):\n"
  342|      0|            "    %s with %s\n",
  343|      0|            (void *)data->ctx, (void *)decoder,
  344|      0|            OSSL_DECODER_get0_description(decoder),
  345|      0|            OSSL_DECODER_get0_name(decoder),
  346|      0|            OSSL_DECODER_get0_properties(decoder));
  347|      0|    }
  348|     76|    OSSL_TRACE_END(DECODER);
  ------------------
  |  |  224|     76|    }                            \
  |  |  225|     76|    while (0)
  |  |  ------------------
  |  |  |  Branch (225:12): [Folded, False: 76]
  |  |  ------------------
  ------------------
  349|       |
  350|     76|    end_i = sk_EVP_KEYMGMT_num(keymgmts);
  351|    184|    for (i = 0; i < end_i; ++i) {
  ------------------
  |  Branch (351:17): [True: 113, False: 71]
  ------------------
  352|    113|        keymgmt = sk_EVP_KEYMGMT_value(keymgmts, i);
  353|       |
  354|       |        /* Only add this decoder once */
  355|    113|        if (collect_decoder_keymgmt(keymgmt, decoder, provctx, data))
  ------------------
  |  Branch (355:13): [True: 5, False: 108]
  ------------------
  356|      5|            break;
  357|    108|        if (data->error_occurred)
  ------------------
  |  Branch (357:13): [True: 0, False: 108]
  ------------------
  358|      0|            return;
  359|    108|    }
  360|     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)
  ------------------
  |  |  219|      5|    do {                           \
  |  |  220|      5|        BIO *trc_out = NULL;       \
  |  |  221|      5|        if (0)
  |  |  ------------------
  |  |  |  Branch (221:13): [Folded, False: 5]
  |  |  ------------------
  ------------------
  277|      0|    {
  278|      0|        BIO_printf(trc_out,
  279|      0|            "(ctx %p) Checking out decoder %p (%s):\n"
  280|      0|            "    %s with %s\n",
  281|      0|            (void *)data->ctx, (void *)decoder,
  282|      0|            OSSL_DECODER_get0_description(decoder),
  283|      0|            OSSL_DECODER_get0_name(decoder),
  284|      0|            OSSL_DECODER_get0_properties(decoder));
  285|      0|    }
  286|      5|    OSSL_TRACE_END(DECODER);
  ------------------
  |  |  224|      5|    }                            \
  |  |  225|      5|    while (0)
  |  |  ------------------
  |  |  |  Branch (225:12): [Folded, False: 5]
  |  |  ------------------
  ------------------
  287|       |
  288|       |    /*
  289|       |     * Get the property match score so the decoders can be prioritized later.
  290|       |     */
  291|      5|    props = ossl_decoder_parsed_properties(decoder);
  292|      5|    if (data->pq != NULL && props != NULL) {
  ------------------
  |  Branch (292:9): [True: 0, False: 5]
  |  Branch (292:29): [True: 0, False: 0]
  ------------------
  293|      0|        di->score = ossl_property_match_count(data->pq, props);
  294|       |        /*
  295|       |         * Mismatch of mandatory properties is not an error, the decoder is just
  296|       |         * ignored, continue.
  297|       |         */
  298|      0|        if (di->score < 0) {
  ------------------
  |  Branch (298:13): [True: 0, False: 0]
  ------------------
  299|      0|            ossl_decoder_instance_free(di);
  300|      0|            return 0;
  301|      0|        }
  302|      0|    }
  303|       |
  304|      5|    if (!ossl_decoder_ctx_add_decoder_inst(data->ctx, di)) {
  ------------------
  |  Branch (304:9): [True: 0, False: 5]
  ------------------
  305|      0|        ossl_decoder_instance_free(di);
  306|      0|        data->error_occurred = 1;
  307|      0|        return 0;
  308|      0|    }
  309|       |
  310|      5|    ++data->total;
  311|      5|    return 1;
  312|      5|}
decoder_pkey.c:decoder_construct_pkey:
   74|  82.7k|{
   75|  82.7k|    struct decoder_pkey_data_st *data = construct_data;
   76|  82.7k|    OSSL_DECODER *decoder = OSSL_DECODER_INSTANCE_get_decoder(decoder_inst);
   77|  82.7k|    void *decoderctx = OSSL_DECODER_INSTANCE_get_decoder_ctx(decoder_inst);
   78|  82.7k|    const OSSL_PROVIDER *decoder_prov = OSSL_DECODER_get0_provider(decoder);
   79|  82.7k|    EVP_KEYMGMT *keymgmt = NULL;
   80|  82.7k|    const OSSL_PROVIDER *keymgmt_prov = NULL;
   81|  82.7k|    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|  82.7k|    void *object_ref = NULL;
   91|  82.7k|    size_t object_ref_sz = 0;
   92|  82.7k|    const OSSL_PARAM *p;
   93|       |
   94|  82.7k|    p = OSSL_PARAM_locate_const(params, OSSL_OBJECT_PARAM_DATA_TYPE);
  ------------------
  |  |  366|  82.7k|# define OSSL_OBJECT_PARAM_DATA_TYPE "data-type"
  ------------------
   95|  82.7k|    if (p != NULL) {
  ------------------
  |  Branch (95:9): [True: 82.7k, False: 0]
  ------------------
   96|  82.7k|        char *object_type = NULL;
   97|       |
   98|  82.7k|        if (!OSSL_PARAM_get_utf8_string(p, &object_type, 0))
  ------------------
  |  Branch (98:13): [True: 0, False: 82.7k]
  ------------------
   99|      0|            return 0;
  100|  82.7k|        OPENSSL_free(data->object_type);
  ------------------
  |  |  132|  82.7k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  101|  82.7k|        data->object_type = object_type;
  102|  82.7k|    }
  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|  82.7k|    p = OSSL_PARAM_locate_const(params, OSSL_OBJECT_PARAM_REFERENCE);
  ------------------
  |  |  369|  82.7k|# define OSSL_OBJECT_PARAM_REFERENCE "reference"
  ------------------
  110|  82.7k|    if (p == NULL || p->data_type != OSSL_PARAM_OCTET_STRING)
  ------------------
  |  |  123|  41.3k|#define OSSL_PARAM_OCTET_STRING 5
  ------------------
  |  Branch (110:9): [True: 41.3k, False: 41.3k]
  |  Branch (110:22): [True: 0, False: 41.3k]
  ------------------
  111|  41.3k|        return 0;
  112|  41.3k|    object_ref = p->data;
  113|  41.3k|    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|  41.3k|    end = sk_EVP_KEYMGMT_num(data->keymgmts);
  120|  41.3k|    for (i = 0; i < end; i++) {
  ------------------
  |  Branch (120:17): [True: 41.3k, False: 0]
  ------------------
  121|  41.3k|        keymgmt = sk_EVP_KEYMGMT_value(data->keymgmts, i);
  122|  41.3k|        keymgmt_prov = EVP_KEYMGMT_get0_provider(keymgmt);
  123|       |
  124|  41.3k|        if (keymgmt_prov == decoder_prov
  ------------------
  |  Branch (124:13): [True: 41.3k, False: 0]
  ------------------
  125|  41.3k|            && evp_keymgmt_has_load(keymgmt)
  ------------------
  |  Branch (125:16): [True: 41.3k, False: 0]
  ------------------
  126|  41.3k|            && EVP_KEYMGMT_is_a(keymgmt, data->object_type))
  ------------------
  |  Branch (126:16): [True: 41.3k, False: 0]
  ------------------
  127|  41.3k|            break;
  128|  41.3k|    }
  129|  41.3k|    if (i < end) {
  ------------------
  |  Branch (129:9): [True: 41.3k, False: 0]
  ------------------
  130|       |        /* To allow it to be freed further down */
  131|  41.3k|        if (!EVP_KEYMGMT_up_ref(keymgmt))
  ------------------
  |  Branch (131:13): [True: 0, False: 41.3k]
  ------------------
  132|      0|            return 0;
  133|  41.3k|    } 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|  41.3k|    if (keymgmt != NULL) {
  ------------------
  |  Branch (140:9): [True: 41.3k, False: 0]
  ------------------
  141|  41.3k|        EVP_PKEY *pkey = NULL;
  142|  41.3k|        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|  41.3k|        if (keymgmt_prov == decoder_prov) {
  ------------------
  |  Branch (152:13): [True: 41.3k, False: 0]
  ------------------
  153|  41.3k|            keydata = evp_keymgmt_load(keymgmt, object_ref, object_ref_sz);
  154|  41.3k|        } 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;
  ------------------
  |  |  658|      0|    (OSSL_KEYMGMT_SELECT_KEYPAIR | OSSL_KEYMGMT_SELECT_ALL_PARAMETERS)
  |  |  ------------------
  |  |  |  |  656|      0|    (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  |  |  ------------------
  |  |  |  |  |  |  646|      0|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  |  |  |  |  ------------------
  |  |  |  |                   (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  |  |  ------------------
  |  |  |  |  |  |  647|      0|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   (OSSL_KEYMGMT_SELECT_KEYPAIR | OSSL_KEYMGMT_SELECT_ALL_PARAMETERS)
  |  |  ------------------
  |  |  |  |  653|      0|    (OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS \
  |  |  |  |  ------------------
  |  |  |  |  |  |  648|      0|#define OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS 0x04
  |  |  |  |  ------------------
  |  |  |  |  654|      0|        | OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS)
  |  |  |  |  ------------------
  |  |  |  |  |  |  649|      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|  41.3k|        if (keydata == NULL)
  ------------------
  |  Branch (182:13): [True: 0, False: 41.3k]
  ------------------
  183|      0|            ossl_decoder_ctx_set_harderr(data->ctx);
  184|       |
  185|  41.3k|        if (keydata != NULL
  ------------------
  |  Branch (185:13): [True: 41.3k, False: 0]
  ------------------
  186|  41.3k|            && (pkey = evp_keymgmt_util_make_pkey(keymgmt, keydata)) == NULL)
  ------------------
  |  Branch (186:16): [True: 0, False: 41.3k]
  ------------------
  187|      0|            evp_keymgmt_freedata(keymgmt, keydata);
  188|       |
  189|  41.3k|        *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|  41.3k|        EVP_KEYMGMT_free(keymgmt);
  196|  41.3k|    }
  197|       |    /*
  198|       |     * We successfully looked through, |*ctx->object| determines if we
  199|       |     * actually found something.
  200|       |     */
  201|       |    return (*data->object != NULL);
  202|  41.3k|}
decoder_pkey.c:decoder_clean_pkey_construct_arg:
  205|  41.3k|{
  206|  41.3k|    struct decoder_pkey_data_st *data = construct_data;
  207|       |
  208|  41.3k|    if (data != NULL) {
  ------------------
  |  Branch (208:9): [True: 41.3k, False: 2]
  ------------------
  209|  41.3k|        sk_EVP_KEYMGMT_pop_free(data->keymgmts, EVP_KEYMGMT_free);
  210|  41.3k|        OPENSSL_free(data->propq);
  ------------------
  |  |  132|  41.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  211|  41.3k|        OPENSSL_free(data->object_type);
  ------------------
  |  |  132|  41.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  212|  41.3k|        OPENSSL_free(data);
  ------------------
  |  |  132|  41.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  213|  41.3k|    }
  214|  41.3k|}
decoder_pkey.c:ossl_decoder_ctx_for_pkey_dup:
  588|  41.3k|{
  589|  41.3k|    OSSL_DECODER_CTX *dest;
  590|  41.3k|    struct decoder_pkey_data_st *process_data_src, *process_data_dest = NULL;
  591|       |
  592|  41.3k|    if (src == NULL)
  ------------------
  |  Branch (592:9): [True: 0, False: 41.3k]
  ------------------
  593|      0|        return NULL;
  594|       |
  595|  41.3k|    if ((dest = OSSL_DECODER_CTX_new()) == NULL) {
  ------------------
  |  Branch (595:9): [True: 0, False: 41.3k]
  ------------------
  596|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_OSSL_DECODER_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  597|      0|        return NULL;
  598|      0|    }
  599|       |
  600|  41.3k|    if (!OSSL_DECODER_CTX_set_input_type(dest, input_type)
  ------------------
  |  Branch (600:9): [True: 0, False: 41.3k]
  ------------------
  601|  41.3k|        || !OSSL_DECODER_CTX_set_input_structure(dest, input_structure)) {
  ------------------
  |  Branch (601:12): [True: 0, False: 41.3k]
  ------------------
  602|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_OSSL_DECODER_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  603|      0|        goto err;
  604|      0|    }
  605|  41.3k|    dest->selection = src->selection;
  606|       |
  607|  41.3k|    if (src->decoder_insts != NULL) {
  ------------------
  |  Branch (607:9): [True: 41.3k, False: 0]
  ------------------
  608|  41.3k|        dest->decoder_insts
  609|  41.3k|            = sk_OSSL_DECODER_INSTANCE_deep_copy(src->decoder_insts,
  610|  41.3k|                ossl_decoder_instance_dup,
  611|  41.3k|                ossl_decoder_instance_free);
  612|  41.3k|        if (dest->decoder_insts == NULL) {
  ------------------
  |  Branch (612:13): [True: 0, False: 41.3k]
  ------------------
  613|      0|            ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_OSSL_DECODER_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  614|      0|            goto err;
  615|      0|        }
  616|  41.3k|    }
  617|       |
  618|  41.3k|    if (!OSSL_DECODER_CTX_set_construct(dest,
  ------------------
  |  Branch (618:9): [True: 0, False: 41.3k]
  ------------------
  619|  41.3k|            OSSL_DECODER_CTX_get_construct(src))) {
  620|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_OSSL_DECODER_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  621|      0|        goto err;
  622|      0|    }
  623|       |
  624|  41.3k|    process_data_src = OSSL_DECODER_CTX_get_construct_data(src);
  625|  41.3k|    if (process_data_src != NULL) {
  ------------------
  |  Branch (625:9): [True: 41.3k, False: 0]
  ------------------
  626|  41.3k|        process_data_dest = OPENSSL_zalloc(sizeof(*process_data_dest));
  ------------------
  |  |  109|  41.3k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  627|  41.3k|        if (process_data_dest == NULL) {
  ------------------
  |  Branch (627:13): [True: 0, False: 41.3k]
  ------------------
  628|      0|            ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  629|      0|            goto err;
  630|      0|        }
  631|  41.3k|        if (process_data_src->propq != NULL) {
  ------------------
  |  Branch (631:13): [True: 0, False: 41.3k]
  ------------------
  632|      0|            process_data_dest->propq = OPENSSL_strdup(process_data_src->propq);
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  633|      0|            if (process_data_dest->propq == NULL) {
  ------------------
  |  Branch (633:17): [True: 0, False: 0]
  ------------------
  634|      0|                ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  635|      0|                goto err;
  636|      0|            }
  637|      0|        }
  638|       |
  639|  41.3k|        if (process_data_src->keymgmts != NULL) {
  ------------------
  |  Branch (639:13): [True: 41.3k, False: 0]
  ------------------
  640|  41.3k|            process_data_dest->keymgmts
  641|  41.3k|                = sk_EVP_KEYMGMT_deep_copy(process_data_src->keymgmts,
  642|  41.3k|                    keymgmt_dup,
  643|  41.3k|                    EVP_KEYMGMT_free);
  644|  41.3k|            if (process_data_dest->keymgmts == NULL) {
  ------------------
  |  Branch (644:17): [True: 0, False: 41.3k]
  ------------------
  645|      0|                ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_EVP_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  646|      0|                goto err;
  647|      0|            }
  648|  41.3k|        }
  649|       |
  650|  41.3k|        process_data_dest->object = (void **)pkey;
  651|  41.3k|        process_data_dest->libctx = process_data_src->libctx;
  652|  41.3k|        process_data_dest->selection = process_data_src->selection;
  653|  41.3k|        process_data_dest->ctx = dest;
  654|  41.3k|        if (!OSSL_DECODER_CTX_set_construct_data(dest, process_data_dest)) {
  ------------------
  |  Branch (654:13): [True: 0, False: 41.3k]
  ------------------
  655|      0|            ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_OSSL_DECODER_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  656|      0|            goto err;
  657|      0|        }
  658|  41.3k|        process_data_dest = NULL;
  659|  41.3k|    }
  660|       |
  661|  41.3k|    if (!OSSL_DECODER_CTX_set_cleanup(dest,
  ------------------
  |  Branch (661:9): [True: 0, False: 41.3k]
  ------------------
  662|  41.3k|            OSSL_DECODER_CTX_get_cleanup(src))) {
  663|      0|        ERR_raise(ERR_LIB_OSSL_DECODER, ERR_R_OSSL_DECODER_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  664|      0|        goto err;
  665|      0|    }
  666|       |
  667|  41.3k|    dest->frozen = src->frozen;
  668|  41.3k|    return dest;
  669|      0|err:
  670|      0|    decoder_clean_pkey_construct_arg(process_data_dest);
  671|      0|    OSSL_DECODER_CTX_free(dest);
  672|       |    return NULL;
  673|  41.3k|}
decoder_pkey.c:keymgmt_dup:
  570|  54.7k|{
  571|  54.7k|    if (!EVP_KEYMGMT_up_ref((EVP_KEYMGMT *)keymgmt))
  ------------------
  |  Branch (571:9): [True: 0, False: 54.7k]
  ------------------
  572|      0|        return NULL;
  573|       |
  574|  54.7k|    return (EVP_KEYMGMT *)keymgmt;
  575|  54.7k|}

ossl_err_load_ERR_strings:
  267|     71|{
  268|     71|#ifndef OPENSSL_NO_ERR
  269|     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 (269:9): [True: 0, False: 71]
  ------------------
  270|      0|        return 0;
  271|       |
  272|     71|    err_load_strings(ERR_str_libraries);
  273|     71|    err_load_strings(ERR_str_reasons);
  274|     71|#endif
  275|     71|    return 1;
  276|     71|}
ERR_load_strings_const:
  292|     69|{
  293|     69|#ifndef OPENSSL_NO_ERR
  294|     69|    if (ossl_err_load_ERR_strings() == 0)
  ------------------
  |  Branch (294:9): [True: 0, False: 69]
  ------------------
  295|      0|        return 0;
  296|     69|    err_load_strings(str);
  297|     69|#endif
  298|       |
  299|     69|    return 1;
  300|     69|}
ERR_clear_error:
  330|  13.0k|{
  331|  13.0k|    int i;
  332|  13.0k|    ERR_STATE *es;
  333|       |
  334|  13.0k|    es = ossl_err_get_state_int();
  335|  13.0k|    if (es == NULL)
  ------------------
  |  Branch (335:9): [True: 0, False: 13.0k]
  ------------------
  336|      0|        return;
  337|       |
  338|   221k|    for (i = 0; i < ERR_NUM_ERRORS; i++) {
  ------------------
  |  |   14|   221k|#define ERR_NUM_ERRORS 16
  ------------------
  |  Branch (338:17): [True: 208k, False: 13.0k]
  ------------------
  339|   208k|        err_clear(es, i, 0);
  340|   208k|    }
  341|  13.0k|    es->top = es->bottom = 0;
  342|  13.0k|}
ERR_peek_last_error:
  405|   124k|{
  406|   124k|    return get_error_values(EV_PEEK_LAST, NULL, NULL, NULL, NULL, NULL);
  407|   124k|}
ERR_reason_error_string:
  607|     69|{
  608|     69|#ifndef OPENSSL_NO_ERR
  609|     69|    ERR_STRING_DATA d, *p = NULL;
  610|     69|    unsigned long l, r;
  611|       |
  612|     69|    if (!RUN_ONCE(&err_string_init, do_err_strings_init)) {
  ------------------
  |  |  130|     69|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 69, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (612:9): [True: 0, False: 69]
  ------------------
  613|      0|        return NULL;
  614|      0|    }
  615|       |
  616|       |    /*
  617|       |     * ERR_reason_error_string() can't safely return system error strings,
  618|       |     * since openssl_strerror_r() needs a buffer for thread safety, and we
  619|       |     * haven't got one that would serve any sensible purpose.
  620|       |     */
  621|     69|    if (ERR_SYSTEM_ERROR(e))
  ------------------
  |  |  222|     69|#define ERR_SYSTEM_ERROR(errcode) (((errcode) & ERR_SYSTEM_FLAG) != 0)
  |  |  ------------------
  |  |  |  |  201|     69|#define ERR_SYSTEM_FLAG ((unsigned int)INT_MAX + 1)
  |  |  ------------------
  |  |  |  Branch (222:35): [True: 0, False: 69]
  |  |  ------------------
  ------------------
  622|      0|        return NULL;
  623|       |
  624|     69|    l = ERR_GET_LIB(e);
  625|     69|    r = ERR_GET_REASON(e);
  626|     69|    d.error = ERR_PACK(l, 0, r);
  ------------------
  |  |  262|     69|    ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  210|     69|#define ERR_LIB_MASK 0xFF
  |  |  ------------------
  |  |                   ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  209|     69|#define ERR_LIB_OFFSET 23L
  |  |  ------------------
  |  |                   ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  213|     69|#define ERR_REASON_MASK 0X7FFFFF
  |  |  ------------------
  ------------------
  627|     69|    p = int_err_get_item(&d);
  628|     69|    if (p == NULL) {
  ------------------
  |  Branch (628:9): [True: 69, False: 0]
  ------------------
  629|     69|        d.error = ERR_PACK(0, 0, r);
  ------------------
  |  |  262|     69|    ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  210|     69|#define ERR_LIB_MASK 0xFF
  |  |  ------------------
  |  |                   ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  209|     69|#define ERR_LIB_OFFSET 23L
  |  |  ------------------
  |  |                   ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  213|     69|#define ERR_REASON_MASK 0X7FFFFF
  |  |  ------------------
  ------------------
  630|     69|        p = int_err_get_item(&d);
  631|     69|    }
  632|     69|    return ((p == NULL) ? NULL : p->string);
  ------------------
  |  Branch (632:13): [True: 69, False: 0]
  ------------------
  633|       |#else
  634|       |    return NULL;
  635|       |#endif
  636|     69|}
ossl_err_get_state_int:
  652|  1.94M|{
  653|  1.94M|    ERR_STATE *state;
  654|  1.94M|    int saveerrno = get_last_sys_error();
  ------------------
  |  |   30|  1.94M|#define get_last_sys_error() errno
  ------------------
  655|       |
  656|  1.94M|    if (!OPENSSL_init_crypto(OPENSSL_INIT_BASE_ONLY, NULL))
  ------------------
  |  |   31|  1.94M|#define OPENSSL_INIT_BASE_ONLY 0x00040000L
  ------------------
  |  Branch (656:9): [True: 0, False: 1.94M]
  ------------------
  657|      0|        return NULL;
  658|       |
  659|  1.94M|    state = CRYPTO_THREAD_get_local_ex(CRYPTO_THREAD_LOCAL_ERR_KEY,
  660|  1.94M|        CRYPTO_THREAD_NO_CONTEXT);
  ------------------
  |  |   42|  1.94M|#define CRYPTO_THREAD_NO_CONTEXT (void *)1
  ------------------
  661|  1.94M|    if (state == (ERR_STATE *)-1)
  ------------------
  |  Branch (661:9): [True: 0, False: 1.94M]
  ------------------
  662|      0|        return NULL;
  663|       |
  664|  1.94M|    if (state == NULL) {
  ------------------
  |  Branch (664:9): [True: 2, False: 1.94M]
  ------------------
  665|      2|        if (!CRYPTO_THREAD_set_local_ex(CRYPTO_THREAD_LOCAL_ERR_KEY,
  ------------------
  |  Branch (665:13): [True: 0, False: 2]
  ------------------
  666|      2|                CRYPTO_THREAD_NO_CONTEXT, (ERR_STATE *)-1))
  ------------------
  |  |   42|      2|#define CRYPTO_THREAD_NO_CONTEXT (void *)1
  ------------------
  667|      0|            return NULL;
  668|       |
  669|      2|        state = OSSL_ERR_STATE_new();
  670|      2|        if (state == NULL) {
  ------------------
  |  Branch (670:13): [True: 0, False: 2]
  ------------------
  671|      0|            CRYPTO_THREAD_set_local_ex(CRYPTO_THREAD_LOCAL_ERR_KEY,
  672|      0|                CRYPTO_THREAD_NO_CONTEXT, NULL);
  ------------------
  |  |   42|      0|#define CRYPTO_THREAD_NO_CONTEXT (void *)1
  ------------------
  673|      0|            return NULL;
  674|      0|        }
  675|       |
  676|      2|        if (!ossl_init_thread_start(NULL, NULL, err_delete_thread_state)
  ------------------
  |  Branch (676:13): [True: 0, False: 2]
  ------------------
  677|      2|            || !CRYPTO_THREAD_set_local_ex(CRYPTO_THREAD_LOCAL_ERR_KEY,
  ------------------
  |  Branch (677:16): [True: 0, False: 2]
  ------------------
  678|      2|                CRYPTO_THREAD_NO_CONTEXT, state)) {
  ------------------
  |  |   42|      2|#define CRYPTO_THREAD_NO_CONTEXT (void *)1
  ------------------
  679|      0|            OSSL_ERR_STATE_free(state);
  680|      0|            CRYPTO_THREAD_set_local_ex(CRYPTO_THREAD_LOCAL_ERR_KEY,
  681|      0|                CRYPTO_THREAD_NO_CONTEXT, NULL);
  ------------------
  |  |   42|      0|#define CRYPTO_THREAD_NO_CONTEXT (void *)1
  ------------------
  682|      0|            return NULL;
  683|      0|        }
  684|       |
  685|       |        /* Ignore failures from these */
  686|      2|        OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL);
  ------------------
  |  |  506|      2|#define OPENSSL_INIT_LOAD_CRYPTO_STRINGS 0x00000002L
  ------------------
  687|      2|    }
  688|       |
  689|  1.94M|    set_sys_error(saveerrno);
  ------------------
  |  |   32|  1.94M|#define set_sys_error(e) errno = (e)
  ------------------
  690|  1.94M|    return state;
  691|  1.94M|}
err_shelve_state:
  698|      2|{
  699|      2|    int saveerrno = get_last_sys_error();
  ------------------
  |  |   30|      2|#define get_last_sys_error() errno
  ------------------
  700|       |
  701|       |    /*
  702|       |     * Note, at present our only caller is OPENSSL_init_crypto(), indirectly
  703|       |     * via ossl_init_load_crypto_nodelete(), by which point the requested
  704|       |     * "base" initialization has already been performed, so the below call is a
  705|       |     * NOOP, that re-enters OPENSSL_init_crypto() only to quickly return.
  706|       |     *
  707|       |     * If are no other valid callers of this function, the call below can be
  708|       |     * removed, avoiding the re-entry into OPENSSL_init_crypto().  If there are
  709|       |     * potential uses that are not from inside OPENSSL_init_crypto(), then this
  710|       |     * call is needed, but some care is required to make sure that the re-entry
  711|       |     * remains a NOOP.
  712|       |     */
  713|      2|    if (!OPENSSL_init_crypto(OPENSSL_INIT_BASE_ONLY, NULL))
  ------------------
  |  |   31|      2|#define OPENSSL_INIT_BASE_ONLY 0x00040000L
  ------------------
  |  Branch (713:9): [True: 0, False: 2]
  ------------------
  714|      0|        return 0;
  715|       |
  716|      2|    *state = CRYPTO_THREAD_get_local_ex(CRYPTO_THREAD_LOCAL_ERR_KEY,
  717|      2|        CRYPTO_THREAD_NO_CONTEXT);
  ------------------
  |  |   42|      2|#define CRYPTO_THREAD_NO_CONTEXT (void *)1
  ------------------
  718|      2|    if (!CRYPTO_THREAD_set_local_ex(CRYPTO_THREAD_LOCAL_ERR_KEY,
  ------------------
  |  Branch (718:9): [True: 0, False: 2]
  ------------------
  719|      2|            CRYPTO_THREAD_NO_CONTEXT, (ERR_STATE *)-1))
  ------------------
  |  |   42|      2|#define CRYPTO_THREAD_NO_CONTEXT (void *)1
  ------------------
  720|      0|        return 0;
  721|       |
  722|      2|    set_sys_error(saveerrno);
  ------------------
  |  |   32|      2|#define set_sys_error(e) errno = (e)
  ------------------
  723|      2|    return 1;
  724|      2|}
err_unshelve_state:
  731|      2|{
  732|      2|    if (state != (void *)-1)
  ------------------
  |  Branch (732:9): [True: 2, False: 0]
  ------------------
  733|      2|        CRYPTO_THREAD_set_local_ex(CRYPTO_THREAD_LOCAL_ERR_KEY,
  734|      2|            CRYPTO_THREAD_NO_CONTEXT, (ERR_STATE *)state);
  ------------------
  |  |   42|      2|#define CRYPTO_THREAD_NO_CONTEXT (void *)1
  ------------------
  735|      2|}
ERR_get_next_error_library:
  738|      1|{
  739|      1|    int ret;
  740|       |
  741|      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 (741:9): [True: 0, False: 1]
  ------------------
  742|      0|        return 0;
  743|       |
  744|      1|    if (!CRYPTO_THREAD_write_lock(err_string_lock))
  ------------------
  |  Branch (744:9): [True: 0, False: 1]
  ------------------
  745|      0|        return 0;
  746|      1|    ret = int_err_library_number++;
  747|      1|    CRYPTO_THREAD_unlock(err_string_lock);
  748|      1|    return ret;
  749|      1|}
err.c:do_err_strings_init:
  211|      2|{
  212|      2|    if (!OPENSSL_init_crypto(OPENSSL_INIT_BASE_ONLY, NULL))
  ------------------
  |  |   31|      2|#define OPENSSL_INIT_BASE_ONLY 0x00040000L
  ------------------
  |  Branch (212:9): [True: 0, False: 2]
  ------------------
  213|      0|        return 0;
  214|      2|    err_string_lock = CRYPTO_THREAD_lock_new();
  215|      2|    if (err_string_lock == NULL)
  ------------------
  |  Branch (215:9): [True: 0, False: 2]
  ------------------
  216|      0|        return 0;
  217|      2|#ifndef OPENSSL_NO_ERR
  218|      2|    int_error_hash = lh_ERR_STRING_DATA_new(err_string_data_hash,
  ------------------
  |  |  330|      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))
  ------------------
  219|      2|        err_string_data_cmp);
  220|      2|    if (int_error_hash == NULL) {
  ------------------
  |  Branch (220:9): [True: 0, False: 2]
  ------------------
  221|      0|        CRYPTO_THREAD_lock_free(err_string_lock);
  222|      0|        err_string_lock = NULL;
  223|      0|        return 0;
  224|      0|    }
  225|      2|#endif
  226|      2|    return 1;
  227|      2|}
err.c:err_string_data_hash:
  169|  9.19k|{
  170|  9.19k|    unsigned long ret, l;
  171|       |
  172|  9.19k|    l = a->error;
  173|  9.19k|    ret = l ^ ERR_GET_LIB(l);
  174|  9.19k|    return (ret ^ ret % 19 * 13);
  175|  9.19k|}
err.c:err_string_data_cmp:
  179|  6.02k|{
  180|  6.02k|    if (a->error == b->error)
  ------------------
  |  Branch (180:9): [True: 5.66k, False: 364]
  ------------------
  181|  5.66k|        return 0;
  182|    364|    return a->error > b->error ? 1 : -1;
  ------------------
  |  Branch (182:12): [True: 194, False: 170]
  ------------------
  183|  6.02k|}
err.c:err_load_strings:
  255|    211|{
  256|    211|    if (!CRYPTO_THREAD_write_lock(err_string_lock))
  ------------------
  |  Branch (256:9): [True: 0, False: 211]
  ------------------
  257|      0|        return 0;
  258|  9.26k|    for (; str->error; str++)
  ------------------
  |  Branch (258:12): [True: 9.05k, False: 211]
  ------------------
  259|  9.05k|        (void)lh_ERR_STRING_DATA_insert(int_error_hash,
  ------------------
  |  |  333|  9.26k|#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)))
  ------------------
  260|    211|            (ERR_STRING_DATA *)str);
  261|    211|    CRYPTO_THREAD_unlock(err_string_lock);
  262|    211|    return 1;
  263|    211|}
err.c:get_error_values:
  443|   124k|{
  444|   124k|    int i = 0;
  445|   124k|    ERR_STATE *es;
  446|   124k|    unsigned long ret;
  447|       |
  448|   124k|    es = ossl_err_get_state_int();
  449|   124k|    if (es == NULL)
  ------------------
  |  Branch (449:9): [True: 0, False: 124k]
  ------------------
  450|      0|        return 0;
  451|       |
  452|       |    /*
  453|       |     * Clear anything that should have been cleared earlier. We do this
  454|       |     * here because this doesn't have constant-time issues.
  455|       |     */
  456|   124k|    while (es->bottom != es->top) {
  ------------------
  |  Branch (456:12): [True: 83.1k, False: 41.3k]
  ------------------
  457|  83.1k|        if (es->err_flags[es->top] & ERR_FLAG_CLEAR) {
  ------------------
  |  |   16|  83.1k|#define ERR_FLAG_CLEAR 0x02
  ------------------
  |  Branch (457:13): [True: 0, False: 83.1k]
  ------------------
  458|      0|            err_clear(es, es->top, 0);
  459|      0|            es->top = es->top > 0 ? es->top - 1 : ERR_NUM_ERRORS - 1;
  ------------------
  |  |   14|      0|#define ERR_NUM_ERRORS 16
  ------------------
  |  Branch (459:23): [True: 0, False: 0]
  ------------------
  460|      0|            continue;
  461|      0|        }
  462|  83.1k|        i = (es->bottom + 1) % ERR_NUM_ERRORS;
  ------------------
  |  |   14|  83.1k|#define ERR_NUM_ERRORS 16
  ------------------
  463|  83.1k|        if (es->err_flags[i] & ERR_FLAG_CLEAR) {
  ------------------
  |  |   16|  83.1k|#define ERR_FLAG_CLEAR 0x02
  ------------------
  |  Branch (463:13): [True: 0, False: 83.1k]
  ------------------
  464|      0|            es->bottom = i;
  465|      0|            err_clear(es, es->bottom, 0);
  466|      0|            continue;
  467|      0|        }
  468|  83.1k|        break;
  469|  83.1k|    }
  470|       |
  471|       |    /* If everything has been cleared, the stack is empty. */
  472|   124k|    if (es->bottom == es->top)
  ------------------
  |  Branch (472:9): [True: 41.3k, False: 83.1k]
  ------------------
  473|  41.3k|        return 0;
  474|       |
  475|       |    /* Which error, the top of stack (latest one) or the first one? */
  476|  83.1k|    if (g == EV_PEEK_LAST)
  ------------------
  |  Branch (476:9): [True: 83.1k, False: 0]
  ------------------
  477|  83.1k|        i = es->top;
  478|      0|    else
  479|      0|        i = (es->bottom + 1) % ERR_NUM_ERRORS;
  ------------------
  |  |   14|      0|#define ERR_NUM_ERRORS 16
  ------------------
  480|       |
  481|  83.1k|    ret = es->err_buffer[i];
  482|  83.1k|    if (g == EV_POP) {
  ------------------
  |  Branch (482:9): [True: 0, False: 83.1k]
  ------------------
  483|      0|        es->bottom = i;
  484|      0|        es->err_buffer[i] = 0;
  485|      0|    }
  486|       |
  487|  83.1k|    if (file != NULL) {
  ------------------
  |  Branch (487:9): [True: 0, False: 83.1k]
  ------------------
  488|      0|        *file = es->err_file[i];
  489|      0|        if (*file == NULL)
  ------------------
  |  Branch (489:13): [True: 0, False: 0]
  ------------------
  490|      0|            *file = "";
  491|      0|    }
  492|  83.1k|    if (line != NULL)
  ------------------
  |  Branch (492:9): [True: 0, False: 83.1k]
  ------------------
  493|      0|        *line = es->err_line[i];
  494|  83.1k|    if (func != NULL) {
  ------------------
  |  Branch (494:9): [True: 0, False: 83.1k]
  ------------------
  495|      0|        *func = es->err_func[i];
  496|      0|        if (*func == NULL)
  ------------------
  |  Branch (496:13): [True: 0, False: 0]
  ------------------
  497|      0|            *func = "";
  498|      0|    }
  499|  83.1k|    if (flags != NULL)
  ------------------
  |  Branch (499:9): [True: 0, False: 83.1k]
  ------------------
  500|      0|        *flags = es->err_data_flags[i];
  501|  83.1k|    if (data == NULL) {
  ------------------
  |  Branch (501:9): [True: 83.1k, False: 0]
  ------------------
  502|  83.1k|        if (g == EV_POP) {
  ------------------
  |  Branch (502:13): [True: 0, False: 83.1k]
  ------------------
  503|      0|            err_clear_data(es, i, 0);
  504|      0|        }
  505|  83.1k|    } else {
  506|      0|        *data = es->err_data[i];
  507|      0|        if (*data == NULL) {
  ------------------
  |  Branch (507:13): [True: 0, False: 0]
  ------------------
  508|      0|            *data = "";
  509|      0|            if (flags != NULL)
  ------------------
  |  Branch (509:17): [True: 0, False: 0]
  ------------------
  510|      0|                *flags = 0;
  511|      0|        }
  512|      0|    }
  513|  83.1k|    return ret;
  514|   124k|}
err.c:int_err_get_item:
  186|    138|{
  187|    138|    ERR_STRING_DATA *p = NULL;
  188|       |
  189|    138|    if (!CRYPTO_THREAD_read_lock(err_string_lock))
  ------------------
  |  Branch (189:9): [True: 0, False: 138]
  ------------------
  190|      0|        return NULL;
  191|    138|    p = lh_ERR_STRING_DATA_retrieve(int_error_hash, d);
  ------------------
  |  |  335|    138|#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)))
  ------------------
  192|    138|    CRYPTO_THREAD_unlock(err_string_lock);
  193|       |
  194|    138|    return p;
  195|    138|}

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

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

err.c:err_clear:
  103|   208k|{
  104|   208k|    err_clear_data(es, i, (deall));
  105|   208k|    es->err_marks[i] = 0;
  106|   208k|    es->err_flags[i] = 0;
  107|   208k|    es->err_buffer[i] = 0;
  108|   208k|    es->err_line[i] = -1;
  109|   208k|    OPENSSL_free(es->err_file[i]);
  ------------------
  |  |  132|   208k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  110|   208k|    es->err_file[i] = NULL;
  111|   208k|    OPENSSL_free(es->err_func[i]);
  ------------------
  |  |  132|   208k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  112|       |    es->err_func[i] = NULL;
  113|   208k|}
err.c:err_clear_data:
   39|   208k|{
   40|   208k|    if (es->err_data_flags[i] & ERR_TXT_MALLOCED) {
  ------------------
  |  |   50|   208k|#define ERR_TXT_MALLOCED 0x01
  ------------------
  |  Branch (40:9): [True: 13.6k, False: 194k]
  ------------------
   41|  13.6k|        if (deall) {
  ------------------
  |  Branch (41:13): [True: 0, False: 13.6k]
  ------------------
   42|      0|            OPENSSL_free(es->err_data[i]);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   43|      0|            es->err_data[i] = NULL;
   44|      0|            es->err_data_size[i] = 0;
   45|      0|            es->err_data_flags[i] = 0;
   46|  13.6k|        } else if (es->err_data[i] != NULL) {
  ------------------
  |  Branch (46:20): [True: 13.6k, False: 0]
  ------------------
   47|  13.6k|            es->err_data[i][0] = '\0';
   48|  13.6k|            es->err_data_flags[i] = ERR_TXT_MALLOCED;
  ------------------
  |  |   50|  13.6k|#define ERR_TXT_MALLOCED 0x01
  ------------------
   49|  13.6k|        }
   50|   194k|    } else {
   51|       |        es->err_data[i] = NULL;
   52|   194k|        es->err_data_size[i] = 0;
   53|   194k|        es->err_data_flags[i] = 0;
   54|   194k|    }
   55|   208k|}
err_blocks.c:err_get_slot:
   32|   203k|{
   33|   203k|    es->top = (es->top + 1) % ERR_NUM_ERRORS;
  ------------------
  |  |   14|   203k|#define ERR_NUM_ERRORS 16
  ------------------
   34|   203k|    if (es->top == es->bottom)
  ------------------
  |  Branch (34:9): [True: 0, False: 203k]
  ------------------
   35|      0|        es->bottom = (es->bottom + 1) % ERR_NUM_ERRORS;
  ------------------
  |  |   14|      0|#define ERR_NUM_ERRORS 16
  ------------------
   36|   203k|}
err_blocks.c:err_clear:
  103|   203k|{
  104|   203k|    err_clear_data(es, i, (deall));
  105|   203k|    es->err_marks[i] = 0;
  106|   203k|    es->err_flags[i] = 0;
  107|   203k|    es->err_buffer[i] = 0;
  108|   203k|    es->err_line[i] = -1;
  109|   203k|    OPENSSL_free(es->err_file[i]);
  ------------------
  |  |  132|   203k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  110|   203k|    es->err_file[i] = NULL;
  111|   203k|    OPENSSL_free(es->err_func[i]);
  ------------------
  |  |  132|   203k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  112|       |    es->err_func[i] = NULL;
  113|   203k|}
err_blocks.c:err_set_debug:
   68|   203k|{
   69|       |    /*
   70|       |     * We dup the file and fn strings because they may be provider owned. If the
   71|       |     * provider gets unloaded, they may not be valid anymore.
   72|       |     */
   73|   203k|    OPENSSL_free(es->err_file[i]);
  ------------------
  |  |  132|   203k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   74|   203k|    if (file == NULL || file[0] == '\0')
  ------------------
  |  Branch (74:9): [True: 0, False: 203k]
  |  Branch (74:25): [True: 0, False: 203k]
  ------------------
   75|      0|        es->err_file[i] = NULL;
   76|   203k|    else if ((es->err_file[i] = CRYPTO_malloc(strlen(file) + 1,
  ------------------
  |  Branch (76:14): [True: 203k, False: 0]
  ------------------
   77|   203k|                  NULL, 0))
   78|   203k|        != NULL)
   79|       |        /* We cannot use OPENSSL_strdup due to possible recursion */
   80|   203k|        strcpy(es->err_file[i], file);
   81|       |
   82|   203k|    es->err_line[i] = line;
   83|   203k|    OPENSSL_free(es->err_func[i]);
  ------------------
  |  |  132|   203k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   84|   203k|    if (fn == NULL || fn[0] == '\0')
  ------------------
  |  Branch (84:9): [True: 0, False: 203k]
  |  Branch (84:23): [True: 0, False: 203k]
  ------------------
   85|      0|        es->err_func[i] = NULL;
   86|   203k|    else if ((es->err_func[i] = CRYPTO_malloc(strlen(fn) + 1,
  ------------------
  |  Branch (86:14): [True: 203k, False: 0]
  ------------------
   87|   203k|                  NULL, 0))
   88|   203k|        != NULL)
   89|   203k|        strcpy(es->err_func[i], fn);
   90|   203k|}
err_blocks.c:err_clear_data:
   39|   406k|{
   40|   406k|    if (es->err_data_flags[i] & ERR_TXT_MALLOCED) {
  ------------------
  |  |   50|   406k|#define ERR_TXT_MALLOCED 0x01
  ------------------
  |  Branch (40:9): [True: 400k, False: 5.56k]
  ------------------
   41|   400k|        if (deall) {
  ------------------
  |  Branch (41:13): [True: 0, False: 400k]
  ------------------
   42|      0|            OPENSSL_free(es->err_data[i]);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   43|      0|            es->err_data[i] = NULL;
   44|      0|            es->err_data_size[i] = 0;
   45|      0|            es->err_data_flags[i] = 0;
   46|   400k|        } else if (es->err_data[i] != NULL) {
  ------------------
  |  Branch (46:20): [True: 400k, False: 0]
  ------------------
   47|   400k|            es->err_data[i][0] = '\0';
   48|   400k|            es->err_data_flags[i] = ERR_TXT_MALLOCED;
  ------------------
  |  |   50|   400k|#define ERR_TXT_MALLOCED 0x01
  ------------------
   49|   400k|        }
   50|   400k|    } else {
   51|       |        es->err_data[i] = NULL;
   52|  5.56k|        es->err_data_size[i] = 0;
   53|  5.56k|        es->err_data_flags[i] = 0;
   54|  5.56k|    }
   55|   406k|}
err_blocks.c:err_set_error:
   59|   203k|{
   60|   203k|    es->err_buffer[i] = lib == ERR_LIB_SYS
  ------------------
  |  |   55|   203k|#define ERR_LIB_SYS 2
  ------------------
  |  Branch (60:25): [True: 2, False: 203k]
  ------------------
   61|   203k|        ? (unsigned int)(ERR_SYSTEM_FLAG | reason)
  ------------------
  |  |  201|      2|#define ERR_SYSTEM_FLAG ((unsigned int)INT_MAX + 1)
  ------------------
   62|   203k|        : ERR_PACK(lib, 0, reason);
  ------------------
  |  |  262|   406k|    ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  210|   203k|#define ERR_LIB_MASK 0xFF
  |  |  ------------------
  |  |                   ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  209|   203k|#define ERR_LIB_OFFSET 23L
  |  |  ------------------
  |  |                   ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  213|   203k|#define ERR_REASON_MASK 0X7FFFFF
  |  |  ------------------
  ------------------
   63|   203k|}
err_blocks.c:err_set_data:
   94|  5.55k|{
   95|  5.55k|    if ((es->err_data_flags[i] & ERR_TXT_MALLOCED) != 0)
  ------------------
  |  |   50|  5.55k|#define ERR_TXT_MALLOCED 0x01
  ------------------
  |  Branch (95:9): [True: 0, False: 5.55k]
  ------------------
   96|      0|        OPENSSL_free(es->err_data[i]);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   97|  5.55k|    es->err_data[i] = data;
   98|  5.55k|    es->err_data_size[i] = datasz;
   99|  5.55k|    es->err_data_flags[i] = flags;
  100|  5.55k|}
err_mark.c:err_clear:
  103|   203k|{
  104|   203k|    err_clear_data(es, i, (deall));
  105|   203k|    es->err_marks[i] = 0;
  106|   203k|    es->err_flags[i] = 0;
  107|   203k|    es->err_buffer[i] = 0;
  108|   203k|    es->err_line[i] = -1;
  109|   203k|    OPENSSL_free(es->err_file[i]);
  ------------------
  |  |  132|   203k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  110|   203k|    es->err_file[i] = NULL;
  111|   203k|    OPENSSL_free(es->err_func[i]);
  ------------------
  |  |  132|   203k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  112|       |    es->err_func[i] = NULL;
  113|   203k|}
err_mark.c:err_clear_data:
   39|   203k|{
   40|   203k|    if (es->err_data_flags[i] & ERR_TXT_MALLOCED) {
  ------------------
  |  |   50|   203k|#define ERR_TXT_MALLOCED 0x01
  ------------------
  |  Branch (40:9): [True: 203k, False: 4]
  ------------------
   41|   203k|        if (deall) {
  ------------------
  |  Branch (41:13): [True: 0, False: 203k]
  ------------------
   42|      0|            OPENSSL_free(es->err_data[i]);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   43|      0|            es->err_data[i] = NULL;
   44|      0|            es->err_data_size[i] = 0;
   45|      0|            es->err_data_flags[i] = 0;
   46|   203k|        } else if (es->err_data[i] != NULL) {
  ------------------
  |  Branch (46:20): [True: 203k, False: 0]
  ------------------
   47|   203k|            es->err_data[i][0] = '\0';
   48|   203k|            es->err_data_flags[i] = ERR_TXT_MALLOCED;
  ------------------
  |  |   50|   203k|#define ERR_TXT_MALLOCED 0x01
  ------------------
   49|   203k|        }
   50|   203k|    } else {
   51|       |        es->err_data[i] = NULL;
   52|      4|        es->err_data_size[i] = 0;
   53|      4|        es->err_data_flags[i] = 0;
   54|      4|    }
   55|   203k|}

ERR_set_mark:
   14|   596k|{
   15|   596k|    ERR_STATE *es;
   16|       |
   17|   596k|    es = ossl_err_get_state_int();
   18|   596k|    if (es == NULL)
  ------------------
  |  Branch (18:9): [True: 0, False: 596k]
  ------------------
   19|      0|        return 0;
   20|       |
   21|   596k|    if (es->bottom == es->top)
  ------------------
  |  Branch (21:9): [True: 596k, False: 370]
  ------------------
   22|   596k|        return 0;
   23|    370|    es->err_marks[es->top]++;
   24|    370|    return 1;
   25|   596k|}
ERR_pop_to_mark:
   41|   388k|{
   42|   388k|    ERR_STATE *es;
   43|       |
   44|   388k|    es = ossl_err_get_state_int();
   45|   388k|    if (es == NULL)
  ------------------
  |  Branch (45:9): [True: 0, False: 388k]
  ------------------
   46|      0|        return 0;
   47|       |
   48|   591k|    while (es->bottom != es->top
  ------------------
  |  Branch (48:12): [True: 203k, False: 388k]
  ------------------
   49|   203k|        && es->err_marks[es->top] == 0) {
  ------------------
  |  Branch (49:12): [True: 203k, False: 370]
  ------------------
   50|   203k|        err_clear(es, es->top, 0);
   51|   203k|        es->top = es->top > 0 ? es->top - 1 : ERR_NUM_ERRORS - 1;
  ------------------
  |  |   14|      0|#define ERR_NUM_ERRORS 16
  ------------------
  |  Branch (51:19): [True: 203k, False: 0]
  ------------------
   52|   203k|    }
   53|       |
   54|   388k|    if (es->bottom == es->top)
  ------------------
  |  Branch (54:9): [True: 388k, False: 370]
  ------------------
   55|   388k|        return 0;
   56|    370|    es->err_marks[es->top]--;
   57|    370|    return 1;
   58|   388k|}
ERR_count_to_mark:
   61|      1|{
   62|      1|    ERR_STATE *es;
   63|      1|    int count = 0, top;
   64|       |
   65|      1|    es = ossl_err_get_state_int();
   66|      1|    if (es == NULL)
  ------------------
  |  Branch (66:9): [True: 0, False: 1]
  ------------------
   67|      0|        return 0;
   68|       |
   69|      1|    top = es->top;
   70|      1|    while (es->bottom != top
  ------------------
  |  Branch (70:12): [True: 0, False: 1]
  ------------------
   71|      0|        && es->err_marks[top] == 0) {
  ------------------
  |  Branch (71:12): [True: 0, False: 0]
  ------------------
   72|      0|        ++count;
   73|      0|        top = top > 0 ? top - 1 : ERR_NUM_ERRORS - 1;
  ------------------
  |  |   14|      0|#define ERR_NUM_ERRORS 16
  ------------------
  |  Branch (73:15): [True: 0, False: 0]
  ------------------
   74|      0|    }
   75|       |
   76|      1|    return count;
   77|      1|}
ERR_clear_last_mark:
   80|   208k|{
   81|   208k|    ERR_STATE *es;
   82|   208k|    int top;
   83|       |
   84|   208k|    es = ossl_err_get_state_int();
   85|   208k|    if (es == NULL)
  ------------------
  |  Branch (85:9): [True: 0, False: 208k]
  ------------------
   86|      0|        return 0;
   87|       |
   88|   208k|    top = es->top;
   89|   208k|    while (es->bottom != top
  ------------------
  |  Branch (89:12): [True: 0, False: 208k]
  ------------------
   90|      0|        && es->err_marks[top] == 0) {
  ------------------
  |  Branch (90:12): [True: 0, False: 0]
  ------------------
   91|      0|        top = top > 0 ? top - 1 : ERR_NUM_ERRORS - 1;
  ------------------
  |  |   14|      0|#define ERR_NUM_ERRORS 16
  ------------------
  |  Branch (91:15): [True: 0, False: 0]
  ------------------
   92|      0|    }
   93|       |
   94|   208k|    if (es->bottom == top)
  ------------------
  |  Branch (94:9): [True: 208k, False: 0]
  ------------------
   95|   208k|        return 0;
   96|      0|    es->err_marks[top]--;
   97|      0|    return 1;
   98|   208k|}

OSSL_ERR_STATE_new:
   20|      2|{
   21|       |    return CRYPTO_zalloc(sizeof(ERR_STATE), NULL, 0);
   22|      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());
  ------------------
  |  |  901|      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());
  ------------------
  |  |  905|      2|#define EVP_des_ede_cfb EVP_des_ede_cfb64
  ------------------
   25|      2|    EVP_add_cipher(EVP_des_ede3_cfb());
  ------------------
  |  |  907|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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());
  ------------------
  |  |  934|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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());
  ------------------
  |  | 1088|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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());
  ------------------
  |  | 1096|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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());
  ------------------
  |  |  944|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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());
  ------------------
  |  |  951|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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());
  ------------------
  |  |  958|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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());
  ------------------
  |  |  965|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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());
  ------------------
  |  |  973|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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());
  ------------------
  |  |  989|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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());
  ------------------
  |  | 1004|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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());
  ------------------
  |  | 1025|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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());
  ------------------
  |  | 1035|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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());
  ------------------
  |  | 1045|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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());
  ------------------
  |  | 1057|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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());
  ------------------
  |  | 1065|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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());
  ------------------
  |  | 1073|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  601|      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");
  ------------------
  |  |  603|      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");
  ------------------
  |  |  603|      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);
  ------------------
  |  |  603|      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");
  ------------------
  |  |  603|      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");
  ------------------
  |  |  603|      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:
   27|    342|{
   28|    342|    if (ctx->algctx != NULL) {
  ------------------
  |  Branch (28:9): [True: 342, False: 0]
  ------------------
   29|    342|        if (ctx->digest != NULL && ctx->digest->freectx != NULL)
  ------------------
  |  Branch (29:13): [True: 342, False: 0]
  |  Branch (29:36): [True: 342, False: 0]
  ------------------
   30|    342|            ctx->digest->freectx(ctx->algctx);
   31|    342|        ctx->algctx = NULL;
   32|    342|        EVP_MD_CTX_set_flags(ctx, EVP_MD_CTX_FLAG_CLEANED);
  ------------------
  |  |  173|    342|#define EVP_MD_CTX_FLAG_CLEANED 0x0002 /* context has already been \
  ------------------
   33|    342|    }
   34|       |
   35|       |    /* Code below to be removed when legacy support is dropped. */
   36|       |
   37|       |    /*
   38|       |     * Don't assume ctx->md_data was cleaned in EVP_Digest_Final, because
   39|       |     * sometimes only copies of the context are ever finalised.
   40|       |     */
   41|    342|    if (force)
  ------------------
  |  Branch (41:9): [True: 0, False: 342]
  ------------------
   42|      0|        ctx->digest = NULL;
   43|       |
   44|       |    /* Non legacy code, this has to be later than the ctx->digest cleaning */
   45|    342|    if (!keep_fetched) {
  ------------------
  |  Branch (45:9): [True: 342, False: 0]
  ------------------
   46|    342|        EVP_MD_free(ctx->fetched_digest);
   47|    342|        ctx->fetched_digest = NULL;
   48|       |        ctx->reqdigest = NULL;
   49|    342|    }
   50|    342|}
EVP_MD_CTX_reset:
   75|    342|{
   76|    342|    return evp_md_ctx_reset_ex(ctx, 0);
   77|    342|}
EVP_MD_CTX_new:
  106|    342|{
  107|    342|    return OPENSSL_zalloc(sizeof(EVP_MD_CTX));
  ------------------
  |  |  109|    342|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  108|    342|}
EVP_MD_CTX_free:
  111|  5.52k|{
  112|  5.52k|    if (ctx == NULL)
  ------------------
  |  Branch (112:9): [True: 5.18k, False: 342]
  ------------------
  113|  5.18k|        return;
  114|       |
  115|    342|    EVP_MD_CTX_reset(ctx);
  116|    342|    OPENSSL_free(ctx);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  117|    342|}
evp_md_ctx_free_algctx:
  120|  1.36k|{
  121|  1.36k|    if (ctx->algctx != NULL) {
  ------------------
  |  Branch (121:9): [True: 1.02k, False: 342]
  ------------------
  122|  1.02k|        if (!ossl_assert(ctx->digest != NULL)) {
  ------------------
  |  |   52|  1.02k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  1.02k|    __FILE__, __LINE__)
  ------------------
  |  Branch (122:13): [True: 0, False: 1.02k]
  ------------------
  123|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  124|      0|            return 0;
  125|      0|        }
  126|  1.02k|        if (ctx->digest->freectx != NULL)
  ------------------
  |  Branch (126:13): [True: 1.02k, False: 0]
  ------------------
  127|  1.02k|            ctx->digest->freectx(ctx->algctx);
  128|  1.02k|        ctx->algctx = NULL;
  129|  1.02k|    }
  130|  1.36k|    return 1;
  131|  1.36k|}
EVP_DigestInit_ex:
  237|  5.81k|{
  238|  5.81k|    if (!ossl_assert(impl == NULL))
  ------------------
  |  |   52|  5.81k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  5.81k|    __FILE__, __LINE__)
  ------------------
  |  Branch (238:9): [True: 0, False: 5.81k]
  ------------------
  239|      0|        return 0;
  240|  5.81k|    return evp_md_init_internal(ctx, type, NULL);
  241|  5.81k|}
EVP_DigestUpdate:
  244|  6.84k|{
  245|  6.84k|    if (ossl_unlikely(count == 0))
  ------------------
  |  |   23|  6.84k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 6.84k]
  |  |  ------------------
  ------------------
  246|      0|        return 1;
  247|       |
  248|  6.84k|    if (ossl_unlikely((ctx->flags & EVP_MD_CTX_FLAG_FINALISED) != 0)) {
  ------------------
  |  |   23|  6.84k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 6.84k]
  |  |  ------------------
  ------------------
  249|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_UPDATE_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  250|      0|        return 0;
  251|      0|    }
  252|       |
  253|  6.84k|    if (ossl_unlikely(ctx->pctx != NULL)
  ------------------
  |  |   23|  13.6k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 6.84k]
  |  |  ------------------
  ------------------
  254|      0|        && EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx->pctx)
  ------------------
  |  |  473|  6.84k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_SIG) != 0)
  |  |  ------------------
  |  |  |  | 1547|      0|    (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1531|      0|#define EVP_PKEY_OP_SIGN (1 << 4)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1541|      0|#define EVP_PKEY_OP_SIGNMSG (1 << 14)
  |  |  |  |  ------------------
  |  |  |  | 1548|      0|        | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1532|      0|#define EVP_PKEY_OP_VERIFY (1 << 5)
  |  |  |  |  ------------------
  |  |  |  |                       | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1542|      0|#define EVP_PKEY_OP_VERIFYMSG (1 << 15)
  |  |  |  |  ------------------
  |  |  |  | 1549|      0|        | EVP_PKEY_OP_VERIFYRECOVER                  \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1533|      0|#define EVP_PKEY_OP_VERIFYRECOVER (1 << 6)
  |  |  |  |  ------------------
  |  |  |  | 1550|      0|        | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1534|      0|#define EVP_PKEY_OP_SIGNCTX (1 << 7)
  |  |  |  |  ------------------
  |  |  |  |                       | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1535|      0|#define EVP_PKEY_OP_VERIFYCTX (1 << 8)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (473:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  255|      0|        && ctx->pctx->op.sig.algctx != NULL) {
  ------------------
  |  Branch (255:12): [True: 0, False: 0]
  ------------------
  256|      0|#ifndef FIPS_MODULE
  257|       |        /*
  258|       |         * Prior to OpenSSL 3.0 EVP_DigestSignUpdate() and
  259|       |         * EVP_DigestVerifyUpdate() were just macros for EVP_DigestUpdate().
  260|       |         * Some code calls EVP_DigestUpdate() directly even when initialised
  261|       |         * with EVP_DigestSignInit_ex() or
  262|       |         * EVP_DigestVerifyInit_ex(), so we detect that and redirect to
  263|       |         * the correct EVP_Digest*Update() function
  264|       |         */
  265|      0|        if (ctx->pctx->operation == EVP_PKEY_OP_SIGNCTX)
  ------------------
  |  | 1534|      0|#define EVP_PKEY_OP_SIGNCTX (1 << 7)
  ------------------
  |  Branch (265:13): [True: 0, False: 0]
  ------------------
  266|      0|            return EVP_DigestSignUpdate(ctx, data, count);
  267|      0|        if (ctx->pctx->operation == EVP_PKEY_OP_VERIFYCTX)
  ------------------
  |  | 1535|      0|#define EVP_PKEY_OP_VERIFYCTX (1 << 8)
  ------------------
  |  Branch (267:13): [True: 0, False: 0]
  ------------------
  268|      0|            return EVP_DigestVerifyUpdate(ctx, data, count);
  269|      0|#endif
  270|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_UPDATE_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  271|      0|        return 0;
  272|      0|    }
  273|       |
  274|  6.84k|    if (ctx->digest == NULL || ctx->digest->prov == NULL) {
  ------------------
  |  Branch (274:9): [True: 0, False: 6.84k]
  |  Branch (274:32): [True: 0, False: 6.84k]
  ------------------
  275|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_UPDATE_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  276|      0|        return 0;
  277|      0|    }
  278|       |
  279|  6.84k|    if (ossl_unlikely(ctx->digest->dupdate == NULL)) {
  ------------------
  |  |   23|  6.84k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 6.84k]
  |  |  ------------------
  ------------------
  280|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_UPDATE_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  281|      0|        return 0;
  282|      0|    }
  283|  6.84k|    return ctx->digest->dupdate(ctx->algctx, data, count);
  284|  6.84k|}
EVP_DigestFinal_ex:
  297|    684|{
  298|    684|    int ret, sz;
  299|    684|    size_t size = 0;
  300|    684|    size_t mdsize = 0;
  301|       |
  302|    684|    if (ossl_unlikely(ctx->digest == NULL))
  ------------------
  |  |   23|    684|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 684]
  |  |  ------------------
  ------------------
  303|      0|        return 0;
  304|       |
  305|    684|    sz = EVP_MD_CTX_get_size(ctx);
  ------------------
  |  |  482|    684|#define EVP_MD_CTX_get_size(e) EVP_MD_CTX_get_size_ex(e)
  ------------------
  306|    684|    if (ossl_unlikely(sz < 0))
  ------------------
  |  |   23|    684|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 684]
  |  |  ------------------
  ------------------
  307|      0|        return 0;
  308|    684|    mdsize = sz;
  309|    684|    if (ossl_unlikely(ctx->digest->prov == NULL)) {
  ------------------
  |  |   23|    684|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 684]
  |  |  ------------------
  ------------------
  310|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_FINAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  311|      0|        return 0;
  312|      0|    }
  313|       |
  314|    684|    if (ossl_unlikely(ctx->digest->dfinal == NULL)) {
  ------------------
  |  |   23|    684|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 684]
  |  |  ------------------
  ------------------
  315|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_FINAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  316|      0|        return 0;
  317|      0|    }
  318|       |
  319|    684|    if (ossl_unlikely((ctx->flags & EVP_MD_CTX_FLAG_FINALISED) != 0)) {
  ------------------
  |  |   23|    684|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 684]
  |  |  ------------------
  ------------------
  320|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_FINAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  321|      0|        return 0;
  322|      0|    }
  323|       |
  324|    684|    ret = ctx->digest->dfinal(ctx->algctx, md, &size, mdsize);
  325|       |
  326|    684|    ctx->flags |= EVP_MD_CTX_FLAG_FINALISED;
  ------------------
  |  |   33|    684|#define EVP_MD_CTX_FLAG_FINALISED 0x0800
  ------------------
  327|       |
  328|    684|    if (isize != NULL) {
  ------------------
  |  Branch (328:9): [True: 684, False: 0]
  ------------------
  329|    684|        if (ossl_likely(size <= UINT_MAX)) {
  ------------------
  |  |   22|    684|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 684, False: 0]
  |  |  ------------------
  ------------------
  330|    684|            *isize = (unsigned int)size;
  331|    684|        } else {
  332|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_FINAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  333|      0|            ret = 0;
  334|      0|        }
  335|    684|    }
  336|       |
  337|    684|    return ret;
  338|    684|}
EVP_DigestFinalXOF:
  342|  2.05k|{
  343|  2.05k|    int ret = 0;
  344|  2.05k|    OSSL_PARAM params[2];
  345|  2.05k|    size_t i = 0;
  346|       |
  347|  2.05k|    if (ossl_unlikely(ctx->digest == NULL)) {
  ------------------
  |  |   23|  2.05k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 2.05k]
  |  |  ------------------
  ------------------
  348|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_NULL_ALGORITHM);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  349|      0|        return 0;
  350|      0|    }
  351|       |
  352|  2.05k|    if (ossl_unlikely(ctx->digest->prov == NULL)) {
  ------------------
  |  |   23|  2.05k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 2.05k]
  |  |  ------------------
  ------------------
  353|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_FINAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  354|      0|        return 0;
  355|      0|    }
  356|       |
  357|  2.05k|    if (ossl_unlikely(ctx->digest->dfinal == NULL)) {
  ------------------
  |  |   23|  2.05k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 2.05k]
  |  |  ------------------
  ------------------
  358|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_FINAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  359|      0|        return 0;
  360|      0|    }
  361|       |
  362|  2.05k|    if (ossl_unlikely((ctx->flags & EVP_MD_CTX_FLAG_FINALISED) != 0)) {
  ------------------
  |  |   23|  2.05k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 2.05k]
  |  |  ------------------
  ------------------
  363|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_FINAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  364|      0|        return 0;
  365|      0|    }
  366|       |
  367|       |    /*
  368|       |     * For backward compatibility we pass the XOFLEN via a param here so that
  369|       |     * older providers can use the supplied value. Ideally we should have just
  370|       |     * used the size passed into ctx->digest->dfinal().
  371|       |     */
  372|  2.05k|    params[i++] = OSSL_PARAM_construct_size_t(OSSL_DIGEST_PARAM_XOFLEN, &size);
  ------------------
  |  |  236|  2.05k|# define OSSL_DIGEST_PARAM_XOFLEN "xoflen"
  ------------------
  373|  2.05k|    params[i++] = OSSL_PARAM_construct_end();
  374|       |
  375|  2.05k|    if (ossl_likely(EVP_MD_CTX_set_params(ctx, params) >= 0))
  ------------------
  |  |   22|  2.05k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 2.05k, False: 0]
  |  |  ------------------
  ------------------
  376|  2.05k|        ret = ctx->digest->dfinal(ctx->algctx, md, &size, size);
  377|       |
  378|  2.05k|    ctx->flags |= EVP_MD_CTX_FLAG_FINALISED;
  ------------------
  |  |   33|  2.05k|#define EVP_MD_CTX_FLAG_FINALISED 0x0800
  ------------------
  379|       |
  380|  2.05k|    return ret;
  381|  2.05k|}
EVP_DigestSqueeze:
  385|  9.25k|{
  386|  9.25k|    if (ctx->digest == NULL) {
  ------------------
  |  Branch (386:9): [True: 0, False: 9.25k]
  ------------------
  387|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_NULL_ALGORITHM);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  388|      0|        return 0;
  389|      0|    }
  390|       |
  391|  9.25k|    if (ctx->digest->prov == NULL) {
  ------------------
  |  Branch (391:9): [True: 0, False: 9.25k]
  ------------------
  392|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_OPERATION);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  393|      0|        return 0;
  394|      0|    }
  395|       |
  396|  9.25k|    if (ctx->digest->dsqueeze == NULL) {
  ------------------
  |  Branch (396:9): [True: 0, False: 9.25k]
  ------------------
  397|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_METHOD_NOT_SUPPORTED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  398|      0|        return 0;
  399|      0|    }
  400|       |
  401|  9.25k|    return ctx->digest->dsqueeze(ctx->algctx, md, &size, size);
  402|  9.25k|}
EVP_MD_CTX_set_params:
  598|  2.05k|{
  599|  2.05k|    EVP_PKEY_CTX *pctx = ctx->pctx;
  600|       |
  601|       |    /* If we have a pctx then we should try that first */
  602|  2.05k|    if (ossl_unlikely(pctx != NULL)
  ------------------
  |  |   23|  4.10k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 2.05k]
  |  |  ------------------
  ------------------
  603|      0|        && (pctx->operation == EVP_PKEY_OP_VERIFYCTX
  ------------------
  |  | 1535|      0|#define EVP_PKEY_OP_VERIFYCTX (1 << 8)
  ------------------
  |  Branch (603:13): [True: 0, False: 0]
  ------------------
  604|      0|            || pctx->operation == EVP_PKEY_OP_SIGNCTX)
  ------------------
  |  | 1534|      0|#define EVP_PKEY_OP_SIGNCTX (1 << 7)
  ------------------
  |  Branch (604:16): [True: 0, False: 0]
  ------------------
  605|      0|        && pctx->op.sig.algctx != NULL
  ------------------
  |  Branch (605:12): [True: 0, False: 0]
  ------------------
  606|      0|        && pctx->op.sig.signature->set_ctx_md_params != NULL)
  ------------------
  |  Branch (606:12): [True: 0, False: 0]
  ------------------
  607|      0|        return pctx->op.sig.signature->set_ctx_md_params(pctx->op.sig.algctx,
  608|      0|            params);
  609|       |
  610|  2.05k|    if (ossl_likely(ctx->digest != NULL && ctx->digest->set_ctx_params != NULL))
  ------------------
  |  |   22|  4.10k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 2.05k, False: 0]
  |  |  |  Branch (22:44): [True: 2.05k, False: 0]
  |  |  |  Branch (22:44): [True: 2.05k, False: 0]
  |  |  ------------------
  ------------------
  611|  2.05k|        return ctx->digest->set_ctx_params(ctx->algctx, params);
  612|       |
  613|      0|    return 0;
  614|  2.05k|}
EVP_MD_CTX_gettable_params:
  684|    684|{
  685|    684|    EVP_PKEY_CTX *pctx;
  686|    684|    void *provctx;
  687|       |
  688|    684|    if (ossl_unlikely(ctx == NULL))
  ------------------
  |  |   23|    684|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 684]
  |  |  ------------------
  ------------------
  689|      0|        return NULL;
  690|       |
  691|       |    /* If we have a pctx then we should try that first */
  692|    684|    pctx = ctx->pctx;
  693|    684|    if (ossl_unlikely(pctx != NULL)
  ------------------
  |  |   23|  1.36k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 684]
  |  |  ------------------
  ------------------
  694|      0|        && (pctx->operation == EVP_PKEY_OP_VERIFYCTX
  ------------------
  |  | 1535|      0|#define EVP_PKEY_OP_VERIFYCTX (1 << 8)
  ------------------
  |  Branch (694:13): [True: 0, False: 0]
  ------------------
  695|      0|            || pctx->operation == EVP_PKEY_OP_SIGNCTX)
  ------------------
  |  | 1534|      0|#define EVP_PKEY_OP_SIGNCTX (1 << 7)
  ------------------
  |  Branch (695:16): [True: 0, False: 0]
  ------------------
  696|      0|        && pctx->op.sig.signature != NULL
  ------------------
  |  Branch (696:12): [True: 0, False: 0]
  ------------------
  697|      0|        && pctx->op.sig.signature->gettable_ctx_md_params != NULL
  ------------------
  |  Branch (697:12): [True: 0, False: 0]
  ------------------
  698|      0|        && pctx->op.sig.algctx != NULL)
  ------------------
  |  Branch (698:12): [True: 0, False: 0]
  ------------------
  699|      0|        return pctx->op.sig.signature->gettable_ctx_md_params(
  700|      0|            pctx->op.sig.algctx);
  701|       |
  702|    684|    if (ossl_unlikely(ctx->digest != NULL
  ------------------
  |  |   23|  1.36k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 684]
  |  |  |  Branch (23:46): [True: 684, False: 0]
  |  |  |  Branch (23:46): [True: 0, False: 684]
  |  |  ------------------
  ------------------
  703|    684|            && ctx->digest->gettable_ctx_params != NULL)) {
  704|      0|        provctx = ossl_provider_ctx(EVP_MD_get0_provider(ctx->digest));
  705|      0|        return ctx->digest->gettable_ctx_params(ctx->algctx, provctx);
  706|      0|    }
  707|    684|    return NULL;
  708|    684|}
evp_md_new:
  757|     30|{
  758|     30|    EVP_MD *md = OPENSSL_zalloc(sizeof(*md));
  ------------------
  |  |  109|     30|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  759|       |
  760|     30|    if (md != NULL && !CRYPTO_NEW_REF(&md->refcnt, 1)) {
  ------------------
  |  Branch (760:9): [True: 30, False: 0]
  |  Branch (760:23): [True: 0, False: 30]
  ------------------
  761|      0|        OPENSSL_free(md);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  762|      0|        return NULL;
  763|      0|    }
  764|     30|    return md;
  765|     30|}
EVP_MD_fetch:
  984|  7.26k|{
  985|  7.26k|    EVP_MD *md = evp_generic_fetch(ctx, OSSL_OP_DIGEST, algorithm, properties,
  ------------------
  |  |  283|  7.26k|#define OSSL_OP_DIGEST 1
  ------------------
  986|  7.26k|        evp_md_from_algorithm, evp_md_up_ref, evp_md_free);
  987|       |
  988|  7.26k|    return md;
  989|  7.26k|}
EVP_MD_up_ref:
  992|  6.24k|{
  993|  6.24k|    int ref = 0;
  994|       |
  995|  6.24k|    if (md->origin == EVP_ORIG_DYNAMIC)
  ------------------
  |  |  186|  6.24k|#define EVP_ORIG_DYNAMIC 0
  ------------------
  |  Branch (995:9): [True: 6.24k, False: 0]
  ------------------
  996|  6.24k|        CRYPTO_UP_REF(&md->refcnt, &ref);
  997|  6.24k|    return 1;
  998|  6.24k|}
EVP_MD_free:
 1001|  6.57k|{
 1002|  6.57k|    int i;
 1003|       |
 1004|  6.57k|    if (md == NULL || md->origin != EVP_ORIG_DYNAMIC)
  ------------------
  |  |  186|  6.23k|#define EVP_ORIG_DYNAMIC 0
  ------------------
  |  Branch (1004:9): [True: 342, False: 6.23k]
  |  Branch (1004:23): [True: 0, False: 6.23k]
  ------------------
 1005|    342|        return;
 1006|       |
 1007|  6.23k|    CRYPTO_DOWN_REF(&md->refcnt, &i);
 1008|  6.23k|    if (i > 0)
  ------------------
  |  Branch (1008:9): [True: 6.23k, False: 0]
  ------------------
 1009|  6.23k|        return;
 1010|       |
 1011|      0|    OPENSSL_free(md->type_name);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1012|      0|    ossl_provider_free(md->prov);
 1013|      0|    CRYPTO_FREE_REF(&md->refcnt);
 1014|      0|    OPENSSL_free(md);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1015|      0|}
digest.c:evp_md_ctx_reset_ex:
   53|    342|{
   54|    342|    if (ctx == NULL)
  ------------------
  |  Branch (54:9): [True: 0, False: 342]
  ------------------
   55|      0|        return 1;
   56|       |
   57|       |    /*
   58|       |     * pctx should be freed by the user of EVP_MD_CTX
   59|       |     * if EVP_MD_CTX_FLAG_KEEP_PKEY_CTX is set
   60|       |     */
   61|    342|    if (!EVP_MD_CTX_test_flags(ctx, EVP_MD_CTX_FLAG_KEEP_PKEY_CTX)) {
  ------------------
  |  |   32|    342|#define EVP_MD_CTX_FLAG_KEEP_PKEY_CTX 0x0400
  ------------------
  |  Branch (61:9): [True: 342, False: 0]
  ------------------
   62|    342|        EVP_PKEY_CTX_free(ctx->pctx);
   63|    342|        ctx->pctx = NULL;
   64|    342|    }
   65|       |
   66|    342|    evp_md_ctx_clear_digest(ctx, 0, keep_fetched);
   67|    342|    if (!keep_fetched)
  ------------------
  |  Branch (67:9): [True: 342, False: 0]
  ------------------
   68|    342|        OPENSSL_cleanse(ctx, sizeof(*ctx));
   69|       |
   70|    342|    return 1;
   71|    342|}
digest.c:evp_md_init_internal:
  135|  5.81k|{
  136|  5.81k|#if !defined(FIPS_MODULE)
  137|  5.81k|    if (ctx->pctx != NULL
  ------------------
  |  Branch (137:9): [True: 0, False: 5.81k]
  ------------------
  138|      0|        && EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx->pctx)
  ------------------
  |  |  473|  5.81k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_SIG) != 0)
  |  |  ------------------
  |  |  |  | 1547|      0|    (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1531|      0|#define EVP_PKEY_OP_SIGN (1 << 4)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1541|      0|#define EVP_PKEY_OP_SIGNMSG (1 << 14)
  |  |  |  |  ------------------
  |  |  |  | 1548|      0|        | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1532|      0|#define EVP_PKEY_OP_VERIFY (1 << 5)
  |  |  |  |  ------------------
  |  |  |  |                       | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1542|      0|#define EVP_PKEY_OP_VERIFYMSG (1 << 15)
  |  |  |  |  ------------------
  |  |  |  | 1549|      0|        | EVP_PKEY_OP_VERIFYRECOVER                  \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1533|      0|#define EVP_PKEY_OP_VERIFYRECOVER (1 << 6)
  |  |  |  |  ------------------
  |  |  |  | 1550|      0|        | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1534|      0|#define EVP_PKEY_OP_SIGNCTX (1 << 7)
  |  |  |  |  ------------------
  |  |  |  |                       | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1535|      0|#define EVP_PKEY_OP_VERIFYCTX (1 << 8)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (473:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  139|      0|        && ctx->pctx->op.sig.algctx != NULL) {
  ------------------
  |  Branch (139:12): [True: 0, False: 0]
  ------------------
  140|       |        /*
  141|       |         * Prior to OpenSSL 3.0 calling EVP_DigestInit_ex() on an mdctx
  142|       |         * previously initialised with EVP_DigestSignInit() would retain
  143|       |         * information about the key, and re-initialise for another sign
  144|       |         * operation. So in that case we redirect to EVP_DigestSignInit()
  145|       |         */
  146|      0|        if (ctx->pctx->operation == EVP_PKEY_OP_SIGNCTX)
  ------------------
  |  | 1534|      0|#define EVP_PKEY_OP_SIGNCTX (1 << 7)
  ------------------
  |  Branch (146:13): [True: 0, False: 0]
  ------------------
  147|      0|            return EVP_DigestSignInit(ctx, NULL, type, NULL, NULL);
  148|      0|        if (ctx->pctx->operation == EVP_PKEY_OP_VERIFYCTX)
  ------------------
  |  | 1535|      0|#define EVP_PKEY_OP_VERIFYCTX (1 << 8)
  ------------------
  |  Branch (148:13): [True: 0, False: 0]
  ------------------
  149|      0|            return EVP_DigestVerifyInit(ctx, NULL, type, NULL, NULL);
  150|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_UPDATE_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  151|      0|        return 0;
  152|      0|    }
  153|  5.81k|#endif
  154|       |
  155|  5.81k|    EVP_MD_CTX_clear_flags(ctx, EVP_MD_CTX_FLAG_CLEANED | EVP_MD_CTX_FLAG_FINALISED);
  ------------------
  |  |  173|  5.81k|#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|  5.81k|#define EVP_MD_CTX_FLAG_FINALISED 0x0800
  ------------------
  156|       |
  157|  5.81k|    if (type != NULL) {
  ------------------
  |  Branch (157:9): [True: 5.81k, False: 0]
  ------------------
  158|  5.81k|        ctx->reqdigest = type;
  159|  5.81k|    } else {
  160|      0|        if (ossl_unlikely(ctx->digest == NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  161|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_NO_DIGEST_SET);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  162|      0|            return 0;
  163|      0|        }
  164|      0|        type = ctx->digest;
  165|      0|    }
  166|       |
  167|  5.81k|    if (ossl_likely(ctx->digest == type)) {
  ------------------
  |  |   22|  5.81k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 4.44k, False: 1.36k]
  |  |  ------------------
  ------------------
  168|  4.44k|        if (ossl_unlikely(!ossl_assert(type->prov != NULL))) {
  ------------------
  |  |   23|  4.44k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 4.44k]
  |  |  ------------------
  ------------------
  169|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  170|      0|            return 0;
  171|      0|        }
  172|  4.44k|    } else {
  173|  1.36k|        if (!evp_md_ctx_free_algctx(ctx))
  ------------------
  |  Branch (173:13): [True: 0, False: 1.36k]
  ------------------
  174|      0|            return 0;
  175|  1.36k|    }
  176|       |
  177|  5.81k|    if (ossl_unlikely(type->prov == NULL)) {
  ------------------
  |  |   23|  5.81k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 5.81k]
  |  |  ------------------
  ------------------
  178|       |#ifdef FIPS_MODULE
  179|       |        /* We only do explicit fetches inside the FIPS module */
  180|       |        ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  181|       |        return 0;
  182|       |#else
  183|       |        /* The NULL digest is a special case */
  184|      0|        EVP_MD *provmd = EVP_MD_fetch(NULL,
  185|      0|            type->type != NID_undef ? OBJ_nid2sn(type->type)
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  |  Branch (185:13): [True: 0, False: 0]
  ------------------
  186|      0|                                    : "NULL",
  187|      0|            "");
  188|       |
  189|      0|        if (provmd == NULL) {
  ------------------
  |  Branch (189:13): [True: 0, False: 0]
  ------------------
  190|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  191|      0|            return 0;
  192|      0|        }
  193|      0|        type = provmd;
  194|      0|        EVP_MD_free(ctx->fetched_digest);
  195|      0|        ctx->fetched_digest = provmd;
  196|      0|#endif
  197|      0|    }
  198|       |
  199|  5.81k|    if (ossl_unlikely(type->prov != NULL && ctx->fetched_digest != type)) {
  ------------------
  |  |   23|  11.6k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 1.36k, False: 4.44k]
  |  |  |  Branch (23:46): [True: 5.81k, False: 0]
  |  |  |  Branch (23:46): [True: 1.36k, False: 4.44k]
  |  |  ------------------
  ------------------
  200|  1.36k|        if (ossl_unlikely(!EVP_MD_up_ref((EVP_MD *)type))) {
  ------------------
  |  |   23|  1.36k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.36k]
  |  |  ------------------
  ------------------
  201|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  202|      0|            return 0;
  203|      0|        }
  204|  1.36k|        EVP_MD_free(ctx->fetched_digest);
  205|  1.36k|        ctx->fetched_digest = (EVP_MD *)type;
  206|  1.36k|    }
  207|  5.81k|    ctx->digest = type;
  208|  5.81k|    if (ctx->algctx == NULL) {
  ------------------
  |  Branch (208:9): [True: 1.36k, False: 4.44k]
  ------------------
  209|  1.36k|        ctx->algctx = ctx->digest->newctx(ossl_provider_ctx(type->prov));
  210|  1.36k|        if (ctx->algctx == NULL) {
  ------------------
  |  Branch (210:13): [True: 0, False: 1.36k]
  ------------------
  211|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  212|      0|            return 0;
  213|      0|        }
  214|  1.36k|    }
  215|       |
  216|  5.81k|    if (ctx->digest->dinit == NULL) {
  ------------------
  |  Branch (216:9): [True: 0, False: 5.81k]
  ------------------
  217|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  218|      0|        return 0;
  219|      0|    }
  220|       |
  221|  5.81k|    return ctx->digest->dinit(ctx->algctx, params);
  222|  5.81k|}
digest.c:evp_md_from_algorithm:
  833|     30|{
  834|     30|    const OSSL_DISPATCH *fns = algodef->implementation;
  835|     30|    EVP_MD *md = NULL;
  836|     30|    int fncnt = 0;
  837|       |
  838|       |    /* EVP_MD_fetch() will set the legacy NID if available */
  839|     30|    if ((md = evp_md_new()) == NULL) {
  ------------------
  |  Branch (839:9): [True: 0, False: 30]
  ------------------
  840|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_EVP_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  841|      0|        return NULL;
  842|      0|    }
  843|       |
  844|     30|#ifndef FIPS_MODULE
  845|     30|    md->type = NID_undef;
  ------------------
  |  |   18|     30|#define NID_undef                       0
  ------------------
  846|     30|    if (!evp_names_do_all(prov, name_id, set_legacy_nid, &md->type)
  ------------------
  |  Branch (846:9): [True: 0, False: 30]
  ------------------
  847|     30|        || md->type == -1) {
  ------------------
  |  Branch (847:12): [True: 0, False: 30]
  ------------------
  848|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  849|      0|        goto err;
  850|      0|    }
  851|     30|#endif
  852|       |
  853|     30|    md->name_id = name_id;
  854|     30|    if ((md->type_name = ossl_algorithm_get1_first_name(algodef)) == NULL)
  ------------------
  |  Branch (854:9): [True: 0, False: 30]
  ------------------
  855|      0|        goto err;
  856|       |
  857|     30|    md->description = algodef->algorithm_description;
  858|       |
  859|    381|    for (; fns->function_id != 0; fns++) {
  ------------------
  |  Branch (859:12): [True: 351, False: 30]
  ------------------
  860|    351|        switch (fns->function_id) {
  ------------------
  |  Branch (860:17): [True: 351, False: 0]
  ------------------
  861|     30|        case OSSL_FUNC_DIGEST_NEWCTX:
  ------------------
  |  |  303|     30|#define OSSL_FUNC_DIGEST_NEWCTX 1
  ------------------
  |  Branch (861:9): [True: 30, False: 321]
  ------------------
  862|     30|            if (md->newctx == NULL) {
  ------------------
  |  Branch (862:17): [True: 30, False: 0]
  ------------------
  863|     30|                md->newctx = OSSL_FUNC_digest_newctx(fns);
  864|     30|                fncnt++;
  865|     30|            }
  866|     30|            break;
  867|     30|        case OSSL_FUNC_DIGEST_INIT:
  ------------------
  |  |  304|     30|#define OSSL_FUNC_DIGEST_INIT 2
  ------------------
  |  Branch (867:9): [True: 30, False: 321]
  ------------------
  868|     30|            if (md->dinit == NULL) {
  ------------------
  |  Branch (868:17): [True: 30, False: 0]
  ------------------
  869|     30|                md->dinit = OSSL_FUNC_digest_init(fns);
  870|     30|                fncnt++;
  871|     30|            }
  872|     30|            break;
  873|     30|        case OSSL_FUNC_DIGEST_UPDATE:
  ------------------
  |  |  305|     30|#define OSSL_FUNC_DIGEST_UPDATE 3
  ------------------
  |  Branch (873:9): [True: 30, False: 321]
  ------------------
  874|     30|            if (md->dupdate == NULL) {
  ------------------
  |  Branch (874:17): [True: 30, False: 0]
  ------------------
  875|     30|                md->dupdate = OSSL_FUNC_digest_update(fns);
  876|     30|                fncnt++;
  877|     30|            }
  878|     30|            break;
  879|     30|        case OSSL_FUNC_DIGEST_FINAL:
  ------------------
  |  |  306|     30|#define OSSL_FUNC_DIGEST_FINAL 4
  ------------------
  |  Branch (879:9): [True: 30, False: 321]
  ------------------
  880|     30|            if (md->dfinal == NULL) {
  ------------------
  |  Branch (880:17): [True: 30, False: 0]
  ------------------
  881|     30|                md->dfinal = OSSL_FUNC_digest_final(fns);
  882|     30|                fncnt++;
  883|     30|            }
  884|     30|            break;
  885|      6|        case OSSL_FUNC_DIGEST_SQUEEZE:
  ------------------
  |  |  316|      6|#define OSSL_FUNC_DIGEST_SQUEEZE 14
  ------------------
  |  Branch (885:9): [True: 6, False: 345]
  ------------------
  886|      6|            if (md->dsqueeze == NULL) {
  ------------------
  |  Branch (886:17): [True: 6, False: 0]
  ------------------
  887|      6|                md->dsqueeze = OSSL_FUNC_digest_squeeze(fns);
  888|      6|                fncnt++;
  889|      6|            }
  890|      6|            break;
  891|      0|        case OSSL_FUNC_DIGEST_DIGEST:
  ------------------
  |  |  307|      0|#define OSSL_FUNC_DIGEST_DIGEST 5
  ------------------
  |  Branch (891:9): [True: 0, False: 351]
  ------------------
  892|      0|            if (md->digest == NULL)
  ------------------
  |  Branch (892:17): [True: 0, False: 0]
  ------------------
  893|      0|                md->digest = OSSL_FUNC_digest_digest(fns);
  894|       |            /* We don't increment fnct for this as it is stand alone */
  895|      0|            break;
  896|     30|        case OSSL_FUNC_DIGEST_FREECTX:
  ------------------
  |  |  308|     30|#define OSSL_FUNC_DIGEST_FREECTX 6
  ------------------
  |  Branch (896:9): [True: 30, False: 321]
  ------------------
  897|     30|            if (md->freectx == NULL) {
  ------------------
  |  Branch (897:17): [True: 30, False: 0]
  ------------------
  898|     30|                md->freectx = OSSL_FUNC_digest_freectx(fns);
  899|     30|                fncnt++;
  900|     30|            }
  901|     30|            break;
  902|     30|        case OSSL_FUNC_DIGEST_DUPCTX:
  ------------------
  |  |  309|     30|#define OSSL_FUNC_DIGEST_DUPCTX 7
  ------------------
  |  Branch (902:9): [True: 30, False: 321]
  ------------------
  903|     30|            if (md->dupctx == NULL)
  ------------------
  |  Branch (903:17): [True: 30, False: 0]
  ------------------
  904|     30|                md->dupctx = OSSL_FUNC_digest_dupctx(fns);
  905|     30|            break;
  906|     30|        case OSSL_FUNC_DIGEST_GET_PARAMS:
  ------------------
  |  |  310|     30|#define OSSL_FUNC_DIGEST_GET_PARAMS 8
  ------------------
  |  Branch (906:9): [True: 30, False: 321]
  ------------------
  907|     30|            if (md->get_params == NULL)
  ------------------
  |  Branch (907:17): [True: 30, False: 0]
  ------------------
  908|     30|                md->get_params = OSSL_FUNC_digest_get_params(fns);
  909|     30|            break;
  910|     11|        case OSSL_FUNC_DIGEST_SET_CTX_PARAMS:
  ------------------
  |  |  311|     11|#define OSSL_FUNC_DIGEST_SET_CTX_PARAMS 9
  ------------------
  |  Branch (910:9): [True: 11, False: 340]
  ------------------
  911|     11|            if (md->set_ctx_params == NULL)
  ------------------
  |  Branch (911:17): [True: 11, False: 0]
  ------------------
  912|     11|                md->set_ctx_params = OSSL_FUNC_digest_set_ctx_params(fns);
  913|     11|            break;
  914|      9|        case OSSL_FUNC_DIGEST_GET_CTX_PARAMS:
  ------------------
  |  |  312|      9|#define OSSL_FUNC_DIGEST_GET_CTX_PARAMS 10
  ------------------
  |  Branch (914:9): [True: 9, False: 342]
  ------------------
  915|      9|            if (md->get_ctx_params == NULL)
  ------------------
  |  Branch (915:17): [True: 9, False: 0]
  ------------------
  916|      9|                md->get_ctx_params = OSSL_FUNC_digest_get_ctx_params(fns);
  917|      9|            break;
  918|     30|        case OSSL_FUNC_DIGEST_GETTABLE_PARAMS:
  ------------------
  |  |  313|     30|#define OSSL_FUNC_DIGEST_GETTABLE_PARAMS 11
  ------------------
  |  Branch (918:9): [True: 30, False: 321]
  ------------------
  919|     30|            if (md->gettable_params == NULL)
  ------------------
  |  Branch (919:17): [True: 30, False: 0]
  ------------------
  920|     30|                md->gettable_params = OSSL_FUNC_digest_gettable_params(fns);
  921|     30|            break;
  922|     11|        case OSSL_FUNC_DIGEST_SETTABLE_CTX_PARAMS:
  ------------------
  |  |  314|     11|#define OSSL_FUNC_DIGEST_SETTABLE_CTX_PARAMS 12
  ------------------
  |  Branch (922:9): [True: 11, False: 340]
  ------------------
  923|     11|            if (md->settable_ctx_params == NULL)
  ------------------
  |  Branch (923:17): [True: 11, False: 0]
  ------------------
  924|     11|                md->settable_ctx_params = OSSL_FUNC_digest_settable_ctx_params(fns);
  925|     11|            break;
  926|      9|        case OSSL_FUNC_DIGEST_GETTABLE_CTX_PARAMS:
  ------------------
  |  |  315|      9|#define OSSL_FUNC_DIGEST_GETTABLE_CTX_PARAMS 13
  ------------------
  |  Branch (926:9): [True: 9, False: 342]
  ------------------
  927|      9|            if (md->gettable_ctx_params == NULL)
  ------------------
  |  Branch (927:17): [True: 9, False: 0]
  ------------------
  928|      9|                md->gettable_ctx_params = OSSL_FUNC_digest_gettable_ctx_params(fns);
  929|      9|            break;
  930|     27|        case OSSL_FUNC_DIGEST_COPYCTX:
  ------------------
  |  |  317|     27|#define OSSL_FUNC_DIGEST_COPYCTX 15
  ------------------
  |  Branch (930:9): [True: 27, False: 324]
  ------------------
  931|     27|            if (md->copyctx == NULL)
  ------------------
  |  Branch (931:17): [True: 27, False: 0]
  ------------------
  932|     27|                md->copyctx = OSSL_FUNC_digest_copyctx(fns);
  933|     27|            break;
  934|     19|        case OSSL_FUNC_DIGEST_SERIALIZE:
  ------------------
  |  |  318|     19|#define OSSL_FUNC_DIGEST_SERIALIZE 16
  ------------------
  |  Branch (934:9): [True: 19, False: 332]
  ------------------
  935|     19|            if (md->serialize == NULL)
  ------------------
  |  Branch (935:17): [True: 19, False: 0]
  ------------------
  936|     19|                md->serialize = OSSL_FUNC_digest_serialize(fns);
  937|     19|            break;
  938|     19|        case OSSL_FUNC_DIGEST_DESERIALIZE:
  ------------------
  |  |  319|     19|#define OSSL_FUNC_DIGEST_DESERIALIZE 17
  ------------------
  |  Branch (938:9): [True: 19, False: 332]
  ------------------
  939|     19|            if (md->deserialize == NULL)
  ------------------
  |  Branch (939:17): [True: 19, False: 0]
  ------------------
  940|     19|                md->deserialize = OSSL_FUNC_digest_deserialize(fns);
  941|     19|            break;
  942|    351|        }
  943|    351|    }
  944|     30|    if ((fncnt != 0 && fncnt != 5 && fncnt != 6)
  ------------------
  |  Branch (944:10): [True: 30, False: 0]
  |  Branch (944:24): [True: 6, False: 24]
  |  Branch (944:38): [True: 0, False: 6]
  ------------------
  945|     30|        || (fncnt == 0 && md->digest == NULL)) {
  ------------------
  |  Branch (945:13): [True: 0, False: 30]
  |  Branch (945:27): [True: 0, False: 0]
  ------------------
  946|       |        /*
  947|       |         * In order to be a consistent set of functions we either need the
  948|       |         * whole set of init/update/final etc functions or none of them.
  949|       |         * The "digest" function can standalone. We at least need one way to
  950|       |         * generate digests.
  951|       |         */
  952|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  953|      0|        goto err;
  954|      0|    }
  955|     30|    if (prov != NULL && !ossl_provider_up_ref(prov))
  ------------------
  |  Branch (955:9): [True: 30, False: 0]
  |  Branch (955:25): [True: 0, False: 30]
  ------------------
  956|      0|        goto err;
  957|       |
  958|     30|    md->prov = prov;
  959|       |
  960|     30|    if (!evp_md_cache_constants(md)) {
  ------------------
  |  Branch (960:9): [True: 0, False: 30]
  ------------------
  961|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_CACHE_CONSTANTS_FAILED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  962|      0|        goto err;
  963|      0|    }
  964|       |
  965|     30|    return md;
  966|       |
  967|      0|err:
  968|      0|    EVP_MD_free(md);
  969|       |    return NULL;
  970|     30|}
digest.c:set_legacy_nid:
  774|     78|{
  775|     78|    int nid;
  776|     78|    int *legacy_nid = vlegacy_nid;
  777|       |    /*
  778|       |     * We use lowest level function to get the associated method, because
  779|       |     * higher level functions such as EVP_get_digestbyname() have changed
  780|       |     * to look at providers too.
  781|       |     */
  782|     78|    const void *legacy_method = OBJ_NAME_get(name, OBJ_NAME_TYPE_MD_METH);
  ------------------
  |  |   25|     78|#define OBJ_NAME_TYPE_MD_METH 0x01
  ------------------
  783|       |
  784|     78|    if (*legacy_nid == -1) /* We found a clash already */
  ------------------
  |  Branch (784:9): [True: 0, False: 78]
  ------------------
  785|      0|        return;
  786|       |
  787|     78|    if (legacy_method == NULL)
  ------------------
  |  Branch (787:9): [True: 55, False: 23]
  ------------------
  788|     55|        return;
  789|     23|    nid = EVP_MD_nid(legacy_method);
  ------------------
  |  |  453|     23|#define EVP_MD_nid EVP_MD_get_type
  ------------------
  790|     23|    if (*legacy_nid != NID_undef && *legacy_nid != nid) {
  ------------------
  |  |   18|     46|#define NID_undef                       0
  ------------------
  |  Branch (790:9): [True: 4, False: 19]
  |  Branch (790:37): [True: 0, False: 4]
  ------------------
  791|      0|        *legacy_nid = -1;
  792|      0|        return;
  793|      0|    }
  794|     23|    *legacy_nid = nid;
  795|     23|}
digest.c:evp_md_cache_constants:
  799|     30|{
  800|     30|    int ok, xof = 0, algid_absent = 0;
  801|     30|    size_t blksz = 0;
  802|     30|    size_t mdsize = 0;
  803|     30|    OSSL_PARAM params[5];
  804|       |
  805|       |    /*
  806|       |     * Note that these parameters are 'constants' that are only set up
  807|       |     * during the EVP_MD_fetch(). For this reason the XOF functions set the
  808|       |     * md_size to 0, since the output size is unknown.
  809|       |     */
  810|     30|    params[0] = OSSL_PARAM_construct_size_t(OSSL_DIGEST_PARAM_BLOCK_SIZE, &blksz);
  ------------------
  |  |  223|     30|# define OSSL_DIGEST_PARAM_BLOCK_SIZE "blocksize"
  ------------------
  811|     30|    params[1] = OSSL_PARAM_construct_size_t(OSSL_DIGEST_PARAM_SIZE, &mdsize);
  ------------------
  |  |  233|     30|# define OSSL_DIGEST_PARAM_SIZE "size"
  ------------------
  812|     30|    params[2] = OSSL_PARAM_construct_int(OSSL_DIGEST_PARAM_XOF, &xof);
  ------------------
  |  |  235|     30|# define OSSL_DIGEST_PARAM_XOF "xof"
  ------------------
  813|     30|    params[3] = OSSL_PARAM_construct_int(OSSL_DIGEST_PARAM_ALGID_ABSENT,
  ------------------
  |  |  222|     30|# define OSSL_DIGEST_PARAM_ALGID_ABSENT "algid-absent"
  ------------------
  814|     30|        &algid_absent);
  815|     30|    params[4] = OSSL_PARAM_construct_end();
  816|     30|    ok = evp_do_md_getparams(md, params) > 0;
  817|     30|    if (mdsize > INT_MAX || blksz > INT_MAX)
  ------------------
  |  Branch (817:9): [True: 0, False: 30]
  |  Branch (817:29): [True: 0, False: 30]
  ------------------
  818|      0|        ok = 0;
  819|     30|    if (ok) {
  ------------------
  |  Branch (819:9): [True: 30, False: 0]
  ------------------
  820|     30|        md->block_size = (int)blksz;
  821|     30|        md->md_size = (int)mdsize;
  822|     30|        if (xof)
  ------------------
  |  Branch (822:13): [True: 6, False: 24]
  ------------------
  823|      6|            md->flags |= EVP_MD_FLAG_XOF;
  ------------------
  |  |  135|      6|#define EVP_MD_FLAG_XOF 0x0002
  ------------------
  824|     30|        if (algid_absent)
  ------------------
  |  Branch (824:13): [True: 21, False: 9]
  ------------------
  825|     21|            md->flags |= EVP_MD_FLAG_DIGALGID_ABSENT;
  ------------------
  |  |  147|     21|#define EVP_MD_FLAG_DIGALGID_ABSENT 0x0008
  ------------------
  826|     30|    }
  827|     30|    return ok;
  828|     30|}
digest.c:evp_md_up_ref:
  973|  4.88k|{
  974|  4.88k|    return EVP_MD_up_ref(md);
  975|  4.88k|}
digest.c:evp_md_free:
  978|     30|{
  979|     30|    EVP_MD_free(md);
  980|     30|}

EVP_aes_128_cbc:
   22|      2|    {                                                                                 \
   23|      2|        return &aes_##keylen##_##mode;                                                \
   24|      2|    }
EVP_aes_128_ecb:
   22|      2|    {                                                                                 \
   23|      2|        return &aes_##keylen##_##mode;                                                \
   24|      2|    }
EVP_aes_128_ofb:
   22|      2|    {                                                                                 \
   23|      2|        return &aes_##keylen##_##mode;                                                \
   24|      2|    }
EVP_aes_128_cfb128:
   22|      2|    {                                                                                 \
   23|      2|        return &aes_##keylen##_##mode;                                                \
   24|      2|    }
EVP_aes_128_cfb1:
   22|      2|    {                                                                                 \
   23|      2|        return &aes_##keylen##_##mode;                                                \
   24|      2|    }
EVP_aes_128_cfb8:
   22|      2|    {                                                                                 \
   23|      2|        return &aes_##keylen##_##mode;                                                \
   24|      2|    }
EVP_aes_128_ctr:
   22|      2|    {                                                                                 \
   23|      2|        return &aes_##keylen##_##mode;                                                \
   24|      2|    }
EVP_aes_192_cbc:
   22|      2|    {                                                                                 \
   23|      2|        return &aes_##keylen##_##mode;                                                \
   24|      2|    }
EVP_aes_192_ecb:
   22|      2|    {                                                                                 \
   23|      2|        return &aes_##keylen##_##mode;                                                \
   24|      2|    }
EVP_aes_192_ofb:
   22|      2|    {                                                                                 \
   23|      2|        return &aes_##keylen##_##mode;                                                \
   24|      2|    }
EVP_aes_192_cfb128:
   22|      2|    {                                                                                 \
   23|      2|        return &aes_##keylen##_##mode;                                                \
   24|      2|    }
EVP_aes_192_cfb1:
   22|      2|    {                                                                                 \
   23|      2|        return &aes_##keylen##_##mode;                                                \
   24|      2|    }
EVP_aes_192_cfb8:
   22|      2|    {                                                                                 \
   23|      2|        return &aes_##keylen##_##mode;                                                \
   24|      2|    }
EVP_aes_192_ctr:
   22|      2|    {                                                                                 \
   23|      2|        return &aes_##keylen##_##mode;                                                \
   24|      2|    }
EVP_aes_256_cbc:
   22|      2|    {                                                                                 \
   23|      2|        return &aes_##keylen##_##mode;                                                \
   24|      2|    }
EVP_aes_256_ecb:
   22|      2|    {                                                                                 \
   23|      2|        return &aes_##keylen##_##mode;                                                \
   24|      2|    }
EVP_aes_256_ofb:
   22|      2|    {                                                                                 \
   23|      2|        return &aes_##keylen##_##mode;                                                \
   24|      2|    }
EVP_aes_256_cfb128:
   22|      2|    {                                                                                 \
   23|      2|        return &aes_##keylen##_##mode;                                                \
   24|      2|    }
EVP_aes_256_cfb1:
   22|      2|    {                                                                                 \
   23|      2|        return &aes_##keylen##_##mode;                                                \
   24|      2|    }
EVP_aes_256_cfb8:
   22|      2|    {                                                                                 \
   23|      2|        return &aes_##keylen##_##mode;                                                \
   24|      2|    }
EVP_aes_256_ctr:
   22|      2|    {                                                                                 \
   23|      2|        return &aes_##keylen##_##mode;                                                \
   24|      2|    }
EVP_aes_128_gcm:
   36|      2|    {                                                                                                                      \
   37|      2|        return &aes_##keylen##_##mode;                                                                                     \
   38|      2|    }
EVP_aes_192_gcm:
   36|      2|    {                                                                                                                      \
   37|      2|        return &aes_##keylen##_##mode;                                                                                     \
   38|      2|    }
EVP_aes_256_gcm:
   36|      2|    {                                                                                                                      \
   37|      2|        return &aes_##keylen##_##mode;                                                                                     \
   38|      2|    }
EVP_aes_128_xts:
   36|      2|    {                                                                                                                      \
   37|      2|        return &aes_##keylen##_##mode;                                                                                     \
   38|      2|    }
EVP_aes_256_xts:
   36|      2|    {                                                                                                                      \
   37|      2|        return &aes_##keylen##_##mode;                                                                                     \
   38|      2|    }
EVP_aes_128_ccm:
   36|      2|    {                                                                                                                      \
   37|      2|        return &aes_##keylen##_##mode;                                                                                     \
   38|      2|    }
EVP_aes_192_ccm:
   36|      2|    {                                                                                                                      \
   37|      2|        return &aes_##keylen##_##mode;                                                                                     \
   38|      2|    }
EVP_aes_256_ccm:
   36|      2|    {                                                                                                                      \
   37|      2|        return &aes_##keylen##_##mode;                                                                                     \
   38|      2|    }
EVP_aes_128_wrap:
   89|      2|{
   90|      2|    return &aes_128_wrap;
   91|      2|}
EVP_aes_192_wrap:
   99|      2|{
  100|      2|    return &aes_192_wrap;
  101|      2|}
EVP_aes_256_wrap:
  109|      2|{
  110|      2|    return &aes_256_wrap;
  111|      2|}
EVP_aes_128_wrap_pad:
  119|      2|{
  120|      2|    return &aes_128_wrap_pad;
  121|      2|}
EVP_aes_192_wrap_pad:
  129|      2|{
  130|      2|    return &aes_192_wrap_pad;
  131|      2|}
EVP_aes_256_wrap_pad:
  139|      2|{
  140|      2|    return &aes_256_wrap_pad;
  141|      2|}
EVP_aes_128_ocb:
   36|      2|    {                                                                                                                      \
   37|      2|        return &aes_##keylen##_##mode;                                                                                     \
   38|      2|    }
EVP_aes_192_ocb:
   36|      2|    {                                                                                                                      \
   37|      2|        return &aes_##keylen##_##mode;                                                                                     \
   38|      2|    }
EVP_aes_256_ocb:
   36|      2|    {                                                                                                                      \
   37|      2|        return &aes_##keylen##_##mode;                                                                                     \
   38|      2|    }

EVP_aes_128_cbc_hmac_sha1:
   41|      2|{
   42|      2|    return (OPENSSL_ia32cap_P[1] & AESNI_CAPABLE ? &aesni_128_cbc_hmac_sha1_cipher : NULL);
  ------------------
  |  |   16|      2|#define AESNI_CAPABLE (1 << (57 - 32))
  ------------------
  |  Branch (42:13): [True: 2, False: 0]
  ------------------
   43|      2|}
EVP_aes_256_cbc_hmac_sha1:
   46|      2|{
   47|      2|    return (OPENSSL_ia32cap_P[1] & AESNI_CAPABLE ? &aesni_256_cbc_hmac_sha1_cipher : NULL);
  ------------------
  |  |   16|      2|#define AESNI_CAPABLE (1 << (57 - 32))
  ------------------
  |  Branch (47:13): [True: 2, False: 0]
  ------------------
   48|      2|}

EVP_aes_128_cbc_hmac_sha256:
   53|      2|{
   54|      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);
  ------------------
  |  |   24|      2|#define AESNI_CAPABLE (1 << (57 - 32))
  ------------------
  |  Branch (54:13): [True: 2, False: 0]
  |  Branch (54:55): [True: 2, False: 0]
  ------------------
   55|      2|}
EVP_aes_256_cbc_hmac_sha256:
   58|      2|{
   59|      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);
  ------------------
  |  |   24|      2|#define AESNI_CAPABLE (1 << (57 - 32))
  ------------------
  |  Branch (59:13): [True: 2, False: 0]
  |  Branch (59:55): [True: 2, False: 0]
  ------------------
   60|      2|}

EVP_aria_128_ctr:
   42|      2|    {                                                                                 \
   43|      2|        return &aria_##keylen##_##mode;                                               \
   44|      2|    }
EVP_aria_192_ctr:
   42|      2|    {                                                                                 \
   43|      2|        return &aria_##keylen##_##mode;                                               \
   44|      2|    }
EVP_aria_256_ctr:
   42|      2|    {                                                                                 \
   43|      2|        return &aria_##keylen##_##mode;                                               \
   44|      2|    }
EVP_aria_128_gcm:
   64|      2|    {                                                  \
   65|      2|        return (EVP_CIPHER *)&aria_##keylen##_##mode;  \
   66|      2|    }
EVP_aria_192_gcm:
   64|      2|    {                                                  \
   65|      2|        return (EVP_CIPHER *)&aria_##keylen##_##mode;  \
   66|      2|    }
EVP_aria_256_gcm:
   64|      2|    {                                                  \
   65|      2|        return (EVP_CIPHER *)&aria_##keylen##_##mode;  \
   66|      2|    }
EVP_aria_128_ccm:
   64|      2|    {                                                  \
   65|      2|        return (EVP_CIPHER *)&aria_##keylen##_##mode;  \
   66|      2|    }
EVP_aria_192_ccm:
   64|      2|    {                                                  \
   65|      2|        return (EVP_CIPHER *)&aria_##keylen##_##mode;  \
   66|      2|    }
EVP_aria_256_ccm:
   64|      2|    {                                                  \
   65|      2|        return (EVP_CIPHER *)&aria_##keylen##_##mode;  \
   66|      2|    }

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

EVP_chacha20:
   27|      2|{
   28|      2|    return &chacha20;
   29|      2|}
EVP_chacha20_poly1305:
   43|      2|{
   44|      2|    return (&chacha20_poly1305);
   45|      2|}

EVP_des_ede:
   28|      2|{
   29|      2|    return &des_ede_ecb;
   30|      2|}
EVP_des_ede3:
   33|      2|{
   34|      2|    return &des_ede3_ecb;
   35|      2|}
EVP_des_ede3_wrap:
   46|      2|{
   47|      2|    return &des3_wrap;
   48|      2|}

EVP_rc2_64_cbc:
   35|      2|{
   36|      2|    return &r2_64_cbc_cipher;
   37|      2|}
EVP_rc2_40_cbc:
   40|      2|{
   41|      2|    return &r2_40_cbc_cipher;
   42|      2|}

EVP_rc4:
   30|      2|{
   31|      2|    return &r4_cipher;
   32|      2|}
EVP_rc4_40:
   35|      2|{
   36|      2|    return &r4_40_cipher;
   37|      2|}

EVP_rc4_hmac_md5:
   27|      2|{
   28|      2|    return &r4_hmac_md5_cipher;
   29|      2|}

EVP_sm4_cbc:
   24|      2|    {                                                                         \
   25|      2|        return &sm4_##mode;                                                   \
   26|      2|    }
EVP_sm4_ecb:
   24|      2|    {                                                                         \
   25|      2|        return &sm4_##mode;                                                   \
   26|      2|    }
EVP_sm4_ofb:
   24|      2|    {                                                                         \
   25|      2|        return &sm4_##mode;                                                   \
   26|      2|    }
EVP_sm4_cfb128:
   24|      2|    {                                                                         \
   25|      2|        return &sm4_##mode;                                                   \
   26|      2|    }
EVP_sm4_ctr:
   24|      2|    {                                                                         \
   25|      2|        return &sm4_##mode;                                                   \
   26|      2|    }

EVP_desx_cbc:
   23|      2|{
   24|      2|    return &d_xcbc_cipher;
   25|      2|}

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

EVP_ENCODE_CTX_new:
  111|  41.3k|{
  112|  41.3k|    return OPENSSL_zalloc(sizeof(EVP_ENCODE_CTX));
  ------------------
  |  |  109|  41.3k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  113|  41.3k|}
EVP_ENCODE_CTX_free:
  116|  41.7k|{
  117|  41.7k|    OPENSSL_free(ctx);
  ------------------
  |  |  132|  41.7k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  118|  41.7k|}
EVP_DecodeInit:
  259|  41.3k|{
  260|       |    /* Only ctx->num and ctx->flags are used during decoding. */
  261|  41.3k|    ctx->num = 0;
  262|  41.3k|    ctx->line_num = 0;
  263|  41.3k|    ctx->flags = 0;
  264|  41.3k|}
EVP_DecodeUpdate:
  288|  41.3k|{
  289|  41.3k|    int seof = 0, eof = 0, rv = -1, ret = 0, i, v, tmp, n, decoded_len;
  290|  41.3k|    unsigned char *d;
  291|  41.3k|    const unsigned char *table;
  292|       |
  293|  41.3k|    n = ctx->num;
  294|  41.3k|    d = ctx->enc_data;
  295|       |
  296|  41.3k|    if (n > 0 && d[n - 1] == '=') {
  ------------------
  |  Branch (296:9): [True: 0, False: 41.3k]
  |  Branch (296:18): [True: 0, False: 0]
  ------------------
  297|      0|        eof++;
  298|      0|        if (n > 1 && d[n - 2] == '=')
  ------------------
  |  Branch (298:13): [True: 0, False: 0]
  |  Branch (298:22): [True: 0, False: 0]
  ------------------
  299|      0|            eof++;
  300|      0|    }
  301|       |
  302|       |    /* Legacy behaviour: an empty input chunk signals end of input. */
  303|  41.3k|    if (inl == 0) {
  ------------------
  |  Branch (303:9): [True: 0, False: 41.3k]
  ------------------
  304|      0|        rv = 0;
  305|      0|        goto end;
  306|      0|    }
  307|       |
  308|  41.3k|    if ((ctx->flags & EVP_ENCODE_CTX_USE_SRP_ALPHABET) != 0)
  ------------------
  |  |  627|  41.3k|#define EVP_ENCODE_CTX_USE_SRP_ALPHABET 2
  ------------------
  |  Branch (308:9): [True: 0, False: 41.3k]
  ------------------
  309|      0|        table = srpdata_ascii2bin;
  310|  41.3k|    else
  311|  41.3k|        table = data_ascii2bin;
  312|       |
  313|  60.0M|    for (i = 0; i < inl; i++) {
  ------------------
  |  Branch (313:17): [True: 60.0M, False: 41.3k]
  ------------------
  314|  60.0M|        tmp = *(in++);
  315|  60.0M|        v = conv_ascii2bin(tmp, table);
  316|  60.0M|        if (v == B64_ERROR) {
  ------------------
  |  |   57|  60.0M|#define B64_ERROR 0xFF
  ------------------
  |  Branch (316:13): [True: 0, False: 60.0M]
  ------------------
  317|      0|            rv = -1;
  318|      0|            goto end;
  319|      0|        }
  320|       |
  321|  60.0M|        if (tmp == '=') {
  ------------------
  |  Branch (321:13): [True: 31.8k, False: 60.0M]
  ------------------
  322|  31.8k|            eof++;
  323|  60.0M|        } else if (eof > 0 && B64_BASE64(v)) {
  ------------------
  |  |   59|  22.5k|#define B64_BASE64(a) (!B64_NOT_BASE64(a))
  |  |  ------------------
  |  |  |  |   58|  22.5k|#define B64_NOT_BASE64(a) (((a) | 0x13) == 0xF3)
  |  |  ------------------
  |  |  |  Branch (59:23): [True: 0, False: 22.5k]
  |  |  ------------------
  ------------------
  |  Branch (323:20): [True: 22.5k, False: 60.0M]
  ------------------
  324|       |            /* More data after padding. */
  325|      0|            rv = -1;
  326|      0|            goto end;
  327|      0|        }
  328|       |
  329|  60.0M|        if (eof > 2) {
  ------------------
  |  Branch (329:13): [True: 0, False: 60.0M]
  ------------------
  330|      0|            rv = -1;
  331|      0|            goto end;
  332|      0|        }
  333|       |
  334|  60.0M|        if (v == B64_EOF) {
  ------------------
  |  |   55|  60.0M|#define B64_EOF 0xF2
  ------------------
  |  Branch (334:13): [True: 0, False: 60.0M]
  ------------------
  335|      0|            seof = 1;
  336|      0|            goto tail;
  337|      0|        }
  338|       |
  339|       |        /* Only save valid base64 characters. */
  340|  60.0M|        if (B64_BASE64(v)) {
  ------------------
  |  |   59|  60.0M|#define B64_BASE64(a) (!B64_NOT_BASE64(a))
  |  |  ------------------
  |  |  |  |   58|  60.0M|#define B64_NOT_BASE64(a) (((a) | 0x13) == 0xF3)
  |  |  ------------------
  |  |  |  Branch (59:23): [True: 59.1M, False: 943k]
  |  |  ------------------
  ------------------
  341|  59.1M|            if (n >= 64) {
  ------------------
  |  Branch (341:17): [True: 0, False: 59.1M]
  ------------------
  342|       |                /*
  343|       |                 * We increment n once per loop, and empty the buffer as soon as
  344|       |                 * we reach 64 characters, so this can only happen if someone's
  345|       |                 * manually messed with the ctx. Refuse to write any more data.
  346|       |                 */
  347|      0|                rv = -1;
  348|      0|                goto end;
  349|      0|            }
  350|  59.1M|            OPENSSL_assert(n < (int)sizeof(ctx->enc_data));
  ------------------
  |  |  477|  59.1M|    (void)((e) ? 0 : (OPENSSL_die("assertion failed: " #e, OPENSSL_FILE, OPENSSL_LINE), 1))
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   (void)((e) ? 0 : (OPENSSL_die("assertion failed: " #e, OPENSSL_FILE, OPENSSL_LINE), 1))
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |  |  Branch (477:12): [True: 59.1M, False: 0]
  |  |  ------------------
  ------------------
  351|  59.1M|            d[n++] = tmp;
  352|  59.1M|        }
  353|       |
  354|  60.0M|        if (n == 64) {
  ------------------
  |  Branch (354:13): [True: 904k, False: 59.1M]
  ------------------
  355|   904k|            decoded_len = evp_decodeblock_int(ctx, out, d, n, eof);
  356|   904k|            n = 0;
  357|   904k|            if (decoded_len < 0 || (decoded_len == 0 && eof > 0)) {
  ------------------
  |  Branch (357:17): [True: 0, False: 904k]
  |  Branch (357:37): [True: 0, False: 904k]
  |  Branch (357:57): [True: 0, False: 0]
  ------------------
  358|      0|                rv = -1;
  359|      0|                goto end;
  360|      0|            }
  361|   904k|            ret += decoded_len;
  362|   904k|            out += decoded_len;
  363|   904k|        }
  364|  60.0M|    }
  365|       |
  366|       |    /*
  367|       |     * Legacy behaviour: if the current line is a full base64-block (i.e., has
  368|       |     * 0 mod 4 base64 characters), it is processed immediately. We keep this
  369|       |     * behaviour as applications may not be calling EVP_DecodeFinal properly.
  370|       |     */
  371|  41.3k|tail:
  372|  41.3k|    if (n > 0) {
  ------------------
  |  Branch (372:9): [True: 38.6k, False: 2.73k]
  ------------------
  373|  38.6k|        if ((n & 3) == 0) {
  ------------------
  |  Branch (373:13): [True: 38.6k, False: 0]
  ------------------
  374|  38.6k|            decoded_len = evp_decodeblock_int(ctx, out, d, n, eof);
  375|  38.6k|            n = 0;
  376|  38.6k|            if (decoded_len < 0 || (decoded_len == 0 && eof > 0)) {
  ------------------
  |  Branch (376:17): [True: 0, False: 38.6k]
  |  Branch (376:37): [True: 0, False: 38.6k]
  |  Branch (376:57): [True: 0, False: 0]
  ------------------
  377|      0|                rv = -1;
  378|      0|                goto end;
  379|      0|            }
  380|  38.6k|            ret += decoded_len;
  381|  38.6k|        } else if (seof) {
  ------------------
  |  Branch (381:20): [True: 0, False: 0]
  ------------------
  382|       |            /* EOF in the middle of a base64 block. */
  383|      0|            rv = -1;
  384|      0|            goto end;
  385|      0|        }
  386|  38.6k|    }
  387|       |
  388|  41.3k|    rv = seof || (n == 0 && eof) ? 0 : 1;
  ------------------
  |  Branch (388:10): [True: 0, False: 41.3k]
  |  Branch (388:19): [True: 41.3k, False: 0]
  |  Branch (388:29): [True: 22.5k, False: 18.8k]
  ------------------
  389|  41.3k|end:
  390|       |    /* Legacy behaviour. This should probably rather be zeroed on error. */
  391|  41.3k|    *outl = ret;
  392|  41.3k|    ctx->num = n;
  393|  41.3k|    return rv;
  394|  41.3k|}
EVP_DecodeFinal:
  482|  41.3k|{
  483|  41.3k|    int i;
  484|       |
  485|  41.3k|    *outl = 0;
  486|  41.3k|    if (ctx->num != 0) {
  ------------------
  |  Branch (486:9): [True: 0, False: 41.3k]
  ------------------
  487|      0|        i = evp_decodeblock_int(ctx, out, ctx->enc_data, ctx->num, -1);
  488|      0|        if (i < 0)
  ------------------
  |  Branch (488:13): [True: 0, False: 0]
  ------------------
  489|      0|            return -1;
  490|      0|        ctx->num = 0;
  491|      0|        *outl = i;
  492|      0|        return 1;
  493|      0|    } else
  494|  41.3k|        return 1;
  495|  41.3k|}
encode.c:conv_ascii2bin:
   95|   121M|{
   96|   121M|    if (a & 0x80)
  ------------------
  |  Branch (96:9): [True: 0, False: 121M]
  ------------------
   97|      0|        return B64_ERROR;
  ------------------
  |  |   57|      0|#define B64_ERROR 0xFF
  ------------------
   98|   121M|    return table[a];
   99|   121M|}
encode.c:evp_decodeblock_int:
  399|   943k|{
  400|   943k|    int i, ret = 0, a, b, c, d;
  401|   943k|    unsigned long l;
  402|   943k|    const unsigned char *table;
  403|       |
  404|   943k|    if (eof < -1 || eof > 2)
  ------------------
  |  Branch (404:9): [True: 0, False: 943k]
  |  Branch (404:21): [True: 0, False: 943k]
  ------------------
  405|      0|        return -1;
  406|       |
  407|   943k|    if (ctx != NULL && (ctx->flags & EVP_ENCODE_CTX_USE_SRP_ALPHABET) != 0)
  ------------------
  |  |  627|   943k|#define EVP_ENCODE_CTX_USE_SRP_ALPHABET 2
  ------------------
  |  Branch (407:9): [True: 943k, False: 0]
  |  Branch (407:24): [True: 0, False: 943k]
  ------------------
  408|      0|        table = srpdata_ascii2bin;
  409|   943k|    else
  410|   943k|        table = data_ascii2bin;
  411|       |
  412|       |    /* trim whitespace from the start of the line. */
  413|   943k|    while ((n > 0) && (conv_ascii2bin(*f, table) == B64_WS)) {
  ------------------
  |  |   56|   943k|#define B64_WS 0xE0
  ------------------
  |  Branch (413:12): [True: 943k, False: 0]
  |  Branch (413:23): [True: 0, False: 943k]
  ------------------
  414|      0|        f++;
  415|      0|        n--;
  416|      0|    }
  417|       |
  418|       |    /*
  419|       |     * strip off stuff at the end of the line ascii2bin values B64_WS,
  420|       |     * B64_EOLN, B64_EOLN and B64_EOF
  421|       |     */
  422|   943k|    while ((n > 3) && (B64_NOT_BASE64(conv_ascii2bin(f[n - 1], table))))
  ------------------
  |  |   58|   943k|#define B64_NOT_BASE64(a) (((a) | 0x13) == 0xF3)
  ------------------
  |  Branch (422:12): [True: 943k, False: 0]
  |  Branch (422:23): [True: 0, False: 943k]
  ------------------
  423|      0|        n--;
  424|       |
  425|   943k|    if (n % 4 != 0)
  ------------------
  |  Branch (425:9): [True: 0, False: 943k]
  ------------------
  426|      0|        return -1;
  427|   943k|    if (n == 0)
  ------------------
  |  Branch (427:9): [True: 0, False: 943k]
  ------------------
  428|      0|        return 0;
  429|       |
  430|       |    /* all 4-byte blocks except the last one do not have padding. */
  431|  14.7M|    for (i = 0; i < n - 4; i += 4) {
  ------------------
  |  Branch (431:17): [True: 13.8M, False: 943k]
  ------------------
  432|  13.8M|        a = conv_ascii2bin(*(f++), table);
  433|  13.8M|        b = conv_ascii2bin(*(f++), table);
  434|  13.8M|        c = conv_ascii2bin(*(f++), table);
  435|  13.8M|        d = conv_ascii2bin(*(f++), table);
  436|  13.8M|        if ((a | b | c | d) & 0x80)
  ------------------
  |  Branch (436:13): [True: 0, False: 13.8M]
  ------------------
  437|      0|            return -1;
  438|  13.8M|        l = ((((unsigned long)a) << 18L) | (((unsigned long)b) << 12L) | (((unsigned long)c) << 6L) | (((unsigned long)d)));
  439|  13.8M|        *(t++) = (unsigned char)(l >> 16L) & 0xff;
  440|  13.8M|        *(t++) = (unsigned char)(l >> 8L) & 0xff;
  441|  13.8M|        *(t++) = (unsigned char)(l) & 0xff;
  442|  13.8M|        ret += 3;
  443|  13.8M|    }
  444|       |
  445|       |    /* process the last block that may have padding. */
  446|   943k|    a = conv_ascii2bin(*(f++), table);
  447|   943k|    b = conv_ascii2bin(*(f++), table);
  448|   943k|    c = conv_ascii2bin(*(f++), table);
  449|   943k|    d = conv_ascii2bin(*(f++), table);
  450|   943k|    if ((a | b | c | d) & 0x80)
  ------------------
  |  Branch (450:9): [True: 0, False: 943k]
  ------------------
  451|      0|        return -1;
  452|   943k|    l = ((((unsigned long)a) << 18L) | (((unsigned long)b) << 12L) | (((unsigned long)c) << 6L) | (((unsigned long)d)));
  453|       |
  454|   943k|    if (eof == -1)
  ------------------
  |  Branch (454:9): [True: 0, False: 943k]
  ------------------
  455|      0|        eof = (c == '=') + (d == '=');
  456|       |
  457|   943k|    switch (eof) {
  ------------------
  |  Branch (457:13): [True: 943k, False: 0]
  ------------------
  458|  9.23k|    case 2:
  ------------------
  |  Branch (458:5): [True: 9.23k, False: 934k]
  ------------------
  459|  9.23k|        *t = (unsigned char)(l >> 16L) & 0xff;
  460|  9.23k|        break;
  461|  13.3k|    case 1:
  ------------------
  |  Branch (461:5): [True: 13.3k, False: 929k]
  ------------------
  462|  13.3k|        *(t++) = (unsigned char)(l >> 16L) & 0xff;
  463|  13.3k|        *t = (unsigned char)(l >> 8L) & 0xff;
  464|  13.3k|        break;
  465|   920k|    case 0:
  ------------------
  |  Branch (465:5): [True: 920k, False: 22.5k]
  ------------------
  466|   920k|        *(t++) = (unsigned char)(l >> 16L) & 0xff;
  467|   920k|        *(t++) = (unsigned char)(l >> 8L) & 0xff;
  468|   920k|        *t = (unsigned char)(l) & 0xff;
  469|   920k|        break;
  470|   943k|    }
  471|   943k|    ret += 3 - eof;
  472|       |
  473|   943k|    return ret;
  474|   943k|}

EVP_CIPHER_CTX_new:
   50|      9|{
   51|      9|    EVP_CIPHER_CTX *ctx;
   52|       |
   53|      9|    ctx = OPENSSL_zalloc(sizeof(EVP_CIPHER_CTX));
  ------------------
  |  |  109|      9|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   54|      9|    if (ctx == NULL)
  ------------------
  |  Branch (54:9): [True: 0, False: 9]
  ------------------
   55|      0|        return NULL;
   56|       |
   57|      9|    ctx->iv_len = -1;
   58|      9|    return ctx;
   59|      9|}
EVP_CIPHER_CTX_free:
   62|  2.07k|{
   63|  2.07k|    if (ctx == NULL)
  ------------------
  |  Branch (63:9): [True: 2.07k, False: 0]
  ------------------
   64|  2.07k|        return;
   65|      0|    EVP_CIPHER_CTX_reset(ctx);
   66|      0|    OPENSSL_free(ctx);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   67|      0|}
EVP_CipherInit_ex:
  411|  33.4k|{
  412|  33.4k|    if (!ossl_assert(impl == NULL))
  ------------------
  |  |   52|  33.4k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  33.4k|    __FILE__, __LINE__)
  ------------------
  |  Branch (412:9): [True: 0, False: 33.4k]
  ------------------
  413|      0|        return 0;
  414|  33.4k|    return evp_cipher_init_internal(ctx, cipher, key, iv, enc, 0, NULL);
  415|  33.4k|}
EVP_CipherUpdate:
  479|  22.4k|{
  480|  22.4k|    if (ctx->encrypt)
  ------------------
  |  Branch (480:9): [True: 22.4k, False: 0]
  ------------------
  481|  22.4k|        return EVP_EncryptUpdate(ctx, out, outl, in, inl);
  482|      0|    else
  483|      0|        return EVP_DecryptUpdate(ctx, out, outl, in, inl);
  484|  22.4k|}
EVP_EncryptUpdate:
  652|  22.4k|{
  653|  22.4k|    int ret;
  654|  22.4k|    size_t soutl, inl_ = (size_t)inl;
  655|  22.4k|    int blocksize;
  656|       |
  657|  22.4k|    if (inl < 0) {
  ------------------
  |  Branch (657:9): [True: 0, False: 22.4k]
  ------------------
  658|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_LENGTH);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  659|      0|        return 0;
  660|      0|    }
  661|       |
  662|  22.4k|    if (ossl_likely(outl != NULL)) {
  ------------------
  |  |   22|  22.4k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 22.4k, False: 0]
  |  |  ------------------
  ------------------
  663|  22.4k|        *outl = 0;
  664|  22.4k|    } else {
  665|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  666|      0|        return 0;
  667|      0|    }
  668|       |
  669|       |    /* Prevent accidental use of decryption context when encrypting */
  670|  22.4k|    if (ossl_unlikely(!ctx->encrypt)) {
  ------------------
  |  |   23|  22.4k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 22.4k]
  |  |  ------------------
  ------------------
  671|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_OPERATION);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  672|      0|        return 0;
  673|      0|    }
  674|       |
  675|  22.4k|    if (ossl_unlikely(ctx->cipher == NULL)) {
  ------------------
  |  |   23|  22.4k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 22.4k]
  |  |  ------------------
  ------------------
  676|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_NO_CIPHER_SET);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  677|      0|        return 0;
  678|      0|    }
  679|       |
  680|  22.4k|    if (ossl_unlikely(ctx->cipher->prov == NULL))
  ------------------
  |  |   23|  22.4k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 22.4k]
  |  |  ------------------
  ------------------
  681|      0|        return 0;
  682|       |
  683|  22.4k|    blocksize = ctx->cipher->block_size;
  684|       |
  685|  22.4k|    if (ossl_unlikely(ctx->cipher->cupdate == NULL || blocksize < 1)) {
  ------------------
  |  |   23|  44.8k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 22.4k]
  |  |  |  Branch (23:46): [True: 0, False: 22.4k]
  |  |  |  Branch (23:46): [True: 0, False: 22.4k]
  |  |  ------------------
  ------------------
  686|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_UPDATE_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  687|      0|        return 0;
  688|      0|    }
  689|       |
  690|  22.4k|    ret = ctx->cipher->cupdate(ctx->algctx, out, &soutl,
  691|  22.4k|        inl_ + (size_t)(blocksize == 1 ? 0 : blocksize),
  ------------------
  |  Branch (691:25): [True: 11.1k, False: 11.3k]
  ------------------
  692|  22.4k|        in, inl_);
  693|       |
  694|  22.4k|    if (ossl_likely(ret)) {
  ------------------
  |  |   22|  22.4k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 22.4k, False: 0]
  |  |  ------------------
  ------------------
  695|  22.4k|        if (ossl_unlikely(soutl > INT_MAX)) {
  ------------------
  |  |   23|  22.4k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 22.4k]
  |  |  ------------------
  ------------------
  696|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_UPDATE_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  697|      0|            return 0;
  698|      0|        }
  699|  22.4k|        *outl = (int)soutl;
  700|  22.4k|    }
  701|       |
  702|  22.4k|    return ret;
  703|  22.4k|}
EVP_CIPHER_get_params:
 1130|  5.55k|{
 1131|  5.55k|    if (cipher != NULL && cipher->get_params != NULL)
  ------------------
  |  Branch (1131:9): [True: 5.55k, False: 0]
  |  Branch (1131:27): [True: 5.55k, False: 0]
  ------------------
 1132|  5.55k|        return cipher->get_params(params);
 1133|      0|    return 0;
 1134|  5.55k|}
EVP_CIPHER_gettable_ctx_params:
 1188|    130|{
 1189|    130|    void *provctx;
 1190|       |
 1191|    130|    if (cipher != NULL && cipher->gettable_ctx_params != NULL) {
  ------------------
  |  Branch (1191:9): [True: 130, False: 0]
  |  Branch (1191:27): [True: 130, False: 0]
  ------------------
 1192|    130|        provctx = ossl_provider_ctx(EVP_CIPHER_get0_provider(cipher));
 1193|    130|        return cipher->gettable_ctx_params(NULL, provctx);
 1194|    130|    }
 1195|      0|    return NULL;
 1196|    130|}
evp_cipher_new:
 1302|    130|{
 1303|    130|    EVP_CIPHER *cipher = OPENSSL_zalloc(sizeof(EVP_CIPHER));
  ------------------
  |  |  109|    130|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1304|       |
 1305|    130|    if (cipher != NULL && !CRYPTO_NEW_REF(&cipher->refcnt, 1)) {
  ------------------
  |  Branch (1305:9): [True: 130, False: 0]
  |  Branch (1305:27): [True: 0, False: 130]
  ------------------
 1306|      0|        OPENSSL_free(cipher);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1307|      0|        return NULL;
 1308|      0|    }
 1309|    130|    return cipher;
 1310|    130|}
EVP_CIPHER_fetch:
 1530|  8.67k|{
 1531|  8.67k|    EVP_CIPHER *cipher = evp_generic_fetch(ctx, OSSL_OP_CIPHER, algorithm, properties,
  ------------------
  |  |  284|  8.67k|#define OSSL_OP_CIPHER 2 /* Symmetric Ciphers */
  ------------------
 1532|  8.67k|        evp_cipher_from_algorithm, evp_cipher_up_ref,
 1533|  8.67k|        evp_cipher_free);
 1534|       |
 1535|  8.67k|    return cipher;
 1536|  8.67k|}
evp_cipher_fetch_from_prov:
 1541|      6|{
 1542|      6|    return evp_generic_fetch_from_prov(prov, OSSL_OP_CIPHER,
  ------------------
  |  |  284|      6|#define OSSL_OP_CIPHER 2 /* Symmetric Ciphers */
  ------------------
 1543|      6|        algorithm, properties,
 1544|      6|        evp_cipher_from_algorithm,
 1545|      6|        evp_cipher_up_ref,
 1546|      6|        evp_cipher_free);
 1547|      6|}
EVP_CIPHER_up_ref:
 1559|  5.71k|{
 1560|  5.71k|    int ref = 0;
 1561|       |
 1562|  5.71k|    if (cipher->origin == EVP_ORIG_DYNAMIC)
  ------------------
  |  |  186|  5.71k|#define EVP_ORIG_DYNAMIC 0
  ------------------
  |  Branch (1562:9): [True: 5.71k, False: 0]
  ------------------
 1563|  5.71k|        CRYPTO_UP_REF(&cipher->refcnt, &ref);
 1564|  5.71k|    return 1;
 1565|  5.71k|}
EVP_CIPHER_free:
 1576|  5.69k|{
 1577|  5.69k|    int i;
 1578|       |
 1579|  5.69k|    if (cipher == NULL || cipher->origin != EVP_ORIG_DYNAMIC)
  ------------------
  |  |  186|  5.68k|#define EVP_ORIG_DYNAMIC 0
  ------------------
  |  Branch (1579:9): [True: 15, False: 5.68k]
  |  Branch (1579:27): [True: 0, False: 5.68k]
  ------------------
 1580|     15|        return;
 1581|       |
 1582|  5.68k|    CRYPTO_DOWN_REF(&cipher->refcnt, &i);
 1583|  5.68k|    if (i > 0)
  ------------------
  |  Branch (1583:9): [True: 5.68k, False: 0]
  ------------------
 1584|  5.68k|        return;
 1585|      0|    evp_cipher_free_int(cipher);
 1586|      0|}
evp_enc.c:evp_cipher_init_internal:
   75|  33.4k|{
   76|       |    /*
   77|       |     * enc == 1 means we are encrypting.
   78|       |     * enc == 0 means we are decrypting.
   79|       |     * enc == -1 means, use the previously initialised value for encrypt/decrypt
   80|       |     */
   81|  33.4k|    if (enc == -1) {
  ------------------
  |  Branch (81:9): [True: 33.4k, False: 9]
  ------------------
   82|  33.4k|        enc = ctx->encrypt;
   83|  33.4k|    } else {
   84|      9|        if (enc)
  ------------------
  |  Branch (84:13): [True: 9, False: 0]
  ------------------
   85|      9|            enc = 1;
   86|      9|        ctx->encrypt = enc;
   87|      9|    }
   88|       |
   89|  33.4k|    if (cipher == NULL && ctx->cipher == NULL) {
  ------------------
  |  Branch (89:9): [True: 33.4k, False: 9]
  |  Branch (89:27): [True: 0, False: 33.4k]
  ------------------
   90|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_NO_CIPHER_SET);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   91|      0|        return 0;
   92|      0|    }
   93|       |
   94|       |    /* Ensure a context left lying around from last time is cleared */
   95|  33.4k|    if (cipher != NULL && ctx->cipher != NULL) {
  ------------------
  |  Branch (95:9): [True: 9, False: 33.4k]
  |  Branch (95:27): [True: 0, False: 9]
  ------------------
   96|      0|        unsigned long flags = ctx->flags;
   97|       |
   98|      0|        EVP_CIPHER_CTX_reset(ctx);
   99|       |        /* Restore encrypt and flags */
  100|      0|        ctx->encrypt = enc;
  101|      0|        ctx->flags = flags;
  102|      0|    }
  103|       |
  104|  33.4k|    if (cipher == NULL)
  ------------------
  |  Branch (104:9): [True: 33.4k, False: 9]
  ------------------
  105|  33.4k|        cipher = ctx->cipher;
  106|       |
  107|  33.4k|    if (cipher->prov == NULL) {
  ------------------
  |  Branch (107:9): [True: 0, False: 33.4k]
  ------------------
  108|       |#ifdef FIPS_MODULE
  109|       |        /* We only do explicit fetches inside the FIPS module */
  110|       |        ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  111|       |        return 0;
  112|       |#else
  113|      0|        EVP_CIPHER *provciph = EVP_CIPHER_fetch(NULL,
  114|      0|            cipher->nid == NID_undef ? "NULL"
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  |  Branch (114:13): [True: 0, False: 0]
  ------------------
  115|      0|                                     : OBJ_nid2sn(cipher->nid),
  116|      0|            "");
  117|       |
  118|      0|        if (provciph == NULL)
  ------------------
  |  Branch (118:13): [True: 0, False: 0]
  ------------------
  119|      0|            return 0;
  120|      0|        cipher = provciph;
  121|      0|        EVP_CIPHER_free(ctx->fetched_cipher);
  122|      0|        ctx->fetched_cipher = provciph;
  123|      0|#endif
  124|      0|    }
  125|       |
  126|  33.4k|    if (!ossl_assert(cipher->prov != NULL)) {
  ------------------
  |  |   52|  33.4k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  33.4k|    __FILE__, __LINE__)
  ------------------
  |  Branch (126:9): [True: 0, False: 33.4k]
  ------------------
  127|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  128|      0|        return 0;
  129|      0|    }
  130|       |
  131|  33.4k|    if (cipher != ctx->fetched_cipher) {
  ------------------
  |  Branch (131:9): [True: 9, False: 33.4k]
  ------------------
  132|      9|        if (!EVP_CIPHER_up_ref((EVP_CIPHER *)cipher)) {
  ------------------
  |  Branch (132:13): [True: 0, False: 9]
  ------------------
  133|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  134|      0|            return 0;
  135|      0|        }
  136|      9|        EVP_CIPHER_free(ctx->fetched_cipher);
  137|       |        /* Coverity false positive, the reference counting is confusing it */
  138|       |        /* coverity[use_after_free] */
  139|      9|        ctx->fetched_cipher = (EVP_CIPHER *)cipher;
  140|      9|    }
  141|  33.4k|    ctx->cipher = cipher;
  142|       |
  143|  33.4k|    if (is_pipeline && !EVP_CIPHER_can_pipeline(cipher, enc)) {
  ------------------
  |  Branch (143:9): [True: 0, False: 33.4k]
  |  Branch (143:24): [True: 0, False: 0]
  ------------------
  144|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_PIPELINE_NOT_SUPPORTED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  145|      0|        return 0;
  146|      0|    }
  147|       |
  148|  33.4k|    if (ctx->algctx == NULL) {
  ------------------
  |  Branch (148:9): [True: 9, False: 33.4k]
  ------------------
  149|      9|        ctx->algctx = ctx->cipher->newctx(ossl_provider_ctx(cipher->prov));
  150|      9|        if (ctx->algctx == NULL) {
  ------------------
  |  Branch (150:13): [True: 0, False: 9]
  ------------------
  151|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  152|      0|            return 0;
  153|      0|        }
  154|      9|    }
  155|       |
  156|  33.4k|    if ((ctx->flags & EVP_CIPH_NO_PADDING) != 0) {
  ------------------
  |  |  234|  33.4k|#define EVP_CIPH_NO_PADDING 0x100
  ------------------
  |  Branch (156:9): [True: 0, False: 33.4k]
  ------------------
  157|       |        /*
  158|       |         * If this ctx was already set up for no padding then we need to tell
  159|       |         * the new cipher about it.
  160|       |         */
  161|      0|        if (!EVP_CIPHER_CTX_set_padding(ctx, 0))
  ------------------
  |  Branch (161:13): [True: 0, False: 0]
  ------------------
  162|      0|            return 0;
  163|      0|    }
  164|       |
  165|  33.4k|#ifndef FIPS_MODULE
  166|       |    /*
  167|       |     * Fix for CVE-2023-5363
  168|       |     * Passing in a size as part of the init call takes effect late
  169|       |     * so, force such to occur before the initialisation.
  170|       |     *
  171|       |     * The FIPS provider's internal library context is used in a manner
  172|       |     * such that this is not an issue.
  173|       |     */
  174|  33.4k|    if (params != NULL) {
  ------------------
  |  Branch (174:9): [True: 0, False: 33.4k]
  ------------------
  175|      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 }
  ------------------
  176|      0|            OSSL_PARAM_END };
  ------------------
  |  |   25|      0|    { NULL, 0, NULL, 0, 0 }
  ------------------
  177|      0|        OSSL_PARAM *q = param_lens;
  178|      0|        const OSSL_PARAM *p;
  179|       |
  180|      0|        p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_KEYLEN);
  ------------------
  |  |  197|      0|# define OSSL_CIPHER_PARAM_KEYLEN "keylen"
  ------------------
  181|      0|        if (p != NULL)
  ------------------
  |  Branch (181:13): [True: 0, False: 0]
  ------------------
  182|      0|            memcpy(q++, p, sizeof(*q));
  183|       |
  184|       |        /*
  185|       |         * Note that OSSL_CIPHER_PARAM_AEAD_IVLEN is a synonym for
  186|       |         * OSSL_CIPHER_PARAM_IVLEN so both are covered here.
  187|       |         */
  188|      0|        p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_IVLEN);
  ------------------
  |  |  196|      0|# define OSSL_CIPHER_PARAM_IVLEN "ivlen"
  ------------------
  189|      0|        if (p != NULL)
  ------------------
  |  Branch (189:13): [True: 0, False: 0]
  ------------------
  190|      0|            memcpy(q++, p, sizeof(*q));
  191|       |
  192|      0|        if (q != param_lens) {
  ------------------
  |  Branch (192:13): [True: 0, False: 0]
  ------------------
  193|      0|            if (!EVP_CIPHER_CTX_set_params(ctx, param_lens)) {
  ------------------
  |  Branch (193:17): [True: 0, False: 0]
  ------------------
  194|      0|                ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_LENGTH);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  195|      0|                return 0;
  196|      0|            }
  197|      0|        }
  198|      0|    }
  199|  33.4k|#endif
  200|       |
  201|  33.4k|    if (is_pipeline)
  ------------------
  |  Branch (201:9): [True: 0, False: 33.4k]
  ------------------
  202|      0|        return 1;
  203|       |
  204|  33.4k|    if (enc) {
  ------------------
  |  Branch (204:9): [True: 33.4k, False: 0]
  ------------------
  205|  33.4k|        if (ctx->cipher->einit == NULL) {
  ------------------
  |  Branch (205:13): [True: 0, False: 33.4k]
  ------------------
  206|       |            /*
  207|       |             * We still should be able to set the IV using the new API
  208|       |             * if the key is not specified and old API is not available
  209|       |             */
  210|      0|            if (key == NULL && ctx->cipher->einit_skey != NULL) {
  ------------------
  |  Branch (210:17): [True: 0, False: 0]
  |  Branch (210:32): [True: 0, False: 0]
  ------------------
  211|      0|                return ctx->cipher->einit_skey(ctx->algctx, NULL,
  212|      0|                    iv,
  213|      0|                    iv == NULL ? 0
  ------------------
  |  Branch (213:21): [True: 0, False: 0]
  ------------------
  214|      0|                               : EVP_CIPHER_CTX_get_iv_length(ctx),
  215|      0|                    params);
  216|      0|            }
  217|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  218|      0|            return 0;
  219|      0|        }
  220|       |
  221|  33.4k|        return ctx->cipher->einit(ctx->algctx,
  222|  33.4k|            key,
  223|  33.4k|            key == NULL ? 0
  ------------------
  |  Branch (223:13): [True: 11.1k, False: 22.3k]
  ------------------
  224|  33.4k|                        : EVP_CIPHER_CTX_get_key_length(ctx),
  225|  33.4k|            iv,
  226|  33.4k|            iv == NULL ? 0
  ------------------
  |  Branch (226:13): [True: 22.3k, False: 11.1k]
  ------------------
  227|  33.4k|                       : EVP_CIPHER_CTX_get_iv_length(ctx),
  228|  33.4k|            params);
  229|  33.4k|    }
  230|       |
  231|      0|    if (ctx->cipher->dinit == NULL) {
  ------------------
  |  Branch (231:9): [True: 0, False: 0]
  ------------------
  232|       |        /*
  233|       |         * We still should be able to set the IV using the new API
  234|       |         * if the key is not specified and old API is not available
  235|       |         */
  236|      0|        if (key == NULL && ctx->cipher->dinit_skey != NULL) {
  ------------------
  |  Branch (236:13): [True: 0, False: 0]
  |  Branch (236:28): [True: 0, False: 0]
  ------------------
  237|      0|            return ctx->cipher->dinit_skey(ctx->algctx, NULL,
  238|      0|                iv,
  239|      0|                iv == NULL ? 0
  ------------------
  |  Branch (239:17): [True: 0, False: 0]
  ------------------
  240|      0|                           : EVP_CIPHER_CTX_get_iv_length(ctx),
  241|      0|                params);
  242|      0|        }
  243|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  244|      0|        return 0;
  245|      0|    }
  246|       |
  247|      0|    return ctx->cipher->dinit(ctx->algctx,
  248|      0|        key,
  249|      0|        key == NULL ? 0
  ------------------
  |  Branch (249:9): [True: 0, False: 0]
  ------------------
  250|      0|                    : EVP_CIPHER_CTX_get_key_length(ctx),
  251|      0|        iv,
  252|      0|        iv == NULL ? 0
  ------------------
  |  Branch (252:9): [True: 0, False: 0]
  ------------------
  253|      0|                   : EVP_CIPHER_CTX_get_iv_length(ctx),
  254|      0|        params);
  255|      0|}
evp_enc.c:evp_cipher_from_algorithm:
 1346|    130|{
 1347|    130|    const OSSL_DISPATCH *fns = algodef->implementation;
 1348|    130|    EVP_CIPHER *cipher = NULL;
 1349|    130|    int fnciphcnt = 0, encinit = 0, decinit = 0, fnpipecnt = 0, fnctxcnt = 0;
 1350|       |
 1351|    130|    if ((cipher = evp_cipher_new()) == NULL) {
  ------------------
  |  Branch (1351:9): [True: 0, False: 130]
  ------------------
 1352|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_EVP_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1353|      0|        return NULL;
 1354|      0|    }
 1355|       |
 1356|    130|#ifndef FIPS_MODULE
 1357|    130|    cipher->nid = NID_undef;
  ------------------
  |  |   18|    130|#define NID_undef                       0
  ------------------
 1358|    130|    if (!evp_names_do_all(prov, name_id, set_legacy_nid, &cipher->nid)
  ------------------
  |  Branch (1358:9): [True: 0, False: 130]
  ------------------
 1359|    130|        || cipher->nid == -1) {
  ------------------
  |  Branch (1359:12): [True: 0, False: 130]
  ------------------
 1360|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1361|      0|        goto err;
 1362|      0|    }
 1363|    130|#endif
 1364|       |
 1365|    130|    cipher->name_id = name_id;
 1366|    130|    if ((cipher->type_name = ossl_algorithm_get1_first_name(algodef)) == NULL)
  ------------------
  |  Branch (1366:9): [True: 0, False: 130]
  ------------------
 1367|      0|        goto err;
 1368|       |
 1369|    130|    cipher->description = algodef->algorithm_description;
 1370|       |
 1371|  2.07k|    for (; fns->function_id != 0; fns++) {
  ------------------
  |  Branch (1371:12): [True: 1.94k, False: 130]
  ------------------
 1372|  1.94k|        switch (fns->function_id) {
  ------------------
  |  Branch (1372:17): [True: 1.94k, False: 0]
  ------------------
 1373|    130|        case OSSL_FUNC_CIPHER_NEWCTX:
  ------------------
  |  |  357|    130|#define OSSL_FUNC_CIPHER_NEWCTX 1
  ------------------
  |  Branch (1373:9): [True: 130, False: 1.81k]
  ------------------
 1374|    130|            if (cipher->newctx != NULL)
  ------------------
  |  Branch (1374:17): [True: 0, False: 130]
  ------------------
 1375|      0|                break;
 1376|    130|            cipher->newctx = OSSL_FUNC_cipher_newctx(fns);
 1377|    130|            fnctxcnt++;
 1378|    130|            break;
 1379|    130|        case OSSL_FUNC_CIPHER_ENCRYPT_INIT:
  ------------------
  |  |  358|    130|#define OSSL_FUNC_CIPHER_ENCRYPT_INIT 2
  ------------------
  |  Branch (1379:9): [True: 130, False: 1.81k]
  ------------------
 1380|    130|            if (cipher->einit != NULL)
  ------------------
  |  Branch (1380:17): [True: 0, False: 130]
  ------------------
 1381|      0|                break;
 1382|    130|            cipher->einit = OSSL_FUNC_cipher_encrypt_init(fns);
 1383|    130|            encinit = 1;
 1384|    130|            break;
 1385|    130|        case OSSL_FUNC_CIPHER_DECRYPT_INIT:
  ------------------
  |  |  359|    130|#define OSSL_FUNC_CIPHER_DECRYPT_INIT 3
  ------------------
  |  Branch (1385:9): [True: 130, False: 1.81k]
  ------------------
 1386|    130|            if (cipher->dinit != NULL)
  ------------------
  |  Branch (1386:17): [True: 0, False: 130]
  ------------------
 1387|      0|                break;
 1388|    130|            cipher->dinit = OSSL_FUNC_cipher_decrypt_init(fns);
 1389|    130|            decinit = 1;
 1390|    130|            break;
 1391|     68|        case OSSL_FUNC_CIPHER_ENCRYPT_SKEY_INIT:
  ------------------
  |  |  375|     68|#define OSSL_FUNC_CIPHER_ENCRYPT_SKEY_INIT 19
  ------------------
  |  Branch (1391:9): [True: 68, False: 1.87k]
  ------------------
 1392|     68|            if (cipher->einit_skey != NULL)
  ------------------
  |  Branch (1392:17): [True: 0, False: 68]
  ------------------
 1393|      0|                break;
 1394|     68|            cipher->einit_skey = OSSL_FUNC_cipher_encrypt_skey_init(fns);
 1395|     68|            encinit = 1;
 1396|     68|            break;
 1397|     68|        case OSSL_FUNC_CIPHER_DECRYPT_SKEY_INIT:
  ------------------
  |  |  376|     68|#define OSSL_FUNC_CIPHER_DECRYPT_SKEY_INIT 20
  ------------------
  |  Branch (1397:9): [True: 68, False: 1.87k]
  ------------------
 1398|     68|            if (cipher->dinit_skey != NULL)
  ------------------
  |  Branch (1398:17): [True: 0, False: 68]
  ------------------
 1399|      0|                break;
 1400|     68|            cipher->dinit_skey = OSSL_FUNC_cipher_decrypt_skey_init(fns);
 1401|     68|            decinit = 1;
 1402|     68|            break;
 1403|    130|        case OSSL_FUNC_CIPHER_UPDATE:
  ------------------
  |  |  360|    130|#define OSSL_FUNC_CIPHER_UPDATE 4
  ------------------
  |  Branch (1403:9): [True: 130, False: 1.81k]
  ------------------
 1404|    130|            if (cipher->cupdate != NULL)
  ------------------
  |  Branch (1404:17): [True: 0, False: 130]
  ------------------
 1405|      0|                break;
 1406|    130|            cipher->cupdate = OSSL_FUNC_cipher_update(fns);
 1407|    130|            fnciphcnt++;
 1408|    130|            break;
 1409|    130|        case OSSL_FUNC_CIPHER_FINAL:
  ------------------
  |  |  361|    130|#define OSSL_FUNC_CIPHER_FINAL 5
  ------------------
  |  Branch (1409:9): [True: 130, False: 1.81k]
  ------------------
 1410|    130|            if (cipher->cfinal != NULL)
  ------------------
  |  Branch (1410:17): [True: 0, False: 130]
  ------------------
 1411|      0|                break;
 1412|    130|            cipher->cfinal = OSSL_FUNC_cipher_final(fns);
 1413|    130|            fnciphcnt++;
 1414|    130|            break;
 1415|    118|        case OSSL_FUNC_CIPHER_CIPHER:
  ------------------
  |  |  362|    118|#define OSSL_FUNC_CIPHER_CIPHER 6
  ------------------
  |  Branch (1415:9): [True: 118, False: 1.82k]
  ------------------
 1416|    118|            if (cipher->ccipher != NULL)
  ------------------
  |  Branch (1416:17): [True: 0, False: 118]
  ------------------
 1417|      0|                break;
 1418|    118|            cipher->ccipher = OSSL_FUNC_cipher_cipher(fns);
 1419|    118|            break;
 1420|      0|        case OSSL_FUNC_CIPHER_PIPELINE_ENCRYPT_INIT:
  ------------------
  |  |  371|      0|#define OSSL_FUNC_CIPHER_PIPELINE_ENCRYPT_INIT 15
  ------------------
  |  Branch (1420:9): [True: 0, False: 1.94k]
  ------------------
 1421|      0|            if (cipher->p_einit != NULL)
  ------------------
  |  Branch (1421:17): [True: 0, False: 0]
  ------------------
 1422|      0|                break;
 1423|      0|            cipher->p_einit = OSSL_FUNC_cipher_pipeline_encrypt_init(fns);
 1424|      0|            fnpipecnt++;
 1425|      0|            break;
 1426|      0|        case OSSL_FUNC_CIPHER_PIPELINE_DECRYPT_INIT:
  ------------------
  |  |  372|      0|#define OSSL_FUNC_CIPHER_PIPELINE_DECRYPT_INIT 16
  ------------------
  |  Branch (1426:9): [True: 0, False: 1.94k]
  ------------------
 1427|      0|            if (cipher->p_dinit != NULL)
  ------------------
  |  Branch (1427:17): [True: 0, False: 0]
  ------------------
 1428|      0|                break;
 1429|      0|            cipher->p_dinit = OSSL_FUNC_cipher_pipeline_decrypt_init(fns);
 1430|      0|            fnpipecnt++;
 1431|      0|            break;
 1432|      0|        case OSSL_FUNC_CIPHER_PIPELINE_UPDATE:
  ------------------
  |  |  373|      0|#define OSSL_FUNC_CIPHER_PIPELINE_UPDATE 17
  ------------------
  |  Branch (1432:9): [True: 0, False: 1.94k]
  ------------------
 1433|      0|            if (cipher->p_cupdate != NULL)
  ------------------
  |  Branch (1433:17): [True: 0, False: 0]
  ------------------
 1434|      0|                break;
 1435|      0|            cipher->p_cupdate = OSSL_FUNC_cipher_pipeline_update(fns);
 1436|      0|            fnpipecnt++;
 1437|      0|            break;
 1438|      0|        case OSSL_FUNC_CIPHER_PIPELINE_FINAL:
  ------------------
  |  |  374|      0|#define OSSL_FUNC_CIPHER_PIPELINE_FINAL 18
  ------------------
  |  Branch (1438:9): [True: 0, False: 1.94k]
  ------------------
 1439|      0|            if (cipher->p_cfinal != NULL)
  ------------------
  |  Branch (1439:17): [True: 0, False: 0]
  ------------------
 1440|      0|                break;
 1441|      0|            cipher->p_cfinal = OSSL_FUNC_cipher_pipeline_final(fns);
 1442|      0|            fnpipecnt++;
 1443|      0|            break;
 1444|    130|        case OSSL_FUNC_CIPHER_FREECTX:
  ------------------
  |  |  363|    130|#define OSSL_FUNC_CIPHER_FREECTX 7
  ------------------
  |  Branch (1444:9): [True: 130, False: 1.81k]
  ------------------
 1445|    130|            if (cipher->freectx != NULL)
  ------------------
  |  Branch (1445:17): [True: 0, False: 130]
  ------------------
 1446|      0|                break;
 1447|    130|            cipher->freectx = OSSL_FUNC_cipher_freectx(fns);
 1448|    130|            fnctxcnt++;
 1449|    130|            break;
 1450|    129|        case OSSL_FUNC_CIPHER_DUPCTX:
  ------------------
  |  |  364|    129|#define OSSL_FUNC_CIPHER_DUPCTX 8
  ------------------
  |  Branch (1450:9): [True: 129, False: 1.81k]
  ------------------
 1451|    129|            if (cipher->dupctx != NULL)
  ------------------
  |  Branch (1451:17): [True: 0, False: 129]
  ------------------
 1452|      0|                break;
 1453|    129|            cipher->dupctx = OSSL_FUNC_cipher_dupctx(fns);
 1454|    129|            break;
 1455|    130|        case OSSL_FUNC_CIPHER_GET_PARAMS:
  ------------------
  |  |  365|    130|#define OSSL_FUNC_CIPHER_GET_PARAMS 9
  ------------------
  |  Branch (1455:9): [True: 130, False: 1.81k]
  ------------------
 1456|    130|            if (cipher->get_params != NULL)
  ------------------
  |  Branch (1456:17): [True: 0, False: 130]
  ------------------
 1457|      0|                break;
 1458|    130|            cipher->get_params = OSSL_FUNC_cipher_get_params(fns);
 1459|    130|            break;
 1460|    130|        case OSSL_FUNC_CIPHER_GET_CTX_PARAMS:
  ------------------
  |  |  366|    130|#define OSSL_FUNC_CIPHER_GET_CTX_PARAMS 10
  ------------------
  |  Branch (1460:9): [True: 130, False: 1.81k]
  ------------------
 1461|    130|            if (cipher->get_ctx_params != NULL)
  ------------------
  |  Branch (1461:17): [True: 0, False: 130]
  ------------------
 1462|      0|                break;
 1463|    130|            cipher->get_ctx_params = OSSL_FUNC_cipher_get_ctx_params(fns);
 1464|    130|            break;
 1465|    130|        case OSSL_FUNC_CIPHER_SET_CTX_PARAMS:
  ------------------
  |  |  367|    130|#define OSSL_FUNC_CIPHER_SET_CTX_PARAMS 11
  ------------------
  |  Branch (1465:9): [True: 130, False: 1.81k]
  ------------------
 1466|    130|            if (cipher->set_ctx_params != NULL)
  ------------------
  |  Branch (1466:17): [True: 0, False: 130]
  ------------------
 1467|      0|                break;
 1468|    130|            cipher->set_ctx_params = OSSL_FUNC_cipher_set_ctx_params(fns);
 1469|    130|            break;
 1470|    130|        case OSSL_FUNC_CIPHER_GETTABLE_PARAMS:
  ------------------
  |  |  368|    130|#define OSSL_FUNC_CIPHER_GETTABLE_PARAMS 12
  ------------------
  |  Branch (1470:9): [True: 130, False: 1.81k]
  ------------------
 1471|    130|            if (cipher->gettable_params != NULL)
  ------------------
  |  Branch (1471:17): [True: 0, False: 130]
  ------------------
 1472|      0|                break;
 1473|    130|            cipher->gettable_params = OSSL_FUNC_cipher_gettable_params(fns);
 1474|    130|            break;
 1475|    130|        case OSSL_FUNC_CIPHER_GETTABLE_CTX_PARAMS:
  ------------------
  |  |  369|    130|#define OSSL_FUNC_CIPHER_GETTABLE_CTX_PARAMS 13
  ------------------
  |  Branch (1475:9): [True: 130, False: 1.81k]
  ------------------
 1476|    130|            if (cipher->gettable_ctx_params != NULL)
  ------------------
  |  Branch (1476:17): [True: 0, False: 130]
  ------------------
 1477|      0|                break;
 1478|    130|            cipher->gettable_ctx_params = OSSL_FUNC_cipher_gettable_ctx_params(fns);
 1479|    130|            break;
 1480|    130|        case OSSL_FUNC_CIPHER_SETTABLE_CTX_PARAMS:
  ------------------
  |  |  370|    130|#define OSSL_FUNC_CIPHER_SETTABLE_CTX_PARAMS 14
  ------------------
  |  Branch (1480:9): [True: 130, False: 1.81k]
  ------------------
 1481|    130|            if (cipher->settable_ctx_params != NULL)
  ------------------
  |  Branch (1481:17): [True: 0, False: 130]
  ------------------
 1482|      0|                break;
 1483|    130|            cipher->settable_ctx_params = OSSL_FUNC_cipher_settable_ctx_params(fns);
 1484|    130|            break;
 1485|  1.94k|        }
 1486|  1.94k|    }
 1487|    130|    fnciphcnt += encinit + decinit;
 1488|    130|    if ((fnciphcnt != 0 && fnciphcnt != 3 && fnciphcnt != 4)
  ------------------
  |  Branch (1488:10): [True: 130, False: 0]
  |  Branch (1488:28): [True: 130, False: 0]
  |  Branch (1488:46): [True: 0, False: 130]
  ------------------
 1489|    130|        || (fnciphcnt == 0 && cipher->ccipher == NULL && fnpipecnt == 0)
  ------------------
  |  Branch (1489:13): [True: 0, False: 130]
  |  Branch (1489:31): [True: 0, False: 0]
  |  Branch (1489:58): [True: 0, False: 0]
  ------------------
 1490|    130|        || (fnpipecnt != 0 && (fnpipecnt < 3 || cipher->p_cupdate == NULL || cipher->p_cfinal == NULL))
  ------------------
  |  Branch (1490:13): [True: 0, False: 130]
  |  Branch (1490:32): [True: 0, False: 0]
  |  Branch (1490:49): [True: 0, False: 0]
  |  Branch (1490:78): [True: 0, False: 0]
  ------------------
 1491|    130|        || fnctxcnt != 2) {
  ------------------
  |  Branch (1491:12): [True: 0, False: 130]
  ------------------
 1492|       |        /*
 1493|       |         * In order to be a consistent set of functions we must have at least
 1494|       |         * a complete set of "encrypt" functions, or a complete set of "decrypt"
 1495|       |         * functions, or a single "cipher" function. In all cases we need both
 1496|       |         * the "newctx" and "freectx" functions.
 1497|       |         */
 1498|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1499|      0|        goto err;
 1500|      0|    }
 1501|    130|    if (prov != NULL && !ossl_provider_up_ref(prov))
  ------------------
  |  Branch (1501:9): [True: 130, False: 0]
  |  Branch (1501:25): [True: 0, False: 130]
  ------------------
 1502|      0|        goto err;
 1503|       |
 1504|    130|    cipher->prov = prov;
 1505|       |
 1506|    130|    if (!evp_cipher_cache_constants(cipher)) {
  ------------------
  |  Branch (1506:9): [True: 0, False: 130]
  ------------------
 1507|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_CACHE_CONSTANTS_FAILED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1508|      0|        goto err;
 1509|      0|    }
 1510|       |
 1511|    130|    return cipher;
 1512|       |
 1513|      0|err:
 1514|      0|    EVP_CIPHER_free(cipher);
 1515|       |    return NULL;
 1516|    130|}
evp_enc.c:set_legacy_nid:
 1320|    243|{
 1321|    243|    int nid;
 1322|    243|    int *legacy_nid = vlegacy_nid;
 1323|       |    /*
 1324|       |     * We use lowest level function to get the associated method, because
 1325|       |     * higher level functions such as EVP_get_cipherbyname() have changed
 1326|       |     * to look at providers too.
 1327|       |     */
 1328|    243|    const void *legacy_method = OBJ_NAME_get(name, OBJ_NAME_TYPE_CIPHER_METH);
  ------------------
  |  |   26|    243|#define OBJ_NAME_TYPE_CIPHER_METH 0x02
  ------------------
 1329|       |
 1330|    243|    if (*legacy_nid == -1) /* We found a clash already */
  ------------------
  |  Branch (1330:9): [True: 0, False: 243]
  ------------------
 1331|      0|        return;
 1332|    243|    if (legacy_method == NULL)
  ------------------
  |  Branch (1332:9): [True: 109, False: 134]
  ------------------
 1333|    109|        return;
 1334|    134|    nid = EVP_CIPHER_get_nid(legacy_method);
 1335|    134|    if (*legacy_nid != NID_undef && *legacy_nid != nid) {
  ------------------
  |  |   18|    268|#define NID_undef                       0
  ------------------
  |  Branch (1335:9): [True: 26, False: 108]
  |  Branch (1335:37): [True: 0, False: 26]
  ------------------
 1336|      0|        *legacy_nid = -1;
 1337|      0|        return;
 1338|      0|    }
 1339|    134|    *legacy_nid = nid;
 1340|    134|}
evp_enc.c:evp_cipher_up_ref:
 1519|  5.70k|{
 1520|  5.70k|    return EVP_CIPHER_up_ref(cipher);
 1521|  5.70k|}
evp_enc.c:evp_cipher_free:
 1524|    130|{
 1525|    130|    EVP_CIPHER_free(cipher);
 1526|    130|}

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

evp_generic_fetch:
  398|  38.4k|{
  399|  38.4k|    struct evp_method_data_st methdata;
  400|  38.4k|    void *method;
  401|       |
  402|  38.4k|    methdata.libctx = libctx;
  403|  38.4k|    methdata.tmp_store = NULL;
  404|       |    method = inner_evp_generic_fetch(&methdata, NULL, operation_id,
  405|  38.4k|        name, properties,
  406|  38.4k|        new_method, up_ref_method, free_method);
  407|  38.4k|    dealloc_tmp_evp_method_store(methdata.tmp_store);
  408|  38.4k|    return method;
  409|  38.4k|}
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|  41.3k|{
  661|       |    /*
  662|       |     * For a |prov| that is NULL, the library context will be NULL
  663|       |     */
  664|  41.3k|    OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov);
  665|  41.3k|    OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx);
  666|       |
  667|  41.3k|    if (prov == NULL)
  ------------------
  |  Branch (667:9): [True: 0, False: 41.3k]
  ------------------
  668|      0|        number = ossl_namemap_name2num(namemap, legacy_name);
  669|  41.3k|    return ossl_namemap_name2num(namemap, name) == number;
  670|  41.3k|}
evp_names_do_all:
  675|  42.9k|{
  676|  42.9k|    OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov);
  677|  42.9k|    OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx);
  678|       |
  679|  42.9k|    return ossl_namemap_doall_names(namemap, number, fn, data);
  680|  42.9k|}
evp_fetch.c:inner_evp_generic_fetch:
  259|  38.4k|{
  260|  38.4k|    OSSL_METHOD_STORE *store = get_evp_method_store(methdata->libctx);
  261|  38.4k|    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|  38.4k|    const char *const propq = properties != NULL ? properties : "";
  ------------------
  |  Branch (271:31): [True: 0, False: 38.4k]
  ------------------
  272|  38.4k|#endif /* FIPS_MODULE */
  273|  38.4k|    uint32_t meth_id = 0;
  274|  38.4k|    void *method = NULL;
  275|  38.4k|    int unsupported, name_id;
  276|       |
  277|  38.4k|    if (store == NULL || namemap == NULL) {
  ------------------
  |  Branch (277:9): [True: 0, False: 38.4k]
  |  Branch (277:26): [True: 0, False: 38.4k]
  ------------------
  278|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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|  38.4k|    if (!ossl_assert(operation_id > 0)) {
  ------------------
  |  |   52|  38.4k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  38.4k|    __FILE__, __LINE__)
  ------------------
  |  Branch (286:9): [True: 0, False: 38.4k]
  ------------------
  287|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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|  38.4k|    name_id = ossl_namemap_name2num(namemap, name);
  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|  38.4k|    if (name_id != 0 && (meth_id = evp_method_id(name_id, operation_id)) == 0) {
  ------------------
  |  Branch (302:9): [True: 34.6k, False: 3.82k]
  |  Branch (302:25): [True: 0, False: 34.6k]
  ------------------
  303|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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|  38.4k|    unsupported = name_id == 0;
  312|       |
  313|  38.4k|    if (meth_id == 0
  ------------------
  |  Branch (313:9): [True: 3.82k, False: 34.6k]
  ------------------
  314|  34.6k|        || !ossl_method_store_cache_get(store, prov, meth_id, propq, &method)) {
  ------------------
  |  Branch (314:12): [True: 1.78k, False: 32.8k]
  ------------------
  315|  5.60k|        OSSL_METHOD_CONSTRUCT_METHOD mcm = {
  316|  5.60k|            get_tmp_evp_method_store,
  317|  5.60k|            reserve_evp_method_store,
  318|  5.60k|            unreserve_evp_method_store,
  319|  5.60k|            get_evp_method_from_store,
  320|  5.60k|            put_evp_method_in_store,
  321|  5.60k|            construct_evp_method,
  322|  5.60k|            destruct_evp_method
  323|  5.60k|        };
  324|       |
  325|  5.60k|        methdata->operation_id = operation_id;
  326|  5.60k|        methdata->name_id = name_id;
  327|  5.60k|        methdata->names = name;
  328|  5.60k|        methdata->propquery = propq;
  329|  5.60k|        methdata->method_from_algorithm = new_method;
  330|  5.60k|        methdata->refcnt_up_method = up_ref_method;
  331|  5.60k|        methdata->destruct_method = free_method;
  332|  5.60k|        methdata->flag_construct_error_occurred = 0;
  333|  5.60k|        if ((method = ossl_method_construct(methdata->libctx, operation_id,
  ------------------
  |  Branch (333:13): [True: 55, False: 5.55k]
  ------------------
  334|  5.60k|                 &prov, 0 /* !force_cache */,
  335|  5.60k|                 &mcm, methdata))
  336|  5.60k|            != 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|     55|            if (name_id == 0)
  ------------------
  |  Branch (349:17): [True: 3, False: 52]
  ------------------
  350|      3|                name_id = ossl_namemap_name2num(namemap, name);
  351|     55|            if (name_id == 0) {
  ------------------
  |  Branch (351:17): [True: 0, False: 55]
  ------------------
  352|      0|                ERR_raise_data(ERR_LIB_EVP, ERR_R_FETCH_FAILED,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                              ERR_raise_data(ERR_LIB_EVP, ERR_R_FETCH_FAILED,
  ------------------
  |  |   59|      0|#define ERR_LIB_EVP 6
  ------------------
                              ERR_raise_data(ERR_LIB_EVP, ERR_R_FETCH_FAILED,
  ------------------
  |  |  318|      0|#define ERR_R_FETCH_FAILED (269 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  220|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  211|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  353|      0|                    "Algorithm %s cannot be found", name != NULL ? name : "<null>");
  ------------------
  |  Branch (353:53): [True: 0, False: 0]
  ------------------
  354|      0|                free_method(method);
  355|      0|                method = NULL;
  356|     55|            } else {
  357|     55|                meth_id = evp_method_id(name_id, operation_id);
  358|     55|                if (meth_id != 0)
  ------------------
  |  Branch (358:21): [True: 55, False: 0]
  ------------------
  359|     55|                    ossl_method_store_cache_set(store, prov, meth_id, propq,
  360|     55|                        method, up_ref_method, free_method);
  361|     55|            }
  362|     55|        }
  363|       |
  364|       |        /*
  365|       |         * If we never were in the constructor, the algorithm to be fetched
  366|       |         * is unsupported.
  367|       |         */
  368|  5.60k|        unsupported = !methdata->flag_construct_error_occurred;
  369|  5.60k|    }
  370|       |
  371|  38.4k|    if ((name_id != 0 || name != NULL) && method == NULL) {
  ------------------
  |  Branch (371:10): [True: 34.6k, False: 3.81k]
  |  Branch (371:26): [True: 3.81k, False: 2]
  |  Branch (371:43): [True: 5.55k, False: 32.9k]
  ------------------
  372|  5.55k|        int code = unsupported ? ERR_R_UNSUPPORTED : ERR_R_FETCH_FAILED;
  ------------------
  |  |  317|  5.55k|#define ERR_R_UNSUPPORTED (268 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  220|  5.55k|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  211|  5.55k|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      int code = unsupported ? ERR_R_UNSUPPORTED : ERR_R_FETCH_FAILED;
  ------------------
  |  |  318|      0|#define ERR_R_FETCH_FAILED (269 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  220|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  211|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (372:20): [True: 5.55k, False: 0]
  ------------------
  373|       |
  374|  5.55k|        if (name == NULL)
  ------------------
  |  Branch (374:13): [True: 0, False: 5.55k]
  ------------------
  375|      0|            name = ossl_namemap_num2name(namemap, name_id, 0);
  376|  5.55k|        ERR_raise_data(ERR_LIB_EVP, code,
  ------------------
  |  |  359|  5.55k|    (ERR_new(),                                                  \
  |  |  360|  5.55k|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|  5.55k|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|  5.55k|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, code,
  ------------------
  |  |   59|  5.55k|#define ERR_LIB_EVP 6
  ------------------
  377|  5.55k|            "%s, Algorithm (%s : %d), Properties (%s)",
  378|  5.55k|            ossl_lib_ctx_get_descriptor(methdata->libctx),
  379|  5.55k|            name == NULL ? "<null>" : name, name_id,
  ------------------
  |  Branch (379:13): [True: 0, False: 5.55k]
  ------------------
  380|  5.55k|            properties == NULL ? "<null>" : properties);
  ------------------
  |  Branch (380:13): [True: 5.55k, False: 0]
  ------------------
  381|  32.9k|    } else {
  382|  32.9k|        OSSL_TRACE4(QUERY, "%s, Algorithm (%s : %d), Properties (%s)\n",
  ------------------
  |  |  297|  32.9k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4))
  |  |  ------------------
  |  |  |  |  283|  32.9k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  383|  32.9k|            ossl_lib_ctx_get_descriptor(methdata->libctx),
  384|  32.9k|            name == NULL ? "<null>" : name, name_id,
  385|  32.9k|            properties == NULL ? "<null>" : properties);
  386|  32.9k|    }
  387|       |
  388|  38.4k|    return method;
  389|  38.4k|}
evp_fetch.c:evp_method_id:
  117|  36.7k|{
  118|  36.7k|    if (!ossl_assert(name_id > 0 && name_id <= METHOD_ID_NAME_MAX)
  ------------------
  |  |   52|  73.5k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  ------------------
  |  |  |  Branch (52:41): [True: 36.7k, False: 0]
  |  |  |  Branch (52:41): [True: 36.7k, False: 0]
  |  |  ------------------
  |  |   53|  73.5k|    __FILE__, __LINE__)
  ------------------
  |  Branch (118:9): [True: 0, False: 36.7k]
  ------------------
  119|  36.7k|        || !ossl_assert(operation_id > 0
  ------------------
  |  |   52|  73.5k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  ------------------
  |  |  |  Branch (52:41): [True: 36.7k, False: 0]
  |  |  |  Branch (52:41): [True: 36.7k, False: 0]
  |  |  ------------------
  |  |   53|  36.7k|    __FILE__, __LINE__)
  ------------------
  |  Branch (119:12): [True: 0, False: 36.7k]
  ------------------
  120|  36.7k|            && operation_id <= METHOD_ID_OPERATION_MAX))
  121|      0|        return 0;
  122|  36.7k|    return (((name_id << METHOD_ID_NAME_OFFSET) & METHOD_ID_NAME_MASK)
  ------------------
  |  |  114|  36.7k|#define METHOD_ID_NAME_OFFSET 8
  ------------------
                  return (((name_id << METHOD_ID_NAME_OFFSET) & METHOD_ID_NAME_MASK)
  ------------------
  |  |  113|  36.7k|#define METHOD_ID_NAME_MASK 0x7FFFFF00
  ------------------
  123|  36.7k|        | (operation_id & METHOD_ID_OPERATION_MASK));
  ------------------
  |  |  111|  36.7k|#define METHOD_ID_OPERATION_MASK 0x000000FF
  ------------------
  124|  36.7k|}
evp_fetch.c:reserve_evp_method_store:
   73|  5.60k|{
   74|  5.60k|    struct evp_method_data_st *methdata = data;
   75|       |
   76|  5.60k|    if (store == NULL
  ------------------
  |  Branch (76:9): [True: 5.60k, False: 0]
  ------------------
   77|  5.60k|        && (store = get_evp_method_store(methdata->libctx)) == NULL)
  ------------------
  |  Branch (77:12): [True: 0, False: 5.60k]
  ------------------
   78|      0|        return 0;
   79|       |
   80|  5.60k|    return ossl_method_lock_store(store);
   81|  5.60k|}
evp_fetch.c:unreserve_evp_method_store:
   84|  5.60k|{
   85|  5.60k|    struct evp_method_data_st *methdata = data;
   86|       |
   87|  5.60k|    if (store == NULL
  ------------------
  |  Branch (87:9): [True: 5.60k, False: 0]
  ------------------
   88|  5.60k|        && (store = get_evp_method_store(methdata->libctx)) == NULL)
  ------------------
  |  Branch (88:12): [True: 0, False: 5.60k]
  ------------------
   89|      0|        return 0;
   90|       |
   91|  5.60k|    return ossl_method_unlock_store(store);
   92|  5.60k|}
evp_fetch.c:get_evp_method_from_store:
  128|  5.60k|{
  129|  5.60k|    struct evp_method_data_st *methdata = data;
  130|  5.60k|    void *method = NULL;
  131|  5.60k|    int name_id;
  132|  5.60k|    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|  5.60k|    if ((name_id = methdata->name_id) == 0 && methdata->names != NULL) {
  ------------------
  |  Branch (139:9): [True: 3.82k, False: 1.78k]
  |  Branch (139:47): [True: 3.82k, False: 2]
  ------------------
  140|  3.82k|        OSSL_NAMEMAP *namemap = ossl_namemap_stored(methdata->libctx);
  141|  3.82k|        const char *names = methdata->names;
  142|  3.82k|        const char *q = strchr(names, NAME_SEPARATOR);
  ------------------
  |  |   24|  3.82k|#define NAME_SEPARATOR ':'
  ------------------
  143|  3.82k|        size_t l = (q == NULL ? strlen(names) : (size_t)(q - names));
  ------------------
  |  Branch (143:21): [True: 3.82k, False: 0]
  ------------------
  144|       |
  145|  3.82k|        if (namemap == 0)
  ------------------
  |  Branch (145:13): [True: 0, False: 3.82k]
  ------------------
  146|      0|            return NULL;
  147|  3.82k|        name_id = ossl_namemap_name2num_n(namemap, names, l);
  148|  3.82k|    }
  149|       |
  150|  5.60k|    if (name_id == 0
  ------------------
  |  Branch (150:9): [True: 3.81k, False: 1.79k]
  ------------------
  151|  1.79k|        || (meth_id = evp_method_id(name_id, methdata->operation_id)) == 0)
  ------------------
  |  Branch (151:12): [True: 0, False: 1.79k]
  ------------------
  152|  3.81k|        return NULL;
  153|       |
  154|  1.79k|    if (store == NULL
  ------------------
  |  Branch (154:9): [True: 1.79k, False: 0]
  ------------------
  155|  1.79k|        && (store = get_evp_method_store(methdata->libctx)) == NULL)
  ------------------
  |  Branch (155:12): [True: 0, False: 1.79k]
  ------------------
  156|      0|        return NULL;
  157|       |
  158|  1.79k|    if (!ossl_method_store_fetch(store, meth_id, methdata->propquery, prov,
  ------------------
  |  Branch (158:9): [True: 1.73k, False: 55]
  ------------------
  159|  1.79k|            &method))
  160|  1.73k|        return NULL;
  161|     55|    return method;
  162|  1.79k|}
evp_fetch.c:put_evp_method_in_store:
  168|    273|{
  169|    273|    struct evp_method_data_st *methdata = data;
  170|    273|    OSSL_NAMEMAP *namemap;
  171|    273|    int name_id;
  172|    273|    uint32_t meth_id;
  173|    273|    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|    273|    if (names != NULL) {
  ------------------
  |  Branch (181:9): [True: 273, False: 0]
  ------------------
  182|    273|        const char *q = strchr(names, NAME_SEPARATOR);
  ------------------
  |  |   24|    273|#define NAME_SEPARATOR ':'
  ------------------
  183|       |
  184|    273|        l = (q == NULL ? strlen(names) : (size_t)(q - names));
  ------------------
  |  Branch (184:14): [True: 85, False: 188]
  ------------------
  185|    273|    }
  186|       |
  187|    273|    if ((namemap = ossl_namemap_stored(methdata->libctx)) == NULL
  ------------------
  |  Branch (187:9): [True: 0, False: 273]
  ------------------
  188|    273|        || (name_id = ossl_namemap_name2num_n(namemap, names, l)) == 0
  ------------------
  |  Branch (188:12): [True: 0, False: 273]
  ------------------
  189|    273|        || (meth_id = evp_method_id(name_id, methdata->operation_id)) == 0)
  ------------------
  |  Branch (189:12): [True: 0, False: 273]
  ------------------
  190|      0|        return 0;
  191|       |
  192|    273|    OSSL_TRACE1(QUERY, "put_evp_method_in_store: original store: %p\n", store);
  ------------------
  |  |  291|    273|    OSSL_TRACEV(category, (trc_out, format, arg1))
  |  |  ------------------
  |  |  |  |  283|    273|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  193|    273|    if (store == NULL
  ------------------
  |  Branch (193:9): [True: 273, False: 0]
  ------------------
  194|    273|        && (store = get_evp_method_store(methdata->libctx)) == NULL)
  ------------------
  |  Branch (194:12): [True: 0, False: 273]
  ------------------
  195|      0|        return 0;
  196|       |
  197|    273|    OSSL_TRACE5(QUERY,
  ------------------
  |  |  299|    273|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4, arg5))
  |  |  ------------------
  |  |  |  |  283|    273|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  198|    273|        "put_evp_method_in_store: "
  199|    273|        "store: %p, names: %s, operation_id %d, method_id: %d, properties: %s\n",
  200|    273|        store, names, methdata->operation_id, meth_id, propdef ? propdef : "<null>");
  201|    273|    return ossl_method_store_add(store, prov, meth_id, propdef, method,
  202|    273|        methdata->refcnt_up_method,
  203|    273|        methdata->destruct_method);
  204|    273|}
evp_fetch.c:construct_evp_method:
  212|    273|{
  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|    273|    struct evp_method_data_st *methdata = data;
  221|    273|    OSSL_LIB_CTX *libctx = ossl_provider_libctx(prov);
  222|    273|    OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx);
  223|    273|    const char *names = algodef->algorithm_names;
  224|    273|    int name_id = ossl_namemap_add_names(namemap, 0, names, NAME_SEPARATOR);
  ------------------
  |  |   24|    273|#define NAME_SEPARATOR ':'
  ------------------
  225|    273|    void *method;
  226|       |
  227|    273|    if (name_id == 0)
  ------------------
  |  Branch (227:9): [True: 0, False: 273]
  ------------------
  228|      0|        return NULL;
  229|       |
  230|    273|    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|    273|    if (method == NULL)
  ------------------
  |  Branch (237:9): [True: 0, False: 273]
  ------------------
  238|      0|        methdata->flag_construct_error_occurred = 1;
  239|       |
  240|    273|    return method;
  241|    273|}
evp_fetch.c:destruct_evp_method:
  244|    273|{
  245|    273|    struct evp_method_data_st *methdata = data;
  246|       |
  247|    273|    methdata->destruct_method(method);
  248|    273|}
evp_fetch.c:dealloc_tmp_evp_method_store:
   61|  38.4k|{
   62|  38.4k|    OSSL_TRACE1(QUERY, "Deallocating the tmp_store %p\n", store);
  ------------------
  |  |  291|  38.4k|    OSSL_TRACEV(category, (trc_out, format, arg1))
  |  |  ------------------
  |  |  |  |  283|  38.4k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
   63|  38.4k|    if (store != NULL)
  ------------------
  |  Branch (63:9): [True: 0, False: 38.4k]
  ------------------
   64|      0|        ossl_method_store_free(store);
   65|  38.4k|}
evp_fetch.c:get_evp_method_store:
   68|  51.7k|{
   69|  51.7k|    return ossl_lib_ctx_get_data(libctx, OSSL_LIB_CTX_EVP_METHOD_STORE_INDEX);
  ------------------
  |  |   95|  51.7k|#define OSSL_LIB_CTX_EVP_METHOD_STORE_INDEX 0
  ------------------
   70|  51.7k|}
evp_fetch.c:filter_on_operation_id:
  623|    546|{
  624|    546|    struct filter_data_st *data = arg;
  625|       |
  626|    546|    if ((id & METHOD_ID_OPERATION_MASK) == data->operation_id)
  ------------------
  |  |  111|    546|#define METHOD_ID_OPERATION_MASK 0x000000FF
  ------------------
  |  Branch (626:9): [True: 84, False: 462]
  ------------------
  627|     84|        data->user_fn(method, data->user_arg);
  628|    546|}

EVP_CIPHER_get_type:
  241|    183|{
  242|    183|    int nid;
  243|    183|    nid = EVP_CIPHER_get_nid(cipher);
  244|       |
  245|    183|    switch (nid) {
  246|       |
  247|      3|    case NID_rc2_cbc:
  ------------------
  |  | 1307|      3|#define NID_rc2_cbc             37
  ------------------
  |  Branch (247:5): [True: 3, False: 180]
  ------------------
  248|      5|    case NID_rc2_64_cbc:
  ------------------
  |  | 1328|      5|#define NID_rc2_64_cbc          166
  ------------------
  |  Branch (248:5): [True: 2, False: 181]
  ------------------
  249|      7|    case NID_rc2_40_cbc:
  ------------------
  |  | 1324|      7|#define NID_rc2_40_cbc          98
  ------------------
  |  Branch (249:5): [True: 2, False: 181]
  ------------------
  250|       |
  251|      7|        return NID_rc2_cbc;
  ------------------
  |  | 1307|      7|#define NID_rc2_cbc             37
  ------------------
  252|       |
  253|      1|    case NID_rc4:
  ------------------
  |  | 1332|      1|#define NID_rc4         5
  ------------------
  |  Branch (253:5): [True: 1, False: 182]
  ------------------
  254|      2|    case NID_rc4_40:
  ------------------
  |  | 1337|      2|#define NID_rc4_40              97
  ------------------
  |  Branch (254:5): [True: 1, False: 182]
  ------------------
  255|       |
  256|      2|        return NID_rc4;
  ------------------
  |  | 1332|      2|#define NID_rc4         5
  ------------------
  257|       |
  258|      1|    case NID_aes_128_cfb128:
  ------------------
  |  | 3116|      1|#define NID_aes_128_cfb128              421
  ------------------
  |  Branch (258:5): [True: 1, False: 182]
  ------------------
  259|      2|    case NID_aes_128_cfb8:
  ------------------
  |  | 3237|      2|#define NID_aes_128_cfb8                653
  ------------------
  |  Branch (259:5): [True: 1, False: 182]
  ------------------
  260|      3|    case NID_aes_128_cfb1:
  ------------------
  |  | 3225|      3|#define NID_aes_128_cfb1                650
  ------------------
  |  Branch (260:5): [True: 1, False: 182]
  ------------------
  261|       |
  262|      3|        return NID_aes_128_cfb128;
  ------------------
  |  | 3116|      3|#define NID_aes_128_cfb128              421
  ------------------
  263|       |
  264|      1|    case NID_aes_192_cfb128:
  ------------------
  |  | 3154|      1|#define NID_aes_192_cfb128              425
  ------------------
  |  Branch (264:5): [True: 1, False: 182]
  ------------------
  265|      2|    case NID_aes_192_cfb8:
  ------------------
  |  | 3241|      2|#define NID_aes_192_cfb8                654
  ------------------
  |  Branch (265:5): [True: 1, False: 182]
  ------------------
  266|      3|    case NID_aes_192_cfb1:
  ------------------
  |  | 3229|      3|#define NID_aes_192_cfb1                651
  ------------------
  |  Branch (266:5): [True: 1, False: 182]
  ------------------
  267|       |
  268|      3|        return NID_aes_192_cfb128;
  ------------------
  |  | 3154|      3|#define NID_aes_192_cfb128              425
  ------------------
  269|       |
  270|      1|    case NID_aes_256_cfb128:
  ------------------
  |  | 3192|      1|#define NID_aes_256_cfb128              429
  ------------------
  |  Branch (270:5): [True: 1, False: 182]
  ------------------
  271|      2|    case NID_aes_256_cfb8:
  ------------------
  |  | 3245|      2|#define NID_aes_256_cfb8                655
  ------------------
  |  Branch (271:5): [True: 1, False: 182]
  ------------------
  272|      3|    case NID_aes_256_cfb1:
  ------------------
  |  | 3233|      3|#define NID_aes_256_cfb1                652
  ------------------
  |  Branch (272:5): [True: 1, False: 182]
  ------------------
  273|       |
  274|      3|        return NID_aes_256_cfb128;
  ------------------
  |  | 3192|      3|#define NID_aes_256_cfb128              429
  ------------------
  275|       |
  276|      1|    case NID_des_cfb64:
  ------------------
  |  | 2286|      1|#define NID_des_cfb64           30
  ------------------
  |  Branch (276:5): [True: 1, False: 182]
  ------------------
  277|      2|    case NID_des_cfb8:
  ------------------
  |  | 3277|      2|#define NID_des_cfb8            657
  ------------------
  |  Branch (277:5): [True: 1, False: 182]
  ------------------
  278|      3|    case NID_des_cfb1:
  ------------------
  |  | 3273|      3|#define NID_des_cfb1            656
  ------------------
  |  Branch (278:5): [True: 1, False: 182]
  ------------------
  279|       |
  280|      3|        return NID_des_cfb64;
  ------------------
  |  | 2286|      3|#define NID_des_cfb64           30
  ------------------
  281|       |
  282|      1|    case NID_des_ede3_cfb64:
  ------------------
  |  | 2327|      1|#define NID_des_ede3_cfb64              61
  ------------------
  |  Branch (282:5): [True: 1, False: 182]
  ------------------
  283|      2|    case NID_des_ede3_cfb8:
  ------------------
  |  | 3285|      2|#define NID_des_ede3_cfb8               659
  ------------------
  |  Branch (283:5): [True: 1, False: 182]
  ------------------
  284|      3|    case NID_des_ede3_cfb1:
  ------------------
  |  | 3281|      3|#define NID_des_ede3_cfb1               658
  ------------------
  |  Branch (284:5): [True: 1, False: 182]
  ------------------
  285|       |
  286|      3|        return NID_des_ede3_cfb64;
  ------------------
  |  | 2327|      3|#define NID_des_ede3_cfb64              61
  ------------------
  287|       |
  288|    159|    default:
  ------------------
  |  Branch (288:5): [True: 159, False: 24]
  ------------------
  289|       |#ifdef FIPS_MODULE
  290|       |        return NID_undef;
  291|       |#else
  292|    159|    {
  293|       |        /* Check it has an OID and it is valid */
  294|    159|        ASN1_OBJECT *otmp = OBJ_nid2obj(nid);
  295|       |
  296|    159|        if (OBJ_get0_data(otmp) == NULL)
  ------------------
  |  Branch (296:13): [True: 48, False: 111]
  ------------------
  297|     48|            nid = NID_undef;
  ------------------
  |  |   18|     48|#define NID_undef                       0
  ------------------
  298|    159|        ASN1_OBJECT_free(otmp);
  299|    159|        return nid;
  300|      2|    }
  301|    183|#endif
  302|    183|    }
  303|    183|}
evp_cipher_cache_constants:
  306|    130|{
  307|    130|    int ok, aead = 0, custom_iv = 0, cts = 0, multiblock = 0, randkey = 0;
  308|    130|    int encrypt_then_mac = 0;
  309|    130|    size_t ivlen = 0;
  310|    130|    size_t blksz = 0;
  311|    130|    size_t keylen = 0;
  312|    130|    unsigned int mode = 0;
  313|    130|    OSSL_PARAM params[11];
  314|       |
  315|    130|    params[0] = OSSL_PARAM_construct_size_t(OSSL_CIPHER_PARAM_BLOCK_SIZE, &blksz);
  ------------------
  |  |  186|    130|# define OSSL_CIPHER_PARAM_BLOCK_SIZE "blocksize"
  ------------------
  316|    130|    params[1] = OSSL_PARAM_construct_size_t(OSSL_CIPHER_PARAM_IVLEN, &ivlen);
  ------------------
  |  |  196|    130|# define OSSL_CIPHER_PARAM_IVLEN "ivlen"
  ------------------
  317|    130|    params[2] = OSSL_PARAM_construct_size_t(OSSL_CIPHER_PARAM_KEYLEN, &keylen);
  ------------------
  |  |  197|    130|# define OSSL_CIPHER_PARAM_KEYLEN "keylen"
  ------------------
  318|    130|    params[3] = OSSL_PARAM_construct_uint(OSSL_CIPHER_PARAM_MODE, &mode);
  ------------------
  |  |  198|    130|# define OSSL_CIPHER_PARAM_MODE "mode"
  ------------------
  319|    130|    params[4] = OSSL_PARAM_construct_int(OSSL_CIPHER_PARAM_AEAD, &aead);
  ------------------
  |  |  172|    130|# define OSSL_CIPHER_PARAM_AEAD "aead"
  ------------------
  320|    130|    params[5] = OSSL_PARAM_construct_int(OSSL_CIPHER_PARAM_CUSTOM_IV,
  ------------------
  |  |  189|    130|# define OSSL_CIPHER_PARAM_CUSTOM_IV "custom-iv"
  ------------------
  321|    130|        &custom_iv);
  322|    130|    params[6] = OSSL_PARAM_construct_int(OSSL_CIPHER_PARAM_CTS, &cts);
  ------------------
  |  |  187|    130|# define OSSL_CIPHER_PARAM_CTS "cts"
  ------------------
  323|    130|    params[7] = OSSL_PARAM_construct_int(OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK,
  ------------------
  |  |  206|    130|# define OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK "tls-multi"
  ------------------
  324|    130|        &multiblock);
  325|    130|    params[8] = OSSL_PARAM_construct_int(OSSL_CIPHER_PARAM_HAS_RAND_KEY,
  ------------------
  |  |  194|    130|# define OSSL_CIPHER_PARAM_HAS_RAND_KEY "has-randkey"
  ------------------
  326|    130|        &randkey);
  327|    130|    params[9] = OSSL_PARAM_construct_int(OSSL_CIPHER_PARAM_ENCRYPT_THEN_MAC,
  ------------------
  |  |  191|    130|# define OSSL_CIPHER_PARAM_ENCRYPT_THEN_MAC "encrypt-then-mac"
  ------------------
  328|    130|        &encrypt_then_mac);
  329|    130|    params[10] = OSSL_PARAM_construct_end();
  330|    130|    ok = evp_do_ciph_getparams(cipher, params) > 0;
  331|    130|    if (ok) {
  ------------------
  |  Branch (331:9): [True: 130, False: 0]
  ------------------
  332|    130|        cipher->block_size = (int)blksz;
  333|    130|        cipher->iv_len = (int)ivlen;
  334|    130|        cipher->key_len = (int)keylen;
  335|    130|        cipher->flags = mode;
  336|    130|        if (aead)
  ------------------
  |  Branch (336:13): [True: 28, False: 102]
  ------------------
  337|     28|            cipher->flags |= EVP_CIPH_FLAG_AEAD_CIPHER;
  ------------------
  |  |  256|     28|#define EVP_CIPH_FLAG_AEAD_CIPHER 0x200000
  ------------------
  338|    130|        if (custom_iv)
  ------------------
  |  Branch (338:13): [True: 41, False: 89]
  ------------------
  339|     41|            cipher->flags |= EVP_CIPH_CUSTOM_IV;
  ------------------
  |  |  226|     41|#define EVP_CIPH_CUSTOM_IV 0x10
  ------------------
  340|    130|        if (cts)
  ------------------
  |  Branch (340:13): [True: 6, False: 124]
  ------------------
  341|      6|            cipher->flags |= EVP_CIPH_FLAG_CTS;
  ------------------
  |  |  254|      6|#define EVP_CIPH_FLAG_CTS 0x4000
  ------------------
  342|    130|        if (multiblock)
  ------------------
  |  Branch (342:13): [True: 4, False: 126]
  ------------------
  343|      4|            cipher->flags |= EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK;
  ------------------
  |  |  257|      4|#define EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK 0x400000
  ------------------
  344|    130|        if (cipher->ccipher != NULL)
  ------------------
  |  Branch (344:13): [True: 118, False: 12]
  ------------------
  345|    118|            cipher->flags |= EVP_CIPH_FLAG_CUSTOM_CIPHER;
  ------------------
  |  |  255|    118|#define EVP_CIPH_FLAG_CUSTOM_CIPHER 0x100000
  ------------------
  346|    130|        if (randkey)
  ------------------
  |  Branch (346:13): [True: 11, False: 119]
  ------------------
  347|     11|            cipher->flags |= EVP_CIPH_RAND_KEY;
  ------------------
  |  |  236|     11|#define EVP_CIPH_RAND_KEY 0x200
  ------------------
  348|    130|        if (encrypt_then_mac)
  ------------------
  |  Branch (348:13): [True: 0, False: 130]
  ------------------
  349|      0|            cipher->flags |= EVP_CIPH_FLAG_ENC_THEN_MAC;
  ------------------
  |  |  267|      0|#define EVP_CIPH_FLAG_ENC_THEN_MAC 0x10000000
  ------------------
  350|    130|        if (OSSL_PARAM_locate_const(EVP_CIPHER_gettable_ctx_params(cipher),
  ------------------
  |  Branch (350:13): [True: 0, False: 130]
  ------------------
  351|    130|                OSSL_CIPHER_PARAM_ALGORITHM_ID_PARAMS))
  ------------------
  |  |  184|    130|# define OSSL_CIPHER_PARAM_ALGORITHM_ID_PARAMS OSSL_ALG_PARAM_ALGORITHM_ID_PARAMS
  |  |  ------------------
  |  |  |  |  125|    130|# define OSSL_ALG_PARAM_ALGORITHM_ID_PARAMS "algorithm-id-params"
  |  |  ------------------
  ------------------
  352|      0|            cipher->flags |= EVP_CIPH_FLAG_CUSTOM_ASN1;
  ------------------
  |  |  261|      0|#define EVP_CIPH_FLAG_CUSTOM_ASN1 0x1000000
  ------------------
  353|    130|    }
  354|    130|    return ok;
  355|    130|}
EVP_CIPHER_get_iv_length:
  473|      3|{
  474|      3|    return (cipher == NULL) ? 0 : cipher->iv_len;
  ------------------
  |  Branch (474:12): [True: 0, False: 3]
  ------------------
  475|      3|}
EVP_CIPHER_CTX_get_iv_length:
  478|  11.1k|{
  479|  11.1k|    if (ctx->cipher == NULL)
  ------------------
  |  Branch (479:9): [True: 0, False: 11.1k]
  ------------------
  480|      0|        return 0;
  481|       |
  482|  11.1k|    if (ctx->iv_len < 0) {
  ------------------
  |  Branch (482:9): [True: 3, False: 11.1k]
  ------------------
  483|      3|        int rv, len = EVP_CIPHER_get_iv_length(ctx->cipher);
  484|      3|        size_t v = len;
  485|      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 }
  ------------------
  486|       |
  487|      3|        if (ctx->cipher->get_ctx_params != NULL) {
  ------------------
  |  Branch (487:13): [True: 3, False: 0]
  ------------------
  488|      3|            params[0] = OSSL_PARAM_construct_size_t(OSSL_CIPHER_PARAM_IVLEN,
  ------------------
  |  |  196|      3|# define OSSL_CIPHER_PARAM_IVLEN "ivlen"
  ------------------
  489|      3|                &v);
  490|      3|            rv = evp_do_ciph_ctx_getparams(ctx->cipher, ctx->algctx, params);
  491|      3|            if (rv > 0) {
  ------------------
  |  Branch (491:17): [True: 3, False: 0]
  ------------------
  492|      3|                if (OSSL_PARAM_modified(params)
  ------------------
  |  Branch (492:21): [True: 3, False: 0]
  ------------------
  493|      3|                    && !OSSL_PARAM_get_int(params, &len))
  ------------------
  |  Branch (493:24): [True: 0, False: 3]
  ------------------
  494|      0|                    return -1;
  495|      3|            } else if (rv != EVP_CTRL_RET_UNSUPPORTED) {
  ------------------
  |  |   13|      0|#define EVP_CTRL_RET_UNSUPPORTED -1
  ------------------
  |  Branch (495:24): [True: 0, False: 0]
  ------------------
  496|      0|                return -1;
  497|      0|            }
  498|      3|        }
  499|       |        /* Code below to be removed when legacy support is dropped. */
  500|      0|        else if ((EVP_CIPHER_get_flags(ctx->cipher)
  ------------------
  |  Branch (500:18): [True: 0, False: 0]
  ------------------
  501|      0|                     & EVP_CIPH_CUSTOM_IV_LENGTH)
  ------------------
  |  |  240|      0|#define EVP_CIPH_CUSTOM_IV_LENGTH 0x800
  ------------------
  502|      0|            != 0) {
  503|      0|            rv = EVP_CIPHER_CTX_ctrl((EVP_CIPHER_CTX *)ctx, EVP_CTRL_GET_IVLEN,
  ------------------
  |  |  341|      0|#define EVP_CTRL_GET_IVLEN 0x25
  ------------------
  504|      0|                0, &len);
  505|      0|            if (rv <= 0)
  ------------------
  |  Branch (505:17): [True: 0, False: 0]
  ------------------
  506|      0|                return -1;
  507|      0|        }
  508|       |        /*-
  509|       |         * Casting away the const is annoying but required here.  We need to
  510|       |         * cache the result for performance reasons.
  511|       |         */
  512|      3|        ((EVP_CIPHER_CTX *)ctx)->iv_len = len;
  513|      3|    }
  514|  11.1k|    return ctx->iv_len;
  515|  11.1k|}
EVP_CIPHER_get_key_length:
  620|      3|{
  621|      3|    return cipher->key_len;
  622|      3|}
EVP_CIPHER_CTX_get_key_length:
  625|  22.3k|{
  626|  22.3k|    if (ctx->cipher == NULL)
  ------------------
  |  Branch (626:9): [True: 0, False: 22.3k]
  ------------------
  627|      0|        return 0;
  628|       |
  629|  22.3k|    if (ctx->key_len <= 0 && ctx->cipher->prov != NULL) {
  ------------------
  |  Branch (629:9): [True: 9, False: 22.3k]
  |  Branch (629:30): [True: 9, False: 0]
  ------------------
  630|      9|        int ok;
  631|      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 }
  ------------------
  632|      9|        size_t len;
  633|       |
  634|      9|        params[0] = OSSL_PARAM_construct_size_t(OSSL_CIPHER_PARAM_KEYLEN, &len);
  ------------------
  |  |  197|      9|# define OSSL_CIPHER_PARAM_KEYLEN "keylen"
  ------------------
  635|      9|        ok = evp_do_ciph_ctx_getparams(ctx->cipher, ctx->algctx, params);
  636|      9|        if (ok <= 0)
  ------------------
  |  Branch (636:13): [True: 0, False: 9]
  ------------------
  637|      0|            return EVP_CTRL_RET_UNSUPPORTED;
  ------------------
  |  |   13|      0|#define EVP_CTRL_RET_UNSUPPORTED -1
  ------------------
  638|       |
  639|       |        /*-
  640|       |         * The if branch should never be taken since EVP_MAX_KEY_LENGTH is
  641|       |         * less than INT_MAX but best to be safe.
  642|       |         *
  643|       |         * Casting away the const is annoying but required here.  We need to
  644|       |         * cache the result for performance reasons.
  645|       |         */
  646|      9|        if (!OSSL_PARAM_get_int(params, &((EVP_CIPHER_CTX *)ctx)->key_len))
  ------------------
  |  Branch (646:13): [True: 0, False: 9]
  ------------------
  647|      0|            return -1;
  648|      9|        ((EVP_CIPHER_CTX *)ctx)->key_len = (int)len;
  649|      9|    }
  650|  22.3k|    return ctx->key_len;
  651|  22.3k|}
EVP_CIPHER_get_nid:
  654|    317|{
  655|    317|    return (cipher == NULL) ? NID_undef : cipher->nid;
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  |  Branch (655:12): [True: 0, False: 317]
  ------------------
  656|    317|}
EVP_CIPHER_get0_provider:
  710|  5.68k|{
  711|  5.68k|    return cipher->prov;
  712|  5.68k|}
EVP_MD_get0_provider:
  768|  3.47k|{
  769|  3.47k|    return md->prov;
  770|  3.47k|}
EVP_MD_get_type:
  773|  12.3k|{
  774|  12.3k|    return md->type;
  775|  12.3k|}
EVP_MD_get_size:
  792|  15.7k|{
  793|  15.7k|    if (md == NULL) {
  ------------------
  |  Branch (793:9): [True: 0, False: 15.7k]
  ------------------
  794|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_MESSAGE_DIGEST_IS_NULL);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  795|      0|        return -1;
  796|      0|    }
  797|  15.7k|    return md->md_size;
  798|  15.7k|}
EVP_MD_xof:
  801|  2.39k|{
  802|  2.39k|    return md != NULL && ((EVP_MD_get_flags(md) & EVP_MD_FLAG_XOF) != 0);
  ------------------
  |  |  135|  2.39k|#define EVP_MD_FLAG_XOF 0x0002
  ------------------
  |  Branch (802:12): [True: 2.39k, False: 0]
  |  Branch (802:26): [True: 2.05k, False: 342]
  ------------------
  803|  2.39k|}
EVP_MD_get_flags:
  806|  2.39k|{
  807|  2.39k|    return md->flags;
  808|  2.39k|}
EVP_MD_CTX_get0_md:
  820|  3.07k|{
  821|  3.07k|    if (ctx == NULL)
  ------------------
  |  Branch (821:9): [True: 0, False: 3.07k]
  ------------------
  822|      0|        return NULL;
  823|  3.07k|    return ctx->reqdigest;
  824|  3.07k|}
EVP_MD_CTX_get_size_ex:
  839|    684|{
  840|    684|    EVP_MD_CTX *c = (EVP_MD_CTX *)ctx;
  841|    684|    const OSSL_PARAM *gettables;
  842|       |
  843|    684|    gettables = EVP_MD_CTX_gettable_params(c);
  844|    684|    if (gettables != NULL
  ------------------
  |  Branch (844:9): [True: 0, False: 684]
  ------------------
  845|      0|        && OSSL_PARAM_locate_const(gettables,
  ------------------
  |  Branch (845:12): [True: 0, False: 0]
  ------------------
  846|      0|               OSSL_DIGEST_PARAM_SIZE)
  ------------------
  |  |  233|      0|# define OSSL_DIGEST_PARAM_SIZE "size"
  ------------------
  847|      0|            != NULL) {
  848|      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 }
  ------------------
  849|      0|        size_t sz = 0;
  850|       |
  851|       |        /*
  852|       |         * For XOF's EVP_MD_get_size() returns 0
  853|       |         * So try to get the xoflen instead. This will return -1 if the
  854|       |         * xof length has not been set.
  855|       |         */
  856|      0|        params[0] = OSSL_PARAM_construct_size_t(OSSL_DIGEST_PARAM_SIZE, &sz);
  ------------------
  |  |  233|      0|# define OSSL_DIGEST_PARAM_SIZE "size"
  ------------------
  857|      0|        if (EVP_MD_CTX_get_params(c, params) != 1
  ------------------
  |  Branch (857:13): [True: 0, False: 0]
  ------------------
  858|      0|            || sz > INT_MAX
  ------------------
  |  Branch (858:16): [True: 0, False: 0]
  ------------------
  859|      0|            || sz == 0)
  ------------------
  |  Branch (859:16): [True: 0, False: 0]
  ------------------
  860|      0|            return -1;
  861|      0|        return (int)sz;
  862|      0|    }
  863|       |    /* Normal digests have a constant fixed size output */
  864|    684|    return EVP_MD_get_size(EVP_MD_CTX_get0_md(ctx));
  865|    684|}
EVP_MD_CTX_set_flags:
  901|    342|{
  902|    342|    ctx->flags |= flags;
  903|    342|}
EVP_MD_CTX_clear_flags:
  906|  5.81k|{
  907|  5.81k|    ctx->flags &= ~flags;
  908|  5.81k|}
EVP_MD_CTX_test_flags:
  911|    342|{
  912|    342|    return (ctx->flags & flags);
  913|    342|}
EVP_PKEY_CTX_set_group_name:
  950|    684|{
  951|    684|    OSSL_PARAM params[] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|    684|    { NULL, 0, NULL, 0, 0 }
  ------------------
                  OSSL_PARAM params[] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|    684|    { NULL, 0, NULL, 0, 0 }
  ------------------
  952|       |
  953|    684|    if (ctx == NULL || !EVP_PKEY_CTX_IS_GEN_OP(ctx)) {
  ------------------
  |  |  482|    684|    (((ctx)->operation & EVP_PKEY_OP_TYPE_GEN) != 0)
  |  |  ------------------
  |  |  |  | 1565|    684|    (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1528|    684|#define EVP_PKEY_OP_PARAMGEN (1 << 1)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1529|    684|#define EVP_PKEY_OP_KEYGEN (1 << 2)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (953:9): [True: 0, False: 684]
  |  Branch (953:24): [True: 0, False: 684]
  ------------------
  954|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_COMMAND_NOT_SUPPORTED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  955|       |        /* Uses the same return values as EVP_PKEY_CTX_ctrl */
  956|      0|        return -2;
  957|      0|    }
  958|       |
  959|    684|    if (name == NULL)
  ------------------
  |  Branch (959:9): [True: 0, False: 684]
  ------------------
  960|      0|        return -1;
  961|       |
  962|    684|    params[0] = OSSL_PARAM_construct_utf8_string(OSSL_PKEY_PARAM_GROUP_NAME,
  ------------------
  |  |  428|    684|# define OSSL_PKEY_PARAM_GROUP_NAME "group"
  ------------------
  963|    684|        (char *)name, 0);
  964|    684|    return EVP_PKEY_CTX_set_params(ctx, params);
  965|    684|}
EVP_PKEY_Q_keygen:
 1016|    684|{
 1017|    684|    va_list args;
 1018|    684|    size_t bits;
 1019|    684|    char *name;
 1020|    684|    OSSL_PARAM params[] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|    684|    { NULL, 0, NULL, 0, 0 }
  ------------------
                  OSSL_PARAM params[] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|    684|    { NULL, 0, NULL, 0, 0 }
  ------------------
 1021|    684|    EVP_PKEY *ret = NULL;
 1022|       |
 1023|    684|    va_start(args, type);
 1024|       |
 1025|    684|    if (OPENSSL_strcasecmp(type, "RSA") == 0) {
  ------------------
  |  Branch (1025:9): [True: 0, False: 684]
  ------------------
 1026|      0|        bits = va_arg(args, size_t);
 1027|      0|        params[0] = OSSL_PARAM_construct_size_t(OSSL_PKEY_PARAM_RSA_BITS, &bits);
  ------------------
  |  |  453|      0|# define OSSL_PKEY_PARAM_RSA_BITS OSSL_PKEY_PARAM_BITS
  |  |  ------------------
  |  |  |  |  374|      0|# define OSSL_PKEY_PARAM_BITS "bits"
  |  |  ------------------
  ------------------
 1028|    684|    } else if (OPENSSL_strcasecmp(type, "EC") == 0) {
  ------------------
  |  Branch (1028:16): [True: 0, False: 684]
  ------------------
 1029|      0|        name = va_arg(args, char *);
 1030|      0|        params[0] = OSSL_PARAM_construct_utf8_string(OSSL_PKEY_PARAM_GROUP_NAME,
  ------------------
  |  |  428|      0|# define OSSL_PKEY_PARAM_GROUP_NAME "group"
  ------------------
 1031|      0|            name, 0);
 1032|      0|    }
 1033|       |
 1034|    684|    ret = evp_pkey_keygen(libctx, type, propq, params);
 1035|       |
 1036|       |    va_end(args);
 1037|    684|    return ret;
 1038|    684|}
evp_lib.c:evp_pkey_keygen:
 1001|    684|{
 1002|    684|    EVP_PKEY *pkey = NULL;
 1003|    684|    EVP_PKEY_CTX *ctx = EVP_PKEY_CTX_new_from_name(libctx, name, propq);
 1004|       |
 1005|    684|    if (ctx != NULL
  ------------------
  |  Branch (1005:9): [True: 684, False: 0]
  ------------------
 1006|    684|        && EVP_PKEY_keygen_init(ctx) > 0
  ------------------
  |  Branch (1006:12): [True: 684, False: 0]
  ------------------
 1007|    684|        && EVP_PKEY_CTX_set_params(ctx, params))
  ------------------
  |  Branch (1007:12): [True: 684, False: 0]
  ------------------
 1008|    684|        (void)EVP_PKEY_generate(ctx, &pkey);
 1009|       |
 1010|    684|    EVP_PKEY_CTX_free(ctx);
 1011|    684|    return pkey;
 1012|    684|}

EVP_PKEY_type:
   63|  56.2k|{
   64|  56.2k|#ifndef OPENSSL_NO_DEPRECATED_3_6
   65|  56.2k|    int ret;
   66|  56.2k|    const EVP_PKEY_ASN1_METHOD *ameth;
   67|       |
   68|  56.2k|    ameth = evp_pkey_asn1_find(type);
   69|  56.2k|    if (ameth)
  ------------------
  |  Branch (69:9): [True: 54.7k, False: 1.51k]
  ------------------
   70|  54.7k|        ret = ameth->pkey_id;
   71|  1.51k|    else
   72|  1.51k|        ret = NID_undef;
  ------------------
  |  |   18|  1.51k|#define NID_undef                       0
  ------------------
   73|  56.2k|    return ret;
   74|       |#else
   75|       |    size_t i;
   76|       |
   77|       |    for (i = 0; i < OSSL_NELEM(base_id_conversion); i++) {
   78|       |        if (type == base_id_conversion[i].pkey_id)
   79|       |            return base_id_conversion[i].pkey_base_id;
   80|       |    }
   81|       |    return NID_undef;
   82|       |#endif
   83|  56.2k|}

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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  347|      0|        return NULL;
  348|      0|    }
  349|       |
  350|      4|    ctx = OPENSSL_zalloc(sizeof(*ctx));
  ------------------
  |  |  109|      4|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  360|      0|            CRYPTO_FREE_REF(&ctx->refcnt);
  361|      0|            OPENSSL_free(ctx);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  372|      0|        rand->freectx(ctx->algctx);
  373|      0|        CRYPTO_FREE_REF(&ctx->refcnt);
  374|      0|        OPENSSL_free(ctx);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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.96k|{
  416|  1.96k|    int res;
  417|       |
  418|  1.96k|    if (!evp_rand_lock(ctx))
  ------------------
  |  Branch (418:9): [True: 0, False: 1.96k]
  ------------------
  419|      0|        return 0;
  420|  1.96k|    res = evp_rand_get_ctx_params_locked(ctx, params);
  421|  1.96k|    evp_rand_unlock(ctx);
  422|  1.96k|    return res;
  423|  1.96k|}
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|  11.1k|{
  585|  11.1k|    int res;
  586|       |
  587|  11.1k|    if (!evp_rand_lock(ctx))
  ------------------
  |  Branch (587:9): [True: 0, False: 11.1k]
  ------------------
  588|      0|        return 0;
  589|  11.1k|    res = evp_rand_generate_locked(ctx, out, outlen, strength,
  590|  11.1k|        prediction_resistance, addin, addin_len);
  591|  11.1k|    evp_rand_unlock(ctx);
  592|  11.1k|    return res;
  593|  11.1k|}
EVP_RAND_get_state:
  668|  1.96k|{
  669|  1.96k|    OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|  1.96k|    { NULL, 0, NULL, 0, 0 }
  ------------------
                  OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|  1.96k|    { NULL, 0, NULL, 0, 0 }
  ------------------
  670|  1.96k|    int state;
  671|       |
  672|  1.96k|    params[0] = OSSL_PARAM_construct_int(OSSL_RAND_PARAM_STATE, &state);
  ------------------
  |  |  552|  1.96k|# define OSSL_RAND_PARAM_STATE "state"
  ------------------
  673|  1.96k|    if (!EVP_RAND_CTX_get_params(ctx, params))
  ------------------
  |  Branch (673:9): [True: 0, False: 1.96k]
  ------------------
  674|      0|        state = EVP_RAND_STATE_ERROR;
  ------------------
  |  | 1251|      0|#define EVP_RAND_STATE_ERROR 2
  ------------------
  675|  1.96k|    return state;
  676|  1.96k|}
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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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:
  ------------------
  |  |  541|      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:
  ------------------
  |  |  542|      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:
  ------------------
  |  |  543|      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:
  ------------------
  |  |  544|      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:
  ------------------
  |  |  545|      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:
  ------------------
  |  |  546|      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:
  ------------------
  |  |  547|      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:
  ------------------
  |  |  548|      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:
  ------------------
  |  |  549|      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:
  ------------------
  |  |  550|      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:
  ------------------
  |  |  551|      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:
  ------------------
  |  |  552|      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:
  ------------------
  |  |  553|      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:
  ------------------
  |  |  554|      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:
  ------------------
  |  |  555|      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:
  ------------------
  |  |  556|      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:
  ------------------
  |  |  557|      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:
  ------------------
  |  |  558|      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:
  ------------------
  |  |  559|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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));
  ------------------
  |  |  109|      5|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   74|      0|    ossl_provider_free(rand->prov);
   75|      0|    CRYPTO_FREE_REF(&rand->refcnt);
   76|      0|    OPENSSL_free(rand);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   77|      0|}
evp_rand.c:evp_rand_lock:
  104|  13.0k|{
  105|  13.0k|    if (rand->meth->lock != NULL)
  ------------------
  |  Branch (105:9): [True: 13.0k, False: 0]
  ------------------
  106|  13.0k|        return rand->meth->lock(rand->algctx);
  107|      0|    return 1;
  108|  13.0k|}
evp_rand.c:evp_rand_get_ctx_params_locked:
  410|  13.0k|{
  411|  13.0k|    return ctx->meth->get_ctx_params(ctx->algctx, params);
  412|  13.0k|}
evp_rand.c:evp_rand_unlock:
  112|  13.0k|{
  113|  13.0k|    if (rand->meth->unlock != NULL)
  ------------------
  |  Branch (113:9): [True: 13.0k, False: 0]
  ------------------
  114|  13.0k|        rand->meth->unlock(rand->algctx);
  115|  13.0k|}
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|  11.1k|{
  555|  11.1k|    size_t chunk, max_request = 0;
  556|  11.1k|    OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|  11.1k|    { NULL, 0, NULL, 0, 0 }
  ------------------
                  OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|  11.1k|    { NULL, 0, NULL, 0, 0 }
  ------------------
  557|       |
  558|  11.1k|    params[0] = OSSL_PARAM_construct_size_t(OSSL_RAND_PARAM_MAX_REQUEST,
  ------------------
  |  |  551|  11.1k|# define OSSL_RAND_PARAM_MAX_REQUEST "max_request"
  ------------------
  559|  11.1k|        &max_request);
  560|  11.1k|    if (!evp_rand_get_ctx_params_locked(ctx, params)
  ------------------
  |  Branch (560:9): [True: 0, False: 11.1k]
  ------------------
  561|  11.1k|        || max_request == 0) {
  ------------------
  |  Branch (561:12): [True: 0, False: 11.1k]
  ------------------
  562|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_UNABLE_TO_GET_MAXIMUM_REQUEST_SIZE);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  563|      0|        return 0;
  564|      0|    }
  565|  22.2k|    for (; outlen > 0; outlen -= chunk, out += chunk) {
  ------------------
  |  Branch (565:12): [True: 11.1k, False: 11.1k]
  ------------------
  566|  11.1k|        chunk = outlen > max_request ? max_request : outlen;
  ------------------
  |  Branch (566:17): [True: 0, False: 11.1k]
  ------------------
  567|  11.1k|        if (!ctx->meth->generate(ctx->algctx, out, chunk, strength,
  ------------------
  |  Branch (567:13): [True: 0, False: 11.1k]
  ------------------
  568|  11.1k|                prediction_resistance, addin, addin_len)) {
  569|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_GENERATE_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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|  11.1k|        prediction_resistance = 0;
  577|  11.1k|    }
  578|  11.1k|    return 1;
  579|  11.1k|}

EVP_KEYEXCH_free:
  162|    701|{
  163|    701|    int i;
  164|       |
  165|    701|    if (exchange == NULL)
  ------------------
  |  Branch (165:9): [True: 0, False: 701]
  ------------------
  166|      0|        return;
  167|    701|    CRYPTO_DOWN_REF(&exchange->refcnt, &i);
  168|    701|    if (i > 0)
  ------------------
  |  Branch (168:9): [True: 701, False: 0]
  ------------------
  169|    701|        return;
  170|      0|    OPENSSL_free(exchange->type_name);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  171|      0|    ossl_provider_free(exchange->prov);
  172|      0|    CRYPTO_FREE_REF(&exchange->refcnt);
  173|      0|    OPENSSL_free(exchange);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  174|      0|}
EVP_KEYEXCH_up_ref:
  177|    703|{
  178|    703|    int ref = 0;
  179|       |
  180|    703|    CRYPTO_UP_REF(&exchange->refcnt, &ref);
  181|    703|    return 1;
  182|    703|}
EVP_KEYEXCH_fetch:
  191|    694|{
  192|    694|    return evp_generic_fetch(ctx, OSSL_OP_KEYEXCH, algorithm, properties,
  ------------------
  |  |  289|    694|#define OSSL_OP_KEYEXCH 11
  ------------------
  193|    694|        evp_keyexch_from_algorithm,
  194|    694|        evp_keyexch_up_ref,
  195|    694|        evp_keyexch_free);
  196|    694|}
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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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:
  ------------------
  |  |  769|      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:
  ------------------
  |  |  770|      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:
  ------------------
  |  |  772|      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:
  ------------------
  |  |  771|      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:
  ------------------
  |  |  773|      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:
  ------------------
  |  |  774|      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:
  ------------------
  |  |  777|      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:
  ------------------
  |  |  778|      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:
  ------------------
  |  |  775|      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:
  ------------------
  |  |  776|      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:
  ------------------
  |  |  779|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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));
  ------------------
  |  |  109|      7|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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|    703|{
   29|    703|    return EVP_KEYEXCH_up_ref(data);
   30|    703|}
exchange.c:evp_keyexch_free:
   23|      7|{
   24|      7|    EVP_KEYEXCH_free(data);
   25|      7|}

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

EVP_KEYMGMT_fetch:
  287|  21.1k|{
  288|  21.1k|    return evp_generic_fetch(ctx, OSSL_OP_KEYMGMT, algorithm, properties,
  ------------------
  |  |  288|  21.1k|#define OSSL_OP_KEYMGMT 10
  ------------------
  289|  21.1k|        keymgmt_from_algorithm,
  290|  21.1k|        evp_keymgmt_up_ref,
  291|  21.1k|        evp_keymgmt_free);
  292|  21.1k|}
EVP_KEYMGMT_up_ref:
  295|   160k|{
  296|   160k|    int ref = 0;
  297|       |
  298|   160k|    CRYPTO_UP_REF(&keymgmt->refcnt, &ref);
  299|   160k|    return 1;
  300|   160k|}
EVP_KEYMGMT_free:
  303|   160k|{
  304|   160k|    int ref = 0;
  305|       |
  306|   160k|    if (keymgmt == NULL)
  ------------------
  |  Branch (306:9): [True: 0, False: 160k]
  ------------------
  307|      0|        return;
  308|       |
  309|   160k|    CRYPTO_DOWN_REF(&keymgmt->refcnt, &ref);
  310|   160k|    if (ref > 0)
  ------------------
  |  Branch (310:9): [True: 160k, False: 0]
  ------------------
  311|   160k|        return;
  312|      0|    OPENSSL_free(keymgmt->type_name);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  313|      0|    ossl_provider_free(keymgmt->prov);
  314|      0|    CRYPTO_FREE_REF(&keymgmt->refcnt);
  315|      0|    OPENSSL_free(keymgmt);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  316|      0|}
EVP_KEYMGMT_get0_provider:
  319|  44.1k|{
  320|  44.1k|    return keymgmt->prov;
  321|  44.1k|}
evp_keymgmt_get_legacy_alg:
  329|  10.3k|{
  330|  10.3k|    return keymgmt->legacy_alg;
  331|  10.3k|}
EVP_KEYMGMT_is_a:
  344|  41.3k|{
  345|  41.3k|    return keymgmt != NULL
  ------------------
  |  Branch (345:12): [True: 41.3k, False: 0]
  ------------------
  346|  41.3k|        && evp_is_a(keymgmt->prov, keymgmt->name_id, NULL, name);
  ------------------
  |  Branch (346:12): [True: 41.3k, False: 0]
  ------------------
  347|  41.3k|}
EVP_KEYMGMT_do_all_provided:
  352|      2|{
  353|      2|    evp_generic_do_all(libctx, OSSL_OP_KEYMGMT,
  ------------------
  |  |  288|      2|#define OSSL_OP_KEYMGMT 10
  ------------------
  354|      2|        (void (*)(void *, void *))fn, arg,
  355|      2|        keymgmt_from_algorithm,
  356|      2|        evp_keymgmt_up_ref,
  357|      2|        evp_keymgmt_free);
  358|      2|}
EVP_KEYMGMT_names_do_all:
  363|  42.7k|{
  364|  42.7k|    if (keymgmt->prov != NULL)
  ------------------
  |  Branch (364:9): [True: 42.7k, False: 0]
  ------------------
  365|  42.7k|        return evp_names_do_all(keymgmt->prov, keymgmt->name_id, fn, data);
  366|       |
  367|      0|    return 1;
  368|  42.7k|}
evp_keymgmt_freedata:
  390|  42.7k|{
  391|       |    /* This is mandatory, no need to check for its presence */
  392|  42.7k|    keymgmt->free(keydata);
  393|  42.7k|}
evp_keymgmt_gen_init:
  397|  1.36k|{
  398|  1.36k|    void *provctx = ossl_provider_ctx(EVP_KEYMGMT_get0_provider(keymgmt));
  399|       |
  400|  1.36k|    if (keymgmt->gen_init == NULL)
  ------------------
  |  Branch (400:9): [True: 0, False: 1.36k]
  ------------------
  401|      0|        return NULL;
  402|  1.36k|    return keymgmt->gen_init(provctx, selection, params);
  403|  1.36k|}
evp_keymgmt_gen_set_params:
  421|  1.36k|{
  422|  1.36k|    if (keymgmt->gen_set_params == NULL)
  ------------------
  |  Branch (422:9): [True: 0, False: 1.36k]
  ------------------
  423|      0|        return 0;
  424|  1.36k|    return keymgmt->gen_set_params(genctx, params);
  425|  1.36k|}
evp_keymgmt_gen:
  455|  1.36k|{
  456|  1.36k|    void *ret;
  457|  1.36k|    const char *desc = keymgmt->description != NULL ? keymgmt->description : "";
  ------------------
  |  Branch (457:24): [True: 1.36k, False: 0]
  ------------------
  458|       |
  459|  1.36k|    if (keymgmt->gen == NULL) {
  ------------------
  |  Branch (459:9): [True: 0, False: 1.36k]
  ------------------
  460|      0|        ERR_raise_data(ERR_LIB_EVP, EVP_R_PROVIDER_KEYMGMT_NOT_SUPPORTED,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_PROVIDER_KEYMGMT_NOT_SUPPORTED,
  ------------------
  |  |   59|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_PROVIDER_KEYMGMT_NOT_SUPPORTED,
  ------------------
  |  |  110|      0|#define EVP_R_PROVIDER_KEYMGMT_NOT_SUPPORTED 236
  ------------------
  461|      0|            "%s key generation:%s", keymgmt->type_name, desc);
  462|      0|        return NULL;
  463|      0|    }
  464|       |
  465|  1.36k|    ERR_set_mark();
  466|  1.36k|    ret = keymgmt->gen(genctx, cb, cbarg);
  467|  1.36k|    if (ret == NULL && ERR_count_to_mark() == 0)
  ------------------
  |  Branch (467:9): [True: 0, False: 1.36k]
  |  Branch (467:24): [True: 0, False: 0]
  ------------------
  468|      0|        ERR_raise_data(ERR_LIB_EVP, EVP_R_PROVIDER_KEYMGMT_FAILURE,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_PROVIDER_KEYMGMT_FAILURE,
  ------------------
  |  |   59|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_PROVIDER_KEYMGMT_FAILURE,
  ------------------
  |  |  109|      0|#define EVP_R_PROVIDER_KEYMGMT_FAILURE 233
  ------------------
  469|      0|            "%s key generation:%s", keymgmt->type_name, desc);
  470|  1.36k|    ERR_clear_last_mark();
  471|  1.36k|    return ret;
  472|  1.36k|}
evp_keymgmt_gen_cleanup:
  475|  1.36k|{
  476|  1.36k|    if (keymgmt->gen_cleanup != NULL)
  ------------------
  |  Branch (476:9): [True: 1.36k, False: 0]
  ------------------
  477|  1.36k|        keymgmt->gen_cleanup(genctx);
  478|  1.36k|}
evp_keymgmt_has_load:
  481|  82.7k|{
  482|  82.7k|    return keymgmt != NULL && keymgmt->load != NULL;
  ------------------
  |  Branch (482:12): [True: 82.7k, False: 0]
  |  Branch (482:31): [True: 82.7k, False: 0]
  ------------------
  483|  82.7k|}
evp_keymgmt_load:
  487|  41.3k|{
  488|  41.3k|    if (evp_keymgmt_has_load(keymgmt))
  ------------------
  |  Branch (488:9): [True: 41.3k, False: 0]
  ------------------
  489|  41.3k|        return keymgmt->load(objref, objref_sz);
  490|      0|    return NULL;
  491|  41.3k|}
evp_keymgmt_get_params:
  495|  44.1k|{
  496|  44.1k|    if (keymgmt->get_params == NULL)
  ------------------
  |  Branch (496:9): [True: 0, False: 44.1k]
  ------------------
  497|      0|        return 1;
  498|  44.1k|    return keymgmt->get_params(keydata, params);
  499|  44.1k|}
evp_keymgmt_export:
  574|    684|{
  575|    684|    if (keymgmt->export == NULL)
  ------------------
  |  Branch (575:9): [True: 0, False: 684]
  ------------------
  576|      0|        return 0;
  577|    684|    return keymgmt->export(keydata, selection, param_cb, cbarg);
  578|    684|}
keymgmt_meth.c:keymgmt_from_algorithm:
   66|     42|{
   67|     42|    const OSSL_DISPATCH *fns = algodef->implementation;
   68|     42|    EVP_KEYMGMT *keymgmt = NULL;
   69|     42|    int setparamfncnt = 0, getparamfncnt = 0;
   70|     42|    int setgenparamfncnt = 0;
   71|     42|    int importfncnt = 0, exportfncnt = 0;
   72|     42|    int importtypesfncnt = 0, exporttypesfncnt = 0;
   73|     42|    int getgenparamfncnt = 0;
   74|       |
   75|     42|    if ((keymgmt = keymgmt_new()) == NULL)
  ------------------
  |  Branch (75:9): [True: 0, False: 42]
  ------------------
   76|      0|        return NULL;
   77|       |
   78|     42|    keymgmt->name_id = name_id;
   79|     42|    if ((keymgmt->type_name = ossl_algorithm_get1_first_name(algodef)) == NULL) {
  ------------------
  |  Branch (79:9): [True: 0, False: 42]
  ------------------
   80|      0|        EVP_KEYMGMT_free(keymgmt);
   81|      0|        return NULL;
   82|      0|    }
   83|     42|    keymgmt->description = algodef->algorithm_description;
   84|       |
   85|    794|    for (; fns->function_id != 0; fns++) {
  ------------------
  |  Branch (85:12): [True: 752, False: 42]
  ------------------
   86|    752|        switch (fns->function_id) {
  ------------------
  |  Branch (86:17): [True: 752, False: 0]
  ------------------
   87|     42|        case OSSL_FUNC_KEYMGMT_NEW:
  ------------------
  |  |  664|     42|#define OSSL_FUNC_KEYMGMT_NEW 1
  ------------------
  |  Branch (87:9): [True: 42, False: 710]
  ------------------
   88|     42|            if (keymgmt->new == NULL)
  ------------------
  |  Branch (88:17): [True: 42, False: 0]
  ------------------
   89|     42|                keymgmt->new = OSSL_FUNC_keymgmt_new(fns);
   90|     42|            break;
   91|      6|        case OSSL_FUNC_KEYMGMT_NEW_EX:
  ------------------
  |  |  666|      6|#define OSSL_FUNC_KEYMGMT_NEW_EX 17
  ------------------
  |  Branch (91:9): [True: 6, False: 746]
  ------------------
   92|      6|            if (keymgmt->new_ex == NULL)
  ------------------
  |  Branch (92:17): [True: 6, False: 0]
  ------------------
   93|      6|                keymgmt->new_ex = OSSL_FUNC_keymgmt_new_ex(fns);
   94|      6|            break;
   95|     39|        case OSSL_FUNC_KEYMGMT_GEN_INIT:
  ------------------
  |  |  670|     39|#define OSSL_FUNC_KEYMGMT_GEN_INIT 2
  ------------------
  |  Branch (95:9): [True: 39, False: 713]
  ------------------
   96|     39|            if (keymgmt->gen_init == NULL)
  ------------------
  |  Branch (96:17): [True: 39, False: 0]
  ------------------
   97|     39|                keymgmt->gen_init = OSSL_FUNC_keymgmt_gen_init(fns);
   98|     39|            break;
   99|      6|        case OSSL_FUNC_KEYMGMT_GEN_SET_TEMPLATE:
  ------------------
  |  |  671|      6|#define OSSL_FUNC_KEYMGMT_GEN_SET_TEMPLATE 3
  ------------------
  |  Branch (99:9): [True: 6, False: 746]
  ------------------
  100|      6|            if (keymgmt->gen_set_template == NULL)
  ------------------
  |  Branch (100:17): [True: 6, False: 0]
  ------------------
  101|      6|                keymgmt->gen_set_template = OSSL_FUNC_keymgmt_gen_set_template(fns);
  102|      6|            break;
  103|     39|        case OSSL_FUNC_KEYMGMT_GEN_SET_PARAMS:
  ------------------
  |  |  672|     39|#define OSSL_FUNC_KEYMGMT_GEN_SET_PARAMS 4
  ------------------
  |  Branch (103:9): [True: 39, False: 713]
  ------------------
  104|     39|            if (keymgmt->gen_set_params == NULL) {
  ------------------
  |  Branch (104:17): [True: 39, False: 0]
  ------------------
  105|     39|                setgenparamfncnt++;
  106|     39|                keymgmt->gen_set_params = OSSL_FUNC_keymgmt_gen_set_params(fns);
  107|     39|            }
  108|     39|            break;
  109|     39|        case OSSL_FUNC_KEYMGMT_GEN_SETTABLE_PARAMS:
  ------------------
  |  |  673|     39|#define OSSL_FUNC_KEYMGMT_GEN_SETTABLE_PARAMS 5
  ------------------
  |  Branch (109:9): [True: 39, False: 713]
  ------------------
  110|     39|            if (keymgmt->gen_settable_params == NULL) {
  ------------------
  |  Branch (110:17): [True: 39, False: 0]
  ------------------
  111|     39|                setgenparamfncnt++;
  112|     39|                keymgmt->gen_settable_params = OSSL_FUNC_keymgmt_gen_settable_params(fns);
  113|     39|            }
  114|     39|            break;
  115|      2|        case OSSL_FUNC_KEYMGMT_GEN_GET_PARAMS:
  ------------------
  |  |  676|      2|#define OSSL_FUNC_KEYMGMT_GEN_GET_PARAMS 15
  ------------------
  |  Branch (115:9): [True: 2, False: 750]
  ------------------
  116|      2|            if (keymgmt->gen_get_params == NULL) {
  ------------------
  |  Branch (116:17): [True: 2, False: 0]
  ------------------
  117|      2|                getgenparamfncnt++;
  118|      2|                keymgmt->gen_get_params = OSSL_FUNC_keymgmt_gen_get_params(fns);
  119|      2|            }
  120|      2|            break;
  121|      2|        case OSSL_FUNC_KEYMGMT_GEN_GETTABLE_PARAMS:
  ------------------
  |  |  677|      2|#define OSSL_FUNC_KEYMGMT_GEN_GETTABLE_PARAMS 16
  ------------------
  |  Branch (121:9): [True: 2, False: 750]
  ------------------
  122|      2|            if (keymgmt->gen_gettable_params == NULL) {
  ------------------
  |  Branch (122:17): [True: 2, False: 0]
  ------------------
  123|      2|                getgenparamfncnt++;
  124|      2|                keymgmt->gen_gettable_params = OSSL_FUNC_keymgmt_gen_gettable_params(fns);
  125|      2|            }
  126|      2|            break;
  127|     39|        case OSSL_FUNC_KEYMGMT_GEN:
  ------------------
  |  |  674|     39|#define OSSL_FUNC_KEYMGMT_GEN 6
  ------------------
  |  Branch (127:9): [True: 39, False: 713]
  ------------------
  128|     39|            if (keymgmt->gen == NULL)
  ------------------
  |  Branch (128:17): [True: 39, False: 0]
  ------------------
  129|     39|                keymgmt->gen = OSSL_FUNC_keymgmt_gen(fns);
  130|     39|            break;
  131|     39|        case OSSL_FUNC_KEYMGMT_GEN_CLEANUP:
  ------------------
  |  |  675|     39|#define OSSL_FUNC_KEYMGMT_GEN_CLEANUP 7
  ------------------
  |  Branch (131:9): [True: 39, False: 713]
  ------------------
  132|     39|            if (keymgmt->gen_cleanup == NULL)
  ------------------
  |  Branch (132:17): [True: 39, False: 0]
  ------------------
  133|     39|                keymgmt->gen_cleanup = OSSL_FUNC_keymgmt_gen_cleanup(fns);
  134|     39|            break;
  135|     42|        case OSSL_FUNC_KEYMGMT_FREE:
  ------------------
  |  |  702|     42|#define OSSL_FUNC_KEYMGMT_FREE 10
  ------------------
  |  Branch (135:9): [True: 42, False: 710]
  ------------------
  136|     42|            if (keymgmt->free == NULL)
  ------------------
  |  Branch (136:17): [True: 42, False: 0]
  ------------------
  137|     42|                keymgmt->free = OSSL_FUNC_keymgmt_free(fns);
  138|     42|            break;
  139|     30|        case OSSL_FUNC_KEYMGMT_LOAD:
  ------------------
  |  |  697|     30|#define OSSL_FUNC_KEYMGMT_LOAD 8
  ------------------
  |  Branch (139:9): [True: 30, False: 722]
  ------------------
  140|     30|            if (keymgmt->load == NULL)
  ------------------
  |  Branch (140:17): [True: 30, False: 0]
  ------------------
  141|     30|                keymgmt->load = OSSL_FUNC_keymgmt_load(fns);
  142|     30|            break;
  143|     39|        case OSSL_FUNC_KEYMGMT_GET_PARAMS:
  ------------------
  |  |  706|     39|#define OSSL_FUNC_KEYMGMT_GET_PARAMS 11
  ------------------
  |  Branch (143:9): [True: 39, False: 713]
  ------------------
  144|     39|            if (keymgmt->get_params == NULL) {
  ------------------
  |  Branch (144:17): [True: 39, False: 0]
  ------------------
  145|     39|                getparamfncnt++;
  146|     39|                keymgmt->get_params = OSSL_FUNC_keymgmt_get_params(fns);
  147|     39|            }
  148|     39|            break;
  149|     39|        case OSSL_FUNC_KEYMGMT_GETTABLE_PARAMS:
  ------------------
  |  |  707|     39|#define OSSL_FUNC_KEYMGMT_GETTABLE_PARAMS 12
  ------------------
  |  Branch (149:9): [True: 39, False: 713]
  ------------------
  150|     39|            if (keymgmt->gettable_params == NULL) {
  ------------------
  |  Branch (150:17): [True: 39, False: 0]
  ------------------
  151|     39|                getparamfncnt++;
  152|     39|                keymgmt->gettable_params = OSSL_FUNC_keymgmt_gettable_params(fns);
  153|     39|            }
  154|     39|            break;
  155|     21|        case OSSL_FUNC_KEYMGMT_SET_PARAMS:
  ------------------
  |  |  713|     21|#define OSSL_FUNC_KEYMGMT_SET_PARAMS 13
  ------------------
  |  Branch (155:9): [True: 21, False: 731]
  ------------------
  156|     21|            if (keymgmt->set_params == NULL) {
  ------------------
  |  Branch (156:17): [True: 21, False: 0]
  ------------------
  157|     21|                setparamfncnt++;
  158|     21|                keymgmt->set_params = OSSL_FUNC_keymgmt_set_params(fns);
  159|     21|            }
  160|     21|            break;
  161|     21|        case OSSL_FUNC_KEYMGMT_SETTABLE_PARAMS:
  ------------------
  |  |  714|     21|#define OSSL_FUNC_KEYMGMT_SETTABLE_PARAMS 14
  ------------------
  |  Branch (161:9): [True: 21, False: 731]
  ------------------
  162|     21|            if (keymgmt->settable_params == NULL) {
  ------------------
  |  Branch (162:17): [True: 21, False: 0]
  ------------------
  163|     21|                setparamfncnt++;
  164|     21|                keymgmt->settable_params = OSSL_FUNC_keymgmt_settable_params(fns);
  165|     21|            }
  166|     21|            break;
  167|      5|        case OSSL_FUNC_KEYMGMT_QUERY_OPERATION_NAME:
  ------------------
  |  |  721|      5|#define OSSL_FUNC_KEYMGMT_QUERY_OPERATION_NAME 20
  ------------------
  |  Branch (167:9): [True: 5, False: 747]
  ------------------
  168|      5|            if (keymgmt->query_operation_name == NULL)
  ------------------
  |  Branch (168:17): [True: 5, False: 0]
  ------------------
  169|      5|                keymgmt->query_operation_name = OSSL_FUNC_keymgmt_query_operation_name(fns);
  170|      5|            break;
  171|     42|        case OSSL_FUNC_KEYMGMT_HAS:
  ------------------
  |  |  726|     42|#define OSSL_FUNC_KEYMGMT_HAS 21
  ------------------
  |  Branch (171:9): [True: 42, False: 710]
  ------------------
  172|     42|            if (keymgmt->has == NULL)
  ------------------
  |  Branch (172:17): [True: 42, False: 0]
  ------------------
  173|     42|                keymgmt->has = OSSL_FUNC_keymgmt_has(fns);
  174|     42|            break;
  175|     35|        case OSSL_FUNC_KEYMGMT_DUP:
  ------------------
  |  |  755|     35|#define OSSL_FUNC_KEYMGMT_DUP 44
  ------------------
  |  Branch (175:9): [True: 35, False: 717]
  ------------------
  176|     35|            if (keymgmt->dup == NULL)
  ------------------
  |  Branch (176:17): [True: 35, False: 0]
  ------------------
  177|     35|                keymgmt->dup = OSSL_FUNC_keymgmt_dup(fns);
  178|     35|            break;
  179|     30|        case OSSL_FUNC_KEYMGMT_VALIDATE:
  ------------------
  |  |  730|     30|#define OSSL_FUNC_KEYMGMT_VALIDATE 22
  ------------------
  |  Branch (179:9): [True: 30, False: 722]
  ------------------
  180|     30|            if (keymgmt->validate == NULL)
  ------------------
  |  Branch (180:17): [True: 30, False: 0]
  ------------------
  181|     30|                keymgmt->validate = OSSL_FUNC_keymgmt_validate(fns);
  182|     30|            break;
  183|     39|        case OSSL_FUNC_KEYMGMT_MATCH:
  ------------------
  |  |  734|     39|#define OSSL_FUNC_KEYMGMT_MATCH 23
  ------------------
  |  Branch (183:9): [True: 39, False: 713]
  ------------------
  184|     39|            if (keymgmt->match == NULL)
  ------------------
  |  Branch (184:17): [True: 39, False: 0]
  ------------------
  185|     39|                keymgmt->match = OSSL_FUNC_keymgmt_match(fns);
  186|     39|            break;
  187|     39|        case OSSL_FUNC_KEYMGMT_IMPORT:
  ------------------
  |  |  740|     39|#define OSSL_FUNC_KEYMGMT_IMPORT 40
  ------------------
  |  Branch (187:9): [True: 39, False: 713]
  ------------------
  188|     39|            if (keymgmt->import == NULL) {
  ------------------
  |  Branch (188:17): [True: 39, False: 0]
  ------------------
  189|     39|                importfncnt++;
  190|     39|                keymgmt->import = OSSL_FUNC_keymgmt_import(fns);
  191|     39|            }
  192|     39|            break;
  193|     39|        case OSSL_FUNC_KEYMGMT_IMPORT_TYPES:
  ------------------
  |  |  741|     39|#define OSSL_FUNC_KEYMGMT_IMPORT_TYPES 41
  ------------------
  |  Branch (193:9): [True: 39, False: 713]
  ------------------
  194|     39|            if (keymgmt->import_types == NULL) {
  ------------------
  |  Branch (194:17): [True: 39, False: 0]
  ------------------
  195|     39|                if (importtypesfncnt == 0)
  ------------------
  |  Branch (195:21): [True: 39, False: 0]
  ------------------
  196|     39|                    importfncnt++;
  197|     39|                importtypesfncnt++;
  198|     39|                keymgmt->import_types = OSSL_FUNC_keymgmt_import_types(fns);
  199|     39|            }
  200|     39|            break;
  201|      0|        case OSSL_FUNC_KEYMGMT_IMPORT_TYPES_EX:
  ------------------
  |  |  760|      0|#define OSSL_FUNC_KEYMGMT_IMPORT_TYPES_EX 45
  ------------------
  |  Branch (201:9): [True: 0, False: 752]
  ------------------
  202|      0|            if (keymgmt->import_types_ex == NULL) {
  ------------------
  |  Branch (202:17): [True: 0, False: 0]
  ------------------
  203|      0|                if (importtypesfncnt == 0)
  ------------------
  |  Branch (203:21): [True: 0, False: 0]
  ------------------
  204|      0|                    importfncnt++;
  205|      0|                importtypesfncnt++;
  206|      0|                keymgmt->import_types_ex = OSSL_FUNC_keymgmt_import_types_ex(fns);
  207|      0|            }
  208|      0|            break;
  209|     39|        case OSSL_FUNC_KEYMGMT_EXPORT:
  ------------------
  |  |  742|     39|#define OSSL_FUNC_KEYMGMT_EXPORT 42
  ------------------
  |  Branch (209:9): [True: 39, False: 713]
  ------------------
  210|     39|            if (keymgmt->export == NULL) {
  ------------------
  |  Branch (210:17): [True: 39, False: 0]
  ------------------
  211|     39|                exportfncnt++;
  212|     39|                keymgmt->export = OSSL_FUNC_keymgmt_export(fns);
  213|     39|            }
  214|     39|            break;
  215|     39|        case OSSL_FUNC_KEYMGMT_EXPORT_TYPES:
  ------------------
  |  |  743|     39|#define OSSL_FUNC_KEYMGMT_EXPORT_TYPES 43
  ------------------
  |  Branch (215:9): [True: 39, False: 713]
  ------------------
  216|     39|            if (keymgmt->export_types == NULL) {
  ------------------
  |  Branch (216:17): [True: 39, False: 0]
  ------------------
  217|     39|                if (exporttypesfncnt == 0)
  ------------------
  |  Branch (217:21): [True: 39, False: 0]
  ------------------
  218|     39|                    exportfncnt++;
  219|     39|                exporttypesfncnt++;
  220|     39|                keymgmt->export_types = OSSL_FUNC_keymgmt_export_types(fns);
  221|     39|            }
  222|     39|            break;
  223|      0|        case OSSL_FUNC_KEYMGMT_EXPORT_TYPES_EX:
  ------------------
  |  |  761|      0|#define OSSL_FUNC_KEYMGMT_EXPORT_TYPES_EX 46
  ------------------
  |  Branch (223:9): [True: 0, False: 752]
  ------------------
  224|      0|            if (keymgmt->export_types_ex == NULL) {
  ------------------
  |  Branch (224:17): [True: 0, False: 0]
  ------------------
  225|      0|                if (exporttypesfncnt == 0)
  ------------------
  |  Branch (225:21): [True: 0, False: 0]
  ------------------
  226|      0|                    exportfncnt++;
  227|      0|                exporttypesfncnt++;
  228|      0|                keymgmt->export_types_ex = OSSL_FUNC_keymgmt_export_types_ex(fns);
  229|      0|            }
  230|      0|            break;
  231|    752|        }
  232|    752|    }
  233|       |    /*
  234|       |     * Try to check that the method is sensible.
  235|       |     * At least one constructor and the destructor are MANDATORY
  236|       |     * The functions 'has' is MANDATORY
  237|       |     * It makes no sense being able to free stuff if you can't create it.
  238|       |     * It makes no sense providing OSSL_PARAM descriptors for import and
  239|       |     * export if you can't import or export.
  240|       |     */
  241|     42|    if (keymgmt->free == NULL
  ------------------
  |  Branch (241:9): [True: 0, False: 42]
  ------------------
  242|     42|        || (keymgmt->new == NULL
  ------------------
  |  Branch (242:13): [True: 0, False: 42]
  ------------------
  243|      0|            && keymgmt->new_ex == NULL
  ------------------
  |  Branch (243:16): [True: 0, False: 0]
  ------------------
  244|      0|            && keymgmt->gen == NULL
  ------------------
  |  Branch (244:16): [True: 0, False: 0]
  ------------------
  245|      0|            && keymgmt->load == NULL)
  ------------------
  |  Branch (245:16): [True: 0, False: 0]
  ------------------
  246|     42|        || keymgmt->has == NULL
  ------------------
  |  Branch (246:12): [True: 0, False: 42]
  ------------------
  247|     42|        || (getparamfncnt != 0 && getparamfncnt != 2)
  ------------------
  |  Branch (247:13): [True: 39, False: 3]
  |  Branch (247:35): [True: 0, False: 39]
  ------------------
  248|     42|        || (setparamfncnt != 0 && setparamfncnt != 2)
  ------------------
  |  Branch (248:13): [True: 21, False: 21]
  |  Branch (248:35): [True: 0, False: 21]
  ------------------
  249|     42|        || (setgenparamfncnt != 0 && setgenparamfncnt != 2)
  ------------------
  |  Branch (249:13): [True: 39, False: 3]
  |  Branch (249:38): [True: 0, False: 39]
  ------------------
  250|     42|        || (getgenparamfncnt != 0 && getgenparamfncnt != 2)
  ------------------
  |  Branch (250:13): [True: 2, False: 40]
  |  Branch (250:38): [True: 0, False: 2]
  ------------------
  251|     42|        || (importfncnt != 0 && importfncnt != 2)
  ------------------
  |  Branch (251:13): [True: 39, False: 3]
  |  Branch (251:33): [True: 0, False: 39]
  ------------------
  252|     42|        || (exportfncnt != 0 && exportfncnt != 2)
  ------------------
  |  Branch (252:13): [True: 39, False: 3]
  |  Branch (252:33): [True: 0, False: 39]
  ------------------
  253|     42|        || (keymgmt->gen != NULL
  ------------------
  |  Branch (253:13): [True: 39, False: 3]
  ------------------
  254|     39|            && (keymgmt->gen_init == NULL
  ------------------
  |  Branch (254:17): [True: 0, False: 39]
  ------------------
  255|     39|                || keymgmt->gen_cleanup == NULL))) {
  ------------------
  |  Branch (255:20): [True: 0, False: 39]
  ------------------
  256|      0|        EVP_KEYMGMT_free(keymgmt);
  257|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  258|      0|        return NULL;
  259|      0|    }
  260|     42|    keymgmt->prov = prov;
  261|     42|    if (prov != NULL && !ossl_provider_up_ref(prov)) {
  ------------------
  |  Branch (261:9): [True: 42, False: 0]
  |  Branch (261:25): [True: 0, False: 42]
  ------------------
  262|      0|        EVP_KEYMGMT_free(keymgmt);
  263|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  264|      0|        return NULL;
  265|      0|    }
  266|       |
  267|     42|#ifndef FIPS_MODULE
  268|     42|    keymgmt->legacy_alg = get_legacy_alg_type_from_keymgmt(keymgmt);
  269|     42|#endif
  270|       |
  271|     42|    return keymgmt;
  272|     42|}
keymgmt_meth.c:keymgmt_new:
   31|     42|{
   32|     42|    EVP_KEYMGMT *keymgmt = NULL;
   33|       |
   34|     42|    if ((keymgmt = OPENSSL_zalloc(sizeof(*keymgmt))) == NULL)
  ------------------
  |  |  109|     42|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (34:9): [True: 0, False: 42]
  ------------------
   35|      0|        return NULL;
   36|     42|    if (!CRYPTO_NEW_REF(&keymgmt->refcnt, 1)) {
  ------------------
  |  Branch (36:9): [True: 0, False: 42]
  ------------------
   37|      0|        EVP_KEYMGMT_free(keymgmt);
   38|      0|        return NULL;
   39|      0|    }
   40|     42|    return keymgmt;
   41|     42|}
keymgmt_meth.c:get_legacy_alg_type_from_keymgmt:
   54|     42|{
   55|     42|    int type = NID_undef;
  ------------------
  |  |   18|     42|#define NID_undef                       0
  ------------------
   56|       |
   57|     42|    EVP_KEYMGMT_names_do_all(keymgmt, help_get_legacy_alg_type_from_keymgmt,
   58|     42|        &type);
   59|     42|    return type;
   60|     42|}
keymgmt_meth.c:help_get_legacy_alg_type_from_keymgmt:
   46|    109|{
   47|    109|    int *type = arg;
   48|       |
   49|    109|    if (*type == NID_undef)
  ------------------
  |  |   18|    109|#define NID_undef                       0
  ------------------
  |  Branch (49:9): [True: 86, False: 23]
  ------------------
   50|     86|        *type = evp_pkey_name2type(keytype);
   51|    109|}
keymgmt_meth.c:evp_keymgmt_up_ref:
   26|  21.2k|{
   27|  21.2k|    return EVP_KEYMGMT_up_ref(data);
   28|  21.2k|}
keymgmt_meth.c:evp_keymgmt_free:
   21|     42|{
   22|     42|    EVP_KEYMGMT_free(data);
   23|     42|}

EVP_blake2b512:
   23|      2|{
   24|      2|    return &blake2b_md;
   25|      2|}
EVP_blake2s256:
   37|      2|{
   38|      2|    return &blake2s_md;
   39|      2|}

EVP_md4:
   29|      2|{
   30|      2|    return &md4_md;
   31|      2|}

EVP_md5:
   29|      2|{
   30|      2|    return &md5_md;
   31|      2|}

EVP_md5_sha1:
   30|      2|{
   31|      2|    return &md5_sha1_md;
   32|      2|}

EVP_mdc2:
   29|      2|{
   30|      2|    return &mdc2_md;
   31|      2|}

EVP_ripemd160:
   29|      2|{
   30|      2|    return &ripemd160_md;
   31|      2|}

EVP_sha1:
   30|      2|{
   31|      2|    return &sha1_md;
   32|      2|}
EVP_sha224:
   44|      2|{
   45|      2|    return &sha224_md;
   46|      2|}
EVP_sha256:
   58|      2|{
   59|      2|    return &sha256_md;
   60|      2|}
EVP_sha512_224:
   72|      2|{
   73|      2|    return &sha512_224_md;
   74|      2|}
EVP_sha512_256:
   86|      2|{
   87|      2|    return &sha512_256_md;
   88|      2|}
EVP_sha384:
  100|      2|{
  101|      2|    return &sha384_md;
  102|      2|}
EVP_sha512:
  114|      2|{
  115|      2|    return &sha512_md;
  116|      2|}
EVP_sha3_224:
  120|      2|    {                                              \
  121|      2|        static const EVP_MD sha3_##bitlen##_md = { \
  122|      2|            NID_sha3_##bitlen,                     \
  ------------------
  |  | 3321|      2|#define NID_sha3_224            1096
  ------------------
  123|      2|            NID_RSA_SHA3_##bitlen,                 \
  ------------------
  |  | 3443|      2|#define NID_RSA_SHA3_224                1116
  ------------------
  124|      2|            bitlen / 8,                            \
  125|      2|            EVP_MD_FLAG_DIGALGID_ABSENT,           \
  ------------------
  |  |  147|      2|#define EVP_MD_FLAG_DIGALGID_ABSENT 0x0008
  ------------------
  126|      2|            EVP_ORIG_GLOBAL,                       \
  ------------------
  |  |  187|      2|#define EVP_ORIG_GLOBAL 1
  ------------------
  127|      2|            (KECCAK1600_WIDTH - bitlen * 2) / 8    \
  ------------------
  |  |   18|      2|#define KECCAK1600_WIDTH 1600
  ------------------
  128|      2|        };                                         \
  129|      2|        return &sha3_##bitlen##_md;                \
  130|      2|    }
EVP_sha3_256:
  120|      2|    {                                              \
  121|      2|        static const EVP_MD sha3_##bitlen##_md = { \
  122|      2|            NID_sha3_##bitlen,                     \
  ------------------
  |  | 3326|      2|#define NID_sha3_256            1097
  ------------------
  123|      2|            NID_RSA_SHA3_##bitlen,                 \
  ------------------
  |  | 3448|      2|#define NID_RSA_SHA3_256                1117
  ------------------
  124|      2|            bitlen / 8,                            \
  125|      2|            EVP_MD_FLAG_DIGALGID_ABSENT,           \
  ------------------
  |  |  147|      2|#define EVP_MD_FLAG_DIGALGID_ABSENT 0x0008
  ------------------
  126|      2|            EVP_ORIG_GLOBAL,                       \
  ------------------
  |  |  187|      2|#define EVP_ORIG_GLOBAL 1
  ------------------
  127|      2|            (KECCAK1600_WIDTH - bitlen * 2) / 8    \
  ------------------
  |  |   18|      2|#define KECCAK1600_WIDTH 1600
  ------------------
  128|      2|        };                                         \
  129|      2|        return &sha3_##bitlen##_md;                \
  130|      2|    }
EVP_sha3_384:
  120|      2|    {                                              \
  121|      2|        static const EVP_MD sha3_##bitlen##_md = { \
  122|      2|            NID_sha3_##bitlen,                     \
  ------------------
  |  | 3331|      2|#define NID_sha3_384            1098
  ------------------
  123|      2|            NID_RSA_SHA3_##bitlen,                 \
  ------------------
  |  | 3453|      2|#define NID_RSA_SHA3_384                1118
  ------------------
  124|      2|            bitlen / 8,                            \
  125|      2|            EVP_MD_FLAG_DIGALGID_ABSENT,           \
  ------------------
  |  |  147|      2|#define EVP_MD_FLAG_DIGALGID_ABSENT 0x0008
  ------------------
  126|      2|            EVP_ORIG_GLOBAL,                       \
  ------------------
  |  |  187|      2|#define EVP_ORIG_GLOBAL 1
  ------------------
  127|      2|            (KECCAK1600_WIDTH - bitlen * 2) / 8    \
  ------------------
  |  |   18|      2|#define KECCAK1600_WIDTH 1600
  ------------------
  128|      2|        };                                         \
  129|      2|        return &sha3_##bitlen##_md;                \
  130|      2|    }
EVP_sha3_512:
  120|      2|    {                                              \
  121|      2|        static const EVP_MD sha3_##bitlen##_md = { \
  122|      2|            NID_sha3_##bitlen,                     \
  ------------------
  |  | 3336|      2|#define NID_sha3_512            1099
  ------------------
  123|      2|            NID_RSA_SHA3_##bitlen,                 \
  ------------------
  |  | 3458|      2|#define NID_RSA_SHA3_512                1119
  ------------------
  124|      2|            bitlen / 8,                            \
  125|      2|            EVP_MD_FLAG_DIGALGID_ABSENT,           \
  ------------------
  |  |  147|      2|#define EVP_MD_FLAG_DIGALGID_ABSENT 0x0008
  ------------------
  126|      2|            EVP_ORIG_GLOBAL,                       \
  ------------------
  |  |  187|      2|#define EVP_ORIG_GLOBAL 1
  ------------------
  127|      2|            (KECCAK1600_WIDTH - bitlen * 2) / 8    \
  ------------------
  |  |   18|      2|#define KECCAK1600_WIDTH 1600
  ------------------
  128|      2|        };                                         \
  129|      2|        return &sha3_##bitlen##_md;                \
  130|      2|    }
EVP_shake128:
  133|      2|    {                                                      \
  134|      2|        static const EVP_MD shake##bitlen##_md = {         \
  135|      2|            NID_shake##bitlen,                             \
  ------------------
  |  | 3341|      2|#define NID_shake128            1100
  ------------------
  136|      2|            0,                                             \
  137|      2|            bitlen / 8,                                    \
  138|      2|            EVP_MD_FLAG_XOF | EVP_MD_FLAG_DIGALGID_ABSENT, \
  ------------------
  |  |  135|      2|#define EVP_MD_FLAG_XOF 0x0002
  ------------------
                          EVP_MD_FLAG_XOF | EVP_MD_FLAG_DIGALGID_ABSENT, \
  ------------------
  |  |  147|      2|#define EVP_MD_FLAG_DIGALGID_ABSENT 0x0008
  ------------------
  139|      2|            EVP_ORIG_GLOBAL,                               \
  ------------------
  |  |  187|      2|#define EVP_ORIG_GLOBAL 1
  ------------------
  140|      2|            (KECCAK1600_WIDTH - bitlen * 2) / 8            \
  ------------------
  |  |   18|      2|#define KECCAK1600_WIDTH 1600
  ------------------
  141|      2|        };                                                 \
  142|      2|        return &shake##bitlen##_md;                        \
  143|      2|    }
EVP_shake256:
  133|      2|    {                                                      \
  134|      2|        static const EVP_MD shake##bitlen##_md = {         \
  135|      2|            NID_shake##bitlen,                             \
  ------------------
  |  | 3346|      2|#define NID_shake256            1101
  ------------------
  136|      2|            0,                                             \
  137|      2|            bitlen / 8,                                    \
  138|      2|            EVP_MD_FLAG_XOF | EVP_MD_FLAG_DIGALGID_ABSENT, \
  ------------------
  |  |  135|      2|#define EVP_MD_FLAG_XOF 0x0002
  ------------------
                          EVP_MD_FLAG_XOF | EVP_MD_FLAG_DIGALGID_ABSENT, \
  ------------------
  |  |  147|      2|#define EVP_MD_FLAG_DIGALGID_ABSENT 0x0008
  ------------------
  139|      2|            EVP_ORIG_GLOBAL,                               \
  ------------------
  |  |  187|      2|#define EVP_ORIG_GLOBAL 1
  ------------------
  140|      2|            (KECCAK1600_WIDTH - bitlen * 2) / 8            \
  ------------------
  |  |   18|      2|#define KECCAK1600_WIDTH 1600
  ------------------
  141|      2|        };                                                 \
  142|      2|        return &shake##bitlen##_md;                        \
  143|      2|    }

EVP_whirlpool:
   29|      2|{
   30|      2|    return &whirlpool_md;
   31|      2|}

EVP_MAC_CTX_free:
   40|  2.07k|{
   41|  2.07k|    if (ctx == NULL)
  ------------------
  |  Branch (41:9): [True: 2.07k, False: 0]
  ------------------
   42|  2.07k|        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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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|  28.0k|{
   42|  28.0k|    if (pkey->type != EVP_PKEY_RSA && pkey->type != EVP_PKEY_RSA_PSS) {
  ------------------
  |  |   63|  28.0k|#define EVP_PKEY_RSA NID_rsaEncryption
  |  |  ------------------
  |  |  |  |  543|  56.0k|#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: 28.0k]
  |  Branch (42:39): [True: 0, False: 0]
  ------------------
   43|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_EXPECTING_AN_RSA_KEY);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   44|      0|        return NULL;
   45|      0|    }
   46|  28.0k|    return evp_pkey_get_legacy((EVP_PKEY *)pkey);
   47|  28.0k|}
EVP_PKEY_get1_RSA:
   55|  28.0k|{
   56|  28.0k|    RSA *ret = evp_pkey_get0_RSA_int(pkey);
   57|       |
   58|  28.0k|    if (ret != NULL && !RSA_up_ref(ret))
  ------------------
  |  Branch (58:9): [True: 28.0k, False: 0]
  |  Branch (58:24): [True: 0, False: 28.0k]
  ------------------
   59|      0|        ret = NULL;
   60|       |
   61|  28.0k|    return ret;
   62|  28.0k|}
evp_pkey_get0_EC_KEY_int:
   77|  13.3k|{
   78|  13.3k|    if (EVP_PKEY_get_base_id(pkey) != EVP_PKEY_EC) {
  ------------------
  |  |   73|  13.3k|#define EVP_PKEY_EC NID_X9_62_id_ecPublicKey
  |  |  ------------------
  |  |  |  |  178|  13.3k|#define NID_X9_62_id_ecPublicKey                408
  |  |  ------------------
  ------------------
  |  Branch (78:9): [True: 0, False: 13.3k]
  ------------------
   79|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_EXPECTING_A_EC_KEY);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   80|      0|        return NULL;
   81|      0|    }
   82|  13.3k|    return evp_pkey_get_legacy((EVP_PKEY *)pkey);
   83|  13.3k|}
EVP_PKEY_get1_EC_KEY:
   91|  13.3k|{
   92|  13.3k|    EC_KEY *ret = evp_pkey_get0_EC_KEY_int(pkey);
   93|       |
   94|  13.3k|    if (ret != NULL && !EC_KEY_up_ref(ret))
  ------------------
  |  Branch (94:9): [True: 13.3k, False: 0]
  |  Branch (94:24): [True: 0, False: 13.3k]
  ------------------
   95|      0|        ret = NULL;
   96|  13.3k|    return ret;
   97|  13.3k|}

EVP_PKEY_set_type:
  693|  91.7k|{
  694|  91.7k|    return pkey_set_type(pkey, type, NULL, -1, NULL);
  695|  91.7k|}
EVP_PKEY_assign:
  738|  41.3k|{
  739|  41.3k|#ifndef OPENSSL_NO_EC
  740|  41.3k|    int pktype;
  741|       |
  742|  41.3k|    pktype = EVP_PKEY_type(type);
  743|  41.3k|    if ((key != NULL) && (pktype == EVP_PKEY_EC || pktype == EVP_PKEY_SM2)) {
  ------------------
  |  |   73|  41.3k|#define EVP_PKEY_EC NID_X9_62_id_ecPublicKey
  |  |  ------------------
  |  |  |  |  178|  82.7k|#define NID_X9_62_id_ecPublicKey                408
  |  |  ------------------
  ------------------
                  if ((key != NULL) && (pktype == EVP_PKEY_EC || pktype == EVP_PKEY_SM2)) {
  ------------------
  |  |   74|  28.0k|#define EVP_PKEY_SM2 NID_sm2
  |  |  ------------------
  |  |  |  | 1259|  28.0k|#define NID_sm2         1172
  |  |  ------------------
  ------------------
  |  Branch (743:9): [True: 41.3k, False: 0]
  |  Branch (743:27): [True: 13.3k, False: 28.0k]
  |  Branch (743:52): [True: 0, False: 28.0k]
  ------------------
  744|  13.3k|        const EC_GROUP *group = EC_KEY_get0_group(key);
  745|       |
  746|  13.3k|        if (group != NULL) {
  ------------------
  |  Branch (746:13): [True: 13.3k, False: 0]
  ------------------
  747|  13.3k|            int curve = EC_GROUP_get_curve_name(group);
  748|       |
  749|       |            /*
  750|       |             * Regardless of what is requested the SM2 curve must be SM2 type,
  751|       |             * and non SM2 curves are EC type.
  752|       |             */
  753|  13.3k|            if (curve == NID_sm2 && pktype == EVP_PKEY_EC)
  ------------------
  |  | 1259|  26.6k|#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 (753:17): [True: 0, False: 13.3k]
  |  Branch (753:37): [True: 0, False: 0]
  ------------------
  754|      0|                type = EVP_PKEY_SM2;
  ------------------
  |  |   74|      0|#define EVP_PKEY_SM2 NID_sm2
  |  |  ------------------
  |  |  |  | 1259|      0|#define NID_sm2         1172
  |  |  ------------------
  ------------------
  755|  13.3k|            else if (curve != NID_sm2 && pktype == EVP_PKEY_SM2)
  ------------------
  |  | 1259|  26.6k|#define NID_sm2         1172
  ------------------
                          else if (curve != NID_sm2 && pktype == EVP_PKEY_SM2)
  ------------------
  |  |   74|  13.3k|#define EVP_PKEY_SM2 NID_sm2
  |  |  ------------------
  |  |  |  | 1259|  13.3k|#define NID_sm2         1172
  |  |  ------------------
  ------------------
  |  Branch (755:22): [True: 13.3k, False: 0]
  |  Branch (755:42): [True: 0, False: 13.3k]
  ------------------
  756|      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
  |  |  ------------------
  ------------------
  757|  13.3k|        }
  758|  13.3k|    }
  759|  41.3k|#endif
  760|       |
  761|  41.3k|    if (pkey == NULL || !EVP_PKEY_set_type(pkey, type))
  ------------------
  |  Branch (761:9): [True: 0, False: 41.3k]
  |  Branch (761:25): [True: 0, False: 41.3k]
  ------------------
  762|      0|        return 0;
  763|       |
  764|  41.3k|    pkey->pkey.ptr = key;
  765|  41.3k|    detect_foreign_key(pkey);
  766|       |
  767|       |    return (key != NULL);
  768|  41.3k|}
EVP_PKEY_get_id:
  970|  13.3k|{
  971|  13.3k|    return pkey->type;
  972|  13.3k|}
EVP_PKEY_get_base_id:
  975|  13.3k|{
  976|  13.3k|    return EVP_PKEY_type(pkey->type);
  977|  13.3k|}
evp_pkey_name2type:
 1007|  1.45k|{
 1008|  1.45k|    int type;
 1009|  1.45k|    size_t i;
 1010|       |
 1011|  14.0k|    for (i = 0; i < OSSL_NELEM(standard_name2type); i++) {
  ------------------
  |  |   14|  14.0k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (1011:17): [True: 13.3k, False: 763]
  ------------------
 1012|  13.3k|        if (OPENSSL_strcasecmp(name, standard_name2type[i].ptr) == 0)
  ------------------
  |  Branch (1012:13): [True: 691, False: 12.6k]
  ------------------
 1013|    691|            return (int)standard_name2type[i].id;
 1014|  13.3k|    }
 1015|       |
 1016|    763|    if ((type = EVP_PKEY_type(OBJ_sn2nid(name))) != NID_undef)
  ------------------
  |  |   18|    763|#define NID_undef                       0
  ------------------
  |  Branch (1016:9): [True: 4, False: 759]
  ------------------
 1017|      4|        return type;
 1018|    759|    return EVP_PKEY_type(OBJ_ln2nid(name));
 1019|    763|}
EVP_PKEY_get1_encoded_public_key:
 1388|    684|{
 1389|    684|    if (pkey == NULL)
  ------------------
  |  Branch (1389:9): [True: 0, False: 684]
  ------------------
 1390|      0|        return 0;
 1391|    684|#ifndef FIPS_MODULE
 1392|    684|    if (evp_pkey_is_provided(pkey))
  ------------------
  |  |  383|    684|    ((pk)->keymgmt != NULL)
  |  |  ------------------
  |  |  |  Branch (383:5): [True: 684, False: 0]
  |  |  ------------------
  ------------------
 1393|    684|#endif
 1394|    684|    {
 1395|    684|        size_t return_size = OSSL_PARAM_UNMODIFIED;
  ------------------
  |  |   22|    684|#define OSSL_PARAM_UNMODIFIED ((size_t)-1)
  ------------------
 1396|    684|        unsigned char *buf;
 1397|       |
 1398|       |        /*
 1399|       |         * We know that this is going to fail, but it will give us a size
 1400|       |         * to allocate.
 1401|       |         */
 1402|    684|        EVP_PKEY_get_octet_string_param(pkey,
 1403|    684|            OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY,
  ------------------
  |  |  407|    684|# define OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY "encoded-pub-key"
  ------------------
 1404|    684|            NULL, 0, &return_size);
 1405|    684|        if (return_size == OSSL_PARAM_UNMODIFIED)
  ------------------
  |  |   22|    684|#define OSSL_PARAM_UNMODIFIED ((size_t)-1)
  ------------------
  |  Branch (1405:13): [True: 0, False: 684]
  ------------------
 1406|      0|            return 0;
 1407|       |
 1408|    684|        *ppub = NULL;
 1409|    684|        buf = OPENSSL_malloc(return_size);
  ------------------
  |  |  107|    684|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1410|    684|        if (buf == NULL)
  ------------------
  |  Branch (1410:13): [True: 0, False: 684]
  ------------------
 1411|      0|            return 0;
 1412|       |
 1413|    684|        if (!EVP_PKEY_get_octet_string_param(pkey,
  ------------------
  |  Branch (1413:13): [True: 0, False: 684]
  ------------------
 1414|    684|                OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY,
  ------------------
  |  |  407|    684|# define OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY "encoded-pub-key"
  ------------------
 1415|    684|                buf, return_size, NULL)) {
 1416|      0|            OPENSSL_free(buf);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1417|      0|            return 0;
 1418|      0|        }
 1419|    684|        *ppub = buf;
 1420|    684|        return return_size;
 1421|    684|    }
 1422|       |
 1423|      0|#ifndef FIPS_MODULE
 1424|      0|    {
 1425|      0|        int rv = evp_pkey_asn1_ctrl(pkey, ASN1_PKEY_CTRL_GET1_TLS_ENCPT, 0, ppub);
  ------------------
  |  | 1513|      0|#define ASN1_PKEY_CTRL_GET1_TLS_ENCPT 0xa
  ------------------
 1426|      0|        if (rv <= 0)
  ------------------
  |  Branch (1426:13): [True: 0, False: 0]
  ------------------
 1427|      0|            return 0;
 1428|      0|        return rv;
 1429|      0|    }
 1430|      0|#endif /* !FIPS_MODULE */
 1431|      0|}
EVP_PKEY_new:
 1436|  84.4k|{
 1437|  84.4k|    EVP_PKEY *ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  109|  84.4k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1438|       |
 1439|  84.4k|    if (ret == NULL)
  ------------------
  |  Branch (1439:9): [True: 0, False: 84.4k]
  ------------------
 1440|      0|        return NULL;
 1441|       |
 1442|  84.4k|    ret->type = EVP_PKEY_NONE;
  ------------------
  |  |   62|  84.4k|#define EVP_PKEY_NONE NID_undef
  |  |  ------------------
  |  |  |  |   18|  84.4k|#define NID_undef                       0
  |  |  ------------------
  ------------------
 1443|  84.4k|    ret->save_type = EVP_PKEY_NONE;
  ------------------
  |  |   62|  84.4k|#define EVP_PKEY_NONE NID_undef
  |  |  ------------------
  |  |  |  |   18|  84.4k|#define NID_undef                       0
  |  |  ------------------
  ------------------
 1444|       |
 1445|  84.4k|    if (!CRYPTO_NEW_REF(&ret->references, 1))
  ------------------
  |  Branch (1445:9): [True: 0, False: 84.4k]
  ------------------
 1446|      0|        goto err;
 1447|       |
 1448|  84.4k|    ret->lock = CRYPTO_THREAD_lock_new();
 1449|  84.4k|    if (ret->lock == NULL) {
  ------------------
  |  Branch (1449:9): [True: 0, False: 84.4k]
  ------------------
 1450|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1451|      0|        goto err;
 1452|      0|    }
 1453|       |
 1454|  84.4k|#ifndef FIPS_MODULE
 1455|  84.4k|    ret->save_parameters = 1;
 1456|  84.4k|    if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_EVP_PKEY, ret, &ret->ex_data)) {
  ------------------
  |  |  269|  84.4k|#define CRYPTO_EX_INDEX_EVP_PKEY 17
  ------------------
  |  Branch (1456:9): [True: 0, False: 84.4k]
  ------------------
 1457|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1458|      0|        goto err;
 1459|      0|    }
 1460|  84.4k|#endif
 1461|  84.4k|    return ret;
 1462|       |
 1463|      0|err:
 1464|      0|    CRYPTO_FREE_REF(&ret->references);
 1465|      0|    CRYPTO_THREAD_lock_free(ret->lock);
 1466|      0|    OPENSSL_free(ret);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1467|       |    return NULL;
 1468|  84.4k|}
EVP_PKEY_set_type_by_keymgmt:
 1601|  42.7k|{
 1602|  42.7k|#ifndef FIPS_MODULE
 1603|  42.7k|#define EVP_PKEY_TYPE_STR str[0]
 1604|  42.7k|#define EVP_PKEY_TYPE_STRLEN (str[0] == NULL ? -1 : (int)strlen(str[0]))
 1605|       |    /*
 1606|       |     * Find at most two strings that have an associated EVP_PKEY_ASN1_METHOD
 1607|       |     * Ideally, only one should be found.  If two (or more) are found, the
 1608|       |     * match is ambiguous.  This should never happen, but...
 1609|       |     */
 1610|  42.7k|    const char *str[2] = { NULL, NULL };
 1611|       |
 1612|  42.7k|    if (!EVP_KEYMGMT_names_do_all(keymgmt, find_ameth, &str)
  ------------------
  |  Branch (1612:9): [True: 0, False: 42.7k]
  ------------------
 1613|  42.7k|        || str[1] != NULL) {
  ------------------
  |  Branch (1613:12): [True: 0, False: 42.7k]
  ------------------
 1614|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1615|      0|        return 0;
 1616|      0|    }
 1617|       |#else
 1618|       |#define EVP_PKEY_TYPE_STR NULL
 1619|       |#define EVP_PKEY_TYPE_STRLEN -1
 1620|       |#endif
 1621|  42.7k|    return pkey_set_type(pkey, EVP_PKEY_NONE,
  ------------------
  |  |   62|  42.7k|#define EVP_PKEY_NONE NID_undef
  |  |  ------------------
  |  |  |  |   18|  42.7k|#define NID_undef                       0
  |  |  ------------------
  ------------------
 1622|  42.7k|        EVP_PKEY_TYPE_STR, EVP_PKEY_TYPE_STRLEN,
  ------------------
  |  | 1603|  42.7k|#define EVP_PKEY_TYPE_STR str[0]
  ------------------
                      EVP_PKEY_TYPE_STR, EVP_PKEY_TYPE_STRLEN,
  ------------------
  |  | 1604|  42.7k|#define EVP_PKEY_TYPE_STRLEN (str[0] == NULL ? -1 : (int)strlen(str[0]))
  |  |  ------------------
  |  |  |  Branch (1604:31): [True: 684, False: 42.0k]
  |  |  ------------------
  ------------------
 1623|  42.7k|        keymgmt);
 1624|       |
 1625|  42.7k|#undef EVP_PKEY_TYPE_STR
 1626|  42.7k|#undef EVP_PKEY_TYPE_STRLEN
 1627|  42.7k|}
EVP_PKEY_up_ref:
 1630|  50.4k|{
 1631|  50.4k|    int i;
 1632|       |
 1633|  50.4k|    if (CRYPTO_UP_REF(&pkey->references, &i) <= 0)
  ------------------
  |  Branch (1633:9): [True: 0, False: 50.4k]
  ------------------
 1634|      0|        return 0;
 1635|       |
 1636|  50.4k|    REF_PRINT_COUNT("EVP_PKEY", i, pkey);
  ------------------
  |  |  301|  50.4k|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|  50.4k|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  295|  50.4k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|  50.4k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1637|  50.4k|    REF_ASSERT_ISNT(i < 2);
  ------------------
  |  |  293|  50.4k|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 50.4k]
  |  |  ------------------
  ------------------
 1638|  50.4k|    return ((i > 1) ? 1 : 0);
  ------------------
  |  Branch (1638:13): [True: 50.4k, False: 0]
  ------------------
 1639|  50.4k|}
evp_pkey_free_legacy:
 1704|  85.8k|{
 1705|  85.8k|    const EVP_PKEY_ASN1_METHOD *ameth = x->ameth;
 1706|       |
 1707|  85.8k|    if (ameth == NULL && x->legacy_cache_pkey.ptr != NULL)
  ------------------
  |  Branch (1707:9): [True: 44.1k, False: 41.7k]
  |  Branch (1707:26): [True: 0, False: 44.1k]
  ------------------
 1708|      0|        ameth = evp_pkey_asn1_find(x->type);
 1709|       |
 1710|  85.8k|    if (ameth != NULL) {
  ------------------
  |  Branch (1710:9): [True: 41.7k, False: 44.1k]
  ------------------
 1711|  41.7k|        if (x->legacy_cache_pkey.ptr != NULL) {
  ------------------
  |  Branch (1711:13): [True: 0, False: 41.7k]
  ------------------
 1712|       |            /*
 1713|       |             * We should never have both a legacy origin key, and a key in the
 1714|       |             * legacy cache.
 1715|       |             */
 1716|      0|            assert(x->pkey.ptr == NULL);
  ------------------
  |  Branch (1716:13): [True: 0, False: 0]
  |  Branch (1716:13): [True: 0, False: 0]
  ------------------
 1717|       |            /*
 1718|       |             * For the purposes of freeing we make the legacy cache look like
 1719|       |             * a legacy origin key.
 1720|       |             */
 1721|      0|            x->pkey = x->legacy_cache_pkey;
 1722|      0|            x->legacy_cache_pkey.ptr = NULL;
 1723|      0|        }
 1724|  41.7k|        if (ameth->pkey_free != NULL)
  ------------------
  |  Branch (1724:13): [True: 41.7k, False: 0]
  ------------------
 1725|  41.7k|            ameth->pkey_free(x);
 1726|       |        x->pkey.ptr = NULL;
 1727|  41.7k|    }
 1728|  85.8k|}
EVP_PKEY_free:
 1749|   241k|{
 1750|   241k|    int i;
 1751|       |
 1752|   241k|    if (x == NULL)
  ------------------
  |  Branch (1752:9): [True: 106k, False: 134k]
  ------------------
 1753|   106k|        return;
 1754|       |
 1755|   134k|    CRYPTO_DOWN_REF(&x->references, &i);
 1756|   134k|    REF_PRINT_COUNT("EVP_PKEY", i, x);
  ------------------
  |  |  301|   134k|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|   134k|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  295|   134k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|   134k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1757|   134k|    if (i > 0)
  ------------------
  |  Branch (1757:9): [True: 50.4k, False: 84.4k]
  ------------------
 1758|  50.4k|        return;
 1759|  84.4k|    REF_ASSERT_ISNT(i < 0);
  ------------------
  |  |  293|  84.4k|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 84.4k]
  |  |  ------------------
  ------------------
 1760|  84.4k|    evp_pkey_free_it(x);
 1761|  84.4k|#ifndef FIPS_MODULE
 1762|  84.4k|    CRYPTO_free_ex_data(CRYPTO_EX_INDEX_EVP_PKEY, x, &x->ex_data);
  ------------------
  |  |  269|  84.4k|#define CRYPTO_EX_INDEX_EVP_PKEY 17
  ------------------
 1763|  84.4k|#endif
 1764|  84.4k|    CRYPTO_THREAD_lock_free(x->lock);
 1765|  84.4k|    CRYPTO_FREE_REF(&x->references);
 1766|  84.4k|#ifndef FIPS_MODULE
 1767|  84.4k|    sk_X509_ATTRIBUTE_pop_free(x->attributes, X509_ATTRIBUTE_free);
  ------------------
  |  |  287|  84.4k|#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))
  ------------------
 1768|  84.4k|#endif
 1769|  84.4k|    OPENSSL_free(x);
  ------------------
  |  |  132|  84.4k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1770|  84.4k|}
evp_pkey_get_legacy:
 2089|  41.3k|{
 2090|  41.3k|    EVP_PKEY *tmp_copy = NULL;
 2091|  41.3k|    void *ret = NULL;
 2092|       |
 2093|  41.3k|    if (!ossl_assert(pk != NULL))
  ------------------
  |  |   52|  41.3k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  41.3k|    __FILE__, __LINE__)
  ------------------
  |  Branch (2093:9): [True: 0, False: 41.3k]
  ------------------
 2094|      0|        return NULL;
 2095|       |
 2096|       |    /*
 2097|       |     * If this isn't an assigned provider side key, we just use any existing
 2098|       |     * origin legacy key.
 2099|       |     */
 2100|  41.3k|    if (!evp_pkey_is_assigned(pk))
  ------------------
  |  |  375|  41.3k|    ((pk)->pkey.ptr != NULL || (pk)->keydata != NULL)
  |  |  ------------------
  |  |  |  Branch (375:6): [True: 41.3k, False: 0]
  |  |  |  Branch (375:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2101|      0|        return NULL;
 2102|  41.3k|    if (!evp_pkey_is_provided(pk))
  ------------------
  |  |  383|  41.3k|    ((pk)->keymgmt != NULL)
  ------------------
  |  Branch (2102:9): [True: 41.3k, False: 0]
  ------------------
 2103|  41.3k|        return pk->pkey.ptr;
 2104|       |
 2105|      0|    if (!CRYPTO_THREAD_read_lock(pk->lock))
  ------------------
  |  Branch (2105:9): [True: 0, False: 0]
  ------------------
 2106|      0|        return NULL;
 2107|       |
 2108|      0|    ret = pk->legacy_cache_pkey.ptr;
 2109|       |
 2110|      0|    if (!CRYPTO_THREAD_unlock(pk->lock))
  ------------------
  |  Branch (2110:9): [True: 0, False: 0]
  ------------------
 2111|      0|        return NULL;
 2112|       |
 2113|      0|    if (ret != NULL)
  ------------------
  |  Branch (2113:9): [True: 0, False: 0]
  ------------------
 2114|      0|        return ret;
 2115|       |
 2116|      0|    if (!evp_pkey_copy_downgraded(&tmp_copy, pk))
  ------------------
  |  Branch (2116:9): [True: 0, False: 0]
  ------------------
 2117|      0|        goto err;
 2118|       |
 2119|      0|    if (!CRYPTO_THREAD_write_lock(pk->lock))
  ------------------
  |  Branch (2119:9): [True: 0, False: 0]
  ------------------
 2120|      0|        goto err;
 2121|       |
 2122|       |    /* Check again in case some other thread has updated it in the meantime */
 2123|      0|    ret = pk->legacy_cache_pkey.ptr;
 2124|      0|    if (ret == NULL) {
  ------------------
  |  Branch (2124:9): [True: 0, False: 0]
  ------------------
 2125|       |        /* Steal the legacy key reference from the temporary copy */
 2126|      0|        ret = pk->legacy_cache_pkey.ptr = tmp_copy->pkey.ptr;
 2127|      0|        tmp_copy->pkey.ptr = NULL;
 2128|      0|    }
 2129|       |
 2130|      0|    if (!CRYPTO_THREAD_unlock(pk->lock)) {
  ------------------
  |  Branch (2130:9): [True: 0, False: 0]
  ------------------
 2131|      0|        ret = NULL;
 2132|      0|        goto err;
 2133|      0|    }
 2134|       |
 2135|      0|err:
 2136|      0|    EVP_PKEY_free(tmp_copy);
 2137|       |
 2138|      0|    return ret;
 2139|      0|}
EVP_PKEY_get_octet_string_param:
 2194|  1.36k|{
 2195|  1.36k|    OSSL_PARAM params[2];
 2196|  1.36k|    int ret1 = 0, ret2 = 0;
 2197|       |
 2198|  1.36k|    if (key_name == NULL)
  ------------------
  |  Branch (2198:9): [True: 0, False: 1.36k]
  ------------------
 2199|      0|        return 0;
 2200|       |
 2201|  1.36k|    params[0] = OSSL_PARAM_construct_octet_string(key_name, buf, max_buf_sz);
 2202|  1.36k|    params[1] = OSSL_PARAM_construct_end();
 2203|  1.36k|    if ((ret1 = EVP_PKEY_get_params(pkey, params)))
  ------------------
  |  Branch (2203:9): [True: 1.36k, False: 0]
  ------------------
 2204|  1.36k|        ret2 = OSSL_PARAM_modified(params);
 2205|  1.36k|    if (ret2 && out_len != NULL)
  ------------------
  |  Branch (2205:9): [True: 1.36k, False: 0]
  |  Branch (2205:17): [True: 684, False: 684]
  ------------------
 2206|    684|        *out_len = params[0].return_size;
 2207|  1.36k|    return ret1 && ret2;
  ------------------
  |  Branch (2207:12): [True: 1.36k, False: 0]
  |  Branch (2207:20): [True: 1.36k, False: 0]
  ------------------
 2208|  1.36k|}
EVP_PKEY_get_params:
 2380|  1.36k|{
 2381|  1.36k|    if (pkey != NULL) {
  ------------------
  |  Branch (2381:9): [True: 1.36k, False: 0]
  ------------------
 2382|  1.36k|        if (evp_pkey_is_provided(pkey))
  ------------------
  |  |  383|  1.36k|    ((pk)->keymgmt != NULL)
  |  |  ------------------
  |  |  |  Branch (383:5): [True: 1.36k, False: 0]
  |  |  ------------------
  ------------------
 2383|  1.36k|            return evp_keymgmt_get_params(pkey->keymgmt, pkey->keydata, params) > 0;
 2384|      0|#ifndef FIPS_MODULE
 2385|      0|        else if (evp_pkey_is_legacy(pkey))
  ------------------
  |  |  381|      0|    ((pk)->type != EVP_PKEY_NONE && (pk)->keymgmt == NULL)
  |  |  ------------------
  |  |  |  |   62|      0|#define EVP_PKEY_NONE NID_undef
  |  |  |  |  ------------------
  |  |  |  |  |  |   18|      0|#define NID_undef                       0
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (381:6): [True: 0, False: 0]
  |  |  |  Branch (381:37): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2386|      0|            return evp_pkey_get_params_to_ctrl(pkey, params) > 0;
 2387|  1.36k|#endif
 2388|  1.36k|    }
 2389|  1.36k|    ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_KEY);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 2390|      0|    return 0;
 2391|  1.36k|}
p_lib.c:detect_foreign_key:
  704|  41.3k|{
  705|  41.3k|    switch (pkey->type) {
  706|  28.0k|    case EVP_PKEY_RSA:
  ------------------
  |  |   63|  28.0k|#define EVP_PKEY_RSA NID_rsaEncryption
  |  |  ------------------
  |  |  |  |  543|  28.0k|#define NID_rsaEncryption               6
  |  |  ------------------
  ------------------
  |  Branch (706:5): [True: 28.0k, False: 13.3k]
  ------------------
  707|  28.0k|    case EVP_PKEY_RSA_PSS:
  ------------------
  |  |   65|  28.0k|#define EVP_PKEY_RSA_PSS NID_rsassaPss
  |  |  ------------------
  |  |  |  |  583|  28.0k|#define NID_rsassaPss           912
  |  |  ------------------
  ------------------
  |  Branch (707:5): [True: 0, False: 41.3k]
  ------------------
  708|  28.0k|        pkey->foreign = pkey->pkey.rsa != NULL
  ------------------
  |  Branch (708:25): [True: 28.0k, False: 0]
  ------------------
  709|  28.0k|            && ossl_rsa_is_foreign(pkey->pkey.rsa);
  ------------------
  |  Branch (709:16): [True: 0, False: 28.0k]
  ------------------
  710|  28.0k|        break;
  711|      0|#ifndef OPENSSL_NO_EC
  712|      0|    case EVP_PKEY_SM2:
  ------------------
  |  |   74|      0|#define EVP_PKEY_SM2 NID_sm2
  |  |  ------------------
  |  |  |  | 1259|      0|#define NID_sm2         1172
  |  |  ------------------
  ------------------
  |  Branch (712:5): [True: 0, False: 41.3k]
  ------------------
  713|      0|        break;
  714|  13.3k|    case EVP_PKEY_EC:
  ------------------
  |  |   73|  13.3k|#define EVP_PKEY_EC NID_X9_62_id_ecPublicKey
  |  |  ------------------
  |  |  |  |  178|  13.3k|#define NID_X9_62_id_ecPublicKey                408
  |  |  ------------------
  ------------------
  |  Branch (714:5): [True: 13.3k, False: 28.0k]
  ------------------
  715|  13.3k|        pkey->foreign = pkey->pkey.ec != NULL
  ------------------
  |  Branch (715:25): [True: 13.3k, False: 0]
  ------------------
  716|  13.3k|            && ossl_ec_key_is_foreign(pkey->pkey.ec);
  ------------------
  |  Branch (716:16): [True: 0, False: 13.3k]
  ------------------
  717|  13.3k|        break;
  718|      0|#endif
  719|      0|#ifndef OPENSSL_NO_DSA
  720|      0|    case EVP_PKEY_DSA:
  ------------------
  |  |   66|      0|#define EVP_PKEY_DSA NID_dsa
  |  |  ------------------
  |  |  |  |  136|      0|#define NID_dsa         116
  |  |  ------------------
  ------------------
  |  Branch (720:5): [True: 0, False: 41.3k]
  ------------------
  721|      0|        pkey->foreign = pkey->pkey.dsa != NULL
  ------------------
  |  Branch (721:25): [True: 0, False: 0]
  ------------------
  722|      0|            && ossl_dsa_is_foreign(pkey->pkey.dsa);
  ------------------
  |  Branch (722:16): [True: 0, False: 0]
  ------------------
  723|      0|        break;
  724|      0|#endif
  725|      0|#ifndef OPENSSL_NO_DH
  726|      0|    case EVP_PKEY_DH:
  ------------------
  |  |   71|      0|#define EVP_PKEY_DH NID_dhKeyAgreement
  |  |  ------------------
  |  |  |  |  621|      0|#define NID_dhKeyAgreement              28
  |  |  ------------------
  ------------------
  |  Branch (726:5): [True: 0, False: 41.3k]
  ------------------
  727|      0|        pkey->foreign = pkey->pkey.dh != NULL
  ------------------
  |  Branch (727:25): [True: 0, False: 0]
  ------------------
  728|      0|            && ossl_dh_is_foreign(pkey->pkey.dh);
  ------------------
  |  Branch (728:16): [True: 0, False: 0]
  ------------------
  729|      0|        break;
  730|      0|#endif
  731|      0|    default:
  ------------------
  |  Branch (731:5): [True: 0, False: 41.3k]
  ------------------
  732|      0|        pkey->foreign = 0;
  733|      0|        break;
  734|  41.3k|    }
  735|  41.3k|}
p_lib.c:pkey_set_type:
 1485|   289k|{
 1486|   289k|#ifndef FIPS_MODULE
 1487|   289k|    const EVP_PKEY_ASN1_METHOD *ameth = NULL;
 1488|   289k|#endif
 1489|       |
 1490|       |    /*
 1491|       |     * The setups can't set both legacy and provider side methods.
 1492|       |     * It is forbidden
 1493|       |     */
 1494|   289k|    if (!ossl_assert(type == EVP_PKEY_NONE || keymgmt == NULL)) {
  ------------------
  |  |   52|   381k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  ------------------
  |  |  |  Branch (52:41): [True: 198k, False: 91.7k]
  |  |  |  Branch (52:41): [True: 91.7k, False: 0]
  |  |  ------------------
  |  |   53|   289k|    __FILE__, __LINE__)
  ------------------
  |  Branch (1494:9): [True: 0, False: 289k]
  ------------------
 1495|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1496|      0|        return 0;
 1497|      0|    }
 1498|       |
 1499|   289k|    if (pkey != NULL) {
  ------------------
  |  Branch (1499:9): [True: 134k, False: 155k]
  ------------------
 1500|   134k|        int free_it = 0;
 1501|       |
 1502|   134k|#ifndef FIPS_MODULE
 1503|   134k|        free_it = free_it || pkey->pkey.ptr != NULL;
  ------------------
  |  Branch (1503:19): [True: 0, False: 134k]
  |  Branch (1503:30): [True: 0, False: 134k]
  ------------------
 1504|   134k|#endif
 1505|   134k|        free_it = free_it || pkey->keydata != NULL;
  ------------------
  |  Branch (1505:19): [True: 0, False: 134k]
  |  Branch (1505:30): [True: 0, False: 134k]
  ------------------
 1506|   134k|        if (free_it)
  ------------------
  |  Branch (1506:13): [True: 0, False: 134k]
  ------------------
 1507|      0|            evp_pkey_free_it(pkey);
 1508|   134k|#ifndef FIPS_MODULE
 1509|       |        /*
 1510|       |         * If key type matches and a method exists then this lookup has
 1511|       |         * succeeded once so just indicate success.
 1512|       |         */
 1513|   134k|        if (pkey->type != EVP_PKEY_NONE
  ------------------
  |  |   62|   134k|#define EVP_PKEY_NONE NID_undef
  |  |  ------------------
  |  |  |  |   18|   269k|#define NID_undef                       0
  |  |  ------------------
  ------------------
  |  Branch (1513:13): [True: 50.0k, False: 84.4k]
  ------------------
 1514|  50.0k|            && type == pkey->save_type
  ------------------
  |  Branch (1514:16): [True: 47.9k, False: 2.08k]
  ------------------
 1515|  47.9k|            && pkey->ameth != NULL)
  ------------------
  |  Branch (1515:16): [True: 47.9k, False: 0]
  ------------------
 1516|  47.9k|            return 1;
 1517|   134k|#endif
 1518|   134k|    }
 1519|   241k|#ifndef FIPS_MODULE
 1520|   241k|    if (str != NULL)
  ------------------
  |  Branch (1520:9): [True: 197k, False: 44.4k]
  ------------------
 1521|   197k|        ameth = evp_pkey_asn1_find_str(str, len);
 1522|  44.4k|    else if (type != EVP_PKEY_NONE)
  ------------------
  |  |   62|  44.4k|#define EVP_PKEY_NONE NID_undef
  |  |  ------------------
  |  |  |  |   18|  44.4k|#define NID_undef                       0
  |  |  ------------------
  ------------------
  |  Branch (1522:14): [True: 43.8k, False: 684]
  ------------------
 1523|  43.8k|        ameth = evp_pkey_asn1_find(type);
 1524|   241k|#endif
 1525|       |
 1526|   241k|    {
 1527|   241k|        int check = 1;
 1528|       |
 1529|   241k|#ifndef FIPS_MODULE
 1530|   241k|        check = check && ameth == NULL;
  ------------------
  |  Branch (1530:17): [True: 241k, False: 0]
  |  Branch (1530:26): [True: 113k, False: 127k]
  ------------------
 1531|   241k|#endif
 1532|   241k|        check = check && keymgmt == NULL;
  ------------------
  |  Branch (1532:17): [True: 113k, False: 127k]
  |  Branch (1532:26): [True: 113k, False: 684]
  ------------------
 1533|   241k|        if (check) {
  ------------------
  |  Branch (1533:13): [True: 113k, False: 128k]
  ------------------
 1534|   113k|            ERR_raise(ERR_LIB_EVP, EVP_R_UNSUPPORTED_ALGORITHM);
  ------------------
  |  |  357|   113k|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|   113k|    (ERR_new(),                                                  \
  |  |  |  |  360|   113k|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|   113k|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|   113k|        ERR_set_error)
  |  |  ------------------
  ------------------
 1535|   113k|            return 0;
 1536|   113k|        }
 1537|   241k|    }
 1538|   128k|    if (pkey != NULL) {
  ------------------
  |  Branch (1538:9): [True: 86.5k, False: 42.0k]
  ------------------
 1539|  86.5k|        if (keymgmt != NULL && !EVP_KEYMGMT_up_ref(keymgmt)) {
  ------------------
  |  Branch (1539:13): [True: 42.7k, False: 43.8k]
  |  Branch (1539:32): [True: 0, False: 42.7k]
  ------------------
 1540|      0|            ERR_raise(ERR_LIB_EVP, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1541|      0|            return 0;
 1542|      0|        }
 1543|       |
 1544|  86.5k|        pkey->keymgmt = keymgmt;
 1545|       |
 1546|  86.5k|        pkey->save_type = type;
 1547|  86.5k|        pkey->type = type;
 1548|       |
 1549|  86.5k|#ifndef FIPS_MODULE
 1550|       |        /*
 1551|       |         * If the internal "origin" key is provider side, don't save |ameth|.
 1552|       |         * The main reason is that |ameth| is one factor to detect that the
 1553|       |         * internal "origin" key is a legacy one.
 1554|       |         */
 1555|  86.5k|        if (keymgmt == NULL)
  ------------------
  |  Branch (1555:13): [True: 43.8k, False: 42.7k]
  ------------------
 1556|  43.8k|            pkey->ameth = ameth;
 1557|       |
 1558|       |        /*
 1559|       |         * The EVP_PKEY_ASN1_METHOD |pkey_id| retains its legacy key purpose
 1560|       |         * for any key type that has a legacy implementation, regardless of
 1561|       |         * if the internal key is a legacy or a provider side one.  When
 1562|       |         * there is no legacy implementation for the key, the type becomes
 1563|       |         * EVP_PKEY_KEYMGMT, which indicates that one should be cautious
 1564|       |         * with functions that expect legacy internal keys.
 1565|       |         */
 1566|  86.5k|        if (ameth != NULL) {
  ------------------
  |  Branch (1566:13): [True: 85.8k, False: 684]
  ------------------
 1567|  85.8k|            if (type == EVP_PKEY_NONE)
  ------------------
  |  |   62|  85.8k|#define EVP_PKEY_NONE NID_undef
  |  |  ------------------
  |  |  |  |   18|  85.8k|#define NID_undef                       0
  |  |  ------------------
  ------------------
  |  Branch (1567:17): [True: 42.0k, False: 43.8k]
  ------------------
 1568|  42.0k|                pkey->type = ameth->pkey_id;
 1569|  85.8k|        } else {
 1570|    684|            pkey->type = EVP_PKEY_KEYMGMT;
  ------------------
  |  |  104|    684|#define EVP_PKEY_KEYMGMT -1
  ------------------
 1571|    684|        }
 1572|  86.5k|#endif
 1573|  86.5k|    }
 1574|   128k|    return 1;
 1575|   128k|}
p_lib.c:find_ameth:
 1579|   155k|{
 1580|   155k|    const char **str = data;
 1581|       |
 1582|       |    /*
 1583|       |     * The error messages from pkey_set_type() are uninteresting here,
 1584|       |     * and misleading.
 1585|       |     */
 1586|   155k|    ERR_set_mark();
 1587|       |
 1588|   155k|    if (pkey_set_type(NULL, EVP_PKEY_NONE, name, (int)strlen(name),
  ------------------
  |  |   62|   155k|#define EVP_PKEY_NONE NID_undef
  |  |  ------------------
  |  |  |  |   18|   155k|#define NID_undef                       0
  |  |  ------------------
  ------------------
  |  Branch (1588:9): [True: 42.0k, False: 113k]
  ------------------
 1589|   155k|            NULL)) {
 1590|  42.0k|        if (str[0] == NULL)
  ------------------
  |  Branch (1590:13): [True: 42.0k, False: 0]
  ------------------
 1591|  42.0k|            str[0] = name;
 1592|      0|        else if (str[1] == NULL)
  ------------------
  |  Branch (1592:18): [True: 0, False: 0]
  ------------------
 1593|      0|            str[1] = name;
 1594|  42.0k|    }
 1595|       |
 1596|   155k|    ERR_pop_to_mark();
 1597|   155k|}
p_lib.c:evp_pkey_free_it:
 1732|  84.4k|{
 1733|       |    /* internal function; x is never NULL */
 1734|  84.4k|    evp_keymgmt_util_clear_operation_cache(x);
 1735|  84.4k|#ifndef FIPS_MODULE
 1736|  84.4k|    evp_pkey_free_legacy(x);
 1737|  84.4k|#endif
 1738|       |
 1739|  84.4k|    if (x->keymgmt != NULL) {
  ------------------
  |  Branch (1739:9): [True: 42.7k, False: 41.7k]
  ------------------
 1740|  42.7k|        evp_keymgmt_freedata(x->keymgmt, x->keydata);
 1741|  42.7k|        EVP_KEYMGMT_free(x->keymgmt);
 1742|  42.7k|        x->keymgmt = NULL;
 1743|  42.7k|        x->keydata = NULL;
 1744|  42.7k|    }
 1745|  84.4k|    x->type = EVP_PKEY_NONE;
  ------------------
  |  |   62|  84.4k|#define EVP_PKEY_NONE NID_undef
  |  |  ------------------
  |  |  |  |   18|  84.4k|#define NID_undef                       0
  |  |  ------------------
  ------------------
 1746|  84.4k|}

EVP_PKEY_keygen_init:
   75|  1.36k|{
   76|  1.36k|    return gen_init(ctx, EVP_PKEY_OP_KEYGEN);
  ------------------
  |  | 1529|  1.36k|#define EVP_PKEY_OP_KEYGEN (1 << 2)
  ------------------
   77|  1.36k|}
EVP_PKEY_generate:
  104|  1.36k|{
  105|  1.36k|    int ret = 0;
  106|  1.36k|    EVP_PKEY *allocated_pkey = NULL;
  107|       |    /* Legacy compatible keygen callback info, only used with provider impls */
  108|  1.36k|    int gentmp[2];
  109|       |
  110|  1.36k|    if (ppkey == NULL)
  ------------------
  |  Branch (110:9): [True: 0, False: 1.36k]
  ------------------
  111|      0|        return -1;
  112|       |
  113|  1.36k|    if (ctx == NULL)
  ------------------
  |  Branch (113:9): [True: 0, False: 1.36k]
  ------------------
  114|      0|        goto not_supported;
  115|       |
  116|  1.36k|    if ((ctx->operation & EVP_PKEY_OP_TYPE_GEN) == 0)
  ------------------
  |  | 1565|  1.36k|    (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)
  |  |  ------------------
  |  |  |  | 1528|  1.36k|#define EVP_PKEY_OP_PARAMGEN (1 << 1)
  |  |  ------------------
  |  |                   (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)
  |  |  ------------------
  |  |  |  | 1529|  1.36k|#define EVP_PKEY_OP_KEYGEN (1 << 2)
  |  |  ------------------
  ------------------
  |  Branch (116:9): [True: 0, False: 1.36k]
  ------------------
  117|      0|        goto not_initialized;
  118|       |
  119|  1.36k|    if (*ppkey == NULL)
  ------------------
  |  Branch (119:9): [True: 1.36k, False: 0]
  ------------------
  120|  1.36k|        *ppkey = allocated_pkey = EVP_PKEY_new();
  121|       |
  122|  1.36k|    if (*ppkey == NULL) {
  ------------------
  |  Branch (122:9): [True: 0, False: 1.36k]
  ------------------
  123|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_EVP_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  124|      0|        return -1;
  125|      0|    }
  126|       |
  127|  1.36k|    if (ctx->op.keymgmt.genctx == NULL)
  ------------------
  |  Branch (127:9): [True: 0, False: 1.36k]
  ------------------
  128|      0|        goto not_supported;
  129|       |
  130|       |    /*
  131|       |     * Assigning gentmp to ctx->keygen_info is something our legacy
  132|       |     * implementations do.  Because the provider implementations aren't
  133|       |     * allowed to reach into our EVP_PKEY_CTX, we need to provide similar
  134|       |     * space for backward compatibility.  It's ok that we attach a local
  135|       |     * variable, as it should only be useful in the calls down from here.
  136|       |     * This is cleared as soon as it isn't useful any more, i.e. directly
  137|       |     * after the evp_keymgmt_util_gen() call.
  138|       |     */
  139|  1.36k|    ctx->keygen_info = gentmp;
  140|  1.36k|    ctx->keygen_info_count = 2;
  141|       |
  142|  1.36k|    ret = 1;
  143|  1.36k|    if (ctx->pkey != NULL) {
  ------------------
  |  Branch (143:9): [True: 0, False: 1.36k]
  ------------------
  144|      0|        EVP_KEYMGMT *tmp_keymgmt = ctx->keymgmt;
  145|      0|        void *keydata = evp_pkey_export_to_provider(ctx->pkey, ctx->libctx,
  146|      0|            &tmp_keymgmt, ctx->propquery);
  147|       |
  148|      0|        if (tmp_keymgmt == NULL)
  ------------------
  |  Branch (148:13): [True: 0, False: 0]
  ------------------
  149|      0|            goto not_supported;
  150|       |        /*
  151|       |         * It's ok if keydata is NULL here.  The backend is expected to deal
  152|       |         * with that as it sees fit.
  153|       |         */
  154|      0|        ret = evp_keymgmt_gen_set_template(ctx->keymgmt,
  155|      0|            ctx->op.keymgmt.genctx, keydata);
  156|      0|    }
  157|       |
  158|       |    /*
  159|       |     * the returned value from evp_keymgmt_util_gen() is cached in *ppkey,
  160|       |     * so we do not need to save it, just check it.
  161|       |     */
  162|  1.36k|    ret = ret
  ------------------
  |  Branch (162:11): [True: 1.36k, False: 0]
  ------------------
  163|  1.36k|        && (evp_keymgmt_util_gen(*ppkey, ctx->keymgmt, ctx->op.keymgmt.genctx,
  ------------------
  |  Branch (163:12): [True: 1.36k, False: 0]
  ------------------
  164|  1.36k|                ossl_callback_to_pkey_gencb, ctx)
  165|  1.36k|            != NULL);
  166|       |
  167|  1.36k|    ctx->keygen_info = NULL;
  168|       |
  169|  1.36k|#if !defined(FIPS_MODULE) && !defined(OPENSSL_NO_DEPRECATED_3_6)
  170|       |    /* In case |*ppkey| was originally a legacy key */
  171|  1.36k|    if (ret)
  ------------------
  |  Branch (171:9): [True: 1.36k, False: 0]
  ------------------
  172|  1.36k|        evp_pkey_free_legacy(*ppkey);
  173|  1.36k|#endif
  174|       |
  175|       |    /*
  176|       |     * Because we still have legacy keys
  177|       |     */
  178|  1.36k|    (*ppkey)->type = ctx->legacy_keytype;
  179|       |
  180|  1.36k|    goto end;
  181|       |
  182|  1.36k|end:
  183|  1.36k|    if (ret <= 0) {
  ------------------
  |  Branch (183:9): [True: 0, False: 1.36k]
  ------------------
  184|      0|        if (allocated_pkey != NULL)
  ------------------
  |  Branch (184:13): [True: 0, False: 0]
  ------------------
  185|      0|            *ppkey = NULL;
  186|      0|        EVP_PKEY_free(allocated_pkey);
  187|      0|    }
  188|  1.36k|    return ret;
  189|       |
  190|      0|not_supported:
  191|      0|    ERR_raise(ERR_LIB_EVP, EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  192|      0|    ret = -2;
  193|      0|    goto end;
  194|      0|not_initialized:
  195|       |    ERR_raise(ERR_LIB_EVP, EVP_R_OPERATION_NOT_INITIALIZED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  196|      0|    ret = -1;
  197|      0|    goto end;
  198|  1.36k|}
EVP_PKEY_keygen:
  210|    684|{
  211|    684|    if (ctx->operation != EVP_PKEY_OP_KEYGEN) {
  ------------------
  |  | 1529|    684|#define EVP_PKEY_OP_KEYGEN (1 << 2)
  ------------------
  |  Branch (211:9): [True: 0, False: 684]
  ------------------
  212|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_OPERATION_NOT_INITIALIZED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  213|      0|        return -1;
  214|      0|    }
  215|    684|    return EVP_PKEY_generate(ctx, ppkey);
  216|    684|}
EVP_PKEY_export:
  384|    684|{
  385|    684|    if (pkey == NULL) {
  ------------------
  |  Branch (385:9): [True: 0, False: 684]
  ------------------
  386|      0|        ERR_raise(ERR_LIB_EVP, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  387|      0|        return 0;
  388|      0|    }
  389|    684|#ifndef FIPS_MODULE
  390|    684|    if (evp_pkey_is_legacy(pkey)) {
  ------------------
  |  |  381|    684|    ((pk)->type != EVP_PKEY_NONE && (pk)->keymgmt == NULL)
  |  |  ------------------
  |  |  |  |   62|    684|#define EVP_PKEY_NONE NID_undef
  |  |  |  |  ------------------
  |  |  |  |  |  |   18|  1.36k|#define NID_undef                       0
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (381:6): [True: 684, False: 0]
  |  |  |  Branch (381:37): [True: 0, False: 684]
  |  |  ------------------
  ------------------
  391|      0|        struct fake_import_data_st data;
  392|       |
  393|      0|        data.export_cb = export_cb;
  394|      0|        data.export_cbarg = export_cbarg;
  395|       |
  396|       |        /*
  397|       |         * We don't need to care about libctx or propq here, as we're only
  398|       |         * interested in the resulting OSSL_PARAM array.
  399|       |         */
  400|      0|        return pkey->ameth->export_to(pkey, &data, pkey_fake_import,
  401|      0|            NULL, NULL);
  402|      0|    }
  403|    684|#endif
  404|    684|    return evp_keymgmt_util_export(pkey, selection, export_cb, export_cbarg);
  405|    684|}
pmeth_gn.c:gen_init:
   27|  1.36k|{
   28|  1.36k|    int ret = 0;
   29|       |
   30|  1.36k|    if (ctx == NULL)
  ------------------
  |  Branch (30:9): [True: 0, False: 1.36k]
  ------------------
   31|      0|        goto not_supported;
   32|       |
   33|  1.36k|    evp_pkey_ctx_free_old_ops(ctx);
   34|  1.36k|    ctx->operation = operation;
   35|       |
   36|  1.36k|    if (ctx->keymgmt == NULL || ctx->keymgmt->gen_init == NULL)
  ------------------
  |  Branch (36:9): [True: 0, False: 1.36k]
  |  Branch (36:33): [True: 0, False: 1.36k]
  ------------------
   37|      0|        goto not_supported;
   38|       |
   39|  1.36k|    switch (operation) {
  ------------------
  |  Branch (39:13): [True: 1.36k, False: 0]
  ------------------
   40|      0|    case EVP_PKEY_OP_PARAMGEN:
  ------------------
  |  | 1528|      0|#define EVP_PKEY_OP_PARAMGEN (1 << 1)
  ------------------
  |  Branch (40:5): [True: 0, False: 1.36k]
  ------------------
   41|      0|        ctx->op.keymgmt.genctx = evp_keymgmt_gen_init(ctx->keymgmt,
   42|      0|            OSSL_KEYMGMT_SELECT_ALL_PARAMETERS, NULL);
  ------------------
  |  |  653|      0|    (OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS \
  |  |  ------------------
  |  |  |  |  648|      0|#define OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS 0x04
  |  |  ------------------
  |  |  654|      0|        | OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS)
  |  |  ------------------
  |  |  |  |  649|      0|#define OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS 0x80
  |  |  ------------------
  ------------------
   43|      0|        break;
   44|  1.36k|    case EVP_PKEY_OP_KEYGEN:
  ------------------
  |  | 1529|  1.36k|#define EVP_PKEY_OP_KEYGEN (1 << 2)
  ------------------
  |  Branch (44:5): [True: 1.36k, False: 0]
  ------------------
   45|  1.36k|        ctx->op.keymgmt.genctx = evp_keymgmt_gen_init(ctx->keymgmt, OSSL_KEYMGMT_SELECT_KEYPAIR,
  ------------------
  |  |  656|  1.36k|    (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  646|  1.36k|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  |  |  ------------------
  |  |                   (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  647|  1.36k|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  |  |  ------------------
  ------------------
   46|  1.36k|            NULL);
   47|  1.36k|        break;
   48|  1.36k|    }
   49|       |
   50|  1.36k|    if (ctx->op.keymgmt.genctx == NULL)
  ------------------
  |  Branch (50:9): [True: 0, False: 1.36k]
  ------------------
   51|  1.36k|        ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   52|  1.36k|    else
   53|  1.36k|        ret = 1;
   54|  1.36k|    goto end;
   55|       |
   56|  1.36k|end:
   57|  1.36k|    if (ret <= 0 && ctx != NULL) {
  ------------------
  |  Branch (57:9): [True: 0, False: 1.36k]
  |  Branch (57:21): [True: 0, False: 0]
  ------------------
   58|      0|        evp_pkey_ctx_free_old_ops(ctx);
   59|      0|        ctx->operation = EVP_PKEY_OP_UNDEFINED;
  ------------------
  |  | 1527|      0|#define EVP_PKEY_OP_UNDEFINED 0
  ------------------
   60|      0|    }
   61|  1.36k|    return ret;
   62|       |
   63|      0|not_supported:
   64|       |    ERR_raise(ERR_LIB_EVP, EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   65|      0|    ret = -2;
   66|      0|    goto end;
   67|  1.36k|}

evp_pkey_ctx_state:
   49|  1.36k|{
   50|  1.36k|    if (ctx->operation == EVP_PKEY_OP_UNDEFINED)
  ------------------
  |  | 1527|  1.36k|#define EVP_PKEY_OP_UNDEFINED 0
  ------------------
  |  Branch (50:9): [True: 0, False: 1.36k]
  ------------------
   51|      0|        return EVP_PKEY_STATE_UNKNOWN;
  ------------------
  |  |  678|      0|#define EVP_PKEY_STATE_UNKNOWN 0
  ------------------
   52|       |
   53|  1.36k|    if ((EVP_PKEY_CTX_IS_DERIVE_OP(ctx)
  ------------------
  |  |  476|  2.73k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_DERIVE) != 0)
  |  |  ------------------
  |  |  |  | 1556|  1.36k|    (EVP_PKEY_OP_DERIVE)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1538|  1.36k|#define EVP_PKEY_OP_DERIVE (1 << 11)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (476:5): [True: 0, False: 1.36k]
  |  |  ------------------
  ------------------
   54|      0|            && ctx->op.kex.algctx != NULL)
  ------------------
  |  Branch (54:16): [True: 0, False: 0]
  ------------------
   55|  1.36k|        || (EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx)
  ------------------
  |  |  473|  2.73k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_SIG) != 0)
  |  |  ------------------
  |  |  |  | 1547|  1.36k|    (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1531|  1.36k|#define EVP_PKEY_OP_SIGN (1 << 4)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1541|  1.36k|#define EVP_PKEY_OP_SIGNMSG (1 << 14)
  |  |  |  |  ------------------
  |  |  |  | 1548|  1.36k|        | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1532|  1.36k|#define EVP_PKEY_OP_VERIFY (1 << 5)
  |  |  |  |  ------------------
  |  |  |  |                       | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1542|  1.36k|#define EVP_PKEY_OP_VERIFYMSG (1 << 15)
  |  |  |  |  ------------------
  |  |  |  | 1549|  1.36k|        | EVP_PKEY_OP_VERIFYRECOVER                  \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1533|  1.36k|#define EVP_PKEY_OP_VERIFYRECOVER (1 << 6)
  |  |  |  |  ------------------
  |  |  |  | 1550|  1.36k|        | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1534|  1.36k|#define EVP_PKEY_OP_SIGNCTX (1 << 7)
  |  |  |  |  ------------------
  |  |  |  |                       | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1535|  1.36k|#define EVP_PKEY_OP_VERIFYCTX (1 << 8)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (473:5): [True: 0, False: 1.36k]
  |  |  ------------------
  ------------------
   56|      0|            && ctx->op.sig.algctx != NULL)
  ------------------
  |  Branch (56:16): [True: 0, False: 0]
  ------------------
   57|  1.36k|        || (EVP_PKEY_CTX_IS_ASYM_CIPHER_OP(ctx)
  ------------------
  |  |  479|  2.73k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_CRYPT) != 0)
  |  |  ------------------
  |  |  |  | 1553|  1.36k|    (EVP_PKEY_OP_ENCRYPT | EVP_PKEY_OP_DECRYPT)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1536|  1.36k|#define EVP_PKEY_OP_ENCRYPT (1 << 9)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_ENCRYPT | EVP_PKEY_OP_DECRYPT)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1537|  1.36k|#define EVP_PKEY_OP_DECRYPT (1 << 10)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (479:5): [True: 0, False: 1.36k]
  |  |  ------------------
  ------------------
   58|      0|            && ctx->op.ciph.algctx != NULL)
  ------------------
  |  Branch (58:16): [True: 0, False: 0]
  ------------------
   59|  1.36k|        || (EVP_PKEY_CTX_IS_GEN_OP(ctx)
  ------------------
  |  |  482|  2.73k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_GEN) != 0)
  |  |  ------------------
  |  |  |  | 1565|  1.36k|    (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1528|  1.36k|#define EVP_PKEY_OP_PARAMGEN (1 << 1)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1529|  1.36k|#define EVP_PKEY_OP_KEYGEN (1 << 2)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (482:5): [True: 1.36k, False: 0]
  |  |  ------------------
  ------------------
   60|  1.36k|            && ctx->op.keymgmt.genctx != NULL)
  ------------------
  |  Branch (60:16): [True: 1.36k, False: 0]
  ------------------
   61|      0|        || (EVP_PKEY_CTX_IS_KEM_OP(ctx)
  ------------------
  |  |  488|      0|    (((ctx)->operation & EVP_PKEY_OP_TYPE_KEM) != 0)
  |  |  ------------------
  |  |  |  | 1562|      0|    (EVP_PKEY_OP_ENCAPSULATE | EVP_PKEY_OP_DECAPSULATE)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1539|      0|#define EVP_PKEY_OP_ENCAPSULATE (1 << 12)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_ENCAPSULATE | EVP_PKEY_OP_DECAPSULATE)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1540|      0|#define EVP_PKEY_OP_DECAPSULATE (1 << 13)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (488:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
   62|      0|            && ctx->op.encap.algctx != NULL))
  ------------------
  |  Branch (62:16): [True: 0, False: 0]
  ------------------
   63|  1.36k|        return EVP_PKEY_STATE_PROVIDER;
  ------------------
  |  |  680|  1.36k|#define EVP_PKEY_STATE_PROVIDER 2
  ------------------
   64|       |
   65|      0|    return EVP_PKEY_STATE_LEGACY;
  ------------------
  |  |  679|      0|#define EVP_PKEY_STATE_LEGACY 1
  ------------------
   66|  1.36k|}
EVP_PKEY_CTX_new_from_name:
  194|  1.36k|{
  195|       |    return int_ctx_new(libctx, NULL, name, propquery, -1);
  196|  1.36k|}
EVP_PKEY_CTX_new_from_pkey:
  200|  9.02k|{
  201|       |    return int_ctx_new(libctx, pkey, NULL, propquery, -1);
  202|  9.02k|}
evp_pkey_ctx_free_old_ops:
  205|  11.7k|{
  206|  11.7k|    if (EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx)) {
  ------------------
  |  |  473|  11.7k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_SIG) != 0)
  |  |  ------------------
  |  |  |  | 1547|  11.7k|    (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1531|  11.7k|#define EVP_PKEY_OP_SIGN (1 << 4)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1541|  11.7k|#define EVP_PKEY_OP_SIGNMSG (1 << 14)
  |  |  |  |  ------------------
  |  |  |  | 1548|  11.7k|        | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1532|  11.7k|#define EVP_PKEY_OP_VERIFY (1 << 5)
  |  |  |  |  ------------------
  |  |  |  |                       | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1542|  11.7k|#define EVP_PKEY_OP_VERIFYMSG (1 << 15)
  |  |  |  |  ------------------
  |  |  |  | 1549|  11.7k|        | EVP_PKEY_OP_VERIFYRECOVER                  \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1533|  11.7k|#define EVP_PKEY_OP_VERIFYRECOVER (1 << 6)
  |  |  |  |  ------------------
  |  |  |  | 1550|  11.7k|        | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1534|  11.7k|#define EVP_PKEY_OP_SIGNCTX (1 << 7)
  |  |  |  |  ------------------
  |  |  |  |                       | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1535|  11.7k|#define EVP_PKEY_OP_VERIFYCTX (1 << 8)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (473:5): [True: 0, False: 11.7k]
  |  |  ------------------
  ------------------
  207|      0|        if (ctx->op.sig.algctx != NULL && ctx->op.sig.signature != NULL)
  ------------------
  |  Branch (207:13): [True: 0, False: 0]
  |  Branch (207:43): [True: 0, False: 0]
  ------------------
  208|      0|            ctx->op.sig.signature->freectx(ctx->op.sig.algctx);
  209|      0|        EVP_SIGNATURE_free(ctx->op.sig.signature);
  210|      0|        ctx->op.sig.algctx = NULL;
  211|      0|        ctx->op.sig.signature = NULL;
  212|  11.7k|    } else if (EVP_PKEY_CTX_IS_DERIVE_OP(ctx)) {
  ------------------
  |  |  476|  11.7k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_DERIVE) != 0)
  |  |  ------------------
  |  |  |  | 1556|  11.7k|    (EVP_PKEY_OP_DERIVE)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1538|  11.7k|#define EVP_PKEY_OP_DERIVE (1 << 11)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (476:5): [True: 0, False: 11.7k]
  |  |  ------------------
  ------------------
  213|      0|        if (ctx->op.kex.algctx != NULL && ctx->op.kex.exchange != NULL)
  ------------------
  |  Branch (213:13): [True: 0, False: 0]
  |  Branch (213:43): [True: 0, False: 0]
  ------------------
  214|      0|            ctx->op.kex.exchange->freectx(ctx->op.kex.algctx);
  215|      0|        EVP_KEYEXCH_free(ctx->op.kex.exchange);
  216|      0|        ctx->op.kex.algctx = NULL;
  217|      0|        ctx->op.kex.exchange = NULL;
  218|  11.7k|    } else if (EVP_PKEY_CTX_IS_KEM_OP(ctx)) {
  ------------------
  |  |  488|  11.7k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_KEM) != 0)
  |  |  ------------------
  |  |  |  | 1562|  11.7k|    (EVP_PKEY_OP_ENCAPSULATE | EVP_PKEY_OP_DECAPSULATE)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1539|  11.7k|#define EVP_PKEY_OP_ENCAPSULATE (1 << 12)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_ENCAPSULATE | EVP_PKEY_OP_DECAPSULATE)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1540|  11.7k|#define EVP_PKEY_OP_DECAPSULATE (1 << 13)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (488:5): [True: 0, False: 11.7k]
  |  |  ------------------
  ------------------
  219|      0|        if (ctx->op.encap.algctx != NULL && ctx->op.encap.kem != NULL)
  ------------------
  |  Branch (219:13): [True: 0, False: 0]
  |  Branch (219:45): [True: 0, False: 0]
  ------------------
  220|      0|            ctx->op.encap.kem->freectx(ctx->op.encap.algctx);
  221|      0|        EVP_KEM_free(ctx->op.encap.kem);
  222|      0|        ctx->op.encap.algctx = NULL;
  223|      0|        ctx->op.encap.kem = NULL;
  224|  11.7k|    } else if (EVP_PKEY_CTX_IS_ASYM_CIPHER_OP(ctx)) {
  ------------------
  |  |  479|  11.7k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_CRYPT) != 0)
  |  |  ------------------
  |  |  |  | 1553|  11.7k|    (EVP_PKEY_OP_ENCRYPT | EVP_PKEY_OP_DECRYPT)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1536|  11.7k|#define EVP_PKEY_OP_ENCRYPT (1 << 9)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_ENCRYPT | EVP_PKEY_OP_DECRYPT)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1537|  11.7k|#define EVP_PKEY_OP_DECRYPT (1 << 10)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (479:5): [True: 0, False: 11.7k]
  |  |  ------------------
  ------------------
  225|      0|        if (ctx->op.ciph.algctx != NULL && ctx->op.ciph.cipher != NULL)
  ------------------
  |  Branch (225:13): [True: 0, False: 0]
  |  Branch (225:44): [True: 0, False: 0]
  ------------------
  226|      0|            ctx->op.ciph.cipher->freectx(ctx->op.ciph.algctx);
  227|      0|        EVP_ASYM_CIPHER_free(ctx->op.ciph.cipher);
  228|      0|        ctx->op.ciph.algctx = NULL;
  229|      0|        ctx->op.ciph.cipher = NULL;
  230|  11.7k|    } else if (EVP_PKEY_CTX_IS_GEN_OP(ctx)) {
  ------------------
  |  |  482|  11.7k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_GEN) != 0)
  |  |  ------------------
  |  |  |  | 1565|  11.7k|    (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1528|  11.7k|#define EVP_PKEY_OP_PARAMGEN (1 << 1)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1529|  11.7k|#define EVP_PKEY_OP_KEYGEN (1 << 2)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (482:5): [True: 1.36k, False: 10.3k]
  |  |  ------------------
  ------------------
  231|  1.36k|        if (ctx->op.keymgmt.genctx != NULL && ctx->keymgmt != NULL)
  ------------------
  |  Branch (231:13): [True: 1.36k, False: 0]
  |  Branch (231:47): [True: 1.36k, False: 0]
  ------------------
  232|  1.36k|            evp_keymgmt_gen_cleanup(ctx->keymgmt, ctx->op.keymgmt.genctx);
  233|  1.36k|    }
  234|  11.7k|}
EVP_PKEY_CTX_free:
  237|  10.7k|{
  238|  10.7k|    if (ctx == NULL)
  ------------------
  |  Branch (238:9): [True: 342, False: 10.3k]
  ------------------
  239|    342|        return;
  240|       |
  241|  10.3k|    evp_pkey_ctx_free_old_ops(ctx);
  242|  10.3k|#ifndef FIPS_MODULE
  243|  10.3k|    evp_pkey_ctx_free_all_cached_data(ctx);
  244|  10.3k|#endif
  245|  10.3k|    EVP_KEYMGMT_free(ctx->keymgmt);
  246|       |
  247|  10.3k|    OPENSSL_free(ctx->propquery);
  ------------------
  |  |  132|  10.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  248|  10.3k|    EVP_PKEY_free(ctx->pkey);
  249|  10.3k|    EVP_PKEY_free(ctx->peerkey);
  250|  10.3k|    BN_free(ctx->rsa_pubexp);
  251|  10.3k|    OPENSSL_free(ctx);
  ------------------
  |  |  132|  10.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  252|  10.3k|}
EVP_PKEY_CTX_set_params:
  425|  1.36k|{
  426|  1.36k|    switch (evp_pkey_ctx_state(ctx)) {
  ------------------
  |  Branch (426:13): [True: 1.36k, False: 0]
  ------------------
  427|  1.36k|    case EVP_PKEY_STATE_PROVIDER:
  ------------------
  |  |  680|  1.36k|#define EVP_PKEY_STATE_PROVIDER 2
  ------------------
  |  Branch (427:5): [True: 1.36k, False: 0]
  ------------------
  428|  1.36k|        if (EVP_PKEY_CTX_IS_DERIVE_OP(ctx)
  ------------------
  |  |  476|  2.73k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_DERIVE) != 0)
  |  |  ------------------
  |  |  |  | 1556|  1.36k|    (EVP_PKEY_OP_DERIVE)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1538|  1.36k|#define EVP_PKEY_OP_DERIVE (1 << 11)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (476:5): [True: 0, False: 1.36k]
  |  |  ------------------
  ------------------
  429|      0|            && ctx->op.kex.exchange != NULL
  ------------------
  |  Branch (429:16): [True: 0, False: 0]
  ------------------
  430|      0|            && ctx->op.kex.exchange->set_ctx_params != NULL)
  ------------------
  |  Branch (430:16): [True: 0, False: 0]
  ------------------
  431|      0|            return ctx->op.kex.exchange->set_ctx_params(ctx->op.kex.algctx,
  432|      0|                params);
  433|  1.36k|        if (EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx)
  ------------------
  |  |  473|  2.73k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_SIG) != 0)
  |  |  ------------------
  |  |  |  | 1547|  1.36k|    (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1531|  1.36k|#define EVP_PKEY_OP_SIGN (1 << 4)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_SIGNMSG          \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1541|  1.36k|#define EVP_PKEY_OP_SIGNMSG (1 << 14)
  |  |  |  |  ------------------
  |  |  |  | 1548|  1.36k|        | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1532|  1.36k|#define EVP_PKEY_OP_VERIFY (1 << 5)
  |  |  |  |  ------------------
  |  |  |  |                       | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYMSG \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1542|  1.36k|#define EVP_PKEY_OP_VERIFYMSG (1 << 15)
  |  |  |  |  ------------------
  |  |  |  | 1549|  1.36k|        | EVP_PKEY_OP_VERIFYRECOVER                  \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1533|  1.36k|#define EVP_PKEY_OP_VERIFYRECOVER (1 << 6)
  |  |  |  |  ------------------
  |  |  |  | 1550|  1.36k|        | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1534|  1.36k|#define EVP_PKEY_OP_SIGNCTX (1 << 7)
  |  |  |  |  ------------------
  |  |  |  |                       | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1535|  1.36k|#define EVP_PKEY_OP_VERIFYCTX (1 << 8)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (473:5): [True: 0, False: 1.36k]
  |  |  ------------------
  ------------------
  434|      0|            && ctx->op.sig.signature != NULL
  ------------------
  |  Branch (434:16): [True: 0, False: 0]
  ------------------
  435|      0|            && ctx->op.sig.signature->set_ctx_params != NULL)
  ------------------
  |  Branch (435:16): [True: 0, False: 0]
  ------------------
  436|      0|            return ctx->op.sig.signature->set_ctx_params(ctx->op.sig.algctx,
  437|      0|                params);
  438|  1.36k|        if (EVP_PKEY_CTX_IS_ASYM_CIPHER_OP(ctx)
  ------------------
  |  |  479|  2.73k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_CRYPT) != 0)
  |  |  ------------------
  |  |  |  | 1553|  1.36k|    (EVP_PKEY_OP_ENCRYPT | EVP_PKEY_OP_DECRYPT)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1536|  1.36k|#define EVP_PKEY_OP_ENCRYPT (1 << 9)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_ENCRYPT | EVP_PKEY_OP_DECRYPT)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1537|  1.36k|#define EVP_PKEY_OP_DECRYPT (1 << 10)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (479:5): [True: 0, False: 1.36k]
  |  |  ------------------
  ------------------
  439|      0|            && ctx->op.ciph.cipher != NULL
  ------------------
  |  Branch (439:16): [True: 0, False: 0]
  ------------------
  440|      0|            && ctx->op.ciph.cipher->set_ctx_params != NULL)
  ------------------
  |  Branch (440:16): [True: 0, False: 0]
  ------------------
  441|      0|            return ctx->op.ciph.cipher->set_ctx_params(ctx->op.ciph.algctx,
  442|      0|                params);
  443|  1.36k|        if (EVP_PKEY_CTX_IS_GEN_OP(ctx)
  ------------------
  |  |  482|  2.73k|    (((ctx)->operation & EVP_PKEY_OP_TYPE_GEN) != 0)
  |  |  ------------------
  |  |  |  | 1565|  1.36k|    (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1528|  1.36k|#define EVP_PKEY_OP_PARAMGEN (1 << 1)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1529|  1.36k|#define EVP_PKEY_OP_KEYGEN (1 << 2)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (482:5): [True: 1.36k, False: 0]
  |  |  ------------------
  ------------------
  444|  1.36k|            && ctx->keymgmt != NULL
  ------------------
  |  Branch (444:16): [True: 1.36k, False: 0]
  ------------------
  445|  1.36k|            && ctx->keymgmt->gen_set_params != NULL)
  ------------------
  |  Branch (445:16): [True: 1.36k, False: 0]
  ------------------
  446|  1.36k|            return evp_keymgmt_gen_set_params(ctx->keymgmt, ctx->op.keymgmt.genctx,
  447|  1.36k|                params);
  448|      0|        if (EVP_PKEY_CTX_IS_KEM_OP(ctx)
  ------------------
  |  |  488|      0|    (((ctx)->operation & EVP_PKEY_OP_TYPE_KEM) != 0)
  |  |  ------------------
  |  |  |  | 1562|      0|    (EVP_PKEY_OP_ENCAPSULATE | EVP_PKEY_OP_DECAPSULATE)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1539|      0|#define EVP_PKEY_OP_ENCAPSULATE (1 << 12)
  |  |  |  |  ------------------
  |  |  |  |                   (EVP_PKEY_OP_ENCAPSULATE | EVP_PKEY_OP_DECAPSULATE)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1540|      0|#define EVP_PKEY_OP_DECAPSULATE (1 << 13)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (488:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  449|      0|            && ctx->op.encap.kem != NULL
  ------------------
  |  Branch (449:16): [True: 0, False: 0]
  ------------------
  450|      0|            && ctx->op.encap.kem->set_ctx_params != NULL)
  ------------------
  |  Branch (450:16): [True: 0, False: 0]
  ------------------
  451|      0|            return ctx->op.encap.kem->set_ctx_params(ctx->op.encap.algctx,
  452|      0|                params);
  453|      0|        break;
  454|      0|    case EVP_PKEY_STATE_UNKNOWN:
  ------------------
  |  |  678|      0|#define EVP_PKEY_STATE_UNKNOWN 0
  ------------------
  |  Branch (454:5): [True: 0, False: 1.36k]
  ------------------
  455|      0|        break;
  456|      0|#ifndef FIPS_MODULE
  457|      0|    case EVP_PKEY_STATE_LEGACY:
  ------------------
  |  |  679|      0|#define EVP_PKEY_STATE_LEGACY 1
  ------------------
  |  Branch (457:5): [True: 0, False: 1.36k]
  ------------------
  458|      0|        return evp_pkey_ctx_set_params_to_ctrl(ctx, params);
  459|  1.36k|#endif
  460|  1.36k|    }
  461|      0|    return 0;
  462|  1.36k|}
pmeth_lib.c:int_ctx_new:
   71|  10.3k|{
   72|  10.3k|    EVP_PKEY_CTX *ret = NULL;
   73|  10.3k|    EVP_KEYMGMT *keymgmt = NULL;
   74|       |
   75|       |    /* Code below to be removed when legacy support is dropped. */
   76|       |    /* BEGIN legacy */
   77|  10.3k|    if (id == -1) {
  ------------------
  |  Branch (77:9): [True: 10.3k, False: 0]
  ------------------
   78|  10.3k|        if (pkey != NULL && !evp_pkey_is_provided(pkey)) {
  ------------------
  |  |  383|  9.02k|    ((pk)->keymgmt != NULL)
  ------------------
  |  Branch (78:13): [True: 9.02k, False: 1.36k]
  |  Branch (78:29): [True: 9.02k, False: 0]
  ------------------
   79|  9.02k|            id = pkey->type;
   80|  9.02k|        } else {
   81|  1.36k|            if (pkey != NULL) {
  ------------------
  |  Branch (81:17): [True: 0, False: 1.36k]
  ------------------
   82|       |                /* Must be provided if we get here */
   83|      0|                keytype = EVP_KEYMGMT_get0_name(pkey->keymgmt);
   84|      0|            }
   85|  1.36k|#ifndef FIPS_MODULE
   86|  1.36k|            if (keytype != NULL) {
  ------------------
  |  Branch (86:17): [True: 1.36k, False: 0]
  ------------------
   87|  1.36k|                id = evp_pkey_name2type(keytype);
   88|  1.36k|                if (id == NID_undef)
  ------------------
  |  |   18|  1.36k|#define NID_undef                       0
  ------------------
  |  Branch (88:21): [True: 684, False: 684]
  ------------------
   89|    684|                    id = -1;
   90|  1.36k|            }
   91|  1.36k|#endif
   92|  1.36k|        }
   93|  10.3k|    }
   94|       |
   95|  10.3k|#ifndef FIPS_MODULE
   96|       |    /*
   97|       |     * Here, we extract what information we can for the purpose of
   98|       |     * supporting usage with implementations from providers, to make
   99|       |     * for a smooth transition from legacy stuff to provider based stuff.
  100|       |     */
  101|  10.3k|    if (id != -1)
  ------------------
  |  Branch (101:9): [True: 9.70k, False: 684]
  ------------------
  102|  9.70k|        keytype = OBJ_nid2sn(id);
  103|       |
  104|       |    /* END legacy */
  105|  10.3k|#endif /* FIPS_MODULE */
  106|       |    /* We try fetching a provider implementation. */
  107|  10.3k|    if (keytype != NULL) {
  ------------------
  |  Branch (107:9): [True: 10.3k, False: 0]
  ------------------
  108|       |        /*
  109|       |         * If |pkey| is given and is provided, we take a reference to its
  110|       |         * keymgmt.  Otherwise, we fetch one for the keytype we got. This
  111|       |         * is to ensure that operation init functions can access what they
  112|       |         * need through this single pointer.
  113|       |         */
  114|  10.3k|        if (pkey != NULL && pkey->keymgmt != NULL) {
  ------------------
  |  Branch (114:13): [True: 9.02k, False: 1.36k]
  |  Branch (114:29): [True: 0, False: 9.02k]
  ------------------
  115|      0|            if (!EVP_KEYMGMT_up_ref(pkey->keymgmt))
  ------------------
  |  Branch (115:17): [True: 0, False: 0]
  ------------------
  116|      0|                ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  117|      0|            else
  118|      0|                keymgmt = pkey->keymgmt;
  119|  10.3k|        } else {
  120|  10.3k|            keymgmt = EVP_KEYMGMT_fetch(libctx, keytype, propquery);
  121|  10.3k|        }
  122|  10.3k|        if (keymgmt == NULL)
  ------------------
  |  Branch (122:13): [True: 0, False: 10.3k]
  ------------------
  123|      0|            return NULL; /* EVP_KEYMGMT_fetch() recorded an error */
  124|       |
  125|  10.3k|#ifndef FIPS_MODULE
  126|       |        /*
  127|       |         * Chase down the legacy NID, as that might be needed for diverse
  128|       |         * purposes, such as ensure that EVP_PKEY_type() can return sensible
  129|       |         * values. We go through all keymgmt names, because the keytype
  130|       |         * that's passed to this function doesn't necessarily translate
  131|       |         * directly.
  132|       |         */
  133|  10.3k|        if (keymgmt != NULL) {
  ------------------
  |  Branch (133:13): [True: 10.3k, False: 0]
  ------------------
  134|  10.3k|            int tmp_id = evp_keymgmt_get_legacy_alg(keymgmt);
  135|       |
  136|  10.3k|            if (tmp_id != NID_undef) {
  ------------------
  |  |   18|  10.3k|#define NID_undef                       0
  ------------------
  |  Branch (136:17): [True: 9.70k, False: 684]
  ------------------
  137|  9.70k|                if (id == -1) {
  ------------------
  |  Branch (137:21): [True: 0, False: 9.70k]
  ------------------
  138|      0|                    id = tmp_id;
  139|  9.70k|                } else {
  140|       |                    /*
  141|       |                     * It really really shouldn't differ.  If it still does,
  142|       |                     * something is very wrong.
  143|       |                     */
  144|  9.70k|                    if (!ossl_assert(id == tmp_id)) {
  ------------------
  |  |   52|  9.70k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  9.70k|    __FILE__, __LINE__)
  ------------------
  |  Branch (144:25): [True: 0, False: 9.70k]
  ------------------
  145|      0|                        ERR_raise(ERR_LIB_EVP, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  146|      0|                        EVP_KEYMGMT_free(keymgmt);
  147|      0|                        return NULL;
  148|      0|                    }
  149|  9.70k|                }
  150|  9.70k|            }
  151|  10.3k|        }
  152|  10.3k|#endif
  153|  10.3k|    }
  154|       |
  155|  10.3k|    if (keymgmt == NULL) {
  ------------------
  |  Branch (155:9): [True: 0, False: 10.3k]
  ------------------
  156|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_UNSUPPORTED_ALGORITHM);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  157|  10.3k|    } else {
  158|  10.3k|        ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  109|  10.3k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  159|  10.3k|    }
  160|       |
  161|  10.3k|    if (ret == NULL) {
  ------------------
  |  Branch (161:9): [True: 0, False: 10.3k]
  ------------------
  162|      0|        EVP_KEYMGMT_free(keymgmt);
  163|      0|        return NULL;
  164|      0|    }
  165|  10.3k|    if (propquery != NULL) {
  ------------------
  |  Branch (165:9): [True: 0, False: 10.3k]
  ------------------
  166|      0|        ret->propquery = OPENSSL_strdup(propquery);
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  167|      0|        if (ret->propquery == NULL) {
  ------------------
  |  Branch (167:13): [True: 0, False: 0]
  ------------------
  168|      0|            OPENSSL_free(ret);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  169|      0|            EVP_KEYMGMT_free(keymgmt);
  170|      0|            return NULL;
  171|      0|        }
  172|      0|    }
  173|  10.3k|    ret->libctx = libctx;
  174|  10.3k|    ret->keytype = keytype;
  175|  10.3k|    ret->keymgmt = keymgmt;
  176|  10.3k|    ret->legacy_keytype = id;
  177|  10.3k|    ret->operation = EVP_PKEY_OP_UNDEFINED;
  ------------------
  |  | 1527|  10.3k|#define EVP_PKEY_OP_UNDEFINED 0
  ------------------
  178|       |
  179|  10.3k|    if (pkey != NULL && !EVP_PKEY_up_ref(pkey)) {
  ------------------
  |  Branch (179:9): [True: 9.02k, False: 1.36k]
  |  Branch (179:25): [True: 0, False: 9.02k]
  ------------------
  180|      0|        EVP_PKEY_CTX_free(ret);
  181|      0|        return NULL;
  182|      0|    }
  183|       |
  184|  10.3k|    ret->pkey = pkey;
  185|       |
  186|  10.3k|    return ret;
  187|  10.3k|}
pmeth_lib.c:decode_cmd:
 1154|  10.3k|{
 1155|  10.3k|    if (cmd == -1) {
  ------------------
  |  Branch (1155:9): [True: 0, False: 10.3k]
  ------------------
 1156|       |        /*
 1157|       |         * The consequence of the assertion not being true is that this
 1158|       |         * function will return -1, which will cause the calling functions
 1159|       |         * to signal that the command is unsupported...  in non-debug mode.
 1160|       |         */
 1161|      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__)
  ------------------
 1162|      0|            if (strcmp(name, "distid") == 0 || strcmp(name, "hexdistid") == 0)
  ------------------
  |  Branch (1162:17): [True: 0, False: 0]
  |  Branch (1162:48): [True: 0, False: 0]
  ------------------
 1163|      0|                cmd = EVP_PKEY_CTRL_SET1_ID;
  ------------------
  |  | 1590|      0|#define EVP_PKEY_CTRL_SET1_ID 15
  ------------------
 1164|      0|    }
 1165|       |
 1166|  10.3k|    return cmd;
 1167|  10.3k|}
pmeth_lib.c:evp_pkey_ctx_free_cached_data:
 1233|  10.3k|{
 1234|  10.3k|    cmd = decode_cmd(cmd, name);
 1235|  10.3k|    switch (cmd) {
  ------------------
  |  Branch (1235:13): [True: 10.3k, False: 0]
  ------------------
 1236|  10.3k|    case EVP_PKEY_CTRL_SET1_ID:
  ------------------
  |  | 1590|  10.3k|#define EVP_PKEY_CTRL_SET1_ID 15
  ------------------
  |  Branch (1236:5): [True: 10.3k, False: 0]
  ------------------
 1237|  10.3k|        OPENSSL_free(ctx->cached_parameters.dist_id);
  ------------------
  |  |  132|  10.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1238|  10.3k|        OPENSSL_free(ctx->cached_parameters.dist_id_name);
  ------------------
  |  |  132|  10.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1239|  10.3k|        ctx->cached_parameters.dist_id = NULL;
 1240|       |        ctx->cached_parameters.dist_id_name = NULL;
 1241|  10.3k|        break;
 1242|  10.3k|    }
 1243|  10.3k|}
pmeth_lib.c:evp_pkey_ctx_free_all_cached_data:
 1246|  10.3k|{
 1247|  10.3k|    evp_pkey_ctx_free_cached_data(ctx, EVP_PKEY_CTRL_SET1_ID, NULL);
  ------------------
  |  | 1590|  10.3k|#define EVP_PKEY_CTRL_SET1_ID 15
  ------------------
 1248|  10.3k|}

EVP_SIGNATURE_free:
  456|    753|{
  457|    753|    int i;
  458|       |
  459|    753|    if (signature == NULL)
  ------------------
  |  Branch (459:9): [True: 0, False: 753]
  ------------------
  460|      0|        return;
  461|    753|    CRYPTO_DOWN_REF(&signature->refcnt, &i);
  462|    753|    if (i > 0)
  ------------------
  |  Branch (462:9): [True: 753, False: 0]
  ------------------
  463|    753|        return;
  464|      0|    OPENSSL_free(signature->type_name);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  465|      0|    ossl_provider_free(signature->prov);
  466|      0|    CRYPTO_FREE_REF(&signature->refcnt);
  467|      0|    OPENSSL_free(signature);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  468|      0|}
EVP_SIGNATURE_up_ref:
  471|    755|{
  472|    755|    int ref = 0;
  473|       |
  474|    755|    CRYPTO_UP_REF(&signature->refcnt, &ref);
  475|    755|    return 1;
  476|    755|}
EVP_SIGNATURE_fetch:
  485|    694|{
  486|    694|    return evp_generic_fetch(ctx, OSSL_OP_SIGNATURE, algorithm, properties,
  ------------------
  |  |  290|    694|#define OSSL_OP_SIGNATURE 12
  ------------------
  487|    694|        evp_signature_from_algorithm,
  488|    694|        evp_signature_up_ref,
  489|    694|        evp_signature_free);
  490|    694|}
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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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:
  ------------------
  |  |  797|     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:
  ------------------
  |  |  798|     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:
  ------------------
  |  |  799|     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:
  ------------------
  |  |  823|     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:
  ------------------
  |  |  824|     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:
  ------------------
  |  |  825|     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:
  ------------------
  |  |  800|     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:
  ------------------
  |  |  801|     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:
  ------------------
  |  |  826|     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:
  ------------------
  |  |  827|     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:
  ------------------
  |  |  828|     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:
  ------------------
  |  |  802|     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:
  ------------------
  |  |  803|     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:
  ------------------
  |  |  804|     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:
  ------------------
  |  |  805|      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:
  ------------------
  |  |  806|      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:
  ------------------
  |  |  807|     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:
  ------------------
  |  |  808|     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:
  ------------------
  |  |  809|      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:
  ------------------
  |  |  810|      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:
  ------------------
  |  |  811|     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:
  ------------------
  |  |  812|     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:
  ------------------
  |  |  813|     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:
  ------------------
  |  |  814|     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:
  ------------------
  |  |  815|     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:
  ------------------
  |  |  816|     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:
  ------------------
  |  |  817|     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:
  ------------------
  |  |  818|      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:
  ------------------
  |  |  819|      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:
  ------------------
  |  |  820|      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:
  ------------------
  |  |  821|      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:
  ------------------
  |  |  822|     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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   59|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   71|      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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   59|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   71|      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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   59|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   71|      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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   59|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   71|      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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   59|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   71|      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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   59|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   71|      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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   59|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   71|      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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   59|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   71|      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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   59|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   71|      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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   59|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   71|      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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   59|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   71|      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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   59|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   71|      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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   59|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   71|      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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   59|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   71|      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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   59|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   71|      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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   59|      0|#define ERR_LIB_EVP 6
  ------------------
                      ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
  ------------------
  |  |   71|      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));
  ------------------
  |  |  109|     59|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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|    755|{
   30|    755|    return EVP_SIGNATURE_up_ref(data);
   31|    755|}
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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  176|      0|            goto err;
  177|      0|        }
  178|      1|    }
  179|       |
  180|      1|    a = (EX_CALLBACK *)OPENSSL_malloc(sizeof(*a));
  ------------------
  |  |  107|      1|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  192|      0|        OPENSSL_free(a);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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|   461k|{
  221|   461k|    int mx, i;
  222|   461k|    void *ptr;
  223|   461k|    EX_CALLBACK **storage = NULL;
  224|   461k|    EX_CALLBACK *stack[10];
  225|   461k|    EX_CALLBACKS *ip;
  226|   461k|    OSSL_EX_DATA_GLOBAL *global = ossl_lib_ctx_get_ex_data_global(ctx);
  227|       |
  228|   461k|    if (global == NULL)
  ------------------
  |  Branch (228:9): [True: 0, False: 461k]
  ------------------
  229|      0|        return 0;
  230|       |
  231|   461k|    ip = get_and_lock(global, class_index, 1);
  232|   461k|    if (ip == NULL)
  ------------------
  |  Branch (232:9): [True: 0, False: 461k]
  ------------------
  233|      0|        return 0;
  234|       |
  235|   461k|    ad->ctx = ctx;
  236|   461k|    ad->sk = NULL;
  237|   461k|    mx = sk_EX_CALLBACK_num(ip->meth);
  238|   461k|    if (mx > 0) {
  ------------------
  |  Branch (238:9): [True: 0, False: 461k]
  ------------------
  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));
  ------------------
  |  |  111|      0|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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|   461k|    CRYPTO_THREAD_unlock(global->ex_data_lock);
  248|       |
  249|   461k|    if (mx > 0 && storage == NULL)
  ------------------
  |  Branch (249:9): [True: 0, False: 461k]
  |  Branch (249:19): [True: 0, False: 0]
  ------------------
  250|      0|        return 0;
  251|   461k|    for (i = 0; i < mx; i++) {
  ------------------
  |  Branch (251:17): [True: 0, False: 461k]
  ------------------
  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|   461k|    if (storage != stack)
  ------------------
  |  Branch (258:9): [True: 461k, False: 0]
  ------------------
  259|   461k|        OPENSSL_free(storage);
  ------------------
  |  |  132|   461k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  260|   461k|    return 1;
  261|   461k|}
CRYPTO_new_ex_data:
  264|   461k|{
  265|       |    return ossl_crypto_new_ex_data_ex(NULL, class_index, obj, ad);
  266|   461k|}
CRYPTO_free_ex_data:
  367|   461k|{
  368|   461k|    int mx, i;
  369|   461k|    EX_CALLBACKS *ip;
  370|   461k|    void *ptr;
  371|   461k|    const EX_CALLBACK *f;
  372|   461k|    struct ex_callback_entry stack[10];
  373|   461k|    struct ex_callback_entry *storage = NULL;
  374|   461k|    OSSL_EX_DATA_GLOBAL *global = ossl_lib_ctx_get_ex_data_global(ad->ctx);
  375|       |
  376|   461k|    if (global == NULL)
  ------------------
  |  Branch (376:9): [True: 0, False: 461k]
  ------------------
  377|      0|        goto err;
  378|       |
  379|   461k|    ip = get_and_lock(global, class_index, 1);
  380|   461k|    if (ip == NULL)
  ------------------
  |  Branch (380:9): [True: 0, False: 461k]
  ------------------
  381|      0|        goto err;
  382|       |
  383|   461k|    mx = sk_EX_CALLBACK_num(ip->meth);
  384|   461k|    if (mx > 0) {
  ------------------
  |  Branch (384:9): [True: 0, False: 461k]
  ------------------
  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));
  ------------------
  |  |  111|      0|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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|   461k|    CRYPTO_THREAD_unlock(global->ex_data_lock);
  396|       |
  397|   461k|    if (storage != NULL) {
  ------------------
  |  Branch (397:9): [True: 0, False: 461k]
  ------------------
  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|   461k|    if (storage != stack)
  ------------------
  |  Branch (410:9): [True: 461k, False: 0]
  ------------------
  411|   461k|        OPENSSL_free(storage);
  ------------------
  |  |  132|   461k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  412|   461k|err:
  413|   461k|    sk_void_free(ad->sk);
  ------------------
  |  |  226|   461k|#define sk_void_free(sk) OPENSSL_sk_free(ossl_check_void_sk_type(sk))
  ------------------
  414|   461k|    ad->sk = NULL;
  415|       |    ad->ctx = NULL;
  416|   461k|}
CRYPTO_set_ex_data:
  469|    347|{
  470|    347|    int i;
  471|       |
  472|    347|    if (ad->sk == NULL) {
  ------------------
  |  Branch (472:9): [True: 347, False: 0]
  ------------------
  473|    347|        if ((ad->sk = sk_void_new_null()) == NULL) {
  ------------------
  |  |  223|    347|#define sk_void_new_null() ((STACK_OF(void) *)OPENSSL_sk_set_thunks(OPENSSL_sk_new_null(), sk_void_freefunc_thunk))
  ------------------
  |  Branch (473:13): [True: 0, False: 347]
  ------------------
  474|      0|            ERR_raise(ERR_LIB_CRYPTO, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  475|      0|            return 0;
  476|      0|        }
  477|    347|    }
  478|       |
  479|    694|    for (i = sk_void_num(ad->sk); i <= idx; ++i) {
  ------------------
  |  |  220|    347|#define sk_void_num(sk) OPENSSL_sk_num(ossl_check_const_void_sk_type(sk))
  ------------------
  |  Branch (479:35): [True: 347, False: 347]
  ------------------
  480|    347|        if (!sk_void_push(ad->sk, NULL)) {
  ------------------
  |  |  230|    347|#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: 347]
  ------------------
  481|      0|            ERR_raise(ERR_LIB_CRYPTO, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  482|      0|            return 0;
  483|      0|        }
  484|    347|    }
  485|    347|    if (sk_void_set(ad->sk, idx, val) != val) {
  ------------------
  |  |  236|    347|#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: 347]
  ------------------
  486|       |        /* Probably the index is out of bounds */
  487|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  488|      0|        return 0;
  489|      0|    }
  490|    347|    return 1;
  491|    347|}
ex_data.c:get_and_lock:
   33|   922k|{
   34|   922k|    EX_CALLBACKS *ip;
   35|       |
   36|   922k|    if (class_index < 0 || class_index >= CRYPTO_EX_INDEX__COUNT) {
  ------------------
  |  |  270|   922k|#define CRYPTO_EX_INDEX__COUNT 18
  ------------------
  |  Branch (36:9): [True: 0, False: 922k]
  |  Branch (36:28): [True: 0, False: 922k]
  ------------------
   37|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   38|      0|        return NULL;
   39|      0|    }
   40|       |
   41|   922k|    if (global->ex_data_lock == NULL) {
  ------------------
  |  Branch (41:9): [True: 0, False: 922k]
  ------------------
   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|   922k|    if (read) {
  ------------------
  |  Branch (49:9): [True: 922k, False: 1]
  ------------------
   50|   922k|        if (!CRYPTO_THREAD_read_lock(global->ex_data_lock))
  ------------------
  |  Branch (50:13): [True: 0, False: 922k]
  ------------------
   51|      0|            return NULL;
   52|   922k|    } 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|   922k|    ip = &global->ex_data[class_index];
   58|   922k|    return ip;
   59|   922k|}

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|   391k|{
   15|   391k|    uint64_t hash = 0xcbf29ce484222325ULL;
   16|   391k|    size_t i;
   17|       |
   18|  10.5M|    for (i = 0; i < len; i++) {
  ------------------
  |  Branch (18:17): [True: 10.1M, False: 391k]
  ------------------
   19|  10.1M|        hash ^= key[i];
   20|  10.1M|        hash *= 0x00000100000001B3ULL;
   21|  10.1M|    }
   22|   391k|    return hash;
   23|   391k|}

ossl_ht_new:
  185|    349|{
  186|    349|    HT *new = OPENSSL_zalloc(sizeof(*new));
  ------------------
  |  |  109|    349|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  187|       |
  188|    349|    if (new == NULL)
  ------------------
  |  Branch (188:9): [True: 0, False: 349]
  ------------------
  189|      0|        return NULL;
  190|       |
  191|    349|    if (conf->lockless_reads && conf->no_rcu)
  ------------------
  |  Branch (191:9): [True: 2, False: 347]
  |  Branch (191:33): [True: 0, False: 2]
  ------------------
  192|      0|        goto err;
  193|       |
  194|    349|    if (!conf->no_rcu) {
  ------------------
  |  Branch (194:9): [True: 2, False: 347]
  ------------------
  195|      2|        new->atomic_lock = CRYPTO_THREAD_lock_new();
  196|      2|        if (new->atomic_lock == NULL)
  ------------------
  |  Branch (196:13): [True: 0, False: 2]
  ------------------
  197|      0|            goto err;
  198|      2|    }
  199|    349|    memcpy(&new->config, conf, sizeof(*conf));
  200|       |
  201|    349|    if (new->config.init_neighborhoods != 0) {
  ------------------
  |  Branch (201:9): [True: 349, False: 0]
  ------------------
  202|    349|        new->wpd.neighborhood_len = new->config.init_neighborhoods;
  203|       |        /* round up to the next power of 2 */
  204|    349|        new->wpd.neighborhood_len--;
  205|    349|        new->wpd.neighborhood_len |= new->wpd.neighborhood_len >> 1;
  206|    349|        new->wpd.neighborhood_len |= new->wpd.neighborhood_len >> 2;
  207|    349|        new->wpd.neighborhood_len |= new->wpd.neighborhood_len >> 4;
  208|    349|        new->wpd.neighborhood_len |= new->wpd.neighborhood_len >> 8;
  209|    349|        new->wpd.neighborhood_len |= new->wpd.neighborhood_len >> 16;
  210|    349|        new->wpd.neighborhood_len++;
  211|    349|    } else {
  212|      0|        new->wpd.neighborhood_len = DEFAULT_NEIGH_LEN;
  ------------------
  |  |   96|      0|#define DEFAULT_NEIGH_LEN (1 << DEFAULT_NEIGH_LEN_LOG)
  |  |  ------------------
  |  |  |  |   95|      0|#define DEFAULT_NEIGH_LEN_LOG 4
  |  |  ------------------
  ------------------
  213|      0|    }
  214|       |
  215|    349|    if (new->config.ht_free_fn == NULL)
  ------------------
  |  Branch (215:9): [True: 2, False: 347]
  ------------------
  216|      2|        new->config.ht_free_fn = internal_free_nop;
  217|       |
  218|    349|    new->md = OPENSSL_zalloc(sizeof(*new->md));
  ------------------
  |  |  109|    349|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  219|    349|    if (new->md == NULL)
  ------------------
  |  Branch (219:9): [True: 0, False: 349]
  ------------------
  220|      0|        goto err;
  221|       |
  222|    349|    new->md->neighborhoods = alloc_new_neighborhood_list(new->wpd.neighborhood_len,
  223|    349|        &new->md->neighborhood_ptr_to_free);
  224|    349|    if (new->md->neighborhoods == NULL)
  ------------------
  |  Branch (224:9): [True: 0, False: 349]
  ------------------
  225|      0|        goto err;
  226|    349|    new->md->neighborhood_mask = new->wpd.neighborhood_len - 1;
  227|       |
  228|    349|    if (!conf->no_rcu) {
  ------------------
  |  Branch (228:9): [True: 2, False: 347]
  ------------------
  229|      2|        new->lock = ossl_rcu_lock_new(1, conf->ctx);
  230|      2|        if (new->lock == NULL)
  ------------------
  |  Branch (230:13): [True: 0, False: 2]
  ------------------
  231|      0|            goto err;
  232|      2|    }
  233|    349|    if (new->config.ht_hash_fn == NULL)
  ------------------
  |  Branch (233:9): [True: 2, False: 347]
  ------------------
  234|      2|        new->config.ht_hash_fn = internal_ht_hash_fn;
  235|       |
  236|    349|    return new;
  237|       |
  238|      0|err:
  239|      0|    if (!conf->no_rcu) {
  ------------------
  |  Branch (239:9): [True: 0, False: 0]
  ------------------
  240|      0|        CRYPTO_THREAD_lock_free(new->atomic_lock);
  241|      0|        ossl_rcu_lock_free(new->lock);
  242|      0|    }
  243|      0|    if (new->md != NULL)
  ------------------
  |  Branch (243:9): [True: 0, False: 0]
  ------------------
  244|      0|        OPENSSL_free(new->md->neighborhood_ptr_to_free);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  245|      0|    OPENSSL_free(new->md);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  246|      0|    OPENSSL_free(new);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  247|       |    return NULL;
  248|    349|}
ossl_ht_write_lock:
  267|    347|{
  268|    347|    if (htable->config.no_rcu)
  ------------------
  |  Branch (268:9): [True: 347, False: 0]
  ------------------
  269|    347|        return;
  270|       |
  271|      0|    ossl_rcu_write_lock(htable->lock);
  272|      0|    htable->wpd.need_sync = 0;
  273|      0|}
ossl_ht_write_unlock:
  276|    347|{
  277|    347|    int need_sync = htable->wpd.need_sync;
  278|       |
  279|    347|    if (htable->config.no_rcu)
  ------------------
  |  Branch (279:9): [True: 347, False: 0]
  ------------------
  280|    347|        return;
  281|       |
  282|      0|    htable->wpd.need_sync = 0;
  283|      0|    ossl_rcu_write_unlock(htable->lock);
  284|      0|    if (need_sync)
  ------------------
  |  Branch (284:9): [True: 0, False: 0]
  ------------------
  285|      0|        ossl_synchronize_rcu(htable->lock);
  286|      0|}
ossl_ht_free:
  365|    347|{
  366|    347|    int flush_ok;
  367|       |
  368|    347|    if (h == NULL)
  ------------------
  |  Branch (368:9): [True: 0, False: 347]
  ------------------
  369|      0|        return;
  370|       |
  371|    347|    ossl_ht_write_lock(h);
  372|    347|    flush_ok = ossl_ht_flush_internal(h);
  373|    347|    ossl_ht_write_unlock(h);
  374|       |    /* Freeing the lock does a final sync for us */
  375|    347|    if (!h->config.no_rcu) {
  ------------------
  |  Branch (375:9): [True: 0, False: 347]
  ------------------
  376|      0|        CRYPTO_THREAD_lock_free(h->atomic_lock);
  377|      0|        ossl_rcu_lock_free(h->lock);
  378|      0|    }
  379|    347|    if (flush_ok) {
  ------------------
  |  Branch (379:9): [True: 347, False: 0]
  ------------------
  380|    347|        OPENSSL_free(h->md->neighborhood_ptr_to_free);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  381|    347|        OPENSSL_free(h->md);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  382|    347|    } else {
  383|      0|        free_oldmd(h->md);
  384|      0|    }
  385|    347|    OPENSSL_free(h);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  386|    347|    return;
  387|    347|}
ossl_ht_insert:
  719|  41.9k|{
  720|  41.9k|    struct ht_internal_value_st *newval = NULL;
  721|  41.9k|    uint64_t hash;
  722|  41.9k|    int rc = 0;
  723|  41.9k|    int i;
  724|       |
  725|  41.9k|    if (data->value == NULL)
  ------------------
  |  Branch (725:9): [True: 0, False: 41.9k]
  ------------------
  726|      0|        goto out;
  727|       |
  728|  41.9k|    rc = -1;
  729|  41.9k|    newval = alloc_new_value(h, key, data->value, data->type_id);
  730|  41.9k|    if (newval == NULL)
  ------------------
  |  Branch (730:9): [True: 0, False: 41.9k]
  ------------------
  731|      0|        goto out;
  732|       |
  733|       |    /*
  734|       |     * we have to take our lock here to prevent other changes
  735|       |     * to the bucket list
  736|       |     */
  737|  41.9k|    hash = h->config.ht_hash_fn(key);
  738|       |
  739|  41.9k|    for (i = 0;
  740|  44.0k|        (rc = ossl_ht_insert_locked(h, hash, newval, olddata)) == -1
  ------------------
  |  Branch (740:9): [True: 2.05k, False: 41.9k]
  ------------------
  741|  2.05k|        && i <= (int)NEIGHBORHOOD_LEN;
  ------------------
  |  |  104|  2.05k|#define NEIGHBORHOOD_LEN (CACHE_LINE_BYTES / sizeof(struct ht_neighborhood_entry_st))
  |  |  ------------------
  |  |  |  |  101|  2.05k|#define CACHE_LINE_BYTES 64
  |  |  ------------------
  ------------------
  |  Branch (741:12): [True: 2.05k, False: 0]
  ------------------
  742|  41.9k|        ++i)
  743|  2.05k|        if (!grow_hashtable(h, h->wpd.neighborhood_len)) {
  ------------------
  |  Branch (743:13): [True: 0, False: 2.05k]
  ------------------
  744|      0|            rc = -1;
  745|      0|            break;
  746|      0|        }
  747|       |
  748|  41.9k|    if (rc <= 0)
  ------------------
  |  Branch (748:9): [True: 0, False: 41.9k]
  ------------------
  749|      0|        free_value(newval);
  750|       |
  751|  41.9k|out:
  752|  41.9k|    return rc;
  753|  41.9k|}
ossl_ht_get:
  756|   349k|{
  757|   349k|    struct ht_mutable_data_st *md;
  758|   349k|    uint64_t hash;
  759|   349k|    uint64_t neigh_idx_start;
  760|   349k|    uint64_t neigh_idx;
  761|   349k|    struct ht_internal_value_st *ival = NULL;
  762|   349k|    size_t j;
  763|   349k|    uint64_t ehash;
  764|   349k|    int lockless_reads = h->config.lockless_reads;
  765|       |
  766|   349k|    hash = h->config.ht_hash_fn(key);
  767|       |
  768|   349k|    if (!h->config.no_rcu)
  ------------------
  |  Branch (768:9): [True: 308k, False: 41.3k]
  ------------------
  769|   308k|        md = ossl_rcu_deref(&h->md);
  ------------------
  |  |   35|   308k|#define ossl_rcu_deref(p) ossl_rcu_uptr_deref((void **)p)
  ------------------
  770|  41.3k|    else
  771|  41.3k|        md = h->md;
  772|   349k|    neigh_idx = neigh_idx_start = hash & md->neighborhood_mask;
  773|   349k|    do {
  774|   349k|        PREFETCH_NEIGHBORHOOD(md->neighborhoods[neigh_idx]);
  ------------------
  |  |   82|   349k|#define PREFETCH_NEIGHBORHOOD(x) __builtin_prefetch(x.entries)
  ------------------
  775|   759k|        for (j = 0; j < NEIGHBORHOOD_LEN; j++) {
  ------------------
  |  |  104|   759k|#define NEIGHBORHOOD_LEN (CACHE_LINE_BYTES / sizeof(struct ht_neighborhood_entry_st))
  |  |  ------------------
  |  |  |  |  101|   759k|#define CACHE_LINE_BYTES 64
  |  |  ------------------
  ------------------
  |  Branch (775:21): [True: 718k, False: 41.3k]
  ------------------
  776|   718k|            if (!h->config.no_rcu)
  ------------------
  |  Branch (776:17): [True: 552k, False: 165k]
  ------------------
  777|   552k|                ival = ossl_rcu_deref(&md->neighborhoods[neigh_idx].entries[j].value);
  ------------------
  |  |   35|   552k|#define ossl_rcu_deref(p) ossl_rcu_uptr_deref((void **)p)
  ------------------
  778|   165k|            else
  779|   165k|                ival = md->neighborhoods[neigh_idx].entries[j].value;
  780|   718k|            if (ival == NULL) {
  ------------------
  |  Branch (780:17): [True: 140k, False: 577k]
  ------------------
  781|   140k|                if (lockless_reads)
  ------------------
  |  Branch (781:21): [True: 8.88k, False: 131k]
  ------------------
  782|       |                    /* lockless_reads implies no deletion, we can break out */
  783|  8.88k|                    return NULL;
  784|   131k|                continue;
  785|   140k|            }
  786|   577k|            if (!h->config.no_rcu) {
  ------------------
  |  Branch (786:17): [True: 543k, False: 33.8k]
  ------------------
  787|   543k|                if (!CRYPTO_atomic_load(&md->neighborhoods[neigh_idx].entries[j].hash,
  ------------------
  |  Branch (787:21): [True: 0, False: 543k]
  ------------------
  788|   543k|                        &ehash, h->atomic_lock))
  789|      0|                    return NULL;
  790|   543k|            } else {
  791|  33.8k|                ehash = md->neighborhoods[neigh_idx].entries[j].hash;
  792|  33.8k|            }
  793|   577k|            if (compare_hash(hash, ehash) && match_key(&ival->value.key, key))
  ------------------
  |  Branch (793:17): [True: 299k, False: 278k]
  |  Branch (793:46): [True: 299k, False: 0]
  ------------------
  794|   299k|                return (HT_VALUE *)ival;
  795|   577k|        }
  796|  41.3k|        if (!lockless_reads)
  ------------------
  |  Branch (796:13): [True: 41.3k, False: 8]
  ------------------
  797|  41.3k|            break;
  798|       |        /* Continue search in subsequent neighborhoods */
  799|      8|        neigh_idx = (neigh_idx + 1) & md->neighborhood_mask;
  800|      8|    } while (neigh_idx != neigh_idx_start);
  ------------------
  |  Branch (800:14): [True: 8, False: 0]
  ------------------
  801|       |
  802|  41.3k|    return NULL;
  803|   349k|}
hashtable.c:alloc_new_neighborhood_list:
  155|  2.74k|{
  156|  2.74k|    struct ht_neighborhood_st *ret;
  157|       |
  158|  2.74k|#if !defined(OPENSSL_SMALL_FOOTPRINT)
  159|  2.74k|    ret = OPENSSL_aligned_alloc_array(len, sizeof(struct ht_neighborhood_st),
  ------------------
  |  |  118|  2.74k|    CRYPTO_aligned_alloc_array(num, size, alignment, freeptr,      \
  |  |  119|  2.74k|        OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  160|  2.74k|        CACHE_LINE_BYTES, freeptr);
  161|       |
  162|       |    /* fall back to regular malloc */
  163|  2.74k|    if (ret == NULL)
  ------------------
  |  Branch (163:9): [True: 0, False: 2.74k]
  ------------------
  164|      0|#endif
  165|      0|    {
  166|      0|        ret = *freeptr = OPENSSL_malloc_array(len, sizeof(struct ht_neighborhood_st));
  ------------------
  |  |  111|      0|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  167|      0|        if (ret == NULL)
  ------------------
  |  Branch (167:13): [True: 0, False: 0]
  ------------------
  168|      0|            return NULL;
  169|      0|    }
  170|  2.74k|    memset(ret, 0, sizeof(struct ht_neighborhood_st) * len);
  171|  2.74k|    return ret;
  172|  2.74k|}
hashtable.c:internal_ht_hash_fn:
  180|   308k|{
  181|   308k|    return ossl_fnv1a_hash(key->keybuf, key->keysize);
  182|   308k|}
hashtable.c:ossl_ht_flush_internal:
  311|    347|{
  312|    347|    struct ht_mutable_data_st *newmd = NULL;
  313|    347|    struct ht_mutable_data_st *oldmd = NULL;
  314|    347|    CRYPTO_RCU_CB_ITEM *cbi = NULL;
  315|       |
  316|    347|    newmd = OPENSSL_zalloc(sizeof(*newmd));
  ------------------
  |  |  109|    347|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  317|    347|    if (newmd == NULL)
  ------------------
  |  Branch (317:9): [True: 0, False: 347]
  ------------------
  318|      0|        return 0;
  319|       |
  320|    347|    newmd->neighborhoods = alloc_new_neighborhood_list(DEFAULT_NEIGH_LEN,
  ------------------
  |  |   96|    347|#define DEFAULT_NEIGH_LEN (1 << DEFAULT_NEIGH_LEN_LOG)
  |  |  ------------------
  |  |  |  |   95|    347|#define DEFAULT_NEIGH_LEN_LOG 4
  |  |  ------------------
  ------------------
  321|    347|        &newmd->neighborhood_ptr_to_free);
  322|    347|    if (newmd->neighborhoods == NULL) {
  ------------------
  |  Branch (322:9): [True: 0, False: 347]
  ------------------
  323|      0|        OPENSSL_free(newmd);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  324|      0|        return 0;
  325|      0|    }
  326|       |
  327|    347|    newmd->neighborhood_mask = DEFAULT_NEIGH_LEN - 1;
  ------------------
  |  |   96|    347|#define DEFAULT_NEIGH_LEN (1 << DEFAULT_NEIGH_LEN_LOG)
  |  |  ------------------
  |  |  |  |   95|    347|#define DEFAULT_NEIGH_LEN_LOG 4
  |  |  ------------------
  ------------------
  328|       |
  329|    347|    if (!h->config.no_rcu) {
  ------------------
  |  Branch (329:9): [True: 0, False: 347]
  ------------------
  330|      0|        cbi = ossl_rcu_cb_item_new();
  331|      0|        if (cbi == NULL) {
  ------------------
  |  Branch (331:13): [True: 0, False: 0]
  ------------------
  332|      0|            OPENSSL_free(newmd->neighborhood_ptr_to_free);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  333|      0|            OPENSSL_free(newmd);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  334|      0|            return 0;
  335|      0|        }
  336|       |
  337|       |        /* Swap the old and new mutable data sets */
  338|      0|        oldmd = ossl_rcu_deref(&h->md);
  ------------------
  |  |   35|      0|#define ossl_rcu_deref(p) ossl_rcu_uptr_deref((void **)p)
  ------------------
  339|      0|        ossl_rcu_assign_ptr(&h->md, &newmd);
  ------------------
  |  |   36|      0|#define ossl_rcu_assign_ptr(p, v) ossl_rcu_assign_uptr((void **)p, (void **)v)
  ------------------
  340|    347|    } else {
  341|    347|        oldmd = h->md;
  342|    347|        h->md = newmd;
  343|    347|    }
  344|       |
  345|       |    /* Set the number of entries to 0 */
  346|    347|    h->wpd.value_count = 0;
  347|    347|    h->wpd.neighborhood_len = DEFAULT_NEIGH_LEN;
  ------------------
  |  |   96|    347|#define DEFAULT_NEIGH_LEN (1 << DEFAULT_NEIGH_LEN_LOG)
  |  |  ------------------
  |  |  |  |   95|    347|#define DEFAULT_NEIGH_LEN_LOG 4
  |  |  ------------------
  ------------------
  348|       |
  349|    347|    if (!h->config.no_rcu) {
  ------------------
  |  Branch (349:9): [True: 0, False: 347]
  ------------------
  350|      0|        ossl_rcu_call(h->lock, cbi, free_oldmd, oldmd);
  351|      0|        h->wpd.need_sync = 1;
  352|    347|    } else {
  353|    347|        free_oldmd(oldmd);
  354|    347|    }
  355|       |
  356|    347|    return 1;
  357|    347|}
hashtable.c:free_oldmd:
  289|    347|{
  290|    347|    struct ht_mutable_data_st *oldmd = arg;
  291|    347|    size_t i, j;
  292|    347|    size_t neighborhood_len = (size_t)oldmd->neighborhood_mask + 1;
  293|    347|    struct ht_internal_value_st *v;
  294|       |
  295|   175k|    for (i = 0; i < neighborhood_len; i++) {
  ------------------
  |  Branch (295:17): [True: 175k, False: 347]
  ------------------
  296|   175k|        PREFETCH_NEIGHBORHOOD(oldmd->neighborhoods[i + 1]);
  ------------------
  |  |   82|   175k|#define PREFETCH_NEIGHBORHOOD(x) __builtin_prefetch(x.entries)
  ------------------
  297|   875k|        for (j = 0; j < NEIGHBORHOOD_LEN; j++) {
  ------------------
  |  |  104|   875k|#define NEIGHBORHOOD_LEN (CACHE_LINE_BYTES / sizeof(struct ht_neighborhood_entry_st))
  |  |  ------------------
  |  |  |  |  101|   875k|#define CACHE_LINE_BYTES 64
  |  |  ------------------
  ------------------
  |  Branch (297:21): [True: 700k, False: 175k]
  ------------------
  298|   700k|            if (oldmd->neighborhoods[i].entries[j].value != NULL) {
  ------------------
  |  Branch (298:17): [True: 41.3k, False: 659k]
  ------------------
  299|  41.3k|                v = oldmd->neighborhoods[i].entries[j].value;
  300|  41.3k|                v->ht->config.ht_free_fn((HT_VALUE *)v);
  301|  41.3k|                free_value(v);
  302|  41.3k|            }
  303|   700k|        }
  304|   175k|    }
  305|       |
  306|    347|    OPENSSL_free(oldmd->neighborhood_ptr_to_free);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  307|    347|    OPENSSL_free(oldmd);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  308|    347|}
hashtable.c:alloc_new_value:
  688|  41.9k|{
  689|  41.9k|    struct ht_internal_value_st *tmp;
  690|  41.9k|    size_t nvsize = sizeof(*tmp);
  691|       |
  692|  41.9k|    if (h->config.collision_check == 1)
  ------------------
  |  Branch (692:9): [True: 599, False: 41.3k]
  ------------------
  693|    599|        nvsize += key->keysize;
  694|       |
  695|  41.9k|    tmp = OPENSSL_malloc(nvsize);
  ------------------
  |  |  107|  41.9k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  696|       |
  697|  41.9k|    if (tmp == NULL)
  ------------------
  |  Branch (697:9): [True: 0, False: 41.9k]
  ------------------
  698|      0|        return NULL;
  699|       |
  700|  41.9k|    tmp->ht = h;
  701|  41.9k|    tmp->value.value = data;
  702|  41.9k|    tmp->value.type_id = type;
  703|  41.9k|    tmp->value.key.keybuf = NULL;
  704|  41.9k|    if (h->config.collision_check) {
  ------------------
  |  Branch (704:9): [True: 599, False: 41.3k]
  ------------------
  705|    599|        tmp->value.key.keybuf = (uint8_t *)(tmp + 1);
  706|    599|        tmp->value.key.keysize = key->keysize;
  707|    599|        memcpy(tmp->value.key.keybuf, key->keybuf, key->keysize);
  708|    599|    }
  709|       |
  710|  41.9k|    return tmp;
  711|  41.9k|}
hashtable.c:ossl_ht_insert_locked:
  601|  44.0k|{
  602|  44.0k|    struct ht_mutable_data_st *md = h->md;
  603|  44.0k|    uint64_t neigh_idx_start = hash & md->neighborhood_mask;
  604|  44.0k|    uint64_t neigh_idx = neigh_idx_start;
  605|  44.0k|    size_t j;
  606|  44.0k|    uint64_t ihash;
  607|  44.0k|    HT_VALUE *ival;
  608|  44.0k|    size_t empty_idx = SIZE_MAX;
  609|  44.0k|    int lockless_reads = h->config.lockless_reads;
  610|       |
  611|  44.0k|    do {
  612|  44.0k|        PREFETCH_NEIGHBORHOOD(md->neighborhoods[neigh_idx]);
  ------------------
  |  |   82|  44.0k|#define PREFETCH_NEIGHBORHOOD(x) __builtin_prefetch(x.entries)
  ------------------
  613|       |
  614|   218k|        for (j = 0; j < NEIGHBORHOOD_LEN; j++) {
  ------------------
  |  |  104|   218k|#define NEIGHBORHOOD_LEN (CACHE_LINE_BYTES / sizeof(struct ht_neighborhood_entry_st))
  |  |  ------------------
  |  |  |  |  101|   218k|#define CACHE_LINE_BYTES 64
  |  |  ------------------
  ------------------
  |  Branch (614:21): [True: 174k, False: 43.4k]
  ------------------
  615|   174k|            if (!h->config.no_rcu)
  ------------------
  |  Branch (615:17): [True: 935, False: 173k]
  ------------------
  616|    935|                ival = ossl_rcu_deref(&md->neighborhoods[neigh_idx].entries[j].value);
  ------------------
  |  |   35|    935|#define ossl_rcu_deref(p) ossl_rcu_uptr_deref((void **)p)
  ------------------
  617|   173k|            else
  618|   173k|                ival = (HT_VALUE *)md->neighborhoods[neigh_idx].entries[j].value;
  619|   174k|            if (ival == NULL) {
  ------------------
  |  Branch (619:17): [True: 135k, False: 39.3k]
  ------------------
  620|   135k|                empty_idx = j;
  621|       |                /* lockless_reads implies no deletion, we can break out */
  622|   135k|                if (lockless_reads)
  ------------------
  |  Branch (622:21): [True: 599, False: 134k]
  ------------------
  623|    599|                    goto not_found;
  624|   134k|                continue;
  625|   135k|            }
  626|  39.3k|            if (!h->config.no_rcu) {
  ------------------
  |  Branch (626:17): [True: 336, False: 38.9k]
  ------------------
  627|    336|                if (!CRYPTO_atomic_load(&md->neighborhoods[neigh_idx].entries[j].hash,
  ------------------
  |  Branch (627:21): [True: 0, False: 336]
  ------------------
  628|    336|                        &ihash, h->atomic_lock))
  629|      0|                    return 0;
  630|  38.9k|            } else {
  631|  38.9k|                ihash = md->neighborhoods[neigh_idx].entries[j].hash;
  632|  38.9k|            }
  633|  39.3k|            if (compare_hash(hash, ihash) && match_key(&newval->value.key, &ival->key)) {
  ------------------
  |  Branch (633:17): [True: 0, False: 39.3k]
  |  Branch (633:46): [True: 0, False: 0]
  ------------------
  634|      0|                if (olddata == NULL) {
  ------------------
  |  Branch (634:21): [True: 0, False: 0]
  ------------------
  635|       |                    /* This would insert a duplicate -> fail */
  636|      0|                    return 0;
  637|      0|                }
  638|       |                /* Do a replacement */
  639|      0|                if (!h->config.no_rcu) {
  ------------------
  |  Branch (639:21): [True: 0, False: 0]
  ------------------
  640|      0|                    CRYPTO_RCU_CB_ITEM *cbi = ossl_rcu_cb_item_new();
  641|      0|                    if (cbi == NULL)
  ------------------
  |  Branch (641:25): [True: 0, False: 0]
  ------------------
  642|      0|                        return 0;
  643|      0|                    if (!CRYPTO_atomic_store(&md->neighborhoods[neigh_idx].entries[j].hash,
  ------------------
  |  Branch (643:25): [True: 0, False: 0]
  ------------------
  644|      0|                            hash, h->atomic_lock)) {
  645|      0|                        ossl_rcu_cb_item_free(cbi);
  646|      0|                        return 0;
  647|      0|                    }
  648|      0|                    *olddata = (HT_VALUE *)md->neighborhoods[neigh_idx].entries[j].value;
  649|      0|                    ossl_rcu_assign_ptr(&md->neighborhoods[neigh_idx].entries[j].value,
  ------------------
  |  |   36|      0|#define ossl_rcu_assign_ptr(p, v) ossl_rcu_assign_uptr((void **)p, (void **)v)
  ------------------
  650|      0|                        &newval);
  651|      0|                    ossl_rcu_call(h->lock, cbi, free_old_ht_value, *olddata);
  652|      0|                } else {
  653|      0|                    md->neighborhoods[neigh_idx].entries[j].hash = hash;
  654|      0|                    *olddata = (HT_VALUE *)md->neighborhoods[neigh_idx].entries[j].value;
  655|      0|                    md->neighborhoods[neigh_idx].entries[j].value = newval;
  656|      0|                }
  657|      0|                h->wpd.need_sync = 1;
  658|      0|                return 1;
  659|      0|            }
  660|  39.3k|        }
  661|  43.4k|        if (!lockless_reads)
  ------------------
  |  Branch (661:13): [True: 43.4k, False: 3]
  ------------------
  662|  43.4k|            break;
  663|       |        /* Continue search in subsequent neighborhoods */
  664|      3|        neigh_idx = (neigh_idx + 1) & md->neighborhood_mask;
  665|      3|    } while (neigh_idx != neigh_idx_start);
  ------------------
  |  Branch (665:14): [True: 3, False: 0]
  ------------------
  666|       |
  667|  44.0k|not_found:
  668|       |    /* If we get to here, its just an insert */
  669|  44.0k|    if (empty_idx == SIZE_MAX)
  ------------------
  |  Branch (669:9): [True: 2.05k, False: 41.9k]
  ------------------
  670|  2.05k|        return -1; /* out of space */
  671|  41.9k|    if (!h->config.no_rcu) {
  ------------------
  |  Branch (671:9): [True: 599, False: 41.3k]
  ------------------
  672|    599|        if (!CRYPTO_atomic_store(&md->neighborhoods[neigh_idx].entries[empty_idx].hash,
  ------------------
  |  Branch (672:13): [True: 0, False: 599]
  ------------------
  673|    599|                hash, h->atomic_lock))
  674|      0|            return 0;
  675|    599|        ossl_rcu_assign_ptr(&md->neighborhoods[neigh_idx].entries[empty_idx].value,
  ------------------
  |  |   36|    599|#define ossl_rcu_assign_ptr(p, v) ossl_rcu_assign_uptr((void **)p, (void **)v)
  ------------------
  676|    599|            &newval);
  677|  41.3k|    } else {
  678|  41.3k|        md->neighborhoods[neigh_idx].entries[empty_idx].hash = hash;
  679|  41.3k|        md->neighborhoods[neigh_idx].entries[empty_idx].value = newval;
  680|  41.3k|    }
  681|  41.9k|    h->wpd.value_count++;
  682|  41.9k|    return 1;
  683|  41.9k|}
hashtable.c:grow_hashtable:
  475|  2.05k|{
  476|  2.05k|    struct ht_mutable_data_st *newmd;
  477|  2.05k|    struct ht_mutable_data_st *oldmd = ossl_rcu_deref(&h->md);
  ------------------
  |  |   35|  2.05k|#define ossl_rcu_deref(p) ossl_rcu_uptr_deref((void **)p)
  ------------------
  478|  2.05k|    CRYPTO_RCU_CB_ITEM *cbi = NULL;
  479|  2.05k|    int rc = 0;
  480|  2.05k|    uint64_t oldi, oldj, newi, newj;
  481|  2.05k|    uint64_t oldhash;
  482|  2.05k|    struct ht_internal_value_st *oldv;
  483|  2.05k|    int rehashed;
  484|  2.05k|    size_t newsize = oldsize * 2;
  485|       |
  486|  2.05k|    if (h->config.lockless_reads)
  ------------------
  |  Branch (486:9): [True: 0, False: 2.05k]
  ------------------
  487|      0|        goto out;
  488|       |
  489|  2.05k|    if ((newmd = OPENSSL_zalloc(sizeof(*newmd))) == NULL)
  ------------------
  |  |  109|  2.05k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (489:9): [True: 0, False: 2.05k]
  ------------------
  490|      0|        goto out;
  491|       |
  492|       |    /* bucket list is always a power of 2 */
  493|  2.05k|    newmd->neighborhoods = alloc_new_neighborhood_list(oldsize * 2,
  494|  2.05k|        &newmd->neighborhood_ptr_to_free);
  495|  2.05k|    if (newmd->neighborhoods == NULL)
  ------------------
  |  Branch (495:9): [True: 0, False: 2.05k]
  ------------------
  496|      0|        goto out_free;
  497|       |
  498|       |    /* being a power of 2 makes for easy mask computation */
  499|  2.05k|    newmd->neighborhood_mask = (newsize - 1);
  500|       |
  501|       |    /*
  502|       |     * Now we need to start rehashing entries
  503|       |     * Note we don't need to use atomics here as the new
  504|       |     * mutable data hasn't been published
  505|       |     */
  506|   174k|    for (oldi = 0; oldi < h->wpd.neighborhood_len; oldi++) {
  ------------------
  |  Branch (506:20): [True: 172k, False: 2.05k]
  ------------------
  507|   172k|        PREFETCH_NEIGHBORHOOD(oldmd->neighborhoods[oldi + 1]);
  ------------------
  |  |   82|   172k|#define PREFETCH_NEIGHBORHOOD(x) __builtin_prefetch(x.entries)
  ------------------
  508|   861k|        for (oldj = 0; oldj < NEIGHBORHOOD_LEN; oldj++) {
  ------------------
  |  |  104|   861k|#define NEIGHBORHOOD_LEN (CACHE_LINE_BYTES / sizeof(struct ht_neighborhood_entry_st))
  |  |  ------------------
  |  |  |  |  101|   861k|#define CACHE_LINE_BYTES 64
  |  |  ------------------
  ------------------
  |  Branch (508:24): [True: 689k, False: 172k]
  ------------------
  509|   689k|            oldv = oldmd->neighborhoods[oldi].entries[oldj].value;
  510|   689k|            if (oldv == NULL)
  ------------------
  |  Branch (510:17): [True: 574k, False: 115k]
  ------------------
  511|   574k|                continue;
  512|   115k|            oldhash = oldmd->neighborhoods[oldi].entries[oldj].hash;
  513|   115k|            newi = oldhash & newmd->neighborhood_mask;
  514|   115k|            rehashed = 0;
  515|   143k|            for (newj = 0; newj < NEIGHBORHOOD_LEN; newj++) {
  ------------------
  |  |  104|   143k|#define NEIGHBORHOOD_LEN (CACHE_LINE_BYTES / sizeof(struct ht_neighborhood_entry_st))
  |  |  ------------------
  |  |  |  |  101|   143k|#define CACHE_LINE_BYTES 64
  |  |  ------------------
  ------------------
  |  Branch (515:28): [True: 143k, False: 0]
  ------------------
  516|   143k|                if (newmd->neighborhoods[newi].entries[newj].value == NULL) {
  ------------------
  |  Branch (516:21): [True: 115k, False: 28.0k]
  ------------------
  517|   115k|                    newmd->neighborhoods[newi].entries[newj].value = oldv;
  518|   115k|                    newmd->neighborhoods[newi].entries[newj].hash = oldhash;
  519|   115k|                    rehashed = 1;
  520|   115k|                    break;
  521|   115k|                }
  522|   143k|            }
  523|   115k|            if (rehashed == 0) {
  ------------------
  |  Branch (523:17): [True: 0, False: 115k]
  ------------------
  524|       |                /* we ran out of space in a neighborhood, grow again */
  525|      0|                OPENSSL_free(newmd->neighborhood_ptr_to_free);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  526|      0|                OPENSSL_free(newmd);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  527|      0|                return grow_hashtable(h, newsize);
  528|      0|            }
  529|   115k|        }
  530|   172k|    }
  531|       |
  532|       |    /*
  533|       |     * Pre allocate the rcu callback item before assigning the newmd.
  534|       |     */
  535|  2.05k|    if (!h->config.no_rcu) {
  ------------------
  |  Branch (535:9): [True: 0, False: 2.05k]
  ------------------
  536|      0|        cbi = ossl_rcu_cb_item_new();
  537|      0|        if (cbi == NULL)
  ------------------
  |  Branch (537:13): [True: 0, False: 0]
  ------------------
  538|      0|            goto out_free;
  539|      0|    }
  540|       |
  541|       |    /*
  542|       |     * Now that our entries are all hashed into the new bucket list
  543|       |     * update our bucket_len and target_max_load
  544|       |     */
  545|  2.05k|    h->wpd.neighborhood_len = newsize;
  546|       |
  547|       |    /*
  548|       |     * Now we replace the old mutable data with the new
  549|       |     */
  550|  2.05k|    if (!h->config.no_rcu) {
  ------------------
  |  Branch (550:9): [True: 0, False: 2.05k]
  ------------------
  551|      0|        ossl_rcu_assign_ptr(&h->md, &newmd);
  ------------------
  |  |   36|      0|#define ossl_rcu_assign_ptr(p, v) ossl_rcu_assign_uptr((void **)p, (void **)v)
  ------------------
  552|      0|        ossl_rcu_call(h->lock, cbi, free_old_neigh_table, oldmd);
  553|      0|        h->wpd.need_sync = 1;
  554|  2.05k|    } else {
  555|  2.05k|        h->md = newmd;
  556|  2.05k|        free_old_neigh_table(oldmd);
  557|  2.05k|    }
  558|       |    /*
  559|       |     * And we're done
  560|       |     */
  561|  2.05k|    rc = 1;
  562|       |
  563|  2.05k|out:
  564|  2.05k|    return rc;
  565|      0|out_free:
  566|      0|    OPENSSL_free(newmd->neighborhood_ptr_to_free);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  567|      0|    OPENSSL_free(newmd);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  568|      0|    goto out;
  569|  2.05k|}
hashtable.c:free_old_neigh_table:
  463|  2.05k|{
  464|  2.05k|    struct ht_mutable_data_st *oldmd = arg;
  465|       |
  466|  2.05k|    OPENSSL_free(oldmd->neighborhood_ptr_to_free);
  ------------------
  |  |  132|  2.05k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  467|  2.05k|    OPENSSL_free(oldmd);
  ------------------
  |  |  132|  2.05k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  468|  2.05k|}
hashtable.c:free_value:
  714|  41.3k|{
  715|  41.3k|    OPENSSL_free(v);
  ------------------
  |  |  132|  41.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  716|  41.3k|}
hashtable.c:compare_hash:
  458|   617k|{
  459|   617k|    return (hash1 == hash2);
  460|   617k|}
hashtable.c:match_key:
  585|   299k|{
  586|       |    /*
  587|       |     * keys match if they are both present, the same size
  588|       |     * and compare equal in memory
  589|       |     */
  590|   299k|    PREFETCH(a->keybuf);
  ------------------
  |  |   83|   299k|#define PREFETCH(x) __builtin_prefetch(x)
  ------------------
  591|   299k|    PREFETCH(b->keybuf);
  ------------------
  |  |   83|   299k|#define PREFETCH(x) __builtin_prefetch(x)
  ------------------
  592|   299k|    if (a->keybuf != NULL && b->keybuf != NULL && a->keysize == b->keysize)
  ------------------
  |  Branch (592:9): [True: 299k, False: 0]
  |  Branch (592:30): [True: 299k, False: 0]
  |  Branch (592:51): [True: 299k, False: 0]
  ------------------
  593|   299k|        return !memcmp(a->keybuf, b->keybuf, a->keysize);
  594|       |
  595|      0|    return 1;
  596|   299k|}

OSSL_HPKE_CTX_free:
  863|    347|{
  864|    347|    if (ctx == NULL)
  ------------------
  |  Branch (864:9): [True: 347, False: 0]
  ------------------
  865|    347|        return;
  866|      0|    EVP_CIPHER_free(ctx->aead_ciph);
  867|      0|    OPENSSL_free(ctx->propq);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  868|      0|    OPENSSL_clear_free(ctx->exportersec, ctx->exporterseclen);
  ------------------
  |  |  130|      0|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  869|      0|    OPENSSL_free(ctx->pskid);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  870|      0|    OPENSSL_clear_free(ctx->psk, ctx->psklen);
  ------------------
  |  |  130|      0|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  871|      0|    OPENSSL_clear_free(ctx->key, ctx->keylen);
  ------------------
  |  |  130|      0|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  872|      0|    OPENSSL_clear_free(ctx->nonce, ctx->noncelen);
  ------------------
  |  |  130|      0|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  873|      0|    OPENSSL_clear_free(ctx->shared_secret, ctx->shared_secretlen);
  ------------------
  |  |  130|      0|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  874|      0|    OPENSSL_clear_free(ctx->ikme, ctx->ikmelen);
  ------------------
  |  |  130|      0|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  875|      0|    EVP_PKEY_free(ctx->authpriv);
  876|      0|    OPENSSL_free(ctx->authpub);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  877|       |
  878|      0|    OPENSSL_free(ctx);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  879|      0|    return;
  880|    347|}

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));
  ------------------
  |  |  109|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   25|      2|    return cb;
   26|      2|}

OPENSSL_init_crypto:
  349|  1.96M|{
  350|  1.96M|    uint64_t tmp;
  351|  1.96M|    int aloaddone = 0;
  352|       |
  353|       |    /* Applications depend on 0 being returned when cleanup was already done */
  354|  1.96M|    if (ossl_unlikely(stopped)) {
  ------------------
  |  |   23|  1.96M|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.96M]
  |  |  ------------------
  ------------------
  355|      0|        if (!(opts & OPENSSL_INIT_BASE_ONLY))
  ------------------
  |  |   31|      0|#define OPENSSL_INIT_BASE_ONLY 0x00040000L
  ------------------
  |  Branch (355:13): [True: 0, False: 0]
  ------------------
  356|      0|            ERR_raise(ERR_LIB_CRYPTO, ERR_R_INIT_FAIL);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  357|      0|        return 0;
  358|      0|    }
  359|       |
  360|       |    /*
  361|       |     * We ignore failures from this function. It is probably because we are
  362|       |     * on a platform that doesn't support lockless atomic loads (we may not
  363|       |     * have created optsdone_lock yet so we can't use it). This is just an
  364|       |     * optimisation to skip the full checks in this function if we don't need
  365|       |     * to, so we carry on regardless in the event of failure.
  366|       |     *
  367|       |     * There could be a race here with other threads, so that optsdone has not
  368|       |     * been updated yet, even though the options have in fact been initialised.
  369|       |     * This doesn't matter - it just means we will run the full function
  370|       |     * unnecessarily - but all the critical code is contained in RUN_ONCE
  371|       |     * functions anyway so we are safe.
  372|       |     */
  373|  1.96M|    if (ossl_likely(CRYPTO_atomic_load(&optsdone, &tmp, NULL))) {
  ------------------
  |  |   22|  1.96M|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 1.96M, False: 0]
  |  |  ------------------
  ------------------
  374|  1.96M|        if ((tmp & opts) == opts)
  ------------------
  |  Branch (374:13): [True: 19.9k, False: 1.94M]
  ------------------
  375|  19.9k|            return 1;
  376|  1.94M|        aloaddone = 1;
  377|  1.94M|    }
  378|       |
  379|       |    /*
  380|       |     * At some point we should look at this function with a view to moving
  381|       |     * most/all of this into OSSL_LIB_CTX.
  382|       |     *
  383|       |     * When the caller specifies OPENSSL_INIT_BASE_ONLY, that should be the
  384|       |     * *only* option specified.  With that option we return immediately after
  385|       |     * doing the requested limited initialization.
  386|       |     *
  387|       |     * If we remain the only caller of err_shelve_state() the recursion should
  388|       |     * perhaps be removed, but if in doubt, it can be left in place.
  389|       |     */
  390|  1.94M|    if (ossl_unlikely(!RUN_ONCE(&base, ossl_init_base)))
  ------------------
  |  |   23|  3.88M|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.94M]
  |  |  |  Branch (23:46): [True: 1.94M, False: 0]
  |  |  ------------------
  ------------------
  391|      0|        return 0;
  392|       |
  393|  1.94M|    if (opts & OPENSSL_INIT_BASE_ONLY)
  ------------------
  |  |   31|  1.94M|#define OPENSSL_INIT_BASE_ONLY 0x00040000L
  ------------------
  |  Branch (393:9): [True: 1.94M, False: 5]
  ------------------
  394|  1.94M|        return 1;
  395|       |
  396|       |    /*
  397|       |     * optsdone_lock should definitely be set up now, so we can now repeat the
  398|       |     * same check from above but be sure that it will work even on platforms
  399|       |     * without lockless CRYPTO_atomic_load
  400|       |     */
  401|      5|    if (!aloaddone) {
  ------------------
  |  Branch (401:9): [True: 0, False: 5]
  ------------------
  402|      0|        if (!CRYPTO_atomic_load(&optsdone, &tmp, optsdone_lock))
  ------------------
  |  Branch (402:13): [True: 0, False: 0]
  ------------------
  403|      0|            return 0;
  404|      0|        if ((tmp & opts) == opts)
  ------------------
  |  Branch (404:13): [True: 0, False: 0]
  ------------------
  405|      0|            return 1;
  406|      0|    }
  407|       |
  408|      5|    if ((opts & OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS)
  ------------------
  |  |  505|      5|#define OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS 0x00000001L
  ------------------
  |  Branch (408:9): [True: 0, False: 5]
  ------------------
  409|      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 (409:12): [True: 0, False: 0]
  ------------------
  410|      5|            ossl_init_no_load_crypto_strings,
  411|      5|            ossl_init_load_crypto_strings))
  412|      0|        return 0;
  413|       |
  414|      5|    if ((opts & OPENSSL_INIT_LOAD_CRYPTO_STRINGS)
  ------------------
  |  |  506|      5|#define OPENSSL_INIT_LOAD_CRYPTO_STRINGS 0x00000002L
  ------------------
  |  Branch (414:9): [True: 2, False: 3]
  ------------------
  415|      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 (415:12): [True: 0, False: 2]
  ------------------
  416|      0|        return 0;
  417|       |
  418|      5|    if ((opts & OPENSSL_INIT_NO_LOAD_SSL_STRINGS)
  ------------------
  |  | 2812|      5|#define OPENSSL_INIT_NO_LOAD_SSL_STRINGS 0x00100000L
  ------------------
  |  Branch (418:9): [True: 0, False: 5]
  ------------------
  419|      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 (419:12): [True: 0, False: 0]
  ------------------
  420|      5|            ossl_init_load_ssl_strings))
  421|      0|        return 0;
  422|       |
  423|      5|    if ((opts & OPENSSL_INIT_LOAD_SSL_STRINGS)
  ------------------
  |  | 2813|      5|#define OPENSSL_INIT_LOAD_SSL_STRINGS 0x00200000L
  ------------------
  |  Branch (423:9): [True: 1, False: 4]
  ------------------
  424|      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 (424:12): [True: 0, False: 1]
  ------------------
  425|      0|        return 0;
  426|       |
  427|      5|    if ((opts & OPENSSL_INIT_NO_ADD_ALL_CIPHERS)
  ------------------
  |  |  509|      5|#define OPENSSL_INIT_NO_ADD_ALL_CIPHERS 0x00000010L
  ------------------
  |  Branch (427:9): [True: 0, False: 5]
  ------------------
  428|      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 (428:12): [True: 0, False: 0]
  ------------------
  429|      5|            ossl_init_add_all_ciphers))
  430|      0|        return 0;
  431|       |
  432|      5|    if ((opts & OPENSSL_INIT_ADD_ALL_CIPHERS)
  ------------------
  |  |  507|      5|#define OPENSSL_INIT_ADD_ALL_CIPHERS 0x00000004L
  ------------------
  |  Branch (432:9): [True: 3, False: 2]
  ------------------
  433|      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 (433:12): [True: 0, False: 3]
  ------------------
  434|      0|        return 0;
  435|       |
  436|      5|    if ((opts & OPENSSL_INIT_NO_ADD_ALL_DIGESTS)
  ------------------
  |  |  510|      5|#define OPENSSL_INIT_NO_ADD_ALL_DIGESTS 0x00000020L
  ------------------
  |  Branch (436:9): [True: 0, False: 5]
  ------------------
  437|      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 (437:12): [True: 0, False: 0]
  ------------------
  438|      5|            ossl_init_add_all_digests))
  439|      0|        return 0;
  440|       |
  441|      5|    if ((opts & OPENSSL_INIT_ADD_ALL_DIGESTS)
  ------------------
  |  |  508|      5|#define OPENSSL_INIT_ADD_ALL_DIGESTS 0x00000008L
  ------------------
  |  Branch (441:9): [True: 3, False: 2]
  ------------------
  442|      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 (442:12): [True: 0, False: 3]
  ------------------
  443|      0|        return 0;
  444|       |
  445|      5|    if ((opts & OPENSSL_INIT_ATFORK)
  ------------------
  |  |  515|      5|#define OPENSSL_INIT_ATFORK 0x00020000L
  ------------------
  |  Branch (445:9): [True: 0, False: 5]
  ------------------
  446|      0|        && !openssl_init_fork_handlers())
  ------------------
  |  Branch (446:12): [True: 0, False: 0]
  ------------------
  447|      0|        return 0;
  448|       |
  449|      5|    if ((opts & OPENSSL_INIT_NO_LOAD_CONFIG)
  ------------------
  |  |  512|      5|#define OPENSSL_INIT_NO_LOAD_CONFIG 0x00000080L
  ------------------
  |  Branch (449:9): [True: 0, False: 5]
  ------------------
  450|      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 (450:12): [True: 0, False: 0]
  ------------------
  451|      0|        return 0;
  452|       |
  453|      5|    if (opts & OPENSSL_INIT_LOAD_CONFIG) {
  ------------------
  |  |  511|      5|#define OPENSSL_INIT_LOAD_CONFIG 0x00000040L
  ------------------
  |  Branch (453:9): [True: 3, False: 2]
  ------------------
  454|      3|        int loading = CRYPTO_THREAD_get_local(&in_init_config_local) != NULL;
  455|       |
  456|       |        /* If called recursively from OBJ_ calls, just skip it. */
  457|      3|        if (!loading) {
  ------------------
  |  Branch (457:13): [True: 2, False: 1]
  ------------------
  458|      2|            int ret;
  459|       |
  460|      2|            if (!CRYPTO_THREAD_set_local(&in_init_config_local, (void *)-1))
  ------------------
  |  Branch (460:17): [True: 0, False: 2]
  ------------------
  461|      0|                return 0;
  462|      2|            if (settings == NULL) {
  ------------------
  |  Branch (462:17): [True: 2, False: 0]
  ------------------
  463|      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]
  |  |  ------------------
  ------------------
  464|      2|            } else {
  465|      0|                if (!CRYPTO_THREAD_write_lock(init_lock))
  ------------------
  |  Branch (465:21): [True: 0, False: 0]
  ------------------
  466|      0|                    return 0;
  467|      0|                conf_settings = settings;
  468|      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]
  |  |  ------------------
  ------------------
  469|      0|                    ossl_init_config);
  470|      0|                conf_settings = NULL;
  471|      0|                CRYPTO_THREAD_unlock(init_lock);
  472|      0|            }
  473|       |
  474|      2|            if (ret <= 0)
  ------------------
  |  Branch (474:17): [True: 0, False: 2]
  ------------------
  475|      0|                return 0;
  476|      2|        }
  477|      3|    }
  478|       |
  479|      5|    if ((opts & OPENSSL_INIT_ASYNC)
  ------------------
  |  |  513|      5|#define OPENSSL_INIT_ASYNC 0x00000100L
  ------------------
  |  Branch (479:9): [True: 0, False: 5]
  ------------------
  480|      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 (480:12): [True: 0, False: 0]
  ------------------
  481|      0|        return 0;
  482|       |
  483|      5|    if (!CRYPTO_atomic_or(&optsdone, opts, &tmp, optsdone_lock))
  ------------------
  |  Branch (483:9): [True: 0, False: 5]
  ------------------
  484|      0|        return 0;
  485|       |
  486|      5|    return 1;
  487|      5|}
init.c:ossl_init_base:
   53|      2|{
   54|       |    /* no need to init trace */
   55|       |
   56|      2|    OSSL_TRACE(INIT, "ossl_init_base: setting up stop handlers\n");
  ------------------
  |  |  288|      2|    OSSL_TRACEV(category, (trc_out, "%s", text))
  |  |  ------------------
  |  |  |  |  283|      2|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
   57|       |#ifndef OPENSSL_NO_CRYPTO_MDEBUG
   58|       |    ossl_malloc_setup_failures();
   59|       |#endif
   60|       |
   61|      2|    if ((optsdone_lock = CRYPTO_THREAD_lock_new()) == NULL
  ------------------
  |  Branch (61:9): [True: 0, False: 2]
  ------------------
   62|      2|        || (init_lock = CRYPTO_THREAD_lock_new()) == NULL)
  ------------------
  |  Branch (62:12): [True: 0, False: 2]
  ------------------
   63|      0|        goto err;
   64|       |
   65|      2|    OPENSSL_cpuid_setup();
   66|       |
   67|      2|    if (!ossl_init_thread())
  ------------------
  |  Branch (67:9): [True: 0, False: 2]
  ------------------
   68|      0|        goto err;
   69|       |
   70|      2|    if (!CRYPTO_THREAD_init_local(&in_init_config_local, NULL))
  ------------------
  |  Branch (70:9): [True: 0, False: 2]
  ------------------
   71|      0|        goto err;
   72|       |
   73|      2|    base_inited = 1;
   74|      2|    return 1;
   75|       |
   76|      0|err:
   77|      0|    OSSL_TRACE(INIT, "ossl_init_base failed!\n");
  ------------------
  |  |  288|      0|    OSSL_TRACEV(category, (trc_out, "%s", text))
  |  |  ------------------
  |  |  |  |  283|      0|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
   78|      0|    CRYPTO_THREAD_lock_free(optsdone_lock);
   79|      0|    optsdone_lock = NULL;
   80|      0|    CRYPTO_THREAD_lock_free(init_lock);
   81|      0|    init_lock = NULL;
   82|       |
   83|      0|    return 0;
   84|      2|}
init.c:ossl_init_load_crypto_strings:
   89|      2|{
   90|      2|    int ret = 1;
   91|       |    /*
   92|       |     * OPENSSL_NO_AUTOERRINIT is provided here to prevent at compile time
   93|       |     * pulling in all the error strings during static linking
   94|       |     */
   95|      2|#if !defined(OPENSSL_NO_ERR) && !defined(OPENSSL_NO_AUTOERRINIT)
   96|      2|    void *err;
   97|       |
   98|      2|    if (!err_shelve_state(&err))
  ------------------
  |  Branch (98:9): [True: 0, False: 2]
  ------------------
   99|      0|        return 0;
  100|       |
  101|      2|    OSSL_TRACE(INIT, "ossl_err_load_crypto_strings()\n");
  ------------------
  |  |  288|      2|    OSSL_TRACEV(category, (trc_out, "%s", text))
  |  |  ------------------
  |  |  |  |  283|      2|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  102|      2|    ret = ossl_err_load_crypto_strings();
  103|       |
  104|      2|    err_unshelve_state(err);
  105|      2|#endif
  106|      2|    return ret;
  107|      2|}
init.c:ossl_init_load_ssl_strings:
  119|      1|{
  120|       |    /*
  121|       |     * OPENSSL_NO_AUTOERRINIT is provided here to prevent at compile time
  122|       |     * pulling in all the error strings during static linking
  123|       |     */
  124|      1|#if !defined(OPENSSL_NO_ERR) && !defined(OPENSSL_NO_AUTOERRINIT)
  125|      1|    OSSL_TRACE(INIT, "ossl_init_load_ssl_strings: ossl_err_load_SSL_strings()\n");
  ------------------
  |  |  288|      1|    OSSL_TRACEV(category, (trc_out, "%s", text))
  |  |  ------------------
  |  |  |  |  283|      1|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  126|      1|    ossl_err_load_SSL_strings();
  127|      1|#endif
  128|      1|    return 1;
  129|      1|}
init.c:ossl_init_add_all_ciphers:
  140|      2|{
  141|       |    /*
  142|       |     * OPENSSL_NO_AUTOALGINIT is provided here to prevent at compile time
  143|       |     * pulling in all the ciphers during static linking
  144|       |     */
  145|      2|#ifndef OPENSSL_NO_AUTOALGINIT
  146|      2|    OSSL_TRACE(INIT, "openssl_add_all_ciphers_int()\n");
  ------------------
  |  |  288|      2|    OSSL_TRACEV(category, (trc_out, "%s", text))
  |  |  ------------------
  |  |  |  |  283|      2|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  147|      2|    openssl_add_all_ciphers_int();
  148|      2|#endif
  149|      2|    return 1;
  150|      2|}
init.c:ossl_init_add_all_digests:
  161|      2|{
  162|       |    /*
  163|       |     * OPENSSL_NO_AUTOALGINIT is provided here to prevent at compile time
  164|       |     * pulling in all the ciphers during static linking
  165|       |     */
  166|      2|#ifndef OPENSSL_NO_AUTOALGINIT
  167|      2|    OSSL_TRACE(INIT, "openssl_add_all_digests()\n");
  ------------------
  |  |  288|      2|    OSSL_TRACEV(category, (trc_out, "%s", text))
  |  |  ------------------
  |  |  |  |  283|      2|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  168|      2|    openssl_add_all_digests_int();
  169|      2|#endif
  170|      2|    return 1;
  171|      2|}
init.c:ossl_init_config:
  183|      2|{
  184|      2|    int ret = ossl_config_int(NULL);
  185|       |
  186|      2|    return ret;
  187|      2|}

ossl_init_thread:
  240|      2|{
  241|      2|    if (!CRYPTO_THREAD_init_local(&destructor_key.value,
  ------------------
  |  Branch (241:9): [True: 0, False: 2]
  ------------------
  242|      2|            init_thread_destructor))
  243|      0|        return 0;
  244|       |
  245|      2|    return 1;
  246|      2|}
ossl_init_thread_start:
  392|      3|{
  393|      3|    THREAD_EVENT_HANDLER **hands;
  394|      3|    THREAD_EVENT_HANDLER *hand;
  395|      3|    OSSL_LIB_CTX *ctx = NULL;
  396|       |#ifdef FIPS_MODULE
  397|       |    /*
  398|       |     * In FIPS mode the list of THREAD_EVENT_HANDLERs is unique per combination
  399|       |     * of OSSL_LIB_CTX and thread. This is because in FIPS mode each
  400|       |     * OSSL_LIB_CTX gets informed about thread stop events individually.
  401|       |     */
  402|       |
  403|       |    ctx = arg;
  404|       |#endif
  405|       |
  406|      3|    hands = alloc_thread_local(ctx);
  407|       |
  408|      3|    if (hands == NULL)
  ------------------
  |  Branch (408:9): [True: 0, False: 3]
  ------------------
  409|      0|        return 0;
  410|       |
  411|       |#ifdef FIPS_MODULE
  412|       |    if (*hands == NULL) {
  413|       |        /*
  414|       |         * We've not yet registered any handlers for this thread. We need to get
  415|       |         * libcrypto to tell us about later thread stop events. c_thread_start
  416|       |         * is a callback to libcrypto defined in fipsprov.c
  417|       |         */
  418|       |        if (!ossl_thread_register_fips(ctx))
  419|       |            return 0;
  420|       |    }
  421|       |#endif
  422|       |
  423|      3|    hand = OPENSSL_malloc(sizeof(*hand));
  ------------------
  |  |  107|      3|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  424|      3|    if (hand == NULL)
  ------------------
  |  Branch (424:9): [True: 0, False: 3]
  ------------------
  425|      0|        return 0;
  426|       |
  427|      3|    hand->handfn = handfn;
  428|      3|    hand->arg = arg;
  429|      3|#ifndef FIPS_MODULE
  430|      3|    hand->index = index;
  431|      3|#endif
  432|      3|    hand->next = *hands;
  433|      3|    *hands = hand;
  434|       |
  435|      3|    return 1;
  436|      3|}
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)
  ------------------
  |  |  109|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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));
  ------------------
  |  |  109|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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|    663|{
   53|       |
   54|    663|    if (lh == NULL)
  ------------------
  |  Branch (54:9): [True: 0, False: 663]
  ------------------
   55|      0|        return NULL;
   56|    663|    lh->compw = cw;
   57|    663|    lh->hashw = hw;
   58|    663|    lh->daw = daw;
   59|    663|    lh->daaw = daaw;
   60|    663|    return lh;
   61|    663|}
OPENSSL_LH_new:
   64|    663|{
   65|    663|    OPENSSL_LHASH *ret;
   66|       |
   67|    663|    if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL)
  ------------------
  |  |  109|    663|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (67:9): [True: 0, False: 663]
  ------------------
   68|      0|        return NULL;
   69|    663|    if ((ret->b = OPENSSL_calloc(MIN_NODES, sizeof(*ret->b))) == NULL)
  ------------------
  |  |  113|    663|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (69:9): [True: 0, False: 663]
  ------------------
   70|      0|        goto err;
   71|    663|    ret->comp = ((c == NULL) ? (OPENSSL_LH_COMPFUNC)strcmp : c);
  ------------------
  |  Branch (71:18): [True: 0, False: 663]
  ------------------
   72|    663|    ret->hash = ((h == NULL) ? (OPENSSL_LH_HASHFUNC)OPENSSL_LH_strhash : h);
  ------------------
  |  Branch (72:18): [True: 0, False: 663]
  ------------------
   73|    663|    ret->num_nodes = MIN_NODES / 2;
  ------------------
  |  |   39|    663|#define MIN_NODES 16
  ------------------
   74|    663|    ret->num_alloc_nodes = MIN_NODES;
  ------------------
  |  |   39|    663|#define MIN_NODES 16
  ------------------
   75|    663|    ret->pmax = MIN_NODES / 2;
  ------------------
  |  |   39|    663|#define MIN_NODES 16
  ------------------
   76|    663|    ret->up_load = UP_LOAD;
  ------------------
  |  |   40|    663|#define UP_LOAD (2 * LH_LOAD_MULT) /* load times 256 (default 2) */
  |  |  ------------------
  |  |  |  |   92|    663|#define LH_LOAD_MULT 256
  |  |  ------------------
  ------------------
   77|    663|    ret->down_load = DOWN_LOAD;
  ------------------
  |  |   41|    663|#define DOWN_LOAD (LH_LOAD_MULT) /* load times 256 (default 1) */
  |  |  ------------------
  |  |  |  |   92|    663|#define LH_LOAD_MULT 256
  |  |  ------------------
  ------------------
   78|    663|    return ret;
   79|       |
   80|      0|err:
   81|      0|    OPENSSL_free(ret->b);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   82|      0|    OPENSSL_free(ret);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   83|       |    return NULL;
   84|    663|}
OPENSSL_LH_free:
   87|    347|{
   88|    347|    if (lh == NULL)
  ------------------
  |  Branch (88:9): [True: 0, False: 347]
  ------------------
   89|      0|        return;
   90|       |
   91|    347|    OPENSSL_LH_flush(lh);
   92|    347|    OPENSSL_free(lh->b);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   93|    347|    OPENSSL_free(lh);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   94|    347|}
OPENSSL_LH_flush:
   97|    393|{
   98|    393|    unsigned int i;
   99|    393|    OPENSSL_LH_NODE *n, *nn;
  100|       |
  101|    393|    if (lh == NULL)
  ------------------
  |  Branch (101:9): [True: 0, False: 393]
  ------------------
  102|      0|        return;
  103|       |
  104|  3.53k|    for (i = 0; i < lh->num_nodes; i++) {
  ------------------
  |  Branch (104:17): [True: 3.14k, False: 393]
  ------------------
  105|  3.14k|        n = lh->b[i];
  106|  3.14k|        while (n != NULL) {
  ------------------
  |  Branch (106:16): [True: 0, False: 3.14k]
  ------------------
  107|      0|            nn = n->next;
  108|      0|            OPENSSL_free(n);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  109|      0|            n = nn;
  110|      0|        }
  111|  3.14k|        lh->b[i] = NULL;
  112|  3.14k|    }
  113|       |
  114|    393|    lh->num_items = 0;
  115|    393|}
OPENSSL_LH_insert:
  118|  10.0k|{
  119|  10.0k|    unsigned long hash;
  120|  10.0k|    OPENSSL_LH_NODE *nn, **rn;
  121|  10.0k|    void *ret;
  122|       |
  123|  10.0k|    lh->error = 0;
  124|  10.0k|    if ((lh->up_load <= (lh->num_items * LH_LOAD_MULT / lh->num_nodes)) && !expand(lh))
  ------------------
  |  |   92|  10.0k|#define LH_LOAD_MULT 256
  ------------------
  |  Branch (124:9): [True: 1.91k, False: 8.09k]
  |  Branch (124:76): [True: 0, False: 1.91k]
  ------------------
  125|      0|        return NULL; /* 'lh->error++' already done in 'expand' */
  126|       |
  127|  10.0k|    rn = getrn(lh, data, &hash);
  128|       |
  129|  10.0k|    if (*rn == NULL) {
  ------------------
  |  Branch (129:9): [True: 3.98k, False: 6.02k]
  ------------------
  130|  3.98k|        if ((nn = OPENSSL_malloc(sizeof(*nn))) == NULL) {
  ------------------
  |  |  107|  3.98k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (130:13): [True: 0, False: 3.98k]
  ------------------
  131|      0|            lh->error++;
  132|      0|            return NULL;
  133|      0|        }
  134|  3.98k|        nn->data = data;
  135|  3.98k|        nn->next = NULL;
  136|  3.98k|        nn->hash = hash;
  137|  3.98k|        *rn = nn;
  138|  3.98k|        ret = NULL;
  139|  3.98k|        lh->num_items++;
  140|  6.02k|    } else { /* replace same key */
  141|  6.02k|        ret = (*rn)->data;
  142|  6.02k|        (*rn)->data = data;
  143|  6.02k|    }
  144|  10.0k|    return ret;
  145|  10.0k|}
OPENSSL_LH_retrieve:
  173|  87.4k|{
  174|  87.4k|    unsigned long hash;
  175|  87.4k|    OPENSSL_LH_NODE **rn;
  176|       |
  177|  87.4k|    if (lh->error != 0)
  ------------------
  |  Branch (177:9): [True: 0, False: 87.4k]
  ------------------
  178|      0|        lh->error = 0;
  179|       |
  180|  87.4k|    rn = getrn(lh, data, &hash);
  181|       |
  182|  87.4k|    return *rn == NULL ? NULL : (*rn)->data;
  ------------------
  |  Branch (182:12): [True: 11.6k, False: 75.8k]
  ------------------
  183|  87.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|  43.6k|{
  361|  43.6k|    unsigned long ret = 0;
  362|  43.6k|    long n;
  363|  43.6k|    unsigned long v;
  364|  43.6k|    int r;
  365|       |
  366|  43.6k|    if ((c == NULL) || (*c == '\0'))
  ------------------
  |  Branch (366:9): [True: 0, False: 43.6k]
  |  Branch (366:24): [True: 32.9k, False: 10.6k]
  ------------------
  367|  32.9k|        return ret;
  368|       |
  369|  10.6k|    n = 0x100;
  370|   116k|    while (*c) {
  ------------------
  |  Branch (370:12): [True: 105k, False: 10.6k]
  ------------------
  371|   105k|        v = n | (*c);
  372|   105k|        n += 0x100;
  373|   105k|        r = (int)((v >> 2) ^ v) & 0x0f;
  374|       |        /* cast to uint64_t to avoid 32 bit shift of 32 bit value */
  375|   105k|        ret = (ret << r) | (unsigned long)((uint64_t)ret >> (32 - r));
  376|   105k|        ret &= 0xFFFFFFFFL;
  377|   105k|        ret ^= v * v;
  378|   105k|        c++;
  379|   105k|    }
  380|  10.6k|    return (ret >> 16) ^ ret;
  381|  43.6k|}
ossl_lh_strcasehash:
  398|   125k|{
  399|   125k|    unsigned long ret = 0;
  400|   125k|    long n;
  401|   125k|    unsigned long v;
  402|   125k|    int r;
  403|       |#if defined(CHARSET_EBCDIC) && !defined(CHARSET_EBCDIC_TEST)
  404|       |    const long int case_adjust = ~0x40;
  405|       |#else
  406|   125k|    const long int case_adjust = ~0x20;
  407|   125k|#endif
  408|       |
  409|   125k|    if (c == NULL || *c == '\0')
  ------------------
  |  Branch (409:9): [True: 0, False: 125k]
  |  Branch (409:22): [True: 0, False: 125k]
  ------------------
  410|      0|        return ret;
  411|       |
  412|  1.64M|    for (n = 0x100; *c != '\0'; n += 0x100) {
  ------------------
  |  Branch (412:21): [True: 1.52M, False: 125k]
  ------------------
  413|  1.52M|        v = n | (case_adjust & *c);
  414|  1.52M|        r = (int)((v >> 2) ^ v) & 0x0f;
  415|       |        /* cast to uint64_t to avoid 32 bit shift of 32 bit value */
  416|  1.52M|        ret = (ret << r) | (unsigned long)((uint64_t)ret >> (32 - r));
  417|  1.52M|        ret &= 0xFFFFFFFFL;
  418|  1.52M|        ret ^= v * v;
  419|  1.52M|        c++;
  420|  1.52M|    }
  421|   125k|    return (ret >> 16) ^ ret;
  422|   125k|}
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|    347|{
  431|    347|    return lh->down_load;
  432|    347|}
OPENSSL_LH_set_down_load:
  435|    694|{
  436|    694|    lh->down_load = down_load;
  437|    694|}
OPENSSL_LH_error:
  440|    587|{
  441|    587|    return lh->error;
  442|    587|}
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.91k|{
  244|  1.91k|    OPENSSL_LH_NODE **n, **n1, **n2, *np;
  245|  1.91k|    unsigned int p, pmax, nni, j;
  246|  1.91k|    unsigned long hash;
  247|       |
  248|  1.91k|    nni = lh->num_alloc_nodes;
  249|  1.91k|    p = lh->p;
  250|  1.91k|    pmax = lh->pmax;
  251|  1.91k|    if (p + 1 >= pmax) {
  ------------------
  |  Branch (251:9): [True: 18, False: 1.89k]
  ------------------
  252|     18|        j = nni * 2;
  253|     18|        n = OPENSSL_realloc_array(lh->b, j, sizeof(OPENSSL_LH_NODE *));
  ------------------
  |  |  125|     18|    CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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.89k|    } else {
  264|  1.89k|        lh->p++;
  265|  1.89k|    }
  266|       |
  267|  1.91k|    lh->num_nodes++;
  268|  1.91k|    n1 = &(lh->b[p]);
  269|  1.91k|    n2 = &(lh->b[p + pmax]);
  270|  1.91k|    *n2 = NULL;
  271|       |
  272|  8.17k|    for (np = *n1; np != NULL;) {
  ------------------
  |  Branch (272:20): [True: 6.26k, False: 1.91k]
  ------------------
  273|  6.26k|        hash = np->hash;
  274|  6.26k|        if ((hash % nni) != p) { /* move it */
  ------------------
  |  Branch (274:13): [True: 1.10k, False: 5.16k]
  ------------------
  275|  1.10k|            *n1 = (*n1)->next;
  276|  1.10k|            np->next = *n2;
  277|  1.10k|            *n2 = np;
  278|  1.10k|        } else
  279|  5.16k|            n1 = &((*n1)->next);
  280|  6.26k|        np = *n1;
  281|  6.26k|    }
  282|       |
  283|  1.91k|    return 1;
  284|  1.91k|}
lhash.c:getrn:
  320|  97.4k|{
  321|  97.4k|    OPENSSL_LH_NODE **ret, *n1;
  322|  97.4k|    unsigned long hash, nn;
  323|       |
  324|  97.4k|    if (lh->hashw != NULL)
  ------------------
  |  Branch (324:9): [True: 97.4k, False: 0]
  ------------------
  325|  97.4k|        hash = lh->hashw(data, lh->hash);
  326|      0|    else
  327|      0|        hash = lh->hash(data);
  328|       |
  329|  97.4k|    *rhash = hash;
  330|       |
  331|  97.4k|    nn = hash % lh->pmax;
  332|  97.4k|    if (nn < lh->p)
  ------------------
  |  Branch (332:9): [True: 5.36k, False: 92.0k]
  ------------------
  333|  5.36k|        nn = hash % lh->num_alloc_nodes;
  334|       |
  335|  97.4k|    ret = &(lh->b[(int)nn]);
  336|   115k|    for (n1 = *ret; n1 != NULL; n1 = n1->next) {
  ------------------
  |  Branch (336:21): [True: 99.9k, False: 15.6k]
  ------------------
  337|  99.9k|        if (n1->hash != hash) {
  ------------------
  |  Branch (337:13): [True: 17.7k, False: 82.2k]
  ------------------
  338|  17.7k|            ret = &(n1->next);
  339|  17.7k|            continue;
  340|  17.7k|        }
  341|       |
  342|  82.2k|        if (lh->compw != NULL) {
  ------------------
  |  Branch (342:13): [True: 82.2k, False: 0]
  ------------------
  343|  82.2k|            if (lh->compw(n1->data, data, lh->comp) == 0)
  ------------------
  |  Branch (343:17): [True: 81.8k, False: 364]
  ------------------
  344|  81.8k|                break;
  345|  82.2k|        } else {
  346|      0|            if (lh->comp(n1->data, data) == 0)
  ------------------
  |  Branch (346:17): [True: 0, False: 0]
  ------------------
  347|      0|                break;
  348|      0|        }
  349|    364|        ret = &(n1->next);
  350|    364|    }
  351|  97.4k|    return ret;
  352|  97.4k|}

CRYPTO_malloc:
  190|  11.0M|{
  191|  11.0M|    void *ptr;
  192|       |
  193|  11.0M|    INCREMENT(malloc_count);
  194|  11.0M|    if (malloc_impl != CRYPTO_malloc) {
  ------------------
  |  Branch (194:9): [True: 0, False: 11.0M]
  ------------------
  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|  11.0M|    if (ossl_unlikely(num == 0))
  ------------------
  |  |   23|  11.0M|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 11.0M]
  |  |  ------------------
  ------------------
  202|      0|        return NULL;
  203|       |
  204|  11.0M|    FAILTEST();
  205|  11.0M|    if (allow_customize) {
  ------------------
  |  Branch (205:9): [True: 2, False: 11.0M]
  ------------------
  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|  11.0M|    ptr = malloc(num);
  215|  11.0M|    if (ossl_likely(ptr != NULL))
  ------------------
  |  |   22|  11.0M|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 11.0M, False: 0]
  |  |  ------------------
  ------------------
  216|  11.0M|        return ptr;
  217|      0|err:
  218|      0|    ossl_report_alloc_err(file, line);
  219|       |    return NULL;
  220|  11.0M|}
CRYPTO_zalloc:
  223|  8.06M|{
  224|  8.06M|    void *ret;
  225|       |
  226|  8.06M|    ret = CRYPTO_malloc(num, file, line);
  227|  8.06M|    if (ret != NULL)
  ------------------
  |  Branch (227:9): [True: 8.06M, False: 0]
  ------------------
  228|  8.06M|        memset(ret, 0, num);
  229|       |
  230|  8.06M|    return ret;
  231|  8.06M|}
CRYPTO_aligned_alloc:
  235|  2.74k|{
  236|  2.74k|    *freeptr = NULL;
  237|       |
  238|       |    /* Ensure that alignment is a power of two no larger than 65536 */
  239|  2.74k|    if (alignment == 0 || (alignment & (alignment - 1)) != 0
  ------------------
  |  Branch (239:9): [True: 0, False: 2.74k]
  |  Branch (239:27): [True: 0, False: 2.74k]
  ------------------
  240|  2.74k|        || alignment > 65536) {
  ------------------
  |  Branch (240:12): [True: 0, False: 2.74k]
  ------------------
  241|      0|        ossl_report_alloc_err_inv(file, line);
  242|      0|        return NULL;
  243|      0|    }
  244|       |
  245|       |    /* Allow non-malloc() allocations as long as no malloc_impl is provided. */
  246|  2.74k|    if (malloc_impl == CRYPTO_malloc) {
  ------------------
  |  Branch (246:9): [True: 2.74k, False: 0]
  ------------------
  247|  2.74k|#if defined(_BSD_SOURCE) || (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L)
  248|  2.74k|        void *ret;
  249|       |
  250|       |        /* posix_memalign() requires alignment to be at least sizeof(void *) */
  251|  2.74k|        if (alignment < sizeof(void *))
  ------------------
  |  Branch (251:13): [True: 0, False: 2.74k]
  ------------------
  252|      0|            alignment = sizeof(void *);
  253|       |
  254|  2.74k|        if (posix_memalign(&ret, alignment, num) == 0) {
  ------------------
  |  Branch (254:13): [True: 2.74k, False: 0]
  ------------------
  255|  2.74k|            *freeptr = ret;
  256|  2.74k|            return ret;
  257|  2.74k|        }
  258|  2.74k|#endif
  259|  2.74k|    }
  260|       |
  261|      0|    return ossl_malloc_align(num, alignment, freeptr, file, line);
  262|  2.74k|}
CRYPTO_realloc:
  265|   826k|{
  266|   826k|    void *ret;
  267|       |
  268|   826k|    INCREMENT(realloc_count);
  269|   826k|    if (realloc_impl != CRYPTO_realloc) {
  ------------------
  |  Branch (269:9): [True: 0, False: 826k]
  ------------------
  270|      0|        ret = realloc_impl(str, num, file, line);
  271|       |
  272|      0|        if (num == 0 || ret != NULL)
  ------------------
  |  Branch (272:13): [True: 0, False: 0]
  |  Branch (272:25): [True: 0, False: 0]
  ------------------
  273|      0|            return ret;
  274|       |
  275|      0|        goto err;
  276|      0|    }
  277|       |
  278|   826k|    if (str == NULL)
  ------------------
  |  Branch (278:9): [True: 761k, False: 65.2k]
  ------------------
  279|   761k|        return CRYPTO_malloc(num, file, line);
  280|       |
  281|  65.2k|    if (num == 0) {
  ------------------
  |  Branch (281:9): [True: 0, False: 65.2k]
  ------------------
  282|      0|        CRYPTO_free(str, file, line);
  283|      0|        return NULL;
  284|      0|    }
  285|       |
  286|  65.2k|    FAILTEST();
  287|  65.2k|    ret = realloc(str, num);
  288|       |
  289|  65.2k|err:
  290|  65.2k|    if (num != 0 && ret == NULL)
  ------------------
  |  Branch (290:9): [True: 65.2k, False: 0]
  |  Branch (290:21): [True: 0, False: 65.2k]
  ------------------
  291|      0|        ossl_report_alloc_err(file, line);
  292|       |
  293|  65.2k|    return ret;
  294|  65.2k|}
CRYPTO_clear_realloc:
  298|   490k|{
  299|   490k|    void *ret = NULL;
  300|       |
  301|   490k|    if (str == NULL)
  ------------------
  |  Branch (301:9): [True: 124k, False: 365k]
  ------------------
  302|   124k|        return CRYPTO_malloc(num, file, line);
  303|       |
  304|   365k|    if (num == 0) {
  ------------------
  |  Branch (304:9): [True: 0, False: 365k]
  ------------------
  305|      0|        CRYPTO_clear_free(str, old_len, file, line);
  306|      0|        return NULL;
  307|      0|    }
  308|       |
  309|       |    /* Can't shrink the buffer since memcpy below copies |old_len| bytes. */
  310|   365k|    if (num < old_len) {
  ------------------
  |  Branch (310:9): [True: 0, False: 365k]
  ------------------
  311|      0|        OPENSSL_cleanse((char *)str + num, old_len - num);
  312|      0|        return str;
  313|      0|    }
  314|       |
  315|   365k|    ret = CRYPTO_malloc(num, file, line);
  316|   365k|    if (ret != NULL) {
  ------------------
  |  Branch (316:9): [True: 365k, False: 0]
  ------------------
  317|   365k|        memcpy(ret, str, old_len);
  318|   365k|        CRYPTO_clear_free(str, old_len, file, line);
  319|   365k|    }
  320|   365k|    return ret;
  321|   365k|}
CRYPTO_free:
  324|  14.9M|{
  325|  14.9M|    INCREMENT(free_count);
  326|  14.9M|    if (free_impl != CRYPTO_free) {
  ------------------
  |  Branch (326:9): [True: 0, False: 14.9M]
  ------------------
  327|      0|        free_impl(str, file, line);
  328|      0|        return;
  329|      0|    }
  330|       |
  331|  14.9M|    free(str);
  332|  14.9M|}
CRYPTO_clear_free:
  335|  1.18M|{
  336|  1.18M|    if (str == NULL)
  ------------------
  |  Branch (336:9): [True: 86.9k, False: 1.09M]
  ------------------
  337|  86.9k|        return;
  338|  1.09M|    if (num)
  ------------------
  |  Branch (338:9): [True: 1.09M, False: 0]
  ------------------
  339|  1.09M|        OPENSSL_cleanse(str, num);
  340|  1.09M|    CRYPTO_free(str, file, line);
  341|  1.09M|}

CRYPTO_secure_malloc:
  154|    352|{
  155|    352|#ifndef OPENSSL_NO_SECURE_MEMORY
  156|    352|    void *ret = NULL;
  157|    352|    size_t actual_size;
  158|    352|    int reason = CRYPTO_R_SECURE_MALLOC_FAILURE;
  ------------------
  |  |   45|    352|#define CRYPTO_R_SECURE_MALLOC_FAILURE 111
  ------------------
  159|       |
  160|    352|    if (!secure_mem_initialized) {
  ------------------
  |  Branch (160:9): [True: 352, False: 0]
  ------------------
  161|    352|        return CRYPTO_malloc(num, file, line);
  162|    352|    }
  163|      0|    if (!CRYPTO_THREAD_write_lock(sec_malloc_lock)) {
  ------------------
  |  Branch (163:9): [True: 0, False: 0]
  ------------------
  164|      0|        reason = ERR_R_CRYPTO_LIB;
  ------------------
  |  |  281|      0|#define ERR_R_CRYPTO_LIB (ERR_LIB_CRYPTO /* 15 */ | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |   68|      0|#define ERR_LIB_CRYPTO 15
  |  |  ------------------
  |  |               #define ERR_R_CRYPTO_LIB (ERR_LIB_CRYPTO /* 15 */ | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  220|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  211|      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);
  ------------------
  |  |   68|      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|  1.03k|{
  185|  1.03k|#ifndef OPENSSL_NO_SECURE_MEMORY
  186|  1.03k|    if (secure_mem_initialized)
  ------------------
  |  Branch (186:9): [True: 0, False: 1.03k]
  ------------------
  187|       |        /* CRYPTO_secure_malloc() zeroes allocations when it is implemented */
  188|      0|        return CRYPTO_secure_malloc(num, file, line);
  189|  1.03k|#endif
  190|  1.03k|    return CRYPTO_zalloc(num, file, line);
  191|  1.03k|}
CRYPTO_secure_clear_free:
  218|  2.75k|{
  219|  2.75k|#ifndef OPENSSL_NO_SECURE_MEMORY
  220|  2.75k|    size_t actual_size;
  221|       |
  222|  2.75k|    if (ptr == NULL)
  ------------------
  |  Branch (222:9): [True: 1.36k, False: 1.38k]
  ------------------
  223|  1.36k|        return;
  224|  1.38k|    if (!CRYPTO_secure_allocated(ptr)) {
  ------------------
  |  Branch (224:9): [True: 1.38k, False: 0]
  ------------------
  225|  1.38k|        OPENSSL_cleanse(ptr, num);
  226|  1.38k|        CRYPTO_free(ptr, file, line);
  227|  1.38k|        return;
  228|  1.38k|    }
  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|  2.06k|{
  246|  2.06k|#ifndef OPENSSL_NO_SECURE_MEMORY
  247|  2.06k|    if (!secure_mem_initialized)
  ------------------
  |  Branch (247:9): [True: 2.06k, False: 0]
  ------------------
  248|  2.06k|        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|  2.06k|}

ossl_ml_kem_key_reset:
 1584|    342|{
 1585|       |    /*
 1586|       |     * seedbuf can be allocated and contain |z| and |d| if the key is
 1587|       |     * being created from a private key encoding.  Similarly a pending
 1588|       |     * serialised (encoded) private key may be queued up to load.
 1589|       |     * Clear and free that data now.
 1590|       |     */
 1591|    342|    if (key->seedbuf != NULL)
  ------------------
  |  Branch (1591:9): [True: 0, False: 342]
  ------------------
 1592|      0|        OPENSSL_secure_clear_free(key->seedbuf, ML_KEM_SEED_BYTES);
  ------------------
  |  |  150|      0|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1593|    342|    if (ossl_ml_kem_have_dkenc(key))
  ------------------
  |  |  210|    342|#define ossl_ml_kem_have_dkenc(key) ((key)->encoded_dk != NULL)
  |  |  ------------------
  |  |  |  Branch (210:37): [True: 0, False: 342]
  |  |  ------------------
  ------------------
 1594|      0|        OPENSSL_secure_clear_free(key->encoded_dk, key->vinfo->prvkey_bytes);
  ------------------
  |  |  150|      0|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1595|       |
 1596|       |    /*-
 1597|       |     * Cleanse any sensitive data:
 1598|       |     * - The private vector |s| is immediately followed by the FO failure
 1599|       |     *   secret |z|, and seed |d|, we can cleanse all three in one call.
 1600|       |     */
 1601|    342|    if (key->t != NULL) {
  ------------------
  |  Branch (1601:9): [True: 342, False: 0]
  ------------------
 1602|    342|        if (ossl_ml_kem_have_prvkey(key))
  ------------------
  |  |  208|    342|#define ossl_ml_kem_have_prvkey(key) ((key)->s != NULL)
  |  |  ------------------
  |  |  |  Branch (208:38): [True: 342, False: 0]
  |  |  ------------------
  ------------------
 1603|    342|            OPENSSL_secure_clear_free(key->s, key->vinfo->prvalloc);
  ------------------
  |  |  150|    342|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1604|    342|        OPENSSL_free(key->t);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1605|    342|    }
 1606|       |    key->d = key->z = key->seedbuf = key->encoded_dk = (uint8_t *)(key->s = key->m = key->t = NULL);
 1607|    342|}
ossl_ml_kem_get_vinfo:
 1618|    684|{
 1619|    684|    switch (evp_type) {
  ------------------
  |  Branch (1619:13): [True: 684, False: 0]
  ------------------
 1620|      0|    case EVP_PKEY_ML_KEM_512:
  ------------------
  |  |   93|      0|#define EVP_PKEY_ML_KEM_512 NID_ML_KEM_512
  |  |  ------------------
  |  |  |  | 6640|      0|#define NID_ML_KEM_512          1454
  |  |  ------------------
  ------------------
  |  Branch (1620:5): [True: 0, False: 684]
  ------------------
 1621|      0|        return &vinfo_map[ML_KEM_512_VINFO];
  ------------------
  |  |  177|      0|#define ML_KEM_512_VINFO 0
  ------------------
 1622|    684|    case EVP_PKEY_ML_KEM_768:
  ------------------
  |  |  103|    684|#define EVP_PKEY_ML_KEM_768 NID_ML_KEM_768
  |  |  ------------------
  |  |  |  | 6645|    684|#define NID_ML_KEM_768          1455
  |  |  ------------------
  ------------------
  |  Branch (1622:5): [True: 684, False: 0]
  ------------------
 1623|    684|        return &vinfo_map[ML_KEM_768_VINFO];
  ------------------
  |  |  178|    684|#define ML_KEM_768_VINFO 1
  ------------------
 1624|      0|    case EVP_PKEY_ML_KEM_1024:
  ------------------
  |  |  113|      0|#define EVP_PKEY_ML_KEM_1024 NID_ML_KEM_1024
  |  |  ------------------
  |  |  |  | 6650|      0|#define NID_ML_KEM_1024         1456
  |  |  ------------------
  ------------------
  |  Branch (1624:5): [True: 0, False: 684]
  ------------------
 1625|      0|        return &vinfo_map[ML_KEM_1024_VINFO];
  ------------------
  |  |  179|      0|#define ML_KEM_1024_VINFO 2
  ------------------
 1626|    684|    }
 1627|      0|    return NULL;
 1628|    684|}
ossl_ml_kem_key_new:
 1632|    342|{
 1633|    342|    const ML_KEM_VINFO *vinfo = ossl_ml_kem_get_vinfo(evp_type);
 1634|    342|    ML_KEM_KEY *key;
 1635|       |
 1636|    342|    if (vinfo == NULL) {
  ------------------
  |  Branch (1636:9): [True: 0, False: 342]
  ------------------
 1637|      0|        ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |   68|      0|#define ERR_LIB_CRYPTO 15
  ------------------
                      ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |  311|      0|#define ERR_R_PASSED_INVALID_ARGUMENT (262 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  220|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  211|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1638|      0|            "unsupported ML-KEM key type: %d", evp_type);
 1639|      0|        return NULL;
 1640|      0|    }
 1641|       |
 1642|    342|    if ((key = OPENSSL_malloc(sizeof(*key))) == NULL)
  ------------------
  |  |  107|    342|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (1642:9): [True: 0, False: 342]
  ------------------
 1643|      0|        return NULL;
 1644|       |
 1645|    342|    key->vinfo = vinfo;
 1646|    342|    key->libctx = libctx;
 1647|    342|    key->prov_flags = ML_KEM_KEY_PROV_FLAGS_DEFAULT;
  ------------------
  |  |  132|    342|    (ML_KEM_KEY_RANDOM_PCT | ML_KEM_KEY_PREFER_SEED | ML_KEM_KEY_RETAIN_SEED)
  |  |  ------------------
  |  |  |  |  123|    342|#define ML_KEM_KEY_RANDOM_PCT (1 << 0)
  |  |  ------------------
  |  |                   (ML_KEM_KEY_RANDOM_PCT | ML_KEM_KEY_PREFER_SEED | ML_KEM_KEY_RETAIN_SEED)
  |  |  ------------------
  |  |  |  |  125|    342|#define ML_KEM_KEY_PREFER_SEED (1 << 2)
  |  |  ------------------
  |  |                   (ML_KEM_KEY_RANDOM_PCT | ML_KEM_KEY_PREFER_SEED | ML_KEM_KEY_RETAIN_SEED)
  |  |  ------------------
  |  |  |  |  126|    342|#define ML_KEM_KEY_RETAIN_SEED (1 << 3)
  |  |  ------------------
  ------------------
 1648|    342|    key->shake128_md = EVP_MD_fetch(libctx, "SHAKE128", properties);
 1649|    342|    key->shake256_md = EVP_MD_fetch(libctx, "SHAKE256", properties);
 1650|    342|    key->sha3_256_md = EVP_MD_fetch(libctx, "SHA3-256", properties);
 1651|    342|    key->sha3_512_md = EVP_MD_fetch(libctx, "SHA3-512", properties);
 1652|    342|    key->d = key->z = key->rho = key->pkhash = key->encoded_dk = key->seedbuf = NULL;
 1653|    342|    key->s = key->m = key->t = NULL;
 1654|       |
 1655|    342|    if (key->shake128_md != NULL
  ------------------
  |  Branch (1655:9): [True: 342, False: 0]
  ------------------
 1656|    342|        && key->shake256_md != NULL
  ------------------
  |  Branch (1656:12): [True: 342, False: 0]
  ------------------
 1657|    342|        && key->sha3_256_md != NULL
  ------------------
  |  Branch (1657:12): [True: 342, False: 0]
  ------------------
 1658|    342|        && key->sha3_512_md != NULL)
  ------------------
  |  Branch (1658:12): [True: 342, False: 0]
  ------------------
 1659|    342|        return key;
 1660|       |
 1661|      0|    ossl_ml_kem_key_free(key);
 1662|      0|    ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                  ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |   68|      0|#define ERR_LIB_CRYPTO 15
  ------------------
                  ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  308|      0|#define ERR_R_INTERNAL_ERROR (259 | ERR_R_FATAL)
  |  |  ------------------
  |  |  |  |  304|      0|#define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  219|      0|#define ERR_RFLAG_FATAL (0x1 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  211|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  220|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  211|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1663|      0|        "missing SHA3 digest algorithms while creating %s key",
 1664|      0|        vinfo->algorithm_name);
 1665|       |    return NULL;
 1666|    342|}
ossl_ml_kem_key_free:
 1734|    342|{
 1735|    342|    if (key == NULL)
  ------------------
  |  Branch (1735:9): [True: 0, False: 342]
  ------------------
 1736|      0|        return;
 1737|       |
 1738|    342|    EVP_MD_free(key->shake128_md);
 1739|    342|    EVP_MD_free(key->shake256_md);
 1740|    342|    EVP_MD_free(key->sha3_256_md);
 1741|    342|    EVP_MD_free(key->sha3_512_md);
 1742|       |
 1743|    342|    ossl_ml_kem_key_reset(key);
 1744|    342|    OPENSSL_free(key);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1745|    342|}
ossl_ml_kem_encode_public_key:
 1750|    342|{
 1751|    342|    if (!ossl_ml_kem_have_pubkey(key)
  ------------------
  |  |  207|    684|#define ossl_ml_kem_have_pubkey(key) ((key)->t != NULL)
  ------------------
  |  Branch (1751:9): [True: 0, False: 342]
  ------------------
 1752|    342|        || len != key->vinfo->pubkey_bytes)
  ------------------
  |  Branch (1752:12): [True: 0, False: 342]
  ------------------
 1753|      0|        return 0;
 1754|    342|    encode_pubkey(out, key);
 1755|    342|    return 1;
 1756|    342|}
ossl_ml_kem_genkey:
 1872|    342|{
 1873|    342|    uint8_t seed[ML_KEM_SEED_BYTES];
 1874|    342|    EVP_MD_CTX *mdctx = NULL;
 1875|    342|    const ML_KEM_VINFO *vinfo;
 1876|    342|    int ret = 0;
 1877|       |
 1878|    342|    if (key == NULL
  ------------------
  |  Branch (1878:9): [True: 0, False: 342]
  ------------------
 1879|    342|        || ossl_ml_kem_have_pubkey(key)
  ------------------
  |  |  207|    684|#define ossl_ml_kem_have_pubkey(key) ((key)->t != NULL)
  |  |  ------------------
  |  |  |  Branch (207:38): [True: 0, False: 342]
  |  |  ------------------
  ------------------
 1880|    342|        || ossl_ml_kem_have_dkenc(key))
  ------------------
  |  |  210|    342|#define ossl_ml_kem_have_dkenc(key) ((key)->encoded_dk != NULL)
  |  |  ------------------
  |  |  |  Branch (210:37): [True: 0, False: 342]
  |  |  ------------------
  ------------------
 1881|      0|        return 0;
 1882|    342|    vinfo = key->vinfo;
 1883|       |
 1884|    342|    if (pubenc != NULL && publen != vinfo->pubkey_bytes)
  ------------------
  |  Branch (1884:9): [True: 0, False: 342]
  |  Branch (1884:27): [True: 0, False: 0]
  ------------------
 1885|      0|        return 0;
 1886|       |
 1887|    342|    if (key->seedbuf != NULL) {
  ------------------
  |  Branch (1887:9): [True: 0, False: 342]
  ------------------
 1888|      0|        if (!ossl_ml_kem_encode_seed(seed, sizeof(seed), key))
  ------------------
  |  Branch (1888:13): [True: 0, False: 0]
  ------------------
 1889|      0|            return 0;
 1890|      0|        ossl_ml_kem_key_reset(key);
 1891|    342|    } else if (RAND_priv_bytes_ex(key->libctx, seed, sizeof(seed),
  ------------------
  |  Branch (1891:16): [True: 0, False: 342]
  ------------------
 1892|    342|                   key->vinfo->secbits)
 1893|    342|        <= 0) {
 1894|      0|        return 0;
 1895|      0|    }
 1896|       |
 1897|    342|    if ((mdctx = EVP_MD_CTX_new()) == NULL)
  ------------------
  |  Branch (1897:9): [True: 0, False: 342]
  ------------------
 1898|      0|        return 0;
 1899|       |
 1900|       |    /*
 1901|       |     * Data derived from (d, z) defaults secret, and to avoid side-channel
 1902|       |     * leaks should not influence control flow.
 1903|       |     */
 1904|    342|    CONSTTIME_SECRET(seed, ML_KEM_SEED_BYTES);
 1905|       |
 1906|    342|    if (add_storage(OPENSSL_malloc(vinfo->puballoc),
  ------------------
  |  |  107|    342|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (1906:9): [True: 342, False: 0]
  ------------------
 1907|    342|            OPENSSL_secure_malloc(vinfo->prvalloc), 1, key))
  ------------------
  |  |  140|    342|    CRYPTO_secure_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1908|    342|        ret = genkey(seed, mdctx, pubenc, key);
 1909|    342|    OPENSSL_cleanse(seed, sizeof(seed));
 1910|       |
 1911|       |    /* Declassify secret inputs and derived outputs before returning control */
 1912|    342|    CONSTTIME_DECLASSIFY(seed, ML_KEM_SEED_BYTES);
 1913|       |
 1914|    342|    EVP_MD_CTX_free(mdctx);
 1915|    342|    if (!ret) {
  ------------------
  |  Branch (1915:9): [True: 0, False: 342]
  ------------------
 1916|      0|        ossl_ml_kem_key_reset(key);
 1917|      0|        return 0;
 1918|      0|    }
 1919|       |
 1920|       |    /* The public components are already declassified */
 1921|    342|    CONSTTIME_DECLASSIFY(key->s, vinfo->rank * sizeof(scalar));
 1922|    342|    CONSTTIME_DECLASSIFY(key->z, 2 * ML_KEM_RANDOM_BYTES);
 1923|    342|    return 1;
 1924|    342|}
ml_kem.c:add_storage:
 1543|    342|{
 1544|    342|    int rank = key->vinfo->rank;
 1545|       |
 1546|    342|    if (pub == NULL || (private && priv == NULL)) {
  ------------------
  |  Branch (1546:9): [True: 0, False: 342]
  |  Branch (1546:25): [True: 342, False: 0]
  |  Branch (1546:36): [True: 0, False: 342]
  ------------------
 1547|       |        /*
 1548|       |         * One of these could be allocated correctly. It is legal to call free with a NULL
 1549|       |         * pointer, so always attempt to free both allocations here
 1550|       |         */
 1551|      0|        OPENSSL_free(pub);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1552|      0|        OPENSSL_secure_free(priv);
  ------------------
  |  |  148|      0|    CRYPTO_secure_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1553|      0|        return 0;
 1554|      0|    }
 1555|       |
 1556|       |    /*
 1557|       |     * We're adding key material, set up rho and pkhash to point to the rho_pkhash buffer
 1558|       |     */
 1559|    342|    memset(key->rho_pkhash, 0, sizeof(key->rho_pkhash));
 1560|    342|    key->rho = key->rho_pkhash;
 1561|    342|    key->pkhash = key->rho_pkhash + ML_KEM_RANDOM_BYTES;
  ------------------
  |  |   47|    342|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1562|    342|    key->d = key->z = NULL;
 1563|       |
 1564|       |    /* A public key needs space for |t| and |m| */
 1565|    342|    key->m = (key->t = pub) + rank;
 1566|       |
 1567|       |    /*
 1568|       |     * A private key also needs space for |s| and |z|.
 1569|       |     * The |z| buffer always includes additional space for |d|, but a key's |d|
 1570|       |     * pointer is left NULL when parsed from the NIST format, which omits that
 1571|       |     * information.  Only keys generated from a (d, z) seed pair will have a
 1572|       |     * non-NULL |d| pointer.
 1573|       |     */
 1574|    342|    if (private)
  ------------------
  |  Branch (1574:9): [True: 342, False: 0]
  ------------------
 1575|    342|        key->z = (uint8_t *)(rank + (key->s = priv));
 1576|    342|    return 1;
 1577|    342|}
ml_kem.c:encode_pubkey:
 1232|    342|{
 1233|    342|    const uint8_t *rho = key->rho;
 1234|    342|    const ML_KEM_VINFO *vinfo = key->vinfo;
 1235|       |
 1236|    342|    vector_encode(out, key->t, 12, vinfo->rank);
 1237|    342|    memcpy(out + vinfo->vector_bytes, rho, ML_KEM_RANDOM_BYTES);
  ------------------
  |  |   47|    342|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1238|    342|}
ml_kem.c:vector_encode:
  885|    342|{
  886|    342|    int stride = bits * DEGREE / 8;
  ------------------
  |  |   41|    342|#define DEGREE ML_KEM_DEGREE
  |  |  ------------------
  |  |  |  |   19|    342|#define ML_KEM_DEGREE 256
  |  |  ------------------
  ------------------
  887|       |
  888|  1.36k|    for (; rank-- > 0; out += stride)
  ------------------
  |  Branch (888:12): [True: 1.02k, False: 342]
  ------------------
  889|  1.02k|        scalar_encode(out, a++, bits);
  890|    342|}
ml_kem.c:scalar_encode:
  637|  2.05k|{
  638|  2.05k|    const uint16_t *curr = s->c, *end = curr + DEGREE;
  ------------------
  |  |   41|  2.05k|#define DEGREE ML_KEM_DEGREE
  |  |  ------------------
  |  |  |  |   19|  2.05k|#define ML_KEM_DEGREE 256
  |  |  ------------------
  ------------------
  639|  2.05k|    uint64_t accum = 0, element;
  640|  2.05k|    int used = 0;
  641|       |
  642|   525k|    do {
  643|   525k|        element = *curr++;
  644|   525k|        if (used + bits < 64) {
  ------------------
  |  Branch (644:13): [True: 426k, False: 98.4k]
  ------------------
  645|   426k|            accum |= element << used;
  646|   426k|            used += bits;
  647|   426k|        } else if (used + bits > 64) {
  ------------------
  |  Branch (647:20): [True: 65.6k, False: 32.8k]
  ------------------
  648|  65.6k|            out = OPENSSL_store_u64_le(out, accum | (element << used));
  649|  65.6k|            accum = element >> (64 - used);
  650|  65.6k|            used = (used + bits) - 64;
  651|  65.6k|        } else {
  652|  32.8k|            out = OPENSSL_store_u64_le(out, accum | (element << used));
  653|  32.8k|            accum = 0;
  654|  32.8k|            used = 0;
  655|  32.8k|        }
  656|   525k|    } while (curr < end);
  ------------------
  |  Branch (656:14): [True: 523k, False: 2.05k]
  ------------------
  657|  2.05k|}
ml_kem.c:single_keccak:
  336|  2.39k|{
  337|  2.39k|    unsigned int sz = (unsigned int)outlen;
  338|       |
  339|  2.39k|    if (!EVP_DigestUpdate(mdctx, in, inlen))
  ------------------
  |  Branch (339:9): [True: 0, False: 2.39k]
  ------------------
  340|      0|        return 0;
  341|  2.39k|    if (EVP_MD_xof(EVP_MD_CTX_get0_md(mdctx)))
  ------------------
  |  Branch (341:9): [True: 2.05k, False: 342]
  ------------------
  342|  2.05k|        return EVP_DigestFinalXOF(mdctx, out, outlen);
  343|    342|    return EVP_DigestFinal_ex(mdctx, out, &sz)
  ------------------
  |  Branch (343:12): [True: 342, False: 0]
  ------------------
  344|    342|        && ossl_assert((size_t)sz == outlen);
  ------------------
  |  |   52|    342|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  ------------------
  |  |  |  Branch (52:24): [True: 342, False: 0]
  |  |  ------------------
  |  |   53|    342|    __FILE__, __LINE__)
  ------------------
  345|  2.39k|}
ml_kem.c:matrix_expand:
  981|    342|{
  982|    342|    scalar *out = key->m;
  983|    342|    uint8_t input[ML_KEM_RANDOM_BYTES + 2];
  984|    342|    int rank = key->vinfo->rank;
  985|    342|    int i, j;
  986|       |
  987|    342|    memcpy(input, key->rho, ML_KEM_RANDOM_BYTES);
  ------------------
  |  |   47|    342|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
  988|  1.36k|    for (i = 0; i < rank; i++) {
  ------------------
  |  Branch (988:17): [True: 1.02k, False: 342]
  ------------------
  989|  4.10k|        for (j = 0; j < rank; j++) {
  ------------------
  |  Branch (989:21): [True: 3.07k, False: 1.02k]
  ------------------
  990|  3.07k|            input[ML_KEM_RANDOM_BYTES] = i;
  ------------------
  |  |   47|  3.07k|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
  991|  3.07k|            input[ML_KEM_RANDOM_BYTES + 1] = j;
  ------------------
  |  |   47|  3.07k|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
  992|  3.07k|            if (!EVP_DigestInit_ex(mdctx, key->shake128_md, NULL)
  ------------------
  |  Branch (992:17): [True: 0, False: 3.07k]
  ------------------
  993|  3.07k|                || !EVP_DigestUpdate(mdctx, input, sizeof(input))
  ------------------
  |  Branch (993:20): [True: 0, False: 3.07k]
  ------------------
  994|  3.07k|                || !sample_scalar(out++, mdctx))
  ------------------
  |  Branch (994:20): [True: 0, False: 3.07k]
  ------------------
  995|      0|                return 0;
  996|  3.07k|        }
  997|  1.02k|    }
  998|    342|    return 1;
  999|    342|}
ml_kem.c:sample_scalar:
  431|  3.07k|{
  432|  3.07k|    uint16_t *curr = out->c, *endout = curr + DEGREE;
  ------------------
  |  |   41|  3.07k|#define DEGREE ML_KEM_DEGREE
  |  |  ------------------
  |  |  |  |   19|  3.07k|#define ML_KEM_DEGREE 256
  |  |  ------------------
  ------------------
  433|  3.07k|    uint8_t buf[SCALAR_SAMPLING_BUFSIZE], *in;
  434|  3.07k|    uint8_t *endin = buf + sizeof(buf);
  435|  3.07k|    uint16_t d;
  436|  3.07k|    uint8_t b1, b2, b3;
  437|       |
  438|  9.25k|    do {
  439|  9.25k|        if (!EVP_DigestSqueeze(mdctx, in = buf, sizeof(buf)))
  ------------------
  |  Branch (439:13): [True: 0, False: 9.25k]
  ------------------
  440|      0|            return 0;
  441|   487k|        do {
  442|   487k|            b1 = *in++;
  443|   487k|            b2 = *in++;
  444|   487k|            b3 = *in++;
  445|       |
  446|   487k|            if (curr >= endout)
  ------------------
  |  Branch (446:17): [True: 1.54k, False: 485k]
  ------------------
  447|  1.54k|                break;
  448|   485k|            if ((d = ((b2 & 0x0f) << 8) + b1) < kPrime)
  ------------------
  |  Branch (448:17): [True: 394k, False: 91.2k]
  ------------------
  449|   394k|                *curr++ = d;
  450|   485k|            if (curr >= endout)
  ------------------
  |  Branch (450:17): [True: 1.53k, False: 484k]
  ------------------
  451|  1.53k|                break;
  452|   484k|            if ((d = (b3 << 4) + (b2 >> 4)) < kPrime)
  ------------------
  |  Branch (452:17): [True: 393k, False: 90.7k]
  ------------------
  453|   393k|                *curr++ = d;
  454|   484k|        } while (in < endin);
  ------------------
  |  Branch (454:18): [True: 478k, False: 6.18k]
  ------------------
  455|  9.25k|    } while (curr < endout);
  ------------------
  |  Branch (455:14): [True: 6.18k, False: 3.07k]
  ------------------
  456|  3.07k|    return 1;
  457|  3.07k|}
ml_kem.c:genkey:
 1357|    342|{
 1358|    342|    uint8_t hashed[2 * ML_KEM_RANDOM_BYTES];
 1359|    342|    const uint8_t *const sigma = hashed + ML_KEM_RANDOM_BYTES;
  ------------------
  |  |   47|    342|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1360|    342|    uint8_t augmented_seed[ML_KEM_RANDOM_BYTES + 1];
 1361|    342|    const ML_KEM_VINFO *vinfo = key->vinfo;
 1362|    342|    CBD_FUNC cbd_1 = CBD1(vinfo->evp_type);
  ------------------
  |  | 1134|    342|#define CBD1(evp_type) ((evp_type) == EVP_PKEY_ML_KEM_512 ? cbd_3 : cbd_2)
  |  |  ------------------
  |  |  |  |   93|    342|#define EVP_PKEY_ML_KEM_512 NID_ML_KEM_512
  |  |  |  |  ------------------
  |  |  |  |  |  | 6640|    342|#define NID_ML_KEM_512          1454
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (1134:25): [True: 0, False: 342]
  |  |  ------------------
  ------------------
 1363|    342|    int rank = vinfo->rank;
 1364|    342|    uint8_t counter = 0;
 1365|    342|    int ret = 0;
 1366|       |
 1367|       |    /*
 1368|       |     * Use the "d" seed salted with the rank to derive the public and private
 1369|       |     * seeds rho and sigma.
 1370|       |     */
 1371|    342|    memcpy(augmented_seed, seed, ML_KEM_RANDOM_BYTES);
  ------------------
  |  |   47|    342|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1372|    342|    augmented_seed[ML_KEM_RANDOM_BYTES] = (uint8_t)rank;
  ------------------
  |  |   47|    342|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1373|    342|    if (!hash_g(hashed, augmented_seed, sizeof(augmented_seed), mdctx, key))
  ------------------
  |  Branch (1373:9): [True: 0, False: 342]
  ------------------
 1374|      0|        goto end;
 1375|    342|    memcpy(key->rho, hashed, ML_KEM_RANDOM_BYTES);
  ------------------
  |  |   47|    342|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1376|       |    /* The |rho| matrix seed is public */
 1377|    342|    CONSTTIME_DECLASSIFY(key->rho, ML_KEM_RANDOM_BYTES);
 1378|       |
 1379|       |    /* FIPS 203 |e| vector is initial value of key->t */
 1380|    342|    if (!matrix_expand(mdctx, key)
  ------------------
  |  Branch (1380:9): [True: 0, False: 342]
  ------------------
 1381|    342|        || !gencbd_vector_ntt(key->s, cbd_1, &counter, sigma, rank, mdctx, key)
  ------------------
  |  Branch (1381:12): [True: 0, False: 342]
  ------------------
 1382|    342|        || !gencbd_vector_ntt(key->t, cbd_1, &counter, sigma, rank, mdctx, key))
  ------------------
  |  Branch (1382:12): [True: 0, False: 342]
  ------------------
 1383|      0|        goto end;
 1384|       |
 1385|       |    /* To |e| we now add the product of transpose |m| and |s|, giving |t|. */
 1386|    342|    matrix_mult_transpose_add(key->t, key->m, key->s, rank);
 1387|       |    /* The |t| vector is public */
 1388|    342|    CONSTTIME_DECLASSIFY(key->t, vinfo->rank * sizeof(scalar));
 1389|       |
 1390|    342|    if (pubenc == NULL) {
  ------------------
  |  Branch (1390:9): [True: 342, False: 0]
  ------------------
 1391|       |        /* Incremental digest of public key without in-full serialisation. */
 1392|    342|        if (!hash_h_pubkey(key->pkhash, mdctx, key))
  ------------------
  |  Branch (1392:13): [True: 0, False: 342]
  ------------------
 1393|      0|            goto end;
 1394|    342|    } else {
 1395|      0|        encode_pubkey(pubenc, key);
 1396|      0|        if (!hash_h(key->pkhash, pubenc, vinfo->pubkey_bytes, mdctx, key))
  ------------------
  |  Branch (1396:13): [True: 0, False: 0]
  ------------------
 1397|      0|            goto end;
 1398|      0|    }
 1399|       |
 1400|       |    /* Save |z| portion of seed for "implicit rejection" on failure. */
 1401|    342|    memcpy(key->z, seed + ML_KEM_RANDOM_BYTES, ML_KEM_RANDOM_BYTES);
  ------------------
  |  |   47|    342|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
                  memcpy(key->z, seed + ML_KEM_RANDOM_BYTES, ML_KEM_RANDOM_BYTES);
  ------------------
  |  |   47|    342|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1402|       |
 1403|       |    /* Save the |d| portion of the seed */
 1404|    342|    key->d = key->z + ML_KEM_RANDOM_BYTES;
  ------------------
  |  |   47|    342|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1405|    342|    memcpy(key->d, seed, ML_KEM_RANDOM_BYTES);
  ------------------
  |  |   47|    342|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1406|       |
 1407|    342|    ret = 1;
 1408|    342|end:
 1409|    342|    OPENSSL_cleanse((void *)augmented_seed, ML_KEM_RANDOM_BYTES);
  ------------------
  |  |   47|    342|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1410|    342|    OPENSSL_cleanse((void *)sigma, ML_KEM_RANDOM_BYTES);
  ------------------
  |  |   47|    342|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1411|    342|    if (ret == 0) {
  ------------------
  |  Branch (1411:9): [True: 0, False: 342]
  ------------------
 1412|      0|        ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |   68|      0|#define ERR_LIB_CRYPTO 15
  ------------------
                      ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  308|      0|#define ERR_R_INTERNAL_ERROR (259 | ERR_R_FATAL)
  |  |  ------------------
  |  |  |  |  304|      0|#define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  219|      0|#define ERR_RFLAG_FATAL (0x1 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  211|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  220|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  211|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1413|      0|            "internal error while generating %s private key",
 1414|      0|            vinfo->algorithm_name);
 1415|      0|    }
 1416|    342|    return ret;
 1417|    342|}
ml_kem.c:prf:
  353|  2.05k|{
  354|  2.05k|    return EVP_DigestInit_ex(mdctx, key->shake256_md, NULL)
  ------------------
  |  Branch (354:12): [True: 2.05k, False: 0]
  ------------------
  355|  2.05k|        && single_keccak(out, len, in, ML_KEM_RANDOM_BYTES + 1, mdctx);
  ------------------
  |  |   47|  2.05k|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
  |  Branch (355:12): [True: 2.05k, False: 0]
  ------------------
  356|  2.05k|}
ml_kem.c:cbd_2:
 1011|  2.05k|{
 1012|  2.05k|    uint16_t *curr = out->c, *end = curr + DEGREE;
  ------------------
  |  |   41|  2.05k|#define DEGREE ML_KEM_DEGREE
  |  |  ------------------
  |  |  |  |   19|  2.05k|#define ML_KEM_DEGREE 256
  |  |  ------------------
  ------------------
 1013|  2.05k|    uint8_t randbuf[4 * DEGREE / 8], *r = randbuf; /* 64 * eta slots */
 1014|  2.05k|    uint16_t value, mask;
 1015|  2.05k|    uint8_t b;
 1016|       |
 1017|  2.05k|    if (!prf(randbuf, sizeof(randbuf), in, mdctx, key))
  ------------------
  |  Branch (1017:9): [True: 0, False: 2.05k]
  ------------------
 1018|      0|        return 0;
 1019|       |
 1020|   262k|    do {
 1021|   262k|        b = *r++;
 1022|       |
 1023|       |        /*
 1024|       |         * Add |kPrime| if |value| underflowed.  See |constish_time_non_zero|
 1025|       |         * for a discussion on why the value barrier is by default omitted.
 1026|       |         * While this could have been written reduce_once(value + kPrime), this
 1027|       |         * is one extra addition and small range of |value| tempts some
 1028|       |         * versions of Clang to emit a branch.
 1029|       |         */
 1030|   262k|        value = bit0(b) + bitn(1, b);
  ------------------
  |  |   34|   262k|#define bit0(b) ((b) & 1)
  ------------------
                      value = bit0(b) + bitn(1, b);
  ------------------
  |  |   35|   262k|#define bitn(n, b) (((b) >> n) & 1)
  ------------------
 1031|   262k|        value -= bitn(2, b) + bitn(3, b);
  ------------------
  |  |   35|   262k|#define bitn(n, b) (((b) >> n) & 1)
  ------------------
                      value -= bitn(2, b) + bitn(3, b);
  ------------------
  |  |   35|   262k|#define bitn(n, b) (((b) >> n) & 1)
  ------------------
 1032|   262k|        mask = constish_time_non_zero(value >> 15);
  ------------------
  |  |   70|   262k|#define constish_time_non_zero(b) (0u - (b))
  ------------------
 1033|   262k|        *curr++ = value + (kPrime & mask);
 1034|       |
 1035|   262k|        value = bitn(4, b) + bitn(5, b);
  ------------------
  |  |   35|   262k|#define bitn(n, b) (((b) >> n) & 1)
  ------------------
                      value = bitn(4, b) + bitn(5, b);
  ------------------
  |  |   35|   262k|#define bitn(n, b) (((b) >> n) & 1)
  ------------------
 1036|   262k|        value -= bitn(6, b) + bitn(7, b);
  ------------------
  |  |   35|   262k|#define bitn(n, b) (((b) >> n) & 1)
  ------------------
                      value -= bitn(6, b) + bitn(7, b);
  ------------------
  |  |   35|   262k|#define bitn(n, b) (((b) >> n) & 1)
  ------------------
 1037|   262k|        mask = constish_time_non_zero(value >> 15);
  ------------------
  |  |   70|   262k|#define constish_time_non_zero(b) (0u - (b))
  ------------------
 1038|   262k|        *curr++ = value + (kPrime & mask);
 1039|   262k|    } while (curr < end);
  ------------------
  |  Branch (1039:14): [True: 260k, False: 2.05k]
  ------------------
 1040|  2.05k|    return 1;
 1041|  2.05k|}
ml_kem.c:hash_g:
  402|    342|{
  403|    342|    return EVP_DigestInit_ex(mdctx, key->sha3_512_md, NULL)
  ------------------
  |  Branch (403:12): [True: 342, False: 0]
  ------------------
  404|    342|        && single_keccak(out, ML_KEM_SEED_BYTES, in, len, mdctx);
  ------------------
  |  |   48|    342|#define ML_KEM_SEED_BYTES (ML_KEM_RANDOM_BYTES * 2) /* Keygen (d, z) */
  |  |  ------------------
  |  |  |  |   47|    342|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  |  |  ------------------
  ------------------
  |  Branch (404:12): [True: 342, False: 0]
  ------------------
  405|    342|}
ml_kem.c:gencbd_vector_ntt:
 1120|    684|{
 1121|    684|    uint8_t input[ML_KEM_RANDOM_BYTES + 1];
 1122|       |
 1123|    684|    memcpy(input, seed, ML_KEM_RANDOM_BYTES);
  ------------------
  |  |   47|    684|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1124|  2.05k|    do {
 1125|  2.05k|        input[ML_KEM_RANDOM_BYTES] = (*counter)++;
  ------------------
  |  |   47|  2.05k|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
 1126|  2.05k|        if (!cbd(out, input, mdctx, key))
  ------------------
  |  Branch (1126:13): [True: 0, False: 2.05k]
  ------------------
 1127|      0|            return 0;
 1128|  2.05k|        scalar_ntt(out++);
 1129|  2.05k|    } while (--rank > 0);
  ------------------
  |  Branch (1129:14): [True: 1.36k, False: 684]
  ------------------
 1130|    684|    return 1;
 1131|    684|}
ml_kem.c:scalar_ntt:
  510|  2.05k|{
  511|  2.05k|    const uint16_t *roots = kNTTRoots;
  512|  2.05k|    uint16_t *end = s->c + DEGREE;
  ------------------
  |  |   41|  2.05k|#define DEGREE ML_KEM_DEGREE
  |  |  ------------------
  |  |  |  |   19|  2.05k|#define ML_KEM_DEGREE 256
  |  |  ------------------
  ------------------
  513|  2.05k|    int offset = DEGREE / 2;
  ------------------
  |  |   41|  2.05k|#define DEGREE ML_KEM_DEGREE
  |  |  ------------------
  |  |  |  |   19|  2.05k|#define ML_KEM_DEGREE 256
  |  |  ------------------
  ------------------
  514|       |
  515|  14.3k|    do {
  516|  14.3k|        uint16_t *curr = s->c, *peer;
  517|       |
  518|   260k|        do {
  519|   260k|            uint16_t *pause = curr + offset, even, odd;
  520|   260k|            uint32_t zeta = *++roots;
  521|       |
  522|   260k|            peer = pause;
  523|  1.83M|            do {
  524|  1.83M|                even = *curr;
  525|  1.83M|                odd = reduce(*peer * zeta);
  526|  1.83M|                *peer++ = reduce_once(even - odd + kPrime);
  527|  1.83M|                *curr++ = reduce_once(odd + even);
  528|  1.83M|            } while (curr < pause);
  ------------------
  |  Branch (528:22): [True: 1.57M, False: 260k]
  ------------------
  529|   260k|        } while ((curr = peer) < end);
  ------------------
  |  Branch (529:18): [True: 246k, False: 14.3k]
  ------------------
  530|  14.3k|    } while ((offset >>= 1) >= 2);
  ------------------
  |  Branch (530:14): [True: 12.3k, False: 2.05k]
  ------------------
  531|  2.05k|}
ml_kem.c:reduce:
  481|  3.02M|{
  482|  3.02M|    uint64_t product = (uint64_t)x * kBarrettMultiplier;
  483|  3.02M|    uint32_t quotient = (uint32_t)(product >> kBarrettShift);
  484|  3.02M|    uint32_t remainder = x - quotient * kPrime;
  485|       |
  486|  3.02M|    return reduce_once(remainder);
  487|  3.02M|}
ml_kem.c:reduce_once:
  467|  6.69M|{
  468|  6.69M|    const uint16_t subtracted = x - kPrime;
  469|  6.69M|    uint16_t mask = constish_time_non_zero(subtracted >> 15);
  ------------------
  |  |   70|  6.69M|#define constish_time_non_zero(b) (0u - (b))
  ------------------
  470|       |
  471|  6.69M|    return (mask & x) | (~mask & subtracted);
  472|  6.69M|}
ml_kem.c:matrix_mult_transpose_add:
  962|    342|{
  963|    342|    const scalar *mc = m, *mr, *ar;
  964|    342|    int i, j;
  965|       |
  966|  1.36k|    for (i = rank; i-- > 0; ++out) {
  ------------------
  |  Branch (966:20): [True: 1.02k, False: 342]
  ------------------
  967|  1.02k|        scalar_mult_add(out, mr = mc++, ar = a);
  968|  3.07k|        for (j = rank; --j > 0;)
  ------------------
  |  Branch (968:24): [True: 2.05k, False: 1.02k]
  ------------------
  969|  2.05k|            scalar_mult_add(out, (mr += rank), ++ar);
  970|  1.02k|    }
  971|    342|}
ml_kem.c:scalar_mult_add:
  615|  3.07k|{
  616|  3.07k|    uint16_t *curr = out->c, *end = curr + DEGREE;
  ------------------
  |  |   41|  3.07k|#define DEGREE ML_KEM_DEGREE
  |  |  ------------------
  |  |  |  |   19|  3.07k|#define ML_KEM_DEGREE 256
  |  |  ------------------
  ------------------
  617|  3.07k|    const uint16_t *lc = lhs->c, *rc = rhs->c;
  618|  3.07k|    const uint16_t *roots = kModRoots;
  619|       |
  620|   393k|    do {
  621|   393k|        uint32_t l0 = *lc++, r0 = *rc++;
  622|   393k|        uint32_t l1 = *lc++, r1 = *rc++;
  623|   393k|        uint16_t *c0 = curr++;
  624|   393k|        uint16_t *c1 = curr++;
  625|   393k|        uint32_t zetapow = *roots++;
  626|       |
  627|   393k|        *c0 = reduce(*c0 + l0 * r0 + reduce(l1 * r1) * zetapow);
  628|   393k|        *c1 = reduce(*c1 + l0 * r1 + l1 * r0);
  629|   393k|    } while (curr < end);
  ------------------
  |  Branch (629:14): [True: 390k, False: 3.07k]
  ------------------
  630|  3.07k|}
ml_kem.c:hash_h_pubkey:
  373|    342|{
  374|    342|    const ML_KEM_VINFO *vinfo = key->vinfo;
  375|    342|    const scalar *t = key->t, *end = t + vinfo->rank;
  376|    342|    unsigned int sz;
  377|       |
  378|    342|    if (!EVP_DigestInit_ex(mdctx, key->sha3_256_md, NULL))
  ------------------
  |  Branch (378:9): [True: 0, False: 342]
  ------------------
  379|      0|        return 0;
  380|       |
  381|  1.02k|    do {
  382|  1.02k|        uint8_t buf[3 * DEGREE / 2];
  383|       |
  384|  1.02k|        scalar_encode(buf, t++, 12);
  385|  1.02k|        if (!EVP_DigestUpdate(mdctx, buf, sizeof(buf)))
  ------------------
  |  Branch (385:13): [True: 0, False: 1.02k]
  ------------------
  386|      0|            return 0;
  387|  1.02k|    } while (t < end);
  ------------------
  |  Branch (387:14): [True: 684, False: 342]
  ------------------
  388|       |
  389|    342|    if (!EVP_DigestUpdate(mdctx, key->rho, ML_KEM_RANDOM_BYTES))
  ------------------
  |  |   47|    342|#define ML_KEM_RANDOM_BYTES 32 /* rho, sigma, ... */
  ------------------
  |  Branch (389:9): [True: 0, False: 342]
  ------------------
  390|      0|        return 0;
  391|    342|    return EVP_DigestFinal_ex(mdctx, pkhash, &sz)
  ------------------
  |  Branch (391:12): [True: 342, False: 0]
  ------------------
  392|    342|        && ossl_assert(sz == ML_KEM_PKHASH_BYTES);
  ------------------
  |  |   52|    342|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  ------------------
  |  |  |  Branch (52:24): [True: 342, False: 0]
  |  |  ------------------
  |  |   53|    342|    __FILE__, __LINE__)
  ------------------
  393|    342|}

CRYPTO_ctr128_encrypt_ctr32:
  155|  11.1k|{
  156|  11.1k|    unsigned int n, ctr32;
  157|       |
  158|  11.1k|    n = *num;
  159|       |
  160|  11.1k|    while (n && len) {
  ------------------
  |  Branch (160:12): [True: 0, False: 11.1k]
  |  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|  11.1k|    ctr32 = GETU32(ivec + 12);
  ------------------
  |  |   98|  11.1k|#define GETU32(p) ((u32)(p)[0] << 24 | (u32)(p)[1] << 16 | (u32)(p)[2] << 8 | (u32)(p)[3])
  ------------------
  167|  14.2k|    while (len >= 16) {
  ------------------
  |  Branch (167:12): [True: 3.10k, False: 11.1k]
  ------------------
  168|  3.10k|        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|  3.10k|        if (sizeof(size_t) > sizeof(unsigned int) && blocks > (1U << 28))
  ------------------
  |  Branch (174:13): [True: 3.10k, Folded]
  |  Branch (174:54): [True: 0, False: 3.10k]
  ------------------
  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|  3.10k|        ctr32 += (u32)blocks;
  183|  3.10k|        if (ctr32 < blocks) {
  ------------------
  |  Branch (183:13): [True: 0, False: 3.10k]
  ------------------
  184|      0|            blocks -= ctr32;
  185|      0|            ctr32 = 0;
  186|      0|        }
  187|  3.10k|        (*func)(in, out, blocks, key, ivec);
  188|       |        /* (*ctr) does not update ivec, caller does: */
  189|  3.10k|        PUTU32(ivec + 12, ctr32);
  ------------------
  |  |   99|  3.10k|#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|  3.10k|        if (ctr32 == 0)
  ------------------
  |  Branch (191:13): [True: 0, False: 3.10k]
  ------------------
  192|      0|            ctr96_inc(ivec);
  193|  3.10k|        blocks *= 16;
  194|  3.10k|        len -= blocks;
  195|  3.10k|        out += blocks;
  196|  3.10k|        in += blocks;
  197|  3.10k|    }
  198|  11.1k|    if (len) {
  ------------------
  |  Branch (198:9): [True: 8.03k, False: 3.10k]
  ------------------
  199|  8.03k|        memset(ecount_buf, 0, 16);
  200|  8.03k|        (*func)(ecount_buf, ecount_buf, 1, key, ivec);
  201|  8.03k|        ++ctr32;
  202|  8.03k|        PUTU32(ivec + 12, ctr32);
  ------------------
  |  |   99|  8.03k|#define PUTU32(p, v) ((p)[0] = (u8)((v) >> 24), (p)[1] = (u8)((v) >> 16), (p)[2] = (u8)((v) >> 8), (p)[3] = (u8)(v))
  ------------------
  203|  8.03k|        if (ctr32 == 0)
  ------------------
  |  Branch (203:13): [True: 0, False: 8.03k]
  ------------------
  204|      0|            ctr96_inc(ivec);
  205|  40.1k|        while (len--) {
  ------------------
  |  Branch (205:16): [True: 32.1k, False: 8.03k]
  ------------------
  206|  32.1k|            out[n] = in[n] ^ ecount_buf[n];
  207|  32.1k|            ++n;
  208|  32.1k|        }
  209|  8.03k|    }
  210|       |
  211|  11.1k|    *num = n;
  212|  11.1k|}

openssl_fopen:
   39|    344|{
   40|    344|    FILE *file = NULL;
   41|       |#if defined(_WIN32) && defined(CP_UTF8)
   42|       |    int sz, len_0;
   43|       |    DWORD flags;
   44|       |#endif
   45|       |
   46|    344|    if (filename == NULL)
  ------------------
  |  Branch (46:9): [True: 0, False: 344]
  ------------------
   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|    344|    file = fopen(filename, mode);
  115|    344|#endif
  116|    344|    return file;
  117|    344|}

CRYPTO_strdup:
   23|  33.7k|{
   24|  33.7k|    char *ret;
   25|  33.7k|    size_t len;
   26|       |
   27|  33.7k|    if (str == NULL)
  ------------------
  |  Branch (27:9): [True: 0, False: 33.7k]
  ------------------
   28|      0|        return NULL;
   29|       |
   30|  33.7k|    len = strlen(str) + 1;
   31|  33.7k|    ret = CRYPTO_malloc(len, file, line);
   32|  33.7k|    if (ret != NULL)
  ------------------
  |  Branch (32:9): [True: 33.7k, False: 0]
  ------------------
   33|  33.7k|        memcpy(ret, str, len);
   34|  33.7k|    return ret;
   35|  33.7k|}
CRYPTO_strndup:
   38|    694|{
   39|    694|    size_t maxlen;
   40|    694|    char *ret;
   41|       |
   42|    694|    if (str == NULL)
  ------------------
  |  Branch (42:9): [True: 0, False: 694]
  ------------------
   43|      0|        return NULL;
   44|       |
   45|    694|    maxlen = OPENSSL_strnlen(str, s);
   46|       |
   47|    694|    ret = CRYPTO_malloc(maxlen + 1, file, line);
   48|    694|    if (ret) {
  ------------------
  |  Branch (48:9): [True: 694, False: 0]
  ------------------
   49|    694|        memcpy(ret, str, maxlen);
   50|    694|        ret[maxlen] = CH_ZERO;
  ------------------
  |  |   20|    694|#define CH_ZERO '\0'
  ------------------
   51|    694|    }
   52|    694|    return ret;
   53|    694|}
CRYPTO_memdup:
   56|  1.70k|{
   57|  1.70k|    void *ret;
   58|       |
   59|  1.70k|    if (data == NULL || siz >= INT_MAX)
  ------------------
  |  Branch (59:9): [True: 0, False: 1.70k]
  |  Branch (59:25): [True: 0, False: 1.70k]
  ------------------
   60|      0|        return NULL;
   61|       |
   62|  1.70k|    ret = CRYPTO_malloc(siz, file, line);
   63|  1.70k|    if (ret == NULL)
  ------------------
  |  Branch (63:9): [True: 0, False: 1.70k]
  ------------------
   64|      0|        return NULL;
   65|  1.70k|    return memcpy(ret, data, siz);
   66|  1.70k|}
OPENSSL_strnlen:
   69|    694|{
   70|    694|    const char *p;
   71|       |
   72|  9.38k|    for (p = str; maxlen-- != 0 && *p != CH_ZERO; ++p)
  ------------------
  |  |   20|  8.68k|#define CH_ZERO '\0'
  ------------------
  |  Branch (72:19): [True: 8.68k, False: 694]
  |  Branch (72:36): [True: 8.68k, False: 0]
  ------------------
   73|  8.68k|        ;
   74|       |
   75|    694|    return p - str;
   76|    694|}
OPENSSL_strlcpy:
   79|  84.1k|{
   80|  84.1k|    size_t l = 0;
   81|  1.19M|    for (; size > 1 && *src; size--) {
  ------------------
  |  Branch (81:12): [True: 1.19M, False: 0]
  |  Branch (81:24): [True: 1.10M, False: 84.1k]
  ------------------
   82|  1.10M|        *dst++ = *src++;
   83|  1.10M|        l++;
   84|  1.10M|    }
   85|  84.1k|    if (size)
  ------------------
  |  Branch (85:9): [True: 84.1k, False: 0]
  ------------------
   86|  84.1k|        *dst = CH_ZERO;
  ------------------
  |  |   20|  84.1k|#define CH_ZERO '\0'
  ------------------
   87|  84.1k|    return l + strlen(src);
   88|  84.1k|}
OPENSSL_strcasecmp:
  426|   564k|{
  427|   564k|    int t;
  428|       |
  429|  4.10M|    while ((t = ossl_tolower(*s1) - ossl_tolower(*s2++)) == 0)
  ------------------
  |  Branch (429:12): [True: 3.83M, False: 267k]
  ------------------
  430|  3.83M|        if (*s1++ == '\0')
  ------------------
  |  Branch (430:13): [True: 297k, False: 3.54M]
  ------------------
  431|   297k|            return 0;
  432|   267k|    return t;
  433|   564k|}
OPENSSL_strncasecmp:
  436|   511k|{
  437|   511k|    int t;
  438|   511k|    size_t i;
  439|       |
  440|   781k|    for (i = 0; i < n; i++)
  ------------------
  |  Branch (440:17): [True: 696k, False: 85.1k]
  ------------------
  441|   696k|        if ((t = ossl_tolower(*s1) - ossl_tolower(*s2++)) != 0)
  ------------------
  |  Branch (441:13): [True: 426k, False: 270k]
  ------------------
  442|   426k|            return t;
  443|   270k|        else if (*s1++ == '\0')
  ------------------
  |  Branch (443:18): [True: 0, False: 270k]
  ------------------
  444|      0|            return 0;
  445|  85.1k|    return 0;
  446|   511k|}

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

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:
   18|   292k|{
   19|   292k|    ASN1_OBJECT *r;
   20|       |
   21|   292k|    if (o == NULL)
  ------------------
  |  Branch (21:9): [True: 0, False: 292k]
  ------------------
   22|      0|        return NULL;
   23|       |    /* If object isn't dynamic it's an internal OID which is never freed */
   24|   292k|    if (!(o->flags & ASN1_OBJECT_FLAG_DYNAMIC))
  ------------------
  |  |  146|   292k|#define ASN1_OBJECT_FLAG_DYNAMIC 0x01 /* internal use */
  ------------------
  |  Branch (24:9): [True: 292k, False: 0]
  ------------------
   25|   292k|        return (ASN1_OBJECT *)o;
   26|       |
   27|      0|    r = ossl_asn1_object_new();
   28|      0|    if (r == NULL) {
  ------------------
  |  Branch (28:9): [True: 0, False: 0]
  ------------------
   29|      0|        ERR_raise(ERR_LIB_OBJ, ERR_R_ASN1_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   30|      0|        return NULL;
   31|      0|    }
   32|       |
   33|       |    /* Set dynamic flags so everything gets freed up on error */
   34|       |
   35|      0|    r->flags = o->flags | (ASN1_OBJECT_FLAG_DYNAMIC | ASN1_OBJECT_FLAG_DYNAMIC_STRINGS | ASN1_OBJECT_FLAG_DYNAMIC_DATA);
  ------------------
  |  |  146|      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);
  ------------------
  |  |  148|      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);
  ------------------
  |  |  149|      0|#define ASN1_OBJECT_FLAG_DYNAMIC_DATA 0x08 /* internal use */
  ------------------
   36|       |
   37|      0|    if (o->length > 0 && (r->data = OPENSSL_memdup(o->data, o->length)) == NULL)
  ------------------
  |  |  134|      0|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (37:9): [True: 0, False: 0]
  |  Branch (37:26): [True: 0, False: 0]
  ------------------
   38|      0|        goto err;
   39|       |
   40|      0|    r->length = o->length;
   41|      0|    r->nid = o->nid;
   42|       |
   43|      0|    if (o->ln != NULL && (r->ln = OPENSSL_strdup(o->ln)) == NULL)
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (43:9): [True: 0, False: 0]
  |  Branch (43:26): [True: 0, False: 0]
  ------------------
   44|      0|        goto err;
   45|       |
   46|      0|    if (o->sn != NULL && (r->sn = OPENSSL_strdup(o->sn)) == NULL)
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (46:9): [True: 0, False: 0]
  |  Branch (46:26): [True: 0, False: 0]
  ------------------
   47|      0|        goto err;
   48|       |
   49|      0|    return r;
   50|      0|err:
   51|      0|    ASN1_OBJECT_free(r);
   52|       |    return NULL;
   53|      0|}

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

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|   149k|{
   21|   149k|    if (!WPACKET_reserve_bytes(pkt, len, allocbytes))
  ------------------
  |  Branch (21:9): [True: 0, False: 149k]
  ------------------
   22|      0|        return 0;
   23|       |
   24|   149k|    pkt->written += len;
   25|   149k|    pkt->curr += len;
   26|   149k|    return 1;
   27|   149k|}
WPACKET_reserve_bytes:
   47|   149k|{
   48|       |    /* Internal API, so should not fail */
   49|   149k|    if (!ossl_assert(pkt->subs != NULL && len != 0))
  ------------------
  |  |   52|   299k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  ------------------
  |  |  |  Branch (52:41): [True: 149k, False: 0]
  |  |  |  Branch (52:41): [True: 149k, False: 0]
  |  |  ------------------
  |  |   53|   149k|    __FILE__, __LINE__)
  ------------------
  |  Branch (49:9): [True: 0, False: 149k]
  ------------------
   50|      0|        return 0;
   51|       |
   52|   149k|    if (pkt->maxsize - pkt->written < len)
  ------------------
  |  Branch (52:9): [True: 0, False: 149k]
  ------------------
   53|      0|        return 0;
   54|       |
   55|   149k|    if (pkt->buf != NULL && (pkt->buf->length - pkt->written < len)) {
  ------------------
  |  Branch (55:9): [True: 40.6k, False: 109k]
  |  Branch (55:29): [True: 0, False: 40.6k]
  ------------------
   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|   149k|    if (allocbytes != NULL) {
  ------------------
  |  Branch (71:9): [True: 149k, False: 342]
  ------------------
   72|   149k|        *allocbytes = WPACKET_get_curr(pkt);
   73|   149k|        if (pkt->endfirst && *allocbytes != NULL)
  ------------------
  |  Branch (73:13): [True: 0, False: 149k]
  |  Branch (73:30): [True: 0, False: 0]
  ------------------
   74|      0|            *allocbytes -= len;
   75|   149k|    }
   76|       |
   77|   149k|    return 1;
   78|   149k|}
WPACKET_init_static_len:
  131|    342|{
  132|    342|    size_t max = maxmaxsize(lenbytes);
  133|       |
  134|       |    /* Internal API, so should not fail */
  135|    342|    if (!ossl_assert(buf != NULL && len > 0))
  ------------------
  |  |   52|    684|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  ------------------
  |  |  |  Branch (52:41): [True: 342, False: 0]
  |  |  |  Branch (52:41): [True: 342, False: 0]
  |  |  ------------------
  |  |   53|    342|    __FILE__, __LINE__)
  ------------------
  |  Branch (135:9): [True: 0, False: 342]
  ------------------
  136|      0|        return 0;
  137|       |
  138|    342|    pkt->staticbuf = buf;
  139|    342|    pkt->buf = NULL;
  140|    342|    pkt->maxsize = (max < len) ? max : len;
  ------------------
  |  Branch (140:20): [True: 0, False: 342]
  ------------------
  141|    342|    pkt->endfirst = 0;
  142|       |
  143|    342|    return wpacket_intern_init_len(pkt, lenbytes);
  144|    342|}
WPACKET_init_len:
  161|    342|{
  162|       |    /* Internal API, so should not fail */
  163|    342|    if (!ossl_assert(buf != NULL))
  ------------------
  |  |   52|    342|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    342|    __FILE__, __LINE__)
  ------------------
  |  Branch (163:9): [True: 0, False: 342]
  ------------------
  164|      0|        return 0;
  165|       |
  166|    342|    pkt->staticbuf = NULL;
  167|    342|    pkt->buf = buf;
  168|    342|    pkt->maxsize = maxmaxsize(lenbytes);
  169|    342|    pkt->endfirst = 0;
  170|       |
  171|    342|    return wpacket_intern_init_len(pkt, lenbytes);
  172|    342|}
WPACKET_init:
  175|    342|{
  176|    342|    return WPACKET_init_len(pkt, buf, 0);
  177|    342|}
WPACKET_init_null:
  180|  13.3k|{
  181|  13.3k|    pkt->staticbuf = NULL;
  182|  13.3k|    pkt->buf = NULL;
  183|  13.3k|    pkt->maxsize = maxmaxsize(lenbytes);
  184|  13.3k|    pkt->endfirst = 0;
  185|       |
  186|  13.3k|    return wpacket_intern_init_len(pkt, 0);
  187|  13.3k|}
WPACKET_set_flags:
  200|    684|{
  201|       |    /* Internal API, so should not fail */
  202|    684|    if (!ossl_assert(pkt->subs != NULL))
  ------------------
  |  |   52|    684|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    684|    __FILE__, __LINE__)
  ------------------
  |  Branch (202:9): [True: 0, False: 684]
  ------------------
  203|      0|        return 0;
  204|       |
  205|    684|    pkt->subs->flags = flags;
  206|       |
  207|    684|    return 1;
  208|    684|}
WPACKET_close:
  336|  48.1k|{
  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|  48.1k|    if (pkt->subs == NULL || pkt->subs->parent == NULL)
  ------------------
  |  Branch (341:9): [True: 0, False: 48.1k]
  |  Branch (341:30): [True: 0, False: 48.1k]
  ------------------
  342|      0|        return 0;
  343|       |
  344|  48.1k|    return wpacket_intern_close(pkt, pkt->subs, 1);
  345|  48.1k|}
WPACKET_finish:
  348|  14.0k|{
  349|  14.0k|    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|  14.0k|    if (pkt->subs == NULL || pkt->subs->parent != NULL)
  ------------------
  |  Branch (355:9): [True: 0, False: 14.0k]
  |  Branch (355:30): [True: 0, False: 14.0k]
  ------------------
  356|      0|        return 0;
  357|       |
  358|  14.0k|    ret = wpacket_intern_close(pkt, pkt->subs, 1);
  359|  14.0k|    if (ret) {
  ------------------
  |  Branch (359:9): [True: 14.0k, False: 0]
  ------------------
  360|  14.0k|        OPENSSL_free(pkt->subs);
  ------------------
  |  |  132|  14.0k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  361|  14.0k|        pkt->subs = NULL;
  362|  14.0k|    }
  363|       |
  364|  14.0k|    return ret;
  365|  14.0k|}
WPACKET_start_sub_packet_len__:
  368|  48.1k|{
  369|  48.1k|    WPACKET_SUB *sub;
  370|  48.1k|    unsigned char *lenchars;
  371|       |
  372|       |    /* Internal API, so should not fail */
  373|  48.1k|    if (!ossl_assert(pkt->subs != NULL))
  ------------------
  |  |   52|  48.1k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  48.1k|    __FILE__, __LINE__)
  ------------------
  |  Branch (373:9): [True: 0, False: 48.1k]
  ------------------
  374|      0|        return 0;
  375|       |
  376|       |    /* We don't support lenbytes greater than 0 when doing endfirst writing */
  377|  48.1k|    if (lenbytes > 0 && pkt->endfirst)
  ------------------
  |  Branch (377:9): [True: 8.18k, False: 40.0k]
  |  Branch (377:25): [True: 0, False: 8.18k]
  ------------------
  378|      0|        return 0;
  379|       |
  380|  48.1k|    if ((sub = OPENSSL_zalloc(sizeof(*sub))) == NULL)
  ------------------
  |  |  109|  48.1k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (380:9): [True: 0, False: 48.1k]
  ------------------
  381|      0|        return 0;
  382|       |
  383|  48.1k|    sub->parent = pkt->subs;
  384|  48.1k|    pkt->subs = sub;
  385|  48.1k|    sub->pwritten = pkt->written + lenbytes;
  386|  48.1k|    sub->lenbytes = lenbytes;
  387|       |
  388|  48.1k|    if (lenbytes == 0) {
  ------------------
  |  Branch (388:9): [True: 40.0k, False: 8.18k]
  ------------------
  389|  40.0k|        sub->packet_len = 0;
  390|  40.0k|        return 1;
  391|  40.0k|    }
  392|       |
  393|  8.18k|    sub->packet_len = pkt->written;
  394|       |
  395|  8.18k|    if (!WPACKET_allocate_bytes(pkt, lenbytes, &lenchars))
  ------------------
  |  Branch (395:9): [True: 0, False: 8.18k]
  ------------------
  396|      0|        return 0;
  397|       |
  398|  8.18k|    return 1;
  399|  8.18k|}
WPACKET_start_sub_packet:
  402|  40.0k|{
  403|  40.0k|    return WPACKET_start_sub_packet_len__(pkt, 0);
  404|  40.0k|}
WPACKET_put_bytes__:
  407|   111k|{
  408|   111k|    unsigned char *data;
  409|       |
  410|       |    /* Internal API, so should not fail */
  411|   111k|    if (!ossl_assert(size <= sizeof(uint64_t))
  ------------------
  |  |   52|   223k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|   223k|    __FILE__, __LINE__)
  ------------------
  |  Branch (411:9): [True: 0, False: 111k]
  ------------------
  412|   111k|        || !WPACKET_allocate_bytes(pkt, size, &data)
  ------------------
  |  Branch (412:12): [True: 0, False: 111k]
  ------------------
  413|   111k|        || !put_value(data, val, size))
  ------------------
  |  Branch (413:12): [True: 0, False: 111k]
  ------------------
  414|      0|        return 0;
  415|       |
  416|   111k|    return 1;
  417|   111k|}
WPACKET_memcpy:
  461|  2.27k|{
  462|  2.27k|    unsigned char *dest;
  463|       |
  464|  2.27k|    if (len == 0)
  ------------------
  |  Branch (464:9): [True: 0, False: 2.27k]
  ------------------
  465|      0|        return 1;
  466|       |
  467|  2.27k|    if (!WPACKET_allocate_bytes(pkt, len, &dest))
  ------------------
  |  Branch (467:9): [True: 0, False: 2.27k]
  ------------------
  468|      0|        return 0;
  469|       |
  470|  2.27k|    if (dest != NULL)
  ------------------
  |  Branch (470:9): [True: 2.27k, False: 0]
  ------------------
  471|  2.27k|        memcpy(dest, src, len);
  472|       |
  473|  2.27k|    return 1;
  474|  2.27k|}
WPACKET_sub_memcpy__:
  478|  1.24k|{
  479|  1.24k|    if (!WPACKET_start_sub_packet_len__(pkt, lenbytes)
  ------------------
  |  Branch (479:9): [True: 0, False: 1.24k]
  ------------------
  480|  1.24k|        || !WPACKET_memcpy(pkt, src, len)
  ------------------
  |  Branch (480:12): [True: 0, False: 1.24k]
  ------------------
  481|  1.24k|        || !WPACKET_close(pkt))
  ------------------
  |  Branch (481:12): [True: 0, False: 1.24k]
  ------------------
  482|      0|        return 0;
  483|       |
  484|  1.24k|    return 1;
  485|  1.24k|}
WPACKET_get_total_written:
  488|  13.6k|{
  489|       |    /* Internal API, so should not fail */
  490|  13.6k|    if (!ossl_assert(written != NULL))
  ------------------
  |  |   52|  13.6k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  13.6k|    __FILE__, __LINE__)
  ------------------
  |  Branch (490:9): [True: 0, False: 13.6k]
  ------------------
  491|      0|        return 0;
  492|       |
  493|  13.6k|    *written = pkt->written;
  494|       |
  495|  13.6k|    return 1;
  496|  13.6k|}
WPACKET_get_length:
  499|  14.3k|{
  500|       |    /* Internal API, so should not fail */
  501|  14.3k|    if (!ossl_assert(pkt->subs != NULL && len != NULL))
  ------------------
  |  |   52|  28.7k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  ------------------
  |  |  |  Branch (52:41): [True: 14.3k, False: 0]
  |  |  |  Branch (52:41): [True: 14.3k, False: 0]
  |  |  ------------------
  |  |   53|  14.3k|    __FILE__, __LINE__)
  ------------------
  |  Branch (501:9): [True: 0, False: 14.3k]
  ------------------
  502|      0|        return 0;
  503|       |
  504|  14.3k|    *len = pkt->written - pkt->subs->pwritten;
  505|       |
  506|  14.3k|    return 1;
  507|  14.3k|}
WPACKET_get_curr:
  510|   149k|{
  511|   149k|    unsigned char *buf = GETBUF(pkt);
  ------------------
  |  |   40|   149k|#define GETBUF(p) (((p)->staticbuf != NULL)         \
  |  |  ------------------
  |  |  |  Branch (40:20): [True: 1.71k, False: 147k]
  |  |  ------------------
  |  |   41|   149k|        ? (p)->staticbuf                            \
  |  |   42|   149k|        : ((p)->buf != NULL                         \
  |  |  ------------------
  |  |  |  Branch (42:12): [True: 40.6k, False: 107k]
  |  |  ------------------
  |  |   43|   147k|                  ? (unsigned char *)(p)->buf->data \
  |  |   44|   147k|                  : NULL))
  ------------------
  512|       |
  513|   149k|    if (buf == NULL)
  ------------------
  |  Branch (513:9): [True: 107k, False: 42.3k]
  ------------------
  514|   107k|        return NULL;
  515|       |
  516|  42.3k|    if (pkt->endfirst)
  ------------------
  |  Branch (516:9): [True: 0, False: 42.3k]
  ------------------
  517|      0|        return buf + pkt->maxsize - pkt->curr;
  518|       |
  519|  42.3k|    return buf + pkt->curr;
  520|  42.3k|}
WPACKET_is_null_buf:
  523|  13.3k|{
  524|  13.3k|    return pkt->buf == NULL && pkt->staticbuf == NULL;
  ------------------
  |  Branch (524:12): [True: 13.3k, False: 0]
  |  Branch (524:32): [True: 13.3k, False: 0]
  ------------------
  525|  13.3k|}
WPACKET_cleanup:
  528|    342|{
  529|    342|    WPACKET_SUB *sub, *parent;
  530|       |
  531|    342|    for (sub = pkt->subs; sub != NULL; sub = parent) {
  ------------------
  |  Branch (531:27): [True: 0, False: 342]
  ------------------
  532|      0|        parent = sub->parent;
  533|      0|        OPENSSL_free(sub);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  534|      0|    }
  535|       |    pkt->subs = NULL;
  536|    342|}
packet.c:maxmaxsize:
   96|  14.0k|{
   97|  14.0k|    if (lenbytes >= sizeof(size_t) || lenbytes == 0)
  ------------------
  |  Branch (97:9): [True: 0, False: 14.0k]
  |  Branch (97:39): [True: 14.0k, False: 0]
  ------------------
   98|  14.0k|        return SIZE_MAX;
   99|       |
  100|      0|    return ((size_t)1 << (lenbytes * 8)) - 1 + lenbytes;
  101|  14.0k|}
packet.c:wpacket_intern_init_len:
  104|  14.0k|{
  105|  14.0k|    unsigned char *lenchars;
  106|       |
  107|  14.0k|    pkt->curr = 0;
  108|  14.0k|    pkt->written = 0;
  109|       |
  110|  14.0k|    if ((pkt->subs = OPENSSL_zalloc(sizeof(*pkt->subs))) == NULL)
  ------------------
  |  |  109|  14.0k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (110:9): [True: 0, False: 14.0k]
  ------------------
  111|      0|        return 0;
  112|       |
  113|  14.0k|    if (lenbytes == 0)
  ------------------
  |  Branch (113:9): [True: 14.0k, False: 0]
  ------------------
  114|  14.0k|        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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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|  62.2k|{
  252|  62.2k|    size_t packlen = pkt->written - sub->pwritten;
  253|       |
  254|  62.2k|    if (packlen == 0
  ------------------
  |  Branch (254:9): [True: 342, False: 61.8k]
  ------------------
  255|    342|        && (sub->flags & WPACKET_FLAGS_NON_ZERO_LENGTH) != 0)
  ------------------
  |  |  717|    342|#define WPACKET_FLAGS_NON_ZERO_LENGTH 1
  ------------------
  |  Branch (255:12): [True: 0, False: 342]
  ------------------
  256|      0|        return 0;
  257|       |
  258|  62.2k|    if (packlen == 0
  ------------------
  |  Branch (258:9): [True: 342, False: 61.8k]
  ------------------
  259|    342|        && sub->flags & WPACKET_FLAGS_ABANDON_ON_ZERO_LENGTH) {
  ------------------
  |  |  723|    342|#define WPACKET_FLAGS_ABANDON_ON_ZERO_LENGTH 2
  ------------------
  |  Branch (259:12): [True: 0, False: 342]
  ------------------
  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|  62.2k|    if (sub->lenbytes > 0) {
  ------------------
  |  Branch (276:9): [True: 8.18k, False: 54.0k]
  ------------------
  277|  8.18k|        unsigned char *buf = GETBUF(pkt);
  ------------------
  |  |   40|  8.18k|#define GETBUF(p) (((p)->staticbuf != NULL)         \
  |  |  ------------------
  |  |  |  Branch (40:20): [True: 342, False: 7.83k]
  |  |  ------------------
  |  |   41|  8.18k|        ? (p)->staticbuf                            \
  |  |   42|  8.18k|        : ((p)->buf != NULL                         \
  |  |  ------------------
  |  |  |  Branch (42:12): [True: 7.83k, False: 0]
  |  |  ------------------
  |  |   43|  7.83k|                  ? (unsigned char *)(p)->buf->data \
  |  |   44|  7.83k|                  : NULL))
  ------------------
  278|       |
  279|  8.18k|        if (buf != NULL) {
  ------------------
  |  Branch (279:13): [True: 8.18k, False: 0]
  ------------------
  280|  8.18k|#if !defined OPENSSL_NO_QUIC && !defined FIPS_MODULE
  281|  8.18k|            if ((sub->flags & WPACKET_FLAGS_QUIC_VLINT) == 0) {
  ------------------
  |  |  726|  8.18k|#define WPACKET_FLAGS_QUIC_VLINT 4
  ------------------
  |  Branch (281:17): [True: 8.18k, False: 0]
  ------------------
  282|  8.18k|                if (!put_value(&buf[sub->packet_len], packlen, sub->lenbytes))
  ------------------
  |  Branch (282:21): [True: 0, False: 8.18k]
  ------------------
  283|      0|                    return 0;
  284|  8.18k|            } 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|  8.18k|        }
  293|  54.0k|    } else if (pkt->endfirst && sub->parent != NULL
  ------------------
  |  Branch (293:16): [True: 0, False: 54.0k]
  |  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)
  ------------------
  |  |  723|      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))
  ------------------
  |  |  909|      0|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (307:17): [True: 0, False: 0]
  ------------------
  308|      0|                return 0;
  309|      0|        }
  310|      0|    }
  311|       |
  312|  62.2k|    if (doclose) {
  ------------------
  |  Branch (312:9): [True: 62.2k, False: 0]
  ------------------
  313|  62.2k|        pkt->subs = sub->parent;
  314|  62.2k|        OPENSSL_free(sub);
  ------------------
  |  |  132|  62.2k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  315|  62.2k|    }
  316|       |
  317|  62.2k|    return 1;
  318|  62.2k|}
packet.c:put_value:
  212|   120k|{
  213|   120k|    if (data == NULL)
  ------------------
  |  Branch (213:9): [True: 80.3k, False: 39.7k]
  ------------------
  214|  80.3k|        return 1;
  215|       |
  216|   115k|    for (data += len - 1; len > 0; len--) {
  ------------------
  |  Branch (216:27): [True: 76.1k, False: 39.7k]
  ------------------
  217|  76.1k|        *data = (unsigned char)(value & 0xff);
  218|  76.1k|        data--;
  219|  76.1k|        value >>= 8;
  220|  76.1k|    }
  221|       |
  222|       |    /* Check whether we could fit the value in the assigned number of bytes */
  223|  39.7k|    if (value > 0)
  ------------------
  |  Branch (223:9): [True: 0, False: 39.7k]
  ------------------
  224|      0|        return 0;
  225|       |
  226|  39.7k|    return 1;
  227|  39.7k|}

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

ossl_param_build_set_int:
   24|  26.6k|{
   25|  26.6k|    if (bld != NULL)
  ------------------
  |  Branch (25:9): [True: 0, False: 26.6k]
  ------------------
   26|      0|        return OSSL_PARAM_BLD_push_int(bld, key, num);
   27|  26.6k|    p = OSSL_PARAM_locate(p, key);
   28|  26.6k|    if (p != NULL)
  ------------------
  |  Branch (28:9): [True: 0, False: 26.6k]
  ------------------
   29|      0|        return OSSL_PARAM_set_int(p, num);
   30|  26.6k|    return 1;
   31|  26.6k|}
ossl_param_build_set_utf8_string:
   46|  66.6k|{
   47|  66.6k|    if (bld != NULL)
  ------------------
  |  Branch (47:9): [True: 0, False: 66.6k]
  ------------------
   48|      0|        return OSSL_PARAM_BLD_push_utf8_string(bld, key, buf, 0);
   49|  66.6k|    p = OSSL_PARAM_locate(p, key);
   50|  66.6k|    if (p != NULL)
  ------------------
  |  Branch (50:9): [True: 0, False: 66.6k]
  ------------------
   51|      0|        return OSSL_PARAM_set_utf8_string(p, buf);
   52|  66.6k|    return 1;
   53|  66.6k|}
ossl_param_build_set_octet_string:
   59|  3.42k|{
   60|  3.42k|    if (bld != NULL)
  ------------------
  |  Branch (60:9): [True: 684, False: 2.73k]
  ------------------
   61|    684|        return OSSL_PARAM_BLD_push_octet_string(bld, key, data, data_len);
   62|       |
   63|  2.73k|    p = OSSL_PARAM_locate(p, key);
   64|  2.73k|    if (p != NULL)
  ------------------
  |  Branch (64:9): [True: 0, False: 2.73k]
  ------------------
   65|      0|        return OSSL_PARAM_set_octet_string(p, data, data_len);
   66|  2.73k|    return 1;
   67|  2.73k|}
ossl_param_build_set_bn:
   93|  56.0k|{
   94|  56.0k|    if (bld != NULL)
  ------------------
  |  Branch (94:9): [True: 0, False: 56.0k]
  ------------------
   95|      0|        return OSSL_PARAM_BLD_push_BN(bld, key, bn);
   96|       |
   97|  56.0k|    p = OSSL_PARAM_locate(p, key);
   98|  56.0k|    if (p != NULL)
  ------------------
  |  Branch (98:9): [True: 0, False: 56.0k]
  ------------------
   99|      0|        return OSSL_PARAM_set_BN(p, bn) > 0;
  100|  56.0k|    return 1;
  101|  56.0k|}

OSSL_PARAM_locate:
   55|  1.04M|{
   56|  1.04M|    if (ossl_likely(p != NULL && key != NULL))
  ------------------
  |  |   22|  2.08M|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 1.04M, False: 2.73k]
  |  |  |  Branch (22:44): [True: 1.04M, False: 2.73k]
  |  |  |  Branch (22:44): [True: 1.04M, False: 0]
  |  |  ------------------
  ------------------
   57|  4.10M|        for (; p->key != NULL; p++)
  ------------------
  |  Branch (57:16): [True: 3.63M, False: 471k]
  ------------------
   58|  3.63M|            if (strcmp(key, p->key) == 0)
  ------------------
  |  Branch (58:17): [True: 568k, False: 3.06M]
  ------------------
   59|   568k|                return p;
   60|   474k|    return NULL;
   61|  1.04M|}
OSSL_PARAM_locate_const:
   64|   559k|{
   65|   559k|    return OSSL_PARAM_locate((OSSL_PARAM *)p, key);
   66|   559k|}
OSSL_PARAM_modified:
   82|  2.39k|{
   83|  2.39k|    return p != NULL && p->return_size != OSSL_PARAM_UNMODIFIED;
  ------------------
  |  |   22|  2.39k|#define OSSL_PARAM_UNMODIFIED ((size_t)-1)
  ------------------
  |  Branch (83:12): [True: 2.39k, False: 0]
  |  Branch (83:25): [True: 1.37k, False: 1.02k]
  ------------------
   84|  2.39k|}
OSSL_PARAM_get_int:
  268|  43.0k|{
  269|  43.0k|#ifndef OPENSSL_SMALL_FOOTPRINT
  270|  43.0k|    switch (sizeof(int)) {
  ------------------
  |  Branch (270:13): [True: 43.0k, Folded]
  ------------------
  271|  43.0k|    case sizeof(int32_t):
  ------------------
  |  Branch (271:5): [True: 43.0k, False: 0]
  ------------------
  272|  43.0k|        return OSSL_PARAM_get_int32(p, (int32_t *)val);
  273|      0|    case sizeof(int64_t):
  ------------------
  |  Branch (273:5): [True: 0, False: 43.0k]
  ------------------
  274|      0|        return OSSL_PARAM_get_int64(p, (int64_t *)val);
  275|  43.0k|    }
  276|      0|#endif
  277|      0|    return general_get_int(p, val, sizeof(*val));
  278|  43.0k|}
OSSL_PARAM_set_int:
  281|   172k|{
  282|   172k|#ifndef OPENSSL_SMALL_FOOTPRINT
  283|   172k|    switch (sizeof(int)) {
  ------------------
  |  Branch (283:13): [True: 172k, Folded]
  ------------------
  284|   172k|    case sizeof(int32_t):
  ------------------
  |  Branch (284:5): [True: 172k, False: 0]
  ------------------
  285|   172k|        return OSSL_PARAM_set_int32(p, (int32_t)val);
  286|      0|    case sizeof(int64_t):
  ------------------
  |  Branch (286:5): [True: 0, False: 172k]
  ------------------
  287|      0|        return OSSL_PARAM_set_int64(p, (int64_t)val);
  288|   172k|    }
  289|      0|#endif
  290|      0|    return general_set_int(p, &val, sizeof(val));
  291|   172k|}
OSSL_PARAM_construct_int:
  294|   263k|{
  295|   263k|    return ossl_param_construct(key, OSSL_PARAM_INTEGER, buf, sizeof(int));
  ------------------
  |  |  106|   263k|#define OSSL_PARAM_INTEGER 1
  ------------------
  296|   263k|}
OSSL_PARAM_get_uint:
  299|  30.8k|{
  300|  30.8k|#ifndef OPENSSL_SMALL_FOOTPRINT
  301|  30.8k|    switch (sizeof(unsigned int)) {
  ------------------
  |  Branch (301:13): [True: 30.8k, Folded]
  ------------------
  302|  30.8k|    case sizeof(uint32_t):
  ------------------
  |  Branch (302:5): [True: 30.8k, False: 0]
  ------------------
  303|  30.8k|        return OSSL_PARAM_get_uint32(p, (uint32_t *)val);
  304|      0|    case sizeof(uint64_t):
  ------------------
  |  Branch (304:5): [True: 0, False: 30.8k]
  ------------------
  305|      0|        return OSSL_PARAM_get_uint64(p, (uint64_t *)val);
  306|  30.8k|    }
  307|      0|#endif
  308|      0|    return general_get_uint(p, val, sizeof(*val));
  309|  30.8k|}
OSSL_PARAM_set_uint:
  312|  11.2k|{
  313|  11.2k|#ifndef OPENSSL_SMALL_FOOTPRINT
  314|  11.2k|    switch (sizeof(unsigned int)) {
  ------------------
  |  Branch (314:13): [True: 11.2k, Folded]
  ------------------
  315|  11.2k|    case sizeof(uint32_t):
  ------------------
  |  Branch (315:5): [True: 11.2k, False: 0]
  ------------------
  316|  11.2k|        return OSSL_PARAM_set_uint32(p, (uint32_t)val);
  317|      0|    case sizeof(uint64_t):
  ------------------
  |  Branch (317:5): [True: 0, False: 11.2k]
  ------------------
  318|      0|        return OSSL_PARAM_set_uint64(p, (uint64_t)val);
  319|  11.2k|    }
  320|      0|#endif
  321|      0|    return general_set_uint(p, &val, sizeof(val));
  322|  11.2k|}
OSSL_PARAM_construct_uint:
  325|  11.2k|{
  326|  11.2k|    return ossl_param_construct(key, OSSL_PARAM_UNSIGNED_INTEGER, buf,
  ------------------
  |  |  107|  11.2k|#define OSSL_PARAM_UNSIGNED_INTEGER 2
  ------------------
  327|  11.2k|        sizeof(unsigned int));
  328|  11.2k|}
OSSL_PARAM_get_int32:
  394|  43.0k|{
  395|  43.0k|    if (val == NULL || p == NULL) {
  ------------------
  |  Branch (395:9): [True: 0, False: 43.0k]
  |  Branch (395:24): [True: 0, False: 43.0k]
  ------------------
  396|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  397|      0|        return 0;
  398|      0|    }
  399|       |
  400|  43.0k|    if (p->data == NULL) {
  ------------------
  |  Branch (400:9): [True: 0, False: 43.0k]
  ------------------
  401|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  402|      0|        return 0;
  403|      0|    }
  404|       |
  405|  43.0k|    if (p->data_type == OSSL_PARAM_INTEGER) {
  ------------------
  |  |  106|  43.0k|#define OSSL_PARAM_INTEGER 1
  ------------------
  |  Branch (405:9): [True: 43.0k, False: 12]
  ------------------
  406|  43.0k|#ifndef OPENSSL_SMALL_FOOTPRINT
  407|  43.0k|        int64_t i64;
  408|       |
  409|  43.0k|        switch (p->data_size) {
  ------------------
  |  Branch (409:17): [True: 43.0k, False: 0]
  ------------------
  410|  43.0k|        case sizeof(int32_t):
  ------------------
  |  Branch (410:9): [True: 43.0k, False: 0]
  ------------------
  411|  43.0k|            *val = *(const int32_t *)p->data;
  412|  43.0k|            return 1;
  413|      0|        case sizeof(int64_t):
  ------------------
  |  Branch (413:9): [True: 0, False: 43.0k]
  ------------------
  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, \
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   27|      0|        CRYPTO_R_PARAM_VALUE_TOO_LARGE_FOR_DESTINATION)
  ------------------
  420|      0|            return 0;
  421|  43.0k|        }
  422|      0|#endif
  423|      0|        return general_get_int(p, val, sizeof(*val));
  424|       |
  425|  43.0k|    } 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, \
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      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, \
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      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, \
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      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)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  466|      0|        return 0;
  467|      0|#endif
  468|      0|    }
  469|      0|    err_bad_type;
  ------------------
  |  |   36|  43.0k|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_OF_INCOMPATIBLE_TYPE)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  470|      0|    return 0;
  471|  43.0k|}
OSSL_PARAM_set_int32:
  474|   172k|{
  475|   172k|    if (p == NULL) {
  ------------------
  |  Branch (475:9): [True: 0, False: 172k]
  ------------------
  476|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  477|      0|        return 0;
  478|      0|    }
  479|   172k|    p->return_size = 0;
  480|   172k|    if (p->data_type == OSSL_PARAM_INTEGER) {
  ------------------
  |  |  106|   172k|#define OSSL_PARAM_INTEGER 1
  ------------------
  |  Branch (480:9): [True: 172k, False: 12]
  ------------------
  481|   172k|#ifndef OPENSSL_SMALL_FOOTPRINT
  482|   172k|        p->return_size = sizeof(int32_t); /* Minimum expected size */
  483|   172k|        if (p->data == NULL)
  ------------------
  |  Branch (483:13): [True: 0, False: 172k]
  ------------------
  484|      0|            return 1;
  485|   172k|        switch (p->data_size) {
  ------------------
  |  Branch (485:17): [True: 172k, False: 0]
  ------------------
  486|   172k|        case sizeof(int32_t):
  ------------------
  |  Branch (486:9): [True: 172k, False: 0]
  ------------------
  487|   172k|            *(int32_t *)p->data = val;
  488|   172k|            return 1;
  489|      0|        case sizeof(int64_t):
  ------------------
  |  Branch (489:9): [True: 0, False: 172k]
  ------------------
  490|      0|            p->return_size = sizeof(int64_t);
  491|      0|            *(int64_t *)p->data = (int64_t)val;
  492|      0|            return 1;
  493|   172k|        }
  494|      0|#endif
  495|      0|        return general_set_int(p, &val, sizeof(val));
  496|   172k|    } else if (p->data_type == OSSL_PARAM_UNSIGNED_INTEGER && val >= 0) {
  ------------------
  |  |  107|     24|#define OSSL_PARAM_UNSIGNED_INTEGER 2
  ------------------
  |  Branch (496:16): [True: 12, False: 0]
  |  Branch (496:63): [True: 12, False: 0]
  ------------------
  497|     12|#ifndef OPENSSL_SMALL_FOOTPRINT
  498|     12|        p->return_size = sizeof(uint32_t); /* Minimum expected size */
  499|     12|        if (p->data == NULL)
  ------------------
  |  Branch (499:13): [True: 0, False: 12]
  ------------------
  500|      0|            return 1;
  501|     12|        switch (p->data_size) {
  ------------------
  |  Branch (501:17): [True: 12, False: 0]
  ------------------
  502|     12|        case sizeof(uint32_t):
  ------------------
  |  Branch (502:9): [True: 12, False: 0]
  ------------------
  503|     12|            *(uint32_t *)p->data = (uint32_t)val;
  504|     12|            return 1;
  505|      0|        case sizeof(uint64_t):
  ------------------
  |  Branch (505:9): [True: 0, False: 12]
  ------------------
  506|      0|            p->return_size = sizeof(uint64_t);
  507|      0|            *(uint64_t *)p->data = (uint64_t)val;
  508|      0|            return 1;
  509|     12|        }
  510|      0|#endif
  511|      0|        return general_set_int(p, &val, sizeof(val));
  512|     12|    } 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, \
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      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)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  534|      0|        return 0;
  535|      0|#endif
  536|      0|    }
  537|      0|    err_bad_type;
  ------------------
  |  |   36|   172k|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_OF_INCOMPATIBLE_TYPE)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  538|      0|    return 0;
  539|   172k|}
OSSL_PARAM_get_uint32:
  548|  32.9k|{
  549|  32.9k|    if (val == NULL || p == NULL) {
  ------------------
  |  Branch (549:9): [True: 0, False: 32.9k]
  |  Branch (549:24): [True: 0, False: 32.9k]
  ------------------
  550|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  551|      0|        return 0;
  552|      0|    }
  553|       |
  554|  32.9k|    if (p->data == NULL) {
  ------------------
  |  Branch (554:9): [True: 0, False: 32.9k]
  ------------------
  555|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  556|      0|        return 0;
  557|      0|    }
  558|       |
  559|  32.9k|    if (p->data_type == OSSL_PARAM_UNSIGNED_INTEGER) {
  ------------------
  |  |  107|  32.9k|#define OSSL_PARAM_UNSIGNED_INTEGER 2
  ------------------
  |  Branch (559:9): [True: 23.5k, False: 9.36k]
  ------------------
  560|  23.5k|#ifndef OPENSSL_SMALL_FOOTPRINT
  561|  23.5k|        uint64_t u64;
  562|       |
  563|  23.5k|        switch (p->data_size) {
  ------------------
  |  Branch (563:17): [True: 23.5k, False: 0]
  ------------------
  564|  23.5k|        case sizeof(uint32_t):
  ------------------
  |  Branch (564:9): [True: 23.5k, False: 0]
  ------------------
  565|  23.5k|            *val = *(const uint32_t *)p->data;
  566|  23.5k|            return 1;
  567|      0|        case sizeof(uint64_t):
  ------------------
  |  Branch (567:9): [True: 0, False: 23.5k]
  ------------------
  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, \
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   27|      0|        CRYPTO_R_PARAM_VALUE_TOO_LARGE_FOR_DESTINATION)
  ------------------
  574|      0|            return 0;
  575|  23.5k|        }
  576|      0|#endif
  577|      0|        return general_get_uint(p, val, sizeof(*val));
  578|  23.5k|    } else if (p->data_type == OSSL_PARAM_INTEGER) {
  ------------------
  |  |  106|  9.36k|#define OSSL_PARAM_INTEGER 1
  ------------------
  |  Branch (578:16): [True: 9.36k, False: 0]
  ------------------
  579|  9.36k|#ifndef OPENSSL_SMALL_FOOTPRINT
  580|  9.36k|        int32_t i32;
  581|  9.36k|        int64_t i64;
  582|       |
  583|  9.36k|        switch (p->data_size) {
  ------------------
  |  Branch (583:17): [True: 9.36k, False: 0]
  ------------------
  584|  9.36k|        case sizeof(int32_t):
  ------------------
  |  Branch (584:9): [True: 9.36k, False: 0]
  ------------------
  585|  9.36k|            i32 = *(const int32_t *)p->data;
  586|  9.36k|            if (i32 >= 0) {
  ------------------
  |  Branch (586:17): [True: 9.36k, False: 0]
  ------------------
  587|  9.36k|                *val = i32;
  588|  9.36k|                return 1;
  589|  9.36k|            }
  590|      0|            err_unsigned_negative;
  ------------------
  |  |   23|  9.36k|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      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: 9.36k]
  ------------------
  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, \
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      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, \
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   27|      0|        CRYPTO_R_PARAM_VALUE_TOO_LARGE_FOR_DESTINATION)
  ------------------
  602|      0|            return 0;
  603|  9.36k|        }
  604|      0|#endif
  605|      0|        return general_get_uint(p, val, sizeof(*val));
  606|  9.36k|    } 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, \
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      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)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  621|      0|        return 0;
  622|      0|#endif
  623|      0|    }
  624|      0|    err_bad_type;
  ------------------
  |  |   36|  32.9k|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_OF_INCOMPATIBLE_TYPE)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  625|      0|    return 0;
  626|  32.9k|}
OSSL_PARAM_set_uint32:
  629|  11.2k|{
  630|  11.2k|    if (p == NULL) {
  ------------------
  |  Branch (630:9): [True: 0, False: 11.2k]
  ------------------
  631|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  632|      0|        return 0;
  633|      0|    }
  634|  11.2k|    p->return_size = 0;
  635|       |
  636|  11.2k|    if (p->data_type == OSSL_PARAM_UNSIGNED_INTEGER) {
  ------------------
  |  |  107|  11.2k|#define OSSL_PARAM_UNSIGNED_INTEGER 2
  ------------------
  |  Branch (636:9): [True: 11.2k, False: 0]
  ------------------
  637|  11.2k|#ifndef OPENSSL_SMALL_FOOTPRINT
  638|  11.2k|        p->return_size = sizeof(uint32_t); /* Minimum expected size */
  639|  11.2k|        if (p->data == NULL)
  ------------------
  |  Branch (639:13): [True: 0, False: 11.2k]
  ------------------
  640|      0|            return 1;
  641|  11.2k|        switch (p->data_size) {
  ------------------
  |  Branch (641:17): [True: 11.2k, False: 0]
  ------------------
  642|  11.2k|        case sizeof(uint32_t):
  ------------------
  |  Branch (642:9): [True: 11.2k, False: 0]
  ------------------
  643|  11.2k|            *(uint32_t *)p->data = val;
  644|  11.2k|            return 1;
  645|      0|        case sizeof(uint64_t):
  ------------------
  |  Branch (645:9): [True: 0, False: 11.2k]
  ------------------
  646|      0|            p->return_size = sizeof(uint64_t);
  647|      0|            *(uint64_t *)p->data = val;
  648|      0|            return 1;
  649|  11.2k|        }
  650|      0|#endif
  651|      0|        return general_set_uint(p, &val, sizeof(val));
  652|  11.2k|    } 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, \
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      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, \
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      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)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  692|      0|        return 0;
  693|      0|#endif
  694|      0|    }
  695|      0|    err_bad_type;
  ------------------
  |  |   36|  11.2k|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_OF_INCOMPATIBLE_TYPE)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  696|      0|    return 0;
  697|  11.2k|}
OSSL_PARAM_construct_uint32:
  700|  2.07k|{
  701|  2.07k|    return ossl_param_construct(key, OSSL_PARAM_UNSIGNED_INTEGER, buf,
  ------------------
  |  |  107|  2.07k|#define OSSL_PARAM_UNSIGNED_INTEGER 2
  ------------------
  702|  2.07k|        sizeof(uint32_t));
  703|  2.07k|}
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)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      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)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      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, \
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      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, \
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      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)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      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)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  774|      0|    return 0;
  775|      3|}
OSSL_PARAM_get_uint64:
  861|  7.23k|{
  862|  7.23k|    if (val == NULL || p == NULL) {
  ------------------
  |  Branch (862:9): [True: 0, False: 7.23k]
  |  Branch (862:24): [True: 0, False: 7.23k]
  ------------------
  863|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  864|      0|        return 0;
  865|      0|    }
  866|       |
  867|  7.23k|    if (p->data == NULL) {
  ------------------
  |  Branch (867:9): [True: 0, False: 7.23k]
  ------------------
  868|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  869|      0|        return 0;
  870|      0|    }
  871|       |
  872|  7.23k|    if (ossl_likely(p->data_type == OSSL_PARAM_UNSIGNED_INTEGER)) {
  ------------------
  |  |   22|  7.23k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 7.23k, False: 0]
  |  |  ------------------
  ------------------
  873|  7.23k|#ifndef OPENSSL_SMALL_FOOTPRINT
  874|  7.23k|        switch (p->data_size) {
  ------------------
  |  Branch (874:17): [True: 7.23k, False: 0]
  ------------------
  875|      0|        case sizeof(uint32_t):
  ------------------
  |  Branch (875:9): [True: 0, False: 7.23k]
  ------------------
  876|      0|            *val = *(const uint32_t *)p->data;
  877|      0|            return 1;
  878|  7.23k|        case sizeof(uint64_t):
  ------------------
  |  Branch (878:9): [True: 7.23k, False: 0]
  ------------------
  879|  7.23k|            *val = *(const uint64_t *)p->data;
  880|  7.23k|            return 1;
  881|  7.23k|        }
  882|      0|#endif
  883|      0|        return general_get_uint(p, val, sizeof(*val));
  884|  7.23k|    } 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, \
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      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, \
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      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, \
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      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)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  931|      0|        return 0;
  932|      0|#endif
  933|      0|    }
  934|      0|    err_bad_type;
  ------------------
  |  |   36|  7.23k|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_OF_INCOMPATIBLE_TYPE)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  935|      0|    return 0;
  936|  7.23k|}
OSSL_PARAM_set_uint64:
  939|  12.9k|{
  940|  12.9k|    if (p == NULL) {
  ------------------
  |  Branch (940:9): [True: 0, False: 12.9k]
  ------------------
  941|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  942|      0|        return 0;
  943|      0|    }
  944|  12.9k|    p->return_size = 0;
  945|       |
  946|  12.9k|    if (p->data_type == OSSL_PARAM_UNSIGNED_INTEGER) {
  ------------------
  |  |  107|  12.9k|#define OSSL_PARAM_UNSIGNED_INTEGER 2
  ------------------
  |  Branch (946:9): [True: 11.5k, False: 1.36k]
  ------------------
  947|  11.5k|#ifndef OPENSSL_SMALL_FOOTPRINT
  948|  11.5k|        if (p->data == NULL) {
  ------------------
  |  Branch (948:13): [True: 0, False: 11.5k]
  ------------------
  949|      0|            p->return_size = sizeof(uint64_t); /* Expected size */
  950|      0|            return 1;
  951|      0|        }
  952|  11.5k|        switch (p->data_size) {
  ------------------
  |  Branch (952:17): [True: 11.5k, False: 0]
  ------------------
  953|      0|        case sizeof(uint32_t):
  ------------------
  |  Branch (953:9): [True: 0, False: 11.5k]
  ------------------
  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, \
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   27|      0|        CRYPTO_R_PARAM_VALUE_TOO_LARGE_FOR_DESTINATION)
  ------------------
  960|      0|            return 0;
  961|  11.5k|        case sizeof(uint64_t):
  ------------------
  |  Branch (961:9): [True: 11.5k, False: 0]
  ------------------
  962|  11.5k|            p->return_size = sizeof(uint64_t);
  963|  11.5k|            *(uint64_t *)p->data = val;
  964|  11.5k|            return 1;
  965|  11.5k|        }
  966|      0|#endif
  967|      0|        return general_set_uint(p, &val, sizeof(val));
  968|  11.5k|    } else if (p->data_type == OSSL_PARAM_INTEGER) {
  ------------------
  |  |  106|  1.36k|#define OSSL_PARAM_INTEGER 1
  ------------------
  |  Branch (968:16): [True: 1.36k, False: 0]
  ------------------
  969|  1.36k|#ifndef OPENSSL_SMALL_FOOTPRINT
  970|  1.36k|        if (p->data == NULL) {
  ------------------
  |  Branch (970:13): [True: 0, False: 1.36k]
  ------------------
  971|      0|            p->return_size = sizeof(int64_t); /* Expected size */
  972|      0|            return 1;
  973|      0|        }
  974|  1.36k|        switch (p->data_size) {
  ------------------
  |  Branch (974:17): [True: 1.36k, False: 0]
  ------------------
  975|  1.36k|        case sizeof(int32_t):
  ------------------
  |  Branch (975:9): [True: 1.36k, False: 0]
  ------------------
  976|  1.36k|            if (val <= INT32_MAX) {
  ------------------
  |  Branch (976:17): [True: 1.36k, False: 0]
  ------------------
  977|  1.36k|                p->return_size = sizeof(int32_t);
  978|  1.36k|                *(int32_t *)p->data = (int32_t)val;
  979|  1.36k|                return 1;
  980|  1.36k|            }
  981|      0|            err_out_of_range;
  ------------------
  |  |   26|  1.36k|    ERR_raise(ERR_LIB_CRYPTO, \
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      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: 1.36k]
  ------------------
  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, \
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   27|      0|        CRYPTO_R_PARAM_VALUE_TOO_LARGE_FOR_DESTINATION)
  ------------------
  990|      0|            return 0;
  991|  1.36k|        }
  992|      0|#endif
  993|      0|        return general_set_uint(p, &val, sizeof(val));
  994|  1.36k|    } 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, \
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      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)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1007|      0|        return 0;
 1008|      0|#endif
 1009|      0|    }
 1010|      0|    err_bad_type;
  ------------------
  |  |   36|  12.9k|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_OF_INCOMPATIBLE_TYPE)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1011|      0|    return 0;
 1012|  12.9k|}
OSSL_PARAM_construct_uint64:
 1015|  2.07k|{
 1016|  2.07k|    return ossl_param_construct(key, OSSL_PARAM_UNSIGNED_INTEGER, buf,
  ------------------
  |  |  107|  2.07k|#define OSSL_PARAM_UNSIGNED_INTEGER 2
  ------------------
 1017|  2.07k|        sizeof(uint64_t));
 1018|  2.07k|}
OSSL_PARAM_get_size_t:
 1021|  5.16k|{
 1022|  5.16k|#ifndef OPENSSL_SMALL_FOOTPRINT
 1023|  5.16k|    switch (sizeof(size_t)) {
  ------------------
  |  Branch (1023:13): [True: 5.16k, Folded]
  ------------------
 1024|      0|    case sizeof(uint32_t):
  ------------------
  |  Branch (1024:5): [True: 0, False: 5.16k]
  ------------------
 1025|      0|        return OSSL_PARAM_get_uint32(p, (uint32_t *)val);
 1026|  5.16k|    case sizeof(uint64_t):
  ------------------
  |  Branch (1026:5): [True: 5.16k, False: 0]
  ------------------
 1027|  5.16k|        return OSSL_PARAM_get_uint64(p, (uint64_t *)val);
 1028|  5.16k|    }
 1029|      0|#endif
 1030|      0|    return general_get_uint(p, val, sizeof(*val));
 1031|  5.16k|}
OSSL_PARAM_set_size_t:
 1034|  12.9k|{
 1035|  12.9k|#ifndef OPENSSL_SMALL_FOOTPRINT
 1036|  12.9k|    switch (sizeof(size_t)) {
  ------------------
  |  Branch (1036:13): [True: 12.9k, Folded]
  ------------------
 1037|      0|    case sizeof(uint32_t):
  ------------------
  |  Branch (1037:5): [True: 0, False: 12.9k]
  ------------------
 1038|      0|        return OSSL_PARAM_set_uint32(p, (uint32_t)val);
 1039|  12.9k|    case sizeof(uint64_t):
  ------------------
  |  Branch (1039:5): [True: 12.9k, False: 0]
  ------------------
 1040|  12.9k|        return OSSL_PARAM_set_uint64(p, (uint64_t)val);
 1041|  12.9k|    }
 1042|      0|#endif
 1043|      0|    return general_set_uint(p, &val, sizeof(val));
 1044|  12.9k|}
OSSL_PARAM_construct_size_t:
 1047|  16.7k|{
 1048|  16.7k|    return ossl_param_construct(key, OSSL_PARAM_UNSIGNED_INTEGER, buf,
  ------------------
  |  |  107|  16.7k|#define OSSL_PARAM_UNSIGNED_INTEGER 2
  ------------------
 1049|  16.7k|        sizeof(size_t));
 1050|  16.7k|}
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|  82.7k|{
 1382|  82.7k|    int ret = get_string_internal(p, (void **)val, &max_len, NULL,
 1383|  82.7k|        OSSL_PARAM_UTF8_STRING);
  ------------------
  |  |  117|  82.7k|#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|  82.7k|    size_t data_length = p->data_size;
 1397|       |
 1398|  82.7k|    if (ret == 0)
  ------------------
  |  Branch (1398:9): [True: 0, False: 82.7k]
  ------------------
 1399|      0|        return 0;
 1400|  82.7k|    if (data_length >= max_len)
  ------------------
  |  Branch (1400:9): [True: 0, False: 82.7k]
  ------------------
 1401|      0|        data_length = OPENSSL_strnlen(p->data, data_length);
 1402|  82.7k|    if (data_length >= max_len) {
  ------------------
  |  Branch (1402:9): [True: 0, False: 82.7k]
  ------------------
 1403|      0|        ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_NO_SPACE_FOR_TERMINATING_NULL);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1404|      0|        return 0; /* No space for a terminating NUL byte */
 1405|      0|    }
 1406|  82.7k|    (*val)[data_length] = '\0';
 1407|       |
 1408|  82.7k|    return ret;
 1409|  82.7k|}
OSSL_PARAM_get_octet_string:
 1413|    684|{
 1414|    684|    return get_string_internal(p, val, &max_len, used_len,
 1415|    684|        OSSL_PARAM_OCTET_STRING);
  ------------------
  |  |  123|    684|#define OSSL_PARAM_OCTET_STRING 5
  ------------------
 1416|    684|}
OSSL_PARAM_set_octet_string:
 1452|    684|{
 1453|    684|    if (p == NULL || val == NULL) {
  ------------------
  |  Branch (1453:9): [True: 0, False: 684]
  |  Branch (1453:22): [True: 0, False: 684]
  ------------------
 1454|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1455|      0|        return 0;
 1456|      0|    }
 1457|    684|    p->return_size = 0;
 1458|    684|    return set_string_internal(p, val, len, OSSL_PARAM_OCTET_STRING);
  ------------------
  |  |  123|    684|#define OSSL_PARAM_OCTET_STRING 5
  ------------------
 1459|    684|}
OSSL_PARAM_construct_utf8_string:
 1463|   207k|{
 1464|   207k|    if (buf != NULL && bsize == 0)
  ------------------
  |  Branch (1464:9): [True: 207k, False: 0]
  |  Branch (1464:24): [True: 207k, False: 0]
  ------------------
 1465|   207k|        bsize = strlen(buf);
 1466|   207k|    return ossl_param_construct(key, OSSL_PARAM_UTF8_STRING, buf, bsize);
  ------------------
  |  |  117|   207k|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
 1467|   207k|}
OSSL_PARAM_construct_octet_string:
 1471|  84.1k|{
 1472|  84.1k|    return ossl_param_construct(key, OSSL_PARAM_OCTET_STRING, buf, bsize);
  ------------------
  |  |  123|  84.1k|#define OSSL_PARAM_OCTET_STRING 5
  ------------------
 1473|  84.1k|}
OSSL_PARAM_construct_end:
 1665|   139k|{
 1666|   139k|    OSSL_PARAM end = OSSL_PARAM_END;
  ------------------
  |  |   25|   139k|    { NULL, 0, NULL, 0, 0 }
  ------------------
 1667|       |
 1668|   139k|    return end;
 1669|   139k|}
OSSL_PARAM_get_utf8_string_ptr:
 1694|   124k|{
 1695|   124k|    return get_string_ptr_internal(p, (const void **)val, NULL,
 1696|   124k|        OSSL_PARAM_UTF8_PTR,
  ------------------
  |  |  141|   124k|#define OSSL_PARAM_UTF8_PTR 6
  ------------------
 1697|   124k|        OSSL_PARAM_UTF8_STRING);
  ------------------
  |  |  117|   124k|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
 1698|   124k|}
params.c:ossl_param_construct:
   70|   587k|{
   71|   587k|    OSSL_PARAM res;
   72|       |
   73|   587k|    res.key = key;
   74|   587k|    res.data_type = data_type;
   75|   587k|    res.data = data;
   76|   587k|    res.data_size = data_size;
   77|   587k|    res.return_size = OSSL_PARAM_UNMODIFIED;
  ------------------
  |  |   22|   587k|#define OSSL_PARAM_UNMODIFIED ((size_t)-1)
  ------------------
   78|   587k|    return res;
   79|   587k|}
params.c:get_string_internal:
 1333|  83.4k|{
 1334|  83.4k|    size_t sz, alloc_sz;
 1335|       |
 1336|  83.4k|    if ((val == NULL && used_len == NULL) || p == NULL) {
  ------------------
  |  Branch (1336:10): [True: 0, False: 83.4k]
  |  Branch (1336:25): [True: 0, False: 0]
  |  Branch (1336:46): [True: 0, False: 83.4k]
  ------------------
 1337|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1338|      0|        return 0;
 1339|      0|    }
 1340|  83.4k|    if (p->data_type != type) {
  ------------------
  |  Branch (1340:9): [True: 0, False: 83.4k]
  ------------------
 1341|      0|        err_bad_type;
  ------------------
  |  |   36|      0|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_OF_INCOMPATIBLE_TYPE)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1342|      0|        return 0;
 1343|      0|    }
 1344|       |
 1345|  83.4k|    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|  83.4k|    alloc_sz = sz + (type == OSSL_PARAM_UTF8_STRING || sz == 0);
  ------------------
  |  |  117|   166k|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (1350:22): [True: 82.7k, False: 684]
  |  Branch (1350:56): [True: 0, False: 684]
  ------------------
 1351|       |
 1352|  83.4k|    if (used_len != NULL)
  ------------------
  |  Branch (1352:9): [True: 684, False: 82.7k]
  ------------------
 1353|    684|        *used_len = sz;
 1354|       |
 1355|  83.4k|    if (p->data == NULL) {
  ------------------
  |  Branch (1355:9): [True: 0, False: 83.4k]
  ------------------
 1356|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1357|      0|        return 0;
 1358|      0|    }
 1359|       |
 1360|  83.4k|    if (val == NULL)
  ------------------
  |  Branch (1360:9): [True: 0, False: 83.4k]
  ------------------
 1361|      0|        return 1;
 1362|       |
 1363|  83.4k|    if (*val == NULL) {
  ------------------
  |  Branch (1363:9): [True: 82.7k, False: 691]
  ------------------
 1364|  82.7k|        char *const q = OPENSSL_malloc(alloc_sz);
  ------------------
  |  |  107|  82.7k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1365|       |
 1366|  82.7k|        if (q == NULL)
  ------------------
  |  Branch (1366:13): [True: 0, False: 82.7k]
  ------------------
 1367|      0|            return 0;
 1368|  82.7k|        *val = q;
 1369|  82.7k|        *max_len = alloc_sz;
 1370|  82.7k|    }
 1371|       |
 1372|  83.4k|    if (*max_len < sz) {
  ------------------
  |  Branch (1372:9): [True: 0, False: 83.4k]
  ------------------
 1373|      0|        err_too_small;
  ------------------
  |  |   34|      0|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_TOO_SMALL_BUFFER)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1374|      0|        return 0;
 1375|      0|    }
 1376|  83.4k|    memcpy(*val, p->data, sz);
 1377|  83.4k|    return 1;
 1378|  83.4k|}
params.c:set_string_internal:
 1420|    684|{
 1421|    684|    if (p->data_type != type) {
  ------------------
  |  Branch (1421:9): [True: 0, False: 684]
  ------------------
 1422|      0|        err_bad_type;
  ------------------
  |  |   36|      0|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_OF_INCOMPATIBLE_TYPE)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1423|      0|        return 0;
 1424|      0|    }
 1425|    684|    p->return_size = len;
 1426|    684|    if (p->data == NULL)
  ------------------
  |  Branch (1426:9): [True: 342, False: 342]
  ------------------
 1427|    342|        return 1;
 1428|    342|    if (p->data_size < len) {
  ------------------
  |  Branch (1428:9): [True: 0, False: 342]
  ------------------
 1429|      0|        err_too_small;
  ------------------
  |  |   34|      0|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_TOO_SMALL_BUFFER)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1430|      0|        return 0;
 1431|      0|    }
 1432|       |
 1433|    342|    memcpy(p->data, val, len);
 1434|       |    /* If possible within the size of p->data, add a NUL terminator byte */
 1435|    342|    if (type == OSSL_PARAM_UTF8_STRING && p->data_size > len)
  ------------------
  |  |  117|    684|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (1435:9): [True: 0, False: 342]
  |  Branch (1435:43): [True: 0, False: 0]
  ------------------
 1436|      0|        ((char *)p->data)[len] = '\0';
 1437|    342|    return 1;
 1438|    342|}
params.c:get_string_ptr_internal:
 1674|   124k|{
 1675|   124k|    if (val == NULL || p == NULL) {
  ------------------
  |  Branch (1675:9): [True: 0, False: 124k]
  |  Branch (1675:24): [True: 0, False: 124k]
  ------------------
 1676|      0|        err_null_argument;
  ------------------
  |  |   38|      0|    ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1677|      0|        return 0;
 1678|      0|    }
 1679|       |
 1680|   124k|    if (p->data_type == ref_type)
  ------------------
  |  Branch (1680:9): [True: 0, False: 124k]
  ------------------
 1681|      0|        return get_ptr_internal_skip_checks(p, (const void **)val, used_len);
 1682|       |
 1683|   124k|    if (p->data_type != type) {
  ------------------
  |  Branch (1683:9): [True: 0, False: 124k]
  ------------------
 1684|      0|        err_bad_type;
  ------------------
  |  |   36|      0|    ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_PARAM_OF_INCOMPATIBLE_TYPE)
  |  |  ------------------
  |  |  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  361|      0|        ERR_set_error)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1685|      0|        return 0;
 1686|      0|    }
 1687|   124k|    if (used_len != NULL)
  ------------------
  |  Branch (1687:9): [True: 0, False: 124k]
  ------------------
 1688|      0|        *used_len = p->data_size;
 1689|   124k|    *val = p->data;
 1690|   124k|    return 1;
 1691|   124k|}

ossl_param_bytes_to_blocks:
   31|  1.36k|{
   32|  1.36k|    return (bytes + OSSL_PARAM_ALIGN_SIZE - 1) / OSSL_PARAM_ALIGN_SIZE;
  ------------------
  |  |   22|  1.36k|#define OSSL_PARAM_ALIGN_SIZE sizeof(OSSL_PARAM_ALIGNED_BLOCK)
  ------------------
                  return (bytes + OSSL_PARAM_ALIGN_SIZE - 1) / OSSL_PARAM_ALIGN_SIZE;
  ------------------
  |  |   22|  1.36k|#define OSSL_PARAM_ALIGN_SIZE sizeof(OSSL_PARAM_ALIGNED_BLOCK)
  ------------------
   33|  1.36k|}
ossl_param_set_secure_block:
   56|    684|{
   57|    684|    last->key = NULL;
   58|    684|    last->data_size = secure_buffer_sz;
   59|    684|    last->data = secure_buffer;
   60|    684|    last->data_type = OSSL_PARAM_ALLOCATED_END;
  ------------------
  |  |   16|    684|#define OSSL_PARAM_ALLOCATED_END 127
  ------------------
   61|    684|}
OSSL_PARAM_clear_free:
  247|    684|{
  248|    684|    if (params != NULL) {
  ------------------
  |  Branch (248:9): [True: 684, False: 0]
  ------------------
  249|    684|        OSSL_PARAM *p;
  250|       |
  251|  1.36k|        for (p = params; p->key != NULL; p++)
  ------------------
  |  Branch (251:26): [True: 684, False: 684]
  ------------------
  252|    684|            ;
  253|    684|        if (p->data_type == OSSL_PARAM_ALLOCATED_END)
  ------------------
  |  |   16|    684|#define OSSL_PARAM_ALLOCATED_END 127
  ------------------
  |  Branch (253:13): [True: 684, False: 0]
  ------------------
  254|    684|            OPENSSL_secure_clear_free(p->data, p->data_size);
  ------------------
  |  |  150|    684|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  255|    684|        if (p->return_size > 0 && p->return_size != OSSL_PARAM_UNMODIFIED)
  ------------------
  |  |   22|    684|#define OSSL_PARAM_UNMODIFIED ((size_t)-1)
  ------------------
  |  Branch (255:13): [True: 684, False: 0]
  |  Branch (255:35): [True: 684, False: 0]
  ------------------
  256|    684|            OPENSSL_cleanse(params, p->return_size);
  257|    684|        OPENSSL_free(params);
  ------------------
  |  |  132|    684|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  258|    684|    }
  259|    684|}

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

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|    342|{
   57|    342|    X509_INFO *xi = NULL;
   58|    342|    char *name = NULL, *header = NULL, *str;
   59|    342|    void *pp;
   60|    342|    unsigned char *data = NULL;
   61|    342|    const unsigned char *p;
   62|    342|    long len, error = 0;
   63|    342|    int ok = 0;
   64|    342|    STACK_OF(X509_INFO) *ret = NULL;
  ------------------
  |  |   33|    342|#define STACK_OF(type) struct stack_st_##type
  ------------------
   65|    342|    unsigned int i, raw, ptype;
   66|    342|    d2i_of_void *d2i = 0;
   67|       |
   68|    342|    if (sk == NULL) {
  ------------------
  |  Branch (68:9): [True: 342, False: 0]
  ------------------
   69|    342|        if ((ret = sk_X509_INFO_new_null()) == NULL) {
  ------------------
  |  |  400|    342|#define sk_X509_INFO_new_null() ((STACK_OF(X509_INFO) *)OPENSSL_sk_set_thunks(OPENSSL_sk_new_null(), sk_X509_INFO_freefunc_thunk))
  ------------------
  |  Branch (69:13): [True: 0, False: 342]
  ------------------
   70|      0|            ERR_raise(ERR_LIB_PEM, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   71|      0|            goto err;
   72|      0|        }
   73|    342|    } else
   74|      0|        ret = sk;
   75|       |
   76|    342|    if ((xi = X509_INFO_new()) == NULL)
  ------------------
  |  Branch (76:9): [True: 0, False: 342]
  ------------------
   77|      0|        goto err;
   78|  41.7k|    for (;;) {
   79|  41.7k|        raw = 0;
   80|  41.7k|        ptype = 0;
   81|  41.7k|        ERR_set_mark();
   82|  41.7k|        i = PEM_read_bio(bp, &name, &header, &data, &len);
   83|  41.7k|        if (i == 0) {
  ------------------
  |  Branch (83:13): [True: 342, False: 41.3k]
  ------------------
   84|    342|            error = ERR_GET_REASON(ERR_peek_last_error());
   85|    342|            if (error == PEM_R_NO_START_LINE) {
  ------------------
  |  |   44|    342|#define PEM_R_NO_START_LINE 108
  ------------------
  |  Branch (85:17): [True: 342, False: 0]
  ------------------
   86|    342|                ERR_pop_to_mark();
   87|    342|                break;
   88|    342|            }
   89|      0|            ERR_clear_last_mark();
   90|      0|            goto err;
   91|    342|        }
   92|  41.3k|        ERR_clear_last_mark();
   93|  82.4k|    start:
   94|  82.4k|        if (strcmp(name, PEM_STRING_X509) == 0
  ------------------
  |  |   36|  82.4k|#define PEM_STRING_X509 "CERTIFICATE"
  ------------------
  |  Branch (94:13): [True: 82.4k, 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|  82.4k|            || strcmp(name, PEM_STRING_X509_TRUSTED) == 0) {
  ------------------
  |  |   37|      0|#define PEM_STRING_X509_TRUSTED "TRUSTED CERTIFICATE"
  ------------------
  |  Branch (96:16): [True: 0, False: 0]
  ------------------
   97|  82.4k|            if (xi->x509 != NULL) {
  ------------------
  |  Branch (97:17): [True: 41.0k, False: 41.3k]
  ------------------
   98|  41.0k|                if (!sk_X509_INFO_push(ret, xi))
  ------------------
  |  |  407|  41.0k|#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: 41.0k]
  ------------------
   99|      0|                    goto err;
  100|  41.0k|                if ((xi = X509_INFO_new()) == NULL)
  ------------------
  |  Branch (100:21): [True: 0, False: 41.0k]
  ------------------
  101|      0|                    goto err;
  102|  41.0k|                goto start;
  103|  41.0k|            }
  104|  41.3k|            if ((strcmp(name, PEM_STRING_X509_TRUSTED) == 0))
  ------------------
  |  |   37|  41.3k|#define PEM_STRING_X509_TRUSTED "TRUSTED CERTIFICATE"
  ------------------
  |  Branch (104:17): [True: 0, False: 41.3k]
  ------------------
  105|      0|                d2i = (D2I_OF(void))d2i_X509_AUX;
  106|  41.3k|            else
  107|  41.3k|                d2i = (D2I_OF(void))d2i_X509;
  108|  41.3k|            xi->x509 = X509_new_ex(libctx, propq);
  109|  41.3k|            if (xi->x509 == NULL)
  ------------------
  |  Branch (109:17): [True: 0, False: 41.3k]
  ------------------
  110|      0|                goto err;
  111|  41.3k|            pp = &(xi->x509);
  112|  41.3k|        } 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|  41.3k|        if (d2i != NULL) {
  ------------------
  |  Branch (153:13): [True: 41.3k, False: 0]
  ------------------
  154|  41.3k|            if (!raw) {
  ------------------
  |  Branch (154:17): [True: 41.3k, False: 0]
  ------------------
  155|  41.3k|                EVP_CIPHER_INFO cipher;
  156|       |
  157|  41.3k|                if (!PEM_get_EVP_CIPHER_INFO(header, &cipher))
  ------------------
  |  Branch (157:21): [True: 0, False: 41.3k]
  ------------------
  158|      0|                    goto err;
  159|  41.3k|                if (!PEM_do_header(&cipher, data, &len, cb, u))
  ------------------
  |  Branch (159:21): [True: 0, False: 41.3k]
  ------------------
  160|      0|                    goto err;
  161|  41.3k|                p = data;
  162|  41.3k|                if (ptype) {
  ------------------
  |  Branch (162:21): [True: 0, False: 41.3k]
  ------------------
  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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  167|      0|                        goto err;
  168|      0|                    }
  169|  41.3k|                } else if (d2i(pp, &p, len) == NULL) {
  ------------------
  |  Branch (169:28): [True: 0, False: 41.3k]
  ------------------
  170|      0|                    ERR_raise(ERR_LIB_PEM, ERR_R_ASN1_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  171|      0|                    goto err;
  172|      0|                }
  173|  41.3k|            } 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|  41.3k|        }
  181|  41.3k|        OPENSSL_free(name);
  ------------------
  |  |  132|  41.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  182|  41.3k|        name = NULL;
  183|  41.3k|        OPENSSL_free(header);
  ------------------
  |  |  132|  41.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  184|  41.3k|        header = NULL;
  185|  41.3k|        OPENSSL_free(data);
  ------------------
  |  |  132|  41.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  186|  41.3k|        data = NULL;
  187|  41.3k|    }
  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|    342|    if ((xi->x509 != NULL) || (xi->crl != NULL) || (xi->x_pkey != NULL) || (xi->enc_data != NULL)) {
  ------------------
  |  Branch (193:9): [True: 342, False: 0]
  |  Branch (193:31): [True: 0, False: 0]
  |  Branch (193:52): [True: 0, False: 0]
  |  Branch (193:76): [True: 0, False: 0]
  ------------------
  194|    342|        if (!sk_X509_INFO_push(ret, xi))
  ------------------
  |  |  407|    342|#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: 342]
  ------------------
  195|      0|            goto err;
  196|    342|        xi = NULL;
  197|    342|    }
  198|    342|    ok = 1;
  199|    342|err:
  200|    342|    X509_INFO_free(xi);
  201|    342|    if (!ok) {
  ------------------
  |  Branch (201:9): [True: 0, False: 342]
  ------------------
  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|    342|    OPENSSL_free(name);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  212|    342|    OPENSSL_free(header);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  213|    342|    OPENSSL_free(data);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  214|    342|    return ret;
  215|    342|}

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

ossl_err_load_PKCS12_strings:
   58|      2|{
   59|      2|#ifndef OPENSSL_NO_ERR
   60|      2|    if (ERR_reason_error_string(PKCS12_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (60:9): [True: 2, False: 0]
  ------------------
   61|      2|        ERR_load_strings_const(PKCS12_str_reasons);
   62|      2|#endif
   63|      2|    return 1;
   64|      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|    349|{
   69|    349|    PROPERTY_DEFN_ELEM elem, *r;
   70|    349|    LHASH_OF(PROPERTY_DEFN_ELEM) *property_defns;
  ------------------
  |  |  156|    349|#define LHASH_OF(type) struct lhash_st_##type
  ------------------
   71|       |
   72|    349|    property_defns = ossl_lib_ctx_get_data(ctx,
   73|    349|        OSSL_LIB_CTX_PROPERTY_DEFN_INDEX);
  ------------------
  |  |   97|    349|#define OSSL_LIB_CTX_PROPERTY_DEFN_INDEX 2
  ------------------
   74|    349|    if (!ossl_assert(property_defns != NULL) || !ossl_lib_ctx_read_lock(ctx))
  ------------------
  |  |   52|    698|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    698|    __FILE__, __LINE__)
  ------------------
  |  Branch (74:9): [True: 0, False: 349]
  |  Branch (74:49): [True: 0, False: 349]
  ------------------
   75|      0|        return NULL;
   76|       |
   77|    349|    elem.prop = prop;
   78|    349|    r = lh_PROPERTY_DEFN_ELEM_retrieve(property_defns, &elem);
   79|    349|    ossl_lib_ctx_unlock(ctx);
   80|    349|    if (r == NULL || !ossl_assert(r->defn != NULL))
  ------------------
  |  |   52|    333|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    333|    __FILE__, __LINE__)
  ------------------
  |  Branch (80:9): [True: 16, False: 333]
  |  Branch (80:22): [True: 0, False: 333]
  ------------------
   81|     16|        return NULL;
   82|    333|    return r->defn;
   83|    349|}
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);
  ------------------
  |  |   97|     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);
  ------------------
  |  |  107|     16|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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|    381|{
   36|    381|    return OPENSSL_LH_strhash(a->prop);
   37|    381|}
defn_cache.c:property_defn_cmp:
   41|    333|{
   42|    333|    return strcmp(a->prop, b->prop);
   43|    333|}

ossl_ctx_global_properties_new:
  142|      2|{
  143|      2|    return OPENSSL_zalloc(sizeof(OSSL_GLOBAL_PROPERTIES));
  ------------------
  |  |  109|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  144|      2|}
ossl_ctx_global_properties:
  148|     59|{
  149|     59|    OSSL_GLOBAL_PROPERTIES *globp;
  150|       |
  151|     59|#if !defined(FIPS_MODULE) && !defined(OPENSSL_NO_AUTOLOAD_CONFIG)
  152|     59|    if (loadconfig && !OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL))
  ------------------
  |  |  511|      0|#define OPENSSL_INIT_LOAD_CONFIG 0x00000040L
  ------------------
  |  Branch (152:9): [True: 0, False: 59]
  |  Branch (152:23): [True: 0, False: 0]
  ------------------
  153|      0|        return NULL;
  154|     59|#endif
  155|     59|    globp = ossl_lib_ctx_get_data(libctx, OSSL_LIB_CTX_GLOBAL_PROPERTIES);
  ------------------
  |  |  111|     59|#define OSSL_LIB_CTX_GLOBAL_PROPERTIES 14
  ------------------
  156|       |
  157|     59|    return globp != NULL ? &globp->list : NULL;
  ------------------
  |  Branch (157:12): [True: 59, False: 0]
  ------------------
  158|     59|}
ossl_method_store_new:
  301|      8|{
  302|      8|    OSSL_METHOD_STORE *res;
  303|       |
  304|      8|    res = OPENSSL_zalloc(sizeof(*res));
  ------------------
  |  |  109|      8|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  305|      8|    if (res != NULL) {
  ------------------
  |  Branch (305:9): [True: 8, False: 0]
  ------------------
  306|      8|        res->ctx = ctx;
  307|      8|        if ((res->algs = stored_algs_new()) == NULL
  ------------------
  |  Branch (307:13): [True: 0, False: 8]
  ------------------
  308|      8|            || (res->biglock = CRYPTO_THREAD_lock_new()) == NULL) {
  ------------------
  |  Branch (308:16): [True: 0, False: 8]
  ------------------
  309|      0|            ossl_method_store_free(res);
  310|      0|            return NULL;
  311|      0|        }
  312|      8|    }
  313|      8|    return res;
  314|      8|}
ossl_method_lock_store:
  327|  5.61k|{
  328|  5.61k|    return store != NULL ? CRYPTO_THREAD_write_lock(store->biglock) : 0;
  ------------------
  |  Branch (328:12): [True: 5.61k, False: 0]
  ------------------
  329|  5.61k|}
ossl_method_unlock_store:
  332|  5.61k|{
  333|  5.61k|    return store != NULL ? CRYPTO_THREAD_unlock(store->biglock) : 0;
  ------------------
  |  Branch (333:12): [True: 5.61k, False: 0]
  ------------------
  334|  5.61k|}
ossl_method_store_add:
  375|    349|{
  376|    349|    STORED_ALGORITHMS *sa;
  377|    349|    ALGORITHM *alg = NULL;
  378|    349|    IMPLEMENTATION *impl;
  379|    349|    int ret = 0;
  380|    349|    int i;
  381|       |
  382|    349|    if (nid <= 0 || method == NULL || store == NULL)
  ------------------
  |  Branch (382:9): [True: 0, False: 349]
  |  Branch (382:21): [True: 0, False: 349]
  |  Branch (382:39): [True: 0, False: 349]
  ------------------
  383|      0|        return 0;
  384|       |
  385|    349|    if (properties == NULL)
  ------------------
  |  Branch (385:9): [True: 0, False: 349]
  ------------------
  386|      0|        properties = "";
  387|       |
  388|    349|    if (!ossl_assert(prov != NULL))
  ------------------
  |  |   52|    349|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    349|    __FILE__, __LINE__)
  ------------------
  |  Branch (388:9): [True: 0, False: 349]
  ------------------
  389|      0|        return 0;
  390|       |
  391|       |    /* Create new entry */
  392|    349|    impl = OPENSSL_malloc(sizeof(*impl));
  ------------------
  |  |  107|    349|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  393|    349|    if (impl == NULL)
  ------------------
  |  Branch (393:9): [True: 0, False: 349]
  ------------------
  394|      0|        return 0;
  395|    349|    impl->method.method = method;
  396|    349|    impl->method.up_ref = method_up_ref;
  397|    349|    impl->method.free = method_destruct;
  398|    349|    if (!ossl_method_up_ref(&impl->method)) {
  ------------------
  |  Branch (398:9): [True: 0, False: 349]
  ------------------
  399|      0|        OPENSSL_free(impl);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  400|      0|        return 0;
  401|      0|    }
  402|    349|    impl->provider = prov;
  403|       |
  404|    349|    sa = stored_algs_shard(store, nid);
  ------------------
  |  |  124|    349|#define stored_algs_shard(store, nid) (&(store)->algs[(nid) & (NUM_SHARDS - 1)])
  |  |  ------------------
  |  |  |  |   32|    349|#define NUM_SHARDS 4
  |  |  ------------------
  ------------------
  405|       |
  406|       |    /* Insert into the hash table if required */
  407|    349|    if (!ossl_property_write_lock(sa)) {
  ------------------
  |  Branch (407:9): [True: 0, False: 349]
  ------------------
  408|      0|        impl_free(impl);
  409|      0|        return 0;
  410|      0|    }
  411|       |
  412|       |    /*
  413|       |     * Flush the alg cache of any implementation that already exists
  414|       |     * for this id.
  415|       |     * This is done to ensure that on the next lookup we go through the
  416|       |     * provider comparison in ossl_method_store_fetch.  If we don't do this
  417|       |     * then this new method won't be given a chance to get selected.
  418|       |     * NOTE: This doesn't actually remove the method from the backing store
  419|       |     * It just ensures that we query the backing store when (re)-adding a
  420|       |     * method to the algorithm cache, in case the one selected by the next
  421|       |     * query selects a different implementation
  422|       |     */
  423|    349|    ossl_method_cache_flush(sa, nid);
  424|       |
  425|       |    /*
  426|       |     * Parse the properties associated with this method, and convert it to a
  427|       |     * property list stored against the implementation for later comparison
  428|       |     * during fetch operations
  429|       |     */
  430|    349|    if ((impl->properties = ossl_prop_defn_get(store->ctx, properties)) == NULL) {
  ------------------
  |  Branch (430:9): [True: 16, False: 333]
  ------------------
  431|     16|        impl->properties = ossl_parse_property(store->ctx, properties);
  432|     16|        if (impl->properties == NULL)
  ------------------
  |  Branch (432:13): [True: 0, False: 16]
  ------------------
  433|      0|            goto err;
  434|     16|        if (!ossl_prop_defn_set(store->ctx, properties, &impl->properties)) {
  ------------------
  |  Branch (434:13): [True: 0, False: 16]
  ------------------
  435|      0|            ossl_property_free(impl->properties);
  436|      0|            impl->properties = NULL;
  437|      0|            goto err;
  438|      0|        }
  439|     16|    }
  440|       |
  441|       |    /*
  442|       |     * Check if we have an algorithm cache already for this nid.  If so use
  443|       |     * it, otherwise, create it, and insert it into the store
  444|       |     */
  445|    349|    alg = ossl_method_store_retrieve(sa, nid);
  446|    349|    if (alg == NULL) {
  ------------------
  |  Branch (446:9): [True: 303, False: 46]
  ------------------
  447|    303|        if ((alg = OPENSSL_zalloc(sizeof(*alg))) == NULL
  ------------------
  |  |  109|    303|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (447:13): [True: 0, False: 303]
  ------------------
  448|    303|            || (alg->impls = sk_IMPLEMENTATION_new_null()) == NULL
  ------------------
  |  Branch (448:16): [True: 0, False: 303]
  ------------------
  449|    303|            || (alg->cache = lh_QUERY_new(&query_hash, &query_cmp)) == NULL)
  ------------------
  |  Branch (449:16): [True: 0, False: 303]
  ------------------
  450|      0|            goto err;
  451|    303|        alg->nid = nid;
  452|    303|        if (!ossl_method_store_insert(sa, alg))
  ------------------
  |  Branch (452:13): [True: 0, False: 303]
  ------------------
  453|      0|            goto err;
  454|    303|        OSSL_TRACE2(QUERY, "Inserted an alg with nid %d into the stored algorithms %p\n",
  ------------------
  |  |  293|    303|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2))
  |  |  ------------------
  |  |  |  |  283|    303|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  455|    303|            nid, (void *)sa);
  456|    303|    }
  457|       |
  458|       |    /* Push onto stack if there isn't one there already */
  459|    426|    for (i = 0; i < sk_IMPLEMENTATION_num(alg->impls); i++) {
  ------------------
  |  Branch (459:17): [True: 77, False: 349]
  ------------------
  460|     77|        const IMPLEMENTATION *tmpimpl = sk_IMPLEMENTATION_value(alg->impls, i);
  461|       |
  462|     77|        if (tmpimpl->provider == impl->provider
  ------------------
  |  Branch (462:13): [True: 77, False: 0]
  ------------------
  463|     77|            && tmpimpl->properties == impl->properties)
  ------------------
  |  Branch (463:16): [True: 0, False: 77]
  ------------------
  464|      0|            break;
  465|     77|    }
  466|       |
  467|    349|    if (i == sk_IMPLEMENTATION_num(alg->impls)
  ------------------
  |  Branch (467:9): [True: 349, False: 0]
  ------------------
  468|    349|        && sk_IMPLEMENTATION_push(alg->impls, impl)) {
  ------------------
  |  Branch (468:12): [True: 349, False: 0]
  ------------------
  469|    349|        ret = 1;
  470|    349|#ifndef FIPS_MODULE
  471|    349|        OSSL_TRACE_BEGIN(QUERY)
  ------------------
  |  |  219|    349|    do {                           \
  |  |  220|    349|        BIO *trc_out = NULL;       \
  |  |  221|    349|        if (0)
  |  |  ------------------
  |  |  |  Branch (221:13): [Folded, False: 349]
  |  |  ------------------
  ------------------
  472|      0|        {
  473|      0|            BIO_printf(trc_out, "Adding to method store "
  474|      0|                                "nid: %d\nproperties: %s\nprovider: %s\n",
  475|      0|                nid, properties,
  476|      0|                ossl_provider_name(prov) == NULL ? "none" : ossl_provider_name(prov));
  ------------------
  |  Branch (476:17): [True: 0, False: 0]
  ------------------
  477|      0|        }
  478|    349|        OSSL_TRACE_END(QUERY);
  ------------------
  |  |  224|    349|    }                            \
  |  |  225|    349|    while (0)
  |  |  ------------------
  |  |  |  Branch (225:12): [Folded, False: 349]
  |  |  ------------------
  ------------------
  479|    349|#endif
  480|    349|    }
  481|    349|    ossl_property_unlock(sa);
  482|    349|    if (ret == 0)
  ------------------
  |  Branch (482:9): [True: 0, False: 349]
  ------------------
  483|      0|        impl_free(impl);
  484|    349|    return ret;
  485|       |
  486|      0|err:
  487|      0|    ossl_property_unlock(sa);
  488|       |    alg_cleanup(0, alg, NULL);
  489|      0|    impl_free(impl);
  490|      0|    return 0;
  491|    349|}
ossl_method_store_do_all:
  645|      6|{
  646|      6|    int i, j;
  647|      6|    int numalgs, numimps;
  648|      6|    STACK_OF(ALGORITHM) *tmpalgs;
  ------------------
  |  |   33|      6|#define STACK_OF(type) struct stack_st_##type
  ------------------
  649|      6|    ALGORITHM *alg;
  650|       |
  651|      6|    if (store == NULL)
  ------------------
  |  Branch (651:9): [True: 0, False: 6]
  ------------------
  652|      0|        return;
  653|       |
  654|     30|    for (int k = 0; k < NUM_SHARDS; ++k) {
  ------------------
  |  |   32|     30|#define NUM_SHARDS 4
  ------------------
  |  Branch (654:21): [True: 24, False: 6]
  ------------------
  655|     24|        STORED_ALGORITHMS *sa = &store->algs[k];
  656|       |
  657|     24|        if (!ossl_property_read_lock(sa))
  ------------------
  |  Branch (657:13): [True: 0, False: 24]
  ------------------
  658|      0|            return;
  659|       |
  660|     24|        tmpalgs = sk_ALGORITHM_new_reserve(NULL,
  661|     24|            (int)ossl_sa_ALGORITHM_num(sa->algs));
  662|     24|        if (tmpalgs == NULL) {
  ------------------
  |  Branch (662:13): [True: 0, False: 24]
  ------------------
  663|      0|            ossl_property_unlock(sa);
  664|      0|            return;
  665|      0|        }
  666|       |
  667|     24|        ossl_sa_ALGORITHM_doall_arg(sa->algs, alg_copy, tmpalgs);
  668|     24|        ossl_property_unlock(sa);
  669|     24|        numalgs = sk_ALGORITHM_num(tmpalgs);
  670|    690|        for (i = 0; i < numalgs; i++) {
  ------------------
  |  Branch (670:21): [True: 666, False: 24]
  ------------------
  671|    666|            alg = sk_ALGORITHM_value(tmpalgs, i);
  672|    666|            numimps = sk_IMPLEMENTATION_num(alg->impls);
  673|  1.51k|            for (j = 0; j < numimps; j++)
  ------------------
  |  Branch (673:25): [True: 850, False: 666]
  ------------------
  674|    850|                alg_do_one(alg, sk_IMPLEMENTATION_value(alg->impls, j), fn, fnarg);
  675|    666|        }
  676|     24|        sk_ALGORITHM_pop_free(tmpalgs, del_tmpalg);
  677|     24|    }
  678|      6|}
ossl_method_store_fetch:
  706|  1.79k|{
  707|  1.79k|    OSSL_PROPERTY_LIST **plp;
  708|  1.79k|    ALGORITHM *alg;
  709|  1.79k|    IMPLEMENTATION *impl, *best_impl = NULL;
  710|  1.79k|    OSSL_PROPERTY_LIST *pq = NULL, *p2 = NULL;
  711|  1.79k|    const OSSL_PROVIDER *prov = prov_rw != NULL ? *prov_rw : NULL;
  ------------------
  |  Branch (711:33): [True: 1.79k, False: 0]
  ------------------
  712|  1.79k|    int ret = 0;
  713|  1.79k|    int j, best = -1, score, optional;
  714|  1.79k|    STORED_ALGORITHMS *sa;
  715|       |
  716|  1.79k|    if (nid <= 0 || method == NULL || store == NULL)
  ------------------
  |  Branch (716:9): [True: 0, False: 1.79k]
  |  Branch (716:21): [True: 0, False: 1.79k]
  |  Branch (716:39): [True: 0, False: 1.79k]
  ------------------
  717|      0|        return 0;
  718|       |
  719|  1.79k|#if !defined(FIPS_MODULE) && !defined(OPENSSL_NO_AUTOLOAD_CONFIG)
  720|  1.79k|    if (ossl_lib_ctx_is_default(store->ctx)
  ------------------
  |  Branch (720:9): [True: 1.79k, False: 0]
  ------------------
  721|  1.79k|        && !OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL))
  ------------------
  |  |  511|  1.79k|#define OPENSSL_INIT_LOAD_CONFIG 0x00000040L
  ------------------
  |  Branch (721:12): [True: 0, False: 1.79k]
  ------------------
  722|      0|        return 0;
  723|  1.79k|#endif
  724|       |
  725|  1.79k|    sa = stored_algs_shard(store, nid);
  ------------------
  |  |  124|  1.79k|#define stored_algs_shard(store, nid) (&(store)->algs[(nid) & (NUM_SHARDS - 1)])
  |  |  ------------------
  |  |  |  |   32|  1.79k|#define NUM_SHARDS 4
  |  |  ------------------
  ------------------
  726|       |
  727|       |    /* This only needs to be a read lock, because the query won't create anything */
  728|  1.79k|    if (!ossl_property_read_lock(sa))
  ------------------
  |  Branch (728:9): [True: 0, False: 1.79k]
  ------------------
  729|      0|        return 0;
  730|       |
  731|  1.79k|    OSSL_TRACE2(QUERY, "Retrieving by nid %d from stored algorithms %p\n",
  ------------------
  |  |  293|  1.79k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2))
  |  |  ------------------
  |  |  |  |  283|  1.79k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  732|  1.79k|        nid, (void *)sa);
  733|  1.79k|    alg = ossl_method_store_retrieve(sa, nid);
  734|  1.79k|    if (alg == NULL) {
  ------------------
  |  Branch (734:9): [True: 1.73k, False: 55]
  ------------------
  735|  1.73k|        ossl_property_unlock(sa);
  736|  1.73k|        OSSL_TRACE2(QUERY, "Failed to retrieve by nid %d from stored algorithms %p\n",
  ------------------
  |  |  293|  1.73k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2))
  |  |  ------------------
  |  |  |  |  283|  1.73k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  737|  1.73k|            nid, (void *)sa);
  738|  1.73k|        return 0;
  739|  1.73k|    }
  740|     55|    OSSL_TRACE2(QUERY, "Retrieved by nid %d from stored algorithms %p\n",
  ------------------
  |  |  293|     55|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2))
  |  |  ------------------
  |  |  |  |  283|     55|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
  741|     55|        nid, (void *)sa);
  742|       |
  743|       |    /*
  744|       |     * If a property query string is provided, convert it to an
  745|       |     * OSSL_PROPERTY_LIST structure
  746|       |     */
  747|     55|    if (prop_query != NULL)
  ------------------
  |  Branch (747:9): [True: 55, False: 0]
  ------------------
  748|     55|        p2 = pq = ossl_parse_query(store->ctx, prop_query, 0);
  749|       |
  750|       |    /*
  751|       |     * If the library context has default properties specified
  752|       |     * then merge those with the properties passed to this function
  753|       |     */
  754|     55|    plp = ossl_ctx_global_properties(store->ctx, 0);
  755|     55|    if (plp != NULL && *plp != NULL) {
  ------------------
  |  Branch (755:9): [True: 55, False: 0]
  |  Branch (755:24): [True: 0, False: 55]
  ------------------
  756|      0|        if (pq == NULL) {
  ------------------
  |  Branch (756:13): [True: 0, False: 0]
  ------------------
  757|      0|            pq = *plp;
  758|      0|        } else {
  759|      0|            p2 = ossl_property_merge(pq, *plp);
  760|      0|            ossl_property_free(pq);
  761|      0|            if (p2 == NULL)
  ------------------
  |  Branch (761:17): [True: 0, False: 0]
  ------------------
  762|      0|                goto fin;
  763|      0|            pq = p2;
  764|      0|        }
  765|      0|    }
  766|       |
  767|       |    /*
  768|       |     * Search for a provider that provides this implementation.
  769|       |     * If the requested provider is NULL, then any provider will do,
  770|       |     * otherwise we should try to find the one that matches the requested
  771|       |     * provider.  Note that providers are given implicit preference via the
  772|       |     * ordering of the implementation stack
  773|       |     */
  774|     55|    if (pq == NULL) {
  ------------------
  |  Branch (774:9): [True: 0, False: 55]
  ------------------
  775|      0|        for (j = 0; j < sk_IMPLEMENTATION_num(alg->impls); j++) {
  ------------------
  |  Branch (775:21): [True: 0, False: 0]
  ------------------
  776|      0|            impl = sk_IMPLEMENTATION_value(alg->impls, j);
  777|      0|            if (impl != NULL
  ------------------
  |  Branch (777:17): [True: 0, False: 0]
  ------------------
  778|      0|                && (prov == NULL || impl->provider == prov)) {
  ------------------
  |  Branch (778:21): [True: 0, False: 0]
  |  Branch (778:37): [True: 0, False: 0]
  ------------------
  779|      0|                best_impl = impl;
  780|      0|                ret = 1;
  781|      0|                break;
  782|      0|            }
  783|      0|        }
  784|      0|        goto fin;
  785|      0|    }
  786|       |
  787|       |    /*
  788|       |     * If there are optional properties specified
  789|       |     * then run the search again, and select the provider that matches the
  790|       |     * most options
  791|       |     */
  792|     55|    optional = ossl_property_has_optional(pq);
  793|     55|    for (j = 0; j < sk_IMPLEMENTATION_num(alg->impls); j++) {
  ------------------
  |  Branch (793:17): [True: 55, False: 0]
  ------------------
  794|     55|        impl = sk_IMPLEMENTATION_value(alg->impls, j);
  795|     55|        if (impl != NULL
  ------------------
  |  Branch (795:13): [True: 55, False: 0]
  ------------------
  796|     55|            && (prov == NULL || impl->provider == prov)) {
  ------------------
  |  Branch (796:17): [True: 53, False: 2]
  |  Branch (796:33): [True: 2, False: 0]
  ------------------
  797|     55|            score = ossl_property_match_count(pq, impl->properties);
  798|     55|            if (score > best) {
  ------------------
  |  Branch (798:17): [True: 55, False: 0]
  ------------------
  799|     55|                best_impl = impl;
  800|     55|                best = score;
  801|     55|                ret = 1;
  802|     55|                if (!optional)
  ------------------
  |  Branch (802:21): [True: 55, False: 0]
  ------------------
  803|     55|                    goto fin;
  804|     55|            }
  805|     55|        }
  806|     55|    }
  807|     55|fin:
  808|     55|    if (ret && ossl_method_up_ref(&best_impl->method)) {
  ------------------
  |  Branch (808:9): [True: 55, False: 0]
  |  Branch (808:16): [True: 55, False: 0]
  ------------------
  809|     55|        *method = best_impl->method.method;
  810|     55|        if (prov_rw != NULL)
  ------------------
  |  Branch (810:13): [True: 55, False: 0]
  ------------------
  811|     55|            *prov_rw = best_impl->provider;
  812|     55|    } else {
  813|      0|        ret = 0;
  814|      0|    }
  815|       |
  816|     55|#ifndef FIPS_MODULE
  817|     55|    OSSL_TRACE_BEGIN(QUERY)
  ------------------
  |  |  219|     55|    do {                           \
  |  |  220|     55|        BIO *trc_out = NULL;       \
  |  |  221|     55|        if (0)
  |  |  ------------------
  |  |  |  Branch (221:13): [Folded, False: 55]
  |  |  ------------------
  ------------------
  818|      0|    {
  819|      0|        char buf[512];
  820|      0|        size_t size;
  821|       |
  822|      0|        size = ossl_property_list_to_string(NULL, pq, buf, 512);
  823|      0|        BIO_printf(trc_out, "method store query with properties %s "
  824|      0|                            "resolves to provider %s\n",
  825|      0|            size == 0 ? "none" : buf,
  ------------------
  |  Branch (825:13): [True: 0, False: 0]
  ------------------
  826|      0|            best_impl == NULL ? "none" : ossl_provider_name(best_impl->provider));
  ------------------
  |  Branch (826:13): [True: 0, False: 0]
  ------------------
  827|      0|    }
  828|     55|    OSSL_TRACE_END(QUERY);
  ------------------
  |  |  224|     55|    }                            \
  |  |  225|     55|    while (0)
  |  |  ------------------
  |  |  |  Branch (225:12): [Folded, False: 55]
  |  |  ------------------
  ------------------
  829|     55|#endif
  830|       |
  831|     55|    ossl_property_unlock(sa);
  832|     55|    ossl_property_free(p2);
  833|     55|    return ret;
  834|     55|}
ossl_method_store_cache_get:
  944|  34.6k|{
  945|  34.6k|    ALGORITHM *alg;
  946|  34.6k|    QUERY elem, *r;
  947|  34.6k|    int res = 0;
  948|  34.6k|    STORED_ALGORITHMS *sa;
  949|       |
  950|  34.6k|    if (nid <= 0 || store == NULL || prop_query == NULL)
  ------------------
  |  Branch (950:9): [True: 0, False: 34.6k]
  |  Branch (950:21): [True: 0, False: 34.6k]
  |  Branch (950:38): [True: 0, False: 34.6k]
  ------------------
  951|      0|        return 0;
  952|       |
  953|  34.6k|    sa = stored_algs_shard(store, nid);
  ------------------
  |  |  124|  34.6k|#define stored_algs_shard(store, nid) (&(store)->algs[(nid) & (NUM_SHARDS - 1)])
  |  |  ------------------
  |  |  |  |   32|  34.6k|#define NUM_SHARDS 4
  |  |  ------------------
  ------------------
  954|  34.6k|    if (!ossl_property_read_lock(sa))
  ------------------
  |  Branch (954:9): [True: 0, False: 34.6k]
  ------------------
  955|      0|        return 0;
  956|  34.6k|    alg = ossl_method_store_retrieve(sa, nid);
  957|  34.6k|    if (alg == NULL)
  ------------------
  |  Branch (957:9): [True: 1.73k, False: 32.9k]
  ------------------
  958|  1.73k|        goto err;
  959|       |
  960|  32.9k|    elem.query = prop_query;
  961|  32.9k|    elem.provider = prov;
  962|  32.9k|    r = lh_QUERY_retrieve(alg->cache, &elem);
  963|  32.9k|    if (r == NULL)
  ------------------
  |  Branch (963:9): [True: 49, False: 32.8k]
  ------------------
  964|     49|        goto err;
  965|  32.8k|    if (ossl_method_up_ref(&r->method)) {
  ------------------
  |  Branch (965:9): [True: 32.8k, False: 0]
  ------------------
  966|  32.8k|        *method = r->method.method;
  967|  32.8k|        res = 1;
  968|  32.8k|    }
  969|  34.6k|err:
  970|  34.6k|    ossl_property_unlock(sa);
  971|  34.6k|    return res;
  972|  32.8k|}
ossl_method_store_cache_set:
  978|     55|{
  979|     55|    QUERY elem, *old, *p = NULL;
  980|     55|    ALGORITHM *alg;
  981|     55|    STORED_ALGORITHMS *sa;
  982|     55|    size_t len;
  983|     55|    int res = 1;
  984|       |
  985|     55|    if (nid <= 0 || store == NULL || prop_query == NULL)
  ------------------
  |  Branch (985:9): [True: 0, False: 55]
  |  Branch (985:21): [True: 0, False: 55]
  |  Branch (985:38): [True: 0, False: 55]
  ------------------
  986|      0|        return 0;
  987|       |
  988|     55|    if (!ossl_assert(prov != NULL))
  ------------------
  |  |   52|     55|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|     55|    __FILE__, __LINE__)
  ------------------
  |  Branch (988:9): [True: 0, False: 55]
  ------------------
  989|      0|        return 0;
  990|       |
  991|     55|    sa = stored_algs_shard(store, nid);
  ------------------
  |  |  124|     55|#define stored_algs_shard(store, nid) (&(store)->algs[(nid) & (NUM_SHARDS - 1)])
  |  |  ------------------
  |  |  |  |   32|     55|#define NUM_SHARDS 4
  |  |  ------------------
  ------------------
  992|     55|    if (!ossl_property_write_lock(sa))
  ------------------
  |  Branch (992:9): [True: 0, False: 55]
  ------------------
  993|      0|        return 0;
  994|     55|    if (sa->cache_need_flush)
  ------------------
  |  Branch (994:9): [True: 0, False: 55]
  ------------------
  995|      0|        ossl_method_cache_flush_some(sa);
  996|     55|    alg = ossl_method_store_retrieve(sa, nid);
  997|     55|    if (alg == NULL)
  ------------------
  |  Branch (997:9): [True: 0, False: 55]
  ------------------
  998|      0|        goto err;
  999|       |
 1000|     55|    if (method == NULL) {
  ------------------
  |  Branch (1000:9): [True: 0, False: 55]
  ------------------
 1001|      0|        elem.query = prop_query;
 1002|      0|        elem.provider = prov;
 1003|      0|        if ((old = lh_QUERY_delete(alg->cache, &elem)) != NULL) {
  ------------------
  |  Branch (1003:13): [True: 0, False: 0]
  ------------------
 1004|      0|            impl_cache_free(old);
 1005|      0|            sa->cache_nelem--;
 1006|      0|        }
 1007|      0|        goto end;
 1008|      0|    }
 1009|     55|    p = OPENSSL_malloc(sizeof(*p) + (len = strlen(prop_query)));
  ------------------
  |  |  107|     55|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1010|     55|    if (p != NULL) {
  ------------------
  |  Branch (1010:9): [True: 55, False: 0]
  ------------------
 1011|     55|        p->query = p->body;
 1012|     55|        p->provider = prov;
 1013|     55|        p->method.method = method;
 1014|     55|        p->method.up_ref = method_up_ref;
 1015|     55|        p->method.free = method_destruct;
 1016|     55|        if (!ossl_method_up_ref(&p->method))
  ------------------
  |  Branch (1016:13): [True: 0, False: 55]
  ------------------
 1017|      0|            goto err;
 1018|     55|        memcpy((char *)p->query, prop_query, len + 1);
 1019|     55|        if ((old = lh_QUERY_insert(alg->cache, p)) != NULL) {
  ------------------
  |  Branch (1019:13): [True: 0, False: 55]
  ------------------
 1020|      0|            impl_cache_free(old);
 1021|      0|            goto end;
 1022|      0|        }
 1023|     55|        if (!lh_QUERY_error(alg->cache)) {
  ------------------
  |  Branch (1023:13): [True: 55, False: 0]
  ------------------
 1024|     55|            if (++sa->cache_nelem >= IMPL_CACHE_FLUSH_THRESHOLD)
  ------------------
  |  |   44|     55|#define IMPL_CACHE_FLUSH_THRESHOLD (CACHE_SIZE / NUM_SHARDS)
  |  |  ------------------
  |  |  |  |   36|     55|#define CACHE_SIZE 512
  |  |  ------------------
  |  |               #define IMPL_CACHE_FLUSH_THRESHOLD (CACHE_SIZE / NUM_SHARDS)
  |  |  ------------------
  |  |  |  |   32|     55|#define NUM_SHARDS 4
  |  |  ------------------
  ------------------
  |  Branch (1024:17): [True: 0, False: 55]
  ------------------
 1025|      0|                sa->cache_need_flush = 1;
 1026|     55|            goto end;
 1027|     55|        }
 1028|      0|        ossl_method_free(&p->method);
 1029|      0|    }
 1030|      0|err:
 1031|      0|    res = 0;
 1032|      0|    OPENSSL_free(p);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1033|     55|end:
 1034|     55|    ossl_property_unlock(sa);
 1035|     55|    return res;
 1036|      0|}
property.c:stored_algs_new:
  271|      8|{
  272|      8|    STORED_ALGORITHMS *ret;
  273|       |
  274|      8|    ret = OPENSSL_calloc(NUM_SHARDS, sizeof(STORED_ALGORITHMS));
  ------------------
  |  |  113|      8|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  275|      8|    if (ret == NULL)
  ------------------
  |  Branch (275:9): [True: 0, False: 8]
  ------------------
  276|      0|        return NULL;
  277|       |
  278|     40|    for (int i = 0; i < NUM_SHARDS; ++i) {
  ------------------
  |  |   32|     40|#define NUM_SHARDS 4
  ------------------
  |  Branch (278:21): [True: 32, False: 8]
  ------------------
  279|     32|        ret[i].algs = ossl_sa_ALGORITHM_new();
  280|     32|        if (ret[i].algs == NULL)
  ------------------
  |  Branch (280:13): [True: 0, False: 32]
  ------------------
  281|      0|            goto err;
  282|       |
  283|     32|        ret[i].lock = CRYPTO_THREAD_lock_new();
  284|     32|        if (ret[i].lock == NULL)
  ------------------
  |  Branch (284:13): [True: 0, False: 32]
  ------------------
  285|      0|            goto err;
  286|     32|    }
  287|       |
  288|      8|    return ret;
  289|       |
  290|      0|err:
  291|      0|    stored_algs_free(ret);
  292|       |
  293|       |    return NULL;
  294|      8|}
property.c:ossl_method_up_ref:
  180|  33.3k|{
  181|  33.3k|    return (*method->up_ref)(method->method);
  182|  33.3k|}
property.c:ossl_property_write_lock:
  195|    404|{
  196|    404|    return p != NULL ? CRYPTO_THREAD_write_lock(p->lock) : 0;
  ------------------
  |  Branch (196:12): [True: 404, False: 0]
  ------------------
  197|    404|}
property.c:ossl_method_store_retrieve:
  337|  37.2k|{
  338|  37.2k|    return ossl_sa_ALGORITHM_get(sa->algs, nid);
  339|  37.2k|}
property.c:query_hash:
  205|  32.9k|{
  206|  32.9k|    return OPENSSL_LH_strhash(a->query);
  207|  32.9k|}
property.c:query_cmp:
  210|  32.8k|{
  211|  32.8k|    int res = strcmp(a->query, b->query);
  212|       |
  213|  32.8k|    if (res == 0 && a->provider != NULL && b->provider != NULL)
  ------------------
  |  Branch (213:9): [True: 32.8k, False: 0]
  |  Branch (213:21): [True: 32.8k, False: 0]
  |  Branch (213:44): [True: 4, False: 32.8k]
  ------------------
  214|      4|        res = b->provider > a->provider ? 1
  ------------------
  |  Branch (214:15): [True: 0, False: 4]
  ------------------
  215|      4|            : b->provider < a->provider ? -1
  ------------------
  |  Branch (215:15): [True: 0, False: 4]
  ------------------
  216|      4|                                        : 0;
  217|  32.8k|    return res;
  218|  32.8k|}
property.c:ossl_method_store_insert:
  342|    303|{
  343|    303|    return ossl_sa_ALGORITHM_set(sa->algs, alg->nid, alg);
  344|    303|}
property.c:ossl_property_unlock:
  200|  36.8k|{
  201|  36.8k|    return p != 0 ? CRYPTO_THREAD_unlock(p->lock) : 0;
  ------------------
  |  Branch (201:12): [True: 36.8k, False: 0]
  ------------------
  202|  36.8k|}
property.c:ossl_method_cache_flush_alg:
  838|     46|{
  839|     46|    sa->cache_nelem -= lh_QUERY_num_items(alg->cache);
  840|     46|    impl_cache_flush_alg(0, alg);
  841|     46|}
property.c:ossl_property_read_lock:
  190|  36.4k|{
  191|  36.4k|    return p != NULL ? CRYPTO_THREAD_read_lock(p->lock) : 0;
  ------------------
  |  Branch (191:12): [True: 36.4k, False: 0]
  ------------------
  192|  36.4k|}
property.c:alg_copy:
  624|    666|{
  625|    666|    STACK_OF(ALGORITHM) *newalg = arg;
  ------------------
  |  |   33|    666|#define STACK_OF(type) struct stack_st_##type
  ------------------
  626|       |
  627|    666|    alg = OPENSSL_memdup(alg, sizeof(ALGORITHM));
  ------------------
  |  |  134|    666|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  628|    666|    if (alg == NULL)
  ------------------
  |  Branch (628:9): [True: 0, False: 666]
  ------------------
  629|      0|        return;
  630|       |
  631|    666|    alg->impls = sk_IMPLEMENTATION_dup(alg->impls);
  632|       |
  633|    666|    (void)sk_ALGORITHM_push(newalg, alg);
  634|    666|}
property.c:alg_do_one:
  619|    850|{
  620|    850|    fn(alg->nid, impl->method.method, fnarg);
  621|    850|}
property.c:del_tmpalg:
  637|    666|{
  638|    666|    sk_IMPLEMENTATION_free(alg->impls);
  639|    666|    OPENSSL_free(alg);
  ------------------
  |  |  132|    666|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  640|    666|}
property.c:ossl_method_cache_flush:
  844|    349|{
  845|    349|    ALGORITHM *alg = ossl_method_store_retrieve(sa, nid);
  846|       |
  847|    349|    if (alg != NULL)
  ------------------
  |  Branch (847:9): [True: 46, False: 303]
  ------------------
  848|     46|        ossl_method_cache_flush_alg(sa, alg);
  849|    349|}
property.c:impl_cache_flush_alg:
  237|     46|{
  238|     46|    lh_QUERY_doall(alg->cache, &impl_cache_free);
  239|     46|    lh_QUERY_flush(alg->cache);
  240|     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));
  ------------------
  |  |  107|    357|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                          ERR_raise_data(ERR_LIB_PROP, PROP_R_PARSE_FAILED,
  ------------------
  |  |   99|      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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                              ERR_raise_data(ERR_LIB_PROP, PROP_R_NO_VALUE,
  ------------------
  |  |   99|      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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_PROP, PROP_R_TRAILING_CHARACTERS,
  ------------------
  |  |   99|      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);
  ------------------
  |  |  132|     92|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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|     55|{
  407|     55|    STACK_OF(OSSL_PROPERTY_DEFINITION) *sk;
  ------------------
  |  |   33|     55|#define STACK_OF(type) struct stack_st_##type
  ------------------
  408|     55|    OSSL_PROPERTY_LIST *res = NULL;
  409|     55|    OSSL_PROPERTY_DEFINITION *prop = NULL;
  410|     55|    int done;
  411|       |
  412|     55|    if (s == NULL || (sk = sk_OSSL_PROPERTY_DEFINITION_new(&pd_compare)) == NULL)
  ------------------
  |  Branch (412:9): [True: 0, False: 55]
  |  Branch (412:22): [True: 0, False: 55]
  ------------------
  413|      0|        return NULL;
  414|       |
  415|     55|    s = skip_space(s);
  416|     55|    done = *s == '\0';
  417|     55|    while (!done) {
  ------------------
  |  Branch (417:12): [True: 0, False: 55]
  ------------------
  418|      0|        prop = OPENSSL_malloc(sizeof(*prop));
  ------------------
  |  |  107|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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|     55|    if (*s != '\0') {
  ------------------
  |  Branch (454:9): [True: 0, False: 55]
  ------------------
  455|      0|        ERR_raise_data(ERR_LIB_PROP, PROP_R_TRAILING_CHARACTERS,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_PROP, PROP_R_TRAILING_CHARACTERS,
  ------------------
  |  |   99|      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|     55|    res = stack_to_property_list(ctx, sk);
  460|       |
  461|     55|err:
  462|     55|    OPENSSL_free(prop);
  ------------------
  |  |  132|     55|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  463|     55|    sk_OSSL_PROPERTY_DEFINITION_pop_free(sk, &pd_free);
  464|     55|    return res;
  465|     55|}
ossl_property_match_count:
  473|     55|{
  474|     55|    const OSSL_PROPERTY_DEFINITION *const q = query->properties;
  475|     55|    const OSSL_PROPERTY_DEFINITION *const d = defn->properties;
  476|     55|    int i = 0, j = 0, matches = 0;
  477|     55|    OSSL_PROPERTY_OPER oper;
  478|       |
  479|     55|    while (i < query->num_properties) {
  ------------------
  |  Branch (479:12): [True: 0, False: 55]
  ------------------
  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|     55|    return matches;
  527|     55|}
ossl_property_free:
  530|     57|{
  531|     57|    OPENSSL_free(p);
  ------------------
  |  |  132|     57|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  532|     57|}
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|    265|{
  290|    265|    const OSSL_PROPERTY_DEFINITION *pd1 = *p1;
  291|    265|    const OSSL_PROPERTY_DEFINITION *pd2 = *p2;
  292|       |
  293|    265|    if (pd1->name_idx < pd2->name_idx)
  ------------------
  |  Branch (293:9): [True: 265, False: 0]
  ------------------
  294|    265|        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.48k|{
   27|  1.48k|    while (ossl_isspace(*s))
  ------------------
  |  |   82|  1.48k|#define ossl_isspace(c) (ossl_ctype_check((c), CTYPE_MASK_space))
  |  |  ------------------
  |  |  |  |   30|  1.48k|#define CTYPE_MASK_space 0x8
  |  |  ------------------
  |  |  |  Branch (82:25): [True: 0, False: 1.48k]
  |  |  ------------------
  ------------------
   28|      0|        s++;
   29|  1.48k|    return s;
   30|  1.48k|}
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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                          ERR_raise_data(ERR_LIB_PROP, PROP_R_NOT_AN_IDENTIFIER,
  ------------------
  |  |   99|      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);
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_PROP, PROP_R_NAME_TOO_LONG, "HERE-->%s", *t);
  ------------------
  |  |   99|      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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_PROP, PROP_R_NOT_AN_ASCII_CHARACTER,
  ------------------
  |  |   99|      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);
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_PROP, PROP_R_STRING_TOO_LONG, "HERE-->%s", *t);
  ------------------
  |  |   99|      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|    147|{
  315|    147|    const int n = sk_OSSL_PROPERTY_DEFINITION_num(sk);
  316|    147|    OSSL_PROPERTY_LIST *r;
  317|    147|    OSSL_PROPERTY_IDX prev_name_idx = 0;
  318|    147|    int i;
  319|       |
  320|    147|    r = OPENSSL_malloc(sizeof(*r)
  ------------------
  |  |  107|    294|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |  |  Branch (107:19): [True: 55, False: 92]
  |  |  ------------------
  ------------------
  321|    147|        + (n <= 0 ? 0 : n - 1) * sizeof(r->properties[0]));
  322|    147|    if (r != NULL) {
  ------------------
  |  Branch (322:9): [True: 147, False: 0]
  ------------------
  323|    147|        sk_OSSL_PROPERTY_DEFINITION_sort(sk);
  324|       |
  325|    147|        r->has_optional = 0;
  326|    504|        for (i = 0; i < n; i++) {
  ------------------
  |  Branch (326:21): [True: 357, False: 147]
  ------------------
  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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  333|      0|                ERR_raise_data(ERR_LIB_PROP, PROP_R_PARSE_FAILED,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                              ERR_raise_data(ERR_LIB_PROP, PROP_R_PARSE_FAILED,
  ------------------
  |  |   99|      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|    147|        r->num_properties = n;
  341|    147|    }
  342|    147|    return r;
  343|    147|}
property_parse.c:pd_free:
  301|    357|{
  302|    357|    OPENSSL_free(pd);
  ------------------
  |  |  132|    357|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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|       |        sizeof(*list->properties), &property_idx_cmp, NULL, 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|     55|{
   63|     55|    return query->has_optional ? 1 : 0;
  ------------------
  |  Branch (63:12): [True: 0, False: 55]
  ------------------
   64|     55|}
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));
  ------------------
  |  |  109|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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();
  ------------------
  |  |  285|      2|#define sk_OPENSSL_CSTRING_new_null() ((STACK_OF(OPENSSL_CSTRING) *)OPENSSL_sk_set_thunks(OPENSSL_sk_new_null(), sk_OPENSSL_CSTRING_freefunc_thunk))
  ------------------
  110|      2|    propdata->prop_valuelist = sk_OPENSSL_CSTRING_new_null();
  ------------------
  |  |  285|      2|#define sk_OPENSSL_CSTRING_new_null() ((STACK_OF(OPENSSL_CSTRING) *)OPENSSL_sk_set_thunks(OPENSSL_sk_new_null(), sk_OPENSSL_CSTRING_freefunc_thunk))
  ------------------
  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);
  ------------------
  |  |   98|    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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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) {
  ------------------
  |  |  292|     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);
  ------------------
  |  |  294|      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);
  ------------------
  |  |  107|     30|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |   98|     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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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
  ------------------
  |  |  283|     52|#define sk_OPENSSL_CSTRING_value(sk, idx) ((const char *)OPENSSL_sk_value(ossl_check_const_OPENSSL_CSTRING_sk_type(sk), (idx)))
  |  |  ------------------
  |  |  |  Branch (283: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|   236k|{
  105|   236k|    return ossl_provider_ctx(prov);
  106|   236k|}
OSSL_PROVIDER_get_capabilities:
  122|    694|{
  123|    694|    return ossl_provider_get_capabilities(prov, capability, cb, arg);
  124|    694|}
OSSL_PROVIDER_do_all:
  156|    694|{
  157|    694|    return ossl_provider_doall_activated(ctx, cb, cbdata);
  158|    694|}

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

ossl_prov_conf_ctx_new:
   31|      2|{
   32|      2|    PROVIDER_CONF_GLOBAL *pcgbl = OPENSSL_zalloc(sizeof(*pcgbl));
  ------------------
  |  |  109|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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));
  ------------------
  |  |  109|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  511|      0|#define OPENSSL_INIT_LOAD_CONFIG 0x00000040L
  ------------------
  419|      0|        }
  420|      3|#endif
  421|       |
  422|      3|        tmpl.name = (char *)name;
  423|      3|        if (!CRYPTO_THREAD_read_lock(store->lock))
  ------------------
  |  Branch (423:13): [True: 0, False: 3]
  ------------------
  424|      0|            return NULL;
  425|      3|        if (!sk_OSSL_PROVIDER_is_sorted(store->providers)) {
  ------------------
  |  Branch (425:13): [True: 0, False: 3]
  ------------------
  426|      0|            CRYPTO_THREAD_unlock(store->lock);
  427|      0|            if (!CRYPTO_THREAD_write_lock(store->lock))
  ------------------
  |  Branch (427:17): [True: 0, False: 0]
  ------------------
  428|      0|                return NULL;
  429|      0|            if (!sk_OSSL_PROVIDER_is_sorted(store->providers))
  ------------------
  |  Branch (429:17): [True: 0, False: 0]
  ------------------
  430|      0|                sk_OSSL_PROVIDER_sort(store->providers);
  431|      0|        }
  432|      3|        if ((i = sk_OSSL_PROVIDER_find(store->providers, &tmpl)) != -1)
  ------------------
  |  Branch (432:13): [True: 3, False: 0]
  ------------------
  433|      3|            prov = sk_OSSL_PROVIDER_value(store->providers, i);
  434|      3|        CRYPTO_THREAD_unlock(store->lock);
  435|      3|        if (prov != NULL && !ossl_provider_up_ref(prov))
  ------------------
  |  Branch (435:13): [True: 3, False: 0]
  |  Branch (435:29): [True: 0, False: 3]
  ------------------
  436|      0|            prov = NULL;
  437|      3|    }
  438|       |
  439|      3|    return prov;
  440|      3|}
ossl_provider_up_ref:
  486|    352|{
  487|    352|    int ref = 0;
  488|       |
  489|    352|    if (CRYPTO_UP_REF(&prov->refcnt, &ref) <= 0)
  ------------------
  |  Branch (489:9): [True: 0, False: 352]
  ------------------
  490|      0|        return 0;
  491|       |
  492|    352|#ifndef FIPS_MODULE
  493|    352|    if (prov->ischild) {
  ------------------
  |  Branch (493:9): [True: 0, False: 352]
  ------------------
  494|      0|        if (!ossl_provider_up_ref_parent(prov, 0)) {
  ------------------
  |  Branch (494:13): [True: 0, False: 0]
  ------------------
  495|      0|            ossl_provider_free(prov);
  496|      0|            return 0;
  497|      0|        }
  498|      0|    }
  499|    352|#endif
  500|       |
  501|    352|    return ref;
  502|    352|}
ossl_provider_free:
  739|      3|{
  740|      3|    if (prov != NULL) {
  ------------------
  |  Branch (740:9): [True: 3, False: 0]
  ------------------
  741|      3|        int ref = 0;
  742|       |
  743|      3|        CRYPTO_DOWN_REF(&prov->refcnt, &ref);
  744|       |
  745|       |        /*
  746|       |         * When the refcount drops to zero, we clean up the provider.
  747|       |         * Note that this also does teardown, which may seem late,
  748|       |         * considering that init happens on first activation.  However,
  749|       |         * there may be other structures hanging on to the provider after
  750|       |         * the last deactivation and may therefore need full access to the
  751|       |         * provider's services.  Therefore, we deinit late.
  752|       |         */
  753|      3|        if (ref == 0) {
  ------------------
  |  Branch (753:13): [True: 0, False: 3]
  ------------------
  754|      0|            if (prov->flag_initialized) {
  ------------------
  |  Branch (754:17): [True: 0, False: 0]
  ------------------
  755|      0|                ossl_provider_teardown(prov);
  756|      0|#ifndef OPENSSL_NO_ERR
  757|      0|#ifndef FIPS_MODULE
  758|      0|                if (prov->error_strings != NULL) {
  ------------------
  |  Branch (758:21): [True: 0, False: 0]
  ------------------
  759|      0|                    ERR_unload_strings(prov->error_lib, prov->error_strings);
  760|      0|                    OPENSSL_free(prov->error_strings);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  761|      0|                    prov->error_strings = NULL;
  762|      0|                }
  763|      0|#endif
  764|      0|#endif
  765|      0|                OPENSSL_free(prov->operation_bits);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  766|      0|                prov->operation_bits = NULL;
  767|      0|                prov->operation_bits_sz = 0;
  768|      0|                prov->flag_initialized = 0;
  769|      0|            }
  770|       |
  771|      0|#ifndef FIPS_MODULE
  772|       |            /*
  773|       |             * We deregister thread handling whether or not the provider was
  774|       |             * initialized. If init was attempted but was not successful then
  775|       |             * the provider may still have registered a thread handler.
  776|       |             */
  777|      0|            ossl_init_thread_deregister(prov);
  778|      0|            DSO_free(prov->module);
  779|      0|#endif
  780|      0|            OPENSSL_free(prov->name);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  781|      0|            OPENSSL_free(prov->path);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  782|      0|            sk_INFOPAIR_pop_free(prov->parameters, infopair_free);
  783|      0|            CRYPTO_THREAD_lock_free(prov->opbits_lock);
  784|      0|            CRYPTO_THREAD_lock_free(prov->flag_lock);
  785|      0|            CRYPTO_THREAD_lock_free(prov->activatecnt_lock);
  786|      0|            CRYPTO_FREE_REF(&prov->refcnt);
  787|      0|            OPENSSL_free(prov);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  788|      0|        }
  789|      3|#ifndef FIPS_MODULE
  790|      3|        else if (prov->ischild) {
  ------------------
  |  Branch (790:18): [True: 0, False: 3]
  ------------------
  791|      0|            ossl_provider_free_parent(prov, 0);
  792|      0|        }
  793|      3|#endif
  794|      3|    }
  795|      3|}
OSSL_PROVIDER_get_conf_parameters:
  845|  1.02k|{
  846|  1.02k|    int i;
  847|       |
  848|  1.02k|    if (prov->parameters == NULL)
  ------------------
  |  Branch (848:9): [True: 0, False: 1.02k]
  ------------------
  849|      0|        return 1;
  850|       |
  851|  1.02k|    for (i = 0; i < sk_INFOPAIR_num(prov->parameters); i++) {
  ------------------
  |  Branch (851:17): [True: 0, False: 1.02k]
  ------------------
  852|      0|        INFOPAIR *pair = sk_INFOPAIR_value(prov->parameters, i);
  853|      0|        OSSL_PARAM *p = OSSL_PARAM_locate(params, pair->name);
  854|       |
  855|      0|        if (p != NULL
  ------------------
  |  Branch (855:13): [True: 0, False: 0]
  ------------------
  856|      0|            && !OSSL_PARAM_set_utf8_ptr(p, pair->value))
  ------------------
  |  Branch (856:16): [True: 0, False: 0]
  ------------------
  857|      0|            return 0;
  858|      0|    }
  859|  1.02k|    return 1;
  860|  1.02k|}
ossl_provider_ctx:
 1432|   239k|{
 1433|   239k|    return prov != NULL ? prov->provctx : NULL;
  ------------------
  |  Branch (1433:12): [True: 239k, False: 0]
  ------------------
 1434|   239k|}
ossl_provider_doall_activated:
 1533|  6.30k|{
 1534|  6.30k|    int ret = 0, curr, max, ref = 0;
 1535|  6.30k|    struct provider_store_st *store = get_provider_store(ctx);
 1536|  6.30k|    STACK_OF(OSSL_PROVIDER) *provs = NULL;
  ------------------
  |  |   33|  6.30k|#define STACK_OF(type) struct stack_st_##type
  ------------------
 1537|       |
 1538|  6.30k|#if !defined(FIPS_MODULE) && !defined(OPENSSL_NO_AUTOLOAD_CONFIG)
 1539|       |    /*
 1540|       |     * Make sure any providers are loaded from config before we try to use
 1541|       |     * them.
 1542|       |     */
 1543|  6.30k|    if (ossl_lib_ctx_is_default(ctx))
  ------------------
  |  Branch (1543:9): [True: 6.30k, False: 0]
  ------------------
 1544|  6.30k|        OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL);
  ------------------
  |  |  511|  6.30k|#define OPENSSL_INIT_LOAD_CONFIG 0x00000040L
  ------------------
 1545|  6.30k|#endif
 1546|       |
 1547|  6.30k|    if (store == NULL)
  ------------------
  |  Branch (1547:9): [True: 0, False: 6.30k]
  ------------------
 1548|      0|        return 1;
 1549|  6.30k|    if (!provider_activate_fallbacks(store))
  ------------------
  |  Branch (1549:9): [True: 0, False: 6.30k]
  ------------------
 1550|      0|        return 0;
 1551|       |
 1552|       |    /*
 1553|       |     * Under lock, grab a copy of the provider list and up_ref each
 1554|       |     * provider so that they don't disappear underneath us.
 1555|       |     */
 1556|  6.30k|    if (!CRYPTO_THREAD_read_lock(store->lock))
  ------------------
  |  Branch (1556:9): [True: 0, False: 6.30k]
  ------------------
 1557|      0|        return 0;
 1558|  6.30k|    provs = sk_OSSL_PROVIDER_dup(store->providers);
 1559|  6.30k|    if (provs == NULL) {
  ------------------
  |  Branch (1559:9): [True: 0, False: 6.30k]
  ------------------
 1560|      0|        CRYPTO_THREAD_unlock(store->lock);
 1561|      0|        return 0;
 1562|      0|    }
 1563|  6.30k|    max = sk_OSSL_PROVIDER_num(provs);
 1564|       |    /*
 1565|       |     * We work backwards through the stack so that we can safely delete items
 1566|       |     * as we go.
 1567|       |     */
 1568|  12.6k|    for (curr = max - 1; curr >= 0; curr--) {
  ------------------
  |  Branch (1568:26): [True: 6.30k, False: 6.30k]
  ------------------
 1569|  6.30k|        OSSL_PROVIDER *prov = sk_OSSL_PROVIDER_value(provs, curr);
 1570|       |
 1571|  6.30k|        if (!CRYPTO_THREAD_read_lock(prov->flag_lock))
  ------------------
  |  Branch (1571:13): [True: 0, False: 6.30k]
  ------------------
 1572|      0|            goto err_unlock;
 1573|  6.30k|        if (prov->flag_activated) {
  ------------------
  |  Branch (1573:13): [True: 6.30k, False: 0]
  ------------------
 1574|       |            /*
 1575|       |             * We call CRYPTO_UP_REF directly rather than ossl_provider_up_ref
 1576|       |             * to avoid upping the ref count on the parent provider, which we
 1577|       |             * must not do while holding locks.
 1578|       |             */
 1579|  6.30k|            if (CRYPTO_UP_REF(&prov->refcnt, &ref) <= 0) {
  ------------------
  |  Branch (1579:17): [True: 0, False: 6.30k]
  ------------------
 1580|      0|                CRYPTO_THREAD_unlock(prov->flag_lock);
 1581|      0|                goto err_unlock;
 1582|      0|            }
 1583|       |            /*
 1584|       |             * It's already activated, but we up the activated count to ensure
 1585|       |             * it remains activated until after we've called the user callback.
 1586|       |             * In theory this could mean the parent provider goes inactive,
 1587|       |             * whilst still activated in the child for a short period. That's ok.
 1588|       |             */
 1589|  6.30k|            if (!CRYPTO_atomic_add(&prov->activatecnt, 1, &ref,
  ------------------
  |  Branch (1589:17): [True: 0, False: 6.30k]
  ------------------
 1590|  6.30k|                    prov->activatecnt_lock)) {
 1591|      0|                CRYPTO_DOWN_REF(&prov->refcnt, &ref);
 1592|      0|                CRYPTO_THREAD_unlock(prov->flag_lock);
 1593|      0|                goto err_unlock;
 1594|      0|            }
 1595|  6.30k|        } else {
 1596|      0|            sk_OSSL_PROVIDER_delete(provs, curr);
 1597|      0|            max--;
 1598|      0|        }
 1599|  6.30k|        CRYPTO_THREAD_unlock(prov->flag_lock);
 1600|  6.30k|    }
 1601|  6.30k|    CRYPTO_THREAD_unlock(store->lock);
 1602|       |
 1603|       |    /*
 1604|       |     * Now, we sweep through all providers not under lock
 1605|       |     */
 1606|  12.6k|    for (curr = 0; curr < max; curr++) {
  ------------------
  |  Branch (1606:20): [True: 6.30k, False: 6.30k]
  ------------------
 1607|  6.30k|        OSSL_PROVIDER *prov = sk_OSSL_PROVIDER_value(provs, curr);
 1608|       |
 1609|  6.30k|        if (!cb(prov, cbdata)) {
  ------------------
  |  Branch (1609:13): [True: 0, False: 6.30k]
  ------------------
 1610|      0|            curr = -1;
 1611|      0|            goto finish;
 1612|      0|        }
 1613|  6.30k|    }
 1614|  6.30k|    curr = -1;
 1615|       |
 1616|  6.30k|    ret = 1;
 1617|  6.30k|    goto finish;
 1618|       |
 1619|      0|err_unlock:
 1620|      0|    CRYPTO_THREAD_unlock(store->lock);
 1621|  6.30k|finish:
 1622|       |    /*
 1623|       |     * The pop_free call doesn't do what we want on an error condition. We
 1624|       |     * either start from the first item in the stack, or part way through if
 1625|       |     * we only processed some of the items.
 1626|       |     */
 1627|  12.6k|    for (curr++; curr < max; curr++) {
  ------------------
  |  Branch (1627:18): [True: 6.30k, False: 6.30k]
  ------------------
 1628|  6.30k|        OSSL_PROVIDER *prov = sk_OSSL_PROVIDER_value(provs, curr);
 1629|       |
 1630|  6.30k|        if (!CRYPTO_atomic_add(&prov->activatecnt, -1, &ref,
  ------------------
  |  Branch (1630:13): [True: 0, False: 6.30k]
  ------------------
 1631|  6.30k|                prov->activatecnt_lock)) {
 1632|      0|            ret = 0;
 1633|      0|            continue;
 1634|      0|        }
 1635|  6.30k|        if (ref < 1) {
  ------------------
  |  Branch (1635:13): [True: 0, False: 6.30k]
  ------------------
 1636|       |            /*
 1637|       |             * Looks like we need to deactivate properly. We could just have
 1638|       |             * done this originally, but it involves taking a write lock so
 1639|       |             * we avoid it. We up the count again and do a full deactivation
 1640|       |             */
 1641|      0|            if (CRYPTO_atomic_add(&prov->activatecnt, 1, &ref,
  ------------------
  |  Branch (1641:17): [True: 0, False: 0]
  ------------------
 1642|      0|                    prov->activatecnt_lock))
 1643|      0|                provider_deactivate(prov, 0, 1);
 1644|      0|            else
 1645|      0|                ret = 0;
 1646|      0|        }
 1647|       |        /*
 1648|       |         * As above where we did the up-ref, we don't call ossl_provider_free
 1649|       |         * to avoid making upcalls. There should always be at least one ref
 1650|       |         * to the provider in the store, so this should never drop to 0.
 1651|       |         */
 1652|  6.30k|        if (!CRYPTO_DOWN_REF(&prov->refcnt, &ref)) {
  ------------------
  |  Branch (1652:13): [True: 0, False: 6.30k]
  ------------------
 1653|      0|            ret = 0;
 1654|      0|            continue;
 1655|      0|        }
 1656|       |        /*
 1657|       |         * Not much we can do if this assert ever fails. So we don't use
 1658|       |         * ossl_assert here.
 1659|       |         */
 1660|  6.30k|        assert(ref > 0);
  ------------------
  |  Branch (1660:9): [True: 0, False: 6.30k]
  |  Branch (1660:9): [True: 6.30k, False: 0]
  ------------------
 1661|  6.30k|    }
 1662|  6.30k|    sk_OSSL_PROVIDER_free(provs);
 1663|  6.30k|    return ret;
 1664|  6.30k|}
ossl_provider_name:
 1688|      3|{
 1689|      3|    return prov->name;
 1690|      3|}
ossl_provider_libctx:
 1725|   306k|{
 1726|   306k|    return prov != NULL ? prov->libctx : NULL;
  ------------------
  |  Branch (1726:12): [True: 306k, False: 0]
  ------------------
 1727|   306k|}
ossl_provider_get_capabilities:
 1913|    694|{
 1914|    694|    if (prov->get_capabilities != NULL) {
  ------------------
  |  Branch (1914:9): [True: 694, False: 0]
  ------------------
 1915|    694|#ifndef FIPS_MODULE
 1916|    694|        OSSL_TRACE_BEGIN(PROVIDER)
  ------------------
  |  |  219|    694|    do {                           \
  |  |  220|    694|        BIO *trc_out = NULL;       \
  |  |  221|    694|        if (0)
  |  |  ------------------
  |  |  |  Branch (221:13): [Folded, False: 694]
  |  |  ------------------
  ------------------
 1917|      0|        {
 1918|      0|            BIO_printf(trc_out,
 1919|      0|                "(provider %s) Calling get_capabilities "
 1920|      0|                "with capabilities %s\n",
 1921|      0|                prov->name,
 1922|      0|                capability == NULL ? "none" : capability);
  ------------------
  |  Branch (1922:17): [True: 0, False: 0]
  ------------------
 1923|      0|        }
 1924|    694|        OSSL_TRACE_END(PROVIDER);
  ------------------
  |  |  224|    694|    }                            \
  |  |  225|    694|    while (0)
  |  |  ------------------
  |  |  |  Branch (225:12): [Folded, False: 694]
  |  |  ------------------
  ------------------
 1925|    694|#endif
 1926|    694|        return prov->get_capabilities(prov->provctx, capability, cb, arg);
 1927|    694|    }
 1928|      0|    return 1;
 1929|    694|}
ossl_provider_query_operation:
 1952|  5.61k|{
 1953|  5.61k|    const OSSL_ALGORITHM *res;
 1954|       |
 1955|  5.61k|    if (prov->query_operation == NULL) {
  ------------------
  |  Branch (1955:9): [True: 0, False: 5.61k]
  ------------------
 1956|      0|#ifndef FIPS_MODULE
 1957|      0|        OSSL_TRACE_BEGIN(PROVIDER)
  ------------------
  |  |  219|      0|    do {                           \
  |  |  220|      0|        BIO *trc_out = NULL;       \
  |  |  221|      0|        if (0)
  |  |  ------------------
  |  |  |  Branch (221:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1958|      0|        {
 1959|      0|            BIO_printf(trc_out, "provider %s lacks query operation!\n",
 1960|      0|                prov->name);
 1961|      0|        }
 1962|      0|        OSSL_TRACE_END(PROVIDER);
  ------------------
  |  |  224|      0|    }                            \
  |  |  225|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (225:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1963|      0|#endif
 1964|      0|        return NULL;
 1965|      0|    }
 1966|       |
 1967|  5.61k|    res = prov->query_operation(prov->provctx, operation_id, no_cache);
 1968|  5.61k|#ifndef FIPS_MODULE
 1969|  5.61k|    OSSL_TRACE_BEGIN(PROVIDER)
  ------------------
  |  |  219|  5.61k|    do {                           \
  |  |  220|  5.61k|        BIO *trc_out = NULL;       \
  |  |  221|  5.61k|        if (0)
  |  |  ------------------
  |  |  |  Branch (221:13): [Folded, False: 5.61k]
  |  |  ------------------
  ------------------
 1970|      0|    {
 1971|      0|        const OSSL_ALGORITHM *idx;
 1972|      0|        if (res != NULL) {
  ------------------
  |  Branch (1972:13): [True: 0, False: 0]
  ------------------
 1973|      0|            BIO_printf(trc_out,
 1974|      0|                "(provider %s) Calling query, available algs are:\n", prov->name);
 1975|       |
 1976|      0|            for (idx = res; idx->algorithm_names != NULL; idx++) {
  ------------------
  |  Branch (1976:29): [True: 0, False: 0]
  ------------------
 1977|      0|                BIO_printf(trc_out,
 1978|      0|                    "(provider %s) names %s, prop_def %s, desc %s\n",
 1979|      0|                    prov->name,
 1980|      0|                    idx->algorithm_names == NULL ? "none" : idx->algorithm_names,
  ------------------
  |  Branch (1980:21): [True: 0, False: 0]
  ------------------
 1981|      0|                    idx->property_definition == NULL ? "none" : idx->property_definition,
  ------------------
  |  Branch (1981:21): [True: 0, False: 0]
  ------------------
 1982|      0|                    idx->algorithm_description == NULL ? "none" : idx->algorithm_description);
  ------------------
  |  Branch (1982:21): [True: 0, False: 0]
  ------------------
 1983|      0|            }
 1984|      0|        } else {
 1985|      0|            BIO_printf(trc_out, "(provider %s) query_operation failed\n", prov->name);
 1986|      0|        }
 1987|      0|    }
 1988|  5.61k|    OSSL_TRACE_END(PROVIDER);
  ------------------
  |  |  224|  5.61k|    }                            \
  |  |  225|  5.61k|    while (0)
  |  |  ------------------
  |  |  |  Branch (225:12): [Folded, False: 5.61k]
  |  |  ------------------
  ------------------
 1989|  5.61k|#endif
 1990|       |
 1991|       |#if defined(OPENSSL_NO_CACHED_FETCH)
 1992|       |    /* Forcing the non-caching of queries */
 1993|       |    if (no_cache != NULL)
 1994|       |        *no_cache = 1;
 1995|       |#endif
 1996|  5.61k|    return res;
 1997|  5.61k|}
ossl_provider_unquery_operation:
 2016|  5.61k|{
 2017|  5.61k|    if (prov->unquery_operation != NULL) {
  ------------------
  |  Branch (2017:9): [True: 0, False: 5.61k]
  ------------------
 2018|      0|#ifndef FIPS_MODULE
 2019|      0|        OSSL_TRACE_BEGIN(PROVIDER)
  ------------------
  |  |  219|      0|    do {                           \
  |  |  220|      0|        BIO *trc_out = NULL;       \
  |  |  221|      0|        if (0)
  |  |  ------------------
  |  |  |  Branch (221:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2020|      0|        {
 2021|      0|            BIO_printf(trc_out,
 2022|      0|                "(provider %s) Calling unquery"
 2023|      0|                " with operation %d\n",
 2024|      0|                prov->name,
 2025|      0|                operation_id);
 2026|      0|        }
 2027|      0|        OSSL_TRACE_END(PROVIDER);
  ------------------
  |  |  224|      0|    }                            \
  |  |  225|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (225:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2028|      0|#endif
 2029|      0|        prov->unquery_operation(prov->provctx, operation_id, algs);
 2030|      0|    }
 2031|  5.61k|}
ossl_provider_set_operation_bit:
 2034|      7|{
 2035|      7|    size_t byte = bitnum / 8;
 2036|      7|    unsigned char bit = (1 << (bitnum % 8)) & 0xFF;
 2037|       |
 2038|      7|    if (!CRYPTO_THREAD_write_lock(provider->opbits_lock))
  ------------------
  |  Branch (2038:9): [True: 0, False: 7]
  ------------------
 2039|      0|        return 0;
 2040|      7|    if (provider->operation_bits_sz <= byte) {
  ------------------
  |  Branch (2040:9): [True: 3, False: 4]
  ------------------
 2041|      3|        unsigned char *tmp = OPENSSL_realloc(provider->operation_bits,
  ------------------
  |  |  121|      3|    CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 2042|      3|            byte + 1);
 2043|       |
 2044|      3|        if (tmp == NULL) {
  ------------------
  |  Branch (2044:13): [True: 0, False: 3]
  ------------------
 2045|      0|            CRYPTO_THREAD_unlock(provider->opbits_lock);
 2046|      0|            return 0;
 2047|      0|        }
 2048|      3|        provider->operation_bits = tmp;
 2049|      3|        memset(provider->operation_bits + provider->operation_bits_sz,
 2050|      3|            '\0', byte + 1 - provider->operation_bits_sz);
 2051|      3|        provider->operation_bits_sz = byte + 1;
 2052|      3|    }
 2053|      7|    provider->operation_bits[byte] |= bit;
 2054|      7|    CRYPTO_THREAD_unlock(provider->opbits_lock);
 2055|      7|    return 1;
 2056|      7|}
ossl_provider_test_operation_bit:
 2060|  5.61k|{
 2061|  5.61k|    size_t byte = bitnum / 8;
 2062|  5.61k|    unsigned char bit = (1 << (bitnum % 8)) & 0xFF;
 2063|       |
 2064|  5.61k|    if (!ossl_assert(result != NULL)) {
  ------------------
  |  |   52|  5.61k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  5.61k|    __FILE__, __LINE__)
  ------------------
  |  Branch (2064:9): [True: 0, False: 5.61k]
  ------------------
 2065|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 2066|      0|        return 0;
 2067|      0|    }
 2068|       |
 2069|  5.61k|    *result = 0;
 2070|  5.61k|    if (!CRYPTO_THREAD_read_lock(provider->opbits_lock))
  ------------------
  |  Branch (2070:9): [True: 0, False: 5.61k]
  ------------------
 2071|      0|        return 0;
 2072|  5.61k|    if (provider->operation_bits_sz > byte)
  ------------------
  |  Branch (2072:9): [True: 5.61k, False: 3]
  ------------------
 2073|  5.61k|        *result = ((provider->operation_bits[byte] & bit) != 0);
 2074|  5.61k|    CRYPTO_THREAD_unlock(provider->opbits_lock);
 2075|  5.61k|    return 1;
 2076|  5.61k|}
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|  6.30k|{
  331|  6.30k|    struct provider_store_st *store = NULL;
  332|       |
  333|  6.30k|    store = ossl_lib_ctx_get_data(libctx, OSSL_LIB_CTX_PROVIDER_STORE_INDEX);
  ------------------
  |  |   96|  6.30k|#define OSSL_LIB_CTX_PROVIDER_STORE_INDEX 1
  ------------------
  334|  6.30k|    if (store == NULL)
  ------------------
  |  Branch (334:9): [True: 0, False: 6.30k]
  ------------------
  335|       |        ERR_raise(ERR_LIB_CRYPTO, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  336|  6.30k|    return store;
  337|  6.30k|}
provider_core.c:provider_new:
  450|      1|{
  451|      1|    OSSL_PROVIDER *prov = NULL;
  452|       |
  453|      1|    if ((prov = OPENSSL_zalloc(sizeof(*prov))) == NULL)
  ------------------
  |  |  109|      1|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (453:9): [True: 0, False: 1]
  ------------------
  454|      0|        return NULL;
  455|      1|    if (!CRYPTO_NEW_REF(&prov->refcnt, 1)) {
  ------------------
  |  Branch (455:9): [True: 0, False: 1]
  ------------------
  456|      0|        OPENSSL_free(prov);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  457|      0|        return NULL;
  458|      0|    }
  459|      1|    if ((prov->activatecnt_lock = CRYPTO_THREAD_lock_new()) == NULL) {
  ------------------
  |  Branch (459:9): [True: 0, False: 1]
  ------------------
  460|      0|        ossl_provider_free(prov);
  461|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  462|      0|        return NULL;
  463|      0|    }
  464|       |
  465|      1|    if ((prov->opbits_lock = CRYPTO_THREAD_lock_new()) == NULL
  ------------------
  |  Branch (465:9): [True: 0, False: 1]
  ------------------
  466|      1|        || (prov->flag_lock = CRYPTO_THREAD_lock_new()) == NULL
  ------------------
  |  Branch (466:12): [True: 0, False: 1]
  ------------------
  467|      1|        || (prov->parameters = sk_INFOPAIR_deep_copy(parameters,
  ------------------
  |  Branch (467:12): [True: 0, False: 1]
  ------------------
  468|      1|                infopair_copy,
  469|      1|                infopair_free))
  470|      1|            == NULL) {
  471|      0|        ossl_provider_free(prov);
  472|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  473|      0|        return NULL;
  474|      0|    }
  475|      1|    if ((prov->name = OPENSSL_strdup(name)) == NULL) {
  ------------------
  |  |  136|      1|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (475:9): [True: 0, False: 1]
  ------------------
  476|      0|        ossl_provider_free(prov);
  477|      0|        return NULL;
  478|      0|    }
  479|       |
  480|      1|    prov->init_function = init_function;
  481|       |
  482|      1|    return prov;
  483|      1|}
provider_core.c:provider_activate:
 1262|      1|{
 1263|      1|    int count = -1;
 1264|      1|    struct provider_store_st *store;
 1265|      1|    int ret = 1;
 1266|       |
 1267|      1|    store = prov->store;
 1268|       |    /*
 1269|       |     * If the provider hasn't been added to the store, then we don't need
 1270|       |     * any locks because we've not shared it with other threads.
 1271|       |     */
 1272|      1|    if (store == NULL) {
  ------------------
  |  Branch (1272:9): [True: 1, False: 0]
  ------------------
 1273|      1|        lock = 0;
 1274|      1|        if (!provider_init(prov))
  ------------------
  |  Branch (1274:13): [True: 0, False: 1]
  ------------------
 1275|      0|            return -1;
 1276|      1|    }
 1277|       |
 1278|      1|#ifndef FIPS_MODULE
 1279|      1|    if (prov->random_bytes != NULL
  ------------------
  |  Branch (1279:9): [True: 0, False: 1]
  ------------------
 1280|      0|        && !ossl_rand_check_random_provider_on_load(prov->libctx, prov))
  ------------------
  |  Branch (1280:12): [True: 0, False: 0]
  ------------------
 1281|      0|        return -1;
 1282|       |
 1283|      1|    if (prov->ischild && upcalls && !ossl_provider_up_ref_parent(prov, 1))
  ------------------
  |  Branch (1283:9): [True: 0, False: 1]
  |  Branch (1283:26): [True: 0, False: 0]
  |  Branch (1283:37): [True: 0, False: 0]
  ------------------
 1284|      0|        return -1;
 1285|      1|#endif
 1286|       |
 1287|      1|    if (lock && !CRYPTO_THREAD_read_lock(store->lock)) {
  ------------------
  |  Branch (1287:9): [True: 0, False: 1]
  |  Branch (1287:17): [True: 0, False: 0]
  ------------------
 1288|      0|#ifndef FIPS_MODULE
 1289|      0|        if (prov->ischild && upcalls)
  ------------------
  |  Branch (1289:13): [True: 0, False: 0]
  |  Branch (1289:30): [True: 0, False: 0]
  ------------------
 1290|      0|            ossl_provider_free_parent(prov, 1);
 1291|      0|#endif
 1292|      0|        return -1;
 1293|      0|    }
 1294|       |
 1295|      1|    if (lock && !CRYPTO_THREAD_write_lock(prov->flag_lock)) {
  ------------------
  |  Branch (1295:9): [True: 0, False: 1]
  |  Branch (1295:17): [True: 0, False: 0]
  ------------------
 1296|      0|        CRYPTO_THREAD_unlock(store->lock);
 1297|      0|#ifndef FIPS_MODULE
 1298|      0|        if (prov->ischild && upcalls)
  ------------------
  |  Branch (1298:13): [True: 0, False: 0]
  |  Branch (1298:30): [True: 0, False: 0]
  ------------------
 1299|      0|            ossl_provider_free_parent(prov, 1);
 1300|      0|#endif
 1301|      0|        return -1;
 1302|      0|    }
 1303|      1|    if (CRYPTO_atomic_add(&prov->activatecnt, 1, &count, prov->activatecnt_lock)) {
  ------------------
  |  Branch (1303:9): [True: 1, False: 0]
  ------------------
 1304|      1|        prov->flag_activated = 1;
 1305|       |
 1306|      1|        if (count == 1 && store != NULL) {
  ------------------
  |  Branch (1306:13): [True: 1, False: 0]
  |  Branch (1306:27): [True: 0, False: 1]
  ------------------
 1307|      0|            ret = create_provider_children(prov);
 1308|      0|        }
 1309|      1|    }
 1310|      1|    if (lock) {
  ------------------
  |  Branch (1310:9): [True: 0, False: 1]
  ------------------
 1311|      0|        CRYPTO_THREAD_unlock(prov->flag_lock);
 1312|      0|        CRYPTO_THREAD_unlock(store->lock);
 1313|       |        /*
 1314|       |         * This can be done outside the lock. We tolerate other threads getting
 1315|       |         * the wrong result briefly when creating OSSL_DECODER_CTXs.
 1316|       |         */
 1317|      0|#ifndef FIPS_MODULE
 1318|      0|        if (count == 1)
  ------------------
  |  Branch (1318:13): [True: 0, False: 0]
  ------------------
 1319|      0|            ossl_decoder_cache_flush(prov->libctx);
 1320|      0|#endif
 1321|      0|    }
 1322|       |
 1323|      1|    if (!ret)
  ------------------
  |  Branch (1323:9): [True: 0, False: 1]
  ------------------
 1324|      0|        return -1;
 1325|       |
 1326|      1|    return count;
 1327|      1|}
provider_core.c:provider_init:
  954|      1|{
  955|      1|    const OSSL_DISPATCH *provider_dispatch = NULL;
  956|      1|    void *tmp_provctx = NULL; /* safety measure */
  957|      1|#ifndef OPENSSL_NO_ERR
  958|      1|#ifndef FIPS_MODULE
  959|      1|    OSSL_FUNC_provider_get_reason_strings_fn *p_get_reason_strings = NULL;
  960|      1|#endif
  961|      1|#endif
  962|      1|    int ok = 0;
  963|       |
  964|      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 (964:9): [True: 0, False: 1]
  ------------------
  965|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  966|      0|        goto end;
  967|      0|    }
  968|       |
  969|       |    /*
  970|       |     * If the init function isn't set, it indicates that this provider is
  971|       |     * a loadable module.
  972|       |     */
  973|      1|    if (prov->init_function == NULL) {
  ------------------
  |  Branch (973:9): [True: 0, False: 1]
  ------------------
  974|       |#ifdef FIPS_MODULE
  975|       |        goto end;
  976|       |#else
  977|      0|        if (prov->module == NULL) {
  ------------------
  |  Branch (977:13): [True: 0, False: 0]
  ------------------
  978|      0|            char *allocated_path = NULL;
  979|      0|            const char *module_path = NULL;
  980|      0|            char *merged_path = NULL;
  981|      0|            const char *load_dir = NULL;
  982|      0|            char *allocated_load_dir = NULL;
  983|      0|            struct provider_store_st *store;
  984|       |
  985|      0|            if ((prov->module = DSO_new()) == NULL) {
  ------------------
  |  Branch (985:17): [True: 0, False: 0]
  ------------------
  986|       |                /* DSO_new() generates an error already */
  987|      0|                goto end;
  988|      0|            }
  989|       |
  990|      0|            if ((store = get_provider_store(prov->libctx)) == NULL
  ------------------
  |  Branch (990:17): [True: 0, False: 0]
  ------------------
  991|      0|                || !CRYPTO_THREAD_read_lock(store->default_path_lock))
  ------------------
  |  Branch (991:20): [True: 0, False: 0]
  ------------------
  992|      0|                goto end;
  993|       |
  994|      0|            if (store->default_path != NULL) {
  ------------------
  |  Branch (994:17): [True: 0, False: 0]
  ------------------
  995|      0|                allocated_load_dir = OPENSSL_strdup(store->default_path);
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  996|      0|                CRYPTO_THREAD_unlock(store->default_path_lock);
  997|      0|                if (allocated_load_dir == NULL)
  ------------------
  |  Branch (997:21): [True: 0, False: 0]
  ------------------
  998|      0|                    goto end;
  999|      0|                load_dir = allocated_load_dir;
 1000|      0|            } else {
 1001|      0|                CRYPTO_THREAD_unlock(store->default_path_lock);
 1002|      0|            }
 1003|       |
 1004|      0|            if (load_dir == NULL) {
  ------------------
  |  Branch (1004:17): [True: 0, False: 0]
  ------------------
 1005|      0|                load_dir = ossl_safe_getenv("OPENSSL_MODULES");
 1006|      0|                if (load_dir == NULL)
  ------------------
  |  Branch (1006:21): [True: 0, False: 0]
  ------------------
 1007|      0|                    load_dir = ossl_get_modulesdir();
 1008|      0|            }
 1009|       |
 1010|      0|            DSO_ctrl(prov->module, DSO_CTRL_SET_FLAGS,
  ------------------
  |  |   19|      0|#define DSO_CTRL_SET_FLAGS 2
  ------------------
 1011|      0|                DSO_FLAG_NAME_TRANSLATION_EXT_ONLY, NULL);
  ------------------
  |  |   41|      0|#define DSO_FLAG_NAME_TRANSLATION_EXT_ONLY 0x02
  ------------------
 1012|       |
 1013|      0|            module_path = prov->path;
 1014|      0|            if (module_path == NULL)
  ------------------
  |  Branch (1014:17): [True: 0, False: 0]
  ------------------
 1015|      0|                module_path = allocated_path = DSO_convert_filename(prov->module, prov->name);
 1016|      0|            if (module_path != NULL)
  ------------------
  |  Branch (1016:17): [True: 0, False: 0]
  ------------------
 1017|      0|                merged_path = DSO_merge(prov->module, module_path, load_dir);
 1018|       |
 1019|      0|            if (merged_path == NULL
  ------------------
  |  Branch (1019:17): [True: 0, False: 0]
  ------------------
 1020|      0|                || (DSO_load(prov->module, merged_path, NULL, 0)) == NULL) {
  ------------------
  |  Branch (1020:20): [True: 0, False: 0]
  ------------------
 1021|      0|                DSO_free(prov->module);
 1022|      0|                prov->module = NULL;
 1023|      0|            }
 1024|       |
 1025|      0|            OPENSSL_free(merged_path);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1026|      0|            OPENSSL_free(allocated_path);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1027|      0|            OPENSSL_free(allocated_load_dir);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1028|      0|        }
 1029|       |
 1030|      0|        if (prov->module == NULL) {
  ------------------
  |  Branch (1030:13): [True: 0, False: 0]
  ------------------
 1031|       |            /* DSO has already recorded errors, this is just a tracepoint */
 1032|      0|            ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_DSO_LIB,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                          ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_DSO_LIB,
  ------------------
  |  |   68|      0|#define ERR_LIB_CRYPTO 15
  ------------------
                          ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_DSO_LIB,
  ------------------
  |  |  289|      0|#define ERR_R_DSO_LIB (ERR_LIB_DSO /* 37 */ | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |   81|      0|#define ERR_LIB_DSO 37
  |  |  ------------------
  |  |               #define ERR_R_DSO_LIB (ERR_LIB_DSO /* 37 */ | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  220|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  211|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1033|      0|                "name=%s", prov->name);
 1034|      0|            goto end;
 1035|      0|        }
 1036|       |
 1037|      0|        prov->init_function = (OSSL_provider_init_fn *)
 1038|      0|            DSO_bind_func(prov->module, "OSSL_provider_init");
 1039|      0|#endif
 1040|      0|    }
 1041|       |
 1042|       |    /* Check for and call the initialise function for the provider. */
 1043|      1|    if (prov->init_function == NULL) {
  ------------------
  |  Branch (1043:9): [True: 0, False: 1]
  ------------------
 1044|      0|        ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_UNSUPPORTED,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_UNSUPPORTED,
  ------------------
  |  |   68|      0|#define ERR_LIB_CRYPTO 15
  ------------------
                      ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_UNSUPPORTED,
  ------------------
  |  |  317|      0|#define ERR_R_UNSUPPORTED (268 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  220|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  211|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1045|      0|            "name=%s, provider has no provider init function",
 1046|      0|            prov->name);
 1047|      0|        goto end;
 1048|      0|    }
 1049|      1|#ifndef FIPS_MODULE
 1050|      1|    OSSL_TRACE_BEGIN(PROVIDER)
  ------------------
  |  |  219|      1|    do {                           \
  |  |  220|      1|        BIO *trc_out = NULL;       \
  |  |  221|      1|        if (0)
  |  |  ------------------
  |  |  |  Branch (221:13): [Folded, False: 1]
  |  |  ------------------
  ------------------
 1051|      0|    {
 1052|      0|        BIO_printf(trc_out,
 1053|      0|            "(provider %s) initializing\n", prov->name);
 1054|      0|    }
 1055|      1|    OSSL_TRACE_END(PROVIDER);
  ------------------
  |  |  224|      1|    }                            \
  |  |  225|      1|    while (0)
  |  |  ------------------
  |  |  |  Branch (225:12): [Folded, False: 1]
  |  |  ------------------
  ------------------
 1056|      1|#endif
 1057|       |
 1058|      1|    if (!prov->init_function((OSSL_CORE_HANDLE *)prov, core_dispatch,
  ------------------
  |  Branch (1058:9): [True: 0, False: 1]
  ------------------
 1059|      1|            &provider_dispatch, &tmp_provctx)) {
 1060|      0|        ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INIT_FAIL,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INIT_FAIL,
  ------------------
  |  |   68|      0|#define ERR_LIB_CRYPTO 15
  ------------------
                      ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INIT_FAIL,
  ------------------
  |  |  310|      0|#define ERR_R_INIT_FAIL (261 | ERR_R_FATAL)
  |  |  ------------------
  |  |  |  |  304|      0|#define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  219|      0|#define ERR_RFLAG_FATAL (0x1 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  211|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  220|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  211|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1061|      0|            "name=%s", prov->name);
 1062|      0|        goto end;
 1063|      0|    }
 1064|      1|    prov->provctx = tmp_provctx;
 1065|      1|    prov->dispatch = provider_dispatch;
 1066|       |
 1067|      1|    if (provider_dispatch != NULL) {
  ------------------
  |  Branch (1067:9): [True: 1, False: 0]
  ------------------
 1068|      6|        for (; provider_dispatch->function_id != 0; provider_dispatch++) {
  ------------------
  |  Branch (1068:16): [True: 5, False: 1]
  ------------------
 1069|      5|            switch (provider_dispatch->function_id) {
  ------------------
  |  Branch (1069:21): [True: 5, False: 0]
  ------------------
 1070|      1|            case OSSL_FUNC_PROVIDER_TEARDOWN:
  ------------------
  |  |  234|      1|#define OSSL_FUNC_PROVIDER_TEARDOWN 1024
  ------------------
  |  Branch (1070:13): [True: 1, False: 4]
  ------------------
 1071|      1|                prov->teardown = OSSL_FUNC_provider_teardown(provider_dispatch);
 1072|      1|                break;
 1073|      1|            case OSSL_FUNC_PROVIDER_GETTABLE_PARAMS:
  ------------------
  |  |  236|      1|#define OSSL_FUNC_PROVIDER_GETTABLE_PARAMS 1025
  ------------------
  |  Branch (1073:13): [True: 1, False: 4]
  ------------------
 1074|      1|                prov->gettable_params = OSSL_FUNC_provider_gettable_params(provider_dispatch);
 1075|      1|                break;
 1076|      1|            case OSSL_FUNC_PROVIDER_GET_PARAMS:
  ------------------
  |  |  239|      1|#define OSSL_FUNC_PROVIDER_GET_PARAMS 1026
  ------------------
  |  Branch (1076:13): [True: 1, False: 4]
  ------------------
 1077|      1|                prov->get_params = OSSL_FUNC_provider_get_params(provider_dispatch);
 1078|      1|                break;
 1079|      0|            case OSSL_FUNC_PROVIDER_SELF_TEST:
  ------------------
  |  |  252|      0|#define OSSL_FUNC_PROVIDER_SELF_TEST 1031
  ------------------
  |  Branch (1079:13): [True: 0, False: 5]
  ------------------
 1080|      0|                prov->self_test = OSSL_FUNC_provider_self_test(provider_dispatch);
 1081|      0|                break;
 1082|      0|            case OSSL_FUNC_PROVIDER_RANDOM_BYTES:
  ------------------
  |  |  254|      0|#define OSSL_FUNC_PROVIDER_RANDOM_BYTES 1032
  ------------------
  |  Branch (1082:13): [True: 0, False: 5]
  ------------------
 1083|      0|                prov->random_bytes = OSSL_FUNC_provider_random_bytes(provider_dispatch);
 1084|      0|                break;
 1085|      1|            case OSSL_FUNC_PROVIDER_GET_CAPABILITIES:
  ------------------
  |  |  250|      1|#define OSSL_FUNC_PROVIDER_GET_CAPABILITIES 1030
  ------------------
  |  Branch (1085:13): [True: 1, False: 4]
  ------------------
 1086|      1|                prov->get_capabilities = OSSL_FUNC_provider_get_capabilities(provider_dispatch);
 1087|      1|                break;
 1088|      1|            case OSSL_FUNC_PROVIDER_QUERY_OPERATION:
  ------------------
  |  |  241|      1|#define OSSL_FUNC_PROVIDER_QUERY_OPERATION 1027
  ------------------
  |  Branch (1088:13): [True: 1, False: 4]
  ------------------
 1089|      1|                prov->query_operation = OSSL_FUNC_provider_query_operation(provider_dispatch);
 1090|      1|                break;
 1091|      0|            case OSSL_FUNC_PROVIDER_UNQUERY_OPERATION:
  ------------------
  |  |  244|      0|#define OSSL_FUNC_PROVIDER_UNQUERY_OPERATION 1028
  ------------------
  |  Branch (1091:13): [True: 0, False: 5]
  ------------------
 1092|      0|                prov->unquery_operation = OSSL_FUNC_provider_unquery_operation(provider_dispatch);
 1093|      0|                break;
 1094|      0|#ifndef OPENSSL_NO_ERR
 1095|      0|#ifndef FIPS_MODULE
 1096|      0|            case OSSL_FUNC_PROVIDER_GET_REASON_STRINGS:
  ------------------
  |  |  247|      0|#define OSSL_FUNC_PROVIDER_GET_REASON_STRINGS 1029
  ------------------
  |  Branch (1096:13): [True: 0, False: 5]
  ------------------
 1097|      0|                p_get_reason_strings = OSSL_FUNC_provider_get_reason_strings(provider_dispatch);
 1098|      0|                break;
 1099|      5|#endif
 1100|      5|#endif
 1101|      5|            }
 1102|      5|        }
 1103|      1|    }
 1104|       |
 1105|      1|#ifndef OPENSSL_NO_ERR
 1106|      1|#ifndef FIPS_MODULE
 1107|      1|    if (p_get_reason_strings != NULL) {
  ------------------
  |  Branch (1107:9): [True: 0, False: 1]
  ------------------
 1108|      0|        const OSSL_ITEM *reasonstrings = p_get_reason_strings(prov->provctx);
 1109|      0|        size_t cnt, cnt2;
 1110|       |
 1111|       |        /*
 1112|       |         * ERR_load_strings() handles ERR_STRING_DATA rather than OSSL_ITEM,
 1113|       |         * although they are essentially the same type.
 1114|       |         * Furthermore, ERR_load_strings() patches the array's error number
 1115|       |         * with the error library number, so we need to make a copy of that
 1116|       |         * array either way.
 1117|       |         */
 1118|      0|        cnt = 0;
 1119|      0|        while (reasonstrings[cnt].id != 0) {
  ------------------
  |  Branch (1119:16): [True: 0, False: 0]
  ------------------
 1120|      0|            if (ERR_GET_LIB(reasonstrings[cnt].id) != 0)
  ------------------
  |  Branch (1120:17): [True: 0, False: 0]
  ------------------
 1121|      0|                goto end;
 1122|      0|            cnt++;
 1123|      0|        }
 1124|      0|        cnt++; /* One for the terminating item */
 1125|       |
 1126|       |        /* Allocate one extra item for the "library" name */
 1127|      0|        prov->error_strings = OPENSSL_calloc(cnt + 1, sizeof(ERR_STRING_DATA));
  ------------------
  |  |  113|      0|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1128|      0|        if (prov->error_strings == NULL)
  ------------------
  |  Branch (1128:13): [True: 0, False: 0]
  ------------------
 1129|      0|            goto end;
 1130|       |
 1131|       |        /*
 1132|       |         * Set the "library" name.
 1133|       |         */
 1134|      0|        prov->error_strings[0].error = ERR_PACK(prov->error_lib, 0, 0);
  ------------------
  |  |  262|      0|    ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  210|      0|#define ERR_LIB_MASK 0xFF
  |  |  ------------------
  |  |                   ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  209|      0|#define ERR_LIB_OFFSET 23L
  |  |  ------------------
  |  |                   ((((unsigned long)(lib) & ERR_LIB_MASK) << ERR_LIB_OFFSET) | (((unsigned long)(reason) & ERR_REASON_MASK)))
  |  |  ------------------
  |  |  |  |  213|      0|#define ERR_REASON_MASK 0X7FFFFF
  |  |  ------------------
  ------------------
 1135|      0|        prov->error_strings[0].string = prov->name;
 1136|       |        /*
 1137|       |         * Copy reasonstrings item 0..cnt-1 to prov->error_trings positions
 1138|       |         * 1..cnt.
 1139|       |         */
 1140|      0|        for (cnt2 = 1; cnt2 <= cnt; cnt2++) {
  ------------------
  |  Branch (1140:24): [True: 0, False: 0]
  ------------------
 1141|      0|            prov->error_strings[cnt2].error = (int)reasonstrings[cnt2 - 1].id;
 1142|      0|            prov->error_strings[cnt2].string = reasonstrings[cnt2 - 1].ptr;
 1143|      0|        }
 1144|       |
 1145|      0|        ERR_load_strings(prov->error_lib, prov->error_strings);
 1146|      0|    }
 1147|      1|#endif
 1148|      1|#endif
 1149|       |
 1150|       |    /* With this flag set, this provider has become fully "loaded". */
 1151|      1|    prov->flag_initialized = 1;
 1152|      1|    ok = 1;
 1153|       |
 1154|      1|end:
 1155|      1|    return ok;
 1156|      1|}
provider_core.c:core_get_params:
 2328|  1.02k|{
 2329|  1.02k|    OSSL_PARAM *p;
 2330|       |    /*
 2331|       |     * We created this object originally and we know it is actually an
 2332|       |     * OSSL_PROVIDER *, so the cast is safe
 2333|       |     */
 2334|  1.02k|    OSSL_PROVIDER *prov = (OSSL_PROVIDER *)handle;
 2335|       |
 2336|  1.02k|    if ((p = OSSL_PARAM_locate(params, OSSL_PROV_PARAM_CORE_VERSION)) != NULL)
  ------------------
  |  |  514|  1.02k|# define OSSL_PROV_PARAM_CORE_VERSION "openssl-version"
  ------------------
  |  Branch (2336:9): [True: 0, False: 1.02k]
  ------------------
 2337|      0|        OSSL_PARAM_set_utf8_ptr(p, OPENSSL_VERSION_STR);
  ------------------
  |  |   90|      0|# define OPENSSL_VERSION_STR "4.0.1"
  ------------------
 2338|  1.02k|    if ((p = OSSL_PARAM_locate(params, OSSL_PROV_PARAM_CORE_PROV_NAME)) != NULL)
  ------------------
  |  |  513|  1.02k|# define OSSL_PROV_PARAM_CORE_PROV_NAME "provider-name"
  ------------------
  |  Branch (2338:9): [True: 0, False: 1.02k]
  ------------------
 2339|      0|        OSSL_PARAM_set_utf8_ptr(p, prov->name);
 2340|       |
 2341|  1.02k|#ifndef FIPS_MODULE
 2342|  1.02k|    if ((p = OSSL_PARAM_locate(params,
  ------------------
  |  Branch (2342:9): [True: 0, False: 1.02k]
  ------------------
 2343|  1.02k|             OSSL_PROV_PARAM_CORE_MODULE_FILENAME))
  ------------------
  |  |  512|  1.02k|# define OSSL_PROV_PARAM_CORE_MODULE_FILENAME "module-filename"
  ------------------
 2344|  1.02k|        != NULL)
 2345|      0|        OSSL_PARAM_set_utf8_ptr(p, ossl_provider_module_path(prov));
 2346|  1.02k|#endif
 2347|       |
 2348|  1.02k|    return OSSL_PROVIDER_get_conf_parameters(prov, params);
 2349|  1.02k|}
provider_core.c:core_get_libctx:
 2352|      1|{
 2353|       |    /*
 2354|       |     * We created this object originally and we know it is actually an
 2355|       |     * OSSL_PROVIDER *, so the cast is safe
 2356|       |     */
 2357|      1|    OSSL_PROVIDER *prov = (OSSL_PROVIDER *)handle;
 2358|       |
 2359|       |    /*
 2360|       |     * Using ossl_provider_libctx would be wrong as that returns
 2361|       |     * NULL for |prov| == NULL and NULL libctx has a special meaning
 2362|       |     * that does not apply here. Here |prov| == NULL can happen only in
 2363|       |     * case of a coding error.
 2364|       |     */
 2365|      1|    assert(prov != NULL);
  ------------------
  |  Branch (2365:5): [True: 0, False: 1]
  |  Branch (2365:5): [True: 1, False: 0]
  ------------------
 2366|      1|    return (OPENSSL_CORE_CTX *)prov->libctx;
 2367|      1|}
provider_core.c:provider_activate_fallbacks:
 1442|  6.30k|{
 1443|  6.30k|    int use_fallbacks;
 1444|  6.30k|    int activated_fallback_count = 0;
 1445|  6.30k|    int ret = 0;
 1446|  6.30k|    const OSSL_PROVIDER_INFO *p;
 1447|       |
 1448|  6.30k|    if (!CRYPTO_THREAD_read_lock(store->lock))
  ------------------
  |  Branch (1448:9): [True: 0, False: 6.30k]
  ------------------
 1449|      0|        return 0;
 1450|  6.30k|    use_fallbacks = store->use_fallbacks;
 1451|  6.30k|    CRYPTO_THREAD_unlock(store->lock);
 1452|  6.30k|    if (!use_fallbacks)
  ------------------
  |  Branch (1452:9): [True: 6.30k, False: 1]
  ------------------
 1453|  6.30k|        return 1;
 1454|       |
 1455|      1|    if (!CRYPTO_THREAD_write_lock(store->lock))
  ------------------
  |  Branch (1455:9): [True: 0, False: 1]
  ------------------
 1456|      0|        return 0;
 1457|       |    /* Check again, just in case another thread changed it */
 1458|      1|    use_fallbacks = store->use_fallbacks;
 1459|      1|    if (!use_fallbacks) {
  ------------------
  |  Branch (1459:9): [True: 0, False: 1]
  ------------------
 1460|      0|        CRYPTO_THREAD_unlock(store->lock);
 1461|      0|        return 1;
 1462|      0|    }
 1463|       |
 1464|      4|    for (p = ossl_predefined_providers; p->name != NULL; p++) {
  ------------------
  |  Branch (1464:41): [True: 3, False: 1]
  ------------------
 1465|      3|        OSSL_PROVIDER *prov = NULL;
 1466|      3|        OSSL_PROVIDER_INFO *info = store->provinfo;
 1467|      3|        STACK_OF(INFOPAIR) *params = NULL;
  ------------------
  |  |   33|      3|#define STACK_OF(type) struct stack_st_##type
  ------------------
 1468|      3|        size_t i;
 1469|       |
 1470|      3|        if (!p->is_fallback)
  ------------------
  |  Branch (1470:13): [True: 2, False: 1]
  ------------------
 1471|      2|            continue;
 1472|       |
 1473|      1|        for (i = 0; i < store->numprovinfo; info++, i++) {
  ------------------
  |  Branch (1473:21): [True: 0, False: 1]
  ------------------
 1474|      0|            if (strcmp(info->name, p->name) != 0)
  ------------------
  |  Branch (1474:17): [True: 0, False: 0]
  ------------------
 1475|      0|                continue;
 1476|      0|            params = info->parameters;
 1477|      0|            break;
 1478|      0|        }
 1479|       |
 1480|       |        /*
 1481|       |         * We use the internal constructor directly here,
 1482|       |         * otherwise we get a call loop
 1483|       |         */
 1484|      1|        prov = provider_new(p->name, p->init, params);
 1485|      1|        if (prov == NULL)
  ------------------
  |  Branch (1485:13): [True: 0, False: 1]
  ------------------
 1486|      0|            goto err;
 1487|      1|        prov->libctx = store->libctx;
 1488|      1|#ifndef FIPS_MODULE
 1489|      1|        prov->error_lib = ERR_get_next_error_library();
 1490|      1|#endif
 1491|       |
 1492|       |        /*
 1493|       |         * We are calling provider_activate while holding the store lock. This
 1494|       |         * means the init function will be called while holding a lock. Normally
 1495|       |         * we try to avoid calling a user callback while holding a lock.
 1496|       |         * However, fallbacks are never third party providers so we accept this.
 1497|       |         */
 1498|      1|        if (provider_activate(prov, 0, 0) < 0) {
  ------------------
  |  Branch (1498:13): [True: 0, False: 1]
  ------------------
 1499|      0|            ossl_provider_free(prov);
 1500|      0|            goto err;
 1501|      0|        }
 1502|      1|        prov->store = store;
 1503|      1|        if (sk_OSSL_PROVIDER_push(store->providers, prov) == 0) {
  ------------------
  |  Branch (1503:13): [True: 0, False: 1]
  ------------------
 1504|      0|            ossl_provider_free(prov);
 1505|      0|            goto err;
 1506|      0|        }
 1507|      1|        activated_fallback_count++;
 1508|      1|    }
 1509|       |
 1510|      1|    if (activated_fallback_count > 0) {
  ------------------
  |  Branch (1510:9): [True: 1, False: 0]
  ------------------
 1511|      1|        store->use_fallbacks = 0;
 1512|      1|        ret = 1;
 1513|      1|    }
 1514|      1|err:
 1515|      1|    CRYPTO_THREAD_unlock(store->lock);
 1516|      1|    return ret;
 1517|      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:
  249|  13.0k|{
  250|  13.0k|    const RAND_METHOD *tmp_meth = NULL;
  251|       |
  252|  13.0k|    if (!RUN_ONCE(&rand_init, do_rand_init))
  ------------------
  |  |  130|  13.0k|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 13.0k, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (252:9): [True: 0, False: 13.0k]
  ------------------
  253|      0|        return NULL;
  254|       |
  255|  13.0k|    if (rand_meth_lock == NULL)
  ------------------
  |  Branch (255:9): [True: 0, False: 13.0k]
  ------------------
  256|      0|        return NULL;
  257|       |
  258|  13.0k|    if (!CRYPTO_THREAD_read_lock(rand_meth_lock))
  ------------------
  |  Branch (258:9): [True: 0, False: 13.0k]
  ------------------
  259|      0|        return NULL;
  260|  13.0k|    tmp_meth = default_RAND_meth;
  261|  13.0k|    CRYPTO_THREAD_unlock(rand_meth_lock);
  262|  13.0k|    if (tmp_meth != NULL)
  ------------------
  |  Branch (262:9): [True: 13.0k, False: 1]
  ------------------
  263|  13.0k|        return tmp_meth;
  264|       |
  265|      1|    if (!CRYPTO_THREAD_write_lock(rand_meth_lock))
  ------------------
  |  Branch (265:9): [True: 0, False: 1]
  ------------------
  266|      0|        return NULL;
  267|      1|    if (default_RAND_meth == NULL)
  ------------------
  |  Branch (267:9): [True: 1, False: 0]
  ------------------
  268|      1|        default_RAND_meth = &ossl_rand_meth;
  269|      1|    tmp_meth = default_RAND_meth;
  270|      1|    CRYPTO_THREAD_unlock(rand_meth_lock);
  271|      1|    return tmp_meth;
  272|      1|}
RAND_status:
  327|  1.96k|{
  328|  1.96k|    EVP_RAND_CTX *rand;
  329|  1.96k|#ifndef OPENSSL_NO_DEPRECATED_3_0
  330|  1.96k|    const RAND_METHOD *meth = RAND_get_rand_method();
  331|       |
  332|  1.96k|    if (meth != NULL && meth != RAND_OpenSSL())
  ------------------
  |  Branch (332:9): [True: 1.96k, False: 0]
  |  Branch (332:25): [True: 0, False: 1.96k]
  ------------------
  333|      0|        return meth->status != NULL ? meth->status() : 0;
  ------------------
  |  Branch (333:16): [True: 0, False: 0]
  ------------------
  334|  1.96k|#endif
  335|       |
  336|  1.96k|    if ((rand = RAND_get0_primary(NULL)) == NULL)
  ------------------
  |  Branch (336:9): [True: 0, False: 1.96k]
  ------------------
  337|      0|        return 0;
  338|  1.96k|    return EVP_RAND_get_state(rand) == EVP_RAND_STATE_READY;
  ------------------
  |  | 1250|  1.96k|#define EVP_RAND_STATE_READY 1
  ------------------
  339|  1.96k|}
RAND_priv_bytes_ex:
  357|  2.06k|{
  358|  2.06k|    RAND_GLOBAL *dgbl;
  359|  2.06k|    EVP_RAND_CTX *rand;
  360|  2.06k|#if !defined(OPENSSL_NO_DEPRECATED_3_0) && !defined(FIPS_MODULE)
  361|  2.06k|    const RAND_METHOD *meth = RAND_get_rand_method();
  362|       |
  363|  2.06k|    if (meth != NULL && meth != RAND_OpenSSL()) {
  ------------------
  |  Branch (363:9): [True: 2.06k, False: 0]
  |  Branch (363:25): [True: 0, False: 2.06k]
  ------------------
  364|      0|        if (num > INT_MAX) {
  ------------------
  |  Branch (364:13): [True: 0, False: 0]
  ------------------
  365|      0|            ERR_raise(ERR_LIB_RAND, RAND_R_ARGUMENT_OUT_OF_RANGE);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  366|      0|            return -1;
  367|      0|        }
  368|      0|        if (meth->bytes != NULL)
  ------------------
  |  Branch (368:13): [True: 0, False: 0]
  ------------------
  369|      0|            return meth->bytes(buf, (int)num);
  370|      0|        ERR_raise(ERR_LIB_RAND, RAND_R_FUNC_NOT_IMPLEMENTED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  371|      0|        return -1;
  372|      0|    }
  373|  2.06k|#endif
  374|       |
  375|  2.06k|    dgbl = rand_get_global(ctx);
  376|  2.06k|    if (dgbl == NULL)
  ------------------
  |  Branch (376:9): [True: 0, False: 2.06k]
  ------------------
  377|      0|        return 0;
  378|  2.06k|#ifndef FIPS_MODULE
  379|  2.06k|    if (dgbl->random_provider != NULL)
  ------------------
  |  Branch (379:9): [True: 0, False: 2.06k]
  ------------------
  380|      0|        return ossl_provider_random_bytes(dgbl->random_provider,
  381|      0|            OSSL_PROV_RANDOM_PRIVATE,
  ------------------
  |  |  124|      0|#define OSSL_PROV_RANDOM_PRIVATE 1
  ------------------
  382|      0|            buf, num, strength);
  383|  2.06k|#endif /* !FIPS_MODULE */
  384|  2.06k|    rand = rand_get0_private(ctx, dgbl);
  385|  2.06k|    if (rand != NULL)
  ------------------
  |  Branch (385:9): [True: 2.06k, False: 0]
  ------------------
  386|  2.06k|        return EVP_RAND_generate(rand, buf, num, strength, 0, NULL, 0);
  387|       |
  388|      0|    return 0;
  389|  2.06k|}
RAND_bytes_ex:
  400|  9.06k|{
  401|  9.06k|    RAND_GLOBAL *dgbl;
  402|  9.06k|    EVP_RAND_CTX *rand;
  403|  9.06k|#if !defined(OPENSSL_NO_DEPRECATED_3_0) && !defined(FIPS_MODULE)
  404|  9.06k|    const RAND_METHOD *meth = RAND_get_rand_method();
  405|       |
  406|  9.06k|    if (meth != NULL && meth != RAND_OpenSSL()) {
  ------------------
  |  Branch (406:9): [True: 9.06k, False: 0]
  |  Branch (406:25): [True: 0, False: 9.06k]
  ------------------
  407|      0|        if (num > INT_MAX) {
  ------------------
  |  Branch (407:13): [True: 0, False: 0]
  ------------------
  408|      0|            ERR_raise(ERR_LIB_RAND, RAND_R_ARGUMENT_OUT_OF_RANGE);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  409|      0|            return -1;
  410|      0|        }
  411|      0|        if (meth->bytes != NULL)
  ------------------
  |  Branch (411:13): [True: 0, False: 0]
  ------------------
  412|      0|            return meth->bytes(buf, (int)num);
  413|      0|        ERR_raise(ERR_LIB_RAND, RAND_R_FUNC_NOT_IMPLEMENTED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  414|      0|        return -1;
  415|      0|    }
  416|  9.06k|#endif
  417|       |
  418|  9.06k|    dgbl = rand_get_global(ctx);
  419|  9.06k|    if (dgbl == NULL)
  ------------------
  |  Branch (419:9): [True: 0, False: 9.06k]
  ------------------
  420|      0|        return 0;
  421|  9.06k|#ifndef FIPS_MODULE
  422|  9.06k|    if (dgbl->random_provider != NULL)
  ------------------
  |  Branch (422:9): [True: 0, False: 9.06k]
  ------------------
  423|      0|        return ossl_provider_random_bytes(dgbl->random_provider,
  424|      0|            OSSL_PROV_RANDOM_PUBLIC,
  ------------------
  |  |  123|      0|#define OSSL_PROV_RANDOM_PUBLIC 0
  ------------------
  425|      0|            buf, num, strength);
  426|  9.06k|#endif /* !FIPS_MODULE */
  427|       |
  428|  9.06k|    rand = rand_get0_public(ctx, dgbl);
  429|  9.06k|    if (rand != NULL)
  ------------------
  |  Branch (429:9): [True: 9.06k, False: 0]
  ------------------
  430|  9.06k|        return EVP_RAND_generate(rand, buf, num, strength, 0, NULL, 0);
  431|       |
  432|      0|    return 0;
  433|  9.06k|}
RAND_bytes:
  436|  8.03k|{
  437|  8.03k|    if (num < 0)
  ------------------
  |  Branch (437:9): [True: 0, False: 8.03k]
  ------------------
  438|      0|        return 0;
  439|  8.03k|    return RAND_bytes_ex(NULL, buf, (size_t)num, 0);
  440|  8.03k|}
ossl_rand_ctx_new:
  447|      2|{
  448|      2|    RAND_GLOBAL *dgbl = OPENSSL_zalloc(sizeof(*dgbl));
  ------------------
  |  |  109|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  449|       |
  450|      2|    if (dgbl == NULL)
  ------------------
  |  Branch (450:9): [True: 0, False: 2]
  ------------------
  451|      0|        return NULL;
  452|       |
  453|      2|#ifndef FIPS_MODULE
  454|       |    /*
  455|       |     * We need to ensure that base libcrypto thread handling has been
  456|       |     * initialised.
  457|       |     */
  458|      2|    OPENSSL_init_crypto(OPENSSL_INIT_BASE_ONLY, NULL);
  ------------------
  |  |   31|      2|#define OPENSSL_INIT_BASE_ONLY 0x00040000L
  ------------------
  459|       |
  460|       |    /* Prepopulate the random provider name */
  461|      2|    dgbl->random_provider_name = OPENSSL_strdup(random_provider_fips_name);
  ------------------
  |  |  136|      2|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  462|      2|    if (dgbl->random_provider_name == NULL)
  ------------------
  |  Branch (462:9): [True: 0, False: 2]
  ------------------
  463|      0|        goto err0;
  464|      2|#endif
  465|       |
  466|      2|    dgbl->lock = CRYPTO_THREAD_lock_new();
  467|      2|    if (dgbl->lock == NULL)
  ------------------
  |  Branch (467:9): [True: 0, False: 2]
  ------------------
  468|      0|        goto err1;
  469|       |
  470|      2|    return dgbl;
  471|       |
  472|      0|err1:
  473|      0|    CRYPTO_THREAD_lock_free(dgbl->lock);
  474|      0|#ifndef FIPS_MODULE
  475|      0|err0:
  476|      0|    OPENSSL_free(dgbl->random_provider_name);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  477|      0|#endif
  478|      0|    OPENSSL_free(dgbl);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  479|       |    return NULL;
  480|      0|}
RAND_get0_primary:
  762|  1.96k|{
  763|  1.96k|    RAND_GLOBAL *dgbl = rand_get_global(ctx);
  764|       |
  765|  1.96k|    return dgbl == NULL ? NULL : rand_get0_primary(ctx, dgbl);
  ------------------
  |  Branch (765:12): [True: 0, False: 1.96k]
  ------------------
  766|  1.96k|}
rand_lib.c:do_rand_init:
  126|      1|{
  127|      1|#ifndef OPENSSL_NO_DEPRECATED_3_0
  128|      1|    rand_meth_lock = CRYPTO_THREAD_lock_new();
  129|      1|    if (rand_meth_lock == NULL)
  ------------------
  |  Branch (129:9): [True: 0, False: 1]
  ------------------
  130|      0|        goto err;
  131|      1|#endif /* !OPENSSL_NO_DEPRECATED_3_0 */
  132|       |
  133|      1|    if (!ossl_rand_pool_init())
  ------------------
  |  Branch (133:9): [True: 0, False: 1]
  ------------------
  134|      0|        goto err;
  135|       |
  136|      1|    rand_inited = 1;
  137|      1|    return 1;
  138|       |
  139|      0|err:
  140|      0|#ifndef OPENSSL_NO_DEPRECATED_3_0
  141|      0|    CRYPTO_THREAD_lock_free(rand_meth_lock);
  142|       |    rand_meth_lock = NULL;
  143|      0|#endif /* !OPENSSL_NO_DEPRECATED_3_0 */
  144|      0|    return 0;
  145|      1|}
rand_lib.c:rand_get_global:
   84|  13.0k|{
   85|  13.0k|    return ossl_lib_ctx_get_data(libctx, OSSL_LIB_CTX_DRBG_INDEX);
  ------------------
  |  |  100|  13.0k|#define OSSL_LIB_CTX_DRBG_INDEX 5
  ------------------
   86|  13.0k|}
rand_lib.c:rand_get0_primary:
  685|  1.96k|{
  686|  1.96k|    EVP_RAND_CTX *ret, *seed, *newseed = NULL, *primary;
  687|       |
  688|  1.96k|    if (dgbl == NULL)
  ------------------
  |  Branch (688:9): [True: 0, False: 1.96k]
  ------------------
  689|      0|        return NULL;
  690|       |
  691|  1.96k|    if (!CRYPTO_THREAD_read_lock(dgbl->lock))
  ------------------
  |  Branch (691:9): [True: 0, False: 1.96k]
  ------------------
  692|      0|        return NULL;
  693|       |
  694|  1.96k|    ret = dgbl->primary;
  695|  1.96k|    seed = dgbl->seed;
  696|  1.96k|    CRYPTO_THREAD_unlock(dgbl->lock);
  697|       |
  698|  1.96k|    if (ret != NULL)
  ------------------
  |  Branch (698:9): [True: 1.96k, False: 1]
  ------------------
  699|  1.96k|        return ret;
  700|       |
  701|      1|#if !defined(FIPS_MODULE) || !defined(OPENSSL_NO_FIPS_JITTER)
  702|       |    /* Create a seed source for libcrypto or jitter enabled FIPS provider */
  703|      1|    if (seed == NULL) {
  ------------------
  |  Branch (703:9): [True: 1, False: 0]
  ------------------
  704|      1|        ERR_set_mark();
  705|      1|        seed = newseed = rand_new_seed(ctx);
  706|      1|        if (ERR_count_to_mark() > 0) {
  ------------------
  |  Branch (706:13): [True: 0, False: 1]
  ------------------
  707|      0|            EVP_RAND_CTX_free(newseed);
  708|      0|            ERR_clear_last_mark();
  709|      0|            return NULL;
  710|      0|        }
  711|      1|        ERR_pop_to_mark();
  712|      1|    }
  713|      1|#endif /* !FIPS_MODULE || !OPENSSL_NO_FIPS_JITTER */
  714|       |
  715|       |#if defined(FIPS_MODULE)
  716|       |    /* The FIPS provider has entropy health tests instead of the primary */
  717|       |    ret = rand_new_crngt(ctx, seed);
  718|       |#else /* FIPS_MODULE */
  719|      1|    ret = rand_new_drbg(ctx, seed, PRIMARY_RESEED_INTERVAL,
  ------------------
  |  |   23|      1|#define PRIMARY_RESEED_INTERVAL (1 << 8)
  ------------------
  720|      1|        PRIMARY_RESEED_TIME_INTERVAL);
  ------------------
  |  |   25|      1|#define PRIMARY_RESEED_TIME_INTERVAL (60 * 60) /* 1 hour */
  ------------------
  721|      1|#endif /* FIPS_MODULE */
  722|       |
  723|       |    /*
  724|       |     * The primary DRBG may be shared between multiple threads so we must
  725|       |     * enable locking.
  726|       |     */
  727|      1|    if (ret == NULL || !EVP_RAND_enable_locking(ret)) {
  ------------------
  |  Branch (727:9): [True: 0, False: 1]
  |  Branch (727:24): [True: 0, False: 1]
  ------------------
  728|      0|        if (ret != NULL) {
  ------------------
  |  Branch (728:13): [True: 0, False: 0]
  ------------------
  729|      0|            ERR_raise(ERR_LIB_EVP, EVP_R_UNABLE_TO_ENABLE_LOCKING);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  730|      0|            EVP_RAND_CTX_free(ret);
  731|      0|        }
  732|      0|        if (newseed == NULL)
  ------------------
  |  Branch (732:13): [True: 0, False: 0]
  ------------------
  733|      0|            return NULL;
  734|       |        /* else carry on and store seed */
  735|      0|        ret = NULL;
  736|      0|    }
  737|       |
  738|      1|    if (!CRYPTO_THREAD_write_lock(dgbl->lock))
  ------------------
  |  Branch (738:9): [True: 0, False: 1]
  ------------------
  739|      0|        return NULL;
  740|       |
  741|      1|    primary = dgbl->primary;
  742|      1|    if (primary != NULL) {
  ------------------
  |  Branch (742:9): [True: 0, False: 1]
  ------------------
  743|      0|        CRYPTO_THREAD_unlock(dgbl->lock);
  744|      0|        EVP_RAND_CTX_free(ret);
  745|      0|        EVP_RAND_CTX_free(newseed);
  746|      0|        return primary;
  747|      0|    }
  748|      1|    if (newseed != NULL)
  ------------------
  |  Branch (748:9): [True: 1, False: 0]
  ------------------
  749|      1|        dgbl->seed = newseed;
  750|      1|    dgbl->primary = ret;
  751|      1|    CRYPTO_THREAD_unlock(dgbl->lock);
  752|       |
  753|      1|    return ret;
  754|      1|}
rand_lib.c:rand_new_seed:
  525|      1|{
  526|      1|    EVP_RAND *rand;
  527|      1|    const char *propq;
  528|      1|    char *name;
  529|      1|    EVP_RAND_CTX *ctx = NULL;
  530|      1|    int fallback = 0;
  531|      1|#ifdef OPENSSL_NO_FIPS_JITTER
  532|      1|    RAND_GLOBAL *dgbl = rand_get_global(libctx);
  533|       |
  534|      1|    if (dgbl == NULL)
  ------------------
  |  Branch (534:9): [True: 0, False: 1]
  ------------------
  535|      0|        return NULL;
  536|      1|    propq = dgbl->seed_propq;
  537|      1|    if (dgbl->seed_name != NULL) {
  ------------------
  |  Branch (537:9): [True: 0, False: 1]
  ------------------
  538|      0|        name = dgbl->seed_name;
  539|      1|    } else {
  540|      1|        fallback = 1;
  541|      1|        name = OPENSSL_MSTR(OPENSSL_DEFAULT_SEED_SRC);
  ------------------
  |  |   19|      1|#define OPENSSL_MSTR(x) OPENSSL_MSTR_HELPER(x)
  |  |  ------------------
  |  |  |  |   18|      1|#define OPENSSL_MSTR_HELPER(x) #x
  |  |  ------------------
  ------------------
  542|      1|    }
  543|       |#else /* !OPENSSL_NO_FIPS_JITTER */
  544|       |    name = "JITTER";
  545|       |    propq = "";
  546|       |#endif /* OPENSSL_NO_FIPS_JITTER */
  547|       |
  548|      1|    ERR_set_mark();
  549|      1|    rand = EVP_RAND_fetch(libctx, name, propq);
  550|      1|    ERR_pop_to_mark();
  551|      1|    if (rand == NULL) {
  ------------------
  |  Branch (551:9): [True: 0, False: 1]
  ------------------
  552|      0|        if (!fallback)
  ------------------
  |  Branch (552:13): [True: 0, False: 0]
  ------------------
  553|      0|            ERR_raise(ERR_LIB_RAND, RAND_R_UNABLE_TO_FETCH_DRBG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  554|      0|        goto err;
  555|      0|    }
  556|      1|    ctx = EVP_RAND_CTX_new(rand, NULL);
  557|      1|    EVP_RAND_free(rand);
  558|      1|    if (ctx == NULL) {
  ------------------
  |  Branch (558:9): [True: 0, False: 1]
  ------------------
  559|      0|        ERR_raise(ERR_LIB_RAND, RAND_R_UNABLE_TO_CREATE_DRBG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  560|      0|        goto err;
  561|      0|    }
  562|      1|    if (!EVP_RAND_instantiate(ctx, 0, 0, NULL, 0, NULL)) {
  ------------------
  |  Branch (562:9): [True: 0, False: 1]
  ------------------
  563|      0|        ERR_raise(ERR_LIB_RAND, RAND_R_ERROR_INSTANTIATING_DRBG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  564|      0|        goto err;
  565|      0|    }
  566|      1|    return ctx;
  567|      0|err:
  568|      0|    EVP_RAND_CTX_free(ctx);
  569|       |    return NULL;
  570|      1|}
rand_lib.c:rand_new_drbg:
  593|      3|{
  594|      3|    EVP_RAND *rand;
  595|      3|    RAND_GLOBAL *dgbl = rand_get_global(libctx);
  596|      3|    EVP_RAND_CTX *ctx;
  597|      3|    OSSL_PARAM params[9], *p = params;
  598|      3|    const OSSL_PARAM *settables;
  599|      3|    const char *prov_name;
  600|      3|    char *name, *cipher;
  601|      3|    int use_df = 1;
  602|       |
  603|      3|    if (dgbl == NULL)
  ------------------
  |  Branch (603:9): [True: 0, False: 3]
  ------------------
  604|      0|        return NULL;
  605|      3|    name = dgbl->rng_name != NULL ? dgbl->rng_name : "CTR-DRBG";
  ------------------
  |  Branch (605:12): [True: 0, False: 3]
  ------------------
  606|      3|    rand = EVP_RAND_fetch(libctx, name, dgbl->rng_propq);
  607|      3|    if (rand == NULL) {
  ------------------
  |  Branch (607:9): [True: 0, False: 3]
  ------------------
  608|      0|        ERR_raise(ERR_LIB_RAND, RAND_R_UNABLE_TO_FETCH_DRBG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  609|      0|        return NULL;
  610|      0|    }
  611|      3|    prov_name = ossl_provider_name(EVP_RAND_get0_provider(rand));
  612|      3|    ctx = EVP_RAND_CTX_new(rand, parent);
  613|      3|    EVP_RAND_free(rand);
  614|      3|    if (ctx == NULL) {
  ------------------
  |  Branch (614:9): [True: 0, False: 3]
  ------------------
  615|      0|        ERR_raise(ERR_LIB_RAND, RAND_R_UNABLE_TO_CREATE_DRBG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  616|      0|        return NULL;
  617|      0|    }
  618|       |
  619|      3|    settables = EVP_RAND_CTX_settable_params(ctx);
  620|      3|    if (OSSL_PARAM_locate_const(settables, OSSL_DRBG_PARAM_CIPHER)) {
  ------------------
  |  |  237|      3|# define OSSL_DRBG_PARAM_CIPHER OSSL_ALG_PARAM_CIPHER
  |  |  ------------------
  |  |  |  |  126|      3|# define OSSL_ALG_PARAM_CIPHER "cipher"
  |  |  ------------------
  ------------------
  |  Branch (620:9): [True: 3, False: 0]
  ------------------
  621|      3|        cipher = dgbl->rng_cipher != NULL ? dgbl->rng_cipher : "AES-256-CTR";
  ------------------
  |  Branch (621:18): [True: 0, False: 3]
  ------------------
  622|      3|        *p++ = OSSL_PARAM_construct_utf8_string(OSSL_DRBG_PARAM_CIPHER,
  ------------------
  |  |  237|      3|# define OSSL_DRBG_PARAM_CIPHER OSSL_ALG_PARAM_CIPHER
  |  |  ------------------
  |  |  |  |  126|      3|# define OSSL_ALG_PARAM_CIPHER "cipher"
  |  |  ------------------
  ------------------
  623|      3|            cipher, 0);
  624|      3|    }
  625|      3|    if (dgbl->rng_digest != NULL
  ------------------
  |  Branch (625:9): [True: 0, False: 3]
  ------------------
  626|      0|        && OSSL_PARAM_locate_const(settables, OSSL_DRBG_PARAM_DIGEST))
  ------------------
  |  |  238|      0|# define OSSL_DRBG_PARAM_DIGEST OSSL_ALG_PARAM_DIGEST
  |  |  ------------------
  |  |  |  |  127|      0|# define OSSL_ALG_PARAM_DIGEST "digest"
  |  |  ------------------
  ------------------
  |  Branch (626:12): [True: 0, False: 0]
  ------------------
  627|      0|        *p++ = OSSL_PARAM_construct_utf8_string(OSSL_DRBG_PARAM_DIGEST,
  ------------------
  |  |  238|      0|# define OSSL_DRBG_PARAM_DIGEST OSSL_ALG_PARAM_DIGEST
  |  |  ------------------
  |  |  |  |  127|      0|# define OSSL_ALG_PARAM_DIGEST "digest"
  |  |  ------------------
  ------------------
  628|      0|            dgbl->rng_digest, 0);
  629|      3|    if (prov_name != NULL)
  ------------------
  |  Branch (629:9): [True: 3, False: 0]
  ------------------
  630|      3|        *p++ = OSSL_PARAM_construct_utf8_string(OSSL_PROV_PARAM_CORE_PROV_NAME,
  ------------------
  |  |  513|      3|# define OSSL_PROV_PARAM_CORE_PROV_NAME "provider-name"
  ------------------
  631|      3|            (char *)prov_name, 0);
  632|      3|    if (dgbl->rng_propq != NULL)
  ------------------
  |  Branch (632:9): [True: 0, False: 3]
  ------------------
  633|      0|        *p++ = OSSL_PARAM_construct_utf8_string(OSSL_DRBG_PARAM_PROPERTIES,
  ------------------
  |  |  252|      0|# define OSSL_DRBG_PARAM_PROPERTIES OSSL_ALG_PARAM_PROPERTIES
  |  |  ------------------
  |  |  |  |  130|      0|# define OSSL_ALG_PARAM_PROPERTIES "properties"
  |  |  ------------------
  ------------------
  634|      0|            dgbl->rng_propq, 0);
  635|      3|    if (OSSL_PARAM_locate_const(settables, OSSL_ALG_PARAM_MAC))
  ------------------
  |  |  129|      3|# define OSSL_ALG_PARAM_MAC "mac"
  ------------------
  |  Branch (635:9): [True: 0, False: 3]
  ------------------
  636|      0|        *p++ = OSSL_PARAM_construct_utf8_string(OSSL_ALG_PARAM_MAC, "HMAC", 0);
  ------------------
  |  |  129|      0|# define OSSL_ALG_PARAM_MAC "mac"
  ------------------
  637|      3|    if (OSSL_PARAM_locate_const(settables, OSSL_DRBG_PARAM_USE_DF))
  ------------------
  |  |  259|      3|# define OSSL_DRBG_PARAM_USE_DF "use_derivation_function"
  ------------------
  |  Branch (637:9): [True: 3, False: 0]
  ------------------
  638|      3|        *p++ = OSSL_PARAM_construct_int(OSSL_DRBG_PARAM_USE_DF, &use_df);
  ------------------
  |  |  259|      3|# define OSSL_DRBG_PARAM_USE_DF "use_derivation_function"
  ------------------
  639|      3|    *p++ = OSSL_PARAM_construct_uint(OSSL_DRBG_PARAM_RESEED_REQUESTS,
  ------------------
  |  |  255|      3|# define OSSL_DRBG_PARAM_RESEED_REQUESTS "reseed_requests"
  ------------------
  640|      3|        &reseed_interval);
  641|      3|    *p++ = OSSL_PARAM_construct_time_t(OSSL_DRBG_PARAM_RESEED_TIME_INTERVAL,
  ------------------
  |  |  257|      3|# define OSSL_DRBG_PARAM_RESEED_TIME_INTERVAL "reseed_time_interval"
  ------------------
  642|      3|        &reseed_time_interval);
  643|      3|    *p = OSSL_PARAM_construct_end();
  644|      3|    if (!EVP_RAND_instantiate(ctx, 0, 0, NULL, 0, params)) {
  ------------------
  |  Branch (644:9): [True: 0, False: 3]
  ------------------
  645|      0|        ERR_raise(ERR_LIB_RAND, RAND_R_ERROR_INSTANTIATING_DRBG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  646|      0|        EVP_RAND_CTX_free(ctx);
  647|      0|        return NULL;
  648|      0|    }
  649|      3|    return ctx;
  650|      3|}
rand_lib.c:rand_get0_public:
  769|  9.06k|{
  770|  9.06k|    EVP_RAND_CTX *rand, *primary;
  771|  9.06k|    OSSL_LIB_CTX *origctx = ctx;
  772|       |
  773|  9.06k|    ctx = ossl_lib_ctx_get_concrete(ctx);
  774|       |
  775|  9.06k|    if (ctx == NULL)
  ------------------
  |  Branch (775:9): [True: 0, False: 9.06k]
  ------------------
  776|      0|        return NULL;
  777|       |
  778|  9.06k|    if (dgbl == NULL)
  ------------------
  |  Branch (778:9): [True: 0, False: 9.06k]
  ------------------
  779|      0|        return NULL;
  780|       |
  781|  9.06k|    rand = CRYPTO_THREAD_get_local_ex(CRYPTO_THREAD_LOCAL_DRBG_PUB_KEY, ctx);
  782|  9.06k|    if (rand == NULL) {
  ------------------
  |  Branch (782:9): [True: 1, False: 9.06k]
  ------------------
  783|      1|        primary = rand_get0_primary(origctx, dgbl);
  784|      1|        if (primary == NULL)
  ------------------
  |  Branch (784:13): [True: 0, False: 1]
  ------------------
  785|      0|            return NULL;
  786|       |
  787|       |        /*
  788|       |         * If the private is also NULL then this is the first time we've
  789|       |         * used this thread.
  790|       |         */
  791|      1|        if (CRYPTO_THREAD_get_local_ex(CRYPTO_THREAD_LOCAL_DRBG_PRIV_KEY, ctx) == NULL
  ------------------
  |  Branch (791:13): [True: 1, False: 0]
  ------------------
  792|      1|            && !ossl_init_thread_start(NULL, ctx, rand_delete_thread_state))
  ------------------
  |  Branch (792:16): [True: 0, False: 1]
  ------------------
  793|      0|            return NULL;
  794|      1|        rand = rand_new_drbg(ctx, primary, SECONDARY_RESEED_INTERVAL,
  ------------------
  |  |   24|      1|#define SECONDARY_RESEED_INTERVAL (1 << 16)
  ------------------
  795|      1|            SECONDARY_RESEED_TIME_INTERVAL);
  ------------------
  |  |   26|      1|#define SECONDARY_RESEED_TIME_INTERVAL (7 * 60) /* 7 minutes */
  ------------------
  796|      1|        if (!CRYPTO_THREAD_set_local_ex(CRYPTO_THREAD_LOCAL_DRBG_PUB_KEY, ctx, rand)) {
  ------------------
  |  Branch (796:13): [True: 0, False: 1]
  ------------------
  797|      0|            EVP_RAND_CTX_free(rand);
  798|      0|            rand = NULL;
  799|      0|        }
  800|      1|    }
  801|  9.06k|    return rand;
  802|  9.06k|}
rand_lib.c:rand_get0_private:
  816|  2.06k|{
  817|  2.06k|    EVP_RAND_CTX *rand, *primary;
  818|  2.06k|    OSSL_LIB_CTX *origctx = ctx;
  819|       |
  820|  2.06k|    ctx = ossl_lib_ctx_get_concrete(ctx);
  821|  2.06k|    if (ctx == NULL)
  ------------------
  |  Branch (821:9): [True: 0, False: 2.06k]
  ------------------
  822|      0|        return NULL;
  823|       |
  824|  2.06k|    rand = CRYPTO_THREAD_get_local_ex(CRYPTO_THREAD_LOCAL_DRBG_PRIV_KEY, ctx);
  825|  2.06k|    if (rand == NULL) {
  ------------------
  |  Branch (825:9): [True: 1, False: 2.06k]
  ------------------
  826|      1|        primary = rand_get0_primary(origctx, dgbl);
  827|      1|        if (primary == NULL)
  ------------------
  |  Branch (827:13): [True: 0, False: 1]
  ------------------
  828|      0|            return NULL;
  829|       |
  830|       |        /*
  831|       |         * If the public is also NULL then this is the first time we've
  832|       |         * used this thread.
  833|       |         */
  834|      1|        if (CRYPTO_THREAD_get_local_ex(CRYPTO_THREAD_LOCAL_DRBG_PUB_KEY, ctx) == NULL
  ------------------
  |  Branch (834:13): [True: 0, False: 1]
  ------------------
  835|      0|            && !ossl_init_thread_start(NULL, ctx, rand_delete_thread_state))
  ------------------
  |  Branch (835:16): [True: 0, False: 0]
  ------------------
  836|      0|            return NULL;
  837|      1|        rand = rand_new_drbg(ctx, primary, SECONDARY_RESEED_INTERVAL,
  ------------------
  |  |   24|      1|#define SECONDARY_RESEED_INTERVAL (1 << 16)
  ------------------
  838|      1|            SECONDARY_RESEED_TIME_INTERVAL);
  ------------------
  |  |   26|      1|#define SECONDARY_RESEED_TIME_INTERVAL (7 * 60) /* 7 minutes */
  ------------------
  839|      1|        if (!CRYPTO_THREAD_set_local_ex(CRYPTO_THREAD_LOCAL_DRBG_PRIV_KEY, ctx, rand)) {
  ------------------
  |  Branch (839:13): [True: 0, False: 1]
  ------------------
  840|      0|            EVP_RAND_CTX_free(rand);
  841|      0|            rand = NULL;
  842|      0|        }
  843|      1|    }
  844|  2.06k|    return rand;
  845|  2.06k|}

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

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

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

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

ossl_rsa_todata:
  262|  28.0k|{
  263|  28.0k|    int ret = 0;
  264|  28.0k|    const BIGNUM *rsa_d = NULL, *rsa_n = NULL, *rsa_e = NULL;
  265|  28.0k|    STACK_OF(BIGNUM_const) *factors = sk_BIGNUM_const_new_null();
  ------------------
  |  |   33|  28.0k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  266|  28.0k|    STACK_OF(BIGNUM_const) *exps = sk_BIGNUM_const_new_null();
  ------------------
  |  |   33|  28.0k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  267|  28.0k|    STACK_OF(BIGNUM_const) *coeffs = sk_BIGNUM_const_new_null();
  ------------------
  |  |   33|  28.0k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  268|       |
  269|  28.0k|    if (rsa == NULL || factors == NULL || exps == NULL || coeffs == NULL)
  ------------------
  |  Branch (269:9): [True: 0, False: 28.0k]
  |  Branch (269:24): [True: 0, False: 28.0k]
  |  Branch (269:43): [True: 0, False: 28.0k]
  |  Branch (269:59): [True: 0, False: 28.0k]
  ------------------
  270|      0|        goto err;
  271|       |
  272|  28.0k|    RSA_get0_key(rsa, &rsa_n, &rsa_e, &rsa_d);
  273|  28.0k|    ossl_rsa_get0_all_params(rsa, factors, exps, coeffs);
  274|       |
  275|  28.0k|    if (!ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_RSA_N, rsa_n)
  ------------------
  |  |  493|  28.0k|# define OSSL_PKEY_PARAM_RSA_N "n"
  ------------------
  |  Branch (275:9): [True: 0, False: 28.0k]
  ------------------
  276|  28.0k|        || !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_RSA_E, rsa_e))
  ------------------
  |  |  468|  28.0k|# define OSSL_PKEY_PARAM_RSA_E "e"
  ------------------
  |  Branch (276:12): [True: 0, False: 28.0k]
  ------------------
  277|      0|        goto err;
  278|       |
  279|       |    /* Check private key data integrity */
  280|  28.0k|    if (include_private && rsa_d != NULL) {
  ------------------
  |  Branch (280:9): [True: 28.0k, False: 0]
  |  Branch (280:28): [True: 0, False: 28.0k]
  ------------------
  281|       |
  282|      0|        if (!ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_RSA_D,
  ------------------
  |  |  464|      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|  28.0k|    ret = 1;
  301|  28.0k|err:
  302|  28.0k|    sk_BIGNUM_const_free(factors);
  303|  28.0k|    sk_BIGNUM_const_free(exps);
  304|  28.0k|    sk_BIGNUM_const_free(coeffs);
  305|  28.0k|    return ret;
  306|  28.0k|}
ossl_rsa_is_foreign:
  452|  28.0k|{
  453|  28.0k|#ifndef FIPS_MODULE
  454|  28.0k|    if (RSA_get_method(rsa) != RSA_PKCS1_OpenSSL())
  ------------------
  |  Branch (454:9): [True: 0, False: 28.0k]
  ------------------
  455|      0|        return 1;
  456|  28.0k|#endif
  457|  28.0k|    return 0;
  458|  28.0k|}
ossl_rsa_param_decode:
  653|  28.0k|{
  654|  28.0k|    RSA_PSS_PARAMS *pss;
  655|  28.0k|    const ASN1_OBJECT *algoid;
  656|  28.0k|    const void *algp;
  657|  28.0k|    int algptype;
  658|       |
  659|  28.0k|    X509_ALGOR_get0(&algoid, &algptype, &algp, alg);
  660|  28.0k|    if (OBJ_obj2nid(algoid) != EVP_PKEY_RSA_PSS)
  ------------------
  |  |   65|  28.0k|#define EVP_PKEY_RSA_PSS NID_rsassaPss
  |  |  ------------------
  |  |  |  |  583|  28.0k|#define NID_rsassaPss           912
  |  |  ------------------
  ------------------
  |  Branch (660:9): [True: 28.0k, False: 0]
  ------------------
  661|  28.0k|        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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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|  28.0k|{
   25|  28.0k|    return BN_num_bits(r->n);
   26|  28.0k|}
RSA_size:
   29|  28.0k|{
   30|  28.0k|    return BN_num_bytes(r->n);
  ------------------
  |  |  188|  28.0k|#define BN_num_bytes(a) ((BN_num_bits(a) + 7) / 8)
  ------------------
   31|  28.0k|}

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

RSA_new:
   34|  28.0k|{
   35|       |    return rsa_new_intern(NULL);
   36|  28.0k|}
RSA_get_method:
   39|  28.0k|{
   40|  28.0k|    return rsa->meth;
   41|  28.0k|}
RSA_free:
  118|  84.1k|{
  119|  84.1k|    int i;
  120|       |
  121|  84.1k|    if (r == NULL)
  ------------------
  |  Branch (121:9): [True: 28.0k, False: 56.0k]
  ------------------
  122|  28.0k|        return;
  123|       |
  124|  56.0k|    CRYPTO_DOWN_REF(&r->references, &i);
  125|  56.0k|    REF_PRINT_COUNT("RSA", i, r);
  ------------------
  |  |  301|  56.0k|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|  56.0k|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  295|  56.0k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|  56.0k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  126|  56.0k|    if (i > 0)
  ------------------
  |  Branch (126:9): [True: 28.0k, False: 28.0k]
  ------------------
  127|  28.0k|        return;
  128|  28.0k|    REF_ASSERT_ISNT(i < 0);
  ------------------
  |  |  293|  28.0k|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 28.0k]
  |  |  ------------------
  ------------------
  129|       |
  130|  28.0k|    if (r->meth != NULL && r->meth->finish != NULL)
  ------------------
  |  Branch (130:9): [True: 28.0k, False: 0]
  |  Branch (130:28): [True: 28.0k, False: 0]
  ------------------
  131|  28.0k|        r->meth->finish(r);
  132|       |
  133|  28.0k|#ifndef FIPS_MODULE
  134|  28.0k|    CRYPTO_free_ex_data(CRYPTO_EX_INDEX_RSA, r, &r->ex_data);
  ------------------
  |  |  260|  28.0k|#define CRYPTO_EX_INDEX_RSA 9
  ------------------
  135|  28.0k|#endif
  136|       |
  137|  28.0k|    CRYPTO_THREAD_lock_free(r->lock);
  138|  28.0k|    CRYPTO_FREE_REF(&r->references);
  139|       |
  140|       |#ifdef OPENSSL_PEDANTIC_ZEROIZATION
  141|       |    BN_clear_free(r->n);
  142|       |    BN_clear_free(r->e);
  143|       |#else
  144|  28.0k|    BN_free(r->n);
  145|  28.0k|    BN_free(r->e);
  146|  28.0k|#endif
  147|  28.0k|    BN_clear_free(r->d);
  148|  28.0k|    BN_clear_free(r->p);
  149|  28.0k|    BN_clear_free(r->q);
  150|  28.0k|    BN_clear_free(r->dmp1);
  151|  28.0k|    BN_clear_free(r->dmq1);
  152|  28.0k|    BN_clear_free(r->iqmp);
  153|       |
  154|       |#if defined(FIPS_MODULE) && !defined(OPENSSL_NO_ACVP_TESTS)
  155|       |    ossl_rsa_acvp_test_free(r->acvp_test);
  156|       |#endif
  157|       |
  158|  28.0k|#ifndef FIPS_MODULE
  159|  28.0k|    RSA_PSS_PARAMS_free(r->pss);
  160|  28.0k|    sk_RSA_PRIME_INFO_pop_free(r->prime_infos, ossl_rsa_multip_info_free);
  161|  28.0k|#endif
  162|  28.0k|    ossl_rsa_free_blinding(r);
  163|  28.0k|    OPENSSL_free(r);
  ------------------
  |  |  132|  28.0k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  164|  28.0k|}
RSA_up_ref:
  167|  28.0k|{
  168|  28.0k|    int i;
  169|       |
  170|  28.0k|    if (CRYPTO_UP_REF(&r->references, &i) <= 0)
  ------------------
  |  Branch (170:9): [True: 0, False: 28.0k]
  ------------------
  171|      0|        return 0;
  172|       |
  173|  28.0k|    REF_PRINT_COUNT("RSA", i, r);
  ------------------
  |  |  301|  28.0k|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|  28.0k|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  295|  28.0k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|  28.0k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  174|  28.0k|    REF_ASSERT_ISNT(i < 2);
  ------------------
  |  |  293|  28.0k|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 28.0k]
  |  |  ------------------
  ------------------
  175|  28.0k|    return i > 1 ? 1 : 0;
  ------------------
  |  Branch (175:12): [True: 28.0k, False: 0]
  ------------------
  176|  28.0k|}
ossl_rsa_set0_libctx:
  184|  28.0k|{
  185|  28.0k|    r->libctx = libctx;
  186|  28.0k|}
ossl_ifc_ffc_compute_security_bits:
  300|  28.0k|{
  301|  28.0k|    uint64_t x;
  302|  28.0k|    uint32_t lx;
  303|  28.0k|    uint16_t y, cap;
  304|       |
  305|       |    /*
  306|       |     * Look for common values as listed in standards.
  307|       |     * These values are not exactly equal to the results from the formulae in
  308|       |     * the standards but are defined to be canonical.
  309|       |     */
  310|  28.0k|    switch (n) {
  ------------------
  |  Branch (310:13): [True: 28.0k, False: 0]
  ------------------
  311|  8.20k|    case 2048: /* SP 800-56B rev 2 Appendix D and FIPS 140-2 IG 7.5 */
  ------------------
  |  Branch (311:5): [True: 8.20k, False: 19.8k]
  ------------------
  312|  8.20k|        return 112;
  313|      0|    case 3072: /* SP 800-56B rev 2 Appendix D and FIPS 140-2 IG 7.5 */
  ------------------
  |  Branch (313:5): [True: 0, False: 28.0k]
  ------------------
  314|      0|        return 128;
  315|  19.8k|    case 4096: /* SP 800-56B rev 2 Appendix D */
  ------------------
  |  Branch (315:5): [True: 19.8k, False: 8.20k]
  ------------------
  316|  19.8k|        return 152;
  317|      0|    case 6144: /* SP 800-56B rev 2 Appendix D */
  ------------------
  |  Branch (317:5): [True: 0, False: 28.0k]
  ------------------
  318|      0|        return 176;
  319|      0|    case 7680: /* FIPS 140-2 IG 7.5 */
  ------------------
  |  Branch (319:5): [True: 0, False: 28.0k]
  ------------------
  320|      0|        return 192;
  321|      0|    case 8192: /* SP 800-56B rev 2 Appendix D */
  ------------------
  |  Branch (321:5): [True: 0, False: 28.0k]
  ------------------
  322|      0|        return 200;
  323|      0|    case 15360: /* FIPS 140-2 IG 7.5 */
  ------------------
  |  Branch (323:5): [True: 0, False: 28.0k]
  ------------------
  324|      0|        return 256;
  325|  28.0k|    }
  326|       |
  327|       |    /*
  328|       |     * The first incorrect result (i.e. not accurate or off by one low) occurs
  329|       |     * for n = 699668.  The true value here is 1200.  Instead of using this n
  330|       |     * as the check threshold, the smallest n such that the correct result is
  331|       |     * 1200 is used instead.
  332|       |     */
  333|      0|    if (n >= 687737)
  ------------------
  |  Branch (333:9): [True: 0, False: 0]
  ------------------
  334|      0|        return 1200;
  335|      0|    if (n < 8)
  ------------------
  |  Branch (335:9): [True: 0, False: 0]
  ------------------
  336|      0|        return 0;
  337|       |
  338|       |    /*
  339|       |     * To ensure that the output is non-decreasing with respect to n,
  340|       |     * a cap needs to be applied to the two values where the function over
  341|       |     * estimates the strength (according to the above fast path).
  342|       |     */
  343|      0|    if (n <= 7680)
  ------------------
  |  Branch (343:9): [True: 0, False: 0]
  ------------------
  344|      0|        cap = 192;
  345|      0|    else if (n <= 15360)
  ------------------
  |  Branch (345:14): [True: 0, False: 0]
  ------------------
  346|      0|        cap = 256;
  347|      0|    else
  348|      0|        cap = 1200;
  349|       |
  350|      0|    x = n * (uint64_t)log_2;
  351|      0|    lx = ilog_e(x);
  352|      0|    y = (uint16_t)((mul2(c1_923, icbrt64(mul2(mul2(x, lx), lx))) - c4_690)
  353|      0|        / log_2);
  354|      0|    y = (y + 4) & ~7;
  355|      0|    if (y > cap)
  ------------------
  |  Branch (355:9): [True: 0, False: 0]
  ------------------
  356|      0|        y = cap;
  357|      0|    return y;
  358|      0|}
RSA_security_bits:
  361|  28.0k|{
  362|  28.0k|    int bits = BN_num_bits(rsa->n);
  363|       |
  364|  28.0k|#ifndef FIPS_MODULE
  365|  28.0k|    if (rsa->version == RSA_ASN1_VERSION_MULTI) {
  ------------------
  |  |   60|  28.0k|#define RSA_ASN1_VERSION_MULTI 1
  ------------------
  |  Branch (365:9): [True: 0, False: 28.0k]
  ------------------
  366|       |        /* This ought to mean that we have private key at hand. */
  367|      0|        int ex_primes = sk_RSA_PRIME_INFO_num(rsa->prime_infos);
  368|       |
  369|      0|        if (ex_primes <= 0 || (ex_primes + 2) > ossl_rsa_multip_cap(bits))
  ------------------
  |  Branch (369:13): [True: 0, False: 0]
  |  Branch (369:31): [True: 0, False: 0]
  ------------------
  370|      0|            return 0;
  371|      0|    }
  372|  28.0k|#endif
  373|  28.0k|    return ossl_ifc_ffc_compute_security_bits(bits);
  374|  28.0k|}
RSA_get0_key:
  531|  28.0k|{
  532|  28.0k|    if (n != NULL)
  ------------------
  |  Branch (532:9): [True: 28.0k, False: 0]
  ------------------
  533|  28.0k|        *n = r->n;
  534|  28.0k|    if (e != NULL)
  ------------------
  |  Branch (534:9): [True: 28.0k, False: 0]
  ------------------
  535|  28.0k|        *e = r->e;
  536|  28.0k|    if (d != NULL)
  ------------------
  |  Branch (536:9): [True: 28.0k, False: 0]
  ------------------
  537|  28.0k|        *d = r->d;
  538|  28.0k|}
RSA_get0_n:
  621|  84.1k|{
  622|  84.1k|    return r->n;
  623|  84.1k|}
RSA_get0_d:
  631|  28.0k|{
  632|  28.0k|    return r->d;
  633|  28.0k|}
RSA_get0_p:
  636|  56.0k|{
  637|  56.0k|    return r->p;
  638|  56.0k|}
ossl_rsa_get0_pss_params_30:
  683|  28.0k|{
  684|  28.0k|    return &r->pss_params;
  685|  28.0k|}
RSA_clear_flags:
  688|  28.0k|{
  689|  28.0k|    r->flags &= ~flags;
  690|  28.0k|}
RSA_test_flags:
  693|  84.1k|{
  694|  84.1k|    return r->flags & flags;
  695|  84.1k|}
RSA_set_flags:
  698|  28.0k|{
  699|  28.0k|    r->flags |= flags;
  700|  28.0k|}
ossl_rsa_get0_all_params:
  847|  56.0k|{
  848|  56.0k|#ifndef FIPS_MODULE
  849|  56.0k|    RSA_PRIME_INFO *pinfo;
  850|  56.0k|    int i, pnum;
  851|  56.0k|#endif
  852|       |
  853|  56.0k|    if (r == NULL)
  ------------------
  |  Branch (853:9): [True: 0, False: 56.0k]
  ------------------
  854|      0|        return 0;
  855|       |
  856|       |    /* If |p| is NULL, there are no CRT parameters */
  857|  56.0k|    if (RSA_get0_p(r) == NULL)
  ------------------
  |  Branch (857:9): [True: 56.0k, False: 0]
  ------------------
  858|  56.0k|        return 1;
  859|       |
  860|      0|    sk_BIGNUM_const_push(primes, RSA_get0_p(r));
  861|      0|    sk_BIGNUM_const_push(primes, RSA_get0_q(r));
  862|      0|    sk_BIGNUM_const_push(exps, RSA_get0_dmp1(r));
  863|      0|    sk_BIGNUM_const_push(exps, RSA_get0_dmq1(r));
  864|      0|    sk_BIGNUM_const_push(coeffs, RSA_get0_iqmp(r));
  865|       |
  866|      0|#ifndef FIPS_MODULE
  867|      0|    pnum = RSA_get_multi_prime_extra_count(r);
  868|      0|    for (i = 0; i < pnum; i++) {
  ------------------
  |  Branch (868:17): [True: 0, False: 0]
  ------------------
  869|      0|        pinfo = sk_RSA_PRIME_INFO_value(r->prime_infos, i);
  870|      0|        sk_BIGNUM_const_push(primes, pinfo->r);
  871|      0|        sk_BIGNUM_const_push(exps, pinfo->d);
  872|      0|        sk_BIGNUM_const_push(coeffs, pinfo->t);
  873|      0|    }
  874|      0|#endif
  875|       |
  876|      0|    return 1;
  877|  56.0k|}
ossl_rsa_check_factors:
  881|  28.0k|{
  882|  28.0k|    int valid = 0;
  883|  28.0k|    int n, i, bits;
  884|  28.0k|    STACK_OF(BIGNUM_const) *factors = sk_BIGNUM_const_new_null();
  ------------------
  |  |   33|  28.0k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  885|  28.0k|    STACK_OF(BIGNUM_const) *exps = sk_BIGNUM_const_new_null();
  ------------------
  |  |   33|  28.0k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  886|  28.0k|    STACK_OF(BIGNUM_const) *coeffs = sk_BIGNUM_const_new_null();
  ------------------
  |  |   33|  28.0k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  887|       |
  888|  28.0k|    if (factors == NULL || exps == NULL || coeffs == NULL)
  ------------------
  |  Branch (888:9): [True: 0, False: 28.0k]
  |  Branch (888:28): [True: 0, False: 28.0k]
  |  Branch (888:44): [True: 0, False: 28.0k]
  ------------------
  889|      0|        goto done;
  890|       |
  891|       |    /*
  892|       |     * Simple sanity check for RSA key. All RSA key parameters
  893|       |     * must be less-than/equal-to RSA parameter n.
  894|       |     */
  895|  28.0k|    ossl_rsa_get0_all_params(r, factors, exps, coeffs);
  896|  28.0k|    n = safe_BN_num_bits(RSA_get0_n(r));
  ------------------
  |  |  879|  28.0k|#define safe_BN_num_bits(_k_) (((_k_) == NULL) ? 0 : BN_num_bits((_k_)))
  |  |  ------------------
  |  |  |  Branch (879:32): [True: 0, False: 28.0k]
  |  |  ------------------
  ------------------
  897|       |
  898|  28.0k|    if (safe_BN_num_bits(RSA_get0_d(r)) > n)
  ------------------
  |  |  879|  28.0k|#define safe_BN_num_bits(_k_) (((_k_) == NULL) ? 0 : BN_num_bits((_k_)))
  |  |  ------------------
  |  |  |  Branch (879:32): [True: 28.0k, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (898:9): [True: 0, False: 28.0k]
  ------------------
  899|      0|        goto done;
  900|       |
  901|  28.0k|    for (i = 0; i < sk_BIGNUM_const_num(exps); i++) {
  ------------------
  |  Branch (901:17): [True: 0, False: 28.0k]
  ------------------
  902|      0|        bits = safe_BN_num_bits(sk_BIGNUM_const_value(exps, i));
  ------------------
  |  |  879|      0|#define safe_BN_num_bits(_k_) (((_k_) == NULL) ? 0 : BN_num_bits((_k_)))
  |  |  ------------------
  |  |  |  Branch (879:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  903|      0|        if (bits > n)
  ------------------
  |  Branch (903:13): [True: 0, False: 0]
  ------------------
  904|      0|            goto done;
  905|      0|    }
  906|       |
  907|  28.0k|    for (i = 0; i < sk_BIGNUM_const_num(factors); i++) {
  ------------------
  |  Branch (907:17): [True: 0, False: 28.0k]
  ------------------
  908|      0|        bits = safe_BN_num_bits(sk_BIGNUM_const_value(factors, i));
  ------------------
  |  |  879|      0|#define safe_BN_num_bits(_k_) (((_k_) == NULL) ? 0 : BN_num_bits((_k_)))
  |  |  ------------------
  |  |  |  Branch (879:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  909|      0|        if (bits > n)
  ------------------
  |  Branch (909:13): [True: 0, False: 0]
  ------------------
  910|      0|            goto done;
  911|      0|    }
  912|       |
  913|  28.0k|    for (i = 0; i < sk_BIGNUM_const_num(coeffs); i++) {
  ------------------
  |  Branch (913:17): [True: 0, False: 28.0k]
  ------------------
  914|      0|        bits = safe_BN_num_bits(sk_BIGNUM_const_value(coeffs, i));
  ------------------
  |  |  879|      0|#define safe_BN_num_bits(_k_) (((_k_) == NULL) ? 0 : BN_num_bits((_k_)))
  |  |  ------------------
  |  |  |  Branch (879:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  915|      0|        if (bits > n)
  ------------------
  |  Branch (915:13): [True: 0, False: 0]
  ------------------
  916|      0|            goto done;
  917|      0|    }
  918|       |
  919|  28.0k|    valid = 1;
  920|       |
  921|  28.0k|done:
  922|  28.0k|    sk_BIGNUM_const_free(factors);
  923|  28.0k|    sk_BIGNUM_const_free(exps);
  924|  28.0k|    sk_BIGNUM_const_free(coeffs);
  925|       |
  926|  28.0k|    return valid;
  927|  28.0k|}
rsa_lib.c:rsa_new_intern:
   73|  28.0k|{
   74|  28.0k|    RSA *ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  109|  28.0k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   75|       |
   76|  28.0k|    if (ret == NULL)
  ------------------
  |  Branch (76:9): [True: 0, False: 28.0k]
  ------------------
   77|      0|        return NULL;
   78|       |
   79|  28.0k|    ret->lock = CRYPTO_THREAD_lock_new();
   80|  28.0k|    if (ret->lock == NULL) {
  ------------------
  |  Branch (80:9): [True: 0, False: 28.0k]
  ------------------
   81|      0|        ERR_raise(ERR_LIB_RSA, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   82|      0|        OPENSSL_free(ret);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   83|      0|        return NULL;
   84|      0|    }
   85|       |
   86|  28.0k|    if (!CRYPTO_NEW_REF(&ret->references, 1)) {
  ------------------
  |  Branch (86:9): [True: 0, False: 28.0k]
  ------------------
   87|      0|        CRYPTO_THREAD_lock_free(ret->lock);
   88|      0|        OPENSSL_free(ret);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   89|      0|        return NULL;
   90|      0|    }
   91|       |
   92|  28.0k|    ret->blindings_sa = ossl_rsa_alloc_blinding();
   93|  28.0k|    if (ret->blindings_sa == NULL)
  ------------------
  |  Branch (93:9): [True: 0, False: 28.0k]
  ------------------
   94|      0|        goto err;
   95|       |
   96|  28.0k|    ret->libctx = libctx;
   97|  28.0k|    ret->meth = RSA_get_default_method();
   98|  28.0k|    ret->flags = ret->meth->flags & ~RSA_FLAG_NON_FIPS_ALLOW;
  ------------------
  |  |  475|  28.0k|#define RSA_FLAG_NON_FIPS_ALLOW 0x0400
  ------------------
   99|  28.0k|#ifndef FIPS_MODULE
  100|  28.0k|    if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_RSA, ret, &ret->ex_data)) {
  ------------------
  |  |  260|  28.0k|#define CRYPTO_EX_INDEX_RSA 9
  ------------------
  |  Branch (100:9): [True: 0, False: 28.0k]
  ------------------
  101|      0|        goto err;
  102|      0|    }
  103|  28.0k|#endif
  104|       |
  105|  28.0k|    if ((ret->meth->init != NULL) && !ret->meth->init(ret)) {
  ------------------
  |  Branch (105:9): [True: 28.0k, False: 0]
  |  Branch (105:38): [True: 0, False: 28.0k]
  ------------------
  106|      0|        ERR_raise(ERR_LIB_RSA, ERR_R_INIT_FAIL);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  107|      0|        goto err;
  108|      0|    }
  109|       |
  110|  28.0k|    return ret;
  111|       |
  112|      0|err:
  113|      0|    RSA_free(ret);
  114|       |    return NULL;
  115|  28.0k|}

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

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

ossl_sha3_reset:
   30|  7.18k|{
   31|       |#if defined(__s390x__) && defined(OPENSSL_CPUID_OBJ)
   32|       |    if (!(OPENSSL_s390xcap_P.stfle[1] & S390X_CAPBIT(S390X_MSA12)))
   33|       |#endif
   34|  7.18k|        memset(ctx->A, 0, sizeof(ctx->A));
   35|  7.18k|    ctx->bufsz = 0;
   36|  7.18k|    ctx->xof_state = XOF_STATE_INIT;
  ------------------
  |  |   35|  7.18k|#define XOF_STATE_INIT 0
  ------------------
   37|  7.18k|}
ossl_sha3_init:
   40|  1.36k|{
   41|  1.36k|    size_t bsz = SHA3_BLOCKSIZE(bitlen);
  ------------------
  |  |   21|  1.36k|#define SHA3_BLOCKSIZE(bitlen) (KECCAK1600_WIDTH - bitlen * 2) / 8
  |  |  ------------------
  |  |  |  |   18|  1.36k|#define KECCAK1600_WIDTH 1600
  |  |  ------------------
  ------------------
   42|       |
   43|  1.36k|    if (bsz <= sizeof(ctx->buf)) {
  ------------------
  |  Branch (43:9): [True: 1.36k, False: 0]
  ------------------
   44|  1.36k|        ossl_sha3_reset(ctx);
   45|  1.36k|        ctx->block_size = bsz;
   46|  1.36k|        ctx->md_size = bitlen / 8;
   47|  1.36k|        ctx->pad = pad;
   48|  1.36k|        return 1;
   49|  1.36k|    }
   50|       |
   51|      0|    return 0;
   52|  1.36k|}
ossl_keccak_init:
   55|    684|{
   56|    684|    int ret = ossl_sha3_init(ctx, pad, bitlen);
   57|       |
   58|    684|    if (ret)
  ------------------
  |  Branch (58:9): [True: 684, False: 0]
  ------------------
   59|    684|        ctx->md_size = mdlen / 8;
   60|    684|    return ret;
   61|    684|}
ossl_sha3_absorb:
   68|  6.84k|{
   69|  6.84k|    const size_t bsz = ctx->block_size;
   70|  6.84k|    size_t num, rem;
   71|       |
   72|  6.84k|    if (ossl_unlikely(len == 0))
  ------------------
  |  |   23|  6.84k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 6.84k]
  |  |  ------------------
  ------------------
   73|      0|        return 1;
   74|       |
   75|  6.84k|    if (!(ctx->xof_state == XOF_STATE_INIT || ctx->xof_state == XOF_STATE_ABSORB))
  ------------------
  |  |   35|  13.6k|#define XOF_STATE_INIT 0
  ------------------
                  if (!(ctx->xof_state == XOF_STATE_INIT || ctx->xof_state == XOF_STATE_ABSORB))
  ------------------
  |  |   36|  1.02k|#define XOF_STATE_ABSORB 1
  ------------------
  |  Branch (75:11): [True: 5.81k, False: 1.02k]
  |  Branch (75:47): [True: 1.02k, False: 0]
  ------------------
   76|      0|        return 0;
   77|       |
   78|       |    /* Is there anything in the buffer already ? */
   79|  6.84k|    if ((num = ctx->bufsz) != 0) {
  ------------------
  |  Branch (79:9): [True: 1.02k, False: 5.81k]
  ------------------
   80|       |        /* Calculate how much space is left in the buffer */
   81|  1.02k|        rem = bsz - num;
   82|       |        /* If the new input does not fill the buffer then just add it */
   83|  1.02k|        if (len < rem) {
  ------------------
  |  Branch (83:13): [True: 342, False: 684]
  ------------------
   84|    342|            memcpy(ctx->buf + num, inp, len);
   85|    342|            ctx->bufsz += len;
   86|    342|            return 1;
   87|    342|        }
   88|       |        /* otherwise fill up the buffer and absorb the buffer */
   89|    684|        memcpy(ctx->buf + num, inp, rem);
   90|       |        /* Update the input pointer */
   91|    684|        inp += rem;
   92|    684|        len -= rem;
   93|    684|        ctx->meth.absorb(ctx, ctx->buf, bsz);
   94|    684|        ctx->bufsz = 0;
   95|    684|        ctx->xof_state = XOF_STATE_ABSORB;
  ------------------
  |  |   36|    684|#define XOF_STATE_ABSORB 1
  ------------------
   96|    684|    }
   97|       |    /* Absorb the input - rem = leftover part of the input < blocksize) */
   98|  6.49k|    rem = ctx->meth.absorb(ctx, inp, len);
   99|  6.49k|    if (len >= bsz)
  ------------------
  |  Branch (99:9): [True: 1.02k, False: 5.47k]
  ------------------
  100|  1.02k|        ctx->xof_state = XOF_STATE_ABSORB;
  ------------------
  |  |   36|  1.02k|#define XOF_STATE_ABSORB 1
  ------------------
  101|       |    /* Copy the leftover bit of the input into the buffer */
  102|  6.49k|    if (ossl_likely(rem > 0)) {
  ------------------
  |  |   22|  6.49k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 6.49k, False: 0]
  |  |  ------------------
  ------------------
  103|  6.49k|        memcpy(ctx->buf, inp + len - rem, rem);
  104|  6.49k|        ctx->bufsz = rem;
  105|  6.49k|    }
  106|  6.49k|    return 1;
  107|  6.84k|}
ossl_sha3_final:
  115|  2.73k|{
  116|  2.73k|    int ret;
  117|       |
  118|  2.73k|    if (ctx->xof_state == XOF_STATE_SQUEEZE
  ------------------
  |  |   38|  5.47k|#define XOF_STATE_SQUEEZE 3
  ------------------
  |  Branch (118:9): [True: 0, False: 2.73k]
  ------------------
  119|  2.73k|        || ctx->xof_state == XOF_STATE_FINAL)
  ------------------
  |  |   37|  2.73k|#define XOF_STATE_FINAL 2
  ------------------
  |  Branch (119:12): [True: 0, False: 2.73k]
  ------------------
  120|      0|        return 0;
  121|  2.73k|    if (outlen == 0)
  ------------------
  |  Branch (121:9): [True: 0, False: 2.73k]
  ------------------
  122|      0|        return 1;
  123|       |
  124|  2.73k|    ret = ctx->meth.final(ctx, out, outlen);
  125|  2.73k|    ctx->xof_state = XOF_STATE_FINAL;
  ------------------
  |  |   37|  2.73k|#define XOF_STATE_FINAL 2
  ------------------
  126|  2.73k|    return ret;
  127|  2.73k|}
ossl_sha3_squeeze:
  131|  9.25k|{
  132|  9.25k|    int ret = 0;
  133|       |
  134|  9.25k|    if (ctx->xof_state == XOF_STATE_FINAL)
  ------------------
  |  |   37|  9.25k|#define XOF_STATE_FINAL 2
  ------------------
  |  Branch (134:9): [True: 0, False: 9.25k]
  ------------------
  135|      0|        return 0;
  136|  9.25k|    ret = ctx->meth.squeeze(ctx, out, outlen);
  137|  9.25k|    ctx->xof_state = XOF_STATE_SQUEEZE;
  ------------------
  |  |   38|  9.25k|#define XOF_STATE_SQUEEZE 3
  ------------------
  138|  9.25k|    return ret;
  139|  9.25k|}
ossl_sha3_absorb_default:
  143|  7.18k|{
  144|  7.18k|    return SHA3_absorb(ctx->A, inp, len, ctx->block_size);
  145|  7.18k|}
ossl_sha3_final_default:
  152|  2.73k|{
  153|  2.73k|    size_t bsz = ctx->block_size;
  154|  2.73k|    size_t num = ctx->bufsz;
  155|       |
  156|       |    /*
  157|       |     * Pad the data with 10*1. Note that |num| can be |bsz - 1|
  158|       |     * in which case both byte operations below are performed on
  159|       |     * same byte...
  160|       |     */
  161|  2.73k|    memset(ctx->buf + num, 0, bsz - num);
  162|  2.73k|    ctx->buf[num] = ctx->pad;
  163|  2.73k|    ctx->buf[bsz - 1] |= 0x80;
  164|       |
  165|  2.73k|    (void)SHA3_absorb(ctx->A, ctx->buf, bsz, bsz);
  166|       |
  167|  2.73k|    SHA3_squeeze(ctx->A, out, outlen, bsz, 0);
  168|  2.73k|    return 1;
  169|  2.73k|}
ossl_shake_squeeze_default:
  182|  9.25k|{
  183|  9.25k|    size_t bsz = ctx->block_size;
  184|  9.25k|    size_t num = ctx->bufsz;
  185|  9.25k|    size_t len;
  186|  9.25k|    int next = 1;
  187|       |
  188|       |    /*
  189|       |     * On the first squeeze call, finish the absorb process,
  190|       |     * by adding the trailing padding and then doing
  191|       |     * a final absorb.
  192|       |     */
  193|  9.25k|    if (ctx->xof_state != XOF_STATE_SQUEEZE) {
  ------------------
  |  |   38|  9.25k|#define XOF_STATE_SQUEEZE 3
  ------------------
  |  Branch (193:9): [True: 3.07k, False: 6.18k]
  ------------------
  194|       |        /*
  195|       |         * Pad the data with 10*1. Note that |num| can be |bsz - 1|
  196|       |         * in which case both byte operations below are performed on
  197|       |         * same byte...
  198|       |         */
  199|  3.07k|        memset(ctx->buf + num, 0, bsz - num);
  200|  3.07k|        ctx->buf[num] = ctx->pad;
  201|  3.07k|        ctx->buf[bsz - 1] |= 0x80;
  202|  3.07k|        (void)SHA3_absorb(ctx->A, ctx->buf, bsz, bsz);
  203|  3.07k|        num = ctx->bufsz = 0;
  204|  3.07k|        next = 0;
  205|  3.07k|    }
  206|       |
  207|       |    /*
  208|       |     * Step 1. Consume any bytes left over from a previous squeeze
  209|       |     * (See Step 4 below).
  210|       |     */
  211|  9.25k|    if (num != 0) {
  ------------------
  |  Branch (211:9): [True: 0, False: 9.25k]
  ------------------
  212|      0|        if (outlen > ctx->bufsz)
  ------------------
  |  Branch (212:13): [True: 0, False: 0]
  ------------------
  213|      0|            len = ctx->bufsz;
  214|      0|        else
  215|      0|            len = outlen;
  216|      0|        memcpy(out, ctx->buf + bsz - ctx->bufsz, len);
  217|      0|        out += len;
  218|      0|        outlen -= len;
  219|      0|        ctx->bufsz -= len;
  220|      0|    }
  221|  9.25k|    if (outlen == 0)
  ------------------
  |  Branch (221:9): [True: 0, False: 9.25k]
  ------------------
  222|      0|        return 1;
  223|       |
  224|       |    /* Step 2. Copy full sized squeezed blocks to the output buffer directly */
  225|  9.25k|    if (outlen >= bsz) {
  ------------------
  |  Branch (225:9): [True: 9.25k, False: 0]
  ------------------
  226|  9.25k|        len = bsz * (outlen / bsz);
  227|  9.25k|        SHA3_squeeze(ctx->A, out, len, bsz, next);
  228|  9.25k|        next = 1;
  229|  9.25k|        out += len;
  230|  9.25k|        outlen -= len;
  231|  9.25k|    }
  232|  9.25k|    if (outlen > 0) {
  ------------------
  |  Branch (232:9): [True: 0, False: 9.25k]
  ------------------
  233|       |        /* Step 3. Squeeze one more block into a buffer */
  234|      0|        SHA3_squeeze(ctx->A, ctx->buf, bsz, bsz, next);
  235|      0|        memcpy(out, ctx->buf, outlen);
  236|       |        /* Step 4. Remember the leftover part of the squeezed block */
  237|      0|        ctx->bufsz = bsz - outlen;
  238|      0|    }
  239|  9.25k|    return 1;
  240|  9.25k|}

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:
   24|      2|{
   25|      2|    return &sm3_md;
   26|      2|}

ossl_sa_new:
   59|  28.0k|{
   60|  28.0k|    OPENSSL_SA *res = OPENSSL_zalloc(sizeof(*res));
  ------------------
  |  |  109|  28.0k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   61|       |
   62|  28.0k|    return res;
   63|  28.0k|}
ossl_sa_free:
  111|  28.0k|{
  112|  28.0k|    if (sa != NULL) {
  ------------------
  |  Branch (112:9): [True: 28.0k, False: 0]
  ------------------
  113|  28.0k|        sa_doall(sa, &sa_free_node, NULL, NULL);
  114|  28.0k|        OPENSSL_free(sa);
  ------------------
  |  |  132|  28.0k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  115|  28.0k|    }
  116|  28.0k|}
ossl_sa_doall_arg:
  146|  28.0k|{
  147|  28.0k|    if (sa != NULL)
  ------------------
  |  Branch (147:9): [True: 28.0k, False: 0]
  ------------------
  148|  28.0k|        sa_doall(sa, NULL, leaf, arg);
  149|  28.0k|}
ossl_sa_num:
  152|     24|{
  153|     24|    return sa == NULL ? 0 : sa->nelem;
  ------------------
  |  Branch (153:12): [True: 0, False: 24]
  ------------------
  154|     24|}
ossl_sa_get:
  157|  1.98M|{
  158|  1.98M|    int level;
  159|  1.98M|    void **p, *r = NULL;
  160|       |
  161|  1.98M|    if (sa == NULL || sa->nelem == 0)
  ------------------
  |  Branch (161:9): [True: 0, False: 1.98M]
  |  Branch (161:23): [True: 18, False: 1.98M]
  ------------------
  162|     18|        return NULL;
  163|       |
  164|  1.98M|    if (n <= sa->top) {
  ------------------
  |  Branch (164:9): [True: 1.98M, False: 314]
  ------------------
  165|  1.98M|        p = sa->nodes;
  166|  2.24M|        for (level = sa->levels - 1; p != NULL && level > 0; level--)
  ------------------
  |  Branch (166:38): [True: 2.24M, False: 3.72k]
  |  Branch (166:51): [True: 259k, False: 1.98M]
  ------------------
  167|   259k|            p = (void **)p[(n >> (OPENSSL_SA_BLOCK_BITS * level))
  ------------------
  |  |   34|   259k|#define OPENSSL_SA_BLOCK_BITS 4
  ------------------
  168|   259k|                & SA_BLOCK_MASK];
  ------------------
  |  |   46|   259k|#define SA_BLOCK_MASK (SA_BLOCK_MAX - 1)
  |  |  ------------------
  |  |  |  |   45|   259k|#define SA_BLOCK_MAX (1 << OPENSSL_SA_BLOCK_BITS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   34|   259k|#define OPENSSL_SA_BLOCK_BITS 4
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  169|  1.98M|        r = p == NULL ? NULL : p[n & SA_BLOCK_MASK];
  ------------------
  |  |   46|  1.98M|#define SA_BLOCK_MASK (SA_BLOCK_MAX - 1)
  |  |  ------------------
  |  |  |  |   45|  1.98M|#define SA_BLOCK_MAX (1 << OPENSSL_SA_BLOCK_BITS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   34|  1.98M|#define OPENSSL_SA_BLOCK_BITS 4
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (169:13): [True: 3.72k, False: 1.98M]
  ------------------
  170|  1.98M|    }
  171|  1.98M|    return r;
  172|  1.98M|}
ossl_sa_set:
  180|    313|{
  181|    313|    int i, level = 1;
  182|    313|    ossl_uintmax_t n = posn;
  183|    313|    void **p;
  184|       |
  185|    313|    if (sa == NULL)
  ------------------
  |  Branch (185:9): [True: 0, False: 313]
  ------------------
  186|      0|        return 0;
  187|       |
  188|  1.17k|    for (level = 1; level < SA_BLOCK_MAX_LEVELS; level++)
  ------------------
  |  |   47|  1.17k|#define SA_BLOCK_MAX_LEVELS (((int)sizeof(ossl_uintmax_t) * 8 \
  |  |   48|  1.17k|                                 + OPENSSL_SA_BLOCK_BITS - 1) \
  |  |  ------------------
  |  |  |  |   34|  1.17k|#define OPENSSL_SA_BLOCK_BITS 4
  |  |  ------------------
  |  |   49|  1.17k|    / OPENSSL_SA_BLOCK_BITS)
  |  |  ------------------
  |  |  |  |   34|  1.17k|#define OPENSSL_SA_BLOCK_BITS 4
  |  |  ------------------
  ------------------
  |  Branch (188:21): [True: 1.17k, False: 0]
  ------------------
  189|  1.17k|        if ((n >>= OPENSSL_SA_BLOCK_BITS) == 0)
  ------------------
  |  |   34|  1.17k|#define OPENSSL_SA_BLOCK_BITS 4
  ------------------
  |  Branch (189:13): [True: 313, False: 863]
  ------------------
  190|    313|            break;
  191|       |
  192|    365|    for (; sa->levels < level; sa->levels++) {
  ------------------
  |  Branch (192:12): [True: 52, False: 313]
  ------------------
  193|     52|        p = alloc_node();
  194|     52|        if (p == NULL)
  ------------------
  |  Branch (194:13): [True: 0, False: 52]
  ------------------
  195|      0|            return 0;
  196|     52|        p[0] = sa->nodes;
  197|     52|        sa->nodes = p;
  198|     52|    }
  199|    313|    if (sa->top < posn)
  ------------------
  |  Branch (199:9): [True: 167, False: 146]
  ------------------
  200|    167|        sa->top = posn;
  201|       |
  202|    313|    p = sa->nodes;
  203|  1.20k|    for (level = sa->levels - 1; level > 0; level--) {
  ------------------
  |  Branch (203:34): [True: 888, False: 313]
  ------------------
  204|    888|        i = (posn >> (OPENSSL_SA_BLOCK_BITS * level)) & SA_BLOCK_MASK;
  ------------------
  |  |   34|    888|#define OPENSSL_SA_BLOCK_BITS 4
  ------------------
                      i = (posn >> (OPENSSL_SA_BLOCK_BITS * level)) & SA_BLOCK_MASK;
  ------------------
  |  |   46|    888|#define SA_BLOCK_MASK (SA_BLOCK_MAX - 1)
  |  |  ------------------
  |  |  |  |   45|    888|#define SA_BLOCK_MAX (1 << OPENSSL_SA_BLOCK_BITS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   34|    888|#define OPENSSL_SA_BLOCK_BITS 4
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  205|    888|        if (p[i] == NULL && (p[i] = alloc_node()) == NULL)
  ------------------
  |  Branch (205:13): [True: 615, False: 273]
  |  Branch (205:29): [True: 0, False: 615]
  ------------------
  206|      0|            return 0;
  207|    888|        p = p[i];
  208|    888|    }
  209|    313|    p += posn & SA_BLOCK_MASK;
  ------------------
  |  |   46|    313|#define SA_BLOCK_MASK (SA_BLOCK_MAX - 1)
  |  |  ------------------
  |  |  |  |   45|    313|#define SA_BLOCK_MAX (1 << OPENSSL_SA_BLOCK_BITS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   34|    313|#define OPENSSL_SA_BLOCK_BITS 4
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  210|    313|    if (val == NULL && *p != NULL)
  ------------------
  |  Branch (210:9): [True: 0, False: 313]
  |  Branch (210:24): [True: 0, False: 0]
  ------------------
  211|      0|        sa->nelem--;
  212|    313|    else if (val != NULL && *p == NULL)
  ------------------
  |  Branch (212:14): [True: 313, False: 0]
  |  Branch (212:29): [True: 307, False: 6]
  ------------------
  213|    307|        sa->nelem++;
  214|    313|    *p = val;
  215|    313|    return 1;
  216|    313|}
sparse_array.c:sa_doall:
   67|  56.1k|{
   68|  56.1k|    int i[SA_BLOCK_MAX_LEVELS];
   69|  56.1k|    void *nodes[SA_BLOCK_MAX_LEVELS];
   70|  56.1k|    ossl_uintmax_t idx = 0;
   71|  56.1k|    int l = 0;
   72|       |
   73|  56.1k|    i[0] = 0;
   74|  56.1k|    nodes[0] = sa->nodes;
   75|  1.03M|    while (l >= 0) {
  ------------------
  |  Branch (75:12): [True: 975k, False: 56.1k]
  ------------------
   76|   975k|        const int n = i[l];
   77|   975k|        void **const p = nodes[l];
   78|       |
   79|   975k|        if (n >= SA_BLOCK_MAX) {
  ------------------
  |  |   45|   975k|#define SA_BLOCK_MAX (1 << OPENSSL_SA_BLOCK_BITS)
  |  |  ------------------
  |  |  |  |   34|   975k|#define OPENSSL_SA_BLOCK_BITS 4
  |  |  ------------------
  ------------------
  |  Branch (79:13): [True: 57.3k, False: 918k]
  ------------------
   80|  57.3k|            if (p != NULL && node != NULL)
  ------------------
  |  Branch (80:17): [True: 1.29k, False: 56.0k]
  |  Branch (80:30): [True: 0, False: 1.29k]
  ------------------
   81|      0|                (*node)(p);
   82|  57.3k|            l--;
   83|  57.3k|            idx >>= OPENSSL_SA_BLOCK_BITS;
  ------------------
  |  |   34|  57.3k|#define OPENSSL_SA_BLOCK_BITS 4
  ------------------
   84|   918k|        } else {
   85|   918k|            i[l] = n + 1;
   86|   918k|            if (p != NULL && p[n] != NULL) {
  ------------------
  |  Branch (86:17): [True: 20.6k, False: 897k]
  |  Branch (86:30): [True: 1.93k, False: 18.7k]
  ------------------
   87|  1.93k|                idx = (idx & ~SA_BLOCK_MASK) | n;
  ------------------
  |  |   46|  1.93k|#define SA_BLOCK_MASK (SA_BLOCK_MAX - 1)
  |  |  ------------------
  |  |  |  |   45|  1.93k|#define SA_BLOCK_MAX (1 << OPENSSL_SA_BLOCK_BITS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   34|  1.93k|#define OPENSSL_SA_BLOCK_BITS 4
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   88|  1.93k|                if (l < sa->levels - 1) {
  ------------------
  |  Branch (88:21): [True: 1.26k, False: 666]
  ------------------
   89|  1.26k|                    i[++l] = 0;
   90|  1.26k|                    nodes[l] = p[n];
   91|  1.26k|                    idx <<= OPENSSL_SA_BLOCK_BITS;
  ------------------
  |  |   34|  1.26k|#define OPENSSL_SA_BLOCK_BITS 4
  ------------------
   92|  1.26k|                } else if (leaf != NULL) {
  ------------------
  |  Branch (92:28): [True: 666, False: 0]
  ------------------
   93|    666|                    (*leaf)(idx, p[n], arg);
   94|    666|                }
   95|  1.93k|            }
   96|   918k|        }
   97|   975k|    }
   98|  56.1k|}
sparse_array.c:alloc_node:
  175|    667|{
  176|    667|    return OPENSSL_calloc(SA_BLOCK_MAX, sizeof(void *));
  ------------------
  |  |  113|    667|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  177|    667|}

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:
   40|    351|{
   41|    351|    OPENSSL_sk_compfunc old = sk->comp;
   42|       |
   43|    351|    if (sk->comp != c && sk->num > 1)
  ------------------
  |  Branch (43:9): [True: 351, False: 0]
  |  Branch (43:26): [True: 351, False: 0]
  ------------------
   44|    351|        sk->sorted = 0;
   45|    351|    sk->comp = c;
   46|       |
   47|    351|    return old;
   48|    351|}
OPENSSL_sk_deep_copy:
  101|  82.7k|{
  102|  82.7k|    return internal_copy(sk, copy_func, free_func);
  103|  82.7k|}
OPENSSL_sk_dup:
  106|  50.6k|{
  107|  50.6k|    return internal_copy(sk, NULL, NULL);
  108|  50.6k|}
OPENSSL_sk_new_null:
  111|  1.26M|{
  112|       |    return OPENSSL_sk_new_reserve(NULL, 0);
  113|  1.26M|}
OPENSSL_sk_new:
  116|  42.2k|{
  117|  42.2k|    return OPENSSL_sk_new_reserve(c, 0);
  118|  42.2k|}
OPENSSL_sk_new_reserve:
  212|  1.30M|{
  213|  1.30M|    OPENSSL_STACK *st = OPENSSL_zalloc(sizeof(OPENSSL_STACK));
  ------------------
  |  |  109|  1.30M|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  214|       |
  215|  1.30M|    if (st == NULL)
  ------------------
  |  Branch (215:9): [True: 0, False: 1.30M]
  ------------------
  216|      0|        return NULL;
  217|       |
  218|  1.30M|    st->comp = c;
  219|  1.30M|    st->sorted = 1; /* empty or single-element stack is considered sorted */
  220|       |
  221|  1.30M|    if (n <= 0)
  ------------------
  |  Branch (221:9): [True: 1.30M, False: 24]
  ------------------
  222|  1.30M|        return st;
  223|       |
  224|     24|    if (!sk_reserve(st, n, 1)) {
  ------------------
  |  Branch (224:9): [True: 0, False: 24]
  ------------------
  225|      0|        OPENSSL_sk_free(st);
  226|      0|        return NULL;
  227|      0|    }
  228|       |
  229|     24|    return st;
  230|     24|}
OPENSSL_sk_set_thunks:
  245|  1.49M|{
  246|  1.49M|    if (st != NULL)
  ------------------
  |  Branch (246:9): [True: 1.38M, False: 117k]
  ------------------
  247|  1.38M|        st->free_thunk = f_thunk;
  248|       |
  249|  1.49M|    return st;
  250|  1.49M|}
OPENSSL_sk_set_cmp_thunks:
  253|  42.2k|{
  254|  42.2k|    if (st != NULL)
  ------------------
  |  Branch (254:9): [True: 42.2k, False: 0]
  ------------------
  255|  42.2k|        st->cmp_thunk = c_thunk;
  256|       |
  257|  42.2k|    return st;
  258|  42.2k|}
OPENSSL_sk_insert:
  261|  1.74M|{
  262|  1.74M|    int cmp_ret;
  263|       |
  264|  1.74M|    if (st == NULL) {
  ------------------
  |  Branch (264:9): [True: 0, False: 1.74M]
  ------------------
  265|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  266|      0|        return 0;
  267|      0|    }
  268|  1.74M|    if (st->num == max_nodes) {
  ------------------
  |  Branch (268:9): [True: 0, False: 1.74M]
  ------------------
  269|      0|        ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_TOO_MANY_RECORDS);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  270|      0|        return 0;
  271|      0|    }
  272|       |
  273|  1.74M|    if (!sk_reserve(st, 1, 0))
  ------------------
  |  Branch (273:9): [True: 0, False: 1.74M]
  ------------------
  274|      0|        return 0;
  275|       |
  276|  1.74M|    if ((loc >= st->num) || (loc < 0)) {
  ------------------
  |  Branch (276:9): [True: 1.74M, False: 0]
  |  Branch (276:29): [True: 0, False: 0]
  ------------------
  277|  1.74M|        loc = st->num;
  278|  1.74M|        st->data[loc] = data;
  279|  1.74M|    } else {
  280|      0|        memmove(&st->data[loc + 1], &st->data[loc],
  281|      0|            sizeof(st->data[0]) * (st->num - loc));
  282|      0|        st->data[loc] = data;
  283|      0|    }
  284|  1.74M|    st->num++;
  285|  1.74M|    if (st->sorted && st->num > 1) {
  ------------------
  |  Branch (285:9): [True: 1.21M, False: 530k]
  |  Branch (285:23): [True: 292k, False: 921k]
  ------------------
  286|   292k|        if (st->comp != NULL) {
  ------------------
  |  Branch (286:13): [True: 265, False: 292k]
  ------------------
  287|    265|            if (loc > 0) {
  ------------------
  |  Branch (287:17): [True: 265, False: 0]
  ------------------
  288|    265|                cmp_ret = cmp_with_thunk(st, &st->data[loc - 1], &st->data[loc]);
  289|    265|                if (cmp_ret > 0)
  ------------------
  |  Branch (289:21): [True: 0, False: 265]
  ------------------
  290|      0|                    st->sorted = 0;
  291|    265|            }
  292|    265|            if (loc < st->num - 1) {
  ------------------
  |  Branch (292:17): [True: 0, False: 265]
  ------------------
  293|      0|                cmp_ret = cmp_with_thunk(st, &st->data[loc + 1], &st->data[loc]);
  294|      0|                if (cmp_ret < 0)
  ------------------
  |  Branch (294:21): [True: 0, False: 0]
  ------------------
  295|      0|                    st->sorted = 0;
  296|      0|            }
  297|   292k|        } else {
  298|   292k|            st->sorted = 0;
  299|   292k|        }
  300|   292k|    }
  301|  1.74M|    return st->num;
  302|  1.74M|}
OPENSSL_sk_find:
  408|    349|{
  409|    349|    return internal_find(st, data, OSSL_BSEARCH_FIRST_VALUE_ON_MATCH, NULL);
  ------------------
  |  |  150|    349|#define OSSL_BSEARCH_FIRST_VALUE_ON_MATCH 0x02
  ------------------
  410|    349|}
OPENSSL_sk_push:
  423|  1.74M|{
  424|  1.74M|    if (st == NULL)
  ------------------
  |  Branch (424:9): [True: 0, False: 1.74M]
  ------------------
  425|      0|        return 0;
  426|  1.74M|    return OPENSSL_sk_insert(st, data, st->num);
  427|  1.74M|}
OPENSSL_sk_pop:
  442|    684|{
  443|    684|    if (st == NULL || st->num == 0)
  ------------------
  |  Branch (443:9): [True: 0, False: 684]
  |  Branch (443:23): [True: 0, False: 684]
  ------------------
  444|      0|        return NULL;
  445|    684|    return internal_delete(st, st->num - 1);
  446|    684|}
OPENSSL_sk_pop_free:
  457|  1.05M|{
  458|  1.05M|    int i;
  459|       |
  460|  1.05M|    if (st == NULL)
  ------------------
  |  Branch (460:9): [True: 299k, False: 750k]
  ------------------
  461|   299k|        return;
  462|       |
  463|  2.29M|    for (i = 0; i < st->num; i++) {
  ------------------
  |  Branch (463:17): [True: 1.54M, False: 750k]
  ------------------
  464|  1.54M|        if (st->data[i] != NULL) {
  ------------------
  |  Branch (464:13): [True: 1.54M, False: 0]
  ------------------
  465|  1.54M|            if (st->free_thunk != NULL)
  ------------------
  |  Branch (465:17): [True: 1.50M, False: 41.3k]
  ------------------
  466|  1.50M|                st->free_thunk(func, (void *)st->data[i]);
  467|  41.3k|            else
  468|  41.3k|                func((void *)st->data[i]);
  469|  1.54M|        }
  470|  1.54M|    }
  471|   750k|    OPENSSL_sk_free(st);
  472|   750k|}
OPENSSL_sk_free:
  475|  1.93M|{
  476|  1.93M|    if (st == NULL)
  ------------------
  |  Branch (476:9): [True: 629k, False: 1.30M]
  ------------------
  477|   629k|        return;
  478|  1.30M|    OPENSSL_free(st->data);
  ------------------
  |  |  132|  1.30M|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  479|  1.30M|    OPENSSL_free(st);
  ------------------
  |  |  132|  1.30M|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  480|  1.30M|}
OPENSSL_sk_num:
  483|  6.07M|{
  484|  6.07M|    return st == NULL ? -1 : st->num;
  ------------------
  |  Branch (484:12): [True: 1.11M, False: 4.95M]
  ------------------
  485|  6.07M|}
OPENSSL_sk_value:
  488|  3.19M|{
  489|  3.19M|    if (st == NULL || i < 0 || i >= st->num)
  ------------------
  |  Branch (489:9): [True: 0, False: 3.19M]
  |  Branch (489:23): [True: 0, False: 3.19M]
  |  Branch (489:32): [True: 0, False: 3.19M]
  ------------------
  490|      0|        return NULL;
  491|  3.19M|    return (void *)st->data[i];
  492|  3.19M|}
OPENSSL_sk_set:
  495|   293k|{
  496|   293k|    if (st == NULL) {
  ------------------
  |  Branch (496:9): [True: 0, False: 293k]
  ------------------
  497|      0|        ERR_raise(ERR_LIB_CRYPTO, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  498|      0|        return NULL;
  499|      0|    }
  500|   293k|    if (i < 0 || i >= st->num) {
  ------------------
  |  Branch (500:9): [True: 0, False: 293k]
  |  Branch (500:18): [True: 0, False: 293k]
  ------------------
  501|      0|        ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |   68|      0|#define ERR_LIB_CRYPTO 15
  ------------------
                      ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |  311|      0|#define ERR_R_PASSED_INVALID_ARGUMENT (262 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  220|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  211|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  502|      0|            "i=%d", i);
  503|      0|        return NULL;
  504|      0|    }
  505|   293k|    st->data[i] = data;
  506|   293k|    st->sorted = st->num <= 1;
  507|   293k|    return (void *)st->data[i];
  508|   293k|}
OPENSSL_sk_sort:
  511|    498|{
  512|    498|    if (st != NULL && !st->sorted && st->comp != NULL) {
  ------------------
  |  Branch (512:9): [True: 498, False: 0]
  |  Branch (512:23): [True: 349, False: 149]
  |  Branch (512:38): [True: 349, False: 0]
  ------------------
  513|    349|        if (st->num > 1)
  ------------------
  |  Branch (513:13): [True: 349, False: 0]
  ------------------
  514|    349|            qsort(st->data, st->num, sizeof(void *), st->comp);
  515|    349|        st->sorted = 1; /* empty or single-element stack is considered sorted */
  516|    349|    }
  517|    498|}
OPENSSL_sk_is_sorted:
  520|      3|{
  521|      3|    return st == NULL ? 1 : st->sorted;
  ------------------
  |  Branch (521:12): [True: 0, False: 3]
  ------------------
  522|      3|}
stack.c:internal_copy:
   53|   133k|{
   54|   133k|    OPENSSL_STACK *ret;
   55|   133k|    int i;
   56|       |
   57|   133k|    if ((ret = OPENSSL_sk_new_null()) == NULL)
  ------------------
  |  Branch (57:9): [True: 0, False: 133k]
  ------------------
   58|      0|        goto err;
   59|       |
   60|   133k|    if (sk == NULL)
  ------------------
  |  Branch (60:9): [True: 1, False: 133k]
  ------------------
   61|      1|        goto done;
   62|       |
   63|       |    /* direct structure assignment */
   64|   133k|    *ret = *sk;
   65|   133k|    ret->data = NULL;
   66|   133k|    ret->num_alloc = 0;
   67|       |
   68|   133k|    if (ret->num == 0)
  ------------------
  |  Branch (68:9): [True: 0, False: 133k]
  ------------------
   69|      0|        goto done; /* nothing to copy */
   70|       |
   71|   133k|    ret->num_alloc = ret->num > min_nodes ? ret->num : min_nodes;
  ------------------
  |  Branch (71:22): [True: 41.7k, False: 91.6k]
  ------------------
   72|   133k|    ret->data = OPENSSL_calloc(ret->num_alloc, sizeof(*ret->data));
  ------------------
  |  |  113|   133k|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   73|   133k|    if (ret->data == NULL)
  ------------------
  |  Branch (73:9): [True: 0, False: 133k]
  ------------------
   74|      0|        goto err;
   75|   133k|    if (copy_func == NULL) {
  ------------------
  |  Branch (75:9): [True: 50.6k, False: 82.7k]
  ------------------
   76|  50.6k|        memcpy(ret->data, sk->data, sizeof(*ret->data) * ret->num);
   77|  82.7k|    } else {
   78|   372k|        for (i = 0; i < ret->num; ++i) {
  ------------------
  |  Branch (78:21): [True: 289k, False: 82.7k]
  ------------------
   79|   289k|            if (sk->data[i] == NULL)
  ------------------
  |  Branch (79:17): [True: 0, False: 289k]
  ------------------
   80|      0|                continue;
   81|   289k|            if ((ret->data[i] = copy_func(sk->data[i])) == NULL) {
  ------------------
  |  Branch (81:17): [True: 0, False: 289k]
  ------------------
   82|      0|                while (--i >= 0)
  ------------------
  |  Branch (82:24): [True: 0, False: 0]
  ------------------
   83|      0|                    if (ret->data[i] != NULL)
  ------------------
  |  Branch (83:25): [True: 0, False: 0]
  ------------------
   84|      0|                        free_func((void *)ret->data[i]);
   85|      0|                goto err;
   86|      0|            }
   87|   289k|        }
   88|  82.7k|    }
   89|       |
   90|   133k|done:
   91|   133k|    return ret;
   92|       |
   93|      0|err:
   94|      0|    OPENSSL_sk_free(ret);
   95|       |    return NULL;
   96|   133k|}
stack.c:sk_reserve:
  158|  1.74M|{
  159|  1.74M|    const void **tmpdata;
  160|  1.74M|    int num_alloc;
  161|       |
  162|       |    /* Check to see the reservation isn't exceeding the hard limit */
  163|  1.74M|    if (n > max_nodes - st->num) {
  ------------------
  |  Branch (163:9): [True: 0, False: 1.74M]
  ------------------
  164|      0|        ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_TOO_MANY_RECORDS);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  165|      0|        return 0;
  166|      0|    }
  167|       |
  168|       |    /* Figure out the new size */
  169|  1.74M|    num_alloc = st->num + n;
  170|  1.74M|    if (num_alloc < min_nodes)
  ------------------
  |  Branch (170:9): [True: 1.50M, False: 241k]
  ------------------
  171|  1.50M|        num_alloc = min_nodes;
  172|       |
  173|       |    /* If |st->data| allocation was postponed */
  174|  1.74M|    if (st->data == NULL) {
  ------------------
  |  Branch (174:9): [True: 921k, False: 823k]
  ------------------
  175|       |        /*
  176|       |         * At this point, |st->num_alloc| and |st->num| are 0;
  177|       |         * so |num_alloc| value is |n| or |min_nodes| if greater than |n|.
  178|       |         */
  179|   921k|        if ((st->data = OPENSSL_calloc(num_alloc, sizeof(void *))) == NULL)
  ------------------
  |  |  113|   921k|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (179:13): [True: 0, False: 921k]
  ------------------
  180|      0|            return 0;
  181|   921k|        st->num_alloc = num_alloc;
  182|   921k|        return 1;
  183|   921k|    }
  184|       |
  185|   823k|    if (!exact) {
  ------------------
  |  Branch (185:9): [True: 823k, False: 0]
  ------------------
  186|   823k|        if (num_alloc <= st->num_alloc)
  ------------------
  |  Branch (186:13): [True: 770k, False: 53.4k]
  ------------------
  187|   770k|            return 1;
  188|  53.4k|        num_alloc = compute_growth(num_alloc, st->num_alloc);
  189|  53.4k|        if (num_alloc == 0) {
  ------------------
  |  Branch (189:13): [True: 0, False: 53.4k]
  ------------------
  190|      0|            ERR_raise(ERR_LIB_CRYPTO, CRYPTO_R_TOO_MANY_RECORDS);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  191|      0|            return 0;
  192|      0|        }
  193|  53.4k|    } else if (num_alloc == st->num_alloc) {
  ------------------
  |  Branch (193:16): [True: 0, False: 0]
  ------------------
  194|      0|        return 1;
  195|      0|    }
  196|       |
  197|  53.4k|    tmpdata = OPENSSL_realloc_array((void *)st->data, num_alloc, sizeof(void *));
  ------------------
  |  |  125|  53.4k|    CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  198|  53.4k|    if (tmpdata == NULL)
  ------------------
  |  Branch (198:9): [True: 0, False: 53.4k]
  ------------------
  199|      0|        return 0;
  200|       |
  201|  53.4k|    st->data = tmpdata;
  202|  53.4k|    st->num_alloc = num_alloc;
  203|  53.4k|    return 1;
  204|  53.4k|}
stack.c:compute_growth:
  140|  53.4k|{
  141|  53.4k|    int err = 0;
  142|       |
  143|   106k|    while (current < target) {
  ------------------
  |  Branch (143:12): [True: 53.4k, False: 53.4k]
  ------------------
  144|  53.4k|        if (current >= max_nodes)
  ------------------
  |  Branch (144:13): [True: 0, False: 53.4k]
  ------------------
  145|      0|            return 0;
  146|       |
  147|  53.4k|        current = safe_muldiv_int(current, 8, 5, &err);
  148|  53.4k|        if (err != 0)
  ------------------
  |  Branch (148:13): [True: 0, False: 53.4k]
  ------------------
  149|      0|            return 0;
  150|  53.4k|        if (current >= max_nodes)
  ------------------
  |  Branch (150:13): [True: 0, False: 53.4k]
  ------------------
  151|      0|            current = max_nodes;
  152|  53.4k|    }
  153|  53.4k|    return current;
  154|  53.4k|}
stack.c:cmp_with_thunk:
  207|    265|{
  208|    265|    return (st->cmp_thunk == NULL) ? st->comp(a, b) : st->cmp_thunk(st->comp, a, b);
  ------------------
  |  Branch (208:12): [True: 0, False: 265]
  ------------------
  209|    265|}
stack.c:internal_delete:
  305|    684|{
  306|    684|    const void *ret = st->data[loc];
  307|       |
  308|    684|    if (loc != st->num - 1)
  ------------------
  |  Branch (308:9): [True: 0, False: 684]
  ------------------
  309|      0|        memmove(&st->data[loc], &st->data[loc + 1],
  310|      0|            sizeof(st->data[0]) * (st->num - loc - 1));
  311|    684|    st->num--;
  312|    684|    st->sorted = st->sorted || st->num <= 1;
  ------------------
  |  Branch (312:18): [True: 684, False: 0]
  |  Branch (312:32): [True: 0, False: 0]
  ------------------
  313|       |
  314|    684|    return (void *)ret;
  315|    684|}
stack.c:internal_find:
  340|    349|{
  341|    349|    const void *r;
  342|    349|    int i, count = 0;
  343|    349|    int cmp_ret;
  344|    349|    int *pnum = pnum_matched;
  345|       |
  346|    349|    if (st == NULL || st->num == 0)
  ------------------
  |  Branch (346:9): [True: 0, False: 349]
  |  Branch (346:23): [True: 0, False: 349]
  ------------------
  347|      0|        return -1;
  348|       |
  349|    349|    if (pnum == NULL)
  ------------------
  |  Branch (349:9): [True: 349, False: 0]
  ------------------
  350|    349|        pnum = &count;
  351|       |
  352|    349|    if (st->comp == NULL) {
  ------------------
  |  Branch (352:9): [True: 0, False: 349]
  ------------------
  353|      0|        for (i = 0; i < st->num; i++)
  ------------------
  |  Branch (353:21): [True: 0, False: 0]
  ------------------
  354|      0|            if (st->data[i] == data) {
  ------------------
  |  Branch (354:17): [True: 0, False: 0]
  ------------------
  355|      0|                *pnum = 1;
  356|      0|                return i;
  357|      0|            }
  358|      0|        *pnum = 0;
  359|      0|        return -1;
  360|      0|    }
  361|       |
  362|    349|    if (data == NULL)
  ------------------
  |  Branch (362:9): [True: 0, False: 349]
  ------------------
  363|      0|        return -1;
  364|       |
  365|    349|    if (!st->sorted) {
  ------------------
  |  Branch (365:9): [True: 0, False: 349]
  ------------------
  366|      0|        int res = -1;
  367|       |
  368|      0|        for (i = 0; i < st->num; i++) {
  ------------------
  |  Branch (368:21): [True: 0, False: 0]
  ------------------
  369|      0|            cmp_ret = cmp_with_thunk(st, &data, st->data + i);
  370|      0|            if (cmp_ret == 0) {
  ------------------
  |  Branch (370:17): [True: 0, False: 0]
  ------------------
  371|      0|                if (res == -1)
  ------------------
  |  Branch (371:21): [True: 0, False: 0]
  ------------------
  372|      0|                    res = i;
  373|      0|                ++*pnum;
  374|       |                /* Check if only one result is wanted and exit if so */
  375|      0|                if (pnum_matched == NULL)
  ------------------
  |  Branch (375:21): [True: 0, False: 0]
  ------------------
  376|      0|                    return i;
  377|      0|            }
  378|      0|        }
  379|      0|        if (res == -1)
  ------------------
  |  Branch (379:13): [True: 0, False: 0]
  ------------------
  380|      0|            *pnum = 0;
  381|      0|        return res;
  382|      0|    }
  383|       |
  384|    349|    if (pnum_matched != NULL)
  ------------------
  |  Branch (384:9): [True: 0, False: 349]
  ------------------
  385|      0|        ret_val_options |= OSSL_BSEARCH_FIRST_VALUE_ON_MATCH;
  ------------------
  |  |  150|      0|#define OSSL_BSEARCH_FIRST_VALUE_ON_MATCH 0x02
  ------------------
  386|    349|    r = ossl_bsearch(&data, st->data, st->num, sizeof(void *), st->comp, st->cmp_thunk,
  387|    349|        ret_val_options);
  388|       |
  389|    349|    if (pnum_matched != NULL) {
  ------------------
  |  Branch (389:9): [True: 0, False: 349]
  ------------------
  390|      0|        *pnum = 0;
  391|      0|        if (r != NULL) {
  ------------------
  |  Branch (391:13): [True: 0, False: 0]
  ------------------
  392|      0|            const void **p = (const void **)r;
  393|       |
  394|      0|            while (p < st->data + st->num) {
  ------------------
  |  Branch (394:20): [True: 0, False: 0]
  ------------------
  395|      0|                cmp_ret = cmp_with_thunk(st, &data, p);
  396|      0|                if (cmp_ret != 0)
  ------------------
  |  Branch (396:21): [True: 0, False: 0]
  ------------------
  397|      0|                    break;
  398|      0|                ++*pnum;
  399|      0|                ++p;
  400|      0|            }
  401|      0|        }
  402|      0|    }
  403|       |
  404|    349|    return r == NULL ? -1 : (int)((const void **)r - st->data);
  ------------------
  |  Branch (404:12): [True: 0, False: 349]
  ------------------
  405|    349|}

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

ossl_crypto_mutex_new:
   97|      2|{
   98|      2|    pthread_mutex_t *mutex;
   99|       |
  100|      2|    if ((mutex = OPENSSL_zalloc(sizeof(*mutex))) == NULL)
  ------------------
  |  |  109|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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)
  ------------------
  |  |  109|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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));
  ------------------
  |  |  109|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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.95M|{
  260|  1.95M|    MASTER_KEY_ENTRY *mkey;
  261|  1.95M|    CTX_TABLE_ENTRY ctxd;
  262|       |
  263|  1.95M|    ctx = (ctx == CRYPTO_THREAD_NO_CONTEXT) ? NULL : ossl_lib_ctx_get_concrete(ctx);
  ------------------
  |  |   42|  1.95M|#define CRYPTO_THREAD_NO_CONTEXT (void *)1
  ------------------
  |  Branch (263:11): [True: 1.94M, False: 11.1k]
  ------------------
  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.95M|    if (!CRYPTO_THREAD_run_once(&master_once, init_master_key))
  ------------------
  |  Branch (276:9): [True: 0, False: 1.95M]
  ------------------
  277|      0|        return NULL;
  278|       |
  279|  1.95M|    if (!ossl_assert(id < CRYPTO_THREAD_LOCAL_KEY_MAX))
  ------------------
  |  |   52|  1.95M|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  1.95M|    __FILE__, __LINE__)
  ------------------
  |  Branch (279:9): [True: 0, False: 1.95M]
  ------------------
  280|      0|        return NULL;
  281|       |
  282|       |    /*
  283|       |     * Get our master table sparse array, indexed by key id
  284|       |     */
  285|  1.95M|    mkey = CRYPTO_THREAD_get_local(&master_key);
  286|  1.95M|    if (mkey == NULL)
  ------------------
  |  Branch (286:9): [True: 2, False: 1.95M]
  ------------------
  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.95M|    if (mkey[id].ctx_table == NULL)
  ------------------
  |  Branch (293:9): [True: 3, False: 1.95M]
  ------------------
  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.95M|    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.95M|    return ctxd;
  310|  1.95M|}
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);
  ------------------
  |  |   42|     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,
  ------------------
  |  |  113|      2|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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:
  557|   863k|{
  558|   863k|    return ATOMIC_LOAD_N(pvoid, p, __ATOMIC_ACQUIRE);
  ------------------
  |  |  122|   863k|#define ATOMIC_LOAD_N(t, p, o) __atomic_load_n(p, o)
  ------------------
  559|   863k|}
ossl_rcu_assign_uptr:
  562|    599|{
  563|    599|    ATOMIC_STORE(pvoid, p, v, __ATOMIC_RELEASE);
  ------------------
  |  |  124|    599|#define ATOMIC_STORE(t, p, v, o) __atomic_store(p, v, o)
  ------------------
  564|    599|}
ossl_rcu_lock_new:
  567|      2|{
  568|      2|    struct rcu_lock_st *new;
  569|      2|    pthread_mutex_t *mutexes[3] = { NULL };
  570|      2|    pthread_cond_t *conds[2] = { NULL };
  571|      2|    int i;
  572|       |
  573|       |    /*
  574|       |     * We need a minimum of 2 qp's
  575|       |     */
  576|      2|    if (num_writers < 2)
  ------------------
  |  Branch (576:9): [True: 2, False: 0]
  ------------------
  577|      2|        num_writers = 2;
  578|       |
  579|      2|    ctx = ossl_lib_ctx_get_concrete(ctx);
  580|      2|    if (ctx == NULL)
  ------------------
  |  Branch (580:9): [True: 0, False: 2]
  ------------------
  581|      0|        return 0;
  582|       |
  583|      2|    new = OPENSSL_zalloc(sizeof(*new));
  ------------------
  |  |  109|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  584|      2|    if (new == NULL)
  ------------------
  |  Branch (584:9): [True: 0, False: 2]
  ------------------
  585|      0|        return NULL;
  586|       |
  587|      2|    new->ctx = ctx;
  588|      2|    i = 0;
  589|      2|    mutexes[i] = pthread_mutex_init(&new->write_lock, NULL) == 0 ? &new->write_lock : NULL;
  ------------------
  |  Branch (589:18): [True: 2, False: 0]
  ------------------
  590|      2|    if (mutexes[i++] == NULL)
  ------------------
  |  Branch (590:9): [True: 0, False: 2]
  ------------------
  591|      0|        goto err;
  592|      2|    mutexes[i] = pthread_mutex_init(&new->prior_lock, NULL) == 0 ? &new->prior_lock : NULL;
  ------------------
  |  Branch (592:18): [True: 2, False: 0]
  ------------------
  593|      2|    if (mutexes[i++] == NULL)
  ------------------
  |  Branch (593:9): [True: 0, False: 2]
  ------------------
  594|      0|        goto err;
  595|      2|    mutexes[i] = pthread_mutex_init(&new->alloc_lock, NULL) == 0 ? &new->alloc_lock : NULL;
  ------------------
  |  Branch (595:18): [True: 2, False: 0]
  ------------------
  596|      2|    if (mutexes[i++] == NULL)
  ------------------
  |  Branch (596:9): [True: 0, False: 2]
  ------------------
  597|      0|        goto err;
  598|      2|    conds[i - 3] = pthread_cond_init(&new->prior_signal, NULL) == 0 ? &new->prior_signal : NULL;
  ------------------
  |  Branch (598:20): [True: 2, False: 0]
  ------------------
  599|      2|    if (conds[i - 3] == NULL)
  ------------------
  |  Branch (599:9): [True: 0, False: 2]
  ------------------
  600|      0|        goto err;
  601|      2|    i++;
  602|      2|    conds[i - 3] = pthread_cond_init(&new->alloc_signal, NULL) == 0 ? &new->alloc_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|    new->qp_group = allocate_new_qp_group(new, num_writers);
  607|      2|    if (new->qp_group == NULL)
  ------------------
  |  Branch (607:9): [True: 0, False: 2]
  ------------------
  608|      0|        goto err;
  609|       |
  610|      2|    return new;
  611|       |
  612|      0|err:
  613|      0|    for (i = 0; i < 3; i++)
  ------------------
  |  Branch (613:17): [True: 0, False: 0]
  ------------------
  614|      0|        if (mutexes[i] != NULL)
  ------------------
  |  Branch (614:13): [True: 0, False: 0]
  ------------------
  615|      0|            pthread_mutex_destroy(mutexes[i]);
  616|      0|    for (i = 0; i < 2; i++)
  ------------------
  |  Branch (616:17): [True: 0, False: 0]
  ------------------
  617|      0|        if (conds[i] != NULL)
  ------------------
  |  Branch (617:13): [True: 0, False: 0]
  ------------------
  618|      0|            pthread_cond_destroy(conds[i]);
  619|      0|    OPENSSL_free(new->qp_group);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  620|      0|    OPENSSL_free(new);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  621|       |    return NULL;
  622|      2|}
CRYPTO_THREAD_lock_new:
  909|   155k|{
  910|   155k|#ifdef USE_RWLOCK
  911|   155k|    CRYPTO_RWLOCK *lock;
  912|       |
  913|   155k|    ossl_init_rwlock_contention_data();
  914|       |
  915|   155k|    if ((lock = OPENSSL_zalloc(sizeof(pthread_rwlock_t))) == NULL)
  ------------------
  |  |  109|   155k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (915:9): [True: 0, False: 155k]
  ------------------
  916|       |        /* Don't set error, to avoid recursion blowup. */
  917|      0|        return NULL;
  918|       |
  919|   155k|    if (pthread_rwlock_init(lock, NULL) != 0) {
  ------------------
  |  Branch (919:9): [True: 0, False: 155k]
  ------------------
  920|      0|        OPENSSL_free(lock);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  921|      0|        return NULL;
  922|      0|    }
  923|       |#else
  924|       |    pthread_mutexattr_t attr;
  925|       |    CRYPTO_RWLOCK *lock;
  926|       |
  927|       |    if ((lock = OPENSSL_zalloc(sizeof(pthread_mutex_t))) == NULL)
  928|       |        /* Don't set error, to avoid recursion blowup. */
  929|       |        return NULL;
  930|       |
  931|       |    /*
  932|       |     * We don't use recursive mutexes, but try to catch errors if we do.
  933|       |     */
  934|       |    pthread_mutexattr_init(&attr);
  935|       |#if !defined(__TANDEM) && !defined(_SPT_MODEL_)
  936|       |#if !defined(NDEBUG) && !defined(OPENSSL_NO_MUTEX_ERRORCHECK)
  937|       |    pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK);
  938|       |#endif
  939|       |#else
  940|       |    /* The SPT Thread Library does not define MUTEX attributes. */
  941|       |#endif
  942|       |
  943|       |    if (pthread_mutex_init(lock, &attr) != 0) {
  944|       |        pthread_mutexattr_destroy(&attr);
  945|       |        OPENSSL_free(lock);
  946|       |        return NULL;
  947|       |    }
  948|       |
  949|       |    pthread_mutexattr_destroy(&attr);
  950|       |#endif
  951|       |
  952|   155k|    return lock;
  953|   155k|}
CRYPTO_THREAD_read_lock:
  956|  1.09M|{
  957|  1.09M|#ifdef USE_RWLOCK
  958|  1.09M|    if (!ossl_assert(ossl_rwlock_rdlock(lock) == 0))
  ------------------
  |  |   52|  1.09M|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  1.09M|    __FILE__, __LINE__)
  ------------------
  |  Branch (958:9): [True: 0, False: 1.09M]
  ------------------
  959|      0|        return 0;
  960|       |#else
  961|       |    if (pthread_mutex_lock(lock) != 0) {
  962|       |        assert(errno != EDEADLK && errno != EBUSY);
  963|       |        return 0;
  964|       |    }
  965|       |#endif
  966|       |
  967|  1.09M|    return 1;
  968|  1.09M|}
CRYPTO_THREAD_write_lock:
  971|  51.2k|{
  972|  51.2k|#ifdef USE_RWLOCK
  973|  51.2k|    if (!ossl_assert(ossl_rwlock_wrlock(lock) == 0))
  ------------------
  |  |   52|  51.2k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  51.2k|    __FILE__, __LINE__)
  ------------------
  |  Branch (973:9): [True: 0, False: 51.2k]
  ------------------
  974|      0|        return 0;
  975|       |#else
  976|       |    if (pthread_mutex_lock(lock) != 0) {
  977|       |        assert(errno != EDEADLK && errno != EBUSY);
  978|       |        return 0;
  979|       |    }
  980|       |#endif
  981|       |
  982|  51.2k|    return 1;
  983|  51.2k|}
CRYPTO_THREAD_unlock:
  986|  1.14M|{
  987|  1.14M|#ifdef USE_RWLOCK
  988|  1.14M|    if (ossl_rwlock_unlock(lock) != 0)
  ------------------
  |  Branch (988:9): [True: 0, False: 1.14M]
  ------------------
  989|      0|        return 0;
  990|       |#else
  991|       |    if (pthread_mutex_unlock(lock) != 0) {
  992|       |        assert(errno != EPERM);
  993|       |        return 0;
  994|       |    }
  995|       |#endif
  996|       |
  997|  1.14M|    return 1;
  998|  1.14M|}
CRYPTO_THREAD_lock_free:
 1001|   155k|{
 1002|   155k|    if (lock == NULL)
  ------------------
  |  Branch (1002:9): [True: 0, False: 155k]
  ------------------
 1003|      0|        return;
 1004|       |
 1005|   155k|#ifdef USE_RWLOCK
 1006|   155k|    pthread_rwlock_destroy(lock);
 1007|       |#else
 1008|       |    pthread_mutex_destroy(lock);
 1009|       |#endif
 1010|   155k|    OPENSSL_free(lock);
  ------------------
  |  |  132|   155k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1011|       |
 1012|   155k|    return;
 1013|   155k|}
CRYPTO_THREAD_run_once:
 1016|  6.10M|{
 1017|  6.10M|    if (ossl_unlikely(pthread_once(once, init) != 0))
  ------------------
  |  |   23|  6.10M|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 6.10M]
  |  |  ------------------
  ------------------
 1018|      0|        return 0;
 1019|       |
 1020|  6.10M|    return 1;
 1021|  6.10M|}
CRYPTO_THREAD_init_local:
 1024|      8|{
 1025|      8|    if (pthread_key_create(key, cleanup) != 0)
  ------------------
  |  Branch (1025:9): [True: 0, False: 8]
  ------------------
 1026|      0|        return 0;
 1027|       |
 1028|      8|    return 1;
 1029|      8|}
CRYPTO_THREAD_get_local:
 1032|  3.04M|{
 1033|  3.04M|    return pthread_getspecific(*key);
 1034|  3.04M|}
CRYPTO_THREAD_set_local:
 1037|      6|{
 1038|      6|    if (pthread_setspecific(*key, val) != 0)
  ------------------
  |  Branch (1038:9): [True: 0, False: 6]
  ------------------
 1039|      0|        return 0;
 1040|       |
 1041|      6|    return 1;
 1042|      6|}
CRYPTO_atomic_add:
 1063|  12.6k|{
 1064|  12.6k|#if defined(__GNUC__) && defined(__ATOMIC_ACQ_REL) && !defined(BROKEN_CLANG_ATOMICS)
 1065|  12.6k|    if (__atomic_is_lock_free(sizeof(*val), val)) {
  ------------------
  |  Branch (1065:9): [True: 12.6k, Folded]
  ------------------
 1066|  12.6k|        *ret = __atomic_add_fetch(val, amount, __ATOMIC_ACQ_REL);
 1067|  12.6k|        return 1;
 1068|  12.6k|    }
 1069|       |#elif defined(__sun) && (defined(__SunOS_5_10) || defined(__SunOS_5_11))
 1070|       |    /* This will work for all future Solaris versions. */
 1071|       |    if (ret != NULL) {
 1072|       |        *ret = atomic_add_int_nv((volatile unsigned int *)val, amount);
 1073|       |        return 1;
 1074|       |    }
 1075|       |#endif
 1076|      0|    if (lock == NULL || !CRYPTO_THREAD_write_lock(lock))
  ------------------
  |  Branch (1076:9): [True: 0, False: 0]
  |  Branch (1076:25): [True: 0, False: 0]
  ------------------
 1077|      0|        return 0;
 1078|       |
 1079|      0|    *val += amount;
 1080|      0|    *ret = *val;
 1081|       |
 1082|      0|    if (!CRYPTO_THREAD_unlock(lock))
  ------------------
  |  Branch (1082:9): [True: 0, False: 0]
  ------------------
 1083|      0|        return 0;
 1084|       |
 1085|      0|    return 1;
 1086|      0|}
CRYPTO_atomic_or:
 1142|      5|{
 1143|      5|#if defined(__GNUC__) && defined(__ATOMIC_ACQ_REL) && !defined(BROKEN_CLANG_ATOMICS)
 1144|      5|    if (__atomic_is_lock_free(sizeof(*val), val)) {
  ------------------
  |  Branch (1144:9): [True: 5, Folded]
  ------------------
 1145|      5|        *ret = __atomic_or_fetch(val, op, __ATOMIC_ACQ_REL);
 1146|      5|        return 1;
 1147|      5|    }
 1148|       |#elif defined(__sun) && (defined(__SunOS_5_10) || defined(__SunOS_5_11))
 1149|       |    /* This will work for all future Solaris versions. */
 1150|       |    if (ret != NULL) {
 1151|       |        *ret = atomic_or_64_nv(val, op);
 1152|       |        return 1;
 1153|       |    }
 1154|       |#endif
 1155|      0|    if (lock == NULL || !CRYPTO_THREAD_write_lock(lock))
  ------------------
  |  Branch (1155:9): [True: 0, False: 0]
  |  Branch (1155:25): [True: 0, False: 0]
  ------------------
 1156|      0|        return 0;
 1157|      0|    *val |= op;
 1158|      0|    *ret = *val;
 1159|       |
 1160|      0|    if (!CRYPTO_THREAD_unlock(lock))
  ------------------
  |  Branch (1160:9): [True: 0, False: 0]
  ------------------
 1161|      0|        return 0;
 1162|       |
 1163|      0|    return 1;
 1164|      0|}
CRYPTO_atomic_load:
 1167|  2.50M|{
 1168|  2.50M|#if defined(__GNUC__) && defined(__ATOMIC_ACQ_REL) && !defined(BROKEN_CLANG_ATOMICS)
 1169|  2.50M|    if (__atomic_is_lock_free(sizeof(*val), val)) {
  ------------------
  |  Branch (1169:9): [True: 2.50M, Folded]
  ------------------
 1170|  2.50M|        __atomic_load(val, ret, __ATOMIC_ACQUIRE);
 1171|  2.50M|        return 1;
 1172|  2.50M|    }
 1173|       |#elif defined(__sun) && (defined(__SunOS_5_10) || defined(__SunOS_5_11))
 1174|       |    /* This will work for all future Solaris versions. */
 1175|       |    if (ret != NULL) {
 1176|       |        *ret = atomic_or_64_nv(val, 0);
 1177|       |        return 1;
 1178|       |    }
 1179|       |#endif
 1180|      0|    if (lock == NULL || !CRYPTO_THREAD_read_lock(lock))
  ------------------
  |  Branch (1180:9): [True: 0, False: 0]
  |  Branch (1180:25): [True: 0, False: 0]
  ------------------
 1181|      0|        return 0;
 1182|      0|    *ret = *val;
 1183|      0|    if (!CRYPTO_THREAD_unlock(lock))
  ------------------
  |  Branch (1183:9): [True: 0, False: 0]
  ------------------
 1184|      0|        return 0;
 1185|       |
 1186|      0|    return 1;
 1187|      0|}
CRYPTO_atomic_store:
 1190|    599|{
 1191|    599|#if defined(__GNUC__) && defined(__ATOMIC_ACQ_REL) && !defined(BROKEN_CLANG_ATOMICS)
 1192|    599|    if (__atomic_is_lock_free(sizeof(*dst), dst)) {
  ------------------
  |  Branch (1192:9): [True: 599, Folded]
  ------------------
 1193|    599|        __atomic_store(dst, &val, __ATOMIC_RELEASE);
 1194|    599|        return 1;
 1195|    599|    }
 1196|       |#elif defined(__sun) && (defined(__SunOS_5_10) || defined(__SunOS_5_11))
 1197|       |    /* This will work for all future Solaris versions. */
 1198|       |    if (dst != NULL) {
 1199|       |        atomic_swap_64(dst, val);
 1200|       |        return 1;
 1201|       |    }
 1202|       |#endif
 1203|      0|    if (lock == NULL || !CRYPTO_THREAD_write_lock(lock))
  ------------------
  |  Branch (1203:9): [True: 0, False: 0]
  |  Branch (1203:25): [True: 0, False: 0]
  ------------------
 1204|      0|        return 0;
 1205|      0|    *dst = val;
 1206|      0|    if (!CRYPTO_THREAD_unlock(lock))
  ------------------
  |  Branch (1206:9): [True: 0, False: 0]
  ------------------
 1207|      0|        return 0;
 1208|       |
 1209|      0|    return 1;
 1210|      0|}
openssl_get_fork_id:
 1266|  11.1k|{
 1267|  11.1k|    return getpid();
 1268|  11.1k|}
threads_pthread.c:allocate_new_qp_group:
  467|      2|{
  468|      2|    struct rcu_qp *new = OPENSSL_calloc(count, sizeof(*new));
  ------------------
  |  |  113|      2|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  469|       |
  470|      2|    lock->group_count = count;
  471|      2|    return new;
  472|      2|}
threads_pthread.c:ossl_init_rwlock_contention_data:
  888|   155k|{
  889|   155k|}
threads_pthread.c:ossl_rwlock_rdlock:
  892|  1.09M|{
  893|  1.09M|    return pthread_rwlock_rdlock(rwlock);
  894|  1.09M|}
threads_pthread.c:ossl_rwlock_wrlock:
  897|  51.2k|{
  898|  51.2k|    return pthread_rwlock_wrlock(rwlock);
  899|  51.2k|}
threads_pthread.c:ossl_rwlock_unlock:
  902|  1.14M|{
  903|  1.14M|    return pthread_rwlock_unlock(rwlock);
  904|  1.14M|}

ossl_time_now:
   16|    684|{
   17|    684|    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|    684|    struct timeval t;
   37|       |
   38|    684|    if (gettimeofday(&t, NULL) < 0) {
  ------------------
  |  Branch (38:9): [True: 0, False: 684]
  ------------------
   39|      0|        ERR_raise_data(ERR_LIB_SYS, get_last_sys_error(),
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_SYS, get_last_sys_error(),
  ------------------
  |  |   55|      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|    684|    if (t.tv_sec <= 0)
  ------------------
  |  Branch (43:9): [True: 0, False: 684]
  ------------------
   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|    684|    else
   46|    684|        r.t = ((uint64_t)t.tv_sec * 1000000 + t.tv_usec) * OSSL_TIME_US;
  ------------------
  |  |   37|    684|#define OSSL_TIME_US (OSSL_TIME_MS / 1000)
  |  |  ------------------
  |  |  |  |   34|    684|#define OSSL_TIME_MS (OSSL_TIME_SECOND / 1000)
  |  |  |  |  ------------------
  |  |  |  |  |  |   31|    684|#define OSSL_TIME_SECOND ((uint64_t)1000000000)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   47|    684|#endif /* defined(_WIN32) */
   48|    684|    return r;
   49|    684|}

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

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

ossl_policy_cache_free:
  178|  82.7k|{
  179|  82.7k|    if (!cache)
  ------------------
  |  Branch (179:9): [True: 82.7k, False: 0]
  ------------------
  180|  82.7k|        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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  184|      0|}

OSSL_STACK_OF_X509_free:
   22|  10.4k|{
   23|  10.4k|    sk_X509_pop_free(certs, X509_free);
  ------------------
  |  |   96|  10.4k|#define sk_X509_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_X509_sk_type(sk), ossl_check_X509_freefunc_type(freefunc))
  ------------------
   24|  10.4k|}

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

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

X509_LOOKUP_new:
   23|    684|{
   24|    684|    X509_LOOKUP *ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  109|    684|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   25|       |
   26|    684|    if (ret == NULL)
  ------------------
  |  Branch (26:9): [True: 0, False: 684]
  ------------------
   27|      0|        return NULL;
   28|       |
   29|    684|    ret->method = method;
   30|    684|    if (method->new_item != NULL && method->new_item(ret) == 0) {
  ------------------
  |  Branch (30:9): [True: 342, False: 342]
  |  Branch (30:37): [True: 0, False: 342]
  ------------------
   31|      0|        OPENSSL_free(ret);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   32|      0|        return NULL;
   33|      0|    }
   34|    684|    return ret;
   35|    684|}
X509_LOOKUP_free:
   38|    684|{
   39|    684|    if (ctx == NULL)
  ------------------
  |  Branch (39:9): [True: 0, False: 684]
  ------------------
   40|      0|        return;
   41|    684|    if ((ctx->method != NULL) && (ctx->method->free != NULL))
  ------------------
  |  Branch (41:9): [True: 684, False: 0]
  |  Branch (41:34): [True: 342, False: 342]
  ------------------
   42|    342|        (*ctx->method->free)(ctx);
   43|    684|    OPENSSL_free(ctx);
  ------------------
  |  |  132|    684|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   44|    684|}
X509_STORE_lock:
   47|  41.3k|{
   48|  41.3k|    return CRYPTO_THREAD_write_lock(xs->lock);
   49|  41.3k|}
X509_STORE_unlock:
   57|  41.3k|{
   58|  41.3k|    return CRYPTO_THREAD_unlock(xs->lock);
   59|  41.3k|}
X509_LOOKUP_shutdown:
   72|    684|{
   73|    684|    if (ctx->method == NULL)
  ------------------
  |  Branch (73:9): [True: 0, False: 684]
  ------------------
   74|      0|        return 0;
   75|    684|    if (ctx->method->shutdown != NULL)
  ------------------
  |  Branch (75:9): [True: 0, False: 684]
  ------------------
   76|      0|        return ctx->method->shutdown(ctx);
   77|    684|    else
   78|    684|        return 1;
   79|    684|}
X509_LOOKUP_ctrl_ex:
   83|    684|{
   84|    684|    if (ctx->method == NULL)
  ------------------
  |  Branch (84:9): [True: 0, False: 684]
  ------------------
   85|      0|        return -1;
   86|    684|    if (ctx->method->ctrl_ex != NULL)
  ------------------
  |  Branch (86:9): [True: 342, False: 342]
  ------------------
   87|    342|        return ctx->method->ctrl_ex(ctx, cmd, argc, argl, ret, libctx, propq);
   88|    342|    if (ctx->method->ctrl != NULL)
  ------------------
  |  Branch (88:9): [True: 342, False: 0]
  ------------------
   89|    342|        return ctx->method->ctrl(ctx, cmd, argc, argl, ret);
   90|      0|    return 1;
   91|    342|}
X509_LOOKUP_ctrl:
   95|    342|{
   96|    342|    return X509_LOOKUP_ctrl_ex(ctx, cmd, argc, argl, ret, NULL, NULL);
   97|    342|}
X509_STORE_new:
  201|    347|{
  202|    347|    X509_STORE *ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  109|    347|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  203|    347|    HT_CONFIG htconf = {
  204|    347|        .ht_free_fn = objs_ht_free,
  205|    347|        .ht_hash_fn = obj_ht_hash,
  206|    347|        .init_neighborhoods = X509_OBJS_HT_BUCKETS,
  ------------------
  |  |   20|    347|#define X509_OBJS_HT_BUCKETS 8
  ------------------
  207|    347|        .no_rcu = 1,
  208|    347|    };
  209|       |
  210|    347|    if (ret == NULL)
  ------------------
  |  Branch (210:9): [True: 0, False: 347]
  ------------------
  211|      0|        return NULL;
  212|    347|    if ((ret->objs_ht = ossl_ht_new(&htconf)) == NULL) {
  ------------------
  |  Branch (212:9): [True: 0, False: 347]
  ------------------
  213|      0|        ERR_raise(ERR_LIB_X509, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  214|      0|        goto err;
  215|      0|    }
  216|    347|    if ((ret->objs = sk_X509_OBJECT_new(x509_object_cmp)) == NULL) {
  ------------------
  |  |  103|    347|#define sk_X509_OBJECT_new(cmp) ((STACK_OF(X509_OBJECT) *)OPENSSL_sk_set_cmp_thunks(OPENSSL_sk_new(ossl_check_X509_OBJECT_compfunc_type(cmp)), sk_X509_OBJECT_cmpfunc_thunk))
  ------------------
  |  Branch (216:9): [True: 0, False: 347]
  ------------------
  217|      0|        ERR_raise(ERR_LIB_X509, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  218|      0|        goto err;
  219|      0|    }
  220|    347|    ret->cache = 1;
  221|    347|    if ((ret->get_cert_methods = sk_X509_LOOKUP_new_null()) == NULL) {
  ------------------
  |  |   78|    347|#define sk_X509_LOOKUP_new_null() ((STACK_OF(X509_LOOKUP) *)OPENSSL_sk_set_thunks(OPENSSL_sk_new_null(), sk_X509_LOOKUP_freefunc_thunk))
  ------------------
  |  Branch (221:9): [True: 0, False: 347]
  ------------------
  222|      0|        ERR_raise(ERR_LIB_X509, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  223|      0|        goto err;
  224|      0|    }
  225|       |
  226|    347|    if ((ret->param = X509_VERIFY_PARAM_new()) == NULL) {
  ------------------
  |  Branch (226:9): [True: 0, False: 347]
  ------------------
  227|      0|        ERR_raise(ERR_LIB_X509, ERR_R_X509_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  228|      0|        goto err;
  229|      0|    }
  230|    347|    if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_X509_STORE, ret, &ret->ex_data)) {
  ------------------
  |  |  255|    347|#define CRYPTO_EX_INDEX_X509_STORE 4
  ------------------
  |  Branch (230:9): [True: 0, False: 347]
  ------------------
  231|      0|        ERR_raise(ERR_LIB_X509, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  232|      0|        goto err;
  233|      0|    }
  234|       |
  235|    347|    ret->lock = CRYPTO_THREAD_lock_new();
  236|    347|    if (ret->lock == NULL) {
  ------------------
  |  Branch (236:9): [True: 0, False: 347]
  ------------------
  237|      0|        ERR_raise(ERR_LIB_X509, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  238|      0|        goto err;
  239|      0|    }
  240|       |
  241|    347|    if (!CRYPTO_NEW_REF(&ret->references, 1))
  ------------------
  |  Branch (241:9): [True: 0, False: 347]
  ------------------
  242|      0|        goto err;
  243|    347|    return ret;
  244|       |
  245|      0|err:
  246|      0|    X509_VERIFY_PARAM_free(ret->param);
  247|      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))
  ------------------
  248|      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))
  ------------------
  249|      0|    ossl_ht_free(ret->objs_ht);
  250|      0|    CRYPTO_THREAD_lock_free(ret->lock);
  251|      0|    OPENSSL_free(ret);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  252|       |    return NULL;
  253|    347|}
X509_STORE_free:
  256|  1.73k|{
  257|  1.73k|    int i;
  258|  1.73k|    STACK_OF(X509_LOOKUP) *sk;
  ------------------
  |  |   33|  1.73k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  259|  1.73k|    X509_LOOKUP *lu;
  260|       |
  261|  1.73k|    if (xs == NULL)
  ------------------
  |  Branch (261:9): [True: 1.38k, False: 347]
  ------------------
  262|  1.38k|        return;
  263|    347|    CRYPTO_DOWN_REF(&xs->references, &i);
  264|    347|    REF_PRINT_COUNT("X509_STORE", i, xs);
  ------------------
  |  |  301|    347|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|    347|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  295|    347|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|    347|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  265|    347|    if (i > 0)
  ------------------
  |  Branch (265:9): [True: 0, False: 347]
  ------------------
  266|      0|        return;
  267|    347|    REF_ASSERT_ISNT(i < 0);
  ------------------
  |  |  293|    347|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 347]
  |  |  ------------------
  ------------------
  268|       |
  269|    347|    sk = xs->get_cert_methods;
  270|  1.03k|    for (i = 0; i < sk_X509_LOOKUP_num(sk); i++) {
  ------------------
  |  |   75|  1.03k|#define sk_X509_LOOKUP_num(sk) OPENSSL_sk_num(ossl_check_const_X509_LOOKUP_sk_type(sk))
  ------------------
  |  Branch (270:17): [True: 684, False: 347]
  ------------------
  271|    684|        lu = sk_X509_LOOKUP_value(sk, i);
  ------------------
  |  |   76|    684|#define sk_X509_LOOKUP_value(sk, idx) ((X509_LOOKUP *)OPENSSL_sk_value(ossl_check_const_X509_LOOKUP_sk_type(sk), (idx)))
  ------------------
  272|    684|        X509_LOOKUP_shutdown(lu);
  273|    684|        X509_LOOKUP_free(lu);
  274|    684|    }
  275|    347|    sk_X509_LOOKUP_free(sk);
  ------------------
  |  |   81|    347|#define sk_X509_LOOKUP_free(sk) OPENSSL_sk_free(ossl_check_X509_LOOKUP_sk_type(sk))
  ------------------
  276|    347|    sk_X509_OBJECT_pop_free(xs->objs, X509_OBJECT_free);
  ------------------
  |  |  115|    347|#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))
  ------------------
  277|       |
  278|    347|    CRYPTO_free_ex_data(CRYPTO_EX_INDEX_X509_STORE, xs, &xs->ex_data);
  ------------------
  |  |  255|    347|#define CRYPTO_EX_INDEX_X509_STORE 4
  ------------------
  279|    347|    X509_VERIFY_PARAM_free(xs->param);
  280|    347|    CRYPTO_THREAD_lock_free(xs->lock);
  281|    347|    CRYPTO_FREE_REF(&xs->references);
  282|    347|    ossl_ht_free(xs->objs_ht);
  283|    347|    OPENSSL_free(xs);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  284|    347|}
X509_STORE_add_lookup:
  299|    684|{
  300|    684|    int i;
  301|    684|    STACK_OF(X509_LOOKUP) *sk;
  ------------------
  |  |   33|    684|#define STACK_OF(type) struct stack_st_##type
  ------------------
  302|    684|    X509_LOOKUP *lu;
  303|       |
  304|    684|    sk = xs->get_cert_methods;
  305|  1.02k|    for (i = 0; i < sk_X509_LOOKUP_num(sk); i++) {
  ------------------
  |  |   75|  1.02k|#define sk_X509_LOOKUP_num(sk) OPENSSL_sk_num(ossl_check_const_X509_LOOKUP_sk_type(sk))
  ------------------
  |  Branch (305:17): [True: 342, False: 684]
  ------------------
  306|    342|        lu = sk_X509_LOOKUP_value(sk, i);
  ------------------
  |  |   76|    342|#define sk_X509_LOOKUP_value(sk, idx) ((X509_LOOKUP *)OPENSSL_sk_value(ossl_check_const_X509_LOOKUP_sk_type(sk), (idx)))
  ------------------
  307|    342|        if (m == lu->method) {
  ------------------
  |  Branch (307:13): [True: 0, False: 342]
  ------------------
  308|      0|            return lu;
  309|      0|        }
  310|    342|    }
  311|       |    /* a new one */
  312|    684|    lu = X509_LOOKUP_new(m);
  313|    684|    if (lu == NULL) {
  ------------------
  |  Branch (313:9): [True: 0, False: 684]
  ------------------
  314|      0|        ERR_raise(ERR_LIB_X509, ERR_R_X509_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  315|      0|        return NULL;
  316|      0|    }
  317|       |
  318|    684|    lu->store_ctx = xs;
  319|    684|    if (sk_X509_LOOKUP_push(xs->get_cert_methods, lu))
  ------------------
  |  |   85|    684|#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: 684, False: 0]
  |  |  ------------------
  ------------------
  320|    684|        return lu;
  321|       |    /* sk_X509_LOOKUP_push() failed */
  322|    684|    ERR_raise(ERR_LIB_X509, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  323|      0|    X509_LOOKUP_free(lu);
  324|       |    return NULL;
  325|    684|}
ossl_x509_store_ht_get_by_name:
  345|  41.3k|{
  346|  41.3k|    HT_VALUE *v;
  347|  41.3k|    OBJS_KEY key;
  348|  41.3k|    int ret;
  349|       |
  350|  41.3k|    if (xn->canon_enc == NULL || xn->modified) {
  ------------------
  |  Branch (350:9): [True: 0, False: 41.3k]
  |  Branch (350:34): [True: 0, False: 41.3k]
  ------------------
  351|      0|        ret = i2d_X509_NAME((X509_NAME *)xn, NULL);
  352|      0|        if (ret < 0)
  ------------------
  |  Branch (352:13): [True: 0, False: 0]
  ------------------
  353|      0|            return NULL;
  354|      0|    }
  355|       |
  356|  41.3k|    HT_INIT_KEY(&key);
  ------------------
  |  |  112|  41.3k|    do {                                                                                           \
  |  |  113|  41.3k|        memset((key), 0, sizeof(*(key)));                                                          \
  |  |  114|  41.3k|        (key)->key_header.keysize = (key)->key_header.bufsize = (sizeof(*(key)) - sizeof(HT_KEY)); \
  |  |  115|  41.3k|        (key)->key_header.keybuf = (((uint8_t *)key) + sizeof(HT_KEY));                            \
  |  |  116|  41.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (116:14): [Folded, False: 41.3k]
  |  |  ------------------
  ------------------
  357|  41.3k|    HT_SET_KEY_FIELD(&key, xn_canon, xn->canon_enc);
  ------------------
  |  |  180|  41.3k|#define HT_SET_KEY_FIELD(key, member, value) (key)->keyfields.member = value;
  ------------------
  358|  41.3k|    HT_SET_KEY_FIELD(&key, xn_canon_enclen, xn->canon_enclen);
  ------------------
  |  |  180|  41.3k|#define HT_SET_KEY_FIELD(key, member, value) (key)->keyfields.member = value;
  ------------------
  359|  41.3k|    v = ossl_ht_get(store->objs_ht, TO_HT_KEY(&key));
  ------------------
  |  |  237|  41.3k|#define TO_HT_KEY(key) &(key)->key_header
  ------------------
  360|  41.3k|    if (v == NULL)
  ------------------
  |  Branch (360:9): [True: 41.3k, False: 0]
  ------------------
  361|  41.3k|        return NULL;
  362|      0|    v = ossl_rcu_deref(&v);
  ------------------
  |  |   35|      0|#define ossl_rcu_deref(p) ossl_rcu_uptr_deref((void **)p)
  ------------------
  363|       |
  364|      0|    return v->value;
  365|  41.3k|}
X509_STORE_add_cert:
  586|  41.3k|{
  587|  41.3k|    if (!x509_store_add_x509(xs, x)) {
  ------------------
  |  Branch (587:9): [True: 0, False: 41.3k]
  ------------------
  588|      0|        ERR_raise(ERR_LIB_X509, ERR_R_X509_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  589|      0|        return 0;
  590|      0|    }
  591|  41.3k|    return 1;
  592|  41.3k|}
X509_OBJECT_up_ref_count:
  604|  41.3k|{
  605|  41.3k|    switch (a->type) {
  ------------------
  |  Branch (605:13): [True: 41.3k, False: 0]
  ------------------
  606|      0|    case X509_LU_NONE:
  ------------------
  |  Branch (606:5): [True: 0, False: 41.3k]
  ------------------
  607|      0|        break;
  608|  41.3k|    case X509_LU_X509:
  ------------------
  |  Branch (608:5): [True: 41.3k, False: 0]
  ------------------
  609|  41.3k|        return X509_up_ref(a->data.x509);
  610|      0|    case X509_LU_CRL:
  ------------------
  |  Branch (610:5): [True: 0, False: 41.3k]
  ------------------
  611|      0|        return X509_CRL_up_ref(a->data.crl);
  612|  41.3k|    }
  613|      0|    return 1;
  614|  41.3k|}
X509_OBJECT_new:
  636|  41.3k|{
  637|  41.3k|    X509_OBJECT *ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  109|  41.3k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  638|       |
  639|  41.3k|    if (ret == NULL)
  ------------------
  |  Branch (639:9): [True: 0, False: 41.3k]
  ------------------
  640|      0|        return NULL;
  641|  41.3k|    ret->type = X509_LU_NONE;
  642|  41.3k|    return ret;
  643|  41.3k|}
X509_OBJECT_free:
  684|  41.3k|{
  685|  41.3k|    x509_object_free_internal(a);
  686|  41.3k|    OPENSSL_free(a);
  ------------------
  |  |  132|  41.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  687|  41.3k|}
X509_STORE_set_flags:
 1005|    342|{
 1006|    342|    return X509_VERIFY_PARAM_set_flags(xs->param, flags);
 1007|    342|}
x509_lu.c:objs_ht_free:
  187|  41.3k|{
  188|  41.3k|    STACK_OF(X509_OBJECT) *objs = v->value;
  ------------------
  |  |   33|  41.3k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  189|       |
  190|  41.3k|    sk_X509_OBJECT_pop_free(objs, X509_OBJECT_free);
  ------------------
  |  |  115|  41.3k|#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))
  ------------------
  191|  41.3k|}
x509_lu.c:obj_ht_hash:
  194|  82.7k|{
  195|  82.7k|    OBJS_KEY *k = (OBJS_KEY *)key;
  196|       |
  197|  82.7k|    return ossl_fnv1a_hash(k->keyfields.xn_canon, k->keyfields.xn_canon_enclen);
  198|  82.7k|}
x509_lu.c:x509_store_add_x509:
  550|  41.3k|{
  551|  41.3k|    X509_OBJECT *obj;
  552|       |
  553|  41.3k|    if (x == NULL)
  ------------------
  |  Branch (553:9): [True: 0, False: 41.3k]
  ------------------
  554|      0|        return 0;
  555|  41.3k|    obj = X509_OBJECT_new();
  556|  41.3k|    if (obj == NULL)
  ------------------
  |  Branch (556:9): [True: 0, False: 41.3k]
  ------------------
  557|      0|        return 0;
  558|       |
  559|  41.3k|    obj->type = X509_LU_X509;
  560|       |    /*
  561|       |     * XXX Casts away const, get rid of this once we can have the x509
  562|       |     * member of OBJECT be const.
  563|       |     */
  564|  41.3k|    obj->data.x509 = (X509 *)x;
  565|       |
  566|  41.3k|    return x509_store_add_obj(store, obj);
  567|  41.3k|}
x509_lu.c:x509_store_add_obj:
  498|  41.3k|{
  499|  41.3k|    const X509_NAME *xn;
  500|  41.3k|    STACK_OF(X509_OBJECT) *objs = NULL;
  ------------------
  |  |   33|  41.3k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  501|  41.3k|    int ret = 0, added = 0;
  502|       |
  503|  41.3k|    if (obj->type == X509_LU_CRL)
  ------------------
  |  Branch (503:9): [True: 0, False: 41.3k]
  ------------------
  504|      0|        xn = obj->data.crl->crl.issuer;
  505|  41.3k|    else
  506|  41.3k|        xn = obj->data.x509->cert_info.subject;
  507|       |
  508|  41.3k|    if (xn == NULL) {
  ------------------
  |  Branch (508:9): [True: 0, False: 41.3k]
  ------------------
  509|      0|        obj->type = X509_LU_NONE;
  510|      0|        X509_OBJECT_free(obj);
  511|      0|        return 0;
  512|      0|    }
  513|       |
  514|  41.3k|    if (!X509_OBJECT_up_ref_count(obj)) {
  ------------------
  |  Branch (514:9): [True: 0, False: 41.3k]
  ------------------
  515|      0|        obj->type = X509_LU_NONE;
  516|      0|        X509_OBJECT_free(obj);
  517|      0|        return 0;
  518|      0|    }
  519|       |
  520|  41.3k|    if (!X509_STORE_lock(store)) {
  ------------------
  |  Branch (520:9): [True: 0, False: 41.3k]
  ------------------
  521|      0|        X509_OBJECT_free(obj);
  522|      0|        return 0;
  523|      0|    }
  524|       |
  525|  41.3k|    if (store->objs_ht != NULL) {
  ------------------
  |  Branch (525:9): [True: 41.3k, False: 0]
  ------------------
  526|  41.3k|        objs = ossl_x509_store_ht_get_by_name(store, xn);
  527|  41.3k|        if (objs != NULL && X509_OBJECT_retrieve_match(objs, obj)) {
  ------------------
  |  Branch (527:13): [True: 0, False: 41.3k]
  |  Branch (527:29): [True: 0, False: 0]
  ------------------
  528|      0|            ret = 1;
  529|  41.3k|        } else {
  530|  41.3k|            added = x509_name_objs_ht_insert(store, xn, objs, obj);
  531|  41.3k|            ret = added != 0;
  532|  41.3k|        }
  533|  41.3k|    } else {
  534|      0|        if (X509_OBJECT_retrieve_match(store->objs, obj)) {
  ------------------
  |  Branch (534:13): [True: 0, False: 0]
  ------------------
  535|      0|            ret = 1;
  536|      0|        } else {
  537|      0|            added = sk_X509_OBJECT_push(store->objs, obj);
  ------------------
  |  |  111|      0|#define sk_X509_OBJECT_push(sk, ptr) OPENSSL_sk_push(ossl_check_X509_OBJECT_sk_type(sk), ossl_check_X509_OBJECT_type(ptr))
  ------------------
  538|      0|            ret = added != 0;
  539|      0|        }
  540|      0|    }
  541|  41.3k|    X509_STORE_unlock(store);
  542|       |
  543|  41.3k|    if (added == 0) /* obj not pushed */
  ------------------
  |  Branch (543:9): [True: 0, False: 41.3k]
  ------------------
  544|      0|        X509_OBJECT_free(obj);
  545|       |
  546|  41.3k|    return ret;
  547|  41.3k|}
x509_lu.c:x509_name_objs_ht_insert:
  369|  41.3k|{
  370|  41.3k|    int ret = 0, added = 0;
  371|  41.3k|    OBJS_KEY key;
  372|  41.3k|    HT_VALUE val = { 0 };
  373|       |
  374|  41.3k|    if (objs != NULL) {
  ------------------
  |  Branch (374:9): [True: 0, False: 41.3k]
  ------------------
  375|      0|        added = sk_X509_OBJECT_push(objs, obj) != 0;
  ------------------
  |  |  111|      0|#define sk_X509_OBJECT_push(sk, ptr) OPENSSL_sk_push(ossl_check_X509_OBJECT_sk_type(sk), ossl_check_X509_OBJECT_type(ptr))
  ------------------
  376|      0|        return added;
  377|      0|    }
  378|       |
  379|  41.3k|    if (xn->canon_enc == NULL || xn->modified) {
  ------------------
  |  Branch (379:9): [True: 0, False: 41.3k]
  |  Branch (379:34): [True: 0, False: 41.3k]
  ------------------
  380|      0|        ret = i2d_X509_NAME((X509_NAME *)xn, NULL);
  381|      0|        if (ret < 0)
  ------------------
  |  Branch (381:13): [True: 0, False: 0]
  ------------------
  382|      0|            return 0;
  383|      0|    }
  384|       |
  385|  41.3k|    objs = sk_X509_OBJECT_new(x509_object_cmp);
  ------------------
  |  |  103|  41.3k|#define sk_X509_OBJECT_new(cmp) ((STACK_OF(X509_OBJECT) *)OPENSSL_sk_set_cmp_thunks(OPENSSL_sk_new(ossl_check_X509_OBJECT_compfunc_type(cmp)), sk_X509_OBJECT_cmpfunc_thunk))
  ------------------
  386|  41.3k|    if (objs == NULL)
  ------------------
  |  Branch (386:9): [True: 0, False: 41.3k]
  ------------------
  387|      0|        return 0;
  388|       |
  389|  41.3k|    added = sk_X509_OBJECT_push(objs, obj) != 0;
  ------------------
  |  |  111|  41.3k|#define sk_X509_OBJECT_push(sk, ptr) OPENSSL_sk_push(ossl_check_X509_OBJECT_sk_type(sk), ossl_check_X509_OBJECT_type(ptr))
  ------------------
  390|  41.3k|    if (added == 0) {
  ------------------
  |  Branch (390:9): [True: 0, False: 41.3k]
  ------------------
  391|      0|        sk_X509_OBJECT_free(objs);
  ------------------
  |  |  107|      0|#define sk_X509_OBJECT_free(sk) OPENSSL_sk_free(ossl_check_X509_OBJECT_sk_type(sk))
  ------------------
  392|      0|        return 0;
  393|      0|    }
  394|       |
  395|  41.3k|    HT_INIT_KEY(&key);
  ------------------
  |  |  112|  41.3k|    do {                                                                                           \
  |  |  113|  41.3k|        memset((key), 0, sizeof(*(key)));                                                          \
  |  |  114|  41.3k|        (key)->key_header.keysize = (key)->key_header.bufsize = (sizeof(*(key)) - sizeof(HT_KEY)); \
  |  |  115|  41.3k|        (key)->key_header.keybuf = (((uint8_t *)key) + sizeof(HT_KEY));                            \
  |  |  116|  41.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (116:14): [Folded, False: 41.3k]
  |  |  ------------------
  ------------------
  396|  41.3k|    HT_SET_KEY_FIELD(&key, xn_canon, xn->canon_enc);
  ------------------
  |  |  180|  41.3k|#define HT_SET_KEY_FIELD(key, member, value) (key)->keyfields.member = value;
  ------------------
  397|  41.3k|    HT_SET_KEY_FIELD(&key, xn_canon_enclen, xn->canon_enclen);
  ------------------
  |  |  180|  41.3k|#define HT_SET_KEY_FIELD(key, member, value) (key)->keyfields.member = value;
  ------------------
  398|  41.3k|    val.value = (void *)objs;
  399|  41.3k|    ret = ossl_ht_insert(store->objs_ht, TO_HT_KEY(&key), &val, NULL);
  ------------------
  |  |  237|  41.3k|#define TO_HT_KEY(key) &(key)->key_header
  ------------------
  400|  41.3k|    if (ret != 1) {
  ------------------
  |  Branch (400:9): [True: 0, False: 41.3k]
  ------------------
  401|      0|        sk_X509_OBJECT_free(objs);
  ------------------
  |  |  107|      0|#define sk_X509_OBJECT_free(sk) OPENSSL_sk_free(ossl_check_X509_OBJECT_sk_type(sk))
  ------------------
  402|      0|        return 0;
  403|      0|    }
  404|       |
  405|  41.3k|    return 1;
  406|  41.3k|}
x509_lu.c:x509_object_free_internal:
  646|  41.3k|{
  647|  41.3k|    if (a == NULL)
  ------------------
  |  Branch (647:9): [True: 0, False: 41.3k]
  ------------------
  648|      0|        return;
  649|  41.3k|    switch (a->type) {
  ------------------
  |  Branch (649:13): [True: 41.3k, False: 0]
  ------------------
  650|      0|    case X509_LU_NONE:
  ------------------
  |  Branch (650:5): [True: 0, False: 41.3k]
  ------------------
  651|      0|        break;
  652|  41.3k|    case X509_LU_X509:
  ------------------
  |  Branch (652:5): [True: 41.3k, False: 0]
  ------------------
  653|  41.3k|        X509_free(a->data.x509);
  654|  41.3k|        break;
  655|      0|    case X509_LU_CRL:
  ------------------
  |  Branch (655:5): [True: 0, False: 41.3k]
  ------------------
  656|      0|        X509_CRL_free(a->data.crl);
  657|      0|        break;
  658|  41.3k|    }
  659|  41.3k|}

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

X509_VERIFY_PARAM_new:
  353|  1.04k|{
  354|  1.04k|    X509_VERIFY_PARAM *param;
  355|       |
  356|  1.04k|    param = OPENSSL_zalloc(sizeof(*param));
  ------------------
  |  |  109|  1.04k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  357|  1.04k|    if (param == NULL)
  ------------------
  |  Branch (357:9): [True: 0, False: 1.04k]
  ------------------
  358|      0|        return NULL;
  359|  1.04k|    param->trust = X509_TRUST_DEFAULT;
  ------------------
  |  |  195|  1.04k|#define X509_TRUST_DEFAULT 0 /* Only valid in purpose settings */
  ------------------
  360|       |    /* param->inh_flags = X509_VP_FLAG_DEFAULT; */
  361|  1.04k|    param->depth = -1;
  362|  1.04k|    param->auth_level = -1; /* -1 means unset, 0 is explicit */
  363|  1.04k|    return param;
  364|  1.04k|}
X509_VERIFY_PARAM_free:
  367|  1.04k|{
  368|  1.04k|    if (param == NULL)
  ------------------
  |  Branch (368:9): [True: 0, False: 1.04k]
  ------------------
  369|      0|        return;
  370|  1.04k|    sk_ASN1_OBJECT_pop_free(param->policies, ASN1_OBJECT_free);
  ------------------
  |  |  602|  1.04k|#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))
  ------------------
  371|  1.04k|    clear_buffer_stack(&param->hosts);
  372|  1.04k|    clear_buffer_stack(&param->ips);
  373|  1.04k|    clear_buffer_stack(&param->rfc822s);
  374|  1.04k|    clear_buffer_stack(&param->smtputf8s);
  375|  1.04k|    OPENSSL_free(param->peername);
  ------------------
  |  |  132|  1.04k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  376|  1.04k|    OPENSSL_free(param);
  ------------------
  |  |  132|  1.04k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  377|  1.04k|}
X509_VERIFY_PARAM_inherit:
  424|    347|{
  425|    347|    unsigned long inh_flags;
  426|    347|    int to_default, to_overwrite;
  427|       |
  428|    347|    if (src == NULL)
  ------------------
  |  Branch (428:9): [True: 0, False: 347]
  ------------------
  429|      0|        return 1;
  430|    347|    inh_flags = dest->inh_flags | src->inh_flags;
  431|       |
  432|    347|    if ((inh_flags & X509_VP_FLAG_ONCE) != 0)
  ------------------
  |  |  497|    347|#define X509_VP_FLAG_ONCE 0x10
  ------------------
  |  Branch (432:9): [True: 0, False: 347]
  ------------------
  433|      0|        dest->inh_flags = 0;
  434|       |
  435|    347|    if ((inh_flags & X509_VP_FLAG_LOCKED) != 0)
  ------------------
  |  |  496|    347|#define X509_VP_FLAG_LOCKED 0x8
  ------------------
  |  Branch (435:9): [True: 0, False: 347]
  ------------------
  436|      0|        return 1;
  437|       |
  438|    347|    to_default = (inh_flags & X509_VP_FLAG_DEFAULT) != 0;
  ------------------
  |  |  493|    347|#define X509_VP_FLAG_DEFAULT 0x1
  ------------------
  439|    347|    to_overwrite = (inh_flags & X509_VP_FLAG_OVERWRITE) != 0;
  ------------------
  |  |  494|    347|#define X509_VP_FLAG_OVERWRITE 0x2
  ------------------
  440|       |
  441|    347|    x509_verify_param_copy(purpose, 0);
  ------------------
  |  |  419|    347|    if (test_x509_verify_param_copy(field, def)) \
  |  |  ------------------
  |  |  |  |  414|    347|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (414:6): [True: 0, False: 347]
  |  |  |  |  |  Branch (414:23): [True: 0, False: 347]
  |  |  |  |  |  Branch (414:45): [True: 0, False: 0]
  |  |  |  |  |  Branch (414:59): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  420|    347|        dest->field = src->field;
  ------------------
  442|    347|    x509_verify_param_copy(trust, X509_TRUST_DEFAULT);
  ------------------
  |  |  419|    347|    if (test_x509_verify_param_copy(field, def)) \
  |  |  ------------------
  |  |  |  |  414|    347|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (414:6): [True: 0, False: 347]
  |  |  |  |  |  Branch (414:23): [True: 0, False: 347]
  |  |  |  |  |  Branch (414:45): [True: 0, False: 0]
  |  |  |  |  |  Branch (414:59): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  420|    347|        dest->field = src->field;
  ------------------
  443|    347|    x509_verify_param_copy(depth, -1);
  ------------------
  |  |  419|    347|    if (test_x509_verify_param_copy(field, def)) \
  |  |  ------------------
  |  |  |  |  414|    347|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (414:6): [True: 0, False: 347]
  |  |  |  |  |  Branch (414:23): [True: 0, False: 347]
  |  |  |  |  |  Branch (414:45): [True: 0, False: 0]
  |  |  |  |  |  Branch (414:59): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  420|    347|        dest->field = src->field;
  ------------------
  444|    347|    x509_verify_param_copy(auth_level, -1);
  ------------------
  |  |  419|    347|    if (test_x509_verify_param_copy(field, def)) \
  |  |  ------------------
  |  |  |  |  414|    347|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (414:6): [True: 0, False: 347]
  |  |  |  |  |  Branch (414:23): [True: 0, False: 347]
  |  |  |  |  |  Branch (414:45): [True: 0, False: 0]
  |  |  |  |  |  Branch (414:59): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  420|    347|        dest->field = src->field;
  ------------------
  445|       |
  446|       |    /* If overwrite or check time not set, copy across */
  447|       |
  448|    347|    if (to_overwrite || (dest->flags & X509_V_FLAG_USE_CHECK_TIME) == 0) {
  ------------------
  |  |  442|    347|#define X509_V_FLAG_USE_CHECK_TIME 0x2
  ------------------
  |  Branch (448:9): [True: 0, False: 347]
  |  Branch (448:25): [True: 347, False: 0]
  ------------------
  449|    347|        dest->check_time = src->check_time;
  450|    347|        dest->flags &= ~X509_V_FLAG_USE_CHECK_TIME;
  ------------------
  |  |  442|    347|#define X509_V_FLAG_USE_CHECK_TIME 0x2
  ------------------
  451|       |        /* Don't need to copy flag: that is done below */
  452|    347|    }
  453|       |
  454|    347|    if ((inh_flags & X509_VP_FLAG_RESET_FLAGS) != 0)
  ------------------
  |  |  495|    347|#define X509_VP_FLAG_RESET_FLAGS 0x4
  ------------------
  |  Branch (454:9): [True: 0, False: 347]
  ------------------
  455|      0|        dest->flags = 0;
  456|       |
  457|    347|    dest->flags |= src->flags;
  458|       |
  459|    347|    if (test_x509_verify_param_copy(policies, NULL)) {
  ------------------
  |  |  414|    347|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  ------------------
  |  |  |  Branch (414:6): [True: 0, False: 347]
  |  |  |  Branch (414:23): [True: 0, False: 347]
  |  |  |  Branch (414:45): [True: 0, False: 0]
  |  |  |  Branch (414:59): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  460|      0|        if (!X509_VERIFY_PARAM_set1_policies(dest, src->policies))
  ------------------
  |  Branch (460:13): [True: 0, False: 0]
  ------------------
  461|      0|            return 0;
  462|      0|    }
  463|       |
  464|    347|    x509_verify_param_copy(hostflags, 0);
  ------------------
  |  |  419|    347|    if (test_x509_verify_param_copy(field, def)) \
  |  |  ------------------
  |  |  |  |  414|    347|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (414:6): [True: 0, False: 347]
  |  |  |  |  |  Branch (414:23): [True: 0, False: 347]
  |  |  |  |  |  Branch (414:45): [True: 0, False: 0]
  |  |  |  |  |  Branch (414:59): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  420|    347|        dest->field = src->field;
  ------------------
  465|       |
  466|    347|    if (test_x509_verify_param_copy(hosts, NULL)) {
  ------------------
  |  |  414|    347|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  ------------------
  |  |  |  Branch (414:6): [True: 0, False: 347]
  |  |  |  Branch (414:23): [True: 0, False: 347]
  |  |  |  Branch (414:45): [True: 0, False: 0]
  |  |  |  Branch (414:59): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  467|      0|        if (!replace_buffer_stack(&dest->hosts, &src->hosts))
  ------------------
  |  Branch (467:13): [True: 0, False: 0]
  ------------------
  468|      0|            return 0;
  469|      0|    }
  470|    347|    x509_verify_param_copy(validate_host, NULL);
  ------------------
  |  |  419|    347|    if (test_x509_verify_param_copy(field, def)) \
  |  |  ------------------
  |  |  |  |  414|    347|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (414:6): [True: 0, False: 347]
  |  |  |  |  |  Branch (414:23): [True: 0, False: 347]
  |  |  |  |  |  Branch (414:45): [True: 0, False: 0]
  |  |  |  |  |  Branch (414:59): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  420|    347|        dest->field = src->field;
  ------------------
  471|       |
  472|    347|    if (test_x509_verify_param_copy(ips, NULL)) {
  ------------------
  |  |  414|    347|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  ------------------
  |  |  |  Branch (414:6): [True: 0, False: 347]
  |  |  |  Branch (414:23): [True: 0, False: 347]
  |  |  |  Branch (414:45): [True: 0, False: 0]
  |  |  |  Branch (414:59): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  473|      0|        if (!replace_buffer_stack(&dest->ips, &src->ips))
  ------------------
  |  Branch (473:13): [True: 0, False: 0]
  ------------------
  474|      0|            return 0;
  475|      0|    }
  476|    347|    x509_verify_param_copy(validate_ip, NULL);
  ------------------
  |  |  419|    347|    if (test_x509_verify_param_copy(field, def)) \
  |  |  ------------------
  |  |  |  |  414|    347|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (414:6): [True: 0, False: 347]
  |  |  |  |  |  Branch (414:23): [True: 0, False: 347]
  |  |  |  |  |  Branch (414:45): [True: 0, False: 0]
  |  |  |  |  |  Branch (414:59): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  420|    347|        dest->field = src->field;
  ------------------
  477|       |
  478|    347|    if (test_x509_verify_param_copy(rfc822s, NULL)) {
  ------------------
  |  |  414|    347|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  ------------------
  |  |  |  Branch (414:6): [True: 0, False: 347]
  |  |  |  Branch (414:23): [True: 0, False: 347]
  |  |  |  Branch (414:45): [True: 0, False: 0]
  |  |  |  Branch (414:59): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  479|      0|        if (!replace_buffer_stack(&dest->rfc822s, &src->rfc822s))
  ------------------
  |  Branch (479:13): [True: 0, False: 0]
  ------------------
  480|      0|            return 0;
  481|      0|    }
  482|    347|    x509_verify_param_copy(validate_rfc822, NULL);
  ------------------
  |  |  419|    347|    if (test_x509_verify_param_copy(field, def)) \
  |  |  ------------------
  |  |  |  |  414|    347|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (414:6): [True: 0, False: 347]
  |  |  |  |  |  Branch (414:23): [True: 0, False: 347]
  |  |  |  |  |  Branch (414:45): [True: 0, False: 0]
  |  |  |  |  |  Branch (414:59): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  420|    347|        dest->field = src->field;
  ------------------
  483|       |
  484|    347|    if (test_x509_verify_param_copy(smtputf8s, NULL)) {
  ------------------
  |  |  414|    347|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  ------------------
  |  |  |  Branch (414:6): [True: 0, False: 347]
  |  |  |  Branch (414:23): [True: 0, False: 347]
  |  |  |  Branch (414:45): [True: 0, False: 0]
  |  |  |  Branch (414:59): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  485|      0|        if (!replace_buffer_stack(&dest->smtputf8s, &src->smtputf8s))
  ------------------
  |  Branch (485:13): [True: 0, False: 0]
  ------------------
  486|      0|            return 0;
  487|      0|    }
  488|    347|    x509_verify_param_copy(validate_smtputf8, NULL);
  ------------------
  |  |  419|    347|    if (test_x509_verify_param_copy(field, def)) \
  |  |  ------------------
  |  |  |  |  414|    347|    (to_overwrite || (src->field != def && (to_default || dest->field == def)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (414:6): [True: 0, False: 347]
  |  |  |  |  |  Branch (414:23): [True: 0, False: 347]
  |  |  |  |  |  Branch (414:45): [True: 0, False: 0]
  |  |  |  |  |  Branch (414:59): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  420|    347|        dest->field = src->field;
  ------------------
  489|       |
  490|    347|    return 1;
  491|    347|}
X509_VERIFY_PARAM_set_flags:
  518|    342|{
  519|    342|    param->flags |= flags;
  520|    342|    if ((flags & X509_V_FLAG_POLICY_MASK) != 0)
  ------------------
  |  |  500|    342|#define X509_V_FLAG_POLICY_MASK (X509_V_FLAG_POLICY_CHECK \
  |  |  ------------------
  |  |  |  |  454|    342|#define X509_V_FLAG_POLICY_CHECK 0x80
  |  |  ------------------
  |  |  501|    342|    | X509_V_FLAG_EXPLICIT_POLICY                         \
  |  |  ------------------
  |  |  |  |  456|    342|#define X509_V_FLAG_EXPLICIT_POLICY 0x100
  |  |  ------------------
  |  |  502|    342|    | X509_V_FLAG_INHIBIT_ANY                             \
  |  |  ------------------
  |  |  |  |  458|    342|#define X509_V_FLAG_INHIBIT_ANY 0x200
  |  |  ------------------
  |  |  503|    342|    | X509_V_FLAG_INHIBIT_MAP)
  |  |  ------------------
  |  |  |  |  460|    342|#define X509_V_FLAG_INHIBIT_MAP 0x400
  |  |  ------------------
  ------------------
  |  Branch (520:9): [True: 0, False: 342]
  ------------------
  521|      0|        param->flags |= X509_V_FLAG_POLICY_CHECK;
  ------------------
  |  |  454|      0|#define X509_V_FLAG_POLICY_CHECK 0x80
  ------------------
  522|    342|    return 1;
  523|    342|}
X509_VERIFY_PARAM_move_peername:
  831|    689|{
  832|    689|    char *peername = (from != NULL) ? from->peername : NULL;
  ------------------
  |  Branch (832:22): [True: 0, False: 689]
  ------------------
  833|       |
  834|    689|    if (to->peername != peername) {
  ------------------
  |  Branch (834:9): [True: 0, False: 689]
  ------------------
  835|      0|        OPENSSL_free(to->peername);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  836|      0|        to->peername = peername;
  837|      0|    }
  838|    689|    if (from != NULL)
  ------------------
  |  Branch (838:9): [True: 0, False: 689]
  ------------------
  839|      0|        from->peername = NULL;
  840|    689|}
x509_vpm.c:clear_buffer_stack:
  117|  4.16k|{
  118|  4.16k|    sk_X509_BUFFER_pop_free(*buffer_stack, buffer_free);
  119|       |    *buffer_stack = NULL;
  120|  4.16k|}

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

ossl_d2i_X509_PUBKEY_INTERNAL:
   68|  41.3k|{
   69|  41.3k|    X509_PUBKEY *xpub = OPENSSL_zalloc(sizeof(*xpub));
  ------------------
  |  |  109|  41.3k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   70|       |
   71|  41.3k|    if (xpub == NULL)
  ------------------
  |  Branch (71:9): [True: 0, False: 41.3k]
  ------------------
   72|      0|        return NULL;
   73|  41.3k|    return (X509_PUBKEY *)ASN1_item_d2i_ex((ASN1_VALUE **)&xpub, pp, len,
   74|  41.3k|        ASN1_ITEM_rptr(X509_PUBKEY_INTERNAL),
  ------------------
  |  |  399|  41.3k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
   75|  41.3k|        libctx, propq);
   76|  41.3k|}
ossl_X509_PUBKEY_INTERNAL_free:
   79|  82.7k|{
   80|  82.7k|    ASN1_item_free((ASN1_VALUE *)xpub, ASN1_ITEM_rptr(X509_PUBKEY_INTERNAL));
  ------------------
  |  |  399|  82.7k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
   81|  82.7k|}
X509_PUBKEY_get0:
  446|  41.3k|{
  447|  41.3k|    if (key == NULL) {
  ------------------
  |  Branch (447:9): [True: 0, False: 41.3k]
  ------------------
  448|      0|        ERR_raise(ERR_LIB_X509, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  449|      0|        return NULL;
  450|      0|    }
  451|       |
  452|  41.3k|    if (key->pkey == NULL) {
  ------------------
  |  Branch (452:9): [True: 0, False: 41.3k]
  ------------------
  453|       |        /* We failed to decode the key when we loaded it, or it was never set */
  454|      0|        ERR_raise(ERR_LIB_EVP, EVP_R_DECODE_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  455|      0|        return NULL;
  456|      0|    }
  457|       |
  458|  41.3k|    return key->pkey;
  459|  41.3k|}
X509_PUBKEY_get:
  462|  41.3k|{
  463|  41.3k|    EVP_PKEY *ret = X509_PUBKEY_get0(key);
  464|       |
  465|  41.3k|    if (ret != NULL && !EVP_PKEY_up_ref(ret)) {
  ------------------
  |  Branch (465:9): [True: 41.3k, False: 0]
  |  Branch (465:24): [True: 0, False: 41.3k]
  ------------------
  466|      0|        ERR_raise(ERR_LIB_X509, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  467|       |        ret = NULL;
  468|      0|    }
  469|  41.3k|    return ret;
  470|  41.3k|}
ossl_d2i_PUBKEY_legacy:
  525|  41.3k|{
  526|  41.3k|    return d2i_PUBKEY_int(a, pp, length, NULL, NULL, 1, d2i_X509_PUBKEY);
  527|  41.3k|}
d2i_RSA_PUBKEY:
  594|  28.0k|{
  595|  28.0k|    EVP_PKEY *pkey;
  596|  28.0k|    RSA *key = NULL;
  597|  28.0k|    const unsigned char *q;
  598|       |
  599|  28.0k|    q = *pp;
  600|  28.0k|    pkey = ossl_d2i_PUBKEY_legacy(NULL, &q, length);
  601|  28.0k|    if (pkey == NULL)
  ------------------
  |  Branch (601:9): [True: 0, False: 28.0k]
  ------------------
  602|      0|        return NULL;
  603|  28.0k|    key = EVP_PKEY_get1_RSA(pkey);
  604|  28.0k|    EVP_PKEY_free(pkey);
  605|  28.0k|    if (key == NULL)
  ------------------
  |  Branch (605:9): [True: 0, False: 28.0k]
  ------------------
  606|      0|        return NULL;
  607|  28.0k|    *pp = q;
  608|  28.0k|    if (a != NULL) {
  ------------------
  |  Branch (608:9): [True: 0, False: 28.0k]
  ------------------
  609|      0|        RSA_free(*a);
  610|      0|        *a = key;
  611|      0|    }
  612|  28.0k|    return key;
  613|  28.0k|}
d2i_EC_PUBKEY:
  785|  13.3k|{
  786|  13.3k|    EVP_PKEY *pkey;
  787|  13.3k|    EC_KEY *key = NULL;
  788|  13.3k|    const unsigned char *q;
  789|  13.3k|    int type;
  790|       |
  791|  13.3k|    q = *pp;
  792|  13.3k|    pkey = ossl_d2i_PUBKEY_legacy(NULL, &q, length);
  793|  13.3k|    if (pkey == NULL)
  ------------------
  |  Branch (793:9): [True: 0, False: 13.3k]
  ------------------
  794|      0|        return NULL;
  795|  13.3k|    type = EVP_PKEY_get_id(pkey);
  796|  13.3k|    if (type == EVP_PKEY_EC || type == EVP_PKEY_SM2)
  ------------------
  |  |   73|  13.3k|#define EVP_PKEY_EC NID_X9_62_id_ecPublicKey
  |  |  ------------------
  |  |  |  |  178|  26.6k|#define NID_X9_62_id_ecPublicKey                408
  |  |  ------------------
  ------------------
                  if (type == EVP_PKEY_EC || type == EVP_PKEY_SM2)
  ------------------
  |  |   74|      0|#define EVP_PKEY_SM2 NID_sm2
  |  |  ------------------
  |  |  |  | 1259|      0|#define NID_sm2         1172
  |  |  ------------------
  ------------------
  |  Branch (796:9): [True: 13.3k, False: 0]
  |  Branch (796:32): [True: 0, False: 0]
  ------------------
  797|  13.3k|        key = EVP_PKEY_get1_EC_KEY(pkey);
  798|  13.3k|    EVP_PKEY_free(pkey);
  799|  13.3k|    if (key == NULL)
  ------------------
  |  Branch (799:9): [True: 0, False: 13.3k]
  ------------------
  800|      0|        return NULL;
  801|  13.3k|    *pp = q;
  802|  13.3k|    if (a != NULL) {
  ------------------
  |  Branch (802:9): [True: 0, False: 13.3k]
  ------------------
  803|      0|        EC_KEY_free(*a);
  804|      0|        *a = key;
  805|      0|    }
  806|  13.3k|    return key;
  807|  13.3k|}
X509_PUBKEY_get0_param:
 1019|  82.7k|{
 1020|  82.7k|    if (ppkalg)
  ------------------
  |  Branch (1020:9): [True: 0, False: 82.7k]
  ------------------
 1021|      0|        *ppkalg = pub->algor->algorithm;
 1022|  82.7k|    if (pk) {
  ------------------
  |  Branch (1022:9): [True: 41.3k, False: 41.3k]
  ------------------
 1023|  41.3k|        *pk = pub->public_key->data;
 1024|  41.3k|        *ppklen = pub->public_key->length;
 1025|  41.3k|    }
 1026|  82.7k|    if (pa)
  ------------------
  |  Branch (1026:9): [True: 82.7k, False: 0]
  ------------------
 1027|  82.7k|        *pa = pub->algor;
 1028|  82.7k|    return 1;
 1029|  82.7k|}
ossl_x509_PUBKEY_get0_libctx:
 1061|  13.3k|{
 1062|  13.3k|    if (plibctx)
  ------------------
  |  Branch (1062:9): [True: 13.3k, False: 0]
  ------------------
 1063|  13.3k|        *plibctx = key->libctx;
 1064|  13.3k|    if (ppropq)
  ------------------
  |  Branch (1064:9): [True: 13.3k, False: 0]
  ------------------
 1065|  13.3k|        *ppropq = key->propq;
 1066|  13.3k|    return 1;
 1067|  13.3k|}
x_pubkey.c:x509_pubkey_ex_new_ex:
  109|  41.3k|{
  110|  41.3k|    X509_PUBKEY *ret;
  111|       |
  112|  41.3k|    if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL)
  ------------------
  |  |  109|  41.3k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (112:9): [True: 0, False: 41.3k]
  ------------------
  113|      0|        return 0;
  114|  41.3k|    if (!x509_pubkey_ex_populate((ASN1_VALUE **)&ret, NULL)
  ------------------
  |  Branch (114:9): [True: 0, False: 41.3k]
  ------------------
  115|  41.3k|        || !x509_pubkey_set0_libctx(ret, libctx, propq)) {
  ------------------
  |  Branch (115:12): [True: 0, False: 41.3k]
  ------------------
  116|      0|        x509_pubkey_ex_free((ASN1_VALUE **)&ret, NULL);
  117|      0|        ret = NULL;
  118|      0|        ERR_raise(ERR_LIB_ASN1, ERR_R_X509_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  119|  41.3k|    } else {
  120|  41.3k|        *pval = (ASN1_VALUE *)ret;
  121|  41.3k|    }
  122|       |
  123|       |    return ret != NULL;
  124|  41.3k|}
x_pubkey.c:x509_pubkey_ex_populate:
   98|   124k|{
   99|   124k|    X509_PUBKEY *pubkey = (X509_PUBKEY *)*pval;
  100|       |
  101|   124k|    return (pubkey->algor != NULL
  ------------------
  |  Branch (101:13): [True: 41.3k, False: 82.7k]
  ------------------
  102|  82.7k|               || (pubkey->algor = X509_ALGOR_new()) != NULL)
  ------------------
  |  Branch (102:19): [True: 82.7k, False: 0]
  ------------------
  103|   124k|        && (pubkey->public_key != NULL
  ------------------
  |  Branch (103:13): [True: 41.3k, False: 82.7k]
  ------------------
  104|  82.7k|            || (pubkey->public_key = ASN1_BIT_STRING_new()) != NULL);
  ------------------
  |  Branch (104:16): [True: 82.7k, False: 0]
  ------------------
  105|   124k|}
x_pubkey.c:x509_pubkey_ex_d2i_ex:
  131|  82.7k|{
  132|  82.7k|    const unsigned char *in_saved = *in;
  133|  82.7k|    size_t publen;
  134|  82.7k|    X509_PUBKEY *pubkey;
  135|  82.7k|    int ret;
  136|  82.7k|    OSSL_DECODER_CTX *dctx = NULL;
  137|  82.7k|    unsigned char *tmpbuf = NULL;
  138|       |
  139|  82.7k|    if (*pval == NULL && !x509_pubkey_ex_new_ex(pval, it, libctx, propq))
  ------------------
  |  Branch (139:9): [True: 0, False: 82.7k]
  |  Branch (139:26): [True: 0, False: 0]
  ------------------
  140|      0|        return 0;
  141|  82.7k|    if (!x509_pubkey_ex_populate(pval, NULL)) {
  ------------------
  |  Branch (141:9): [True: 0, False: 82.7k]
  ------------------
  142|      0|        ERR_raise(ERR_LIB_ASN1, ERR_R_X509_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  143|      0|        return 0;
  144|      0|    }
  145|       |
  146|       |    /* This ensures that |*in| advances properly no matter what */
  147|  82.7k|    if ((ret = asn1_item_embed_d2i(pval, in, len,
  ------------------
  |  Branch (147:9): [True: 0, False: 82.7k]
  ------------------
  148|  82.7k|             ASN1_ITEM_rptr(X509_PUBKEY_INTERNAL),
  ------------------
  |  |  399|  82.7k|#define ASN1_ITEM_rptr(ref) (ref##_it())
  ------------------
  149|  82.7k|             tag, aclass, opt, ctx, 0,
  150|  82.7k|             NULL, NULL))
  151|  82.7k|        <= 0) {
  152|      0|        x509_pubkey_ex_free(pval, it);
  153|      0|        return ret;
  154|      0|    }
  155|       |
  156|  82.7k|    publen = *in - in_saved;
  157|  82.7k|    if (!ossl_assert(publen > 0)) {
  ------------------
  |  |   52|  82.7k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  82.7k|    __FILE__, __LINE__)
  ------------------
  |  Branch (157:9): [True: 0, False: 82.7k]
  ------------------
  158|      0|        ERR_raise(ERR_LIB_ASN1, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  159|      0|        return 0;
  160|      0|    }
  161|       |
  162|  82.7k|    pubkey = (X509_PUBKEY *)*pval;
  163|  82.7k|    EVP_PKEY_free(pubkey->pkey);
  164|  82.7k|    pubkey->pkey = NULL;
  165|       |
  166|       |    /*
  167|       |     * Opportunistically decode the key but remove any non fatal errors
  168|       |     * from the queue. Subsequent explicit attempts to decode/use the key
  169|       |     * will return an appropriate error.
  170|       |     */
  171|  82.7k|    ERR_set_mark();
  172|       |
  173|       |    /*
  174|       |     * Try to decode with legacy method first.  This ensures that engines
  175|       |     * aren't overridden by providers.
  176|       |     */
  177|  82.7k|    if ((ret = x509_pubkey_decode(&pubkey->pkey, pubkey)) == -1) {
  ------------------
  |  Branch (177:9): [True: 0, False: 82.7k]
  ------------------
  178|       |        /* -1 indicates a fatal error, like malloc failure */
  179|      0|        ERR_clear_last_mark();
  180|      0|        goto end;
  181|      0|    }
  182|       |
  183|       |    /* Try to decode it into an EVP_PKEY with OSSL_DECODER */
  184|  82.7k|    if (ret <= 0 && !pubkey->flag_force_legacy) {
  ------------------
  |  Branch (184:9): [True: 41.3k, False: 41.3k]
  |  Branch (184:21): [True: 41.3k, False: 0]
  ------------------
  185|  41.3k|        const unsigned char *p;
  186|  41.3k|        char txtoidname[OSSL_MAX_NAME_SIZE];
  187|  41.3k|        size_t slen = publen;
  188|       |
  189|       |        /*
  190|       |         * The decoders don't know how to handle anything other than Universal
  191|       |         * class so we modify the data accordingly.
  192|       |         */
  193|  41.3k|        if (aclass != V_ASN1_UNIVERSAL) {
  ------------------
  |  |   49|  41.3k|#define V_ASN1_UNIVERSAL 0x00
  ------------------
  |  Branch (193:13): [True: 0, False: 41.3k]
  ------------------
  194|      0|            tmpbuf = OPENSSL_memdup(in_saved, publen);
  ------------------
  |  |  134|      0|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  195|      0|            if (tmpbuf == NULL)
  ------------------
  |  Branch (195:17): [True: 0, False: 0]
  ------------------
  196|      0|                return 0;
  197|      0|            in_saved = tmpbuf;
  198|      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
  ------------------
  199|      0|        }
  200|  41.3k|        p = in_saved;
  201|       |
  202|  41.3k|        if (OBJ_obj2txt(txtoidname, sizeof(txtoidname),
  ------------------
  |  Branch (202:13): [True: 0, False: 41.3k]
  ------------------
  203|  41.3k|                pubkey->algor->algorithm, 0)
  204|  41.3k|            <= 0) {
  205|      0|            ERR_clear_last_mark();
  206|      0|            goto end;
  207|      0|        }
  208|  41.3k|        if ((dctx = OSSL_DECODER_CTX_new_for_pkey(&pubkey->pkey,
  ------------------
  |  Branch (208:13): [True: 41.3k, False: 0]
  ------------------
  209|  41.3k|                 "DER", "SubjectPublicKeyInfo",
  210|  41.3k|                 txtoidname, EVP_PKEY_PUBLIC_KEY,
  ------------------
  |  |  112|  41.3k|    (EVP_PKEY_KEY_PARAMETERS | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  108|  41.3k|    (OSSL_KEYMGMT_SELECT_ALL_PARAMETERS)
  |  |  |  |  ------------------
  |  |  |  |  |  |  653|  41.3k|    (OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  648|  41.3k|#define OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS 0x04
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  654|  41.3k|        | OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  649|  41.3k|#define OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS 0x80
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                   (EVP_PKEY_KEY_PARAMETERS | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  647|  41.3k|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  |  |  ------------------
  ------------------
  211|  41.3k|                 pubkey->libctx,
  212|  41.3k|                 pubkey->propq))
  213|  41.3k|            != NULL)
  214|       |            /*
  215|       |             * As said higher up, we're being opportunistic.  In other words,
  216|       |             * we don't care if we fail.
  217|       |             */
  218|  41.3k|            if (OSSL_DECODER_from_data(dctx, &p, &slen)) {
  ------------------
  |  Branch (218:17): [True: 41.3k, False: 0]
  ------------------
  219|  41.3k|                if (slen != 0) {
  ------------------
  |  Branch (219:21): [True: 0, False: 41.3k]
  ------------------
  220|       |                    /*
  221|       |                     * If we successfully decoded then we *must* consume all the
  222|       |                     * bytes.
  223|       |                     */
  224|      0|                    ERR_clear_last_mark();
  225|      0|                    ERR_raise(ERR_LIB_ASN1, EVP_R_DECODE_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  226|      0|                    goto end;
  227|      0|                }
  228|  41.3k|            }
  229|  41.3k|    }
  230|       |
  231|  82.7k|    ERR_pop_to_mark();
  232|  82.7k|    ret = 1;
  233|  82.7k|end:
  234|  82.7k|    OSSL_DECODER_CTX_free(dctx);
  235|  82.7k|    OPENSSL_free(tmpbuf);
  ------------------
  |  |  132|  82.7k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  236|  82.7k|    return ret;
  237|  82.7k|}
x_pubkey.c:x509_pubkey_set0_libctx:
   48|  82.7k|{
   49|  82.7k|    if (x != NULL) {
  ------------------
  |  Branch (49:9): [True: 82.7k, False: 0]
  ------------------
   50|  82.7k|        x->libctx = libctx;
   51|  82.7k|        OPENSSL_free(x->propq);
  ------------------
  |  |  132|  82.7k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   52|  82.7k|        x->propq = NULL;
   53|  82.7k|        if (propq != NULL) {
  ------------------
  |  Branch (53:13): [True: 0, False: 82.7k]
  ------------------
   54|      0|            x->propq = OPENSSL_strdup(propq);
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   55|      0|            if (x->propq == NULL)
  ------------------
  |  Branch (55:17): [True: 0, False: 0]
  ------------------
   56|      0|                return 0;
   57|      0|        }
   58|  82.7k|    }
   59|  82.7k|    return 1;
   60|  82.7k|}
x_pubkey.c:x509_pubkey_ex_free:
   84|  82.7k|{
   85|  82.7k|    X509_PUBKEY *pubkey;
   86|       |
   87|  82.7k|    if (pval != NULL && (pubkey = (X509_PUBKEY *)*pval) != NULL) {
  ------------------
  |  Branch (87:9): [True: 82.7k, False: 0]
  |  Branch (87:25): [True: 82.7k, False: 0]
  ------------------
   88|  82.7k|        X509_ALGOR_free(pubkey->algor);
   89|  82.7k|        ASN1_BIT_STRING_free(pubkey->public_key);
   90|  82.7k|        EVP_PKEY_free(pubkey->pkey);
   91|  82.7k|        OPENSSL_free(pubkey->propq);
  ------------------
  |  |  132|  82.7k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   92|  82.7k|        OPENSSL_free(pubkey);
  ------------------
  |  |  132|  82.7k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   93|       |        *pval = NULL;
   94|  82.7k|    }
   95|  82.7k|}
x_pubkey.c:x509_pubkey_decode:
  405|  82.7k|{
  406|  82.7k|    EVP_PKEY *pkey;
  407|  82.7k|    int nid;
  408|       |
  409|  82.7k|    nid = OBJ_obj2nid(key->algor->algorithm);
  410|  82.7k|    if (!key->flag_force_legacy)
  ------------------
  |  Branch (410:9): [True: 41.3k, False: 41.3k]
  ------------------
  411|  41.3k|        return 0;
  412|       |
  413|  41.3k|    pkey = EVP_PKEY_new();
  414|  41.3k|    if (pkey == NULL) {
  ------------------
  |  Branch (414:9): [True: 0, False: 41.3k]
  ------------------
  415|      0|        ERR_raise(ERR_LIB_X509, ERR_R_EVP_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  416|      0|        return -1;
  417|      0|    }
  418|       |
  419|  41.3k|    if (!EVP_PKEY_set_type(pkey, nid)) {
  ------------------
  |  Branch (419:9): [True: 0, False: 41.3k]
  ------------------
  420|      0|        ERR_raise(ERR_LIB_X509, X509_R_UNSUPPORTED_ALGORITHM);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  421|      0|        goto error;
  422|      0|    }
  423|       |
  424|  41.3k|    if (pkey->ameth->pub_decode) {
  ------------------
  |  Branch (424:9): [True: 41.3k, False: 0]
  ------------------
  425|       |        /*
  426|       |         * Treat any failure of pub_decode as a decode error. In
  427|       |         * future we could have different return codes for decode
  428|       |         * errors and fatal errors such as malloc failure.
  429|       |         */
  430|  41.3k|        if (!pkey->ameth->pub_decode(pkey, key))
  ------------------
  |  Branch (430:13): [True: 0, False: 41.3k]
  ------------------
  431|      0|            goto error;
  432|  41.3k|    } else {
  433|      0|        ERR_raise(ERR_LIB_X509, X509_R_METHOD_NOT_SUPPORTED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  434|      0|        goto error;
  435|      0|    }
  436|       |
  437|  41.3k|    *ppkey = pkey;
  438|  41.3k|    return 1;
  439|       |
  440|      0|error:
  441|      0|    EVP_PKEY_free(pkey);
  442|      0|    return 0;
  443|  41.3k|}
x_pubkey.c:d2i_PUBKEY_int:
  483|  41.3k|{
  484|  41.3k|    X509_PUBKEY *xpk, *xpk2 = NULL, **pxpk = NULL;
  485|  41.3k|    EVP_PKEY *pktmp = NULL;
  486|  41.3k|    const unsigned char *q;
  487|       |
  488|  41.3k|    q = *pp;
  489|       |
  490|       |    /*
  491|       |     * If libctx or propq are non-NULL, we take advantage of the reuse
  492|       |     * feature.  It's not generally recommended, but is safe enough for
  493|       |     * newly created structures.
  494|       |     */
  495|  41.3k|    if (libctx != NULL || propq != NULL || force_legacy) {
  ------------------
  |  Branch (495:9): [True: 0, False: 41.3k]
  |  Branch (495:27): [True: 0, False: 41.3k]
  |  Branch (495:44): [True: 41.3k, False: 0]
  ------------------
  496|  41.3k|        xpk2 = OPENSSL_zalloc(sizeof(*xpk2));
  ------------------
  |  |  109|  41.3k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  497|  41.3k|        if (xpk2 == NULL)
  ------------------
  |  Branch (497:13): [True: 0, False: 41.3k]
  ------------------
  498|      0|            return NULL;
  499|  41.3k|        if (!x509_pubkey_set0_libctx(xpk2, libctx, propq))
  ------------------
  |  Branch (499:13): [True: 0, False: 41.3k]
  ------------------
  500|      0|            goto end;
  501|  41.3k|        xpk2->flag_force_legacy = !!force_legacy;
  502|  41.3k|        pxpk = &xpk2;
  503|  41.3k|    }
  504|  41.3k|    xpk = d2i_x509_pubkey(pxpk, &q, length);
  505|  41.3k|    if (xpk == NULL)
  ------------------
  |  Branch (505:9): [True: 0, False: 41.3k]
  ------------------
  506|      0|        goto end;
  507|  41.3k|    pktmp = X509_PUBKEY_get(xpk);
  508|  41.3k|    X509_PUBKEY_free(xpk);
  509|  41.3k|    xpk2 = NULL; /* We know that xpk == xpk2 */
  510|  41.3k|    if (pktmp == NULL)
  ------------------
  |  Branch (510:9): [True: 0, False: 41.3k]
  ------------------
  511|      0|        goto end;
  512|  41.3k|    *pp = q;
  513|  41.3k|    if (a != NULL) {
  ------------------
  |  Branch (513:9): [True: 0, False: 41.3k]
  ------------------
  514|      0|        EVP_PKEY_free(*a);
  515|      0|        *a = pktmp;
  516|      0|    }
  517|  41.3k|end:
  518|  41.3k|    X509_PUBKEY_free(xpk2);
  519|  41.3k|    return pktmp;
  520|  41.3k|}

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

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

threads_common.c:ossl_sa_CTX_TABLE_ENTRY_get:
   60|  1.95M|    {                                                                                                              \
   61|  1.95M|        return (type *)ossl_sa_get((OPENSSL_SA *)sa, n);                                                           \
   62|  1.95M|    }                                                                                                              \
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|     32|    {                                                                                                              \
   27|     32|        return (SPARSE_ARRAY_OF(type) *)ossl_sa_new();                                                             \
   28|     32|    }                                                                                                              \
property.c:ossl_sa_ALGORITHM_get:
   60|  37.2k|    {                                                                                                              \
   61|  37.2k|        return (type *)ossl_sa_get((OPENSSL_SA *)sa, n);                                                           \
   62|  37.2k|    }                                                                                                              \
property.c:ossl_sa_ALGORITHM_set:
   66|    303|    {                                                                                                              \
   67|    303|        return ossl_sa_set((OPENSSL_SA *)sa, n, (void *)val);                                                      \
   68|    303|    }                                                                                                              \
property.c:ossl_sa_ALGORITHM_doall_arg:
   55|     24|    {                                                                                                              \
   56|     24|        ossl_sa_doall_arg((OPENSSL_SA *)sa,                                                                        \
   57|     24|            (void (*)(ossl_uintmax_t, void *, void *))leaf, arg);                                                  \
   58|     24|    }                                                                                                              \
property.c:ossl_sa_ALGORITHM_num:
   41|     24|    {                                                                                                              \
   42|     24|        return ossl_sa_num((OPENSSL_SA *)sa);                                                                      \
   43|     24|    }                                                                                                              \
rsa_ossl.c:ossl_sa_BN_BLINDING_doall_arg:
   55|  28.0k|    {                                                                                                              \
   56|  28.0k|        ossl_sa_doall_arg((OPENSSL_SA *)sa,                                                                        \
   57|  28.0k|            (void (*)(ossl_uintmax_t, void *, void *))leaf, arg);                                                  \
   58|  28.0k|    }                                                                                                              \
rsa_ossl.c:ossl_sa_BN_BLINDING_free:
   31|  28.0k|    {                                                                                                              \
   32|  28.0k|        ossl_sa_free((OPENSSL_SA *)sa);                                                                            \
   33|  28.0k|    }                                                                                                              \
rsa_ossl.c:ossl_sa_BN_BLINDING_new:
   26|  28.0k|    {                                                                                                              \
   27|  28.0k|        return (SPARSE_ARRAY_OF(type) *)ossl_sa_new();                                                             \
   28|  28.0k|    }                                                                                                              \

s3_lib.c:ossl_assert_int:
   45|    684|{
   46|    684|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 684]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|    684|    return expr;
   50|    684|}
ssl_cert.c:ossl_assert_int:
   45|    347|{
   46|    347|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 347]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|    347|    return expr;
   50|    347|}
ssl_ciph.c:ossl_assert_int:
   45|  2.77k|{
   46|  2.77k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 2.77k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  2.77k|    return expr;
   50|  2.77k|}
ssl_lib.c:ossl_assert_int:
   45|    347|{
   46|    347|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 347]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|    347|    return expr;
   50|    347|}
rec_layer_s3.c:ossl_assert_int:
   45|  2.07k|{
   46|  2.07k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 2.07k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  2.07k|    return expr;
   50|  2.07k|}
tls_common.c:ossl_assert_int:
   45|  7.20k|{
   46|  7.20k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 7.20k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  7.20k|    return expr;
   50|  7.20k|}
decoder_lib.c:ossl_assert_int:
   45|     17|{
   46|     17|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 17]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|     17|    return expr;
   50|     17|}
decoder_meth.c:ossl_assert_int:
   45|   431k|{
   46|   431k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 431k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|   431k|    return expr;
   50|   431k|}
digest.c:ossl_assert_int:
   45|  11.2k|{
   46|  11.2k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 11.2k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  11.2k|    return expr;
   50|  11.2k|}
evp_enc.c:ossl_assert_int:
   45|  66.9k|{
   46|  66.9k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 66.9k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  66.9k|    return expr;
   50|  66.9k|}
evp_fetch.c:ossl_assert_int:
   45|   112k|{
   46|   112k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 112k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|   112k|    return expr;
   50|   112k|}
p_lib.c:ossl_assert_int:
   45|   331k|{
   46|   331k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 331k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|   331k|    return expr;
   50|   331k|}
pmeth_lib.c:ossl_assert_int:
   45|  9.70k|{
   46|  9.70k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 9.70k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  9.70k|    return expr;
   50|  9.70k|}
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|  5.62k|{
   46|  5.62k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 5.62k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  5.62k|    return expr;
   50|  5.62k|}
core_namemap.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|}
packet.c:ossl_assert_int:
   45|   339k|{
   46|   339k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 339k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|   339k|    return expr;
   50|   339k|}
provider_core.c:ossl_assert_int:
   45|  5.61k|{
   46|  5.61k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 5.61k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  5.61k|    return expr;
   50|  5.61k|}
threads_common.c:ossl_assert_int:
   45|  1.95M|{
   46|  1.95M|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 1.95M]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  1.95M|    return expr;
   50|  1.95M|}
threads_pthread.c:ossl_assert_int:
   45|  1.14M|{
   46|  1.14M|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 1.14M]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  1.14M|    return expr;
   50|  1.14M|}
defn_cache.c:ossl_assert_int:
   45|    698|{
   46|    698|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 698]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|    698|    return expr;
   50|    698|}
property.c:ossl_assert_int:
   45|    404|{
   46|    404|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 404]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|    404|    return expr;
   50|    404|}
x_pubkey.c:ossl_assert_int:
   45|  82.7k|{
   46|  82.7k|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 82.7k]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|  82.7k|    return expr;
   50|  82.7k|}
drbg_ctr.c:ossl_assert_int:
   45|     31|{
   46|     31|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 31]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|     31|    return expr;
   50|     31|}
ml_kem.c:ossl_assert_int:
   45|    684|{
   46|    684|    if (!expr)
  ------------------
  |  Branch (46:9): [True: 0, False: 684]
  ------------------
   47|      0|        OPENSSL_die(exprstr, file, line);
   48|       |
   49|    684|    return expr;
   50|    684|}

core_namemap.c:ossl_ht_strcase:
  320|   308k|{
  321|   308k|    size_t i;
  322|       |#if defined(CHARSET_EBCDIC) && !defined(CHARSET_EBCDIC_TEST)
  323|       |    const long int case_adjust = ~0x40;
  324|       |#else
  325|   308k|    const long int case_adjust = ~0x20;
  326|   308k|#endif
  327|       |
  328|   308k|    if (src == NULL)
  ------------------
  |  Branch (328:9): [True: 0, False: 308k]
  ------------------
  329|      0|        return;
  330|       |
  331|       |    /*
  332|       |     * If we're passed a key, we're doing raw key copies
  333|       |     * so check that we don't overflow here, and truncate if
  334|       |     * we copy more space than we have available
  335|       |     */
  336|   308k|    if (key != NULL && key->keysize + len > key->bufsize)
  ------------------
  |  Branch (336:9): [True: 308k, False: 0]
  |  Branch (336:24): [True: 0, False: 308k]
  ------------------
  337|      0|        len = (size_t)(key->bufsize - key->keysize);
  338|       |
  339|  2.63M|    for (i = 0; src[i] != '\0' && i < len; i++)
  ------------------
  |  Branch (339:17): [True: 2.32M, False: 308k]
  |  Branch (339:35): [True: 2.32M, False: 188]
  ------------------
  340|  2.32M|        tgt[i] = case_adjust & src[i];
  341|   308k|}

array_alloc.c:ossl_size_mul:
   88|  2.19M|{
   89|  2.19M|    int err = 0;
   90|  2.19M|    *bytes = safe_mul_size_t(num, size, &err);
   91|       |
   92|  2.19M|    if (ossl_unlikely(err != 0)) {
  ------------------
  |  |   23|  2.19M|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 2.19M]
  |  |  ------------------
  ------------------
   93|      0|        ossl_report_alloc_err_of(file, line);
   94|       |
   95|      0|        return false;
   96|      0|    }
   97|       |
   98|  2.19M|    return true;
   99|  2.19M|}

ssl_cert.c:CRYPTO_NEW_REF:
  280|    694|{
  281|    694|    refcnt->val = n;
  282|    694|    return 1;
  283|    694|}
ssl_cert.c:CRYPTO_DOWN_REF:
   56|    694|{
   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|    694|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|    694|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 694, False: 0]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|    694|#endif
   68|    694|    return 1;
   69|    694|}
ssl_cert.c:CRYPTO_FREE_REF:
  286|    694|{
  287|    694|}
ssl_lib.c:CRYPTO_NEW_REF:
  280|    694|{
  281|    694|    refcnt->val = n;
  282|    694|    return 1;
  283|    694|}
ssl_lib.c:CRYPTO_FREE_REF:
  286|    694|{
  287|    694|}
ssl_lib.c:CRYPTO_UP_REF:
   40|    694|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|    694|    return 1;
   43|    694|}
ssl_lib.c:CRYPTO_DOWN_REF:
   56|  1.38k|{
   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|  1.38k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|  1.38k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 694, False: 694]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|  1.38k|#endif
   68|  1.38k|    return 1;
   69|  1.38k|}
ssl_sess.c:CRYPTO_NEW_REF:
  280|    342|{
  281|    342|    refcnt->val = n;
  282|    342|    return 1;
  283|    342|}
ssl_sess.c:CRYPTO_FREE_REF:
  286|    342|{
  287|    342|}
ssl_sess.c:CRYPTO_DOWN_REF:
   56|    342|{
   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|    342|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|    342|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 342, False: 0]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|    342|#endif
   68|    342|    return 1;
   69|    342|}
tasn_utl.c:CRYPTO_NEW_REF:
  280|  41.3k|{
  281|  41.3k|    refcnt->val = n;
  282|  41.3k|    return 1;
  283|  41.3k|}
tasn_utl.c:CRYPTO_FREE_REF:
  286|  41.3k|{
  287|  41.3k|}
tasn_utl.c:CRYPTO_DOWN_REF:
   56|  82.7k|{
   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|  82.7k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|  82.7k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 41.3k, False: 41.3k]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|  82.7k|#endif
   68|  82.7k|    return 1;
   69|  82.7k|}
bio_lib.c:CRYPTO_NEW_REF:
  280|   251k|{
  281|   251k|    refcnt->val = n;
  282|   251k|    return 1;
  283|   251k|}
bio_lib.c:CRYPTO_FREE_REF:
  286|   251k|{
  287|   251k|}
bio_lib.c:CRYPTO_DOWN_REF:
   56|   337k|{
   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|   337k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|   337k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 251k, False: 86.1k]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|   337k|#endif
   68|   337k|    return 1;
   69|   337k|}
bio_lib.c:CRYPTO_UP_REF:
   40|  86.1k|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|  86.1k|    return 1;
   43|  86.1k|}
bio_lib.c:CRYPTO_GET_REF:
   72|  2.73k|{
   73|       |    *ret = atomic_load_explicit(&refcnt->val, memory_order_acquire);
   74|  2.73k|    return 1;
   75|  2.73k|}
ec_key.c:CRYPTO_DOWN_REF:
   56|  26.6k|{
   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|  26.6k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|  26.6k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 13.3k, False: 13.3k]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|  26.6k|#endif
   68|  26.6k|    return 1;
   69|  26.6k|}
ec_key.c:CRYPTO_FREE_REF:
  286|  13.3k|{
  287|  13.3k|}
ec_key.c:CRYPTO_UP_REF:
   40|  13.3k|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|  13.3k|    return 1;
   43|  13.3k|}
ec_kmeth.c:CRYPTO_NEW_REF:
  280|  13.3k|{
  281|  13.3k|    refcnt->val = n;
  282|  13.3k|    return 1;
  283|  13.3k|}
decoder_meth.c:CRYPTO_UP_REF:
   40|   235k|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|   235k|    return 1;
   43|   235k|}
decoder_meth.c:CRYPTO_DOWN_REF:
   56|   235k|{
   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|   235k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|   235k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 0, False: 235k]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|   235k|#endif
   68|   235k|    return 1;
   69|   235k|}
decoder_meth.c:CRYPTO_NEW_REF:
  280|     76|{
  281|     76|    refcnt->val = n;
  282|     76|    return 1;
  283|     76|}
digest.c:CRYPTO_NEW_REF:
  280|     30|{
  281|     30|    refcnt->val = n;
  282|     30|    return 1;
  283|     30|}
digest.c:CRYPTO_UP_REF:
   40|  6.24k|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|  6.24k|    return 1;
   43|  6.24k|}
digest.c:CRYPTO_DOWN_REF:
   56|  6.23k|{
   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|  6.23k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|  6.23k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 0, False: 6.23k]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|  6.23k|#endif
   68|  6.23k|    return 1;
   69|  6.23k|}
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|  5.71k|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|  5.71k|    return 1;
   43|  5.71k|}
evp_enc.c:CRYPTO_DOWN_REF:
   56|  5.68k|{
   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|  5.68k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|  5.68k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 0, False: 5.68k]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|  5.68k|#endif
   68|  5.68k|    return 1;
   69|  5.68k|}
exchange.c:CRYPTO_DOWN_REF:
   56|    701|{
   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|    701|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|    701|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 0, False: 701]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|    701|#endif
   68|    701|    return 1;
   69|    701|}
exchange.c:CRYPTO_UP_REF:
   40|    703|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|    703|    return 1;
   43|    703|}
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|     42|{
  281|     42|    refcnt->val = n;
  282|     42|    return 1;
  283|     42|}
keymgmt_meth.c:CRYPTO_UP_REF:
   40|   160k|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|   160k|    return 1;
   43|   160k|}
keymgmt_meth.c:CRYPTO_DOWN_REF:
   56|   160k|{
   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|   160k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|   160k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 0, False: 160k]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|   160k|#endif
   68|   160k|    return 1;
   69|   160k|}
p_lib.c:CRYPTO_NEW_REF:
  280|  84.4k|{
  281|  84.4k|    refcnt->val = n;
  282|  84.4k|    return 1;
  283|  84.4k|}
p_lib.c:CRYPTO_FREE_REF:
  286|  84.4k|{
  287|  84.4k|}
p_lib.c:CRYPTO_UP_REF:
   40|  50.4k|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|  50.4k|    return 1;
   43|  50.4k|}
p_lib.c:CRYPTO_DOWN_REF:
   56|   134k|{
   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|   134k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|   134k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 84.4k, False: 50.4k]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|   134k|#endif
   68|   134k|    return 1;
   69|   134k|}
signature.c:CRYPTO_DOWN_REF:
   56|    753|{
   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|    753|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|    753|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 0, False: 753]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|    753|#endif
   68|    753|    return 1;
   69|    753|}
signature.c:CRYPTO_UP_REF:
   40|    755|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|    755|    return 1;
   43|    755|}
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|  6.65k|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|  6.65k|    return 1;
   43|  6.65k|}
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|  6.30k|{
   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|  6.30k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|  6.30k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 0, False: 6.30k]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|  6.30k|#endif
   68|  6.30k|    return 1;
   69|  6.30k|}
rsa_lib.c:CRYPTO_NEW_REF:
  280|  28.0k|{
  281|  28.0k|    refcnt->val = n;
  282|  28.0k|    return 1;
  283|  28.0k|}
rsa_lib.c:CRYPTO_DOWN_REF:
   56|  56.0k|{
   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|  56.0k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|  56.0k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 28.0k, False: 28.0k]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|  56.0k|#endif
   68|  56.0k|    return 1;
   69|  56.0k|}
rsa_lib.c:CRYPTO_FREE_REF:
  286|  28.0k|{
  287|  28.0k|}
rsa_lib.c:CRYPTO_UP_REF:
   40|  28.0k|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|  28.0k|    return 1;
   43|  28.0k|}
x509_lu.c:CRYPTO_NEW_REF:
  280|    347|{
  281|    347|    refcnt->val = n;
  282|    347|    return 1;
  283|    347|}
x509_lu.c:CRYPTO_DOWN_REF:
   56|    347|{
   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|    347|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|    347|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 347, False: 0]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|    347|#endif
   68|    347|    return 1;
   69|    347|}
x509_lu.c:CRYPTO_FREE_REF:
  286|    347|{
  287|    347|}
x509_set.c:CRYPTO_UP_REF:
   40|  41.3k|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|  41.3k|    return 1;
   43|  41.3k|}
ossl_core_bio.c:CRYPTO_UP_REF:
   40|  82.7k|{
   41|       |    *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1;
   42|  82.7k|    return 1;
   43|  82.7k|}
ossl_core_bio.c:CRYPTO_DOWN_REF:
   56|   165k|{
   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|   165k|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|   165k|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 82.7k, False: 82.7k]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|   165k|#endif
   68|   165k|    return 1;
   69|   165k|}
ossl_core_bio.c:CRYPTO_FREE_REF:
  286|  82.7k|{
  287|  82.7k|}
ossl_core_bio.c:CRYPTO_NEW_REF:
  280|  82.7k|{
  281|  82.7k|    refcnt->val = n;
  282|  82.7k|    return 1;
  283|  82.7k|}
ecx_key.c:CRYPTO_NEW_REF:
  280|    684|{
  281|    684|    refcnt->val = n;
  282|    684|    return 1;
  283|    684|}
ecx_key.c:CRYPTO_FREE_REF:
  286|    684|{
  287|    684|}
ecx_key.c:CRYPTO_DOWN_REF:
   56|    684|{
   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|    684|    *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_release) - 1;
   65|    684|    if (*ret == 0)
  ------------------
  |  Branch (65:9): [True: 684, False: 0]
  ------------------
   66|       |        atomic_thread_fence(memory_order_acquire);
   67|    684|#endif
   68|    684|    return 1;
   69|    684|}
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|    684|    {                                                                \
   52|    684|        type r;                                                      \
   53|    684|                                                                     \
   54|    684|        if (!__builtin_add_overflow(a, b, &r))                       \
  ------------------
  |  Branch (54:13): [True: 684, False: 0]
  ------------------
   55|    684|            return r;                                                \
   56|    684|        *err |= 1;                                                   \
   57|      0|        return a + b;                                                \
   58|    684|    }
array_alloc.c:safe_mul_size_t:
  151|  2.19M|    {                                                                \
  152|  2.19M|        type r;                                                      \
  153|  2.19M|                                                                     \
  154|  2.19M|        if (!__builtin_mul_overflow(a, b, &r))                       \
  ------------------
  |  Branch (154:13): [True: 2.19M, False: 0]
  ------------------
  155|  2.19M|            return r;                                                \
  156|  2.19M|        *err |= 1;                                                   \
  157|      0|        return a * b;                                                \
  158|  2.19M|    }
stack.c:safe_muldiv_int:
  324|  53.4k|    {                                                                   \
  325|  53.4k|        int e2 = 0;                                                     \
  326|  53.4k|        type q, r, x, y;                                                \
  327|  53.4k|                                                                        \
  328|  53.4k|        if (c == 0) {                                                   \
  ------------------
  |  Branch (328:13): [True: 0, False: 53.4k]
  ------------------
  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|  53.4k|        x = safe_mul_##type_name(a, b, &e2);                            \
  333|  53.4k|        if (!e2)                                                        \
  ------------------
  |  Branch (333:13): [True: 53.4k, False: 0]
  ------------------
  334|  53.4k|            return safe_div_##type_name(x, c, err);                     \
  335|  53.4k|        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|  53.4k|    }
stack.c:safe_mul_int:
  138|  53.4k|    {                                                                \
  139|  53.4k|        type r;                                                      \
  140|  53.4k|                                                                     \
  141|  53.4k|        if (!__builtin_mul_overflow(a, b, &r))                       \
  ------------------
  |  Branch (141:13): [True: 53.4k, False: 0]
  ------------------
  142|  53.4k|            return r;                                                \
  143|  53.4k|        *err |= 1;                                                   \
  144|      0|        return (a < 0) ^ (b < 0) ? min : max;                        \
  ------------------
  |  Branch (144:16): [True: 0, False: 0]
  ------------------
  145|  53.4k|    }
stack.c:safe_div_int:
  201|  53.4k|    {                                                                \
  202|  53.4k|        if (b == 0) {                                                \
  ------------------
  |  Branch (202:13): [True: 0, False: 53.4k]
  ------------------
  203|      0|            *err |= 1;                                               \
  204|      0|            return a < 0 ? min : max;                                \
  ------------------
  |  Branch (204:20): [True: 0, False: 0]
  ------------------
  205|      0|        }                                                            \
  206|  53.4k|        if (b == -1 && a == min) {                                   \
  ------------------
  |  Branch (206:13): [True: 0, False: 53.4k]
  |  Branch (206:24): [True: 0, False: 0]
  ------------------
  207|      0|            *err |= 1;                                               \
  208|      0|            return max;                                              \
  209|      0|        }                                                            \
  210|  53.4k|        return a / b;                                                \
  211|  53.4k|    }

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|    }                                \
err.c:do_err_strings_init_ossl_:
   73|      2|    {                                \
   74|      2|        init##_ossl_ret_ = init();   \
   75|      2|    }                                \
context.c:default_context_do_thread_key_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_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|    }                                \
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:
  160|    684|{
  161|    684|    OSSL_TIME r;
  162|    684|    int err = 0;
  163|       |
  164|    684|    r.t = safe_add_time(a.t, b.t, &err);
  165|    684|    return err ? ossl_time_infinite() : r;
  ------------------
  |  Branch (165:12): [True: 0, False: 684]
  ------------------
  166|    684|}
ssl_sess.c:ossl_ticks2time:
   58|    684|{
   59|    684|    OSSL_TIME r;
   60|       |
   61|    684|    r.t = ticks;
   62|    684|    return r;
   63|    684|}
ssl_sess.c:ossl_time_is_zero:
  149|    342|{
  150|    342|    return ossl_time_compare(t, ossl_time_zero()) == 0;
  151|    342|}
ssl_sess.c:ossl_time_compare:
  139|    342|{
  140|    342|    if (a.t > b.t)
  ------------------
  |  Branch (140:9): [True: 342, False: 0]
  ------------------
  141|    342|        return 1;
  142|      0|    if (a.t < b.t)
  ------------------
  |  Branch (142:9): [True: 0, False: 0]
  ------------------
  143|      0|        return -1;
  144|      0|    return 0;
  145|      0|}
ssl_sess.c:ossl_time_zero:
   76|    342|{
   77|    342|    return ossl_ticks2time(0);
   78|    342|}
ssl_sess.c:ossl_time_from_time_t:
  129|    347|{
  130|    347|    OSSL_TIME ot;
  131|       |
  132|    347|    ot.t = t;
  133|    347|    ot.t *= OSSL_TIME_SECOND;
  ------------------
  |  |   31|    347|#define OSSL_TIME_SECOND ((uint64_t)1000000000)
  ------------------
  134|    347|    return ot;
  135|    347|}
t1_lib.c:ossl_ticks2time:
   58|    347|{
   59|    347|    OSSL_TIME r;
   60|       |
   61|    347|    r.t = ticks;
   62|    347|    return r;
   63|    347|}

extensions_clnt.c:is_ecdhe_group:
   76|  2.73k|{
   77|       |    /* This includes the usual EC groups, and also ECX, GOST ... */
   78|  2.73k|    return group_id < OSSL_TLS_GROUP_ID_FFDHE_START;
  ------------------
  |  |   72|  2.73k|#define OSSL_TLS_GROUP_ID_FFDHE_START 0x0100 /* inclusive */
  ------------------
   79|  2.73k|}
extensions_clnt.c:is_ffdhe_group:
   82|  3.42k|{
   83|  3.42k|    return group_id >= OSSL_TLS_GROUP_ID_FFDHE_START
  ------------------
  |  |   72|  6.84k|#define OSSL_TLS_GROUP_ID_FFDHE_START 0x0100 /* inclusive */
  ------------------
  |  Branch (83:12): [True: 1.36k, False: 2.05k]
  ------------------
   84|  1.36k|        && group_id <= OSSL_TLS_GROUP_ID_FFDHE_END;
  ------------------
  |  |   73|  1.36k|#define OSSL_TLS_GROUP_ID_FFDHE_END 0x01FF /* inclusive */
  ------------------
  |  Branch (84:12): [True: 342, False: 1.02k]
  ------------------
   85|  3.42k|}

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

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

ml_kem.c:OPENSSL_store_u64_le:
  160|  98.4k|{
  161|  98.4k|#ifdef OSSL_HTOLE64
  162|  98.4k|    uint64_t t = OSSL_HTOLE64(val);
  ------------------
  |  |   52|  98.4k|#define OSSL_HTOLE64(x) htole64(x)
  ------------------
  163|       |
  164|  98.4k|    memcpy(out, (unsigned char *)&t, 8);
  165|  98.4k|    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|  98.4k|}

tls_common.c:OSSL_FUNC_rlayer_skip_early_data:
   60|  2.07k|    {                                                  \
   61|  2.07k|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|  2.07k|    }
tls_common.c:OSSL_FUNC_rlayer_security:
   60|  2.07k|    {                                                  \
   61|  2.07k|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|  2.07k|    }
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|     30|    {                                                  \
   61|     30|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     30|    }
digest.c:OSSL_FUNC_digest_init:
   60|     30|    {                                                  \
   61|     30|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     30|    }
digest.c:OSSL_FUNC_digest_update:
   60|     30|    {                                                  \
   61|     30|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     30|    }
digest.c:OSSL_FUNC_digest_final:
   60|     30|    {                                                  \
   61|     30|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     30|    }
digest.c:OSSL_FUNC_digest_squeeze:
   60|      6|    {                                                  \
   61|      6|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      6|    }
digest.c:OSSL_FUNC_digest_freectx:
   60|     30|    {                                                  \
   61|     30|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     30|    }
digest.c:OSSL_FUNC_digest_dupctx:
   60|     30|    {                                                  \
   61|     30|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     30|    }
digest.c:OSSL_FUNC_digest_get_params:
   60|     30|    {                                                  \
   61|     30|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     30|    }
digest.c:OSSL_FUNC_digest_set_ctx_params:
   60|     11|    {                                                  \
   61|     11|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     11|    }
digest.c:OSSL_FUNC_digest_get_ctx_params:
   60|      9|    {                                                  \
   61|      9|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      9|    }
digest.c:OSSL_FUNC_digest_gettable_params:
   60|     30|    {                                                  \
   61|     30|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     30|    }
digest.c:OSSL_FUNC_digest_settable_ctx_params:
   60|     11|    {                                                  \
   61|     11|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     11|    }
digest.c:OSSL_FUNC_digest_gettable_ctx_params:
   60|      9|    {                                                  \
   61|      9|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      9|    }
digest.c:OSSL_FUNC_digest_copyctx:
   60|     27|    {                                                  \
   61|     27|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     27|    }
digest.c:OSSL_FUNC_digest_serialize:
   60|     19|    {                                                  \
   61|     19|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     19|    }
digest.c:OSSL_FUNC_digest_deserialize:
   60|     19|    {                                                  \
   61|     19|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     19|    }
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|     42|    {                                                  \
   61|     42|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     42|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_new_ex:
   60|      6|    {                                                  \
   61|      6|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      6|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_gen_init:
   60|     39|    {                                                  \
   61|     39|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     39|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_gen_set_template:
   60|      6|    {                                                  \
   61|      6|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      6|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_gen_set_params:
   60|     39|    {                                                  \
   61|     39|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     39|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_gen_settable_params:
   60|     39|    {                                                  \
   61|     39|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     39|    }
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|     39|    {                                                  \
   61|     39|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     39|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_gen_cleanup:
   60|     39|    {                                                  \
   61|     39|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     39|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_free:
   60|     42|    {                                                  \
   61|     42|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     42|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_load:
   60|     30|    {                                                  \
   61|     30|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     30|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_get_params:
   60|     39|    {                                                  \
   61|     39|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     39|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_gettable_params:
   60|     39|    {                                                  \
   61|     39|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     39|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_set_params:
   60|     21|    {                                                  \
   61|     21|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     21|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_settable_params:
   60|     21|    {                                                  \
   61|     21|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     21|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_query_operation_name:
   60|      5|    {                                                  \
   61|      5|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|      5|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_has:
   60|     42|    {                                                  \
   61|     42|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     42|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_dup:
   60|     35|    {                                                  \
   61|     35|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     35|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_validate:
   60|     30|    {                                                  \
   61|     30|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     30|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_match:
   60|     39|    {                                                  \
   61|     39|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     39|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_import:
   60|     39|    {                                                  \
   61|     39|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     39|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_import_types:
   60|     39|    {                                                  \
   61|     39|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     39|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_export:
   60|     39|    {                                                  \
   61|     39|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     39|    }
keymgmt_meth.c:OSSL_FUNC_keymgmt_export_types:
   60|     39|    {                                                  \
   61|     39|        return (OSSL_FUNC_##name##_fn *)opf->function; \
   62|     39|    }
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:
  239|      2|{
  240|      2|    if (ERR_SYSTEM_ERROR(errcode))
  ------------------
  |  |  222|      2|#define ERR_SYSTEM_ERROR(errcode) (((errcode) & ERR_SYSTEM_FLAG) != 0)
  |  |  ------------------
  |  |  |  |  201|      2|#define ERR_SYSTEM_FLAG ((unsigned int)INT_MAX + 1)
  |  |  ------------------
  |  |  |  Branch (222:35): [True: 0, False: 2]
  |  |  ------------------
  ------------------
  241|      0|        return errcode & ERR_SYSTEM_MASK;
  ------------------
  |  |  202|      0|#define ERR_SYSTEM_MASK ((unsigned int)INT_MAX)
  ------------------
  242|      2|    return errcode & ERR_REASON_MASK;
  ------------------
  |  |  213|      2|#define ERR_REASON_MASK 0X7FFFFF
  ------------------
  243|      2|}
err.c:ERR_GET_LIB:
  225|  9.26k|{
  226|  9.26k|    if (ERR_SYSTEM_ERROR(errcode))
  ------------------
  |  |  222|  9.26k|#define ERR_SYSTEM_ERROR(errcode) (((errcode) & ERR_SYSTEM_FLAG) != 0)
  |  |  ------------------
  |  |  |  |  201|  9.26k|#define ERR_SYSTEM_FLAG ((unsigned int)INT_MAX + 1)
  |  |  ------------------
  |  |  |  Branch (222:35): [True: 0, False: 9.26k]
  |  |  ------------------
  ------------------
  227|      0|        return ERR_LIB_SYS;
  ------------------
  |  |   55|      0|#define ERR_LIB_SYS 2
  ------------------
  228|  9.26k|    return (errcode >> ERR_LIB_OFFSET) & ERR_LIB_MASK;
  ------------------
  |  |  209|  9.26k|#define ERR_LIB_OFFSET 23L
  ------------------
                  return (errcode >> ERR_LIB_OFFSET) & ERR_LIB_MASK;
  ------------------
  |  |  210|  9.26k|#define ERR_LIB_MASK 0xFF
  ------------------
  229|  9.26k|}
err.c:ERR_GET_REASON:
  239|     69|{
  240|     69|    if (ERR_SYSTEM_ERROR(errcode))
  ------------------
  |  |  222|     69|#define ERR_SYSTEM_ERROR(errcode) (((errcode) & ERR_SYSTEM_FLAG) != 0)
  |  |  ------------------
  |  |  |  |  201|     69|#define ERR_SYSTEM_FLAG ((unsigned int)INT_MAX + 1)
  |  |  ------------------
  |  |  |  Branch (222:35): [True: 0, False: 69]
  |  |  ------------------
  ------------------
  241|      0|        return errcode & ERR_SYSTEM_MASK;
  ------------------
  |  |  202|      0|#define ERR_SYSTEM_MASK ((unsigned int)INT_MAX)
  ------------------
  242|     69|    return errcode & ERR_REASON_MASK;
  ------------------
  |  |  213|     69|#define ERR_REASON_MASK 0X7FFFFF
  ------------------
  243|     69|}
pem_info.c:ERR_GET_REASON:
  239|    342|{
  240|    342|    if (ERR_SYSTEM_ERROR(errcode))
  ------------------
  |  |  222|    342|#define ERR_SYSTEM_ERROR(errcode) (((errcode) & ERR_SYSTEM_FLAG) != 0)
  |  |  ------------------
  |  |  |  |  201|    342|#define ERR_SYSTEM_FLAG ((unsigned int)INT_MAX + 1)
  |  |  ------------------
  |  |  |  Branch (222:35): [True: 0, False: 342]
  |  |  ------------------
  ------------------
  241|      0|        return errcode & ERR_SYSTEM_MASK;
  ------------------
  |  |  202|      0|#define ERR_SYSTEM_MASK ((unsigned int)INT_MAX)
  ------------------
  242|    342|    return errcode & ERR_REASON_MASK;
  ------------------
  |  |  213|    342|#define ERR_REASON_MASK 0X7FFFFF
  ------------------
  243|    342|}
a_d2i_fp.c:ERR_GET_REASON:
  239|  82.7k|{
  240|  82.7k|    if (ERR_SYSTEM_ERROR(errcode))
  ------------------
  |  |  222|  82.7k|#define ERR_SYSTEM_ERROR(errcode) (((errcode) & ERR_SYSTEM_FLAG) != 0)
  |  |  ------------------
  |  |  |  |  201|  82.7k|#define ERR_SYSTEM_FLAG ((unsigned int)INT_MAX + 1)
  |  |  ------------------
  |  |  |  Branch (222:35): [True: 0, False: 82.7k]
  |  |  ------------------
  ------------------
  241|      0|        return errcode & ERR_SYSTEM_MASK;
  ------------------
  |  |  202|      0|#define ERR_SYSTEM_MASK ((unsigned int)INT_MAX)
  ------------------
  242|  82.7k|    return errcode & ERR_REASON_MASK;
  ------------------
  |  |  213|  82.7k|#define ERR_REASON_MASK 0X7FFFFF
  ------------------
  243|  82.7k|}
conf_def.c:ERR_GET_REASON:
  239|      2|{
  240|      2|    if (ERR_SYSTEM_ERROR(errcode))
  ------------------
  |  |  222|      2|#define ERR_SYSTEM_ERROR(errcode) (((errcode) & ERR_SYSTEM_FLAG) != 0)
  |  |  ------------------
  |  |  |  |  201|      2|#define ERR_SYSTEM_FLAG ((unsigned int)INT_MAX + 1)
  |  |  ------------------
  |  |  |  Branch (222:35): [True: 0, False: 2]
  |  |  ------------------
  ------------------
  241|      0|        return errcode & ERR_SYSTEM_MASK;
  ------------------
  |  |  202|      0|#define ERR_SYSTEM_MASK ((unsigned int)INT_MAX)
  ------------------
  242|      2|    return errcode & ERR_REASON_MASK;
  ------------------
  |  |  213|      2|#define ERR_REASON_MASK 0X7FFFFF
  ------------------
  243|      2|}

ssl_lib.c:lh_SSL_SESSION_new:
  334|    347|    {                                                                                                                      \
  335|    347|        return (LHASH_OF(type) *)OPENSSL_LH_set_thunks(OPENSSL_LH_new((OPENSSL_LH_HASHFUNC)hfn, (OPENSSL_LH_COMPFUNC)cfn), \
  336|    347|            lh_##type##_hfn_thunk, lh_##type##_cfn_thunk,                                                                  \
  337|    347|            lh_##type##_doall_thunk,                                                                                       \
  338|    347|            lh_##type##_doall_arg_thunk);                                                                                  \
  339|    347|    }                                                                                                                      \
ssl_lib.c:lh_SSL_SESSION_free:
  271|    347|    {                                                                                                                      \
  272|    347|        OPENSSL_LH_free((OPENSSL_LHASH *)lh);                                                                              \
  273|    347|    }                                                                                                                      \
ssl_sess.c:lh_SSL_SESSION_get_down_load:
  306|    347|    {                                                                                                                      \
  307|    347|        return OPENSSL_LH_get_down_load((OPENSSL_LHASH *)lh);                                                              \
  308|    347|    }                                                                                                                      \
ssl_sess.c:lh_SSL_SESSION_set_down_load:
  311|    694|    {                                                                                                                      \
  312|    694|        OPENSSL_LH_set_down_load((OPENSSL_LHASH *)lh, dl);                                                                 \
  313|    694|    }                                                                                                                      \
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|  41.3k|    {                                                                                                                      \
  261|  41.3k|        unsigned long (*hfn_conv)(const type *) = (unsigned long (*)(const type *))hfn;                                    \
  262|  41.3k|        return hfn_conv((const type *)data);                                                                               \
  263|  41.3k|    }                                                                                                                      \
decoder_pkey.c:lh_DECODER_CACHE_ENTRY_cfn_thunk:
  265|  41.3k|    {                                                                                                                      \
  266|  41.3k|        int (*cfn_conv)(const type *, const type *) = (int (*)(const type *, const type *))cfn;                            \
  267|  41.3k|        return cfn_conv((const type *)da, (const type *)db);                                                               \
  268|  41.3k|    }                                                                                                                      \
decoder_pkey.c:lh_DECODER_CACHE_ENTRY_retrieve:
  291|  41.3k|    {                                                                                                                      \
  292|  41.3k|        return (type *)OPENSSL_LH_retrieve((OPENSSL_LHASH *)lh, d);                                                        \
  293|  41.3k|    }                                                                                                                      \
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.19k|    {                                                                                                          \
  209|  9.19k|        return (OPENSSL_LHASH *)lh;                                                                            \
  210|  9.19k|    }                                                                                                          \
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.19k|    {                                                                                                          \
  173|  9.19k|        unsigned long (*hfn_conv)(const type *) = (unsigned long (*)(const type *))hfn;                        \
  174|  9.19k|        return hfn_conv((const type *)data);                                                                   \
  175|  9.19k|    }                                                                                                          \
err.c:lh_ERR_STRING_DATA_comp_thunk:
  177|  6.02k|    {                                                                                                          \
  178|  6.02k|        int (*cfn_conv)(const type *, const type *) = (int (*)(const type *, const type *))cfn;                \
  179|  6.02k|        return cfn_conv((const type *)da, (const type *)db);                                                   \
  180|  6.02k|    }                                                                                                          \
err.c:ossl_check_ERR_STRING_DATA_lh_plain_type:
  193|  9.05k|    {                                                                                                          \
  194|  9.05k|        return ptr;                                                                                            \
  195|  9.05k|    }                                                                                                          \
err.c:ossl_check_const_ERR_STRING_DATA_lh_plain_type:
  198|    138|    {                                                                                                          \
  199|    138|        return ptr;                                                                                            \
  200|    138|    }                                                                                                          \
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.50k|    {                                                                                                                      \
  261|  1.50k|        unsigned long (*hfn_conv)(const type *) = (unsigned long (*)(const type *))hfn;                                    \
  262|  1.50k|        return hfn_conv((const type *)data);                                                                               \
  263|  1.50k|    }                                                                                                                      \
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|    658|    {                                                                                                                      \
  292|    658|        return (type *)OPENSSL_LH_retrieve((OPENSSL_LHASH *)lh, d);                                                        \
  293|    658|    }                                                                                                                      \
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|  11.1k|    {                                                                                                                      \
  261|  11.1k|        unsigned long (*hfn_conv)(const type *) = (unsigned long (*)(const type *))hfn;                                    \
  262|  11.1k|        return hfn_conv((const type *)data);                                                                               \
  263|  11.1k|    }                                                                                                                      \
obj_dat.c:lh_ADDED_OBJ_retrieve:
  291|  11.1k|    {                                                                                                                      \
  292|  11.1k|        return (type *)OPENSSL_LH_retrieve((OPENSSL_LHASH *)lh, d);                                                        \
  293|  11.1k|    }                                                                                                                      \
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|    381|    {                                                                                                                      \
  261|    381|        unsigned long (*hfn_conv)(const type *) = (unsigned long (*)(const type *))hfn;                                    \
  262|    381|        return hfn_conv((const type *)data);                                                                               \
  263|    381|    }                                                                                                                      \
defn_cache.c:lh_PROPERTY_DEFN_ELEM_cfn_thunk:
  265|    333|    {                                                                                                                      \
  266|    333|        int (*cfn_conv)(const type *, const type *) = (int (*)(const type *, const type *))cfn;                            \
  267|    333|        return cfn_conv((const type *)da, (const type *)db);                                                               \
  268|    333|    }                                                                                                                      \
defn_cache.c:lh_PROPERTY_DEFN_ELEM_retrieve:
  291|    365|    {                                                                                                                      \
  292|    365|        return (type *)OPENSSL_LH_retrieve((OPENSSL_LHASH *)lh, d);                                                        \
  293|    365|    }                                                                                                                      \
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_new:
  334|    303|    {                                                                                                                      \
  335|    303|        return (LHASH_OF(type) *)OPENSSL_LH_set_thunks(OPENSSL_LH_new((OPENSSL_LH_HASHFUNC)hfn, (OPENSSL_LH_COMPFUNC)cfn), \
  336|    303|            lh_##type##_hfn_thunk, lh_##type##_cfn_thunk,                                                                  \
  337|    303|            lh_##type##_doall_thunk,                                                                                       \
  338|    303|            lh_##type##_doall_arg_thunk);                                                                                  \
  339|    303|    }                                                                                                                      \
property.c:lh_QUERY_hfn_thunk:
  260|  32.9k|    {                                                                                                                      \
  261|  32.9k|        unsigned long (*hfn_conv)(const type *) = (unsigned long (*)(const type *))hfn;                                    \
  262|  32.9k|        return hfn_conv((const type *)data);                                                                               \
  263|  32.9k|    }                                                                                                                      \
property.c:lh_QUERY_cfn_thunk:
  265|  32.8k|    {                                                                                                                      \
  266|  32.8k|        int (*cfn_conv)(const type *, const type *) = (int (*)(const type *, const type *))cfn;                            \
  267|  32.8k|        return cfn_conv((const type *)da, (const type *)db);                                                               \
  268|  32.8k|    }                                                                                                                      \
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_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|  32.9k|    {                                                                                                                      \
  292|  32.9k|        return (type *)OPENSSL_LH_retrieve((OPENSSL_LHASH *)lh, d);                                                        \
  293|  32.9k|    }                                                                                                                      \
property.c:lh_QUERY_insert:
  281|     55|    {                                                                                                                      \
  282|     55|        return (type *)OPENSSL_LH_insert((OPENSSL_LHASH *)lh, d);                                                          \
  283|     55|    }                                                                                                                      \
property.c:lh_QUERY_error:
  296|     55|    {                                                                                                                      \
  297|     55|        return OPENSSL_LH_error((OPENSSL_LHASH *)lh);                                                                      \
  298|     55|    }                                                                                                                      \
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|    }                                                                                                                      \

obj_dat.c:OBJ_bsearch_ln:
  128|  8.04k|    {                                                                      \
  129|  8.04k|        return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2),        \
  130|  8.04k|            nm##_cmp_BSEARCH_CMP_FN);                                      \
  131|  8.04k|    }                                                                      \
obj_dat.c:ln_cmp_BSEARCH_CMP_FN:
  122|  77.0k|    {                                                                      \
  123|  77.0k|        type1 const *a = a_;                                               \
  124|  77.0k|        type2 const *b = b_;                                               \
  125|  77.0k|        return nm##_cmp(a, b);                                             \
  126|  77.0k|    }                                                                      \
obj_dat.c:OBJ_bsearch_sn:
  128|  11.8k|    {                                                                      \
  129|  11.8k|        return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2),        \
  130|  11.8k|            nm##_cmp_BSEARCH_CMP_FN);                                      \
  131|  11.8k|    }                                                                      \
obj_dat.c:sn_cmp_BSEARCH_CMP_FN:
  122|   124k|    {                                                                      \
  123|   124k|        type1 const *a = a_;                                               \
  124|   124k|        type2 const *b = b_;                                               \
  125|   124k|        return nm##_cmp(a, b);                                             \
  126|   124k|    }                                                                      \
obj_dat.c:OBJ_bsearch_obj:
  128|   681k|    {                                                                      \
  129|   681k|        return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2),        \
  130|   681k|            nm##_cmp_BSEARCH_CMP_FN);                                      \
  131|   681k|    }                                                                      \
obj_dat.c:obj_cmp_BSEARCH_CMP_FN:
  122|  6.58M|    {                                                                      \
  123|  6.58M|        type1 const *a = a_;                                               \
  124|  6.58M|        type2 const *b = b_;                                               \
  125|  6.58M|        return nm##_cmp(a, b);                                             \
  126|  6.58M|    }                                                                      \
obj_xref.c:OBJ_bsearch_sig:
  128|  1.38k|    {                                                                      \
  129|  1.38k|        return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2),        \
  130|  1.38k|            nm##_cmp_BSEARCH_CMP_FN);                                      \
  131|  1.38k|    }                                                                      \
obj_xref.c:sig_cmp_BSEARCH_CMP_FN:
  122|  8.32k|    {                                                                      \
  123|  8.32k|        type1 const *a = a_;                                               \
  124|  8.32k|        type2 const *b = b_;                                               \
  125|  8.32k|        return nm##_cmp(a, b);                                             \
  126|  8.32k|    }                                                                      \
ameth_lib.c:OBJ_bsearch_ameth:
  128|   100k|    {                                                                      \
  129|   100k|        return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2),        \
  130|   100k|            nm##_cmp_BSEARCH_CMP_FN);                                      \
  131|   100k|    }                                                                      \
ameth_lib.c:ameth_cmp_BSEARCH_CMP_FN:
  122|   277k|    {                                                                      \
  123|   277k|        type1 const *a = a_;                                               \
  124|   277k|        type2 const *b = b_;                                               \
  125|   277k|        return nm##_cmp(a, b);                                             \
  126|   277k|    }                                                                      \

s3_lib.c:ossl_check_X509_NAME_sk_type:
   63|  1.73k|    {                                                                                                                    \
   64|  1.73k|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|  1.73k|    }                                                                                                                    \
s3_lib.c:ossl_check_X509_NAME_freefunc_type:
   75|  1.73k|    {                                                                                                                    \
   76|  1.73k|        return (OPENSSL_sk_freefunc)fr;                                                                                  \
   77|  1.73k|    }
ssl_ciph.c:ossl_check_const_SSL_CIPHER_sk_type:
   59|  47.6k|    {                                                                                                                    \
   60|  47.6k|        return (const OPENSSL_STACK *)sk;                                                                                \
   61|  47.6k|    }                                                                                                                    \
ssl_ciph.c:ossl_check_SSL_CIPHER_sk_type:
   63|  23.5k|    {                                                                                                                    \
   64|  23.5k|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|  23.5k|    }                                                                                                                    \
ssl_ciph.c:ossl_check_SSL_CIPHER_type:
   55|  21.8k|    {                                                                                                                    \
   56|  21.8k|        return ptr;                                                                                                      \
   57|  21.8k|    }                                                                                                                    \
ssl_ciph.c:ossl_check_SSL_CIPHER_compfunc_type:
   67|    347|    {                                                                                                                    \
   68|    347|        return (OPENSSL_sk_compfunc)cmp;                                                                                 \
   69|    347|    }                                                                                                                    \
ssl_lib.c:ossl_check_const_SSL_CIPHER_sk_type:
   59|   124k|    {                                                                                                                    \
   60|   124k|        return (const OPENSSL_STACK *)sk;                                                                                \
   61|   124k|    }                                                                                                                    \
ssl_lib.c:sk_danetls_record_pop_free:
  170|    347|    {                                                                                                                      \
  171|    347|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  172|    347|                                                                                                                           \
  173|    347|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  174|    347|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  175|    347|                                                                                                                           \
  176|    347|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  177|    347|    }                                                                                                                      \
ssl_lib.c:ossl_check_SSL_CIPHER_sk_type:
   63|  33.2k|    {                                                                                                                    \
   64|  33.2k|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|  33.2k|    }                                                                                                                    \
ssl_lib.c:ossl_check_X509_EXTENSION_sk_type:
   63|    347|    {                                                                                                                    \
   64|    347|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|    347|    }                                                                                                                    \
ssl_lib.c:ossl_check_X509_EXTENSION_freefunc_type:
   75|    347|    {                                                                                                                    \
   76|    347|        return (OPENSSL_sk_freefunc)fr;                                                                                  \
   77|    347|    }
ssl_lib.c:ossl_check_OCSP_RESPID_sk_type:
   63|    347|    {                                                                                                                    \
   64|    347|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|    347|    }                                                                                                                    \
ssl_lib.c:ossl_check_OCSP_RESPID_freefunc_type:
   75|    347|    {                                                                                                                    \
   76|    347|        return (OPENSSL_sk_freefunc)fr;                                                                                  \
   77|    347|    }
ssl_lib.c:sk_OCSP_RESPONSE_pop_free:
  170|    347|    {                                                                                                                      \
  171|    347|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  172|    347|                                                                                                                           \
  173|    347|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  174|    347|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  175|    347|                                                                                                                           \
  176|    347|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  177|    347|    }                                                                                                                      \
ssl_lib.c:ossl_check_X509_NAME_sk_type:
   63|  1.38k|    {                                                                                                                    \
   64|  1.38k|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|  1.38k|    }                                                                                                                    \
ssl_lib.c:ossl_check_X509_NAME_freefunc_type:
   75|  1.38k|    {                                                                                                                    \
   76|  1.38k|        return (OPENSSL_sk_freefunc)fr;                                                                                  \
   77|  1.38k|    }
ssl_lib.c:ossl_check_SRTP_PROTECTION_PROFILE_sk_type:
   63|    694|    {                                                                                                                    \
   64|    694|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|    694|    }                                                                                                                    \
ssl_lib.c:ossl_check_SSL_CIPHER_type:
   55|  30.7k|    {                                                                                                                    \
   56|  30.7k|        return ptr;                                                                                                      \
   57|  30.7k|    }                                                                                                                    \
ssl_sess.c:sk_SSL_SESSION_new_null:
  115|    347|    {                                                                                                                      \
  116|    347|        OPENSSL_STACK *ret = OPENSSL_sk_new_null();                                                                        \
  117|    347|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  118|    347|                                                                                                                           \
  119|    347|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  120|    347|                                                                                                                           \
  121|    347|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
  122|    347|    }                                                                                                                      \
ssl_sess.c:sk_SSL_SESSION_pop_free:
  170|    347|    {                                                                                                                      \
  171|    347|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  172|    347|                                                                                                                           \
  173|    347|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  174|    347|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  175|    347|                                                                                                                           \
  176|    347|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  177|    347|    }                                                                                                                      \
extensions.c:ossl_check_const_X509_NAME_sk_type:
   59|    342|    {                                                                                                                    \
   60|    342|        return (const OPENSSL_STACK *)sk;                                                                                \
   61|    342|    }                                                                                                                    \
extensions_clnt.c:ossl_check_const_SSL_CIPHER_sk_type:
   59|  3.07k|    {                                                                                                                    \
   60|  3.07k|        return (const OPENSSL_STACK *)sk;                                                                                \
   61|  3.07k|    }                                                                                                                    \
extensions_clnt.c:ossl_check_SSL_CIPHER_sk_type:
   63|  1.02k|    {                                                                                                                    \
   64|  1.02k|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|  1.02k|    }                                                                                                                    \
tasn_dec.c:ossl_check_ASN1_VALUE_sk_type:
   63|   726k|    {                                                                                                                    \
   64|   726k|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|   726k|    }                                                                                                                    \
tasn_dec.c:ossl_check_ASN1_VALUE_type:
   55|   726k|    {                                                                                                                    \
   56|   726k|        return ptr;                                                                                                      \
   57|   726k|    }                                                                                                                    \
tasn_enc.c:sk_const_ASN1_VALUE_num:
   98|  2.04M|    {                                                                                                                      \
   99|  2.04M|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
  100|  2.04M|    }                                                                                                                      \
tasn_enc.c:sk_const_ASN1_VALUE_value:
  102|   878k|    {                                                                                                                      \
  103|   878k|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
  104|   878k|    }                                                                                                                      \
tasn_fre.c:ossl_check_const_ASN1_VALUE_sk_type:
   59|   488k|    {                                                                                                                    \
   60|   488k|        return (const OPENSSL_STACK *)sk;                                                                                \
   61|   488k|    }                                                                                                                    \
tasn_fre.c:ossl_check_ASN1_VALUE_sk_type:
   63|   206k|    {                                                                                                                    \
   64|   206k|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|   206k|    }                                                                                                                    \
ct_log.c:ossl_check_CTLOG_sk_type:
   63|    347|    {                                                                                                                    \
   64|    347|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|    347|    }                                                                                                                    \
ct_log.c:ossl_check_CTLOG_freefunc_type:
   75|    347|    {                                                                                                                    \
   76|    347|        return (OPENSSL_sk_freefunc)fr;                                                                                  \
   77|    347|    }
ct_sct.c:ossl_check_SCT_sk_type:
   63|    347|    {                                                                                                                    \
   64|    347|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|    347|    }                                                                                                                    \
ct_sct.c:ossl_check_SCT_freefunc_type:
   75|    347|    {                                                                                                                    \
   76|    347|        return (OPENSSL_sk_freefunc)fr;                                                                                  \
   77|    347|    }
decoder_lib.c:sk_OSSL_DECODER_INSTANCE_new_null:
  115|      2|    {                                                                                                                      \
  116|      2|        OPENSSL_STACK *ret = OPENSSL_sk_new_null();                                                                        \
  117|      2|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  118|      2|                                                                                                                           \
  119|      2|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  120|      2|                                                                                                                           \
  121|      2|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
  122|      2|    }                                                                                                                      \
decoder_lib.c:sk_OSSL_DECODER_INSTANCE_push:
  154|     11|    {                                                                                                                      \
  155|     11|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  156|     11|    }                                                                                                                      \
decoder_lib.c:sk_OSSL_DECODER_new_null:
  115|      2|    {                                                                                                                      \
  116|      2|        OPENSSL_STACK *ret = OPENSSL_sk_new_null();                                                                        \
  117|      2|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  118|      2|                                                                                                                           \
  119|      2|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  120|      2|                                                                                                                           \
  121|      2|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
  122|      2|    }                                                                                                                      \
decoder_lib.c:sk_OSSL_DECODER_freefunc_thunk:
   85|    152|    {                                                                                                                      \
   86|    152|        sk_##t1##_freefunc freefunc = (sk_##t1##_freefunc)freefunc_arg;                                                    \
   87|    152|        freefunc((t3 *)ptr);                                                                                               \
   88|    152|    }                                                                                                                      \
decoder_lib.c:sk_OSSL_DECODER_push:
  154|    152|    {                                                                                                                      \
  155|    152|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  156|    152|    }                                                                                                                      \
decoder_lib.c:sk_OSSL_DECODER_num:
   98|      2|    {                                                                                                                      \
   99|      2|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
  100|      2|    }                                                                                                                      \
decoder_lib.c:sk_OSSL_DECODER_INSTANCE_num:
   98|  82.7k|    {                                                                                                                      \
   99|  82.7k|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
  100|  82.7k|    }                                                                                                                      \
decoder_lib.c:sk_OSSL_DECODER_INSTANCE_set_cmp_func:
  220|      4|    {                                                                                                                      \
  221|      4|        return (sk_##t1##_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare);             \
  222|      4|    }
decoder_lib.c:sk_OSSL_DECODER_INSTANCE_value:
  102|   317k|    {                                                                                                                      \
  103|   317k|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
  104|   317k|    }                                                                                                                      \
decoder_lib.c:sk_OSSL_DECODER_INSTANCE_sort:
  200|      2|    {                                                                                                                      \
  201|      2|        OPENSSL_sk_sort((OPENSSL_STACK *)sk);                                                                              \
  202|      2|    }                                                                                                                      \
decoder_lib.c:sk_OSSL_DECODER_value:
  102|  1.67k|    {                                                                                                                      \
  103|  1.67k|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
  104|  1.67k|    }                                                                                                                      \
decoder_lib.c:sk_OSSL_DECODER_pop_free:
  170|      2|    {                                                                                                                      \
  171|      2|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  172|      2|                                                                                                                           \
  173|      2|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  174|      2|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  175|      2|                                                                                                                           \
  176|      2|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  177|      2|    }                                                                                                                      \
decoder_meth.c:sk_OSSL_DECODER_INSTANCE_pop_free:
  170|  41.3k|    {                                                                                                                      \
  171|  41.3k|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  172|  41.3k|                                                                                                                           \
  173|  41.3k|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  174|  41.3k|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  175|  41.3k|                                                                                                                           \
  176|  41.3k|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  177|  41.3k|    }                                                                                                                      \
decoder_meth.c:sk_OSSL_DECODER_INSTANCE_freefunc_thunk:
   85|   234k|    {                                                                                                                      \
   86|   234k|        sk_##t1##_freefunc freefunc = (sk_##t1##_freefunc)freefunc_arg;                                                    \
   87|   234k|        freefunc((t3 *)ptr);                                                                                               \
   88|   234k|    }                                                                                                                      \
decoder_pkey.c:sk_EVP_KEYMGMT_new_null:
  115|      2|    {                                                                                                                      \
  116|      2|        OPENSSL_STACK *ret = OPENSSL_sk_new_null();                                                                        \
  117|      2|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  118|      2|                                                                                                                           \
  119|      2|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  120|      2|                                                                                                                           \
  121|      2|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
  122|      2|    }                                                                                                                      \
decoder_pkey.c:sk_EVP_KEYMGMT_freefunc_thunk:
   85|  54.7k|    {                                                                                                                      \
   86|  54.7k|        sk_##t1##_freefunc freefunc = (sk_##t1##_freefunc)freefunc_arg;                                                    \
   87|  54.7k|        freefunc((t3 *)ptr);                                                                                               \
   88|  54.7k|    }                                                                                                                      \
decoder_pkey.c:sk_EVP_KEYMGMT_push:
  154|      3|    {                                                                                                                      \
  155|      3|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  156|      3|    }                                                                                                                      \
decoder_pkey.c:sk_EVP_KEYMGMT_num:
   98|  41.4k|    {                                                                                                                      \
   99|  41.4k|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
  100|  41.4k|    }                                                                                                                      \
decoder_pkey.c:sk_EVP_KEYMGMT_value:
  102|  41.4k|    {                                                                                                                      \
  103|  41.4k|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
  104|  41.4k|    }                                                                                                                      \
decoder_pkey.c:sk_EVP_KEYMGMT_pop_free:
  170|  41.3k|    {                                                                                                                      \
  171|  41.3k|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  172|  41.3k|                                                                                                                           \
  173|  41.3k|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  174|  41.3k|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  175|  41.3k|                                                                                                                           \
  176|  41.3k|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  177|  41.3k|    }                                                                                                                      \
decoder_pkey.c:sk_OSSL_DECODER_INSTANCE_deep_copy:
  214|  41.3k|    {                                                                                                                      \
  215|  41.3k|        return (STACK_OF(t1) *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk,                                             \
  216|  41.3k|            (OPENSSL_sk_copyfunc)copyfunc,                                                                                 \
  217|  41.3k|            (OPENSSL_sk_freefunc)freefunc);                                                                                \
  218|  41.3k|    }                                                                                                                      \
decoder_pkey.c:sk_EVP_KEYMGMT_deep_copy:
  214|  41.3k|    {                                                                                                                      \
  215|  41.3k|        return (STACK_OF(t1) *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk,                                             \
  216|  41.3k|            (OPENSSL_sk_copyfunc)copyfunc,                                                                                 \
  217|  41.3k|            (OPENSSL_sk_freefunc)freefunc);                                                                                \
  218|  41.3k|    }                                                                                                                      \
keymgmt_lib.c:sk_OP_CACHE_ELEM_pop_free:
  170|  84.4k|    {                                                                                                                      \
  171|  84.4k|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  172|  84.4k|                                                                                                                           \
  173|  84.4k|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  174|  84.4k|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  175|  84.4k|                                                                                                                           \
  176|  84.4k|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  177|  84.4k|    }                                                                                                                      \
p_lib.c:ossl_check_X509_ATTRIBUTE_sk_type:
   63|  84.4k|    {                                                                                                                    \
   64|  84.4k|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|  84.4k|    }                                                                                                                    \
p_lib.c:ossl_check_X509_ATTRIBUTE_freefunc_type:
   75|  84.4k|    {                                                                                                                    \
   76|  84.4k|        return (OPENSSL_sk_freefunc)fr;                                                                                  \
   77|  84.4k|    }
core_namemap.c:sk_NAMES_value:
  102|  43.2k|    {                                                                                                                      \
  103|  43.2k|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
  104|  43.2k|    }                                                                                                                      \
core_namemap.c:ossl_check_const_OPENSSL_STRING_sk_type:
   59|   397k|    {                                                                                                                    \
   60|   397k|        return (const OPENSSL_STACK *)sk;                                                                                \
   61|   397k|    }                                                                                                                    \
core_namemap.c:ossl_check_OPENSSL_STRING_sk_type:
   63|  43.5k|    {                                                                                                                    \
   64|  43.5k|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|  43.5k|    }                                                                                                                    \
core_namemap.c:ossl_check_OPENSSL_STRING_type:
   55|    599|    {                                                                                                                    \
   56|    599|        return ptr;                                                                                                      \
   57|    599|    }                                                                                                                    \
core_namemap.c:sk_NAMES_push:
  154|    260|    {                                                                                                                      \
  155|    260|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  156|    260|    }                                                                                                                      \
core_namemap.c:sk_NAMES_num:
   98|    260|    {                                                                                                                      \
   99|    260|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
  100|    260|    }                                                                                                                      \
core_namemap.c:sk_NAMES_new_null:
  115|      2|    {                                                                                                                      \
  116|      2|        OPENSSL_STACK *ret = OPENSSL_sk_new_null();                                                                        \
  117|      2|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  118|      2|                                                                                                                           \
  119|      2|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  120|      2|                                                                                                                           \
  121|      2|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
  122|      2|    }                                                                                                                      \
ex_data.c:sk_EX_CALLBACK_num:
   98|   922k|    {                                                                                                                      \
   99|   922k|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
  100|   922k|    }                                                                                                                      \
ex_data.c:sk_EX_CALLBACK_new_null:
  115|      1|    {                                                                                                                      \
  116|      1|        OPENSSL_STACK *ret = OPENSSL_sk_new_null();                                                                        \
  117|      1|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  118|      1|                                                                                                                           \
  119|      1|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  120|      1|                                                                                                                           \
  121|      1|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
  122|      1|    }                                                                                                                      \
ex_data.c:sk_EX_CALLBACK_push:
  154|      2|    {                                                                                                                      \
  155|      2|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  156|      2|    }                                                                                                                      \
ex_data.c:sk_EX_CALLBACK_set:
  183|      1|    {                                                                                                                      \
  184|      1|        return (t2 *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr);                                          \
  185|      1|    }                                                                                                                      \
ex_data.c:ossl_check_const_void_sk_type:
   59|    347|    {                                                                                                                    \
   60|    347|        return (const OPENSSL_STACK *)sk;                                                                                \
   61|    347|    }                                                                                                                    \
ex_data.c:ossl_check_void_sk_type:
   63|   462k|    {                                                                                                                    \
   64|   462k|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|   462k|    }                                                                                                                    \
ex_data.c:ossl_check_void_type:
   55|    694|    {                                                                                                                    \
   56|    694|        return ptr;                                                                                                      \
   57|    694|    }                                                                                                                    \
initthread.c:sk_THREAD_EVENT_HANDLER_PTR_new_null:
  115|      2|    {                                                                                                                      \
  116|      2|        OPENSSL_STACK *ret = OPENSSL_sk_new_null();                                                                        \
  117|      2|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  118|      2|                                                                                                                           \
  119|      2|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  120|      2|                                                                                                                           \
  121|      2|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
  122|      2|    }                                                                                                                      \
initthread.c:sk_THREAD_EVENT_HANDLER_PTR_push:
  154|      2|    {                                                                                                                      \
  155|      2|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  156|      2|    }                                                                                                                      \
param_build.c:sk_OSSL_PARAM_BLD_DEF_new_null:
  115|    684|    {                                                                                                                      \
  116|    684|        OPENSSL_STACK *ret = OPENSSL_sk_new_null();                                                                        \
  117|    684|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  118|    684|                                                                                                                           \
  119|    684|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  120|    684|                                                                                                                           \
  121|    684|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
  122|    684|    }                                                                                                                      \
param_build.c:sk_OSSL_PARAM_BLD_DEF_pop:
  162|    684|    {                                                                                                                      \
  163|    684|        return (t2 *)OPENSSL_sk_pop((OPENSSL_STACK *)sk);                                                                  \
  164|    684|    }                                                                                                                      \
param_build.c:sk_OSSL_PARAM_BLD_DEF_free:
  137|    684|    {                                                                                                                      \
  138|    684|        OPENSSL_sk_free((OPENSSL_STACK *)sk);                                                                              \
  139|    684|    }                                                                                                                      \
param_build.c:sk_OSSL_PARAM_BLD_DEF_push:
  154|    684|    {                                                                                                                      \
  155|    684|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  156|    684|    }                                                                                                                      \
param_build.c:sk_OSSL_PARAM_BLD_DEF_num:
   98|  2.73k|    {                                                                                                                      \
   99|  2.73k|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
  100|  2.73k|    }                                                                                                                      \
param_build.c:sk_OSSL_PARAM_BLD_DEF_value:
  102|    684|    {                                                                                                                      \
  103|    684|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
  104|    684|    }                                                                                                                      \
provider_core.c:sk_OSSL_PROVIDER_new:
  106|      2|    {                                                                                                                      \
  107|      2|        OPENSSL_STACK *ret = OPENSSL_sk_new((OPENSSL_sk_compfunc)compare);                                                 \
  108|      2|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  109|      2|                                                                                                                           \
  110|      2|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  111|      2|        OPENSSL_sk_set_cmp_thunks(ret, sk_##t1##_cmpfunc_thunk);                                                           \
  112|      2|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
  113|      2|    }                                                                                                                      \
provider_core.c:sk_OSSL_PROVIDER_cmpfunc_thunk:
   90|      3|    {                                                                                                                      \
   91|      3|        int (*realcmp)(const t3 *const *a, const t3 *const *b) = (int (*)(const t3 *const *a, const t3 *const *b))(cmp);   \
   92|      3|        const t3 *const *at = (const t3 *const *)a;                                                                        \
   93|      3|        const t3 *const *bt = (const t3 *const *)b;                                                                        \
   94|      3|                                                                                                                           \
   95|      3|        return realcmp(at, bt);                                                                                            \
   96|      3|    }                                                                                                                      \
provider_core.c:sk_OSSL_PROVIDER_CHILD_CB_new_null:
  115|      2|    {                                                                                                                      \
  116|      2|        OPENSSL_STACK *ret = OPENSSL_sk_new_null();                                                                        \
  117|      2|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  118|      2|                                                                                                                           \
  119|      2|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  120|      2|                                                                                                                           \
  121|      2|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
  122|      2|    }                                                                                                                      \
provider_core.c:sk_OSSL_PROVIDER_is_sorted:
  204|      3|    {                                                                                                                      \
  205|      3|        return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk);                                                            \
  206|      3|    }                                                                                                                      \
provider_core.c:sk_OSSL_PROVIDER_find:
  187|      3|    {                                                                                                                      \
  188|      3|        return OPENSSL_sk_find((const OPENSSL_STACK *)sk, (const void *)ptr);                                              \
  189|      3|    }                                                                                                                      \
provider_core.c:sk_OSSL_PROVIDER_value:
  102|  18.9k|    {                                                                                                                      \
  103|  18.9k|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
  104|  18.9k|    }                                                                                                                      \
provider_core.c:sk_INFOPAIR_deep_copy:
  214|      1|    {                                                                                                                      \
  215|      1|        return (STACK_OF(t1) *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk,                                             \
  216|      1|            (OPENSSL_sk_copyfunc)copyfunc,                                                                                 \
  217|      1|            (OPENSSL_sk_freefunc)freefunc);                                                                                \
  218|      1|    }                                                                                                                      \
provider_core.c:sk_OSSL_PROVIDER_push:
  154|      1|    {                                                                                                                      \
  155|      1|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  156|      1|    }                                                                                                                      \
provider_core.c:sk_INFOPAIR_num:
   98|  1.02k|    {                                                                                                                      \
   99|  1.02k|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
  100|  1.02k|    }                                                                                                                      \
provider_core.c:sk_OSSL_PROVIDER_dup:
  208|  6.30k|    {                                                                                                                      \
  209|  6.30k|        return (STACK_OF(t1) *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk);                                                  \
  210|  6.30k|    }                                                                                                                      \
provider_core.c:sk_OSSL_PROVIDER_num:
   98|  6.30k|    {                                                                                                                      \
   99|  6.30k|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
  100|  6.30k|    }                                                                                                                      \
provider_core.c:sk_OSSL_PROVIDER_free:
  137|  6.30k|    {                                                                                                                      \
  138|  6.30k|        OPENSSL_sk_free((OPENSSL_STACK *)sk);                                                                              \
  139|  6.30k|    }                                                                                                                      \
obj_xref.c:sk_nid_triple_find:
  187|    346|    {                                                                                                                      \
  188|    346|        return OPENSSL_sk_find((const OPENSSL_STACK *)sk, (const void *)ptr);                                              \
  189|    346|    }                                                                                                                      \
obj_xref.c:sk_nid_triple_value:
  102|    346|    {                                                                                                                      \
  103|    346|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
  104|    346|    }                                                                                                                      \
obj_xref.c:sk_nid_triple_new:
  106|      2|    {                                                                                                                      \
  107|      2|        OPENSSL_STACK *ret = OPENSSL_sk_new((OPENSSL_sk_compfunc)compare);                                                 \
  108|      2|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  109|      2|                                                                                                                           \
  110|      2|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  111|      2|        OPENSSL_sk_set_cmp_thunks(ret, sk_##t1##_cmpfunc_thunk);                                                           \
  112|      2|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
  113|      2|    }                                                                                                                      \
obj_xref.c:sk_nid_triple_cmpfunc_thunk:
   90|    346|    {                                                                                                                      \
   91|    346|        int (*realcmp)(const t3 *const *a, const t3 *const *b) = (int (*)(const t3 *const *a, const t3 *const *b))(cmp);   \
   92|    346|        const t3 *const *at = (const t3 *const *)a;                                                                        \
   93|    346|        const t3 *const *bt = (const t3 *const *)b;                                                                        \
   94|    346|                                                                                                                           \
   95|    346|        return realcmp(at, bt);                                                                                            \
   96|    346|    }                                                                                                                      \
obj_xref.c:sk_nid_triple_push:
  154|      2|    {                                                                                                                      \
  155|      2|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  156|      2|    }                                                                                                                      \
obj_xref.c:sk_nid_triple_sort:
  200|      2|    {                                                                                                                      \
  201|      2|        OPENSSL_sk_sort((OPENSSL_STACK *)sk);                                                                              \
  202|      2|    }                                                                                                                      \
pem_info.c:sk_X509_INFO_freefunc_thunk:
   42|  41.3k|    {                                                                                                                    \
   43|  41.3k|        sk_##t1##_freefunc freefunc = (sk_##t1##_freefunc)freefunc_arg;                                                  \
   44|  41.3k|        freefunc((t3 *)ptr);                                                                                             \
   45|  41.3k|    }                                                                                                                    \
pem_info.c:ossl_check_X509_INFO_sk_type:
   63|  41.3k|    {                                                                                                                    \
   64|  41.3k|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|  41.3k|    }                                                                                                                    \
pem_info.c:ossl_check_X509_INFO_type:
   55|  41.3k|    {                                                                                                                    \
   56|  41.3k|        return ptr;                                                                                                      \
   57|  41.3k|    }                                                                                                                    \
property.c:sk_IMPLEMENTATION_new_null:
  115|    303|    {                                                                                                                      \
  116|    303|        OPENSSL_STACK *ret = OPENSSL_sk_new_null();                                                                        \
  117|    303|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  118|    303|                                                                                                                           \
  119|    303|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  120|    303|                                                                                                                           \
  121|    303|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
  122|    303|    }                                                                                                                      \
property.c:sk_IMPLEMENTATION_num:
   98|  1.49k|    {                                                                                                                      \
   99|  1.49k|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
  100|  1.49k|    }                                                                                                                      \
property.c:sk_IMPLEMENTATION_value:
  102|    982|    {                                                                                                                      \
  103|    982|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
  104|    982|    }                                                                                                                      \
property.c:sk_IMPLEMENTATION_push:
  154|    349|    {                                                                                                                      \
  155|    349|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  156|    349|    }                                                                                                                      \
property.c:sk_ALGORITHM_new_reserve:
  124|     24|    {                                                                                                                      \
  125|     24|        OPENSSL_STACK *ret = OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n);                                      \
  126|     24|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  127|     24|                                                                                                                           \
  128|     24|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  129|     24|        OPENSSL_sk_set_cmp_thunks(ret, sk_##t1##_cmpfunc_thunk);                                                           \
  130|     24|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
  131|     24|    }                                                                                                                      \
property.c:sk_ALGORITHM_freefunc_thunk:
   85|    666|    {                                                                                                                      \
   86|    666|        sk_##t1##_freefunc freefunc = (sk_##t1##_freefunc)freefunc_arg;                                                    \
   87|    666|        freefunc((t3 *)ptr);                                                                                               \
   88|    666|    }                                                                                                                      \
property.c:sk_IMPLEMENTATION_dup:
  208|    666|    {                                                                                                                      \
  209|    666|        return (STACK_OF(t1) *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk);                                                  \
  210|    666|    }                                                                                                                      \
property.c:sk_ALGORITHM_push:
  154|    666|    {                                                                                                                      \
  155|    666|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  156|    666|    }                                                                                                                      \
property.c:sk_ALGORITHM_num:
   98|     24|    {                                                                                                                      \
   99|     24|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
  100|     24|    }                                                                                                                      \
property.c:sk_ALGORITHM_value:
  102|    666|    {                                                                                                                      \
  103|    666|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
  104|    666|    }                                                                                                                      \
property.c:sk_ALGORITHM_pop_free:
  170|     24|    {                                                                                                                      \
  171|     24|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  172|     24|                                                                                                                           \
  173|     24|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  174|     24|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  175|     24|                                                                                                                           \
  176|     24|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  177|     24|    }                                                                                                                      \
property.c:sk_IMPLEMENTATION_free:
  137|    666|    {                                                                                                                      \
  138|    666|        OPENSSL_sk_free((OPENSSL_STACK *)sk);                                                                              \
  139|    666|    }                                                                                                                      \
property_parse.c:sk_OSSL_PROPERTY_DEFINITION_new:
  106|    147|    {                                                                                                                      \
  107|    147|        OPENSSL_STACK *ret = OPENSSL_sk_new((OPENSSL_sk_compfunc)compare);                                                 \
  108|    147|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  109|    147|                                                                                                                           \
  110|    147|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  111|    147|        OPENSSL_sk_set_cmp_thunks(ret, sk_##t1##_cmpfunc_thunk);                                                           \
  112|    147|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
  113|    147|    }                                                                                                                      \
property_parse.c:sk_OSSL_PROPERTY_DEFINITION_freefunc_thunk:
   85|    357|    {                                                                                                                      \
   86|    357|        sk_##t1##_freefunc freefunc = (sk_##t1##_freefunc)freefunc_arg;                                                    \
   87|    357|        freefunc((t3 *)ptr);                                                                                               \
   88|    357|    }                                                                                                                      \
property_parse.c:sk_OSSL_PROPERTY_DEFINITION_cmpfunc_thunk:
   90|    265|    {                                                                                                                      \
   91|    265|        int (*realcmp)(const t3 *const *a, const t3 *const *b) = (int (*)(const t3 *const *a, const t3 *const *b))(cmp);   \
   92|    265|        const t3 *const *at = (const t3 *const *)a;                                                                        \
   93|    265|        const t3 *const *bt = (const t3 *const *)b;                                                                        \
   94|    265|                                                                                                                           \
   95|    265|        return realcmp(at, bt);                                                                                            \
   96|    265|    }                                                                                                                      \
property_parse.c:sk_OSSL_PROPERTY_DEFINITION_push:
  154|    357|    {                                                                                                                      \
  155|    357|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  156|    357|    }                                                                                                                      \
property_parse.c:sk_OSSL_PROPERTY_DEFINITION_num:
   98|    147|    {                                                                                                                      \
   99|    147|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
  100|    147|    }                                                                                                                      \
property_parse.c:sk_OSSL_PROPERTY_DEFINITION_sort:
  200|    147|    {                                                                                                                      \
  201|    147|        OPENSSL_sk_sort((OPENSSL_STACK *)sk);                                                                              \
  202|    147|    }                                                                                                                      \
property_parse.c:sk_OSSL_PROPERTY_DEFINITION_value:
  102|    357|    {                                                                                                                      \
  103|    357|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
  104|    357|    }                                                                                                                      \
property_parse.c:sk_OSSL_PROPERTY_DEFINITION_pop_free:
  170|    147|    {                                                                                                                      \
  171|    147|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  172|    147|                                                                                                                           \
  173|    147|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  174|    147|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  175|    147|                                                                                                                           \
  176|    147|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  177|    147|    }                                                                                                                      \
property_string.c:ossl_check_OPENSSL_CSTRING_sk_type:
   63|     30|    {                                                                                                                    \
   64|     30|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|     30|    }                                                                                                                    \
property_string.c:ossl_check_OPENSSL_CSTRING_type:
   55|     30|    {                                                                                                                    \
   56|     30|        return ptr;                                                                                                      \
   57|     30|    }                                                                                                                    \
property_string.c:ossl_check_const_OPENSSL_CSTRING_sk_type:
   59|     26|    {                                                                                                                    \
   60|     26|        return (const OPENSSL_STACK *)sk;                                                                                \
   61|     26|    }                                                                                                                    \
rsa_backend.c:sk_BIGNUM_const_new_null:
  115|  84.1k|    {                                                                                                                      \
  116|  84.1k|        OPENSSL_STACK *ret = OPENSSL_sk_new_null();                                                                        \
  117|  84.1k|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  118|  84.1k|                                                                                                                           \
  119|  84.1k|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  120|  84.1k|                                                                                                                           \
  121|  84.1k|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
  122|  84.1k|    }                                                                                                                      \
rsa_backend.c:sk_BIGNUM_const_free:
  137|  84.1k|    {                                                                                                                      \
  138|  84.1k|        OPENSSL_sk_free((OPENSSL_STACK *)sk);                                                                              \
  139|  84.1k|    }                                                                                                                      \
rsa_lib.c:sk_RSA_PRIME_INFO_pop_free:
  170|  28.0k|    {                                                                                                                      \
  171|  28.0k|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  172|  28.0k|                                                                                                                           \
  173|  28.0k|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  174|  28.0k|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  175|  28.0k|                                                                                                                           \
  176|  28.0k|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  177|  28.0k|    }                                                                                                                      \
rsa_lib.c:sk_BIGNUM_const_new_null:
  115|  84.1k|    {                                                                                                                      \
  116|  84.1k|        OPENSSL_STACK *ret = OPENSSL_sk_new_null();                                                                        \
  117|  84.1k|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  118|  84.1k|                                                                                                                           \
  119|  84.1k|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  120|  84.1k|                                                                                                                           \
  121|  84.1k|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
  122|  84.1k|    }                                                                                                                      \
rsa_lib.c:sk_BIGNUM_const_num:
   98|  84.1k|    {                                                                                                                      \
   99|  84.1k|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
  100|  84.1k|    }                                                                                                                      \
rsa_lib.c:sk_BIGNUM_const_free:
  137|  84.1k|    {                                                                                                                      \
  138|  84.1k|        OPENSSL_sk_free((OPENSSL_STACK *)sk);                                                                              \
  139|  84.1k|    }                                                                                                                      \
rsa_ossl.c:sk_RSA_PRIME_INFO_num:
   98|  28.0k|    {                                                                                                                      \
   99|  28.0k|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
  100|  28.0k|    }                                                                                                                      \
by_dir.c:sk_BY_DIR_ENTRY_pop_free:
  170|    342|    {                                                                                                                      \
  171|    342|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  172|    342|                                                                                                                           \
  173|    342|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  174|    342|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  175|    342|                                                                                                                           \
  176|    342|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  177|    342|    }                                                                                                                      \
by_dir.c:sk_BY_DIR_ENTRY_freefunc_thunk:
   85|    342|    {                                                                                                                      \
   86|    342|        sk_##t1##_freefunc freefunc = (sk_##t1##_freefunc)freefunc_arg;                                                    \
   87|    342|        freefunc((t3 *)ptr);                                                                                               \
   88|    342|    }                                                                                                                      \
by_dir.c:sk_BY_DIR_HASH_pop_free:
  170|    342|    {                                                                                                                      \
  171|    342|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  172|    342|                                                                                                                           \
  173|    342|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  174|    342|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  175|    342|                                                                                                                           \
  176|    342|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  177|    342|    }                                                                                                                      \
by_dir.c:sk_BY_DIR_ENTRY_num:
   98|    684|    {                                                                                                                      \
   99|    684|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
  100|    684|    }                                                                                                                      \
by_dir.c:sk_BY_DIR_ENTRY_new_null:
  115|    342|    {                                                                                                                      \
  116|    342|        OPENSSL_STACK *ret = OPENSSL_sk_new_null();                                                                        \
  117|    342|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  118|    342|                                                                                                                           \
  119|    342|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  120|    342|                                                                                                                           \
  121|    342|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
  122|    342|    }                                                                                                                      \
by_dir.c:sk_BY_DIR_HASH_new:
  106|    342|    {                                                                                                                      \
  107|    342|        OPENSSL_STACK *ret = OPENSSL_sk_new((OPENSSL_sk_compfunc)compare);                                                 \
  108|    342|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  109|    342|                                                                                                                           \
  110|    342|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  111|    342|        OPENSSL_sk_set_cmp_thunks(ret, sk_##t1##_cmpfunc_thunk);                                                           \
  112|    342|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
  113|    342|    }                                                                                                                      \
by_dir.c:sk_BY_DIR_ENTRY_push:
  154|    342|    {                                                                                                                      \
  155|    342|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  156|    342|    }                                                                                                                      \
by_file.c:ossl_check_const_X509_INFO_sk_type:
   59|  83.1k|    {                                                                                                                    \
   60|  83.1k|        return (const OPENSSL_STACK *)sk;                                                                                \
   61|  83.1k|    }                                                                                                                    \
by_file.c:ossl_check_X509_INFO_sk_type:
   63|    342|    {                                                                                                                    \
   64|    342|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|    342|    }                                                                                                                    \
by_file.c:ossl_check_X509_INFO_freefunc_type:
   75|    342|    {                                                                                                                    \
   76|    342|        return (OPENSSL_sk_freefunc)fr;                                                                                  \
   77|    342|    }
t_x509.c:ossl_check_X509_sk_type:
   63|  10.4k|    {                                                                                                                    \
   64|  10.4k|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|  10.4k|    }                                                                                                                    \
t_x509.c:ossl_check_X509_freefunc_type:
   75|  10.4k|    {                                                                                                                    \
   76|  10.4k|        return (OPENSSL_sk_freefunc)fr;                                                                                  \
   77|  10.4k|    }
x509_lu.c:ossl_check_X509_OBJECT_compfunc_type:
   67|  41.7k|    {                                                                                                                    \
   68|  41.7k|        return (OPENSSL_sk_compfunc)cmp;                                                                                 \
   69|  41.7k|    }                                                                                                                    \
x509_lu.c:ossl_check_X509_OBJECT_sk_type:
   63|  83.1k|    {                                                                                                                    \
   64|  83.1k|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|  83.1k|    }                                                                                                                    \
x509_lu.c:ossl_check_X509_LOOKUP_sk_type:
   63|  1.03k|    {                                                                                                                    \
   64|  1.03k|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|  1.03k|    }                                                                                                                    \
x509_lu.c:ossl_check_const_X509_LOOKUP_sk_type:
   59|  3.08k|    {                                                                                                                    \
   60|  3.08k|        return (const OPENSSL_STACK *)sk;                                                                                \
   61|  3.08k|    }                                                                                                                    \
x509_lu.c:ossl_check_X509_OBJECT_freefunc_type:
   75|  41.7k|    {                                                                                                                    \
   76|  41.7k|        return (OPENSSL_sk_freefunc)fr;                                                                                  \
   77|  41.7k|    }
x509_lu.c:ossl_check_X509_LOOKUP_type:
   55|    684|    {                                                                                                                    \
   56|    684|        return ptr;                                                                                                      \
   57|    684|    }                                                                                                                    \
x509_lu.c:ossl_check_X509_OBJECT_type:
   55|  41.3k|    {                                                                                                                    \
   56|  41.3k|        return ptr;                                                                                                      \
   57|  41.3k|    }                                                                                                                    \
x509_vpm.c:ossl_check_ASN1_OBJECT_sk_type:
   63|  1.04k|    {                                                                                                                    \
   64|  1.04k|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|  1.04k|    }                                                                                                                    \
x509_vpm.c:ossl_check_ASN1_OBJECT_freefunc_type:
   75|  1.04k|    {                                                                                                                    \
   76|  1.04k|        return (OPENSSL_sk_freefunc)fr;                                                                                  \
   77|  1.04k|    }
x509_vpm.c:sk_X509_BUFFER_pop_free:
  170|  4.16k|    {                                                                                                                      \
  171|  4.16k|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  172|  4.16k|                                                                                                                           \
  173|  4.16k|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  174|  4.16k|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  175|  4.16k|                                                                                                                           \
  176|  4.16k|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  177|  4.16k|    }                                                                                                                      \
x_name.c:sk_X509_NAME_ENTRY_freefunc_thunk:
   42|   585k|    {                                                                                                                    \
   43|   585k|        sk_##t1##_freefunc freefunc = (sk_##t1##_freefunc)freefunc_arg;                                                  \
   44|   585k|        freefunc((t3 *)ptr);                                                                                             \
   45|   585k|    }                                                                                                                    \
x_name.c:ossl_check_X509_NAME_ENTRY_sk_type:
   63|  1.62M|    {                                                                                                                    \
   64|  1.62M|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|  1.62M|    }                                                                                                                    \
x_name.c:ossl_check_X509_NAME_ENTRY_freefunc_type:
   75|   458k|    {                                                                                                                    \
   76|   458k|        return (OPENSSL_sk_freefunc)fr;                                                                                  \
   77|   458k|    }
x_name.c:sk_STACK_OF_X509_NAME_ENTRY_num:
   98|   375k|    {                                                                                                                      \
   99|   375k|        return OPENSSL_sk_num((const OPENSSL_STACK *)sk);                                                                  \
  100|   375k|    }                                                                                                                      \
x_name.c:sk_STACK_OF_X509_NAME_ENTRY_value:
  102|   292k|    {                                                                                                                      \
  103|   292k|        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);                                                     \
  104|   292k|    }                                                                                                                      \
x_name.c:ossl_check_const_X509_NAME_ENTRY_sk_type:
   59|  1.62M|    {                                                                                                                    \
   60|  1.62M|        return (const OPENSSL_STACK *)sk;                                                                                \
   61|  1.62M|    }                                                                                                                    \
x_name.c:ossl_check_X509_NAME_ENTRY_type:
   55|   878k|    {                                                                                                                    \
   56|   878k|        return ptr;                                                                                                      \
   57|   878k|    }                                                                                                                    \
x_name.c:sk_STACK_OF_X509_NAME_ENTRY_new_null:
  115|  82.7k|    {                                                                                                                      \
  116|  82.7k|        OPENSSL_STACK *ret = OPENSSL_sk_new_null();                                                                        \
  117|  82.7k|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  118|  82.7k|                                                                                                                           \
  119|  82.7k|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  120|  82.7k|                                                                                                                           \
  121|  82.7k|        return (STACK_OF(t1) *)OPENSSL_sk_set_thunks(ret, f_thunk);                                                        \
  122|  82.7k|    }                                                                                                                      \
x_name.c:sk_STACK_OF_X509_NAME_ENTRY_freefunc_thunk:
   85|   585k|    {                                                                                                                      \
   86|   585k|        sk_##t1##_freefunc freefunc = (sk_##t1##_freefunc)freefunc_arg;                                                    \
   87|   585k|        freefunc((t3 *)ptr);                                                                                               \
   88|   585k|    }                                                                                                                      \
x_name.c:sk_STACK_OF_X509_NAME_ENTRY_push:
  154|   292k|    {                                                                                                                      \
  155|   292k|        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);                                                    \
  156|   292k|    }                                                                                                                      \
x_name.c:ossl_check_const_ASN1_VALUE_sk_type:
   59|  1.33M|    {                                                                                                                    \
   60|  1.33M|        return (const OPENSSL_STACK *)sk;                                                                                \
   61|  1.33M|    }                                                                                                                    \
x_name.c:sk_STACK_OF_X509_NAME_ENTRY_pop_free:
  170|   165k|    {                                                                                                                      \
  171|   165k|        OPENSSL_sk_freefunc_thunk f_thunk;                                                                                 \
  172|   165k|                                                                                                                           \
  173|   165k|        f_thunk = (OPENSSL_sk_freefunc_thunk)sk_##t1##_freefunc_thunk;                                                     \
  174|   165k|        sk = (STACK_OF(t1) *)OPENSSL_sk_set_thunks((OPENSSL_STACK *)sk, f_thunk);                                          \
  175|   165k|                                                                                                                           \
  176|   165k|        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc);                                           \
  177|   165k|    }                                                                                                                      \
x_x509.c:ossl_check_IPAddressFamily_sk_type:
   63|  82.7k|    {                                                                                                                    \
   64|  82.7k|        return (OPENSSL_STACK *)sk;                                                                                      \
   65|  82.7k|    }                                                                                                                    \
x_x509.c:ossl_check_IPAddressFamily_freefunc_type:
   75|  82.7k|    {                                                                                                                    \
   76|  82.7k|        return (OPENSSL_sk_freefunc)fr;                                                                                  \
   77|  82.7k|    }
comp_methods.c:ossl_check_SSL_COMP_compfunc_type:
   67|      2|    {                                                                                                                    \
   68|      2|        return (OPENSSL_sk_compfunc)cmp;                                                                                 \
   69|      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|   222k|{
   93|   222k|    if (c_bio_read_ex == NULL)
  ------------------
  |  Branch (93:9): [True: 0, False: 222k]
  ------------------
   94|      0|        return 0;
   95|   222k|    return c_bio_read_ex(bio, data, data_len, bytes_read);
   96|   222k|}
ossl_prov_bio_up_ref:
  128|  82.7k|{
  129|  82.7k|    if (c_bio_up_ref == NULL)
  ------------------
  |  Branch (129:9): [True: 0, False: 82.7k]
  ------------------
  130|      0|        return 0;
  131|  82.7k|    return c_bio_up_ref(bio);
  132|  82.7k|}
ossl_prov_bio_free:
  135|  82.7k|{
  136|  82.7k|    if (c_bio_free == NULL)
  ------------------
  |  Branch (136:9): [True: 0, False: 82.7k]
  ------------------
  137|      0|        return 0;
  138|  82.7k|    return c_bio_free(bio);
  139|  82.7k|}
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|  82.7k|{
  228|  82.7k|    BIO *outbio;
  229|  82.7k|    BIO_METHOD *corebiometh = ossl_prov_ctx_get0_core_bio_method(provctx);
  230|       |
  231|  82.7k|    if (corebiometh == NULL)
  ------------------
  |  Branch (231:9): [True: 0, False: 82.7k]
  ------------------
  232|      0|        return NULL;
  233|       |
  234|  82.7k|    if ((outbio = BIO_new(corebiometh)) == NULL)
  ------------------
  |  Branch (234:9): [True: 0, False: 82.7k]
  ------------------
  235|      0|        return NULL;
  236|  82.7k|    if (!ossl_prov_bio_up_ref(corebio)) {
  ------------------
  |  Branch (236:9): [True: 0, False: 82.7k]
  ------------------
  237|      0|        BIO_free(outbio);
  238|      0|        return NULL;
  239|      0|    }
  240|  82.7k|    BIO_set_data(outbio, corebio);
  241|  82.7k|    return outbio;
  242|  82.7k|}
bio_prov.c:bio_core_read_ex:
  166|   222k|{
  167|   222k|    return ossl_prov_bio_read_ex(BIO_get_data(bio), data, data_len, bytes_read);
  168|   222k|}
bio_prov.c:bio_core_new:
  192|  82.7k|{
  193|  82.7k|    BIO_set_init(bio, 1);
  194|       |
  195|  82.7k|    return 1;
  196|  82.7k|}
bio_prov.c:bio_core_free:
  199|  82.7k|{
  200|  82.7k|    BIO_set_init(bio, 0);
  201|  82.7k|    ossl_prov_bio_free(BIO_get_data(bio));
  202|       |
  203|  82.7k|    return 1;
  204|  82.7k|}

ossl_prov_get_capabilities:
  352|    694|{
  353|    694|    if (OPENSSL_strcasecmp(capability, "TLS-GROUP") == 0)
  ------------------
  |  Branch (353:9): [True: 347, False: 347]
  ------------------
  354|    347|        return tls_group_capability(cb, arg);
  355|    347|    if (OPENSSL_strcasecmp(capability, "TLS-SIGALG") == 0)
  ------------------
  |  Branch (355:9): [True: 347, False: 0]
  ------------------
  356|    347|        return tls_sigalg_capability(cb, arg);
  357|       |
  358|       |    /* We don't support this capability */
  359|      0|    return 0;
  360|    347|}
capabilities.c:tls_group_capability:
  270|    347|{
  271|    347|#if !defined(OPENSSL_NO_EC) || !defined(OPENSSL_NO_DH) || !defined(OPENSSL_NO_ML_KEM)
  272|    347|    size_t i;
  273|       |
  274|  9.71k|    for (i = 0; i < OSSL_NELEM(param_group_list); i++)
  ------------------
  |  |   14|  9.71k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (274:17): [True: 9.36k, False: 347]
  ------------------
  275|  9.36k|        if (!cb(param_group_list[i], arg))
  ------------------
  |  Branch (275:13): [True: 0, False: 9.36k]
  ------------------
  276|      0|            return 0;
  277|    347|#endif
  278|       |
  279|    347|    return 1;
  280|    347|}
capabilities.c:tls_sigalg_capability:
  339|    347|{
  340|    347|#if defined(TLS_SIGALG_ENTRY)
  341|    347|    size_t i;
  342|       |
  343|  1.73k|    for (i = 0; i < OSSL_NELEM(param_sigalg_list); i++)
  ------------------
  |  |   14|  1.73k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (343:17): [True: 1.38k, False: 347]
  ------------------
  344|  1.38k|        if (!cb(param_sigalg_list[i], arg))
  ------------------
  |  Branch (344:13): [True: 0, False: 1.38k]
  ------------------
  345|      0|            return 0;
  346|    347|#endif
  347|    347|    return 1;
  348|    347|}

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

ossl_prov_ctx_new:
   16|      1|{
   17|      1|    return OPENSSL_zalloc(sizeof(PROV_CTX));
  ------------------
  |  |  109|      1|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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|  84.1k|{
   52|  84.1k|    if (ctx == NULL)
  ------------------
  |  Branch (52:9): [True: 0, False: 84.1k]
  ------------------
   53|      0|        return NULL;
   54|  84.1k|    return ctx->libctx;
   55|  84.1k|}
ossl_prov_ctx_get0_core_bio_method:
   65|  82.7k|{
   66|  82.7k|    if (ctx == NULL)
  ------------------
  |  Branch (66:9): [True: 0, False: 82.7k]
  ------------------
   67|      0|        return NULL;
   68|  82.7k|    return ctx->corebiometh;
   69|  82.7k|}
ossl_prov_ctx_get_param:
   80|  1.02k|{
   81|  1.02k|    char *val = NULL;
   82|  1.02k|    OSSL_PARAM param[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|  1.02k|    { NULL, 0, NULL, 0, 0 }
  ------------------
                  OSSL_PARAM param[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|  1.02k|    { NULL, 0, NULL, 0, 0 }
  ------------------
   83|       |
   84|  1.02k|    if (ctx == NULL
  ------------------
  |  Branch (84:9): [True: 0, False: 1.02k]
  ------------------
   85|  1.02k|        || ctx->handle == NULL
  ------------------
  |  Branch (85:12): [True: 0, False: 1.02k]
  ------------------
   86|  1.02k|        || ctx->core_get_params == NULL)
  ------------------
  |  Branch (86:12): [True: 0, False: 1.02k]
  ------------------
   87|      0|        return defval;
   88|       |
   89|  1.02k|    param[0].key = (char *)name;
   90|  1.02k|    param[0].data_type = OSSL_PARAM_UTF8_PTR;
  ------------------
  |  |  141|  1.02k|#define OSSL_PARAM_UTF8_PTR 6
  ------------------
   91|  1.02k|    param[0].data = (void *)&val;
   92|  1.02k|    param[0].data_size = sizeof(val);
   93|  1.02k|    param[0].return_size = OSSL_PARAM_UNMODIFIED;
  ------------------
  |  |   22|  1.02k|#define OSSL_PARAM_UNMODIFIED ((size_t)-1)
  ------------------
   94|       |
   95|       |    /* Errors are ignored, returning the default value */
   96|  1.02k|    if (ctx->core_get_params(ctx->handle, param)
  ------------------
  |  Branch (96:9): [True: 1.02k, False: 0]
  ------------------
   97|  1.02k|        && OSSL_PARAM_modified(param)
  ------------------
  |  Branch (97:12): [True: 0, False: 1.02k]
  ------------------
   98|      0|        && val != NULL)
  ------------------
  |  Branch (98:12): [True: 0, False: 0]
  ------------------
   99|      0|        return val;
  100|  1.02k|    return defval;
  101|  1.02k|}
ossl_prov_ctx_get_bool_param:
  104|    684|{
  105|    684|    const char *val = ossl_prov_ctx_get_param(ctx, name, NULL);
  106|       |
  107|    684|    if (val != NULL) {
  ------------------
  |  Branch (107:9): [True: 0, False: 684]
  ------------------
  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|    684|    return defval;
  120|    684|}

ossl_err_load_PROV_strings:
  273|      2|{
  274|      2|#ifndef OPENSSL_NO_ERR
  275|      2|    if (ERR_reason_error_string(PROV_str_reasons[0].error) == NULL)
  ------------------
  |  Branch (275:9): [True: 2, False: 0]
  ------------------
  276|      2|        ERR_load_strings_const(PROV_str_reasons);
  277|      2|#endif
  278|      2|    return 1;
  279|      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:
  221|      1|{
  222|      1|    int i, j;
  223|       |
  224|      1|    if (out[0].algorithm_names == NULL) {
  ------------------
  |  Branch (224:9): [True: 1, False: 0]
  ------------------
  225|    140|        for (i = j = 0; in[i].alg.algorithm_names != NULL; ++i) {
  ------------------
  |  Branch (225:25): [True: 139, False: 1]
  ------------------
  226|    139|            if (in[i].capable == NULL || in[i].capable())
  ------------------
  |  Branch (226:17): [True: 126, False: 13]
  |  Branch (226:42): [True: 4, False: 9]
  ------------------
  227|    130|                out[j++] = in[i].alg;
  228|    139|        }
  229|      1|        out[j++] = in[i].alg;
  230|      1|    }
  231|      1|}

ossl_default_provider_init:
  797|      1|{
  798|      1|    OSSL_FUNC_core_get_libctx_fn *c_get_libctx = NULL;
  799|      1|    BIO_METHOD *corebiometh;
  800|       |
  801|      1|    if (!ossl_prov_bio_from_dispatch(in)
  ------------------
  |  Branch (801:9): [True: 0, False: 1]
  ------------------
  802|      1|        || !ossl_prov_seeding_from_dispatch(in))
  ------------------
  |  Branch (802:12): [True: 0, False: 1]
  ------------------
  803|      0|        return 0;
  804|     54|    for (; in->function_id != 0; in++) {
  ------------------
  |  Branch (804:12): [True: 53, False: 1]
  ------------------
  805|     53|        switch (in->function_id) {
  806|      1|        case OSSL_FUNC_CORE_GETTABLE_PARAMS:
  ------------------
  |  |   72|      1|#define OSSL_FUNC_CORE_GETTABLE_PARAMS 1
  ------------------
  |  Branch (806:9): [True: 1, False: 52]
  ------------------
  807|      1|            c_gettable_params = OSSL_FUNC_core_gettable_params(in);
  808|      1|            break;
  809|      1|        case OSSL_FUNC_CORE_GET_PARAMS:
  ------------------
  |  |   75|      1|#define OSSL_FUNC_CORE_GET_PARAMS 2
  ------------------
  |  Branch (809:9): [True: 1, False: 52]
  ------------------
  810|      1|            c_get_params = OSSL_FUNC_core_get_params(in);
  811|      1|            break;
  812|      1|        case OSSL_FUNC_CORE_GET_LIBCTX:
  ------------------
  |  |   79|      1|#define OSSL_FUNC_CORE_GET_LIBCTX 4
  ------------------
  |  Branch (812:9): [True: 1, False: 52]
  ------------------
  813|      1|            c_get_libctx = OSSL_FUNC_core_get_libctx(in);
  814|      1|            break;
  815|     50|        default:
  ------------------
  |  Branch (815:9): [True: 50, False: 3]
  ------------------
  816|       |            /* Just ignore anything we don't understand */
  817|     50|            break;
  818|     53|        }
  819|     53|    }
  820|       |
  821|      1|    if (c_get_libctx == NULL)
  ------------------
  |  Branch (821:9): [True: 0, False: 1]
  ------------------
  822|      0|        return 0;
  823|       |
  824|       |    /*
  825|       |     * We want to make sure that all calls from this provider that requires
  826|       |     * a library context use the same context as the one used to call our
  827|       |     * functions.  We do that by passing it along in the provider context.
  828|       |     *
  829|       |     * This only works for built-in providers.  Most providers should
  830|       |     * create their own library context.
  831|       |     */
  832|      1|    if ((*provctx = ossl_prov_ctx_new()) == NULL
  ------------------
  |  Branch (832:9): [True: 0, False: 1]
  ------------------
  833|      1|        || (corebiometh = ossl_bio_prov_init_bio_method()) == NULL) {
  ------------------
  |  Branch (833:12): [True: 0, False: 1]
  ------------------
  834|      0|        ossl_prov_ctx_free(*provctx);
  835|      0|        *provctx = NULL;
  836|      0|        return 0;
  837|      0|    }
  838|      1|    ossl_prov_ctx_set0_libctx(*provctx,
  839|      1|        (OSSL_LIB_CTX *)c_get_libctx(handle));
  840|      1|    ossl_prov_ctx_set0_handle(*provctx, handle);
  841|      1|    ossl_prov_ctx_set0_core_bio_method(*provctx, corebiometh);
  842|      1|    ossl_prov_ctx_set0_core_get_params(*provctx, c_get_params);
  843|       |
  844|      1|    *out = deflt_dispatch_table;
  845|      1|    ossl_prov_cache_exported_algorithms(deflt_ciphers, exported_ciphers);
  846|       |
  847|      1|    return 1;
  848|      1|}
defltprov.c:deflt_query:
  739|  5.61k|{
  740|  5.61k|    *no_cache = 0;
  741|  5.61k|    switch (operation_id) {
  ------------------
  |  Branch (741:13): [True: 5.61k, False: 0]
  ------------------
  742|  2.44k|    case OSSL_OP_DIGEST:
  ------------------
  |  |  283|  2.44k|#define OSSL_OP_DIGEST 1
  ------------------
  |  Branch (742:5): [True: 2.44k, False: 3.17k]
  ------------------
  743|  2.44k|        return deflt_digests;
  744|  3.13k|    case OSSL_OP_CIPHER:
  ------------------
  |  |  284|  3.13k|#define OSSL_OP_CIPHER 2 /* Symmetric Ciphers */
  ------------------
  |  Branch (744:5): [True: 3.13k, False: 2.47k]
  ------------------
  745|  3.13k|        return exported_ciphers;
  746|      0|    case OSSL_OP_MAC:
  ------------------
  |  |  285|      0|#define OSSL_OP_MAC 3
  ------------------
  |  Branch (746:5): [True: 0, False: 5.61k]
  ------------------
  747|      0|        return deflt_macs;
  748|      0|    case OSSL_OP_KDF:
  ------------------
  |  |  286|      0|#define OSSL_OP_KDF 4
  ------------------
  |  Branch (748:5): [True: 0, False: 5.61k]
  ------------------
  749|      0|        return deflt_kdfs;
  750|      2|    case OSSL_OP_RAND:
  ------------------
  |  |  287|      2|#define OSSL_OP_RAND 5
  ------------------
  |  Branch (750:5): [True: 2, False: 5.61k]
  ------------------
  751|      2|        return deflt_rands;
  752|     23|    case OSSL_OP_KEYMGMT:
  ------------------
  |  |  288|     23|#define OSSL_OP_KEYMGMT 10
  ------------------
  |  Branch (752:5): [True: 23, False: 5.59k]
  ------------------
  753|     23|        return deflt_keymgmt;
  754|      2|    case OSSL_OP_KEYEXCH:
  ------------------
  |  |  289|      2|#define OSSL_OP_KEYEXCH 11
  ------------------
  |  Branch (754:5): [True: 2, False: 5.61k]
  ------------------
  755|      2|        return deflt_keyexch;
  756|      2|    case OSSL_OP_SIGNATURE:
  ------------------
  |  |  290|      2|#define OSSL_OP_SIGNATURE 12
  ------------------
  |  Branch (756:5): [True: 2, False: 5.61k]
  ------------------
  757|      2|        return deflt_signature;
  758|      0|    case OSSL_OP_ASYM_CIPHER:
  ------------------
  |  |  291|      0|#define OSSL_OP_ASYM_CIPHER 13
  ------------------
  |  Branch (758:5): [True: 0, False: 5.61k]
  ------------------
  759|      0|        return deflt_asym_cipher;
  760|      0|    case OSSL_OP_KEM:
  ------------------
  |  |  292|      0|#define OSSL_OP_KEM 14
  ------------------
  |  Branch (760:5): [True: 0, False: 5.61k]
  ------------------
  761|      0|        return deflt_asym_kem;
  762|      0|    case OSSL_OP_ENCODER:
  ------------------
  |  |  295|      0|#define OSSL_OP_ENCODER 20
  ------------------
  |  Branch (762:5): [True: 0, False: 5.61k]
  ------------------
  763|      0|        return deflt_encoder;
  764|      4|    case OSSL_OP_DECODER:
  ------------------
  |  |  296|      4|#define OSSL_OP_DECODER 21
  ------------------
  |  Branch (764:5): [True: 4, False: 5.60k]
  ------------------
  765|      4|        return deflt_decoder;
  766|      0|    case OSSL_OP_STORE:
  ------------------
  |  |  297|      0|#define OSSL_OP_STORE 22
  ------------------
  |  Branch (766:5): [True: 0, False: 5.61k]
  ------------------
  767|      0|        return deflt_store;
  768|      0|    case OSSL_OP_SKEYMGMT:
  ------------------
  |  |  293|      0|#define OSSL_OP_SKEYMGMT 15
  ------------------
  |  Branch (768:5): [True: 0, False: 5.61k]
  ------------------
  769|      0|        return deflt_skeymgmt;
  770|  5.61k|    }
  771|      0|    return NULL;
  772|  5.61k|}

cipher_aes_cbc_hmac_sha.c:aes_128_cbc_hmac_sha1_get_params:
  384|      1|    {                                                                               \
  385|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_CBC_MODE,            \
  ------------------
  |  |  211|      1|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  386|      1|            flags, kbits, blkbits, ivbits);                                         \
  387|      1|    }                                                                               \
cipher_aes_cbc_hmac_sha.c:aes_gettable_ctx_params:
  266|      4|{
  267|      4|    return aes_cbc_hmac_sha_get_ctx_params_list;
  268|      4|}
cipher_aes_cbc_hmac_sha.c:aes_256_cbc_hmac_sha1_get_params:
  384|      1|    {                                                                               \
  385|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_CBC_MODE,            \
  ------------------
  |  |  211|      1|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  386|      1|            flags, kbits, blkbits, ivbits);                                         \
  387|      1|    }                                                                               \
cipher_aes_cbc_hmac_sha.c:aes_128_cbc_hmac_sha256_get_params:
  384|      1|    {                                                                               \
  385|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_CBC_MODE,            \
  ------------------
  |  |  211|      1|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  386|      1|            flags, kbits, blkbits, ivbits);                                         \
  387|      1|    }                                                                               \
cipher_aes_cbc_hmac_sha.c:aes_256_cbc_hmac_sha256_get_params:
  384|      1|    {                                                                               \
  385|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_CBC_MODE,            \
  ------------------
  |  |  211|      1|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  386|      1|            flags, kbits, blkbits, ivbits);                                         \
  387|      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:
  278|      1|    {                                                                                                      \
  279|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,                            \
  ------------------
  |  |  221|      1|#define EVP_CIPH_GCM_SIV_MODE 0x10005
  ------------------
  280|      1|            flags, kbits, blkbits, ivbits);                                                                \
  281|      1|    }                                                                                                      \
cipher_aes_gcm_siv.c:ossl_aes_gcm_siv_gettable_ctx_params:
  208|      3|{
  209|      3|    return ossl_aes_gcm_siv_get_ctx_params_list;
  210|      3|}
cipher_aes_gcm_siv.c:ossl_aes_192_gcm_siv_get_params:
  278|      1|    {                                                                                                      \
  279|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,                            \
  ------------------
  |  |  221|      1|#define EVP_CIPH_GCM_SIV_MODE 0x10005
  ------------------
  280|      1|            flags, kbits, blkbits, ivbits);                                                                \
  281|      1|    }                                                                                                      \
cipher_aes_gcm_siv.c:ossl_aes_256_gcm_siv_get_params:
  278|      1|    {                                                                                                      \
  279|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,                            \
  ------------------
  |  |  221|      1|#define EVP_CIPH_GCM_SIV_MODE 0x10005
  ------------------
  280|      1|            flags, kbits, blkbits, ivbits);                                                                \
  281|      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|  22.3k|{
   21|  22.3k|    int ret;
   22|  22.3k|    PROV_AES_CTX *adat = (PROV_AES_CTX *)dat;
   23|  22.3k|    AES_KEY *ks = &adat->ks.ks;
   24|       |
   25|  22.3k|    dat->ks = ks;
   26|       |
   27|  22.3k|    if ((dat->mode == EVP_CIPH_ECB_MODE || dat->mode == EVP_CIPH_CBC_MODE)
  ------------------
  |  |  210|  44.7k|#define EVP_CIPH_ECB_MODE 0x1
  ------------------
                  if ((dat->mode == EVP_CIPH_ECB_MODE || dat->mode == EVP_CIPH_CBC_MODE)
  ------------------
  |  |  211|  11.1k|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  |  Branch (27:10): [True: 11.1k, False: 11.1k]
  |  Branch (27:44): [True: 0, False: 11.1k]
  ------------------
   28|  11.1k|        && !dat->enc) {
  ------------------
  |  Branch (28:12): [True: 0, False: 11.1k]
  ------------------
   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 ?
  ------------------
  |  |  211|      0|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  |  Branch (31:27): [True: 0, False: 0]
  ------------------
   32|      0|            (cbc128_f) aesni_cbc_encrypt : NULL;
   33|  22.3k|    } else {
   34|  22.3k|        ret = aesni_set_encrypt_key(key, (int)(keylen * 8), ks);
   35|  22.3k|        dat->block = (block128_f) aesni_encrypt;
   36|  22.3k|        if (dat->mode == EVP_CIPH_CBC_MODE)
  ------------------
  |  |  211|  22.3k|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  |  Branch (36:13): [True: 0, False: 22.3k]
  ------------------
   37|      0|            dat->stream.cbc = (cbc128_f) aesni_cbc_encrypt;
   38|  22.3k|        else if (dat->mode == EVP_CIPH_CTR_MODE)
  ------------------
  |  |  214|  22.3k|#define EVP_CIPH_CTR_MODE 0x5
  ------------------
  |  Branch (38:18): [True: 11.1k, False: 11.1k]
  ------------------
   39|  11.1k|            dat->stream.ctr = (ctr128_f) aesni_ctr32_encrypt_blocks;
   40|  11.1k|        else
   41|  11.1k|            dat->stream.cbc = NULL;
   42|  22.3k|    }
   43|       |
   44|  22.3k|    if (ret < 0) {
  ------------------
  |  Branch (44:9): [True: 0, False: 22.3k]
  ------------------
   45|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_KEY_SETUP_FAILED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   46|      0|        return 0;
   47|      0|    }
   48|       |
   49|  22.3k|    return 1;
   50|  22.3k|}
cipher_aes_hw.c:cipher_hw_aesni_ecb:
   64|  11.3k|{
   65|  11.3k|    if (len < ctx->blocksize)
  ------------------
  |  Branch (65:9): [True: 0, False: 11.3k]
  ------------------
   66|      0|        return 1;
   67|       |
   68|  11.3k|    aesni_ecb_encrypt(in, out, len, ctx->ks, ctx->enc);
   69|       |
   70|  11.3k|    return 1;
   71|  11.3k|}

cipher_aes_ocb.c:aes_256_ocb_get_params:
  526|      1|    {                                                                           \
  527|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  219|      1|#define EVP_CIPH_OCB_MODE 0x10003
  ------------------
  528|      1|            flags, kbits, blkbits, ivbits);                                     \
  529|      1|    }                                                                           \
cipher_aes_ocb.c:cipher_ocb_gettable_ctx_params:
  421|      3|{
  422|      3|    return aes_ocb_get_ctx_params_list;
  423|      3|}
cipher_aes_ocb.c:aes_192_ocb_get_params:
  526|      1|    {                                                                           \
  527|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  219|      1|#define EVP_CIPH_OCB_MODE 0x10003
  ------------------
  528|      1|            flags, kbits, blkbits, ivbits);                                     \
  529|      1|    }                                                                           \
cipher_aes_ocb.c:aes_128_ocb_get_params:
  526|      1|    {                                                                           \
  527|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  219|      1|#define EVP_CIPH_OCB_MODE 0x10003
  ------------------
  528|      1|            flags, kbits, blkbits, ivbits);                                     \
  529|      1|    }                                                                           \

cipher_aes_siv.c:aes_128_siv_get_params:
  258|      1|    {                                                                            \
  259|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,  \
  ------------------
  |  |  220|      1|#define EVP_CIPH_SIV_MODE 0x10004
  ------------------
  260|      1|            flags, 2 * kbits, blkbits, ivbits);                                  \
  261|      1|    }                                                                            \
cipher_aes_siv.c:aes_siv_gettable_ctx_params:
  187|      3|{
  188|      3|    return aes_siv_get_ctx_params_list;
  189|      3|}
cipher_aes_siv.c:aes_192_siv_get_params:
  258|      1|    {                                                                            \
  259|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,  \
  ------------------
  |  |  220|      1|#define EVP_CIPH_SIV_MODE 0x10004
  ------------------
  260|      1|            flags, 2 * kbits, blkbits, ivbits);                                  \
  261|      1|    }                                                                            \
cipher_aes_siv.c:aes_256_siv_get_params:
  258|      1|    {                                                                            \
  259|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,  \
  ------------------
  |  |  220|      1|#define EVP_CIPH_SIV_MODE 0x10004
  ------------------
  260|      1|            flags, 2 * kbits, blkbits, ivbits);                                  \
  261|      1|    }                                                                            \

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

cipher_aes_xts.c:aes_256_xts_get_params:
  275|      1|    {                                                                              \
  276|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,    \
  ------------------
  |  |  217|      1|#define EVP_CIPH_XTS_MODE 0x10001
  ------------------
  277|      1|            flags, 2 * kbits, AES_XTS_BLOCK_BITS,                                  \
  ------------------
  |  |   26|      1|#define AES_XTS_BLOCK_BITS 8
  ------------------
  278|      1|            AES_XTS_IV_BITS);                                                      \
  ------------------
  |  |   25|      1|#define AES_XTS_IV_BITS 128
  ------------------
  279|      1|    }                                                                              \
cipher_aes_xts.c:aes_128_xts_get_params:
  275|      1|    {                                                                              \
  276|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,    \
  ------------------
  |  |  217|      1|#define EVP_CIPH_XTS_MODE 0x10001
  ------------------
  277|      1|            flags, 2 * kbits, AES_XTS_BLOCK_BITS,                                  \
  ------------------
  |  |   26|      1|#define AES_XTS_BLOCK_BITS 8
  ------------------
  278|      1|            AES_XTS_IV_BITS);                                                      \
  ------------------
  |  |   25|      1|#define AES_XTS_IV_BITS 128
  ------------------
  279|      1|    }                                                                              \

cipher_chacha20.c:chacha20_get_params:
   97|      1|{
   98|      1|    return ossl_cipher_generic_get_params(params, 0, CHACHA20_FLAGS,
  ------------------
  |  |   22|      1|#define CHACHA20_FLAGS (PROV_CIPHER_FLAG_CUSTOM_IV)
  |  |  ------------------
  |  |  |  |   40|      1|#define PROV_CIPHER_FLAG_CUSTOM_IV 0x0002
  |  |  ------------------
  ------------------
   99|      1|        CHACHA20_KEYLEN * 8,
  ------------------
  |  |   19|      1|#define CHACHA20_KEYLEN (CHACHA_KEY_SIZE)
  |  |  ------------------
  |  |  |  |   44|      1|#define CHACHA_KEY_SIZE 32
  |  |  ------------------
  ------------------
  100|      1|        CHACHA20_BLKLEN * 8,
  ------------------
  |  |   20|      1|#define CHACHA20_BLKLEN (1)
  ------------------
  101|      1|        CHACHA20_IVLEN * 8);
  ------------------
  |  |   21|      1|#define CHACHA20_IVLEN (CHACHA_CTR_SIZE)
  |  |  ------------------
  |  |  |  |   45|      1|#define CHACHA_CTR_SIZE 16
  |  |  ------------------
  ------------------
  102|      1|}
cipher_chacha20.c:chacha20_gettable_ctx_params:
  138|      1|{
  139|      1|    return chacha20_get_ctx_params_list;
  140|      1|}

cipher_chacha20_poly1305.c:chacha20_poly1305_get_params:
   93|    348|{
   94|    348|    return ossl_cipher_generic_get_params(params, 0, CHACHA20_POLY1305_FLAGS,
  ------------------
  |  |   23|    348|#define CHACHA20_POLY1305_FLAGS (PROV_CIPHER_FLAG_AEAD \
  |  |  ------------------
  |  |  |  |   39|    348|#define PROV_CIPHER_FLAG_AEAD 0x0001
  |  |  ------------------
  |  |   24|    348|    | PROV_CIPHER_FLAG_CUSTOM_IV)
  |  |  ------------------
  |  |  |  |   40|    348|#define PROV_CIPHER_FLAG_CUSTOM_IV 0x0002
  |  |  ------------------
  ------------------
   95|    348|        CHACHA20_POLY1305_KEYLEN * 8,
  ------------------
  |  |   19|    348|#define CHACHA20_POLY1305_KEYLEN CHACHA_KEY_SIZE
  |  |  ------------------
  |  |  |  |   44|    348|#define CHACHA_KEY_SIZE 32
  |  |  ------------------
  ------------------
   96|    348|        CHACHA20_POLY1305_BLKLEN * 8,
  ------------------
  |  |   20|    348|#define CHACHA20_POLY1305_BLKLEN 1
  ------------------
   97|    348|        CHACHA20_POLY1305_IVLEN * 8);
  ------------------
  |  |   16|    348|#define CHACHA20_POLY1305_IVLEN 12
  ------------------
   98|    348|}
cipher_chacha20_poly1305.c:chacha20_poly1305_gettable_ctx_params:
  151|      1|{
  152|      1|    return chacha20_poly1305_get_ctx_params_list;
  153|      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,  \
  ------------------
  |  |  211|      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,  \
  ------------------
  |  |  211|      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,  \
  ------------------
  |  |  211|      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,  \
  ------------------
  |  |  211|      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,  \
  ------------------
  |  |  211|      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,  \
  ------------------
  |  |  211|      1|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
   19|      1|            flags, kbits, blkbits, ivbits);                                      \
   20|      1|    }                                                                            \

cipher_null.c:null_get_params:
  105|      1|{
  106|      1|    return ossl_cipher_generic_get_params(params, 0, 0, 0, 8, 0);
  107|      1|}
cipher_null.c:null_gettable_ctx_params:
  112|      1|{
  113|      1|    return null_get_ctx_params_list;
  114|      1|}

cipher_sm4_xts.c:sm4_128_xts_get_params:
  239|      1|    {                                                                              \
  240|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE,    \
  ------------------
  |  |  217|      1|#define EVP_CIPH_XTS_MODE 0x10001
  ------------------
  241|      1|            flags, 2 * kbits, SM4_XTS_BLOCK_BITS,                                  \
  ------------------
  |  |   20|      1|#define SM4_XTS_BLOCK_BITS 8
  ------------------
  242|      1|            SM4_XTS_IV_BITS);                                                      \
  ------------------
  |  |   19|      1|#define SM4_XTS_IV_BITS 128
  ------------------
  243|      1|    }                                                                              \

cipher_tdes.c:tdes_ede3_ecb_get_params:
   44|      1|    {                                                                              \
   45|      1|        return ossl_tdes_get_params(params, EVP_CIPH_##UCMODE##_MODE,              \
  ------------------
  |  |  210|      1|#define EVP_CIPH_ECB_MODE 0x1
  ------------------
   46|      1|            flags, kbits, blkbits, ivbits);                                        \
   47|      1|    }                                                                              \
cipher_tdes.c:tdes_ede3_cbc_get_params:
   44|    348|    {                                                                              \
   45|    348|        return ossl_tdes_get_params(params, EVP_CIPH_##UCMODE##_MODE,              \
  ------------------
  |  |  211|    348|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
   46|    348|            flags, kbits, blkbits, ivbits);                                        \
   47|    348|    }                                                                              \
cipher_tdes_default.c:tdes_ede3_ofb_get_params:
   44|      1|    {                                                                              \
   45|      1|        return ossl_tdes_get_params(params, EVP_CIPH_##UCMODE##_MODE,              \
  ------------------
  |  |  213|      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,              \
  ------------------
  |  |  212|      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,              \
  ------------------
  |  |  212|      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,              \
  ------------------
  |  |  212|      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,              \
  ------------------
  |  |  210|      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,              \
  ------------------
  |  |  211|      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,              \
  ------------------
  |  |  213|      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,              \
  ------------------
  |  |  212|      1|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
   46|      1|            flags, kbits, blkbits, ivbits);                                        \
   47|      1|    }                                                                              \

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

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

ossl_cipher_generic_get_params:
   43|  5.68k|{
   44|  5.68k|    struct ossl_cipher_generic_get_params_st p;
   45|       |
   46|  5.68k|    if (!ossl_cipher_generic_get_params_decoder(params, &p))
  ------------------
  |  Branch (46:9): [True: 0, False: 5.68k]
  ------------------
   47|      0|        return 0;
   48|       |
   49|  5.68k|    if (p.mode != NULL && !OSSL_PARAM_set_uint(p.mode, md)) {
  ------------------
  |  Branch (49:9): [True: 130, False: 5.55k]
  |  Branch (49:27): [True: 0, False: 130]
  ------------------
   50|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   51|      0|        return 0;
   52|      0|    }
   53|  5.68k|    if (p.aead != NULL
  ------------------
  |  Branch (53:9): [True: 130, False: 5.55k]
  ------------------
   54|    130|        && !OSSL_PARAM_set_int(p.aead, (flags & PROV_CIPHER_FLAG_AEAD) != 0)) {
  ------------------
  |  |   39|    130|#define PROV_CIPHER_FLAG_AEAD 0x0001
  ------------------
  |  Branch (54:12): [True: 0, False: 130]
  ------------------
   55|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   56|      0|        return 0;
   57|      0|    }
   58|  5.68k|    if (p.custiv != NULL
  ------------------
  |  Branch (58:9): [True: 130, False: 5.55k]
  ------------------
   59|    130|        && !OSSL_PARAM_set_int(p.custiv, (flags & PROV_CIPHER_FLAG_CUSTOM_IV) != 0)) {
  ------------------
  |  |   40|    130|#define PROV_CIPHER_FLAG_CUSTOM_IV 0x0002
  ------------------
  |  Branch (59:12): [True: 0, False: 130]
  ------------------
   60|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   61|      0|        return 0;
   62|      0|    }
   63|  5.68k|    if (p.cts != NULL
  ------------------
  |  Branch (63:9): [True: 130, False: 5.55k]
  ------------------
   64|    130|        && !OSSL_PARAM_set_int(p.cts, (flags & PROV_CIPHER_FLAG_CTS) != 0)) {
  ------------------
  |  |   41|    130|#define PROV_CIPHER_FLAG_CTS 0x0004
  ------------------
  |  Branch (64:12): [True: 0, False: 130]
  ------------------
   65|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   66|      0|        return 0;
   67|      0|    }
   68|  5.68k|    if (p.mb != NULL
  ------------------
  |  Branch (68:9): [True: 130, False: 5.55k]
  ------------------
   69|    130|        && !OSSL_PARAM_set_int(p.mb, (flags & PROV_CIPHER_FLAG_TLS1_MULTIBLOCK) != 0)) {
  ------------------
  |  |   42|    130|#define PROV_CIPHER_FLAG_TLS1_MULTIBLOCK 0x0008
  ------------------
  |  Branch (69:12): [True: 0, False: 130]
  ------------------
   70|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   71|      0|        return 0;
   72|      0|    }
   73|  5.68k|    if (p.rand != NULL
  ------------------
  |  Branch (73:9): [True: 130, False: 5.55k]
  ------------------
   74|    130|        && !OSSL_PARAM_set_int(p.rand, (flags & PROV_CIPHER_FLAG_RAND_KEY) != 0)) {
  ------------------
  |  |   43|    130|#define PROV_CIPHER_FLAG_RAND_KEY 0x0010
  ------------------
  |  Branch (74:12): [True: 0, False: 130]
  ------------------
   75|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   76|      0|        return 0;
   77|      0|    }
   78|  5.68k|    if (p.etm != NULL
  ------------------
  |  Branch (78:9): [True: 130, False: 5.55k]
  ------------------
   79|    130|        && !OSSL_PARAM_set_int(p.etm, (flags & EVP_CIPH_FLAG_ENC_THEN_MAC) != 0)) {
  ------------------
  |  |  267|    130|#define EVP_CIPH_FLAG_ENC_THEN_MAC 0x10000000
  ------------------
  |  Branch (79:12): [True: 0, False: 130]
  ------------------
   80|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   81|      0|        return 0;
   82|      0|    }
   83|  5.68k|    if (p.keylen != NULL && !OSSL_PARAM_set_size_t(p.keylen, kbits / 8)) {
  ------------------
  |  Branch (83:9): [True: 130, False: 5.55k]
  |  Branch (83:29): [True: 0, False: 130]
  ------------------
   84|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   85|      0|        return 0;
   86|      0|    }
   87|  5.68k|    if (p.bsize != NULL && !OSSL_PARAM_set_size_t(p.bsize, blkbits / 8)) {
  ------------------
  |  Branch (87:9): [True: 130, False: 5.55k]
  |  Branch (87:28): [True: 0, False: 130]
  ------------------
   88|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   89|      0|        return 0;
   90|      0|    }
   91|  5.68k|    if (p.ivlen != NULL && !OSSL_PARAM_set_size_t(p.ivlen, ivbits / 8)) {
  ------------------
  |  Branch (91:9): [True: 130, False: 5.55k]
  |  Branch (91:28): [True: 0, False: 130]
  ------------------
   92|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   93|      0|        return 0;
   94|      0|    }
   95|  5.68k|    return 1;
   96|  5.68k|}
ossl_cipher_generic_gettable_ctx_params:
   99|     83|{
  100|     83|    return cipher_generic_get_ctx_params_list;
  101|     83|}
ossl_cipher_generic_einit:
  194|  33.4k|{
  195|  33.4k|    return cipher_generic_init_internal((PROV_CIPHER_CTX *)vctx, key, keylen,
  196|  33.4k|        iv, ivlen, params, 1);
  197|  33.4k|}
ossl_cipher_generic_block_update:
  235|  11.3k|{
  236|  11.3k|    size_t outlint = 0;
  237|  11.3k|    PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
  238|  11.3k|    size_t blksz = ctx->blocksize;
  239|  11.3k|    size_t nextblocks;
  240|       |
  241|  11.3k|    if (!ctx->key_set) {
  ------------------
  |  Branch (241:9): [True: 0, False: 11.3k]
  ------------------
  242|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_NO_KEY_SET);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  243|      0|        return 0;
  244|      0|    }
  245|       |
  246|  11.3k|    if (ctx->tlsversion > 0) {
  ------------------
  |  Branch (246:9): [True: 0, False: 11.3k]
  ------------------
  247|       |        /*
  248|       |         * Each update call corresponds to a TLS record and is individually
  249|       |         * padded
  250|       |         */
  251|       |
  252|       |        /* Sanity check inputs */
  253|      0|        if (in == NULL
  ------------------
  |  Branch (253:13): [True: 0, False: 0]
  ------------------
  254|      0|            || in != out
  ------------------
  |  Branch (254:16): [True: 0, False: 0]
  ------------------
  255|      0|            || outsize < inl
  ------------------
  |  Branch (255:16): [True: 0, False: 0]
  ------------------
  256|      0|            || !ctx->pad) {
  ------------------
  |  Branch (256:16): [True: 0, False: 0]
  ------------------
  257|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_CIPHER_OPERATION_FAILED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  258|      0|            return 0;
  259|      0|        }
  260|       |
  261|      0|        if (ctx->enc) {
  ------------------
  |  Branch (261:13): [True: 0, False: 0]
  ------------------
  262|      0|            unsigned char padval;
  263|      0|            size_t padnum, loop;
  264|       |
  265|       |            /* Add padding */
  266|       |
  267|      0|            padnum = blksz - (inl % blksz);
  268|       |
  269|      0|            if (outsize < inl + padnum) {
  ------------------
  |  Branch (269:17): [True: 0, False: 0]
  ------------------
  270|      0|                ERR_raise(ERR_LIB_PROV, PROV_R_CIPHER_OPERATION_FAILED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  271|      0|                return 0;
  272|      0|            }
  273|       |
  274|      0|            if (padnum > MAX_PADDING) {
  ------------------
  |  |  230|      0|#define MAX_PADDING 256
  ------------------
  |  Branch (274:17): [True: 0, False: 0]
  ------------------
  275|      0|                ERR_raise(ERR_LIB_PROV, PROV_R_CIPHER_OPERATION_FAILED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  276|      0|                return 0;
  277|      0|            }
  278|      0|            padval = (unsigned char)(padnum - 1);
  279|      0|            if (ctx->tlsversion == SSL3_VERSION) {
  ------------------
  |  |   23|      0|#define SSL3_VERSION 0x0300
  ------------------
  |  Branch (279:17): [True: 0, False: 0]
  ------------------
  280|      0|                if (padnum > 1)
  ------------------
  |  Branch (280:21): [True: 0, False: 0]
  ------------------
  281|      0|                    memset(out + inl, 0, padnum - 1);
  282|      0|                *(out + inl + padnum - 1) = padval;
  283|      0|            } else {
  284|       |                /* we need to add 'padnum' padding bytes of value padval */
  285|      0|                for (loop = inl; loop < inl + padnum; loop++)
  ------------------
  |  Branch (285:34): [True: 0, False: 0]
  ------------------
  286|      0|                    out[loop] = padval;
  287|      0|            }
  288|      0|            inl += padnum;
  289|      0|        }
  290|       |
  291|      0|        if ((inl % blksz) != 0) {
  ------------------
  |  Branch (291:13): [True: 0, False: 0]
  ------------------
  292|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_CIPHER_OPERATION_FAILED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  293|      0|            return 0;
  294|      0|        }
  295|       |
  296|       |        /* Shouldn't normally fail */
  297|      0|        if (!ctx->hw->cipher(ctx, out, in, inl)) {
  ------------------
  |  Branch (297:13): [True: 0, False: 0]
  ------------------
  298|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_CIPHER_OPERATION_FAILED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  299|      0|            return 0;
  300|      0|        }
  301|       |
  302|      0|        if (ctx->alloced) {
  ------------------
  |  Branch (302:13): [True: 0, False: 0]
  ------------------
  303|      0|            OPENSSL_free(ctx->tlsmac);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  304|      0|            ctx->alloced = 0;
  305|      0|            ctx->tlsmac = NULL;
  306|      0|        }
  307|       |
  308|       |        /* This only fails if padding is publicly invalid */
  309|      0|        *outl = inl;
  310|      0|        if (!ctx->enc
  ------------------
  |  Branch (310:13): [True: 0, False: 0]
  ------------------
  311|      0|            && !ossl_cipher_tlsunpadblock(ctx->libctx, ctx->tlsversion,
  ------------------
  |  Branch (311:16): [True: 0, False: 0]
  ------------------
  312|      0|                out, outl,
  313|      0|                blksz, &ctx->tlsmac, &ctx->alloced,
  314|      0|                ctx->tlsmacsize, 0)) {
  315|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_CIPHER_OPERATION_FAILED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  316|      0|            return 0;
  317|      0|        }
  318|      0|        return 1;
  319|      0|    }
  320|       |
  321|  11.3k|    if (ctx->bufsz != 0)
  ------------------
  |  Branch (321:9): [True: 0, False: 11.3k]
  ------------------
  322|      0|        nextblocks = ossl_cipher_fillblock(ctx->buf, &ctx->bufsz, blksz,
  323|      0|            &in, &inl);
  324|  11.3k|    else
  325|  11.3k|        nextblocks = inl & ~(blksz - 1);
  326|       |
  327|       |    /*
  328|       |     * If we're decrypting and we end an update on a block boundary we hold
  329|       |     * the last block back in case this is the last update call and the last
  330|       |     * block is padded.
  331|       |     */
  332|  11.3k|    if (ctx->bufsz == blksz && (ctx->enc || inl > 0 || !ctx->pad)) {
  ------------------
  |  Branch (332:9): [True: 0, False: 11.3k]
  |  Branch (332:33): [True: 0, False: 0]
  |  Branch (332:45): [True: 0, False: 0]
  |  Branch (332:56): [True: 0, False: 0]
  ------------------
  333|      0|        if (outsize < blksz) {
  ------------------
  |  Branch (333:13): [True: 0, False: 0]
  ------------------
  334|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  335|      0|            return 0;
  336|      0|        }
  337|      0|        if (!ctx->hw->cipher(ctx, out, ctx->buf, blksz)) {
  ------------------
  |  Branch (337:13): [True: 0, False: 0]
  ------------------
  338|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_CIPHER_OPERATION_FAILED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  339|      0|            return 0;
  340|      0|        }
  341|      0|        ctx->bufsz = 0;
  342|      0|        outlint = blksz;
  343|      0|        out += blksz;
  344|      0|    }
  345|  11.3k|    if (nextblocks > 0) {
  ------------------
  |  Branch (345:9): [True: 11.3k, False: 0]
  ------------------
  346|  11.3k|        if (!ctx->enc && ctx->pad && nextblocks == inl) {
  ------------------
  |  Branch (346:13): [True: 0, False: 11.3k]
  |  Branch (346:26): [True: 0, False: 0]
  |  Branch (346:38): [True: 0, False: 0]
  ------------------
  347|      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 (347:17): [True: 0, False: 0]
  ------------------
  348|      0|                ERR_raise(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  349|      0|                return 0;
  350|      0|            }
  351|      0|            nextblocks -= blksz;
  352|      0|        }
  353|  11.3k|        outlint += nextblocks;
  354|  11.3k|        if (outsize < outlint) {
  ------------------
  |  Branch (354:13): [True: 0, False: 11.3k]
  ------------------
  355|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  356|      0|            return 0;
  357|      0|        }
  358|  11.3k|    }
  359|  11.3k|    if (nextblocks > 0) {
  ------------------
  |  Branch (359:9): [True: 11.3k, False: 0]
  ------------------
  360|  11.3k|        if (!ctx->hw->cipher(ctx, out, in, nextblocks)) {
  ------------------
  |  Branch (360:13): [True: 0, False: 11.3k]
  ------------------
  361|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_CIPHER_OPERATION_FAILED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  362|      0|            return 0;
  363|      0|        }
  364|  11.3k|        in += nextblocks;
  365|  11.3k|        inl -= nextblocks;
  366|  11.3k|    }
  367|  11.3k|    if (inl != 0
  ------------------
  |  Branch (367:9): [True: 0, False: 11.3k]
  ------------------
  368|      0|        && !ossl_cipher_trailingdata(ctx->buf, &ctx->bufsz, blksz, &in, &inl)) {
  ------------------
  |  Branch (368:12): [True: 0, False: 0]
  ------------------
  369|       |        /* ERR_raise already called */
  370|      0|        return 0;
  371|      0|    }
  372|       |
  373|  11.3k|    *outl = outlint;
  374|  11.3k|    return inl == 0;
  375|  11.3k|}
ossl_cipher_generic_stream_update:
  454|  11.1k|{
  455|  11.1k|    PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
  456|       |
  457|  11.1k|    if (!ctx->key_set) {
  ------------------
  |  Branch (457:9): [True: 0, False: 11.1k]
  ------------------
  458|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_NO_KEY_SET);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  459|      0|        return 0;
  460|      0|    }
  461|       |
  462|  11.1k|    if (inl == 0) {
  ------------------
  |  Branch (462:9): [True: 0, False: 11.1k]
  ------------------
  463|      0|        *outl = 0;
  464|      0|        return 1;
  465|      0|    }
  466|       |
  467|  11.1k|    if (outsize < inl) {
  ------------------
  |  Branch (467:9): [True: 0, False: 11.1k]
  ------------------
  468|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  469|      0|        return 0;
  470|      0|    }
  471|       |
  472|  11.1k|    if (!ctx->hw->cipher(ctx, out, in, inl)) {
  ------------------
  |  Branch (472:9): [True: 0, False: 11.1k]
  ------------------
  473|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_CIPHER_OPERATION_FAILED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  474|      0|        return 0;
  475|      0|    }
  476|       |
  477|  11.1k|    *outl = inl;
  478|  11.1k|    if (!ctx->enc && ctx->tlsversion > 0) {
  ------------------
  |  Branch (478:9): [True: 0, False: 11.1k]
  |  Branch (478:22): [True: 0, False: 0]
  ------------------
  479|       |        /*
  480|       |         * Remove any TLS padding. Only used by cipher_aes_cbc_hmac_sha1_hw.c and
  481|       |         * cipher_aes_cbc_hmac_sha256_hw.c
  482|       |         */
  483|      0|        if (ctx->removetlspad) {
  ------------------
  |  Branch (483:13): [True: 0, False: 0]
  ------------------
  484|       |            /*
  485|       |             * We should have already failed in the cipher() call above if this
  486|       |             * isn't true.
  487|       |             */
  488|      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 (488:17): [True: 0, False: 0]
  ------------------
  489|      0|                return 0;
  490|       |            /* The actual padding length */
  491|      0|            *outl -= out[inl - 1] + 1;
  492|      0|        }
  493|       |
  494|       |        /* TLS MAC and explicit IV if relevant. We should have already failed
  495|       |         * in the cipher() call above if *outl is too short.
  496|       |         */
  497|      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 (497:13): [True: 0, False: 0]
  ------------------
  498|      0|            return 0;
  499|      0|        *outl -= ctx->removetlsfixed;
  500|       |
  501|       |        /* Extract the MAC if there is one */
  502|      0|        if (ctx->tlsmacsize > 0) {
  ------------------
  |  Branch (502:13): [True: 0, False: 0]
  ------------------
  503|      0|            if (*outl < ctx->tlsmacsize)
  ------------------
  |  Branch (503:17): [True: 0, False: 0]
  ------------------
  504|      0|                return 0;
  505|       |
  506|      0|            ctx->tlsmac = out + *outl - ctx->tlsmacsize;
  507|      0|            *outl -= ctx->tlsmacsize;
  508|      0|        }
  509|      0|    }
  510|       |
  511|  11.1k|    return 1;
  512|  11.1k|}
ossl_cipher_common_get_ctx_params:
  559|     12|{
  560|     12|    if (p->ivlen != NULL && !OSSL_PARAM_set_size_t(p->ivlen, ctx->ivlen)) {
  ------------------
  |  Branch (560:9): [True: 3, False: 9]
  |  Branch (560:29): [True: 0, False: 3]
  ------------------
  561|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  562|      0|        return 0;
  563|      0|    }
  564|       |
  565|     12|    if (p->pad != NULL && !OSSL_PARAM_set_uint(p->pad, ctx->pad)) {
  ------------------
  |  Branch (565:9): [True: 0, False: 12]
  |  Branch (565:27): [True: 0, False: 0]
  ------------------
  566|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  567|      0|        return 0;
  568|      0|    }
  569|       |
  570|     12|    if (p->iv != NULL
  ------------------
  |  Branch (570:9): [True: 0, False: 12]
  ------------------
  571|      0|        && !OSSL_PARAM_set_octet_string_or_ptr(p->iv, ctx->oiv, ctx->ivlen)) {
  ------------------
  |  Branch (571:12): [True: 0, False: 0]
  ------------------
  572|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  573|      0|        return 0;
  574|      0|    }
  575|       |
  576|     12|    if (p->updiv != NULL
  ------------------
  |  Branch (576:9): [True: 0, False: 12]
  ------------------
  577|      0|        && !OSSL_PARAM_set_octet_string_or_ptr(p->updiv, ctx->iv, ctx->ivlen)) {
  ------------------
  |  Branch (577:12): [True: 0, False: 0]
  ------------------
  578|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  579|      0|        return 0;
  580|      0|    }
  581|       |
  582|     12|    if (p->num != NULL && !OSSL_PARAM_set_uint(p->num, ctx->num)) {
  ------------------
  |  Branch (582:9): [True: 0, False: 12]
  |  Branch (582:27): [True: 0, False: 0]
  ------------------
  583|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  584|      0|        return 0;
  585|      0|    }
  586|       |
  587|     12|    if (p->keylen != NULL && !OSSL_PARAM_set_size_t(p->keylen, ctx->keylen)) {
  ------------------
  |  Branch (587:9): [True: 9, False: 3]
  |  Branch (587:30): [True: 0, False: 9]
  ------------------
  588|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  589|      0|        return 0;
  590|      0|    }
  591|       |
  592|     12|    if (p->tlsmac != NULL
  ------------------
  |  Branch (592:9): [True: 0, False: 12]
  ------------------
  593|      0|        && !OSSL_PARAM_set_octet_ptr(p->tlsmac, ctx->tlsmac, ctx->tlsmacsize)) {
  ------------------
  |  Branch (593:12): [True: 0, False: 0]
  ------------------
  594|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  595|      0|        return 0;
  596|      0|    }
  597|     12|    return 1;
  598|     12|}
ossl_cipher_generic_get_ctx_params:
  601|     12|{
  602|     12|    PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
  603|     12|    struct ossl_cipher_get_ctx_param_list_st p;
  604|       |
  605|     12|    if (ctx == NULL || !cipher_generic_get_ctx_params_decoder(params, &p))
  ------------------
  |  Branch (605:9): [True: 0, False: 12]
  |  Branch (605:24): [True: 0, False: 12]
  ------------------
  606|      0|        return 0;
  607|     12|    return ossl_cipher_common_get_ctx_params(ctx, &p);
  608|     12|}
ossl_cipher_generic_set_ctx_params:
  663|  33.4k|{
  664|  33.4k|    PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
  665|  33.4k|    struct ossl_cipher_set_ctx_param_list_st p;
  666|       |
  667|  33.4k|    if (ossl_param_is_empty(params))
  ------------------
  |  Branch (667:9): [True: 33.4k, False: 0]
  ------------------
  668|  33.4k|        return 1;
  669|       |
  670|      0|    if (ctx == NULL || !cipher_generic_set_ctx_params_decoder(params, &p))
  ------------------
  |  Branch (670:9): [True: 0, False: 0]
  |  Branch (670:24): [True: 0, False: 0]
  ------------------
  671|      0|        return 0;
  672|      0|    return ossl_cipher_common_set_ctx_params(ctx, &p);
  673|      0|}
ossl_cipher_generic_initiv:
  677|  11.1k|{
  678|  11.1k|    if (ivlen != ctx->ivlen
  ------------------
  |  Branch (678:9): [True: 0, False: 11.1k]
  ------------------
  679|  11.1k|        || ivlen > sizeof(ctx->iv)) {
  ------------------
  |  Branch (679:12): [True: 0, False: 11.1k]
  ------------------
  680|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_IV_LENGTH);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  681|      0|        return 0;
  682|      0|    }
  683|  11.1k|    ctx->iv_set = 1;
  684|  11.1k|    memcpy(ctx->iv, iv, ivlen);
  685|  11.1k|    memcpy(ctx->oiv, iv, ivlen);
  686|  11.1k|    return 1;
  687|  11.1k|}
ossl_cipher_generic_initkey:
  693|      9|{
  694|      9|    PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx;
  695|       |
  696|      9|    if ((flags & PROV_CIPHER_FLAG_INVERSE_CIPHER) != 0)
  ------------------
  |  |   46|      9|#define PROV_CIPHER_FLAG_INVERSE_CIPHER 0x0200
  ------------------
  |  Branch (696:9): [True: 0, False: 9]
  ------------------
  697|      0|        ctx->inverse_cipher = 1;
  698|      9|    if ((flags & PROV_CIPHER_FLAG_VARIABLE_LENGTH) != 0)
  ------------------
  |  |   45|      9|#define PROV_CIPHER_FLAG_VARIABLE_LENGTH 0x0100
  ------------------
  |  Branch (698:9): [True: 0, False: 9]
  ------------------
  699|      0|        ctx->variable_keylength = 1;
  700|       |
  701|      9|    ctx->pad = 1;
  702|      9|    ctx->keylen = ((kbits) / 8);
  703|      9|    ctx->ivlen = ((ivbits) / 8);
  704|      9|    ctx->hw = hw;
  705|      9|    ctx->mode = mode;
  706|      9|    ctx->blocksize = blkbits / 8;
  707|      9|    if (provctx != NULL)
  ------------------
  |  Branch (707:9): [True: 9, False: 0]
  ------------------
  708|      9|        ctx->libctx = PROV_LIBCTX_OF(provctx); /* used for rand */
  ------------------
  |  |   31|      9|    ossl_prov_ctx_get0_libctx((provctx))
  ------------------
  709|      9|}
ciphercommon.c:cipher_generic_init_internal:
  155|  33.4k|{
  156|  33.4k|    ctx->num = 0;
  157|  33.4k|    ctx->bufsz = 0;
  158|  33.4k|    ctx->updated = 0;
  159|  33.4k|    ctx->enc = enc ? 1 : 0;
  ------------------
  |  Branch (159:16): [True: 33.4k, False: 0]
  ------------------
  160|       |
  161|  33.4k|    if (!ossl_prov_is_running())
  ------------------
  |  Branch (161:9): [True: 0, False: 33.4k]
  ------------------
  162|      0|        return 0;
  163|       |
  164|  33.4k|    if (iv != NULL && ctx->mode != EVP_CIPH_ECB_MODE) {
  ------------------
  |  |  210|  11.1k|#define EVP_CIPH_ECB_MODE 0x1
  ------------------
  |  Branch (164:9): [True: 11.1k, False: 22.3k]
  |  Branch (164:23): [True: 11.1k, False: 0]
  ------------------
  165|  11.1k|        if (!ossl_cipher_generic_initiv(ctx, iv, ivlen))
  ------------------
  |  Branch (165:13): [True: 0, False: 11.1k]
  ------------------
  166|      0|            return 0;
  167|  11.1k|    }
  168|  33.4k|    if (iv == NULL && ctx->iv_set
  ------------------
  |  Branch (168:9): [True: 22.3k, False: 11.1k]
  |  Branch (168:23): [True: 11.1k, False: 11.2k]
  ------------------
  169|  11.1k|        && (ctx->mode == EVP_CIPH_CBC_MODE
  ------------------
  |  |  211|  22.3k|#define EVP_CIPH_CBC_MODE 0x2
  ------------------
  |  Branch (169:13): [True: 0, False: 11.1k]
  ------------------
  170|  11.1k|            || ctx->mode == EVP_CIPH_CFB_MODE
  ------------------
  |  |  212|  22.3k|#define EVP_CIPH_CFB_MODE 0x3
  ------------------
  |  Branch (170:16): [True: 0, False: 11.1k]
  ------------------
  171|  11.1k|            || ctx->mode == EVP_CIPH_OFB_MODE))
  ------------------
  |  |  213|  11.1k|#define EVP_CIPH_OFB_MODE 0x4
  ------------------
  |  Branch (171:16): [True: 0, False: 11.1k]
  ------------------
  172|       |        /* reset IV for these modes to keep compatibility with 1.1.1 */
  173|      0|        memcpy(ctx->iv, ctx->oiv, ctx->ivlen);
  174|       |
  175|  33.4k|    if (key != NULL) {
  ------------------
  |  Branch (175:9): [True: 22.3k, False: 11.1k]
  ------------------
  176|  22.3k|        if (ctx->variable_keylength == 0) {
  ------------------
  |  Branch (176:13): [True: 22.3k, False: 0]
  ------------------
  177|  22.3k|            if (keylen != ctx->keylen) {
  ------------------
  |  Branch (177:17): [True: 0, False: 22.3k]
  ------------------
  178|      0|                ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_KEY_LENGTH);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  179|      0|                return 0;
  180|      0|            }
  181|  22.3k|        } else {
  182|      0|            ctx->keylen = keylen;
  183|      0|        }
  184|  22.3k|        if (!ctx->hw->init(ctx, key, ctx->keylen))
  ------------------
  |  Branch (184:13): [True: 0, False: 22.3k]
  ------------------
  185|      0|            return 0;
  186|  22.3k|        ctx->key_set = 1;
  187|  22.3k|    }
  188|  33.4k|    return ossl_cipher_generic_set_ctx_params(ctx, params);
  189|  33.4k|}

ciphercommon.c:ossl_cipher_generic_get_params_decoder:
   47|  5.68k|{
   48|  5.68k|    const char *s;
   49|       |
   50|  5.68k|    memset(r, 0, sizeof(*r));
   51|  5.68k|    if (p != NULL)
  ------------------
  |  Branch (51:9): [True: 5.68k, False: 0]
  ------------------
   52|  12.5k|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (52:16): [True: 6.85k, False: 5.68k]
  ------------------
   53|  6.85k|            switch(s[0]) {
   54|  5.55k|            default:
  ------------------
  |  Branch (54:13): [True: 5.55k, False: 1.30k]
  ------------------
   55|  5.55k|                break;
   56|  5.55k|            case 'a':
  ------------------
  |  Branch (56:13): [True: 130, False: 6.72k]
  ------------------
   57|    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]
  |  |  ------------------
  ------------------
   58|       |                    /* OSSL_CIPHER_PARAM_AEAD */
   59|    130|                    if (ossl_unlikely(r->aead != NULL)) {
  ------------------
  |  |   23|    130|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 130]
  |  |  ------------------
  ------------------
   60|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   61|      0|                                       "param %s is repeated", s);
   62|      0|                        return 0;
   63|      0|                    }
   64|    130|                    r->aead = (OSSL_PARAM *)p;
   65|    130|                }
   66|    130|                break;
   67|    130|            case 'b':
  ------------------
  |  Branch (67:13): [True: 130, False: 6.72k]
  ------------------
   68|    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]
  |  |  ------------------
  ------------------
   69|       |                    /* OSSL_CIPHER_PARAM_BLOCK_SIZE */
   70|    130|                    if (ossl_unlikely(r->bsize != NULL)) {
  ------------------
  |  |   23|    130|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 130]
  |  |  ------------------
  ------------------
   71|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   72|      0|                                       "param %s is repeated", s);
   73|      0|                        return 0;
   74|      0|                    }
   75|    130|                    r->bsize = (OSSL_PARAM *)p;
   76|    130|                }
   77|    130|                break;
   78|    260|            case 'c':
  ------------------
  |  Branch (78:13): [True: 260, False: 6.59k]
  ------------------
   79|    260|                switch(s[1]) {
   80|      0|                default:
  ------------------
  |  Branch (80:17): [True: 0, False: 260]
  ------------------
   81|      0|                    break;
   82|    130|                case 't':
  ------------------
  |  Branch (82:17): [True: 130, False: 130]
  ------------------
   83|    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]
  |  |  ------------------
  ------------------
   84|       |                        /* OSSL_CIPHER_PARAM_CTS */
   85|    130|                        if (ossl_unlikely(r->cts != NULL)) {
  ------------------
  |  |   23|    130|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 130]
  |  |  ------------------
  ------------------
   86|      0|                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   87|      0|                                           "param %s is repeated", s);
   88|      0|                            return 0;
   89|      0|                        }
   90|    130|                        r->cts = (OSSL_PARAM *)p;
   91|    130|                    }
   92|    130|                    break;
   93|    130|                case 'u':
  ------------------
  |  Branch (93:17): [True: 130, False: 130]
  ------------------
   94|    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]
  |  |  ------------------
  ------------------
   95|       |                        /* OSSL_CIPHER_PARAM_CUSTOM_IV */
   96|    130|                        if (ossl_unlikely(r->custiv != NULL)) {
  ------------------
  |  |   23|    130|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 130]
  |  |  ------------------
  ------------------
   97|      0|                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   98|      0|                                           "param %s is repeated", s);
   99|      0|                            return 0;
  100|      0|                        }
  101|    130|                        r->custiv = (OSSL_PARAM *)p;
  102|    130|                    }
  103|    260|                }
  104|    260|                break;
  105|    260|            case 'e':
  ------------------
  |  Branch (105:13): [True: 130, False: 6.72k]
  ------------------
  106|    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]
  |  |  ------------------
  ------------------
  107|       |                    /* OSSL_CIPHER_PARAM_ENCRYPT_THEN_MAC */
  108|    130|                    if (ossl_unlikely(r->etm != NULL)) {
  ------------------
  |  |   23|    130|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 130]
  |  |  ------------------
  ------------------
  109|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  110|      0|                                       "param %s is repeated", s);
  111|      0|                        return 0;
  112|      0|                    }
  113|    130|                    r->etm = (OSSL_PARAM *)p;
  114|    130|                }
  115|    130|                break;
  116|    130|            case 'h':
  ------------------
  |  Branch (116:13): [True: 130, False: 6.72k]
  ------------------
  117|    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]
  |  |  ------------------
  ------------------
  118|       |                    /* OSSL_CIPHER_PARAM_HAS_RAND_KEY */
  119|    130|                    if (ossl_unlikely(r->rand != NULL)) {
  ------------------
  |  |   23|    130|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 130]
  |  |  ------------------
  ------------------
  120|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  121|      0|                                       "param %s is repeated", s);
  122|      0|                        return 0;
  123|      0|                    }
  124|    130|                    r->rand = (OSSL_PARAM *)p;
  125|    130|                }
  126|    130|                break;
  127|    130|            case 'i':
  ------------------
  |  Branch (127:13): [True: 130, False: 6.72k]
  ------------------
  128|    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]
  |  |  ------------------
  ------------------
  129|       |                    /* OSSL_CIPHER_PARAM_IVLEN */
  130|    130|                    if (ossl_unlikely(r->ivlen != NULL)) {
  ------------------
  |  |   23|    130|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 130]
  |  |  ------------------
  ------------------
  131|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  132|      0|                                       "param %s is repeated", s);
  133|      0|                        return 0;
  134|      0|                    }
  135|    130|                    r->ivlen = (OSSL_PARAM *)p;
  136|    130|                }
  137|    130|                break;
  138|    130|            case 'k':
  ------------------
  |  Branch (138:13): [True: 130, False: 6.72k]
  ------------------
  139|    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]
  |  |  ------------------
  ------------------
  140|       |                    /* OSSL_CIPHER_PARAM_KEYLEN */
  141|    130|                    if (ossl_unlikely(r->keylen != NULL)) {
  ------------------
  |  |   23|    130|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 130]
  |  |  ------------------
  ------------------
  142|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  143|      0|                                       "param %s is repeated", s);
  144|      0|                        return 0;
  145|      0|                    }
  146|    130|                    r->keylen = (OSSL_PARAM *)p;
  147|    130|                }
  148|    130|                break;
  149|    130|            case 'm':
  ------------------
  |  Branch (149:13): [True: 130, False: 6.72k]
  ------------------
  150|    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]
  |  |  ------------------
  ------------------
  151|       |                    /* OSSL_CIPHER_PARAM_MODE */
  152|    130|                    if (ossl_unlikely(r->mode != NULL)) {
  ------------------
  |  |   23|    130|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 130]
  |  |  ------------------
  ------------------
  153|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  154|      0|                                       "param %s is repeated", s);
  155|      0|                        return 0;
  156|      0|                    }
  157|    130|                    r->mode = (OSSL_PARAM *)p;
  158|    130|                }
  159|    130|                break;
  160|    130|            case 't':
  ------------------
  |  Branch (160:13): [True: 130, False: 6.72k]
  ------------------
  161|    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]
  |  |  ------------------
  ------------------
  162|       |                    /* OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK */
  163|    130|                    if (ossl_unlikely(r->mb != NULL)) {
  ------------------
  |  |   23|    130|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 130]
  |  |  ------------------
  ------------------
  164|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  165|      0|                                       "param %s is repeated", s);
  166|      0|                        return 0;
  167|      0|                    }
  168|    130|                    r->mb = (OSSL_PARAM *)p;
  169|    130|                }
  170|  6.85k|            }
  171|  5.68k|    return 1;
  172|  5.68k|}
ciphercommon.c:cipher_generic_get_ctx_params_decoder:
  205|     12|{
  206|     12|    const char *s;
  207|       |
  208|     12|    memset(r, 0, sizeof(*r));
  209|     12|    if (p != NULL)
  ------------------
  |  Branch (209:9): [True: 12, False: 0]
  ------------------
  210|     24|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (210:16): [True: 12, False: 12]
  ------------------
  211|     12|            switch(s[0]) {
  212|      0|            default:
  ------------------
  |  Branch (212:13): [True: 0, False: 12]
  ------------------
  213|      0|                break;
  214|      3|            case 'i':
  ------------------
  |  Branch (214:13): [True: 3, False: 9]
  ------------------
  215|      3|                switch(s[1]) {
  216|      0|                default:
  ------------------
  |  Branch (216:17): [True: 0, False: 3]
  ------------------
  217|      0|                    break;
  218|      3|                case 'v':
  ------------------
  |  Branch (218:17): [True: 3, False: 0]
  ------------------
  219|      3|                    switch(s[2]) {
  220|      0|                    default:
  ------------------
  |  Branch (220:21): [True: 0, False: 3]
  ------------------
  221|      0|                        break;
  222|      3|                    case 'l':
  ------------------
  |  Branch (222:21): [True: 3, False: 0]
  ------------------
  223|      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]
  |  |  ------------------
  ------------------
  224|       |                            /* OSSL_CIPHER_PARAM_IVLEN */
  225|      3|                            if (ossl_unlikely(r->ivlen != NULL)) {
  ------------------
  |  |   23|      3|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 3]
  |  |  ------------------
  ------------------
  226|      0|                                ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  227|      0|                                               "param %s is repeated", s);
  228|      0|                                return 0;
  229|      0|                            }
  230|      3|                            r->ivlen = (OSSL_PARAM *)p;
  231|      3|                        }
  232|      3|                        break;
  233|      3|                    case '\0':
  ------------------
  |  Branch (233:21): [True: 0, False: 3]
  ------------------
  234|      0|                        if (ossl_unlikely(r->iv != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  235|      0|                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  236|      0|                                           "param %s is repeated", s);
  237|      0|                            return 0;
  238|      0|                        }
  239|      0|                        r->iv = (OSSL_PARAM *)p;
  240|      3|                    }
  241|      3|                }
  242|      3|                break;
  243|      9|            case 'k':
  ------------------
  |  Branch (243:13): [True: 9, False: 3]
  ------------------
  244|      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]
  |  |  ------------------
  ------------------
  245|       |                    /* OSSL_CIPHER_PARAM_KEYLEN */
  246|      9|                    if (ossl_unlikely(r->keylen != NULL)) {
  ------------------
  |  |   23|      9|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 9]
  |  |  ------------------
  ------------------
  247|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  248|      0|                                       "param %s is repeated", s);
  249|      0|                        return 0;
  250|      0|                    }
  251|      9|                    r->keylen = (OSSL_PARAM *)p;
  252|      9|                }
  253|      9|                break;
  254|      9|            case 'n':
  ------------------
  |  Branch (254:13): [True: 0, False: 12]
  ------------------
  255|      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]
  |  |  ------------------
  ------------------
  256|       |                    /* OSSL_CIPHER_PARAM_NUM */
  257|      0|                    if (ossl_unlikely(r->num != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  258|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  259|      0|                                       "param %s is repeated", s);
  260|      0|                        return 0;
  261|      0|                    }
  262|      0|                    r->num = (OSSL_PARAM *)p;
  263|      0|                }
  264|      0|                break;
  265|      0|            case 'p':
  ------------------
  |  Branch (265:13): [True: 0, False: 12]
  ------------------
  266|      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]
  |  |  ------------------
  ------------------
  267|       |                    /* OSSL_CIPHER_PARAM_PADDING */
  268|      0|                    if (ossl_unlikely(r->pad != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  269|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  270|      0|                                       "param %s is repeated", s);
  271|      0|                        return 0;
  272|      0|                    }
  273|      0|                    r->pad = (OSSL_PARAM *)p;
  274|      0|                }
  275|      0|                break;
  276|      0|            case 't':
  ------------------
  |  Branch (276:13): [True: 0, False: 12]
  ------------------
  277|      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]
  |  |  ------------------
  ------------------
  278|       |                    /* OSSL_CIPHER_PARAM_TLS_MAC */
  279|      0|                    if (ossl_unlikely(r->tlsmac != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  280|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  281|      0|                                       "param %s is repeated", s);
  282|      0|                        return 0;
  283|      0|                    }
  284|      0|                    r->tlsmac = (OSSL_PARAM *)p;
  285|      0|                }
  286|      0|                break;
  287|      0|            case 'u':
  ------------------
  |  Branch (287:13): [True: 0, False: 12]
  ------------------
  288|      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]
  |  |  ------------------
  ------------------
  289|       |                    /* OSSL_CIPHER_PARAM_UPDATED_IV */
  290|      0|                    if (ossl_unlikely(r->updiv != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  291|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  292|      0|                                       "param %s is repeated", s);
  293|      0|                        return 0;
  294|      0|                    }
  295|      0|                    r->updiv = (OSSL_PARAM *)p;
  296|      0|                }
  297|     12|            }
  298|     12|    return 1;
  299|     12|}

ossl_ccm_gettable_ctx_params:
  150|      7|{
  151|      7|    return ossl_cipher_ccm_get_ctx_params_list;
  152|      7|}

ossl_gcm_gettable_ctx_params:
  149|      7|{
  150|      7|    return ossl_cipher_gcm_get_ctx_params_list;
  151|      7|}

ossl_cipher_hw_generic_ctr:
  112|  11.1k|{
  113|  11.1k|    unsigned int num = dat->num;
  114|       |
  115|  11.1k|    if (dat->stream.ctr)
  ------------------
  |  Branch (115:9): [True: 11.1k, False: 0]
  ------------------
  116|  11.1k|        CRYPTO_ctr128_encrypt_ctr32(in, out, len, dat->ks, dat->iv, dat->buf,
  117|  11.1k|            &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|  11.1k|    dat->num = num;
  122|       |
  123|  11.1k|    return 1;
  124|  11.1k|}

blake2_prov.c:blake2s256_get_params:
  166|      1|    {                                                                                                             \
  167|      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
  ------------------
  168|      1|    }                                                                                                             \
blake2_prov.c:blake2b512_get_params:
  166|      1|    {                                                                                                             \
  167|      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
  ------------------
  168|      1|    }                                                                                                             \

ossl_digest_default_get_params:
   20|     30|{
   21|     30|    struct digest_default_get_params_st p;
   22|       |
   23|     30|    if (!digest_default_get_params_decoder(params, &p))
  ------------------
  |  Branch (23:9): [True: 0, False: 30]
  ------------------
   24|      0|        return 0;
   25|       |
   26|     30|    if (p.bsize != NULL && !OSSL_PARAM_set_size_t(p.bsize, blksz)) {
  ------------------
  |  Branch (26:9): [True: 30, False: 0]
  |  Branch (26:28): [True: 0, False: 30]
  ------------------
   27|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   28|      0|        return 0;
   29|      0|    }
   30|     30|    if (p.size != NULL && !OSSL_PARAM_set_size_t(p.size, paramsz)) {
  ------------------
  |  Branch (30:9): [True: 30, False: 0]
  |  Branch (30:27): [True: 0, False: 30]
  ------------------
   31|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   32|      0|        return 0;
   33|      0|    }
   34|     30|    if (p.xof != NULL
  ------------------
  |  Branch (34:9): [True: 30, False: 0]
  ------------------
   35|     30|        && !OSSL_PARAM_set_int(p.xof, (flags & PROV_DIGEST_FLAG_XOF) != 0)) {
  ------------------
  |  |   19|     30|#define PROV_DIGEST_FLAG_XOF 0x0001
  ------------------
  |  Branch (35:12): [True: 0, False: 30]
  ------------------
   36|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   37|      0|        return 0;
   38|      0|    }
   39|     30|    if (p.aldid != NULL
  ------------------
  |  Branch (39:9): [True: 30, False: 0]
  ------------------
   40|     30|        && !OSSL_PARAM_set_int(p.aldid, (flags & PROV_DIGEST_FLAG_ALGID_ABSENT) != 0)) {
  ------------------
  |  |   20|     30|#define PROV_DIGEST_FLAG_ALGID_ABSENT 0x0002
  ------------------
  |  Branch (40:12): [True: 0, False: 30]
  ------------------
   41|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_SET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   42|      0|        return 0;
   43|      0|    }
   44|     30|    return 1;
   45|     30|}

digestcommon.c:digest_default_get_params_decoder:
   35|     30|{
   36|     30|    const char *s;
   37|       |
   38|     30|    memset(r, 0, sizeof(*r));
   39|     30|    if (p != NULL)
  ------------------
  |  Branch (39:9): [True: 30, False: 0]
  ------------------
   40|    150|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (40:16): [True: 120, False: 30]
  ------------------
   41|    120|            switch(s[0]) {
   42|      0|            default:
  ------------------
  |  Branch (42:13): [True: 0, False: 120]
  ------------------
   43|      0|                break;
   44|     30|            case 'a':
  ------------------
  |  Branch (44:13): [True: 30, False: 90]
  ------------------
   45|     30|                if (ossl_likely(strcmp("lgid-absent", s + 1) == 0)) {
  ------------------
  |  |   22|     30|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 30, False: 0]
  |  |  ------------------
  ------------------
   46|       |                    /* OSSL_DIGEST_PARAM_ALGID_ABSENT */
   47|     30|                    if (ossl_unlikely(r->aldid != NULL)) {
  ------------------
  |  |   23|     30|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 30]
  |  |  ------------------
  ------------------
   48|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   49|      0|                                       "param %s is repeated", s);
   50|      0|                        return 0;
   51|      0|                    }
   52|     30|                    r->aldid = (OSSL_PARAM *)p;
   53|     30|                }
   54|     30|                break;
   55|     30|            case 'b':
  ------------------
  |  Branch (55:13): [True: 30, False: 90]
  ------------------
   56|     30|                if (ossl_likely(strcmp("locksize", s + 1) == 0)) {
  ------------------
  |  |   22|     30|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 30, False: 0]
  |  |  ------------------
  ------------------
   57|       |                    /* OSSL_DIGEST_PARAM_BLOCK_SIZE */
   58|     30|                    if (ossl_unlikely(r->bsize != NULL)) {
  ------------------
  |  |   23|     30|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 30]
  |  |  ------------------
  ------------------
   59|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   60|      0|                                       "param %s is repeated", s);
   61|      0|                        return 0;
   62|      0|                    }
   63|     30|                    r->bsize = (OSSL_PARAM *)p;
   64|     30|                }
   65|     30|                break;
   66|     30|            case 's':
  ------------------
  |  Branch (66:13): [True: 30, False: 90]
  ------------------
   67|     30|                if (ossl_likely(strcmp("ize", s + 1) == 0)) {
  ------------------
  |  |   22|     30|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 30, False: 0]
  |  |  ------------------
  ------------------
   68|       |                    /* OSSL_DIGEST_PARAM_SIZE */
   69|     30|                    if (ossl_unlikely(r->size != NULL)) {
  ------------------
  |  |   23|     30|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 30]
  |  |  ------------------
  ------------------
   70|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   71|      0|                                       "param %s is repeated", s);
   72|      0|                        return 0;
   73|      0|                    }
   74|     30|                    r->size = (OSSL_PARAM *)p;
   75|     30|                }
   76|     30|                break;
   77|     30|            case 'x':
  ------------------
  |  Branch (77:13): [True: 30, False: 90]
  ------------------
   78|     30|                if (ossl_likely(strcmp("of", s + 1) == 0)) {
  ------------------
  |  |   22|     30|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 30, False: 0]
  |  |  ------------------
  ------------------
   79|       |                    /* OSSL_DIGEST_PARAM_XOF */
   80|     30|                    if (ossl_unlikely(r->xof != NULL)) {
  ------------------
  |  |   23|     30|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 30]
  |  |  ------------------
  ------------------
   81|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   82|      0|                                       "param %s is repeated", s);
   83|      0|                        return 0;
   84|      0|                    }
   85|     30|                    r->xof = (OSSL_PARAM *)p;
   86|     30|                }
   87|    120|            }
   88|     30|    return 1;
   89|     30|}

ml_dsa_mu_prov.c:mu_get_params:
  136|      1|{
  137|      1|    return ossl_digest_default_get_params(params, SHA3_BLOCKSIZE(256),
  ------------------
  |  |   21|      1|#define SHA3_BLOCKSIZE(bitlen) (KECCAK1600_WIDTH - bitlen * 2) / 8
  |  |  ------------------
  |  |  |  |   18|      1|#define KECCAK1600_WIDTH 1600
  |  |  ------------------
  ------------------
  138|      1|        SHAKE256_SIZE, SHAKE_FLAGS);
  ------------------
  |  |   36|      1|#define SHAKE256_SIZE 64
  ------------------
                      SHAKE256_SIZE, SHAKE_FLAGS);
  ------------------
  |  |   37|      1|#define SHAKE_FLAGS (PROV_DIGEST_FLAG_ALGID_ABSENT)
  |  |  ------------------
  |  |  |  |   20|      1|#define PROV_DIGEST_FLAG_ALGID_ABSENT 0x0002
  |  |  ------------------
  ------------------
  139|      1|}

sha3_prov.c:keccak_update:
  115|  6.84k|{
  116|  6.84k|    return ossl_sha3_absorb((KECCAK1600_CTX *)vctx, inp, len);
  117|  6.84k|}
sha3_prov.c:keccak_final:
  121|  2.73k|{
  122|  2.73k|    int ret = 1;
  123|  2.73k|    KECCAK1600_CTX *ctx = vctx;
  124|       |
  125|  2.73k|    if (ossl_unlikely(!ossl_prov_is_running()))
  ------------------
  |  |   23|  2.73k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 2.73k]
  |  |  ------------------
  ------------------
  126|      0|        return 0;
  127|  2.73k|    if (ossl_unlikely(ctx->md_size == SIZE_MAX)) {
  ------------------
  |  |   23|  2.73k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 2.73k]
  |  |  ------------------
  ------------------
  128|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_DIGEST_LENGTH);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  129|      0|        return 0;
  130|      0|    }
  131|  2.73k|    ret = ossl_sha3_final(ctx, out, ctx->md_size);
  132|  2.73k|    *outl = ctx->md_size;
  133|  2.73k|    return ret;
  134|  2.73k|}
sha3_prov.c:keccak_freectx:
  503|  1.36k|{
  504|  1.36k|    KECCAK1600_CTX *ctx = (KECCAK1600_CTX *)vctx;
  505|       |
  506|  1.36k|    OPENSSL_clear_free(ctx, sizeof(*ctx));
  ------------------
  |  |  130|  1.36k|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  507|  1.36k|}
sha3_prov.c:keccak_init:
  100|  5.81k|{
  101|  5.81k|    if (ossl_unlikely(!ossl_prov_is_running()))
  ------------------
  |  |   23|  5.81k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 5.81k]
  |  |  ------------------
  ------------------
  102|      0|        return 0;
  103|       |    /* The newctx() handles most of the ctx fixed setup. */
  104|  5.81k|    ossl_sha3_reset((KECCAK1600_CTX *)vctx);
  105|  5.81k|    return 1;
  106|  5.81k|}
sha3_prov.c:shake_squeeze:
  138|  9.25k|{
  139|  9.25k|    int ret = 1;
  140|  9.25k|    KECCAK1600_CTX *ctx = vctx;
  141|       |
  142|  9.25k|    if (!ossl_prov_is_running())
  ------------------
  |  Branch (142:9): [True: 0, False: 9.25k]
  ------------------
  143|      0|        return 0;
  144|  9.25k|    if (ctx->meth.squeeze == NULL)
  ------------------
  |  Branch (144:9): [True: 0, False: 9.25k]
  ------------------
  145|      0|        return 0;
  146|  9.25k|    if (outlen > 0)
  ------------------
  |  Branch (146:9): [True: 9.25k, False: 0]
  ------------------
  147|  9.25k|        ret = ossl_sha3_squeeze(ctx, out, outlen);
  148|  9.25k|    if (outl != NULL)
  ------------------
  |  Branch (148:9): [True: 9.25k, False: 0]
  ------------------
  149|  9.25k|        *outl = outlen;
  150|  9.25k|    return ret;
  151|  9.25k|}
sha3_prov.c:keccak_init_params:
  109|  5.13k|{
  110|  5.13k|    return keccak_init(vctx, NULL)
  ------------------
  |  Branch (110:12): [True: 5.13k, False: 0]
  ------------------
  111|  5.13k|        && shake_set_ctx_params(vctx, params);
  ------------------
  |  Branch (111:12): [True: 5.13k, False: 0]
  ------------------
  112|  5.13k|}
sha3_prov.c:shake_set_ctx_params:
  692|  7.18k|{
  693|  7.18k|    struct shake_set_ctx_params_st p;
  694|  7.18k|    KECCAK1600_CTX *ctx = (KECCAK1600_CTX *)vctx;
  695|       |
  696|  7.18k|    if (ossl_unlikely(ctx == NULL || !shake_set_ctx_params_decoder(params, &p)))
  ------------------
  |  |   23|  14.3k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 7.18k]
  |  |  |  Branch (23:46): [True: 0, False: 7.18k]
  |  |  |  Branch (23:46): [True: 0, False: 7.18k]
  |  |  ------------------
  ------------------
  697|      0|        return 0;
  698|       |
  699|  7.18k|    if (ossl_unlikely(p.xoflen != NULL
  ------------------
  |  |   23|  9.23k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 7.18k]
  |  |  |  Branch (23:46): [True: 2.05k, False: 5.13k]
  |  |  |  Branch (23:46): [True: 0, False: 2.05k]
  |  |  ------------------
  ------------------
  700|  7.18k|            && !OSSL_PARAM_get_size_t(p.xoflen, &ctx->md_size))) {
  701|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  702|      0|        return 0;
  703|      0|    }
  704|  7.18k|    return 1;
  705|  7.18k|}

sha3_prov.c:shake_set_ctx_params_decoder:
   85|  7.18k|{
   86|  7.18k|    const char *s;
   87|       |
   88|  7.18k|    memset(r, 0, sizeof(*r));
   89|  7.18k|    if (p != NULL)
  ------------------
  |  Branch (89:9): [True: 2.05k, False: 5.13k]
  ------------------
   90|  4.10k|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (90:16): [True: 2.05k, False: 2.05k]
  ------------------
   91|  2.05k|            switch(s[0]) {
   92|      0|            default:
  ------------------
  |  Branch (92:13): [True: 0, False: 2.05k]
  ------------------
   93|      0|                break;
   94|      0|            case 's':
  ------------------
  |  Branch (94:13): [True: 0, False: 2.05k]
  ------------------
   95|      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]
  |  |  ------------------
  ------------------
   96|       |                    /* OSSL_DIGEST_PARAM_SIZE */
   97|      0|                    if (ossl_unlikely(r->xoflen != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
   98|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   99|      0|                                       "param %s is repeated", s);
  100|      0|                        return 0;
  101|      0|                    }
  102|      0|                    r->xoflen = (OSSL_PARAM *)p;
  103|      0|                }
  104|      0|                break;
  105|  2.05k|            case 'x':
  ------------------
  |  Branch (105:13): [True: 2.05k, False: 0]
  ------------------
  106|  2.05k|                if (ossl_likely(strcmp("oflen", s + 1) == 0)) {
  ------------------
  |  |   22|  2.05k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 2.05k, False: 0]
  |  |  ------------------
  ------------------
  107|       |                    /* OSSL_DIGEST_PARAM_XOFLEN */
  108|  2.05k|                    if (ossl_unlikely(r->xoflen != NULL)) {
  ------------------
  |  |   23|  2.05k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 2.05k]
  |  |  ------------------
  ------------------
  109|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  110|      0|                                       "param %s is repeated", s);
  111|      0|                        return 0;
  112|      0|                    }
  113|  2.05k|                    r->xoflen = (OSSL_PARAM *)p;
  114|  2.05k|                }
  115|  2.05k|            }
  116|  7.18k|    return 1;
  117|  7.18k|}

decode_der2key.c:der2key_newctx:
  164|   110k|{
  165|   110k|    struct der2key_ctx_st *ctx = OPENSSL_zalloc(sizeof(*ctx));
  ------------------
  |  |  109|   110k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  166|       |
  167|   110k|    if (ctx != NULL) {
  ------------------
  |  Branch (167:9): [True: 110k, False: 0]
  ------------------
  168|   110k|        ctx->provctx = provctx;
  169|   110k|        ctx->desc = desc;
  170|   110k|    }
  171|   110k|    return ctx;
  172|   110k|}
decode_der2key.c:der2key_freectx:
  197|   110k|{
  198|   110k|    struct der2key_ctx_st *ctx = vctx;
  199|       |
  200|   110k|    OPENSSL_free(ctx);
  ------------------
  |  |  132|   110k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  201|   110k|}
decode_der2key.c:PrivateKeyInfo_der2dh_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:der2key_check_selection:
  205|    138|{
  206|       |    /*
  207|       |     * The selections are kinda sorta "levels", i.e. each selection given
  208|       |     * here is assumed to include those following.
  209|       |     */
  210|    138|    int checks[] = {
  211|    138|        OSSL_KEYMGMT_SELECT_PRIVATE_KEY,
  ------------------
  |  |  646|    138|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  ------------------
  212|    138|        OSSL_KEYMGMT_SELECT_PUBLIC_KEY,
  ------------------
  |  |  647|    138|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  ------------------
  213|    138|        OSSL_KEYMGMT_SELECT_ALL_PARAMETERS
  ------------------
  |  |  653|    138|    (OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS \
  |  |  ------------------
  |  |  |  |  648|    138|#define OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS 0x04
  |  |  ------------------
  |  |  654|    138|        | OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS)
  |  |  ------------------
  |  |  |  |  649|    138|#define OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS 0x80
  |  |  ------------------
  ------------------
  214|    138|    };
  215|    138|    size_t i;
  216|       |
  217|       |    /* The decoder implementations made here support guessing */
  218|    138|    if (selection == 0)
  ------------------
  |  Branch (218:9): [True: 0, False: 138]
  ------------------
  219|      0|        return 1;
  220|       |
  221|    276|    for (i = 0; i < OSSL_NELEM(checks); i++) {
  ------------------
  |  |   14|    276|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (221:17): [True: 276, False: 0]
  ------------------
  222|    276|        int check1 = (selection & checks[i]) != 0;
  223|    276|        int check2 = (desc->selection_mask & checks[i]) != 0;
  224|       |
  225|       |        /*
  226|       |         * If the caller asked for the currently checked bit(s), return
  227|       |         * whether the decoder description says it's supported.
  228|       |         */
  229|    276|        if (check1)
  ------------------
  |  Branch (229:13): [True: 138, False: 138]
  ------------------
  230|    138|            return check2;
  231|    276|    }
  232|       |
  233|       |    /* This should be dead code, but just to be safe... */
  234|      0|    return 0;
  235|    138|}
decode_der2key.c:der2key_decode:
  240|  41.3k|{
  241|  41.3k|    struct der2key_ctx_st *ctx = vctx;
  242|  41.3k|    unsigned char *der = NULL;
  243|  41.3k|    const unsigned char *derp;
  244|  41.3k|    long der_len = 0;
  245|  41.3k|    void *key = NULL;
  246|  41.3k|    int ok = 0;
  247|       |
  248|  41.3k|    ctx->selection = selection;
  249|       |    /*
  250|       |     * The caller is allowed to specify 0 as a selection mask, to have the
  251|       |     * structure and key type guessed.  For type-specific structures, this
  252|       |     * is not recommended, as some structures are very similar.
  253|       |     * Note that 0 isn't the same as OSSL_KEYMGMT_SELECT_ALL, as the latter
  254|       |     * signifies a private key structure, where everything else is assumed
  255|       |     * to be present as well.
  256|       |     */
  257|  41.3k|    if (selection == 0)
  ------------------
  |  Branch (257:9): [True: 0, False: 41.3k]
  ------------------
  258|      0|        selection = ctx->desc->selection_mask;
  259|  41.3k|    if ((selection & ctx->desc->selection_mask) == 0) {
  ------------------
  |  Branch (259:9): [True: 0, False: 41.3k]
  ------------------
  260|      0|        ERR_raise(ERR_LIB_PROV, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  261|      0|        return 0;
  262|      0|    }
  263|       |
  264|  41.3k|    ok = ossl_read_der(ctx->provctx, cin, &der, &der_len);
  265|  41.3k|    if (!ok)
  ------------------
  |  Branch (265:9): [True: 0, False: 41.3k]
  ------------------
  266|      0|        goto next;
  267|       |
  268|  41.3k|    ok = 0; /* Assume that we fail */
  269|       |
  270|  41.3k|    ERR_set_mark();
  271|  41.3k|    if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) {
  ------------------
  |  |  646|  41.3k|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  ------------------
  |  Branch (271:9): [True: 0, False: 41.3k]
  ------------------
  272|      0|        derp = der;
  273|      0|        if (ctx->desc->d2i_PKCS8 != NULL) {
  ------------------
  |  Branch (273:13): [True: 0, False: 0]
  ------------------
  274|      0|            key = ctx->desc->d2i_PKCS8(&derp, der_len, ctx);
  275|      0|            if (ctx->flag_fatal) {
  ------------------
  |  Branch (275:17): [True: 0, False: 0]
  ------------------
  276|      0|                ERR_clear_last_mark();
  277|      0|                goto end;
  278|      0|            }
  279|      0|        } else if (ctx->desc->d2i_private_key != NULL) {
  ------------------
  |  Branch (279:20): [True: 0, False: 0]
  ------------------
  280|      0|            key = ctx->desc->d2i_private_key(NULL, &derp, der_len);
  281|      0|        }
  282|      0|        if (key == NULL && ctx->selection != 0) {
  ------------------
  |  Branch (282:13): [True: 0, False: 0]
  |  Branch (282:28): [True: 0, False: 0]
  ------------------
  283|      0|            ERR_clear_last_mark();
  284|      0|            goto next;
  285|      0|        }
  286|      0|    }
  287|  41.3k|    if (key == NULL && (selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) {
  ------------------
  |  |  647|  41.3k|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  ------------------
  |  Branch (287:9): [True: 41.3k, False: 0]
  |  Branch (287:24): [True: 41.3k, False: 0]
  ------------------
  288|  41.3k|        derp = der;
  289|  41.3k|        if (ctx->desc->d2i_PUBKEY != NULL)
  ------------------
  |  Branch (289:13): [True: 41.3k, False: 0]
  ------------------
  290|  41.3k|            key = ctx->desc->d2i_PUBKEY(&derp, der_len, ctx);
  291|      0|        else if (ctx->desc->d2i_public_key != NULL)
  ------------------
  |  Branch (291:18): [True: 0, False: 0]
  ------------------
  292|      0|            key = ctx->desc->d2i_public_key(NULL, &derp, der_len);
  293|  41.3k|        if (key == NULL && ctx->selection != 0) {
  ------------------
  |  Branch (293:13): [True: 0, False: 41.3k]
  |  Branch (293:28): [True: 0, False: 0]
  ------------------
  294|      0|            ERR_clear_last_mark();
  295|      0|            goto next;
  296|      0|        }
  297|  41.3k|    }
  298|  41.3k|    if (key == NULL && (selection & OSSL_KEYMGMT_SELECT_ALL_PARAMETERS) != 0) {
  ------------------
  |  |  653|      0|    (OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS \
  |  |  ------------------
  |  |  |  |  648|      0|#define OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS 0x04
  |  |  ------------------
  |  |  654|      0|        | OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS)
  |  |  ------------------
  |  |  |  |  649|      0|#define OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS 0x80
  |  |  ------------------
  ------------------
  |  Branch (298:9): [True: 0, False: 41.3k]
  |  Branch (298:24): [True: 0, False: 0]
  ------------------
  299|      0|        derp = der;
  300|      0|        if (ctx->desc->d2i_key_params != NULL)
  ------------------
  |  Branch (300:13): [True: 0, False: 0]
  ------------------
  301|      0|            key = ctx->desc->d2i_key_params(NULL, &derp, der_len);
  302|      0|        if (key == NULL && ctx->selection != 0) {
  ------------------
  |  Branch (302:13): [True: 0, False: 0]
  |  Branch (302:28): [True: 0, False: 0]
  ------------------
  303|      0|            ERR_clear_last_mark();
  304|      0|            goto next;
  305|      0|        }
  306|      0|    }
  307|  41.3k|    if (key == NULL)
  ------------------
  |  Branch (307:9): [True: 0, False: 41.3k]
  ------------------
  308|      0|        ERR_clear_last_mark();
  309|  41.3k|    else
  310|  41.3k|        ERR_pop_to_mark();
  311|       |
  312|       |    /*
  313|       |     * Last minute check to see if this was the correct type of key.  This
  314|       |     * should never lead to a fatal error, i.e. the decoding itself was
  315|       |     * correct, it was just an unexpected key type.  This is generally for
  316|       |     * classes of key types that have subtle variants, like RSA-PSS keys as
  317|       |     * opposed to plain RSA keys.
  318|       |     */
  319|  41.3k|    if (key != NULL
  ------------------
  |  Branch (319:9): [True: 41.3k, False: 0]
  ------------------
  320|  41.3k|        && ctx->desc->check_key != NULL
  ------------------
  |  Branch (320:12): [True: 41.3k, False: 0]
  ------------------
  321|  41.3k|        && !ctx->desc->check_key(key, ctx)) {
  ------------------
  |  Branch (321:12): [True: 0, False: 41.3k]
  ------------------
  322|      0|        ctx->desc->free_key(key);
  323|      0|        key = NULL;
  324|      0|    }
  325|       |
  326|  41.3k|    if (key != NULL && ctx->desc->adjust_key != NULL)
  ------------------
  |  Branch (326:9): [True: 41.3k, False: 0]
  |  Branch (326:24): [True: 41.3k, False: 0]
  ------------------
  327|  41.3k|        ctx->desc->adjust_key(key, ctx);
  328|       |
  329|  41.3k|next:
  330|       |    /*
  331|       |     * Indicated that we successfully decoded something, or not at all.
  332|       |     * Ending up "empty handed" is not an error.
  333|       |     */
  334|  41.3k|    ok = 1;
  335|       |
  336|       |    /*
  337|       |     * We free memory here so it's not held up during the callback, because
  338|       |     * we know the process is recursive and the allocated chunks of memory
  339|       |     * add up.
  340|       |     */
  341|  41.3k|    OPENSSL_free(der);
  ------------------
  |  |  132|  41.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  342|  41.3k|    der = NULL;
  343|       |
  344|  41.3k|    if (key != NULL) {
  ------------------
  |  Branch (344:9): [True: 41.3k, False: 0]
  ------------------
  345|  41.3k|        OSSL_PARAM params[4];
  346|  41.3k|        int object_type = OSSL_OBJECT_PKEY;
  ------------------
  |  |   29|  41.3k|#define OSSL_OBJECT_PKEY 2 /* EVP_PKEY * */
  ------------------
  347|       |
  348|  41.3k|        params[0] = OSSL_PARAM_construct_int(OSSL_OBJECT_PARAM_TYPE, &object_type);
  ------------------
  |  |  370|  41.3k|# define OSSL_OBJECT_PARAM_TYPE "type"
  ------------------
  349|       |
  350|  41.3k|#ifndef OPENSSL_NO_SM2
  351|  41.3k|        if (strcmp(ctx->desc->keytype_name, "EC") == 0
  ------------------
  |  Branch (351:13): [True: 13.3k, False: 28.0k]
  ------------------
  352|  13.3k|            && (EC_KEY_get_flags(key) & EC_FLAG_SM2_RANGE) != 0)
  ------------------
  |  |  962|  13.3k|#define EC_FLAG_SM2_RANGE 0x0004
  ------------------
  |  Branch (352:16): [True: 0, False: 13.3k]
  ------------------
  353|      0|            params[1] = OSSL_PARAM_construct_utf8_string(OSSL_OBJECT_PARAM_DATA_TYPE,
  ------------------
  |  |  366|      0|# define OSSL_OBJECT_PARAM_DATA_TYPE "data-type"
  ------------------
  354|      0|                "SM2", 0);
  355|  41.3k|        else
  356|  41.3k|#endif
  357|  41.3k|            params[1] = OSSL_PARAM_construct_utf8_string(OSSL_OBJECT_PARAM_DATA_TYPE,
  ------------------
  |  |  366|  41.3k|# define OSSL_OBJECT_PARAM_DATA_TYPE "data-type"
  ------------------
  358|  41.3k|                (char *)ctx->desc->keytype_name,
  359|  41.3k|                0);
  360|       |        /* The address of the key becomes the octet string */
  361|  41.3k|        params[2] = OSSL_PARAM_construct_octet_string(OSSL_OBJECT_PARAM_REFERENCE,
  ------------------
  |  |  369|  41.3k|# define OSSL_OBJECT_PARAM_REFERENCE "reference"
  ------------------
  362|  41.3k|            &key, sizeof(key));
  363|  41.3k|        params[3] = OSSL_PARAM_construct_end();
  364|       |
  365|  41.3k|        ok = data_cb(params, data_cbarg);
  366|  41.3k|    }
  367|       |
  368|  41.3k|end:
  369|  41.3k|    ctx->desc->free_key(key);
  370|  41.3k|    OPENSSL_free(der);
  ------------------
  |  |  132|  41.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  371|       |
  372|  41.3k|    return ok;
  373|  41.3k|}
decode_der2key.c:SubjectPublicKeyInfo_der2dh_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:type_specific_params_der2dh_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:DH_der2dh_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2dhx_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2dhx_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:type_specific_params_der2dhx_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:DHX_der2dhx_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2dsa_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2dsa_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:type_specific_der2dsa_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:DSA_der2dsa_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:ec_check:
  483|  13.3k|{
  484|       |    /* We're trying to be clever by comparing two truths */
  485|  13.3k|    int ret = 0;
  486|  13.3k|    int sm2 = (EC_KEY_get_flags(key) & EC_FLAG_SM2_RANGE) != 0;
  ------------------
  |  |  962|  13.3k|#define EC_FLAG_SM2_RANGE 0x0004
  ------------------
  487|       |
  488|  13.3k|    if (sm2)
  ------------------
  |  Branch (488:9): [True: 0, False: 13.3k]
  ------------------
  489|      0|        ret = ctx->desc->evp_type == EVP_PKEY_SM2
  ------------------
  |  |   74|      0|#define EVP_PKEY_SM2 NID_sm2
  |  |  ------------------
  |  |  |  | 1259|      0|#define NID_sm2         1172
  |  |  ------------------
  ------------------
  |  Branch (489:15): [True: 0, False: 0]
  ------------------
  490|      0|            || ctx->desc->evp_type == NID_X9_62_id_ecPublicKey;
  ------------------
  |  |  178|      0|#define NID_X9_62_id_ecPublicKey                408
  ------------------
  |  Branch (490:16): [True: 0, False: 0]
  ------------------
  491|  13.3k|    else
  492|  13.3k|        ret = ctx->desc->evp_type != EVP_PKEY_SM2;
  ------------------
  |  |   74|  13.3k|#define EVP_PKEY_SM2 NID_sm2
  |  |  ------------------
  |  |  |  | 1259|  13.3k|#define NID_sm2         1172
  |  |  ------------------
  ------------------
  493|       |
  494|  13.3k|    return ret;
  495|  13.3k|}
decode_der2key.c:ec_adjust:
  498|  13.3k|{
  499|  13.3k|    ossl_ec_key_set0_libctx(key, PROV_LIBCTX_OF(ctx->provctx));
  ------------------
  |  |   31|  13.3k|    ossl_prov_ctx_get0_libctx((provctx))
  ------------------
  500|  13.3k|}
decode_der2key.c:PrivateKeyInfo_der2ec_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2ec_newctx:
 1210|  13.3k|    {                                                                                                                 \
 1211|  13.3k|        return der2key_newctx(provctx, &kind##_##keytype##_desc);                                                     \
 1212|  13.3k|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2ec_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:type_specific_no_pub_der2ec_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:EC_der2ec_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2x25519_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2x25519_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2x448_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2x448_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2ed25519_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2ed25519_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2ed448_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2ed448_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2sm2_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2sm2_newctx:
 1210|  13.3k|    {                                                                                                                 \
 1211|  13.3k|        return der2key_newctx(provctx, &kind##_##keytype##_desc);                                                     \
 1212|  13.3k|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2sm2_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:type_specific_no_pub_der2sm2_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2ml_kem_512_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2ml_kem_512_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2ml_kem_768_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2ml_kem_768_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2ml_kem_1024_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2ml_kem_1024_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_sha2_128s_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_sha2_128f_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_sha2_192s_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_sha2_192f_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_sha2_256s_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_sha2_256f_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_shake_128s_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_shake_128f_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_shake_192s_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_shake_192f_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_shake_256s_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2slh_dsa_shake_256f_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_sha2_128s_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_sha2_128f_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_sha2_192s_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_sha2_192f_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_sha2_256s_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_sha2_256f_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_shake_128s_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_shake_128f_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_shake_192s_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_shake_192f_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_shake_256s_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2slh_dsa_shake_256f_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:rsa_check:
  909|  28.0k|{
  910|  28.0k|    int valid;
  911|       |
  912|  28.0k|    switch (RSA_test_flags(key, RSA_FLAG_TYPE_MASK)) {
  ------------------
  |  |  117|  28.0k|#define RSA_FLAG_TYPE_MASK 0xF000
  ------------------
  913|  28.0k|    case RSA_FLAG_TYPE_RSA:
  ------------------
  |  |  118|  28.0k|#define RSA_FLAG_TYPE_RSA 0x0000
  ------------------
  |  Branch (913:5): [True: 28.0k, False: 0]
  ------------------
  914|  28.0k|        valid = (ctx->desc->evp_type == EVP_PKEY_RSA);
  ------------------
  |  |   63|  28.0k|#define EVP_PKEY_RSA NID_rsaEncryption
  |  |  ------------------
  |  |  |  |  543|  28.0k|#define NID_rsaEncryption               6
  |  |  ------------------
  ------------------
  915|  28.0k|        break;
  916|      0|    case RSA_FLAG_TYPE_RSASSAPSS:
  ------------------
  |  |  119|      0|#define RSA_FLAG_TYPE_RSASSAPSS 0x1000
  ------------------
  |  Branch (916:5): [True: 0, False: 28.0k]
  ------------------
  917|      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
  |  |  ------------------
  ------------------
  918|      0|        break;
  919|      0|    default:
  ------------------
  |  Branch (919:5): [True: 0, False: 28.0k]
  ------------------
  920|       |        /* Currently unsupported RSA key type */
  921|      0|        valid = 0;
  922|  28.0k|    }
  923|       |
  924|  28.0k|    valid = (valid && ossl_rsa_check_factors(key));
  ------------------
  |  Branch (924:14): [True: 28.0k, False: 0]
  |  Branch (924:23): [True: 28.0k, False: 0]
  ------------------
  925|       |
  926|  28.0k|    return valid;
  927|  28.0k|}
decode_der2key.c:rsa_adjust:
  930|  28.0k|{
  931|  28.0k|    ossl_rsa_set0_libctx(key, PROV_LIBCTX_OF(ctx->provctx));
  ------------------
  |  |   31|  28.0k|    ossl_prov_ctx_get0_libctx((provctx))
  ------------------
  932|  28.0k|}
decode_der2key.c:PrivateKeyInfo_der2rsa_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2rsa_newctx:
 1210|  28.0k|    {                                                                                                                 \
 1211|  28.0k|        return der2key_newctx(provctx, &kind##_##keytype##_desc);                                                     \
 1212|  28.0k|    }                                                                                                                 \
decode_der2key.c:rsa_d2i_PUBKEY:
  904|  28.0k|{
  905|       |    return d2i_RSA_PUBKEY(NULL, der, der_len);
  906|  28.0k|}
decode_der2key.c:SubjectPublicKeyInfo_der2rsa_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:type_specific_keypair_der2rsa_newctx:
 1210|  28.0k|    {                                                                                                                 \
 1211|  28.0k|        return der2key_newctx(provctx, &kind##_##keytype##_desc);                                                     \
 1212|  28.0k|    }                                                                                                                 \
decode_der2key.c:type_specific_keypair_der2rsa_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:RSA_der2rsa_newctx:
 1210|  28.0k|    {                                                                                                                 \
 1211|  28.0k|        return der2key_newctx(provctx, &kind##_##keytype##_desc);                                                     \
 1212|  28.0k|    }                                                                                                                 \
decode_der2key.c:RSA_der2rsa_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2rsapss_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2rsapss_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2ml_dsa_44_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2ml_dsa_44_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2ml_dsa_65_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2ml_dsa_65_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:PrivateKeyInfo_der2ml_dsa_87_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \
decode_der2key.c:SubjectPublicKeyInfo_der2ml_dsa_87_does_selection:
 1215|      2|    {                                                                                                                 \
 1216|      2|        return der2key_check_selection(selection,                                                                     \
 1217|      2|            &kind##_##keytype##_desc);                                                                                \
 1218|      2|    }                                                                                                                 \

decode_epki2pki.c:epki2pki_newctx:
   46|  41.3k|{
   47|  41.3k|    struct epki2pki_ctx_st *ctx = OPENSSL_zalloc(sizeof(*ctx));
  ------------------
  |  |  109|  41.3k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   48|       |
   49|  41.3k|    if (ctx != NULL)
  ------------------
  |  Branch (49:9): [True: 41.3k, False: 0]
  ------------------
   50|  41.3k|        ctx->provctx = provctx;
   51|  41.3k|    return ctx;
   52|  41.3k|}
decode_epki2pki.c:epki2pki_freectx:
   55|  41.3k|{
   56|  41.3k|    struct epki2pki_ctx_st *ctx = vctx;
   57|       |
   58|  41.3k|    OPENSSL_free(ctx);
  ------------------
  |  |  132|  41.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   59|  41.3k|}
decode_epki2pki.c:epki2pki_set_ctx_params:
   67|      2|{
   68|      2|    struct epki2pki_ctx_st *ctx = vctx;
   69|      2|    struct epki2pki_set_ctx_params_st p;
   70|      2|    char *str;
   71|       |
   72|      2|    if (ctx == NULL || !epki2pki_set_ctx_params_decoder(params, &p))
  ------------------
  |  Branch (72:9): [True: 0, False: 2]
  |  Branch (72:24): [True: 0, False: 2]
  ------------------
   73|      0|        return 0;
   74|       |
   75|      2|    str = ctx->propq;
   76|      2|    if (p.propq != NULL
  ------------------
  |  Branch (76:9): [True: 0, False: 2]
  ------------------
   77|      0|        && !OSSL_PARAM_get_utf8_string(p.propq, &str, sizeof(ctx->propq)))
  ------------------
  |  Branch (77:12): [True: 0, False: 0]
  ------------------
   78|      0|        return 0;
   79|       |
   80|      2|    return 1;
   81|      2|}

decode_epki2pki.c:epki2pki_set_ctx_params_decoder:
   29|      2|{
   30|      2|    const char *s;
   31|       |
   32|      2|    memset(r, 0, sizeof(*r));
   33|      2|    if (p != NULL)
  ------------------
  |  Branch (33:9): [True: 2, False: 0]
  ------------------
   34|      4|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (34:16): [True: 2, False: 2]
  ------------------
   35|      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]
  |  |  ------------------
  ------------------
   36|       |                /* OSSL_DECODER_PARAM_PROPERTIES */
   37|      0|                if (ossl_unlikely(r->propq != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
   38|      0|                    ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   39|      0|                                   "param %s is repeated", s);
   40|      0|                    return 0;
   41|      0|                }
   42|      0|                r->propq = (OSSL_PARAM *)p;
   43|      0|            }
   44|      2|    return 1;
   45|      2|}

decode_msblob2key.c:msblob2key_newctx:
   65|      1|{
   66|      1|    struct msblob2key_ctx_st *ctx = OPENSSL_zalloc(sizeof(*ctx));
  ------------------
  |  |  109|      1|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  132|      1|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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)
  ------------------
  |  |  646|      4|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  ------------------
                  if ((selection & (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)) != 0)
  ------------------
  |  |  647|      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:
   64|  41.3k|{
   65|  41.3k|    struct pem2der_ctx_st *ctx = OPENSSL_zalloc(sizeof(*ctx));
  ------------------
  |  |  109|  41.3k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   66|       |
   67|  41.3k|    if (ctx != NULL)
  ------------------
  |  Branch (67:9): [True: 41.3k, False: 0]
  ------------------
   68|  41.3k|        ctx->provctx = provctx;
   69|  41.3k|    return ctx;
   70|  41.3k|}
decode_pem2der.c:pem2der_freectx:
   73|  41.3k|{
   74|  41.3k|    struct pem2der_ctx_st *ctx = vctx;
   75|       |
   76|  41.3k|    OPENSSL_free(ctx);
  ------------------
  |  |  132|  41.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   77|  41.3k|}
decode_pem2der.c:pem2der_set_ctx_params:
   85|      7|{
   86|      7|    struct pem2der_ctx_st *ctx = vctx;
   87|      7|    struct pem2der_set_ctx_params_st p;
   88|      7|    char *str;
   89|       |
   90|      7|    if (ctx == NULL || !pem2der_set_ctx_params_decoder(params, &p))
  ------------------
  |  Branch (90:9): [True: 0, False: 7]
  |  Branch (90:24): [True: 0, False: 7]
  ------------------
   91|      0|        return 0;
   92|       |
   93|      7|    str = ctx->propq;
   94|      7|    if (p.propq != NULL
  ------------------
  |  Branch (94:9): [True: 0, False: 7]
  ------------------
   95|      0|        && !OSSL_PARAM_get_utf8_string(p.propq, &str, sizeof(ctx->propq)))
  ------------------
  |  Branch (95:12): [True: 0, False: 0]
  ------------------
   96|      0|        return 0;
   97|       |
   98|      7|    str = ctx->data_structure;
   99|      7|    if (p.ds != NULL
  ------------------
  |  Branch (99:9): [True: 7, False: 0]
  ------------------
  100|      7|        && !OSSL_PARAM_get_utf8_string(p.ds, &str, sizeof(ctx->data_structure)))
  ------------------
  |  Branch (100:12): [True: 0, False: 7]
  ------------------
  101|      0|        return 0;
  102|       |
  103|      7|    return 1;
  104|      7|}

decode_pem2der.c:pem2der_set_ctx_params_decoder:
   31|      7|{
   32|      7|    const char *s;
   33|       |
   34|      7|    memset(r, 0, sizeof(*r));
   35|      7|    if (p != NULL)
  ------------------
  |  Branch (35:9): [True: 7, False: 0]
  ------------------
   36|     14|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (36:16): [True: 7, False: 7]
  ------------------
   37|      7|            switch(s[0]) {
   38|      0|            default:
  ------------------
  |  Branch (38:13): [True: 0, False: 7]
  ------------------
   39|      0|                break;
   40|      7|            case 'd':
  ------------------
  |  Branch (40:13): [True: 7, False: 0]
  ------------------
   41|      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]
  |  |  ------------------
  ------------------
   42|       |                    /* OSSL_OBJECT_PARAM_DATA_STRUCTURE */
   43|      7|                    if (ossl_unlikely(r->ds != NULL)) {
  ------------------
  |  |   23|      7|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 7]
  |  |  ------------------
  ------------------
   44|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   45|      0|                                       "param %s is repeated", s);
   46|      0|                        return 0;
   47|      0|                    }
   48|      7|                    r->ds = (OSSL_PARAM *)p;
   49|      7|                }
   50|      7|                break;
   51|      7|            case 'p':
  ------------------
  |  Branch (51:13): [True: 0, False: 7]
  ------------------
   52|      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]
  |  |  ------------------
  ------------------
   53|       |                    /* OSSL_DECODER_PARAM_PROPERTIES */
   54|      0|                    if (ossl_unlikely(r->propq != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
   55|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   56|      0|                                       "param %s is repeated", s);
   57|      0|                        return 0;
   58|      0|                    }
   59|      0|                    r->propq = (OSSL_PARAM *)p;
   60|      0|                }
   61|      7|            }
   62|      7|    return 1;
   63|      7|}

decode_pvk2key.c:pvk2key_does_selection:
  112|      4|{
  113|      4|    if (selection == 0)
  ------------------
  |  Branch (113:9): [True: 0, False: 4]
  ------------------
  114|      0|        return 1;
  115|       |
  116|      4|    if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0)
  ------------------
  |  |  646|      4|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  ------------------
  |  Branch (116:9): [True: 0, False: 4]
  ------------------
  117|      0|        return 1;
  118|       |
  119|      4|    return 0;
  120|      4|}

ossl_spki2typespki_der_decode:
  103|  41.3k|{
  104|  41.3k|    const unsigned char *derp = der;
  105|  41.3k|    X509_PUBKEY *xpub = NULL;
  106|  41.3k|    X509_ALGOR *algor = NULL;
  107|  41.3k|    const ASN1_OBJECT *oid = NULL;
  108|  41.3k|    char dataname[OSSL_MAX_NAME_SIZE];
  109|  41.3k|    OSSL_PARAM params[6], *p = params;
  110|  41.3k|    int objtype = OSSL_OBJECT_PKEY;
  ------------------
  |  |   29|  41.3k|#define OSSL_OBJECT_PKEY 2 /* EVP_PKEY * */
  ------------------
  111|  41.3k|    int ok = 0;
  112|       |
  113|  41.3k|    xpub = ossl_d2i_X509_PUBKEY_INTERNAL(&derp, len, libctx, propq);
  114|       |
  115|  41.3k|    if (xpub == NULL) {
  ------------------
  |  Branch (115:9): [True: 0, False: 41.3k]
  ------------------
  116|       |        /* We return "empty handed".  This is not an error. */
  117|      0|        ok = 1;
  118|      0|        goto end;
  119|      0|    }
  120|       |
  121|  41.3k|    if (!X509_PUBKEY_get0_param(NULL, NULL, NULL, &algor, xpub))
  ------------------
  |  Branch (121:9): [True: 0, False: 41.3k]
  ------------------
  122|      0|        goto end;
  123|  41.3k|    X509_ALGOR_get0(&oid, NULL, NULL, algor);
  124|       |
  125|  41.3k|#ifndef OPENSSL_NO_EC
  126|       |    /* SM2 abuses the EC oid, so this could actually be SM2 */
  127|  41.3k|    if (OBJ_obj2nid(oid) == NID_X9_62_id_ecPublicKey
  ------------------
  |  |  178|  82.7k|#define NID_X9_62_id_ecPublicKey                408
  ------------------
  |  Branch (127:9): [True: 13.3k, False: 28.0k]
  ------------------
  128|  13.3k|        && ossl_x509_algor_is_sm2(algor))
  ------------------
  |  Branch (128:12): [True: 0, False: 13.3k]
  ------------------
  129|      0|        strcpy(dataname, "SM2");
  130|  41.3k|    else
  131|  41.3k|#endif
  132|  41.3k|        if (OBJ_obj2txt(dataname, sizeof(dataname), oid, 0) <= 0)
  ------------------
  |  Branch (132:13): [True: 0, False: 41.3k]
  ------------------
  133|      0|        goto end;
  134|       |
  135|  41.3k|    ossl_X509_PUBKEY_INTERNAL_free(xpub);
  136|  41.3k|    xpub = NULL;
  137|       |
  138|  41.3k|    *p++ = OSSL_PARAM_construct_utf8_string(OSSL_OBJECT_PARAM_DATA_TYPE,
  ------------------
  |  |  366|  41.3k|# define OSSL_OBJECT_PARAM_DATA_TYPE "data-type"
  ------------------
  139|  41.3k|        dataname, 0);
  140|       |
  141|  41.3k|    *p++ = OSSL_PARAM_construct_utf8_string(OSSL_OBJECT_PARAM_INPUT_TYPE,
  ------------------
  |  |  368|  41.3k|# define OSSL_OBJECT_PARAM_INPUT_TYPE "input-type"
  ------------------
  142|  41.3k|        "DER", 0);
  143|       |
  144|  41.3k|    *p++ = OSSL_PARAM_construct_utf8_string(OSSL_OBJECT_PARAM_DATA_STRUCTURE,
  ------------------
  |  |  365|  41.3k|# define OSSL_OBJECT_PARAM_DATA_STRUCTURE "data-structure"
  ------------------
  145|  41.3k|        "SubjectPublicKeyInfo",
  146|  41.3k|        0);
  147|  41.3k|    *p++ = OSSL_PARAM_construct_octet_string(OSSL_OBJECT_PARAM_DATA, der, len);
  ------------------
  |  |  364|  41.3k|# define OSSL_OBJECT_PARAM_DATA "data"
  ------------------
  148|  41.3k|    *p++ = OSSL_PARAM_construct_int(OSSL_OBJECT_PARAM_TYPE, &objtype);
  ------------------
  |  |  370|  41.3k|# define OSSL_OBJECT_PARAM_TYPE "type"
  ------------------
  149|       |
  150|  41.3k|    *p = OSSL_PARAM_construct_end();
  151|       |
  152|  41.3k|    ok = data_cb(params, data_cbarg);
  153|       |
  154|  41.3k|end:
  155|  41.3k|    ossl_X509_PUBKEY_INTERNAL_free(xpub);
  156|  41.3k|    return ok;
  157|  41.3k|}
decode_spki2typespki.c:spki2typespki_newctx:
   43|  41.3k|{
   44|  41.3k|    struct spki2typespki_ctx_st *ctx = OPENSSL_zalloc(sizeof(*ctx));
  ------------------
  |  |  109|  41.3k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   45|       |
   46|  41.3k|    if (ctx != NULL)
  ------------------
  |  Branch (46:9): [True: 41.3k, False: 0]
  ------------------
   47|  41.3k|        ctx->provctx = provctx;
   48|  41.3k|    return ctx;
   49|  41.3k|}
decode_spki2typespki.c:spki2typespki_freectx:
   52|  41.3k|{
   53|  41.3k|    struct spki2typespki_ctx_st *ctx = vctx;
   54|       |
   55|  41.3k|    OPENSSL_free(ctx);
  ------------------
  |  |  132|  41.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   56|  41.3k|}
decode_spki2typespki.c:spki2typespki_decode:
   83|  41.3k|{
   84|  41.3k|    struct spki2typespki_ctx_st *ctx = vctx;
   85|  41.3k|    unsigned char *der;
   86|  41.3k|    long len;
   87|  41.3k|    int ok = 0;
   88|       |
   89|  41.3k|    if (!ossl_read_der(ctx->provctx, cin, &der, &len))
  ------------------
  |  Branch (89:9): [True: 0, False: 41.3k]
  ------------------
   90|      0|        return 1;
   91|       |
   92|  41.3k|    ok = ossl_spki2typespki_der_decode(der, len, selection, data_cb, data_cbarg,
   93|  41.3k|        pw_cb, pw_cbarg,
   94|  41.3k|        PROV_LIBCTX_OF(ctx->provctx), ctx->propq);
  ------------------
  |  |   31|  41.3k|    ossl_prov_ctx_get0_libctx((provctx))
  ------------------
   95|  41.3k|    OPENSSL_free(der);
  ------------------
  |  |  132|  41.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   96|  41.3k|    return ok;
   97|  41.3k|}
decode_spki2typespki.c:spki2typespki_set_ctx_params:
   64|      2|{
   65|      2|    struct spki2typespki_ctx_st *ctx = vctx;
   66|      2|    struct spki2typespki_set_ctx_params_st p;
   67|      2|    char *str;
   68|       |
   69|      2|    if (ctx == NULL || !spki2typespki_set_ctx_params_decoder(params, &p))
  ------------------
  |  Branch (69:9): [True: 0, False: 2]
  |  Branch (69:24): [True: 0, False: 2]
  ------------------
   70|      0|        return 0;
   71|       |
   72|      2|    str = ctx->propq;
   73|      2|    if (p.propq != NULL
  ------------------
  |  Branch (73:9): [True: 0, False: 2]
  ------------------
   74|      0|        && !OSSL_PARAM_get_utf8_string(p.propq, &str, sizeof(ctx->propq)))
  ------------------
  |  Branch (74:12): [True: 0, False: 0]
  ------------------
   75|      0|        return 0;
   76|       |
   77|      2|    return 1;
   78|      2|}

decode_spki2typespki.c:spki2typespki_set_ctx_params_decoder:
   29|      2|{
   30|      2|    const char *s;
   31|       |
   32|      2|    memset(r, 0, sizeof(*r));
   33|      2|    if (p != NULL)
  ------------------
  |  Branch (33:9): [True: 2, False: 0]
  ------------------
   34|      4|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (34:16): [True: 2, False: 2]
  ------------------
   35|      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]
  |  |  ------------------
  ------------------
   36|       |                /* OSSL_DECODER_PARAM_PROPERTIES */
   37|      0|                if (ossl_unlikely(r->propq != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
   38|      0|                    ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   39|      0|                                   "param %s is repeated", s);
   40|      0|                    return 0;
   41|      0|                }
   42|      0|                r->propq = (OSSL_PARAM *)p;
   43|      0|            }
   44|      2|    return 1;
   45|      2|}

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

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

cipher_aes_ccm.c:aes_128_ccm_get_params:
   21|    695|    {                                                                           \
   22|    695|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  216|    695|#define EVP_CIPH_CCM_MODE 0x7
  ------------------
   23|    695|            flags, kbits, blkbits, ivbits);                                     \
   24|    695|    }                                                                           \
cipher_aes_ccm.c:aes_192_ccm_get_params:
   21|      1|    {                                                                           \
   22|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  216|      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|    695|    {                                                                           \
   22|    695|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  216|    695|#define EVP_CIPH_CCM_MODE 0x7
  ------------------
   23|    695|            flags, kbits, blkbits, ivbits);                                     \
   24|    695|    }                                                                           \
cipher_aes_gcm.c:aes_128_gcm_get_params:
   21|    348|    {                                                                           \
   22|    348|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  215|    348|#define EVP_CIPH_GCM_MODE 0x6
  ------------------
   23|    348|            flags, kbits, blkbits, ivbits);                                     \
   24|    348|    }                                                                           \
cipher_aes_gcm.c:aes_192_gcm_get_params:
   21|      1|    {                                                                           \
   22|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  215|      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|    348|    {                                                                           \
   22|    348|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  215|    348|#define EVP_CIPH_GCM_MODE 0x6
  ------------------
   23|    348|            flags, kbits, blkbits, ivbits);                                     \
   24|    348|    }                                                                           \
cipher_aria_ccm.c:aria_128_ccm_get_params:
   21|      1|    {                                                                           \
   22|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  216|      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, \
  ------------------
  |  |  216|      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, \
  ------------------
  |  |  216|      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|    348|    {                                                                           \
   22|    348|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  215|    348|#define EVP_CIPH_GCM_MODE 0x6
  ------------------
   23|    348|            flags, kbits, blkbits, ivbits);                                     \
   24|    348|    }                                                                           \
cipher_aria_gcm.c:aria_192_gcm_get_params:
   21|      1|    {                                                                           \
   22|      1|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  215|      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|    348|    {                                                                           \
   22|    348|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  215|    348|#define EVP_CIPH_GCM_MODE 0x6
  ------------------
   23|    348|            flags, kbits, blkbits, ivbits);                                     \
   24|    348|    }                                                                           \
cipher_sm4_ccm.c:sm4_128_ccm_get_params:
   21|    348|    {                                                                           \
   22|    348|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  216|    348|#define EVP_CIPH_CCM_MODE 0x7
  ------------------
   23|    348|            flags, kbits, blkbits, ivbits);                                     \
   24|    348|    }                                                                           \
cipher_sm4_gcm.c:sm4_128_gcm_get_params:
   21|    348|    {                                                                           \
   22|    348|        return ossl_cipher_generic_get_params(params, EVP_CIPH_##UCMODE##_MODE, \
  ------------------
  |  |  215|    348|#define EVP_CIPH_GCM_MODE 0x6
  ------------------
   23|    348|            flags, kbits, blkbits, ivbits);                                     \
   24|    348|    }                                                                           \

cshake_prov.c:cshake_128_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
cshake_prov.c:cshake_256_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      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:cshake_keccak_128_get_params:
   29|      1|    {                                                                            \
   30|      1|        return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
   31|      1|    }
sha3_prov.c:cshake_keccak_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:
 1437|  13.3k|{
 1438|  13.3k|    return common_load(reference, reference_sz, 0);
 1439|  13.3k|}
ec_kmgmt.c:common_load:
 1419|  13.3k|{
 1420|  13.3k|    EC_KEY *ec = NULL;
 1421|       |
 1422|  13.3k|    if (ossl_prov_is_running() && reference_sz == sizeof(ec)) {
  ------------------
  |  Branch (1422:9): [True: 13.3k, False: 0]
  |  Branch (1422:35): [True: 13.3k, False: 0]
  ------------------
 1423|       |        /* The contents of the reference is the address to our object */
 1424|  13.3k|        ec = *(EC_KEY **)reference;
 1425|       |
 1426|  13.3k|        if (!common_check_sm2(ec, sm2_wanted))
  ------------------
  |  Branch (1426:13): [True: 0, False: 13.3k]
  ------------------
 1427|      0|            return NULL;
 1428|       |
 1429|       |        /* We grabbed, so we detach it */
 1430|  13.3k|        *(EC_KEY **)reference = NULL;
 1431|  13.3k|        return ec;
 1432|  13.3k|    }
 1433|      0|    return NULL;
 1434|  13.3k|}
ec_kmgmt.c:common_check_sm2:
  415|  13.3k|{
  416|  13.3k|    const EC_GROUP *ecg = NULL;
  417|       |
  418|       |    /*
  419|       |     * sm2_wanted: import the keys or domparams only on SM2 Curve
  420|       |     * !sm2_wanted: import the keys or domparams only not on SM2 Curve
  421|       |     */
  422|  13.3k|    if ((ecg = EC_KEY_get0_group(ec)) == NULL
  ------------------
  |  Branch (422:9): [True: 0, False: 13.3k]
  ------------------
  423|  13.3k|        || (sm2_wanted ^ (EC_GROUP_get_curve_name(ecg) == NID_sm2)))
  ------------------
  |  | 1259|  13.3k|#define NID_sm2         1172
  ------------------
  |  Branch (423:12): [True: 0, False: 13.3k]
  ------------------
  424|      0|        return 0;
  425|  13.3k|    return 1;
  426|  13.3k|}
ec_kmgmt.c:ec_freedata:
  339|  13.3k|{
  340|  13.3k|    EC_KEY_free(keydata);
  341|  13.3k|}
ec_kmgmt.c:ec_get_params:
  765|  13.3k|{
  766|  13.3k|    return common_get_params(key, params, 0);
  767|  13.3k|}
ec_kmgmt.c:common_get_params:
  663|  13.3k|{
  664|  13.3k|    int ret = 0;
  665|  13.3k|    EC_KEY *eck = key;
  666|  13.3k|    const EC_GROUP *ecg = NULL;
  667|  13.3k|    OSSL_PARAM *p;
  668|  13.3k|    unsigned char *pub_key = NULL, *genbuf = NULL;
  669|  13.3k|    OSSL_LIB_CTX *libctx;
  670|  13.3k|    const char *propq;
  671|  13.3k|    BN_CTX *bnctx = NULL;
  672|       |
  673|  13.3k|    ecg = EC_KEY_get0_group(eck);
  674|  13.3k|    if (ecg == NULL) {
  ------------------
  |  Branch (674:9): [True: 0, False: 13.3k]
  ------------------
  675|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_NO_PARAMETERS_SET);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  676|      0|        return 0;
  677|      0|    }
  678|       |
  679|  13.3k|    libctx = ossl_ec_key_get_libctx(eck);
  680|  13.3k|    propq = ossl_ec_key_get0_propq(eck);
  681|       |
  682|  13.3k|    bnctx = BN_CTX_new_ex(libctx);
  683|  13.3k|    if (bnctx == NULL)
  ------------------
  |  Branch (683:9): [True: 0, False: 13.3k]
  ------------------
  684|      0|        return 0;
  685|  13.3k|    BN_CTX_start(bnctx);
  686|       |
  687|  13.3k|    if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_MAX_SIZE)) != NULL
  ------------------
  |  |  432|  13.3k|# define OSSL_PKEY_PARAM_MAX_SIZE "max-size"
  ------------------
  |  Branch (687:9): [True: 13.3k, False: 0]
  ------------------
  688|  13.3k|        && !OSSL_PARAM_set_int(p, ECDSA_size(eck)))
  ------------------
  |  Branch (688:12): [True: 0, False: 13.3k]
  ------------------
  689|      0|        goto err;
  690|  13.3k|    if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_BITS)) != NULL
  ------------------
  |  |  374|  13.3k|# define OSSL_PKEY_PARAM_BITS "bits"
  ------------------
  |  Branch (690:9): [True: 13.3k, False: 0]
  ------------------
  691|  13.3k|        && !OSSL_PARAM_set_int(p, EC_GROUP_order_bits(ecg)))
  ------------------
  |  Branch (691:12): [True: 0, False: 13.3k]
  ------------------
  692|      0|        goto err;
  693|  13.3k|    if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_EC_FIELD_DEGREE)) != NULL
  ------------------
  |  |  396|  13.3k|# define OSSL_PKEY_PARAM_EC_FIELD_DEGREE "field-degree"
  ------------------
  |  Branch (693:9): [True: 0, False: 13.3k]
  ------------------
  694|      0|        && !OSSL_PARAM_set_int(p, EC_GROUP_get_degree(ecg)))
  ------------------
  |  Branch (694:12): [True: 0, False: 0]
  ------------------
  695|      0|        goto err;
  696|  13.3k|    if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_SECURITY_BITS)) != NULL
  ------------------
  |  |  506|  13.3k|# define OSSL_PKEY_PARAM_SECURITY_BITS "security-bits"
  ------------------
  |  Branch (696:9): [True: 13.3k, False: 0]
  ------------------
  697|  13.3k|        && !OSSL_PARAM_set_int(p, EC_GROUP_security_bits(ecg)))
  ------------------
  |  Branch (697:12): [True: 0, False: 13.3k]
  ------------------
  698|      0|        goto err;
  699|  13.3k|    if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_SECURITY_CATEGORY)) != NULL)
  ------------------
  |  |  507|  13.3k|# define OSSL_PKEY_PARAM_SECURITY_CATEGORY OSSL_ALG_PARAM_SECURITY_CATEGORY
  |  |  ------------------
  |  |  |  |  131|  13.3k|# define OSSL_ALG_PARAM_SECURITY_CATEGORY "security-category"
  |  |  ------------------
  ------------------
  |  Branch (699:9): [True: 13.3k, False: 0]
  ------------------
  700|  13.3k|        if (!OSSL_PARAM_set_int(p, 0))
  ------------------
  |  Branch (700:13): [True: 0, False: 13.3k]
  ------------------
  701|      0|            goto err;
  702|       |
  703|  13.3k|    if ((p = OSSL_PARAM_locate(params,
  ------------------
  |  Branch (703:9): [True: 0, False: 13.3k]
  ------------------
  704|  13.3k|             OSSL_PKEY_PARAM_EC_DECODED_FROM_EXPLICIT_PARAMS))
  ------------------
  |  |  394|  13.3k|# define OSSL_PKEY_PARAM_EC_DECODED_FROM_EXPLICIT_PARAMS "decoded-from-explicit"
  ------------------
  705|  13.3k|        != NULL) {
  706|      0|        int explicitparams = EC_KEY_decoded_from_explicit_params(eck);
  707|       |
  708|      0|        if (explicitparams < 0
  ------------------
  |  Branch (708:13): [True: 0, False: 0]
  ------------------
  709|      0|            || !OSSL_PARAM_set_int(p, explicitparams))
  ------------------
  |  Branch (709:16): [True: 0, False: 0]
  ------------------
  710|      0|            goto err;
  711|      0|    }
  712|       |
  713|  13.3k|    if (!sm2) {
  ------------------
  |  Branch (713:9): [True: 13.3k, False: 0]
  ------------------
  714|  13.3k|        if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_DEFAULT_DIGEST)) != NULL
  ------------------
  |  |  378|  13.3k|# define OSSL_PKEY_PARAM_DEFAULT_DIGEST "default-digest"
  ------------------
  |  Branch (714:13): [True: 0, False: 13.3k]
  ------------------
  715|      0|            && !OSSL_PARAM_set_utf8_string(p, EC_DEFAULT_MD))
  ------------------
  |  |   79|      0|#define EC_DEFAULT_MD "SHA256"
  ------------------
  |  Branch (715:16): [True: 0, False: 0]
  ------------------
  716|      0|            goto err;
  717|  13.3k|    } else {
  718|      0|        if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_DEFAULT_DIGEST)) != NULL
  ------------------
  |  |  378|      0|# define OSSL_PKEY_PARAM_DEFAULT_DIGEST "default-digest"
  ------------------
  |  Branch (718:13): [True: 0, False: 0]
  ------------------
  719|      0|            && !OSSL_PARAM_set_utf8_string(p, SM2_DEFAULT_MD))
  ------------------
  |  |   82|      0|#define SM2_DEFAULT_MD "SM3"
  ------------------
  |  Branch (719:16): [True: 0, False: 0]
  ------------------
  720|      0|            goto err;
  721|      0|    }
  722|       |
  723|       |    /* SM2 doesn't support this PARAM */
  724|  13.3k|    if (!sm2) {
  ------------------
  |  Branch (724:9): [True: 13.3k, False: 0]
  ------------------
  725|  13.3k|        p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_USE_COFACTOR_ECDH);
  ------------------
  |  |  509|  13.3k|# define OSSL_PKEY_PARAM_USE_COFACTOR_ECDH OSSL_PKEY_PARAM_USE_COFACTOR_FLAG
  |  |  ------------------
  |  |  |  |  510|  13.3k|# define OSSL_PKEY_PARAM_USE_COFACTOR_FLAG "use-cofactor-flag"
  |  |  ------------------
  ------------------
  726|  13.3k|        if (p != NULL) {
  ------------------
  |  Branch (726:13): [True: 0, False: 13.3k]
  ------------------
  727|      0|            int ecdh_cofactor_mode = 0;
  728|       |
  729|      0|            ecdh_cofactor_mode = (EC_KEY_get_flags(eck) & EC_FLAG_COFACTOR_ECDH) ? 1 : 0;
  ------------------
  |  |  963|      0|#define EC_FLAG_COFACTOR_ECDH 0x1000
  ------------------
  |  Branch (729:34): [True: 0, False: 0]
  ------------------
  730|       |
  731|      0|            if (!OSSL_PARAM_set_int(p, ecdh_cofactor_mode))
  ------------------
  |  Branch (731:17): [True: 0, False: 0]
  ------------------
  732|      0|                goto err;
  733|      0|        }
  734|  13.3k|    }
  735|  13.3k|    if ((p = OSSL_PARAM_locate(params,
  ------------------
  |  Branch (735:9): [True: 0, False: 13.3k]
  ------------------
  736|  13.3k|             OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY))
  ------------------
  |  |  407|  13.3k|# define OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY "encoded-pub-key"
  ------------------
  737|  13.3k|        != NULL) {
  738|      0|        const EC_POINT *ecp = EC_KEY_get0_public_key(key);
  739|       |
  740|      0|        if (ecp == NULL) {
  ------------------
  |  Branch (740:13): [True: 0, False: 0]
  ------------------
  741|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_NOT_A_PUBLIC_KEY);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  742|      0|            goto err;
  743|      0|        }
  744|      0|        p->return_size = EC_POINT_point2oct(ecg, ecp,
  745|      0|            POINT_CONVERSION_UNCOMPRESSED,
  746|      0|            p->data, p->data_size, bnctx);
  747|      0|        if (p->return_size == 0)
  ------------------
  |  Branch (747:13): [True: 0, False: 0]
  ------------------
  748|      0|            goto err;
  749|      0|    }
  750|       |
  751|  13.3k|    ret = ec_get_ecm_params(ecg, params)
  ------------------
  |  Branch (751:11): [True: 13.3k, False: 0]
  ------------------
  752|  13.3k|        && ossl_ec_group_todata(ecg, NULL, params, libctx, propq, bnctx,
  ------------------
  |  Branch (752:12): [True: 13.3k, False: 0]
  ------------------
  753|  13.3k|            &genbuf)
  754|  13.3k|        && key_to_params(eck, NULL, params, 1, &pub_key)
  ------------------
  |  Branch (754:12): [True: 13.3k, False: 0]
  ------------------
  755|  13.3k|        && otherparams_to_params(eck, NULL, params);
  ------------------
  |  Branch (755:12): [True: 13.3k, False: 0]
  ------------------
  756|  13.3k|err:
  757|  13.3k|    OPENSSL_free(genbuf);
  ------------------
  |  |  132|  13.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  758|  13.3k|    OPENSSL_free(pub_key);
  ------------------
  |  |  132|  13.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  759|  13.3k|    BN_CTX_end(bnctx);
  760|  13.3k|    BN_CTX_free(bnctx);
  761|  13.3k|    return ret;
  762|  13.3k|}
ec_kmgmt.c:ec_get_ecm_params:
  612|  13.3k|{
  613|       |#ifdef OPENSSL_NO_EC2M
  614|       |    return 1;
  615|       |#else
  616|  13.3k|    int ret = 0, m;
  617|  13.3k|    unsigned int k1 = 0, k2 = 0, k3 = 0;
  618|  13.3k|    int basis_nid;
  619|  13.3k|    const char *basis_name = NULL;
  620|  13.3k|    int fid = EC_GROUP_get_field_type(group);
  621|       |
  622|  13.3k|    if (fid != NID_X9_62_characteristic_two_field)
  ------------------
  |  |  156|  13.3k|#define NID_X9_62_characteristic_two_field              407
  ------------------
  |  Branch (622:9): [True: 13.3k, False: 0]
  ------------------
  623|  13.3k|        return 1;
  624|       |
  625|      0|    basis_nid = EC_GROUP_get_basis_type(group);
  626|      0|    if (basis_nid == NID_X9_62_tpBasis)
  ------------------
  |  |  168|      0|#define NID_X9_62_tpBasis               682
  ------------------
  |  Branch (626:9): [True: 0, False: 0]
  ------------------
  627|      0|        basis_name = SN_X9_62_tpBasis;
  ------------------
  |  |  167|      0|#define SN_X9_62_tpBasis                "tpBasis"
  ------------------
  628|      0|    else if (basis_nid == NID_X9_62_ppBasis)
  ------------------
  |  |  172|      0|#define NID_X9_62_ppBasis               683
  ------------------
  |  Branch (628:14): [True: 0, False: 0]
  ------------------
  629|      0|        basis_name = SN_X9_62_ppBasis;
  ------------------
  |  |  171|      0|#define SN_X9_62_ppBasis                "ppBasis"
  ------------------
  630|      0|    else
  631|      0|        goto err;
  632|       |
  633|      0|    m = EC_GROUP_get_degree(group);
  634|      0|    if (!ossl_param_build_set_int(NULL, params, OSSL_PKEY_PARAM_EC_CHAR2_M, m)
  ------------------
  |  |  387|      0|# define OSSL_PKEY_PARAM_EC_CHAR2_M "m"
  ------------------
  |  Branch (634:9): [True: 0, False: 0]
  ------------------
  635|      0|        || !ossl_param_build_set_utf8_string(NULL, params,
  ------------------
  |  Branch (635:12): [True: 0, False: 0]
  ------------------
  636|      0|            OSSL_PKEY_PARAM_EC_CHAR2_TYPE,
  ------------------
  |  |  392|      0|# define OSSL_PKEY_PARAM_EC_CHAR2_TYPE "basis-type"
  ------------------
  637|      0|            basis_name))
  638|      0|        goto err;
  639|       |
  640|      0|    if (basis_nid == NID_X9_62_tpBasis) {
  ------------------
  |  |  168|      0|#define NID_X9_62_tpBasis               682
  ------------------
  |  Branch (640:9): [True: 0, False: 0]
  ------------------
  641|      0|        if (!EC_GROUP_get_trinomial_basis(group, &k1)
  ------------------
  |  Branch (641:13): [True: 0, False: 0]
  ------------------
  642|      0|            || !ossl_param_build_set_int(NULL, params,
  ------------------
  |  Branch (642:16): [True: 0, False: 0]
  ------------------
  643|      0|                OSSL_PKEY_PARAM_EC_CHAR2_TP_BASIS,
  ------------------
  |  |  391|      0|# define OSSL_PKEY_PARAM_EC_CHAR2_TP_BASIS "tp"
  ------------------
  644|      0|                (int)k1))
  645|      0|            goto err;
  646|      0|    } else {
  647|      0|        if (!EC_GROUP_get_pentanomial_basis(group, &k1, &k2, &k3)
  ------------------
  |  Branch (647:13): [True: 0, False: 0]
  ------------------
  648|      0|            || !ossl_param_build_set_int(NULL, params,
  ------------------
  |  Branch (648:16): [True: 0, False: 0]
  ------------------
  649|      0|                OSSL_PKEY_PARAM_EC_CHAR2_PP_K1, (int)k1)
  ------------------
  |  |  388|      0|# define OSSL_PKEY_PARAM_EC_CHAR2_PP_K1 "k1"
  ------------------
  650|      0|            || !ossl_param_build_set_int(NULL, params,
  ------------------
  |  Branch (650:16): [True: 0, False: 0]
  ------------------
  651|      0|                OSSL_PKEY_PARAM_EC_CHAR2_PP_K2, (int)k2)
  ------------------
  |  |  389|      0|# define OSSL_PKEY_PARAM_EC_CHAR2_PP_K2 "k2"
  ------------------
  652|      0|            || !ossl_param_build_set_int(NULL, params,
  ------------------
  |  Branch (652:16): [True: 0, False: 0]
  ------------------
  653|      0|                OSSL_PKEY_PARAM_EC_CHAR2_PP_K3, (int)k3))
  ------------------
  |  |  390|      0|# define OSSL_PKEY_PARAM_EC_CHAR2_PP_K3 "k3"
  ------------------
  654|      0|            goto err;
  655|      0|    }
  656|      0|    ret = 1;
  657|      0|err:
  658|      0|    return ret;
  659|      0|#endif /* OPENSSL_NO_EC2M */
  660|      0|}
ec_kmgmt.c:key_to_params:
  124|  13.3k|{
  125|  13.3k|    BIGNUM *x = NULL, *y = NULL;
  126|  13.3k|    const BIGNUM *priv_key = NULL;
  127|  13.3k|    const EC_POINT *pub_point = NULL;
  128|  13.3k|    const EC_GROUP *ecg = NULL;
  129|  13.3k|    size_t pub_key_len = 0;
  130|  13.3k|    int ret = 0;
  131|  13.3k|    BN_CTX *bnctx = NULL;
  132|       |
  133|  13.3k|    if (eckey == NULL
  ------------------
  |  Branch (133:9): [True: 0, False: 13.3k]
  ------------------
  134|  13.3k|        || (ecg = EC_KEY_get0_group(eckey)) == NULL)
  ------------------
  |  Branch (134:12): [True: 0, False: 13.3k]
  ------------------
  135|      0|        return 0;
  136|       |
  137|  13.3k|    priv_key = EC_KEY_get0_private_key(eckey);
  138|  13.3k|    pub_point = EC_KEY_get0_public_key(eckey);
  139|       |
  140|  13.3k|    if (pub_point != NULL) {
  ------------------
  |  Branch (140:9): [True: 13.3k, False: 0]
  ------------------
  141|  13.3k|        OSSL_PARAM *p = NULL, *px = NULL, *py = NULL;
  142|       |        /*
  143|       |         * EC_POINT_point2buf() can generate random numbers in some
  144|       |         * implementations so we need to ensure we use the correct libctx.
  145|       |         */
  146|  13.3k|        bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(eckey));
  147|  13.3k|        if (bnctx == NULL)
  ------------------
  |  Branch (147:13): [True: 0, False: 13.3k]
  ------------------
  148|      0|            goto err;
  149|       |
  150|       |        /* If we are doing a get then check first before decoding the point */
  151|  13.3k|        if (tmpl == NULL) {
  ------------------
  |  Branch (151:13): [True: 13.3k, False: 0]
  ------------------
  152|  13.3k|            p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_PUB_KEY);
  ------------------
  |  |  450|  13.3k|# define OSSL_PKEY_PARAM_PUB_KEY "pub"
  ------------------
  153|  13.3k|            px = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_EC_PUB_X);
  ------------------
  |  |  404|  13.3k|# define OSSL_PKEY_PARAM_EC_PUB_X "qx"
  ------------------
  154|  13.3k|            py = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_EC_PUB_Y);
  ------------------
  |  |  405|  13.3k|# define OSSL_PKEY_PARAM_EC_PUB_Y "qy"
  ------------------
  155|  13.3k|        }
  156|       |
  157|  13.3k|        if (p != NULL || tmpl != NULL) {
  ------------------
  |  Branch (157:13): [True: 0, False: 13.3k]
  |  Branch (157:26): [True: 0, False: 13.3k]
  ------------------
  158|       |            /* convert pub_point to a octet string according to the SECG standard */
  159|      0|            point_conversion_form_t format = EC_KEY_get_conv_form(eckey);
  160|       |
  161|      0|            if ((pub_key_len = EC_POINT_point2buf(ecg, pub_point,
  ------------------
  |  Branch (161:17): [True: 0, False: 0]
  ------------------
  162|      0|                     format,
  163|      0|                     pub_key, bnctx))
  164|      0|                    == 0
  165|      0|                || !ossl_param_build_set_octet_string(tmpl, p,
  ------------------
  |  Branch (165:20): [True: 0, False: 0]
  ------------------
  166|      0|                    OSSL_PKEY_PARAM_PUB_KEY,
  ------------------
  |  |  450|      0|# define OSSL_PKEY_PARAM_PUB_KEY "pub"
  ------------------
  167|      0|                    *pub_key, pub_key_len))
  168|      0|                goto err;
  169|      0|        }
  170|  13.3k|        if (px != NULL || py != NULL) {
  ------------------
  |  Branch (170:13): [True: 0, False: 13.3k]
  |  Branch (170:27): [True: 0, False: 13.3k]
  ------------------
  171|      0|            if (px != NULL) {
  ------------------
  |  Branch (171:17): [True: 0, False: 0]
  ------------------
  172|      0|                x = BN_CTX_get(bnctx);
  173|      0|                if (x == NULL)
  ------------------
  |  Branch (173:21): [True: 0, False: 0]
  ------------------
  174|      0|                    goto err;
  175|      0|            }
  176|      0|            if (py != NULL) {
  ------------------
  |  Branch (176:17): [True: 0, False: 0]
  ------------------
  177|      0|                y = BN_CTX_get(bnctx);
  178|      0|                if (y == NULL)
  ------------------
  |  Branch (178:21): [True: 0, False: 0]
  ------------------
  179|      0|                    goto err;
  180|      0|            }
  181|       |
  182|      0|            if (!EC_POINT_get_affine_coordinates(ecg, pub_point, x, y, bnctx))
  ------------------
  |  Branch (182:17): [True: 0, False: 0]
  ------------------
  183|      0|                goto err;
  184|      0|            if (px != NULL
  ------------------
  |  Branch (184:17): [True: 0, False: 0]
  ------------------
  185|      0|                && !ossl_param_build_set_bn(tmpl, px,
  ------------------
  |  Branch (185:20): [True: 0, False: 0]
  ------------------
  186|      0|                    OSSL_PKEY_PARAM_EC_PUB_X, x))
  ------------------
  |  |  404|      0|# define OSSL_PKEY_PARAM_EC_PUB_X "qx"
  ------------------
  187|      0|                goto err;
  188|      0|            if (py != NULL
  ------------------
  |  Branch (188:17): [True: 0, False: 0]
  ------------------
  189|      0|                && !ossl_param_build_set_bn(tmpl, py,
  ------------------
  |  Branch (189:20): [True: 0, False: 0]
  ------------------
  190|      0|                    OSSL_PKEY_PARAM_EC_PUB_Y, y))
  ------------------
  |  |  405|      0|# define OSSL_PKEY_PARAM_EC_PUB_Y "qy"
  ------------------
  191|      0|                goto err;
  192|      0|        }
  193|  13.3k|    }
  194|       |
  195|  13.3k|    if (priv_key != NULL && include_private) {
  ------------------
  |  Branch (195:9): [True: 0, False: 13.3k]
  |  Branch (195:29): [True: 0, False: 0]
  ------------------
  196|      0|        size_t sz;
  197|      0|        int ecbits;
  198|       |
  199|       |        /*
  200|       |         * Key import/export should never leak the bit length of the secret
  201|       |         * scalar in the key.
  202|       |         *
  203|       |         * For this reason, on export we use padded BIGNUMs with fixed length.
  204|       |         *
  205|       |         * When importing we also should make sure that, even if short lived,
  206|       |         * the newly created BIGNUM is marked with the BN_FLG_CONSTTIME flag as
  207|       |         * soon as possible, so that any processing of this BIGNUM might opt for
  208|       |         * constant time implementations in the backend.
  209|       |         *
  210|       |         * Setting the BN_FLG_CONSTTIME flag alone is never enough, we also have
  211|       |         * to preallocate the BIGNUM internal buffer to a fixed public size big
  212|       |         * enough that operations performed during the processing never trigger
  213|       |         * a realloc which would leak the size of the scalar through memory
  214|       |         * accesses.
  215|       |         *
  216|       |         * Fixed Length
  217|       |         * ------------
  218|       |         *
  219|       |         * The order of the large prime subgroup of the curve is our choice for
  220|       |         * a fixed public size, as that is generally the upper bound for
  221|       |         * generating a private key in EC cryptosystems and should fit all valid
  222|       |         * secret scalars.
  223|       |         *
  224|       |         * For padding on export we just use the bit length of the order
  225|       |         * converted to bytes (rounding up).
  226|       |         *
  227|       |         * For preallocating the BIGNUM storage we look at the number of "words"
  228|       |         * required for the internal representation of the order, and we
  229|       |         * preallocate 2 extra "words" in case any of the subsequent processing
  230|       |         * might temporarily overflow the order length.
  231|       |         */
  232|      0|        ecbits = EC_GROUP_order_bits(ecg);
  233|      0|        if (ecbits <= 0)
  ------------------
  |  Branch (233:13): [True: 0, False: 0]
  ------------------
  234|      0|            goto err;
  235|      0|        sz = (ecbits + 7) / 8;
  236|       |
  237|      0|        if (!ossl_param_build_set_bn_pad(tmpl, params,
  ------------------
  |  Branch (237:13): [True: 0, False: 0]
  ------------------
  238|      0|                OSSL_PKEY_PARAM_PRIV_KEY,
  ------------------
  |  |  448|      0|# define OSSL_PKEY_PARAM_PRIV_KEY "priv"
  ------------------
  239|      0|                priv_key, sz))
  240|      0|            goto err;
  241|      0|    }
  242|  13.3k|    ret = 1;
  243|  13.3k|err:
  244|  13.3k|    BN_CTX_free(bnctx);
  245|  13.3k|    return ret;
  246|  13.3k|}
ec_kmgmt.c:otherparams_to_params:
  250|  13.3k|{
  251|  13.3k|    int ecdh_cofactor_mode = 0, group_check = 0;
  252|  13.3k|    const char *name = NULL;
  253|  13.3k|    point_conversion_form_t format;
  254|       |
  255|  13.3k|    if (ec == NULL)
  ------------------
  |  Branch (255:9): [True: 0, False: 13.3k]
  ------------------
  256|      0|        return 0;
  257|       |
  258|  13.3k|    format = EC_KEY_get_conv_form(ec);
  259|  13.3k|    name = ossl_ec_pt_format_id2name((int)format);
  260|  13.3k|    if (name != NULL
  ------------------
  |  Branch (260:9): [True: 13.3k, False: 0]
  ------------------
  261|  13.3k|        && !ossl_param_build_set_utf8_string(tmpl, params,
  ------------------
  |  Branch (261:12): [True: 0, False: 13.3k]
  ------------------
  262|  13.3k|            OSSL_PKEY_PARAM_EC_POINT_CONVERSION_FORMAT,
  ------------------
  |  |  403|  13.3k|# define OSSL_PKEY_PARAM_EC_POINT_CONVERSION_FORMAT "point-format"
  ------------------
  263|  13.3k|            name))
  264|      0|        return 0;
  265|       |
  266|  13.3k|    group_check = EC_KEY_get_flags(ec) & EC_FLAG_CHECK_NAMED_GROUP_MASK;
  ------------------
  |  |  967|  13.3k|    (EC_FLAG_CHECK_NAMED_GROUP | EC_FLAG_CHECK_NAMED_GROUP_NIST)
  |  |  ------------------
  |  |  |  |  964|  13.3k|#define EC_FLAG_CHECK_NAMED_GROUP 0x2000
  |  |  ------------------
  |  |                   (EC_FLAG_CHECK_NAMED_GROUP | EC_FLAG_CHECK_NAMED_GROUP_NIST)
  |  |  ------------------
  |  |  |  |  965|  13.3k|#define EC_FLAG_CHECK_NAMED_GROUP_NIST 0x4000
  |  |  ------------------
  ------------------
  267|  13.3k|    name = ossl_ec_check_group_type_id2name(group_check);
  268|  13.3k|    if (name != NULL
  ------------------
  |  Branch (268:9): [True: 13.3k, False: 0]
  ------------------
  269|  13.3k|        && !ossl_param_build_set_utf8_string(tmpl, params,
  ------------------
  |  Branch (269:12): [True: 0, False: 13.3k]
  ------------------
  270|  13.3k|            OSSL_PKEY_PARAM_EC_GROUP_CHECK_TYPE,
  ------------------
  |  |  399|  13.3k|# define OSSL_PKEY_PARAM_EC_GROUP_CHECK_TYPE "group-check"
  ------------------
  271|  13.3k|            name))
  272|      0|        return 0;
  273|       |
  274|  13.3k|    if ((EC_KEY_get_enc_flags(ec) & EC_PKEY_NO_PUBKEY) != 0
  ------------------
  |  |  959|  13.3k|#define EC_PKEY_NO_PUBKEY 0x002
  ------------------
  |  Branch (274:9): [True: 0, False: 13.3k]
  ------------------
  275|      0|        && !ossl_param_build_set_int(tmpl, params,
  ------------------
  |  Branch (275:12): [True: 0, False: 0]
  ------------------
  276|      0|            OSSL_PKEY_PARAM_EC_INCLUDE_PUBLIC, 0))
  ------------------
  |  |  400|      0|# define OSSL_PKEY_PARAM_EC_INCLUDE_PUBLIC "include-public"
  ------------------
  277|      0|        return 0;
  278|       |
  279|  13.3k|    ecdh_cofactor_mode = (EC_KEY_get_flags(ec) & EC_FLAG_COFACTOR_ECDH) ? 1 : 0;
  ------------------
  |  |  963|  13.3k|#define EC_FLAG_COFACTOR_ECDH 0x1000
  ------------------
  |  Branch (279:26): [True: 0, False: 13.3k]
  ------------------
  280|  13.3k|    return ossl_param_build_set_int(tmpl, params,
  281|  13.3k|        OSSL_PKEY_PARAM_USE_COFACTOR_ECDH,
  ------------------
  |  |  509|  13.3k|# define OSSL_PKEY_PARAM_USE_COFACTOR_ECDH OSSL_PKEY_PARAM_USE_COFACTOR_FLAG
  |  |  ------------------
  |  |  |  |  510|  13.3k|# define OSSL_PKEY_PARAM_USE_COFACTOR_FLAG "use-cofactor-flag"
  |  |  ------------------
  ------------------
  282|  13.3k|        ecdh_cofactor_mode);
  283|  13.3k|}

ecx_kmgmt.c:ecx_free_key:
  998|    684|{
  999|    684|    ossl_ecx_key_free((ECX_KEY *)keydata);
 1000|    684|}
ecx_kmgmt.c:x25519_get_params:
  367|  1.36k|{
  368|  1.36k|    return ecx_get_params(key, params, X25519_BITS, X25519_SECURITY_BITS,
  ------------------
  |  |   33|  1.36k|#define X25519_BITS 253
  ------------------
                  return ecx_get_params(key, params, X25519_BITS, X25519_SECURITY_BITS,
  ------------------
  |  |   34|  1.36k|#define X25519_SECURITY_BITS 128
  ------------------
  369|  1.36k|        X25519_KEYLEN);
  ------------------
  |  |   26|  1.36k|#define X25519_KEYLEN 32
  ------------------
  370|  1.36k|}
ecx_kmgmt.c:ecx_get_params:
  330|  1.36k|{
  331|  1.36k|    ECX_KEY *ecx = key;
  332|  1.36k|    struct ecx_ed_common_get_params_st p;
  333|       |
  334|  1.36k|    if (key == NULL || !ecx_get_params_decoder(params, &p))
  ------------------
  |  Branch (334:9): [True: 0, False: 1.36k]
  |  Branch (334:24): [True: 0, False: 1.36k]
  ------------------
  335|      0|        return 0;
  336|       |
  337|  1.36k|    if (p.encpub != NULL
  ------------------
  |  Branch (337:9): [True: 684, False: 684]
  ------------------
  338|    684|        && !OSSL_PARAM_set_octet_string(p.encpub, ecx->pubkey, ecx->keylen))
  ------------------
  |  Branch (338:12): [True: 0, False: 684]
  ------------------
  339|      0|        return 0;
  340|       |#ifdef FIPS_MODULE
  341|       |    {
  342|       |        /* Currently X25519 and X448 are not approved */
  343|       |        int approved = 0;
  344|       |
  345|       |        if (p.ind != NULL && !OSSL_PARAM_set_int(p.ind, approved))
  346|       |            return 0;
  347|       |    }
  348|       |#endif
  349|       |
  350|  1.36k|    return ecx_ed_common_get_params(key, &p, bits, secbits, size);
  351|  1.36k|}
ecx_kmgmt.c:ecx_ed_common_get_params:
  313|  1.36k|{
  314|  1.36k|    ECX_KEY *ecx = key;
  315|       |
  316|  1.36k|    if (p->bits != NULL && !OSSL_PARAM_set_int(p->bits, bits))
  ------------------
  |  Branch (316:9): [True: 684, False: 684]
  |  Branch (316:28): [True: 0, False: 684]
  ------------------
  317|      0|        return 0;
  318|  1.36k|    if (p->secbits != NULL && !OSSL_PARAM_set_int(p->secbits, secbits))
  ------------------
  |  Branch (318:9): [True: 684, False: 684]
  |  Branch (318:31): [True: 0, False: 684]
  ------------------
  319|      0|        return 0;
  320|  1.36k|    if (p->size != NULL && !OSSL_PARAM_set_int(p->size, size))
  ------------------
  |  Branch (320:9): [True: 684, False: 684]
  |  Branch (320:28): [True: 0, False: 684]
  ------------------
  321|      0|        return 0;
  322|  1.36k|    if (p->seccat != NULL && !OSSL_PARAM_set_int(p->seccat, 0))
  ------------------
  |  Branch (322:9): [True: 684, False: 684]
  |  Branch (322:30): [True: 0, False: 684]
  ------------------
  323|      0|        return 0;
  324|  1.36k|    return key_to_params(ecx, NULL, p->pub, p->priv, 1);
  325|  1.36k|}
ecx_kmgmt.c:key_to_params:
  247|  1.71k|{
  248|  1.71k|    if (key == NULL)
  ------------------
  |  Branch (248:9): [True: 0, False: 1.71k]
  ------------------
  249|      0|        return 0;
  250|       |
  251|  1.71k|    if (!ossl_param_build_set_octet_string(tmpl, pub,
  ------------------
  |  Branch (251:9): [True: 0, False: 1.71k]
  ------------------
  252|  1.71k|            OSSL_PKEY_PARAM_PUB_KEY,
  ------------------
  |  |  450|  1.71k|# define OSSL_PKEY_PARAM_PUB_KEY "pub"
  ------------------
  253|  1.71k|            key->pubkey, key->keylen))
  254|      0|        return 0;
  255|       |
  256|  1.71k|    if (include_private
  ------------------
  |  Branch (256:9): [True: 1.36k, False: 342]
  ------------------
  257|  1.36k|        && key->privkey != NULL
  ------------------
  |  Branch (257:12): [True: 1.36k, False: 0]
  ------------------
  258|  1.36k|        && !ossl_param_build_set_octet_string(tmpl, priv,
  ------------------
  |  Branch (258:12): [True: 0, False: 1.36k]
  ------------------
  259|  1.36k|            OSSL_PKEY_PARAM_PRIV_KEY,
  ------------------
  |  |  448|  1.36k|# define OSSL_PKEY_PARAM_PRIV_KEY "priv"
  ------------------
  260|  1.36k|            key->privkey, key->keylen))
  261|      0|        return 0;
  262|       |
  263|  1.71k|    return 1;
  264|  1.71k|}
ecx_kmgmt.c:ecx_export:
  268|    342|{
  269|    342|    ECX_KEY *key = keydata;
  270|    342|    OSSL_PARAM_BLD *tmpl;
  271|    342|    OSSL_PARAM *params = NULL;
  272|    342|    int ret = 0;
  273|       |
  274|    342|    if (!ossl_prov_is_running() || key == NULL)
  ------------------
  |  Branch (274:9): [True: 0, False: 342]
  |  Branch (274:36): [True: 0, False: 342]
  ------------------
  275|      0|        return 0;
  276|       |
  277|    342|    if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0)
  ------------------
  |  |  656|    342|    (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  646|    342|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  |  |  ------------------
  |  |                   (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  647|    342|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  |  |  ------------------
  ------------------
  |  Branch (277:9): [True: 0, False: 342]
  ------------------
  278|      0|        return 0;
  279|       |
  280|    342|    tmpl = OSSL_PARAM_BLD_new();
  281|    342|    if (tmpl == NULL)
  ------------------
  |  Branch (281:9): [True: 0, False: 342]
  ------------------
  282|      0|        return 0;
  283|       |
  284|    342|    if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) {
  ------------------
  |  |  656|    342|    (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  646|    342|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  |  |  ------------------
  |  |                   (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  647|    342|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  |  |  ------------------
  ------------------
  |  Branch (284:9): [True: 342, False: 0]
  ------------------
  285|    342|        int include_private = ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0);
  ------------------
  |  |  646|    342|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  ------------------
  286|       |
  287|    342|        if (!key_to_params(key, tmpl, NULL, NULL, include_private))
  ------------------
  |  Branch (287:13): [True: 0, False: 342]
  ------------------
  288|      0|            goto err;
  289|    342|    }
  290|       |
  291|    342|    params = OSSL_PARAM_BLD_to_param(tmpl);
  292|    342|    if (params == NULL)
  ------------------
  |  Branch (292:9): [True: 0, False: 342]
  ------------------
  293|      0|        goto err;
  294|       |
  295|    342|    ret = param_cb(params, cbarg);
  296|    342|    OSSL_PARAM_clear_free(params);
  297|    342|err:
  298|    342|    OSSL_PARAM_BLD_free(tmpl);
  299|    342|    return ret;
  300|    342|}
ecx_kmgmt.c:x25519_gen_init:
  528|    684|{
  529|    684|    return ecx_gen_init(provctx, selection, params, ECX_KEY_TYPE_X25519, "X25519");
  530|    684|}
ecx_kmgmt.c:ecx_gen_init:
  497|    684|{
  498|    684|    OSSL_LIB_CTX *libctx = PROV_LIBCTX_OF(provctx);
  ------------------
  |  |   31|    684|    ossl_prov_ctx_get0_libctx((provctx))
  ------------------
  499|    684|    struct ecx_gen_ctx *gctx = NULL;
  500|       |
  501|    684|    if (!ossl_prov_is_running())
  ------------------
  |  Branch (501:9): [True: 0, False: 684]
  ------------------
  502|      0|        return NULL;
  503|       |
  504|    684|    if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) {
  ------------------
  |  |  109|    684|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (504:9): [True: 684, False: 0]
  ------------------
  505|    684|        gctx->libctx = libctx;
  506|    684|        gctx->type = type;
  507|    684|        gctx->selection = selection;
  508|       |#ifdef FIPS_MODULE
  509|       |        /* X25519/X448 are not FIPS approved, (ED25519/ED448 are approved) */
  510|       |        if (algdesc != NULL
  511|       |            && !ossl_FIPS_IND_callback(libctx, algdesc, "KeyGen Init")) {
  512|       |            OPENSSL_free(gctx);
  513|       |            return NULL;
  514|       |        }
  515|       |#endif
  516|    684|    } else {
  517|      0|        return NULL;
  518|      0|    }
  519|    684|    if (!ecx_gen_set_params(gctx, params)) {
  ------------------
  |  Branch (519:9): [True: 0, False: 684]
  ------------------
  520|      0|        ecx_gen_cleanup(gctx);
  521|       |        gctx = NULL;
  522|      0|    }
  523|    684|    return gctx;
  524|    684|}
ecx_kmgmt.c:ecx_gen_set_params:
  551|  1.36k|{
  552|  1.36k|    struct ecx_gen_ctx *gctx = genctx;
  553|  1.36k|    struct ecx_gen_set_params_st p;
  554|       |
  555|  1.36k|    if (gctx == NULL || !ecx_gen_set_params_decoder(params, &p))
  ------------------
  |  Branch (555:9): [True: 0, False: 1.36k]
  |  Branch (555:25): [True: 0, False: 1.36k]
  ------------------
  556|      0|        return 0;
  557|       |
  558|  1.36k|    if (p.group != NULL) {
  ------------------
  |  Branch (558:9): [True: 342, False: 1.02k]
  ------------------
  559|    342|        const char *groupname = NULL;
  560|       |
  561|       |        /*
  562|       |         * We optionally allow setting a group name - but each algorithm only
  563|       |         * support one such name, so all we do is verify that it is the one we
  564|       |         * expected.
  565|       |         */
  566|    342|        switch (gctx->type) {
  567|    342|        case ECX_KEY_TYPE_X25519:
  ------------------
  |  Branch (567:9): [True: 342, False: 0]
  ------------------
  568|    342|            groupname = "x25519";
  569|    342|            break;
  570|      0|        case ECX_KEY_TYPE_X448:
  ------------------
  |  Branch (570:9): [True: 0, False: 342]
  ------------------
  571|      0|            groupname = "x448";
  572|      0|            break;
  573|      0|        default:
  ------------------
  |  Branch (573:9): [True: 0, False: 342]
  ------------------
  574|       |            /* We only support this for key exchange at the moment */
  575|      0|            break;
  576|    342|        }
  577|    342|        if (p.group->data_type != OSSL_PARAM_UTF8_STRING
  ------------------
  |  |  117|    684|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (577:13): [True: 0, False: 342]
  ------------------
  578|    342|            || groupname == NULL
  ------------------
  |  Branch (578:16): [True: 0, False: 342]
  ------------------
  579|    342|            || OPENSSL_strcasecmp(p.group->data, groupname) != 0) {
  ------------------
  |  Branch (579:16): [True: 0, False: 342]
  ------------------
  580|      0|            ERR_raise(ERR_LIB_PROV, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  581|      0|            return 0;
  582|      0|        }
  583|    342|    }
  584|       |
  585|  1.36k|    if (p.kdfpropq != NULL) {
  ------------------
  |  Branch (585:9): [True: 0, False: 1.36k]
  ------------------
  586|      0|        if (p.kdfpropq->data_type != OSSL_PARAM_UTF8_STRING)
  ------------------
  |  |  117|      0|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (586:13): [True: 0, False: 0]
  ------------------
  587|      0|            return 0;
  588|      0|        OPENSSL_free(gctx->propq);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  589|      0|        gctx->propq = OPENSSL_strdup(p.kdfpropq->data);
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  590|      0|        if (gctx->propq == NULL)
  ------------------
  |  Branch (590:13): [True: 0, False: 0]
  ------------------
  591|      0|            return 0;
  592|      0|    }
  593|       |
  594|  1.36k|    if (p.ikm != NULL) {
  ------------------
  |  Branch (594:9): [True: 0, False: 1.36k]
  ------------------
  595|      0|        if (p.ikm->data_size != 0 && p.ikm->data != NULL) {
  ------------------
  |  Branch (595:13): [True: 0, False: 0]
  |  Branch (595:38): [True: 0, False: 0]
  ------------------
  596|      0|            OPENSSL_free(gctx->dhkem_ikm);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  597|      0|            gctx->dhkem_ikm = NULL;
  598|      0|            if (!OSSL_PARAM_get_octet_string(p.ikm, (void **)&gctx->dhkem_ikm, 0,
  ------------------
  |  Branch (598:17): [True: 0, False: 0]
  ------------------
  599|      0|                    &gctx->dhkem_ikmlen))
  600|      0|                return 0;
  601|      0|        }
  602|      0|    }
  603|       |
  604|  1.36k|    return 1;
  605|  1.36k|}
ecx_kmgmt.c:x25519_gen:
  748|    684|{
  749|    684|    struct ecx_gen_ctx *gctx = genctx;
  750|       |
  751|    684|    if (!ossl_prov_is_running())
  ------------------
  |  Branch (751:9): [True: 0, False: 684]
  ------------------
  752|      0|        return 0;
  753|       |
  754|       |#ifdef S390X_EC_ASM
  755|       |    if (OPENSSL_s390xcap_P.pcc[1] & S390X_CAPBIT(S390X_SCALAR_MULTIPLY_X25519))
  756|       |        return s390x_ecx_keygen25519(gctx);
  757|       |#endif
  758|    684|    return ecx_gen(gctx);
  759|    684|}
ecx_kmgmt.c:ecx_gen:
  682|    684|{
  683|    684|    ECX_KEY *key;
  684|    684|    unsigned char *privkey;
  685|       |
  686|    684|    if (gctx == NULL)
  ------------------
  |  Branch (686:9): [True: 0, False: 684]
  ------------------
  687|      0|        return NULL;
  688|    684|    if ((key = ossl_ecx_key_new(gctx->libctx, gctx->type, 0,
  ------------------
  |  Branch (688:9): [True: 0, False: 684]
  ------------------
  689|    684|             gctx->propq))
  690|    684|        == NULL) {
  691|      0|        ERR_raise(ERR_LIB_PROV, ERR_R_EC_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  692|      0|        return NULL;
  693|      0|    }
  694|       |
  695|       |    /* If we're doing parameter generation then we just return a blank key */
  696|    684|    if ((gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0)
  ------------------
  |  |  656|    684|    (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  646|    684|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  |  |  ------------------
  |  |                   (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  647|    684|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  |  |  ------------------
  ------------------
  |  Branch (696:9): [True: 0, False: 684]
  ------------------
  697|      0|        return key;
  698|       |
  699|    684|    if ((privkey = ossl_ecx_key_allocate_privkey(key)) == NULL) {
  ------------------
  |  Branch (699:9): [True: 0, False: 684]
  ------------------
  700|      0|        ERR_raise(ERR_LIB_PROV, ERR_R_EC_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  701|      0|        goto err;
  702|      0|    }
  703|    684|#ifndef FIPS_MODULE
  704|    684|    if (gctx->dhkem_ikm != NULL && gctx->dhkem_ikmlen != 0) {
  ------------------
  |  Branch (704:9): [True: 0, False: 684]
  |  Branch (704:36): [True: 0, False: 0]
  ------------------
  705|      0|        if (ecx_key_type_is_ed(gctx->type))
  ------------------
  |  Branch (705:13): [True: 0, False: 0]
  ------------------
  706|      0|            goto err;
  707|      0|        if (!ossl_ecx_dhkem_derive_private(key, privkey,
  ------------------
  |  Branch (707:13): [True: 0, False: 0]
  ------------------
  708|      0|                gctx->dhkem_ikm, gctx->dhkem_ikmlen))
  709|      0|            goto err;
  710|      0|    } else
  711|    684|#endif
  712|    684|    {
  713|    684|        if (RAND_priv_bytes_ex(gctx->libctx, privkey, key->keylen, 0) <= 0)
  ------------------
  |  Branch (713:13): [True: 0, False: 684]
  ------------------
  714|      0|            goto err;
  715|    684|    }
  716|       |
  717|    684|    switch (gctx->type) {
  ------------------
  |  Branch (717:13): [True: 684, False: 0]
  ------------------
  718|    684|    case ECX_KEY_TYPE_X25519:
  ------------------
  |  Branch (718:5): [True: 684, False: 0]
  ------------------
  719|    684|        privkey[0] &= 248;
  720|    684|        privkey[X25519_KEYLEN - 1] &= 127;
  ------------------
  |  |   26|    684|#define X25519_KEYLEN 32
  ------------------
  721|    684|        privkey[X25519_KEYLEN - 1] |= 64;
  ------------------
  |  |   26|    684|#define X25519_KEYLEN 32
  ------------------
  722|    684|        ossl_x25519_public_from_private(key->pubkey, privkey);
  723|    684|        break;
  724|      0|    case ECX_KEY_TYPE_X448:
  ------------------
  |  Branch (724:5): [True: 0, False: 684]
  ------------------
  725|      0|        privkey[0] &= 252;
  726|      0|        privkey[X448_KEYLEN - 1] |= 128;
  ------------------
  |  |   27|      0|#define X448_KEYLEN 56
  ------------------
  727|      0|        ossl_x448_public_from_private(key->pubkey, privkey);
  728|      0|        break;
  729|      0|    case ECX_KEY_TYPE_ED25519:
  ------------------
  |  Branch (729:5): [True: 0, False: 684]
  ------------------
  730|      0|        if (!ossl_ed25519_public_from_private(gctx->libctx, key->pubkey, privkey,
  ------------------
  |  Branch (730:13): [True: 0, False: 0]
  ------------------
  731|      0|                gctx->propq))
  732|      0|            goto err;
  733|      0|        break;
  734|      0|    case ECX_KEY_TYPE_ED448:
  ------------------
  |  Branch (734:5): [True: 0, False: 684]
  ------------------
  735|      0|        if (!ossl_ed448_public_from_private(gctx->libctx, key->pubkey, privkey,
  ------------------
  |  Branch (735:13): [True: 0, False: 0]
  ------------------
  736|      0|                gctx->propq))
  737|      0|            goto err;
  738|      0|        break;
  739|    684|    }
  740|    684|    key->haspubkey = 1;
  741|    684|    return key;
  742|      0|err:
  743|      0|    ossl_ecx_key_free(key);
  744|       |    return NULL;
  745|    684|}
ecx_kmgmt.c:ecx_gen_cleanup:
  843|    684|{
  844|    684|    struct ecx_gen_ctx *gctx = genctx;
  845|       |
  846|    684|    if (gctx == NULL)
  ------------------
  |  Branch (846:9): [True: 0, False: 684]
  ------------------
  847|      0|        return;
  848|       |
  849|    684|    OPENSSL_clear_free(gctx->dhkem_ikm, gctx->dhkem_ikmlen);
  ------------------
  |  |  130|    684|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  850|    684|    OPENSSL_free(gctx->propq);
  ------------------
  |  |  132|    684|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  851|    684|    OPENSSL_free(gctx);
  ------------------
  |  |  132|    684|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  852|    684|}

ecx_kmgmt.c:ecx_get_params_decoder:
  107|  1.36k|{
  108|  1.36k|    const char *s;
  109|       |
  110|  1.36k|    memset(r, 0, sizeof(*r));
  111|  1.36k|    if (p != NULL)
  ------------------
  |  Branch (111:9): [True: 1.36k, False: 0]
  ------------------
  112|  4.78k|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (112:16): [True: 3.42k, False: 1.36k]
  ------------------
  113|  3.42k|            switch(s[0]) {
  114|      0|            default:
  ------------------
  |  Branch (114:13): [True: 0, False: 3.42k]
  ------------------
  115|      0|                break;
  116|    684|            case 'b':
  ------------------
  |  Branch (116:13): [True: 684, False: 2.73k]
  ------------------
  117|    684|                if (ossl_likely(strcmp("its", s + 1) == 0)) {
  ------------------
  |  |   22|    684|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 684, False: 0]
  |  |  ------------------
  ------------------
  118|       |                    /* OSSL_PKEY_PARAM_BITS */
  119|    684|                    if (ossl_unlikely(r->bits != NULL)) {
  ------------------
  |  |   23|    684|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 684]
  |  |  ------------------
  ------------------
  120|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  121|      0|                                       "param %s is repeated", s);
  122|      0|                        return 0;
  123|      0|                    }
  124|    684|                    r->bits = (OSSL_PARAM *)p;
  125|    684|                }
  126|    684|                break;
  127|    684|            case 'e':
  ------------------
  |  Branch (127:13): [True: 684, False: 2.73k]
  ------------------
  128|    684|                if (ossl_likely(strcmp("ncoded-pub-key", s + 1) == 0)) {
  ------------------
  |  |   22|    684|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 684, False: 0]
  |  |  ------------------
  ------------------
  129|       |                    /* OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY */
  130|    684|                    if (ossl_unlikely(r->encpub != NULL)) {
  ------------------
  |  |   23|    684|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 684]
  |  |  ------------------
  ------------------
  131|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  132|      0|                                       "param %s is repeated", s);
  133|      0|                        return 0;
  134|      0|                    }
  135|    684|                    r->encpub = (OSSL_PARAM *)p;
  136|    684|                }
  137|    684|                break;
  138|    684|            case 'f':
  ------------------
  |  Branch (138:13): [True: 0, False: 3.42k]
  ------------------
  139|       |# if defined(FIPS_MODULE)
  140|       |                if (ossl_likely(strcmp("ips-indicator", s + 1) == 0)) {
  141|       |                    /* OSSL_PKEY_PARAM_FIPS_APPROVED_INDICATOR */
  142|       |                    if (ossl_unlikely(r->ind != NULL)) {
  143|       |                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  144|       |                                       "param %s is repeated", s);
  145|       |                        return 0;
  146|       |                    }
  147|       |                    r->ind = (OSSL_PARAM *)p;
  148|       |                }
  149|       |# endif
  150|      0|                break;
  151|    684|            case 'm':
  ------------------
  |  Branch (151:13): [True: 684, False: 2.73k]
  ------------------
  152|    684|                if (ossl_likely(strcmp("ax-size", s + 1) == 0)) {
  ------------------
  |  |   22|    684|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 684, False: 0]
  |  |  ------------------
  ------------------
  153|       |                    /* OSSL_PKEY_PARAM_MAX_SIZE */
  154|    684|                    if (ossl_unlikely(r->size != NULL)) {
  ------------------
  |  |   23|    684|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 684]
  |  |  ------------------
  ------------------
  155|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  156|      0|                                       "param %s is repeated", s);
  157|      0|                        return 0;
  158|      0|                    }
  159|    684|                    r->size = (OSSL_PARAM *)p;
  160|    684|                }
  161|    684|                break;
  162|    684|            case 'p':
  ------------------
  |  Branch (162:13): [True: 0, False: 3.42k]
  ------------------
  163|      0|                switch(s[1]) {
  164|      0|                default:
  ------------------
  |  Branch (164:17): [True: 0, False: 0]
  ------------------
  165|      0|                    break;
  166|      0|                case 'r':
  ------------------
  |  Branch (166:17): [True: 0, False: 0]
  ------------------
  167|      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]
  |  |  ------------------
  ------------------
  168|       |                        /* OSSL_PKEY_PARAM_PRIV_KEY */
  169|      0|                        if (ossl_unlikely(r->priv != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  170|      0|                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  171|      0|                                           "param %s is repeated", s);
  172|      0|                            return 0;
  173|      0|                        }
  174|      0|                        r->priv = (OSSL_PARAM *)p;
  175|      0|                    }
  176|      0|                    break;
  177|      0|                case 'u':
  ------------------
  |  Branch (177:17): [True: 0, False: 0]
  ------------------
  178|      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]
  |  |  ------------------
  ------------------
  179|       |                        /* OSSL_PKEY_PARAM_PUB_KEY */
  180|      0|                        if (ossl_unlikely(r->pub != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  181|      0|                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  182|      0|                                           "param %s is repeated", s);
  183|      0|                            return 0;
  184|      0|                        }
  185|      0|                        r->pub = (OSSL_PARAM *)p;
  186|      0|                    }
  187|      0|                }
  188|      0|                break;
  189|  1.36k|            case 's':
  ------------------
  |  Branch (189:13): [True: 1.36k, False: 2.05k]
  ------------------
  190|  1.36k|                switch(s[1]) {
  191|      0|                default:
  ------------------
  |  Branch (191:17): [True: 0, False: 1.36k]
  ------------------
  192|      0|                    break;
  193|  1.36k|                case 'e':
  ------------------
  |  Branch (193:17): [True: 1.36k, False: 0]
  ------------------
  194|  1.36k|                    switch(s[2]) {
  195|      0|                    default:
  ------------------
  |  Branch (195:21): [True: 0, False: 1.36k]
  ------------------
  196|      0|                        break;
  197|  1.36k|                    case 'c':
  ------------------
  |  Branch (197:21): [True: 1.36k, False: 0]
  ------------------
  198|  1.36k|                        switch(s[3]) {
  199|      0|                        default:
  ------------------
  |  Branch (199:25): [True: 0, False: 1.36k]
  ------------------
  200|      0|                            break;
  201|  1.36k|                        case 'u':
  ------------------
  |  Branch (201:25): [True: 1.36k, False: 0]
  ------------------
  202|  1.36k|                            switch(s[4]) {
  203|      0|                            default:
  ------------------
  |  Branch (203:29): [True: 0, False: 1.36k]
  ------------------
  204|      0|                                break;
  205|  1.36k|                            case 'r':
  ------------------
  |  Branch (205:29): [True: 1.36k, False: 0]
  ------------------
  206|  1.36k|                                switch(s[5]) {
  207|      0|                                default:
  ------------------
  |  Branch (207:33): [True: 0, False: 1.36k]
  ------------------
  208|      0|                                    break;
  209|  1.36k|                                case 'i':
  ------------------
  |  Branch (209:33): [True: 1.36k, False: 0]
  ------------------
  210|  1.36k|                                    switch(s[6]) {
  211|      0|                                    default:
  ------------------
  |  Branch (211:37): [True: 0, False: 1.36k]
  ------------------
  212|      0|                                        break;
  213|  1.36k|                                    case 't':
  ------------------
  |  Branch (213:37): [True: 1.36k, False: 0]
  ------------------
  214|  1.36k|                                        switch(s[7]) {
  215|      0|                                        default:
  ------------------
  |  Branch (215:41): [True: 0, False: 1.36k]
  ------------------
  216|      0|                                            break;
  217|  1.36k|                                        case 'y':
  ------------------
  |  Branch (217:41): [True: 1.36k, False: 0]
  ------------------
  218|  1.36k|                                            switch(s[8]) {
  219|      0|                                            default:
  ------------------
  |  Branch (219:45): [True: 0, False: 1.36k]
  ------------------
  220|      0|                                                break;
  221|  1.36k|                                            case '-':
  ------------------
  |  Branch (221:45): [True: 1.36k, False: 0]
  ------------------
  222|  1.36k|                                                switch(s[9]) {
  223|      0|                                                default:
  ------------------
  |  Branch (223:49): [True: 0, False: 1.36k]
  ------------------
  224|      0|                                                    break;
  225|    684|                                                case 'b':
  ------------------
  |  Branch (225:49): [True: 684, False: 684]
  ------------------
  226|    684|                                                    if (ossl_likely(strcmp("its", s + 10) == 0)) {
  ------------------
  |  |   22|    684|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 684, False: 0]
  |  |  ------------------
  ------------------
  227|       |                                                        /* OSSL_PKEY_PARAM_SECURITY_BITS */
  228|    684|                                                        if (ossl_unlikely(r->secbits != NULL)) {
  ------------------
  |  |   23|    684|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 684]
  |  |  ------------------
  ------------------
  229|      0|                                                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  230|      0|                                                                           "param %s is repeated", s);
  231|      0|                                                            return 0;
  232|      0|                                                        }
  233|    684|                                                        r->secbits = (OSSL_PARAM *)p;
  234|    684|                                                    }
  235|    684|                                                    break;
  236|    684|                                                case 'c':
  ------------------
  |  Branch (236:49): [True: 684, False: 684]
  ------------------
  237|    684|                                                    if (ossl_likely(strcmp("ategory", s + 10) == 0)) {
  ------------------
  |  |   22|    684|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 684, False: 0]
  |  |  ------------------
  ------------------
  238|       |                                                        /* OSSL_PKEY_PARAM_SECURITY_CATEGORY */
  239|    684|                                                        if (ossl_unlikely(r->seccat != NULL)) {
  ------------------
  |  |   23|    684|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 684]
  |  |  ------------------
  ------------------
  240|      0|                                                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  241|      0|                                                                           "param %s is repeated", s);
  242|      0|                                                            return 0;
  243|      0|                                                        }
  244|    684|                                                        r->seccat = (OSSL_PARAM *)p;
  245|    684|                                                    }
  246|  1.36k|                                                }
  247|  1.36k|                                            }
  248|  1.36k|                                        }
  249|  1.36k|                                    }
  250|  1.36k|                                }
  251|  1.36k|                            }
  252|  1.36k|                        }
  253|  1.36k|                    }
  254|  1.36k|                }
  255|  3.42k|            }
  256|  1.36k|    return 1;
  257|  1.36k|}
ecx_kmgmt.c:ecx_gen_set_params_decoder:
  517|  1.36k|{
  518|  1.36k|    const char *s;
  519|       |
  520|  1.36k|    memset(r, 0, sizeof(*r));
  521|  1.36k|    if (p != NULL)
  ------------------
  |  Branch (521:9): [True: 684, False: 684]
  ------------------
  522|  1.02k|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (522:16): [True: 342, False: 684]
  ------------------
  523|    342|            switch(s[0]) {
  524|      0|            default:
  ------------------
  |  Branch (524:13): [True: 0, False: 342]
  ------------------
  525|      0|                break;
  526|      0|            case 'd':
  ------------------
  |  Branch (526:13): [True: 0, False: 342]
  ------------------
  527|      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]
  |  |  ------------------
  ------------------
  528|       |                    /* OSSL_PKEY_PARAM_DHKEM_IKM */
  529|      0|                    if (ossl_unlikely(r->ikm != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  530|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  531|      0|                                       "param %s is repeated", s);
  532|      0|                        return 0;
  533|      0|                    }
  534|      0|                    r->ikm = (OSSL_PARAM *)p;
  535|      0|                }
  536|      0|                break;
  537|    342|            case 'g':
  ------------------
  |  Branch (537:13): [True: 342, False: 0]
  ------------------
  538|    342|                if (ossl_likely(strcmp("roup", s + 1) == 0)) {
  ------------------
  |  |   22|    342|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 342, False: 0]
  |  |  ------------------
  ------------------
  539|       |                    /* OSSL_PKEY_PARAM_GROUP_NAME */
  540|    342|                    if (ossl_unlikely(r->group != NULL)) {
  ------------------
  |  |   23|    342|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 342]
  |  |  ------------------
  ------------------
  541|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  542|      0|                                       "param %s is repeated", s);
  543|      0|                        return 0;
  544|      0|                    }
  545|    342|                    r->group = (OSSL_PARAM *)p;
  546|    342|                }
  547|    342|                break;
  548|    342|            case 'p':
  ------------------
  |  Branch (548:13): [True: 0, False: 342]
  ------------------
  549|      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]
  |  |  ------------------
  ------------------
  550|       |                    /* OSSL_KDF_PARAM_PROPERTIES */
  551|      0|                    if (ossl_unlikely(r->kdfpropq != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  552|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  553|      0|                                       "param %s is repeated", s);
  554|      0|                        return 0;
  555|      0|                    }
  556|      0|                    r->kdfpropq = (OSSL_PARAM *)p;
  557|      0|                }
  558|    342|            }
  559|  1.36k|    return 1;
  560|  1.36k|}

ossl_prov_ml_kem_new:
  162|    342|{
  163|    342|    ML_KEM_KEY *key;
  164|       |
  165|    342|    if (!ossl_prov_is_running())
  ------------------
  |  Branch (165:9): [True: 0, False: 342]
  ------------------
  166|      0|        return NULL;
  167|       |
  168|       |#ifdef FIPS_MODULE
  169|       |    if (!ossl_deferred_self_test(PROV_LIBCTX_OF(ctx),
  170|       |            ST_ID_ASYM_KEYGEN_ML_KEM))
  171|       |        return NULL;
  172|       |#endif
  173|       |
  174|       |    /*
  175|       |     * When decoding, if the key ends up "loaded" into the same provider, these
  176|       |     * are the correct config settings, otherwise, new values will be assigned
  177|       |     * on import into a different provider.  The "load" API does not pass along
  178|       |     * the provider context.
  179|       |     */
  180|    342|    if ((key = ossl_ml_kem_key_new(PROV_LIBCTX_OF(ctx), propq, evp_type)) != NULL) {
  ------------------
  |  |   31|    342|    ossl_prov_ctx_get0_libctx((provctx))
  ------------------
  |  Branch (180:9): [True: 342, False: 0]
  ------------------
  181|    342|        const char *pct_type = ossl_prov_ctx_get_param(
  182|    342|            ctx, OSSL_PKEY_PARAM_ML_KEM_IMPORT_PCT_TYPE, "random");
  ------------------
  |  |  440|    342|# define OSSL_PKEY_PARAM_ML_KEM_IMPORT_PCT_TYPE "ml-kem.import_pct_type"
  ------------------
  183|       |
  184|    342|        if (ossl_prov_ctx_get_bool_param(
  ------------------
  |  Branch (184:13): [True: 342, False: 0]
  ------------------
  185|    342|                ctx, OSSL_PKEY_PARAM_ML_KEM_RETAIN_SEED, 1))
  ------------------
  |  |  444|    342|# define OSSL_PKEY_PARAM_ML_KEM_RETAIN_SEED "ml-kem.retain_seed"
  ------------------
  186|    342|            key->prov_flags |= ML_KEM_KEY_RETAIN_SEED;
  ------------------
  |  |  126|    342|#define ML_KEM_KEY_RETAIN_SEED (1 << 3)
  ------------------
  187|      0|        else
  188|      0|            key->prov_flags &= ~ML_KEM_KEY_RETAIN_SEED;
  ------------------
  |  |  126|      0|#define ML_KEM_KEY_RETAIN_SEED (1 << 3)
  ------------------
  189|    342|        if (ossl_prov_ctx_get_bool_param(
  ------------------
  |  Branch (189:13): [True: 342, False: 0]
  ------------------
  190|    342|                ctx, OSSL_PKEY_PARAM_ML_KEM_PREFER_SEED, 1))
  ------------------
  |  |  443|    342|# define OSSL_PKEY_PARAM_ML_KEM_PREFER_SEED "ml-kem.prefer_seed"
  ------------------
  191|    342|            key->prov_flags |= ML_KEM_KEY_PREFER_SEED;
  ------------------
  |  |  125|    342|#define ML_KEM_KEY_PREFER_SEED (1 << 2)
  ------------------
  192|      0|        else
  193|      0|            key->prov_flags &= ~ML_KEM_KEY_PREFER_SEED;
  ------------------
  |  |  125|      0|#define ML_KEM_KEY_PREFER_SEED (1 << 2)
  ------------------
  194|    342|        if (OPENSSL_strcasecmp(pct_type, "random") == 0)
  ------------------
  |  Branch (194:13): [True: 342, False: 0]
  ------------------
  195|    342|            key->prov_flags |= ML_KEM_KEY_RANDOM_PCT;
  ------------------
  |  |  123|    342|#define ML_KEM_KEY_RANDOM_PCT (1 << 0)
  ------------------
  196|      0|        else if (OPENSSL_strcasecmp(pct_type, "fixed") == 0)
  ------------------
  |  Branch (196:18): [True: 0, False: 0]
  ------------------
  197|      0|            key->prov_flags |= ML_KEM_KEY_FIXED_PCT;
  ------------------
  |  |  124|      0|#define ML_KEM_KEY_FIXED_PCT (1 << 1)
  ------------------
  198|      0|        else
  199|      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)
  |  |  ------------------
  ------------------
  200|    342|    }
  201|    342|    return key;
  202|    342|}
ml_kem_kmgmt.c:ml_kem_free_key:
  817|    342|{
  818|    342|    ossl_ml_kem_key_free((ML_KEM_KEY *)keydata);
  819|    342|}
ml_kem_kmgmt.c:ml_kem_get_params:
  569|    342|{
  570|    342|    ML_KEM_KEY *key = vkey;
  571|    342|    const ML_KEM_VINFO *v;
  572|    342|    struct ml_kem_get_params_st p;
  573|       |
  574|    342|    if (key == NULL || !ml_kem_get_params_decoder(params, &p))
  ------------------
  |  Branch (574:9): [True: 0, False: 342]
  |  Branch (574:24): [True: 0, False: 342]
  ------------------
  575|      0|        return 0;
  576|       |
  577|    342|    v = ossl_ml_kem_key_vinfo(key);
  ------------------
  |  |  206|    342|#define ossl_ml_kem_key_vinfo(key) ((key)->vinfo)
  ------------------
  578|       |
  579|    342|    if (p.bits != NULL && !OSSL_PARAM_set_size_t(p.bits, v->bits))
  ------------------
  |  Branch (579:9): [True: 342, False: 0]
  |  Branch (579:27): [True: 0, False: 342]
  ------------------
  580|      0|        return 0;
  581|       |
  582|    342|    if (p.secbits != NULL && !OSSL_PARAM_set_size_t(p.secbits, v->secbits))
  ------------------
  |  Branch (582:9): [True: 342, False: 0]
  |  Branch (582:30): [True: 0, False: 342]
  ------------------
  583|      0|        return 0;
  584|       |
  585|    342|    if (p.maxsize != NULL && !OSSL_PARAM_set_size_t(p.maxsize, v->ctext_bytes))
  ------------------
  |  Branch (585:9): [True: 342, False: 0]
  |  Branch (585:30): [True: 0, False: 342]
  ------------------
  586|      0|        return 0;
  587|       |
  588|    342|    if (p.seccat != NULL && !OSSL_PARAM_set_int(p.seccat, v->security_category))
  ------------------
  |  Branch (588:9): [True: 342, False: 0]
  |  Branch (588:29): [True: 0, False: 342]
  ------------------
  589|      0|        return 0;
  590|       |
  591|    342|    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 (591:9): [True: 0, False: 342]
  ------------------
  592|       |        /* Exported to EVP_PKEY_get_raw_public_key() */
  593|      0|        if (!ml_kem_get_key_param(key, p.pubkey, v->pubkey_bytes,
  ------------------
  |  Branch (593:13): [True: 0, False: 0]
  ------------------
  594|      0|                &ossl_ml_kem_encode_public_key))
  595|      0|            return 0;
  596|      0|    }
  597|       |
  598|    342|    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 (598:9): [True: 0, False: 342]
  ------------------
  599|       |        /* Needed by EVP_PKEY_get1_encoded_public_key() */
  600|      0|        if (!ml_kem_get_key_param(key, p.encpubkey, v->pubkey_bytes,
  ------------------
  |  Branch (600:13): [True: 0, False: 0]
  ------------------
  601|      0|                &ossl_ml_kem_encode_public_key))
  602|      0|            return 0;
  603|      0|    }
  604|       |
  605|    342|    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 (605:9): [True: 0, False: 342]
  ------------------
  606|       |        /* Exported to EVP_PKEY_get_raw_private_key() */
  607|      0|        if (!ml_kem_get_key_param(key, p.privkey, v->prvkey_bytes,
  ------------------
  |  Branch (607:13): [True: 0, False: 0]
  ------------------
  608|      0|                &ossl_ml_kem_encode_private_key))
  609|      0|            return 0;
  610|      0|    }
  611|       |
  612|    342|    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 (612:9): [True: 0, False: 342]
  ------------------
  613|       |        /* Exported for import */
  614|      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 (614:13): [True: 0, False: 0]
  ------------------
  615|      0|                &ossl_ml_kem_encode_seed))
  616|      0|            return 0;
  617|      0|    }
  618|       |
  619|    342|#ifndef OPENSSL_NO_CMS
  620|    342|    if (p.ri_type != NULL && !OSSL_PARAM_set_int(p.ri_type, CMS_RECIPINFO_KEM))
  ------------------
  |  |  175|      0|#define CMS_RECIPINFO_KEM 5
  ------------------
  |  Branch (620:9): [True: 0, False: 342]
  |  Branch (620:30): [True: 0, False: 0]
  ------------------
  621|      0|        return 0;
  622|       |
  623|    342|    if (p.kemri_kdf_alg != NULL) {
  ------------------
  |  Branch (623:9): [True: 0, False: 342]
  ------------------
  624|      0|        uint8_t aid_buf[OSSL_MAX_ALGORITHM_ID_SIZE];
  625|      0|        int ret;
  626|      0|        size_t aid_len = 0;
  627|      0|        WPACKET pkt;
  628|      0|        uint8_t *aid = NULL;
  629|       |
  630|      0|        ret = WPACKET_init_der(&pkt, aid_buf, sizeof(aid_buf));
  631|      0|        ret &= ossl_DER_w_begin_sequence(&pkt, -1)
  ------------------
  |  Branch (631:16): [True: 0, False: 0]
  ------------------
  632|      0|            && ossl_DER_w_precompiled(&pkt, -1, ossl_der_oid_id_alg_hkdf_with_sha256,
  ------------------
  |  Branch (632:16): [True: 0, False: 0]
  ------------------
  633|      0|                sizeof(ossl_der_oid_id_alg_hkdf_with_sha256))
  634|      0|            && ossl_DER_w_end_sequence(&pkt, -1);
  ------------------
  |  Branch (634:16): [True: 0, False: 0]
  ------------------
  635|      0|        if (ret && WPACKET_finish(&pkt)) {
  ------------------
  |  Branch (635:13): [True: 0, False: 0]
  |  Branch (635:20): [True: 0, False: 0]
  ------------------
  636|      0|            WPACKET_get_total_written(&pkt, &aid_len);
  637|      0|            aid = WPACKET_get_curr(&pkt);
  638|      0|        }
  639|      0|        WPACKET_cleanup(&pkt);
  640|      0|        if (!ret)
  ------------------
  |  Branch (640:13): [True: 0, False: 0]
  ------------------
  641|      0|            return 0;
  642|      0|        if (aid != NULL && aid_len != 0 && !OSSL_PARAM_set_octet_string(p.kemri_kdf_alg, aid, aid_len))
  ------------------
  |  Branch (642:13): [True: 0, False: 0]
  |  Branch (642:28): [True: 0, False: 0]
  |  Branch (642:44): [True: 0, False: 0]
  ------------------
  643|      0|            return 0;
  644|      0|    }
  645|    342|#endif
  646|       |
  647|    342|    return 1;
  648|    342|}
ml_kem_kmgmt.c:ml_kem_gen_init:
  722|    342|{
  723|    342|    PROV_ML_KEM_GEN_CTX *gctx = NULL;
  724|       |
  725|       |    /*
  726|       |     * We can only generate private keys, check that the selection is
  727|       |     * appropriate.
  728|       |     */
  729|    342|    if (!ossl_prov_is_running()
  ------------------
  |  Branch (729:9): [True: 0, False: 342]
  ------------------
  730|    342|        || (selection & minimal_selection) == 0
  ------------------
  |  Branch (730:12): [True: 0, False: 342]
  ------------------
  731|    342|        || (gctx = OPENSSL_zalloc(sizeof(*gctx))) == NULL)
  ------------------
  |  |  109|    342|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (731:12): [True: 0, False: 342]
  ------------------
  732|      0|        return NULL;
  733|       |
  734|    342|    gctx->selection = selection;
  735|    342|    gctx->evp_type = evp_type;
  736|    342|    gctx->provctx = provctx;
  737|    342|    if (ml_kem_gen_set_params(gctx, params))
  ------------------
  |  Branch (737:9): [True: 342, False: 0]
  ------------------
  738|    342|        return gctx;
  739|       |
  740|      0|    ml_kem_gen_cleanup(gctx);
  741|       |    return NULL;
  742|    342|}
ml_kem_kmgmt.c:ml_kem_gen_set_params:
  688|    684|{
  689|    684|    PROV_ML_KEM_GEN_CTX *gctx = vgctx;
  690|    684|    struct ml_kem_gen_set_params_st p;
  691|       |
  692|    684|    if (gctx == NULL || !ml_kem_gen_set_params_decoder(params, &p))
  ------------------
  |  Branch (692:9): [True: 0, False: 684]
  |  Branch (692:25): [True: 0, False: 684]
  ------------------
  693|      0|        return 0;
  694|       |
  695|    684|    if (p.propq != NULL) {
  ------------------
  |  Branch (695:9): [True: 0, False: 684]
  ------------------
  696|      0|        if (p.propq->data_type != OSSL_PARAM_UTF8_STRING)
  ------------------
  |  |  117|      0|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (696:13): [True: 0, False: 0]
  ------------------
  697|      0|            return 0;
  698|      0|        OPENSSL_free(gctx->propq);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  699|      0|        if ((gctx->propq = OPENSSL_strdup(p.propq->data)) == NULL)
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (699:13): [True: 0, False: 0]
  ------------------
  700|      0|            return 0;
  701|      0|    }
  702|       |
  703|    684|    if (p.seed != NULL) {
  ------------------
  |  Branch (703:9): [True: 0, False: 684]
  ------------------
  704|      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, ... */
  |  |  ------------------
  ------------------
  705|       |
  706|      0|        gctx->seed = gctx->seedbuf;
  707|      0|        if (OSSL_PARAM_get_octet_string(p.seed, (void **)&gctx->seed, len, &len)
  ------------------
  |  Branch (707:13): [True: 0, False: 0]
  ------------------
  708|      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 (708:16): [True: 0, False: 0]
  ------------------
  709|      0|            return 1;
  710|       |
  711|       |        /* Possibly, but less likely wrong data type */
  712|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_SEED_LENGTH);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  713|      0|        gctx->seed = NULL;
  714|      0|        return 0;
  715|      0|    }
  716|       |
  717|    684|    return 1;
  718|    684|}
ml_kem_kmgmt.c:ml_kem_gen:
  751|    342|{
  752|    342|    PROV_ML_KEM_GEN_CTX *gctx = vgctx;
  753|    342|    ML_KEM_KEY *key;
  754|    342|    uint8_t *nopub = NULL;
  755|    342|    uint8_t *seed;
  756|    342|    int genok = 0;
  757|       |
  758|    342|    if (gctx == NULL
  ------------------
  |  Branch (758:9): [True: 0, False: 342]
  ------------------
  759|    342|        || (gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  ------------------
  |  |  656|    342|    (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  646|    342|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  |  |  ------------------
  |  |                   (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  647|    342|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  |  |  ------------------
  ------------------
                      || (gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  ------------------
  |  |  647|    342|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  ------------------
  |  Branch (759:12): [True: 0, False: 342]
  ------------------
  760|      0|        return NULL;
  761|    342|    seed = gctx->seed;
  762|    342|    key = ossl_prov_ml_kem_new(gctx->provctx, gctx->propq, gctx->evp_type);
  763|    342|    if (key == NULL)
  ------------------
  |  Branch (763:9): [True: 0, False: 342]
  ------------------
  764|      0|        return NULL;
  765|       |
  766|    342|    if ((gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0)
  ------------------
  |  |  656|    342|    (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  646|    342|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  |  |  ------------------
  |  |                   (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  647|    342|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  |  |  ------------------
  ------------------
  |  Branch (766:9): [True: 0, False: 342]
  ------------------
  767|      0|        return key;
  768|       |
  769|    342|    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 (769:9): [True: 0, False: 342]
  |  Branch (769:25): [True: 0, False: 0]
  ------------------
  770|      0|        return NULL;
  771|    342|    genok = ossl_ml_kem_genkey(nopub, 0, key);
  772|       |
  773|       |    /* Erase the single-use seed */
  774|    342|    if (seed != NULL)
  ------------------
  |  Branch (774:9): [True: 0, False: 342]
  ------------------
  775|      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, ... */
  |  |  ------------------
  ------------------
  776|    342|    gctx->seed = NULL;
  777|       |
  778|    342|    if (genok) {
  ------------------
  |  Branch (778:9): [True: 342, False: 0]
  ------------------
  779|       |#ifdef FIPS_MODULE
  780|       |        if (!ml_kem_pairwise_test(key, ML_KEM_KEY_FIXED_PCT)) {
  781|       |            ossl_set_error_state(OSSL_SELF_TEST_TYPE_PCT);
  782|       |            ossl_ml_kem_key_free(key);
  783|       |            return NULL;
  784|       |        }
  785|       |#endif /* FIPS_MODULE */
  786|    342|        return key;
  787|    342|    }
  788|       |
  789|      0|    ossl_ml_kem_key_free(key);
  790|       |    return NULL;
  791|    342|}
ml_kem_kmgmt.c:ml_kem_gen_cleanup:
  794|    342|{
  795|    342|    PROV_ML_KEM_GEN_CTX *gctx = vgctx;
  796|       |
  797|    342|    if (gctx == NULL)
  ------------------
  |  Branch (797:9): [True: 0, False: 342]
  ------------------
  798|      0|        return;
  799|       |
  800|    342|    if (gctx->seed != NULL)
  ------------------
  |  Branch (800:9): [True: 0, False: 342]
  ------------------
  801|      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, ... */
  |  |  ------------------
  ------------------
  802|    342|    OPENSSL_free(gctx->propq);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  803|    342|    OPENSSL_free(gctx);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  804|    342|}
ml_kem_kmgmt.c:ml_kem_export:
  251|    342|{
  252|    342|    ML_KEM_KEY *key = vkey;
  253|    342|    OSSL_PARAM_BLD *tmpl = NULL;
  254|    342|    OSSL_PARAM *params = NULL;
  255|    342|    const ML_KEM_VINFO *v;
  256|    342|    uint8_t *pubenc = NULL, *prvenc = NULL, *seedenc = NULL;
  257|    342|    size_t prvlen = 0, seedlen = 0;
  258|    342|    int ret = 0;
  259|       |
  260|    342|    if (!ossl_prov_is_running() || key == NULL)
  ------------------
  |  Branch (260:9): [True: 0, False: 342]
  |  Branch (260:36): [True: 0, False: 342]
  ------------------
  261|      0|        return 0;
  262|       |
  263|    342|    if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0)
  ------------------
  |  |  656|    342|    (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  646|    342|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  |  |  ------------------
  |  |                   (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  647|    342|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  |  |  ------------------
  ------------------
  |  Branch (263:9): [True: 0, False: 342]
  ------------------
  264|      0|        return 0;
  265|       |
  266|    342|    v = ossl_ml_kem_key_vinfo(key);
  ------------------
  |  |  206|    342|#define ossl_ml_kem_key_vinfo(key) ((key)->vinfo)
  ------------------
  267|    342|    if (!ossl_ml_kem_have_pubkey(key)) {
  ------------------
  |  |  207|    342|#define ossl_ml_kem_have_pubkey(key) ((key)->t != NULL)
  ------------------
  |  Branch (267:9): [True: 0, False: 342]
  ------------------
  268|       |        /* Fail when no key material can be returned */
  269|      0|        if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) == 0
  ------------------
  |  |  646|      0|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  ------------------
  |  Branch (269:13): [True: 0, False: 0]
  ------------------
  270|      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]
  |  |  ------------------
  ------------------
  271|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_MISSING_KEY);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  272|      0|            return 0;
  273|      0|        }
  274|    342|    } else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) {
  ------------------
  |  |  647|    342|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  ------------------
  |  Branch (274:16): [True: 342, False: 0]
  ------------------
  275|    342|        pubenc = OPENSSL_malloc(v->pubkey_bytes);
  ------------------
  |  |  107|    342|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  276|    342|        if (pubenc == NULL
  ------------------
  |  Branch (276:13): [True: 0, False: 342]
  ------------------
  277|    342|            || !ossl_ml_kem_encode_public_key(pubenc, v->pubkey_bytes, key))
  ------------------
  |  Branch (277:16): [True: 0, False: 342]
  ------------------
  278|      0|            goto err;
  279|    342|    }
  280|       |
  281|    342|    if ((selection & OSSL_KEYMGMT_SELECT_PRIVATE_KEY) != 0) {
  ------------------
  |  |  646|    342|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  ------------------
  |  Branch (281:9): [True: 0, False: 342]
  ------------------
  282|       |        /*
  283|       |         * The seed and/or private key material are allocated on the secure
  284|       |         * heap if configured, ossl_param_build_set_octet_string(), will then
  285|       |         * also use the secure heap.
  286|       |         */
  287|      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]
  |  |  ------------------
  ------------------
  288|      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, ... */
  |  |  ------------------
  ------------------
  289|      0|            if ((seedenc = OPENSSL_secure_zalloc(seedlen)) == NULL
  ------------------
  |  |  142|      0|    CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (289:17): [True: 0, False: 0]
  ------------------
  290|      0|                || !ossl_ml_kem_encode_seed(seedenc, seedlen, key))
  ------------------
  |  Branch (290:20): [True: 0, False: 0]
  ------------------
  291|      0|                goto err;
  292|      0|        }
  293|      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]
  |  |  ------------------
  ------------------
  294|      0|            prvlen = v->prvkey_bytes;
  295|      0|            if ((prvenc = OPENSSL_secure_zalloc(prvlen)) == NULL
  ------------------
  |  |  142|      0|    CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (295:17): [True: 0, False: 0]
  ------------------
  296|      0|                || !ossl_ml_kem_encode_private_key(prvenc, prvlen, key))
  ------------------
  |  Branch (296:20): [True: 0, False: 0]
  ------------------
  297|      0|                goto err;
  298|      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]
  |  |  ------------------
  ------------------
  299|      0|            prvlen = v->prvkey_bytes;
  300|      0|            if ((prvenc = OPENSSL_secure_zalloc(prvlen)) == NULL)
  ------------------
  |  |  142|      0|    CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (300:17): [True: 0, False: 0]
  ------------------
  301|      0|                goto err;
  302|      0|            memcpy(prvenc, key->encoded_dk, prvlen);
  303|      0|        }
  304|      0|    }
  305|       |
  306|    342|    tmpl = OSSL_PARAM_BLD_new();
  307|    342|    if (tmpl == NULL)
  ------------------
  |  Branch (307:9): [True: 0, False: 342]
  ------------------
  308|      0|        goto err;
  309|       |
  310|       |    /* The (d, z) seed, when available and private keys are requested. */
  311|    342|    if (seedenc != NULL
  ------------------
  |  Branch (311:9): [True: 0, False: 342]
  ------------------
  312|      0|        && !ossl_param_build_set_octet_string(
  ------------------
  |  Branch (312:12): [True: 0, False: 0]
  ------------------
  313|      0|            tmpl, params, OSSL_PKEY_PARAM_ML_KEM_SEED, seedenc, seedlen))
  ------------------
  |  |  445|      0|# define OSSL_PKEY_PARAM_ML_KEM_SEED "seed"
  ------------------
  314|      0|        goto err;
  315|       |
  316|       |    /* The private key in the FIPS 203 |dk| format, when requested. */
  317|    342|    if (prvenc != NULL
  ------------------
  |  Branch (317:9): [True: 0, False: 342]
  ------------------
  318|      0|        && !ossl_param_build_set_octet_string(
  ------------------
  |  Branch (318:12): [True: 0, False: 0]
  ------------------
  319|      0|            tmpl, params, OSSL_PKEY_PARAM_PRIV_KEY, prvenc, prvlen))
  ------------------
  |  |  448|      0|# define OSSL_PKEY_PARAM_PRIV_KEY "priv"
  ------------------
  320|      0|        goto err;
  321|       |
  322|       |    /* The public key on request; it is always available when either is */
  323|    342|    if (pubenc != NULL
  ------------------
  |  Branch (323:9): [True: 342, False: 0]
  ------------------
  324|    342|        && !ossl_param_build_set_octet_string(
  ------------------
  |  Branch (324:12): [True: 0, False: 342]
  ------------------
  325|    342|            tmpl, params, OSSL_PKEY_PARAM_PUB_KEY, pubenc, v->pubkey_bytes))
  ------------------
  |  |  450|    342|# define OSSL_PKEY_PARAM_PUB_KEY "pub"
  ------------------
  326|      0|        goto err;
  327|       |
  328|    342|    params = OSSL_PARAM_BLD_to_param(tmpl);
  329|    342|    if (params == NULL)
  ------------------
  |  Branch (329:9): [True: 0, False: 342]
  ------------------
  330|      0|        goto err;
  331|       |
  332|    342|    ret = param_cb(params, cbarg);
  333|    342|    OSSL_PARAM_clear_free(params);
  334|       |
  335|    342|err:
  336|    342|    OSSL_PARAM_BLD_free(tmpl);
  337|    342|    OPENSSL_secure_clear_free(seedenc, seedlen);
  ------------------
  |  |  150|    342|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  338|    342|    OPENSSL_secure_clear_free(prvenc, prvlen);
  ------------------
  |  |  150|    342|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  339|    342|    OPENSSL_free(pubenc);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  340|    342|    return ret;
  341|    342|}
ml_kem_kmgmt.c:ml_kem_768_gen_init:
  837|    342|    {                                                                                     \
  838|    342|        return ml_kem_gen_init(provctx, selection, params,                                \
  839|    342|            EVP_PKEY_ML_KEM_##bits);                                                      \
  ------------------
  |  |  103|    342|#define EVP_PKEY_ML_KEM_768 NID_ML_KEM_768
  |  |  ------------------
  |  |  |  | 6645|    342|#define NID_ML_KEM_768          1455
  |  |  ------------------
  ------------------
  840|    342|    }                                                                                     \

ml_kem_kmgmt.c:ml_kem_get_params_decoder:
  120|    342|{
  121|    342|    const char *s;
  122|       |
  123|    342|    memset(r, 0, sizeof(*r));
  124|    342|    if (p != NULL)
  ------------------
  |  Branch (124:9): [True: 342, False: 0]
  ------------------
  125|  1.71k|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (125:16): [True: 1.36k, False: 342]
  ------------------
  126|  1.36k|            switch(s[0]) {
  127|      0|            default:
  ------------------
  |  Branch (127:13): [True: 0, False: 1.36k]
  ------------------
  128|      0|                break;
  129|    342|            case 'b':
  ------------------
  |  Branch (129:13): [True: 342, False: 1.02k]
  ------------------
  130|    342|                if (ossl_likely(strcmp("its", s + 1) == 0)) {
  ------------------
  |  |   22|    342|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 342, False: 0]
  |  |  ------------------
  ------------------
  131|       |                    /* OSSL_PKEY_PARAM_BITS */
  132|    342|                    if (ossl_unlikely(r->bits != NULL)) {
  ------------------
  |  |   23|    342|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 342]
  |  |  ------------------
  ------------------
  133|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  134|      0|                                       "param %s is repeated", s);
  135|      0|                        return 0;
  136|      0|                    }
  137|    342|                    r->bits = (OSSL_PARAM *)p;
  138|    342|                }
  139|    342|                break;
  140|    342|            case 'e':
  ------------------
  |  Branch (140:13): [True: 0, False: 1.36k]
  ------------------
  141|      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]
  |  |  ------------------
  ------------------
  142|       |                    /* OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY */
  143|      0|                    if (ossl_unlikely(r->encpubkey != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  144|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  145|      0|                                       "param %s is repeated", s);
  146|      0|                        return 0;
  147|      0|                    }
  148|      0|                    r->encpubkey = (OSSL_PARAM *)p;
  149|      0|                }
  150|      0|                break;
  151|      0|            case 'k':
  ------------------
  |  Branch (151:13): [True: 0, False: 1.36k]
  ------------------
  152|      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]
  |  |  ------------------
  ------------------
  153|       |                    /* OSSL_PKEY_PARAM_CMS_KEMRI_KDF_ALGORITHM */
  154|      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]
  |  |  ------------------
  ------------------
  155|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  156|      0|                                       "param %s is repeated", s);
  157|      0|                        return 0;
  158|      0|                    }
  159|      0|                    r->kemri_kdf_alg = (OSSL_PARAM *)p;
  160|      0|                }
  161|      0|                break;
  162|    342|            case 'm':
  ------------------
  |  Branch (162:13): [True: 342, False: 1.02k]
  ------------------
  163|    342|                if (ossl_likely(strcmp("ax-size", s + 1) == 0)) {
  ------------------
  |  |   22|    342|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 342, False: 0]
  |  |  ------------------
  ------------------
  164|       |                    /* OSSL_PKEY_PARAM_MAX_SIZE */
  165|    342|                    if (ossl_unlikely(r->maxsize != NULL)) {
  ------------------
  |  |   23|    342|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 342]
  |  |  ------------------
  ------------------
  166|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  167|      0|                                       "param %s is repeated", s);
  168|      0|                        return 0;
  169|      0|                    }
  170|    342|                    r->maxsize = (OSSL_PARAM *)p;
  171|    342|                }
  172|    342|                break;
  173|    342|            case 'p':
  ------------------
  |  Branch (173:13): [True: 0, False: 1.36k]
  ------------------
  174|      0|                switch(s[1]) {
  175|      0|                default:
  ------------------
  |  Branch (175:17): [True: 0, False: 0]
  ------------------
  176|      0|                    break;
  177|      0|                case 'r':
  ------------------
  |  Branch (177:17): [True: 0, False: 0]
  ------------------
  178|      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]
  |  |  ------------------
  ------------------
  179|       |                        /* OSSL_PKEY_PARAM_PRIV_KEY */
  180|      0|                        if (ossl_unlikely(r->privkey != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  181|      0|                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  182|      0|                                           "param %s is repeated", s);
  183|      0|                            return 0;
  184|      0|                        }
  185|      0|                        r->privkey = (OSSL_PARAM *)p;
  186|      0|                    }
  187|      0|                    break;
  188|      0|                case 'u':
  ------------------
  |  Branch (188:17): [True: 0, False: 0]
  ------------------
  189|      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]
  |  |  ------------------
  ------------------
  190|       |                        /* OSSL_PKEY_PARAM_PUB_KEY */
  191|      0|                        if (ossl_unlikely(r->pubkey != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  192|      0|                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  193|      0|                                           "param %s is repeated", s);
  194|      0|                            return 0;
  195|      0|                        }
  196|      0|                        r->pubkey = (OSSL_PARAM *)p;
  197|      0|                    }
  198|      0|                }
  199|      0|                break;
  200|      0|            case 'r':
  ------------------
  |  Branch (200:13): [True: 0, False: 1.36k]
  ------------------
  201|      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]
  |  |  ------------------
  ------------------
  202|       |                    /* OSSL_PKEY_PARAM_CMS_RI_TYPE */
  203|      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]
  |  |  ------------------
  ------------------
  204|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  205|      0|                                       "param %s is repeated", s);
  206|      0|                        return 0;
  207|      0|                    }
  208|      0|                    r->ri_type = (OSSL_PARAM *)p;
  209|      0|                }
  210|      0|                break;
  211|    684|            case 's':
  ------------------
  |  Branch (211:13): [True: 684, False: 684]
  ------------------
  212|    684|                switch(s[1]) {
  213|      0|                default:
  ------------------
  |  Branch (213:17): [True: 0, False: 684]
  ------------------
  214|      0|                    break;
  215|    684|                case 'e':
  ------------------
  |  Branch (215:17): [True: 684, False: 0]
  ------------------
  216|    684|                    switch(s[2]) {
  217|      0|                    default:
  ------------------
  |  Branch (217:21): [True: 0, False: 684]
  ------------------
  218|      0|                        break;
  219|    684|                    case 'c':
  ------------------
  |  Branch (219:21): [True: 684, False: 0]
  ------------------
  220|    684|                        switch(s[3]) {
  221|      0|                        default:
  ------------------
  |  Branch (221:25): [True: 0, False: 684]
  ------------------
  222|      0|                            break;
  223|    684|                        case 'u':
  ------------------
  |  Branch (223:25): [True: 684, False: 0]
  ------------------
  224|    684|                            switch(s[4]) {
  225|      0|                            default:
  ------------------
  |  Branch (225:29): [True: 0, False: 684]
  ------------------
  226|      0|                                break;
  227|    684|                            case 'r':
  ------------------
  |  Branch (227:29): [True: 684, False: 0]
  ------------------
  228|    684|                                switch(s[5]) {
  229|      0|                                default:
  ------------------
  |  Branch (229:33): [True: 0, False: 684]
  ------------------
  230|      0|                                    break;
  231|    684|                                case 'i':
  ------------------
  |  Branch (231:33): [True: 684, False: 0]
  ------------------
  232|    684|                                    switch(s[6]) {
  233|      0|                                    default:
  ------------------
  |  Branch (233:37): [True: 0, False: 684]
  ------------------
  234|      0|                                        break;
  235|    684|                                    case 't':
  ------------------
  |  Branch (235:37): [True: 684, False: 0]
  ------------------
  236|    684|                                        switch(s[7]) {
  237|      0|                                        default:
  ------------------
  |  Branch (237:41): [True: 0, False: 684]
  ------------------
  238|      0|                                            break;
  239|    684|                                        case 'y':
  ------------------
  |  Branch (239:41): [True: 684, False: 0]
  ------------------
  240|    684|                                            switch(s[8]) {
  241|      0|                                            default:
  ------------------
  |  Branch (241:45): [True: 0, False: 684]
  ------------------
  242|      0|                                                break;
  243|    684|                                            case '-':
  ------------------
  |  Branch (243:45): [True: 684, False: 0]
  ------------------
  244|    684|                                                switch(s[9]) {
  245|      0|                                                default:
  ------------------
  |  Branch (245:49): [True: 0, False: 684]
  ------------------
  246|      0|                                                    break;
  247|    342|                                                case 'b':
  ------------------
  |  Branch (247:49): [True: 342, False: 342]
  ------------------
  248|    342|                                                    if (ossl_likely(strcmp("its", s + 10) == 0)) {
  ------------------
  |  |   22|    342|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 342, False: 0]
  |  |  ------------------
  ------------------
  249|       |                                                        /* OSSL_PKEY_PARAM_SECURITY_BITS */
  250|    342|                                                        if (ossl_unlikely(r->secbits != NULL)) {
  ------------------
  |  |   23|    342|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 342]
  |  |  ------------------
  ------------------
  251|      0|                                                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  252|      0|                                                                           "param %s is repeated", s);
  253|      0|                                                            return 0;
  254|      0|                                                        }
  255|    342|                                                        r->secbits = (OSSL_PARAM *)p;
  256|    342|                                                    }
  257|    342|                                                    break;
  258|    342|                                                case 'c':
  ------------------
  |  Branch (258:49): [True: 342, False: 342]
  ------------------
  259|    342|                                                    if (ossl_likely(strcmp("ategory", s + 10) == 0)) {
  ------------------
  |  |   22|    342|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 342, False: 0]
  |  |  ------------------
  ------------------
  260|       |                                                        /* OSSL_PKEY_PARAM_SECURITY_CATEGORY */
  261|    342|                                                        if (ossl_unlikely(r->seccat != NULL)) {
  ------------------
  |  |   23|    342|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 342]
  |  |  ------------------
  ------------------
  262|      0|                                                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  263|      0|                                                                           "param %s is repeated", s);
  264|      0|                                                            return 0;
  265|      0|                                                        }
  266|    342|                                                        r->seccat = (OSSL_PARAM *)p;
  267|    342|                                                    }
  268|    684|                                                }
  269|    684|                                            }
  270|    684|                                        }
  271|    684|                                    }
  272|    684|                                }
  273|    684|                            }
  274|    684|                        }
  275|    684|                        break;
  276|    684|                    case 'e':
  ------------------
  |  Branch (276:21): [True: 0, False: 684]
  ------------------
  277|      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]
  |  |  ------------------
  ------------------
  278|       |                            /* OSSL_PKEY_PARAM_ML_KEM_SEED */
  279|      0|                            if (ossl_unlikely(r->seed != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  280|      0|                                ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  281|      0|                                               "param %s is repeated", s);
  282|      0|                                return 0;
  283|      0|                            }
  284|      0|                            r->seed = (OSSL_PARAM *)p;
  285|      0|                        }
  286|    684|                    }
  287|    684|                }
  288|  1.36k|            }
  289|    342|    return 1;
  290|    342|}
ml_kem_kmgmt.c:ml_kem_gen_set_params_decoder:
  350|    684|{
  351|    684|    const char *s;
  352|       |
  353|    684|    memset(r, 0, sizeof(*r));
  354|    684|    if (p != NULL)
  ------------------
  |  Branch (354:9): [True: 342, False: 342]
  ------------------
  355|    342|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (355:16): [True: 0, False: 342]
  ------------------
  356|      0|            switch(s[0]) {
  357|      0|            default:
  ------------------
  |  Branch (357:13): [True: 0, False: 0]
  ------------------
  358|      0|                break;
  359|      0|            case 'p':
  ------------------
  |  Branch (359:13): [True: 0, False: 0]
  ------------------
  360|      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]
  |  |  ------------------
  ------------------
  361|       |                    /* OSSL_PKEY_PARAM_PROPERTIES */
  362|      0|                    if (ossl_unlikely(r->propq != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  363|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  364|      0|                                       "param %s is repeated", s);
  365|      0|                        return 0;
  366|      0|                    }
  367|      0|                    r->propq = (OSSL_PARAM *)p;
  368|      0|                }
  369|      0|                break;
  370|      0|            case 's':
  ------------------
  |  Branch (370:13): [True: 0, False: 0]
  ------------------
  371|      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]
  |  |  ------------------
  ------------------
  372|       |                    /* OSSL_PKEY_PARAM_ML_KEM_SEED */
  373|      0|                    if (ossl_unlikely(r->seed != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  374|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  375|      0|                                       "param %s is repeated", s);
  376|      0|                        return 0;
  377|      0|                    }
  378|      0|                    r->seed = (OSSL_PARAM *)p;
  379|      0|                }
  380|      0|            }
  381|    684|    return 1;
  382|    684|}

mlx_kmgmt.c:mlx_kem_key_new:
   86|    342|{
   87|    342|    MLX_KEY *key = NULL;
   88|    342|    unsigned int ml_kem_variant;
   89|       |
   90|    342|    if (!ossl_prov_is_running()
  ------------------
  |  Branch (90:9): [True: 0, False: 342]
  ------------------
   91|    342|        || v >= OSSL_NELEM(hybrid_vtable)
  ------------------
  |  |   14|    684|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (91:12): [True: 0, False: 342]
  ------------------
   92|    342|        || (key = OPENSSL_malloc(sizeof(*key))) == NULL)
  ------------------
  |  |  107|    342|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (92:12): [True: 0, False: 342]
  ------------------
   93|      0|        goto err;
   94|       |
   95|    342|    ml_kem_variant = hybrid_vtable[v].ml_kem_variant;
   96|    342|    key->libctx = libctx;
   97|    342|    key->minfo = ossl_ml_kem_get_vinfo(ml_kem_variant);
   98|    342|    key->xinfo = &hybrid_vtable[v];
   99|    342|    key->xkey = key->mkey = NULL;
  100|    342|    key->state = MLX_HAVE_NOKEYS;
  ------------------
  |  |   39|    342|#define MLX_HAVE_NOKEYS 0
  ------------------
  101|    342|    key->propq = propq;
  102|    342|    return key;
  103|       |
  104|      0|err:
  105|      0|    OPENSSL_free(propq);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  106|       |    return NULL;
  107|    342|}
mlx_kmgmt.c:mlx_kem_key_free:
   72|    342|{
   73|    342|    MLX_KEY *key = vkey;
   74|       |
   75|    342|    if (key == NULL)
  ------------------
  |  Branch (75:9): [True: 0, False: 342]
  ------------------
   76|      0|        return;
   77|    342|    OPENSSL_free(key->propq);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   78|    342|    EVP_PKEY_free(key->mkey);
   79|    342|    EVP_PKEY_free(key->xkey);
   80|    342|    OPENSSL_free(key);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   81|    342|}
mlx_kmgmt.c:mlx_kem_get_params:
  486|  1.02k|{
  487|  1.02k|    MLX_KEY *key = vkey;
  488|  1.02k|    OSSL_PARAM *pub, *prv = NULL;
  489|  1.02k|    EXPORT_CB_ARG sub_arg;
  490|  1.02k|    int selection;
  491|  1.02k|    struct mlx_get_params_st p;
  492|       |
  493|  1.02k|    if (key == NULL || !mlx_get_params_decoder(params, &p))
  ------------------
  |  Branch (493:9): [True: 0, False: 1.02k]
  |  Branch (493:24): [True: 0, False: 1.02k]
  ------------------
  494|      0|        return 0;
  495|       |
  496|       |    /* The reported "bit" count is those of the ML-KEM key */
  497|  1.02k|    if (p.bits != NULL)
  ------------------
  |  Branch (497:9): [True: 342, False: 684]
  ------------------
  498|    342|        if (!OSSL_PARAM_set_int(p.bits, key->minfo->bits))
  ------------------
  |  Branch (498:13): [True: 0, False: 342]
  ------------------
  499|      0|            return 0;
  500|       |
  501|       |    /* The reported security bits are those of the ML-KEM key */
  502|  1.02k|    if (p.secbits != NULL)
  ------------------
  |  Branch (502:9): [True: 342, False: 684]
  ------------------
  503|    342|        if (!OSSL_PARAM_set_int(p.secbits, key->minfo->secbits))
  ------------------
  |  Branch (503:13): [True: 0, False: 342]
  ------------------
  504|      0|            return 0;
  505|       |
  506|       |    /* The reported security category are those of the ML-KEM key */
  507|  1.02k|    if (p.seccat != NULL)
  ------------------
  |  Branch (507:9): [True: 342, False: 684]
  ------------------
  508|    342|        if (!OSSL_PARAM_set_int(p.seccat, key->minfo->security_category))
  ------------------
  |  Branch (508:13): [True: 0, False: 342]
  ------------------
  509|      0|            return 0;
  510|       |
  511|       |    /* The ciphertext sizes are additive */
  512|  1.02k|    if (p.maxsize != NULL)
  ------------------
  |  Branch (512:9): [True: 342, False: 684]
  ------------------
  513|    342|        if (!OSSL_PARAM_set_size_t(p.maxsize, key->minfo->ctext_bytes + key->xinfo->pubkey_bytes))
  ------------------
  |  Branch (513:13): [True: 0, False: 342]
  ------------------
  514|      0|            return 0;
  515|       |
  516|  1.02k|    if (!mlx_kem_have_pubkey(key))
  ------------------
  |  |   44|  1.02k|#define mlx_kem_have_pubkey(key) ((key)->state > 0)
  ------------------
  |  Branch (516:9): [True: 0, False: 1.02k]
  ------------------
  517|      0|        return 1;
  518|       |
  519|  1.02k|    memset(&sub_arg, 0, sizeof(sub_arg));
  520|  1.02k|    if ((pub = p.pub) != NULL) {
  ------------------
  |  Branch (520:9): [True: 684, False: 342]
  ------------------
  521|    684|        size_t publen = key->minfo->pubkey_bytes + key->xinfo->pubkey_bytes;
  522|       |
  523|    684|        if (pub->data_type != OSSL_PARAM_OCTET_STRING)
  ------------------
  |  |  123|    684|#define OSSL_PARAM_OCTET_STRING 5
  ------------------
  |  Branch (523:13): [True: 0, False: 684]
  ------------------
  524|      0|            return 0;
  525|    684|        pub->return_size = publen;
  526|    684|        if (pub->data == NULL) {
  ------------------
  |  Branch (526:13): [True: 342, False: 342]
  ------------------
  527|    342|            pub = NULL;
  528|    342|        } else if (pub->data_size < publen) {
  ------------------
  |  Branch (528:20): [True: 0, False: 342]
  ------------------
  529|      0|            ERR_raise_data(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                          ERR_raise_data(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                          ERR_raise_data(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL,
  ------------------
  |  |  133|      0|#define PROV_R_OUTPUT_BUFFER_TOO_SMALL 106
  ------------------
  530|      0|                "public key output buffer too short: %lu < %lu",
  531|      0|                (unsigned long)pub->data_size,
  532|      0|                (unsigned long)publen);
  533|      0|            return 0;
  534|    342|        } else {
  535|    342|            sub_arg.pubenc = pub->data;
  536|    342|        }
  537|    684|    }
  538|  1.02k|    if (mlx_kem_have_prvkey(key)) {
  ------------------
  |  |   45|  1.02k|#define mlx_kem_have_prvkey(key) ((key)->state > 1)
  |  |  ------------------
  |  |  |  Branch (45:34): [True: 1.02k, False: 0]
  |  |  ------------------
  ------------------
  539|  1.02k|        if ((prv = p.priv) != NULL) {
  ------------------
  |  Branch (539:13): [True: 0, False: 1.02k]
  ------------------
  540|      0|            size_t prvlen = key->minfo->prvkey_bytes + key->xinfo->prvkey_bytes;
  541|       |
  542|      0|            if (prv->data_type != OSSL_PARAM_OCTET_STRING)
  ------------------
  |  |  123|      0|#define OSSL_PARAM_OCTET_STRING 5
  ------------------
  |  Branch (542:17): [True: 0, False: 0]
  ------------------
  543|      0|                return 0;
  544|      0|            prv->return_size = prvlen;
  545|      0|            if (prv->data == NULL) {
  ------------------
  |  Branch (545:17): [True: 0, False: 0]
  ------------------
  546|      0|                prv = NULL;
  547|      0|            } else if (prv->data_size < prvlen) {
  ------------------
  |  Branch (547:24): [True: 0, False: 0]
  ------------------
  548|      0|                ERR_raise_data(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                              ERR_raise_data(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                              ERR_raise_data(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL,
  ------------------
  |  |  133|      0|#define PROV_R_OUTPUT_BUFFER_TOO_SMALL 106
  ------------------
  549|      0|                    "private key output buffer too short: %lu < %lu",
  550|      0|                    (unsigned long)prv->data_size,
  551|      0|                    (unsigned long)prvlen);
  552|      0|                return 0;
  553|      0|            } else {
  554|      0|                sub_arg.prvenc = prv->data;
  555|      0|            }
  556|      0|        }
  557|  1.02k|    }
  558|  1.02k|    if (pub == NULL && prv == NULL)
  ------------------
  |  Branch (558:9): [True: 684, False: 342]
  |  Branch (558:24): [True: 684, False: 0]
  ------------------
  559|    684|        return 1;
  560|       |
  561|    342|    selection = prv == NULL ? 0 : OSSL_KEYMGMT_SELECT_PRIVATE_KEY;
  ------------------
  |  |  646|    342|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  ------------------
  |  Branch (561:17): [True: 342, False: 0]
  ------------------
  562|    342|    selection |= pub == NULL ? 0 : OSSL_KEYMGMT_SELECT_PUBLIC_KEY;
  ------------------
  |  |  647|    684|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  ------------------
  |  Branch (562:18): [True: 0, False: 342]
  ------------------
  563|    342|    if (key->xinfo->group_name != NULL)
  ------------------
  |  Branch (563:9): [True: 0, False: 342]
  ------------------
  564|      0|        selection |= OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS;
  ------------------
  |  |  648|      0|#define OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS 0x04
  ------------------
  565|       |
  566|       |    /* Extract sub-component key material */
  567|    342|    if (!export_sub(&sub_arg, selection, key))
  ------------------
  |  Branch (567:9): [True: 0, False: 342]
  ------------------
  568|      0|        return 0;
  569|       |
  570|    342|    if ((pub != NULL && sub_arg.pubcount != 2)
  ------------------
  |  Branch (570:10): [True: 342, False: 0]
  |  Branch (570:25): [True: 0, False: 342]
  ------------------
  571|    342|        || (prv != NULL && sub_arg.prvcount != 2))
  ------------------
  |  Branch (571:13): [True: 0, False: 342]
  |  Branch (571:28): [True: 0, False: 0]
  ------------------
  572|      0|        return 0;
  573|       |
  574|    342|    return 1;
  575|    342|}
mlx_kmgmt.c:export_sub:
  215|    342|{
  216|    342|    int slot;
  217|       |
  218|       |    /*
  219|       |     * The caller is responsible for initialising only the pubenc and prvenc
  220|       |     * pointer fields, the rest are set here or in the callback.
  221|       |     */
  222|    342|    sub_arg->pubcount = 0;
  223|    342|    sub_arg->prvcount = 0;
  224|       |
  225|  1.02k|    for (slot = 0; slot < 2; ++slot) {
  ------------------
  |  Branch (225:20): [True: 684, False: 342]
  ------------------
  226|    684|        int ml_kem_slot = key->xinfo->ml_kem_slot;
  227|    684|        EVP_PKEY *pkey;
  228|       |
  229|       |        /* Export the parts of each component into its storage slot */
  230|    684|        if (slot == ml_kem_slot) {
  ------------------
  |  Branch (230:13): [True: 342, False: 342]
  ------------------
  231|    342|            pkey = key->mkey;
  232|    342|            sub_arg->algorithm_name = key->minfo->algorithm_name;
  233|    342|            sub_arg->puboff = slot * key->xinfo->pubkey_bytes;
  234|    342|            sub_arg->prvoff = slot * key->xinfo->prvkey_bytes;
  235|    342|            sub_arg->publen = key->minfo->pubkey_bytes;
  236|    342|            sub_arg->prvlen = key->minfo->prvkey_bytes;
  237|    342|        } else {
  238|    342|            pkey = key->xkey;
  239|    342|            sub_arg->algorithm_name = key->xinfo->algorithm_name;
  240|    342|            sub_arg->puboff = (1 - ml_kem_slot) * key->minfo->pubkey_bytes;
  241|    342|            sub_arg->prvoff = (1 - ml_kem_slot) * key->minfo->prvkey_bytes;
  242|    342|            sub_arg->publen = key->xinfo->pubkey_bytes;
  243|    342|            sub_arg->prvlen = key->xinfo->prvkey_bytes;
  244|    342|        }
  245|    684|        if (!EVP_PKEY_export(pkey, selection, export_sub_cb, (void *)sub_arg))
  ------------------
  |  Branch (245:13): [True: 0, False: 684]
  ------------------
  246|      0|            return 0;
  247|    684|    }
  248|    342|    return 1;
  249|    342|}
mlx_kmgmt.c:export_sub_cb:
  169|    684|{
  170|    684|    EXPORT_CB_ARG *sub_arg = varg;
  171|    684|    struct ml_kem_import_export_st p;
  172|    684|    size_t len;
  173|       |
  174|    684|    if (!ml_kem_import_export_decoder(params, &p))
  ------------------
  |  Branch (174:9): [True: 0, False: 684]
  ------------------
  175|      0|        return 0;
  176|       |
  177|       |    /*
  178|       |     * The caller will decide whether anything essential is missing, but, if
  179|       |     * some key material was returned, it should have the right (parameter)
  180|       |     * data type and length.
  181|       |     */
  182|    684|    if (sub_arg->pubenc != NULL && p.pubkey != NULL) {
  ------------------
  |  Branch (182:9): [True: 684, False: 0]
  |  Branch (182:36): [True: 684, False: 0]
  ------------------
  183|    684|        void *pub = sub_arg->pubenc + sub_arg->puboff;
  184|       |
  185|    684|        if (OSSL_PARAM_get_octet_string(p.pubkey, &pub, sub_arg->publen, &len) != 1)
  ------------------
  |  Branch (185:13): [True: 0, False: 684]
  ------------------
  186|      0|            return 0;
  187|    684|        if (len != sub_arg->publen) {
  ------------------
  |  Branch (187:13): [True: 0, False: 684]
  ------------------
  188|      0|            ERR_raise_data(ERR_LIB_PROV, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                          ERR_raise_data(ERR_LIB_PROV, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                          ERR_raise_data(ERR_LIB_PROV, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  308|      0|#define ERR_R_INTERNAL_ERROR (259 | ERR_R_FATAL)
  |  |  ------------------
  |  |  |  |  304|      0|#define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  219|      0|#define ERR_RFLAG_FATAL (0x1 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  211|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  220|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  211|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  189|      0|                "Unexpected %s public key length %lu != %lu",
  190|      0|                sub_arg->algorithm_name, (unsigned long)len,
  191|      0|                sub_arg->publen);
  192|      0|            return 0;
  193|      0|        }
  194|    684|        ++sub_arg->pubcount;
  195|    684|    }
  196|    684|    if (sub_arg->prvenc != NULL && p.privkey != NULL) {
  ------------------
  |  Branch (196:9): [True: 0, False: 684]
  |  Branch (196:36): [True: 0, False: 0]
  ------------------
  197|      0|        void *prv = sub_arg->prvenc + sub_arg->prvoff;
  198|       |
  199|      0|        if (OSSL_PARAM_get_octet_string(p.privkey, &prv, sub_arg->prvlen, &len) != 1)
  ------------------
  |  Branch (199:13): [True: 0, False: 0]
  ------------------
  200|      0|            return 0;
  201|      0|        if (len != sub_arg->prvlen) {
  ------------------
  |  Branch (201:13): [True: 0, False: 0]
  ------------------
  202|      0|            ERR_raise_data(ERR_LIB_PROV, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                          ERR_raise_data(ERR_LIB_PROV, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                          ERR_raise_data(ERR_LIB_PROV, ERR_R_INTERNAL_ERROR,
  ------------------
  |  |  308|      0|#define ERR_R_INTERNAL_ERROR (259 | ERR_R_FATAL)
  |  |  ------------------
  |  |  |  |  304|      0|#define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  219|      0|#define ERR_RFLAG_FATAL (0x1 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  211|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  220|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  211|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  203|      0|                "Unexpected %s private key length %lu != %lu",
  204|      0|                sub_arg->algorithm_name, (unsigned long)len,
  205|      0|                (unsigned long)sub_arg->publen);
  206|      0|            return 0;
  207|      0|        }
  208|      0|        ++sub_arg->prvcount;
  209|      0|    }
  210|    684|    return 1;
  211|    684|}
mlx_kmgmt.c:mlx_kem_gen_init:
  641|    342|{
  642|    342|    PROV_ML_KEM_GEN_CTX *gctx = NULL;
  643|       |
  644|       |    /*
  645|       |     * We can only generate private keys, check that the selection is
  646|       |     * appropriate.
  647|       |     */
  648|    342|    if (!ossl_prov_is_running()
  ------------------
  |  Branch (648:9): [True: 0, False: 342]
  ------------------
  649|    342|        || (selection & minimal_selection) == 0
  ------------------
  |  Branch (649:12): [True: 0, False: 342]
  ------------------
  650|    342|        || (gctx = OPENSSL_zalloc(sizeof(*gctx))) == NULL)
  ------------------
  |  |  109|    342|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (650:12): [True: 0, False: 342]
  ------------------
  651|      0|        return NULL;
  652|       |
  653|    342|    gctx->evp_type = evp_type;
  654|    342|    gctx->libctx = libctx;
  655|    342|    gctx->selection = selection;
  656|    342|    if (mlx_kem_gen_set_params(gctx, params))
  ------------------
  |  Branch (656:9): [True: 342, False: 0]
  ------------------
  657|    342|        return gctx;
  658|       |
  659|      0|    mlx_kem_gen_cleanup(gctx);
  660|       |    return NULL;
  661|    342|}
mlx_kmgmt.c:mlx_kem_gen_set_params:
  622|    684|{
  623|    684|    PROV_ML_KEM_GEN_CTX *gctx = vgctx;
  624|    684|    struct mlx_gen_set_params_st p;
  625|       |
  626|    684|    if (gctx == NULL || !mlx_gen_set_params_decoder(params, &p))
  ------------------
  |  Branch (626:9): [True: 0, False: 684]
  |  Branch (626:25): [True: 0, False: 684]
  ------------------
  627|      0|        return 0;
  628|       |
  629|    684|    if (p.propq != NULL) {
  ------------------
  |  Branch (629:9): [True: 0, False: 684]
  ------------------
  630|      0|        if (p.propq->data_type != OSSL_PARAM_UTF8_STRING)
  ------------------
  |  |  117|      0|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (630:13): [True: 0, False: 0]
  ------------------
  631|      0|            return 0;
  632|      0|        OPENSSL_free(gctx->propq);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  633|      0|        if ((gctx->propq = OPENSSL_strdup(p.propq->data)) == NULL)
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (633:13): [True: 0, False: 0]
  ------------------
  634|      0|            return 0;
  635|      0|    }
  636|    684|    return 1;
  637|    684|}
mlx_kmgmt.c:mlx_kem_gen:
  670|    342|{
  671|    342|    PROV_ML_KEM_GEN_CTX *gctx = vgctx;
  672|    342|    MLX_KEY *key;
  673|    342|    char *propq;
  674|       |
  675|    342|    if (gctx == NULL
  ------------------
  |  Branch (675:9): [True: 0, False: 342]
  ------------------
  676|    342|        || (gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  ------------------
  |  |  656|    342|    (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  646|    342|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  |  |  ------------------
  |  |                   (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  647|    342|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  |  |  ------------------
  ------------------
                      || (gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  ------------------
  |  |  647|    342|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  ------------------
  |  Branch (676:12): [True: 0, False: 342]
  ------------------
  677|      0|        return NULL;
  678|       |
  679|       |    /* Lose ownership of propq */
  680|    342|    propq = gctx->propq;
  681|    342|    gctx->propq = NULL;
  682|    342|    if ((key = mlx_kem_key_new(gctx->evp_type, gctx->libctx, propq)) == NULL)
  ------------------
  |  Branch (682:9): [True: 0, False: 342]
  ------------------
  683|      0|        return NULL;
  684|       |
  685|    342|    if ((gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) == 0)
  ------------------
  |  |  656|    342|    (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  646|    342|#define OSSL_KEYMGMT_SELECT_PRIVATE_KEY 0x01
  |  |  ------------------
  |  |                   (OSSL_KEYMGMT_SELECT_PRIVATE_KEY | OSSL_KEYMGMT_SELECT_PUBLIC_KEY)
  |  |  ------------------
  |  |  |  |  647|    342|#define OSSL_KEYMGMT_SELECT_PUBLIC_KEY 0x02
  |  |  ------------------
  ------------------
  |  Branch (685:9): [True: 0, False: 342]
  ------------------
  686|      0|        return key;
  687|       |
  688|       |    /* For now, using the same "propq" for all components */
  689|    342|    key->mkey = EVP_PKEY_Q_keygen(key->libctx, key->propq,
  690|    342|        key->minfo->algorithm_name);
  691|    342|    key->xkey = EVP_PKEY_Q_keygen(key->libctx, key->propq,
  692|    342|        key->xinfo->algorithm_name,
  693|    342|        key->xinfo->group_name);
  694|    342|    if (key->mkey != NULL && key->xkey != NULL) {
  ------------------
  |  Branch (694:9): [True: 342, False: 0]
  |  Branch (694:30): [True: 342, False: 0]
  ------------------
  695|    342|        key->state = MLX_HAVE_PRVKEY;
  ------------------
  |  |   41|    342|#define MLX_HAVE_PRVKEY 2
  ------------------
  696|    342|        return key;
  697|    342|    }
  698|       |
  699|      0|    mlx_kem_key_free(key);
  700|       |    return NULL;
  701|    342|}
mlx_kmgmt.c:mlx_kem_gen_cleanup:
  704|    342|{
  705|    342|    PROV_ML_KEM_GEN_CTX *gctx = vgctx;
  706|       |
  707|    342|    if (gctx == NULL)
  ------------------
  |  Branch (707:9): [True: 0, False: 342]
  ------------------
  708|      0|        return;
  709|    342|    OPENSSL_free(gctx->propq);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  710|    342|    OPENSSL_free(gctx);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  711|    342|}

mlx_kmgmt.c:mlx_get_params_decoder:
   99|  1.02k|{
  100|  1.02k|    const char *s;
  101|       |
  102|  1.02k|    memset(r, 0, sizeof(*r));
  103|  1.02k|    if (p != NULL)
  ------------------
  |  Branch (103:9): [True: 1.02k, False: 0]
  ------------------
  104|  3.07k|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (104:16): [True: 2.05k, False: 1.02k]
  ------------------
  105|  2.05k|            switch(s[0]) {
  106|      0|            default:
  ------------------
  |  Branch (106:13): [True: 0, False: 2.05k]
  ------------------
  107|      0|                break;
  108|    342|            case 'b':
  ------------------
  |  Branch (108:13): [True: 342, False: 1.71k]
  ------------------
  109|    342|                if (ossl_likely(strcmp("its", s + 1) == 0)) {
  ------------------
  |  |   22|    342|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 342, False: 0]
  |  |  ------------------
  ------------------
  110|       |                    /* OSSL_PKEY_PARAM_BITS */
  111|    342|                    if (ossl_unlikely(r->bits != NULL)) {
  ------------------
  |  |   23|    342|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 342]
  |  |  ------------------
  ------------------
  112|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  113|      0|                                       "param %s is repeated", s);
  114|      0|                        return 0;
  115|      0|                    }
  116|    342|                    r->bits = (OSSL_PARAM *)p;
  117|    342|                }
  118|    342|                break;
  119|    684|            case 'e':
  ------------------
  |  Branch (119:13): [True: 684, False: 1.36k]
  ------------------
  120|    684|                if (ossl_likely(strcmp("ncoded-pub-key", s + 1) == 0)) {
  ------------------
  |  |   22|    684|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 684, False: 0]
  |  |  ------------------
  ------------------
  121|       |                    /* OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY */
  122|    684|                    if (ossl_unlikely(r->pub != NULL)) {
  ------------------
  |  |   23|    684|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 684]
  |  |  ------------------
  ------------------
  123|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  124|      0|                                       "param %s is repeated", s);
  125|      0|                        return 0;
  126|      0|                    }
  127|    684|                    r->pub = (OSSL_PARAM *)p;
  128|    684|                }
  129|    684|                break;
  130|    684|            case 'm':
  ------------------
  |  Branch (130:13): [True: 342, False: 1.71k]
  ------------------
  131|    342|                if (ossl_likely(strcmp("ax-size", s + 1) == 0)) {
  ------------------
  |  |   22|    342|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 342, False: 0]
  |  |  ------------------
  ------------------
  132|       |                    /* OSSL_PKEY_PARAM_MAX_SIZE */
  133|    342|                    if (ossl_unlikely(r->maxsize != NULL)) {
  ------------------
  |  |   23|    342|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 342]
  |  |  ------------------
  ------------------
  134|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  135|      0|                                       "param %s is repeated", s);
  136|      0|                        return 0;
  137|      0|                    }
  138|    342|                    r->maxsize = (OSSL_PARAM *)p;
  139|    342|                }
  140|    342|                break;
  141|    342|            case 'p':
  ------------------
  |  Branch (141:13): [True: 0, False: 2.05k]
  ------------------
  142|      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]
  |  |  ------------------
  ------------------
  143|       |                    /* OSSL_PKEY_PARAM_PRIV_KEY */
  144|      0|                    if (ossl_unlikely(r->priv != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  145|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  146|      0|                                       "param %s is repeated", s);
  147|      0|                        return 0;
  148|      0|                    }
  149|      0|                    r->priv = (OSSL_PARAM *)p;
  150|      0|                }
  151|      0|                break;
  152|    684|            case 's':
  ------------------
  |  Branch (152:13): [True: 684, False: 1.36k]
  ------------------
  153|    684|                switch(s[1]) {
  154|      0|                default:
  ------------------
  |  Branch (154:17): [True: 0, False: 684]
  ------------------
  155|      0|                    break;
  156|    684|                case 'e':
  ------------------
  |  Branch (156:17): [True: 684, False: 0]
  ------------------
  157|    684|                    switch(s[2]) {
  158|      0|                    default:
  ------------------
  |  Branch (158:21): [True: 0, False: 684]
  ------------------
  159|      0|                        break;
  160|    684|                    case 'c':
  ------------------
  |  Branch (160:21): [True: 684, False: 0]
  ------------------
  161|    684|                        switch(s[3]) {
  162|      0|                        default:
  ------------------
  |  Branch (162:25): [True: 0, False: 684]
  ------------------
  163|      0|                            break;
  164|    684|                        case 'u':
  ------------------
  |  Branch (164:25): [True: 684, False: 0]
  ------------------
  165|    684|                            switch(s[4]) {
  166|      0|                            default:
  ------------------
  |  Branch (166:29): [True: 0, False: 684]
  ------------------
  167|      0|                                break;
  168|    684|                            case 'r':
  ------------------
  |  Branch (168:29): [True: 684, False: 0]
  ------------------
  169|    684|                                switch(s[5]) {
  170|      0|                                default:
  ------------------
  |  Branch (170:33): [True: 0, False: 684]
  ------------------
  171|      0|                                    break;
  172|    684|                                case 'i':
  ------------------
  |  Branch (172:33): [True: 684, False: 0]
  ------------------
  173|    684|                                    switch(s[6]) {
  174|      0|                                    default:
  ------------------
  |  Branch (174:37): [True: 0, False: 684]
  ------------------
  175|      0|                                        break;
  176|    684|                                    case 't':
  ------------------
  |  Branch (176:37): [True: 684, False: 0]
  ------------------
  177|    684|                                        switch(s[7]) {
  178|      0|                                        default:
  ------------------
  |  Branch (178:41): [True: 0, False: 684]
  ------------------
  179|      0|                                            break;
  180|    684|                                        case 'y':
  ------------------
  |  Branch (180:41): [True: 684, False: 0]
  ------------------
  181|    684|                                            switch(s[8]) {
  182|      0|                                            default:
  ------------------
  |  Branch (182:45): [True: 0, False: 684]
  ------------------
  183|      0|                                                break;
  184|    684|                                            case '-':
  ------------------
  |  Branch (184:45): [True: 684, False: 0]
  ------------------
  185|    684|                                                switch(s[9]) {
  186|      0|                                                default:
  ------------------
  |  Branch (186:49): [True: 0, False: 684]
  ------------------
  187|      0|                                                    break;
  188|    342|                                                case 'b':
  ------------------
  |  Branch (188:49): [True: 342, False: 342]
  ------------------
  189|    342|                                                    if (ossl_likely(strcmp("its", s + 10) == 0)) {
  ------------------
  |  |   22|    342|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 342, False: 0]
  |  |  ------------------
  ------------------
  190|       |                                                        /* OSSL_PKEY_PARAM_SECURITY_BITS */
  191|    342|                                                        if (ossl_unlikely(r->secbits != NULL)) {
  ------------------
  |  |   23|    342|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 342]
  |  |  ------------------
  ------------------
  192|      0|                                                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  193|      0|                                                                           "param %s is repeated", s);
  194|      0|                                                            return 0;
  195|      0|                                                        }
  196|    342|                                                        r->secbits = (OSSL_PARAM *)p;
  197|    342|                                                    }
  198|    342|                                                    break;
  199|    342|                                                case 'c':
  ------------------
  |  Branch (199:49): [True: 342, False: 342]
  ------------------
  200|    342|                                                    if (ossl_likely(strcmp("ategory", s + 10) == 0)) {
  ------------------
  |  |   22|    342|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 342, False: 0]
  |  |  ------------------
  ------------------
  201|       |                                                        /* OSSL_PKEY_PARAM_SECURITY_CATEGORY */
  202|    342|                                                        if (ossl_unlikely(r->seccat != NULL)) {
  ------------------
  |  |   23|    342|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 342]
  |  |  ------------------
  ------------------
  203|      0|                                                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  204|      0|                                                                           "param %s is repeated", s);
  205|      0|                                                            return 0;
  206|      0|                                                        }
  207|    342|                                                        r->seccat = (OSSL_PARAM *)p;
  208|    342|                                                    }
  209|    684|                                                }
  210|    684|                                            }
  211|    684|                                        }
  212|    684|                                    }
  213|    684|                                }
  214|    684|                            }
  215|    684|                        }
  216|    684|                    }
  217|    684|                }
  218|  2.05k|            }
  219|  1.02k|    return 1;
  220|  1.02k|}
mlx_kmgmt.c:ml_kem_import_export_decoder:
   31|    684|{
   32|    684|    const char *s;
   33|       |
   34|    684|    memset(r, 0, sizeof(*r));
   35|    684|    if (p != NULL)
  ------------------
  |  Branch (35:9): [True: 684, False: 0]
  ------------------
   36|  1.36k|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (36:16): [True: 684, False: 684]
  ------------------
   37|    684|            switch(s[0]) {
   38|      0|            default:
  ------------------
  |  Branch (38:13): [True: 0, False: 684]
  ------------------
   39|      0|                break;
   40|    684|            case 'p':
  ------------------
  |  Branch (40:13): [True: 684, False: 0]
  ------------------
   41|    684|                switch(s[1]) {
   42|      0|                default:
  ------------------
  |  Branch (42:17): [True: 0, False: 684]
  ------------------
   43|      0|                    break;
   44|      0|                case 'r':
  ------------------
  |  Branch (44:17): [True: 0, False: 684]
  ------------------
   45|      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]
  |  |  ------------------
  ------------------
   46|       |                        /* OSSL_PKEY_PARAM_PRIV_KEY */
   47|      0|                        if (ossl_unlikely(r->privkey != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
   48|      0|                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   49|      0|                                           "param %s is repeated", s);
   50|      0|                            return 0;
   51|      0|                        }
   52|      0|                        r->privkey = (OSSL_PARAM *)p;
   53|      0|                    }
   54|      0|                    break;
   55|    684|                case 'u':
  ------------------
  |  Branch (55:17): [True: 684, False: 0]
  ------------------
   56|    684|                    if (ossl_likely(strcmp("b", s + 2) == 0)) {
  ------------------
  |  |   22|    684|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 684, False: 0]
  |  |  ------------------
  ------------------
   57|       |                        /* OSSL_PKEY_PARAM_PUB_KEY */
   58|    684|                        if (ossl_unlikely(r->pubkey != NULL)) {
  ------------------
  |  |   23|    684|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 684]
  |  |  ------------------
  ------------------
   59|      0|                            ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                          ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   60|      0|                                           "param %s is repeated", s);
   61|      0|                            return 0;
   62|      0|                        }
   63|    684|                        r->pubkey = (OSSL_PARAM *)p;
   64|    684|                    }
   65|    684|                }
   66|    684|            }
   67|    684|    return 1;
   68|    684|}
mlx_kmgmt.c:mlx_gen_set_params_decoder:
  296|    684|{
  297|    684|    const char *s;
  298|       |
  299|    684|    memset(r, 0, sizeof(*r));
  300|    684|    if (p != NULL)
  ------------------
  |  Branch (300:9): [True: 342, False: 342]
  ------------------
  301|    684|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (301:16): [True: 342, False: 342]
  ------------------
  302|    342|            if (ossl_likely(strcmp("properties", s + 0) == 0)) {
  ------------------
  |  |   22|    342|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 0, False: 342]
  |  |  ------------------
  ------------------
  303|       |                /* OSSL_PKEY_PARAM_PROPERTIES */
  304|      0|                if (ossl_unlikely(r->propq != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  305|      0|                    ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  306|      0|                                   "param %s is repeated", s);
  307|      0|                    return 0;
  308|      0|                }
  309|      0|                r->propq = (OSSL_PARAM *)p;
  310|      0|            }
  311|    684|    return 1;
  312|    684|}

rsa_kmgmt.c:rsa_load:
  750|  28.0k|{
  751|  28.0k|    return common_load(reference, reference_sz, RSA_FLAG_TYPE_RSA);
  ------------------
  |  |  118|  28.0k|#define RSA_FLAG_TYPE_RSA 0x0000
  ------------------
  752|  28.0k|}
rsa_kmgmt.c:common_load:
  732|  28.0k|{
  733|  28.0k|    RSA *rsa = NULL;
  734|       |
  735|  28.0k|    if (ossl_prov_is_running() && reference_sz == sizeof(rsa)) {
  ------------------
  |  Branch (735:9): [True: 28.0k, False: 0]
  |  Branch (735:35): [True: 28.0k, False: 0]
  ------------------
  736|       |        /* The contents of the reference is the address to our object */
  737|  28.0k|        rsa = *(RSA **)reference;
  738|       |
  739|  28.0k|        if (RSA_test_flags(rsa, RSA_FLAG_TYPE_MASK) != expected_rsa_type)
  ------------------
  |  |  117|  28.0k|#define RSA_FLAG_TYPE_MASK 0xF000
  ------------------
  |  Branch (739:13): [True: 0, False: 28.0k]
  ------------------
  740|      0|            return NULL;
  741|       |
  742|       |        /* We grabbed, so we detach it */
  743|  28.0k|        *(RSA **)reference = NULL;
  744|  28.0k|        return rsa;
  745|  28.0k|    }
  746|      0|    return NULL;
  747|  28.0k|}
rsa_kmgmt.c:rsa_freedata:
  168|  28.0k|{
  169|  28.0k|    RSA_free(keydata);
  170|  28.0k|}
rsa_kmgmt.c:rsa_get_params:
  382|  28.0k|{
  383|  28.0k|    RSA *rsa = key;
  384|  28.0k|    const RSA_PSS_PARAMS_30 *pss_params = ossl_rsa_get0_pss_params_30(rsa);
  385|  28.0k|    int rsa_type = RSA_test_flags(rsa, RSA_FLAG_TYPE_MASK);
  ------------------
  |  |  117|  28.0k|#define RSA_FLAG_TYPE_MASK 0xF000
  ------------------
  386|  28.0k|    OSSL_PARAM *p;
  387|  28.0k|    int empty = RSA_get0_n(rsa) == NULL;
  388|       |
  389|  28.0k|    if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_BITS)) != NULL
  ------------------
  |  |  374|  28.0k|# define OSSL_PKEY_PARAM_BITS "bits"
  ------------------
  |  Branch (389:9): [True: 28.0k, False: 0]
  ------------------
  390|  28.0k|        && (empty || !OSSL_PARAM_set_int(p, RSA_bits(rsa))))
  ------------------
  |  Branch (390:13): [True: 0, False: 28.0k]
  |  Branch (390:22): [True: 0, False: 28.0k]
  ------------------
  391|      0|        return 0;
  392|  28.0k|    if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_SECURITY_BITS)) != NULL
  ------------------
  |  |  506|  28.0k|# define OSSL_PKEY_PARAM_SECURITY_BITS "security-bits"
  ------------------
  |  Branch (392:9): [True: 28.0k, False: 0]
  ------------------
  393|  28.0k|        && (empty || !OSSL_PARAM_set_int(p, RSA_security_bits(rsa))))
  ------------------
  |  Branch (393:13): [True: 0, False: 28.0k]
  |  Branch (393:22): [True: 0, False: 28.0k]
  ------------------
  394|      0|        return 0;
  395|  28.0k|    if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_MAX_SIZE)) != NULL
  ------------------
  |  |  432|  28.0k|# define OSSL_PKEY_PARAM_MAX_SIZE "max-size"
  ------------------
  |  Branch (395:9): [True: 28.0k, False: 0]
  ------------------
  396|  28.0k|        && (empty || !OSSL_PARAM_set_int(p, RSA_size(rsa))))
  ------------------
  |  Branch (396:13): [True: 0, False: 28.0k]
  |  Branch (396:22): [True: 0, False: 28.0k]
  ------------------
  397|      0|        return 0;
  398|  28.0k|    if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_SECURITY_CATEGORY)) != NULL)
  ------------------
  |  |  507|  28.0k|# define OSSL_PKEY_PARAM_SECURITY_CATEGORY OSSL_ALG_PARAM_SECURITY_CATEGORY
  |  |  ------------------
  |  |  |  |  131|  28.0k|# define OSSL_ALG_PARAM_SECURITY_CATEGORY "security-category"
  |  |  ------------------
  ------------------
  |  Branch (398:9): [True: 28.0k, False: 0]
  ------------------
  399|  28.0k|        if (!OSSL_PARAM_set_int(p, 0))
  ------------------
  |  Branch (399:13): [True: 0, False: 28.0k]
  ------------------
  400|      0|            return 0;
  401|       |
  402|       |    /*
  403|       |     * For restricted RSA-PSS keys, we ignore the default digest request.
  404|       |     * With RSA-OAEP keys, this may need to be amended.
  405|       |     */
  406|  28.0k|    if ((p = OSSL_PARAM_locate(params, OSSL_PKEY_PARAM_DEFAULT_DIGEST)) != NULL
  ------------------
  |  |  378|  28.0k|# define OSSL_PKEY_PARAM_DEFAULT_DIGEST "default-digest"
  ------------------
  |  Branch (406:9): [True: 0, False: 28.0k]
  ------------------
  407|      0|        && (rsa_type != RSA_FLAG_TYPE_RSASSAPSS
  ------------------
  |  |  119|      0|#define RSA_FLAG_TYPE_RSASSAPSS 0x1000
  ------------------
  |  Branch (407:13): [True: 0, False: 0]
  ------------------
  408|      0|            || ossl_rsa_pss_params_30_is_unrestricted(pss_params))) {
  ------------------
  |  Branch (408:16): [True: 0, False: 0]
  ------------------
  409|      0|        if (!OSSL_PARAM_set_utf8_string(p, RSA_DEFAULT_MD))
  ------------------
  |  |   57|      0|#define RSA_DEFAULT_MD "SHA256"
  ------------------
  |  Branch (409:13): [True: 0, False: 0]
  ------------------
  410|      0|            return 0;
  411|      0|    }
  412|       |
  413|       |    /*
  414|       |     * For non-RSA-PSS keys, we ignore the mandatory digest request.
  415|       |     * With RSA-OAEP keys, this may need to be amended.
  416|       |     */
  417|  28.0k|    if ((p = OSSL_PARAM_locate(params,
  ------------------
  |  Branch (417:9): [True: 0, False: 28.0k]
  ------------------
  418|  28.0k|             OSSL_PKEY_PARAM_MANDATORY_DIGEST))
  ------------------
  |  |  430|  28.0k|# define OSSL_PKEY_PARAM_MANDATORY_DIGEST "mandatory-digest"
  ------------------
  419|  28.0k|            != NULL
  420|      0|        && rsa_type == RSA_FLAG_TYPE_RSASSAPSS
  ------------------
  |  |  119|  28.0k|#define RSA_FLAG_TYPE_RSASSAPSS 0x1000
  ------------------
  |  Branch (420:12): [True: 0, False: 0]
  ------------------
  421|      0|        && !ossl_rsa_pss_params_30_is_unrestricted(pss_params)) {
  ------------------
  |  Branch (421:12): [True: 0, False: 0]
  ------------------
  422|      0|        const char *mdname = ossl_rsa_oaeppss_nid2name(ossl_rsa_pss_params_30_hashalg(pss_params));
  423|       |
  424|      0|        if (mdname == NULL || !OSSL_PARAM_set_utf8_string(p, mdname))
  ------------------
  |  Branch (424:13): [True: 0, False: 0]
  |  Branch (424:31): [True: 0, False: 0]
  ------------------
  425|      0|            return 0;
  426|      0|    }
  427|  28.0k|    return (rsa_type != RSA_FLAG_TYPE_RSASSAPSS
  ------------------
  |  |  119|  56.0k|#define RSA_FLAG_TYPE_RSASSAPSS 0x1000
  ------------------
  |  Branch (427:13): [True: 28.0k, False: 0]
  ------------------
  428|      0|               || ossl_rsa_pss_params_30_todata(pss_params, NULL, params))
  ------------------
  |  Branch (428:19): [True: 0, False: 0]
  ------------------
  429|  28.0k|        && ossl_rsa_todata(rsa, NULL, params, 1);
  ------------------
  |  Branch (429:12): [True: 28.0k, False: 0]
  ------------------
  430|  28.0k|}

ossl_drbg_lock:
   54|  24.2k|{
   55|  24.2k|    return 1;
   56|  24.2k|}
ossl_drbg_unlock:
   60|  24.2k|{
   61|  24.2k|}
ossl_drbg_get_seed:
  148|     10|{
  149|     10|    PROV_DRBG *drbg = (PROV_DRBG *)vdrbg;
  150|     10|    size_t bytes_needed;
  151|     10|    unsigned char *buffer;
  152|       |
  153|       |    /* Figure out how many bytes we need */
  154|     10|    bytes_needed = entropy >= 0 ? (entropy + 7) / 8 : 0;
  ------------------
  |  Branch (154:20): [True: 10, False: 0]
  ------------------
  155|     10|    if (bytes_needed < min_len)
  ------------------
  |  Branch (155:9): [True: 0, False: 10]
  ------------------
  156|      0|        bytes_needed = min_len;
  157|     10|    if (bytes_needed > max_len)
  ------------------
  |  Branch (157:9): [True: 0, False: 10]
  ------------------
  158|      0|        bytes_needed = max_len;
  159|       |
  160|       |    /* Allocate storage */
  161|     10|    buffer = OPENSSL_secure_malloc(bytes_needed);
  ------------------
  |  |  140|     10|    CRYPTO_secure_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  162|     10|    if (buffer == NULL)
  ------------------
  |  Branch (162:9): [True: 0, False: 10]
  ------------------
  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|     10|    if (!ossl_prov_drbg_generate(drbg, buffer, bytes_needed,
  ------------------
  |  Branch (174:9): [True: 0, False: 10]
  ------------------
  175|     10|            drbg->strength, prediction_resistance,
  176|     10|            (unsigned char *)&drbg, sizeof(drbg))) {
  177|      0|        OPENSSL_secure_clear_free(buffer, bytes_needed);
  ------------------
  |  |  150|      0|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  178|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_GENERATE_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  179|      0|        return 0;
  180|      0|    }
  181|     10|    *pout = buffer;
  182|     10|    return bytes_needed;
  183|     10|}
ossl_drbg_clear_seed:
  188|     10|{
  189|     10|    OPENSSL_secure_clear_free(out, outlen);
  ------------------
  |  |  150|     10|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  190|     10|}
ossl_prov_drbg_nonce_ctx_new:
  272|      2|{
  273|      2|    PROV_DRBG_NONCE_GLOBAL *dngbl = OPENSSL_zalloc(sizeof(*dngbl));
  ------------------
  |  |  109|      2|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  372|      0|        goto end;
  373|      0|    }
  374|       |
  375|      3|    if (drbg->state != EVP_RAND_STATE_UNINITIALISED) {
  ------------------
  |  | 1249|      3|#define EVP_RAND_STATE_UNINITIALISED 0
  ------------------
  |  Branch (375:9): [True: 0, False: 3]
  ------------------
  376|      0|        if (drbg->state == EVP_RAND_STATE_ERROR)
  ------------------
  |  | 1251|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  378|      0|        else
  379|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_ALREADY_INSTANTIATED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  380|      0|        goto end;
  381|      0|    }
  382|       |
  383|      3|    drbg->state = EVP_RAND_STATE_ERROR;
  ------------------
  |  | 1251|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  392|      0|                goto end;
  393|      0|            }
  394|      0|            nonce = OPENSSL_malloc(noncelen);
  ------------------
  |  |  107|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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;
  ------------------
  |  | 1250|      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)
  ------------------
  |  | 1250|      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|  11.1k|{
  626|  11.1k|    int fork_id;
  627|  11.1k|    int reseed_required = 0;
  628|  11.1k|    int ret = 0;
  629|  11.1k|    time_t reseed_time_interval = drbg->reseed_time_interval;
  630|  11.1k|    time_t now = 0;
  631|       |
  632|  11.1k|    if (!ossl_prov_is_running())
  ------------------
  |  Branch (632:9): [True: 0, False: 11.1k]
  ------------------
  633|      0|        return 0;
  634|       |
  635|  11.1k|    fork_id = openssl_get_fork_id();
  636|       |
  637|  11.1k|    if (reseed_time_interval > 0)
  ------------------
  |  Branch (637:9): [True: 11.1k, False: 0]
  ------------------
  638|  11.1k|        now = time(NULL);
  639|       |
  640|  11.1k|    if (drbg->lock != NULL && !CRYPTO_THREAD_write_lock(drbg->lock))
  ------------------
  |  Branch (640:9): [True: 10, False: 11.1k]
  |  Branch (640:31): [True: 0, False: 10]
  ------------------
  641|      0|        return 0;
  642|       |
  643|  11.1k|    if (drbg->state != EVP_RAND_STATE_READY) {
  ------------------
  |  | 1250|  11.1k|#define EVP_RAND_STATE_READY 1
  ------------------
  |  Branch (643:9): [True: 0, False: 11.1k]
  ------------------
  644|       |        /* try to recover from previous errors */
  645|      0|        rand_drbg_restart(drbg);
  646|       |
  647|      0|        if (drbg->state == EVP_RAND_STATE_ERROR) {
  ------------------
  |  | 1251|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  649|      0|            goto err;
  650|      0|        }
  651|      0|        if (drbg->state == EVP_RAND_STATE_UNINITIALISED) {
  ------------------
  |  | 1249|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  653|      0|            goto err;
  654|      0|        }
  655|      0|    }
  656|  11.1k|    if (strength > drbg->strength) {
  ------------------
  |  Branch (656:9): [True: 0, False: 11.1k]
  ------------------
  657|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_INSUFFICIENT_DRBG_STRENGTH);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  658|      0|        goto err;
  659|      0|    }
  660|       |
  661|  11.1k|    if (outlen > drbg->max_request) {
  ------------------
  |  Branch (661:9): [True: 0, False: 11.1k]
  ------------------
  662|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_REQUEST_TOO_LARGE_FOR_DRBG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  663|      0|        goto err;
  664|      0|    }
  665|  11.1k|    if (adinlen > drbg->max_adinlen) {
  ------------------
  |  Branch (665:9): [True: 0, False: 11.1k]
  ------------------
  666|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_ADDITIONAL_INPUT_TOO_LONG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  667|      0|        goto err;
  668|      0|    }
  669|       |
  670|  11.1k|    if (drbg->fork_id != fork_id) {
  ------------------
  |  Branch (670:9): [True: 0, False: 11.1k]
  ------------------
  671|      0|        drbg->fork_id = fork_id;
  672|      0|        reseed_required = 1;
  673|      0|    }
  674|       |
  675|  11.1k|    if (drbg->reseed_interval > 0) {
  ------------------
  |  Branch (675:9): [True: 11.1k, False: 0]
  ------------------
  676|  11.1k|        if (drbg->generate_counter >= drbg->reseed_interval)
  ------------------
  |  Branch (676:13): [True: 0, False: 11.1k]
  ------------------
  677|      0|            reseed_required = 1;
  678|  11.1k|    }
  679|  11.1k|    if (reseed_time_interval > 0) {
  ------------------
  |  Branch (679:9): [True: 11.1k, False: 0]
  ------------------
  680|  11.1k|        if (now < drbg->reseed_time
  ------------------
  |  Branch (680:13): [True: 0, False: 11.1k]
  ------------------
  681|  11.1k|            || now - drbg->reseed_time >= reseed_time_interval)
  ------------------
  |  Branch (681:16): [True: 6, False: 11.1k]
  ------------------
  682|      6|            reseed_required = 1;
  683|  11.1k|    }
  684|  11.1k|    if (drbg->parent != NULL
  ------------------
  |  Branch (684:9): [True: 11.1k, False: 0]
  ------------------
  685|  11.1k|        && get_parent_reseed_count(drbg) != drbg->parent_reseed_counter)
  ------------------
  |  Branch (685:12): [True: 2, False: 11.1k]
  ------------------
  686|      2|        reseed_required = 1;
  687|       |
  688|  11.1k|    if (reseed_required || prediction_resistance) {
  ------------------
  |  Branch (688:9): [True: 8, False: 11.1k]
  |  Branch (688:28): [True: 0, False: 11.1k]
  ------------------
  689|      8|        if (!ossl_prov_drbg_reseed_unlocked(drbg, prediction_resistance, NULL,
  ------------------
  |  Branch (689:13): [True: 0, False: 8]
  ------------------
  690|      8|                0, adin, adinlen)) {
  691|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_RESEED_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  692|      0|            goto err;
  693|      0|        }
  694|      8|        adin = NULL;
  695|      8|        adinlen = 0;
  696|      8|    }
  697|       |
  698|  11.1k|    if (!drbg->generate(drbg, out, outlen, adin, adinlen)) {
  ------------------
  |  Branch (698:9): [True: 0, False: 11.1k]
  ------------------
  699|      0|        drbg->state = EVP_RAND_STATE_ERROR;
  ------------------
  |  | 1251|      0|#define EVP_RAND_STATE_ERROR 2
  ------------------
  700|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_GENERATE_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  701|      0|        goto err;
  702|      0|    }
  703|       |
  704|  11.1k|    drbg->generate_counter++;
  705|       |
  706|  11.1k|    ret = 1;
  707|  11.1k|err:
  708|  11.1k|    if (drbg->lock != NULL)
  ------------------
  |  Branch (708:9): [True: 10, False: 11.1k]
  ------------------
  709|     10|        CRYPTO_THREAD_unlock(drbg->lock);
  710|       |
  711|  11.1k|    return ret;
  712|  11.1k|}
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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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));
  ------------------
  |  |  109|      3|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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)
  ------------------
  |  |  548|      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)
  ------------------
  |  |  549|      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)
  ------------------
  |  |  550|      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)
  ------------------
  |  |  555|      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)
  ------------------
  |  |  547|      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)
  ------------------
  |  |  558|      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)
  ------------------
  |  |  559|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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.97k|{
  885|  1.97k|    if (p->state != NULL && !OSSL_PARAM_set_int(p->state, drbg->state))
  ------------------
  |  Branch (885:9): [True: 1.96k, False: 12]
  |  Branch (885:29): [True: 0, False: 1.96k]
  ------------------
  886|      0|        return 0;
  887|       |
  888|  1.97k|    if (p->str != NULL && !OSSL_PARAM_set_int(p->str, drbg->strength))
  ------------------
  |  Branch (888:9): [True: 12, False: 1.96k]
  |  Branch (888:27): [True: 0, False: 12]
  ------------------
  889|      0|        return 0;
  890|       |
  891|  1.97k|    if (p->minentlen != NULL
  ------------------
  |  Branch (891:9): [True: 0, False: 1.97k]
  ------------------
  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.97k|    if (p->maxentlen != NULL
  ------------------
  |  Branch (895:9): [True: 0, False: 1.97k]
  ------------------
  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.97k|    if (p->minnonlen != NULL
  ------------------
  |  Branch (899:9): [True: 0, False: 1.97k]
  ------------------
  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.97k|    if (p->maxnonlen != NULL
  ------------------
  |  Branch (903:9): [True: 0, False: 1.97k]
  ------------------
  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.97k|    if (p->maxperlen != NULL
  ------------------
  |  Branch (907:9): [True: 0, False: 1.97k]
  ------------------
  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.97k|    if (p->maxadlen != NULL
  ------------------
  |  Branch (911:9): [True: 0, False: 1.97k]
  ------------------
  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.97k|    if (p->reseed_req != NULL
  ------------------
  |  Branch (915:9): [True: 0, False: 1.97k]
  ------------------
  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.97k|    if (p->reseed_time != NULL
  ------------------
  |  Branch (919:9): [True: 0, False: 1.97k]
  ------------------
  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.97k|    if (p->reseed_int != NULL
  ------------------
  |  Branch (923:9): [True: 0, False: 1.97k]
  ------------------
  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.97k|    if (!OSSL_FIPS_IND_GET_CTX_FROM_PARAM(drbg, p->ind))
  ------------------
  |  |  161|  1.97k|#define OSSL_FIPS_IND_GET_CTX_FROM_PARAM(ctx, params) 1
  ------------------
  |  Branch (927:9): [Folded, False: 1.97k]
  ------------------
  928|      0|        return 0;
  929|       |
  930|  1.97k|    return 1;
  931|  1.97k|}
ossl_drbg_get_ctx_params_no_lock:
  940|  24.2k|{
  941|  24.2k|    size_t cnt = 0;
  942|       |
  943|       |    /* This value never changes once set */
  944|  24.2k|    if (p->maxreq != NULL) {
  ------------------
  |  Branch (944:9): [True: 11.1k, False: 13.1k]
  ------------------
  945|  11.1k|        if (!OSSL_PARAM_set_size_t(p->maxreq, drbg->max_request))
  ------------------
  |  Branch (945:13): [True: 0, False: 11.1k]
  ------------------
  946|      0|            return 0;
  947|  11.1k|        cnt++;
  948|  11.1k|    }
  949|       |
  950|       |    /*
  951|       |     * Can be changed by multiple threads, but we tolerate inaccuracies in this
  952|       |     * value.
  953|       |     */
  954|  24.2k|    if (p->reseed_cnt != NULL) {
  ------------------
  |  Branch (954:9): [True: 11.1k, False: 13.1k]
  ------------------
  955|  11.1k|        if (!OSSL_PARAM_set_uint(p->reseed_cnt, tsan_load(&drbg->reseed_counter)))
  ------------------
  |  |   61|  11.1k|#define tsan_load(ptr) atomic_load_explicit((ptr), memory_order_relaxed)
  ------------------
  |  Branch (955:13): [True: 0, False: 11.1k]
  ------------------
  956|      0|            return 0;
  957|  11.1k|        cnt++;
  958|  11.1k|    }
  959|       |
  960|  24.2k|    if (params[cnt].key == NULL)
  ------------------
  |  Branch (960:9): [True: 22.2k, False: 1.97k]
  ------------------
  961|  22.2k|        *complete = 1;
  962|  1.97k|    else
  963|  1.97k|        *complete = 0;
  964|       |
  965|  24.2k|    return 1;
  966|  24.2k|}
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|     11|{
  196|     11|    size_t bytes;
  197|     11|    unsigned int p_str;
  198|       |
  199|     11|    if (drbg->parent == NULL)
  ------------------
  |  Branch (199:9): [True: 0, False: 11]
  ------------------
  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|     11|    if (drbg->parent_get_seed == NULL) {
  ------------------
  |  Branch (207:9): [True: 0, False: 11]
  ------------------
  208|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_PARENT_CANNOT_SUPPLY_ENTROPY_SEED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  209|      0|        return 0;
  210|      0|    }
  211|     11|    if (!get_parent_strength(drbg, &p_str))
  ------------------
  |  Branch (211:9): [True: 0, False: 11]
  ------------------
  212|      0|        return 0;
  213|     11|    if (drbg->strength > p_str) {
  ------------------
  |  Branch (213:9): [True: 0, False: 11]
  ------------------
  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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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|     11|    if (!ossl_drbg_lock_parent(drbg))
  ------------------
  |  Branch (227:9): [True: 0, False: 11]
  ------------------
  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|     11|    bytes = drbg->parent_get_seed(drbg->parent, pout,
  239|     11|        entropy > 0 ? entropy : (int)drbg->strength,
  ------------------
  |  Branch (239:9): [True: 11, False: 0]
  ------------------
  240|     11|        min_len, max_len, prediction_resistance,
  241|     11|        (unsigned char *)&drbg, sizeof(drbg));
  242|     11|    ossl_drbg_unlock_parent(drbg);
  243|     11|    return bytes;
  244|     11|}
drbg.c:ossl_drbg_lock_parent:
   64|  11.1k|{
   65|  11.1k|    void *parent = drbg->parent;
   66|       |
   67|  11.1k|    if (parent != NULL
  ------------------
  |  Branch (67:9): [True: 11.1k, False: 0]
  ------------------
   68|  11.1k|        && drbg->parent_lock != NULL
  ------------------
  |  Branch (68:12): [True: 11.1k, False: 0]
  ------------------
   69|  11.1k|        && !drbg->parent_lock(parent)) {
  ------------------
  |  Branch (69:12): [True: 0, False: 11.1k]
  ------------------
   70|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_PARENT_LOCKING_NOT_ENABLED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   71|      0|        return 0;
   72|      0|    }
   73|  11.1k|    return 1;
   74|  11.1k|}
drbg.c:ossl_drbg_unlock_parent:
   77|  11.1k|{
   78|  11.1k|    void *parent = drbg->parent;
   79|       |
   80|  11.1k|    if (parent != NULL && drbg->parent_unlock != NULL)
  ------------------
  |  Branch (80:9): [True: 11.1k, False: 0]
  |  Branch (80:27): [True: 11.1k, False: 0]
  ------------------
   81|  11.1k|        drbg->parent_unlock(parent);
   82|  11.1k|}
drbg.c:cleanup_entropy:
  247|     11|{
  248|     11|    if (drbg->parent == NULL) {
  ------------------
  |  Branch (248:9): [True: 0, False: 11]
  ------------------
  249|      0|        ossl_prov_cleanup_entropy(drbg->provctx, out, outlen);
  250|     11|    } else if (drbg->parent_clear_seed != NULL) {
  ------------------
  |  Branch (250:16): [True: 11, False: 0]
  ------------------
  251|     11|        if (!ossl_drbg_lock_parent(drbg))
  ------------------
  |  Branch (251:13): [True: 0, False: 11]
  ------------------
  252|      0|            return;
  253|     11|        drbg->parent_clear_seed(drbg->parent, out, outlen);
  254|     11|        ossl_drbg_unlock_parent(drbg);
  255|     11|    }
  256|     11|}
drbg.c:ossl_prov_drbg_reseed_unlocked:
  486|      8|{
  487|      8|    unsigned char *entropy = NULL;
  488|      8|    size_t entropylen = 0;
  489|       |
  490|      8|    if (!ossl_prov_is_running())
  ------------------
  |  Branch (490:9): [True: 0, False: 8]
  ------------------
  491|      0|        return 0;
  492|       |
  493|      8|    if (drbg->state != EVP_RAND_STATE_READY) {
  ------------------
  |  | 1250|      8|#define EVP_RAND_STATE_READY 1
  ------------------
  |  Branch (493:9): [True: 0, False: 8]
  ------------------
  494|       |        /* try to recover from previous errors */
  495|      0|        rand_drbg_restart(drbg);
  496|       |
  497|      0|        if (drbg->state == EVP_RAND_STATE_ERROR) {
  ------------------
  |  | 1251|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  499|      0|            return 0;
  500|      0|        }
  501|      0|        if (drbg->state == EVP_RAND_STATE_UNINITIALISED) {
  ------------------
  |  | 1249|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  503|      0|            return 0;
  504|      0|        }
  505|      0|    }
  506|       |
  507|      8|    if (ent != NULL) {
  ------------------
  |  Branch (507:9): [True: 0, False: 8]
  ------------------
  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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  510|      0|            drbg->state = EVP_RAND_STATE_ERROR;
  ------------------
  |  | 1251|      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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  515|      0|            drbg->state = EVP_RAND_STATE_ERROR;
  ------------------
  |  | 1251|      0|#define EVP_RAND_STATE_ERROR 2
  ------------------
  516|      0|            return 0;
  517|      0|        }
  518|      0|    }
  519|       |
  520|      8|    if (adin == NULL) {
  ------------------
  |  Branch (520:9): [True: 8, False: 0]
  ------------------
  521|      8|        adinlen = 0;
  522|      8|    } 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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  524|      0|        return 0;
  525|      0|    }
  526|       |
  527|      8|    drbg->state = EVP_RAND_STATE_ERROR;
  ------------------
  |  | 1251|      8|#define EVP_RAND_STATE_ERROR 2
  ------------------
  528|       |
  529|      8|    drbg->reseed_next_counter = tsan_load(&drbg->reseed_counter);
  ------------------
  |  |   61|      8|#define tsan_load(ptr) atomic_load_explicit((ptr), memory_order_relaxed)
  ------------------
  530|      8|    if (drbg->reseed_next_counter) {
  ------------------
  |  Branch (530:9): [True: 8, False: 0]
  ------------------
  531|      8|        drbg->reseed_next_counter++;
  532|      8|        if (!drbg->reseed_next_counter)
  ------------------
  |  Branch (532:13): [True: 0, False: 8]
  ------------------
  533|      0|            drbg->reseed_next_counter = 1;
  534|      8|    }
  535|       |
  536|      8|    if (ent != NULL) {
  ------------------
  |  Branch (536:9): [True: 0, False: 8]
  ------------------
  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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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|      8|    entropylen = get_entropy(drbg, &entropy, drbg->strength,
  562|      8|        drbg->min_entropylen, drbg->max_entropylen,
  563|      8|        prediction_resistance);
  564|      8|    if (entropylen < drbg->min_entropylen
  ------------------
  |  Branch (564:9): [True: 0, False: 8]
  ------------------
  565|      8|        || entropylen > drbg->max_entropylen) {
  ------------------
  |  Branch (565:12): [True: 0, False: 8]
  ------------------
  566|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_ERROR_RETRIEVING_ENTROPY);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  567|      0|        goto end;
  568|      0|    }
  569|       |
  570|      8|    if (!drbg->reseed(drbg, entropy, entropylen, adin, adinlen))
  ------------------
  |  Branch (570:9): [True: 0, False: 8]
  ------------------
  571|      0|        goto end;
  572|       |
  573|      8|    drbg->state = EVP_RAND_STATE_READY;
  ------------------
  |  | 1250|      8|#define EVP_RAND_STATE_READY 1
  ------------------
  574|      8|    drbg->generate_counter = 1;
  575|      8|    drbg->reseed_time = time(NULL);
  576|      8|    tsan_store(&drbg->reseed_counter, drbg->reseed_next_counter);
  ------------------
  |  |   62|      8|#define tsan_store(ptr, val) atomic_store_explicit((ptr), (val), memory_order_relaxed)
  ------------------
  577|      8|    if (drbg->parent != NULL)
  ------------------
  |  Branch (577:9): [True: 8, False: 0]
  ------------------
  578|      8|        drbg->parent_reseed_counter = get_parent_reseed_count(drbg);
  579|       |
  580|      8|end:
  581|      8|    cleanup_entropy(drbg, entropy, entropylen);
  582|      8|    if (drbg->state == EVP_RAND_STATE_READY)
  ------------------
  |  | 1250|      8|#define EVP_RAND_STATE_READY 1
  ------------------
  |  Branch (582:9): [True: 8, False: 0]
  ------------------
  583|      8|        return 1;
  584|      0|    return 0;
  585|      8|}
drbg.c:get_parent_reseed_count:
  110|  11.1k|{
  111|  11.1k|    OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|  11.1k|    { NULL, 0, NULL, 0, 0 }
  ------------------
                  OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|  11.1k|    { NULL, 0, NULL, 0, 0 }
  ------------------
  112|  11.1k|    void *parent = drbg->parent;
  113|  11.1k|    unsigned int r = 0;
  114|       |
  115|  11.1k|    *params = OSSL_PARAM_construct_uint(OSSL_DRBG_PARAM_RESEED_COUNTER, &r);
  ------------------
  |  |  254|  11.1k|# define OSSL_DRBG_PARAM_RESEED_COUNTER "reseed_counter"
  ------------------
  116|  11.1k|    if (!ossl_drbg_lock_parent(drbg)) {
  ------------------
  |  Branch (116:9): [True: 0, False: 11.1k]
  ------------------
  117|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_UNABLE_TO_LOCK_PARENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  118|      0|        goto err;
  119|      0|    }
  120|  11.1k|    if (!drbg->parent_get_ctx_params(parent, params))
  ------------------
  |  Branch (120:9): [True: 0, False: 11.1k]
  ------------------
  121|      0|        r = 0;
  122|  11.1k|    ossl_drbg_unlock_parent(drbg);
  123|  11.1k|    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|  11.1k|}
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|     14|{
   86|     14|    OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|     14|    { NULL, 0, NULL, 0, 0 }
  ------------------
                  OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END };
  ------------------
  |  |   25|     14|    { NULL, 0, NULL, 0, 0 }
  ------------------
   87|     14|    void *parent = drbg->parent;
   88|     14|    int res;
   89|       |
   90|     14|    if (drbg->parent_get_ctx_params == NULL) {
  ------------------
  |  Branch (90:9): [True: 0, False: 14]
  ------------------
   91|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_UNABLE_TO_GET_PARENT_STRENGTH);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   92|      0|        return 0;
   93|      0|    }
   94|       |
   95|     14|    *params = OSSL_PARAM_construct_uint(OSSL_RAND_PARAM_STRENGTH, str);
  ------------------
  |  |  553|     14|# define OSSL_RAND_PARAM_STRENGTH "strength"
  ------------------
   96|     14|    if (!ossl_drbg_lock_parent(drbg)) {
  ------------------
  |  Branch (96:9): [True: 0, False: 14]
  ------------------
   97|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_UNABLE_TO_LOCK_PARENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   98|      0|        return 0;
   99|      0|    }
  100|     14|    res = drbg->parent_get_ctx_params(parent, params);
  101|     14|    ossl_drbg_unlock_parent(drbg);
  102|     14|    if (!res) {
  ------------------
  |  Branch (102:9): [True: 0, False: 14]
  ------------------
  103|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_UNABLE_TO_GET_PARENT_STRENGTH);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  104|      0|        return 0;
  105|      0|    }
  106|     14|    return 1;
  107|     14|}

drbg_ctr.c:drbg_ctr_new_wrapper:
  649|      3|{
  650|       |#ifdef FIPS_MODULE
  651|       |    if (!ossl_deferred_self_test(PROV_LIBCTX_OF(provctx),
  652|       |            ST_ID_DRBG_CTR))
  653|       |        return NULL;
  654|       |#endif
  655|       |
  656|      3|    return ossl_rand_drbg_new(provctx, parent, parent_dispatch,
  657|      3|        &drbg_ctr_new, &drbg_ctr_free,
  658|      3|        &drbg_ctr_instantiate, &drbg_ctr_uninstantiate,
  659|      3|        &drbg_ctr_reseed, &drbg_ctr_generate);
  660|      3|}
drbg_ctr.c:drbg_ctr_new:
  634|      3|{
  635|      3|    PROV_DRBG_CTR *ctr;
  636|       |
  637|      3|    ctr = OPENSSL_secure_zalloc(sizeof(*ctr));
  ------------------
  |  |  142|      3|    CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  638|      3|    if (ctr == NULL)
  ------------------
  |  Branch (638:9): [True: 0, False: 3]
  ------------------
  639|      0|        return 0;
  640|       |
  641|      3|    ctr->use_df = 1;
  642|      3|    drbg->data = ctr;
  643|      3|    OSSL_FIPS_IND_INIT(drbg)
  644|      3|    return drbg_ctr_init_lengths(drbg);
  645|      3|}
drbg_ctr.c:drbg_ctr_init_lengths:
  540|      6|{
  541|      6|    PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)drbg->data;
  542|      6|    int res = 1;
  543|       |
  544|       |    /* Maximum number of bits per request = 2^19  = 2^16 bytes */
  545|      6|    drbg->max_request = 1 << 16;
  546|      6|    if (ctr->use_df) {
  ------------------
  |  Branch (546:9): [True: 6, False: 0]
  ------------------
  547|      6|        drbg->min_entropylen = 0;
  548|      6|        drbg->max_entropylen = DRBG_MAX_LENGTH;
  ------------------
  |  |   41|      6|#define DRBG_MAX_LENGTH INT32_MAX
  ------------------
  549|      6|        drbg->min_noncelen = 0;
  550|      6|        drbg->max_noncelen = DRBG_MAX_LENGTH;
  ------------------
  |  |   41|      6|#define DRBG_MAX_LENGTH INT32_MAX
  ------------------
  551|      6|        drbg->max_perslen = DRBG_MAX_LENGTH;
  ------------------
  |  |   41|      6|#define DRBG_MAX_LENGTH INT32_MAX
  ------------------
  552|      6|        drbg->max_adinlen = DRBG_MAX_LENGTH;
  ------------------
  |  |   41|      6|#define DRBG_MAX_LENGTH INT32_MAX
  ------------------
  553|       |
  554|      6|        if (ctr->keylen > 0) {
  ------------------
  |  Branch (554:13): [True: 3, False: 3]
  ------------------
  555|      3|            drbg->min_entropylen = ctr->keylen;
  556|      3|            drbg->min_noncelen = drbg->min_entropylen / 2;
  557|      3|        }
  558|      6|    } else {
  559|      0|        const size_t len = ctr->keylen > 0 ? drbg->seedlen : DRBG_MAX_LENGTH;
  ------------------
  |  |   41|      0|#define DRBG_MAX_LENGTH INT32_MAX
  ------------------
  |  Branch (559:28): [True: 0, False: 0]
  ------------------
  560|       |
  561|      0|        drbg->min_entropylen = len;
  562|      0|        drbg->max_entropylen = len;
  563|       |        /* Nonce not used */
  564|      0|        drbg->min_noncelen = 0;
  565|      0|        drbg->max_noncelen = 0;
  566|      0|        drbg->max_perslen = len;
  567|      0|        drbg->max_adinlen = len;
  568|      0|    }
  569|      6|    return res;
  570|      6|}
drbg_ctr.c:drbg_ctr_instantiate:
  323|      3|{
  324|      3|    PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)drbg->data;
  325|       |
  326|      3|    if (entropy == NULL)
  ------------------
  |  Branch (326:9): [True: 0, False: 3]
  ------------------
  327|      0|        return 0;
  328|       |
  329|      3|    memset(ctr->K, 0, sizeof(ctr->K));
  330|      3|    memset(ctr->V, 0, sizeof(ctr->V));
  331|      3|    if (!EVP_CipherInit_ex(ctr->ctx_ecb, NULL, NULL, ctr->K, NULL, -1))
  ------------------
  |  Branch (331:9): [True: 0, False: 3]
  ------------------
  332|      0|        return 0;
  333|       |
  334|      3|    inc_128(ctr);
  335|      3|    if (!ctr_update(drbg, entropy, entropylen, pers, perslen, nonce, noncelen))
  ------------------
  |  Branch (335:9): [True: 0, False: 3]
  ------------------
  336|      0|        return 0;
  337|      3|    return 1;
  338|      3|}
drbg_ctr.c:inc_128:
   72|  33.4k|{
   73|  33.4k|    unsigned char *p = &ctr->V[0];
   74|  33.4k|    u32 n = 16, c = 1;
   75|       |
   76|   535k|    do {
   77|   535k|        --n;
   78|   535k|        c += p[n];
   79|   535k|        p[n] = (u8)c;
   80|   535k|        c >>= 8;
   81|   535k|    } while (n);
  ------------------
  |  Branch (81:14): [True: 502k, False: 33.4k]
  ------------------
   82|  33.4k|}
drbg_ctr.c:ctr_update:
  277|  11.1k|{
  278|  11.1k|    PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)drbg->data;
  279|  11.1k|    int outlen = AES_BLOCK_SIZE;
  ------------------
  |  |   26|  11.1k|#define AES_BLOCK_SIZE 16
  ------------------
  280|  11.1k|    unsigned char V_tmp[48], out[48];
  281|  11.1k|    unsigned char len;
  282|       |
  283|       |    /* correct key is already set up. */
  284|  11.1k|    memcpy(V_tmp, ctr->V, 16);
  285|  11.1k|    inc_128(ctr);
  286|  11.1k|    memcpy(V_tmp + 16, ctr->V, 16);
  287|  11.1k|    if (ctr->keylen == 16) {
  ------------------
  |  Branch (287:9): [True: 0, False: 11.1k]
  ------------------
  288|      0|        len = 32;
  289|  11.1k|    } else {
  290|  11.1k|        inc_128(ctr);
  291|  11.1k|        memcpy(V_tmp + 32, ctr->V, 16);
  292|  11.1k|        len = 48;
  293|  11.1k|    }
  294|  11.1k|    if (!EVP_CipherUpdate(ctr->ctx_ecb, out, &outlen, V_tmp, len)
  ------------------
  |  Branch (294:9): [True: 0, False: 11.1k]
  ------------------
  295|  11.1k|        || outlen != len)
  ------------------
  |  Branch (295:12): [True: 0, False: 11.1k]
  ------------------
  296|      0|        return 0;
  297|  11.1k|    memcpy(ctr->K, out, ctr->keylen);
  298|  11.1k|    memcpy(ctr->V, out + ctr->keylen, 16);
  299|       |
  300|  11.1k|    if (ctr->use_df) {
  ------------------
  |  Branch (300:9): [True: 11.1k, False: 0]
  ------------------
  301|       |        /* If no input reuse existing derived value */
  302|  11.1k|        if (in1 != NULL || nonce != NULL || in2 != NULL)
  ------------------
  |  Branch (302:13): [True: 21, False: 11.1k]
  |  Branch (302:28): [True: 0, False: 11.1k]
  |  Branch (302:45): [True: 0, False: 11.1k]
  ------------------
  303|     21|            if (!ctr_df(ctr, in1, in1len, nonce, noncelen, in2, in2len))
  ------------------
  |  Branch (303:17): [True: 0, False: 21]
  ------------------
  304|      0|                return 0;
  305|       |        /* If this a reuse input in1len != 0 */
  306|  11.1k|        if (in1len)
  ------------------
  |  Branch (306:13): [True: 31, False: 11.1k]
  ------------------
  307|     31|            ctr_XOR(ctr, ctr->KX, drbg->seedlen);
  308|  11.1k|    } else {
  309|      0|        ctr_XOR(ctr, in1, in1len);
  310|      0|        ctr_XOR(ctr, in2, in2len);
  311|      0|    }
  312|       |
  313|  11.1k|    if (!EVP_CipherInit_ex(ctr->ctx_ecb, NULL, NULL, ctr->K, NULL, -1)
  ------------------
  |  Branch (313:9): [True: 0, False: 11.1k]
  ------------------
  314|  11.1k|        || !EVP_CipherInit_ex(ctr->ctx_ctr, NULL, NULL, ctr->K, NULL, -1))
  ------------------
  |  Branch (314:12): [True: 0, False: 11.1k]
  ------------------
  315|      0|        return 0;
  316|  11.1k|    return 1;
  317|  11.1k|}
drbg_ctr.c:ctr_df:
  214|     21|{
  215|     21|    static unsigned char c80 = 0x80;
  216|     21|    size_t inlen;
  217|     21|    unsigned char *p = ctr->bltmp;
  218|     21|    int outlen = AES_BLOCK_SIZE;
  ------------------
  |  |   26|     21|#define AES_BLOCK_SIZE 16
  ------------------
  219|       |
  220|     21|    if (!ctr_BCC_init(ctr))
  ------------------
  |  Branch (220:9): [True: 0, False: 21]
  ------------------
  221|      0|        return 0;
  222|     21|    if (in1 == NULL)
  ------------------
  |  Branch (222:9): [True: 0, False: 21]
  ------------------
  223|      0|        in1len = 0;
  224|     21|    if (in2 == NULL)
  ------------------
  |  Branch (224:9): [True: 21, False: 0]
  ------------------
  225|     21|        in2len = 0;
  226|     21|    if (in3 == NULL)
  ------------------
  |  Branch (226:9): [True: 18, False: 3]
  ------------------
  227|     18|        in3len = 0;
  228|     21|    inlen = in1len + in2len + in3len;
  229|       |    /* Initialise L||N in temporary block */
  230|     21|    *p++ = (inlen >> 24) & 0xff;
  231|     21|    *p++ = (inlen >> 16) & 0xff;
  232|     21|    *p++ = (inlen >> 8) & 0xff;
  233|     21|    *p++ = inlen & 0xff;
  234|       |
  235|       |    /* NB keylen is at most 32 bytes */
  236|     21|    *p++ = 0;
  237|     21|    *p++ = 0;
  238|     21|    *p++ = 0;
  239|     21|    *p = (unsigned char)((ctr->keylen + 16) & 0xff);
  240|     21|    ctr->bltmp_pos = 8;
  241|     21|    if (!ctr_BCC_update(ctr, in1, in1len)
  ------------------
  |  Branch (241:9): [True: 0, False: 21]
  ------------------
  242|     21|        || !ctr_BCC_update(ctr, in2, in2len)
  ------------------
  |  Branch (242:12): [True: 0, False: 21]
  ------------------
  243|     21|        || !ctr_BCC_update(ctr, in3, in3len)
  ------------------
  |  Branch (243:12): [True: 0, False: 21]
  ------------------
  244|     21|        || !ctr_BCC_update(ctr, &c80, 1)
  ------------------
  |  Branch (244:12): [True: 0, False: 21]
  ------------------
  245|     21|        || !ctr_BCC_final(ctr))
  ------------------
  |  Branch (245:12): [True: 0, False: 21]
  ------------------
  246|      0|        return 0;
  247|       |    /* Set up key K */
  248|     21|    if (!EVP_CipherInit_ex(ctr->ctx_ecb, NULL, NULL, ctr->KX, NULL, -1))
  ------------------
  |  Branch (248:9): [True: 0, False: 21]
  ------------------
  249|      0|        return 0;
  250|       |    /* X follows key K */
  251|     21|    if (!EVP_CipherUpdate(ctr->ctx_ecb, ctr->KX, &outlen, ctr->KX + ctr->keylen,
  ------------------
  |  Branch (251:9): [True: 0, False: 21]
  ------------------
  252|     21|            AES_BLOCK_SIZE)
  ------------------
  |  |   26|     21|#define AES_BLOCK_SIZE 16
  ------------------
  253|     21|        || outlen != AES_BLOCK_SIZE)
  ------------------
  |  |   26|     21|#define AES_BLOCK_SIZE 16
  ------------------
  |  Branch (253:12): [True: 0, False: 21]
  ------------------
  254|      0|        return 0;
  255|     21|    if (!EVP_CipherUpdate(ctr->ctx_ecb, ctr->KX + 16, &outlen, ctr->KX,
  ------------------
  |  Branch (255:9): [True: 0, False: 21]
  ------------------
  256|     21|            AES_BLOCK_SIZE)
  ------------------
  |  |   26|     21|#define AES_BLOCK_SIZE 16
  ------------------
  257|     21|        || outlen != AES_BLOCK_SIZE)
  ------------------
  |  |   26|     21|#define AES_BLOCK_SIZE 16
  ------------------
  |  Branch (257:12): [True: 0, False: 21]
  ------------------
  258|      0|        return 0;
  259|     21|    if (ctr->keylen != 16)
  ------------------
  |  Branch (259:9): [True: 21, False: 0]
  ------------------
  260|     21|        if (!EVP_CipherUpdate(ctr->ctx_ecb, ctr->KX + 32, &outlen,
  ------------------
  |  Branch (260:13): [True: 0, False: 21]
  ------------------
  261|     21|                ctr->KX + 16, AES_BLOCK_SIZE)
  ------------------
  |  |   26|     21|#define AES_BLOCK_SIZE 16
  ------------------
  262|     21|            || outlen != AES_BLOCK_SIZE)
  ------------------
  |  |   26|     21|#define AES_BLOCK_SIZE 16
  ------------------
  |  Branch (262:16): [True: 0, False: 21]
  ------------------
  263|      0|            return 0;
  264|     21|    return 1;
  265|     21|}
drbg_ctr.c:ctr_BCC_init:
  151|     21|{
  152|     21|    unsigned char bltmp[48] = { 0 };
  153|     21|    unsigned char num_of_blk;
  154|       |
  155|     21|    memset(ctr->KX, 0, 48);
  156|     21|    num_of_blk = ctr->keylen == 16 ? 2 : 3;
  ------------------
  |  Branch (156:18): [True: 0, False: 21]
  ------------------
  157|     21|    bltmp[(AES_BLOCK_SIZE * 1) + 3] = 1;
  ------------------
  |  |   26|     21|#define AES_BLOCK_SIZE 16
  ------------------
  158|     21|    bltmp[(AES_BLOCK_SIZE * 2) + 3] = 2;
  ------------------
  |  |   26|     21|#define AES_BLOCK_SIZE 16
  ------------------
  159|     21|    return ctr_BCC_block(ctr, ctr->KX, bltmp, num_of_blk * AES_BLOCK_SIZE);
  ------------------
  |  |   26|     21|#define AES_BLOCK_SIZE 16
  ------------------
  160|     21|}
drbg_ctr.c:ctr_BCC_block:
  117|     83|{
  118|     83|    int i, outlen = AES_BLOCK_SIZE;
  ------------------
  |  |   26|     83|#define AES_BLOCK_SIZE 16
  ------------------
  119|       |
  120|  4.06k|    for (i = 0; i < len; i++)
  ------------------
  |  Branch (120:17): [True: 3.98k, False: 83]
  ------------------
  121|  3.98k|        out[i] ^= in[i];
  122|       |
  123|     83|    if (!EVP_CipherUpdate(ctr->ctx_df, out, &outlen, out, len)
  ------------------
  |  Branch (123:9): [True: 0, False: 83]
  ------------------
  124|     83|        || outlen != len)
  ------------------
  |  Branch (124:12): [True: 0, False: 83]
  ------------------
  125|      0|        return 0;
  126|     83|    return 1;
  127|     83|}
drbg_ctr.c:ctr_BCC_update:
  167|     84|{
  168|     84|    if (in == NULL || inlen == 0)
  ------------------
  |  Branch (168:9): [True: 39, False: 45]
  |  Branch (168:23): [True: 0, False: 45]
  ------------------
  169|     39|        return 1;
  170|       |
  171|       |    /* If we have partial block handle it first */
  172|     45|    if (ctr->bltmp_pos) {
  ------------------
  |  Branch (172:9): [True: 35, False: 10]
  ------------------
  173|     35|        size_t left = 16 - ctr->bltmp_pos;
  174|       |
  175|       |        /* If we now have a complete block process it */
  176|     35|        if (inlen >= left) {
  ------------------
  |  Branch (176:13): [True: 24, False: 11]
  ------------------
  177|     24|            memcpy(ctr->bltmp + ctr->bltmp_pos, in, left);
  178|     24|            if (!ctr_BCC_blocks(ctr, ctr->bltmp))
  ------------------
  |  Branch (178:17): [True: 0, False: 24]
  ------------------
  179|      0|                return 0;
  180|     24|            ctr->bltmp_pos = 0;
  181|     24|            inlen -= left;
  182|     24|            in += left;
  183|     24|        }
  184|     35|    }
  185|       |
  186|       |    /* Process zero or more complete blocks */
  187|     62|    for (; inlen >= 16; in += 16, inlen -= 16) {
  ------------------
  |  Branch (187:12): [True: 17, False: 45]
  ------------------
  188|     17|        if (!ctr_BCC_blocks(ctr, in))
  ------------------
  |  Branch (188:13): [True: 0, False: 17]
  ------------------
  189|      0|            return 0;
  190|     17|    }
  191|       |
  192|       |    /* Copy any remaining partial block to the temporary buffer */
  193|     45|    if (inlen > 0) {
  ------------------
  |  Branch (193:9): [True: 35, False: 10]
  ------------------
  194|     35|        memcpy(ctr->bltmp + ctr->bltmp_pos, in, inlen);
  195|     35|        ctr->bltmp_pos += inlen;
  196|     35|    }
  197|     45|    return 1;
  198|     45|}
drbg_ctr.c:ctr_BCC_blocks:
  133|     62|{
  134|     62|    unsigned char in_tmp[48];
  135|     62|    unsigned char num_of_blk = 2;
  136|       |
  137|     62|    memcpy(in_tmp, in, 16);
  138|     62|    memcpy(in_tmp + 16, in, 16);
  139|     62|    if (ctr->keylen != 16) {
  ------------------
  |  Branch (139:9): [True: 62, False: 0]
  ------------------
  140|     62|        memcpy(in_tmp + 32, in, 16);
  141|     62|        num_of_blk = 3;
  142|     62|    }
  143|     62|    return ctr_BCC_block(ctr, ctr->KX, in_tmp, AES_BLOCK_SIZE * num_of_blk);
  ------------------
  |  |   26|     62|#define AES_BLOCK_SIZE 16
  ------------------
  144|     62|}
drbg_ctr.c:ctr_BCC_final:
  201|     21|{
  202|     21|    if (ctr->bltmp_pos) {
  ------------------
  |  Branch (202:9): [True: 21, False: 0]
  ------------------
  203|     21|        memset(ctr->bltmp + ctr->bltmp_pos, 0, 16 - ctr->bltmp_pos);
  204|     21|        if (!ctr_BCC_blocks(ctr, ctr->bltmp))
  ------------------
  |  Branch (204:13): [True: 0, False: 21]
  ------------------
  205|      0|            return 0;
  206|     21|    }
  207|     21|    return 1;
  208|     21|}
drbg_ctr.c:ctr_XOR:
   85|     31|{
   86|     31|    size_t i, n;
   87|       |
   88|     31|    if (in == NULL || inlen == 0)
  ------------------
  |  Branch (88:9): [True: 0, False: 31]
  |  Branch (88:23): [True: 0, False: 31]
  ------------------
   89|      0|        return;
   90|       |
   91|       |    /*
   92|       |     * Any zero padding will have no effect on the result as we
   93|       |     * are XORing. So just process however much input we have.
   94|       |     */
   95|     31|    n = inlen < ctr->keylen ? inlen : ctr->keylen;
  ------------------
  |  Branch (95:9): [True: 0, False: 31]
  ------------------
   96|     31|    if (!ossl_assert(n <= sizeof(ctr->K)))
  ------------------
  |  |   52|     31|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|     31|    __FILE__, __LINE__)
  ------------------
  |  Branch (96:9): [True: 0, False: 31]
  ------------------
   97|      0|        return;
   98|  1.02k|    for (i = 0; i < n; i++)
  ------------------
  |  Branch (98:17): [True: 992, False: 31]
  ------------------
   99|    992|        ctr->K[i] ^= in[i];
  100|     31|    if (inlen <= ctr->keylen)
  ------------------
  |  Branch (100:9): [True: 0, False: 31]
  ------------------
  101|      0|        return;
  102|       |
  103|     31|    n = inlen - ctr->keylen;
  104|     31|    if (n > 16) {
  ------------------
  |  Branch (104:9): [True: 0, False: 31]
  ------------------
  105|       |        /* Should never happen */
  106|      0|        n = 16;
  107|      0|    }
  108|    527|    for (i = 0; i < n; i++)
  ------------------
  |  Branch (108:17): [True: 496, False: 31]
  ------------------
  109|    496|        ctr->V[i] ^= in[i + ctr->keylen];
  110|     31|}
drbg_ctr.c:drbg_ctr_reseed:
  370|      8|{
  371|      8|    PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)drbg->data;
  372|       |
  373|      8|    if (entropy == NULL)
  ------------------
  |  Branch (373:9): [True: 0, False: 8]
  ------------------
  374|      0|        return 0;
  375|       |
  376|      8|    inc_128(ctr);
  377|      8|    if (!ctr_update(drbg, entropy, entropylen, adin, adinlen, NULL, 0))
  ------------------
  |  Branch (377:9): [True: 0, False: 8]
  ------------------
  378|      0|        return 0;
  379|      8|    return 1;
  380|      8|}
drbg_ctr.c:drbg_ctr_generate:
  407|  11.1k|{
  408|  11.1k|    PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)drbg->data;
  409|  11.1k|    unsigned int ctr32, blocks;
  410|  11.1k|    int outl, buflen;
  411|       |
  412|  11.1k|    if (adin != NULL && adinlen != 0) {
  ------------------
  |  Branch (412:9): [True: 10, False: 11.1k]
  |  Branch (412:25): [True: 10, False: 0]
  ------------------
  413|     10|        inc_128(ctr);
  414|       |
  415|     10|        if (!ctr_update(drbg, adin, adinlen, NULL, 0, NULL, 0))
  ------------------
  |  Branch (415:13): [True: 0, False: 10]
  ------------------
  416|      0|            return 0;
  417|       |        /* This means we reuse derived value */
  418|     10|        if (ctr->use_df) {
  ------------------
  |  Branch (418:13): [True: 10, False: 0]
  ------------------
  419|     10|            adin = NULL;
  420|     10|            adinlen = 1;
  421|     10|        }
  422|  11.1k|    } else {
  423|  11.1k|        adinlen = 0;
  424|  11.1k|    }
  425|       |
  426|  11.1k|    inc_128(ctr);
  427|       |
  428|  11.1k|    if (outlen == 0) {
  ------------------
  |  Branch (428:9): [True: 0, False: 11.1k]
  ------------------
  429|      0|        inc_128(ctr);
  430|       |
  431|      0|        if (!ctr_update(drbg, adin, adinlen, NULL, 0, NULL, 0))
  ------------------
  |  Branch (431:13): [True: 0, False: 0]
  ------------------
  432|      0|            return 0;
  433|      0|        return 1;
  434|      0|    }
  435|       |
  436|  11.1k|    memset(out, 0, outlen);
  437|       |
  438|  11.1k|    do {
  439|  11.1k|        if (!EVP_CipherInit_ex(ctr->ctx_ctr,
  ------------------
  |  Branch (439:13): [True: 0, False: 11.1k]
  ------------------
  440|  11.1k|                NULL, NULL, NULL, ctr->V, -1))
  441|      0|            return 0;
  442|       |
  443|       |        /*-
  444|       |         * outlen has type size_t while EVP_CipherUpdate takes an
  445|       |         * int argument and thus cannot be guaranteed to process more
  446|       |         * than 2^31-1 bytes at a time. We process such huge generate
  447|       |         * requests in 2^30 byte chunks, which is the greatest multiple
  448|       |         * of AES block size lower than or equal to 2^31-1.
  449|       |         */
  450|  11.1k|        buflen = outlen > (1U << 30) ? (1 << 30) : (int)outlen;
  ------------------
  |  Branch (450:18): [True: 0, False: 11.1k]
  ------------------
  451|  11.1k|        blocks = (buflen + 15) / 16;
  452|       |
  453|  11.1k|        ctr32 = GETU32(ctr->V + 12) + blocks;
  ------------------
  |  |   98|  11.1k|#define GETU32(p) ((u32)(p)[0] << 24 | (u32)(p)[1] << 16 | (u32)(p)[2] << 8 | (u32)(p)[3])
  ------------------
  454|  11.1k|        if (ctr32 < blocks) {
  ------------------
  |  Branch (454:13): [True: 0, False: 11.1k]
  ------------------
  455|       |            /* 32-bit counter overflow into V. */
  456|      0|            if (ctr32 != 0) {
  ------------------
  |  Branch (456:17): [True: 0, False: 0]
  ------------------
  457|      0|                blocks -= ctr32;
  458|      0|                buflen = blocks * 16;
  459|      0|                ctr32 = 0;
  460|      0|            }
  461|      0|            ctr96_inc(ctr->V);
  462|      0|        }
  463|  11.1k|        PUTU32(ctr->V + 12, ctr32);
  ------------------
  |  |   99|  11.1k|#define PUTU32(p, v) ((p)[0] = (u8)((v) >> 24), (p)[1] = (u8)((v) >> 16), (p)[2] = (u8)((v) >> 8), (p)[3] = (u8)(v))
  ------------------
  464|       |
  465|  11.1k|        if (!EVP_CipherUpdate(ctr->ctx_ctr, out, &outl, out, buflen)
  ------------------
  |  Branch (465:13): [True: 0, False: 11.1k]
  ------------------
  466|  11.1k|            || outl != buflen)
  ------------------
  |  Branch (466:16): [True: 0, False: 11.1k]
  ------------------
  467|      0|            return 0;
  468|       |
  469|  11.1k|        out += buflen;
  470|  11.1k|        outlen -= buflen;
  471|  11.1k|    } while (outlen);
  ------------------
  |  Branch (471:14): [True: 0, False: 11.1k]
  ------------------
  472|       |
  473|  11.1k|    if (!ctr_update(drbg, adin, adinlen, NULL, 0, NULL, 0))
  ------------------
  |  Branch (473:9): [True: 0, False: 11.1k]
  ------------------
  474|      0|        return 0;
  475|  11.1k|    return 1;
  476|  11.1k|}
drbg_ctr.c:drbg_ctr_instantiate_wrapper:
  345|      3|{
  346|      3|    PROV_DRBG *drbg = (PROV_DRBG *)vdrbg;
  347|      3|    struct drbg_set_ctx_params_st p;
  348|      3|    int ret = 0;
  349|       |
  350|      3|    if (drbg == NULL || !drbg_ctr_set_ctx_params_decoder(params, &p))
  ------------------
  |  Branch (350:9): [True: 0, False: 3]
  |  Branch (350:25): [True: 0, False: 3]
  ------------------
  351|      0|        return 0;
  352|       |
  353|      3|    if (drbg->lock != NULL && !CRYPTO_THREAD_write_lock(drbg->lock))
  ------------------
  |  Branch (353:9): [True: 0, False: 3]
  |  Branch (353:31): [True: 0, False: 0]
  ------------------
  354|      0|        return 0;
  355|       |
  356|      3|    if (!ossl_prov_is_running()
  ------------------
  |  Branch (356:9): [True: 0, False: 3]
  ------------------
  357|      3|        || !drbg_ctr_set_ctx_params_locked(drbg, &p))
  ------------------
  |  Branch (357:12): [True: 0, False: 3]
  ------------------
  358|      0|        goto err;
  359|      3|    ret = ossl_prov_drbg_instantiate(drbg, strength, prediction_resistance,
  360|      3|        pstr, pstr_len);
  361|      3|err:
  362|      3|    if (drbg->lock != NULL)
  ------------------
  |  Branch (362:9): [True: 0, False: 3]
  ------------------
  363|      0|        CRYPTO_THREAD_unlock(drbg->lock);
  364|      3|    return ret;
  365|      3|}
drbg_ctr.c:drbg_ctr_set_ctx_params_locked:
  726|      3|{
  727|      3|    PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)ctx->data;
  728|      3|    OSSL_LIB_CTX *libctx = PROV_LIBCTX_OF(ctx->provctx);
  ------------------
  |  |   31|      3|    ossl_prov_ctx_get0_libctx((provctx))
  ------------------
  729|      3|    OSSL_PROVIDER *prov = NULL;
  730|      3|    char *ecb;
  731|      3|    const char *propquery = NULL;
  732|      3|    int i, cipher_init = 0;
  733|       |
  734|      3|    if (p->df != NULL && OSSL_PARAM_get_int(p->df, &i)) {
  ------------------
  |  Branch (734:9): [True: 3, False: 0]
  |  Branch (734:26): [True: 3, False: 0]
  ------------------
  735|       |        /* FIPS errors out in the drbg_ctr_init() call later */
  736|      3|        ctr->use_df = i != 0;
  737|      3|        cipher_init = 1;
  738|      3|    }
  739|       |
  740|      3|    if (p->propq != NULL) {
  ------------------
  |  Branch (740:9): [True: 0, False: 3]
  ------------------
  741|      0|        if (p->propq->data_type != OSSL_PARAM_UTF8_STRING)
  ------------------
  |  |  117|      0|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (741:13): [True: 0, False: 0]
  ------------------
  742|      0|            return 0;
  743|      0|        propquery = (const char *)p->propq->data;
  744|      0|    }
  745|       |
  746|      3|    if (p->prov != NULL) {
  ------------------
  |  Branch (746:9): [True: 3, False: 0]
  ------------------
  747|      3|        if (p->prov->data_type != OSSL_PARAM_UTF8_STRING)
  ------------------
  |  |  117|      3|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (747:13): [True: 0, False: 3]
  ------------------
  748|      0|            return 0;
  749|      3|        if ((prov = ossl_provider_find(libctx,
  ------------------
  |  Branch (749:13): [True: 0, False: 3]
  ------------------
  750|      3|                 (const char *)p->prov->data, 1))
  751|      3|            == NULL)
  752|      0|            return 0;
  753|      3|    }
  754|       |
  755|      3|    if (p->cipher != NULL) {
  ------------------
  |  Branch (755:9): [True: 3, False: 0]
  ------------------
  756|      3|        const char *base = (const char *)p->cipher->data;
  757|      3|        size_t ctr_str_len = sizeof("CTR") - 1;
  758|      3|        size_t ecb_str_len = sizeof("ECB") - 1;
  759|       |
  760|      3|        if (p->cipher->data_type != OSSL_PARAM_UTF8_STRING
  ------------------
  |  |  117|      6|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (760:13): [True: 0, False: 3]
  ------------------
  761|      3|            || p->cipher->data_size < ctr_str_len) {
  ------------------
  |  Branch (761:16): [True: 0, False: 3]
  ------------------
  762|      0|            ossl_provider_free(prov);
  763|      0|            return 0;
  764|      0|        }
  765|      3|        if (OPENSSL_strcasecmp("CTR", base + p->cipher->data_size - ctr_str_len) != 0) {
  ------------------
  |  Branch (765:13): [True: 0, False: 3]
  ------------------
  766|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_REQUIRE_CTR_MODE_CIPHER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  767|      0|            ossl_provider_free(prov);
  768|      0|            return 0;
  769|      0|        }
  770|      3|        if ((ecb = OPENSSL_strndup(base, p->cipher->data_size)) == NULL) {
  ------------------
  |  |  138|      3|    CRYPTO_strndup(str, n, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strndup(str, n, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (770:13): [True: 0, False: 3]
  ------------------
  771|      0|            ossl_provider_free(prov);
  772|      0|            return 0;
  773|      0|        }
  774|      3|        strcpy(ecb + p->cipher->data_size - ecb_str_len, "ECB");
  775|      3|        EVP_CIPHER_free(ctr->cipher_ecb);
  776|      3|        EVP_CIPHER_free(ctr->cipher_ctr);
  777|       |        /*
  778|       |         * Try to fetch algorithms from our own provider code, fallback
  779|       |         * to generic fetch only if that fails
  780|       |         */
  781|      3|        (void)ERR_set_mark();
  782|      3|        ctr->cipher_ctr = evp_cipher_fetch_from_prov(prov, base, NULL);
  783|      3|        if (ctr->cipher_ctr == NULL) {
  ------------------
  |  Branch (783:13): [True: 0, False: 3]
  ------------------
  784|      0|            (void)ERR_pop_to_mark();
  785|      0|            ctr->cipher_ctr = EVP_CIPHER_fetch(libctx, base, propquery);
  786|      3|        } else {
  787|      3|            (void)ERR_clear_last_mark();
  788|      3|        }
  789|      3|        (void)ERR_set_mark();
  790|      3|        ctr->cipher_ecb = evp_cipher_fetch_from_prov(prov, ecb, NULL);
  791|      3|        if (ctr->cipher_ecb == NULL) {
  ------------------
  |  Branch (791:13): [True: 0, False: 3]
  ------------------
  792|      0|            (void)ERR_pop_to_mark();
  793|      0|            ctr->cipher_ecb = EVP_CIPHER_fetch(libctx, ecb, propquery);
  794|      3|        } else {
  795|      3|            (void)ERR_clear_last_mark();
  796|      3|        }
  797|      3|        OPENSSL_free(ecb);
  ------------------
  |  |  132|      3|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  798|      3|        if (ctr->cipher_ctr == NULL || ctr->cipher_ecb == NULL) {
  ------------------
  |  Branch (798:13): [True: 0, False: 3]
  |  Branch (798:40): [True: 0, False: 3]
  ------------------
  799|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_UNABLE_TO_FIND_CIPHERS);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  800|      0|            ossl_provider_free(prov);
  801|      0|            return 0;
  802|      0|        }
  803|      3|        cipher_init = 1;
  804|      3|    }
  805|      3|    ossl_provider_free(prov);
  806|       |
  807|      3|    if (cipher_init && !drbg_ctr_init(ctx))
  ------------------
  |  Branch (807:9): [True: 3, False: 0]
  |  Branch (807:24): [True: 0, False: 3]
  ------------------
  808|      0|        return 0;
  809|       |
  810|      3|    return ossl_drbg_set_ctx_params(ctx, p);
  811|      3|}
drbg_ctr.c:drbg_ctr_init:
  573|      3|{
  574|      3|    PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)drbg->data;
  575|      3|    size_t keylen;
  576|       |
  577|      3|    if (ctr->cipher_ctr == NULL) {
  ------------------
  |  Branch (577:9): [True: 0, False: 3]
  ------------------
  578|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_MISSING_CIPHER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  579|      0|        return 0;
  580|      0|    }
  581|      3|    ctr->keylen = keylen = EVP_CIPHER_get_key_length(ctr->cipher_ctr);
  582|      3|    if (ctr->ctx_ecb == NULL)
  ------------------
  |  Branch (582:9): [True: 3, False: 0]
  ------------------
  583|      3|        ctr->ctx_ecb = EVP_CIPHER_CTX_new();
  584|      3|    if (ctr->ctx_ctr == NULL)
  ------------------
  |  Branch (584:9): [True: 3, False: 0]
  ------------------
  585|      3|        ctr->ctx_ctr = EVP_CIPHER_CTX_new();
  586|      3|    if (ctr->ctx_ecb == NULL || ctr->ctx_ctr == NULL) {
  ------------------
  |  Branch (586:9): [True: 0, False: 3]
  |  Branch (586:33): [True: 0, False: 3]
  ------------------
  587|      0|        ERR_raise(ERR_LIB_PROV, ERR_R_EVP_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  588|      0|        goto err;
  589|      0|    }
  590|       |
  591|      3|    if (!EVP_CipherInit_ex(ctr->ctx_ecb,
  ------------------
  |  Branch (591:9): [True: 0, False: 3]
  ------------------
  592|      3|            ctr->cipher_ecb, NULL, NULL, NULL, 1)
  593|      3|        || !EVP_CipherInit_ex(ctr->ctx_ctr,
  ------------------
  |  Branch (593:12): [True: 0, False: 3]
  ------------------
  594|      3|            ctr->cipher_ctr, NULL, NULL, NULL, 1)) {
  595|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_UNABLE_TO_INITIALISE_CIPHERS);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  596|      0|        goto err;
  597|      0|    }
  598|       |
  599|      3|    drbg->strength = (unsigned int)(keylen * 8);
  600|      3|    drbg->seedlen = keylen + 16;
  601|       |
  602|      3|    if (ctr->use_df) {
  ------------------
  |  Branch (602:9): [True: 3, False: 0]
  ------------------
  603|       |        /* df initialisation */
  604|      3|        static const unsigned char df_key[32] = {
  605|      3|            0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
  606|      3|            0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
  607|      3|            0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
  608|      3|            0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f
  609|      3|        };
  610|       |
  611|      3|        if (ctr->ctx_df == NULL)
  ------------------
  |  Branch (611:13): [True: 3, False: 0]
  ------------------
  612|      3|            ctr->ctx_df = EVP_CIPHER_CTX_new();
  613|      3|        if (ctr->ctx_df == NULL) {
  ------------------
  |  Branch (613:13): [True: 0, False: 3]
  ------------------
  614|      0|            ERR_raise(ERR_LIB_PROV, ERR_R_EVP_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  615|      0|            goto err;
  616|      0|        }
  617|       |        /* Set key schedule for df_key */
  618|      3|        if (!EVP_CipherInit_ex(ctr->ctx_df,
  ------------------
  |  Branch (618:13): [True: 0, False: 3]
  ------------------
  619|      3|                ctr->cipher_ecb, NULL, df_key, NULL, 1)) {
  620|      0|            ERR_raise(ERR_LIB_PROV, PROV_R_DERIVATION_FUNCTION_INIT_FAILED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  621|      0|            goto err;
  622|      0|        }
  623|      3|    }
  624|      3|    return drbg_ctr_init_lengths(drbg);
  625|       |
  626|      0|err:
  627|      0|    EVP_CIPHER_CTX_free(ctr->ctx_ecb);
  628|      0|    EVP_CIPHER_CTX_free(ctr->ctx_ctr);
  629|       |    ctr->ctx_ecb = ctr->ctx_ctr = NULL;
  630|      0|    return 0;
  631|      3|}
drbg_ctr.c:drbg_ctr_generate_wrapper:
  481|  11.1k|{
  482|  11.1k|    PROV_DRBG *drbg = (PROV_DRBG *)vdrbg;
  483|       |
  484|  11.1k|    return ossl_prov_drbg_generate(drbg, out, outlen, strength,
  485|  11.1k|        prediction_resistance, adin, adin_len);
  486|  11.1k|}
drbg_ctr.c:drbg_ctr_settable_ctx_params:
  835|      3|{
  836|      3|    return drbg_ctr_set_ctx_params_list;
  837|      3|}
drbg_ctr.c:drbg_ctr_get_ctx_params:
  680|  24.2k|{
  681|  24.2k|    PROV_DRBG *drbg = (PROV_DRBG *)vdrbg;
  682|  24.2k|    PROV_DRBG_CTR *ctr;
  683|  24.2k|    struct drbg_ctr_get_ctx_params_st p;
  684|  24.2k|    int ret = 0, complete = 0;
  685|       |
  686|  24.2k|    if (drbg == NULL || !drbg_ctr_get_ctx_params_decoder(params, &p))
  ------------------
  |  Branch (686:9): [True: 0, False: 24.2k]
  |  Branch (686:25): [True: 0, False: 24.2k]
  ------------------
  687|      0|        return 0;
  688|       |
  689|  24.2k|    if (!ossl_drbg_get_ctx_params_no_lock(drbg, &p, params, &complete))
  ------------------
  |  Branch (689:9): [True: 0, False: 24.2k]
  ------------------
  690|      0|        return 0;
  691|       |
  692|  24.2k|    if (complete)
  ------------------
  |  Branch (692:9): [True: 22.2k, False: 1.97k]
  ------------------
  693|  22.2k|        return 1;
  694|       |
  695|  1.97k|    ctr = (PROV_DRBG_CTR *)drbg->data;
  696|       |
  697|  1.97k|    if (drbg->lock != NULL && !CRYPTO_THREAD_read_lock(drbg->lock))
  ------------------
  |  Branch (697:9): [True: 1.97k, False: 0]
  |  Branch (697:31): [True: 0, False: 1.97k]
  ------------------
  698|      0|        return 0;
  699|       |
  700|  1.97k|    if (p.df != NULL && !OSSL_PARAM_set_int(p.df, ctr->use_df))
  ------------------
  |  Branch (700:9): [True: 0, False: 1.97k]
  |  Branch (700:25): [True: 0, False: 0]
  ------------------
  701|      0|        goto err;
  702|       |
  703|  1.97k|    if (p.cipher != NULL) {
  ------------------
  |  Branch (703:9): [True: 0, False: 1.97k]
  ------------------
  704|      0|        if (ctr->cipher_ctr == NULL
  ------------------
  |  Branch (704:13): [True: 0, False: 0]
  ------------------
  705|      0|            || !OSSL_PARAM_set_utf8_string(p.cipher,
  ------------------
  |  Branch (705:16): [True: 0, False: 0]
  ------------------
  706|      0|                EVP_CIPHER_get0_name(ctr->cipher_ctr)))
  707|      0|            goto err;
  708|      0|    }
  709|       |
  710|  1.97k|    ret = ossl_drbg_get_ctx_params(drbg, &p);
  711|  1.97k|err:
  712|  1.97k|    if (drbg->lock != NULL)
  ------------------
  |  Branch (712:9): [True: 1.97k, False: 0]
  ------------------
  713|  1.97k|        CRYPTO_THREAD_unlock(drbg->lock);
  714|       |
  715|  1.97k|    return ret;
  716|  1.97k|}

drbg_ctr.c:drbg_ctr_set_ctx_params_decoder:
  379|      3|{
  380|      3|    const char *s;
  381|       |
  382|      3|    memset(r, 0, sizeof(*r));
  383|      3|    if (p != NULL)
  ------------------
  |  Branch (383:9): [True: 3, False: 0]
  ------------------
  384|     18|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (384:16): [True: 15, False: 3]
  ------------------
  385|     15|            switch(s[0]) {
  386|      0|            default:
  ------------------
  |  Branch (386:13): [True: 0, False: 15]
  ------------------
  387|      0|                break;
  388|      3|            case 'c':
  ------------------
  |  Branch (388:13): [True: 3, False: 12]
  ------------------
  389|      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]
  |  |  ------------------
  ------------------
  390|       |                    /* OSSL_DRBG_PARAM_CIPHER */
  391|      3|                    if (ossl_unlikely(r->cipher != NULL)) {
  ------------------
  |  |   23|      3|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 3]
  |  |  ------------------
  ------------------
  392|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  393|      0|                                       "param %s is repeated", s);
  394|      0|                        return 0;
  395|      0|                    }
  396|      3|                    r->cipher = (OSSL_PARAM *)p;
  397|      3|                }
  398|      3|                break;
  399|      3|            case 'p':
  ------------------
  |  Branch (399:13): [True: 3, False: 12]
  ------------------
  400|      3|                switch(s[1]) {
  401|      0|                default:
  ------------------
  |  Branch (401:17): [True: 0, False: 3]
  ------------------
  402|      0|                    break;
  403|      3|                case 'r':
  ------------------
  |  Branch (403:17): [True: 3, False: 0]
  ------------------
  404|      3|                    switch(s[2]) {
  405|      0|                    default:
  ------------------
  |  Branch (405:21): [True: 0, False: 3]
  ------------------
  406|      0|                        break;
  407|      3|                    case 'o':
  ------------------
  |  Branch (407:21): [True: 3, False: 0]
  ------------------
  408|      3|                        switch(s[3]) {
  409|      0|                        default:
  ------------------
  |  Branch (409:25): [True: 0, False: 3]
  ------------------
  410|      0|                            break;
  411|      0|                        case 'p':
  ------------------
  |  Branch (411:25): [True: 0, False: 3]
  ------------------
  412|      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]
  |  |  ------------------
  ------------------
  413|       |                                /* OSSL_DRBG_PARAM_PROPERTIES */
  414|      0|                                if (ossl_unlikely(r->propq != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  415|      0|                                    ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  416|      0|                                                   "param %s is repeated", s);
  417|      0|                                    return 0;
  418|      0|                                }
  419|      0|                                r->propq = (OSSL_PARAM *)p;
  420|      0|                            }
  421|      0|                            break;
  422|      3|                        case 'v':
  ------------------
  |  Branch (422:25): [True: 3, False: 0]
  ------------------
  423|      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]
  |  |  ------------------
  ------------------
  424|       |                                /* OSSL_PROV_PARAM_CORE_PROV_NAME */
  425|      3|                                if (ossl_unlikely(r->prov != NULL)) {
  ------------------
  |  |   23|      3|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 3]
  |  |  ------------------
  ------------------
  426|      0|                                    ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  427|      0|                                                   "param %s is repeated", s);
  428|      0|                                    return 0;
  429|      0|                                }
  430|      3|                                r->prov = (OSSL_PARAM *)p;
  431|      3|                            }
  432|      3|                        }
  433|      3|                    }
  434|      3|                }
  435|      3|                break;
  436|      6|            case 'r':
  ------------------
  |  Branch (436:13): [True: 6, False: 9]
  ------------------
  437|      6|                switch(s[1]) {
  438|      0|                default:
  ------------------
  |  Branch (438:17): [True: 0, False: 6]
  ------------------
  439|      0|                    break;
  440|      6|                case 'e':
  ------------------
  |  Branch (440:17): [True: 6, False: 0]
  ------------------
  441|      6|                    switch(s[2]) {
  442|      0|                    default:
  ------------------
  |  Branch (442:21): [True: 0, False: 6]
  ------------------
  443|      0|                        break;
  444|      6|                    case 's':
  ------------------
  |  Branch (444:21): [True: 6, False: 0]
  ------------------
  445|      6|                        switch(s[3]) {
  446|      0|                        default:
  ------------------
  |  Branch (446:25): [True: 0, False: 6]
  ------------------
  447|      0|                            break;
  448|      6|                        case 'e':
  ------------------
  |  Branch (448:25): [True: 6, False: 0]
  ------------------
  449|      6|                            switch(s[4]) {
  450|      0|                            default:
  ------------------
  |  Branch (450:29): [True: 0, False: 6]
  ------------------
  451|      0|                                break;
  452|      6|                            case 'e':
  ------------------
  |  Branch (452:29): [True: 6, False: 0]
  ------------------
  453|      6|                                switch(s[5]) {
  454|      0|                                default:
  ------------------
  |  Branch (454:33): [True: 0, False: 6]
  ------------------
  455|      0|                                    break;
  456|      6|                                case 'd':
  ------------------
  |  Branch (456:33): [True: 6, False: 0]
  ------------------
  457|      6|                                    switch(s[6]) {
  458|      0|                                    default:
  ------------------
  |  Branch (458:37): [True: 0, False: 6]
  ------------------
  459|      0|                                        break;
  460|      6|                                    case '_':
  ------------------
  |  Branch (460:37): [True: 6, False: 0]
  ------------------
  461|      6|                                        switch(s[7]) {
  462|      0|                                        default:
  ------------------
  |  Branch (462:41): [True: 0, False: 6]
  ------------------
  463|      0|                                            break;
  464|      3|                                        case 'r':
  ------------------
  |  Branch (464:41): [True: 3, False: 3]
  ------------------
  465|      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]
  |  |  ------------------
  ------------------
  466|       |                                                /* OSSL_DRBG_PARAM_RESEED_REQUESTS */
  467|      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]
  |  |  ------------------
  ------------------
  468|      0|                                                    ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  469|      0|                                                                   "param %s is repeated", s);
  470|      0|                                                    return 0;
  471|      0|                                                }
  472|      3|                                                r->reseed_req = (OSSL_PARAM *)p;
  473|      3|                                            }
  474|      3|                                            break;
  475|      3|                                        case 't':
  ------------------
  |  Branch (475:41): [True: 3, False: 3]
  ------------------
  476|      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]
  |  |  ------------------
  ------------------
  477|       |                                                /* OSSL_DRBG_PARAM_RESEED_TIME_INTERVAL */
  478|      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]
  |  |  ------------------
  ------------------
  479|      0|                                                    ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  480|      0|                                                                   "param %s is repeated", s);
  481|      0|                                                    return 0;
  482|      0|                                                }
  483|      3|                                                r->reseed_time = (OSSL_PARAM *)p;
  484|      3|                                            }
  485|      6|                                        }
  486|      6|                                    }
  487|      6|                                }
  488|      6|                            }
  489|      6|                        }
  490|      6|                    }
  491|      6|                }
  492|      6|                break;
  493|      6|            case 'u':
  ------------------
  |  Branch (493:13): [True: 3, False: 12]
  ------------------
  494|      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]
  |  |  ------------------
  ------------------
  495|       |                    /* OSSL_DRBG_PARAM_USE_DF */
  496|      3|                    if (ossl_unlikely(r->df != NULL)) {
  ------------------
  |  |   23|      3|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 3]
  |  |  ------------------
  ------------------
  497|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  498|      0|                                       "param %s is repeated", s);
  499|      0|                        return 0;
  500|      0|                    }
  501|      3|                    r->df = (OSSL_PARAM *)p;
  502|      3|                }
  503|     15|            }
  504|      3|    return 1;
  505|      3|}
drbg_ctr.c:drbg_ctr_get_ctx_params_decoder:
   63|  24.2k|{
   64|  24.2k|    const char *s;
   65|       |
   66|  24.2k|    memset(r, 0, sizeof(*r));
   67|  24.2k|    if (p != NULL)
  ------------------
  |  Branch (67:9): [True: 24.2k, False: 0]
  ------------------
   68|  48.4k|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (68:16): [True: 24.2k, False: 24.2k]
  ------------------
   69|  24.2k|            switch(s[0]) {
   70|      0|            default:
  ------------------
  |  Branch (70:13): [True: 0, False: 24.2k]
  ------------------
   71|      0|                break;
   72|      0|            case 'c':
  ------------------
  |  Branch (72:13): [True: 0, False: 24.2k]
  ------------------
   73|      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]
  |  |  ------------------
  ------------------
   74|       |                    /* OSSL_DRBG_PARAM_CIPHER */
   75|      0|                    if (ossl_unlikely(r->cipher != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
   76|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   77|      0|                                       "param %s is repeated", s);
   78|      0|                        return 0;
   79|      0|                    }
   80|      0|                    r->cipher = (OSSL_PARAM *)p;
   81|      0|                }
   82|      0|                break;
   83|      0|            case 'f':
  ------------------
  |  Branch (83:13): [True: 0, False: 24.2k]
  ------------------
   84|       |# if defined(FIPS_MODULE)
   85|       |                if (ossl_likely(strcmp("ips-indicator", s + 1) == 0)) {
   86|       |                    /* OSSL_KDF_PARAM_FIPS_APPROVED_INDICATOR */
   87|       |                    if (ossl_unlikely(r->ind != NULL)) {
   88|       |                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
   89|       |                                       "param %s is repeated", s);
   90|       |                        return 0;
   91|       |                    }
   92|       |                    r->ind = (OSSL_PARAM *)p;
   93|       |                }
   94|       |# endif
   95|      0|                break;
   96|  11.1k|            case 'm':
  ------------------
  |  Branch (96:13): [True: 11.1k, False: 13.1k]
  ------------------
   97|  11.1k|                switch(s[1]) {
   98|      0|                default:
  ------------------
  |  Branch (98:17): [True: 0, False: 11.1k]
  ------------------
   99|      0|                    break;
  100|  11.1k|                case 'a':
  ------------------
  |  Branch (100:17): [True: 11.1k, False: 0]
  ------------------
  101|  11.1k|                    switch(s[2]) {
  102|      0|                    default:
  ------------------
  |  Branch (102:21): [True: 0, False: 11.1k]
  ------------------
  103|      0|                        break;
  104|  11.1k|                    case 'x':
  ------------------
  |  Branch (104:21): [True: 11.1k, False: 0]
  ------------------
  105|  11.1k|                        switch(s[3]) {
  106|      0|                        default:
  ------------------
  |  Branch (106:25): [True: 0, False: 11.1k]
  ------------------
  107|      0|                            break;
  108|  11.1k|                        case '_':
  ------------------
  |  Branch (108:25): [True: 11.1k, False: 0]
  ------------------
  109|  11.1k|                            switch(s[4]) {
  110|      0|                            default:
  ------------------
  |  Branch (110:29): [True: 0, False: 11.1k]
  ------------------
  111|      0|                                break;
  112|      0|                            case 'a':
  ------------------
  |  Branch (112:29): [True: 0, False: 11.1k]
  ------------------
  113|      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]
  |  |  ------------------
  ------------------
  114|       |                                    /* OSSL_DRBG_PARAM_MAX_ADINLEN */
  115|      0|                                    if (ossl_unlikely(r->maxadlen != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  116|      0|                                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  117|      0|                                                       "param %s is repeated", s);
  118|      0|                                        return 0;
  119|      0|                                    }
  120|      0|                                    r->maxadlen = (OSSL_PARAM *)p;
  121|      0|                                }
  122|      0|                                break;
  123|      0|                            case 'e':
  ------------------
  |  Branch (123:29): [True: 0, False: 11.1k]
  ------------------
  124|      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]
  |  |  ------------------
  ------------------
  125|       |                                    /* OSSL_DRBG_PARAM_MAX_ENTROPYLEN */
  126|      0|                                    if (ossl_unlikely(r->maxentlen != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  127|      0|                                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  128|      0|                                                       "param %s is repeated", s);
  129|      0|                                        return 0;
  130|      0|                                    }
  131|      0|                                    r->maxentlen = (OSSL_PARAM *)p;
  132|      0|                                }
  133|      0|                                break;
  134|      0|                            case 'n':
  ------------------
  |  Branch (134:29): [True: 0, False: 11.1k]
  ------------------
  135|      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]
  |  |  ------------------
  ------------------
  136|       |                                    /* OSSL_DRBG_PARAM_MAX_NONCELEN */
  137|      0|                                    if (ossl_unlikely(r->maxnonlen != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  138|      0|                                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  139|      0|                                                       "param %s is repeated", s);
  140|      0|                                        return 0;
  141|      0|                                    }
  142|      0|                                    r->maxnonlen = (OSSL_PARAM *)p;
  143|      0|                                }
  144|      0|                                break;
  145|      0|                            case 'p':
  ------------------
  |  Branch (145:29): [True: 0, False: 11.1k]
  ------------------
  146|      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]
  |  |  ------------------
  ------------------
  147|       |                                    /* OSSL_DRBG_PARAM_MAX_PERSLEN */
  148|      0|                                    if (ossl_unlikely(r->maxperlen != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  149|      0|                                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  150|      0|                                                       "param %s is repeated", s);
  151|      0|                                        return 0;
  152|      0|                                    }
  153|      0|                                    r->maxperlen = (OSSL_PARAM *)p;
  154|      0|                                }
  155|      0|                                break;
  156|  11.1k|                            case 'r':
  ------------------
  |  Branch (156:29): [True: 11.1k, False: 0]
  ------------------
  157|  11.1k|                                if (ossl_likely(strcmp("equest", s + 5) == 0)) {
  ------------------
  |  |   22|  11.1k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 11.1k, False: 0]
  |  |  ------------------
  ------------------
  158|       |                                    /* OSSL_RAND_PARAM_MAX_REQUEST */
  159|  11.1k|                                    if (ossl_unlikely(r->maxreq != NULL)) {
  ------------------
  |  |   23|  11.1k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 11.1k]
  |  |  ------------------
  ------------------
  160|      0|                                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  161|      0|                                                       "param %s is repeated", s);
  162|      0|                                        return 0;
  163|      0|                                    }
  164|  11.1k|                                    r->maxreq = (OSSL_PARAM *)p;
  165|  11.1k|                                }
  166|  11.1k|                            }
  167|  11.1k|                        }
  168|  11.1k|                    }
  169|  11.1k|                    break;
  170|  11.1k|                case 'i':
  ------------------
  |  Branch (170:17): [True: 0, False: 11.1k]
  ------------------
  171|      0|                    switch(s[2]) {
  172|      0|                    default:
  ------------------
  |  Branch (172:21): [True: 0, False: 0]
  ------------------
  173|      0|                        break;
  174|      0|                    case 'n':
  ------------------
  |  Branch (174:21): [True: 0, False: 0]
  ------------------
  175|      0|                        switch(s[3]) {
  176|      0|                        default:
  ------------------
  |  Branch (176:25): [True: 0, False: 0]
  ------------------
  177|      0|                            break;
  178|      0|                        case '_':
  ------------------
  |  Branch (178:25): [True: 0, False: 0]
  ------------------
  179|      0|                            switch(s[4]) {
  180|      0|                            default:
  ------------------
  |  Branch (180:29): [True: 0, False: 0]
  ------------------
  181|      0|                                break;
  182|      0|                            case 'e':
  ------------------
  |  Branch (182:29): [True: 0, False: 0]
  ------------------
  183|      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]
  |  |  ------------------
  ------------------
  184|       |                                    /* OSSL_DRBG_PARAM_MIN_ENTROPYLEN */
  185|      0|                                    if (ossl_unlikely(r->minentlen != 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,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  187|      0|                                                       "param %s is repeated", s);
  188|      0|                                        return 0;
  189|      0|                                    }
  190|      0|                                    r->minentlen = (OSSL_PARAM *)p;
  191|      0|                                }
  192|      0|                                break;
  193|      0|                            case 'n':
  ------------------
  |  Branch (193:29): [True: 0, False: 0]
  ------------------
  194|      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]
  |  |  ------------------
  ------------------
  195|       |                                    /* OSSL_DRBG_PARAM_MIN_NONCELEN */
  196|      0|                                    if (ossl_unlikely(r->minnonlen != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  197|      0|                                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  198|      0|                                                       "param %s is repeated", s);
  199|      0|                                        return 0;
  200|      0|                                    }
  201|      0|                                    r->minnonlen = (OSSL_PARAM *)p;
  202|      0|                                }
  203|      0|                            }
  204|      0|                        }
  205|      0|                    }
  206|  11.1k|                }
  207|  11.1k|                break;
  208|  11.1k|            case 'r':
  ------------------
  |  Branch (208:13): [True: 11.1k, False: 13.1k]
  ------------------
  209|  11.1k|                switch(s[1]) {
  210|      0|                default:
  ------------------
  |  Branch (210:17): [True: 0, False: 11.1k]
  ------------------
  211|      0|                    break;
  212|  11.1k|                case 'e':
  ------------------
  |  Branch (212:17): [True: 11.1k, False: 0]
  ------------------
  213|  11.1k|                    switch(s[2]) {
  214|      0|                    default:
  ------------------
  |  Branch (214:21): [True: 0, False: 11.1k]
  ------------------
  215|      0|                        break;
  216|  11.1k|                    case 's':
  ------------------
  |  Branch (216:21): [True: 11.1k, False: 0]
  ------------------
  217|  11.1k|                        switch(s[3]) {
  218|      0|                        default:
  ------------------
  |  Branch (218:25): [True: 0, False: 11.1k]
  ------------------
  219|      0|                            break;
  220|  11.1k|                        case 'e':
  ------------------
  |  Branch (220:25): [True: 11.1k, False: 0]
  ------------------
  221|  11.1k|                            switch(s[4]) {
  222|      0|                            default:
  ------------------
  |  Branch (222:29): [True: 0, False: 11.1k]
  ------------------
  223|      0|                                break;
  224|  11.1k|                            case 'e':
  ------------------
  |  Branch (224:29): [True: 11.1k, False: 0]
  ------------------
  225|  11.1k|                                switch(s[5]) {
  226|      0|                                default:
  ------------------
  |  Branch (226:33): [True: 0, False: 11.1k]
  ------------------
  227|      0|                                    break;
  228|  11.1k|                                case 'd':
  ------------------
  |  Branch (228:33): [True: 11.1k, False: 0]
  ------------------
  229|  11.1k|                                    switch(s[6]) {
  230|      0|                                    default:
  ------------------
  |  Branch (230:37): [True: 0, False: 11.1k]
  ------------------
  231|      0|                                        break;
  232|  11.1k|                                    case '_':
  ------------------
  |  Branch (232:37): [True: 11.1k, False: 0]
  ------------------
  233|  11.1k|                                        switch(s[7]) {
  234|      0|                                        default:
  ------------------
  |  Branch (234:41): [True: 0, False: 11.1k]
  ------------------
  235|      0|                                            break;
  236|  11.1k|                                        case 'c':
  ------------------
  |  Branch (236:41): [True: 11.1k, False: 0]
  ------------------
  237|  11.1k|                                            if (ossl_likely(strcmp("ounter", s + 8) == 0)) {
  ------------------
  |  |   22|  11.1k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 11.1k, False: 0]
  |  |  ------------------
  ------------------
  238|       |                                                /* OSSL_DRBG_PARAM_RESEED_COUNTER */
  239|  11.1k|                                                if (ossl_unlikely(r->reseed_cnt != NULL)) {
  ------------------
  |  |   23|  11.1k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 11.1k]
  |  |  ------------------
  ------------------
  240|      0|                                                    ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  241|      0|                                                                   "param %s is repeated", s);
  242|      0|                                                    return 0;
  243|      0|                                                }
  244|  11.1k|                                                r->reseed_cnt = (OSSL_PARAM *)p;
  245|  11.1k|                                            }
  246|  11.1k|                                            break;
  247|  11.1k|                                        case 'r':
  ------------------
  |  Branch (247:41): [True: 0, False: 11.1k]
  ------------------
  248|      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]
  |  |  ------------------
  ------------------
  249|       |                                                /* OSSL_DRBG_PARAM_RESEED_REQUESTS */
  250|      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]
  |  |  ------------------
  ------------------
  251|      0|                                                    ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  252|      0|                                                                   "param %s is repeated", s);
  253|      0|                                                    return 0;
  254|      0|                                                }
  255|      0|                                                r->reseed_req = (OSSL_PARAM *)p;
  256|      0|                                            }
  257|      0|                                            break;
  258|      0|                                        case 't':
  ------------------
  |  Branch (258:41): [True: 0, False: 11.1k]
  ------------------
  259|      0|                                            switch(s[8]) {
  260|      0|                                            default:
  ------------------
  |  Branch (260:45): [True: 0, False: 0]
  ------------------
  261|      0|                                                break;
  262|      0|                                            case 'i':
  ------------------
  |  Branch (262:45): [True: 0, False: 0]
  ------------------
  263|      0|                                                switch(s[9]) {
  264|      0|                                                default:
  ------------------
  |  Branch (264:49): [True: 0, False: 0]
  ------------------
  265|      0|                                                    break;
  266|      0|                                                case 'm':
  ------------------
  |  Branch (266:49): [True: 0, False: 0]
  ------------------
  267|      0|                                                    switch(s[10]) {
  268|      0|                                                    default:
  ------------------
  |  Branch (268:53): [True: 0, False: 0]
  ------------------
  269|      0|                                                        break;
  270|      0|                                                    case 'e':
  ------------------
  |  Branch (270:53): [True: 0, False: 0]
  ------------------
  271|      0|                                                        switch(s[11]) {
  272|      0|                                                        default:
  ------------------
  |  Branch (272:57): [True: 0, False: 0]
  ------------------
  273|      0|                                                            break;
  274|      0|                                                        case '_':
  ------------------
  |  Branch (274:57): [True: 0, False: 0]
  ------------------
  275|      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]
  |  |  ------------------
  ------------------
  276|       |                                                                /* OSSL_DRBG_PARAM_RESEED_TIME_INTERVAL */
  277|      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]
  |  |  ------------------
  ------------------
  278|      0|                                                                    ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                                  ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  279|      0|                                                                                   "param %s is repeated", s);
  280|      0|                                                                    return 0;
  281|      0|                                                                }
  282|      0|                                                                r->reseed_int = (OSSL_PARAM *)p;
  283|      0|                                                            }
  284|      0|                                                            break;
  285|      0|                                                        case '\0':
  ------------------
  |  Branch (285:57): [True: 0, False: 0]
  ------------------
  286|      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]
  |  |  ------------------
  ------------------
  287|      0|                                                                ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  288|      0|                                                                               "param %s is repeated", s);
  289|      0|                                                                return 0;
  290|      0|                                                            }
  291|      0|                                                            r->reseed_time = (OSSL_PARAM *)p;
  292|      0|                                                        }
  293|      0|                                                    }
  294|      0|                                                }
  295|      0|                                            }
  296|  11.1k|                                        }
  297|  11.1k|                                    }
  298|  11.1k|                                }
  299|  11.1k|                            }
  300|  11.1k|                        }
  301|  11.1k|                    }
  302|  11.1k|                }
  303|  11.1k|                break;
  304|  11.1k|            case 's':
  ------------------
  |  Branch (304:13): [True: 1.97k, False: 22.2k]
  ------------------
  305|  1.97k|                switch(s[1]) {
  306|      0|                default:
  ------------------
  |  Branch (306:17): [True: 0, False: 1.97k]
  ------------------
  307|      0|                    break;
  308|  1.97k|                case 't':
  ------------------
  |  Branch (308:17): [True: 1.97k, False: 0]
  ------------------
  309|  1.97k|                    switch(s[2]) {
  310|      0|                    default:
  ------------------
  |  Branch (310:21): [True: 0, False: 1.97k]
  ------------------
  311|      0|                        break;
  312|  1.96k|                    case 'a':
  ------------------
  |  Branch (312:21): [True: 1.96k, False: 12]
  ------------------
  313|  1.96k|                        if (ossl_likely(strcmp("te", s + 3) == 0)) {
  ------------------
  |  |   22|  1.96k|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 1.96k, False: 0]
  |  |  ------------------
  ------------------
  314|       |                            /* OSSL_RAND_PARAM_STATE */
  315|  1.96k|                            if (ossl_unlikely(r->state != NULL)) {
  ------------------
  |  |   23|  1.96k|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 1.96k]
  |  |  ------------------
  ------------------
  316|      0|                                ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  317|      0|                                               "param %s is repeated", s);
  318|      0|                                return 0;
  319|      0|                            }
  320|  1.96k|                            r->state = (OSSL_PARAM *)p;
  321|  1.96k|                        }
  322|  1.96k|                        break;
  323|  1.96k|                    case 'r':
  ------------------
  |  Branch (323:21): [True: 12, False: 1.96k]
  ------------------
  324|     12|                        if (ossl_likely(strcmp("ength", s + 3) == 0)) {
  ------------------
  |  |   22|     12|#define ossl_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (22:24): [True: 12, False: 0]
  |  |  ------------------
  ------------------
  325|       |                            /* OSSL_RAND_PARAM_STRENGTH */
  326|     12|                            if (ossl_unlikely(r->str != NULL)) {
  ------------------
  |  |   23|     12|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 12]
  |  |  ------------------
  ------------------
  327|      0|                                ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  328|      0|                                               "param %s is repeated", s);
  329|      0|                                return 0;
  330|      0|                            }
  331|     12|                            r->str = (OSSL_PARAM *)p;
  332|     12|                        }
  333|  1.97k|                    }
  334|  1.97k|                }
  335|  1.97k|                break;
  336|  1.97k|            case 'u':
  ------------------
  |  Branch (336:13): [True: 0, False: 24.2k]
  ------------------
  337|      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]
  |  |  ------------------
  ------------------
  338|       |                    /* OSSL_DRBG_PARAM_USE_DF */
  339|      0|                    if (ossl_unlikely(r->df != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  340|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
  341|      0|                                       "param %s is repeated", s);
  342|      0|                        return 0;
  343|      0|                    }
  344|      0|                    r->df = (OSSL_PARAM *)p;
  345|      0|                }
  346|  24.2k|            }
  347|  24.2k|    return 1;
  348|  24.2k|}

seed_src.c:seed_src_new:
   49|      1|{
   50|      1|    PROV_SEED_SRC *s;
   51|       |
   52|      1|    if (parent != NULL) {
  ------------------
  |  Branch (52:9): [True: 0, False: 1]
  ------------------
   53|      0|        ERR_raise(ERR_LIB_PROV, PROV_R_SEED_SOURCES_MUST_NOT_HAVE_A_PARENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   54|      0|        return NULL;
   55|      0|    }
   56|       |
   57|      1|    s = OPENSSL_zalloc(sizeof(*s));
  ------------------
  |  |  109|      1|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   58|      1|    if (s == NULL)
  ------------------
  |  Branch (58:9): [True: 0, False: 1]
  ------------------
   59|      0|        return NULL;
   60|       |
   61|      1|    s->provctx = provctx;
   62|      1|    s->state = EVP_RAND_STATE_UNINITIALISED;
  ------------------
  |  | 1249|      1|#define EVP_RAND_STATE_UNINITIALISED 0
  ------------------
   63|      1|    return s;
   64|      1|}
seed_src.c:seed_src_instantiate:
   75|      1|{
   76|      1|    PROV_SEED_SRC *s = (PROV_SEED_SRC *)vseed;
   77|       |
   78|      1|    s->state = EVP_RAND_STATE_READY;
  ------------------
  |  | 1250|      1|#define EVP_RAND_STATE_READY 1
  ------------------
   79|      1|    return 1;
   80|      1|}
seed_src.c:seed_src_enable_locking:
  212|      1|{
  213|      1|    return 1;
  214|      1|}
seed_src.c:seed_src_lock:
  217|     15|{
  218|     15|    return 1;
  219|     15|}
seed_src.c:seed_src_unlock:
  222|     15|{
  223|     15|}
seed_src.c:seed_src_get_ctx_params:
  147|     12|{
  148|     12|    PROV_SEED_SRC *s = (PROV_SEED_SRC *)vseed;
  149|     12|    struct seed_src_get_ctx_params_st p;
  150|       |
  151|     12|    if (s == NULL || !seed_src_get_ctx_params_decoder(params, &p))
  ------------------
  |  Branch (151:9): [True: 0, False: 12]
  |  Branch (151:22): [True: 0, False: 12]
  ------------------
  152|      0|        return 0;
  153|       |
  154|     12|    if (p.state != NULL && !OSSL_PARAM_set_int(p.state, s->state))
  ------------------
  |  Branch (154:9): [True: 0, False: 12]
  |  Branch (154:28): [True: 0, False: 0]
  ------------------
  155|      0|        return 0;
  156|       |
  157|     12|    if (p.str != NULL && !OSSL_PARAM_set_uint(p.str, 1024))
  ------------------
  |  Branch (157:9): [True: 2, False: 10]
  |  Branch (157:26): [True: 0, False: 2]
  ------------------
  158|      0|        return 0;
  159|       |
  160|     12|    if (p.maxreq != NULL && !OSSL_PARAM_set_size_t(p.maxreq, 128))
  ------------------
  |  Branch (160:9): [True: 0, False: 12]
  |  Branch (160:29): [True: 0, False: 0]
  ------------------
  161|      0|        return 0;
  162|     12|    return 1;
  163|     12|}
seed_src.c:seed_get_seed:
  180|      1|{
  181|      1|    size_t ret = 0;
  182|      1|    size_t entropy_available = 0;
  183|      1|    RAND_POOL *pool;
  184|       |
  185|      1|    pool = ossl_rand_pool_new(entropy, 1, min_len, max_len);
  186|      1|    if (pool == NULL) {
  ------------------
  |  Branch (186:9): [True: 0, False: 1]
  ------------------
  187|      0|        ERR_raise(ERR_LIB_PROV, ERR_R_RAND_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  188|      0|        return 0;
  189|      0|    }
  190|       |
  191|       |    /* Get entropy by polling system entropy sources. */
  192|      1|    entropy_available = ossl_pool_acquire_entropy(pool);
  193|       |
  194|      1|    if (entropy_available > 0
  ------------------
  |  Branch (194:9): [True: 1, False: 0]
  ------------------
  195|      1|        && ossl_rand_pool_adin_mix_in(pool, adin, adin_len)) {
  ------------------
  |  Branch (195:12): [True: 1, False: 0]
  ------------------
  196|      1|        ret = ossl_rand_pool_length(pool);
  197|      1|        *pout = ossl_rand_pool_detach(pool);
  198|      1|    } else {
  199|       |        ERR_raise(ERR_LIB_PROV, PROV_R_ENTROPY_SOURCE_STRENGTH_TOO_WEAK);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  200|      0|    }
  201|      1|    ossl_rand_pool_free(pool);
  202|      1|    return ret;
  203|      1|}
seed_src.c:seed_clear_seed:
  207|      1|{
  208|      1|    OPENSSL_secure_clear_free(out, outlen);
  ------------------
  |  |  150|      1|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  209|      1|}

seed_src.c:seed_src_get_ctx_params_decoder:
   33|     12|{
   34|     12|    const char *s;
   35|       |
   36|     12|    memset(r, 0, sizeof(*r));
   37|     12|    if (p != NULL)
  ------------------
  |  Branch (37:9): [True: 12, False: 0]
  ------------------
   38|     24|        for (; (s = p->key) != NULL; p++)
  ------------------
  |  Branch (38:16): [True: 12, False: 12]
  ------------------
   39|     12|            switch(s[0]) {
   40|     10|            default:
  ------------------
  |  Branch (40:13): [True: 10, False: 2]
  ------------------
   41|     10|                break;
   42|     10|            case 'm':
  ------------------
  |  Branch (42:13): [True: 0, False: 12]
  ------------------
   43|      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]
  |  |  ------------------
  ------------------
   44|       |                    /* OSSL_RAND_PARAM_MAX_REQUEST */
   45|      0|                    if (ossl_unlikely(r->maxreq != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
   46|      0|                        ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                      ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   47|      0|                                       "param %s is repeated", s);
   48|      0|                        return 0;
   49|      0|                    }
   50|      0|                    r->maxreq = (OSSL_PARAM *)p;
   51|      0|                }
   52|      0|                break;
   53|      2|            case 's':
  ------------------
  |  Branch (53:13): [True: 2, False: 10]
  ------------------
   54|      2|                switch(s[1]) {
   55|      0|                default:
  ------------------
  |  Branch (55:17): [True: 0, False: 2]
  ------------------
   56|      0|                    break;
   57|      2|                case 't':
  ------------------
  |  Branch (57:17): [True: 2, False: 0]
  ------------------
   58|      2|                    switch(s[2]) {
   59|      0|                    default:
  ------------------
  |  Branch (59:21): [True: 0, False: 2]
  ------------------
   60|      0|                        break;
   61|      0|                    case 'a':
  ------------------
  |  Branch (61:21): [True: 0, False: 2]
  ------------------
   62|      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]
  |  |  ------------------
  ------------------
   63|       |                            /* OSSL_RAND_PARAM_STATE */
   64|      0|                            if (ossl_unlikely(r->state != NULL)) {
  ------------------
  |  |   23|      0|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 0]
  |  |  ------------------
  ------------------
   65|      0|                                ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   66|      0|                                               "param %s is repeated", s);
   67|      0|                                return 0;
   68|      0|                            }
   69|      0|                            r->state = (OSSL_PARAM *)p;
   70|      0|                        }
   71|      0|                        break;
   72|      2|                    case 'r':
  ------------------
  |  Branch (72:21): [True: 2, False: 0]
  ------------------
   73|      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]
  |  |  ------------------
  ------------------
   74|       |                            /* OSSL_RAND_PARAM_STRENGTH */
   75|      2|                            if (ossl_unlikely(r->str != NULL)) {
  ------------------
  |  |   23|      2|#define ossl_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (23:26): [True: 0, False: 2]
  |  |  ------------------
  ------------------
   76|      0|                                ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  101|      0|#define ERR_LIB_PROV 57
  ------------------
                                              ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
  ------------------
  |  |  142|      0|#define PROV_R_REPEATED_PARAMETER 252
  ------------------
   77|      0|                                               "param %s is repeated", s);
   78|      0|                                return 0;
   79|      0|                            }
   80|      2|                            r->str = (OSSL_PARAM *)p;
   81|      2|                        }
   82|      2|                    }
   83|      2|                }
   84|     12|            }
   85|     12|    return 1;
   86|     12|}

ossl_rand_pool_init:
  566|      1|{
  567|      1|    size_t i;
  568|       |
  569|      5|    for (i = 0; i < OSSL_NELEM(random_devices); i++)
  ------------------
  |  |   14|      5|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (569:17): [True: 4, False: 1]
  ------------------
  570|      4|        random_devices[i].fd = -1;
  571|       |
  572|      1|    return 1;
  573|      1|}
ossl_pool_acquire_entropy:
  634|      1|{
  635|       |#if defined(OPENSSL_RAND_SEED_NONE)
  636|       |    return ossl_rand_pool_entropy_available(pool);
  637|       |#else
  638|      1|    size_t entropy_available = 0;
  639|       |
  640|      1|    (void)entropy_available; /* avoid compiler warning */
  641|       |
  642|      1|#if defined(OPENSSL_RAND_SEED_GETRANDOM)
  643|      1|    {
  644|      1|        size_t bytes_needed;
  645|      1|        unsigned char *buffer;
  646|      1|        ssize_t bytes;
  647|       |        /* Maximum allowed number of consecutive unsuccessful attempts */
  648|      1|        int attempts = 3;
  649|       |
  650|      1|        bytes_needed = ossl_rand_pool_bytes_needed(pool, 1 /*entropy_factor*/);
  651|      2|        while (bytes_needed != 0 && attempts-- > 0) {
  ------------------
  |  Branch (651:16): [True: 1, False: 1]
  |  Branch (651:37): [True: 1, False: 0]
  ------------------
  652|      1|            buffer = ossl_rand_pool_add_begin(pool, bytes_needed);
  653|      1|            bytes = syscall_random(buffer, bytes_needed);
  654|      1|            if (bytes > 0) {
  ------------------
  |  Branch (654:17): [True: 1, False: 0]
  ------------------
  655|      1|                ossl_rand_pool_add_end(pool, bytes, 8 * bytes);
  656|      1|                bytes_needed -= bytes;
  657|      1|                attempts = 3; /* reset counter after successful attempt */
  658|      1|            } else if (bytes < 0 && errno != EINTR) {
  ------------------
  |  Branch (658:24): [True: 0, False: 0]
  |  Branch (658:37): [True: 0, False: 0]
  ------------------
  659|      0|                break;
  660|      0|            }
  661|      1|        }
  662|      1|    }
  663|      1|    entropy_available = ossl_rand_pool_entropy_available(pool);
  664|      1|    if (entropy_available > 0)
  ------------------
  |  Branch (664:9): [True: 1, False: 0]
  ------------------
  665|      1|        return entropy_available;
  666|      0|#endif
  667|       |
  668|      0|#if defined(OPENSSL_RAND_SEED_DEVRANDOM)
  669|      0|    if (wait_random_seeded()) {
  ------------------
  |  Branch (669:9): [True: 0, False: 0]
  ------------------
  670|      0|        size_t bytes_needed;
  671|      0|        unsigned char *buffer;
  672|      0|        size_t i;
  673|       |
  674|      0|        bytes_needed = ossl_rand_pool_bytes_needed(pool, 1 /*entropy_factor*/);
  675|      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 (675:21): [True: 0, False: 0]
  |  Branch (675:41): [True: 0, False: 0]
  ------------------
  676|      0|            i++) {
  677|      0|            ssize_t bytes = 0;
  678|       |            /* Maximum number of consecutive unsuccessful attempts */
  679|      0|            int attempts = 3;
  680|      0|            const int fd = get_random_device(i);
  681|       |
  682|      0|            if (fd == -1)
  ------------------
  |  Branch (682:17): [True: 0, False: 0]
  ------------------
  683|      0|                continue;
  684|       |
  685|      0|            while (bytes_needed != 0 && attempts-- > 0) {
  ------------------
  |  Branch (685:20): [True: 0, False: 0]
  |  Branch (685:41): [True: 0, False: 0]
  ------------------
  686|      0|                buffer = ossl_rand_pool_add_begin(pool, bytes_needed);
  687|      0|                bytes = read(fd, buffer, bytes_needed);
  688|       |
  689|      0|                if (bytes > 0) {
  ------------------
  |  Branch (689:21): [True: 0, False: 0]
  ------------------
  690|      0|                    ossl_rand_pool_add_end(pool, bytes, 8 * bytes);
  691|      0|                    bytes_needed -= bytes;
  692|      0|                    attempts = 3; /* reset counter on successful attempt */
  693|      0|                } else if (bytes < 0 && errno != EINTR) {
  ------------------
  |  Branch (693:28): [True: 0, False: 0]
  |  Branch (693:41): [True: 0, False: 0]
  ------------------
  694|      0|                    break;
  695|      0|                }
  696|      0|            }
  697|      0|            if (bytes < 0 || !keep_random_devices_open)
  ------------------
  |  Branch (697:17): [True: 0, False: 0]
  |  Branch (697:30): [True: 0, False: 0]
  ------------------
  698|      0|                close_random_device(i);
  699|       |
  700|      0|            bytes_needed = ossl_rand_pool_bytes_needed(pool, 1);
  701|      0|        }
  702|      0|        entropy_available = ossl_rand_pool_entropy_available(pool);
  703|      0|        if (entropy_available > 0)
  ------------------
  |  Branch (703:13): [True: 0, False: 0]
  ------------------
  704|      0|            return entropy_available;
  705|      0|    }
  706|      0|#endif
  707|       |
  708|       |#if defined(OPENSSL_RAND_SEED_RDTSC)
  709|       |    entropy_available = ossl_prov_acquire_entropy_from_tsc(pool);
  710|       |    if (entropy_available > 0)
  711|       |        return entropy_available;
  712|       |#endif
  713|       |
  714|       |#if defined(OPENSSL_RAND_SEED_RDCPU)
  715|       |    entropy_available = ossl_prov_acquire_entropy_from_cpu(pool);
  716|       |    if (entropy_available > 0)
  717|       |        return entropy_available;
  718|       |#endif
  719|       |
  720|       |#if defined(OPENSSL_RAND_SEED_EGD)
  721|       |    {
  722|       |        static const char *paths[] = { DEVRANDOM_EGD, NULL };
  723|       |        size_t bytes_needed;
  724|       |        unsigned char *buffer;
  725|       |        int i;
  726|       |
  727|       |        bytes_needed = ossl_rand_pool_bytes_needed(pool, 1 /*entropy_factor*/);
  728|       |        for (i = 0; bytes_needed > 0 && paths[i] != NULL; i++) {
  729|       |            size_t bytes = 0;
  730|       |            int num;
  731|       |
  732|       |            buffer = ossl_rand_pool_add_begin(pool, bytes_needed);
  733|       |            num = RAND_query_egd_bytes(paths[i],
  734|       |                buffer, (int)bytes_needed);
  735|       |            if (num == (int)bytes_needed)
  736|       |                bytes = bytes_needed;
  737|       |
  738|       |            ossl_rand_pool_add_end(pool, bytes, 8 * bytes);
  739|       |            bytes_needed = ossl_rand_pool_bytes_needed(pool, 1);
  740|       |        }
  741|       |        entropy_available = ossl_rand_pool_entropy_available(pool);
  742|       |        if (entropy_available > 0)
  743|       |            return entropy_available;
  744|       |    }
  745|       |#endif
  746|       |
  747|      0|    return ossl_rand_pool_entropy_available(pool);
  748|      0|#endif
  749|      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|   108k|{
   21|   108k|    return 1;
   22|   108k|}

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

ossl_ech_ctx_clear:
  158|    347|{
  159|    347|    if (ce == NULL)
  ------------------
  |  Branch (159:9): [True: 0, False: 347]
  ------------------
  160|      0|        return;
  161|    347|    OSSL_ECHSTORE_free(ce->es);
  162|    347|    OPENSSL_free(ce->alpn_outer);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  163|    347|    return;
  164|    347|}
ossl_ech_conn_clear:
  181|    347|{
  182|    347|    if (ec == NULL)
  ------------------
  |  Branch (182:9): [True: 0, False: 347]
  ------------------
  183|      0|        return;
  184|    347|    OSSL_ECHSTORE_free(ec->es);
  185|    347|    OPENSSL_free(ec->outer_hostname);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  186|    347|    OPENSSL_free(ec->alpn_outer);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  187|    347|    OPENSSL_free(ec->former_inner);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  188|    347|    OPENSSL_free(ec->transbuf);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  189|    347|    OPENSSL_free(ec->innerch);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  190|    347|    OPENSSL_free(ec->grease_suite);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  191|    347|    OPENSSL_free(ec->sent);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  192|    347|    OPENSSL_free(ec->returned);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  193|    347|    OPENSSL_free(ec->pub);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  194|    347|    OSSL_HPKE_CTX_free(ec->hpke_ctx);
  195|    347|    OPENSSL_free(ec->encoded_inner);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  196|    347|    ech_free_stashed_key_shares(ec);
  197|    347|    return;
  198|    347|}
ossl_ech_conn_init:
  203|    347|{
  204|    347|    memset(&s->ext.ech, 0, sizeof(s->ext.ech));
  205|    347|    if (ctx->ext.ech.es != NULL
  ------------------
  |  Branch (205:9): [True: 0, False: 347]
  ------------------
  206|      0|        && (s->ext.ech.es = ossl_echstore_dup(ctx->ext.ech.es)) == NULL)
  ------------------
  |  Branch (206:12): [True: 0, False: 0]
  ------------------
  207|      0|        goto err;
  208|    347|    s->ext.ech.cb = ctx->ext.ech.cb;
  209|    347|    if (ctx->ext.ech.alpn_outer != NULL) {
  ------------------
  |  Branch (209:9): [True: 0, False: 347]
  ------------------
  210|      0|        s->ext.ech.alpn_outer = OPENSSL_memdup(ctx->ext.ech.alpn_outer,
  ------------------
  |  |  134|      0|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  211|      0|            ctx->ext.ech.alpn_outer_len);
  212|      0|        if (s->ext.ech.alpn_outer == NULL)
  ------------------
  |  Branch (212:13): [True: 0, False: 0]
  ------------------
  213|      0|            goto err;
  214|      0|        s->ext.ech.alpn_outer_len = ctx->ext.ech.alpn_outer_len;
  215|      0|    }
  216|       |    /* initialise type/cid to unknown */
  217|    347|    s->ext.ech.attempted_type = OSSL_ECH_type_unknown;
  ------------------
  |  |   40|    347|#define OSSL_ECH_type_unknown 0xffff
  ------------------
  218|    347|    s->ext.ech.attempted_cid = OSSL_ECH_config_id_unset;
  ------------------
  |  |   42|    347|#define OSSL_ECH_config_id_unset -1
  ------------------
  219|    347|    if (s->ext.ech.es != NULL)
  ------------------
  |  Branch (219:9): [True: 0, False: 347]
  ------------------
  220|      0|        s->ext.ech.attempted = 1;
  221|    347|    if ((ctx->options & SSL_OP_ECH_GREASE) != 0)
  ------------------
  |  |  460|    347|#define SSL_OP_ECH_GREASE SSL_OP_BIT(37)
  |  |  ------------------
  |  |  |  |  351|    347|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (221:9): [True: 0, False: 347]
  ------------------
  222|      0|        s->options |= SSL_OP_ECH_GREASE;
  ------------------
  |  |  460|      0|#define SSL_OP_ECH_GREASE SSL_OP_BIT(37)
  |  |  ------------------
  |  |  |  |  351|      0|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  223|    347|    return 1;
  224|      0|err:
  225|      0|    OSSL_ECHSTORE_free(s->ext.ech.es);
  226|      0|    s->ext.ech.es = NULL;
  227|      0|    OPENSSL_free(s->ext.ech.alpn_outer);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  228|       |    s->ext.ech.alpn_outer = NULL;
  229|      0|    s->ext.ech.alpn_outer_len = 0;
  230|      0|    return 0;
  231|    347|}
ech_internal.c:ech_free_stashed_key_shares:
  167|    347|{
  168|    347|    size_t i;
  169|       |
  170|    347|    if (ec == NULL)
  ------------------
  |  Branch (170:9): [True: 0, False: 347]
  ------------------
  171|      0|        return;
  172|    347|    for (i = 0; i != ec->num_ks_pkey; i++) {
  ------------------
  |  Branch (172:17): [True: 0, False: 347]
  ------------------
  173|      0|        EVP_PKEY_free(ec->ks_pkey[i]);
  174|       |        ec->ks_pkey[i] = NULL;
  175|      0|    }
  176|    347|    ec->num_ks_pkey = 0;
  177|    347|    return;
  178|    347|}

OSSL_ECHSTORE_free:
  670|    694|{
  671|    694|    if (es == NULL)
  ------------------
  |  Branch (671:9): [True: 694, False: 0]
  ------------------
  672|    694|        return;
  673|      0|    sk_OSSL_ECHSTORE_ENTRY_pop_free(es->entries, ossl_echstore_entry_free);
  674|      0|    OPENSSL_free(es->propq);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  675|      0|    OPENSSL_free(es);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  676|      0|    return;
  677|    694|}

ossl_quic_free_token_store:
 4955|    347|{
 4956|    347|    int refs;
 4957|       |
 4958|    347|    if (hdl == NULL)
  ------------------
  |  Branch (4958:9): [True: 347, False: 0]
  ------------------
 4959|    347|        return;
 4960|       |
 4961|      0|    if (!CRYPTO_DOWN_REF(&hdl->references, &refs))
  ------------------
  |  Branch (4961:9): [True: 0, False: 0]
  ------------------
 4962|      0|        return;
 4963|       |
 4964|      0|    if (refs > 0)
  ------------------
  |  Branch (4964:9): [True: 0, False: 0]
  ------------------
 4965|      0|        return;
 4966|       |
 4967|       |    /* last reference, we can clean up */
 4968|      0|    ossl_crypto_mutex_free(&hdl->mutex);
 4969|      0|    lh_QUIC_TOKEN_doall(hdl->cache, free_this_token);
 4970|      0|    lh_QUIC_TOKEN_free(hdl->cache);
 4971|      0|    CRYPTO_FREE_REF(&hdl->references);
 4972|      0|    OPENSSL_free(hdl);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4973|      0|    return;
 4974|      0|}

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

ossl_tls_buffer_release:
   27|  2.07k|{
   28|  2.07k|    OPENSSL_free(b->buf);
  ------------------
  |  |  132|  2.07k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   29|       |    b->buf = NULL;
   30|  2.07k|}
tls_setup_write_buffer:
  144|    342|{
  145|    342|    unsigned char *p;
  146|    342|    size_t maxalign = 0, headerlen;
  147|    342|    TLS_BUFFER *wb;
  148|    342|    size_t currpipe;
  149|    342|    size_t defltlen = 0;
  150|    342|    size_t contenttypelen = 0;
  151|       |
  152|    342|    if (firstlen == 0 || (numwpipes > 1 && nextlen == 0)) {
  ------------------
  |  Branch (152:9): [True: 342, False: 0]
  |  Branch (152:27): [True: 0, False: 0]
  |  Branch (152:44): [True: 0, False: 0]
  ------------------
  153|    342|        if (rl->isdtls)
  ------------------
  |  Branch (153:13): [True: 0, False: 342]
  ------------------
  154|      0|            headerlen = DTLS1_RT_HEADER_LENGTH + 1;
  ------------------
  |  |   41|      0|#define DTLS1_RT_HEADER_LENGTH 13
  ------------------
  155|    342|        else
  156|    342|            headerlen = SSL3_RT_HEADER_LENGTH;
  ------------------
  |  |  139|    342|#define SSL3_RT_HEADER_LENGTH 5
  ------------------
  157|       |
  158|       |        /* TLSv1.3 adds an extra content type byte after payload data */
  159|    342|        if (rl->version == TLS1_3_VERSION)
  ------------------
  |  |   27|    342|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (159:13): [True: 0, False: 342]
  ------------------
  160|      0|            contenttypelen = 1;
  161|       |
  162|    342|#if defined(SSL3_ALIGN_PAYLOAD) && SSL3_ALIGN_PAYLOAD != 0
  163|    342|        maxalign = SSL3_ALIGN_PAYLOAD - 1;
  ------------------
  |  |  152|    342|#define SSL3_ALIGN_PAYLOAD 8
  ------------------
  164|    342|#endif
  165|       |
  166|    342|        defltlen = maxalign + headerlen + rl->eivlen + rl->max_frag_len
  167|    342|            + contenttypelen + SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD;
  ------------------
  |  |  195|    342|    (SSL_RT_MAX_CIPHER_BLOCK_SIZE + SSL3_RT_MAX_MD_SIZE)
  |  |  ------------------
  |  |  |  |  172|    342|#define SSL_RT_MAX_CIPHER_BLOCK_SIZE 16
  |  |  ------------------
  |  |                   (SSL_RT_MAX_CIPHER_BLOCK_SIZE + SSL3_RT_MAX_MD_SIZE)
  |  |  ------------------
  |  |  |  |  166|    342|#define SSL3_RT_MAX_MD_SIZE 64
  |  |  ------------------
  ------------------
  168|    342|#ifndef OPENSSL_NO_COMP
  169|    342|        if (tls_allow_compression(rl))
  ------------------
  |  Branch (169:13): [True: 0, False: 342]
  ------------------
  170|      0|            defltlen += SSL3_RT_MAX_COMPRESSED_OVERHEAD;
  ------------------
  |  |  179|      0|#define SSL3_RT_MAX_COMPRESSED_OVERHEAD 1024
  ------------------
  171|    342|#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|    342|        if ((rl->options & SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS) == 0)
  ------------------
  |  |  378|    342|#define SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS SSL_OP_BIT(11)
  |  |  ------------------
  |  |  |  |  351|    342|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (177:13): [True: 342, False: 0]
  ------------------
  178|    342|            defltlen += headerlen + maxalign + SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD;
  ------------------
  |  |  195|    342|    (SSL_RT_MAX_CIPHER_BLOCK_SIZE + SSL3_RT_MAX_MD_SIZE)
  |  |  ------------------
  |  |  |  |  172|    342|#define SSL_RT_MAX_CIPHER_BLOCK_SIZE 16
  |  |  ------------------
  |  |                   (SSL_RT_MAX_CIPHER_BLOCK_SIZE + SSL3_RT_MAX_MD_SIZE)
  |  |  ------------------
  |  |  |  |  166|    342|#define SSL3_RT_MAX_MD_SIZE 64
  |  |  ------------------
  ------------------
  179|    342|    }
  180|       |
  181|    342|    wb = rl->wbuf;
  182|    684|    for (currpipe = 0; currpipe < numwpipes; currpipe++) {
  ------------------
  |  Branch (182:24): [True: 342, False: 342]
  ------------------
  183|    342|        TLS_BUFFER *thiswb = &wb[currpipe];
  184|    342|        size_t len = (currpipe == 0) ? firstlen : nextlen;
  ------------------
  |  Branch (184:22): [True: 342, False: 0]
  ------------------
  185|       |
  186|    342|        if (len == 0)
  ------------------
  |  Branch (186:13): [True: 342, False: 0]
  ------------------
  187|    342|            len = defltlen;
  188|       |
  189|    342|        if (thiswb->len != len) {
  ------------------
  |  Branch (189:13): [True: 342, False: 0]
  ------------------
  190|    342|            OPENSSL_free(thiswb->buf);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  191|    342|            thiswb->buf = NULL; /* force reallocation */
  192|    342|        }
  193|       |
  194|    342|        p = thiswb->buf;
  195|    342|        if (p == NULL) {
  ------------------
  |  Branch (195:13): [True: 342, False: 0]
  ------------------
  196|    342|            p = OPENSSL_malloc(len);
  ------------------
  |  |  107|    342|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  197|    342|            if (p == NULL) {
  ------------------
  |  Branch (197:17): [True: 0, False: 342]
  ------------------
  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);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  206|      0|                return 0;
  207|      0|            }
  208|    342|        }
  209|    342|        memset(thiswb, 0, sizeof(TLS_BUFFER));
  210|    342|        thiswb->buf = p;
  211|    342|        thiswb->len = len;
  212|    342|    }
  213|       |
  214|       |    /* Free any previously allocated buffers that we are no longer using */
  215|    342|    tls_release_write_buffer_int(rl, currpipe);
  216|       |
  217|    342|    rl->numwpipes = numwpipes;
  218|       |
  219|    342|    return 1;
  220|    342|}
tls_setup_read_buffer:
  230|    342|{
  231|    342|    unsigned char *p;
  232|    342|    size_t len, maxalign = 0, headerlen;
  233|    342|    TLS_BUFFER *b;
  234|       |
  235|    342|    b = &rl->rbuf;
  236|       |
  237|    342|    if (rl->isdtls)
  ------------------
  |  Branch (237:9): [True: 0, False: 342]
  ------------------
  238|      0|        headerlen = DTLS1_RT_HEADER_LENGTH;
  ------------------
  |  |   41|      0|#define DTLS1_RT_HEADER_LENGTH 13
  ------------------
  239|    342|    else
  240|    342|        headerlen = SSL3_RT_HEADER_LENGTH;
  ------------------
  |  |  139|    342|#define SSL3_RT_HEADER_LENGTH 5
  ------------------
  241|       |
  242|    342|#if defined(SSL3_ALIGN_PAYLOAD) && SSL3_ALIGN_PAYLOAD != 0
  243|    342|    maxalign = SSL3_ALIGN_PAYLOAD - 1;
  ------------------
  |  |  152|    342|#define SSL3_ALIGN_PAYLOAD 8
  ------------------
  244|    342|#endif
  245|       |
  246|    342|    if (b->buf == NULL) {
  ------------------
  |  Branch (246:9): [True: 342, False: 0]
  ------------------
  247|    342|        len = rl->max_frag_len
  248|    342|            + SSL3_RT_MAX_ENCRYPTED_OVERHEAD + headerlen + maxalign;
  ------------------
  |  |  186|    342|#define SSL3_RT_MAX_ENCRYPTED_OVERHEAD (256 + SSL3_RT_MAX_MD_SIZE)
  |  |  ------------------
  |  |  |  |  166|    342|#define SSL3_RT_MAX_MD_SIZE 64
  |  |  ------------------
  ------------------
  249|    342|#ifndef OPENSSL_NO_COMP
  250|    342|        if (tls_allow_compression(rl))
  ------------------
  |  Branch (250:13): [True: 0, False: 342]
  ------------------
  251|      0|            len += SSL3_RT_MAX_COMPRESSED_OVERHEAD;
  ------------------
  |  |  179|      0|#define SSL3_RT_MAX_COMPRESSED_OVERHEAD 1024
  ------------------
  252|    342|#endif
  253|       |
  254|       |        /* Ensure our buffer is large enough to support all our pipelines */
  255|    342|        if (rl->max_pipelines > 1)
  ------------------
  |  Branch (255:13): [True: 0, False: 342]
  ------------------
  256|      0|            len *= rl->max_pipelines;
  257|       |
  258|    342|        if (b->default_len > len)
  ------------------
  |  Branch (258:13): [True: 342, False: 0]
  ------------------
  259|    342|            len = b->default_len;
  260|       |
  261|    342|        if ((p = OPENSSL_malloc(len)) == NULL) {
  ------------------
  |  |  107|    342|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (261:13): [True: 0, False: 342]
  ------------------
  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);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  268|      0|            return 0;
  269|      0|        }
  270|    342|        b->buf = p;
  271|    342|        b->len = len;
  272|    342|    }
  273|       |
  274|    342|    return 1;
  275|    342|}
tls_default_read_n:
  296|  6.51k|{
  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|  6.51k|    size_t len, left, align = 0;
  307|  6.51k|    unsigned char *pkt;
  308|  6.51k|    TLS_BUFFER *rb;
  309|       |
  310|  6.51k|    if (n == 0)
  ------------------
  |  Branch (310:9): [True: 0, False: 6.51k]
  ------------------
  311|      0|        return OSSL_RECORD_RETURN_NON_FATAL_ERR;
  ------------------
  |  |   47|      0|#define OSSL_RECORD_RETURN_NON_FATAL_ERR -1
  ------------------
  312|       |
  313|  6.51k|    rb = &rl->rbuf;
  314|  6.51k|    left = rb->left;
  315|  6.51k|#if defined(SSL3_ALIGN_PAYLOAD) && SSL3_ALIGN_PAYLOAD != 0
  316|  6.51k|    align = (size_t)rb->buf + SSL3_RT_HEADER_LENGTH;
  ------------------
  |  |  139|  6.51k|#define SSL3_RT_HEADER_LENGTH 5
  ------------------
  317|  6.51k|    align = SSL3_ALIGN_PAYLOAD - 1 - ((align - 1) % SSL3_ALIGN_PAYLOAD);
  ------------------
  |  |  152|  6.51k|#define SSL3_ALIGN_PAYLOAD 8
  ------------------
                  align = SSL3_ALIGN_PAYLOAD - 1 - ((align - 1) % SSL3_ALIGN_PAYLOAD);
  ------------------
  |  |  152|  6.51k|#define SSL3_ALIGN_PAYLOAD 8
  ------------------
  318|  6.51k|#endif
  319|       |
  320|  6.51k|    if (!extend) {
  ------------------
  |  Branch (320:9): [True: 6.51k, False: 0]
  ------------------
  321|       |        /* start with empty packet ... */
  322|  6.51k|        if (left == 0)
  ------------------
  |  Branch (322:13): [True: 6.51k, False: 0]
  ------------------
  323|  6.51k|            rb->offset = align;
  324|       |
  325|  6.51k|        rl->packet = rb->buf + rb->offset;
  326|  6.51k|        rl->packet_length = 0;
  327|       |        /* ... now we can act as if 'extend' was set */
  328|  6.51k|    }
  329|       |
  330|  6.51k|    if (!ossl_assert(rl->packet != NULL)) {
  ------------------
  |  |   52|  6.51k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  6.51k|    __FILE__, __LINE__)
  ------------------
  |  Branch (330:9): [True: 0, False: 6.51k]
  ------------------
  331|       |        /* does not happen */
  332|      0|        RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  333|      0|        return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  334|      0|    }
  335|       |
  336|  6.51k|    len = rl->packet_length;
  337|  6.51k|    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|  6.51k|    if (rl->packet != pkt && clearold == 1) {
  ------------------
  |  Branch (342:9): [True: 0, False: 6.51k]
  |  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|  6.51k|    if (rl->isdtls) {
  ------------------
  |  Branch (353:9): [True: 0, False: 6.51k]
  ------------------
  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|  6.51k|    if (left >= n) {
  ------------------
  |  Branch (366:9): [True: 0, False: 6.51k]
  ------------------
  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|  6.51k|    if (n > rb->len - rb->offset) {
  ------------------
  |  Branch (376:9): [True: 0, False: 6.51k]
  ------------------
  377|       |        /* does not happen */
  378|      0|        RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      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|  6.51k|    if (!rl->read_ahead && !rl->isdtls) {
  ------------------
  |  Branch (383:9): [True: 6.51k, False: 0]
  |  Branch (383:28): [True: 6.51k, False: 0]
  ------------------
  384|       |        /* ignore max parameter */
  385|  6.51k|        max = n;
  386|  6.51k|    } 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|  6.51k|    while (left < n) {
  ------------------
  |  Branch (393:12): [True: 6.51k, False: 0]
  ------------------
  394|  6.51k|        size_t bioread = 0;
  395|  6.51k|        int ret;
  396|  6.51k|        BIO *bio = rl->prev != NULL ? rl->prev : rl->bio;
  ------------------
  |  Branch (396:20): [True: 0, False: 6.51k]
  ------------------
  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|  6.51k|        clear_sys_error();
  ------------------
  |  |   31|  6.51k|#define clear_sys_error() errno = 0
  ------------------
  405|  6.51k|        if (bio != NULL) {
  ------------------
  |  Branch (405:13): [True: 6.51k, False: 0]
  ------------------
  406|  6.51k|            ret = BIO_read(bio, pkt + len + left, (int)(max - left));
  407|  6.51k|            if (ret > 0) {
  ------------------
  |  Branch (407:17): [True: 0, False: 6.51k]
  ------------------
  408|      0|                bioread = ret;
  409|      0|                ret = OSSL_RECORD_RETURN_SUCCESS;
  ------------------
  |  |   45|      0|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
  410|  6.51k|            } else if (BIO_should_retry(bio)) {
  ------------------
  |  |  281|  6.51k|#define BIO_should_retry(a) BIO_test_flags(a, BIO_FLAGS_SHOULD_RETRY)
  |  |  ------------------
  |  |  |  |  226|  6.51k|#define BIO_FLAGS_SHOULD_RETRY 0x08
  |  |  ------------------
  |  |  |  Branch (281:29): [True: 6.51k, False: 0]
  |  |  ------------------
  ------------------
  411|  6.51k|                if (rl->prev != NULL) {
  ------------------
  |  Branch (411:21): [True: 0, False: 6.51k]
  ------------------
  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|  6.51k|                ret = OSSL_RECORD_RETURN_RETRY;
  ------------------
  |  |   46|  6.51k|#define OSSL_RECORD_RETURN_RETRY 0
  ------------------
  421|  6.51k|            } else if (BIO_eof(bio)) {
  ------------------
  |  Branch (421:24): [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|  6.51k|        } else {
  427|      0|            RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, SSL_R_READ_BIO_NOT_SET);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  428|      0|            ret = OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  429|      0|        }
  430|       |
  431|  6.51k|        if (ret <= OSSL_RECORD_RETURN_RETRY) {
  ------------------
  |  |   46|  6.51k|#define OSSL_RECORD_RETURN_RETRY 0
  ------------------
  |  Branch (431:13): [True: 6.51k, False: 0]
  ------------------
  432|  6.51k|            rb->left = left;
  433|  6.51k|            if ((rl->mode & SSL_MODE_RELEASE_BUFFERS) != 0 && !rl->isdtls)
  ------------------
  |  |  537|  6.51k|#define SSL_MODE_RELEASE_BUFFERS 0x00000010U
  ------------------
  |  Branch (433:17): [True: 0, False: 6.51k]
  |  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|  6.51k|            return ret;
  437|  6.51k|        }
  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|  6.51k|}
tls_get_more_records:
  544|  6.51k|{
  545|  6.51k|    int enc_err, rret;
  546|  6.51k|    int i;
  547|  6.51k|    size_t more, n;
  548|  6.51k|    TLS_RL_RECORD *rr, *thisrr;
  549|  6.51k|    TLS_BUFFER *rbuf;
  550|  6.51k|    unsigned char *p;
  551|  6.51k|    unsigned char md[EVP_MAX_MD_SIZE];
  552|  6.51k|    unsigned int version;
  553|  6.51k|    size_t mac_size = 0;
  554|  6.51k|    int imac_size;
  555|  6.51k|    size_t num_recs = 0, max_recs, j;
  556|  6.51k|    PACKET pkt;
  557|  6.51k|    SSL_MAC_BUF *macbufs = NULL;
  558|  6.51k|    int ret = OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|  6.51k|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  559|       |
  560|  6.51k|    rr = rl->rrec;
  561|  6.51k|    rbuf = &rl->rbuf;
  562|  6.51k|    if (rbuf->buf == NULL) {
  ------------------
  |  Branch (562:9): [True: 342, False: 6.17k]
  ------------------
  563|    342|        if (!tls_setup_read_buffer(rl)) {
  ------------------
  |  Branch (563:13): [True: 0, False: 342]
  ------------------
  564|       |            /* RLAYERfatal() already called */
  565|      0|            return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  566|      0|        }
  567|    342|    }
  568|       |
  569|  6.51k|    max_recs = rl->max_pipelines;
  570|       |
  571|  6.51k|    if (max_recs == 0)
  ------------------
  |  Branch (571:9): [True: 6.51k, False: 0]
  ------------------
  572|  6.51k|        max_recs = 1;
  573|       |
  574|  6.51k|    do {
  575|  6.51k|        thisrr = &rr[num_recs];
  576|       |
  577|       |        /* check if we have the header */
  578|  6.51k|        if ((rl->rstate != SSL_ST_READ_BODY) || (rl->packet_length < SSL3_RT_HEADER_LENGTH)) {
  ------------------
  |  | 1184|  6.51k|#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: 6.51k, False: 0]
  |  Branch (578:49): [True: 0, False: 0]
  ------------------
  579|  6.51k|            unsigned int type;
  580|       |
  581|  6.51k|            rret = rl->funcs->read_n(rl, SSL3_RT_HEADER_LENGTH,
  ------------------
  |  |  139|  6.51k|#define SSL3_RT_HEADER_LENGTH 5
  ------------------
  582|  6.51k|                TLS_BUFFER_get_len(rbuf), 0,
  ------------------
  |  |  526|  6.51k|#define TLS_BUFFER_get_len(b) ((b)->len)
  ------------------
  583|  6.51k|                num_recs == 0 ? 1 : 0, &n);
  ------------------
  |  Branch (583:17): [True: 6.51k, False: 0]
  ------------------
  584|       |
  585|  6.51k|            if (rret < OSSL_RECORD_RETURN_SUCCESS)
  ------------------
  |  |   45|  6.51k|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
  |  Branch (585:17): [True: 6.51k, False: 0]
  ------------------
  586|  6.51k|                return rret; /* error or non-blocking */
  587|       |
  588|      0|            rl->rstate = SSL_ST_READ_BODY;
  ------------------
  |  | 1184|      0|#define SSL_ST_READ_BODY 0xF1
  ------------------
  589|       |
  590|      0|            p = rl->packet;
  591|      0|            if (!PACKET_buf_init(&pkt, p, rl->packet_length)) {
  ------------------
  |  Branch (591:17): [True: 0, False: 0]
  ------------------
  592|      0|                RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  593|      0|                return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  594|      0|            }
  595|       |
  596|       |            /* Pull apart the header into the TLS_RL_RECORD */
  597|      0|            if (!PACKET_get_1(&pkt, &type)
  ------------------
  |  Branch (597:17): [True: 0, False: 0]
  ------------------
  598|      0|                || !PACKET_get_net_2(&pkt, &version)
  ------------------
  |  Branch (598:20): [True: 0, False: 0]
  ------------------
  599|      0|                || !PACKET_get_net_2_len(&pkt, &thisrr->length)) {
  ------------------
  |  Branch (599:20): [True: 0, False: 0]
  ------------------
  600|      0|                if (rl->msg_callback != NULL)
  ------------------
  |  Branch (600:21): [True: 0, False: 0]
  ------------------
  601|      0|                    rl->msg_callback(0, 0, SSL3_RT_HEADER, p, 5, rl->cbarg);
  ------------------
  |  |  239|      0|#define SSL3_RT_HEADER 0x100
  ------------------
  602|      0|                RLAYERfatal(rl, SSL_AD_DECODE_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  603|      0|                return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  604|      0|            }
  605|      0|            thisrr->type = type;
  606|      0|            thisrr->rec_version = version;
  607|       |
  608|      0|            if (rl->msg_callback != NULL)
  ------------------
  |  Branch (608:17): [True: 0, False: 0]
  ------------------
  609|      0|                rl->msg_callback(0, version, SSL3_RT_HEADER, p, 5, rl->cbarg);
  ------------------
  |  |  239|      0|#define SSL3_RT_HEADER 0x100
  ------------------
  610|       |
  611|      0|            if (!rl->funcs->validate_record_header(rl, thisrr)) {
  ------------------
  |  Branch (611:17): [True: 0, False: 0]
  ------------------
  612|       |                /* RLAYERfatal already called */
  613|      0|                return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  614|      0|            }
  615|       |
  616|      0|            if (thisrr->length > TLS_BUFFER_get_len(rbuf) - SSL3_RT_HEADER_LENGTH) {
  ------------------
  |  |  526|      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 (616:17): [True: 0, False: 0]
  ------------------
  617|      0|                RLAYERfatal(rl, SSL_AD_RECORD_OVERFLOW,
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  618|      0|                    SSL_R_PACKET_LENGTH_TOO_LONG);
  619|      0|                return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  620|      0|            }
  621|       |
  622|       |            /* now rl->rstate == SSL_ST_READ_BODY */
  623|      0|        }
  624|       |
  625|       |        /*
  626|       |         * rl->rstate == SSL_ST_READ_BODY, get and decode the data. Calculate
  627|       |         * how much more data we need to read for the rest of the record
  628|       |         */
  629|      0|        if (thisrr->rec_version == SSL2_VERSION) {
  ------------------
  |  |   23|      0|#define SSL2_VERSION 0x0002
  ------------------
  |  Branch (629:13): [True: 0, False: 0]
  ------------------
  630|      0|            more = thisrr->length + SSL2_RT_HEADER_LENGTH
  ------------------
  |  |  529|      0|#define SSL2_RT_HEADER_LENGTH 2
  ------------------
  631|      0|                - SSL3_RT_HEADER_LENGTH;
  ------------------
  |  |  139|      0|#define SSL3_RT_HEADER_LENGTH 5
  ------------------
  632|      0|        } else {
  633|      0|            more = thisrr->length;
  634|      0|        }
  635|       |
  636|      0|        if (more > 0) {
  ------------------
  |  Branch (636:13): [True: 0, False: 0]
  ------------------
  637|       |            /* now rl->packet_length == SSL3_RT_HEADER_LENGTH */
  638|       |
  639|      0|            rret = rl->funcs->read_n(rl, more, more, 1, 0, &n);
  640|      0|            if (rret < OSSL_RECORD_RETURN_SUCCESS)
  ------------------
  |  |   45|      0|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
  |  Branch (640:17): [True: 0, False: 0]
  ------------------
  641|      0|                return rret; /* error or non-blocking io */
  642|      0|        }
  643|       |
  644|       |        /* set state for later operations */
  645|      0|        rl->rstate = SSL_ST_READ_HEADER;
  ------------------
  |  | 1183|      0|#define SSL_ST_READ_HEADER 0xF0
  ------------------
  646|       |
  647|       |        /*
  648|       |         * At this point, rl->packet_length == SSL3_RT_HEADER_LENGTH
  649|       |         * + thisrr->length, or rl->packet_length == SSL2_RT_HEADER_LENGTH
  650|       |         * + thisrr->length and we have that many bytes in rl->packet
  651|       |         */
  652|      0|        if (thisrr->rec_version == SSL2_VERSION)
  ------------------
  |  |   23|      0|#define SSL2_VERSION 0x0002
  ------------------
  |  Branch (652:13): [True: 0, False: 0]
  ------------------
  653|      0|            thisrr->input = &(rl->packet[SSL2_RT_HEADER_LENGTH]);
  ------------------
  |  |  529|      0|#define SSL2_RT_HEADER_LENGTH 2
  ------------------
  654|      0|        else
  655|      0|            thisrr->input = &(rl->packet[SSL3_RT_HEADER_LENGTH]);
  ------------------
  |  |  139|      0|#define SSL3_RT_HEADER_LENGTH 5
  ------------------
  656|       |
  657|       |        /*
  658|       |         * ok, we can now read from 'rl->packet' data into 'thisrr'.
  659|       |         * thisrr->input points at thisrr->length bytes, which need to be copied
  660|       |         * into thisrr->data by either the decryption or by the decompression.
  661|       |         * When the data is 'copied' into the thisrr->data buffer,
  662|       |         * thisrr->input will be updated to point at the new buffer
  663|       |         */
  664|       |
  665|       |        /*
  666|       |         * We now have - encrypted [ MAC [ compressed [ plain ] ] ]
  667|       |         * thisrr->length bytes of encrypted compressed stuff.
  668|       |         */
  669|       |
  670|       |        /* decrypt in place in 'thisrr->input' */
  671|      0|        thisrr->data = thisrr->input;
  672|      0|        thisrr->orig_len = thisrr->length;
  673|       |
  674|      0|        num_recs++;
  675|       |
  676|       |        /* we have pulled in a full packet so zero things */
  677|      0|        rl->packet_length = 0;
  678|      0|        rl->is_first_record = 0;
  679|      0|    } while (num_recs < max_recs
  ------------------
  |  Branch (679:14): [True: 0, False: 0]
  ------------------
  680|      0|        && thisrr->type == SSL3_RT_APPLICATION_DATA
  ------------------
  |  |  222|      0|#define SSL3_RT_APPLICATION_DATA 23
  ------------------
  |  Branch (680:12): [True: 0, False: 0]
  ------------------
  681|      0|        && RLAYER_USE_EXPLICIT_IV(rl)
  ------------------
  |  |  396|      0|#define RLAYER_USE_EXPLICIT_IV(rl) ((rl)->version == TLS1_1_VERSION \
  |  |  ------------------
  |  |  |  |   25|      0|#define TLS1_1_VERSION 0x0302
  |  |  ------------------
  |  |  |  Branch (396:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  397|      0|    || (rl)->version == TLS1_2_VERSION                              \
  |  |  ------------------
  |  |  |  |   26|      0|#define TLS1_2_VERSION 0x0303
  |  |  ------------------
  |  |  |  Branch (397:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  398|      0|    || (rl)->version == DTLS1_BAD_VER                               \
  |  |  ------------------
  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  ------------------
  |  |  |  Branch (398:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  399|      0|    || (rl)->version == DTLS1_VERSION                               \
  |  |  ------------------
  |  |  |  |   28|      0|#define DTLS1_VERSION 0xFEFF
  |  |  ------------------
  |  |  |  Branch (399:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  400|      0|    || (rl)->version == DTLS1_2_VERSION)
  |  |  ------------------
  |  |  |  |   29|      0|#define DTLS1_2_VERSION 0xFEFD
  |  |  ------------------
  |  |  |  Branch (400:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  682|      0|        && rl->enc_ctx != NULL
  ------------------
  |  Branch (682:12): [True: 0, False: 0]
  ------------------
  683|      0|        && (EVP_CIPHER_get_flags(EVP_CIPHER_CTX_get0_cipher(rl->enc_ctx))
  ------------------
  |  Branch (683:12): [True: 0, False: 0]
  ------------------
  684|      0|               & EVP_CIPH_FLAG_PIPELINE)
  ------------------
  |  |  259|      0|#define EVP_CIPH_FLAG_PIPELINE 0X800000
  ------------------
  685|      0|            != 0
  686|      0|        && tls_record_app_data_waiting(rl));
  ------------------
  |  Branch (686:12): [True: 0, False: 0]
  ------------------
  687|       |
  688|      0|    if (num_recs == 1
  ------------------
  |  Branch (688:9): [True: 0, False: 0]
  ------------------
  689|      0|        && thisrr->type == SSL3_RT_CHANGE_CIPHER_SPEC
  ------------------
  |  |  219|      0|#define SSL3_RT_CHANGE_CIPHER_SPEC 20
  ------------------
  |  Branch (689:12): [True: 0, False: 0]
  ------------------
  690|       |        /* The following can happen in tlsany_meth after HRR */
  691|      0|        && rl->version == TLS1_3_VERSION
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (691:12): [True: 0, False: 0]
  ------------------
  692|      0|        && rl->is_first_handshake) {
  ------------------
  |  Branch (692:12): [True: 0, False: 0]
  ------------------
  693|       |        /*
  694|       |         * CCS messages must be exactly 1 byte long, containing the value 0x01
  695|       |         */
  696|      0|        if (thisrr->length != 1 || thisrr->data[0] != 0x01) {
  ------------------
  |  Branch (696:13): [True: 0, False: 0]
  |  Branch (696:36): [True: 0, False: 0]
  ------------------
  697|      0|            RLAYERfatal(rl, SSL_AD_UNEXPECTED_MESSAGE,
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  698|      0|                SSL_R_INVALID_CCS_MESSAGE);
  699|      0|            return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  700|      0|        }
  701|       |        /*
  702|       |         * CCS messages are ignored in TLSv1.3. We treat it like an empty
  703|       |         * handshake record - but we still call the msg_callback
  704|       |         */
  705|      0|        if (rl->msg_callback != NULL)
  ------------------
  |  Branch (705:13): [True: 0, False: 0]
  ------------------
  706|      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
  ------------------
  707|      0|                thisrr->data, 1, rl->cbarg);
  708|      0|        thisrr->type = SSL3_RT_HANDSHAKE;
  ------------------
  |  |  221|      0|#define SSL3_RT_HANDSHAKE 22
  ------------------
  709|      0|        if (++(rl->empty_record_count) > MAX_EMPTY_RECORDS) {
  ------------------
  |  |  527|      0|#define MAX_EMPTY_RECORDS 32
  ------------------
  |  Branch (709:13): [True: 0, False: 0]
  ------------------
  710|      0|            RLAYERfatal(rl, SSL_AD_UNEXPECTED_MESSAGE,
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  711|      0|                SSL_R_UNEXPECTED_CCS_MESSAGE);
  712|      0|            return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  713|      0|        }
  714|      0|        rl->num_recs = 0;
  715|      0|        rl->curr_rec = 0;
  716|      0|        rl->num_released = 0;
  717|       |
  718|      0|        return OSSL_RECORD_RETURN_SUCCESS;
  ------------------
  |  |   45|      0|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
  719|      0|    }
  720|       |
  721|      0|    if (rl->md_ctx != NULL) {
  ------------------
  |  Branch (721:9): [True: 0, False: 0]
  ------------------
  722|      0|        const EVP_MD *tmpmd = EVP_MD_CTX_get0_md(rl->md_ctx);
  723|       |
  724|      0|        if (tmpmd != NULL) {
  ------------------
  |  Branch (724:13): [True: 0, False: 0]
  ------------------
  725|      0|            imac_size = EVP_MD_get_size(tmpmd);
  726|      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 (726:17): [True: 0, False: 0]
  ------------------
  727|      0|                RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_EVP_LIB);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  728|      0|                return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  729|      0|            }
  730|      0|            mac_size = (size_t)imac_size;
  731|      0|        }
  732|      0|    }
  733|       |
  734|       |    /*
  735|       |     * If in encrypt-then-mac mode calculate mac from encrypted record. All
  736|       |     * the details below are public so no timing details can leak.
  737|       |     */
  738|      0|    if (rl->use_etm && rl->md_ctx != NULL) {
  ------------------
  |  Branch (738:9): [True: 0, False: 0]
  |  Branch (738:24): [True: 0, False: 0]
  ------------------
  739|      0|        unsigned char *mac;
  740|       |
  741|      0|        for (j = 0; j < num_recs; j++) {
  ------------------
  |  Branch (741:21): [True: 0, False: 0]
  ------------------
  742|      0|            thisrr = &rr[j];
  743|       |
  744|      0|            if (thisrr->length < mac_size) {
  ------------------
  |  Branch (744:17): [True: 0, False: 0]
  ------------------
  745|      0|                RLAYERfatal(rl, SSL_AD_DECODE_ERROR, SSL_R_LENGTH_TOO_SHORT);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  746|      0|                return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  747|      0|            }
  748|      0|            thisrr->length -= mac_size;
  749|      0|            mac = thisrr->data + thisrr->length;
  750|      0|            i = rl->funcs->mac(rl, thisrr, md, 0 /* not send */);
  751|      0|            if (i == 0 || CRYPTO_memcmp(md, mac, mac_size) != 0) {
  ------------------
  |  |  332|      0|#define CRYPTO_memcmp memcmp
  ------------------
  |  Branch (751:17): [True: 0, False: 0]
  |  Branch (751:27): [True: 0, False: 0]
  ------------------
  752|      0|                RLAYERfatal(rl, SSL_AD_BAD_RECORD_MAC,
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  753|      0|                    SSL_R_DECRYPTION_FAILED_OR_BAD_RECORD_MAC);
  754|      0|                return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  755|      0|            }
  756|      0|        }
  757|       |        /*
  758|       |         * We've handled the mac now - there is no MAC inside the encrypted
  759|       |         * record
  760|       |         */
  761|      0|        mac_size = 0;
  762|      0|    }
  763|       |
  764|      0|    if (mac_size > 0) {
  ------------------
  |  Branch (764:9): [True: 0, False: 0]
  ------------------
  765|      0|        macbufs = OPENSSL_calloc(num_recs, sizeof(*macbufs));
  ------------------
  |  |  113|      0|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  766|      0|        if (macbufs == NULL) {
  ------------------
  |  Branch (766:13): [True: 0, False: 0]
  ------------------
  767|      0|            RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  768|      0|            return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
  769|      0|        }
  770|      0|    }
  771|       |
  772|      0|    ERR_set_mark();
  773|      0|    enc_err = rl->funcs->cipher(rl, rr, num_recs, 0, macbufs, mac_size);
  774|       |
  775|       |    /*-
  776|       |     * enc_err is:
  777|       |     *    0: if the record is publicly invalid, or an internal error, or AEAD
  778|       |     *       decryption failed, or ETM decryption failed.
  779|       |     *    1: Success or MTE decryption failed (MAC will be randomised)
  780|       |     */
  781|      0|    if (enc_err == 0) {
  ------------------
  |  Branch (781:9): [True: 0, False: 0]
  ------------------
  782|      0|        if (rl->alert != SSL_AD_NO_ALERT) {
  ------------------
  |  |   67|      0|#define SSL_AD_NO_ALERT -1
  ------------------
  |  Branch (782:13): [True: 0, False: 0]
  ------------------
  783|       |            /* RLAYERfatal() already got called */
  784|      0|            ERR_clear_last_mark();
  785|      0|            goto end;
  786|      0|        }
  787|      0|        if (num_recs == 1
  ------------------
  |  Branch (787:13): [True: 0, False: 0]
  ------------------
  788|      0|            && rl->skip_early_data != NULL
  ------------------
  |  Branch (788:16): [True: 0, False: 0]
  ------------------
  789|      0|            && rl->skip_early_data(rl->cbarg)) {
  ------------------
  |  Branch (789:16): [True: 0, False: 0]
  ------------------
  790|       |            /*
  791|       |             * Valid early_data that we cannot decrypt will fail here. We treat
  792|       |             * it like an empty record.
  793|       |             */
  794|       |
  795|       |            /*
  796|       |             * Remove any errors from the stack. Decryption failures are normal
  797|       |             * behaviour.
  798|       |             */
  799|      0|            ERR_pop_to_mark();
  800|       |
  801|      0|            thisrr = &rr[0];
  802|       |
  803|      0|            if (!rlayer_early_data_count_ok(rl, thisrr->length,
  ------------------
  |  Branch (803:17): [True: 0, False: 0]
  ------------------
  804|      0|                    EARLY_DATA_CIPHERTEXT_OVERHEAD, 0)) {
  ------------------
  |  |  626|      0|#define EARLY_DATA_CIPHERTEXT_OVERHEAD ((6 * (EVP_GCM_TLS_TAG_LEN + 1)) + 2)
  |  |  ------------------
  |  |  |  |  375|      0|#define EVP_GCM_TLS_TAG_LEN 16
  |  |  ------------------
  ------------------
  805|       |                /* RLAYERfatal() already called */
  806|      0|                goto end;
  807|      0|            }
  808|       |
  809|      0|            thisrr->length = 0;
  810|      0|            rl->num_recs = 0;
  811|      0|            rl->curr_rec = 0;
  812|      0|            rl->num_released = 0;
  813|       |            /* Reset the read sequence */
  814|      0|            memset(rl->sequence, 0, sizeof(rl->sequence));
  815|      0|            ret = 1;
  816|      0|            goto end;
  817|      0|        }
  818|      0|        ERR_clear_last_mark();
  819|      0|        RLAYERfatal(rl, SSL_AD_BAD_RECORD_MAC,
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  820|      0|            SSL_R_DECRYPTION_FAILED_OR_BAD_RECORD_MAC);
  821|      0|        goto end;
  822|      0|    } else {
  823|      0|        ERR_clear_last_mark();
  824|      0|    }
  825|      0|    OSSL_TRACE_BEGIN(TLS)
  ------------------
  |  |  219|      0|    do {                           \
  |  |  220|      0|        BIO *trc_out = NULL;       \
  |  |  221|      0|        if (0)
  |  |  ------------------
  |  |  |  Branch (221:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  826|      0|    {
  827|      0|        BIO_printf(trc_out, "dec %lu\n", (unsigned long)rr[0].length);
  828|      0|        BIO_dump_indent(trc_out, rr[0].data, (int)rr[0].length, 4);
  829|      0|    }
  830|      0|    OSSL_TRACE_END(TLS);
  ------------------
  |  |  224|      0|    }                            \
  |  |  225|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (225:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  831|       |
  832|       |    /* r->length is now the compressed data plus mac */
  833|      0|    if (rl->enc_ctx != NULL
  ------------------
  |  Branch (833:9): [True: 0, False: 0]
  ------------------
  834|      0|        && !rl->use_etm
  ------------------
  |  Branch (834:12): [True: 0, False: 0]
  ------------------
  835|      0|        && EVP_MD_CTX_get0_md(rl->md_ctx) != NULL) {
  ------------------
  |  Branch (835:12): [True: 0, False: 0]
  ------------------
  836|      0|        for (j = 0; j < num_recs; j++) {
  ------------------
  |  Branch (836:21): [True: 0, False: 0]
  ------------------
  837|      0|            SSL_MAC_BUF *thismb = &macbufs[j];
  838|       |
  839|      0|            thisrr = &rr[j];
  840|       |
  841|      0|            i = rl->funcs->mac(rl, thisrr, md, 0 /* not send */);
  842|      0|            if (i == 0 || thismb == NULL || thismb->mac == NULL
  ------------------
  |  Branch (842:17): [True: 0, False: 0]
  |  Branch (842:27): [True: 0, False: 0]
  |  Branch (842:45): [True: 0, False: 0]
  ------------------
  843|      0|                || CRYPTO_memcmp(md, thismb->mac, (size_t)mac_size) != 0)
  ------------------
  |  |  332|      0|#define CRYPTO_memcmp memcmp
  ------------------
  |  Branch (843:20): [True: 0, False: 0]
  ------------------
  844|      0|                enc_err = 0;
  845|      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 (845:17): [True: 0, False: 0]
  ------------------
  846|      0|                enc_err = 0;
  847|      0|#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
  848|      0|            if (enc_err == 0 && mac_size > 0 && thismb != NULL && thismb->mac != NULL && (md[0] ^ thismb->mac[0]) != 0xFF) {
  ------------------
  |  Branch (848:17): [True: 0, False: 0]
  |  Branch (848:33): [True: 0, False: 0]
  |  Branch (848:49): [True: 0, False: 0]
  |  Branch (848:67): [True: 0, False: 0]
  |  Branch (848:90): [True: 0, False: 0]
  ------------------
  849|      0|                enc_err = 1;
  850|      0|            }
  851|      0|#endif
  852|      0|        }
  853|      0|    }
  854|       |
  855|      0|    if (enc_err == 0) {
  ------------------
  |  Branch (855:9): [True: 0, False: 0]
  ------------------
  856|      0|        if (rl->alert != SSL_AD_NO_ALERT) {
  ------------------
  |  |   67|      0|#define SSL_AD_NO_ALERT -1
  ------------------
  |  Branch (856:13): [True: 0, False: 0]
  ------------------
  857|       |            /* We already called RLAYERfatal() */
  858|      0|            goto end;
  859|      0|        }
  860|       |        /*
  861|       |         * A separate 'decryption_failed' alert was introduced with TLS 1.0,
  862|       |         * SSL 3.0 only has 'bad_record_mac'.  But unless a decryption
  863|       |         * failure is directly visible from the ciphertext anyway, we should
  864|       |         * not reveal which kind of error occurred -- this might become
  865|       |         * visible to an attacker (e.g. via a logfile)
  866|       |         */
  867|      0|        RLAYERfatal(rl, SSL_AD_BAD_RECORD_MAC,
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  868|      0|            SSL_R_DECRYPTION_FAILED_OR_BAD_RECORD_MAC);
  869|      0|        goto end;
  870|      0|    }
  871|       |
  872|      0|    for (j = 0; j < num_recs; j++) {
  ------------------
  |  Branch (872:17): [True: 0, False: 0]
  ------------------
  873|      0|        thisrr = &rr[j];
  874|       |
  875|      0|        if (!rl->funcs->post_process_record(rl, thisrr)) {
  ------------------
  |  Branch (875:13): [True: 0, False: 0]
  ------------------
  876|       |            /* RLAYERfatal already called */
  877|      0|            goto end;
  878|      0|        }
  879|       |
  880|       |        /*
  881|       |         * Record overflow checking (e.g. checking if
  882|       |         * thisrr->length > SSL3_RT_MAX_PLAIN_LENGTH) is the responsibility of
  883|       |         * the post_process_record() function above. However we check here if
  884|       |         * the received packet overflows the current Max Fragment Length setting
  885|       |         * if there is one.
  886|       |         * Note: rl->max_frag_len != SSL3_RT_MAX_PLAIN_LENGTH and KTLS are
  887|       |         * mutually exclusive. Also note that with KTLS thisrr->length can
  888|       |         * be > SSL3_RT_MAX_PLAIN_LENGTH (and rl->max_frag_len must be ignored)
  889|       |         */
  890|      0|        if (rl->max_frag_len != SSL3_RT_MAX_PLAIN_LENGTH
  ------------------
  |  |  177|      0|#define SSL3_RT_MAX_PLAIN_LENGTH 16384
  ------------------
  |  Branch (890:13): [True: 0, False: 0]
  ------------------
  891|      0|            && thisrr->length > rl->max_frag_len) {
  ------------------
  |  Branch (891:16): [True: 0, False: 0]
  ------------------
  892|      0|            RLAYERfatal(rl, SSL_AD_RECORD_OVERFLOW, SSL_R_DATA_LENGTH_TOO_LONG);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  893|      0|            goto end;
  894|      0|        }
  895|       |
  896|      0|        thisrr->off = 0;
  897|       |        /*-
  898|       |         * So at this point the following is true
  899|       |         * thisrr->type   is the type of record
  900|       |         * thisrr->length == number of bytes in record
  901|       |         * thisrr->off    == offset to first valid byte
  902|       |         * thisrr->data   == where to take bytes from, increment after use :-).
  903|       |         */
  904|       |
  905|       |        /* just read a 0 length packet */
  906|      0|        if (thisrr->length == 0) {
  ------------------
  |  Branch (906:13): [True: 0, False: 0]
  ------------------
  907|      0|            if (++(rl->empty_record_count) > MAX_EMPTY_RECORDS) {
  ------------------
  |  |  527|      0|#define MAX_EMPTY_RECORDS 32
  ------------------
  |  Branch (907:17): [True: 0, False: 0]
  ------------------
  908|      0|                RLAYERfatal(rl, SSL_AD_UNEXPECTED_MESSAGE,
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
  909|      0|                    SSL_R_RECORD_TOO_SMALL);
  910|      0|                goto end;
  911|      0|            }
  912|      0|        } else {
  913|      0|            rl->empty_record_count = 0;
  914|      0|        }
  915|      0|    }
  916|       |
  917|      0|    if (rl->level == OSSL_RECORD_PROTECTION_LEVEL_EARLY) {
  ------------------
  |  | 2924|      0|#define OSSL_RECORD_PROTECTION_LEVEL_EARLY 1
  ------------------
  |  Branch (917:9): [True: 0, False: 0]
  ------------------
  918|      0|        thisrr = &rr[0];
  919|      0|        if (thisrr->type == SSL3_RT_APPLICATION_DATA
  ------------------
  |  |  222|      0|#define SSL3_RT_APPLICATION_DATA 23
  ------------------
  |  Branch (919:13): [True: 0, False: 0]
  ------------------
  920|      0|            && !rlayer_early_data_count_ok(rl, thisrr->length, 0, 0)) {
  ------------------
  |  Branch (920:16): [True: 0, False: 0]
  ------------------
  921|       |            /* RLAYERfatal already called */
  922|      0|            goto end;
  923|      0|        }
  924|      0|    }
  925|       |
  926|      0|    rl->num_recs = num_recs;
  927|      0|    rl->curr_rec = 0;
  928|      0|    rl->num_released = 0;
  929|      0|    ret = OSSL_RECORD_RETURN_SUCCESS;
  ------------------
  |  |   45|      0|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
  930|      0|end:
  931|      0|    if (macbufs != NULL) {
  ------------------
  |  Branch (931:9): [True: 0, False: 0]
  ------------------
  932|      0|        for (j = 0; j < num_recs; j++) {
  ------------------
  |  Branch (932:21): [True: 0, False: 0]
  ------------------
  933|      0|            if (macbufs[j].alloced)
  ------------------
  |  Branch (933:17): [True: 0, False: 0]
  ------------------
  934|      0|                OPENSSL_free(macbufs[j].mac);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  935|      0|        }
  936|      0|        OPENSSL_free(macbufs);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  937|      0|    }
  938|      0|    return ret;
  939|      0|}
tls_read_record:
 1070|  6.51k|{
 1071|  6.51k|    TLS_RL_RECORD *rec;
 1072|       |
 1073|       |    /*
 1074|       |     * tls_get_more_records() can return success without actually reading
 1075|       |     * anything useful (i.e. if empty records are read). We loop here until
 1076|       |     * we have something useful. tls_get_more_records() will eventually fail if
 1077|       |     * too many sequential empty records are read.
 1078|       |     */
 1079|  6.51k|    while (rl->curr_rec >= rl->num_recs) {
  ------------------
  |  Branch (1079:12): [True: 6.51k, False: 0]
  ------------------
 1080|  6.51k|        int ret;
 1081|       |
 1082|  6.51k|        if (rl->num_released != rl->num_recs) {
  ------------------
  |  Branch (1082:13): [True: 0, False: 6.51k]
  ------------------
 1083|      0|            RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, SSL_R_RECORDS_NOT_RELEASED);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1084|      0|            return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
 1085|      0|        }
 1086|       |
 1087|  6.51k|        ret = rl->funcs->get_more_records(rl);
 1088|       |
 1089|  6.51k|        if (ret != OSSL_RECORD_RETURN_SUCCESS)
  ------------------
  |  |   45|  6.51k|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
  |  Branch (1089:13): [True: 6.51k, False: 0]
  ------------------
 1090|  6.51k|            return ret;
 1091|  6.51k|    }
 1092|       |
 1093|       |    /*
 1094|       |     * We have now got rl->num_recs records buffered in rl->rrec. rl->curr_rec
 1095|       |     * points to the next one to read.
 1096|       |     */
 1097|      0|    rec = &rl->rrec[rl->curr_rec++];
 1098|       |
 1099|      0|    *rechandle = rec;
 1100|      0|    *rversion = rec->rec_version;
 1101|      0|    *type = rec->type;
 1102|      0|    *data = rec->data + rec->off;
 1103|      0|    *datalen = rec->length;
 1104|      0|    if (rl->isdtls) {
  ------------------
  |  Branch (1104:9): [True: 0, False: 0]
  ------------------
 1105|      0|        *epoch = rec->epoch;
 1106|      0|        memcpy(seq_num, rec->seq_num, sizeof(rec->seq_num));
 1107|      0|    }
 1108|       |
 1109|      0|    return OSSL_RECORD_RETURN_SUCCESS;
  ------------------
  |  |   45|      0|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
 1110|  6.51k|}
tls_set_options:
 1149|  2.07k|{
 1150|  2.07k|    const OSSL_PARAM *p;
 1151|       |
 1152|  2.07k|    p = OSSL_PARAM_locate_const(options, OSSL_LIBSSL_RECORD_LAYER_PARAM_OPTIONS);
  ------------------
  |  |  340|  2.07k|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_OPTIONS "options"
  ------------------
 1153|  2.07k|    if (p != NULL && !OSSL_PARAM_get_uint64(p, &rl->options)) {
  ------------------
  |  Branch (1153:9): [True: 2.07k, False: 0]
  |  Branch (1153:22): [True: 0, False: 2.07k]
  ------------------
 1154|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1155|      0|        return 0;
 1156|      0|    }
 1157|       |
 1158|  2.07k|    p = OSSL_PARAM_locate_const(options, OSSL_LIBSSL_RECORD_LAYER_PARAM_MODE);
  ------------------
  |  |  339|  2.07k|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_MODE "mode"
  ------------------
 1159|  2.07k|    if (p != NULL && !OSSL_PARAM_get_uint32(p, &rl->mode)) {
  ------------------
  |  Branch (1159:9): [True: 2.07k, False: 0]
  |  Branch (1159:22): [True: 0, False: 2.07k]
  ------------------
 1160|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1161|      0|        return 0;
 1162|      0|    }
 1163|       |
 1164|  2.07k|    if (rl->direction == OSSL_RECORD_DIRECTION_READ) {
  ------------------
  |  |   42|  2.07k|#define OSSL_RECORD_DIRECTION_READ 0
  ------------------
  |  Branch (1164:9): [True: 1.03k, False: 1.03k]
  ------------------
 1165|  1.03k|        p = OSSL_PARAM_locate_const(options,
 1166|  1.03k|            OSSL_LIBSSL_RECORD_LAYER_READ_BUFFER_LEN);
  ------------------
  |  |  345|  1.03k|# define OSSL_LIBSSL_RECORD_LAYER_READ_BUFFER_LEN "read_buffer_len"
  ------------------
 1167|  1.03k|        if (p != NULL && !OSSL_PARAM_get_size_t(p, &rl->rbuf.default_len)) {
  ------------------
  |  Branch (1167:13): [True: 1.03k, False: 0]
  |  Branch (1167:26): [True: 0, False: 1.03k]
  ------------------
 1168|      0|            ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1169|      0|            return 0;
 1170|      0|        }
 1171|  1.03k|    } else {
 1172|  1.03k|        p = OSSL_PARAM_locate_const(options,
 1173|  1.03k|            OSSL_LIBSSL_RECORD_LAYER_PARAM_BLOCK_PADDING);
  ------------------
  |  |  335|  1.03k|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_BLOCK_PADDING "block_padding"
  ------------------
 1174|  1.03k|        if (p != NULL && !OSSL_PARAM_get_size_t(p, &rl->block_padding)) {
  ------------------
  |  Branch (1174:13): [True: 1.03k, False: 0]
  |  Branch (1174:26): [True: 0, False: 1.03k]
  ------------------
 1175|      0|            ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1176|      0|            return 0;
 1177|      0|        }
 1178|  1.03k|        p = OSSL_PARAM_locate_const(options,
 1179|  1.03k|            OSSL_LIBSSL_RECORD_LAYER_PARAM_HS_PADDING);
  ------------------
  |  |  336|  1.03k|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_HS_PADDING "hs_padding"
  ------------------
 1180|  1.03k|        if (p != NULL && !OSSL_PARAM_get_size_t(p, &rl->hs_padding)) {
  ------------------
  |  Branch (1180:13): [True: 1.03k, False: 0]
  |  Branch (1180:26): [True: 0, False: 1.03k]
  ------------------
 1181|      0|            ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1182|      0|            return 0;
 1183|      0|        }
 1184|  1.03k|    }
 1185|       |
 1186|  2.07k|    if (rl->level == OSSL_RECORD_PROTECTION_LEVEL_APPLICATION) {
  ------------------
  |  | 2926|  2.07k|#define OSSL_RECORD_PROTECTION_LEVEL_APPLICATION 3
  ------------------
  |  Branch (1186:9): [True: 0, False: 2.07k]
  ------------------
 1187|       |        /*
 1188|       |         * We ignore any read_ahead setting prior to the application protection
 1189|       |         * level. Otherwise we may read ahead data in a lower protection level
 1190|       |         * that is destined for a higher protection level. To simplify the logic
 1191|       |         * we don't support that at this stage.
 1192|       |         */
 1193|      0|        p = OSSL_PARAM_locate_const(options,
 1194|      0|            OSSL_LIBSSL_RECORD_LAYER_PARAM_READ_AHEAD);
  ------------------
  |  |  341|      0|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_READ_AHEAD "read_ahead"
  ------------------
 1195|      0|        if (p != NULL && !OSSL_PARAM_get_int(p, &rl->read_ahead)) {
  ------------------
  |  Branch (1195:13): [True: 0, False: 0]
  |  Branch (1195:26): [True: 0, False: 0]
  ------------------
 1196|      0|            ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1197|      0|            return 0;
 1198|      0|        }
 1199|      0|    }
 1200|       |
 1201|  2.07k|    return 1;
 1202|  2.07k|}
tls_int_new_record_layer:
 1212|  2.07k|{
 1213|  2.07k|    OSSL_RECORD_LAYER *rl = OPENSSL_zalloc(sizeof(*rl));
  ------------------
  |  |  109|  2.07k|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1214|  2.07k|    const OSSL_PARAM *p;
 1215|       |
 1216|  2.07k|    *retrl = NULL;
 1217|       |
 1218|  2.07k|    if (rl == NULL)
  ------------------
  |  Branch (1218:9): [True: 0, False: 2.07k]
  ------------------
 1219|      0|        return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
 1220|       |
 1221|       |    /*
 1222|       |     * Default the value for max_frag_len. This may be overridden by the
 1223|       |     * settings
 1224|       |     */
 1225|  2.07k|    rl->max_frag_len = SSL3_RT_MAX_PLAIN_LENGTH;
  ------------------
  |  |  177|  2.07k|#define SSL3_RT_MAX_PLAIN_LENGTH 16384
  ------------------
 1226|       |
 1227|       |    /* Loop through all the settings since they must all be understood */
 1228|  2.07k|    if (settings != NULL) {
  ------------------
  |  Branch (1228:9): [True: 2.07k, False: 0]
  ------------------
 1229|  2.07k|        for (p = settings; p->key != NULL; p++) {
  ------------------
  |  Branch (1229:28): [True: 0, False: 2.07k]
  ------------------
 1230|      0|            if (strcmp(p->key, OSSL_LIBSSL_RECORD_LAYER_PARAM_USE_ETM) == 0) {
  ------------------
  |  |  344|      0|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_USE_ETM "use_etm"
  ------------------
  |  Branch (1230:17): [True: 0, False: 0]
  ------------------
 1231|      0|                if (!OSSL_PARAM_get_int(p, &rl->use_etm)) {
  ------------------
  |  Branch (1231:21): [True: 0, False: 0]
  ------------------
 1232|      0|                    ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1233|      0|                    goto err;
 1234|      0|                }
 1235|      0|            } else if (strcmp(p->key,
  ------------------
  |  Branch (1235:24): [True: 0, False: 0]
  ------------------
 1236|      0|                           OSSL_LIBSSL_RECORD_LAYER_PARAM_MAX_FRAG_LEN)
  ------------------
  |  |  338|      0|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_MAX_FRAG_LEN "max_frag_len"
  ------------------
 1237|      0|                == 0) {
 1238|      0|                if (!OSSL_PARAM_get_uint(p, &rl->max_frag_len)) {
  ------------------
  |  Branch (1238:21): [True: 0, False: 0]
  ------------------
 1239|      0|                    ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1240|      0|                    goto err;
 1241|      0|                }
 1242|      0|            } else if (strcmp(p->key,
  ------------------
  |  Branch (1242:24): [True: 0, False: 0]
  ------------------
 1243|      0|                           OSSL_LIBSSL_RECORD_LAYER_PARAM_MAX_EARLY_DATA)
  ------------------
  |  |  337|      0|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_MAX_EARLY_DATA "max_early_data"
  ------------------
 1244|      0|                == 0) {
 1245|      0|                if (!OSSL_PARAM_get_uint32(p, &rl->max_early_data)) {
  ------------------
  |  Branch (1245:21): [True: 0, False: 0]
  ------------------
 1246|      0|                    ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1247|      0|                    goto err;
 1248|      0|                }
 1249|      0|            } else if (strcmp(p->key,
  ------------------
  |  Branch (1249:24): [True: 0, False: 0]
  ------------------
 1250|      0|                           OSSL_LIBSSL_RECORD_LAYER_PARAM_STREAM_MAC)
  ------------------
  |  |  342|      0|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_STREAM_MAC "stream_mac"
  ------------------
 1251|      0|                == 0) {
 1252|      0|                if (!OSSL_PARAM_get_int(p, &rl->stream_mac)) {
  ------------------
  |  Branch (1252:21): [True: 0, False: 0]
  ------------------
 1253|      0|                    ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1254|      0|                    goto err;
 1255|      0|                }
 1256|      0|            } else if (strcmp(p->key,
  ------------------
  |  Branch (1256:24): [True: 0, False: 0]
  ------------------
 1257|      0|                           OSSL_LIBSSL_RECORD_LAYER_PARAM_TLSTREE)
  ------------------
  |  |  343|      0|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_TLSTREE "tlstree"
  ------------------
 1258|      0|                == 0) {
 1259|      0|                if (!OSSL_PARAM_get_int(p, &rl->tlstree)) {
  ------------------
  |  Branch (1259:21): [True: 0, False: 0]
  ------------------
 1260|      0|                    ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1261|      0|                    goto err;
 1262|      0|                }
 1263|      0|            } else {
 1264|      0|                ERR_raise(ERR_LIB_SSL, SSL_R_UNKNOWN_MANDATORY_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1265|      0|                goto err;
 1266|      0|            }
 1267|      0|        }
 1268|  2.07k|    }
 1269|       |
 1270|  2.07k|    rl->libctx = libctx;
 1271|  2.07k|    rl->propq = propq;
 1272|       |
 1273|  2.07k|    rl->version = vers;
 1274|  2.07k|    rl->role = role;
 1275|  2.07k|    rl->direction = direction;
 1276|  2.07k|    rl->level = level;
 1277|  2.07k|    rl->taglen = taglen;
 1278|  2.07k|    rl->md = md;
 1279|       |
 1280|  2.07k|    rl->alert = SSL_AD_NO_ALERT;
  ------------------
  |  |   67|  2.07k|#define SSL_AD_NO_ALERT -1
  ------------------
 1281|  2.07k|    rl->rstate = SSL_ST_READ_HEADER;
  ------------------
  |  | 1183|  2.07k|#define SSL_ST_READ_HEADER 0xF0
  ------------------
 1282|       |
 1283|  2.07k|    if (level == OSSL_RECORD_PROTECTION_LEVEL_NONE)
  ------------------
  |  | 2923|  2.07k|#define OSSL_RECORD_PROTECTION_LEVEL_NONE 0
  ------------------
  |  Branch (1283:9): [True: 2.07k, False: 0]
  ------------------
 1284|  2.07k|        rl->is_first_record = 1;
 1285|       |
 1286|  2.07k|    if (!tls_set1_bio(rl, transport))
  ------------------
  |  Branch (1286:9): [True: 0, False: 2.07k]
  ------------------
 1287|      0|        goto err;
 1288|       |
 1289|  2.07k|    if (prev != NULL && !BIO_up_ref(prev))
  ------------------
  |  Branch (1289:9): [True: 0, False: 2.07k]
  |  Branch (1289:25): [True: 0, False: 0]
  ------------------
 1290|      0|        goto err;
 1291|  2.07k|    rl->prev = prev;
 1292|       |
 1293|  2.07k|    if (next != NULL && !BIO_up_ref(next))
  ------------------
  |  Branch (1293:9): [True: 1.03k, False: 1.03k]
  |  Branch (1293:25): [True: 0, False: 1.03k]
  ------------------
 1294|      0|        goto err;
 1295|  2.07k|    rl->next = next;
 1296|       |
 1297|  2.07k|    rl->cbarg = cbarg;
 1298|  2.07k|    if (fns != NULL) {
  ------------------
  |  Branch (1298:9): [True: 2.07k, False: 0]
  ------------------
 1299|  6.21k|        for (; fns->function_id != 0; fns++) {
  ------------------
  |  Branch (1299:16): [True: 4.14k, False: 2.07k]
  ------------------
 1300|  4.14k|            switch (fns->function_id) {
 1301|  2.07k|            case OSSL_FUNC_RLAYER_SKIP_EARLY_DATA:
  ------------------
  |  |  184|  2.07k|#define OSSL_FUNC_RLAYER_SKIP_EARLY_DATA 1
  ------------------
  |  Branch (1301:13): [True: 2.07k, False: 2.07k]
  ------------------
 1302|  2.07k|                rl->skip_early_data = OSSL_FUNC_rlayer_skip_early_data(fns);
 1303|  2.07k|                break;
 1304|      0|            case OSSL_FUNC_RLAYER_MSG_CALLBACK:
  ------------------
  |  |  186|      0|#define OSSL_FUNC_RLAYER_MSG_CALLBACK 2
  ------------------
  |  Branch (1304:13): [True: 0, False: 4.14k]
  ------------------
 1305|      0|                rl->msg_callback = OSSL_FUNC_rlayer_msg_callback(fns);
 1306|      0|                break;
 1307|  2.07k|            case OSSL_FUNC_RLAYER_SECURITY:
  ------------------
  |  |  188|  2.07k|#define OSSL_FUNC_RLAYER_SECURITY 3
  ------------------
  |  Branch (1307:13): [True: 2.07k, False: 2.07k]
  ------------------
 1308|  2.07k|                rl->security = OSSL_FUNC_rlayer_security(fns);
 1309|  2.07k|                break;
 1310|      0|            case OSSL_FUNC_RLAYER_PADDING:
  ------------------
  |  |  190|      0|#define OSSL_FUNC_RLAYER_PADDING 4
  ------------------
  |  Branch (1310:13): [True: 0, False: 4.14k]
  ------------------
 1311|      0|                rl->padding = OSSL_FUNC_rlayer_padding(fns);
 1312|      0|            default:
  ------------------
  |  Branch (1312:13): [True: 0, False: 4.14k]
  ------------------
 1313|       |                /* Just ignore anything we don't understand */
 1314|      0|                break;
 1315|  4.14k|            }
 1316|  4.14k|        }
 1317|  2.07k|    }
 1318|       |
 1319|  2.07k|    if (!tls_set_options(rl, options)) {
  ------------------
  |  Branch (1319:9): [True: 0, False: 2.07k]
  ------------------
 1320|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_FAILED_TO_GET_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1321|      0|        goto err;
 1322|      0|    }
 1323|       |
 1324|  2.07k|    if ((rl->options & SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS) == 0
  ------------------
  |  |  378|  2.07k|#define SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS SSL_OP_BIT(11)
  |  |  ------------------
  |  |  |  |  351|  2.07k|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (1324:9): [True: 2.07k, False: 0]
  ------------------
 1325|  2.07k|        && rl->version <= TLS1_VERSION
  ------------------
  |  |   24|  4.14k|#define TLS1_VERSION 0x0301
  ------------------
  |  Branch (1325:12): [True: 0, False: 2.07k]
  ------------------
 1326|      0|        && !EVP_CIPHER_is_a(ciph, "NULL")
  ------------------
  |  Branch (1326:12): [True: 0, False: 0]
  ------------------
 1327|      0|        && !EVP_CIPHER_is_a(ciph, "RC4")) {
  ------------------
  |  Branch (1327:12): [True: 0, False: 0]
  ------------------
 1328|       |        /*
 1329|       |         * Enable vulnerability countermeasure for CBC ciphers with known-IV
 1330|       |         * problem (http://www.openssl.org/~bodo/tls-cbc.txt)
 1331|       |         */
 1332|      0|        rl->need_empty_fragments = 1;
 1333|      0|    }
 1334|       |
 1335|  2.07k|    *retrl = rl;
 1336|  2.07k|    return OSSL_RECORD_RETURN_SUCCESS;
  ------------------
  |  |   45|  2.07k|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
 1337|      0|err:
 1338|      0|    tls_int_free(rl);
 1339|      0|    return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
 1340|  2.07k|}
tls_free:
 1424|  2.07k|{
 1425|  2.07k|    TLS_BUFFER *rbuf;
 1426|  2.07k|    size_t left, written;
 1427|  2.07k|    int ret = 1;
 1428|       |
 1429|  2.07k|    if (rl == NULL)
  ------------------
  |  Branch (1429:9): [True: 0, False: 2.07k]
  ------------------
 1430|      0|        return 1;
 1431|       |
 1432|  2.07k|    rbuf = &rl->rbuf;
 1433|       |
 1434|  2.07k|    left = TLS_BUFFER_get_left(rbuf);
  ------------------
  |  |  527|  2.07k|#define TLS_BUFFER_get_left(b) ((b)->left)
  ------------------
 1435|  2.07k|    if (left > 0) {
  ------------------
  |  Branch (1435:9): [True: 0, False: 2.07k]
  ------------------
 1436|       |        /*
 1437|       |         * This record layer is closing but we still have data left in our
 1438|       |         * buffer. It must be destined for the next epoch - so push it there.
 1439|       |         */
 1440|      0|        ret = BIO_write_ex(rl->next, rbuf->buf + rbuf->offset, left, &written);
 1441|      0|    }
 1442|  2.07k|    tls_int_free(rl);
 1443|       |
 1444|  2.07k|    return ret;
 1445|  2.07k|}
tls_get_max_records_default:
 1473|    342|{
 1474|       |    /*
 1475|       |     * If we have a pipeline capable cipher, and we have been configured to use
 1476|       |     * it, then return the preferred number of pipelines.
 1477|       |     */
 1478|    342|    if (rl->max_pipelines > 0
  ------------------
  |  Branch (1478:9): [True: 0, False: 342]
  ------------------
 1479|      0|        && rl->enc_ctx != NULL
  ------------------
  |  Branch (1479:12): [True: 0, False: 0]
  ------------------
 1480|      0|        && (EVP_CIPHER_get_flags(EVP_CIPHER_CTX_get0_cipher(rl->enc_ctx))
  ------------------
  |  Branch (1480:12): [True: 0, False: 0]
  ------------------
 1481|      0|               & EVP_CIPH_FLAG_PIPELINE)
  ------------------
  |  |  259|      0|#define EVP_CIPH_FLAG_PIPELINE 0X800000
  ------------------
 1482|      0|            != 0
 1483|      0|        && RLAYER_USE_EXPLICIT_IV(rl)) {
  ------------------
  |  |  396|      0|#define RLAYER_USE_EXPLICIT_IV(rl) ((rl)->version == TLS1_1_VERSION \
  |  |  ------------------
  |  |  |  |   25|      0|#define TLS1_1_VERSION 0x0302
  |  |  ------------------
  |  |  |  Branch (396:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  397|      0|    || (rl)->version == TLS1_2_VERSION                              \
  |  |  ------------------
  |  |  |  |   26|      0|#define TLS1_2_VERSION 0x0303
  |  |  ------------------
  |  |  |  Branch (397:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  398|      0|    || (rl)->version == DTLS1_BAD_VER                               \
  |  |  ------------------
  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  ------------------
  |  |  |  Branch (398:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  399|      0|    || (rl)->version == DTLS1_VERSION                               \
  |  |  ------------------
  |  |  |  |   28|      0|#define DTLS1_VERSION 0xFEFF
  |  |  ------------------
  |  |  |  Branch (399:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  400|      0|    || (rl)->version == DTLS1_2_VERSION)
  |  |  ------------------
  |  |  |  |   29|      0|#define DTLS1_2_VERSION 0xFEFD
  |  |  ------------------
  |  |  |  Branch (400:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1484|      0|        size_t pipes;
 1485|       |
 1486|      0|        if (len == 0)
  ------------------
  |  Branch (1486:13): [True: 0, False: 0]
  ------------------
 1487|      0|            return 1;
 1488|      0|        pipes = ((len - 1) / *preffrag) + 1;
 1489|       |
 1490|      0|        return (pipes < rl->max_pipelines) ? pipes : rl->max_pipelines;
  ------------------
  |  Branch (1490:16): [True: 0, False: 0]
  ------------------
 1491|      0|    }
 1492|       |
 1493|    342|    return 1;
 1494|    342|}
tls_get_max_records:
 1498|    342|{
 1499|    342|    return rl->funcs->get_max_records(rl, type, len, maxfrag, preffrag);
 1500|    342|}
tls_allocate_write_buffers_default:
 1506|    342|{
 1507|    342|    if (!tls_setup_write_buffer(rl, numtempl, 0, 0)) {
  ------------------
  |  Branch (1507:9): [True: 0, False: 342]
  ------------------
 1508|       |        /* RLAYERfatal() already called */
 1509|      0|        return 0;
 1510|      0|    }
 1511|       |
 1512|    342|    return 1;
 1513|    342|}
tls_initialise_write_packets_default:
 1522|    342|{
 1523|    342|    WPACKET *thispkt;
 1524|    342|    size_t j, align;
 1525|    342|    TLS_BUFFER *wb;
 1526|       |
 1527|    684|    for (j = 0; j < numtempl; j++) {
  ------------------
  |  Branch (1527:17): [True: 342, False: 342]
  ------------------
 1528|    342|        thispkt = &pkt[j];
 1529|    342|        wb = &bufs[j];
 1530|       |
 1531|    342|        wb->type = templates[j].type;
 1532|       |
 1533|    342|#if defined(SSL3_ALIGN_PAYLOAD) && SSL3_ALIGN_PAYLOAD != 0
 1534|    342|        align = (size_t)TLS_BUFFER_get_buf(wb);
  ------------------
  |  |  524|    342|#define TLS_BUFFER_get_buf(b) ((b)->buf)
  ------------------
 1535|    342|        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|    684|#define SSL3_RT_HEADER_LENGTH 5
  ------------------
  |  Branch (1535:18): [True: 0, False: 342]
  ------------------
 1536|    342|        align = SSL3_ALIGN_PAYLOAD - 1
  ------------------
  |  |  152|    342|#define SSL3_ALIGN_PAYLOAD 8
  ------------------
 1537|    342|            - ((align - 1) % SSL3_ALIGN_PAYLOAD);
  ------------------
  |  |  152|    342|#define SSL3_ALIGN_PAYLOAD 8
  ------------------
 1538|    342|#endif
 1539|    342|        TLS_BUFFER_set_offset(wb, align);
  ------------------
  |  |  531|    342|#define TLS_BUFFER_set_offset(b, o) ((b)->offset = (o))
  ------------------
 1540|       |
 1541|    342|        if (!WPACKET_init_static_len(thispkt, TLS_BUFFER_get_buf(wb),
  ------------------
  |  |  524|    342|#define TLS_BUFFER_get_buf(b) ((b)->buf)
  ------------------
  |  Branch (1541:13): [True: 0, False: 342]
  ------------------
 1542|    342|                TLS_BUFFER_get_len(wb), 0)) {
  ------------------
  |  |  526|    342|#define TLS_BUFFER_get_len(b) ((b)->len)
  ------------------
 1543|      0|            RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1544|      0|            return 0;
 1545|      0|        }
 1546|    342|        (*wpinited)++;
 1547|    342|        if (!WPACKET_allocate_bytes(thispkt, align, NULL)) {
  ------------------
  |  Branch (1547:13): [True: 0, False: 342]
  ------------------
 1548|      0|            RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1549|      0|            return 0;
 1550|      0|        }
 1551|    342|    }
 1552|       |
 1553|    342|    return 1;
 1554|    342|}
tls_prepare_record_header_default:
 1561|    342|{
 1562|    342|    size_t maxcomplen;
 1563|       |
 1564|    342|    *recdata = NULL;
 1565|       |
 1566|    342|    maxcomplen = templ->buflen;
 1567|    342|    if (rl->compctx != NULL)
  ------------------
  |  Branch (1567:9): [True: 0, False: 342]
  ------------------
 1568|      0|        maxcomplen += SSL3_RT_MAX_COMPRESSED_OVERHEAD;
  ------------------
  |  |  179|      0|#define SSL3_RT_MAX_COMPRESSED_OVERHEAD 1024
  ------------------
 1569|       |
 1570|    342|    if (!WPACKET_put_bytes_u8(thispkt, rectype)
  ------------------
  |  |  909|    684|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (1570:9): [True: 0, False: 342]
  ------------------
 1571|    342|        || !WPACKET_put_bytes_u16(thispkt, templ->version)
  ------------------
  |  |  911|    684|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (1571:12): [True: 0, False: 342]
  ------------------
 1572|    342|        || !WPACKET_start_sub_packet_u16(thispkt)
  ------------------
  |  |  812|    684|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (1572:12): [True: 0, False: 342]
  ------------------
 1573|    342|        || (rl->eivlen > 0
  ------------------
  |  Branch (1573:13): [True: 0, False: 342]
  ------------------
 1574|      0|            && !WPACKET_allocate_bytes(thispkt, rl->eivlen, NULL))
  ------------------
  |  Branch (1574:16): [True: 0, False: 0]
  ------------------
 1575|    342|        || (maxcomplen > 0
  ------------------
  |  Branch (1575:13): [True: 342, False: 0]
  ------------------
 1576|    342|            && !WPACKET_reserve_bytes(thispkt, maxcomplen,
  ------------------
  |  Branch (1576:16): [True: 0, False: 342]
  ------------------
 1577|    342|                recdata))) {
 1578|      0|        RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1579|      0|        return 0;
 1580|      0|    }
 1581|       |
 1582|    342|    return 1;
 1583|    342|}
tls_post_encryption_processing_default:
 1639|    342|{
 1640|    342|    size_t origlen, len;
 1641|    342|    size_t headerlen = rl->isdtls ? DTLS1_RT_HEADER_LENGTH
  ------------------
  |  |   41|      0|#define DTLS1_RT_HEADER_LENGTH 13
  ------------------
  |  Branch (1641:24): [True: 0, False: 342]
  ------------------
 1642|    342|                                  : SSL3_RT_HEADER_LENGTH;
  ------------------
  |  |  139|    684|#define SSL3_RT_HEADER_LENGTH 5
  ------------------
 1643|       |
 1644|       |    /* Allocate bytes for the encryption overhead */
 1645|    342|    if (!WPACKET_get_length(thispkt, &origlen)
  ------------------
  |  Branch (1645:9): [True: 0, False: 342]
  ------------------
 1646|       |        /* Check we allowed enough room for the encryption growth */
 1647|    342|        || !ossl_assert(origlen + SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD
  ------------------
  |  |   52|    684|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    684|    __FILE__, __LINE__)
  ------------------
  |  Branch (1647:12): [True: 0, False: 342]
  ------------------
 1648|    342|                - mac_size
 1649|    342|            >= thiswr->length)
 1650|       |        /* Encryption should never shrink the data! */
 1651|    342|        || origlen > thiswr->length
  ------------------
  |  Branch (1651:12): [True: 0, False: 342]
  ------------------
 1652|    342|        || (thiswr->length > origlen
  ------------------
  |  Branch (1652:13): [True: 0, False: 342]
  ------------------
 1653|      0|            && !WPACKET_allocate_bytes(thispkt,
  ------------------
  |  Branch (1653:16): [True: 0, False: 0]
  ------------------
 1654|      0|                thiswr->length - origlen,
 1655|      0|                NULL))) {
 1656|      0|        RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1657|      0|        return 0;
 1658|      0|    }
 1659|    342|    if (rl->use_etm && mac_size != 0) {
  ------------------
  |  Branch (1659:9): [True: 0, False: 342]
  |  Branch (1659:24): [True: 0, False: 0]
  ------------------
 1660|      0|        unsigned char *mac;
 1661|       |
 1662|      0|        if (!WPACKET_allocate_bytes(thispkt, mac_size, &mac)
  ------------------
  |  Branch (1662:13): [True: 0, False: 0]
  ------------------
 1663|      0|            || !rl->funcs->mac(rl, thiswr, mac, 1)) {
  ------------------
  |  Branch (1663:16): [True: 0, False: 0]
  ------------------
 1664|      0|            RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1665|      0|            return 0;
 1666|      0|        }
 1667|       |
 1668|      0|        TLS_RL_RECORD_add_length(thiswr, mac_size);
  ------------------
  |  |   87|      0|#define TLS_RL_RECORD_add_length(r, l) ((r)->length += (l))
  ------------------
 1669|      0|    }
 1670|       |
 1671|    342|    if (!WPACKET_get_length(thispkt, &len)
  ------------------
  |  Branch (1671:9): [True: 0, False: 342]
  ------------------
 1672|    342|        || !WPACKET_close(thispkt)) {
  ------------------
  |  Branch (1672:12): [True: 0, False: 342]
  ------------------
 1673|      0|        RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1674|      0|        return 0;
 1675|      0|    }
 1676|       |
 1677|    342|    if (rl->msg_callback != NULL) {
  ------------------
  |  Branch (1677:9): [True: 0, False: 342]
  ------------------
 1678|      0|        unsigned char *recordstart;
 1679|       |
 1680|      0|        recordstart = WPACKET_get_curr(thispkt) - len - headerlen;
 1681|      0|        rl->msg_callback(1, thiswr->rec_version, SSL3_RT_HEADER, recordstart,
  ------------------
  |  |  239|      0|#define SSL3_RT_HEADER 0x100
  ------------------
 1682|      0|            headerlen, rl->cbarg);
 1683|       |
 1684|      0|        if (rl->version == TLS1_3_VERSION && rl->enc_ctx != NULL) {
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1684:13): [True: 0, False: 0]
  |  Branch (1684:46): [True: 0, False: 0]
  ------------------
 1685|      0|            unsigned char ctype = thistempl->type;
 1686|       |
 1687|      0|            rl->msg_callback(1, thiswr->rec_version, SSL3_RT_INNER_CONTENT_TYPE,
  ------------------
  |  |  240|      0|#define SSL3_RT_INNER_CONTENT_TYPE 0x101
  ------------------
 1688|      0|                &ctype, 1, rl->cbarg);
 1689|      0|        }
 1690|      0|    }
 1691|       |
 1692|    342|    if (!WPACKET_finish(thispkt)) {
  ------------------
  |  Branch (1692:9): [True: 0, False: 342]
  ------------------
 1693|      0|        RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1694|      0|        return 0;
 1695|      0|    }
 1696|       |
 1697|    342|    TLS_RL_RECORD_add_length(thiswr, headerlen);
  ------------------
  |  |   87|    342|#define TLS_RL_RECORD_add_length(r, l) ((r)->length += (l))
  ------------------
 1698|       |
 1699|    342|    return 1;
 1700|    342|}
tls_write_records_default:
 1705|    342|{
 1706|    342|    WPACKET pkt[SSL_MAX_PIPELINES + 1];
 1707|    342|    TLS_RL_RECORD wr[SSL_MAX_PIPELINES + 1];
 1708|    342|    WPACKET *thispkt;
 1709|    342|    TLS_RL_RECORD *thiswr;
 1710|    342|    int mac_size = 0, ret = 0;
 1711|    342|    size_t wpinited = 0;
 1712|    342|    size_t j, prefix = 0;
 1713|    342|    OSSL_RECORD_TEMPLATE prefixtempl;
 1714|    342|    OSSL_RECORD_TEMPLATE *thistempl;
 1715|       |
 1716|    342|    if (rl->md_ctx != NULL && EVP_MD_CTX_get0_md(rl->md_ctx) != NULL) {
  ------------------
  |  Branch (1716:9): [True: 0, False: 342]
  |  Branch (1716:31): [True: 0, False: 0]
  ------------------
 1717|      0|        mac_size = EVP_MD_CTX_get_size(rl->md_ctx);
  ------------------
  |  |  482|      0|#define EVP_MD_CTX_get_size(e) EVP_MD_CTX_get_size_ex(e)
  ------------------
 1718|      0|        if (mac_size < 0) {
  ------------------
  |  Branch (1718:13): [True: 0, False: 0]
  ------------------
 1719|      0|            RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1720|      0|            goto err;
 1721|      0|        }
 1722|      0|    }
 1723|       |
 1724|    342|    if (!rl->funcs->allocate_write_buffers(rl, templates, numtempl, &prefix)) {
  ------------------
  |  Branch (1724:9): [True: 0, False: 342]
  ------------------
 1725|       |        /* RLAYERfatal() already called */
 1726|      0|        goto err;
 1727|      0|    }
 1728|       |
 1729|    342|    if (!rl->funcs->initialise_write_packets(rl, templates, numtempl,
  ------------------
  |  Branch (1729:9): [True: 0, False: 342]
  ------------------
 1730|    342|            &prefixtempl, pkt, rl->wbuf,
 1731|    342|            &wpinited)) {
 1732|       |        /* RLAYERfatal() already called */
 1733|      0|        goto err;
 1734|      0|    }
 1735|       |
 1736|       |    /* Clear our TLS_RL_RECORD structures */
 1737|    342|    memset(wr, 0, sizeof(wr));
 1738|    684|    for (j = 0; j < numtempl + prefix; j++) {
  ------------------
  |  Branch (1738:17): [True: 342, False: 342]
  ------------------
 1739|    342|        unsigned char *compressdata = NULL;
 1740|    342|        uint8_t rectype;
 1741|       |
 1742|    342|        thispkt = &pkt[j];
 1743|    342|        thiswr = &wr[j];
 1744|    342|        thistempl = (j < prefix) ? &prefixtempl : &templates[j - prefix];
  ------------------
  |  Branch (1744:21): [True: 0, False: 342]
  ------------------
 1745|       |
 1746|       |        /*
 1747|       |         * Default to the record type as specified in the template unless the
 1748|       |         * protocol implementation says differently.
 1749|       |         */
 1750|    342|        if (rl->funcs->get_record_type != NULL)
  ------------------
  |  Branch (1750:13): [True: 0, False: 342]
  ------------------
 1751|      0|            rectype = rl->funcs->get_record_type(rl, thistempl);
 1752|    342|        else
 1753|    342|            rectype = thistempl->type;
 1754|       |
 1755|    342|        TLS_RL_RECORD_set_type(thiswr, rectype);
  ------------------
  |  |   83|    342|#define TLS_RL_RECORD_set_type(r, t) ((r)->type = (t))
  ------------------
 1756|    342|        TLS_RL_RECORD_set_rec_version(thiswr, thistempl->version);
  ------------------
  |  |   84|    342|#define TLS_RL_RECORD_set_rec_version(r, v) ((r)->rec_version = (v))
  ------------------
 1757|       |
 1758|    342|        if (!rl->funcs->prepare_record_header(rl, thispkt, thistempl, rectype,
  ------------------
  |  Branch (1758:13): [True: 0, False: 342]
  ------------------
 1759|    342|                &compressdata)) {
 1760|       |            /* RLAYERfatal() already called */
 1761|      0|            goto err;
 1762|      0|        }
 1763|       |
 1764|       |        /* lets setup the record stuff. */
 1765|    342|        TLS_RL_RECORD_set_data(thiswr, compressdata);
  ------------------
  |  |   88|    342|#define TLS_RL_RECORD_set_data(r, d) ((r)->data = (d))
  ------------------
 1766|    342|        TLS_RL_RECORD_set_length(thiswr, thistempl->buflen);
  ------------------
  |  |   86|    342|#define TLS_RL_RECORD_set_length(r, l) ((r)->length = (l))
  ------------------
 1767|       |
 1768|    342|        TLS_RL_RECORD_set_input(thiswr, (unsigned char *)thistempl->buf);
  ------------------
  |  |   89|    342|#define TLS_RL_RECORD_set_input(r, i) ((r)->input = (i))
  ------------------
 1769|       |
 1770|       |        /*
 1771|       |         * we now 'read' from thiswr->input, thiswr->length bytes into
 1772|       |         * thiswr->data
 1773|       |         */
 1774|       |
 1775|       |        /* first we compress */
 1776|    342|        if (rl->compctx != NULL) {
  ------------------
  |  Branch (1776:13): [True: 0, False: 342]
  ------------------
 1777|      0|            if (!tls_do_compress(rl, thiswr)
  ------------------
  |  Branch (1777:17): [True: 0, False: 0]
  ------------------
 1778|      0|                || !WPACKET_allocate_bytes(thispkt, thiswr->length, NULL)) {
  ------------------
  |  Branch (1778:20): [True: 0, False: 0]
  ------------------
 1779|      0|                RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, SSL_R_COMPRESSION_FAILURE);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1780|      0|                goto err;
 1781|      0|            }
 1782|    342|        } else if (compressdata != NULL) {
  ------------------
  |  Branch (1782:20): [True: 342, False: 0]
  ------------------
 1783|    342|            if (!WPACKET_memcpy(thispkt, thiswr->input, thiswr->length)) {
  ------------------
  |  Branch (1783:17): [True: 0, False: 342]
  ------------------
 1784|      0|                RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1785|      0|                goto err;
 1786|      0|            }
 1787|    342|            TLS_RL_RECORD_reset_input(&wr[j]);
  ------------------
  |  |   90|    342|#define TLS_RL_RECORD_reset_input(r) ((r)->input = (r)->data)
  ------------------
 1788|    342|        }
 1789|       |
 1790|    342|        if (rl->funcs->add_record_padding != NULL
  ------------------
  |  Branch (1790:13): [True: 0, False: 342]
  ------------------
 1791|      0|            && !rl->funcs->add_record_padding(rl, thistempl, thispkt,
  ------------------
  |  Branch (1791:16): [True: 0, False: 0]
  ------------------
 1792|      0|                thiswr)) {
 1793|       |            /* RLAYERfatal() already called */
 1794|      0|            goto err;
 1795|      0|        }
 1796|       |
 1797|    342|        if (!rl->funcs->prepare_for_encryption(rl, mac_size, thispkt, thiswr)) {
  ------------------
  |  Branch (1797:13): [True: 0, False: 342]
  ------------------
 1798|       |            /* RLAYERfatal() already called */
 1799|      0|            goto err;
 1800|      0|        }
 1801|    342|    }
 1802|       |
 1803|    342|    if (prefix) {
  ------------------
  |  Branch (1803:9): [True: 0, False: 342]
  ------------------
 1804|      0|        if (rl->funcs->cipher(rl, wr, 1, 1, NULL, mac_size) < 1) {
  ------------------
  |  Branch (1804:13): [True: 0, False: 0]
  ------------------
 1805|      0|            if (rl->alert == SSL_AD_NO_ALERT) {
  ------------------
  |  |   67|      0|#define SSL_AD_NO_ALERT -1
  ------------------
  |  Branch (1805:17): [True: 0, False: 0]
  ------------------
 1806|      0|                RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1807|      0|            }
 1808|      0|            goto err;
 1809|      0|        }
 1810|      0|    }
 1811|       |
 1812|    342|    if (rl->funcs->cipher(rl, wr + prefix, numtempl, 1, NULL, mac_size) < 1) {
  ------------------
  |  Branch (1812:9): [True: 0, False: 342]
  ------------------
 1813|      0|        if (rl->alert == SSL_AD_NO_ALERT) {
  ------------------
  |  |   67|      0|#define SSL_AD_NO_ALERT -1
  ------------------
  |  Branch (1813:13): [True: 0, False: 0]
  ------------------
 1814|      0|            RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1815|      0|        }
 1816|      0|        goto err;
 1817|      0|    }
 1818|       |
 1819|    684|    for (j = 0; j < numtempl + prefix; j++) {
  ------------------
  |  Branch (1819:17): [True: 342, False: 342]
  ------------------
 1820|    342|        thispkt = &pkt[j];
 1821|    342|        thiswr = &wr[j];
 1822|    342|        thistempl = (j < prefix) ? &prefixtempl : &templates[j - prefix];
  ------------------
  |  Branch (1822:21): [True: 0, False: 342]
  ------------------
 1823|       |
 1824|    342|        if (!rl->funcs->post_encryption_processing(rl, mac_size, thistempl,
  ------------------
  |  Branch (1824:13): [True: 0, False: 342]
  ------------------
 1825|    342|                thispkt, thiswr)) {
 1826|       |            /* RLAYERfatal() already called */
 1827|      0|            goto err;
 1828|      0|        }
 1829|       |
 1830|       |        /* now let's set up wb */
 1831|    342|        TLS_BUFFER_set_left(&rl->wbuf[j], TLS_RL_RECORD_get_length(thiswr));
  ------------------
  |  |  528|    342|#define TLS_BUFFER_set_left(b, l) ((b)->left = (l))
  ------------------
 1832|    342|    }
 1833|       |
 1834|    342|    ret = 1;
 1835|    342|err:
 1836|    684|    for (j = 0; j < wpinited; j++)
  ------------------
  |  Branch (1836:17): [True: 342, False: 342]
  ------------------
 1837|    342|        WPACKET_cleanup(&pkt[j]);
 1838|    342|    return ret;
 1839|    342|}
tls_write_records:
 1843|    342|{
 1844|       |    /* Check we don't have pending data waiting to write */
 1845|    342|    if (!ossl_assert(rl->nextwbuf >= rl->numwpipes
  ------------------
  |  |   52|    342|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |  ------------------
  |  |  |  Branch (52:41): [True: 342, False: 0]
  |  |  |  Branch (52:41): [True: 0, False: 0]
  |  |  ------------------
  |  |   53|    342|    __FILE__, __LINE__)
  ------------------
  |  Branch (1845:9): [True: 0, False: 342]
  ------------------
 1846|    342|            || TLS_BUFFER_get_left(&rl->wbuf[rl->nextwbuf]) == 0)) {
 1847|      0|        RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1848|      0|        return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
 1849|      0|    }
 1850|       |
 1851|    342|    if (!rl->funcs->write_records(rl, templates, numtempl)) {
  ------------------
  |  Branch (1851:9): [True: 0, False: 342]
  ------------------
 1852|       |        /* RLAYERfatal already called */
 1853|      0|        return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
 1854|      0|    }
 1855|       |
 1856|    342|    rl->nextwbuf = 0;
 1857|       |    /* we now just need to write the buffers */
 1858|    342|    return tls_retry_write_records(rl);
 1859|    342|}
tls_retry_write_records:
 1862|    342|{
 1863|    342|    int i, ret;
 1864|    342|    TLS_BUFFER *thiswb;
 1865|    342|    size_t tmpwrit = 0;
 1866|       |
 1867|    342|    if (rl->nextwbuf >= rl->numwpipes)
  ------------------
  |  Branch (1867:9): [True: 0, False: 342]
  ------------------
 1868|      0|        return OSSL_RECORD_RETURN_SUCCESS;
  ------------------
  |  |   45|      0|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
 1869|       |
 1870|    342|    for (;;) {
 1871|    342|        thiswb = &rl->wbuf[rl->nextwbuf];
 1872|       |
 1873|    342|        clear_sys_error();
  ------------------
  |  |   31|    342|#define clear_sys_error() errno = 0
  ------------------
 1874|    342|        if (rl->bio != NULL) {
  ------------------
  |  Branch (1874:13): [True: 342, False: 0]
  ------------------
 1875|    342|            if (rl->funcs->prepare_write_bio != NULL) {
  ------------------
  |  Branch (1875:17): [True: 0, False: 342]
  ------------------
 1876|      0|                ret = rl->funcs->prepare_write_bio(rl, thiswb->type);
 1877|      0|                if (ret != OSSL_RECORD_RETURN_SUCCESS)
  ------------------
  |  |   45|      0|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
  |  Branch (1877:21): [True: 0, False: 0]
  ------------------
 1878|      0|                    return ret;
 1879|      0|            }
 1880|    342|            i = BIO_write(rl->bio, (char *)&(TLS_BUFFER_get_buf(thiswb)[TLS_BUFFER_get_offset(thiswb)]),
  ------------------
  |  |  524|    342|#define TLS_BUFFER_get_buf(b) ((b)->buf)
  ------------------
                          i = BIO_write(rl->bio, (char *)&(TLS_BUFFER_get_buf(thiswb)[TLS_BUFFER_get_offset(thiswb)]),
  ------------------
  |  |  530|    342|#define TLS_BUFFER_get_offset(b) ((b)->offset)
  ------------------
 1881|    342|                (unsigned int)TLS_BUFFER_get_left(thiswb));
  ------------------
  |  |  527|    342|#define TLS_BUFFER_get_left(b) ((b)->left)
  ------------------
 1882|    342|            if (i >= 0) {
  ------------------
  |  Branch (1882:17): [True: 342, False: 0]
  ------------------
 1883|    342|                tmpwrit = i;
 1884|    342|                if (i == 0 && BIO_should_retry(rl->bio))
  ------------------
  |  |  281|      0|#define BIO_should_retry(a) BIO_test_flags(a, BIO_FLAGS_SHOULD_RETRY)
  |  |  ------------------
  |  |  |  |  226|      0|#define BIO_FLAGS_SHOULD_RETRY 0x08
  |  |  ------------------
  |  |  |  Branch (281:29): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1884:21): [True: 0, False: 342]
  ------------------
 1885|      0|                    ret = OSSL_RECORD_RETURN_RETRY;
  ------------------
  |  |   46|      0|#define OSSL_RECORD_RETURN_RETRY 0
  ------------------
 1886|    342|                else
 1887|    342|                    ret = OSSL_RECORD_RETURN_SUCCESS;
  ------------------
  |  |   45|    342|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
 1888|    342|            } else {
 1889|      0|                if (BIO_should_retry(rl->bio)) {
  ------------------
  |  |  281|      0|#define BIO_should_retry(a) BIO_test_flags(a, BIO_FLAGS_SHOULD_RETRY)
  |  |  ------------------
  |  |  |  |  226|      0|#define BIO_FLAGS_SHOULD_RETRY 0x08
  |  |  ------------------
  |  |  |  Branch (281:29): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1890|      0|                    ret = OSSL_RECORD_RETURN_RETRY;
  ------------------
  |  |   46|      0|#define OSSL_RECORD_RETURN_RETRY 0
  ------------------
 1891|      0|                } else {
 1892|      0|                    ERR_raise_data(ERR_LIB_SYS, get_last_sys_error(),
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                                  ERR_raise_data(ERR_LIB_SYS, get_last_sys_error(),
  ------------------
  |  |   55|      0|#define ERR_LIB_SYS 2
  ------------------
                                  ERR_raise_data(ERR_LIB_SYS, get_last_sys_error(),
  ------------------
  |  |   30|      0|#define get_last_sys_error() errno
  ------------------
 1893|      0|                        "tls_retry_write_records failure");
 1894|      0|                    ret = OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
 1895|      0|                }
 1896|      0|            }
 1897|    342|        } else {
 1898|      0|            RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, SSL_R_BIO_NOT_SET);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1899|      0|            ret = OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
 1900|      0|            i = -1;
 1901|      0|        }
 1902|       |
 1903|       |        /*
 1904|       |         * When an empty fragment is sent on a connection using KTLS,
 1905|       |         * it is sent as a write of zero bytes.  If this zero byte
 1906|       |         * write succeeds, i will be 0 rather than a non-zero value.
 1907|       |         * Treat i == 0 as success rather than an error for zero byte
 1908|       |         * writes to permit this case.
 1909|       |         */
 1910|    342|        if (i >= 0 && tmpwrit == TLS_BUFFER_get_left(thiswb)) {
  ------------------
  |  |  527|    342|#define TLS_BUFFER_get_left(b) ((b)->left)
  ------------------
  |  Branch (1910:13): [True: 342, False: 0]
  |  Branch (1910:23): [True: 342, False: 0]
  ------------------
 1911|    342|            TLS_BUFFER_set_left(thiswb, 0);
  ------------------
  |  |  528|    342|#define TLS_BUFFER_set_left(b, l) ((b)->left = (l))
  ------------------
 1912|    342|            TLS_BUFFER_add_offset(thiswb, tmpwrit);
  ------------------
  |  |  532|    342|#define TLS_BUFFER_add_offset(b, o) ((b)->offset += (o))
  ------------------
 1913|    342|            if (++(rl->nextwbuf) < rl->numwpipes)
  ------------------
  |  Branch (1913:17): [True: 0, False: 342]
  ------------------
 1914|      0|                continue;
 1915|       |
 1916|    342|            if (rl->nextwbuf == rl->numwpipes
  ------------------
  |  Branch (1916:17): [True: 342, False: 0]
  ------------------
 1917|    342|                && (rl->mode & SSL_MODE_RELEASE_BUFFERS) != 0)
  ------------------
  |  |  537|    342|#define SSL_MODE_RELEASE_BUFFERS 0x00000010U
  ------------------
  |  Branch (1917:20): [True: 0, False: 342]
  ------------------
 1918|      0|                tls_release_write_buffer(rl);
 1919|    342|            return OSSL_RECORD_RETURN_SUCCESS;
  ------------------
  |  |   45|    342|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
 1920|    342|        } else if (i <= 0) {
  ------------------
  |  Branch (1920:20): [True: 0, False: 0]
  ------------------
 1921|       |            /*
 1922|       |             * If the app buffer is used directly (kTLS) and the caller is
 1923|       |             * allowed to move it, copy the unsent data so the original
 1924|       |             * buffer can be safely released.
 1925|       |             */
 1926|      0|            if (TLS_BUFFER_is_app_buffer(thiswb)
  ------------------
  |  |  534|      0|#define TLS_BUFFER_is_app_buffer(b) ((b)->app_buffer)
  |  |  ------------------
  |  |  |  Branch (534:37): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1927|      0|                && (rl->mode & SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER) != 0) {
  ------------------
  |  |  526|      0|#define SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER 0x00000002U
  ------------------
  |  Branch (1927:20): [True: 0, False: 0]
  ------------------
 1928|      0|                size_t left = TLS_BUFFER_get_left(thiswb);
  ------------------
  |  |  527|      0|#define TLS_BUFFER_get_left(b) ((b)->left)
  ------------------
 1929|      0|                unsigned char *buf;
 1930|       |
 1931|      0|                buf = OPENSSL_malloc(left);
  ------------------
  |  |  107|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1932|      0|                if (buf == NULL) {
  ------------------
  |  Branch (1932:21): [True: 0, False: 0]
  ------------------
 1933|      0|                    RLAYERfatal(rl, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  390|      0|#define RLAYERfatal(rl, al, r) RLAYERfatal_data((rl), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  392|      0|    (ERR_new(),                                                  \
  |  |  |  |  393|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  394|      0|        ossl_rlayer_fatal)
  |  |  ------------------
  ------------------
 1934|      0|                    return OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
 1935|      0|                }
 1936|      0|                memcpy(buf,
 1937|      0|                    TLS_BUFFER_get_buf(thiswb) + TLS_BUFFER_get_offset(thiswb),
  ------------------
  |  |  524|      0|#define TLS_BUFFER_get_buf(b) ((b)->buf)
  ------------------
                                  TLS_BUFFER_get_buf(thiswb) + TLS_BUFFER_get_offset(thiswb),
  ------------------
  |  |  530|      0|#define TLS_BUFFER_get_offset(b) ((b)->offset)
  ------------------
 1938|      0|                    left);
 1939|      0|                TLS_BUFFER_set_buf(thiswb, buf);
  ------------------
  |  |  525|      0|#define TLS_BUFFER_set_buf(b, n) ((b)->buf = (n))
  ------------------
 1940|      0|                TLS_BUFFER_set_offset(thiswb, 0);
  ------------------
  |  |  531|      0|#define TLS_BUFFER_set_offset(b, o) ((b)->offset = (o))
  ------------------
 1941|      0|                TLS_BUFFER_set_app_buffer(thiswb, 0);
  ------------------
  |  |  533|      0|#define TLS_BUFFER_set_app_buffer(b, l) ((b)->app_buffer = (l))
  ------------------
 1942|      0|            }
 1943|      0|            if (rl->isdtls) {
  ------------------
  |  Branch (1943:17): [True: 0, False: 0]
  ------------------
 1944|       |                /*
 1945|       |                 * For DTLS, just drop it. That's kind of the whole point in
 1946|       |                 * using a datagram service
 1947|       |                 */
 1948|      0|                TLS_BUFFER_set_left(thiswb, 0);
  ------------------
  |  |  528|      0|#define TLS_BUFFER_set_left(b, l) ((b)->left = (l))
  ------------------
 1949|      0|                if (++(rl->nextwbuf) == rl->numwpipes
  ------------------
  |  Branch (1949:21): [True: 0, False: 0]
  ------------------
 1950|      0|                    && (rl->mode & SSL_MODE_RELEASE_BUFFERS) != 0)
  ------------------
  |  |  537|      0|#define SSL_MODE_RELEASE_BUFFERS 0x00000010U
  ------------------
  |  Branch (1950:24): [True: 0, False: 0]
  ------------------
 1951|      0|                    tls_release_write_buffer(rl);
 1952|      0|            }
 1953|      0|            return ret;
 1954|      0|        }
 1955|      0|        TLS_BUFFER_add_offset(thiswb, tmpwrit);
  ------------------
  |  |  532|      0|#define TLS_BUFFER_add_offset(b, o) ((b)->offset += (o))
  ------------------
 1956|      0|        TLS_BUFFER_sub_left(thiswb, tmpwrit);
  ------------------
  |  |  529|      0|#define TLS_BUFFER_sub_left(b, l) ((b)->left -= (l))
  ------------------
 1957|      0|    }
 1958|    342|}
tls_set1_bio:
 1966|  3.44k|{
 1967|  3.44k|    if (bio != NULL && !BIO_up_ref(bio))
  ------------------
  |  Branch (1967:9): [True: 2.05k, False: 1.38k]
  |  Branch (1967:24): [True: 0, False: 2.05k]
  ------------------
 1968|      0|        return 0;
 1969|  3.44k|    BIO_free_all(rl->bio);
 1970|  3.44k|    rl->bio = bio;
 1971|       |
 1972|  3.44k|    return 1;
 1973|  3.44k|}
tls_set_first_handshake:
 1995|  2.07k|{
 1996|  2.07k|    rl->is_first_handshake = first;
 1997|  2.07k|}
tls_common.c:tls_allow_compression:
  114|    684|{
  115|    684|    if (rl->options & SSL_OP_NO_COMPRESSION)
  ------------------
  |  |  395|    684|#define SSL_OP_NO_COMPRESSION SSL_OP_BIT(17)
  |  |  ------------------
  |  |  |  |  351|    684|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (115:9): [True: 684, False: 0]
  ------------------
  116|    684|        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);
  ------------------
  |  | 2769|      0|#define SSL_SECOP_COMPRESSION (15 | SSL_SECOP_OTHER_NONE)
  |  |  ------------------
  |  |  |  | 2728|      0|#define SSL_SECOP_OTHER_NONE 0
  |  |  ------------------
  ------------------
  |  Branch (119:12): [True: 0, False: 0]
  ------------------
  120|    684|}
tls_common.c:tls_release_write_buffer_int:
  124|  2.41k|{
  125|  2.41k|    TLS_BUFFER *wb;
  126|  2.41k|    size_t pipes;
  127|       |
  128|  2.41k|    pipes = rl->numwpipes;
  129|       |
  130|  2.75k|    while (pipes > start) {
  ------------------
  |  Branch (130:12): [True: 342, False: 2.41k]
  ------------------
  131|    342|        wb = &rl->wbuf[pipes - 1];
  132|       |
  133|    342|        if (TLS_BUFFER_is_app_buffer(wb))
  ------------------
  |  |  534|    342|#define TLS_BUFFER_is_app_buffer(b) ((b)->app_buffer)
  |  |  ------------------
  |  |  |  Branch (534:37): [True: 0, False: 342]
  |  |  ------------------
  ------------------
  134|      0|            TLS_BUFFER_set_app_buffer(wb, 0);
  ------------------
  |  |  533|      0|#define TLS_BUFFER_set_app_buffer(b, l) ((b)->app_buffer = (l))
  ------------------
  135|    342|        else
  136|    342|            OPENSSL_free(wb->buf);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  137|       |        wb->buf = NULL;
  138|    342|        pipes--;
  139|    342|    }
  140|  2.41k|}
tls_common.c:tls_int_free:
 1399|  2.07k|{
 1400|  2.07k|    BIO_free(rl->prev);
 1401|  2.07k|    BIO_free_all(rl->bio);
 1402|  2.07k|    BIO_free(rl->next);
 1403|  2.07k|    ossl_tls_buffer_release(&rl->rbuf);
 1404|       |
 1405|  2.07k|    tls_release_write_buffer(rl);
 1406|       |
 1407|  2.07k|    EVP_CIPHER_CTX_free(rl->enc_ctx);
 1408|  2.07k|    EVP_MAC_CTX_free(rl->mac_ctx);
 1409|  2.07k|    EVP_MD_CTX_free(rl->md_ctx);
 1410|  2.07k|#ifndef OPENSSL_NO_COMP
 1411|  2.07k|    COMP_CTX_free(rl->compctx);
 1412|  2.07k|#endif
 1413|  2.07k|    OPENSSL_free(rl->iv);
  ------------------
  |  |  132|  2.07k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1414|  2.07k|    OPENSSL_free(rl->nonce);
  ------------------
  |  |  132|  2.07k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1415|  2.07k|    if (rl->version == SSL3_VERSION)
  ------------------
  |  |   23|  2.07k|#define SSL3_VERSION 0x0300
  ------------------
  |  Branch (1415:9): [True: 0, False: 2.07k]
  ------------------
 1416|      0|        OPENSSL_cleanse(rl->mac_secret, sizeof(rl->mac_secret));
 1417|       |
 1418|  2.07k|    TLS_RL_RECORD_release(rl->rrec, SSL_MAX_PIPELINES);
  ------------------
  |  |   74|  2.07k|#define SSL_MAX_PIPELINES 32
  ------------------
 1419|       |
 1420|  2.07k|    OPENSSL_free(rl);
  ------------------
  |  |  132|  2.07k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1421|  2.07k|}
tls_common.c:TLS_RL_RECORD_release:
   33|  2.07k|{
   34|  2.07k|    size_t i;
   35|       |
   36|  68.3k|    for (i = 0; i < num_recs; i++) {
  ------------------
  |  Branch (36:17): [True: 66.3k, False: 2.07k]
  ------------------
   37|  66.3k|        OPENSSL_free(r[i].comp);
  ------------------
  |  |  132|  66.3k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   38|       |        r[i].comp = NULL;
   39|  66.3k|    }
   40|  2.07k|}
tls_common.c:tls_release_write_buffer:
  223|  2.07k|{
  224|  2.07k|    tls_release_write_buffer_int(rl, 0);
  225|       |
  226|  2.07k|    rl->numwpipes = 0;
  227|  2.07k|}
tls_common.c:tls_new_record_layer:
 1356|  2.07k|{
 1357|  2.07k|    int ret;
 1358|       |
 1359|  2.07k|    ret = tls_int_new_record_layer(libctx, propq, vers, role, direction, level,
 1360|  2.07k|        ciph, taglen, md, comp, prev,
 1361|  2.07k|        transport, next, settings,
 1362|  2.07k|        options, fns, cbarg, retrl);
 1363|       |
 1364|  2.07k|    if (ret != OSSL_RECORD_RETURN_SUCCESS)
  ------------------
  |  |   45|  2.07k|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
  |  Branch (1364:9): [True: 0, False: 2.07k]
  ------------------
 1365|      0|        return ret;
 1366|       |
 1367|  2.07k|    switch (vers) {
 1368|  2.07k|    case TLS_ANY_VERSION:
  ------------------
  |  |   40|  2.07k|#define TLS_ANY_VERSION 0x10000
  ------------------
  |  Branch (1368:5): [True: 2.07k, False: 0]
  ------------------
 1369|  2.07k|        (*retrl)->funcs = &tls_any_funcs;
 1370|  2.07k|        break;
 1371|      0|    case TLS1_3_VERSION:
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1371:5): [True: 0, False: 2.07k]
  ------------------
 1372|      0|        (*retrl)->funcs = &tls_1_3_funcs;
 1373|      0|        break;
 1374|      0|    case TLS1_2_VERSION:
  ------------------
  |  |   26|      0|#define TLS1_2_VERSION 0x0303
  ------------------
  |  Branch (1374:5): [True: 0, False: 2.07k]
  ------------------
 1375|      0|    case TLS1_1_VERSION:
  ------------------
  |  |   25|      0|#define TLS1_1_VERSION 0x0302
  ------------------
  |  Branch (1375:5): [True: 0, False: 2.07k]
  ------------------
 1376|      0|    case TLS1_VERSION:
  ------------------
  |  |   24|      0|#define TLS1_VERSION 0x0301
  ------------------
  |  Branch (1376:5): [True: 0, False: 2.07k]
  ------------------
 1377|      0|        (*retrl)->funcs = &tls_1_funcs;
 1378|      0|        break;
 1379|      0|    default:
  ------------------
  |  Branch (1379:5): [True: 0, False: 2.07k]
  ------------------
 1380|       |        /* Should not happen */
 1381|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1382|      0|        ret = OSSL_RECORD_RETURN_FATAL;
  ------------------
  |  |   48|      0|#define OSSL_RECORD_RETURN_FATAL -2
  ------------------
 1383|      0|        goto err;
 1384|  2.07k|    }
 1385|       |
 1386|  2.07k|    ret = (*retrl)->funcs->set_crypto_state(*retrl, level, key, keylen, iv,
 1387|  2.07k|        ivlen, mackey, mackeylen, ciph,
 1388|  2.07k|        taglen, mactype, md, comp);
 1389|       |
 1390|  2.07k|err:
 1391|  2.07k|    if (ret != OSSL_RECORD_RETURN_SUCCESS) {
  ------------------
  |  |   45|  2.07k|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
  |  Branch (1391:9): [True: 0, False: 2.07k]
  ------------------
 1392|      0|        tls_int_free(*retrl);
 1393|       |        *retrl = NULL;
 1394|      0|    }
 1395|  2.07k|    return ret;
 1396|  2.07k|}

tlsany_meth.c:tls_any_set_crypto_state:
   26|  2.07k|{
   27|  2.07k|    if (level != OSSL_RECORD_PROTECTION_LEVEL_NONE) {
  ------------------
  |  | 2923|  2.07k|#define OSSL_RECORD_PROTECTION_LEVEL_NONE 0
  ------------------
  |  Branch (27:9): [True: 0, False: 2.07k]
  ------------------
   28|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      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|  2.07k|    return OSSL_RECORD_RETURN_SUCCESS;
  ------------------
  |  |   45|  2.07k|#define OSSL_RECORD_RETURN_SUCCESS 1
  ------------------
   35|  2.07k|}
tlsany_meth.c:tls_any_cipher:
   40|    342|{
   41|    342|    return 1;
   42|    342|}
tlsany_meth.c:tls_any_prepare_for_encryption:
  129|    342|{
  130|       |    /* No encryption, so nothing to do */
  131|    342|    return 1;
  132|    342|}

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

ssl3_cleanup_key_block:
   19|  1.73k|{
   20|  1.73k|    OPENSSL_clear_free(s->s3.tmp.key_block, s->s3.tmp.key_block_length);
  ------------------
  |  |  130|  1.73k|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   21|       |    s->s3.tmp.key_block = NULL;
   22|  1.73k|    s->s3.tmp.key_block_length = 0;
   23|  1.73k|}
ssl3_init_finished_mac:
   26|    342|{
   27|    342|    BIO *buf = BIO_new(BIO_s_mem());
   28|       |
   29|    342|    if (buf == NULL) {
  ------------------
  |  Branch (29:9): [True: 0, False: 342]
  ------------------
   30|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_BIO_LIB);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
   31|      0|        return 0;
   32|      0|    }
   33|    342|    ssl3_free_digest_list(s);
   34|    342|    s->s3.handshake_buffer = buf;
   35|       |    (void)BIO_set_close(s->s3.handshake_buffer, BIO_CLOSE);
  ------------------
  |  |  643|    342|#define BIO_set_close(b, c) (int)BIO_ctrl(b, BIO_CTRL_SET_CLOSE, (c), NULL)
  |  |  ------------------
  |  |  |  |   98|    342|#define BIO_CTRL_SET_CLOSE 9 /* man - set the 'close' on free */
  |  |  ------------------
  ------------------
   36|    342|    return 1;
   37|    342|}
ssl3_free_digest_list:
   45|  2.07k|{
   46|  2.07k|    BIO_free(s->s3.handshake_buffer);
   47|  2.07k|    s->s3.handshake_buffer = NULL;
   48|  2.07k|    EVP_MD_CTX_free(s->s3.handshake_dgst);
   49|       |    s->s3.handshake_dgst = NULL;
   50|  2.07k|}
ssl3_finish_mac:
   53|    342|{
   54|    342|    int ret;
   55|       |
   56|    342|    if (s->s3.handshake_dgst == NULL) {
  ------------------
  |  Branch (56:9): [True: 342, False: 0]
  ------------------
   57|       |        /* Note: this writes to a memory BIO so a failure is a fatal error */
   58|    342|        if (len > INT_MAX) {
  ------------------
  |  Branch (58:13): [True: 0, False: 342]
  ------------------
   59|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_OVERFLOW_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
   60|      0|            return 0;
   61|      0|        }
   62|    342|        ret = BIO_write(s->s3.handshake_buffer, (void *)buf, (int)len);
   63|    342|        if (ret <= 0 || ret != (int)len) {
  ------------------
  |  Branch (63:13): [True: 0, False: 342]
  |  Branch (63:25): [True: 0, False: 342]
  ------------------
   64|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
   65|      0|            return 0;
   66|      0|        }
   67|    342|    } else {
   68|      0|        ret = EVP_DigestUpdate(s->s3.handshake_dgst, buf, len);
   69|      0|        if (!ret) {
  ------------------
  |  Branch (69:13): [True: 0, False: 0]
  ------------------
   70|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
   71|      0|            return 0;
   72|      0|        }
   73|      0|    }
   74|    342|    return 1;
   75|    342|}

ssl_sort_cipher_list:
 3766|      2|{
 3767|      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]))
  |  |  ------------------
  ------------------
 3768|      2|        cipher_compare);
 3769|      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]))
  |  |  ------------------
  ------------------
 3770|      2|        cipher_compare);
 3771|      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]))
  |  |  ------------------
  ------------------
 3772|      2|}
ssl3_num_ciphers:
 3775|    347|{
 3776|    347|    return SSL3_NUM_CIPHERS;
  ------------------
  |  |   28|    347|#define SSL3_NUM_CIPHERS OSSL_NELEM(ssl3_ciphers)
  |  |  ------------------
  |  |  |  |   14|    347|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  |  |  ------------------
  ------------------
 3777|    347|}
ssl3_get_cipher:
 3780|  66.2k|{
 3781|  66.2k|    if (u < SSL3_NUM_CIPHERS)
  ------------------
  |  |   28|  66.2k|#define SSL3_NUM_CIPHERS OSSL_NELEM(ssl3_ciphers)
  |  |  ------------------
  |  |  |  |   14|  66.2k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  |  |  ------------------
  ------------------
  |  Branch (3781:9): [True: 66.2k, False: 0]
  ------------------
 3782|  66.2k|        return &(ssl3_ciphers[SSL3_NUM_CIPHERS - 1 - u]);
  ------------------
  |  |   28|  66.2k|#define SSL3_NUM_CIPHERS OSSL_NELEM(ssl3_ciphers)
  |  |  ------------------
  |  |  |  |   14|  66.2k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  |  |  ------------------
  ------------------
 3783|      0|    else
 3784|      0|        return NULL;
 3785|  66.2k|}
ssl3_set_handshake_header:
 3788|    342|{
 3789|       |    /* No header in the event of a CCS */
 3790|    342|    if (htype == SSL3_MT_CHANGE_CIPHER_SPEC)
  ------------------
  |  |  337|    342|#define SSL3_MT_CHANGE_CIPHER_SPEC 0x0101
  ------------------
  |  Branch (3790:9): [True: 0, False: 342]
  ------------------
 3791|      0|        return 1;
 3792|       |
 3793|       |    /* Set the content type and 3 bytes for the message len */
 3794|    342|    if (!WPACKET_put_bytes_u8(pkt, htype)
  ------------------
  |  |  909|    684|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (3794:9): [True: 0, False: 342]
  ------------------
 3795|    342|        || !WPACKET_start_sub_packet_u24(pkt))
  ------------------
  |  |  814|    342|    WPACKET_start_sub_packet_len__((pkt), 3)
  ------------------
  |  Branch (3795:12): [True: 0, False: 342]
  ------------------
 3796|      0|        return 0;
 3797|       |
 3798|    342|    return 1;
 3799|    342|}
ssl3_handshake_write:
 3802|    342|{
 3803|    342|    return ssl3_do_write(s, SSL3_RT_HANDSHAKE);
  ------------------
  |  |  221|    342|#define SSL3_RT_HANDSHAKE 22
  ------------------
 3804|    342|}
ssl3_new:
 3807|    347|{
 3808|    347|#ifndef OPENSSL_NO_SRP
 3809|    347|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|    347|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|    347|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 347]
  |  |  |  |  ------------------
  |  |  |  |   33|    347|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|    347|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 347, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    347|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    347|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1231:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 3810|       |
 3811|    347|    if (sc == NULL)
  ------------------
  |  Branch (3811:9): [True: 0, False: 347]
  ------------------
 3812|      0|        return 0;
 3813|       |
 3814|    347|    if (!ssl_srp_ctx_init_intern(sc))
  ------------------
  |  Branch (3814:9): [True: 0, False: 347]
  ------------------
 3815|      0|        return 0;
 3816|    347|#endif
 3817|       |
 3818|    347|    if (!s->method->ssl_clear(s))
  ------------------
  |  Branch (3818:9): [True: 0, False: 347]
  ------------------
 3819|      0|        return 0;
 3820|       |
 3821|    347|    return 1;
 3822|    347|}
ssl3_free:
 3825|    347|{
 3826|    347|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|    347|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|    347|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 347]
  |  |  |  |  ------------------
  |  |  |  |   33|    347|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|    347|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 347, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    347|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    347|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1231:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 3827|    347|    size_t i;
 3828|       |
 3829|    347|    if (sc == NULL)
  ------------------
  |  Branch (3829:9): [True: 0, False: 347]
  ------------------
 3830|      0|        return;
 3831|       |
 3832|    347|    ssl3_cleanup_key_block(sc);
 3833|       |
 3834|    347|    EVP_PKEY_free(sc->s3.peer_tmp);
 3835|    347|    sc->s3.peer_tmp = NULL;
 3836|       |
 3837|  1.03k|    for (i = 0; i < sc->s3.tmp.num_ks_pkey; i++)
  ------------------
  |  Branch (3837:17): [True: 684, False: 347]
  ------------------
 3838|    684|        if (sc->s3.tmp.ks_pkey[i] != NULL) {
  ------------------
  |  Branch (3838:13): [True: 684, False: 0]
  ------------------
 3839|    684|            if (sc->s3.tmp.pkey == sc->s3.tmp.ks_pkey[i])
  ------------------
  |  Branch (3839:17): [True: 342, False: 342]
  ------------------
 3840|    342|                sc->s3.tmp.pkey = NULL;
 3841|       |
 3842|    684|            EVP_PKEY_free(sc->s3.tmp.ks_pkey[i]);
 3843|    684|            sc->s3.tmp.ks_pkey[i] = NULL;
 3844|    684|        }
 3845|    347|    sc->s3.tmp.num_ks_pkey = 0;
 3846|       |
 3847|    347|    if (sc->s3.tmp.pkey != NULL) {
  ------------------
  |  Branch (3847:9): [True: 0, False: 347]
  ------------------
 3848|      0|        EVP_PKEY_free(sc->s3.tmp.pkey);
 3849|      0|        sc->s3.tmp.pkey = NULL;
 3850|      0|    }
 3851|       |
 3852|    347|    ssl_evp_cipher_free(sc->s3.tmp.new_sym_enc);
 3853|    347|    ssl_evp_md_free(sc->s3.tmp.new_hash);
 3854|       |
 3855|    347|    OPENSSL_free(sc->s3.tmp.ctype);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3856|    347|    sk_X509_NAME_pop_free(sc->s3.tmp.peer_ca_names, X509_NAME_free);
  ------------------
  |  |   70|    347|#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))
  ------------------
 3857|    347|    OPENSSL_free(sc->s3.tmp.ciphers_raw);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3858|    347|    OPENSSL_clear_free(sc->s3.tmp.pms, sc->s3.tmp.pmslen);
  ------------------
  |  |  130|    347|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3859|    347|    OPENSSL_free(sc->s3.tmp.peer_sigalgs);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3860|    347|    OPENSSL_free(sc->s3.tmp.peer_cert_sigalgs);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3861|    347|    OPENSSL_free(sc->s3.tmp.valid_flags);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3862|    347|    ssl3_free_digest_list(sc);
 3863|    347|    OPENSSL_free(sc->s3.alpn_selected);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3864|    347|    OPENSSL_free(sc->s3.alpn_proposed);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3865|    347|    ossl_quic_tls_free(sc->qtls);
 3866|       |
 3867|    347|#ifndef OPENSSL_NO_PSK
 3868|    347|    OPENSSL_free(sc->s3.tmp.psk);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3869|    347|#endif
 3870|       |
 3871|    347|#ifndef OPENSSL_NO_SRP
 3872|    347|    ssl_srp_ctx_free_intern(sc);
 3873|    347|#endif
 3874|    347|    memset(&sc->s3, 0, sizeof(sc->s3));
 3875|    347|}
ssl3_clear:
 3878|  1.38k|{
 3879|  1.38k|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|  1.38k|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|  1.38k|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 1.38k]
  |  |  |  |  ------------------
  |  |  |  |   33|  1.38k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|  1.38k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 1.38k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|  1.38k|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|  1.38k|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1231:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 3880|  1.38k|    int flags;
 3881|  1.38k|    size_t i;
 3882|       |
 3883|  1.38k|    if (sc == NULL)
  ------------------
  |  Branch (3883:9): [True: 0, False: 1.38k]
  ------------------
 3884|      0|        return 0;
 3885|       |
 3886|  1.38k|    ssl3_cleanup_key_block(sc);
 3887|  1.38k|    OPENSSL_free(sc->s3.tmp.ctype);
  ------------------
  |  |  132|  1.38k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3888|  1.38k|    sk_X509_NAME_pop_free(sc->s3.tmp.peer_ca_names, X509_NAME_free);
  ------------------
  |  |   70|  1.38k|#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))
  ------------------
 3889|  1.38k|    OPENSSL_free(sc->s3.tmp.ciphers_raw);
  ------------------
  |  |  132|  1.38k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3890|  1.38k|    OPENSSL_clear_free(sc->s3.tmp.pms, sc->s3.tmp.pmslen);
  ------------------
  |  |  130|  1.38k|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3891|  1.38k|    OPENSSL_free(sc->s3.tmp.peer_sigalgs);
  ------------------
  |  |  132|  1.38k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3892|  1.38k|    OPENSSL_free(sc->s3.tmp.peer_cert_sigalgs);
  ------------------
  |  |  132|  1.38k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3893|  1.38k|    OPENSSL_free(sc->s3.tmp.valid_flags);
  ------------------
  |  |  132|  1.38k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3894|       |
 3895|  1.38k|    EVP_PKEY_free(sc->s3.peer_tmp);
 3896|       |
 3897|  1.38k|    for (i = 0; i < sc->s3.tmp.num_ks_pkey; i++)
  ------------------
  |  Branch (3897:17): [True: 0, False: 1.38k]
  ------------------
 3898|      0|        if (sc->s3.tmp.ks_pkey[i] != NULL) {
  ------------------
  |  Branch (3898:13): [True: 0, False: 0]
  ------------------
 3899|      0|            if (sc->s3.tmp.pkey == sc->s3.tmp.ks_pkey[i])
  ------------------
  |  Branch (3899:17): [True: 0, False: 0]
  ------------------
 3900|      0|                sc->s3.tmp.pkey = NULL;
 3901|       |
 3902|      0|            EVP_PKEY_free(sc->s3.tmp.ks_pkey[i]);
 3903|      0|            sc->s3.tmp.ks_pkey[i] = NULL;
 3904|      0|        }
 3905|  1.38k|    sc->s3.tmp.num_ks_pkey = 0;
 3906|       |
 3907|  1.38k|    if (sc->s3.tmp.pkey != NULL) {
  ------------------
  |  Branch (3907:9): [True: 0, False: 1.38k]
  ------------------
 3908|      0|        EVP_PKEY_free(sc->s3.tmp.pkey);
 3909|      0|        sc->s3.tmp.pkey = NULL;
 3910|      0|    }
 3911|       |
 3912|  1.38k|    ssl3_free_digest_list(sc);
 3913|       |
 3914|  1.38k|    OPENSSL_free(sc->s3.alpn_selected);
  ------------------
  |  |  132|  1.38k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3915|  1.38k|    OPENSSL_free(sc->s3.alpn_proposed);
  ------------------
  |  |  132|  1.38k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3916|       |
 3917|       |    /*
 3918|       |     * NULL/zero-out everything in the s3 struct, but remember if we are doing
 3919|       |     * QUIC.
 3920|       |     */
 3921|  1.38k|    flags = sc->s3.flags & (TLS1_FLAGS_QUIC | TLS1_FLAGS_QUIC_INTERNAL);
  ------------------
  |  |   22|  1.38k|#define TLS1_FLAGS_QUIC 0x2000
  ------------------
                  flags = sc->s3.flags & (TLS1_FLAGS_QUIC | TLS1_FLAGS_QUIC_INTERNAL);
  ------------------
  |  |   24|  1.38k|#define TLS1_FLAGS_QUIC_INTERNAL 0x4000
  ------------------
 3922|  1.38k|    memset(&sc->s3, 0, sizeof(sc->s3));
 3923|  1.38k|    sc->s3.flags |= flags;
 3924|       |
 3925|  1.38k|    if (!ssl_free_wbio_buffer(sc))
  ------------------
  |  Branch (3925:9): [True: 0, False: 1.38k]
  ------------------
 3926|      0|        return 0;
 3927|       |
 3928|  1.38k|    sc->version = TLS1_VERSION;
  ------------------
  |  |   24|  1.38k|#define TLS1_VERSION 0x0301
  ------------------
 3929|       |
 3930|  1.38k|#if !defined(OPENSSL_NO_NEXTPROTONEG)
 3931|  1.38k|    OPENSSL_free(sc->ext.npn);
  ------------------
  |  |  132|  1.38k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 3932|  1.38k|    sc->ext.npn = NULL;
 3933|  1.38k|    sc->ext.npn_len = 0;
 3934|  1.38k|#endif
 3935|       |
 3936|  1.38k|    return 1;
 3937|  1.38k|}
ssl3_ctrl:
 3954|    224|{
 3955|    224|    int ret = 0;
 3956|    224|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|    224|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|    224|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 224]
  |  |  |  |  ------------------
  |  |  |  |   33|    224|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|    224|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 224, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    224|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    224|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1231:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 3957|    224|#ifndef OPENSSL_NO_OCSP
 3958|    224|    unsigned char *p = NULL;
 3959|    224|    OCSP_RESPONSE *resp = NULL;
 3960|    224|#endif
 3961|       |
 3962|    224|    if (sc == NULL)
  ------------------
  |  Branch (3962:9): [True: 0, False: 224]
  ------------------
 3963|      0|        return ret;
 3964|       |
 3965|    224|    switch (cmd) {
 3966|      0|    case SSL_CTRL_GET_CLIENT_CERT_REQUEST:
  ------------------
  |  | 1305|      0|#define SSL_CTRL_GET_CLIENT_CERT_REQUEST 9
  ------------------
  |  Branch (3966:5): [True: 0, False: 224]
  ------------------
 3967|      0|        break;
 3968|      0|    case SSL_CTRL_GET_NUM_RENEGOTIATIONS:
  ------------------
  |  | 1306|      0|#define SSL_CTRL_GET_NUM_RENEGOTIATIONS 10
  ------------------
  |  Branch (3968:5): [True: 0, False: 224]
  ------------------
 3969|      0|        ret = sc->s3.num_renegotiations;
 3970|      0|        break;
 3971|      0|    case SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS:
  ------------------
  |  | 1307|      0|#define SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS 11
  ------------------
  |  Branch (3971:5): [True: 0, False: 224]
  ------------------
 3972|      0|        ret = sc->s3.num_renegotiations;
 3973|      0|        sc->s3.num_renegotiations = 0;
 3974|      0|        break;
 3975|      0|    case SSL_CTRL_GET_TOTAL_RENEGOTIATIONS:
  ------------------
  |  | 1308|      0|#define SSL_CTRL_GET_TOTAL_RENEGOTIATIONS 12
  ------------------
  |  Branch (3975:5): [True: 0, False: 224]
  ------------------
 3976|      0|        ret = sc->s3.total_renegotiations;
 3977|      0|        break;
 3978|      0|    case SSL_CTRL_GET_FLAGS:
  ------------------
  |  | 1309|      0|#define SSL_CTRL_GET_FLAGS 13
  ------------------
  |  Branch (3978:5): [True: 0, False: 224]
  ------------------
 3979|      0|        ret = (int)(sc->s3.flags);
 3980|      0|        break;
 3981|      0|#if !defined(OPENSSL_NO_DEPRECATED_3_0)
 3982|      0|    case SSL_CTRL_SET_TMP_DH: {
  ------------------
  |  | 1300|      0|#define SSL_CTRL_SET_TMP_DH 3
  ------------------
  |  Branch (3982:5): [True: 0, False: 224]
  ------------------
 3983|      0|        EVP_PKEY *pkdh = NULL;
 3984|      0|        if (parg == NULL) {
  ------------------
  |  Branch (3984:13): [True: 0, False: 0]
  ------------------
 3985|      0|            ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 3986|      0|            return 0;
 3987|      0|        }
 3988|      0|        pkdh = ssl_dh_to_pkey(parg);
 3989|      0|        if (pkdh == NULL) {
  ------------------
  |  Branch (3989:13): [True: 0, False: 0]
  ------------------
 3990|      0|            ERR_raise(ERR_LIB_SSL, ERR_R_DH_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 3991|      0|            return 0;
 3992|      0|        }
 3993|      0|        if (!SSL_set0_tmp_dh_pkey(s, pkdh)) {
  ------------------
  |  Branch (3993:13): [True: 0, False: 0]
  ------------------
 3994|      0|            EVP_PKEY_free(pkdh);
 3995|      0|            return 0;
 3996|      0|        }
 3997|      0|        return 1;
 3998|      0|    } break;
 3999|      0|    case SSL_CTRL_SET_TMP_DH_CB: {
  ------------------
  |  | 1302|      0|#define SSL_CTRL_SET_TMP_DH_CB 6
  ------------------
  |  Branch (3999:5): [True: 0, False: 224]
  ------------------
 4000|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4001|      0|        return ret;
 4002|      0|    }
 4003|      0|#endif
 4004|      0|    case SSL_CTRL_SET_DH_AUTO:
  ------------------
  |  | 1399|      0|#define SSL_CTRL_SET_DH_AUTO 118
  ------------------
  |  Branch (4004:5): [True: 0, False: 224]
  ------------------
 4005|      0|        sc->cert->dh_tmp_auto = larg;
 4006|      0|        return 1;
 4007|      0|#if !defined(OPENSSL_NO_DEPRECATED_3_0)
 4008|      0|    case SSL_CTRL_SET_TMP_ECDH: {
  ------------------
  |  | 1301|      0|#define SSL_CTRL_SET_TMP_ECDH 4
  ------------------
  |  Branch (4008:5): [True: 0, False: 224]
  ------------------
 4009|      0|        if (parg == NULL) {
  ------------------
  |  Branch (4009:13): [True: 0, False: 0]
  ------------------
 4010|      0|            ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4011|      0|            return 0;
 4012|      0|        }
 4013|      0|        return ssl_set_tmp_ecdh_groups(&sc->ext.supportedgroups,
 4014|      0|            &sc->ext.supportedgroups_len,
 4015|      0|            &sc->ext.keyshares,
 4016|      0|            &sc->ext.keyshares_len,
 4017|      0|            &sc->ext.tuples,
 4018|      0|            &sc->ext.tuples_len,
 4019|      0|            parg);
 4020|      0|    }
 4021|      0|#endif /* !OPENSSL_NO_DEPRECATED_3_0 */
 4022|    224|    case SSL_CTRL_SET_TLSEXT_HOSTNAME:
  ------------------
  |  | 1341|    224|#define SSL_CTRL_SET_TLSEXT_HOSTNAME 55
  ------------------
  |  Branch (4022:5): [True: 224, False: 0]
  ------------------
 4023|       |        /*
 4024|       |         * This API is only used for a client to set what SNI it will request
 4025|       |         * from the server, but we currently allow it to be used on servers
 4026|       |         * as well, which is a programming error.  Currently we just clear
 4027|       |         * the field in SSL_do_handshake() for server SSLs, but when we can
 4028|       |         * make ABI-breaking changes, we may want to make use of this API
 4029|       |         * an error on server SSLs.
 4030|       |         */
 4031|    224|        if (larg == TLSEXT_NAMETYPE_host_name) {
  ------------------
  |  |  179|    224|#define TLSEXT_NAMETYPE_host_name 0
  ------------------
  |  Branch (4031:13): [True: 224, False: 0]
  ------------------
 4032|    224|            size_t len;
 4033|       |
 4034|    224|            OPENSSL_free(sc->ext.hostname);
  ------------------
  |  |  132|    224|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4035|    224|            sc->ext.hostname = NULL;
 4036|       |
 4037|    224|            ret = 1;
 4038|    224|            if (parg == NULL)
  ------------------
  |  Branch (4038:17): [True: 0, False: 224]
  ------------------
 4039|      0|                break;
 4040|    224|            len = strlen((char *)parg);
 4041|    224|            if (len == 0 || len > TLSEXT_MAXLEN_host_name) {
  ------------------
  |  |  256|    224|#define TLSEXT_MAXLEN_host_name 255
  ------------------
  |  Branch (4041:17): [True: 0, False: 224]
  |  Branch (4041:29): [True: 5, False: 219]
  ------------------
 4042|      5|                ERR_raise(ERR_LIB_SSL, SSL_R_TLS_EXT_INVALID_SERVERNAME);
  ------------------
  |  |  357|      5|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      5|    (ERR_new(),                                                  \
  |  |  |  |  360|      5|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      5|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      5|        ERR_set_error)
  |  |  ------------------
  ------------------
 4043|      5|                return 0;
 4044|      5|            }
 4045|    219|            if ((sc->ext.hostname = OPENSSL_strdup((char *)parg)) == NULL) {
  ------------------
  |  |  136|    219|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (4045:17): [True: 0, False: 219]
  ------------------
 4046|      0|                ERR_raise(ERR_LIB_SSL, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4047|      0|                return 0;
 4048|      0|            }
 4049|    219|        } else {
 4050|      0|            ERR_raise(ERR_LIB_SSL, SSL_R_TLS_EXT_INVALID_SERVERNAME_TYPE);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4051|      0|            return 0;
 4052|      0|        }
 4053|    219|        break;
 4054|    219|    case SSL_CTRL_SET_TLSEXT_DEBUG_ARG:
  ------------------
  |  | 1343|      0|#define SSL_CTRL_SET_TLSEXT_DEBUG_ARG 57
  ------------------
  |  Branch (4054:5): [True: 0, False: 224]
  ------------------
 4055|      0|        sc->ext.debug_arg = parg;
 4056|      0|        ret = 1;
 4057|      0|        break;
 4058|       |
 4059|      0|    case SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE:
  ------------------
  |  | 1407|      0|#define SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE 127
  ------------------
  |  Branch (4059:5): [True: 0, False: 224]
  ------------------
 4060|      0|        ret = sc->ext.status_type;
 4061|      0|        break;
 4062|       |
 4063|      0|    case SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE:
  ------------------
  |  | 1351|      0|#define SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE 65
  ------------------
  |  Branch (4063:5): [True: 0, False: 224]
  ------------------
 4064|      0|        sc->ext.status_type = larg;
 4065|      0|        ret = 1;
 4066|      0|        break;
 4067|       |
 4068|      0|    case SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS:
  ------------------
  |  | 1352|      0|#define SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS 66
  ------------------
  |  Branch (4068:5): [True: 0, False: 224]
  ------------------
 4069|      0|        *(STACK_OF(X509_EXTENSION) **)parg = sc->ext.ocsp.exts;
 4070|      0|        ret = 1;
 4071|      0|        break;
 4072|       |
 4073|      0|    case SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS:
  ------------------
  |  | 1353|      0|#define SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS 67
  ------------------
  |  Branch (4073:5): [True: 0, False: 224]
  ------------------
 4074|      0|        sc->ext.ocsp.exts = parg;
 4075|      0|        ret = 1;
 4076|      0|        break;
 4077|       |
 4078|      0|    case SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS:
  ------------------
  |  | 1354|      0|#define SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS 68
  ------------------
  |  Branch (4078:5): [True: 0, False: 224]
  ------------------
 4079|      0|        *(STACK_OF(OCSP_RESPID) **)parg = sc->ext.ocsp.ids;
 4080|      0|        ret = 1;
 4081|      0|        break;
 4082|       |
 4083|      0|    case SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS:
  ------------------
  |  | 1355|      0|#define SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS 69
  ------------------
  |  Branch (4083:5): [True: 0, False: 224]
  ------------------
 4084|      0|        sc->ext.ocsp.ids = parg;
 4085|      0|        ret = 1;
 4086|      0|        break;
 4087|       |
 4088|      0|    case SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP:
  ------------------
  |  | 1356|      0|#define SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP 70
  ------------------
  |  Branch (4088:5): [True: 0, False: 224]
  ------------------
 4089|      0|        *(unsigned char **)parg = NULL;
 4090|      0|        ret = -1;
 4091|       |
 4092|      0|#ifndef OPENSSL_NO_OCSP
 4093|      0|        resp = sk_OCSP_RESPONSE_value(sc->ext.ocsp.resp_ex, 0);
 4094|       |
 4095|      0|        if (resp != NULL) {
  ------------------
  |  Branch (4095:13): [True: 0, False: 0]
  ------------------
 4096|      0|            int resp_len = i2d_OCSP_RESPONSE(resp, &p);
 4097|       |
 4098|      0|            if (resp_len > 0) {
  ------------------
  |  Branch (4098:17): [True: 0, False: 0]
  ------------------
 4099|      0|                OPENSSL_free(sc->ext.ocsp.resp);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4100|      0|                *(unsigned char **)parg = sc->ext.ocsp.resp = p;
 4101|      0|                sc->ext.ocsp.resp_len = (size_t)resp_len;
 4102|      0|                ret = resp_len;
 4103|      0|            }
 4104|      0|        }
 4105|      0|#endif
 4106|      0|        break;
 4107|       |
 4108|      0|    case SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP:
  ------------------
  |  | 1357|      0|#define SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP 71
  ------------------
  |  Branch (4108:5): [True: 0, False: 224]
  ------------------
 4109|      0|        ret = 1;
 4110|      0|#ifndef OPENSSL_NO_OCSP
 4111|       |        /*
 4112|       |         * In case of success keep the single value so we do not need to
 4113|       |         * free it immediately.
 4114|       |         * However in the handshake code we only use the extended values.
 4115|       |         */
 4116|      0|        OPENSSL_free(sc->ext.ocsp.resp);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4117|      0|        sc->ext.ocsp.resp = NULL;
 4118|      0|        sc->ext.ocsp.resp_len = 0;
 4119|       |
 4120|      0|        sk_OCSP_RESPONSE_pop_free(sc->ext.ocsp.resp_ex, OCSP_RESPONSE_free);
 4121|      0|        sc->ext.ocsp.resp_ex = NULL;
 4122|       |
 4123|      0|        if (parg != NULL) {
  ------------------
  |  Branch (4123:13): [True: 0, False: 0]
  ------------------
 4124|      0|            sc->ext.ocsp.resp_ex = sk_OCSP_RESPONSE_new_reserve(NULL, 1);
 4125|      0|            if (sc->ext.ocsp.resp_ex == NULL)
  ------------------
  |  Branch (4125:17): [True: 0, False: 0]
  ------------------
 4126|      0|                return 0;
 4127|       |
 4128|      0|            p = parg;
 4129|      0|            resp = d2i_OCSP_RESPONSE(NULL, (const unsigned char **)&p, larg);
 4130|      0|            if (resp != NULL)
  ------------------
  |  Branch (4130:17): [True: 0, False: 0]
  ------------------
 4131|      0|                sk_OCSP_RESPONSE_push(sc->ext.ocsp.resp_ex, resp);
 4132|       |
 4133|      0|            sc->ext.ocsp.resp = parg;
 4134|      0|            sc->ext.ocsp.resp_len = larg;
 4135|      0|        }
 4136|      0|#endif
 4137|      0|        break;
 4138|       |
 4139|      0|    case SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP_EX:
  ------------------
  |  | 1422|      0|#define SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP_EX 142
  ------------------
  |  Branch (4139:5): [True: 0, False: 224]
  ------------------
 4140|      0|#ifndef OPENSSL_NO_OCSP
 4141|      0|        *(STACK_OF(OCSP_RESPONSE) **)parg = sc->ext.ocsp.resp_ex;
 4142|      0|        ret = sk_OCSP_RESPONSE_num(sc->ext.ocsp.resp_ex);
 4143|       |#else
 4144|       |        *(unsigned char **)parg = NULL;
 4145|       |        ret = -1;
 4146|       |#endif
 4147|      0|        break;
 4148|       |
 4149|      0|    case SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP_EX:
  ------------------
  |  | 1423|      0|#define SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP_EX 143
  ------------------
  |  Branch (4149:5): [True: 0, False: 224]
  ------------------
 4150|      0|#ifndef OPENSSL_NO_OCSP
 4151|       |        /*
 4152|       |         * cleanup single values, which might be set somewhere else
 4153|       |         * we only use the extended values
 4154|       |         */
 4155|      0|        if (sc->ext.ocsp.resp != NULL) {
  ------------------
  |  Branch (4155:13): [True: 0, False: 0]
  ------------------
 4156|      0|            OPENSSL_free(sc->ext.ocsp.resp);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4157|      0|            sc->ext.ocsp.resp = NULL;
 4158|      0|            sc->ext.ocsp.resp_len = 0;
 4159|      0|        }
 4160|       |
 4161|      0|        sk_OCSP_RESPONSE_pop_free(sc->ext.ocsp.resp_ex, OCSP_RESPONSE_free);
 4162|      0|        sc->ext.ocsp.resp_ex = (STACK_OF(OCSP_RESPONSE) *)parg;
 4163|      0|#endif
 4164|      0|        ret = 1;
 4165|      0|        break;
 4166|       |
 4167|      0|    case SSL_CTRL_CHAIN:
  ------------------
  |  | 1375|      0|#define SSL_CTRL_CHAIN 88
  ------------------
  |  Branch (4167:5): [True: 0, False: 224]
  ------------------
 4168|      0|        if (larg)
  ------------------
  |  Branch (4168:13): [True: 0, False: 0]
  ------------------
 4169|      0|            return ssl_cert_set1_chain(sc, NULL, (STACK_OF(X509) *)parg);
 4170|      0|        else
 4171|      0|            return ssl_cert_set0_chain(sc, NULL, (STACK_OF(X509) *)parg);
 4172|       |
 4173|      0|    case SSL_CTRL_CHAIN_CERT:
  ------------------
  |  | 1376|      0|#define SSL_CTRL_CHAIN_CERT 89
  ------------------
  |  Branch (4173:5): [True: 0, False: 224]
  ------------------
 4174|      0|        if (larg)
  ------------------
  |  Branch (4174:13): [True: 0, False: 0]
  ------------------
 4175|      0|            return ssl_cert_add1_chain_cert(sc, NULL, (X509 *)parg);
 4176|      0|        else
 4177|      0|            return ssl_cert_add0_chain_cert(sc, NULL, (X509 *)parg);
 4178|       |
 4179|      0|    case SSL_CTRL_GET_CHAIN_CERTS:
  ------------------
  |  | 1396|      0|#define SSL_CTRL_GET_CHAIN_CERTS 115
  ------------------
  |  Branch (4179:5): [True: 0, False: 224]
  ------------------
 4180|      0|        *(STACK_OF(X509) **)parg = sc->cert->key->chain;
 4181|      0|        ret = 1;
 4182|      0|        break;
 4183|       |
 4184|      0|    case SSL_CTRL_SELECT_CURRENT_CERT:
  ------------------
  |  | 1397|      0|#define SSL_CTRL_SELECT_CURRENT_CERT 116
  ------------------
  |  Branch (4184:5): [True: 0, False: 224]
  ------------------
 4185|      0|        return ssl_cert_select_current(sc->cert, (X509 *)parg);
 4186|       |
 4187|      0|    case SSL_CTRL_SET_CURRENT_CERT:
  ------------------
  |  | 1398|      0|#define SSL_CTRL_SET_CURRENT_CERT 117
  ------------------
  |  Branch (4187:5): [True: 0, False: 224]
  ------------------
 4188|      0|        if (larg == SSL_CERT_SET_SERVER) {
  ------------------
  |  | 1426|      0|#define SSL_CERT_SET_SERVER 3
  ------------------
  |  Branch (4188:13): [True: 0, False: 0]
  ------------------
 4189|      0|            const SSL_CIPHER *cipher;
 4190|      0|            if (!sc->server)
  ------------------
  |  Branch (4190:17): [True: 0, False: 0]
  ------------------
 4191|      0|                return 0;
 4192|      0|            cipher = sc->s3.tmp.new_cipher;
 4193|      0|            if (cipher == NULL)
  ------------------
  |  Branch (4193:17): [True: 0, False: 0]
  ------------------
 4194|      0|                return 0;
 4195|       |            /*
 4196|       |             * No certificate for unauthenticated ciphersuites or using SRP
 4197|       |             * authentication
 4198|       |             */
 4199|      0|            if (cipher->algorithm_auth & (SSL_aNULL | SSL_aSRP))
  ------------------
  |  |  116|      0|#define SSL_aNULL 0x00000004U
  ------------------
                          if (cipher->algorithm_auth & (SSL_aNULL | SSL_aSRP))
  ------------------
  |  |  124|      0|#define SSL_aSRP 0x00000040U
  ------------------
  |  Branch (4199:17): [True: 0, False: 0]
  ------------------
 4200|      0|                return 2;
 4201|      0|            if (sc->s3.tmp.cert == NULL)
  ------------------
  |  Branch (4201:17): [True: 0, False: 0]
  ------------------
 4202|      0|                return 0;
 4203|      0|            sc->cert->key = sc->s3.tmp.cert;
 4204|      0|            return 1;
 4205|      0|        }
 4206|      0|        return ssl_cert_set_current(sc->cert, larg);
 4207|       |
 4208|      0|    case SSL_CTRL_GET_GROUPS: {
  ------------------
  |  | 1377|      0|#define SSL_CTRL_GET_GROUPS 90
  ------------------
  |  Branch (4208:5): [True: 0, False: 224]
  ------------------
 4209|      0|        uint16_t *clist;
 4210|      0|        size_t clistlen;
 4211|       |
 4212|      0|        if (!sc->session)
  ------------------
  |  Branch (4212:13): [True: 0, False: 0]
  ------------------
 4213|      0|            return 0;
 4214|      0|        clist = sc->ext.peer_supportedgroups;
 4215|      0|        clistlen = sc->ext.peer_supportedgroups_len;
 4216|      0|        if (parg) {
  ------------------
  |  Branch (4216:13): [True: 0, False: 0]
  ------------------
 4217|      0|            size_t i;
 4218|      0|            int *cptr = parg;
 4219|       |
 4220|      0|            for (i = 0; i < clistlen; i++) {
  ------------------
  |  Branch (4220:25): [True: 0, False: 0]
  ------------------
 4221|      0|                const TLS_GROUP_INFO *cinf
 4222|      0|                    = tls1_group_id_lookup(s->ctx, clist[i]);
 4223|       |
 4224|      0|                if (cinf != NULL)
  ------------------
  |  Branch (4224:21): [True: 0, False: 0]
  ------------------
 4225|      0|                    cptr[i] = tls1_group_id2nid(cinf->group_id, 1);
 4226|      0|                else
 4227|      0|                    cptr[i] = TLSEXT_nid_unknown | clist[i];
  ------------------
  |  |  227|      0|#define TLSEXT_nid_unknown 0x1000000
  ------------------
 4228|      0|            }
 4229|      0|        }
 4230|      0|        return (int)clistlen;
 4231|      0|    }
 4232|       |
 4233|      0|    case SSL_CTRL_SET_GROUPS:
  ------------------
  |  | 1378|      0|#define SSL_CTRL_SET_GROUPS 91
  ------------------
  |  Branch (4233:5): [True: 0, False: 224]
  ------------------
 4234|      0|        return tls1_set_groups(&sc->ext.supportedgroups,
 4235|      0|            &sc->ext.supportedgroups_len,
 4236|      0|            &sc->ext.keyshares,
 4237|      0|            &sc->ext.keyshares_len,
 4238|      0|            &sc->ext.tuples,
 4239|      0|            &sc->ext.tuples_len,
 4240|      0|            parg, larg);
 4241|       |
 4242|      0|    case SSL_CTRL_SET_GROUPS_LIST:
  ------------------
  |  | 1379|      0|#define SSL_CTRL_SET_GROUPS_LIST 92
  ------------------
  |  Branch (4242:5): [True: 0, False: 224]
  ------------------
 4243|      0|        return tls1_set_groups_list(s->ctx,
 4244|      0|            &sc->ext.supportedgroups,
 4245|      0|            &sc->ext.supportedgroups_len,
 4246|      0|            &sc->ext.keyshares,
 4247|      0|            &sc->ext.keyshares_len,
 4248|      0|            &sc->ext.tuples,
 4249|      0|            &sc->ext.tuples_len,
 4250|      0|            parg);
 4251|       |
 4252|      0|    case SSL_CTRL_GET_SHARED_GROUP: {
  ------------------
  |  | 1380|      0|#define SSL_CTRL_GET_SHARED_GROUP 93
  ------------------
  |  Branch (4252:5): [True: 0, False: 224]
  ------------------
 4253|      0|        uint16_t id = tls1_shared_group(sc, larg, TLS1_GROUPS_ALL_GROUPS);
  ------------------
  |  | 2717|      0|#define TLS1_GROUPS_ALL_GROUPS 2
  ------------------
 4254|       |
 4255|      0|        if (larg != -1)
  ------------------
  |  Branch (4255:13): [True: 0, False: 0]
  ------------------
 4256|      0|            return tls1_group_id2nid(id, 1);
 4257|      0|        return id;
 4258|      0|    }
 4259|      0|    case SSL_CTRL_GET_NEGOTIATED_GROUP: {
  ------------------
  |  | 1414|      0|#define SSL_CTRL_GET_NEGOTIATED_GROUP 134
  ------------------
  |  Branch (4259:5): [True: 0, False: 224]
  ------------------
 4260|      0|        unsigned int id;
 4261|       |
 4262|      0|        if (SSL_CONNECTION_IS_TLS13(sc) && sc->s3.did_kex)
  ------------------
  |  |  273|      0|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  266|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2196|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (273:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  274|      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 (274:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  275|      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 (275:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (4262:44): [True: 0, False: 0]
  ------------------
 4263|      0|            id = sc->s3.group_id;
 4264|      0|        else
 4265|      0|            id = (sc->session != NULL) ? sc->session->kex_group : NID_undef;
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  |  Branch (4265:18): [True: 0, False: 0]
  ------------------
 4266|      0|        ret = tls1_group_id2nid(id, 1);
 4267|      0|        break;
 4268|      0|    }
 4269|      0|    case SSL_CTRL_SET_SIGALGS:
  ------------------
  |  | 1381|      0|#define SSL_CTRL_SET_SIGALGS 97
  ------------------
  |  Branch (4269:5): [True: 0, False: 224]
  ------------------
 4270|      0|        return tls1_set_sigalgs(sc->cert, parg, larg, 0);
 4271|       |
 4272|      0|    case SSL_CTRL_SET_SIGALGS_LIST:
  ------------------
  |  | 1382|      0|#define SSL_CTRL_SET_SIGALGS_LIST 98
  ------------------
  |  Branch (4272:5): [True: 0, False: 224]
  ------------------
 4273|      0|        return tls1_set_sigalgs_list(s->ctx, sc->cert, parg, 0);
 4274|       |
 4275|      0|    case SSL_CTRL_SET_CLIENT_SIGALGS:
  ------------------
  |  | 1385|      0|#define SSL_CTRL_SET_CLIENT_SIGALGS 101
  ------------------
  |  Branch (4275:5): [True: 0, False: 224]
  ------------------
 4276|      0|        return tls1_set_sigalgs(sc->cert, parg, larg, 1);
 4277|       |
 4278|      0|    case SSL_CTRL_SET_CLIENT_SIGALGS_LIST:
  ------------------
  |  | 1386|      0|#define SSL_CTRL_SET_CLIENT_SIGALGS_LIST 102
  ------------------
  |  Branch (4278:5): [True: 0, False: 224]
  ------------------
 4279|      0|        return tls1_set_sigalgs_list(s->ctx, sc->cert, parg, 1);
 4280|       |
 4281|      0|    case SSL_CTRL_GET_CLIENT_CERT_TYPES: {
  ------------------
  |  | 1387|      0|#define SSL_CTRL_GET_CLIENT_CERT_TYPES 103
  ------------------
  |  Branch (4281:5): [True: 0, False: 224]
  ------------------
 4282|      0|        const unsigned char **pctype = parg;
 4283|      0|        if (sc->server || !sc->s3.tmp.cert_req)
  ------------------
  |  Branch (4283:13): [True: 0, False: 0]
  |  Branch (4283:27): [True: 0, False: 0]
  ------------------
 4284|      0|            return 0;
 4285|      0|        if (pctype)
  ------------------
  |  Branch (4285:13): [True: 0, False: 0]
  ------------------
 4286|      0|            *pctype = sc->s3.tmp.ctype;
 4287|      0|        return (long)sc->s3.tmp.ctype_len;
 4288|      0|    }
 4289|       |
 4290|      0|    case SSL_CTRL_SET_CLIENT_CERT_TYPES:
  ------------------
  |  | 1388|      0|#define SSL_CTRL_SET_CLIENT_CERT_TYPES 104
  ------------------
  |  Branch (4290:5): [True: 0, False: 224]
  ------------------
 4291|      0|        if (!sc->server)
  ------------------
  |  Branch (4291:13): [True: 0, False: 0]
  ------------------
 4292|      0|            return 0;
 4293|      0|        return ssl3_set_req_cert_type(sc->cert, parg, larg);
 4294|       |
 4295|      0|    case SSL_CTRL_BUILD_CERT_CHAIN:
  ------------------
  |  | 1389|      0|#define SSL_CTRL_BUILD_CERT_CHAIN 105
  ------------------
  |  Branch (4295:5): [True: 0, False: 224]
  ------------------
 4296|      0|        return ssl_build_cert_chain(sc, NULL, larg);
 4297|       |
 4298|      0|    case SSL_CTRL_SET_VERIFY_CERT_STORE:
  ------------------
  |  | 1390|      0|#define SSL_CTRL_SET_VERIFY_CERT_STORE 106
  ------------------
  |  Branch (4298:5): [True: 0, False: 224]
  ------------------
 4299|      0|        return ssl_cert_set_cert_store(sc->cert, parg, 0, larg);
 4300|       |
 4301|      0|    case SSL_CTRL_SET_CHAIN_CERT_STORE:
  ------------------
  |  | 1391|      0|#define SSL_CTRL_SET_CHAIN_CERT_STORE 107
  ------------------
  |  Branch (4301:5): [True: 0, False: 224]
  ------------------
 4302|      0|        return ssl_cert_set_cert_store(sc->cert, parg, 1, larg);
 4303|       |
 4304|      0|    case SSL_CTRL_GET_VERIFY_CERT_STORE:
  ------------------
  |  | 1417|      0|#define SSL_CTRL_GET_VERIFY_CERT_STORE 137
  ------------------
  |  Branch (4304:5): [True: 0, False: 224]
  ------------------
 4305|      0|        return ssl_cert_get_cert_store(sc->cert, parg, 0);
 4306|       |
 4307|      0|    case SSL_CTRL_GET_CHAIN_CERT_STORE:
  ------------------
  |  | 1418|      0|#define SSL_CTRL_GET_CHAIN_CERT_STORE 138
  ------------------
  |  Branch (4307:5): [True: 0, False: 224]
  ------------------
 4308|      0|        return ssl_cert_get_cert_store(sc->cert, parg, 1);
 4309|       |
 4310|      0|    case SSL_CTRL_GET_PEER_SIGNATURE_NAME:
  ------------------
  |  | 1421|      0|#define SSL_CTRL_GET_PEER_SIGNATURE_NAME 141
  ------------------
  |  Branch (4310:5): [True: 0, False: 224]
  ------------------
 4311|      0|        if (parg == NULL || sc->s3.tmp.peer_sigalg == NULL)
  ------------------
  |  Branch (4311:13): [True: 0, False: 0]
  |  Branch (4311:29): [True: 0, False: 0]
  ------------------
 4312|      0|            return 0;
 4313|      0|        *(const char **)parg = sc->s3.tmp.peer_sigalg->name;
 4314|      0|        return 1;
 4315|       |
 4316|      0|    case SSL_CTRL_GET_PEER_SIGNATURE_NID:
  ------------------
  |  | 1392|      0|#define SSL_CTRL_GET_PEER_SIGNATURE_NID 108
  ------------------
  |  Branch (4316:5): [True: 0, False: 224]
  ------------------
 4317|      0|        if (sc->s3.tmp.peer_sigalg == NULL)
  ------------------
  |  Branch (4317:13): [True: 0, False: 0]
  ------------------
 4318|      0|            return 0;
 4319|      0|        *(int *)parg = sc->s3.tmp.peer_sigalg->hash;
 4320|      0|        return 1;
 4321|       |
 4322|      0|    case SSL_CTRL_GET_SIGNATURE_NAME:
  ------------------
  |  | 1420|      0|#define SSL_CTRL_GET_SIGNATURE_NAME 140
  ------------------
  |  Branch (4322:5): [True: 0, False: 224]
  ------------------
 4323|      0|        if (parg == NULL || sc->s3.tmp.sigalg == NULL)
  ------------------
  |  Branch (4323:13): [True: 0, False: 0]
  |  Branch (4323:29): [True: 0, False: 0]
  ------------------
 4324|      0|            return 0;
 4325|      0|        *(const char **)parg = sc->s3.tmp.sigalg->name;
 4326|      0|        return 1;
 4327|       |
 4328|      0|    case SSL_CTRL_GET_SIGNATURE_NID:
  ------------------
  |  | 1412|      0|#define SSL_CTRL_GET_SIGNATURE_NID 132
  ------------------
  |  Branch (4328:5): [True: 0, False: 224]
  ------------------
 4329|      0|        if (sc->s3.tmp.sigalg == NULL)
  ------------------
  |  Branch (4329:13): [True: 0, False: 0]
  ------------------
 4330|      0|            return 0;
 4331|      0|        *(int *)parg = sc->s3.tmp.sigalg->hash;
 4332|      0|        return 1;
 4333|       |
 4334|      0|    case SSL_CTRL_GET_PEER_TMP_KEY:
  ------------------
  |  | 1393|      0|#define SSL_CTRL_GET_PEER_TMP_KEY 109
  ------------------
  |  Branch (4334:5): [True: 0, False: 224]
  ------------------
 4335|      0|        if (sc->session == NULL || sc->s3.peer_tmp == NULL) {
  ------------------
  |  Branch (4335:13): [True: 0, False: 0]
  |  Branch (4335:36): [True: 0, False: 0]
  ------------------
 4336|      0|            return 0;
 4337|      0|        } else {
 4338|      0|            if (!EVP_PKEY_up_ref(sc->s3.peer_tmp))
  ------------------
  |  Branch (4338:17): [True: 0, False: 0]
  ------------------
 4339|      0|                return 0;
 4340|       |
 4341|      0|            *(EVP_PKEY **)parg = sc->s3.peer_tmp;
 4342|      0|            return 1;
 4343|      0|        }
 4344|       |
 4345|      0|    case SSL_CTRL_GET_TMP_KEY:
  ------------------
  |  | 1413|      0|#define SSL_CTRL_GET_TMP_KEY 133
  ------------------
  |  Branch (4345:5): [True: 0, False: 224]
  ------------------
 4346|      0|        if (sc->session == NULL || sc->s3.tmp.pkey == NULL) {
  ------------------
  |  Branch (4346:13): [True: 0, False: 0]
  |  Branch (4346:36): [True: 0, False: 0]
  ------------------
 4347|      0|            return 0;
 4348|      0|        } else {
 4349|      0|            if (!EVP_PKEY_up_ref(sc->s3.tmp.pkey))
  ------------------
  |  Branch (4349:17): [True: 0, False: 0]
  ------------------
 4350|      0|                return 0;
 4351|       |
 4352|      0|            *(EVP_PKEY **)parg = sc->s3.tmp.pkey;
 4353|      0|            return 1;
 4354|      0|        }
 4355|       |
 4356|      0|    case SSL_CTRL_GET_EC_POINT_FORMATS: {
  ------------------
  |  | 1395|      0|#define SSL_CTRL_GET_EC_POINT_FORMATS 111
  ------------------
  |  Branch (4356:5): [True: 0, False: 224]
  ------------------
 4357|      0|        const unsigned char **pformat = parg;
 4358|       |
 4359|      0|        if (sc->ext.peer_ecpointformats == NULL)
  ------------------
  |  Branch (4359:13): [True: 0, False: 0]
  ------------------
 4360|      0|            return 0;
 4361|      0|        *pformat = sc->ext.peer_ecpointformats;
 4362|      0|        return (int)sc->ext.peer_ecpointformats_len;
 4363|      0|    }
 4364|       |
 4365|      0|    case SSL_CTRL_GET_IANA_GROUPS: {
  ------------------
  |  | 1415|      0|#define SSL_CTRL_GET_IANA_GROUPS 135
  ------------------
  |  Branch (4365:5): [True: 0, False: 224]
  ------------------
 4366|      0|        if (parg != NULL) {
  ------------------
  |  Branch (4366:13): [True: 0, False: 0]
  ------------------
 4367|      0|            *(uint16_t **)parg = (uint16_t *)sc->ext.peer_supportedgroups;
 4368|      0|        }
 4369|      0|        return (int)sc->ext.peer_supportedgroups_len;
 4370|      0|    }
 4371|       |
 4372|      0|    case SSL_CTRL_SET_MSG_CALLBACK_ARG:
  ------------------
  |  | 1312|      0|#define SSL_CTRL_SET_MSG_CALLBACK_ARG 16
  ------------------
  |  Branch (4372:5): [True: 0, False: 224]
  ------------------
 4373|      0|        sc->msg_callback_arg = parg;
 4374|      0|        return 1;
 4375|       |
 4376|      0|    default:
  ------------------
  |  Branch (4376:5): [True: 0, False: 224]
  ------------------
 4377|      0|        break;
 4378|    224|    }
 4379|    219|    return ret;
 4380|    224|}
ssl3_ctx_ctrl:
 4418|    347|{
 4419|    347|    switch (cmd) {
 4420|      0|#if !defined(OPENSSL_NO_DEPRECATED_3_0)
 4421|      0|    case SSL_CTRL_SET_TMP_DH: {
  ------------------
  |  | 1300|      0|#define SSL_CTRL_SET_TMP_DH 3
  ------------------
  |  Branch (4421:5): [True: 0, False: 347]
  ------------------
 4422|      0|        EVP_PKEY *pkdh = NULL;
 4423|      0|        if (parg == NULL) {
  ------------------
  |  Branch (4423:13): [True: 0, False: 0]
  ------------------
 4424|      0|            ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4425|      0|            return 0;
 4426|      0|        }
 4427|      0|        pkdh = ssl_dh_to_pkey(parg);
 4428|      0|        if (pkdh == NULL) {
  ------------------
  |  Branch (4428:13): [True: 0, False: 0]
  ------------------
 4429|      0|            ERR_raise(ERR_LIB_SSL, ERR_R_DH_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4430|      0|            return 0;
 4431|      0|        }
 4432|      0|        if (!SSL_CTX_set0_tmp_dh_pkey(ctx, pkdh)) {
  ------------------
  |  Branch (4432:13): [True: 0, False: 0]
  ------------------
 4433|      0|            EVP_PKEY_free(pkdh);
 4434|      0|            return 0;
 4435|      0|        }
 4436|      0|        return 1;
 4437|      0|    }
 4438|      0|    case SSL_CTRL_SET_TMP_DH_CB: {
  ------------------
  |  | 1302|      0|#define SSL_CTRL_SET_TMP_DH_CB 6
  ------------------
  |  Branch (4438:5): [True: 0, False: 347]
  ------------------
 4439|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4440|      0|        return 0;
 4441|      0|    }
 4442|      0|#endif
 4443|      0|    case SSL_CTRL_SET_DH_AUTO:
  ------------------
  |  | 1399|      0|#define SSL_CTRL_SET_DH_AUTO 118
  ------------------
  |  Branch (4443:5): [True: 0, False: 347]
  ------------------
 4444|      0|        ctx->cert->dh_tmp_auto = larg;
 4445|      0|        return 1;
 4446|      0|#if !defined(OPENSSL_NO_DEPRECATED_3_0)
 4447|      0|    case SSL_CTRL_SET_TMP_ECDH: {
  ------------------
  |  | 1301|      0|#define SSL_CTRL_SET_TMP_ECDH 4
  ------------------
  |  Branch (4447:5): [True: 0, False: 347]
  ------------------
 4448|      0|        if (parg == NULL) {
  ------------------
  |  Branch (4448:13): [True: 0, False: 0]
  ------------------
 4449|      0|            ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4450|      0|            return 0;
 4451|      0|        }
 4452|      0|        return ssl_set_tmp_ecdh_groups(&ctx->ext.supportedgroups,
 4453|      0|            &ctx->ext.supportedgroups_len,
 4454|      0|            &ctx->ext.keyshares,
 4455|      0|            &ctx->ext.keyshares_len,
 4456|      0|            &ctx->ext.tuples,
 4457|      0|            &ctx->ext.tuples_len,
 4458|      0|            parg);
 4459|      0|    }
 4460|      0|#endif /* !OPENSSL_NO_DEPRECATED_3_0 */
 4461|      0|    case SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG:
  ------------------
  |  | 1340|      0|#define SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG 54
  ------------------
  |  Branch (4461:5): [True: 0, False: 347]
  ------------------
 4462|      0|        ctx->ext.servername_arg = parg;
 4463|      0|        break;
 4464|      0|    case SSL_CTRL_SET_TLSEXT_TICKET_KEYS:
  ------------------
  |  | 1345|      0|#define SSL_CTRL_SET_TLSEXT_TICKET_KEYS 59
  ------------------
  |  Branch (4464:5): [True: 0, False: 347]
  ------------------
 4465|      0|    case SSL_CTRL_GET_TLSEXT_TICKET_KEYS: {
  ------------------
  |  | 1344|      0|#define SSL_CTRL_GET_TLSEXT_TICKET_KEYS 58
  ------------------
  |  Branch (4465:5): [True: 0, False: 347]
  ------------------
 4466|      0|        unsigned char *keys = parg;
 4467|      0|        long tick_keylen = (sizeof(ctx->ext.tick_key_name) + sizeof(ctx->ext.secure->tick_hmac_key) + sizeof(ctx->ext.secure->tick_aes_key));
 4468|      0|        if (keys == NULL)
  ------------------
  |  Branch (4468:13): [True: 0, False: 0]
  ------------------
 4469|      0|            return tick_keylen;
 4470|      0|        if (larg != tick_keylen) {
  ------------------
  |  Branch (4470:13): [True: 0, False: 0]
  ------------------
 4471|      0|            ERR_raise(ERR_LIB_SSL, SSL_R_INVALID_TICKET_KEYS_LENGTH);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4472|      0|            return 0;
 4473|      0|        }
 4474|      0|        if (cmd == SSL_CTRL_SET_TLSEXT_TICKET_KEYS) {
  ------------------
  |  | 1345|      0|#define SSL_CTRL_SET_TLSEXT_TICKET_KEYS 59
  ------------------
  |  Branch (4474:13): [True: 0, False: 0]
  ------------------
 4475|      0|            memcpy(ctx->ext.tick_key_name, keys,
 4476|      0|                sizeof(ctx->ext.tick_key_name));
 4477|      0|            memcpy(ctx->ext.secure->tick_hmac_key,
 4478|      0|                keys + sizeof(ctx->ext.tick_key_name),
 4479|      0|                sizeof(ctx->ext.secure->tick_hmac_key));
 4480|      0|            memcpy(ctx->ext.secure->tick_aes_key,
 4481|      0|                keys + sizeof(ctx->ext.tick_key_name) + sizeof(ctx->ext.secure->tick_hmac_key),
 4482|      0|                sizeof(ctx->ext.secure->tick_aes_key));
 4483|      0|        } else {
 4484|      0|            memcpy(keys, ctx->ext.tick_key_name,
 4485|      0|                sizeof(ctx->ext.tick_key_name));
 4486|      0|            memcpy(keys + sizeof(ctx->ext.tick_key_name),
 4487|      0|                ctx->ext.secure->tick_hmac_key,
 4488|      0|                sizeof(ctx->ext.secure->tick_hmac_key));
 4489|      0|            memcpy(keys + sizeof(ctx->ext.tick_key_name) + sizeof(ctx->ext.secure->tick_hmac_key),
 4490|      0|                ctx->ext.secure->tick_aes_key,
 4491|      0|                sizeof(ctx->ext.secure->tick_aes_key));
 4492|      0|        }
 4493|      0|        return 1;
 4494|      0|    }
 4495|       |
 4496|      0|    case SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE:
  ------------------
  |  | 1407|      0|#define SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE 127
  ------------------
  |  Branch (4496:5): [True: 0, False: 347]
  ------------------
 4497|      0|        return ctx->ext.status_type;
 4498|       |
 4499|      0|    case SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE:
  ------------------
  |  | 1351|      0|#define SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE 65
  ------------------
  |  Branch (4499:5): [True: 0, False: 347]
  ------------------
 4500|      0|        ctx->ext.status_type = larg;
 4501|      0|        break;
 4502|       |
 4503|      0|    case SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG:
  ------------------
  |  | 1350|      0|#define SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG 64
  ------------------
  |  Branch (4503:5): [True: 0, False: 347]
  ------------------
 4504|      0|        ctx->ext.status_arg = parg;
 4505|      0|        return 1;
 4506|       |
 4507|      0|    case SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB_ARG:
  ------------------
  |  | 1409|      0|#define SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB_ARG 129
  ------------------
  |  Branch (4507:5): [True: 0, False: 347]
  ------------------
 4508|      0|        *(void **)parg = ctx->ext.status_arg;
 4509|      0|        break;
 4510|       |
 4511|      0|    case SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB:
  ------------------
  |  | 1408|      0|#define SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB 128
  ------------------
  |  Branch (4511:5): [True: 0, False: 347]
  ------------------
 4512|      0|        *(int (**)(SSL *, void *))parg = ctx->ext.status_cb;
 4513|      0|        break;
 4514|       |
 4515|      0|#ifndef OPENSSL_NO_SRP
 4516|      0|    case SSL_CTRL_SET_TLS_EXT_SRP_USERNAME:
  ------------------
  |  | 1365|      0|#define SSL_CTRL_SET_TLS_EXT_SRP_USERNAME 79
  ------------------
  |  Branch (4516:5): [True: 0, False: 347]
  ------------------
 4517|      0|        ctx->srp_ctx.srp_Mask |= SSL_kSRP;
  ------------------
  |  |   95|      0|#define SSL_kSRP 0x00000020U
  ------------------
 4518|      0|        OPENSSL_free(ctx->srp_ctx.login);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4519|      0|        ctx->srp_ctx.login = NULL;
 4520|      0|        if (parg == NULL)
  ------------------
  |  Branch (4520:13): [True: 0, False: 0]
  ------------------
 4521|      0|            break;
 4522|      0|        if (strlen((const char *)parg) > 255 || strlen((const char *)parg) < 1) {
  ------------------
  |  Branch (4522:13): [True: 0, False: 0]
  |  Branch (4522:49): [True: 0, False: 0]
  ------------------
 4523|      0|            ERR_raise(ERR_LIB_SSL, SSL_R_INVALID_SRP_USERNAME);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4524|      0|            return 0;
 4525|      0|        }
 4526|      0|        if ((ctx->srp_ctx.login = OPENSSL_strdup((char *)parg)) == NULL) {
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (4526:13): [True: 0, False: 0]
  ------------------
 4527|      0|            ERR_raise(ERR_LIB_SSL, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4528|      0|            return 0;
 4529|      0|        }
 4530|      0|        break;
 4531|      0|    case SSL_CTRL_SET_TLS_EXT_SRP_PASSWORD:
  ------------------
  |  | 1367|      0|#define SSL_CTRL_SET_TLS_EXT_SRP_PASSWORD 81
  ------------------
  |  Branch (4531:5): [True: 0, False: 347]
  ------------------
 4532|      0|        ctx->srp_ctx.SRP_give_srp_client_pwd_callback = srp_password_from_info_cb;
 4533|      0|        if (ctx->srp_ctx.info != NULL)
  ------------------
  |  Branch (4533:13): [True: 0, False: 0]
  ------------------
 4534|      0|            OPENSSL_free(ctx->srp_ctx.info);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4535|      0|        if ((ctx->srp_ctx.info = OPENSSL_strdup((char *)parg)) == NULL) {
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (4535:13): [True: 0, False: 0]
  ------------------
 4536|      0|            ERR_raise(ERR_LIB_SSL, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4537|      0|            return 0;
 4538|      0|        }
 4539|      0|        break;
 4540|      0|    case SSL_CTRL_SET_SRP_ARG:
  ------------------
  |  | 1364|      0|#define SSL_CTRL_SET_SRP_ARG 78
  ------------------
  |  Branch (4540:5): [True: 0, False: 347]
  ------------------
 4541|      0|        ctx->srp_ctx.srp_Mask |= SSL_kSRP;
  ------------------
  |  |   95|      0|#define SSL_kSRP 0x00000020U
  ------------------
 4542|      0|        ctx->srp_ctx.SRP_cb_arg = parg;
 4543|      0|        break;
 4544|       |
 4545|      0|    case SSL_CTRL_SET_TLS_EXT_SRP_STRENGTH:
  ------------------
  |  | 1366|      0|#define SSL_CTRL_SET_TLS_EXT_SRP_STRENGTH 80
  ------------------
  |  Branch (4545:5): [True: 0, False: 347]
  ------------------
 4546|      0|        ctx->srp_ctx.strength = larg;
 4547|      0|        break;
 4548|      0|#endif
 4549|       |
 4550|      0|    case SSL_CTRL_SET_GROUPS:
  ------------------
  |  | 1378|      0|#define SSL_CTRL_SET_GROUPS 91
  ------------------
  |  Branch (4550:5): [True: 0, False: 347]
  ------------------
 4551|      0|        return tls1_set_groups(&ctx->ext.supportedgroups,
 4552|      0|            &ctx->ext.supportedgroups_len,
 4553|      0|            &ctx->ext.keyshares,
 4554|      0|            &ctx->ext.keyshares_len,
 4555|      0|            &ctx->ext.tuples,
 4556|      0|            &ctx->ext.tuples_len,
 4557|      0|            parg, larg);
 4558|       |
 4559|    347|    case SSL_CTRL_SET_GROUPS_LIST:
  ------------------
  |  | 1379|    347|#define SSL_CTRL_SET_GROUPS_LIST 92
  ------------------
  |  Branch (4559:5): [True: 347, False: 0]
  ------------------
 4560|    347|        return tls1_set_groups_list(ctx,
 4561|    347|            &ctx->ext.supportedgroups,
 4562|    347|            &ctx->ext.supportedgroups_len,
 4563|    347|            &ctx->ext.keyshares,
 4564|    347|            &ctx->ext.keyshares_len,
 4565|    347|            &ctx->ext.tuples,
 4566|    347|            &ctx->ext.tuples_len,
 4567|    347|            parg);
 4568|       |
 4569|      0|    case SSL_CTRL_GET0_IMPLEMENTED_GROUPS:
  ------------------
  |  | 1419|      0|#define SSL_CTRL_GET0_IMPLEMENTED_GROUPS 139
  ------------------
  |  Branch (4569:5): [True: 0, False: 347]
  ------------------
 4570|      0|        return tls1_get0_implemented_groups(ctx->min_proto_version,
 4571|      0|            ctx->max_proto_version,
 4572|      0|            ctx->group_list,
 4573|      0|            ctx->group_list_len, larg, parg);
 4574|       |
 4575|      0|    case SSL_CTRL_SET_SIGALGS:
  ------------------
  |  | 1381|      0|#define SSL_CTRL_SET_SIGALGS 97
  ------------------
  |  Branch (4575:5): [True: 0, False: 347]
  ------------------
 4576|      0|        return tls1_set_sigalgs(ctx->cert, parg, larg, 0);
 4577|       |
 4578|      0|    case SSL_CTRL_SET_SIGALGS_LIST:
  ------------------
  |  | 1382|      0|#define SSL_CTRL_SET_SIGALGS_LIST 98
  ------------------
  |  Branch (4578:5): [True: 0, False: 347]
  ------------------
 4579|      0|        return tls1_set_sigalgs_list(ctx, ctx->cert, parg, 0);
 4580|       |
 4581|      0|    case SSL_CTRL_SET_CLIENT_SIGALGS:
  ------------------
  |  | 1385|      0|#define SSL_CTRL_SET_CLIENT_SIGALGS 101
  ------------------
  |  Branch (4581:5): [True: 0, False: 347]
  ------------------
 4582|      0|        return tls1_set_sigalgs(ctx->cert, parg, larg, 1);
 4583|       |
 4584|      0|    case SSL_CTRL_SET_CLIENT_SIGALGS_LIST:
  ------------------
  |  | 1386|      0|#define SSL_CTRL_SET_CLIENT_SIGALGS_LIST 102
  ------------------
  |  Branch (4584:5): [True: 0, False: 347]
  ------------------
 4585|      0|        return tls1_set_sigalgs_list(ctx, ctx->cert, parg, 1);
 4586|       |
 4587|      0|    case SSL_CTRL_SET_CLIENT_CERT_TYPES:
  ------------------
  |  | 1388|      0|#define SSL_CTRL_SET_CLIENT_CERT_TYPES 104
  ------------------
  |  Branch (4587:5): [True: 0, False: 347]
  ------------------
 4588|      0|        return ssl3_set_req_cert_type(ctx->cert, parg, larg);
 4589|       |
 4590|      0|    case SSL_CTRL_BUILD_CERT_CHAIN:
  ------------------
  |  | 1389|      0|#define SSL_CTRL_BUILD_CERT_CHAIN 105
  ------------------
  |  Branch (4590:5): [True: 0, False: 347]
  ------------------
 4591|      0|        return ssl_build_cert_chain(NULL, ctx, larg);
 4592|       |
 4593|      0|    case SSL_CTRL_SET_VERIFY_CERT_STORE:
  ------------------
  |  | 1390|      0|#define SSL_CTRL_SET_VERIFY_CERT_STORE 106
  ------------------
  |  Branch (4593:5): [True: 0, False: 347]
  ------------------
 4594|      0|        return ssl_cert_set_cert_store(ctx->cert, parg, 0, larg);
 4595|       |
 4596|      0|    case SSL_CTRL_SET_CHAIN_CERT_STORE:
  ------------------
  |  | 1391|      0|#define SSL_CTRL_SET_CHAIN_CERT_STORE 107
  ------------------
  |  Branch (4596:5): [True: 0, False: 347]
  ------------------
 4597|      0|        return ssl_cert_set_cert_store(ctx->cert, parg, 1, larg);
 4598|       |
 4599|      0|    case SSL_CTRL_GET_VERIFY_CERT_STORE:
  ------------------
  |  | 1417|      0|#define SSL_CTRL_GET_VERIFY_CERT_STORE 137
  ------------------
  |  Branch (4599:5): [True: 0, False: 347]
  ------------------
 4600|      0|        return ssl_cert_get_cert_store(ctx->cert, parg, 0);
 4601|       |
 4602|      0|    case SSL_CTRL_GET_CHAIN_CERT_STORE:
  ------------------
  |  | 1418|      0|#define SSL_CTRL_GET_CHAIN_CERT_STORE 138
  ------------------
  |  Branch (4602:5): [True: 0, False: 347]
  ------------------
 4603|      0|        return ssl_cert_get_cert_store(ctx->cert, parg, 1);
 4604|       |
 4605|       |        /* A Thawte special :-) */
 4606|      0|    case SSL_CTRL_EXTRA_CHAIN_CERT:
  ------------------
  |  | 1310|      0|#define SSL_CTRL_EXTRA_CHAIN_CERT 14
  ------------------
  |  Branch (4606:5): [True: 0, False: 347]
  ------------------
 4607|      0|        if (ctx->extra_certs == NULL) {
  ------------------
  |  Branch (4607:13): [True: 0, False: 0]
  ------------------
 4608|      0|            if ((ctx->extra_certs = sk_X509_new_null()) == NULL) {
  ------------------
  |  |   85|      0|#define sk_X509_new_null() ((STACK_OF(X509) *)OPENSSL_sk_set_thunks(OPENSSL_sk_new_null(), sk_X509_freefunc_thunk))
  ------------------
  |  Branch (4608:17): [True: 0, False: 0]
  ------------------
 4609|      0|                ERR_raise(ERR_LIB_SSL, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4610|      0|                return 0;
 4611|      0|            }
 4612|      0|        }
 4613|      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 (4613:13): [True: 0, False: 0]
  ------------------
 4614|      0|            ERR_raise(ERR_LIB_SSL, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4615|      0|            return 0;
 4616|      0|        }
 4617|      0|        break;
 4618|       |
 4619|      0|    case SSL_CTRL_GET_EXTRA_CHAIN_CERTS:
  ------------------
  |  | 1373|      0|#define SSL_CTRL_GET_EXTRA_CHAIN_CERTS 82
  ------------------
  |  Branch (4619:5): [True: 0, False: 347]
  ------------------
 4620|      0|        if (ctx->extra_certs == NULL && larg == 0)
  ------------------
  |  Branch (4620:13): [True: 0, False: 0]
  |  Branch (4620:41): [True: 0, False: 0]
  ------------------
 4621|      0|            *(STACK_OF(X509) **)parg = ctx->cert->key->chain;
 4622|      0|        else
 4623|      0|            *(STACK_OF(X509) **)parg = ctx->extra_certs;
 4624|      0|        break;
 4625|       |
 4626|      0|    case SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS:
  ------------------
  |  | 1374|      0|#define SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS 83
  ------------------
  |  Branch (4626:5): [True: 0, False: 347]
  ------------------
 4627|      0|        OSSL_STACK_OF_X509_free(ctx->extra_certs);
 4628|      0|        ctx->extra_certs = NULL;
 4629|      0|        break;
 4630|       |
 4631|      0|    case SSL_CTRL_CHAIN:
  ------------------
  |  | 1375|      0|#define SSL_CTRL_CHAIN 88
  ------------------
  |  Branch (4631:5): [True: 0, False: 347]
  ------------------
 4632|      0|        if (larg)
  ------------------
  |  Branch (4632:13): [True: 0, False: 0]
  ------------------
 4633|      0|            return ssl_cert_set1_chain(NULL, ctx, (STACK_OF(X509) *)parg);
 4634|      0|        else
 4635|      0|            return ssl_cert_set0_chain(NULL, ctx, (STACK_OF(X509) *)parg);
 4636|       |
 4637|      0|    case SSL_CTRL_CHAIN_CERT:
  ------------------
  |  | 1376|      0|#define SSL_CTRL_CHAIN_CERT 89
  ------------------
  |  Branch (4637:5): [True: 0, False: 347]
  ------------------
 4638|      0|        if (larg)
  ------------------
  |  Branch (4638:13): [True: 0, False: 0]
  ------------------
 4639|      0|            return ssl_cert_add1_chain_cert(NULL, ctx, (X509 *)parg);
 4640|      0|        else
 4641|      0|            return ssl_cert_add0_chain_cert(NULL, ctx, (X509 *)parg);
 4642|       |
 4643|      0|    case SSL_CTRL_GET_CHAIN_CERTS:
  ------------------
  |  | 1396|      0|#define SSL_CTRL_GET_CHAIN_CERTS 115
  ------------------
  |  Branch (4643:5): [True: 0, False: 347]
  ------------------
 4644|      0|        *(STACK_OF(X509) **)parg = ctx->cert->key->chain;
 4645|      0|        break;
 4646|       |
 4647|      0|    case SSL_CTRL_SELECT_CURRENT_CERT:
  ------------------
  |  | 1397|      0|#define SSL_CTRL_SELECT_CURRENT_CERT 116
  ------------------
  |  Branch (4647:5): [True: 0, False: 347]
  ------------------
 4648|      0|        return ssl_cert_select_current(ctx->cert, (X509 *)parg);
 4649|       |
 4650|      0|    case SSL_CTRL_SET_CURRENT_CERT:
  ------------------
  |  | 1398|      0|#define SSL_CTRL_SET_CURRENT_CERT 117
  ------------------
  |  Branch (4650:5): [True: 0, False: 347]
  ------------------
 4651|      0|        return ssl_cert_set_current(ctx->cert, larg);
 4652|       |
 4653|      0|    default:
  ------------------
  |  Branch (4653:5): [True: 0, False: 347]
  ------------------
 4654|      0|        return 0;
 4655|    347|    }
 4656|      0|    return 1;
 4657|    347|}
ssl3_get_tls13_cipher_by_std_name:
 4729|  1.04k|{
 4730|  1.04k|    SSL_CIPHER *end = &tls13_ciphers[TLS13_NUM_CIPHERS];
  ------------------
  |  |   27|  1.04k|#define TLS13_NUM_CIPHERS OSSL_NELEM(tls13_ciphers)
  |  |  ------------------
  |  |  |  |   14|  1.04k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  |  |  ------------------
  ------------------
 4731|       |
 4732|       |    /* this is not efficient, necessary to optimize this? */
 4733|  4.16k|    for (SSL_CIPHER *c = tls13_ciphers; c < end; ++c) {
  ------------------
  |  Branch (4733:41): [True: 4.16k, False: 0]
  ------------------
 4734|  4.16k|        if (c->stdname == NULL)
  ------------------
  |  Branch (4734:13): [True: 0, False: 4.16k]
  ------------------
 4735|      0|            continue;
 4736|  4.16k|        if (OPENSSL_strcasecmp(stdname, c->stdname) == 0)
  ------------------
  |  Branch (4736:13): [True: 1.04k, False: 3.12k]
  ------------------
 4737|  1.04k|            return c;
 4738|  4.16k|    }
 4739|      0|    return NULL;
 4740|  1.04k|}
ssl3_put_cipher_by_char:
 4773|  10.2k|{
 4774|  10.2k|    if ((c->id & 0xff000000) != SSL3_CK_CIPHERSUITE_FLAG) {
  ------------------
  |  |  262|  10.2k|#define SSL3_CK_CIPHERSUITE_FLAG 0x03000000
  ------------------
  |  Branch (4774:9): [True: 0, False: 10.2k]
  ------------------
 4775|      0|        *len = 0;
 4776|      0|        return 1;
 4777|      0|    }
 4778|       |
 4779|  10.2k|    if (!WPACKET_put_bytes_u16(pkt, c->id & 0xffff))
  ------------------
  |  |  911|  10.2k|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (4779:9): [True: 0, False: 10.2k]
  ------------------
 4780|      0|        return 0;
 4781|       |
 4782|  10.2k|    *len = 2;
 4783|  10.2k|    return 1;
 4784|  10.2k|}
ssl3_renegotiate_check:
 5199|  6.51k|{
 5200|  6.51k|    int ret = 0;
 5201|  6.51k|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL_ONLY(s);
  ------------------
  |  |   23|  6.51k|    SSL_CONNECTION_FROM_SSL_ONLY_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   17|  6.51k|    ((ssl) == NULL ? NULL                                    \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (17:6): [True: 0, False: 6.51k]
  |  |  |  |  ------------------
  |  |  |  |   18|  6.51k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|  6.51k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (18:23): [True: 6.51k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   19|  6.51k|                             ? (c SSL_CONNECTION *)(ssl)     \
  |  |  |  |   20|  6.51k|                             : NULL))
  |  |  ------------------
  ------------------
 5202|       |
 5203|  6.51k|    if (sc == NULL)
  ------------------
  |  Branch (5203:9): [True: 0, False: 6.51k]
  ------------------
 5204|      0|        return 0;
 5205|       |
 5206|  6.51k|    if (sc->s3.renegotiate) {
  ------------------
  |  Branch (5206:9): [True: 0, False: 6.51k]
  ------------------
 5207|      0|        if (!RECORD_LAYER_read_pending(&sc->rlayer)
  ------------------
  |  Branch (5207:13): [True: 0, False: 0]
  ------------------
 5208|      0|            && !RECORD_LAYER_write_pending(&sc->rlayer)
  ------------------
  |  Branch (5208:16): [True: 0, False: 0]
  ------------------
 5209|      0|            && (initok || !SSL_in_init(s))) {
  ------------------
  |  Branch (5209:17): [True: 0, False: 0]
  |  Branch (5209:27): [True: 0, False: 0]
  ------------------
 5210|       |            /*
 5211|       |             * if we are the server, and we have sent a 'RENEGOTIATE'
 5212|       |             * message, we need to set the state machine into the renegotiate
 5213|       |             * state.
 5214|       |             */
 5215|      0|            ossl_statem_set_renegotiate(sc);
 5216|      0|            sc->s3.renegotiate = 0;
 5217|      0|            sc->s3.num_renegotiations++;
 5218|      0|            sc->s3.total_renegotiations++;
 5219|      0|            ret = 1;
 5220|      0|        }
 5221|      0|    }
 5222|  6.51k|    return ret;
 5223|  6.51k|}
ssl_fill_hello_random:
 5256|    342|{
 5257|    342|    int send_time = 0, ret;
 5258|       |
 5259|    342|    if (len < 4)
  ------------------
  |  Branch (5259:9): [True: 0, False: 342]
  ------------------
 5260|      0|        return 0;
 5261|    342|    if (server)
  ------------------
  |  Branch (5261:9): [True: 0, False: 342]
  ------------------
 5262|      0|        send_time = (s->mode & SSL_MODE_SEND_SERVERHELLO_TIME) != 0;
  ------------------
  |  |  544|      0|#define SSL_MODE_SEND_SERVERHELLO_TIME 0x00000040U
  ------------------
 5263|    342|    else
 5264|    342|        send_time = (s->mode & SSL_MODE_SEND_CLIENTHELLO_TIME) != 0;
  ------------------
  |  |  543|    342|#define SSL_MODE_SEND_CLIENTHELLO_TIME 0x00000020U
  ------------------
 5265|    342|    if (send_time) {
  ------------------
  |  Branch (5265:9): [True: 0, False: 342]
  ------------------
 5266|      0|        unsigned long Time = (unsigned long)time(NULL);
 5267|      0|        unsigned char *p = result;
 5268|       |
 5269|      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))
  ------------------
 5270|      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)
  ------------------
 5271|    342|    } else {
 5272|    342|        ret = RAND_bytes_ex(SSL_CONNECTION_GET_CTX(s)->libctx, result, len, 0);
  ------------------
  |  |   26|    342|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 5273|    342|    }
 5274|       |
 5275|    342|    if (ret > 0) {
  ------------------
  |  Branch (5275:9): [True: 342, False: 0]
  ------------------
 5276|    342|        if (!ossl_assert(sizeof(tls11downgrade) < len)
  ------------------
  |  |   52|    684|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    684|    __FILE__, __LINE__)
  ------------------
  |  Branch (5276:13): [True: 0, False: 342]
  ------------------
 5277|    342|            || !ossl_assert(sizeof(tls12downgrade) < len))
  ------------------
  |  |   52|    342|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    342|    __FILE__, __LINE__)
  ------------------
  |  Branch (5277:16): [True: 0, False: 342]
  ------------------
 5278|      0|            return 0;
 5279|    342|        if (dgrd == DOWNGRADE_TO_1_2)
  ------------------
  |  Branch (5279:13): [True: 0, False: 342]
  ------------------
 5280|      0|            memcpy(result + len - sizeof(tls12downgrade), tls12downgrade,
 5281|      0|                sizeof(tls12downgrade));
 5282|    342|        else if (dgrd == DOWNGRADE_TO_1_1)
  ------------------
  |  Branch (5282:18): [True: 0, False: 342]
  ------------------
 5283|      0|            memcpy(result + len - sizeof(tls11downgrade), tls11downgrade,
 5284|      0|                sizeof(tls11downgrade));
 5285|    342|    }
 5286|       |
 5287|    342|    return ret;
 5288|    342|}
ssl_generate_pkey_group:
 5388|    684|{
 5389|    684|    SSL_CTX *sctx = SSL_CONNECTION_GET_CTX(s);
  ------------------
  |  |   26|    684|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 5390|    684|    const TLS_GROUP_INFO *ginf = tls1_group_id_lookup(sctx, id);
 5391|    684|    EVP_PKEY_CTX *pctx = NULL;
 5392|    684|    EVP_PKEY *pkey = NULL;
 5393|       |
 5394|    684|    if (ginf == NULL) {
  ------------------
  |  Branch (5394:9): [True: 0, False: 684]
  ------------------
 5395|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 5396|      0|        goto err;
 5397|      0|    }
 5398|       |
 5399|    684|    pctx = EVP_PKEY_CTX_new_from_name(sctx->libctx, ginf->algorithm,
 5400|    684|        sctx->propq);
 5401|       |
 5402|    684|    if (pctx == NULL) {
  ------------------
  |  Branch (5402:9): [True: 0, False: 684]
  ------------------
 5403|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_EVP_LIB);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 5404|      0|        goto err;
 5405|      0|    }
 5406|    684|    if (EVP_PKEY_keygen_init(pctx) <= 0) {
  ------------------
  |  Branch (5406:9): [True: 0, False: 684]
  ------------------
 5407|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_EVP_LIB);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 5408|      0|        goto err;
 5409|      0|    }
 5410|    684|    if (EVP_PKEY_CTX_set_group_name(pctx, ginf->realname) <= 0) {
  ------------------
  |  Branch (5410:9): [True: 0, False: 684]
  ------------------
 5411|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_EVP_LIB);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 5412|      0|        goto err;
 5413|      0|    }
 5414|    684|    if (EVP_PKEY_keygen(pctx, &pkey) <= 0) {
  ------------------
  |  Branch (5414:9): [True: 0, False: 684]
  ------------------
 5415|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_EVP_LIB);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 5416|      0|        EVP_PKEY_free(pkey);
 5417|      0|        pkey = NULL;
 5418|      0|    }
 5419|       |
 5420|    684|err:
 5421|    684|    EVP_PKEY_CTX_free(pctx);
 5422|    684|    return pkey;
 5423|    684|}
s3_lib.c:cipher_compare:
 3756|  1.96k|{
 3757|  1.96k|    const SSL_CIPHER *ap = (const SSL_CIPHER *)a;
 3758|  1.96k|    const SSL_CIPHER *bp = (const SSL_CIPHER *)b;
 3759|       |
 3760|  1.96k|    if (ap->id == bp->id)
  ------------------
  |  Branch (3760:9): [True: 0, False: 1.96k]
  ------------------
 3761|      0|        return 0;
 3762|  1.96k|    return ap->id < bp->id ? -1 : 1;
  ------------------
  |  Branch (3762:12): [True: 1.25k, False: 706]
  ------------------
 3763|  1.96k|}

SSL_get_ex_data_X509_STORE_CTX_idx:
   56|    347|{
   57|       |
   58|    347|    if (!RUN_ONCE(&ssl_x509_store_ctx_once, ssl_x509_store_ctx_init))
  ------------------
  |  |  130|    347|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 347, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (58:9): [True: 0, False: 347]
  ------------------
   59|      0|        return -1;
   60|    347|    return ssl_x509_store_ctx_idx;
   61|    347|}
ssl_cert_new:
   64|    347|{
   65|    347|    CERT *ret = NULL;
   66|       |
   67|       |    /* Should never happen */
   68|    347|    if (!ossl_assert(ssl_pkey_num >= SSL_PKEY_NUM))
  ------------------
  |  |   52|    347|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    347|    __FILE__, __LINE__)
  ------------------
  |  Branch (68:9): [True: 0, False: 347]
  ------------------
   69|      0|        return NULL;
   70|       |
   71|    347|    ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  109|    347|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   72|    347|    if (ret == NULL)
  ------------------
  |  Branch (72:9): [True: 0, False: 347]
  ------------------
   73|      0|        return NULL;
   74|       |
   75|    347|    ret->ssl_pkey_num = ssl_pkey_num;
   76|    347|    ret->pkeys = OPENSSL_calloc(ret->ssl_pkey_num, sizeof(CERT_PKEY));
  ------------------
  |  |  113|    347|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   77|    347|    if (ret->pkeys == NULL) {
  ------------------
  |  Branch (77:9): [True: 0, False: 347]
  ------------------
   78|      0|        OPENSSL_free(ret);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   79|      0|        return NULL;
   80|      0|    }
   81|       |
   82|    347|    ret->key = &(ret->pkeys[SSL_PKEY_RSA]);
  ------------------
  |  |  327|    347|#define SSL_PKEY_RSA 0
  ------------------
   83|    347|    ret->sec_cb = ssl_security_default_callback;
   84|    347|    ret->sec_level = OPENSSL_TLS_SECURITY_LEVEL;
  ------------------
  |  |   31|    347|#define OPENSSL_TLS_SECURITY_LEVEL 2
  ------------------
   85|    347|    ret->sec_ex = NULL;
   86|    347|    if (!CRYPTO_NEW_REF(&ret->references, 1)) {
  ------------------
  |  Branch (86:9): [True: 0, False: 347]
  ------------------
   87|      0|        OPENSSL_free(ret->pkeys);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   88|      0|        OPENSSL_free(ret);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   89|      0|        return NULL;
   90|      0|    }
   91|       |
   92|    347|    return ret;
   93|    347|}
ssl_cert_dup:
   96|    347|{
   97|    347|    CERT *ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  109|    347|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
   98|    347|    size_t i;
   99|       |#ifndef OPENSSL_NO_COMP_ALG
  100|       |    int j;
  101|       |#endif
  102|       |
  103|    347|    if (ret == NULL)
  ------------------
  |  Branch (103:9): [True: 0, False: 347]
  ------------------
  104|      0|        return NULL;
  105|       |
  106|    347|    ret->ssl_pkey_num = cert->ssl_pkey_num;
  107|    347|    ret->pkeys = OPENSSL_calloc(ret->ssl_pkey_num, sizeof(CERT_PKEY));
  ------------------
  |  |  113|    347|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  108|    347|    if (ret->pkeys == NULL) {
  ------------------
  |  Branch (108:9): [True: 0, False: 347]
  ------------------
  109|      0|        OPENSSL_free(ret);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  110|      0|        return NULL;
  111|      0|    }
  112|       |
  113|    347|    ret->key = &ret->pkeys[cert->key - cert->pkeys];
  114|    347|    if (!CRYPTO_NEW_REF(&ret->references, 1)) {
  ------------------
  |  Branch (114:9): [True: 0, False: 347]
  ------------------
  115|      0|        OPENSSL_free(ret->pkeys);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  116|      0|        OPENSSL_free(ret);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  117|      0|        return NULL;
  118|      0|    }
  119|       |
  120|    347|    if (cert->dh_tmp != NULL) {
  ------------------
  |  Branch (120:9): [True: 0, False: 347]
  ------------------
  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|    347|    ret->dh_tmp_cb = cert->dh_tmp_cb;
  127|    347|    ret->dh_tmp_auto = cert->dh_tmp_auto;
  128|       |
  129|  4.85k|    for (i = 0; i < ret->ssl_pkey_num; i++) {
  ------------------
  |  Branch (129:17): [True: 4.51k, False: 347]
  ------------------
  130|  4.51k|        CERT_PKEY *cpk = cert->pkeys + i;
  131|  4.51k|        CERT_PKEY *rpk = ret->pkeys + i;
  132|       |
  133|  4.51k|        if (cpk->x509 != NULL) {
  ------------------
  |  Branch (133:13): [True: 0, False: 4.51k]
  ------------------
  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|  4.51k|        if (cpk->privatekey != NULL) {
  ------------------
  |  Branch (139:13): [True: 0, False: 4.51k]
  ------------------
  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|  4.51k|        if (cpk->chain) {
  ------------------
  |  Branch (145:13): [True: 0, False: 4.51k]
  ------------------
  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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  149|      0|                goto err;
  150|      0|            }
  151|      0|        }
  152|  4.51k|        if (cpk->serverinfo != NULL) {
  ------------------
  |  Branch (152:13): [True: 0, False: 4.51k]
  ------------------
  153|       |            /* Just copy everything. */
  154|      0|            rpk->serverinfo = OPENSSL_memdup(cpk->serverinfo, cpk->serverinfo_length);
  ------------------
  |  |  134|      0|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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|  4.51k|    }
  169|       |
  170|       |    /* Configured sigalgs copied across */
  171|    347|    if (cert->conf_sigalgs) {
  ------------------
  |  Branch (171:9): [True: 0, False: 347]
  ------------------
  172|      0|        ret->conf_sigalgs = OPENSSL_malloc_array(cert->conf_sigalgslen,
  ------------------
  |  |  111|      0|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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|    347|        ret->conf_sigalgs = NULL;
  181|       |
  182|    347|    if (cert->client_sigalgs) {
  ------------------
  |  Branch (182:9): [True: 0, False: 347]
  ------------------
  183|      0|        ret->client_sigalgs = OPENSSL_malloc_array(cert->client_sigalgslen,
  ------------------
  |  |  111|      0|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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|    347|        ret->client_sigalgs = NULL;
  192|       |    /* Copy any custom client certificate types */
  193|    347|    if (cert->ctype) {
  ------------------
  |  Branch (193:9): [True: 0, False: 347]
  ------------------
  194|      0|        ret->ctype = OPENSSL_memdup(cert->ctype, cert->ctype_len);
  ------------------
  |  |  134|      0|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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|    347|    ret->cert_flags = cert->cert_flags;
  201|       |
  202|    347|    ret->cert_cb = cert->cert_cb;
  203|    347|    ret->cert_cb_arg = cert->cert_cb_arg;
  204|       |
  205|    347|    if (cert->verify_store) {
  ------------------
  |  Branch (205:9): [True: 0, False: 347]
  ------------------
  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|    347|    if (cert->chain_store) {
  ------------------
  |  Branch (211:9): [True: 0, False: 347]
  ------------------
  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|    347|    ret->sec_cb = cert->sec_cb;
  218|    347|    ret->sec_level = cert->sec_level;
  219|    347|    ret->sec_ex = cert->sec_ex;
  220|       |
  221|    347|    if (!custom_exts_copy(&ret->custext, &cert->custext))
  ------------------
  |  Branch (221:9): [True: 0, False: 347]
  ------------------
  222|      0|        goto err;
  223|    347|#ifndef OPENSSL_NO_PSK
  224|    347|    if (cert->psk_identity_hint) {
  ------------------
  |  Branch (224:9): [True: 0, False: 347]
  ------------------
  225|      0|        ret->psk_identity_hint = OPENSSL_strdup(cert->psk_identity_hint);
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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|    347|#endif
  230|    347|    return ret;
  231|       |
  232|      0|err:
  233|      0|    ssl_cert_free(ret);
  234|       |
  235|       |    return NULL;
  236|    347|}
ssl_cert_clear_certs:
  241|    694|{
  242|    694|    size_t i;
  243|       |#ifndef OPENSSL_NO_COMP_ALG
  244|       |    int j;
  245|       |#endif
  246|       |
  247|    694|    if (c == NULL)
  ------------------
  |  Branch (247:9): [True: 0, False: 694]
  ------------------
  248|      0|        return;
  249|  9.71k|    for (i = 0; i < c->ssl_pkey_num; i++) {
  ------------------
  |  Branch (249:17): [True: 9.02k, False: 694]
  ------------------
  250|  9.02k|        CERT_PKEY *cpk = c->pkeys + i;
  251|  9.02k|        X509_free(cpk->x509);
  252|  9.02k|        cpk->x509 = NULL;
  253|  9.02k|        EVP_PKEY_free(cpk->privatekey);
  254|  9.02k|        cpk->privatekey = NULL;
  255|  9.02k|        OSSL_STACK_OF_X509_free(cpk->chain);
  256|  9.02k|        cpk->chain = NULL;
  257|  9.02k|        OPENSSL_free(cpk->serverinfo);
  ------------------
  |  |  132|  9.02k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  258|  9.02k|        cpk->serverinfo = NULL;
  259|  9.02k|        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|  9.02k|    }
  268|    694|}
ssl_cert_free:
  271|    694|{
  272|    694|    int i;
  273|       |
  274|    694|    if (c == NULL)
  ------------------
  |  Branch (274:9): [True: 0, False: 694]
  ------------------
  275|      0|        return;
  276|    694|    CRYPTO_DOWN_REF(&c->references, &i);
  277|    694|    REF_PRINT_COUNT("CERT", i, c);
  ------------------
  |  |  301|    694|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|    694|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  295|    694|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|    694|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  278|    694|    if (i > 0)
  ------------------
  |  Branch (278:9): [True: 0, False: 694]
  ------------------
  279|      0|        return;
  280|    694|    REF_ASSERT_ISNT(i < 0);
  ------------------
  |  |  293|    694|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 694]
  |  |  ------------------
  ------------------
  281|       |
  282|    694|    EVP_PKEY_free(c->dh_tmp);
  283|       |
  284|    694|    ssl_cert_clear_certs(c);
  285|    694|    OPENSSL_free(c->conf_sigalgs);
  ------------------
  |  |  132|    694|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  286|    694|    OPENSSL_free(c->client_sigalgs);
  ------------------
  |  |  132|    694|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  287|    694|    OPENSSL_free(c->ctype);
  ------------------
  |  |  132|    694|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  288|    694|    X509_STORE_free(c->verify_store);
  289|    694|    X509_STORE_free(c->chain_store);
  290|    694|    custom_exts_free(&c->custext);
  291|    694|#ifndef OPENSSL_NO_PSK
  292|    694|    OPENSSL_free(c->psk_identity_hint);
  ------------------
  |  |  132|    694|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  293|    694|#endif
  294|    694|    OPENSSL_free(c->pkeys);
  ------------------
  |  |  132|    694|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  295|    694|    CRYPTO_FREE_REF(&c->references);
  296|    694|    OPENSSL_free(c);
  ------------------
  |  |  132|    694|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  297|    694|}
SSL_get0_CA_list:
  631|    342|{
  632|    342|    const SSL_CONNECTION *sc = SSL_CONNECTION_FROM_CONST_SSL(s);
  ------------------
  |  |   41|    342|    SSL_CONNECTION_FROM_SSL_int(ssl, const)
  |  |  ------------------
  |  |  |  |   32|    342|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 342]
  |  |  |  |  ------------------
  |  |  |  |   33|    342|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|    342|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 342, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    342|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    342|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1231:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
  633|       |
  634|    342|    if (sc == NULL)
  ------------------
  |  Branch (634:9): [True: 0, False: 342]
  ------------------
  635|      0|        return NULL;
  636|       |
  637|    342|    return sc->ca_names != NULL ? sc->ca_names : s->ctx->ca_names;
  ------------------
  |  Branch (637:12): [True: 0, False: 342]
  ------------------
  638|    342|}
ssl_get_security_level_bits:
 1222|  69.4k|{
 1223|  69.4k|    int level;
 1224|       |    /*
 1225|       |     * note that there's a corresponding minbits_table
 1226|       |     * in crypto/x509/x509_vfy.c that's used for checking the security level
 1227|       |     * of RSA and DSA keys
 1228|       |     */
 1229|  69.4k|    static const int minbits_table[5 + 1] = { 0, 80, 112, 128, 192, 256 };
 1230|       |
 1231|  69.4k|    if (ctx != NULL)
  ------------------
  |  Branch (1231:9): [True: 0, False: 69.4k]
  ------------------
 1232|      0|        level = SSL_CTX_get_security_level(ctx);
 1233|  69.4k|    else
 1234|  69.4k|        level = SSL_get_security_level(s);
 1235|       |
 1236|  69.4k|    if (level > 5)
  ------------------
  |  Branch (1236:9): [True: 0, False: 69.4k]
  ------------------
 1237|      0|        level = 5;
 1238|  69.4k|    else if (level < 0)
  ------------------
  |  Branch (1238:14): [True: 0, False: 69.4k]
  ------------------
 1239|      0|        level = 0;
 1240|       |
 1241|  69.4k|    if (levelp != NULL)
  ------------------
  |  Branch (1241:9): [True: 69.4k, False: 0]
  ------------------
 1242|  69.4k|        *levelp = level;
 1243|       |
 1244|  69.4k|    return minbits_table[level];
 1245|  69.4k|}
ssl_security:
 1318|  69.4k|{
 1319|  69.4k|    return s->cert->sec_cb(SSL_CONNECTION_GET_USER_SSL(s), NULL, op, bits, nid,
  ------------------
  |  |   28|  69.4k|#define SSL_CONNECTION_GET_USER_SSL(sc) ((sc)->user_ssl)
  ------------------
 1320|  69.4k|        other, s->cert->sec_ex);
 1321|  69.4k|}
ssl_cert_lookup_by_idx:
 1379|  54.0k|{
 1380|  54.0k|    if (idx >= (OSSL_NELEM(ssl_cert_info) + ctx->sigalg_list_len))
  ------------------
  |  |   14|  54.0k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (1380:9): [True: 0, False: 54.0k]
  ------------------
 1381|      0|        return NULL;
 1382|  54.0k|    else if (idx >= (OSSL_NELEM(ssl_cert_info)))
  ------------------
  |  |   14|  54.0k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (1382:14): [True: 5.47k, False: 48.5k]
  ------------------
 1383|  5.47k|        return &(ctx->ssl_cert_info[idx - SSL_PKEY_NUM]);
  ------------------
  |  |  336|  5.47k|#define SSL_PKEY_NUM 9
  ------------------
 1384|  48.5k|    return &ssl_cert_info[idx];
 1385|  54.0k|}
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,
  ------------------
  |  |  781|      1|    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509_STORE_CTX, l, p, newf, dupf, freef)
  |  |  ------------------
  |  |  |  |  256|      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:
 1250|  69.4k|{
 1251|  69.4k|    int level, minbits, pfs_mask;
 1252|  69.4k|    const SSL_CONNECTION *sc;
 1253|       |
 1254|  69.4k|    minbits = ssl_get_security_level_bits(s, ctx, &level);
 1255|       |
 1256|  69.4k|    if (level == 0) {
  ------------------
  |  Branch (1256:9): [True: 0, False: 69.4k]
  ------------------
 1257|       |        /*
 1258|       |         * No EDH keys weaker than 1024-bits even at level 0, otherwise,
 1259|       |         * anything goes.
 1260|       |         */
 1261|      0|        if (op == SSL_SECOP_TMP_DH && bits < 80)
  ------------------
  |  | 2755|      0|#define SSL_SECOP_TMP_DH (7 | SSL_SECOP_OTHER_PKEY)
  |  |  ------------------
  |  |  |  | 2732|      0|#define SSL_SECOP_OTHER_PKEY (4 << 16)
  |  |  ------------------
  ------------------
  |  Branch (1261:13): [True: 0, False: 0]
  |  Branch (1261:39): [True: 0, False: 0]
  ------------------
 1262|      0|            return 0;
 1263|      0|        return 1;
 1264|      0|    }
 1265|  69.4k|    switch (op) {
 1266|  41.0k|    case SSL_SECOP_CIPHER_SUPPORTED:
  ------------------
  |  | 2743|  41.0k|#define SSL_SECOP_CIPHER_SUPPORTED (1 | SSL_SECOP_OTHER_CIPHER)
  |  |  ------------------
  |  |  |  | 2729|  41.0k|#define SSL_SECOP_OTHER_CIPHER (1 << 16)
  |  |  ------------------
  ------------------
  |  Branch (1266:5): [True: 41.0k, False: 28.3k]
  ------------------
 1267|  41.0k|    case SSL_SECOP_CIPHER_SHARED:
  ------------------
  |  | 2745|  41.0k|#define SSL_SECOP_CIPHER_SHARED (2 | SSL_SECOP_OTHER_CIPHER)
  |  |  ------------------
  |  |  |  | 2729|  41.0k|#define SSL_SECOP_OTHER_CIPHER (1 << 16)
  |  |  ------------------
  ------------------
  |  Branch (1267:5): [True: 0, False: 69.4k]
  ------------------
 1268|  41.0k|    case SSL_SECOP_CIPHER_CHECK: {
  ------------------
  |  | 2747|  41.0k|#define SSL_SECOP_CIPHER_CHECK (3 | SSL_SECOP_OTHER_CIPHER)
  |  |  ------------------
  |  |  |  | 2729|  41.0k|#define SSL_SECOP_OTHER_CIPHER (1 << 16)
  |  |  ------------------
  ------------------
  |  Branch (1268:5): [True: 0, False: 69.4k]
  ------------------
 1269|  41.0k|        const SSL_CIPHER *c = other;
 1270|       |        /* No ciphers below security level */
 1271|  41.0k|        if (bits < minbits)
  ------------------
  |  Branch (1271:13): [True: 0, False: 41.0k]
  ------------------
 1272|      0|            return 0;
 1273|       |        /* No unauthenticated ciphersuites */
 1274|  41.0k|        if (c->algorithm_auth & SSL_aNULL)
  ------------------
  |  |  116|  41.0k|#define SSL_aNULL 0x00000004U
  ------------------
  |  Branch (1274:13): [True: 0, False: 41.0k]
  ------------------
 1275|      0|            return 0;
 1276|       |        /* No MD5 mac ciphersuites */
 1277|  41.0k|        if (c->algorithm_mac & SSL_MD5)
  ------------------
  |  |  174|  41.0k|#define SSL_MD5 0x00000001U
  ------------------
  |  Branch (1277:13): [True: 0, False: 41.0k]
  ------------------
 1278|      0|            return 0;
 1279|       |        /* SHA1 HMAC is 160 bits of security */
 1280|  41.0k|        if (minbits > 160 && c->algorithm_mac & SSL_SHA1)
  ------------------
  |  |  175|      0|#define SSL_SHA1 0x00000002U
  ------------------
  |  Branch (1280:13): [True: 0, False: 41.0k]
  |  Branch (1280:30): [True: 0, False: 0]
  ------------------
 1281|      0|            return 0;
 1282|       |        /* Level 3: forward secure ciphersuites only */
 1283|  41.0k|        pfs_mask = SSL_kDHE | SSL_kECDHE | SSL_kDHEPSK | SSL_kECDHEPSK;
  ------------------
  |  |   87|  41.0k|#define SSL_kDHE 0x00000002U
  ------------------
                      pfs_mask = SSL_kDHE | SSL_kECDHE | SSL_kDHEPSK | SSL_kECDHEPSK;
  ------------------
  |  |   89|  41.0k|#define SSL_kECDHE 0x00000004U
  ------------------
                      pfs_mask = SSL_kDHE | SSL_kECDHE | SSL_kDHEPSK | SSL_kECDHEPSK;
  ------------------
  |  |   99|  41.0k|#define SSL_kDHEPSK 0x00000100U
  ------------------
                      pfs_mask = SSL_kDHE | SSL_kECDHE | SSL_kDHEPSK | SSL_kECDHEPSK;
  ------------------
  |  |   98|  41.0k|#define SSL_kECDHEPSK 0x00000080U
  ------------------
 1284|  41.0k|        if (level >= 3 && c->min_tls != TLS1_3_VERSION && !(c->algorithm_mkey & pfs_mask))
  ------------------
  |  |   27|  41.0k|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1284:13): [True: 0, False: 41.0k]
  |  Branch (1284:27): [True: 0, False: 0]
  |  Branch (1284:59): [True: 0, False: 0]
  ------------------
 1285|      0|            return 0;
 1286|  41.0k|        break;
 1287|  41.0k|    }
 1288|  41.0k|    case SSL_SECOP_VERSION:
  ------------------
  |  | 2757|  8.55k|#define SSL_SECOP_VERSION (9 | SSL_SECOP_OTHER_NONE)
  |  |  ------------------
  |  |  |  | 2728|  8.55k|#define SSL_SECOP_OTHER_NONE 0
  |  |  ------------------
  ------------------
  |  Branch (1288:5): [True: 8.55k, False: 60.8k]
  ------------------
 1289|  8.55k|        if ((sc = SSL_CONNECTION_FROM_CONST_SSL(s)) == NULL)
  ------------------
  |  |   41|  8.55k|    SSL_CONNECTION_FROM_SSL_int(ssl, const)
  |  |  ------------------
  |  |  |  |   32|  8.55k|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 8.55k]
  |  |  |  |  ------------------
  |  |  |  |   33|  8.55k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|  8.55k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 8.55k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|  8.55k|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|  8.55k|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1231:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
  |  Branch (1289:13): [True: 0, False: 8.55k]
  ------------------
 1290|      0|            return 0;
 1291|  8.55k|        if (!SSL_CONNECTION_IS_DTLS(sc)) {
  ------------------
  |  |  266|  8.55k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  8.55k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|  8.55k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  ------------------
  |  Branch (1291:13): [True: 8.55k, False: 0]
  ------------------
 1292|       |            /* SSLv3, TLS v1.0 and TLS v1.1 only allowed at level 0 */
 1293|  8.55k|            if (nid <= TLS1_1_VERSION && level > 0)
  ------------------
  |  |   25|  17.1k|#define TLS1_1_VERSION 0x0302
  ------------------
  |  Branch (1293:17): [True: 684, False: 7.86k]
  |  Branch (1293:42): [True: 684, False: 0]
  ------------------
 1294|    684|                return 0;
 1295|  8.55k|        } else {
 1296|       |            /* DTLS v1.0 only allowed at level 0 */
 1297|      0|            if (DTLS_VERSION_LT(nid, DTLS1_2_VERSION) && level > 0)
  ------------------
  |  |   64|      0|#define DTLS_VERSION_LT(v1, v2) (dtls_ver_ordinal(v1) > dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   61|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (61:31): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define DTLS_VERSION_LT(v1, v2) (dtls_ver_ordinal(v1) > dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   61|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (61:31): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (64:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1297:58): [True: 0, False: 0]
  ------------------
 1298|      0|                return 0;
 1299|      0|        }
 1300|  7.86k|        break;
 1301|       |
 1302|  7.86k|    case SSL_SECOP_COMPRESSION:
  ------------------
  |  | 2769|      0|#define SSL_SECOP_COMPRESSION (15 | SSL_SECOP_OTHER_NONE)
  |  |  ------------------
  |  |  |  | 2728|      0|#define SSL_SECOP_OTHER_NONE 0
  |  |  ------------------
  ------------------
  |  Branch (1302:5): [True: 0, False: 69.4k]
  ------------------
 1303|      0|        if (level >= 2)
  ------------------
  |  Branch (1303:13): [True: 0, False: 0]
  ------------------
 1304|      0|            return 0;
 1305|      0|        break;
 1306|      0|    case SSL_SECOP_TICKET:
  ------------------
  |  | 2759|      0|#define SSL_SECOP_TICKET (10 | SSL_SECOP_OTHER_NONE)
  |  |  ------------------
  |  |  |  | 2728|      0|#define SSL_SECOP_OTHER_NONE 0
  |  |  ------------------
  ------------------
  |  Branch (1306:5): [True: 0, False: 69.4k]
  ------------------
 1307|      0|        if (level >= 3)
  ------------------
  |  Branch (1307:13): [True: 0, False: 0]
  ------------------
 1308|      0|            return 0;
 1309|      0|        break;
 1310|  19.8k|    default:
  ------------------
  |  Branch (1310:5): [True: 19.8k, False: 49.5k]
  ------------------
 1311|  19.8k|        if (bits < minbits)
  ------------------
  |  Branch (1311:13): [True: 1.02k, False: 18.8k]
  ------------------
 1312|  1.02k|            return 0;
 1313|  69.4k|    }
 1314|  67.7k|    return 1;
 1315|  69.4k|}

ssl_load_ciphers:
  278|    347|{
  279|    347|    size_t i;
  280|    347|    const ssl_cipher_table *t;
  281|    347|    EVP_KEYEXCH *kex = NULL;
  282|    347|    EVP_SIGNATURE *sig = NULL;
  283|       |
  284|    347|    ctx->disabled_enc_mask = 0;
  285|  9.36k|    for (i = 0, t = ssl_cipher_table_cipher; i < SSL_ENC_NUM_IDX; i++, t++) {
  ------------------
  |  |  364|  9.36k|#define SSL_ENC_NUM_IDX 26
  ------------------
  |  Branch (285:46): [True: 9.02k, False: 347]
  ------------------
  286|  9.02k|        if (t->nid != NID_undef) {
  ------------------
  |  |   18|  9.02k|#define NID_undef                       0
  ------------------
  |  Branch (286:13): [True: 8.67k, False: 347]
  ------------------
  287|  8.67k|            const EVP_CIPHER *cipher = ssl_evp_cipher_fetch(ctx->libctx,
  288|  8.67k|                OBJ_nid2sn(t->nid),
  289|  8.67k|                ctx->propq);
  290|       |
  291|  8.67k|            ctx->ssl_cipher_methods[i] = cipher;
  292|  8.67k|            if (cipher == NULL)
  ------------------
  |  Branch (292:17): [True: 3.12k, False: 5.55k]
  ------------------
  293|  3.12k|                ctx->disabled_enc_mask |= t->mask;
  294|  8.67k|        }
  295|  9.02k|    }
  296|    347|    ctx->disabled_mac_mask = 0;
  297|  5.55k|    for (i = 0, t = ssl_cipher_table_mac; i < SSL_MD_NUM_IDX; i++, t++) {
  ------------------
  |  |  210|  5.55k|#define SSL_MD_NUM_IDX SSL_MAX_DIGEST
  |  |  ------------------
  |  |  |  |  208|  5.55k|#define SSL_MAX_DIGEST 15
  |  |  ------------------
  ------------------
  |  Branch (297:43): [True: 5.20k, False: 347]
  ------------------
  298|       |        /*
  299|       |         * We ignore any errors from the fetch below. It is expected to fail
  300|       |         * if these algorithms are not available.
  301|       |         */
  302|  5.20k|        ERR_set_mark();
  303|  5.20k|        const EVP_MD *md = EVP_MD_fetch(ctx->libctx,
  304|  5.20k|            OBJ_nid2sn(t->nid),
  305|  5.20k|            ctx->propq);
  306|  5.20k|        ERR_pop_to_mark();
  307|       |
  308|  5.20k|        ctx->ssl_digest_methods[i] = md;
  309|  5.20k|        if (md == NULL) {
  ------------------
  |  Branch (309:13): [True: 2.42k, False: 2.77k]
  ------------------
  310|  2.42k|            ctx->disabled_mac_mask |= t->mask;
  311|  2.77k|        } else {
  312|  2.77k|            int tmpsize = EVP_MD_get_size(md);
  313|       |
  314|  2.77k|            if (!ossl_assert(tmpsize > 0))
  ------------------
  |  |   52|  2.77k|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|  2.77k|    __FILE__, __LINE__)
  ------------------
  |  Branch (314:17): [True: 0, False: 2.77k]
  ------------------
  315|      0|                return 0;
  316|  2.77k|            ctx->ssl_mac_secret_size[i] = tmpsize;
  317|  2.77k|        }
  318|  5.20k|    }
  319|       |
  320|    347|    ctx->disabled_mkey_mask = 0;
  321|    347|    ctx->disabled_auth_mask = 0;
  322|       |
  323|       |    /*
  324|       |     * We ignore any errors from the fetches below. They are expected to fail
  325|       |     * if these algorithms are not available.
  326|       |     */
  327|    347|    ERR_set_mark();
  328|    347|    sig = EVP_SIGNATURE_fetch(ctx->libctx, "DSA", ctx->propq);
  329|    347|    if (sig == NULL)
  ------------------
  |  Branch (329:9): [True: 0, False: 347]
  ------------------
  330|      0|        ctx->disabled_auth_mask |= SSL_aDSS;
  ------------------
  |  |  114|      0|#define SSL_aDSS 0x00000002U
  ------------------
  331|    347|    else
  332|    347|        EVP_SIGNATURE_free(sig);
  333|    347|    kex = EVP_KEYEXCH_fetch(ctx->libctx, "DH", ctx->propq);
  334|    347|    if (kex == NULL)
  ------------------
  |  Branch (334:9): [True: 0, False: 347]
  ------------------
  335|      0|        ctx->disabled_mkey_mask |= SSL_kDHE | SSL_kDHEPSK;
  ------------------
  |  |   87|      0|#define SSL_kDHE 0x00000002U
  ------------------
                      ctx->disabled_mkey_mask |= SSL_kDHE | SSL_kDHEPSK;
  ------------------
  |  |   99|      0|#define SSL_kDHEPSK 0x00000100U
  ------------------
  336|    347|    else
  337|    347|        EVP_KEYEXCH_free(kex);
  338|    347|    kex = EVP_KEYEXCH_fetch(ctx->libctx, "ECDH", ctx->propq);
  339|    347|    if (kex == NULL)
  ------------------
  |  Branch (339:9): [True: 0, False: 347]
  ------------------
  340|      0|        ctx->disabled_mkey_mask |= SSL_kECDHE | SSL_kECDHEPSK;
  ------------------
  |  |   89|      0|#define SSL_kECDHE 0x00000004U
  ------------------
                      ctx->disabled_mkey_mask |= SSL_kECDHE | SSL_kECDHEPSK;
  ------------------
  |  |   98|      0|#define SSL_kECDHEPSK 0x00000080U
  ------------------
  341|    347|    else
  342|    347|        EVP_KEYEXCH_free(kex);
  343|    347|    sig = EVP_SIGNATURE_fetch(ctx->libctx, "ECDSA", ctx->propq);
  344|    347|    if (sig == NULL)
  ------------------
  |  Branch (344:9): [True: 0, False: 347]
  ------------------
  345|      0|        ctx->disabled_auth_mask |= SSL_aECDSA;
  ------------------
  |  |  118|      0|#define SSL_aECDSA 0x00000008U
  ------------------
  346|    347|    else
  347|    347|        EVP_SIGNATURE_free(sig);
  348|    347|    ERR_pop_to_mark();
  349|       |
  350|       |#ifdef OPENSSL_NO_PSK
  351|       |    ctx->disabled_mkey_mask |= SSL_PSK;
  352|       |    ctx->disabled_auth_mask |= SSL_aPSK;
  353|       |#endif
  354|       |#ifdef OPENSSL_NO_SRP
  355|       |    ctx->disabled_mkey_mask |= SSL_kSRP;
  356|       |#endif
  357|       |
  358|       |    /*
  359|       |     * Check for presence of GOST 34.10 algorithms, and if they are not
  360|       |     * present, disable appropriate auth and key exchange
  361|       |     */
  362|    347|    memcpy(ctx->ssl_mac_pkey_id, default_mac_pkey_id,
  363|    347|        sizeof(ctx->ssl_mac_pkey_id));
  364|       |
  365|    347|    ctx->ssl_mac_pkey_id[SSL_MD_GOST89MAC_IDX] = 0;
  ------------------
  |  |  196|    347|#define SSL_MD_GOST89MAC_IDX 3
  ------------------
  366|    347|    if (ctx->ssl_mac_pkey_id[SSL_MD_GOST89MAC_IDX])
  ------------------
  |  |  196|    347|#define SSL_MD_GOST89MAC_IDX 3
  ------------------
  |  Branch (366:9): [True: 0, False: 347]
  ------------------
  367|      0|        ctx->ssl_mac_secret_size[SSL_MD_GOST89MAC_IDX] = 32;
  ------------------
  |  |  196|      0|#define SSL_MD_GOST89MAC_IDX 3
  ------------------
  368|    347|    else
  369|    347|        ctx->disabled_mac_mask |= SSL_GOST89MAC;
  ------------------
  |  |  177|    347|#define SSL_GOST89MAC 0x00000008U
  ------------------
  370|       |
  371|    347|    ctx->ssl_mac_pkey_id[SSL_MD_GOST89MAC12_IDX] = 0;
  ------------------
  |  |  200|    347|#define SSL_MD_GOST89MAC12_IDX 7
  ------------------
  372|    347|    if (ctx->ssl_mac_pkey_id[SSL_MD_GOST89MAC12_IDX])
  ------------------
  |  |  200|    347|#define SSL_MD_GOST89MAC12_IDX 7
  ------------------
  |  Branch (372:9): [True: 0, False: 347]
  ------------------
  373|      0|        ctx->ssl_mac_secret_size[SSL_MD_GOST89MAC12_IDX] = 32;
  ------------------
  |  |  200|      0|#define SSL_MD_GOST89MAC12_IDX 7
  ------------------
  374|    347|    else
  375|    347|        ctx->disabled_mac_mask |= SSL_GOST89MAC12;
  ------------------
  |  |  183|    347|#define SSL_GOST89MAC12 0x00000100U
  ------------------
  376|       |
  377|    347|    ctx->ssl_mac_pkey_id[SSL_MD_MAGMAOMAC_IDX] = 0;
  ------------------
  |  |  205|    347|#define SSL_MD_MAGMAOMAC_IDX 12
  ------------------
  378|    347|    if (ctx->ssl_mac_pkey_id[SSL_MD_MAGMAOMAC_IDX])
  ------------------
  |  |  205|    347|#define SSL_MD_MAGMAOMAC_IDX 12
  ------------------
  |  Branch (378:9): [True: 0, False: 347]
  ------------------
  379|      0|        ctx->ssl_mac_secret_size[SSL_MD_MAGMAOMAC_IDX] = 32;
  ------------------
  |  |  205|      0|#define SSL_MD_MAGMAOMAC_IDX 12
  ------------------
  380|    347|    else
  381|    347|        ctx->disabled_mac_mask |= SSL_MAGMAOMAC;
  ------------------
  |  |  185|    347|#define SSL_MAGMAOMAC 0x00000400U
  ------------------
  382|       |
  383|    347|    ctx->ssl_mac_pkey_id[SSL_MD_KUZNYECHIKOMAC_IDX] = 0;
  ------------------
  |  |  206|    347|#define SSL_MD_KUZNYECHIKOMAC_IDX 13
  ------------------
  384|    347|    if (ctx->ssl_mac_pkey_id[SSL_MD_KUZNYECHIKOMAC_IDX])
  ------------------
  |  |  206|    347|#define SSL_MD_KUZNYECHIKOMAC_IDX 13
  ------------------
  |  Branch (384:9): [True: 0, False: 347]
  ------------------
  385|      0|        ctx->ssl_mac_secret_size[SSL_MD_KUZNYECHIKOMAC_IDX] = 32;
  ------------------
  |  |  206|      0|#define SSL_MD_KUZNYECHIKOMAC_IDX 13
  ------------------
  386|    347|    else
  387|    347|        ctx->disabled_mac_mask |= SSL_KUZNYECHIKOMAC;
  ------------------
  |  |  186|    347|#define SSL_KUZNYECHIKOMAC 0x00000800U
  ------------------
  388|       |
  389|    347|    ctx->disabled_auth_mask |= SSL_aGOST01 | SSL_aGOST12;
  ------------------
  |  |  122|    347|#define SSL_aGOST01 0x00000020U
  ------------------
                  ctx->disabled_auth_mask |= SSL_aGOST01 | SSL_aGOST12;
  ------------------
  |  |  126|    347|#define SSL_aGOST12 0x00000080U
  ------------------
  390|    347|    ctx->disabled_auth_mask |= SSL_aGOST12;
  ------------------
  |  |  126|    347|#define SSL_aGOST12 0x00000080U
  ------------------
  391|    347|    ctx->disabled_auth_mask |= SSL_aGOST12;
  ------------------
  |  |  126|    347|#define SSL_aGOST12 0x00000080U
  ------------------
  392|       |    /*
  393|       |     * Disable GOST key exchange if no GOST signature algs are available *
  394|       |     */
  395|    347|    if ((ctx->disabled_auth_mask & (SSL_aGOST01 | SSL_aGOST12)) == (SSL_aGOST01 | SSL_aGOST12))
  ------------------
  |  |  122|    347|#define SSL_aGOST01 0x00000020U
  ------------------
                  if ((ctx->disabled_auth_mask & (SSL_aGOST01 | SSL_aGOST12)) == (SSL_aGOST01 | SSL_aGOST12))
  ------------------
  |  |  126|    347|#define SSL_aGOST12 0x00000080U
  ------------------
                  if ((ctx->disabled_auth_mask & (SSL_aGOST01 | SSL_aGOST12)) == (SSL_aGOST01 | SSL_aGOST12))
  ------------------
  |  |  122|    347|#define SSL_aGOST01 0x00000020U
  ------------------
                  if ((ctx->disabled_auth_mask & (SSL_aGOST01 | SSL_aGOST12)) == (SSL_aGOST01 | SSL_aGOST12))
  ------------------
  |  |  126|    347|#define SSL_aGOST12 0x00000080U
  ------------------
  |  Branch (395:9): [True: 347, False: 0]
  ------------------
  396|    347|        ctx->disabled_mkey_mask |= SSL_kGOST;
  ------------------
  |  |   93|    347|#define SSL_kGOST 0x00000010U
  ------------------
  397|       |
  398|    347|    if ((ctx->disabled_auth_mask & SSL_aGOST12) == SSL_aGOST12)
  ------------------
  |  |  126|    347|#define SSL_aGOST12 0x00000080U
  ------------------
                  if ((ctx->disabled_auth_mask & SSL_aGOST12) == SSL_aGOST12)
  ------------------
  |  |  126|    347|#define SSL_aGOST12 0x00000080U
  ------------------
  |  Branch (398:9): [True: 347, False: 0]
  ------------------
  399|    347|        ctx->disabled_mkey_mask |= SSL_kGOST18;
  ------------------
  |  |  101|    347|#define SSL_kGOST18 0x00000200U
  ------------------
  400|       |
  401|    347|    return 1;
  402|    347|}
ssl_md:
  551|  12.3k|{
  552|  12.3k|    idx &= SSL_HANDSHAKE_MAC_MASK;
  ------------------
  |  |  215|  12.3k|#define SSL_HANDSHAKE_MAC_MASK 0xFF
  ------------------
  553|  12.3k|    if (idx < 0 || idx >= SSL_MD_NUM_IDX)
  ------------------
  |  |  210|  12.3k|#define SSL_MD_NUM_IDX SSL_MAX_DIGEST
  |  |  ------------------
  |  |  |  |  208|  12.3k|#define SSL_MAX_DIGEST 15
  |  |  ------------------
  ------------------
  |  Branch (553:9): [True: 0, False: 12.3k]
  |  Branch (553:20): [True: 0, False: 12.3k]
  ------------------
  554|      0|        return NULL;
  555|  12.3k|    return ctx->ssl_digest_methods[idx];
  556|  12.3k|}
SSL_CTX_set_ciphersuites:
 1352|    347|{
 1353|    347|    int ret = set_ciphersuites(&(ctx->tls13_ciphersuites), str);
 1354|       |
 1355|    347|    if (ret && ctx->cipher_list != NULL)
  ------------------
  |  Branch (1355:9): [True: 347, False: 0]
  |  Branch (1355:16): [True: 0, False: 347]
  ------------------
 1356|      0|        return update_cipher_list(ctx, &ctx->cipher_list, &ctx->cipher_list_by_id,
 1357|      0|            ctx->tls13_ciphersuites);
 1358|       |
 1359|    347|    return ret;
 1360|    347|}
ssl_create_cipher_list:
 1391|    347|{
 1392|    347|    int ok, num_of_ciphers, num_of_alias_max, num_of_group_aliases, i;
 1393|    347|    uint32_t disabled_mkey, disabled_auth, disabled_enc, disabled_mac;
 1394|    347|    STACK_OF(SSL_CIPHER) *cipherstack;
  ------------------
  |  |   33|    347|#define STACK_OF(type) struct stack_st_##type
  ------------------
 1395|    347|    const char *rule_p;
 1396|    347|    CIPHER_ORDER *co_list = NULL, *head = NULL, *tail = NULL, *curr;
 1397|    347|    const SSL_CIPHER **ca_list = NULL;
 1398|    347|    const SSL_METHOD *ssl_method = ctx->method;
 1399|       |
 1400|       |    /*
 1401|       |     * Return with error if nothing to do.
 1402|       |     */
 1403|    347|    if (rule_str == NULL || cipher_list == NULL || cipher_list_by_id == NULL)
  ------------------
  |  Branch (1403:9): [True: 0, False: 347]
  |  Branch (1403:29): [True: 0, False: 347]
  |  Branch (1403:52): [True: 0, False: 347]
  ------------------
 1404|      0|        return NULL;
 1405|       |
 1406|    347|    if (!check_suiteb_cipher_list(ssl_method, c, &rule_str))
  ------------------
  |  Branch (1406:9): [True: 0, False: 347]
  ------------------
 1407|      0|        return NULL;
 1408|       |
 1409|       |    /*
 1410|       |     * To reduce the work to do we only want to process the compiled
 1411|       |     * in algorithms, so we first get the mask of disabled ciphers.
 1412|       |     */
 1413|       |
 1414|    347|    disabled_mkey = ctx->disabled_mkey_mask;
 1415|    347|    disabled_auth = ctx->disabled_auth_mask;
 1416|    347|    disabled_enc = ctx->disabled_enc_mask;
 1417|    347|    disabled_mac = ctx->disabled_mac_mask;
 1418|       |
 1419|       |    /*
 1420|       |     * Now we have to collect the available ciphers from the compiled
 1421|       |     * in ciphers. We cannot get more than the number compiled in, so
 1422|       |     * it is used for allocation.
 1423|       |     */
 1424|    347|    num_of_ciphers = ssl_method->num_ciphers();
 1425|       |
 1426|    347|    if (num_of_ciphers > 0) {
  ------------------
  |  Branch (1426:9): [True: 347, False: 0]
  ------------------
 1427|    347|        co_list = OPENSSL_malloc_array(num_of_ciphers, sizeof(*co_list));
  ------------------
  |  |  111|    347|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1428|    347|        if (co_list == NULL)
  ------------------
  |  Branch (1428:13): [True: 0, False: 347]
  ------------------
 1429|      0|            return NULL; /* Failure */
 1430|    347|    }
 1431|       |
 1432|    347|    ssl_cipher_collect_ciphers(ssl_method, num_of_ciphers,
 1433|    347|        disabled_mkey, disabled_auth, disabled_enc,
 1434|    347|        disabled_mac, co_list, &head, &tail);
 1435|       |
 1436|       |    /* Now arrange all ciphers by preference. */
 1437|       |
 1438|       |    /*
 1439|       |     * Everything else being equal, prefer ephemeral ECDH over other key
 1440|       |     * exchange mechanisms.
 1441|       |     * For consistency, prefer ECDSA over RSA (though this only matters if the
 1442|       |     * server has both certificates, and is using the DEFAULT, or a client
 1443|       |     * preference).
 1444|       |     */
 1445|    347|    ssl_cipher_apply_rule(0, SSL_kECDHE, SSL_aECDSA, 0, 0, 0, 0, CIPHER_ADD,
  ------------------
  |  |   89|    347|#define SSL_kECDHE 0x00000004U
  ------------------
                  ssl_cipher_apply_rule(0, SSL_kECDHE, SSL_aECDSA, 0, 0, 0, 0, CIPHER_ADD,
  ------------------
  |  |  118|    347|#define SSL_aECDSA 0x00000008U
  ------------------
                  ssl_cipher_apply_rule(0, SSL_kECDHE, SSL_aECDSA, 0, 0, 0, 0, CIPHER_ADD,
  ------------------
  |  |  141|    347|#define CIPHER_ADD 1
  ------------------
 1446|    347|        -1, &head, &tail);
 1447|    347|    ssl_cipher_apply_rule(0, SSL_kECDHE, 0, 0, 0, 0, 0, CIPHER_ADD, -1, &head,
  ------------------
  |  |   89|    347|#define SSL_kECDHE 0x00000004U
  ------------------
                  ssl_cipher_apply_rule(0, SSL_kECDHE, 0, 0, 0, 0, 0, CIPHER_ADD, -1, &head,
  ------------------
  |  |  141|    347|#define CIPHER_ADD 1
  ------------------
 1448|    347|        &tail);
 1449|    347|    ssl_cipher_apply_rule(0, SSL_kECDHE, 0, 0, 0, 0, 0, CIPHER_DEL, -1, &head,
  ------------------
  |  |   89|    347|#define SSL_kECDHE 0x00000004U
  ------------------
                  ssl_cipher_apply_rule(0, SSL_kECDHE, 0, 0, 0, 0, 0, CIPHER_DEL, -1, &head,
  ------------------
  |  |  143|    347|#define CIPHER_DEL 3
  ------------------
 1450|    347|        &tail);
 1451|       |
 1452|       |    /* Within each strength group, we prefer GCM over CHACHA... */
 1453|    347|    ssl_cipher_apply_rule(0, 0, 0, SSL_AESGCM, 0, 0, 0, CIPHER_ADD, -1,
  ------------------
  |  |  161|    347|#define SSL_AESGCM (SSL_AES128GCM | SSL_AES256GCM)
  |  |  ------------------
  |  |  |  |  146|    347|#define SSL_AES128GCM 0x00001000U
  |  |  ------------------
  |  |               #define SSL_AESGCM (SSL_AES128GCM | SSL_AES256GCM)
  |  |  ------------------
  |  |  |  |  147|    347|#define SSL_AES256GCM 0x00002000U
  |  |  ------------------
  ------------------
                  ssl_cipher_apply_rule(0, 0, 0, SSL_AESGCM, 0, 0, 0, CIPHER_ADD, -1,
  ------------------
  |  |  141|    347|#define CIPHER_ADD 1
  ------------------
 1454|    347|        &head, &tail);
 1455|    347|    ssl_cipher_apply_rule(0, 0, 0, SSL_CHACHA20, 0, 0, 0, CIPHER_ADD, -1,
  ------------------
  |  |  165|    347|#define SSL_CHACHA20 (SSL_CHACHA20POLY1305)
  |  |  ------------------
  |  |  |  |  153|    347|#define SSL_CHACHA20POLY1305 0x00080000U
  |  |  ------------------
  ------------------
                  ssl_cipher_apply_rule(0, 0, 0, SSL_CHACHA20, 0, 0, 0, CIPHER_ADD, -1,
  ------------------
  |  |  141|    347|#define CIPHER_ADD 1
  ------------------
 1456|    347|        &head, &tail);
 1457|       |
 1458|       |    /*
 1459|       |     * ...and generally, our preferred cipher is AES.
 1460|       |     * Note that AEADs will be bumped to take preference after sorting by
 1461|       |     * strength.
 1462|       |     */
 1463|    347|    ssl_cipher_apply_rule(0, 0, 0, SSL_AES ^ SSL_AESGCM, 0, 0, 0, CIPHER_ADD,
  ------------------
  |  |  163|    347|#define SSL_AES (SSL_AES128 | SSL_AES256 | SSL_AESGCM | SSL_AESCCM)
  |  |  ------------------
  |  |  |  |  140|    347|#define SSL_AES128 0x00000040U
  |  |  ------------------
  |  |               #define SSL_AES (SSL_AES128 | SSL_AES256 | SSL_AESGCM | SSL_AESCCM)
  |  |  ------------------
  |  |  |  |  141|    347|#define SSL_AES256 0x00000080U
  |  |  ------------------
  |  |               #define SSL_AES (SSL_AES128 | SSL_AES256 | SSL_AESGCM | SSL_AESCCM)
  |  |  ------------------
  |  |  |  |  161|    347|#define SSL_AESGCM (SSL_AES128GCM | SSL_AES256GCM)
  |  |  |  |  ------------------
  |  |  |  |  |  |  146|    347|#define SSL_AES128GCM 0x00001000U
  |  |  |  |  ------------------
  |  |  |  |               #define SSL_AESGCM (SSL_AES128GCM | SSL_AES256GCM)
  |  |  |  |  ------------------
  |  |  |  |  |  |  147|    347|#define SSL_AES256GCM 0x00002000U
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define SSL_AES (SSL_AES128 | SSL_AES256 | SSL_AESGCM | SSL_AESCCM)
  |  |  ------------------
  |  |  |  |  162|    347|#define SSL_AESCCM (SSL_AES128CCM | SSL_AES256CCM | SSL_AES128CCM8 | SSL_AES256CCM8)
  |  |  |  |  ------------------
  |  |  |  |  |  |  148|    347|#define SSL_AES128CCM 0x00004000U
  |  |  |  |  ------------------
  |  |  |  |               #define SSL_AESCCM (SSL_AES128CCM | SSL_AES256CCM | SSL_AES128CCM8 | SSL_AES256CCM8)
  |  |  |  |  ------------------
  |  |  |  |  |  |  149|    347|#define SSL_AES256CCM 0x00008000U
  |  |  |  |  ------------------
  |  |  |  |               #define SSL_AESCCM (SSL_AES128CCM | SSL_AES256CCM | SSL_AES128CCM8 | SSL_AES256CCM8)
  |  |  |  |  ------------------
  |  |  |  |  |  |  150|    347|#define SSL_AES128CCM8 0x00010000U
  |  |  |  |  ------------------
  |  |  |  |               #define SSL_AESCCM (SSL_AES128CCM | SSL_AES256CCM | SSL_AES128CCM8 | SSL_AES256CCM8)
  |  |  |  |  ------------------
  |  |  |  |  |  |  151|    347|#define SSL_AES256CCM8 0x00020000U
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  ssl_cipher_apply_rule(0, 0, 0, SSL_AES ^ SSL_AESGCM, 0, 0, 0, CIPHER_ADD,
  ------------------
  |  |  161|    347|#define SSL_AESGCM (SSL_AES128GCM | SSL_AES256GCM)
  |  |  ------------------
  |  |  |  |  146|    347|#define SSL_AES128GCM 0x00001000U
  |  |  ------------------
  |  |               #define SSL_AESGCM (SSL_AES128GCM | SSL_AES256GCM)
  |  |  ------------------
  |  |  |  |  147|    347|#define SSL_AES256GCM 0x00002000U
  |  |  ------------------
  ------------------
                  ssl_cipher_apply_rule(0, 0, 0, SSL_AES ^ SSL_AESGCM, 0, 0, 0, CIPHER_ADD,
  ------------------
  |  |  141|    347|#define CIPHER_ADD 1
  ------------------
 1464|    347|        -1, &head, &tail);
 1465|       |
 1466|       |    /* Temporarily enable everything else for sorting */
 1467|    347|    ssl_cipher_apply_rule(0, 0, 0, 0, 0, 0, 0, CIPHER_ADD, -1, &head, &tail);
  ------------------
  |  |  141|    347|#define CIPHER_ADD 1
  ------------------
 1468|       |
 1469|       |    /* Low priority for MD5 */
 1470|    347|    ssl_cipher_apply_rule(0, 0, 0, 0, SSL_MD5, 0, 0, CIPHER_ORD, -1, &head,
  ------------------
  |  |  174|    347|#define SSL_MD5 0x00000001U
  ------------------
                  ssl_cipher_apply_rule(0, 0, 0, 0, SSL_MD5, 0, 0, CIPHER_ORD, -1, &head,
  ------------------
  |  |  144|    347|#define CIPHER_ORD 4
  ------------------
 1471|    347|        &tail);
 1472|       |
 1473|       |    /*
 1474|       |     * Move anonymous ciphers to the end.  Usually, these will remain
 1475|       |     * disabled. (For applications that allow them, they aren't too bad, but
 1476|       |     * we prefer authenticated ciphers.)
 1477|       |     */
 1478|    347|    ssl_cipher_apply_rule(0, 0, SSL_aNULL, 0, 0, 0, 0, CIPHER_ORD, -1, &head,
  ------------------
  |  |  116|    347|#define SSL_aNULL 0x00000004U
  ------------------
                  ssl_cipher_apply_rule(0, 0, SSL_aNULL, 0, 0, 0, 0, CIPHER_ORD, -1, &head,
  ------------------
  |  |  144|    347|#define CIPHER_ORD 4
  ------------------
 1479|    347|        &tail);
 1480|       |
 1481|    347|    ssl_cipher_apply_rule(0, SSL_kRSA, 0, 0, 0, 0, 0, CIPHER_ORD, -1, &head,
  ------------------
  |  |   85|    347|#define SSL_kRSA 0x00000001U
  ------------------
                  ssl_cipher_apply_rule(0, SSL_kRSA, 0, 0, 0, 0, 0, CIPHER_ORD, -1, &head,
  ------------------
  |  |  144|    347|#define CIPHER_ORD 4
  ------------------
 1482|    347|        &tail);
 1483|    347|    ssl_cipher_apply_rule(0, SSL_kPSK, 0, 0, 0, 0, 0, CIPHER_ORD, -1, &head,
  ------------------
  |  |   91|    347|#define SSL_kPSK 0x00000008U
  ------------------
                  ssl_cipher_apply_rule(0, SSL_kPSK, 0, 0, 0, 0, 0, CIPHER_ORD, -1, &head,
  ------------------
  |  |  144|    347|#define CIPHER_ORD 4
  ------------------
 1484|    347|        &tail);
 1485|       |
 1486|       |    /* RC4 is sort-of broken -- move to the end */
 1487|    347|    ssl_cipher_apply_rule(0, 0, 0, SSL_RC4, 0, 0, 0, CIPHER_ORD, -1, &head,
  ------------------
  |  |  136|    347|#define SSL_RC4 0x00000004U
  ------------------
                  ssl_cipher_apply_rule(0, 0, 0, SSL_RC4, 0, 0, 0, CIPHER_ORD, -1, &head,
  ------------------
  |  |  144|    347|#define CIPHER_ORD 4
  ------------------
 1488|    347|        &tail);
 1489|       |
 1490|       |    /*
 1491|       |     * Now sort by symmetric encryption strength.  The above ordering remains
 1492|       |     * in force within each class
 1493|       |     */
 1494|    347|    if (!ssl_cipher_strength_sort(&head, &tail)) {
  ------------------
  |  Branch (1494:9): [True: 0, False: 347]
  ------------------
 1495|      0|        OPENSSL_free(co_list);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1496|      0|        return NULL;
 1497|      0|    }
 1498|       |
 1499|       |    /*
 1500|       |     * Partially overrule strength sort to prefer TLS 1.2 ciphers/PRFs.
 1501|       |     */
 1502|    347|    ssl_cipher_apply_rule(0, 0, 0, 0, 0, TLS1_2_VERSION, 0, CIPHER_BUMP, -1,
  ------------------
  |  |   26|    347|#define TLS1_2_VERSION 0x0303
  ------------------
                  ssl_cipher_apply_rule(0, 0, 0, 0, 0, TLS1_2_VERSION, 0, CIPHER_BUMP, -1,
  ------------------
  |  |  150|    347|#define CIPHER_BUMP 6
  ------------------
 1503|    347|        &head, &tail);
 1504|       |
 1505|       |    /*
 1506|       |     * Irrespective of strength, enforce the following order:
 1507|       |     * (EC)DHE + AEAD > (EC)DHE > rest of AEAD > rest.
 1508|       |     * Within each group, ciphers remain sorted by strength and previous
 1509|       |     * preference, i.e.,
 1510|       |     * 1) ECDHE > DHE
 1511|       |     * 2) GCM > CHACHA
 1512|       |     * 3) AES > rest
 1513|       |     * 4) TLS 1.2 > legacy
 1514|       |     *
 1515|       |     * Because we now bump ciphers to the top of the list, we proceed in
 1516|       |     * reverse order of preference.
 1517|       |     */
 1518|    347|    ssl_cipher_apply_rule(0, 0, 0, 0, SSL_AEAD, 0, 0, CIPHER_BUMP, -1,
  ------------------
  |  |  181|    347|#define SSL_AEAD 0x00000040U
  ------------------
                  ssl_cipher_apply_rule(0, 0, 0, 0, SSL_AEAD, 0, 0, CIPHER_BUMP, -1,
  ------------------
  |  |  150|    347|#define CIPHER_BUMP 6
  ------------------
 1519|    347|        &head, &tail);
 1520|    347|    ssl_cipher_apply_rule(0, SSL_kDHE | SSL_kECDHE, 0, 0, 0, 0, 0,
  ------------------
  |  |   87|    347|#define SSL_kDHE 0x00000002U
  ------------------
                  ssl_cipher_apply_rule(0, SSL_kDHE | SSL_kECDHE, 0, 0, 0, 0, 0,
  ------------------
  |  |   89|    347|#define SSL_kECDHE 0x00000004U
  ------------------
 1521|    347|        CIPHER_BUMP, -1, &head, &tail);
  ------------------
  |  |  150|    347|#define CIPHER_BUMP 6
  ------------------
 1522|    347|    ssl_cipher_apply_rule(0, SSL_kDHE | SSL_kECDHE, 0, 0, SSL_AEAD, 0, 0,
  ------------------
  |  |   87|    347|#define SSL_kDHE 0x00000002U
  ------------------
                  ssl_cipher_apply_rule(0, SSL_kDHE | SSL_kECDHE, 0, 0, SSL_AEAD, 0, 0,
  ------------------
  |  |   89|    347|#define SSL_kECDHE 0x00000004U
  ------------------
                  ssl_cipher_apply_rule(0, SSL_kDHE | SSL_kECDHE, 0, 0, SSL_AEAD, 0, 0,
  ------------------
  |  |  181|    347|#define SSL_AEAD 0x00000040U
  ------------------
 1523|    347|        CIPHER_BUMP, -1, &head, &tail);
  ------------------
  |  |  150|    347|#define CIPHER_BUMP 6
  ------------------
 1524|       |
 1525|       |    /* Now disable everything (maintaining the ordering!) */
 1526|    347|    ssl_cipher_apply_rule(0, 0, 0, 0, 0, 0, 0, CIPHER_DEL, -1, &head, &tail);
  ------------------
  |  |  143|    347|#define CIPHER_DEL 3
  ------------------
 1527|       |
 1528|       |    /*
 1529|       |     * We also need cipher aliases for selecting based on the rule_str.
 1530|       |     * There might be two types of entries in the rule_str: 1) names
 1531|       |     * of ciphers themselves 2) aliases for groups of ciphers.
 1532|       |     * For 1) we need the available ciphers and for 2) the cipher
 1533|       |     * groups of cipher_aliases added together in one list (otherwise
 1534|       |     * we would be happy with just the cipher_aliases table).
 1535|       |     */
 1536|    347|    num_of_group_aliases = OSSL_NELEM(cipher_aliases);
  ------------------
  |  |   14|    347|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
 1537|    347|    num_of_alias_max = num_of_ciphers + num_of_group_aliases + 1;
 1538|    347|    ca_list = OPENSSL_malloc_array(num_of_alias_max, sizeof(*ca_list));
  ------------------
  |  |  111|    347|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1539|    347|    if (ca_list == NULL) {
  ------------------
  |  Branch (1539:9): [True: 0, False: 347]
  ------------------
 1540|      0|        OPENSSL_free(co_list);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1541|      0|        return NULL; /* Failure */
 1542|      0|    }
 1543|    347|    ssl_cipher_collect_aliases(ca_list, num_of_group_aliases,
 1544|    347|        disabled_mkey, disabled_auth, disabled_enc,
 1545|    347|        disabled_mac, head);
 1546|       |
 1547|       |    /*
 1548|       |     * If the rule_string begins with DEFAULT, apply the default rule
 1549|       |     * before using the (possibly available) additional rules.
 1550|       |     */
 1551|    347|    ok = 1;
 1552|    347|    rule_p = rule_str;
 1553|    347|    if (HAS_CASE_PREFIX(rule_str, "DEFAULT")) {
  ------------------
  |  |   63|    347|#define HAS_CASE_PREFIX(s, p) (OPENSSL_strncasecmp(s, p "", sizeof(p) - 1) == 0)
  |  |  ------------------
  |  |  |  Branch (63:31): [True: 0, False: 347]
  |  |  ------------------
  ------------------
 1554|      0|        ok = ssl_cipher_process_rulestr(OSSL_default_cipher_list(),
 1555|      0|            &head, &tail, ca_list, c);
 1556|      0|        rule_p += 7;
 1557|      0|        if (*rule_p == ':')
  ------------------
  |  Branch (1557:13): [True: 0, False: 0]
  ------------------
 1558|      0|            rule_p++;
 1559|      0|    }
 1560|       |
 1561|    347|    if (ok && (rule_p[0] != '\0'))
  ------------------
  |  Branch (1561:9): [True: 347, False: 0]
  |  Branch (1561:15): [True: 347, False: 0]
  ------------------
 1562|    347|        ok = ssl_cipher_process_rulestr(rule_p, &head, &tail, ca_list, c);
 1563|       |
 1564|    347|    OPENSSL_free(ca_list); /* Not needed anymore */
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1565|       |
 1566|    347|    if (!ok) { /* Rule processing failure */
  ------------------
  |  Branch (1566:9): [True: 0, False: 347]
  ------------------
 1567|      0|        OPENSSL_free(co_list);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1568|      0|        return NULL;
 1569|      0|    }
 1570|       |
 1571|       |    /*
 1572|       |     * Allocate new "cipherstack" for the result, return with error
 1573|       |     * if we cannot get one.
 1574|       |     */
 1575|    347|    if ((cipherstack = sk_SSL_CIPHER_new_null()) == NULL) {
  ------------------
  |  | 1031|    347|#define sk_SSL_CIPHER_new_null() ((STACK_OF(SSL_CIPHER) *)OPENSSL_sk_set_thunks(OPENSSL_sk_new_null(), sk_SSL_CIPHER_freefunc_thunk))
  ------------------
  |  Branch (1575:9): [True: 0, False: 347]
  ------------------
 1576|      0|        OPENSSL_free(co_list);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1577|      0|        return NULL;
 1578|      0|    }
 1579|       |
 1580|       |    /* Add TLSv1.3 ciphers first - we always prefer those if possible */
 1581|  1.38k|    for (i = 0; i < sk_SSL_CIPHER_num(tls13_ciphersuites); i++) {
  ------------------
  |  | 1028|  1.38k|#define sk_SSL_CIPHER_num(sk) OPENSSL_sk_num(ossl_check_const_SSL_CIPHER_sk_type(sk))
  ------------------
  |  Branch (1581:17): [True: 1.04k, False: 347]
  ------------------
 1582|  1.04k|        const SSL_CIPHER *sslc = sk_SSL_CIPHER_value(tls13_ciphersuites, i);
  ------------------
  |  | 1029|  1.04k|#define sk_SSL_CIPHER_value(sk, idx) ((const SSL_CIPHER *)OPENSSL_sk_value(ossl_check_const_SSL_CIPHER_sk_type(sk), (idx)))
  ------------------
 1583|       |
 1584|       |        /* Don't include any TLSv1.3 ciphers that are disabled */
 1585|  1.04k|        if ((sslc->algorithm_enc & disabled_enc) != 0
  ------------------
  |  Branch (1585:13): [True: 0, False: 1.04k]
  ------------------
 1586|  1.04k|            || (ssl_cipher_table_mac[sslc->algorithm2
  ------------------
  |  Branch (1586:16): [True: 0, False: 1.04k]
  ------------------
 1587|  1.04k|                    & SSL_HANDSHAKE_MAC_MASK]
  ------------------
  |  |  215|  1.04k|#define SSL_HANDSHAKE_MAC_MASK 0xFF
  ------------------
 1588|  1.04k|                       .mask
 1589|  1.04k|                   & ctx->disabled_mac_mask)
 1590|  1.04k|                != 0) {
 1591|      0|            sk_SSL_CIPHER_delete(tls13_ciphersuites, i);
  ------------------
  |  | 1036|      0|#define sk_SSL_CIPHER_delete(sk, i) ((const SSL_CIPHER *)OPENSSL_sk_delete(ossl_check_SSL_CIPHER_sk_type(sk), (i)))
  ------------------
 1592|      0|            i--;
 1593|      0|            continue;
 1594|      0|        }
 1595|       |
 1596|  1.04k|        if (!sk_SSL_CIPHER_push(cipherstack, sslc)) {
  ------------------
  |  | 1038|  1.04k|#define sk_SSL_CIPHER_push(sk, ptr) OPENSSL_sk_push(ossl_check_SSL_CIPHER_sk_type(sk), ossl_check_SSL_CIPHER_type(ptr))
  ------------------
  |  Branch (1596:13): [True: 0, False: 1.04k]
  ------------------
 1597|      0|            OPENSSL_free(co_list);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1598|      0|            sk_SSL_CIPHER_free(cipherstack);
  ------------------
  |  | 1034|      0|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1599|      0|            return NULL;
 1600|      0|        }
 1601|  1.04k|    }
 1602|       |
 1603|    347|    OSSL_TRACE_BEGIN(TLS_CIPHER)
  ------------------
  |  |  219|    347|    do {                           \
  |  |  220|    347|        BIO *trc_out = NULL;       \
  |  |  221|    347|        if (0)
  |  |  ------------------
  |  |  |  Branch (221:13): [Folded, False: 347]
  |  |  ------------------
  ------------------
 1604|      0|    {
 1605|      0|        BIO_printf(trc_out, "cipher selection:\n");
 1606|      0|    }
 1607|       |    /*
 1608|       |     * The cipher selection for the list is done. The ciphers are added
 1609|       |     * to the resulting precedence to the STACK_OF(SSL_CIPHER).
 1610|       |     */
 1611|  20.1k|    for (curr = head; curr != NULL; curr = curr->next) {
  ------------------
  |  Branch (1611:23): [True: 19.7k, False: 347]
  ------------------
 1612|  19.7k|        if (curr->active) {
  ------------------
  |  Branch (1612:13): [True: 19.7k, False: 0]
  ------------------
 1613|  19.7k|            if (!sk_SSL_CIPHER_push(cipherstack, curr->cipher)) {
  ------------------
  |  | 1038|  19.7k|#define sk_SSL_CIPHER_push(sk, ptr) OPENSSL_sk_push(ossl_check_SSL_CIPHER_sk_type(sk), ossl_check_SSL_CIPHER_type(ptr))
  ------------------
  |  Branch (1613:17): [True: 0, False: 19.7k]
  ------------------
 1614|      0|                OPENSSL_free(co_list);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1615|      0|                sk_SSL_CIPHER_free(cipherstack);
  ------------------
  |  | 1034|      0|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1616|      0|                OSSL_TRACE_CANCEL(TLS_CIPHER);
  ------------------
  |  |  228|      0|    ((void)0)
  ------------------
 1617|      0|                return NULL;
 1618|      0|            }
 1619|  19.7k|            if (trc_out != NULL)
  ------------------
  |  Branch (1619:17): [True: 0, False: 19.7k]
  ------------------
 1620|      0|                BIO_printf(trc_out, "<%s>\n", curr->cipher->name);
 1621|  19.7k|        }
 1622|  19.7k|    }
 1623|    347|    OPENSSL_free(co_list); /* Not needed any longer */
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1624|    347|    OSSL_TRACE_END(TLS_CIPHER);
  ------------------
  |  |  224|    347|    }                            \
  |  |  225|    347|    while (0)
  |  |  ------------------
  |  |  |  Branch (225:12): [Folded, False: 347]
  |  |  ------------------
  ------------------
 1625|       |
 1626|    347|    if (!update_cipher_list_by_id(cipher_list_by_id, cipherstack)) {
  ------------------
  |  Branch (1626:9): [True: 0, False: 347]
  ------------------
 1627|      0|        sk_SSL_CIPHER_free(cipherstack);
  ------------------
  |  | 1034|      0|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1628|      0|        return NULL;
 1629|      0|    }
 1630|    347|    sk_SSL_CIPHER_free(*cipher_list);
  ------------------
  |  | 1034|    347|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1631|    347|    *cipher_list = cipherstack;
 1632|       |
 1633|    347|    return cipherstack;
 1634|    347|}
SSL_COMP_get_compression_methods:
 1951|    349|{
 1952|    349|    STACK_OF(SSL_COMP) **rv;
  ------------------
  |  |   33|    349|#define STACK_OF(type) struct stack_st_##type
  ------------------
 1953|       |
 1954|    349|    rv = (STACK_OF(SSL_COMP) **)OSSL_LIB_CTX_get_data(NULL,
 1955|    349|        OSSL_LIB_CTX_COMP_METHODS);
  ------------------
  |  |  118|    349|#define OSSL_LIB_CTX_COMP_METHODS 21
  ------------------
 1956|    349|    if (rv != NULL)
  ------------------
  |  Branch (1956:9): [True: 349, False: 0]
  ------------------
 1957|    349|        return *rv;
 1958|      0|    else
 1959|      0|        return NULL;
 1960|    349|}
ssl_get_md_idx:
 2108|  1.38k|{
 2109|  1.38k|    int i;
 2110|       |
 2111|  22.2k|    for (i = 0; i < SSL_MD_NUM_IDX; i++) {
  ------------------
  |  |  210|  22.2k|#define SSL_MD_NUM_IDX SSL_MAX_DIGEST
  |  |  ------------------
  |  |  |  |  208|  22.2k|#define SSL_MAX_DIGEST 15
  |  |  ------------------
  ------------------
  |  Branch (2111:17): [True: 20.8k, False: 1.38k]
  ------------------
 2112|  20.8k|        if (md_nid == ssl_cipher_table_mac[i].nid)
  ------------------
  |  Branch (2112:13): [True: 0, False: 20.8k]
  ------------------
 2113|      0|            return i;
 2114|  20.8k|    }
 2115|  1.38k|    return -1;
 2116|  1.38k|}
ssl_cert_is_disabled:
 2190|  14.3k|{
 2191|  14.3k|    const SSL_CERT_LOOKUP *cl;
 2192|       |
 2193|       |    /* A provider-loaded key type is always enabled */
 2194|  14.3k|    if (idx >= SSL_PKEY_NUM)
  ------------------
  |  |  336|  14.3k|#define SSL_PKEY_NUM 9
  ------------------
  |  Branch (2194:9): [True: 1.36k, False: 12.9k]
  ------------------
 2195|  1.36k|        return 0;
 2196|       |
 2197|  12.9k|    cl = ssl_cert_lookup_by_idx(idx, ctx);
 2198|  12.9k|    if (cl == NULL || (cl->amask & ctx->disabled_auth_mask) != 0)
  ------------------
  |  Branch (2198:9): [True: 0, False: 12.9k]
  |  Branch (2198:23): [True: 0, False: 12.9k]
  ------------------
 2199|      0|        return 1;
 2200|  12.9k|    return 0;
 2201|  12.9k|}
OSSL_default_cipher_list:
 2209|    347|{
 2210|    347|    return "ALL:!COMPLEMENTOFDEFAULT:!eNULL";
 2211|    347|}
OSSL_default_ciphersuites:
 2219|    347|{
 2220|    347|    return "TLS_AES_256_GCM_SHA384:"
 2221|    347|           "TLS_CHACHA20_POLY1305_SHA256:"
 2222|    347|           "TLS_AES_128_GCM_SHA256";
 2223|    347|}
ssl_cipher_list_to_bytes:
 2227|    342|{
 2228|    342|    int i;
 2229|    342|    size_t totlen = 0, len, maxlen, maxverok = 0;
 2230|    342|    int empty_reneg_info_scsv = !s->renegotiate
  ------------------
  |  Branch (2230:33): [True: 342, False: 0]
  ------------------
 2231|    342|        && !SSL_CONNECTION_IS_DTLS(s)
  ------------------
  |  |  266|    684|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|    342|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  ------------------
  |  Branch (2231:12): [True: 342, False: 0]
  ------------------
 2232|    342|        && ssl_security(s, SSL_SECOP_VERSION, 0, TLS1_VERSION, NULL)
  ------------------
  |  | 2757|    342|#define SSL_SECOP_VERSION (9 | SSL_SECOP_OTHER_NONE)
  |  |  ------------------
  |  |  |  | 2728|    342|#define SSL_SECOP_OTHER_NONE 0
  |  |  ------------------
  ------------------
                      && ssl_security(s, SSL_SECOP_VERSION, 0, TLS1_VERSION, NULL)
  ------------------
  |  |   24|    342|#define TLS1_VERSION 0x0301
  ------------------
  |  Branch (2232:12): [True: 0, False: 342]
  ------------------
 2233|      0|        && s->min_proto_version <= TLS1_VERSION;
  ------------------
  |  |   24|      0|#define TLS1_VERSION 0x0301
  ------------------
  |  Branch (2233:12): [True: 0, False: 0]
  ------------------
 2234|    342|    SSL *ssl = SSL_CONNECTION_GET_SSL(s);
  ------------------
  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
 2235|       |
 2236|       |    /* Set disabled masks for this session */
 2237|    342|    if (!ssl_set_client_disabled(s)) {
  ------------------
  |  Branch (2237:9): [True: 0, False: 342]
  ------------------
 2238|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_PROTOCOLS_AVAILABLE);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2239|      0|        return 0;
 2240|      0|    }
 2241|       |
 2242|    342|    if (sk == NULL) {
  ------------------
  |  Branch (2242:9): [True: 0, False: 342]
  ------------------
 2243|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2244|      0|        return 0;
 2245|      0|    }
 2246|       |
 2247|       |#ifdef OPENSSL_MAX_TLS1_2_CIPHER_LENGTH
 2248|       |#if OPENSSL_MAX_TLS1_2_CIPHER_LENGTH < 6
 2249|       |#error Max cipher length too short
 2250|       |#endif
 2251|       |    /*
 2252|       |     * Some servers hang if client hello > 256 bytes as hack workaround
 2253|       |     * chop number of supported ciphers to keep it well below this if we
 2254|       |     * use TLS v1.2
 2255|       |     */
 2256|       |    if (TLS1_get_version(ssl) >= TLS1_2_VERSION)
 2257|       |        maxlen = OPENSSL_MAX_TLS1_2_CIPHER_LENGTH & ~1;
 2258|       |    else
 2259|       |#endif
 2260|       |        /* Maximum length that can be stored in 2 bytes. Length must be even */
 2261|    342|        maxlen = 0xfffe;
 2262|       |
 2263|    342|    if (empty_reneg_info_scsv)
  ------------------
  |  Branch (2263:9): [True: 0, False: 342]
  ------------------
 2264|      0|        maxlen -= 2;
 2265|    342|    if (s->mode & SSL_MODE_SEND_FALLBACK_SCSV)
  ------------------
  |  |  553|    342|#define SSL_MODE_SEND_FALLBACK_SCSV 0x00000080U
  ------------------
  |  Branch (2265:9): [True: 0, False: 342]
  ------------------
 2266|      0|        maxlen -= 2;
 2267|       |
 2268|  20.8k|    for (i = 0; i < sk_SSL_CIPHER_num(sk) && totlen < maxlen; i++) {
  ------------------
  |  | 1028|  41.7k|#define sk_SSL_CIPHER_num(sk) OPENSSL_sk_num(ossl_check_const_SSL_CIPHER_sk_type(sk))
  ------------------
  |  Branch (2268:17): [True: 20.5k, False: 342]
  |  Branch (2268:46): [True: 20.5k, False: 0]
  ------------------
 2269|  20.5k|        const SSL_CIPHER *c;
 2270|       |
 2271|  20.5k|        c = sk_SSL_CIPHER_value(sk, i);
  ------------------
  |  | 1029|  20.5k|#define sk_SSL_CIPHER_value(sk, idx) ((const SSL_CIPHER *)OPENSSL_sk_value(ossl_check_const_SSL_CIPHER_sk_type(sk), (idx)))
  ------------------
 2272|       |        /* Skip disabled ciphers */
 2273|  20.5k|        if (ssl_cipher_disabled(s, c, SSL_SECOP_CIPHER_SUPPORTED, 0))
  ------------------
  |  | 2743|  20.5k|#define SSL_SECOP_CIPHER_SUPPORTED (1 | SSL_SECOP_OTHER_CIPHER)
  |  |  ------------------
  |  |  |  | 2729|  20.5k|#define SSL_SECOP_OTHER_CIPHER (1 << 16)
  |  |  ------------------
  ------------------
  |  Branch (2273:13): [True: 10.2k, False: 10.2k]
  ------------------
 2274|  10.2k|            continue;
 2275|       |
 2276|  10.2k|        if (!ssl->method->put_cipher_by_char(c, pkt, &len)) {
  ------------------
  |  Branch (2276:13): [True: 0, False: 10.2k]
  ------------------
 2277|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2278|      0|            return 0;
 2279|      0|        }
 2280|       |
 2281|       |        /* Sanity check that the maximum version we offer has ciphers enabled */
 2282|  10.2k|        if (!maxverok) {
  ------------------
  |  Branch (2282:13): [True: 342, False: 9.91k]
  ------------------
 2283|    342|            int minproto = SSL_CONNECTION_IS_DTLS(s) ? c->min_dtls : c->min_tls;
  ------------------
  |  |  266|    342|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|    342|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 0, False: 342]
  |  |  ------------------
  ------------------
 2284|    342|            int maxproto = SSL_CONNECTION_IS_DTLS(s) ? c->max_dtls : c->max_tls;
  ------------------
  |  |  266|    342|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|    342|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 0, False: 342]
  |  |  ------------------
  ------------------
 2285|       |
 2286|    342|            if (ssl_version_cmp(s, maxproto, s->s3.tmp.max_ver) >= 0
  ------------------
  |  Branch (2286:17): [True: 342, False: 0]
  ------------------
 2287|    342|                && ssl_version_cmp(s, minproto, s->s3.tmp.max_ver) <= 0)
  ------------------
  |  Branch (2287:20): [True: 342, False: 0]
  ------------------
 2288|    342|                maxverok = 1;
 2289|    342|        }
 2290|       |
 2291|  10.2k|        totlen += len;
 2292|  10.2k|    }
 2293|       |
 2294|    342|    if (totlen == 0 || !maxverok) {
  ------------------
  |  Branch (2294:9): [True: 0, False: 342]
  |  Branch (2294:24): [True: 0, False: 342]
  ------------------
 2295|      0|        const char *maxvertext = !maxverok
  ------------------
  |  Branch (2295:34): [True: 0, False: 0]
  ------------------
 2296|      0|            ? "No ciphers enabled for max supported SSL/TLS version"
 2297|      0|            : NULL;
 2298|       |
 2299|      0|        SSLfatal_data(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_CIPHERS_AVAILABLE,
  ------------------
  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  159|      0|        ossl_statem_fatal)
  ------------------
                      SSLfatal_data(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_CIPHERS_AVAILABLE,
  ------------------
  |  | 1266|      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,
  ------------------
  |  |  198|      0|#define SSL_R_NO_CIPHERS_AVAILABLE 181
  ------------------
 2300|      0|            maxvertext);
 2301|      0|        return 0;
 2302|      0|    }
 2303|       |
 2304|    342|    if (totlen != 0) {
  ------------------
  |  Branch (2304:9): [True: 342, False: 0]
  ------------------
 2305|    342|        if (empty_reneg_info_scsv) {
  ------------------
  |  Branch (2305:13): [True: 0, False: 342]
  ------------------
 2306|      0|            static const SSL_CIPHER scsv = {
 2307|      0|                0, NULL, NULL, SSL3_CK_SCSV, 0, 0, 0, 0, 0, 0, 0, 0, 0
  ------------------
  |  |   33|      0|#define SSL3_CK_SCSV 0x030000FF
  ------------------
 2308|      0|            };
 2309|      0|            if (!ssl->method->put_cipher_by_char(&scsv, pkt, &len)) {
  ------------------
  |  Branch (2309:17): [True: 0, False: 0]
  ------------------
 2310|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2311|      0|                return 0;
 2312|      0|            }
 2313|      0|        }
 2314|    342|        if (s->mode & SSL_MODE_SEND_FALLBACK_SCSV) {
  ------------------
  |  |  553|    342|#define SSL_MODE_SEND_FALLBACK_SCSV 0x00000080U
  ------------------
  |  Branch (2314:13): [True: 0, False: 342]
  ------------------
 2315|      0|            static const SSL_CIPHER scsv = {
 2316|      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
  ------------------
 2317|      0|            };
 2318|      0|            if (!ssl->method->put_cipher_by_char(&scsv, pkt, &len)) {
  ------------------
  |  Branch (2318:17): [True: 0, False: 0]
  ------------------
 2319|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2320|      0|                return 0;
 2321|      0|            }
 2322|      0|        }
 2323|    342|    }
 2324|       |
 2325|    342|    return 1;
 2326|    342|}
ssl_ciph.c:set_ciphersuites:
 1267|    347|{
 1268|    347|    STACK_OF(SSL_CIPHER) *newciphers = sk_SSL_CIPHER_new_null();
  ------------------
  |  |   33|    347|#define STACK_OF(type) struct stack_st_##type
  ------------------
                  STACK_OF(SSL_CIPHER) *newciphers = sk_SSL_CIPHER_new_null();
  ------------------
  |  | 1031|    347|#define sk_SSL_CIPHER_new_null() ((STACK_OF(SSL_CIPHER) *)OPENSSL_sk_set_thunks(OPENSSL_sk_new_null(), sk_SSL_CIPHER_freefunc_thunk))
  ------------------
 1269|       |
 1270|    347|    if (newciphers == NULL)
  ------------------
  |  Branch (1270:9): [True: 0, False: 347]
  ------------------
 1271|      0|        return 0;
 1272|       |
 1273|       |    /* Parse the list. We explicitly allow an empty list */
 1274|    347|    if (*str != '\0'
  ------------------
  |  Branch (1274:9): [True: 347, False: 0]
  ------------------
 1275|    347|        && (CONF_parse_list(str, ':', 1, ciphersuite_cb, newciphers) <= 0
  ------------------
  |  Branch (1275:13): [True: 0, False: 347]
  ------------------
 1276|    347|            || sk_SSL_CIPHER_num(newciphers) == 0)) {
  ------------------
  |  | 1028|    347|#define sk_SSL_CIPHER_num(sk) OPENSSL_sk_num(ossl_check_const_SSL_CIPHER_sk_type(sk))
  ------------------
  |  Branch (1276:16): [True: 0, False: 347]
  ------------------
 1277|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_NO_CIPHER_MATCH);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1278|      0|        sk_SSL_CIPHER_free(newciphers);
  ------------------
  |  | 1034|      0|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1279|      0|        return 0;
 1280|      0|    }
 1281|    347|    sk_SSL_CIPHER_free(*currciphers);
  ------------------
  |  | 1034|    347|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1282|    347|    *currciphers = newciphers;
 1283|       |
 1284|    347|    return 1;
 1285|    347|}
ssl_ciph.c:ciphersuite_cb:
 1231|  1.04k|{
 1232|  1.04k|    STACK_OF(SSL_CIPHER) *ciphersuites = (STACK_OF(SSL_CIPHER) *)arg;
  ------------------
  |  |   33|  1.04k|#define STACK_OF(type) struct stack_st_##type
  ------------------
 1233|  1.04k|    const SSL_CIPHER *cipher;
 1234|       |    /* Arbitrary sized temp buffer for the cipher name. Should be big enough */
 1235|  1.04k|    char name[80];
 1236|       |
 1237|       |    /* CONF_parse_list signals empty elements with elem == NULL; skip them */
 1238|  1.04k|    if (elem == NULL || len == 0)
  ------------------
  |  Branch (1238:9): [True: 0, False: 1.04k]
  |  Branch (1238:25): [True: 0, False: 1.04k]
  ------------------
 1239|      0|        return 1;
 1240|       |
 1241|  1.04k|    if (len > (int)(sizeof(name) - 1))
  ------------------
  |  Branch (1241:9): [True: 0, False: 1.04k]
  ------------------
 1242|       |        /* Anyway return 1 so we can parse rest of the list */
 1243|      0|        return 1;
 1244|       |
 1245|  1.04k|    memcpy(name, elem, len);
 1246|  1.04k|    name[len] = '\0';
 1247|       |
 1248|  1.04k|    cipher = ssl3_get_tls13_cipher_by_std_name(name);
 1249|  1.04k|    if (cipher == NULL)
  ------------------
  |  Branch (1249:9): [True: 0, False: 1.04k]
  ------------------
 1250|       |        /* Ciphersuite not found but return 1 to parse rest of the list */
 1251|      0|        return 1;
 1252|       |
 1253|       |    /* Suppress duplicates */
 1254|  2.08k|    for (int i = 0; i < sk_SSL_CIPHER_num(ciphersuites); ++i)
  ------------------
  |  | 1028|  2.08k|#define sk_SSL_CIPHER_num(sk) OPENSSL_sk_num(ossl_check_const_SSL_CIPHER_sk_type(sk))
  ------------------
  |  Branch (1254:21): [True: 1.04k, False: 1.04k]
  ------------------
 1255|  1.04k|        if (sk_SSL_CIPHER_value(ciphersuites, i)->id == cipher->id)
  ------------------
  |  | 1029|  1.04k|#define sk_SSL_CIPHER_value(sk, idx) ((const SSL_CIPHER *)OPENSSL_sk_value(ossl_check_const_SSL_CIPHER_sk_type(sk), (idx)))
  ------------------
  |  Branch (1255:13): [True: 0, False: 1.04k]
  ------------------
 1256|      0|            return 1;
 1257|       |
 1258|  1.04k|    if (!sk_SSL_CIPHER_push(ciphersuites, cipher)) {
  ------------------
  |  | 1038|  1.04k|#define sk_SSL_CIPHER_push(sk, ptr) OPENSSL_sk_push(ossl_check_SSL_CIPHER_sk_type(sk), ossl_check_SSL_CIPHER_type(ptr))
  ------------------
  |  Branch (1258:9): [True: 0, False: 1.04k]
  ------------------
 1259|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1260|      0|        return 0;
 1261|      0|    }
 1262|       |
 1263|  1.04k|    return 1;
 1264|  1.04k|}
ssl_ciph.c:check_suiteb_cipher_list:
 1184|    347|{
 1185|    347|    unsigned int suiteb_flags = 0, suiteb_comb2 = 0;
 1186|    347|    if (HAS_CASE_PREFIX(*prule_str, "SUITEB128ONLY")) {
  ------------------
  |  |   63|    347|#define HAS_CASE_PREFIX(s, p) (OPENSSL_strncasecmp(s, p "", sizeof(p) - 1) == 0)
  |  |  ------------------
  |  |  |  Branch (63:31): [True: 0, False: 347]
  |  |  ------------------
  ------------------
 1187|      0|        suiteb_flags = SSL_CERT_FLAG_SUITEB_128_LOS_ONLY;
  ------------------
  |  |  580|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS_ONLY 0x10000
  ------------------
 1188|    347|    } else if (HAS_CASE_PREFIX(*prule_str, "SUITEB128C2")) {
  ------------------
  |  |   63|    347|#define HAS_CASE_PREFIX(s, p) (OPENSSL_strncasecmp(s, p "", sizeof(p) - 1) == 0)
  |  |  ------------------
  |  |  |  Branch (63:31): [True: 0, False: 347]
  |  |  ------------------
  ------------------
 1189|      0|        suiteb_comb2 = 1;
 1190|      0|        suiteb_flags = SSL_CERT_FLAG_SUITEB_128_LOS;
  ------------------
  |  |  584|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
  ------------------
 1191|    347|    } else if (HAS_CASE_PREFIX(*prule_str, "SUITEB128")) {
  ------------------
  |  |   63|    347|#define HAS_CASE_PREFIX(s, p) (OPENSSL_strncasecmp(s, p "", sizeof(p) - 1) == 0)
  |  |  ------------------
  |  |  |  Branch (63:31): [True: 0, False: 347]
  |  |  ------------------
  ------------------
 1192|      0|        suiteb_flags = SSL_CERT_FLAG_SUITEB_128_LOS;
  ------------------
  |  |  584|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
  ------------------
 1193|    347|    } else if (HAS_CASE_PREFIX(*prule_str, "SUITEB192")) {
  ------------------
  |  |   63|    347|#define HAS_CASE_PREFIX(s, p) (OPENSSL_strncasecmp(s, p "", sizeof(p) - 1) == 0)
  |  |  ------------------
  |  |  |  Branch (63:31): [True: 0, False: 347]
  |  |  ------------------
  ------------------
 1194|      0|        suiteb_flags = SSL_CERT_FLAG_SUITEB_192_LOS;
  ------------------
  |  |  582|      0|#define SSL_CERT_FLAG_SUITEB_192_LOS 0x20000
  ------------------
 1195|      0|    }
 1196|       |
 1197|    347|    if (suiteb_flags) {
  ------------------
  |  Branch (1197:9): [True: 0, False: 347]
  ------------------
 1198|      0|        c->cert_flags &= ~SSL_CERT_FLAG_SUITEB_128_LOS;
  ------------------
  |  |  584|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
  ------------------
 1199|      0|        c->cert_flags |= suiteb_flags;
 1200|    347|    } else {
 1201|    347|        suiteb_flags = c->cert_flags & SSL_CERT_FLAG_SUITEB_128_LOS;
  ------------------
  |  |  584|    347|#define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
  ------------------
 1202|    347|    }
 1203|       |
 1204|    347|    if (!suiteb_flags)
  ------------------
  |  Branch (1204:9): [True: 347, False: 0]
  ------------------
 1205|    347|        return 1;
 1206|       |    /* Check version: if TLS 1.2 ciphers allowed we can use Suite B */
 1207|       |
 1208|      0|    if (!(meth->ssl3_enc->enc_flags & SSL_ENC_FLAG_TLS1_2_CIPHERS)) {
  ------------------
  |  | 2201|      0|#define SSL_ENC_FLAG_TLS1_2_CIPHERS 0x10
  ------------------
  |  Branch (1208:9): [True: 0, False: 0]
  ------------------
 1209|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_AT_LEAST_TLS_1_2_NEEDED_IN_SUITEB_MODE);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1210|      0|        return 0;
 1211|      0|    }
 1212|       |
 1213|      0|    switch (suiteb_flags) {
  ------------------
  |  Branch (1213:13): [True: 0, False: 0]
  ------------------
 1214|      0|    case SSL_CERT_FLAG_SUITEB_128_LOS:
  ------------------
  |  |  584|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
  ------------------
  |  Branch (1214:5): [True: 0, False: 0]
  ------------------
 1215|      0|        if (suiteb_comb2)
  ------------------
  |  Branch (1215:13): [True: 0, False: 0]
  ------------------
 1216|      0|            *prule_str = "ECDHE-ECDSA-AES256-GCM-SHA384";
 1217|      0|        else
 1218|      0|            *prule_str = "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384";
 1219|      0|        break;
 1220|      0|    case SSL_CERT_FLAG_SUITEB_128_LOS_ONLY:
  ------------------
  |  |  580|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS_ONLY 0x10000
  ------------------
  |  Branch (1220:5): [True: 0, False: 0]
  ------------------
 1221|      0|        *prule_str = "ECDHE-ECDSA-AES128-GCM-SHA256";
 1222|      0|        break;
 1223|      0|    case SSL_CERT_FLAG_SUITEB_192_LOS:
  ------------------
  |  |  582|      0|#define SSL_CERT_FLAG_SUITEB_192_LOS 0x20000
  ------------------
  |  Branch (1223:5): [True: 0, False: 0]
  ------------------
 1224|      0|        *prule_str = "ECDHE-ECDSA-AES256-GCM-SHA384";
 1225|      0|        break;
 1226|      0|    }
 1227|      0|    return 1;
 1228|      0|}
ssl_ciph.c:ssl_cipher_collect_ciphers:
  615|    347|{
  616|    347|    int i, co_list_num;
  617|    347|    const SSL_CIPHER *c;
  618|       |
  619|       |    /*
  620|       |     * We have num_of_ciphers descriptions compiled in, depending on the
  621|       |     * method selected (SSLv3, TLSv1 etc).
  622|       |     * These will later be sorted in a linked list with at most num
  623|       |     * entries.
  624|       |     */
  625|       |
  626|       |    /* Get the initial list of ciphers */
  627|    347|    co_list_num = 0; /* actual count of ciphers */
  628|  66.6k|    for (i = 0; i < num_of_ciphers; i++) {
  ------------------
  |  Branch (628:17): [True: 66.2k, False: 347]
  ------------------
  629|  66.2k|        c = ssl_method->get_cipher(i);
  630|       |        /* drop those that use any of that is not available */
  631|  66.2k|        if (c == NULL || !c->valid)
  ------------------
  |  Branch (631:13): [True: 0, False: 66.2k]
  |  Branch (631:26): [True: 0, False: 66.2k]
  ------------------
  632|      0|            continue;
  633|  66.2k|        if ((c->algorithm_mkey & disabled_mkey) || (c->algorithm_auth & disabled_auth) || (c->algorithm_enc & disabled_enc) || (c->algorithm_mac & disabled_mac))
  ------------------
  |  Branch (633:13): [True: 2.42k, False: 63.8k]
  |  Branch (633:52): [True: 0, False: 63.8k]
  |  Branch (633:91): [True: 5.20k, False: 58.6k]
  |  Branch (633:128): [True: 0, False: 58.6k]
  ------------------
  634|  7.63k|            continue;
  635|  58.6k|        if (((ssl_method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS) == 0) && c->min_tls == 0)
  ------------------
  |  | 2196|  58.6k|#define SSL_ENC_FLAG_DTLS 0x8
  ------------------
  |  Branch (635:13): [True: 58.6k, False: 0]
  |  Branch (635:77): [True: 0, False: 58.6k]
  ------------------
  636|      0|            continue;
  637|  58.6k|        if (((ssl_method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS) != 0) && c->min_dtls == 0)
  ------------------
  |  | 2196|  58.6k|#define SSL_ENC_FLAG_DTLS 0x8
  ------------------
  |  Branch (637:13): [True: 0, False: 58.6k]
  |  Branch (637:77): [True: 0, False: 0]
  ------------------
  638|      0|            continue;
  639|       |
  640|  58.6k|        co_list[co_list_num].cipher = c;
  641|  58.6k|        co_list[co_list_num].next = NULL;
  642|  58.6k|        co_list[co_list_num].prev = NULL;
  643|  58.6k|        co_list[co_list_num].active = 0;
  644|  58.6k|        co_list_num++;
  645|  58.6k|    }
  646|       |
  647|       |    /*
  648|       |     * Prepare linked list from list entries
  649|       |     */
  650|    347|    if (co_list_num > 0) {
  ------------------
  |  Branch (650:9): [True: 347, False: 0]
  ------------------
  651|    347|        co_list[0].prev = NULL;
  652|       |
  653|    347|        if (co_list_num > 1) {
  ------------------
  |  Branch (653:13): [True: 347, False: 0]
  ------------------
  654|    347|            co_list[0].next = &co_list[1];
  655|       |
  656|  58.2k|            for (i = 1; i < co_list_num - 1; i++) {
  ------------------
  |  Branch (656:25): [True: 57.9k, False: 347]
  ------------------
  657|  57.9k|                co_list[i].prev = &co_list[i - 1];
  658|  57.9k|                co_list[i].next = &co_list[i + 1];
  659|  57.9k|            }
  660|       |
  661|    347|            co_list[co_list_num - 1].prev = &co_list[co_list_num - 2];
  662|    347|        }
  663|       |
  664|    347|        co_list[co_list_num - 1].next = NULL;
  665|       |
  666|    347|        *head_p = &co_list[0];
  667|    347|        *tail_p = &co_list[co_list_num - 1];
  668|    347|    }
  669|    347|}
ssl_ciph.c:ssl_cipher_apply_rule:
  739|  8.67k|{
  740|  8.67k|    CIPHER_ORDER *head, *tail, *curr, *next, *last;
  741|  8.67k|    const SSL_CIPHER *cp;
  742|  8.67k|    int reverse = 0;
  743|       |
  744|  8.67k|    OSSL_TRACE_BEGIN(TLS_CIPHER)
  ------------------
  |  |  219|  8.67k|    do {                           \
  |  |  220|  8.67k|        BIO *trc_out = NULL;       \
  |  |  221|  8.67k|        if (0)
  |  |  ------------------
  |  |  |  Branch (221:13): [Folded, False: 8.67k]
  |  |  ------------------
  ------------------
  745|      0|    {
  746|      0|        BIO_printf(trc_out,
  747|      0|            "Applying rule %d with %08x/%08x/%08x/%08x/%08x %08x (%d)\n",
  748|      0|            rule, (unsigned int)alg_mkey, (unsigned int)alg_auth,
  749|      0|            (unsigned int)alg_enc, (unsigned int)alg_mac, min_tls,
  750|      0|            (unsigned int)algo_strength, (int)strength_bits);
  751|      0|    }
  752|       |
  753|  8.67k|    if (rule == CIPHER_DEL || rule == CIPHER_BUMP)
  ------------------
  |  |  143|  17.3k|#define CIPHER_DEL 3
  ------------------
                  if (rule == CIPHER_DEL || rule == CIPHER_BUMP)
  ------------------
  |  |  150|  7.98k|#define CIPHER_BUMP 6
  ------------------
  |  Branch (753:9): [True: 694, False: 7.98k]
  |  Branch (753:31): [True: 1.38k, False: 6.59k]
  ------------------
  754|  2.08k|        reverse = 1; /* needed to maintain sorting between currently
  755|       |                      * deleted ciphers */
  756|       |
  757|  8.67k|    head = *head_p;
  758|  8.67k|    tail = *tail_p;
  759|       |
  760|  8.67k|    if (reverse) {
  ------------------
  |  Branch (760:9): [True: 2.08k, False: 6.59k]
  ------------------
  761|  2.08k|        next = tail;
  762|  2.08k|        last = head;
  763|  6.59k|    } else {
  764|  6.59k|        next = head;
  765|  6.59k|        last = tail;
  766|  6.59k|    }
  767|       |
  768|  8.67k|    curr = NULL;
  769|  1.44M|    for (;;) {
  770|  1.44M|        if (curr == last)
  ------------------
  |  Branch (770:13): [True: 8.67k, False: 1.43M]
  ------------------
  771|  8.67k|            break;
  772|       |
  773|  1.43M|        curr = next;
  774|       |
  775|  1.43M|        if (curr == NULL)
  ------------------
  |  Branch (775:13): [True: 0, False: 1.43M]
  ------------------
  776|      0|            break;
  777|       |
  778|  1.43M|        next = reverse ? curr->prev : curr->next;
  ------------------
  |  Branch (778:16): [True: 351k, False: 1.08M]
  ------------------
  779|       |
  780|  1.43M|        cp = curr->cipher;
  781|       |
  782|       |        /*
  783|       |         * Selection criteria is either the value of strength_bits
  784|       |         * or the algorithms used.
  785|       |         */
  786|  1.43M|        if (strength_bits >= 0) {
  ------------------
  |  Branch (786:13): [True: 293k, False: 1.14M]
  ------------------
  787|   293k|            if (strength_bits != cp->strength_bits)
  ------------------
  |  Branch (787:17): [True: 234k, False: 58.6k]
  ------------------
  788|   234k|                continue;
  789|  1.14M|        } else {
  790|  1.14M|            if (trc_out != NULL) {
  ------------------
  |  Branch (790:17): [True: 0, False: 1.14M]
  ------------------
  791|      0|                BIO_printf(trc_out,
  792|      0|                    "\nName: %s:"
  793|      0|                    "\nAlgo = %08x/%08x/%08x/%08x/%08x Algo_strength = %08x\n",
  794|      0|                    cp->name,
  795|      0|                    (unsigned int)cp->algorithm_mkey,
  796|      0|                    (unsigned int)cp->algorithm_auth,
  797|      0|                    (unsigned int)cp->algorithm_enc,
  798|      0|                    (unsigned int)cp->algorithm_mac,
  799|      0|                    cp->min_tls,
  800|      0|                    (unsigned int)cp->algo_strength);
  801|      0|            }
  802|  1.14M|            if (cipher_id != 0 && (cipher_id != cp->id))
  ------------------
  |  Branch (802:17): [True: 0, False: 1.14M]
  |  Branch (802:35): [True: 0, False: 0]
  ------------------
  803|      0|                continue;
  804|  1.14M|            if (alg_mkey && !(alg_mkey & cp->algorithm_mkey))
  ------------------
  |  Branch (804:17): [True: 410k, False: 729k]
  |  Branch (804:29): [True: 308k, False: 101k]
  ------------------
  805|   308k|                continue;
  806|   831k|            if (alg_auth && !(alg_auth & cp->algorithm_auth))
  ------------------
  |  Branch (806:17): [True: 70.4k, False: 760k]
  |  Branch (806:29): [True: 59.3k, False: 11.1k]
  ------------------
  807|  59.3k|                continue;
  808|   772k|            if (alg_enc && !(alg_enc & cp->algorithm_enc))
  ------------------
  |  Branch (808:17): [True: 319k, False: 452k]
  |  Branch (808:28): [True: 228k, False: 90.9k]
  ------------------
  809|   228k|                continue;
  810|   543k|            if (alg_mac && !(alg_mac & cp->algorithm_mac))
  ------------------
  |  Branch (810:17): [True: 143k, False: 400k]
  |  Branch (810:28): [True: 112k, False: 31.5k]
  ------------------
  811|   112k|                continue;
  812|   431k|            if (min_tls && (min_tls != cp->min_tls))
  ------------------
  |  Branch (812:17): [True: 58.6k, False: 373k]
  |  Branch (812:28): [True: 28.8k, False: 29.8k]
  ------------------
  813|  28.8k|                continue;
  814|   402k|            if ((algo_strength & SSL_STRONG_MASK)
  ------------------
  |  |  249|   402k|#define SSL_STRONG_MASK 0x0000001FU
  ------------------
  |  Branch (814:17): [True: 0, False: 402k]
  ------------------
  815|      0|                && !(algo_strength & SSL_STRONG_MASK & cp->algo_strength))
  ------------------
  |  |  249|      0|#define SSL_STRONG_MASK 0x0000001FU
  ------------------
  |  Branch (815:20): [True: 0, False: 0]
  ------------------
  816|      0|                continue;
  817|   402k|            if ((algo_strength & SSL_DEFAULT_MASK)
  ------------------
  |  |  250|   402k|#define SSL_DEFAULT_MASK 0X00000020U
  ------------------
  |  Branch (817:17): [True: 58.6k, False: 344k]
  ------------------
  818|  58.6k|                && !(algo_strength & SSL_DEFAULT_MASK & cp->algo_strength))
  ------------------
  |  |  250|  58.6k|#define SSL_DEFAULT_MASK 0X00000020U
  ------------------
  |  Branch (818:20): [True: 26.0k, False: 32.6k]
  ------------------
  819|  26.0k|                continue;
  820|   402k|        }
  821|       |
  822|   435k|        if (trc_out != NULL)
  ------------------
  |  Branch (822:13): [True: 0, False: 435k]
  ------------------
  823|      0|            BIO_printf(trc_out, "Action = %d\n", rule);
  824|       |
  825|       |        /* add the cipher if it has not been added yet. */
  826|   435k|        if (rule == CIPHER_ADD) {
  ------------------
  |  |  141|   435k|#define CIPHER_ADD 1
  ------------------
  |  Branch (826:13): [True: 161k, False: 274k]
  ------------------
  827|       |            /* reverse == 0 */
  828|   161k|            if (!curr->active) {
  ------------------
  |  Branch (828:17): [True: 122k, False: 38.1k]
  ------------------
  829|   122k|                ll_append_tail(&head, curr, &tail);
  830|   122k|                curr->active = 1;
  831|   122k|            }
  832|   161k|        }
  833|       |        /* Move the added cipher to this location */
  834|   274k|        else if (rule == CIPHER_ORD) {
  ------------------
  |  |  144|   274k|#define CIPHER_ORD 4
  ------------------
  |  Branch (834:18): [True: 77.7k, False: 196k]
  ------------------
  835|       |            /* reverse == 0 */
  836|  77.7k|            if (curr->active) {
  ------------------
  |  Branch (836:17): [True: 77.7k, False: 0]
  ------------------
  837|  77.7k|                ll_append_tail(&head, curr, &tail);
  838|  77.7k|            }
  839|   196k|        } else if (rule == CIPHER_DEL) {
  ------------------
  |  |  143|   196k|#define CIPHER_DEL 3
  ------------------
  |  Branch (839:20): [True: 70.4k, False: 126k]
  ------------------
  840|       |            /* reverse == 1 */
  841|  70.4k|            if (curr->active) {
  ------------------
  |  Branch (841:17): [True: 70.4k, False: 0]
  ------------------
  842|       |                /*
  843|       |                 * most recently deleted ciphersuites get best positions for
  844|       |                 * any future CIPHER_ADD (note that the CIPHER_DEL loop works
  845|       |                 * in reverse to maintain the order)
  846|       |                 */
  847|  70.4k|                ll_append_head(&head, curr, &tail);
  848|  70.4k|                curr->active = 0;
  849|  70.4k|            }
  850|   126k|        } else if (rule == CIPHER_BUMP) {
  ------------------
  |  |  150|   126k|#define CIPHER_BUMP 6
  ------------------
  |  Branch (850:20): [True: 87.4k, False: 38.8k]
  ------------------
  851|  87.4k|            if (curr->active)
  ------------------
  |  Branch (851:17): [True: 87.4k, False: 0]
  ------------------
  852|  87.4k|                ll_append_head(&head, curr, &tail);
  853|  87.4k|        } else if (rule == CIPHER_KILL) {
  ------------------
  |  |  142|  38.8k|#define CIPHER_KILL 2
  ------------------
  |  Branch (853:20): [True: 38.8k, False: 0]
  ------------------
  854|       |            /* reverse == 0 */
  855|  38.8k|            if (head == curr)
  ------------------
  |  Branch (855:17): [True: 6.24k, False: 32.6k]
  ------------------
  856|  6.24k|                head = curr->next;
  857|  32.6k|            else
  858|  32.6k|                curr->prev->next = curr->next;
  859|  38.8k|            if (tail == curr)
  ------------------
  |  Branch (859:17): [True: 347, False: 38.5k]
  ------------------
  860|    347|                tail = curr->prev;
  861|  38.8k|            curr->active = 0;
  862|  38.8k|            if (curr->next != NULL)
  ------------------
  |  Branch (862:17): [True: 38.5k, False: 347]
  ------------------
  863|  38.5k|                curr->next->prev = curr->prev;
  864|  38.8k|            if (curr->prev != NULL)
  ------------------
  |  Branch (864:17): [True: 32.6k, False: 6.24k]
  ------------------
  865|  32.6k|                curr->prev->next = curr->next;
  866|  38.8k|            curr->next = NULL;
  867|  38.8k|            curr->prev = NULL;
  868|  38.8k|        }
  869|   435k|    }
  870|       |
  871|  8.67k|    *head_p = head;
  872|  8.67k|    *tail_p = tail;
  873|       |
  874|  8.67k|    OSSL_TRACE_END(TLS_CIPHER);
  ------------------
  |  |  224|  8.67k|    }                            \
  |  |  225|  8.67k|    while (0)
  |  |  ------------------
  |  |  |  Branch (225:12): [Folded, False: 8.67k]
  |  |  ------------------
  ------------------
  875|  8.67k|}
ssl_ciph.c:ll_append_tail:
  574|   200k|{
  575|   200k|    if (curr == *tail)
  ------------------
  |  Branch (575:9): [True: 347, False: 200k]
  ------------------
  576|    347|        return;
  577|   200k|    if (curr == *head)
  ------------------
  |  Branch (577:9): [True: 64.1k, False: 136k]
  ------------------
  578|  64.1k|        *head = curr->next;
  579|   200k|    if (curr->prev != NULL)
  ------------------
  |  Branch (579:9): [True: 136k, False: 64.1k]
  ------------------
  580|   136k|        curr->prev->next = curr->next;
  581|   200k|    if (curr->next != NULL)
  ------------------
  |  Branch (581:9): [True: 200k, False: 0]
  ------------------
  582|   200k|        curr->next->prev = curr->prev;
  583|   200k|    (*tail)->next = curr;
  584|   200k|    curr->prev = *tail;
  585|       |    curr->next = NULL;
  586|   200k|    *tail = curr;
  587|   200k|}
ssl_ciph.c:ll_append_head:
  591|   157k|{
  592|   157k|    if (curr == *head)
  ------------------
  |  Branch (592:9): [True: 0, False: 157k]
  ------------------
  593|      0|        return;
  594|   157k|    if (curr == *tail)
  ------------------
  |  Branch (594:9): [True: 70.4k, False: 87.4k]
  ------------------
  595|  70.4k|        *tail = curr->prev;
  596|   157k|    if (curr->next != NULL)
  ------------------
  |  Branch (596:9): [True: 87.4k, False: 70.4k]
  ------------------
  597|  87.4k|        curr->next->prev = curr->prev;
  598|   157k|    if (curr->prev != NULL)
  ------------------
  |  Branch (598:9): [True: 157k, False: 0]
  ------------------
  599|   157k|        curr->prev->next = curr->next;
  600|   157k|    (*head)->prev = curr;
  601|   157k|    curr->next = *head;
  602|       |    curr->prev = NULL;
  603|   157k|    *head = curr;
  604|   157k|}
ssl_ciph.c:ssl_cipher_strength_sort:
  879|    347|{
  880|    347|    int32_t max_strength_bits;
  881|    347|    int i, *number_uses;
  882|    347|    CIPHER_ORDER *curr;
  883|       |
  884|       |    /*
  885|       |     * This routine sorts the ciphers with descending strength. The sorting
  886|       |     * must keep the pre-sorted sequence, so we apply the normal sorting
  887|       |     * routine as '+' movement to the end of the list.
  888|       |     */
  889|    347|    max_strength_bits = 0;
  890|    347|    curr = *head_p;
  891|  58.9k|    while (curr != NULL) {
  ------------------
  |  Branch (891:12): [True: 58.6k, False: 347]
  ------------------
  892|  58.6k|        if (curr->active && (curr->cipher->strength_bits > max_strength_bits))
  ------------------
  |  Branch (892:13): [True: 58.6k, False: 0]
  |  Branch (892:29): [True: 347, False: 58.2k]
  ------------------
  893|    347|            max_strength_bits = curr->cipher->strength_bits;
  894|  58.6k|        curr = curr->next;
  895|  58.6k|    }
  896|       |
  897|    347|    number_uses = OPENSSL_calloc(max_strength_bits + 1, sizeof(int));
  ------------------
  |  |  113|    347|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  898|    347|    if (number_uses == NULL)
  ------------------
  |  Branch (898:9): [True: 0, False: 347]
  ------------------
  899|      0|        return 0;
  900|       |
  901|       |    /*
  902|       |     * Now find the strength_bits values actually used
  903|       |     */
  904|    347|    curr = *head_p;
  905|  58.9k|    while (curr != NULL) {
  ------------------
  |  Branch (905:12): [True: 58.6k, False: 347]
  ------------------
  906|  58.6k|        if (curr->active)
  ------------------
  |  Branch (906:13): [True: 58.6k, False: 0]
  ------------------
  907|  58.6k|            number_uses[curr->cipher->strength_bits]++;
  908|  58.6k|        curr = curr->next;
  909|  58.6k|    }
  910|       |    /*
  911|       |     * Go through the list of used strength_bits values in descending
  912|       |     * order.
  913|       |     */
  914|  89.5k|    for (i = max_strength_bits; i >= 0; i--)
  ------------------
  |  Branch (914:33): [True: 89.1k, False: 347]
  ------------------
  915|  89.1k|        if (number_uses[i] > 0)
  ------------------
  |  Branch (915:13): [True: 1.73k, False: 87.4k]
  ------------------
  916|  1.73k|            ssl_cipher_apply_rule(0, 0, 0, 0, 0, 0, 0, CIPHER_ORD, i, head_p,
  ------------------
  |  |  144|  1.73k|#define CIPHER_ORD 4
  ------------------
  917|  1.73k|                tail_p);
  918|       |
  919|    347|    OPENSSL_free(number_uses);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  920|    347|    return 1;
  921|    347|}
ssl_ciph.c:ssl_cipher_collect_aliases:
  678|    347|{
  679|    347|    CIPHER_ORDER *ciph_curr;
  680|    347|    const SSL_CIPHER **ca_curr;
  681|    347|    int i;
  682|    347|    uint32_t mask_mkey = ~disabled_mkey;
  683|    347|    uint32_t mask_auth = ~disabled_auth;
  684|    347|    uint32_t mask_enc = ~disabled_enc;
  685|    347|    uint32_t mask_mac = ~disabled_mac;
  686|       |
  687|       |    /*
  688|       |     * First, add the real ciphers as already collected
  689|       |     */
  690|    347|    ciph_curr = head;
  691|    347|    ca_curr = ca_list;
  692|  58.9k|    while (ciph_curr != NULL) {
  ------------------
  |  Branch (692:12): [True: 58.6k, False: 347]
  ------------------
  693|  58.6k|        *ca_curr = ciph_curr->cipher;
  694|  58.6k|        ca_curr++;
  695|  58.6k|        ciph_curr = ciph_curr->next;
  696|  58.6k|    }
  697|       |
  698|       |    /*
  699|       |     * Now we add the available ones from the cipher_aliases[] table.
  700|       |     * They represent either one or more algorithms, some of which
  701|       |     * in any affected category must be supported (set in enabled_mask),
  702|       |     * or represent a cipher strength value (will be added in any case because algorithms=0).
  703|       |     */
  704|  27.0k|    for (i = 0; i < num_of_group_aliases; i++) {
  ------------------
  |  Branch (704:17): [True: 26.7k, False: 347]
  ------------------
  705|  26.7k|        uint32_t algorithm_mkey = cipher_aliases[i].algorithm_mkey;
  706|  26.7k|        uint32_t algorithm_auth = cipher_aliases[i].algorithm_auth;
  707|  26.7k|        uint32_t algorithm_enc = cipher_aliases[i].algorithm_enc;
  708|  26.7k|        uint32_t algorithm_mac = cipher_aliases[i].algorithm_mac;
  709|       |
  710|  26.7k|        if (algorithm_mkey)
  ------------------
  |  Branch (710:13): [True: 8.67k, False: 18.0k]
  ------------------
  711|  8.67k|            if ((algorithm_mkey & mask_mkey) == 0)
  ------------------
  |  Branch (711:17): [True: 694, False: 7.98k]
  ------------------
  712|    694|                continue;
  713|       |
  714|  26.0k|        if (algorithm_auth)
  ------------------
  |  Branch (714:13): [True: 6.94k, False: 19.0k]
  ------------------
  715|  6.94k|            if ((algorithm_auth & mask_auth) == 0)
  ------------------
  |  Branch (715:17): [True: 1.04k, False: 5.89k]
  ------------------
  716|  1.04k|                continue;
  717|       |
  718|  24.9k|        if (algorithm_enc)
  ------------------
  |  Branch (718:13): [True: 9.71k, False: 15.2k]
  ------------------
  719|  9.71k|            if ((algorithm_enc & mask_enc) == 0)
  ------------------
  |  Branch (719:17): [True: 2.08k, False: 7.63k]
  ------------------
  720|  2.08k|                continue;
  721|       |
  722|  22.9k|        if (algorithm_mac)
  ------------------
  |  Branch (722:13): [True: 3.47k, False: 19.4k]
  ------------------
  723|  3.47k|            if ((algorithm_mac & mask_mac) == 0)
  ------------------
  |  Branch (723:17): [True: 1.04k, False: 2.42k]
  ------------------
  724|  1.04k|                continue;
  725|       |
  726|  21.8k|        *ca_curr = (SSL_CIPHER *)(cipher_aliases + i);
  727|  21.8k|        ca_curr++;
  728|  21.8k|    }
  729|       |
  730|       |    *ca_curr = NULL; /* end of list */
  731|    347|}
ssl_ciph.c:ssl_cipher_process_rulestr:
  927|    347|{
  928|    347|    uint32_t alg_mkey, alg_auth, alg_enc, alg_mac, algo_strength;
  929|    347|    int min_tls;
  930|    347|    const char *l, *buf;
  931|    347|    int j, multi, found, rule, retval, ok, buflen;
  932|    347|    uint32_t cipher_id = 0;
  933|    347|    char ch;
  934|       |
  935|    347|    retval = 1;
  936|    347|    l = rule_str;
  937|  1.73k|    for (;;) {
  938|  1.73k|        ch = *l;
  939|       |
  940|  1.73k|        if (ch == '\0')
  ------------------
  |  Branch (940:13): [True: 0, False: 1.73k]
  ------------------
  941|      0|            break; /* done */
  942|  1.73k|        if (ch == '-') {
  ------------------
  |  Branch (942:13): [True: 0, False: 1.73k]
  ------------------
  943|      0|            rule = CIPHER_DEL;
  ------------------
  |  |  143|      0|#define CIPHER_DEL 3
  ------------------
  944|      0|            l++;
  945|  1.73k|        } else if (ch == '+') {
  ------------------
  |  Branch (945:20): [True: 0, False: 1.73k]
  ------------------
  946|      0|            rule = CIPHER_ORD;
  ------------------
  |  |  144|      0|#define CIPHER_ORD 4
  ------------------
  947|      0|            l++;
  948|  1.73k|        } else if (ch == '!') {
  ------------------
  |  Branch (948:20): [True: 694, False: 1.04k]
  ------------------
  949|    694|            rule = CIPHER_KILL;
  ------------------
  |  |  142|    694|#define CIPHER_KILL 2
  ------------------
  950|    694|            l++;
  951|  1.04k|        } else if (ch == '@') {
  ------------------
  |  Branch (951:20): [True: 0, False: 1.04k]
  ------------------
  952|      0|            rule = CIPHER_SPECIAL;
  ------------------
  |  |  145|      0|#define CIPHER_SPECIAL 5
  ------------------
  953|      0|            l++;
  954|  1.04k|        } else {
  955|  1.04k|            rule = CIPHER_ADD;
  ------------------
  |  |  141|  1.04k|#define CIPHER_ADD 1
  ------------------
  956|  1.04k|        }
  957|       |
  958|  1.73k|        if (ITEM_SEP(ch)) {
  ------------------
  |  |  570|  1.73k|    (((a) == ':') || ((a) == ' ') || ((a) == ';') || ((a) == ','))
  |  |  ------------------
  |  |  |  Branch (570:6): [True: 694, False: 1.04k]
  |  |  |  Branch (570:22): [True: 0, False: 1.04k]
  |  |  |  Branch (570:38): [True: 0, False: 1.04k]
  |  |  |  Branch (570:54): [True: 0, False: 1.04k]
  |  |  ------------------
  ------------------
  959|    694|            l++;
  960|    694|            continue;
  961|    694|        }
  962|       |
  963|  1.04k|        alg_mkey = 0;
  964|  1.04k|        alg_auth = 0;
  965|  1.04k|        alg_enc = 0;
  966|  1.04k|        alg_mac = 0;
  967|  1.04k|        min_tls = 0;
  968|  1.04k|        algo_strength = 0;
  969|       |
  970|  1.04k|        for (;;) {
  971|  1.04k|            ch = *l;
  972|  1.04k|            buf = l;
  973|  1.04k|            buflen = 0;
  974|  1.04k|#ifndef CHARSET_EBCDIC
  975|  10.4k|            while (((ch >= 'A') && (ch <= 'Z')) || ((ch >= '0') && (ch <= '9')) || ((ch >= 'a') && (ch <= 'z')) || (ch == '-') || (ch == '_') || (ch == '.') || (ch == '='))
  ------------------
  |  Branch (975:21): [True: 9.36k, False: 1.04k]
  |  Branch (975:36): [True: 9.02k, False: 347]
  |  Branch (975:53): [True: 1.04k, False: 347]
  |  Branch (975:68): [True: 0, False: 1.04k]
  |  Branch (975:85): [True: 347, False: 1.04k]
  |  Branch (975:100): [True: 347, False: 0]
  |  Branch (975:116): [True: 0, False: 1.04k]
  |  Branch (975:131): [True: 0, False: 1.04k]
  |  Branch (975:146): [True: 0, False: 1.04k]
  |  Branch (975:161): [True: 0, False: 1.04k]
  ------------------
  976|       |#else
  977|       |            while (isalnum((unsigned char)ch) || (ch == '-') || (ch == '_') || (ch == '.')
  978|       |                || (ch == '='))
  979|       |#endif
  980|  9.36k|            {
  981|  9.36k|                ch = *(++l);
  982|  9.36k|                buflen++;
  983|  9.36k|            }
  984|       |
  985|  1.04k|            if (buflen == 0) {
  ------------------
  |  Branch (985:17): [True: 0, False: 1.04k]
  ------------------
  986|       |                /*
  987|       |                 * We hit something we cannot deal with,
  988|       |                 * it is no command or separator nor
  989|       |                 * alphanumeric, so we call this an error.
  990|       |                 */
  991|      0|                ERR_raise(ERR_LIB_SSL, SSL_R_INVALID_COMMAND);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  992|      0|                return 0;
  993|      0|            }
  994|       |
  995|  1.04k|            if (rule == CIPHER_SPECIAL) {
  ------------------
  |  |  145|  1.04k|#define CIPHER_SPECIAL 5
  ------------------
  |  Branch (995:17): [True: 0, False: 1.04k]
  ------------------
  996|      0|                found = 0; /* unused -- avoid compiler warning */
  997|      0|                break; /* special treatment */
  998|      0|            }
  999|       |
 1000|       |            /* check for multi-part specification */
 1001|  1.04k|            if (ch == '+') {
  ------------------
  |  Branch (1001:17): [True: 0, False: 1.04k]
  ------------------
 1002|      0|                multi = 1;
 1003|      0|                l++;
 1004|  1.04k|            } else {
 1005|  1.04k|                multi = 0;
 1006|  1.04k|            }
 1007|       |
 1008|       |            /*
 1009|       |             * Now search for the cipher alias in the ca_list. Be careful
 1010|       |             * with the strncmp, because the "buflen" limitation
 1011|       |             * will make the rule "ADH:SOME" and the cipher
 1012|       |             * "ADH-MY-CIPHER" look like a match for buflen=3.
 1013|       |             * So additionally check whether the cipher name found
 1014|       |             * has the correct length. We can save a strlen() call:
 1015|       |             * just checking for the '\0' at the right place is
 1016|       |             * sufficient, we have to strncmp() anyway. (We cannot
 1017|       |             * use strcasecmp(), because buf is not '\0' terminated.)
 1018|       |             */
 1019|  1.04k|            j = found = 0;
 1020|  1.04k|            cipher_id = 0;
 1021|   189k|            while (ca_list[j]) {
  ------------------
  |  Branch (1021:20): [True: 189k, False: 0]
  ------------------
 1022|   189k|                if (OPENSSL_strncasecmp(buf, ca_list[j]->name, buflen) == 0
  ------------------
  |  Branch (1022:21): [True: 1.04k, False: 188k]
  ------------------
 1023|  1.04k|                    && (ca_list[j]->name[buflen] == '\0')) {
  ------------------
  |  Branch (1023:24): [True: 1.04k, False: 0]
  ------------------
 1024|  1.04k|                    found = 1;
 1025|  1.04k|                    break;
 1026|   188k|                } else if (ca_list[j]->stdname != NULL
  ------------------
  |  Branch (1026:28): [True: 175k, False: 12.4k]
  ------------------
 1027|   175k|                    && OPENSSL_strncasecmp(buf, ca_list[j]->stdname, buflen) == 0
  ------------------
  |  Branch (1027:24): [True: 0, False: 175k]
  ------------------
 1028|      0|                    && ca_list[j]->stdname[buflen] == '\0') {
  ------------------
  |  Branch (1028:24): [True: 0, False: 0]
  ------------------
 1029|      0|                    found = 1;
 1030|      0|                    break;
 1031|      0|                } else
 1032|   188k|                    j++;
 1033|   189k|            }
 1034|       |
 1035|  1.04k|            if (!found)
  ------------------
  |  Branch (1035:17): [True: 0, False: 1.04k]
  ------------------
 1036|      0|                break; /* ignore this entry */
 1037|       |
 1038|  1.04k|            if (ca_list[j]->algorithm_mkey) {
  ------------------
  |  Branch (1038:17): [True: 0, False: 1.04k]
  ------------------
 1039|      0|                if (alg_mkey) {
  ------------------
  |  Branch (1039:21): [True: 0, False: 0]
  ------------------
 1040|      0|                    alg_mkey &= ca_list[j]->algorithm_mkey;
 1041|      0|                    if (!alg_mkey) {
  ------------------
  |  Branch (1041:25): [True: 0, False: 0]
  ------------------
 1042|      0|                        found = 0;
 1043|      0|                        break;
 1044|      0|                    }
 1045|      0|                } else {
 1046|      0|                    alg_mkey = ca_list[j]->algorithm_mkey;
 1047|      0|                }
 1048|      0|            }
 1049|       |
 1050|  1.04k|            if (ca_list[j]->algorithm_auth) {
  ------------------
  |  Branch (1050:17): [True: 0, False: 1.04k]
  ------------------
 1051|      0|                if (alg_auth) {
  ------------------
  |  Branch (1051:21): [True: 0, False: 0]
  ------------------
 1052|      0|                    alg_auth &= ca_list[j]->algorithm_auth;
 1053|      0|                    if (!alg_auth) {
  ------------------
  |  Branch (1053:25): [True: 0, False: 0]
  ------------------
 1054|      0|                        found = 0;
 1055|      0|                        break;
 1056|      0|                    }
 1057|      0|                } else {
 1058|      0|                    alg_auth = ca_list[j]->algorithm_auth;
 1059|      0|                }
 1060|      0|            }
 1061|       |
 1062|  1.04k|            if (ca_list[j]->algorithm_enc) {
  ------------------
  |  Branch (1062:17): [True: 694, False: 347]
  ------------------
 1063|    694|                if (alg_enc) {
  ------------------
  |  Branch (1063:21): [True: 0, False: 694]
  ------------------
 1064|      0|                    alg_enc &= ca_list[j]->algorithm_enc;
 1065|      0|                    if (!alg_enc) {
  ------------------
  |  Branch (1065:25): [True: 0, False: 0]
  ------------------
 1066|      0|                        found = 0;
 1067|      0|                        break;
 1068|      0|                    }
 1069|    694|                } else {
 1070|    694|                    alg_enc = ca_list[j]->algorithm_enc;
 1071|    694|                }
 1072|    694|            }
 1073|       |
 1074|  1.04k|            if (ca_list[j]->algorithm_mac) {
  ------------------
  |  Branch (1074:17): [True: 0, False: 1.04k]
  ------------------
 1075|      0|                if (alg_mac) {
  ------------------
  |  Branch (1075:21): [True: 0, False: 0]
  ------------------
 1076|      0|                    alg_mac &= ca_list[j]->algorithm_mac;
 1077|      0|                    if (!alg_mac) {
  ------------------
  |  Branch (1077:25): [True: 0, False: 0]
  ------------------
 1078|      0|                        found = 0;
 1079|      0|                        break;
 1080|      0|                    }
 1081|      0|                } else {
 1082|      0|                    alg_mac = ca_list[j]->algorithm_mac;
 1083|      0|                }
 1084|      0|            }
 1085|       |
 1086|  1.04k|            if (ca_list[j]->algo_strength & SSL_STRONG_MASK) {
  ------------------
  |  |  249|  1.04k|#define SSL_STRONG_MASK 0x0000001FU
  ------------------
  |  Branch (1086:17): [True: 0, False: 1.04k]
  ------------------
 1087|      0|                if (algo_strength & SSL_STRONG_MASK) {
  ------------------
  |  |  249|      0|#define SSL_STRONG_MASK 0x0000001FU
  ------------------
  |  Branch (1087:21): [True: 0, False: 0]
  ------------------
 1088|      0|                    algo_strength &= (ca_list[j]->algo_strength & SSL_STRONG_MASK) | ~SSL_STRONG_MASK;
  ------------------
  |  |  249|      0|#define SSL_STRONG_MASK 0x0000001FU
  ------------------
                                  algo_strength &= (ca_list[j]->algo_strength & SSL_STRONG_MASK) | ~SSL_STRONG_MASK;
  ------------------
  |  |  249|      0|#define SSL_STRONG_MASK 0x0000001FU
  ------------------
 1089|      0|                    if (!(algo_strength & SSL_STRONG_MASK)) {
  ------------------
  |  |  249|      0|#define SSL_STRONG_MASK 0x0000001FU
  ------------------
  |  Branch (1089:25): [True: 0, False: 0]
  ------------------
 1090|      0|                        found = 0;
 1091|      0|                        break;
 1092|      0|                    }
 1093|      0|                } else {
 1094|      0|                    algo_strength = ca_list[j]->algo_strength & SSL_STRONG_MASK;
  ------------------
  |  |  249|      0|#define SSL_STRONG_MASK 0x0000001FU
  ------------------
 1095|      0|                }
 1096|      0|            }
 1097|       |
 1098|  1.04k|            if (ca_list[j]->algo_strength & SSL_DEFAULT_MASK) {
  ------------------
  |  |  250|  1.04k|#define SSL_DEFAULT_MASK 0X00000020U
  ------------------
  |  Branch (1098:17): [True: 347, False: 694]
  ------------------
 1099|    347|                if (algo_strength & SSL_DEFAULT_MASK) {
  ------------------
  |  |  250|    347|#define SSL_DEFAULT_MASK 0X00000020U
  ------------------
  |  Branch (1099:21): [True: 0, False: 347]
  ------------------
 1100|      0|                    algo_strength &= (ca_list[j]->algo_strength & SSL_DEFAULT_MASK) | ~SSL_DEFAULT_MASK;
  ------------------
  |  |  250|      0|#define SSL_DEFAULT_MASK 0X00000020U
  ------------------
                                  algo_strength &= (ca_list[j]->algo_strength & SSL_DEFAULT_MASK) | ~SSL_DEFAULT_MASK;
  ------------------
  |  |  250|      0|#define SSL_DEFAULT_MASK 0X00000020U
  ------------------
 1101|      0|                    if (!(algo_strength & SSL_DEFAULT_MASK)) {
  ------------------
  |  |  250|      0|#define SSL_DEFAULT_MASK 0X00000020U
  ------------------
  |  Branch (1101:25): [True: 0, False: 0]
  ------------------
 1102|      0|                        found = 0;
 1103|      0|                        break;
 1104|      0|                    }
 1105|    347|                } else {
 1106|    347|                    algo_strength |= ca_list[j]->algo_strength & SSL_DEFAULT_MASK;
  ------------------
  |  |  250|    347|#define SSL_DEFAULT_MASK 0X00000020U
  ------------------
 1107|    347|                }
 1108|    347|            }
 1109|       |
 1110|  1.04k|            if (ca_list[j]->valid) {
  ------------------
  |  Branch (1110:17): [True: 0, False: 1.04k]
  ------------------
 1111|       |                /*
 1112|       |                 * explicit ciphersuite found; its protocol version does not
 1113|       |                 * become part of the search pattern!
 1114|       |                 */
 1115|       |
 1116|      0|                cipher_id = ca_list[j]->id;
 1117|  1.04k|            } else {
 1118|       |                /*
 1119|       |                 * not an explicit ciphersuite; only in this case, the
 1120|       |                 * protocol version is considered part of the search pattern
 1121|       |                 */
 1122|       |
 1123|  1.04k|                if (ca_list[j]->min_tls) {
  ------------------
  |  Branch (1123:21): [True: 0, False: 1.04k]
  ------------------
 1124|      0|                    if (min_tls != 0 && min_tls != ca_list[j]->min_tls) {
  ------------------
  |  Branch (1124:25): [True: 0, False: 0]
  |  Branch (1124:41): [True: 0, False: 0]
  ------------------
 1125|      0|                        found = 0;
 1126|      0|                        break;
 1127|      0|                    } else {
 1128|      0|                        min_tls = ca_list[j]->min_tls;
 1129|      0|                    }
 1130|      0|                }
 1131|  1.04k|            }
 1132|       |
 1133|  1.04k|            if (!multi)
  ------------------
  |  Branch (1133:17): [True: 1.04k, False: 0]
  ------------------
 1134|  1.04k|                break;
 1135|  1.04k|        }
 1136|       |
 1137|       |        /*
 1138|       |         * Ok, we have the rule, now apply it
 1139|       |         */
 1140|  1.04k|        if (rule == CIPHER_SPECIAL) { /* special command */
  ------------------
  |  |  145|  1.04k|#define CIPHER_SPECIAL 5
  ------------------
  |  Branch (1140:13): [True: 0, False: 1.04k]
  ------------------
 1141|      0|            ok = 0;
 1142|      0|            if ((buflen == 8) && HAS_CASE_PREFIX(buf, "STRENGTH")) {
  ------------------
  |  |   63|      0|#define HAS_CASE_PREFIX(s, p) (OPENSSL_strncasecmp(s, p "", sizeof(p) - 1) == 0)
  |  |  ------------------
  |  |  |  Branch (63:31): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1142:17): [True: 0, False: 0]
  ------------------
 1143|      0|                ok = ssl_cipher_strength_sort(head_p, tail_p);
 1144|      0|            } else if (buflen == 10
  ------------------
  |  Branch (1144:24): [True: 0, False: 0]
  ------------------
 1145|      0|                && CHECK_AND_SKIP_CASE_PREFIX(buf, "SECLEVEL=")) {
  ------------------
  |  |   66|      0|    (HAS_CASE_PREFIX(str, pre) ? ((str) += sizeof(pre) - 1, 1) : 0)
  |  |  ------------------
  |  |  |  |   63|      0|#define HAS_CASE_PREFIX(s, p) (OPENSSL_strncasecmp(s, p "", sizeof(p) - 1) == 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (63:31): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (66:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1146|      0|                int level = *buf - '0';
 1147|      0|                if (level < 0 || level > 5) {
  ------------------
  |  Branch (1147:21): [True: 0, False: 0]
  |  Branch (1147:34): [True: 0, False: 0]
  ------------------
 1148|      0|                    ERR_raise(ERR_LIB_SSL, SSL_R_INVALID_COMMAND);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1149|      0|                } else {
 1150|      0|                    c->sec_level = level;
 1151|      0|                    ok = 1;
 1152|      0|                }
 1153|      0|            } else {
 1154|      0|                ERR_raise(ERR_LIB_SSL, SSL_R_INVALID_COMMAND);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1155|      0|            }
 1156|      0|            if (ok == 0)
  ------------------
  |  Branch (1156:17): [True: 0, False: 0]
  ------------------
 1157|      0|                retval = 0;
 1158|       |            /*
 1159|       |             * We do not support any "multi" options
 1160|       |             * together with "@", so throw away the
 1161|       |             * rest of the command, if any left, until
 1162|       |             * end or ':' is found.
 1163|       |             */
 1164|      0|            while ((*l != '\0') && !ITEM_SEP(*l))
  ------------------
  |  |  570|      0|    (((a) == ':') || ((a) == ' ') || ((a) == ';') || ((a) == ','))
  |  |  ------------------
  |  |  |  Branch (570:6): [True: 0, False: 0]
  |  |  |  Branch (570:22): [True: 0, False: 0]
  |  |  |  Branch (570:38): [True: 0, False: 0]
  |  |  |  Branch (570:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1164:20): [True: 0, False: 0]
  ------------------
 1165|      0|                l++;
 1166|  1.04k|        } else if (found) {
  ------------------
  |  Branch (1166:20): [True: 1.04k, False: 0]
  ------------------
 1167|  1.04k|            ssl_cipher_apply_rule(cipher_id,
 1168|  1.04k|                alg_mkey, alg_auth, alg_enc, alg_mac,
 1169|  1.04k|                min_tls, algo_strength, rule, -1, head_p,
 1170|  1.04k|                tail_p);
 1171|  1.04k|        } else {
 1172|      0|            while ((*l != '\0') && !ITEM_SEP(*l))
  ------------------
  |  |  570|      0|    (((a) == ':') || ((a) == ' ') || ((a) == ';') || ((a) == ','))
  |  |  ------------------
  |  |  |  Branch (570:6): [True: 0, False: 0]
  |  |  |  Branch (570:22): [True: 0, False: 0]
  |  |  |  Branch (570:38): [True: 0, False: 0]
  |  |  |  Branch (570:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1172:20): [True: 0, False: 0]
  ------------------
 1173|      0|                l++;
 1174|      0|        }
 1175|  1.04k|        if (*l == '\0')
  ------------------
  |  Branch (1175:13): [True: 347, False: 694]
  ------------------
 1176|    347|            break; /* done */
 1177|  1.04k|    }
 1178|       |
 1179|    347|    return retval;
 1180|    347|}
ssl_ciph.c:update_cipher_list_by_id:
 1289|    347|{
 1290|    347|    STACK_OF(SSL_CIPHER) *tmp_cipher_list = sk_SSL_CIPHER_dup(cipherstack);
  ------------------
  |  |   33|    347|#define STACK_OF(type) struct stack_st_##type
  ------------------
                  STACK_OF(SSL_CIPHER) *tmp_cipher_list = sk_SSL_CIPHER_dup(cipherstack);
  ------------------
  |  | 1050|    347|#define sk_SSL_CIPHER_dup(sk) ((STACK_OF(SSL_CIPHER) *)OPENSSL_sk_dup(ossl_check_const_SSL_CIPHER_sk_type(sk)))
  ------------------
 1291|       |
 1292|    347|    if (tmp_cipher_list == NULL) {
  ------------------
  |  Branch (1292:9): [True: 0, False: 347]
  ------------------
 1293|      0|        return 0;
 1294|      0|    }
 1295|       |
 1296|    347|    sk_SSL_CIPHER_free(*cipher_list_by_id);
  ------------------
  |  | 1034|    347|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1297|    347|    *cipher_list_by_id = tmp_cipher_list;
 1298|       |
 1299|    347|    (void)sk_SSL_CIPHER_set_cmp_func(*cipher_list_by_id, ssl_cipher_ptr_id_cmp);
  ------------------
  |  | 1052|    347|#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)))
  ------------------
 1300|    347|    sk_SSL_CIPHER_sort(*cipher_list_by_id);
  ------------------
  |  | 1048|    347|#define sk_SSL_CIPHER_sort(sk) OPENSSL_sk_sort(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1301|       |
 1302|    347|    return 1;
 1303|    347|}

SSL_CONF_CTX_free:
 1115|    347|{
 1116|    347|    if (cctx) {
  ------------------
  |  Branch (1116:9): [True: 0, False: 347]
  ------------------
 1117|      0|        free_cert_filename(cctx);
 1118|      0|        OPENSSL_free(cctx->prefix);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#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);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1121|      0|    }
 1122|    347|}

OPENSSL_init_ssl:
   47|    691|{
   48|    691|    static int stoperrset = 0;
   49|       |
   50|    691|    if (stopped) {
  ------------------
  |  Branch (50:9): [True: 0, False: 691]
  ------------------
   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);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   59|      0|        }
   60|      0|        return 0;
   61|      0|    }
   62|       |
   63|    691|    opts |= OPENSSL_INIT_ADD_ALL_CIPHERS
  ------------------
  |  |  507|    691|#define OPENSSL_INIT_ADD_ALL_CIPHERS 0x00000004L
  ------------------
   64|    691|        | OPENSSL_INIT_ADD_ALL_DIGESTS;
  ------------------
  |  |  508|    691|#define OPENSSL_INIT_ADD_ALL_DIGESTS 0x00000008L
  ------------------
   65|    691|#ifndef OPENSSL_NO_AUTOLOAD_CONFIG
   66|    691|    if ((opts & OPENSSL_INIT_NO_LOAD_CONFIG) == 0)
  ------------------
  |  |  512|    691|#define OPENSSL_INIT_NO_LOAD_CONFIG 0x00000080L
  ------------------
  |  Branch (66:9): [True: 691, False: 0]
  ------------------
   67|    691|        opts |= OPENSSL_INIT_LOAD_CONFIG;
  ------------------
  |  |  511|    691|#define OPENSSL_INIT_LOAD_CONFIG 0x00000040L
  ------------------
   68|    691|#endif
   69|       |
   70|    691|    if (!OPENSSL_init_crypto(opts, settings))
  ------------------
  |  Branch (70:9): [True: 0, False: 691]
  ------------------
   71|      0|        return 0;
   72|       |
   73|    691|    if (!RUN_ONCE(&ssl_base, ossl_init_ssl_base))
  ------------------
  |  |  130|    691|    (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
  |  |  ------------------
  |  |  |  Branch (130:6): [True: 691, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (73:9): [True: 0, False: 691]
  ------------------
   74|      0|        return 0;
   75|       |
   76|    691|    return 1;
   77|    691|}
ssl_init.c:ossl_init_ssl_base:
   25|      2|{
   26|      2|#ifndef OPENSSL_NO_COMP
   27|      2|    OSSL_TRACE(INIT, "ossl_init_ssl_base: "
  ------------------
  |  |  288|      2|    OSSL_TRACEV(category, (trc_out, "%s", text))
  |  |  ------------------
  |  |  |  |  283|      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");
  ------------------
  |  |  288|      2|    OSSL_TRACEV(category, (trc_out, "%s", text))
  |  |  ------------------
  |  |  |  |  283|      2|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  ------------------
  ------------------
   37|      2|    ssl_base_inited = 1;
   38|      2|    return 1;
   39|      2|}

SSL_clear:
  561|    342|{
  562|    342|    if (s->method == NULL) {
  ------------------
  |  Branch (562:9): [True: 0, False: 342]
  ------------------
  563|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_NO_METHOD_SPECIFIED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  564|      0|        return 0;
  565|      0|    }
  566|       |
  567|    342|    return s->method->ssl_reset(s);
  568|    342|}
ossl_ssl_connection_reset:
  571|    689|{
  572|    689|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|    689|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|    689|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 689]
  |  |  |  |  ------------------
  |  |  |  |   33|    689|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|    689|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 689, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    689|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    689|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1231:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
  573|       |
  574|    689|    if (sc == NULL)
  ------------------
  |  Branch (574:9): [True: 0, False: 689]
  ------------------
  575|      0|        return 0;
  576|       |
  577|    689|    if (ssl_clear_bad_session(sc)) {
  ------------------
  |  Branch (577:9): [True: 0, False: 689]
  ------------------
  578|      0|        SSL_SESSION_free(sc->session);
  579|      0|        sc->session = NULL;
  580|      0|    }
  581|    689|    SSL_SESSION_free(sc->psksession);
  582|    689|    sc->psksession = NULL;
  583|    689|    OPENSSL_free(sc->psksession_id);
  ------------------
  |  |  132|    689|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  584|    689|    sc->psksession_id = NULL;
  585|    689|    sc->psksession_id_len = 0;
  586|    689|    sc->hello_retry_request = SSL_HRR_NONE;
  587|    689|    sc->sent_tickets = 0;
  588|       |
  589|    689|    sc->error = 0;
  590|    689|    sc->hit = 0;
  591|    689|    sc->shutdown = 0;
  592|       |
  593|    689|    if (sc->renegotiate) {
  ------------------
  |  Branch (593:9): [True: 0, False: 689]
  ------------------
  594|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  595|      0|        return 0;
  596|      0|    }
  597|       |
  598|    689|    ossl_statem_clear(sc);
  599|       |
  600|    689|    sc->version = s->method->version;
  601|    689|    sc->client_version = sc->version;
  602|    689|    sc->rwstate = SSL_NOTHING;
  ------------------
  |  |  955|    689|#define SSL_NOTHING 1
  ------------------
  603|       |
  604|    689|    BUF_MEM_free(sc->init_buf);
  605|    689|    sc->init_buf = NULL;
  606|    689|    sc->first_packet = 0;
  607|       |
  608|    689|    sc->key_update = SSL_KEY_UPDATE_NONE;
  ------------------
  |  | 1071|    689|#define SSL_KEY_UPDATE_NONE -1
  ------------------
  609|    689|    memset(sc->ext.compress_certificate_from_peer, 0,
  610|    689|        sizeof(sc->ext.compress_certificate_from_peer));
  611|    689|    sc->ext.compress_certificate_sent = 0;
  612|       |
  613|    689|    EVP_MD_CTX_free(sc->pha_dgst);
  614|    689|    sc->pha_dgst = NULL;
  615|       |
  616|       |    /* Reset DANE verification result state */
  617|    689|    sc->dane.mdpth = -1;
  618|    689|    sc->dane.pdpth = -1;
  619|    689|    X509_free(sc->dane.mcert);
  620|    689|    sc->dane.mcert = NULL;
  621|    689|    sc->dane.mtlsa = NULL;
  622|       |
  623|       |    /* Clear the verification result peername */
  624|    689|    X509_VERIFY_PARAM_move_peername(sc->param, NULL);
  625|       |
  626|       |    /* Clear any shared connection state */
  627|    689|    OPENSSL_free(sc->shared_sigalgs);
  ------------------
  |  |  132|    689|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  628|    689|    sc->shared_sigalgs = NULL;
  629|    689|    sc->shared_sigalgslen = 0;
  630|       |
  631|       |    /*
  632|       |     * Check to see if we were changed into a different method, if so, revert
  633|       |     * back.
  634|       |     */
  635|    689|    if (s->method != s->defltmeth) {
  ------------------
  |  Branch (635:9): [True: 0, False: 689]
  ------------------
  636|      0|        s->method->ssl_deinit(s);
  637|      0|        s->method = s->defltmeth;
  638|      0|        if (!s->method->ssl_init(s))
  ------------------
  |  Branch (638:13): [True: 0, False: 0]
  ------------------
  639|      0|            return 0;
  640|    689|    } else {
  641|    689|        if (!s->method->ssl_clear(s))
  ------------------
  |  Branch (641:13): [True: 0, False: 689]
  ------------------
  642|      0|            return 0;
  643|    689|    }
  644|       |
  645|    689|    ossl_quic_tls_clear(sc->qtls);
  646|       |
  647|    689|    if (!RECORD_LAYER_reset(&sc->rlayer))
  ------------------
  |  Branch (647:9): [True: 0, False: 689]
  ------------------
  648|      0|        return 0;
  649|       |
  650|    689|    return 1;
  651|    689|}
SSL_new:
  684|    347|{
  685|    347|    if (ctx == NULL) {
  ------------------
  |  Branch (685:9): [True: 0, False: 347]
  ------------------
  686|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_NULL_SSL_CTX);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  687|      0|        return NULL;
  688|      0|    }
  689|    347|    if (ctx->method == NULL) {
  ------------------
  |  Branch (689:9): [True: 0, False: 347]
  ------------------
  690|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_SSL_CTX_HAS_NO_DEFAULT_SSL_VERSION);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  691|      0|        return NULL;
  692|      0|    }
  693|    347|    return ctx->method->ssl_new(ctx);
  694|    347|}
ossl_ssl_init:
  697|    347|{
  698|    347|    if (!SSL_CTX_up_ref(ctx))
  ------------------
  |  Branch (698:9): [True: 0, False: 347]
  ------------------
  699|      0|        return 0;
  700|       |
  701|    347|    ssl->lock = CRYPTO_THREAD_lock_new();
  702|       |
  703|    347|    if (ssl->lock == NULL || !CRYPTO_NEW_REF(&ssl->references, 1))
  ------------------
  |  Branch (703:9): [True: 0, False: 347]
  |  Branch (703:30): [True: 0, False: 347]
  ------------------
  704|      0|        goto err;
  705|       |
  706|    347|    if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_SSL, ssl, &ssl->ex_data)) {
  ------------------
  |  |  251|    347|#define CRYPTO_EX_INDEX_SSL 0
  ------------------
  |  Branch (706:9): [True: 0, False: 347]
  ------------------
  707|      0|        CRYPTO_FREE_REF(&ssl->references);
  708|      0|        goto err;
  709|      0|    }
  710|       |
  711|    347|    ssl->ctx = ctx;
  712|    347|    ssl->type = type;
  713|    347|    ssl->defltmeth = ssl->method = method;
  714|       |
  715|    347|    return 1;
  716|       |
  717|      0|err:
  718|      0|    CRYPTO_THREAD_lock_free(ssl->lock);
  719|       |    ssl->lock = NULL;
  720|      0|    SSL_CTX_free(ctx);
  721|      0|    return 0;
  722|    347|}
ossl_ssl_connection_new_int:
  726|    347|{
  727|    347|    SSL_CONNECTION *s;
  728|    347|    SSL *ssl;
  729|       |
  730|    347|    s = OPENSSL_zalloc(sizeof(*s));
  ------------------
  |  |  109|    347|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  731|    347|    if (s == NULL)
  ------------------
  |  Branch (731:9): [True: 0, False: 347]
  ------------------
  732|      0|        return NULL;
  733|       |
  734|    347|    ssl = &s->ssl;
  735|    347|    s->user_ssl = (user_ssl == NULL) ? ssl : user_ssl;
  ------------------
  |  Branch (735:19): [True: 347, False: 0]
  ------------------
  736|       |
  737|    347|    if (!ossl_ssl_init(ssl, ctx, method, SSL_TYPE_SSL_CONNECTION)) {
  ------------------
  |  | 1225|    347|#define SSL_TYPE_SSL_CONNECTION 0
  ------------------
  |  Branch (737:9): [True: 0, False: 347]
  ------------------
  738|      0|        OPENSSL_free(s);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  739|      0|        s = NULL;
  740|      0|        ssl = NULL;
  741|      0|        goto sslerr;
  742|      0|    }
  743|       |
  744|    347|    RECORD_LAYER_init(&s->rlayer, s);
  745|       |
  746|    347|    s->options = ctx->options;
  747|       |
  748|    347|    s->dane.flags = ctx->dane.flags;
  749|    347|    if (method->version == ctx->method->version) {
  ------------------
  |  Branch (749:9): [True: 347, False: 0]
  ------------------
  750|    347|        s->min_proto_version = ctx->min_proto_version;
  751|    347|        s->max_proto_version = ctx->max_proto_version;
  752|    347|    }
  753|       |
  754|    347|    s->mode = ctx->mode;
  755|    347|    s->max_cert_list = ctx->max_cert_list;
  756|    347|    s->max_early_data = ctx->max_early_data;
  757|    347|    s->recv_max_early_data = ctx->recv_max_early_data;
  758|       |
  759|    347|    s->num_tickets = ctx->num_tickets;
  760|    347|    s->pha_enabled = ctx->pha_enabled;
  761|       |
  762|       |    /* Shallow copy of the ciphersuites stack */
  763|    347|    s->tls13_ciphersuites = sk_SSL_CIPHER_dup(ctx->tls13_ciphersuites);
  ------------------
  |  | 1050|    347|#define sk_SSL_CIPHER_dup(sk) ((STACK_OF(SSL_CIPHER) *)OPENSSL_sk_dup(ossl_check_const_SSL_CIPHER_sk_type(sk)))
  ------------------
  764|    347|    if (s->tls13_ciphersuites == NULL)
  ------------------
  |  Branch (764:9): [True: 0, False: 347]
  ------------------
  765|      0|        goto cerr;
  766|       |
  767|       |    /*
  768|       |     * Earlier library versions used to copy the pointer to the CERT, not
  769|       |     * its contents; only when setting new parameters for the per-SSL
  770|       |     * copy, ssl_cert_new would be called (and the direct reference to
  771|       |     * the per-SSL_CTX settings would be lost, but those still were
  772|       |     * indirectly accessed for various purposes, and for that reason they
  773|       |     * used to be known as s->ctx->default_cert). Now we don't look at the
  774|       |     * SSL_CTX's CERT after having duplicated it once.
  775|       |     */
  776|    347|    s->cert = ssl_cert_dup(ctx->cert);
  777|    347|    if (s->cert == NULL)
  ------------------
  |  Branch (777:9): [True: 0, False: 347]
  ------------------
  778|      0|        goto sslerr;
  779|       |
  780|    347|    RECORD_LAYER_set_read_ahead(&s->rlayer, ctx->read_ahead);
  ------------------
  |  |  134|    347|#define RECORD_LAYER_set_read_ahead(rl, ra) ((rl)->read_ahead = (ra))
  ------------------
  781|    347|    s->msg_callback = ctx->msg_callback;
  782|    347|    s->msg_callback_arg = ctx->msg_callback_arg;
  783|    347|    s->verify_mode = ctx->verify_mode;
  784|    347|    s->not_resumable_session_cb = ctx->not_resumable_session_cb;
  785|    347|    s->rlayer.record_padding_cb = ctx->record_padding_cb;
  786|    347|    s->rlayer.record_padding_arg = ctx->record_padding_arg;
  787|    347|    s->rlayer.block_padding = ctx->block_padding;
  788|    347|    s->rlayer.hs_padding = ctx->hs_padding;
  789|    347|    s->sid_ctx_length = ctx->sid_ctx_length;
  790|    347|    if (!ossl_assert(s->sid_ctx_length <= sizeof(s->sid_ctx)))
  ------------------
  |  |   52|    347|#define ossl_assert(x) ossl_assert_int((x) != 0, "Assertion failed: " #x, \
  |  |   53|    347|    __FILE__, __LINE__)
  ------------------
  |  Branch (790:9): [True: 0, False: 347]
  ------------------
  791|      0|        goto err;
  792|    347|    memcpy(&s->sid_ctx, &ctx->sid_ctx, sizeof(s->sid_ctx));
  793|    347|    s->verify_callback = ctx->default_verify_callback;
  794|    347|    s->generate_session_id = ctx->generate_session_id;
  795|       |
  796|    347|    s->param = X509_VERIFY_PARAM_new();
  797|    347|    if (s->param == NULL)
  ------------------
  |  Branch (797:9): [True: 0, False: 347]
  ------------------
  798|      0|        goto asn1err;
  799|    347|    X509_VERIFY_PARAM_inherit(s->param, ctx->param);
  800|    347|    s->quiet_shutdown = IS_QUIC_CTX(ctx) ? 0 : ctx->quiet_shutdown;
  ------------------
  |  |   54|    347|#define IS_QUIC_CTX(ctx) IS_QUIC_METHOD((ctx)->method)
  |  |  ------------------
  |  |  |  |   52|    347|    ((m) == OSSL_QUIC_client_method() || (m) == OSSL_QUIC_client_thread_method() || (m) == OSSL_QUIC_server_method() || (m) == OSSL_QUIC_method())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (52:6): [True: 0, False: 347]
  |  |  |  |  |  Branch (52:42): [True: 0, False: 347]
  |  |  |  |  |  Branch (52:85): [True: 0, False: 347]
  |  |  |  |  |  Branch (52:121): [True: 0, False: 347]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  801|       |
  802|    347|    if (!IS_QUIC_CTX(ctx))
  ------------------
  |  |   54|    347|#define IS_QUIC_CTX(ctx) IS_QUIC_METHOD((ctx)->method)
  |  |  ------------------
  |  |  |  |   52|    347|    ((m) == OSSL_QUIC_client_method() || (m) == OSSL_QUIC_client_thread_method() || (m) == OSSL_QUIC_server_method() || (m) == OSSL_QUIC_method())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (52:6): [True: 0, False: 347]
  |  |  |  |  |  Branch (52:42): [True: 0, False: 347]
  |  |  |  |  |  Branch (52:85): [True: 0, False: 347]
  |  |  |  |  |  Branch (52:121): [True: 0, False: 347]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  803|    347|        s->ext.max_fragment_len_mode = ctx->ext.max_fragment_len_mode;
  804|       |
  805|    347|    s->max_send_fragment = ctx->max_send_fragment;
  806|    347|    s->split_send_fragment = ctx->split_send_fragment;
  807|    347|    s->max_pipelines = ctx->max_pipelines;
  808|    347|    s->rlayer.default_read_buf_len = ctx->default_read_buf_len;
  809|       |
  810|    347|    s->ext.debug_cb = 0;
  811|    347|    s->ext.debug_arg = NULL;
  812|    347|    s->ext.ticket_expected = 0;
  813|    347|    s->ext.status_type = ctx->ext.status_type;
  814|    347|    s->ext.status_expected = 0;
  815|    347|    s->ext.ocsp.ids = NULL;
  816|    347|    s->ext.ocsp.exts = NULL;
  817|    347|    s->ext.ocsp.resp = NULL;
  818|    347|    s->ext.ocsp.resp_len = 0;
  819|    347|    s->ext.ocsp.resp_ex = NULL;
  820|       |
  821|    347|    if (!SSL_CTX_up_ref(ctx))
  ------------------
  |  Branch (821:9): [True: 0, False: 347]
  ------------------
  822|      0|        goto err;
  823|       |
  824|    347|    s->session_ctx = ctx;
  825|    347|    if (ctx->ext.ecpointformats != NULL) {
  ------------------
  |  Branch (825:9): [True: 0, False: 347]
  ------------------
  826|      0|        s->ext.ecpointformats = OPENSSL_memdup(ctx->ext.ecpointformats,
  ------------------
  |  |  134|      0|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  827|      0|            ctx->ext.ecpointformats_len);
  828|      0|        if (s->ext.ecpointformats == NULL) {
  ------------------
  |  Branch (828:13): [True: 0, False: 0]
  ------------------
  829|      0|            s->ext.ecpointformats_len = 0;
  830|      0|            goto err;
  831|      0|        }
  832|      0|        s->ext.ecpointformats_len = ctx->ext.ecpointformats_len;
  833|      0|    }
  834|    347|    if (ctx->ext.supportedgroups != NULL) {
  ------------------
  |  Branch (834:9): [True: 347, False: 0]
  ------------------
  835|    347|        size_t add = 0;
  836|       |
  837|    347|        if (ctx->ext.supportedgroups_len == 0)
  ------------------
  |  Branch (837:13): [True: 0, False: 347]
  ------------------
  838|       |            /* Add 1 so allocation won't fail */
  839|      0|            add = 1;
  840|    347|        s->ext.supportedgroups = OPENSSL_memdup(ctx->ext.supportedgroups,
  ------------------
  |  |  134|    347|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  841|    347|            (ctx->ext.supportedgroups_len + add)
  842|    347|                * sizeof(*ctx->ext.supportedgroups));
  843|    347|        if (s->ext.supportedgroups == NULL) {
  ------------------
  |  Branch (843:13): [True: 0, False: 347]
  ------------------
  844|      0|            s->ext.supportedgroups_len = 0;
  845|      0|            goto err;
  846|      0|        }
  847|    347|        s->ext.supportedgroups_len = ctx->ext.supportedgroups_len;
  848|    347|    }
  849|    347|    if (ctx->ext.keyshares != NULL) {
  ------------------
  |  Branch (849:9): [True: 347, False: 0]
  ------------------
  850|    347|        size_t add = 0;
  851|       |
  852|    347|        if (ctx->ext.keyshares_len == 0)
  ------------------
  |  Branch (852:13): [True: 0, False: 347]
  ------------------
  853|       |            /* Add 1 so allocation won't fail */
  854|      0|            add = 1;
  855|    347|        s->ext.keyshares = OPENSSL_memdup(ctx->ext.keyshares,
  ------------------
  |  |  134|    347|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  856|    347|            (ctx->ext.keyshares_len + add)
  857|    347|                * sizeof(*ctx->ext.keyshares));
  858|    347|        if (s->ext.keyshares == NULL) {
  ------------------
  |  Branch (858:13): [True: 0, False: 347]
  ------------------
  859|      0|            s->ext.keyshares_len = 0;
  860|      0|            goto err;
  861|      0|        }
  862|    347|        s->ext.keyshares_len = ctx->ext.keyshares_len;
  863|    347|    }
  864|    347|    if (ctx->ext.tuples != NULL) {
  ------------------
  |  Branch (864:9): [True: 347, False: 0]
  ------------------
  865|    347|        size_t add = 0;
  866|       |
  867|    347|        if (ctx->ext.tuples_len == 0)
  ------------------
  |  Branch (867:13): [True: 0, False: 347]
  ------------------
  868|       |            /* Add 1 so allocation won't fail */
  869|      0|            add = 1;
  870|    347|        s->ext.tuples = OPENSSL_memdup(ctx->ext.tuples,
  ------------------
  |  |  134|    347|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  871|    347|            (ctx->ext.tuples_len + add)
  872|    347|                * sizeof(*ctx->ext.tuples));
  873|    347|        if (s->ext.tuples == NULL) {
  ------------------
  |  Branch (873:13): [True: 0, False: 347]
  ------------------
  874|      0|            s->ext.tuples_len = 0;
  875|      0|            goto err;
  876|      0|        }
  877|    347|        s->ext.tuples_len = ctx->ext.tuples_len;
  878|    347|    }
  879|       |
  880|    347|#ifndef OPENSSL_NO_NEXTPROTONEG
  881|    347|    s->ext.npn = NULL;
  882|    347|#endif
  883|       |
  884|    347|    if (ctx->ext.alpn != NULL) {
  ------------------
  |  Branch (884:9): [True: 0, False: 347]
  ------------------
  885|      0|        s->ext.alpn = OPENSSL_malloc(ctx->ext.alpn_len);
  ------------------
  |  |  107|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  886|      0|        if (s->ext.alpn == NULL) {
  ------------------
  |  Branch (886:13): [True: 0, False: 0]
  ------------------
  887|      0|            s->ext.alpn_len = 0;
  888|      0|            goto err;
  889|      0|        }
  890|      0|        memcpy(s->ext.alpn, ctx->ext.alpn, ctx->ext.alpn_len);
  891|      0|        s->ext.alpn_len = ctx->ext.alpn_len;
  892|      0|    }
  893|       |
  894|    347|    s->verified_chain = NULL;
  895|    347|    s->verify_result = X509_V_OK;
  ------------------
  |  |  312|    347|#define X509_V_OK 0
  ------------------
  896|       |
  897|    347|    s->default_passwd_callback = ctx->default_passwd_callback;
  898|    347|    s->default_passwd_callback_userdata = ctx->default_passwd_callback_userdata;
  899|       |
  900|    347|    s->key_update = SSL_KEY_UPDATE_NONE;
  ------------------
  |  | 1071|    347|#define SSL_KEY_UPDATE_NONE -1
  ------------------
  901|       |
  902|    347|    if (!IS_QUIC_CTX(ctx)) {
  ------------------
  |  |   54|    347|#define IS_QUIC_CTX(ctx) IS_QUIC_METHOD((ctx)->method)
  |  |  ------------------
  |  |  |  |   52|    347|    ((m) == OSSL_QUIC_client_method() || (m) == OSSL_QUIC_client_thread_method() || (m) == OSSL_QUIC_server_method() || (m) == OSSL_QUIC_method())
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (52:6): [True: 0, False: 347]
  |  |  |  |  |  Branch (52:42): [True: 0, False: 347]
  |  |  |  |  |  Branch (52:85): [True: 0, False: 347]
  |  |  |  |  |  Branch (52:121): [True: 0, False: 347]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  903|    347|        s->allow_early_data_cb = ctx->allow_early_data_cb;
  904|    347|        s->allow_early_data_cb_data = ctx->allow_early_data_cb_data;
  905|    347|    }
  906|       |
  907|    347|    if (!method->ssl_init(ssl))
  ------------------
  |  Branch (907:9): [True: 0, False: 347]
  ------------------
  908|      0|        goto sslerr;
  909|       |
  910|    347|    s->server = (method->ssl_accept == ssl_undefined_function) ? 0 : 1;
  ------------------
  |  Branch (910:17): [True: 347, False: 0]
  ------------------
  911|       |
  912|    347|    if (!method->ssl_reset(ssl))
  ------------------
  |  Branch (912:9): [True: 0, False: 347]
  ------------------
  913|      0|        goto sslerr;
  914|       |
  915|    347|#ifndef OPENSSL_NO_PSK
  916|    347|    s->psk_client_callback = ctx->psk_client_callback;
  917|    347|    s->psk_server_callback = ctx->psk_server_callback;
  918|    347|#endif
  919|    347|    s->psk_find_session_cb = ctx->psk_find_session_cb;
  920|    347|    s->psk_use_session_cb = ctx->psk_use_session_cb;
  921|       |
  922|    347|    s->async_cb = ctx->async_cb;
  923|    347|    s->async_cb_arg = ctx->async_cb_arg;
  924|       |
  925|    347|    s->job = NULL;
  926|       |
  927|       |#ifndef OPENSSL_NO_COMP_ALG
  928|       |    memcpy(s->cert_comp_prefs, ctx->cert_comp_prefs, sizeof(s->cert_comp_prefs));
  929|       |#endif
  930|    347|    if (ctx->client_cert_type != NULL) {
  ------------------
  |  Branch (930:9): [True: 0, False: 347]
  ------------------
  931|      0|        s->client_cert_type = OPENSSL_memdup(ctx->client_cert_type,
  ------------------
  |  |  134|      0|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  932|      0|            ctx->client_cert_type_len);
  933|      0|        if (s->client_cert_type == NULL)
  ------------------
  |  Branch (933:13): [True: 0, False: 0]
  ------------------
  934|      0|            goto sslerr;
  935|      0|        s->client_cert_type_len = ctx->client_cert_type_len;
  936|      0|    }
  937|    347|    if (ctx->server_cert_type != NULL) {
  ------------------
  |  Branch (937:9): [True: 0, False: 347]
  ------------------
  938|      0|        s->server_cert_type = OPENSSL_memdup(ctx->server_cert_type,
  ------------------
  |  |  134|      0|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  939|      0|            ctx->server_cert_type_len);
  940|      0|        if (s->server_cert_type == NULL)
  ------------------
  |  Branch (940:13): [True: 0, False: 0]
  ------------------
  941|      0|            goto sslerr;
  942|      0|        s->server_cert_type_len = ctx->server_cert_type_len;
  943|      0|    }
  944|       |
  945|    347|#ifndef OPENSSL_NO_CT
  946|    347|    if (!SSL_set_ct_validation_callback(ssl, ctx->ct_validation_callback,
  ------------------
  |  Branch (946:9): [True: 0, False: 347]
  ------------------
  947|    347|            ctx->ct_validation_callback_arg))
  948|      0|        goto sslerr;
  949|    347|#endif
  950|       |
  951|    347|#ifndef OPENSSL_NO_ECH
  952|    347|    if (!ossl_ech_conn_init(s, ctx, method))
  ------------------
  |  Branch (952:9): [True: 0, False: 347]
  ------------------
  953|      0|        goto sslerr;
  954|    347|#endif
  955|       |
  956|    347|    s->ssl_pkey_num = SSL_PKEY_NUM + ctx->sigalg_list_len;
  ------------------
  |  |  336|    347|#define SSL_PKEY_NUM 9
  ------------------
  957|    347|    return ssl;
  958|      0|cerr:
  959|      0|    ERR_raise(ERR_LIB_SSL, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  960|      0|    goto err;
  961|      0|asn1err:
  962|      0|    ERR_raise(ERR_LIB_SSL, ERR_R_ASN1_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  963|      0|    goto err;
  964|      0|sslerr:
  965|      0|    ERR_raise(ERR_LIB_SSL, ERR_R_SSL_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  966|      0|err:
  967|      0|    SSL_free(ssl);
  968|       |    return NULL;
  969|      0|}
ossl_ssl_connection_new:
  972|    347|{
  973|       |    return ossl_ssl_connection_new_int(ctx, NULL, ctx->method);
  974|    347|}
SSL_free:
 1470|    347|{
 1471|    347|    int i;
 1472|       |
 1473|    347|    if (s == NULL)
  ------------------
  |  Branch (1473:9): [True: 0, False: 347]
  ------------------
 1474|      0|        return;
 1475|    347|    CRYPTO_DOWN_REF(&s->references, &i);
 1476|    347|    REF_PRINT_COUNT("SSL", i, s);
  ------------------
  |  |  301|    347|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|    347|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  295|    347|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|    347|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1477|    347|    if (i > 0)
  ------------------
  |  Branch (1477:9): [True: 0, False: 347]
  ------------------
 1478|      0|        return;
 1479|    347|    REF_ASSERT_ISNT(i < 0);
  ------------------
  |  |  293|    347|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 347]
  |  |  ------------------
  ------------------
 1480|       |
 1481|    347|    if (s->method != NULL)
  ------------------
  |  Branch (1481:9): [True: 347, False: 0]
  ------------------
 1482|    347|        s->method->ssl_free(s);
 1483|       |
 1484|    347|    CRYPTO_free_ex_data(CRYPTO_EX_INDEX_SSL, s, &s->ex_data);
  ------------------
  |  |  251|    347|#define CRYPTO_EX_INDEX_SSL 0
  ------------------
 1485|    347|    SSL_CTX_free(s->ctx);
 1486|    347|    CRYPTO_THREAD_lock_free(s->lock);
 1487|    347|    CRYPTO_FREE_REF(&s->references);
 1488|       |
 1489|    347|    OPENSSL_free(s);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1490|    347|}
ossl_ssl_connection_free:
 1493|    347|{
 1494|    347|    SSL_CONNECTION *s;
 1495|       |
 1496|    347|    s = SSL_CONNECTION_FROM_SSL_ONLY(ssl);
  ------------------
  |  |   23|    347|    SSL_CONNECTION_FROM_SSL_ONLY_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   17|    347|    ((ssl) == NULL ? NULL                                    \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (17:6): [True: 0, False: 347]
  |  |  |  |  ------------------
  |  |  |  |   18|    347|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|    347|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (18:23): [True: 347, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   19|    347|                             ? (c SSL_CONNECTION *)(ssl)     \
  |  |  |  |   20|    347|                             : NULL))
  |  |  ------------------
  ------------------
 1497|    347|    if (s == NULL)
  ------------------
  |  Branch (1497:9): [True: 0, False: 347]
  ------------------
 1498|      0|        return;
 1499|       |
 1500|       |    /*
 1501|       |     * Ignore return values. This could result in user callbacks being called
 1502|       |     * e.g. for the QUIC TLS record layer. So we do this early before we have
 1503|       |     * freed other things.
 1504|       |     */
 1505|    347|    ssl_free_wbio_buffer(s);
 1506|    347|    RECORD_LAYER_clear(&s->rlayer);
 1507|       |
 1508|    347|    X509_VERIFY_PARAM_free(s->param);
 1509|    347|    dane_final(&s->dane);
 1510|       |
 1511|    347|    BUF_MEM_free(s->init_buf);
 1512|       |
 1513|       |    /* add extra stuff */
 1514|    347|    sk_SSL_CIPHER_free(s->cipher_list);
  ------------------
  |  | 1034|    347|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1515|    347|    sk_SSL_CIPHER_free(s->cipher_list_by_id);
  ------------------
  |  | 1034|    347|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1516|    347|    sk_SSL_CIPHER_free(s->tls13_ciphersuites);
  ------------------
  |  | 1034|    347|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1517|    347|    sk_SSL_CIPHER_free(s->peer_ciphers);
  ------------------
  |  | 1034|    347|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 1518|       |
 1519|       |    /* Make the next call work :-) */
 1520|    347|    if (s->session != NULL) {
  ------------------
  |  Branch (1520:9): [True: 342, False: 5]
  ------------------
 1521|    342|        ssl_clear_bad_session(s);
 1522|    342|        SSL_SESSION_free(s->session);
 1523|    342|    }
 1524|    347|    SSL_SESSION_free(s->psksession);
 1525|    347|    OPENSSL_free(s->psksession_id);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1526|       |
 1527|    347|    ssl_cert_free(s->cert);
 1528|    347|    OPENSSL_free(s->shared_sigalgs);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1529|       |    /* Free up if allocated */
 1530|       |
 1531|    347|    OPENSSL_free(s->ext.hostname);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1532|    347|    SSL_CTX_free(s->session_ctx);
 1533|    347|    OPENSSL_free(s->ext.ecpointformats);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1534|    347|    OPENSSL_free(s->ext.peer_ecpointformats);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1535|    347|    OPENSSL_free(s->ext.supportedgroups);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1536|    347|    OPENSSL_free(s->ext.keyshares);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1537|    347|    OPENSSL_free(s->ext.tuples);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1538|    347|    OPENSSL_free(s->ext.peer_supportedgroups);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1539|    347|    sk_X509_EXTENSION_pop_free(s->ext.ocsp.exts, X509_EXTENSION_free);
  ------------------
  |  |  256|    347|#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))
  ------------------
 1540|       |
 1541|    347|#ifndef OPENSSL_NO_OCSP
 1542|    347|    OPENSSL_free(s->ext.ocsp.resp);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1543|    347|    s->ext.ocsp.resp = NULL;
 1544|    347|    s->ext.ocsp.resp_len = 0;
 1545|       |
 1546|    347|    sk_OCSP_RESPID_pop_free(s->ext.ocsp.ids, OCSP_RESPID_free);
  ------------------
  |  |  180|    347|#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))
  ------------------
 1547|    347|    sk_OCSP_RESPONSE_pop_free(s->ext.ocsp.resp_ex, OCSP_RESPONSE_free);
 1548|    347|    s->ext.ocsp.resp_ex = NULL;
 1549|    347|#endif
 1550|    347|#ifndef OPENSSL_NO_CT
 1551|    347|    SCT_LIST_free(s->scts);
 1552|    347|    OPENSSL_free(s->ext.scts);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1553|    347|#endif
 1554|    347|    OPENSSL_free(s->ext.alpn);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1555|    347|    OPENSSL_free(s->ext.tls13_cookie);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1556|    347|    if (s->clienthello != NULL)
  ------------------
  |  Branch (1556:9): [True: 0, False: 347]
  ------------------
 1557|      0|        OPENSSL_free(s->clienthello->pre_proc_exts);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1558|    347|    OPENSSL_free(s->clienthello);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1559|    347|    OPENSSL_free(s->pha_context);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1560|    347|    EVP_MD_CTX_free(s->pha_dgst);
 1561|       |
 1562|    347|    sk_X509_NAME_pop_free(s->ca_names, X509_NAME_free);
  ------------------
  |  |   70|    347|#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))
  ------------------
 1563|    347|    sk_X509_NAME_pop_free(s->client_ca_names, X509_NAME_free);
  ------------------
  |  |   70|    347|#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))
  ------------------
 1564|       |
 1565|    347|    OPENSSL_free(s->client_cert_type);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1566|    347|    OPENSSL_free(s->server_cert_type);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1567|       |
 1568|    347|    OSSL_STACK_OF_X509_free(s->verified_chain);
 1569|       |
 1570|    347|    if (ssl->method != NULL)
  ------------------
  |  Branch (1570:9): [True: 347, False: 0]
  ------------------
 1571|    347|        ssl->method->ssl_deinit(ssl);
 1572|       |
 1573|    347|    ASYNC_WAIT_CTX_free(s->waitctx);
 1574|       |
 1575|    347|#if !defined(OPENSSL_NO_NEXTPROTONEG)
 1576|    347|    OPENSSL_free(s->ext.npn);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1577|    347|#endif
 1578|       |
 1579|    347|#ifndef OPENSSL_NO_SRTP
 1580|    347|    sk_SRTP_PROTECTION_PROFILE_free(s->srtp_profiles);
  ------------------
  |  |  257|    347|#define sk_SRTP_PROTECTION_PROFILE_free(sk) OPENSSL_sk_free(ossl_check_SRTP_PROTECTION_PROFILE_sk_type(sk))
  ------------------
 1581|    347|#endif
 1582|       |
 1583|       |    /*
 1584|       |     * We do this late. We want to ensure that any other references we held to
 1585|       |     * these BIOs are freed first *before* we call BIO_free_all(), because
 1586|       |     * BIO_free_all() will only free each BIO in the chain if the number of
 1587|       |     * references to the first BIO have dropped to 0
 1588|       |     */
 1589|    347|    BIO_free_all(s->wbio);
 1590|    347|    s->wbio = NULL;
 1591|    347|    BIO_free_all(s->rbio);
 1592|    347|    s->rbio = NULL;
 1593|    347|    OPENSSL_free(s->s3.tmp.valid_flags);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1594|    347|#ifndef OPENSSL_NO_ECH
 1595|    347|    ossl_ech_conn_clear(&s->ext.ech);
 1596|    347|#endif
 1597|    347|}
SSL_set0_rbio:
 1600|    342|{
 1601|    342|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|    342|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|    342|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 342]
  |  |  |  |  ------------------
  |  |  |  |   33|    342|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|    342|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 342, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    342|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    342|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1231:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 1602|       |
 1603|    342|#ifndef OPENSSL_NO_QUIC
 1604|    342|    if (IS_QUIC(s)) {
  ------------------
  |  |   96|    342|    ((ssl) != NULL && SSL_TYPE_IS_QUIC((ssl)->type))
  |  |  ------------------
  |  |  |  | 1231|    342|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1231:29): [True: 0, False: 342]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (96:6): [True: 342, False: 0]
  |  |  ------------------
  ------------------
 1605|      0|        ossl_quic_conn_set0_net_rbio(s, rbio);
 1606|      0|        return;
 1607|      0|    }
 1608|    342|#endif
 1609|       |
 1610|    342|    if (sc == NULL)
  ------------------
  |  Branch (1610:9): [True: 0, False: 342]
  ------------------
 1611|      0|        return;
 1612|       |
 1613|    342|    BIO_free_all(sc->rbio);
 1614|    342|    sc->rbio = rbio;
 1615|    342|    sc->rlayer.rrlmethod->set1_bio(sc->rlayer.rrl, sc->rbio);
 1616|    342|}
SSL_set0_wbio:
 1619|    342|{
 1620|    342|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|    342|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|    342|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 342]
  |  |  |  |  ------------------
  |  |  |  |   33|    342|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|    342|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 342, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    342|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    342|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1231:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 1621|       |
 1622|    342|#ifndef OPENSSL_NO_QUIC
 1623|    342|    if (IS_QUIC(s)) {
  ------------------
  |  |   96|    342|    ((ssl) != NULL && SSL_TYPE_IS_QUIC((ssl)->type))
  |  |  ------------------
  |  |  |  | 1231|    342|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1231:29): [True: 0, False: 342]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (96:6): [True: 342, False: 0]
  |  |  ------------------
  ------------------
 1624|      0|        ossl_quic_conn_set0_net_wbio(s, wbio);
 1625|      0|        return;
 1626|      0|    }
 1627|    342|#endif
 1628|       |
 1629|    342|    if (sc == NULL)
  ------------------
  |  Branch (1629:9): [True: 0, False: 342]
  ------------------
 1630|      0|        return;
 1631|       |
 1632|       |    /*
 1633|       |     * If the output buffering BIO is still in place, remove it
 1634|       |     */
 1635|    342|    if (sc->bbio != NULL)
  ------------------
  |  Branch (1635:9): [True: 0, False: 342]
  ------------------
 1636|      0|        sc->wbio = BIO_pop(sc->wbio);
 1637|       |
 1638|    342|    BIO_free_all(sc->wbio);
 1639|    342|    sc->wbio = wbio;
 1640|       |
 1641|       |    /* Re-attach |bbio| to the new |wbio|. */
 1642|    342|    if (sc->bbio != NULL)
  ------------------
  |  Branch (1642:9): [True: 0, False: 342]
  ------------------
 1643|      0|        sc->wbio = BIO_push(sc->bbio, sc->wbio);
 1644|       |
 1645|    342|    sc->rlayer.wrlmethod->set1_bio(sc->rlayer.wrl, sc->wbio);
 1646|    342|}
SSL_get_rbio:
 1691|  6.51k|{
 1692|  6.51k|    const SSL_CONNECTION *sc = SSL_CONNECTION_FROM_CONST_SSL(s);
  ------------------
  |  |   41|  6.51k|    SSL_CONNECTION_FROM_SSL_int(ssl, const)
  |  |  ------------------
  |  |  |  |   32|  6.51k|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 6.51k]
  |  |  |  |  ------------------
  |  |  |  |   33|  6.51k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|  6.51k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 6.51k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|  6.51k|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|  6.51k|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1231:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 1693|       |
 1694|  6.51k|#ifndef OPENSSL_NO_QUIC
 1695|  6.51k|    if (IS_QUIC(s))
  ------------------
  |  |   96|  6.51k|    ((ssl) != NULL && SSL_TYPE_IS_QUIC((ssl)->type))
  |  |  ------------------
  |  |  |  | 1231|  6.51k|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1231:29): [True: 0, False: 6.51k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (96:6): [True: 6.51k, False: 0]
  |  |  ------------------
  ------------------
 1696|      0|        return ossl_quic_conn_get_net_rbio(s);
 1697|  6.51k|#endif
 1698|       |
 1699|  6.51k|    if (sc == NULL)
  ------------------
  |  Branch (1699:9): [True: 0, False: 6.51k]
  ------------------
 1700|      0|        return NULL;
 1701|       |
 1702|  6.51k|    return sc->rbio;
 1703|  6.51k|}
SSL_connect:
 2306|  6.51k|{
 2307|  6.51k|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|  6.51k|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|  6.51k|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 6.51k]
  |  |  |  |  ------------------
  |  |  |  |   33|  6.51k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|  6.51k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 6.51k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|  6.51k|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|  6.51k|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1231:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 2308|       |
 2309|  6.51k|#ifndef OPENSSL_NO_QUIC
 2310|  6.51k|    if (IS_QUIC(s)) {
  ------------------
  |  |   96|  6.51k|    ((ssl) != NULL && SSL_TYPE_IS_QUIC((ssl)->type))
  |  |  ------------------
  |  |  |  | 1231|  6.51k|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1231:29): [True: 0, False: 6.51k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (96:6): [True: 6.51k, False: 0]
  |  |  ------------------
  ------------------
 2311|      0|        return s->method->ssl_connect(s);
 2312|      0|    }
 2313|  6.51k|#endif
 2314|       |
 2315|  6.51k|    if (sc == NULL)
  ------------------
  |  Branch (2315:9): [True: 0, False: 6.51k]
  ------------------
 2316|      0|        return 0;
 2317|       |
 2318|  6.51k|    if (sc->handshake_func == NULL) {
  ------------------
  |  Branch (2318:9): [True: 0, False: 6.51k]
  ------------------
 2319|       |        /* Not properly initialized yet */
 2320|      0|        SSL_set_connect_state(s);
 2321|      0|    }
 2322|       |
 2323|  6.51k|    return SSL_do_handshake(s);
 2324|  6.51k|}
SSL_ctrl:
 3123|    224|{
 3124|    224|    return ossl_ctrl_internal(s, cmd, larg, parg, /*no_quic=*/0);
 3125|    224|}
ossl_ctrl_internal:
 3128|    224|{
 3129|    224|    long l;
 3130|    224|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|    224|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|    224|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 224]
  |  |  |  |  ------------------
  |  |  |  |   33|    224|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|    224|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 224, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    224|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    224|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1231:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 3131|       |
 3132|       |    /*
 3133|       |     * Routing of ctrl calls for QUIC is a little counterintuitive:
 3134|       |     *
 3135|       |     *   - Firstly (no_quic=0), we pass the ctrl directly to our QUIC
 3136|       |     *     implementation in case it wants to handle the ctrl specially.
 3137|       |     *
 3138|       |     *   - If our QUIC implementation does not care about the ctrl, it
 3139|       |     *     will reenter this function with no_quic=1 and we will try to handle
 3140|       |     *     it directly using the QCSO SSL object stub (not the handshake layer
 3141|       |     *     SSL object). This is important for e.g. the version configuration
 3142|       |     *     ctrls below, which must use s->defltmeth (and not sc->defltmeth).
 3143|       |     *
 3144|       |     *   - If we don't handle a ctrl here specially, then processing is
 3145|       |     *     redirected to the handshake layer SSL object.
 3146|       |     */
 3147|    224|    if (!no_quic && IS_QUIC(s))
  ------------------
  |  |   96|    224|    ((ssl) != NULL && SSL_TYPE_IS_QUIC((ssl)->type))
  |  |  ------------------
  |  |  |  | 1231|    224|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1231:29): [True: 0, False: 224]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (96:6): [True: 224, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (3147:9): [True: 224, False: 0]
  ------------------
 3148|      0|        return s->method->ssl_ctrl(s, cmd, larg, parg);
 3149|       |
 3150|    224|    if (sc == NULL)
  ------------------
  |  Branch (3150:9): [True: 0, False: 224]
  ------------------
 3151|      0|        return 0;
 3152|       |
 3153|    224|    switch (cmd) {
 3154|      0|    case SSL_CTRL_GET_READ_AHEAD:
  ------------------
  |  | 1329|      0|#define SSL_CTRL_GET_READ_AHEAD 40
  ------------------
  |  Branch (3154:5): [True: 0, False: 224]
  ------------------
 3155|      0|        return RECORD_LAYER_get_read_ahead(&sc->rlayer);
  ------------------
  |  |  135|      0|#define RECORD_LAYER_get_read_ahead(rl) ((rl)->read_ahead)
  ------------------
 3156|      0|    case SSL_CTRL_SET_READ_AHEAD:
  ------------------
  |  | 1330|      0|#define SSL_CTRL_SET_READ_AHEAD 41
  ------------------
  |  Branch (3156:5): [True: 0, False: 224]
  ------------------
 3157|      0|        l = RECORD_LAYER_get_read_ahead(&sc->rlayer);
  ------------------
  |  |  135|      0|#define RECORD_LAYER_get_read_ahead(rl) ((rl)->read_ahead)
  ------------------
 3158|      0|        RECORD_LAYER_set_read_ahead(&sc->rlayer, larg);
  ------------------
  |  |  134|      0|#define RECORD_LAYER_set_read_ahead(rl, ra) ((rl)->read_ahead = (ra))
  ------------------
 3159|      0|        return l;
 3160|       |
 3161|      0|    case SSL_CTRL_MODE: {
  ------------------
  |  | 1328|      0|#define SSL_CTRL_MODE 33
  ------------------
  |  Branch (3161:5): [True: 0, False: 224]
  ------------------
 3162|      0|        OSSL_PARAM options[2], *opts = options;
 3163|       |
 3164|      0|        sc->mode |= larg;
 3165|       |
 3166|      0|        *opts++ = OSSL_PARAM_construct_uint32(OSSL_LIBSSL_RECORD_LAYER_PARAM_MODE,
  ------------------
  |  |  339|      0|# define OSSL_LIBSSL_RECORD_LAYER_PARAM_MODE "mode"
  ------------------
 3167|      0|            &sc->mode);
 3168|      0|        *opts = OSSL_PARAM_construct_end();
 3169|       |
 3170|       |        /* Ignore return value */
 3171|      0|        sc->rlayer.rrlmethod->set_options(sc->rlayer.rrl, options);
 3172|       |
 3173|      0|        return sc->mode;
 3174|      0|    }
 3175|      0|    case SSL_CTRL_CLEAR_MODE:
  ------------------
  |  | 1371|      0|#define SSL_CTRL_CLEAR_MODE 78
  ------------------
  |  Branch (3175:5): [True: 0, False: 224]
  ------------------
 3176|      0|        return (sc->mode &= ~larg);
 3177|      0|    case SSL_CTRL_GET_MAX_CERT_LIST:
  ------------------
  |  | 1335|      0|#define SSL_CTRL_GET_MAX_CERT_LIST 50
  ------------------
  |  Branch (3177:5): [True: 0, False: 224]
  ------------------
 3178|      0|        return (long)sc->max_cert_list;
 3179|      0|    case SSL_CTRL_SET_MAX_CERT_LIST:
  ------------------
  |  | 1336|      0|#define SSL_CTRL_SET_MAX_CERT_LIST 51
  ------------------
  |  Branch (3179:5): [True: 0, False: 224]
  ------------------
 3180|      0|        if (larg < 0)
  ------------------
  |  Branch (3180:13): [True: 0, False: 0]
  ------------------
 3181|      0|            return 0;
 3182|      0|        l = (long)sc->max_cert_list;
 3183|      0|        sc->max_cert_list = (size_t)larg;
 3184|      0|        return l;
 3185|      0|    case SSL_CTRL_SET_MAX_SEND_FRAGMENT:
  ------------------
  |  | 1337|      0|#define SSL_CTRL_SET_MAX_SEND_FRAGMENT 52
  ------------------
  |  Branch (3185:5): [True: 0, False: 224]
  ------------------
 3186|      0|        if (larg < 512 || larg > SSL3_RT_MAX_PLAIN_LENGTH)
  ------------------
  |  |  177|      0|#define SSL3_RT_MAX_PLAIN_LENGTH 16384
  ------------------
  |  Branch (3186:13): [True: 0, False: 0]
  |  Branch (3186:27): [True: 0, False: 0]
  ------------------
 3187|      0|            return 0;
 3188|       |#ifndef OPENSSL_NO_KTLS
 3189|       |        if (sc->wbio != NULL && BIO_get_ktls_send(sc->wbio))
 3190|       |            return 0;
 3191|       |#endif /* OPENSSL_NO_KTLS */
 3192|      0|        sc->max_send_fragment = larg;
 3193|      0|        if (sc->max_send_fragment < sc->split_send_fragment)
  ------------------
  |  Branch (3193:13): [True: 0, False: 0]
  ------------------
 3194|      0|            sc->split_send_fragment = sc->max_send_fragment;
 3195|      0|        sc->rlayer.wrlmethod->set_max_frag_len(sc->rlayer.wrl, larg);
 3196|      0|        return 1;
 3197|      0|    case SSL_CTRL_SET_SPLIT_SEND_FRAGMENT:
  ------------------
  |  | 1405|      0|#define SSL_CTRL_SET_SPLIT_SEND_FRAGMENT 125
  ------------------
  |  Branch (3197:5): [True: 0, False: 224]
  ------------------
 3198|      0|        if ((size_t)larg > sc->max_send_fragment || larg == 0)
  ------------------
  |  Branch (3198:13): [True: 0, False: 0]
  |  Branch (3198:53): [True: 0, False: 0]
  ------------------
 3199|      0|            return 0;
 3200|      0|        sc->split_send_fragment = larg;
 3201|      0|        return 1;
 3202|      0|    case SSL_CTRL_SET_MAX_PIPELINES:
  ------------------
  |  | 1406|      0|#define SSL_CTRL_SET_MAX_PIPELINES 126
  ------------------
  |  Branch (3202:5): [True: 0, False: 224]
  ------------------
 3203|      0|        if (larg < 1 || larg > SSL_MAX_PIPELINES)
  ------------------
  |  |   74|      0|#define SSL_MAX_PIPELINES 32
  ------------------
  |  Branch (3203:13): [True: 0, False: 0]
  |  Branch (3203:25): [True: 0, False: 0]
  ------------------
 3204|      0|            return 0;
 3205|      0|        sc->max_pipelines = larg;
 3206|      0|        if (sc->rlayer.rrlmethod->set_max_pipelines != NULL)
  ------------------
  |  Branch (3206:13): [True: 0, False: 0]
  ------------------
 3207|      0|            sc->rlayer.rrlmethod->set_max_pipelines(sc->rlayer.rrl, (size_t)larg);
 3208|      0|        return 1;
 3209|      0|    case SSL_CTRL_GET_RI_SUPPORT:
  ------------------
  |  | 1370|      0|#define SSL_CTRL_GET_RI_SUPPORT 76
  ------------------
  |  Branch (3209:5): [True: 0, False: 224]
  ------------------
 3210|      0|        return sc->s3.send_connection_binding;
 3211|      0|    case SSL_CTRL_SET_RETRY_VERIFY:
  ------------------
  |  | 1416|      0|#define SSL_CTRL_SET_RETRY_VERIFY 136
  ------------------
  |  Branch (3211:5): [True: 0, False: 224]
  ------------------
 3212|      0|        sc->rwstate = SSL_RETRY_VERIFY;
  ------------------
  |  |  962|      0|#define SSL_RETRY_VERIFY 8
  ------------------
 3213|      0|        return 1;
 3214|      0|    case SSL_CTRL_CERT_FLAGS:
  ------------------
  |  | 1383|      0|#define SSL_CTRL_CERT_FLAGS 99
  ------------------
  |  Branch (3214:5): [True: 0, False: 224]
  ------------------
 3215|      0|        return (sc->cert->cert_flags |= larg);
 3216|      0|    case SSL_CTRL_CLEAR_CERT_FLAGS:
  ------------------
  |  | 1384|      0|#define SSL_CTRL_CLEAR_CERT_FLAGS 100
  ------------------
  |  Branch (3216:5): [True: 0, False: 224]
  ------------------
 3217|      0|        return (sc->cert->cert_flags &= ~larg);
 3218|       |
 3219|      0|    case SSL_CTRL_GET_RAW_CIPHERLIST:
  ------------------
  |  | 1394|      0|#define SSL_CTRL_GET_RAW_CIPHERLIST 110
  ------------------
  |  Branch (3219:5): [True: 0, False: 224]
  ------------------
 3220|      0|        if (parg) {
  ------------------
  |  Branch (3220:13): [True: 0, False: 0]
  ------------------
 3221|      0|            if (sc->s3.tmp.ciphers_raw == NULL)
  ------------------
  |  Branch (3221:17): [True: 0, False: 0]
  ------------------
 3222|      0|                return 0;
 3223|      0|            *(unsigned char **)parg = sc->s3.tmp.ciphers_raw;
 3224|      0|            return (int)sc->s3.tmp.ciphers_rawlen;
 3225|      0|        } else {
 3226|      0|            return TLS_CIPHER_LEN;
  ------------------
  |  |  389|      0|#define TLS_CIPHER_LEN 2
  ------------------
 3227|      0|        }
 3228|      0|    case SSL_CTRL_GET_EXTMS_SUPPORT:
  ------------------
  |  | 1402|      0|#define SSL_CTRL_GET_EXTMS_SUPPORT 122
  ------------------
  |  Branch (3228:5): [True: 0, False: 224]
  ------------------
 3229|      0|        if (!sc->session || SSL_in_init(s) || ossl_statem_get_in_handshake(sc))
  ------------------
  |  Branch (3229:13): [True: 0, False: 0]
  |  Branch (3229:29): [True: 0, False: 0]
  |  Branch (3229:47): [True: 0, False: 0]
  ------------------
 3230|      0|            return -1;
 3231|      0|        if (sc->session->flags & SSL_SESS_FLAG_EXTMS)
  ------------------
  |  |  577|      0|#define SSL_SESS_FLAG_EXTMS 0x1
  ------------------
  |  Branch (3231:13): [True: 0, False: 0]
  ------------------
 3232|      0|            return 1;
 3233|      0|        else
 3234|      0|            return 0;
 3235|      0|    case SSL_CTRL_SET_MIN_PROTO_VERSION:
  ------------------
  |  | 1403|      0|#define SSL_CTRL_SET_MIN_PROTO_VERSION 123
  ------------------
  |  Branch (3235:5): [True: 0, False: 224]
  ------------------
 3236|      0|        return ssl_check_allowed_versions(larg, sc->max_proto_version)
  ------------------
  |  Branch (3236:16): [True: 0, False: 0]
  ------------------
 3237|      0|            && ssl_set_version_bound(s->defltmeth->version, (int)larg,
  ------------------
  |  Branch (3237:16): [True: 0, False: 0]
  ------------------
 3238|      0|                &sc->min_proto_version);
 3239|      0|    case SSL_CTRL_GET_MIN_PROTO_VERSION:
  ------------------
  |  | 1410|      0|#define SSL_CTRL_GET_MIN_PROTO_VERSION 130
  ------------------
  |  Branch (3239:5): [True: 0, False: 224]
  ------------------
 3240|      0|        return sc->min_proto_version;
 3241|      0|    case SSL_CTRL_SET_MAX_PROTO_VERSION:
  ------------------
  |  | 1404|      0|#define SSL_CTRL_SET_MAX_PROTO_VERSION 124
  ------------------
  |  Branch (3241:5): [True: 0, False: 224]
  ------------------
 3242|      0|        return ssl_check_allowed_versions(sc->min_proto_version, larg)
  ------------------
  |  Branch (3242:16): [True: 0, False: 0]
  ------------------
 3243|      0|            && ssl_set_version_bound(s->defltmeth->version, (int)larg,
  ------------------
  |  Branch (3243:16): [True: 0, False: 0]
  ------------------
 3244|      0|                &sc->max_proto_version);
 3245|      0|    case SSL_CTRL_GET_MAX_PROTO_VERSION:
  ------------------
  |  | 1411|      0|#define SSL_CTRL_GET_MAX_PROTO_VERSION 131
  ------------------
  |  Branch (3245:5): [True: 0, False: 224]
  ------------------
 3246|      0|        return sc->max_proto_version;
 3247|    224|    default:
  ------------------
  |  Branch (3247:5): [True: 224, False: 0]
  ------------------
 3248|    224|        if (IS_QUIC(s))
  ------------------
  |  |   96|    224|    ((ssl) != NULL && SSL_TYPE_IS_QUIC((ssl)->type))
  |  |  ------------------
  |  |  |  | 1231|    224|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1231:29): [True: 0, False: 224]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (96:6): [True: 224, False: 0]
  |  |  ------------------
  ------------------
 3249|      0|            return SSL_ctrl((SSL *)sc, cmd, larg, parg);
 3250|    224|        else
 3251|    224|            return s->method->ssl_ctrl(s, cmd, larg, parg);
 3252|    224|    }
 3253|    224|}
SSL_CTX_ctrl:
 3277|  2.08k|{
 3278|  2.08k|    long l;
 3279|       |
 3280|       |    /* For some cases with ctx == NULL or larg == 1 perform syntax checks */
 3281|  2.08k|    if (cmd == SSL_CTRL_SET_GROUPS_LIST && larg == 1)
  ------------------
  |  | 1379|  4.16k|#define SSL_CTRL_SET_GROUPS_LIST 92
  ------------------
  |  Branch (3281:9): [True: 347, False: 1.73k]
  |  Branch (3281:44): [True: 0, False: 347]
  ------------------
 3282|      0|        return tls1_set_groups_list(ctx, NULL, NULL, NULL, NULL, NULL, NULL, parg);
 3283|  2.08k|    if (ctx == NULL) {
  ------------------
  |  Branch (3283:9): [True: 0, False: 2.08k]
  ------------------
 3284|      0|        switch (cmd) {
 3285|      0|        case SSL_CTRL_SET_SIGALGS_LIST:
  ------------------
  |  | 1382|      0|#define SSL_CTRL_SET_SIGALGS_LIST 98
  ------------------
  |  Branch (3285:9): [True: 0, False: 0]
  ------------------
 3286|      0|        case SSL_CTRL_SET_CLIENT_SIGALGS_LIST:
  ------------------
  |  | 1386|      0|#define SSL_CTRL_SET_CLIENT_SIGALGS_LIST 102
  ------------------
  |  Branch (3286:9): [True: 0, False: 0]
  ------------------
 3287|      0|            return tls1_set_sigalgs_list(ctx, NULL, parg, 0);
 3288|      0|        default:
  ------------------
  |  Branch (3288:9): [True: 0, False: 0]
  ------------------
 3289|      0|            return 0;
 3290|      0|        }
 3291|      0|    }
 3292|       |
 3293|  2.08k|    switch (cmd) {
 3294|      0|    case SSL_CTRL_GET_READ_AHEAD:
  ------------------
  |  | 1329|      0|#define SSL_CTRL_GET_READ_AHEAD 40
  ------------------
  |  Branch (3294:5): [True: 0, False: 2.08k]
  ------------------
 3295|      0|        return ctx->read_ahead;
 3296|    347|    case SSL_CTRL_SET_READ_AHEAD:
  ------------------
  |  | 1330|    347|#define SSL_CTRL_SET_READ_AHEAD 41
  ------------------
  |  Branch (3296:5): [True: 347, False: 1.73k]
  ------------------
 3297|    347|        l = ctx->read_ahead;
 3298|    347|        ctx->read_ahead = larg;
 3299|    347|        return l;
 3300|       |
 3301|      0|    case SSL_CTRL_SET_MSG_CALLBACK_ARG:
  ------------------
  |  | 1312|      0|#define SSL_CTRL_SET_MSG_CALLBACK_ARG 16
  ------------------
  |  Branch (3301:5): [True: 0, False: 2.08k]
  ------------------
 3302|      0|        ctx->msg_callback_arg = parg;
 3303|      0|        return 1;
 3304|       |
 3305|      0|    case SSL_CTRL_GET_MAX_CERT_LIST:
  ------------------
  |  | 1335|      0|#define SSL_CTRL_GET_MAX_CERT_LIST 50
  ------------------
  |  Branch (3305:5): [True: 0, False: 2.08k]
  ------------------
 3306|      0|        return (long)ctx->max_cert_list;
 3307|      0|    case SSL_CTRL_SET_MAX_CERT_LIST:
  ------------------
  |  | 1336|      0|#define SSL_CTRL_SET_MAX_CERT_LIST 51
  ------------------
  |  Branch (3307:5): [True: 0, False: 2.08k]
  ------------------
 3308|      0|        if (larg < 0)
  ------------------
  |  Branch (3308:13): [True: 0, False: 0]
  ------------------
 3309|      0|            return 0;
 3310|      0|        l = (long)ctx->max_cert_list;
 3311|      0|        ctx->max_cert_list = (size_t)larg;
 3312|      0|        return l;
 3313|       |
 3314|      0|    case SSL_CTRL_SET_SESS_CACHE_SIZE:
  ------------------
  |  | 1331|      0|#define SSL_CTRL_SET_SESS_CACHE_SIZE 42
  ------------------
  |  Branch (3314:5): [True: 0, False: 2.08k]
  ------------------
 3315|      0|        if (larg < 0)
  ------------------
  |  Branch (3315:13): [True: 0, False: 0]
  ------------------
 3316|      0|            return 0;
 3317|      0|        l = (long)ctx->session_cache_size;
 3318|      0|        ctx->session_cache_size = (size_t)larg;
 3319|      0|        return l;
 3320|      0|    case SSL_CTRL_GET_SESS_CACHE_SIZE:
  ------------------
  |  | 1332|      0|#define SSL_CTRL_GET_SESS_CACHE_SIZE 43
  ------------------
  |  Branch (3320:5): [True: 0, False: 2.08k]
  ------------------
 3321|      0|        return (long)ctx->session_cache_size;
 3322|    347|    case SSL_CTRL_SET_SESS_CACHE_MODE:
  ------------------
  |  | 1333|    347|#define SSL_CTRL_SET_SESS_CACHE_MODE 44
  ------------------
  |  Branch (3322:5): [True: 347, False: 1.73k]
  ------------------
 3323|    347|        l = ctx->session_cache_mode;
 3324|    347|        ctx->session_cache_mode = larg;
 3325|    347|        return l;
 3326|      0|    case SSL_CTRL_GET_SESS_CACHE_MODE:
  ------------------
  |  | 1334|      0|#define SSL_CTRL_GET_SESS_CACHE_MODE 45
  ------------------
  |  Branch (3326:5): [True: 0, False: 2.08k]
  ------------------
 3327|      0|        return ctx->session_cache_mode;
 3328|       |
 3329|      0|    case SSL_CTRL_SESS_NUMBER:
  ------------------
  |  | 1316|      0|#define SSL_CTRL_SESS_NUMBER 20
  ------------------
  |  Branch (3329:5): [True: 0, False: 2.08k]
  ------------------
 3330|      0|        return lh_SSL_SESSION_num_items(ctx->sessions);
 3331|      0|    case SSL_CTRL_SESS_CONNECT:
  ------------------
  |  | 1317|      0|#define SSL_CTRL_SESS_CONNECT 21
  ------------------
  |  Branch (3331:5): [True: 0, False: 2.08k]
  ------------------
 3332|      0|        return ssl_tsan_load(ctx, &ctx->stats.sess_connect);
 3333|      0|    case SSL_CTRL_SESS_CONNECT_GOOD:
  ------------------
  |  | 1318|      0|#define SSL_CTRL_SESS_CONNECT_GOOD 22
  ------------------
  |  Branch (3333:5): [True: 0, False: 2.08k]
  ------------------
 3334|      0|        return ssl_tsan_load(ctx, &ctx->stats.sess_connect_good);
 3335|      0|    case SSL_CTRL_SESS_CONNECT_RENEGOTIATE:
  ------------------
  |  | 1319|      0|#define SSL_CTRL_SESS_CONNECT_RENEGOTIATE 23
  ------------------
  |  Branch (3335:5): [True: 0, False: 2.08k]
  ------------------
 3336|      0|        return ssl_tsan_load(ctx, &ctx->stats.sess_connect_renegotiate);
 3337|      0|    case SSL_CTRL_SESS_ACCEPT:
  ------------------
  |  | 1320|      0|#define SSL_CTRL_SESS_ACCEPT 24
  ------------------
  |  Branch (3337:5): [True: 0, False: 2.08k]
  ------------------
 3338|      0|        return ssl_tsan_load(ctx, &ctx->stats.sess_accept);
 3339|      0|    case SSL_CTRL_SESS_ACCEPT_GOOD:
  ------------------
  |  | 1321|      0|#define SSL_CTRL_SESS_ACCEPT_GOOD 25
  ------------------
  |  Branch (3339:5): [True: 0, False: 2.08k]
  ------------------
 3340|      0|        return ssl_tsan_load(ctx, &ctx->stats.sess_accept_good);
 3341|      0|    case SSL_CTRL_SESS_ACCEPT_RENEGOTIATE:
  ------------------
  |  | 1322|      0|#define SSL_CTRL_SESS_ACCEPT_RENEGOTIATE 26
  ------------------
  |  Branch (3341:5): [True: 0, False: 2.08k]
  ------------------
 3342|      0|        return ssl_tsan_load(ctx, &ctx->stats.sess_accept_renegotiate);
 3343|      0|    case SSL_CTRL_SESS_HIT:
  ------------------
  |  | 1323|      0|#define SSL_CTRL_SESS_HIT 27
  ------------------
  |  Branch (3343:5): [True: 0, False: 2.08k]
  ------------------
 3344|      0|        return ssl_tsan_load(ctx, &ctx->stats.sess_hit);
 3345|      0|    case SSL_CTRL_SESS_CB_HIT:
  ------------------
  |  | 1324|      0|#define SSL_CTRL_SESS_CB_HIT 28
  ------------------
  |  Branch (3345:5): [True: 0, False: 2.08k]
  ------------------
 3346|      0|        return ssl_tsan_load(ctx, &ctx->stats.sess_cb_hit);
 3347|      0|    case SSL_CTRL_SESS_MISSES:
  ------------------
  |  | 1325|      0|#define SSL_CTRL_SESS_MISSES 29
  ------------------
  |  Branch (3347:5): [True: 0, False: 2.08k]
  ------------------
 3348|      0|        return ssl_tsan_load(ctx, &ctx->stats.sess_miss);
 3349|      0|    case SSL_CTRL_SESS_TIMEOUTS:
  ------------------
  |  | 1326|      0|#define SSL_CTRL_SESS_TIMEOUTS 30
  ------------------
  |  Branch (3349:5): [True: 0, False: 2.08k]
  ------------------
 3350|      0|        return ssl_tsan_load(ctx, &ctx->stats.sess_timeout);
 3351|      0|    case SSL_CTRL_SESS_CACHE_FULL:
  ------------------
  |  | 1327|      0|#define SSL_CTRL_SESS_CACHE_FULL 31
  ------------------
  |  Branch (3351:5): [True: 0, False: 2.08k]
  ------------------
 3352|      0|        return ssl_tsan_load(ctx, &ctx->stats.sess_cache_full);
 3353|    347|    case SSL_CTRL_MODE:
  ------------------
  |  | 1328|    347|#define SSL_CTRL_MODE 33
  ------------------
  |  Branch (3353:5): [True: 347, False: 1.73k]
  ------------------
 3354|    347|        return (ctx->mode |= larg);
 3355|      0|    case SSL_CTRL_CLEAR_MODE:
  ------------------
  |  | 1371|      0|#define SSL_CTRL_CLEAR_MODE 78
  ------------------
  |  Branch (3355:5): [True: 0, False: 2.08k]
  ------------------
 3356|      0|        return (ctx->mode &= ~larg);
 3357|      0|    case SSL_CTRL_SET_MAX_SEND_FRAGMENT:
  ------------------
  |  | 1337|      0|#define SSL_CTRL_SET_MAX_SEND_FRAGMENT 52
  ------------------
  |  Branch (3357:5): [True: 0, False: 2.08k]
  ------------------
 3358|      0|        if (larg < 512 || larg > SSL3_RT_MAX_PLAIN_LENGTH)
  ------------------
  |  |  177|      0|#define SSL3_RT_MAX_PLAIN_LENGTH 16384
  ------------------
  |  Branch (3358:13): [True: 0, False: 0]
  |  Branch (3358:27): [True: 0, False: 0]
  ------------------
 3359|      0|            return 0;
 3360|      0|        ctx->max_send_fragment = larg;
 3361|      0|        if (ctx->max_send_fragment < ctx->split_send_fragment)
  ------------------
  |  Branch (3361:13): [True: 0, False: 0]
  ------------------
 3362|      0|            ctx->split_send_fragment = ctx->max_send_fragment;
 3363|      0|        return 1;
 3364|      0|    case SSL_CTRL_SET_SPLIT_SEND_FRAGMENT:
  ------------------
  |  | 1405|      0|#define SSL_CTRL_SET_SPLIT_SEND_FRAGMENT 125
  ------------------
  |  Branch (3364:5): [True: 0, False: 2.08k]
  ------------------
 3365|      0|        if ((size_t)larg > ctx->max_send_fragment || larg == 0)
  ------------------
  |  Branch (3365:13): [True: 0, False: 0]
  |  Branch (3365:54): [True: 0, False: 0]
  ------------------
 3366|      0|            return 0;
 3367|      0|        ctx->split_send_fragment = larg;
 3368|      0|        return 1;
 3369|      0|    case SSL_CTRL_SET_MAX_PIPELINES:
  ------------------
  |  | 1406|      0|#define SSL_CTRL_SET_MAX_PIPELINES 126
  ------------------
  |  Branch (3369:5): [True: 0, False: 2.08k]
  ------------------
 3370|      0|        if (larg < 1 || larg > SSL_MAX_PIPELINES)
  ------------------
  |  |   74|      0|#define SSL_MAX_PIPELINES 32
  ------------------
  |  Branch (3370:13): [True: 0, False: 0]
  |  Branch (3370:25): [True: 0, False: 0]
  ------------------
 3371|      0|            return 0;
 3372|      0|        ctx->max_pipelines = larg;
 3373|      0|        return 1;
 3374|      0|    case SSL_CTRL_CERT_FLAGS:
  ------------------
  |  | 1383|      0|#define SSL_CTRL_CERT_FLAGS 99
  ------------------
  |  Branch (3374:5): [True: 0, False: 2.08k]
  ------------------
 3375|      0|        return (ctx->cert->cert_flags |= larg);
 3376|      0|    case SSL_CTRL_CLEAR_CERT_FLAGS:
  ------------------
  |  | 1384|      0|#define SSL_CTRL_CLEAR_CERT_FLAGS 100
  ------------------
  |  Branch (3376:5): [True: 0, False: 2.08k]
  ------------------
 3377|      0|        return (ctx->cert->cert_flags &= ~larg);
 3378|    347|    case SSL_CTRL_SET_MIN_PROTO_VERSION:
  ------------------
  |  | 1403|    347|#define SSL_CTRL_SET_MIN_PROTO_VERSION 123
  ------------------
  |  Branch (3378:5): [True: 347, False: 1.73k]
  ------------------
 3379|    347|        return ssl_check_allowed_versions(larg, ctx->max_proto_version)
  ------------------
  |  Branch (3379:16): [True: 347, False: 0]
  ------------------
 3380|    347|            && ssl_set_version_bound(ctx->method->version, (int)larg,
  ------------------
  |  Branch (3380:16): [True: 347, False: 0]
  ------------------
 3381|    347|                &ctx->min_proto_version);
 3382|      0|    case SSL_CTRL_GET_MIN_PROTO_VERSION:
  ------------------
  |  | 1410|      0|#define SSL_CTRL_GET_MIN_PROTO_VERSION 130
  ------------------
  |  Branch (3382:5): [True: 0, False: 2.08k]
  ------------------
 3383|      0|        return ctx->min_proto_version;
 3384|    347|    case SSL_CTRL_SET_MAX_PROTO_VERSION:
  ------------------
  |  | 1404|    347|#define SSL_CTRL_SET_MAX_PROTO_VERSION 124
  ------------------
  |  Branch (3384:5): [True: 347, False: 1.73k]
  ------------------
 3385|    347|        return ssl_check_allowed_versions(ctx->min_proto_version, larg)
  ------------------
  |  Branch (3385:16): [True: 347, False: 0]
  ------------------
 3386|    347|            && ssl_set_version_bound(ctx->method->version, (int)larg,
  ------------------
  |  Branch (3386:16): [True: 347, False: 0]
  ------------------
 3387|    347|                &ctx->max_proto_version);
 3388|      0|    case SSL_CTRL_GET_MAX_PROTO_VERSION:
  ------------------
  |  | 1411|      0|#define SSL_CTRL_GET_MAX_PROTO_VERSION 131
  ------------------
  |  Branch (3388:5): [True: 0, False: 2.08k]
  ------------------
 3389|      0|        return ctx->max_proto_version;
 3390|    347|    default:
  ------------------
  |  Branch (3390:5): [True: 347, False: 1.73k]
  ------------------
 3391|    347|        return ctx->method->ssl_ctx_ctrl(ctx, cmd, larg, parg);
 3392|  2.08k|    }
 3393|  2.08k|}
ssl_cipher_ptr_id_cmp:
 3420|  92.6k|{
 3421|  92.6k|    if ((*ap)->id > (*bp)->id)
  ------------------
  |  Branch (3421:9): [True: 52.0k, False: 40.5k]
  ------------------
 3422|  52.0k|        return 1;
 3423|  40.5k|    if ((*ap)->id < (*bp)->id)
  ------------------
  |  Branch (3423:9): [True: 40.5k, False: 0]
  ------------------
 3424|  40.5k|        return -1;
 3425|      0|    return 0;
 3426|  40.5k|}
SSL_get_ciphers:
 3433|  1.36k|{
 3434|  1.36k|    const SSL_CONNECTION *sc = SSL_CONNECTION_FROM_CONST_SSL(s);
  ------------------
  |  |   41|  1.36k|    SSL_CONNECTION_FROM_SSL_int(ssl, const)
  |  |  ------------------
  |  |  |  |   32|  1.36k|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 1.36k]
  |  |  |  |  ------------------
  |  |  |  |   33|  1.36k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|  1.36k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 1.36k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|  1.36k|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|  1.36k|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1231:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 3435|       |
 3436|  1.36k|    if (sc != NULL) {
  ------------------
  |  Branch (3436:9): [True: 1.36k, False: 0]
  ------------------
 3437|  1.36k|        if (sc->cipher_list != NULL) {
  ------------------
  |  Branch (3437:13): [True: 0, False: 1.36k]
  ------------------
 3438|      0|            return sc->cipher_list;
 3439|  1.36k|        } else if ((s->ctx != NULL) && (s->ctx->cipher_list != NULL)) {
  ------------------
  |  Branch (3439:20): [True: 1.36k, False: 0]
  |  Branch (3439:40): [True: 1.36k, False: 0]
  ------------------
 3440|  1.36k|            return s->ctx->cipher_list;
 3441|  1.36k|        }
 3442|  1.36k|    }
 3443|      0|    return NULL;
 3444|  1.36k|}
SSL_get1_supported_ciphers:
 3456|  1.02k|{
 3457|  1.02k|    STACK_OF(SSL_CIPHER) *sk = NULL, *ciphers;
  ------------------
  |  |   33|  1.02k|#define STACK_OF(type) struct stack_st_##type
  ------------------
 3458|  1.02k|    int i;
 3459|  1.02k|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|  1.02k|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|  1.02k|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 1.02k]
  |  |  |  |  ------------------
  |  |  |  |   33|  1.02k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|  1.02k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 1.02k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|  1.02k|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|  1.02k|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1231:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 3460|       |
 3461|  1.02k|    if (sc == NULL)
  ------------------
  |  Branch (3461:9): [True: 0, False: 1.02k]
  ------------------
 3462|      0|        return NULL;
 3463|       |
 3464|  1.02k|    ciphers = SSL_get_ciphers(s);
 3465|  1.02k|    if (!ciphers)
  ------------------
  |  Branch (3465:9): [True: 0, False: 1.02k]
  ------------------
 3466|      0|        return NULL;
 3467|  1.02k|    if (!ssl_set_client_disabled(sc))
  ------------------
  |  Branch (3467:9): [True: 0, False: 1.02k]
  ------------------
 3468|      0|        return NULL;
 3469|  62.5k|    for (i = 0; i < sk_SSL_CIPHER_num(ciphers); i++) {
  ------------------
  |  | 1028|  62.5k|#define sk_SSL_CIPHER_num(sk) OPENSSL_sk_num(ossl_check_const_SSL_CIPHER_sk_type(sk))
  ------------------
  |  Branch (3469:17): [True: 61.5k, False: 1.02k]
  ------------------
 3470|  61.5k|        const SSL_CIPHER *c = sk_SSL_CIPHER_value(ciphers, i);
  ------------------
  |  | 1029|  61.5k|#define sk_SSL_CIPHER_value(sk, idx) ((const SSL_CIPHER *)OPENSSL_sk_value(ossl_check_const_SSL_CIPHER_sk_type(sk), (idx)))
  ------------------
 3471|  61.5k|        if (!ssl_cipher_disabled(sc, c, SSL_SECOP_CIPHER_SUPPORTED, 0)) {
  ------------------
  |  | 2743|  61.5k|#define SSL_SECOP_CIPHER_SUPPORTED (1 | SSL_SECOP_OTHER_CIPHER)
  |  |  ------------------
  |  |  |  | 2729|  61.5k|#define SSL_SECOP_OTHER_CIPHER (1 << 16)
  |  |  ------------------
  ------------------
  |  Branch (3471:13): [True: 30.7k, False: 30.7k]
  ------------------
 3472|  30.7k|            if (!sk)
  ------------------
  |  Branch (3472:17): [True: 1.02k, False: 29.7k]
  ------------------
 3473|  1.02k|                sk = sk_SSL_CIPHER_new_null();
  ------------------
  |  | 1031|  1.02k|#define sk_SSL_CIPHER_new_null() ((STACK_OF(SSL_CIPHER) *)OPENSSL_sk_set_thunks(OPENSSL_sk_new_null(), sk_SSL_CIPHER_freefunc_thunk))
  ------------------
 3474|  30.7k|            if (!sk)
  ------------------
  |  Branch (3474:17): [True: 0, False: 30.7k]
  ------------------
 3475|      0|                return NULL;
 3476|  30.7k|            if (!sk_SSL_CIPHER_push(sk, c)) {
  ------------------
  |  | 1038|  30.7k|#define sk_SSL_CIPHER_push(sk, ptr) OPENSSL_sk_push(ossl_check_SSL_CIPHER_sk_type(sk), ossl_check_SSL_CIPHER_type(ptr))
  ------------------
  |  Branch (3476:17): [True: 0, False: 30.7k]
  ------------------
 3477|      0|                sk_SSL_CIPHER_free(sk);
  ------------------
  |  | 1034|      0|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 3478|      0|                return NULL;
 3479|      0|            }
 3480|  30.7k|        }
 3481|  61.5k|    }
 3482|  1.02k|    return sk;
 3483|  1.02k|}
SSL_CTX_new_ex:
 4211|    347|{
 4212|    347|    SSL_CTX *ret = NULL;
 4213|       |#ifndef OPENSSL_NO_SSLKEYLOG
 4214|       |    const char *keylogfile = ossl_safe_getenv("SSLKEYLOGFILE");
 4215|       |#endif
 4216|       |#ifndef OPENSSL_NO_COMP_ALG
 4217|       |    int i;
 4218|       |#endif
 4219|       |
 4220|    347|    if (meth == NULL) {
  ------------------
  |  Branch (4220:9): [True: 0, False: 347]
  ------------------
 4221|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_NULL_SSL_METHOD_PASSED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4222|      0|        return NULL;
 4223|      0|    }
 4224|       |
 4225|    347|    if (!OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS, NULL))
  ------------------
  |  | 2813|    347|#define OPENSSL_INIT_LOAD_SSL_STRINGS 0x00200000L
  ------------------
  |  Branch (4225:9): [True: 0, False: 347]
  ------------------
 4226|      0|        return NULL;
 4227|       |
 4228|       |    /* Doing this for the run once effect */
 4229|    347|    if (SSL_get_ex_data_X509_STORE_CTX_idx() < 0) {
  ------------------
  |  Branch (4229:9): [True: 0, False: 347]
  ------------------
 4230|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_X509_VERIFICATION_SETUP_PROBLEMS);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4231|      0|        goto err;
 4232|      0|    }
 4233|       |
 4234|    347|    ret = OPENSSL_zalloc(sizeof(*ret));
  ------------------
  |  |  109|    347|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4235|    347|    if (ret == NULL)
  ------------------
  |  Branch (4235:9): [True: 0, False: 347]
  ------------------
 4236|      0|        return NULL;
 4237|       |
 4238|       |    /* Init the reference counting before any call to SSL_CTX_free */
 4239|    347|    if (!CRYPTO_NEW_REF(&ret->references, 1)) {
  ------------------
  |  Branch (4239:9): [True: 0, False: 347]
  ------------------
 4240|      0|        OPENSSL_free(ret);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4241|      0|        return NULL;
 4242|      0|    }
 4243|       |
 4244|    347|    ret->lock = CRYPTO_THREAD_lock_new();
 4245|    347|    if (ret->lock == NULL) {
  ------------------
  |  Branch (4245:9): [True: 0, False: 347]
  ------------------
 4246|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4247|      0|        goto err;
 4248|      0|    }
 4249|       |
 4250|       |#ifdef TSAN_REQUIRES_LOCKING
 4251|       |    ret->tsan_lock = CRYPTO_THREAD_lock_new();
 4252|       |    if (ret->tsan_lock == NULL) {
 4253|       |        ERR_raise(ERR_LIB_SSL, ERR_R_CRYPTO_LIB);
 4254|       |        goto err;
 4255|       |    }
 4256|       |#endif
 4257|       |
 4258|    347|    ret->libctx = libctx;
 4259|    347|    if (propq != NULL) {
  ------------------
  |  Branch (4259:9): [True: 0, False: 347]
  ------------------
 4260|      0|        ret->propq = OPENSSL_strdup(propq);
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4261|      0|        if (ret->propq == NULL)
  ------------------
  |  Branch (4261:13): [True: 0, False: 0]
  ------------------
 4262|      0|            goto err;
 4263|      0|    }
 4264|       |
 4265|    347|    ret->method = meth;
 4266|    347|    ret->min_proto_version = 0;
 4267|    347|    ret->max_proto_version = 0;
 4268|    347|    ret->mode = SSL_MODE_AUTO_RETRY;
  ------------------
  |  |  530|    347|#define SSL_MODE_AUTO_RETRY 0x00000004U
  ------------------
 4269|    347|    ret->session_cache_mode = SSL_SESS_CACHE_SERVER;
  ------------------
  |  |  735|    347|#define SSL_SESS_CACHE_SERVER 0x0002
  ------------------
 4270|    347|    ret->session_cache_size = SSL_SESSION_CACHE_MAX_SIZE_DEFAULT;
  ------------------
  |  |  716|    347|#define SSL_SESSION_CACHE_MAX_SIZE_DEFAULT (1024 * 20)
  ------------------
 4271|       |    /* We take the system default. */
 4272|    347|    ret->session_timeout = meth->get_timeout();
 4273|    347|    ret->max_cert_list = SSL_MAX_CERT_LIST_DEFAULT;
  ------------------
  |  |  714|    347|#define SSL_MAX_CERT_LIST_DEFAULT (1024 * 100)
  ------------------
 4274|    347|    ret->verify_mode = SSL_VERIFY_NONE;
  ------------------
  |  | 1200|    347|#define SSL_VERIFY_NONE 0x00
  ------------------
 4275|       |
 4276|    347|    ret->sessions = lh_SSL_SESSION_new(ssl_session_hash, ssl_session_cmp);
 4277|    347|    if (ret->sessions == NULL) {
  ------------------
  |  Branch (4277:9): [True: 0, False: 347]
  ------------------
 4278|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4279|      0|        goto err;
 4280|      0|    }
 4281|    347|    ret->cert_store = X509_STORE_new();
 4282|    347|    if (ret->cert_store == NULL) {
  ------------------
  |  Branch (4282:9): [True: 0, False: 347]
  ------------------
 4283|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_X509_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4284|      0|        goto err;
 4285|      0|    }
 4286|    347|#ifndef OPENSSL_NO_CT
 4287|    347|    ret->ctlog_store = CTLOG_STORE_new_ex(libctx, propq);
 4288|    347|    if (ret->ctlog_store == NULL) {
  ------------------
  |  Branch (4288:9): [True: 0, False: 347]
  ------------------
 4289|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_CT_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4290|      0|        goto err;
 4291|      0|    }
 4292|    347|#endif
 4293|       |
 4294|       |    /* initialize cipher/digest methods table */
 4295|    347|    if (!ssl_load_ciphers(ret)) {
  ------------------
  |  Branch (4295:9): [True: 0, False: 347]
  ------------------
 4296|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_SSL_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4297|      0|        goto err;
 4298|      0|    }
 4299|       |
 4300|    347|    if (!ssl_load_groups(ret)) {
  ------------------
  |  Branch (4300:9): [True: 0, False: 347]
  ------------------
 4301|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_SSL_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4302|      0|        goto err;
 4303|      0|    }
 4304|       |
 4305|       |    /* load provider sigalgs */
 4306|    347|    if (!ssl_load_sigalgs(ret)) {
  ------------------
  |  Branch (4306:9): [True: 0, False: 347]
  ------------------
 4307|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_SSL_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4308|      0|        goto err;
 4309|      0|    }
 4310|       |
 4311|       |    /* initialise sig algs */
 4312|    347|    if (!ssl_setup_sigalgs(ret)) {
  ------------------
  |  Branch (4312:9): [True: 0, False: 347]
  ------------------
 4313|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_SSL_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4314|      0|        goto err;
 4315|      0|    }
 4316|       |
 4317|    347|    if (!SSL_CTX_set_ciphersuites(ret, OSSL_default_ciphersuites())) {
  ------------------
  |  Branch (4317:9): [True: 0, False: 347]
  ------------------
 4318|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_SSL_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4319|      0|        goto err;
 4320|      0|    }
 4321|       |
 4322|    347|    if ((ret->cert = ssl_cert_new(SSL_PKEY_NUM + ret->sigalg_list_len)) == NULL) {
  ------------------
  |  |  336|    347|#define SSL_PKEY_NUM 9
  ------------------
  |  Branch (4322:9): [True: 0, False: 347]
  ------------------
 4323|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_SSL_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4324|      0|        goto err;
 4325|      0|    }
 4326|       |
 4327|    347|    if (!ssl_create_cipher_list(ret,
  ------------------
  |  Branch (4327:9): [True: 0, False: 347]
  ------------------
 4328|    347|            ret->tls13_ciphersuites,
 4329|    347|            &ret->cipher_list, &ret->cipher_list_by_id,
 4330|    347|            OSSL_default_cipher_list(), ret->cert)
 4331|    347|        || sk_SSL_CIPHER_num(ret->cipher_list) <= 0) {
  ------------------
  |  | 1028|    347|#define sk_SSL_CIPHER_num(sk) OPENSSL_sk_num(ossl_check_const_SSL_CIPHER_sk_type(sk))
  ------------------
  |  Branch (4331:12): [True: 0, False: 347]
  ------------------
 4332|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_LIBRARY_HAS_NO_CIPHERS);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4333|      0|        goto err;
 4334|      0|    }
 4335|       |
 4336|    347|    ret->param = X509_VERIFY_PARAM_new();
 4337|    347|    if (ret->param == NULL) {
  ------------------
  |  Branch (4337:9): [True: 0, False: 347]
  ------------------
 4338|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_X509_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4339|      0|        goto err;
 4340|      0|    }
 4341|       |
 4342|       |    /*
 4343|       |     * If these aren't available from the provider we'll get NULL returns.
 4344|       |     * That's fine but will cause errors later if SSLv3 is negotiated
 4345|       |     */
 4346|    347|    ERR_set_mark();
 4347|    347|    ret->md5 = EVP_MD_fetch(libctx, "MD5", propq);
 4348|    347|    ret->sha1 = EVP_MD_fetch(libctx, "SHA1", propq);
 4349|    347|    ERR_pop_to_mark();
 4350|       |
 4351|    347|    if ((ret->ca_names = sk_X509_NAME_new_null()) == NULL) {
  ------------------
  |  |   59|    347|#define sk_X509_NAME_new_null() ((STACK_OF(X509_NAME) *)OPENSSL_sk_set_thunks(OPENSSL_sk_new_null(), sk_X509_NAME_freefunc_thunk))
  ------------------
  |  Branch (4351:9): [True: 0, False: 347]
  ------------------
 4352|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4353|      0|        goto err;
 4354|      0|    }
 4355|       |
 4356|    347|    if ((ret->client_ca_names = sk_X509_NAME_new_null()) == NULL) {
  ------------------
  |  |   59|    347|#define sk_X509_NAME_new_null() ((STACK_OF(X509_NAME) *)OPENSSL_sk_set_thunks(OPENSSL_sk_new_null(), sk_X509_NAME_freefunc_thunk))
  ------------------
  |  Branch (4356:9): [True: 0, False: 347]
  ------------------
 4357|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4358|      0|        goto err;
 4359|      0|    }
 4360|       |
 4361|    347|    if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_SSL_CTX, ret, &ret->ex_data)) {
  ------------------
  |  |  252|    347|#define CRYPTO_EX_INDEX_SSL_CTX 1
  ------------------
  |  Branch (4361:9): [True: 0, False: 347]
  ------------------
 4362|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_CRYPTO_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4363|      0|        goto err;
 4364|      0|    }
 4365|       |
 4366|    347|    if ((ret->ext.secure = OPENSSL_secure_zalloc(sizeof(*ret->ext.secure))) == NULL)
  ------------------
  |  |  142|    347|    CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  |  Branch (4366:9): [True: 0, False: 347]
  ------------------
 4367|      0|        goto err;
 4368|       |
 4369|       |    /* No compression for DTLS */
 4370|    347|    if (!(meth->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS))
  ------------------
  |  | 2196|    347|#define SSL_ENC_FLAG_DTLS 0x8
  ------------------
  |  Branch (4370:9): [True: 347, False: 0]
  ------------------
 4371|    347|        ret->comp_methods = SSL_COMP_get_compression_methods();
 4372|       |
 4373|    347|    ret->max_send_fragment = SSL3_RT_MAX_PLAIN_LENGTH;
  ------------------
  |  |  177|    347|#define SSL3_RT_MAX_PLAIN_LENGTH 16384
  ------------------
 4374|    347|    ret->split_send_fragment = SSL3_RT_MAX_PLAIN_LENGTH;
  ------------------
  |  |  177|    347|#define SSL3_RT_MAX_PLAIN_LENGTH 16384
  ------------------
 4375|       |
 4376|       |    /* Setup RFC5077 ticket keys */
 4377|    347|    if ((RAND_bytes_ex(libctx, ret->ext.tick_key_name,
  ------------------
  |  Branch (4377:9): [True: 0, False: 347]
  ------------------
 4378|    347|             sizeof(ret->ext.tick_key_name), 0)
 4379|    347|            <= 0)
 4380|    347|        || (RAND_priv_bytes_ex(libctx, ret->ext.secure->tick_hmac_key,
  ------------------
  |  Branch (4380:12): [True: 0, False: 347]
  ------------------
 4381|    347|                sizeof(ret->ext.secure->tick_hmac_key), 0)
 4382|    347|            <= 0)
 4383|    347|        || (RAND_priv_bytes_ex(libctx, ret->ext.secure->tick_aes_key,
  ------------------
  |  Branch (4383:12): [True: 0, False: 347]
  ------------------
 4384|    347|                sizeof(ret->ext.secure->tick_aes_key), 0)
 4385|    347|            <= 0))
 4386|      0|        ret->options |= SSL_OP_NO_TICKET;
  ------------------
  |  |  384|      0|#define SSL_OP_NO_TICKET SSL_OP_BIT(14)
  |  |  ------------------
  |  |  |  |  351|      0|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
 4387|       |
 4388|    347|    if (RAND_priv_bytes_ex(libctx, ret->ext.cookie_hmac_key,
  ------------------
  |  Branch (4388:9): [True: 0, False: 347]
  ------------------
 4389|    347|            sizeof(ret->ext.cookie_hmac_key), 0)
 4390|    347|        <= 0) {
 4391|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_RAND_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4392|      0|        goto err;
 4393|      0|    }
 4394|       |
 4395|    347|#ifndef OPENSSL_NO_SRP
 4396|    347|    if (!ssl_ctx_srp_ctx_init_intern(ret)) {
  ------------------
  |  Branch (4396:9): [True: 0, False: 347]
  ------------------
 4397|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_SSL_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4398|      0|        goto err;
 4399|      0|    }
 4400|    347|#endif
 4401|       |
 4402|       |#ifndef OPENSSL_NO_COMP_ALG
 4403|       |    /*
 4404|       |     * Set the default order: brotli, zlib, zstd
 4405|       |     * Including only those enabled algorithms
 4406|       |     */
 4407|       |    memset(ret->cert_comp_prefs, 0, sizeof(ret->cert_comp_prefs));
 4408|       |    i = 0;
 4409|       |    if (ossl_comp_has_alg(TLSEXT_comp_cert_brotli))
 4410|       |        ret->cert_comp_prefs[i++] = TLSEXT_comp_cert_brotli;
 4411|       |    if (ossl_comp_has_alg(TLSEXT_comp_cert_zlib))
 4412|       |        ret->cert_comp_prefs[i++] = TLSEXT_comp_cert_zlib;
 4413|       |    if (ossl_comp_has_alg(TLSEXT_comp_cert_zstd))
 4414|       |        ret->cert_comp_prefs[i++] = TLSEXT_comp_cert_zstd;
 4415|       |#endif
 4416|       |    /*
 4417|       |     * Disable compression by default to prevent CRIME. Applications can
 4418|       |     * re-enable compression by configuring
 4419|       |     * SSL_CTX_clear_options(ctx, SSL_OP_NO_COMPRESSION);
 4420|       |     * or by using the SSL_CONF library. Similarly we also enable TLSv1.3
 4421|       |     * middlebox compatibility by default. This may be disabled by default in
 4422|       |     * a later OpenSSL version.
 4423|       |     */
 4424|    347|    ret->options |= SSL_OP_NO_COMPRESSION | SSL_OP_ENABLE_MIDDLEBOX_COMPAT;
  ------------------
  |  |  395|    347|#define SSL_OP_NO_COMPRESSION SSL_OP_BIT(17)
  |  |  ------------------
  |  |  |  |  351|    347|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
                  ret->options |= SSL_OP_NO_COMPRESSION | SSL_OP_ENABLE_MIDDLEBOX_COMPAT;
  ------------------
  |  |  404|    347|#define SSL_OP_ENABLE_MIDDLEBOX_COMPAT SSL_OP_BIT(20)
  |  |  ------------------
  |  |  |  |  351|    347|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
 4425|       |
 4426|    347|    ret->ext.status_type = TLSEXT_STATUSTYPE_nothing;
  ------------------
  |  | 2213|    347|#define TLSEXT_STATUSTYPE_nothing -1
  ------------------
 4427|       |
 4428|       |    /*
 4429|       |     * We cannot usefully set a default max_early_data here (which gets
 4430|       |     * propagated in SSL_new(), for the following reason: setting the
 4431|       |     * SSL field causes tls_construct_stoc_early_data() to tell the
 4432|       |     * client that early data will be accepted when constructing a TLS 1.3
 4433|       |     * session ticket, and the client will accordingly send us early data
 4434|       |     * when using that ticket (if the client has early data to send).
 4435|       |     * However, in order for the early data to actually be consumed by
 4436|       |     * the application, the application must also have calls to
 4437|       |     * SSL_read_early_data(); otherwise we'll just skip past the early data
 4438|       |     * and ignore it.  So, since the application must add calls to
 4439|       |     * SSL_read_early_data(), we also require them to add
 4440|       |     * calls to SSL_CTX_set_max_early_data() in order to use early data,
 4441|       |     * eliminating the bandwidth-wasting early data in the case described
 4442|       |     * above.
 4443|       |     */
 4444|    347|    ret->max_early_data = 0;
 4445|       |
 4446|       |    /*
 4447|       |     * Default recv_max_early_data is a fully loaded single record. Could be
 4448|       |     * split across multiple records in practice. We set this differently to
 4449|       |     * max_early_data so that, in the default case, we do not advertise any
 4450|       |     * support for early_data, but if a client were to send us some (e.g.
 4451|       |     * because of an old, stale ticket) then we will tolerate it and skip over
 4452|       |     * it.
 4453|       |     */
 4454|    347|    ret->recv_max_early_data = SSL3_RT_MAX_PLAIN_LENGTH;
  ------------------
  |  |  177|    347|#define SSL3_RT_MAX_PLAIN_LENGTH 16384
  ------------------
 4455|       |
 4456|       |    /* By default we send two session tickets automatically in TLSv1.3 */
 4457|    347|    ret->num_tickets = 2;
 4458|       |
 4459|    347|#ifndef OPENSSL_NO_QUIC
 4460|       |    /* only create a cache for client CTX-es */
 4461|    347|    if (meth == OSSL_QUIC_client_method())
  ------------------
  |  Branch (4461:9): [True: 0, False: 347]
  ------------------
 4462|      0|        if ((ret->tokencache = ossl_quic_new_token_store()) == NULL)
  ------------------
  |  Branch (4462:13): [True: 0, False: 0]
  ------------------
 4463|      0|            goto err;
 4464|    347|    ret->domain_flags = 0;
 4465|    347|    if (IS_QUIC_METHOD(meth)) {
  ------------------
  |  |   52|    347|    ((m) == OSSL_QUIC_client_method() || (m) == OSSL_QUIC_client_thread_method() || (m) == OSSL_QUIC_server_method() || (m) == OSSL_QUIC_method())
  |  |  ------------------
  |  |  |  Branch (52:6): [True: 0, False: 347]
  |  |  |  Branch (52:42): [True: 0, False: 347]
  |  |  |  Branch (52:85): [True: 0, False: 347]
  |  |  |  Branch (52:121): [True: 0, False: 347]
  |  |  ------------------
  ------------------
 4466|      0|#if defined(OPENSSL_THREADS)
 4467|      0|        if (meth == OSSL_QUIC_client_thread_method())
  ------------------
  |  Branch (4467:13): [True: 0, False: 0]
  ------------------
 4468|      0|            ret->domain_flags
 4469|      0|                = SSL_DOMAIN_FLAG_MULTI_THREAD
  ------------------
  |  | 2375|      0|#define SSL_DOMAIN_FLAG_MULTI_THREAD (1U << 1)
  ------------------
 4470|      0|                | SSL_DOMAIN_FLAG_THREAD_ASSISTED
  ------------------
  |  | 2376|      0|#define SSL_DOMAIN_FLAG_THREAD_ASSISTED (1U << 2)
  ------------------
 4471|      0|                | SSL_DOMAIN_FLAG_BLOCKING;
  ------------------
  |  | 2377|      0|#define SSL_DOMAIN_FLAG_BLOCKING (1U << 3)
  ------------------
 4472|      0|        else
 4473|      0|            ret->domain_flags
 4474|      0|                = SSL_DOMAIN_FLAG_MULTI_THREAD
  ------------------
  |  | 2375|      0|#define SSL_DOMAIN_FLAG_MULTI_THREAD (1U << 1)
  ------------------
 4475|      0|                | SSL_DOMAIN_FLAG_LEGACY_BLOCKING;
  ------------------
  |  | 2378|      0|#define SSL_DOMAIN_FLAG_LEGACY_BLOCKING (1U << 4)
  ------------------
 4476|       |#else
 4477|       |        ret->domain_flags
 4478|       |            = SSL_DOMAIN_FLAG_SINGLE_THREAD
 4479|       |            | SSL_DOMAIN_FLAG_LEGACY_BLOCKING;
 4480|       |#endif
 4481|      0|    }
 4482|    347|#endif
 4483|       |
 4484|    347|    if (!ssl_ctx_system_config(ret)) {
  ------------------
  |  Branch (4484:9): [True: 0, False: 347]
  ------------------
 4485|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_ERROR_IN_SYSTEM_DEFAULT_CONFIG);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 4486|      0|        goto err;
 4487|      0|    }
 4488|       |
 4489|       |#ifndef OPENSSL_NO_SSLKEYLOG
 4490|       |    if (keylogfile != NULL && strlen(keylogfile) != 0) {
 4491|       |        /* Make sure we have a global lock allocated */
 4492|       |        if (!RUN_ONCE(&ssl_keylog_once, ssl_keylog_init)) {
 4493|       |            /* use a trace message as a warning */
 4494|       |            OSSL_TRACE(TLS, "Unable to initialize keylog data\n");
 4495|       |            goto out;
 4496|       |        }
 4497|       |
 4498|       |        /* Grab our global lock */
 4499|       |        if (!CRYPTO_THREAD_write_lock(keylog_lock)) {
 4500|       |            OSSL_TRACE(TLS, "Unable to acquire keylog write lock\n");
 4501|       |            goto out;
 4502|       |        } else {
 4503|       |            /*
 4504|       |             * If the bio for the requested keylog file hasn't been
 4505|       |             * created yet, go ahead and create it, and set it to append
 4506|       |             * if its already there.
 4507|       |             */
 4508|       |            if (keylog_bio == NULL) {
 4509|       |                keylog_bio = get_sslkeylog_bio(keylogfile);
 4510|       |                if (keylog_bio == NULL) {
 4511|       |                    OSSL_TRACE(TLS, "Unable to create keylog bio\n");
 4512|       |                    goto out;
 4513|       |                }
 4514|       |                BIO_set_callback_ex(keylog_bio, check_keylog_bio_free);
 4515|       |            } else {
 4516|       |                /* up our refcount for the already-created case */
 4517|       |                BIO_up_ref(keylog_bio);
 4518|       |            }
 4519|       |            /* If we have a bio now, assign the callback handler */
 4520|       |            if (keylog_bio != NULL)
 4521|       |                ret->do_sslkeylog = 1;
 4522|       |            /* unlock, and we're done */
 4523|       |            CRYPTO_THREAD_unlock(keylog_lock);
 4524|       |        }
 4525|       |    }
 4526|       |out:
 4527|       |#endif
 4528|    347|    return ret;
 4529|      0|err:
 4530|      0|    SSL_CTX_free(ret);
 4531|       |#ifndef OPENSSL_NO_SSLKEYLOG
 4532|       |    BIO_free(keylog_bio);
 4533|       |#endif
 4534|       |    return NULL;
 4535|    347|}
SSL_CTX_new:
 4538|    347|{
 4539|    347|    return SSL_CTX_new_ex(NULL, NULL, meth);
 4540|    347|}
SSL_CTX_up_ref:
 4543|    694|{
 4544|    694|    int i;
 4545|       |
 4546|    694|    if (CRYPTO_UP_REF(&ctx->references, &i) <= 0)
  ------------------
  |  Branch (4546:9): [True: 0, False: 694]
  ------------------
 4547|      0|        return 0;
 4548|       |
 4549|    694|    REF_PRINT_COUNT("SSL_CTX", i, ctx);
  ------------------
  |  |  301|    694|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|    694|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  295|    694|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|    694|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4550|    694|    REF_ASSERT_ISNT(i < 2);
  ------------------
  |  |  293|    694|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 694]
  |  |  ------------------
  ------------------
 4551|    694|    return ((i > 1) ? 1 : 0);
  ------------------
  |  Branch (4551:13): [True: 694, False: 0]
  ------------------
 4552|    694|}
SSL_CTX_free:
 4555|  1.04k|{
 4556|  1.04k|    int i;
 4557|  1.04k|    size_t j;
 4558|       |
 4559|  1.04k|    if (a == NULL)
  ------------------
  |  Branch (4559:9): [True: 0, False: 1.04k]
  ------------------
 4560|      0|        return;
 4561|       |
 4562|  1.04k|    CRYPTO_DOWN_REF(&a->references, &i);
 4563|  1.04k|    REF_PRINT_COUNT("SSL_CTX", i, a);
  ------------------
  |  |  301|  1.04k|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|  1.04k|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  295|  1.04k|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|  1.04k|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4564|  1.04k|    if (i > 0)
  ------------------
  |  Branch (4564:9): [True: 694, False: 347]
  ------------------
 4565|    694|        return;
 4566|    347|    REF_ASSERT_ISNT(i < 0);
  ------------------
  |  |  293|    347|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 347]
  |  |  ------------------
  ------------------
 4567|       |
 4568|       |#ifndef OPENSSL_NO_SSLKEYLOG
 4569|       |    if (keylog_lock != NULL && CRYPTO_THREAD_write_lock(keylog_lock)) {
 4570|       |        if (a->do_sslkeylog == 1)
 4571|       |            BIO_free(keylog_bio);
 4572|       |        a->do_sslkeylog = 0;
 4573|       |        CRYPTO_THREAD_unlock(keylog_lock);
 4574|       |    }
 4575|       |#endif
 4576|       |
 4577|    347|    X509_VERIFY_PARAM_free(a->param);
 4578|    347|    dane_ctx_final(&a->dane);
 4579|       |
 4580|       |    /*
 4581|       |     * Free internal session cache. However: the remove_cb() may reference
 4582|       |     * the ex_data of SSL_CTX, thus the ex_data store can only be removed
 4583|       |     * after the sessions were flushed.
 4584|       |     * As the ex_data handling routines might also touch the session cache,
 4585|       |     * the most secure solution seems to be: empty (flush) the cache, then
 4586|       |     * free ex_data, then finally free the cache.
 4587|       |     * (See ticket [openssl.org #212].)
 4588|       |     */
 4589|    347|    if (a->sessions != NULL)
  ------------------
  |  Branch (4589:9): [True: 347, False: 0]
  ------------------
 4590|    347|        SSL_CTX_flush_sessions_ex(a, 0);
 4591|       |
 4592|    347|    CRYPTO_free_ex_data(CRYPTO_EX_INDEX_SSL_CTX, a, &a->ex_data);
  ------------------
  |  |  252|    347|#define CRYPTO_EX_INDEX_SSL_CTX 1
  ------------------
 4593|    347|    lh_SSL_SESSION_free(a->sessions);
 4594|    347|    X509_STORE_free(a->cert_store);
 4595|    347|#ifndef OPENSSL_NO_CT
 4596|    347|    CTLOG_STORE_free(a->ctlog_store);
 4597|    347|#endif
 4598|    347|    sk_SSL_CIPHER_free(a->cipher_list);
  ------------------
  |  | 1034|    347|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 4599|    347|    sk_SSL_CIPHER_free(a->cipher_list_by_id);
  ------------------
  |  | 1034|    347|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 4600|    347|    sk_SSL_CIPHER_free(a->tls13_ciphersuites);
  ------------------
  |  | 1034|    347|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
 4601|    347|    ssl_cert_free(a->cert);
 4602|    347|    sk_X509_NAME_pop_free(a->ca_names, X509_NAME_free);
  ------------------
  |  |   70|    347|#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))
  ------------------
 4603|    347|    sk_X509_NAME_pop_free(a->client_ca_names, X509_NAME_free);
  ------------------
  |  |   70|    347|#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))
  ------------------
 4604|    347|    OSSL_STACK_OF_X509_free(a->extra_certs);
 4605|    347|    a->comp_methods = NULL;
 4606|    347|#ifndef OPENSSL_NO_SRTP
 4607|    347|    sk_SRTP_PROTECTION_PROFILE_free(a->srtp_profiles);
  ------------------
  |  |  257|    347|#define sk_SRTP_PROTECTION_PROFILE_free(sk) OPENSSL_sk_free(ossl_check_SRTP_PROTECTION_PROFILE_sk_type(sk))
  ------------------
 4608|    347|#endif
 4609|    347|#ifndef OPENSSL_NO_SRP
 4610|    347|    ssl_ctx_srp_ctx_free_intern(a);
 4611|    347|#endif
 4612|       |
 4613|    347|    OPENSSL_free(a->ext.ecpointformats);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4614|    347|    OPENSSL_free(a->ext.supportedgroups);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4615|    347|    OPENSSL_free(a->ext.keyshares);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4616|    347|    OPENSSL_free(a->ext.tuples);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4617|    347|    OPENSSL_free(a->ext.alpn);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4618|    347|    OPENSSL_secure_clear_free(a->ext.secure, sizeof(*a->ext.secure));
  ------------------
  |  |  150|    347|    CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4619|       |
 4620|    347|    ssl_evp_md_free(a->md5);
 4621|    347|    ssl_evp_md_free(a->sha1);
 4622|       |
 4623|  9.36k|    for (j = 0; j < SSL_ENC_NUM_IDX; j++)
  ------------------
  |  |  364|  9.36k|#define SSL_ENC_NUM_IDX 26
  ------------------
  |  Branch (4623:17): [True: 9.02k, False: 347]
  ------------------
 4624|  9.02k|        ssl_evp_cipher_free(a->ssl_cipher_methods[j]);
 4625|  5.55k|    for (j = 0; j < SSL_MD_NUM_IDX; j++)
  ------------------
  |  |  210|  5.55k|#define SSL_MD_NUM_IDX SSL_MAX_DIGEST
  |  |  ------------------
  |  |  |  |  208|  5.55k|#define SSL_MAX_DIGEST 15
  |  |  ------------------
  ------------------
  |  Branch (4625:17): [True: 5.20k, False: 347]
  ------------------
 4626|  5.20k|        ssl_evp_md_free(a->ssl_digest_methods[j]);
 4627|  9.71k|    for (j = 0; j < a->group_list_len; j++) {
  ------------------
  |  Branch (4627:17): [True: 9.36k, False: 347]
  ------------------
 4628|  9.36k|        OPENSSL_free(a->group_list[j].tlsname);
  ------------------
  |  |  132|  9.36k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4629|  9.36k|        OPENSSL_free(a->group_list[j].realname);
  ------------------
  |  |  132|  9.36k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4630|  9.36k|        OPENSSL_free(a->group_list[j].algorithm);
  ------------------
  |  |  132|  9.36k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4631|  9.36k|    }
 4632|    347|    OPENSSL_free(a->group_list);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4633|  1.73k|    for (j = 0; j < a->sigalg_list_len; j++) {
  ------------------
  |  Branch (4633:17): [True: 1.38k, False: 347]
  ------------------
 4634|  1.38k|        OPENSSL_free(a->sigalg_list[j].name);
  ------------------
  |  |  132|  1.38k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4635|  1.38k|        OPENSSL_free(a->sigalg_list[j].sigalg_name);
  ------------------
  |  |  132|  1.38k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4636|  1.38k|        OPENSSL_free(a->sigalg_list[j].sigalg_oid);
  ------------------
  |  |  132|  1.38k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4637|  1.38k|        OPENSSL_free(a->sigalg_list[j].sig_name);
  ------------------
  |  |  132|  1.38k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4638|  1.38k|        OPENSSL_free(a->sigalg_list[j].sig_oid);
  ------------------
  |  |  132|  1.38k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4639|  1.38k|        OPENSSL_free(a->sigalg_list[j].hash_name);
  ------------------
  |  |  132|  1.38k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4640|  1.38k|        OPENSSL_free(a->sigalg_list[j].hash_oid);
  ------------------
  |  |  132|  1.38k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4641|  1.38k|        OPENSSL_free(a->sigalg_list[j].keytype);
  ------------------
  |  |  132|  1.38k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4642|  1.38k|        OPENSSL_free(a->sigalg_list[j].keytype_oid);
  ------------------
  |  |  132|  1.38k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4643|  1.38k|    }
 4644|    347|    OPENSSL_free(a->sigalg_list);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4645|    347|    OPENSSL_free(a->ssl_cert_info);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4646|       |
 4647|    347|    OPENSSL_free(a->sigalg_lookup_cache);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4648|    347|    OPENSSL_free(a->tls12_sigalgs);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4649|       |
 4650|    347|    OPENSSL_free(a->client_cert_type);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4651|    347|    OPENSSL_free(a->server_cert_type);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4652|       |
 4653|    347|    CRYPTO_THREAD_lock_free(a->lock);
 4654|    347|    CRYPTO_FREE_REF(&a->references);
 4655|       |#ifdef TSAN_REQUIRES_LOCKING
 4656|       |    CRYPTO_THREAD_lock_free(a->tsan_lock);
 4657|       |#endif
 4658|       |
 4659|    347|    OPENSSL_free(a->propq);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4660|    347|#ifndef OPENSSL_NO_QLOG
 4661|    347|    OPENSSL_free(a->qlog_title);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4662|    347|#endif
 4663|       |
 4664|    347|#ifndef OPENSSL_NO_QUIC
 4665|    347|    ossl_quic_free_token_store(a->tokencache);
 4666|    347|#endif
 4667|       |
 4668|    347|#ifndef OPENSSL_NO_ECH
 4669|    347|    ossl_ech_ctx_clear(&a->ext.ech);
 4670|    347|#endif
 4671|       |
 4672|    347|    OPENSSL_free(a);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 4673|    347|}
SSL_CTX_set_verify:
 4745|    347|{
 4746|    347|    ctx->verify_mode = mode;
 4747|    347|    ctx->default_verify_callback = cb;
 4748|    347|}
SSL_get_error:
 5035|  6.51k|{
 5036|  6.51k|    return ossl_ssl_get_error(s, i, /*check_err=*/1);
 5037|  6.51k|}
ossl_ssl_get_error:
 5040|  6.51k|{
 5041|  6.51k|    int reason;
 5042|  6.51k|    BIO *bio;
 5043|  6.51k|    const SSL_CONNECTION *sc = SSL_CONNECTION_FROM_CONST_SSL(s);
  ------------------
  |  |   41|  6.51k|    SSL_CONNECTION_FROM_SSL_int(ssl, const)
  |  |  ------------------
  |  |  |  |   32|  6.51k|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 6.51k]
  |  |  |  |  ------------------
  |  |  |  |   33|  6.51k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|  6.51k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 6.51k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|  6.51k|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|  6.51k|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1231:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 5044|       |
 5045|  6.51k|    if (i > 0)
  ------------------
  |  Branch (5045:9): [True: 0, False: 6.51k]
  ------------------
 5046|      0|        return SSL_ERROR_NONE;
  ------------------
  |  | 1284|      0|#define SSL_ERROR_NONE 0
  ------------------
 5047|       |
 5048|  6.51k|#ifndef OPENSSL_NO_QUIC
 5049|  6.51k|    if (IS_QUIC(s)) {
  ------------------
  |  |   96|  6.51k|    ((ssl) != NULL && SSL_TYPE_IS_QUIC((ssl)->type))
  |  |  ------------------
  |  |  |  | 1231|  6.51k|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1231:29): [True: 0, False: 6.51k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (96:6): [True: 6.51k, False: 0]
  |  |  ------------------
  ------------------
 5050|      0|        reason = ossl_quic_get_error(s, i);
 5051|      0|        if (reason != SSL_ERROR_NONE)
  ------------------
  |  | 1284|      0|#define SSL_ERROR_NONE 0
  ------------------
  |  Branch (5051:13): [True: 0, False: 0]
  ------------------
 5052|      0|            return reason;
 5053|      0|    }
 5054|  6.51k|#endif
 5055|       |
 5056|  6.51k|    if (sc == NULL)
  ------------------
  |  Branch (5056:9): [True: 0, False: 6.51k]
  ------------------
 5057|      0|        return SSL_ERROR_SSL;
  ------------------
  |  | 1285|      0|#define SSL_ERROR_SSL 1
  ------------------
 5058|       |
 5059|  6.51k|    if (check_err != 0) {
  ------------------
  |  Branch (5059:9): [True: 6.51k, False: 0]
  ------------------
 5060|  6.51k|        if (sc->statem.error_state == ERROR_STATE_SSL)
  ------------------
  |  Branch (5060:13): [True: 0, False: 6.51k]
  ------------------
 5061|      0|            return SSL_ERROR_SSL;
  ------------------
  |  | 1285|      0|#define SSL_ERROR_SSL 1
  ------------------
 5062|  6.51k|        if (sc->statem.error_state == ERROR_STATE_SYSCALL)
  ------------------
  |  Branch (5062:13): [True: 0, False: 6.51k]
  ------------------
 5063|      0|            return SSL_ERROR_SYSCALL;
  ------------------
  |  | 1289|      0|#define SSL_ERROR_SYSCALL 5 /* look at error stack/return \
  ------------------
 5064|  6.51k|    }
 5065|       |
 5066|  6.51k|#ifndef OPENSSL_NO_QUIC
 5067|  6.51k|    if (!IS_QUIC(s))
  ------------------
  |  |   96|  6.51k|    ((ssl) != NULL && SSL_TYPE_IS_QUIC((ssl)->type))
  |  |  ------------------
  |  |  |  | 1231|  6.51k|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1231:29): [True: 0, False: 6.51k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (96:6): [True: 6.51k, False: 0]
  |  |  ------------------
  ------------------
 5068|  6.51k|#endif
 5069|  6.51k|    {
 5070|  6.51k|        if (SSL_want_read(s)) {
  ------------------
  |  |  966|  6.51k|#define SSL_want_read(s) (SSL_want(s) == SSL_READING)
  |  |  ------------------
  |  |  |  |  957|  6.51k|#define SSL_READING 3
  |  |  ------------------
  |  |  |  Branch (966:26): [True: 6.51k, False: 0]
  |  |  ------------------
  ------------------
 5071|  6.51k|            bio = SSL_get_rbio(s);
 5072|  6.51k|            if (BIO_should_read(bio))
  ------------------
  |  |  277|  6.51k|#define BIO_should_read(a) BIO_test_flags(a, BIO_FLAGS_READ)
  |  |  ------------------
  |  |  |  |  222|  6.51k|#define BIO_FLAGS_READ 0x01
  |  |  ------------------
  |  |  |  Branch (277:28): [True: 6.51k, False: 0]
  |  |  ------------------
  ------------------
 5073|  6.51k|                return SSL_ERROR_WANT_READ;
  ------------------
  |  | 1286|  6.51k|#define SSL_ERROR_WANT_READ 2
  ------------------
 5074|      0|            else if (BIO_should_write(bio))
  ------------------
  |  |  278|      0|#define BIO_should_write(a) BIO_test_flags(a, BIO_FLAGS_WRITE)
  |  |  ------------------
  |  |  |  |  223|      0|#define BIO_FLAGS_WRITE 0x02
  |  |  ------------------
  |  |  |  Branch (278:29): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5075|       |                /*
 5076|       |                 * This one doesn't make too much sense ... We never try to
 5077|       |                 * write to the rbio, and an application program where rbio and
 5078|       |                 * wbio are separate couldn't even know what it should wait for.
 5079|       |                 * However if we ever set s->rwstate incorrectly (so that we
 5080|       |                 * have SSL_want_read(s) instead of SSL_want_write(s)) and rbio
 5081|       |                 * and wbio *are* the same, this test works around that bug; so
 5082|       |                 * it might be safer to keep it.
 5083|       |                 */
 5084|      0|                return SSL_ERROR_WANT_WRITE;
  ------------------
  |  | 1287|      0|#define SSL_ERROR_WANT_WRITE 3
  ------------------
 5085|      0|            else if (BIO_should_io_special(bio)) {
  ------------------
  |  |  279|      0|#define BIO_should_io_special(a) BIO_test_flags(a, BIO_FLAGS_IO_SPECIAL)
  |  |  ------------------
  |  |  |  |  224|      0|#define BIO_FLAGS_IO_SPECIAL 0x04
  |  |  ------------------
  |  |  |  Branch (279:34): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5086|      0|                reason = BIO_get_retry_reason(bio);
 5087|      0|                if (reason == BIO_RR_CONNECT)
  ------------------
  |  |  295|      0|#define BIO_RR_CONNECT 0x02
  ------------------
  |  Branch (5087:21): [True: 0, False: 0]
  ------------------
 5088|      0|                    return SSL_ERROR_WANT_CONNECT;
  ------------------
  |  | 1292|      0|#define SSL_ERROR_WANT_CONNECT 7
  ------------------
 5089|      0|                else if (reason == BIO_RR_ACCEPT)
  ------------------
  |  |  297|      0|#define BIO_RR_ACCEPT 0x03
  ------------------
  |  Branch (5089:26): [True: 0, False: 0]
  ------------------
 5090|      0|                    return SSL_ERROR_WANT_ACCEPT;
  ------------------
  |  | 1293|      0|#define SSL_ERROR_WANT_ACCEPT 8
  ------------------
 5091|      0|                else
 5092|      0|                    return SSL_ERROR_SYSCALL; /* unknown */
  ------------------
  |  | 1289|      0|#define SSL_ERROR_SYSCALL 5 /* look at error stack/return \
  ------------------
 5093|      0|            }
 5094|  6.51k|        }
 5095|       |
 5096|      0|        if (SSL_want_write(s)) {
  ------------------
  |  |  967|      0|#define SSL_want_write(s) (SSL_want(s) == SSL_WRITING)
  |  |  ------------------
  |  |  |  |  956|      0|#define SSL_WRITING 2
  |  |  ------------------
  |  |  |  Branch (967:27): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5097|       |            /*
 5098|       |             * Access wbio directly - in order to use the buffered bio if
 5099|       |             * present
 5100|       |             */
 5101|      0|            bio = sc->wbio;
 5102|      0|            if (BIO_should_write(bio))
  ------------------
  |  |  278|      0|#define BIO_should_write(a) BIO_test_flags(a, BIO_FLAGS_WRITE)
  |  |  ------------------
  |  |  |  |  223|      0|#define BIO_FLAGS_WRITE 0x02
  |  |  ------------------
  |  |  |  Branch (278:29): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5103|      0|                return SSL_ERROR_WANT_WRITE;
  ------------------
  |  | 1287|      0|#define SSL_ERROR_WANT_WRITE 3
  ------------------
 5104|      0|            else if (BIO_should_read(bio))
  ------------------
  |  |  277|      0|#define BIO_should_read(a) BIO_test_flags(a, BIO_FLAGS_READ)
  |  |  ------------------
  |  |  |  |  222|      0|#define BIO_FLAGS_READ 0x01
  |  |  ------------------
  |  |  |  Branch (277:28): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5105|       |                /*
 5106|       |                 * See above (SSL_want_read(s) with BIO_should_write(bio))
 5107|       |                 */
 5108|      0|                return SSL_ERROR_WANT_READ;
  ------------------
  |  | 1286|      0|#define SSL_ERROR_WANT_READ 2
  ------------------
 5109|      0|            else if (BIO_should_io_special(bio)) {
  ------------------
  |  |  279|      0|#define BIO_should_io_special(a) BIO_test_flags(a, BIO_FLAGS_IO_SPECIAL)
  |  |  ------------------
  |  |  |  |  224|      0|#define BIO_FLAGS_IO_SPECIAL 0x04
  |  |  ------------------
  |  |  |  Branch (279:34): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5110|      0|                reason = BIO_get_retry_reason(bio);
 5111|      0|                if (reason == BIO_RR_CONNECT)
  ------------------
  |  |  295|      0|#define BIO_RR_CONNECT 0x02
  ------------------
  |  Branch (5111:21): [True: 0, False: 0]
  ------------------
 5112|      0|                    return SSL_ERROR_WANT_CONNECT;
  ------------------
  |  | 1292|      0|#define SSL_ERROR_WANT_CONNECT 7
  ------------------
 5113|      0|                else if (reason == BIO_RR_ACCEPT)
  ------------------
  |  |  297|      0|#define BIO_RR_ACCEPT 0x03
  ------------------
  |  Branch (5113:26): [True: 0, False: 0]
  ------------------
 5114|      0|                    return SSL_ERROR_WANT_ACCEPT;
  ------------------
  |  | 1293|      0|#define SSL_ERROR_WANT_ACCEPT 8
  ------------------
 5115|      0|                else
 5116|      0|                    return SSL_ERROR_SYSCALL;
  ------------------
  |  | 1289|      0|#define SSL_ERROR_SYSCALL 5 /* look at error stack/return \
  ------------------
 5117|      0|            }
 5118|      0|        }
 5119|      0|    }
 5120|       |
 5121|      0|    if (SSL_want_x509_lookup(s))
  ------------------
  |  |  968|      0|#define SSL_want_x509_lookup(s) (SSL_want(s) == SSL_X509_LOOKUP)
  |  |  ------------------
  |  |  |  |  958|      0|#define SSL_X509_LOOKUP 4
  |  |  ------------------
  |  |  |  Branch (968:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5122|      0|        return SSL_ERROR_WANT_X509_LOOKUP;
  ------------------
  |  | 1288|      0|#define SSL_ERROR_WANT_X509_LOOKUP 4
  ------------------
 5123|      0|    if (SSL_want_retry_verify(s))
  ------------------
  |  |  969|      0|#define SSL_want_retry_verify(s) (SSL_want(s) == SSL_RETRY_VERIFY)
  |  |  ------------------
  |  |  |  |  962|      0|#define SSL_RETRY_VERIFY 8
  |  |  ------------------
  |  |  |  Branch (969:34): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5124|      0|        return SSL_ERROR_WANT_RETRY_VERIFY;
  ------------------
  |  | 1297|      0|#define SSL_ERROR_WANT_RETRY_VERIFY 12
  ------------------
 5125|      0|    if (SSL_want_async(s))
  ------------------
  |  |  970|      0|#define SSL_want_async(s) (SSL_want(s) == SSL_ASYNC_PAUSED)
  |  |  ------------------
  |  |  |  |  959|      0|#define SSL_ASYNC_PAUSED 5
  |  |  ------------------
  |  |  |  Branch (970:27): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5126|      0|        return SSL_ERROR_WANT_ASYNC;
  ------------------
  |  | 1294|      0|#define SSL_ERROR_WANT_ASYNC 9
  ------------------
 5127|      0|    if (SSL_want_async_job(s))
  ------------------
  |  |  971|      0|#define SSL_want_async_job(s) (SSL_want(s) == SSL_ASYNC_NO_JOBS)
  |  |  ------------------
  |  |  |  |  960|      0|#define SSL_ASYNC_NO_JOBS 6
  |  |  ------------------
  |  |  |  Branch (971:31): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5128|      0|        return SSL_ERROR_WANT_ASYNC_JOB;
  ------------------
  |  | 1295|      0|#define SSL_ERROR_WANT_ASYNC_JOB 10
  ------------------
 5129|      0|    if (SSL_want_client_hello_cb(s))
  ------------------
  |  |  972|      0|#define SSL_want_client_hello_cb(s) (SSL_want(s) == SSL_CLIENT_HELLO_CB)
  |  |  ------------------
  |  |  |  |  961|      0|#define SSL_CLIENT_HELLO_CB 7
  |  |  ------------------
  |  |  |  Branch (972:37): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5130|      0|        return SSL_ERROR_WANT_CLIENT_HELLO_CB;
  ------------------
  |  | 1296|      0|#define SSL_ERROR_WANT_CLIENT_HELLO_CB 11
  ------------------
 5131|       |
 5132|      0|    if ((sc->shutdown & SSL_RECEIVED_SHUTDOWN) && (sc->s3.warn_alert == SSL_AD_CLOSE_NOTIFY))
  ------------------
  |  |  217|      0|#define SSL_RECEIVED_SHUTDOWN 2
  ------------------
                  if ((sc->shutdown & SSL_RECEIVED_SHUTDOWN) && (sc->s3.warn_alert == SSL_AD_CLOSE_NOTIFY))
  ------------------
  |  | 1232|      0|#define SSL_AD_CLOSE_NOTIFY SSL3_AD_CLOSE_NOTIFY
  |  |  ------------------
  |  |  |  |  252|      0|#define SSL3_AD_CLOSE_NOTIFY 0
  |  |  ------------------
  ------------------
  |  Branch (5132:9): [True: 0, False: 0]
  |  Branch (5132:51): [True: 0, False: 0]
  ------------------
 5133|      0|        return SSL_ERROR_ZERO_RETURN;
  ------------------
  |  | 1291|      0|#define SSL_ERROR_ZERO_RETURN 6
  ------------------
 5134|       |
 5135|      0|    return SSL_ERROR_SYSCALL;
  ------------------
  |  | 1289|      0|#define SSL_ERROR_SYSCALL 5 /* look at error stack/return \
  ------------------
 5136|      0|}
SSL_do_handshake:
 5151|  6.51k|{
 5152|  6.51k|    int ret = 1;
 5153|  6.51k|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|  6.51k|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|  6.51k|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 6.51k]
  |  |  |  |  ------------------
  |  |  |  |   33|  6.51k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|  6.51k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 6.51k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|  6.51k|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|  6.51k|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1231:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 5154|       |
 5155|  6.51k|#ifndef OPENSSL_NO_QUIC
 5156|  6.51k|    if (IS_QUIC(s))
  ------------------
  |  |   96|  6.51k|    ((ssl) != NULL && SSL_TYPE_IS_QUIC((ssl)->type))
  |  |  ------------------
  |  |  |  | 1231|  6.51k|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1231:29): [True: 0, False: 6.51k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (96:6): [True: 6.51k, False: 0]
  |  |  ------------------
  ------------------
 5157|      0|        return ossl_quic_do_handshake(s);
 5158|  6.51k|#endif
 5159|       |
 5160|  6.51k|    if (sc == NULL)
  ------------------
  |  Branch (5160:9): [True: 0, False: 6.51k]
  ------------------
 5161|      0|        return -1;
 5162|       |
 5163|  6.51k|    if (ssl_reset_error_state(sc) == 0)
  ------------------
  |  Branch (5163:9): [True: 0, False: 6.51k]
  ------------------
 5164|      0|        return -1;
 5165|       |
 5166|  6.51k|    sc->statem.error_state = ERROR_STATE_NOERROR;
 5167|       |
 5168|  6.51k|    if (sc->handshake_func == NULL) {
  ------------------
  |  Branch (5168:9): [True: 0, False: 6.51k]
  ------------------
 5169|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_CONNECTION_TYPE_NOT_SET);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 5170|      0|        sc->statem.error_state = ERROR_STATE_SSL;
 5171|      0|        return -1;
 5172|      0|    }
 5173|       |
 5174|  6.51k|    if (!ossl_statem_check_finish_init(sc, -1)) {
  ------------------
  |  Branch (5174:9): [True: 0, False: 6.51k]
  ------------------
 5175|      0|        ssl_update_error_state(sc);
 5176|      0|        return -1;
 5177|      0|    }
 5178|       |
 5179|  6.51k|    s->method->ssl_renegotiate_check(s, 0);
 5180|       |
 5181|  6.51k|    if (SSL_in_init(s) || SSL_in_before(s)) {
  ------------------
  |  Branch (5181:9): [True: 6.51k, False: 0]
  |  Branch (5181:27): [True: 0, False: 0]
  ------------------
 5182|  6.51k|        if ((sc->mode & SSL_MODE_ASYNC) && ASYNC_get_current_job() == NULL) {
  ------------------
  |  |  557|  6.51k|#define SSL_MODE_ASYNC 0x00000100U
  ------------------
  |  Branch (5182:13): [True: 0, False: 6.51k]
  |  Branch (5182:44): [True: 0, False: 0]
  ------------------
 5183|      0|            struct ssl_async_args args;
 5184|       |
 5185|      0|            memset(&args, 0, sizeof(args));
 5186|      0|            args.s = s;
 5187|       |
 5188|      0|            ret = ssl_start_async_job(s, &args, ssl_do_handshake_intern);
 5189|  6.51k|        } else {
 5190|  6.51k|            ret = sc->handshake_func(s);
 5191|  6.51k|        }
 5192|  6.51k|    }
 5193|       |
 5194|  6.51k|    ssl_update_error_state(sc);
 5195|  6.51k|    return ret;
 5196|  6.51k|}
SSL_set_connect_state:
 5219|    347|{
 5220|    347|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL_ONLY(s);
  ------------------
  |  |   23|    347|    SSL_CONNECTION_FROM_SSL_ONLY_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   17|    347|    ((ssl) == NULL ? NULL                                    \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (17:6): [True: 0, False: 347]
  |  |  |  |  ------------------
  |  |  |  |   18|    347|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|    347|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (18:23): [True: 347, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   19|    347|                             ? (c SSL_CONNECTION *)(ssl)     \
  |  |  |  |   20|    347|                             : NULL))
  |  |  ------------------
  ------------------
 5221|       |
 5222|    347|#ifndef OPENSSL_NO_QUIC
 5223|    347|    if (IS_QUIC(s)) {
  ------------------
  |  |   96|    347|    ((ssl) != NULL && SSL_TYPE_IS_QUIC((ssl)->type))
  |  |  ------------------
  |  |  |  | 1231|    347|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1231:29): [True: 0, False: 347]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (96:6): [True: 347, False: 0]
  |  |  ------------------
  ------------------
 5224|       |        /* We suppress errors because this is a void function */
 5225|      0|        (void)ossl_quic_set_connect_state(s, 0 /* suppress errors */);
 5226|      0|        return;
 5227|      0|    }
 5228|    347|#endif
 5229|       |
 5230|    347|    sc->server = 0;
 5231|    347|    sc->shutdown = 0;
 5232|    347|    ossl_statem_clear(sc);
 5233|    347|    sc->handshake_func = s->method->ssl_connect;
 5234|       |    /* Ignore return value. Its a void public API function */
 5235|    347|    RECORD_LAYER_reset(&sc->rlayer);
 5236|    347|}
ssl_init_wbio_buffer:
 5552|    342|{
 5553|    342|    BIO *bbio;
 5554|       |
 5555|    342|    if (s->bbio != NULL) {
  ------------------
  |  Branch (5555:9): [True: 0, False: 342]
  ------------------
 5556|       |        /* Already buffered. */
 5557|      0|        return 1;
 5558|      0|    }
 5559|       |
 5560|    342|    bbio = BIO_new(BIO_f_buffer());
 5561|    342|    if (bbio == NULL || BIO_set_read_buffer_size(bbio, 1) <= 0) {
  ------------------
  |  |  635|    342|#define BIO_set_read_buffer_size(b, size) BIO_int_ctrl(b, BIO_C_SET_BUFF_SIZE, size, 0)
  |  |  ------------------
  |  |  |  |  460|    342|#define BIO_C_SET_BUFF_SIZE 117
  |  |  ------------------
  ------------------
  |  Branch (5561:9): [True: 0, False: 342]
  |  Branch (5561:25): [True: 0, False: 342]
  ------------------
 5562|      0|        BIO_free(bbio);
 5563|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_BUF_LIB);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 5564|      0|        return 0;
 5565|      0|    }
 5566|    342|    s->bbio = bbio;
 5567|    342|    s->wbio = BIO_push(bbio, s->wbio);
 5568|       |
 5569|    342|    s->rlayer.wrlmethod->set1_bio(s->rlayer.wrl, s->wbio);
 5570|       |
 5571|    342|    return 1;
 5572|    342|}
ssl_free_wbio_buffer:
 5575|  1.73k|{
 5576|       |    /* callers ensure s is never null */
 5577|  1.73k|    if (s->bbio == NULL)
  ------------------
  |  Branch (5577:9): [True: 1.38k, False: 342]
  ------------------
 5578|  1.38k|        return 1;
 5579|       |
 5580|    342|    s->wbio = BIO_pop(s->wbio);
 5581|    342|    s->rlayer.wrlmethod->set1_bio(s->rlayer.wrl, s->wbio);
 5582|       |
 5583|    342|    BIO_free(s->bbio);
 5584|    342|    s->bbio = NULL;
 5585|       |
 5586|    342|    return 1;
 5587|  1.73k|}
SSL_version:
 5649|    684|{
 5650|    684|    const SSL_CONNECTION *sc = SSL_CONNECTION_FROM_CONST_SSL(s);
  ------------------
  |  |   41|    684|    SSL_CONNECTION_FROM_SSL_int(ssl, const)
  |  |  ------------------
  |  |  |  |   32|    684|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 684]
  |  |  |  |  ------------------
  |  |  |  |   33|    684|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|    684|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 684, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    684|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    684|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1231:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 5651|       |
 5652|    684|#ifndef OPENSSL_NO_QUIC
 5653|       |    /* We only support QUICv1 - so if its QUIC its QUICv1 */
 5654|    684|    if (s->type == SSL_TYPE_QUIC_CONNECTION || s->type == SSL_TYPE_QUIC_XSO)
  ------------------
  |  | 1226|  1.36k|#define SSL_TYPE_QUIC_CONNECTION 0x80
  ------------------
                  if (s->type == SSL_TYPE_QUIC_CONNECTION || s->type == SSL_TYPE_QUIC_XSO)
  ------------------
  |  | 1227|    684|#define SSL_TYPE_QUIC_XSO 0x81
  ------------------
  |  Branch (5654:9): [True: 0, False: 684]
  |  Branch (5654:48): [True: 0, False: 684]
  ------------------
 5655|      0|        return OSSL_QUIC1_VERSION;
  ------------------
  |  |   33|      0|#define OSSL_QUIC1_VERSION 0x0000001
  ------------------
 5656|    684|#endif
 5657|    684|    if (sc == NULL)
  ------------------
  |  Branch (5657:9): [True: 0, False: 684]
  ------------------
 5658|      0|        return 0;
 5659|       |
 5660|    684|    return sc->version;
 5661|    684|}
SSL_set_ex_data:
 5926|    347|{
 5927|    347|    return CRYPTO_set_ex_data(&s->ex_data, idx, arg);
 5928|    347|}
SSL_CTX_get_cert_store:
 5946|    342|{
 5947|    342|    return ctx->cert_store;
 5948|    342|}
SSL_want:
 5965|  6.51k|{
 5966|  6.51k|    const SSL_CONNECTION *sc = SSL_CONNECTION_FROM_CONST_SSL(s);
  ------------------
  |  |   41|  6.51k|    SSL_CONNECTION_FROM_SSL_int(ssl, const)
  |  |  ------------------
  |  |  |  |   32|  6.51k|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 6.51k]
  |  |  |  |  ------------------
  |  |  |  |   33|  6.51k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|  6.51k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 6.51k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|  6.51k|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|  6.51k|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1231:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 5967|       |
 5968|  6.51k|#ifndef OPENSSL_NO_QUIC
 5969|  6.51k|    if (IS_QUIC(s))
  ------------------
  |  |   96|  6.51k|    ((ssl) != NULL && SSL_TYPE_IS_QUIC((ssl)->type))
  |  |  ------------------
  |  |  |  | 1231|  6.51k|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1231:29): [True: 0, False: 6.51k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (96:6): [True: 6.51k, False: 0]
  |  |  ------------------
  ------------------
 5970|      0|        return ossl_quic_want(s);
 5971|  6.51k|#endif
 5972|       |
 5973|  6.51k|    if (sc == NULL)
  ------------------
  |  Branch (5973:9): [True: 0, False: 6.51k]
  ------------------
 5974|      0|        return SSL_NOTHING;
  ------------------
  |  |  955|      0|#define SSL_NOTHING 1
  ------------------
 5975|       |
 5976|  6.51k|    return sc->rwstate;
 5977|  6.51k|}
SSL_get_security_level:
 6359|  69.4k|{
 6360|  69.4k|    const SSL_CONNECTION *sc = SSL_CONNECTION_FROM_CONST_SSL(s);
  ------------------
  |  |   41|  69.4k|    SSL_CONNECTION_FROM_SSL_int(ssl, const)
  |  |  ------------------
  |  |  |  |   32|  69.4k|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 69.4k]
  |  |  |  |  ------------------
  |  |  |  |   33|  69.4k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|  69.4k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 69.4k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|  69.4k|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|  69.4k|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1231:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 6361|       |
 6362|  69.4k|    if (sc == NULL)
  ------------------
  |  Branch (6362:9): [True: 0, False: 69.4k]
  ------------------
 6363|      0|        return 0;
 6364|       |
 6365|  69.4k|    return sc->cert->sec_level;
 6366|  69.4k|}
SSL_CTX_set_options:
 6473|    347|{
 6474|    347|    return ctx->options |= op;
 6475|    347|}
SSL_set_ct_validation_callback:
 6745|    347|{
 6746|    347|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|    347|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|    347|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 347]
  |  |  |  |  ------------------
  |  |  |  |   33|    347|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|    347|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 347, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    347|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    347|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1231:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
 6747|       |
 6748|    347|    if (sc == NULL)
  ------------------
  |  Branch (6748:9): [True: 0, False: 347]
  ------------------
 6749|      0|        return 0;
 6750|       |
 6751|       |    /*
 6752|       |     * Since code exists that uses the custom extension handler for CT, look
 6753|       |     * for this and throw an error if they have already registered to use CT.
 6754|       |     */
 6755|    347|    if (callback != NULL && SSL_CTX_has_client_custom_ext(s->ctx, TLSEXT_TYPE_signed_certificate_timestamp)) {
  ------------------
  |  |  125|      0|#define TLSEXT_TYPE_signed_certificate_timestamp 18
  ------------------
  |  Branch (6755:9): [True: 0, False: 347]
  |  Branch (6755:29): [True: 0, False: 0]
  ------------------
 6756|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_CUSTOM_EXT_HANDLER_ALREADY_INSTALLED);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 6757|      0|        return 0;
 6758|      0|    }
 6759|       |
 6760|    347|    if (callback != NULL) {
  ------------------
  |  Branch (6760:9): [True: 0, False: 347]
  ------------------
 6761|       |        /*
 6762|       |         * If we are validating CT, then we MUST accept SCTs served via OCSP
 6763|       |         */
 6764|      0|        if (!SSL_set_tlsext_status_type(s, TLSEXT_STATUSTYPE_ocsp))
  ------------------
  |  |  320|      0|    SSL_ctrl(ssl, SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE, type, NULL)
  |  |  ------------------
  |  |  |  | 1351|      0|#define SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE 65
  |  |  ------------------
  ------------------
  |  Branch (6764:13): [True: 0, False: 0]
  ------------------
 6765|      0|            return 0;
 6766|      0|    }
 6767|       |
 6768|    347|    sc->ct_validation_callback = callback;
 6769|    347|    sc->ct_validation_callback_arg = arg;
 6770|       |
 6771|    347|    return 1;
 6772|    347|}
ssl_get_max_send_fragment:
 7457|  1.37k|{
 7458|       |    /* Return any active Max Fragment Len extension */
 7459|  1.37k|    if (sc->session != NULL && USE_MAX_FRAGMENT_LENGTH_EXT(sc->session))
  ------------------
  |  |  304|    342|    IS_MAX_FRAGMENT_LENGTH_EXT_VALID(session->ext.max_fragment_len_mode)
  |  |  ------------------
  |  |  |  |  302|    342|    (((value) >= TLSEXT_max_fragment_length_512) && ((value) <= TLSEXT_max_fragment_length_4096))
  |  |  |  |  ------------------
  |  |  |  |  |  |  237|    342|#define TLSEXT_max_fragment_length_512 1
  |  |  |  |  ------------------
  |  |  |  |                   (((value) >= TLSEXT_max_fragment_length_512) && ((value) <= TLSEXT_max_fragment_length_4096))
  |  |  |  |  ------------------
  |  |  |  |  |  |  240|    342|#define TLSEXT_max_fragment_length_4096 4
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (302:6): [True: 342, False: 0]
  |  |  |  |  |  Branch (302:53): [True: 0, False: 342]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (7459:9): [True: 342, False: 1.03k]
  ------------------
 7460|      0|        return GET_MAX_FRAGMENT_LENGTH(sc->session);
  ------------------
  |  |  306|      0|    (512U << (session->ext.max_fragment_len_mode - 1))
  ------------------
 7461|       |
 7462|       |    /* return current SSL connection setting */
 7463|  1.37k|    return (unsigned int)sc->max_send_fragment;
 7464|  1.37k|}
ssl_get_split_send_fragment:
 7467|    342|{
 7468|       |    /* Return a value regarding an active Max Fragment Len extension */
 7469|    342|    if (sc->session != NULL && USE_MAX_FRAGMENT_LENGTH_EXT(sc->session)
  ------------------
  |  |  304|    342|    IS_MAX_FRAGMENT_LENGTH_EXT_VALID(session->ext.max_fragment_len_mode)
  |  |  ------------------
  |  |  |  |  302|    684|    (((value) >= TLSEXT_max_fragment_length_512) && ((value) <= TLSEXT_max_fragment_length_4096))
  |  |  |  |  ------------------
  |  |  |  |  |  |  237|    342|#define TLSEXT_max_fragment_length_512 1
  |  |  |  |  ------------------
  |  |  |  |                   (((value) >= TLSEXT_max_fragment_length_512) && ((value) <= TLSEXT_max_fragment_length_4096))
  |  |  |  |  ------------------
  |  |  |  |  |  |  240|    342|#define TLSEXT_max_fragment_length_4096 4
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (302:6): [True: 342, False: 0]
  |  |  |  |  |  Branch (302:53): [True: 0, False: 342]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (7469:9): [True: 342, False: 0]
  ------------------
 7470|      0|        && sc->split_send_fragment > GET_MAX_FRAGMENT_LENGTH(sc->session))
  ------------------
  |  |  306|      0|    (512U << (session->ext.max_fragment_len_mode - 1))
  ------------------
  |  Branch (7470:12): [True: 0, False: 0]
  ------------------
 7471|      0|        return GET_MAX_FRAGMENT_LENGTH(sc->session);
  ------------------
  |  |  306|      0|    (512U << (session->ext.max_fragment_len_mode - 1))
  ------------------
 7472|       |
 7473|       |    /* else limit |split_send_fragment| to current |max_send_fragment| */
 7474|    342|    if (sc->split_send_fragment > sc->max_send_fragment)
  ------------------
  |  Branch (7474:9): [True: 0, False: 342]
  ------------------
 7475|      0|        return (unsigned int)sc->max_send_fragment;
 7476|       |
 7477|       |    /* return current SSL connection setting */
 7478|    342|    return (unsigned int)sc->split_send_fragment;
 7479|    342|}
SSL_CTX_set_post_handshake_auth:
 7509|    347|{
 7510|    347|    ctx->pha_enabled = val;
 7511|    347|}
ssl_evp_cipher_fetch:
 7617|  8.67k|{
 7618|  8.67k|    const EVP_CIPHER *ciph;
 7619|       |
 7620|  8.67k|    ERR_set_mark();
 7621|  8.67k|    ciph = EVP_CIPHER_fetch(libctx, name, properties);
 7622|  8.67k|    if (ciph != NULL) {
  ------------------
  |  Branch (7622:9): [True: 5.55k, False: 3.12k]
  ------------------
 7623|  5.55k|        OSSL_PARAM params[2];
 7624|  5.55k|        int decrypt_only = 0;
 7625|       |
 7626|  5.55k|        params[0] = OSSL_PARAM_construct_int(OSSL_CIPHER_PARAM_DECRYPT_ONLY,
  ------------------
  |  |  190|  5.55k|# define OSSL_CIPHER_PARAM_DECRYPT_ONLY "decrypt-only"
  ------------------
 7627|  5.55k|            &decrypt_only);
 7628|  5.55k|        params[1] = OSSL_PARAM_construct_end();
 7629|  5.55k|        if (EVP_CIPHER_get_params((EVP_CIPHER *)ciph, params)
  ------------------
  |  Branch (7629:13): [True: 5.55k, False: 0]
  ------------------
 7630|  5.55k|            && decrypt_only) {
  ------------------
  |  Branch (7630:16): [True: 0, False: 5.55k]
  ------------------
 7631|       |            /* If a cipher is decrypt-only, it is unusable */
 7632|      0|            EVP_CIPHER_free((EVP_CIPHER *)ciph);
 7633|       |            ciph = NULL;
 7634|      0|        }
 7635|  5.55k|    }
 7636|  8.67k|    ERR_pop_to_mark();
 7637|  8.67k|    return ciph;
 7638|  8.67k|}
ssl_evp_cipher_free:
 7654|  9.36k|{
 7655|  9.36k|    if (cipher == NULL)
  ------------------
  |  Branch (7655:9): [True: 3.81k, False: 5.55k]
  ------------------
 7656|  3.81k|        return;
 7657|       |
 7658|  5.55k|    if (EVP_CIPHER_get0_provider(cipher) != NULL) {
  ------------------
  |  Branch (7658:9): [True: 5.55k, False: 0]
  ------------------
 7659|       |        /*
 7660|       |         * The cipher was explicitly fetched and therefore it is safe to cast
 7661|       |         * away the const
 7662|       |         */
 7663|  5.55k|        EVP_CIPHER_free((EVP_CIPHER *)cipher);
 7664|  5.55k|    }
 7665|  5.55k|}
ssl_evp_md_free:
 7681|  6.24k|{
 7682|  6.24k|    if (md == NULL)
  ------------------
  |  Branch (7682:9): [True: 2.77k, False: 3.47k]
  ------------------
 7683|  2.77k|        return;
 7684|       |
 7685|  3.47k|    if (EVP_MD_get0_provider(md) != NULL) {
  ------------------
  |  Branch (7685:9): [True: 3.47k, False: 0]
  ------------------
 7686|       |        /*
 7687|       |         * The digest was explicitly fetched and therefore it is safe to cast
 7688|       |         * away the const
 7689|       |         */
 7690|  3.47k|        EVP_MD_free((EVP_MD *)md);
 7691|  3.47k|    }
 7692|  3.47k|}
ssl_lib.c:dane_final:
  169|    347|{
  170|    347|    sk_danetls_record_pop_free(dane->trecs, tlsa_free);
  171|    347|    dane->trecs = NULL;
  172|       |
  173|    347|    OSSL_STACK_OF_X509_free(dane->certs);
  174|    347|    dane->certs = NULL;
  175|       |
  176|    347|    X509_free(dane->mcert);
  177|    347|    dane->mcert = NULL;
  178|       |    dane->mtlsa = NULL;
  179|    347|    dane->mdpth = -1;
  180|    347|    dane->pdpth = -1;
  181|    347|}
ssl_lib.c:ssl_reset_error_state:
 2247|  6.51k|{
 2248|  6.51k|    if (sc == NULL)
  ------------------
  |  Branch (2248:9): [True: 0, False: 6.51k]
  ------------------
 2249|      0|        return 1;
 2250|       |
 2251|  6.51k|    if (sc->statem.state == MSG_FLOW_ERROR) {
  ------------------
  |  Branch (2251:9): [True: 0, False: 6.51k]
  ------------------
 2252|      0|        sc->statem.error_state = ERROR_STATE_SSL;
 2253|      0|        return 0;
 2254|      0|    }
 2255|       |
 2256|  6.51k|    sc->statem.error_state = ERROR_STATE_NOERROR;
 2257|  6.51k|    return 1;
 2258|  6.51k|}
ssl_lib.c:ssl_update_error_state:
 2268|  6.51k|{
 2269|  6.51k|    unsigned long l;
 2270|       |
 2271|  6.51k|    if (sc == NULL)
  ------------------
  |  Branch (2271:9): [True: 0, False: 6.51k]
  ------------------
 2272|      0|        return;
 2273|       |
 2274|  6.51k|    if (sc->statem.state == MSG_FLOW_ERROR
  ------------------
  |  Branch (2274:9): [True: 0, False: 6.51k]
  ------------------
 2275|      0|        && sc->statem.error_state == ERROR_STATE_NOERROR) {
  ------------------
  |  Branch (2275:12): [True: 0, False: 0]
  ------------------
 2276|      0|        l = ERR_peek_error();
 2277|      0|        if (l == 0 || ERR_GET_LIB(l) == ERR_LIB_SYS)
  ------------------
  |  |   55|      0|#define ERR_LIB_SYS 2
  ------------------
  |  Branch (2277:13): [True: 0, False: 0]
  |  Branch (2277:23): [True: 0, False: 0]
  ------------------
 2278|      0|            sc->statem.error_state = ERROR_STATE_SYSCALL;
 2279|      0|        else
 2280|      0|            sc->statem.error_state = ERROR_STATE_SSL;
 2281|      0|    }
 2282|  6.51k|}
ssl_lib.c:ssl_check_allowed_versions:
  450|    694|{
  451|    694|    int minisdtls = 0, maxisdtls = 0;
  452|       |
  453|       |    /* Figure out if we're doing DTLS versions or TLS versions */
  454|    694|    if (min_version == DTLS1_BAD_VER
  ------------------
  |  |   30|  1.38k|#define DTLS1_BAD_VER 0x0100
  ------------------
  |  Branch (454:9): [True: 0, False: 694]
  ------------------
  455|    694|        || min_version >> 8 == DTLS1_VERSION_MAJOR)
  ------------------
  |  |   32|    694|#define DTLS1_VERSION_MAJOR 0xFE
  ------------------
  |  Branch (455:12): [True: 0, False: 694]
  ------------------
  456|      0|        minisdtls = 1;
  457|    694|    if (max_version == DTLS1_BAD_VER
  ------------------
  |  |   30|  1.38k|#define DTLS1_BAD_VER 0x0100
  ------------------
  |  Branch (457:9): [True: 0, False: 694]
  ------------------
  458|    694|        || max_version >> 8 == DTLS1_VERSION_MAJOR)
  ------------------
  |  |   32|    694|#define DTLS1_VERSION_MAJOR 0xFE
  ------------------
  |  Branch (458:12): [True: 0, False: 694]
  ------------------
  459|      0|        maxisdtls = 1;
  460|       |    /* A wildcard version of 0 could be DTLS or TLS. */
  461|    694|    if ((minisdtls && !maxisdtls && max_version != 0)
  ------------------
  |  Branch (461:10): [True: 0, False: 694]
  |  Branch (461:23): [True: 0, False: 0]
  |  Branch (461:37): [True: 0, False: 0]
  ------------------
  462|    694|        || (maxisdtls && !minisdtls && min_version != 0)) {
  ------------------
  |  Branch (462:13): [True: 0, False: 694]
  |  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|    694|    if (minisdtls || maxisdtls) {
  ------------------
  |  Branch (467:9): [True: 0, False: 694]
  |  Branch (467:22): [True: 0, False: 694]
  ------------------
  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|    694|    } else {
  495|       |        /* Regular TLS version checks. */
  496|    694|        if (min_version == 0)
  ------------------
  |  Branch (496:13): [True: 0, False: 694]
  ------------------
  497|      0|            min_version = TLS1_VERSION;
  ------------------
  |  |   24|      0|#define TLS1_VERSION 0x0301
  ------------------
  498|    694|        if (max_version == 0)
  ------------------
  |  Branch (498:13): [True: 694, False: 0]
  ------------------
  499|    694|            max_version = TLS1_3_VERSION;
  ------------------
  |  |   27|    694|#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_TLS1
  517|       |        if (min_version == TLS1_VERSION)
  518|       |            min_version = TLS1_1_VERSION;
  519|       |#endif
  520|       |#ifdef OPENSSL_NO_TLS1_1
  521|       |        if (min_version == TLS1_1_VERSION)
  522|       |            min_version = TLS1_2_VERSION;
  523|       |#endif
  524|       |#ifdef OPENSSL_NO_TLS1_2
  525|       |        if (min_version == TLS1_2_VERSION)
  526|       |            min_version = TLS1_3_VERSION;
  527|       |#endif
  528|       |        /* Done massaging versions; do the check. */
  529|    694|        if (0
  ------------------
  |  Branch (529:13): [Folded, False: 694]
  ------------------
  530|       |#ifdef OPENSSL_NO_TLS1
  531|       |            || (min_version <= TLS1_VERSION && TLS1_VERSION <= max_version)
  532|       |#endif
  533|       |#ifdef OPENSSL_NO_TLS1_1
  534|       |            || (min_version <= TLS1_1_VERSION && TLS1_1_VERSION <= max_version)
  535|       |#endif
  536|       |#ifdef OPENSSL_NO_TLS1_2
  537|       |            || (min_version <= TLS1_2_VERSION && TLS1_2_VERSION <= max_version)
  538|       |#endif
  539|       |#ifdef OPENSSL_NO_TLS1_3
  540|       |            || (min_version <= TLS1_3_VERSION && TLS1_3_VERSION <= max_version)
  541|       |#endif
  542|    694|        )
  543|      0|            return 0;
  544|    694|    }
  545|    694|    return 1;
  546|    694|}
ssl_lib.c:dane_ctx_final:
  150|    347|{
  151|    347|    OPENSSL_free(dctx->mdevp);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  152|    347|    dctx->mdevp = NULL;
  153|       |
  154|    347|    OPENSSL_free(dctx->mdord);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  155|       |    dctx->mdord = NULL;
  156|    347|    dctx->mdmax = 0;
  157|    347|}

TLS_client_method:
 2270|    347|    {                                                                      \
 2271|    347|        static const SSL_METHOD func_name##_data = {                       \
 2272|    347|            version,                                                       \
 2273|    347|            flags,                                                         \
 2274|    347|            mask,                                                          \
 2275|    347|            ossl_ssl_connection_new,                                       \
 2276|    347|            ossl_ssl_connection_free,                                      \
 2277|    347|            ossl_ssl_connection_reset,                                     \
 2278|    347|            tls1_new,                                                      \
 2279|    347|            tls1_clear,                                                    \
 2280|    347|            tls1_free,                                                     \
 2281|    347|            s_accept,                                                      \
 2282|    347|            s_connect,                                                     \
 2283|    347|            ssl3_read,                                                     \
 2284|    347|            ssl3_peek,                                                     \
 2285|    347|            ssl3_write,                                                    \
 2286|    347|            ssl3_shutdown,                                                 \
 2287|    347|            ssl3_renegotiate,                                              \
 2288|    347|            ssl3_renegotiate_check,                                        \
 2289|    347|            ssl3_read_bytes,                                               \
 2290|    347|            ssl3_write_bytes,                                              \
 2291|    347|            ssl3_dispatch_alert,                                           \
 2292|    347|            ssl3_ctrl,                                                     \
 2293|    347|            ssl3_ctx_ctrl,                                                 \
 2294|    347|            ssl3_get_cipher_by_char,                                       \
 2295|    347|            ssl3_put_cipher_by_char,                                       \
 2296|    347|            ssl3_pending,                                                  \
 2297|    347|            ssl3_num_ciphers,                                              \
 2298|    347|            ssl3_get_cipher,                                               \
 2299|    347|            tls1_default_timeout,                                          \
 2300|    347|            &enc_data,                                                     \
 2301|    347|            ssl_undefined_void_function,                                   \
 2302|    347|            ssl3_callback_ctrl,                                            \
 2303|    347|            ssl3_ctx_callback_ctrl,                                        \
 2304|    347|        };                                                                 \
 2305|    347|        return &func_name##_data;                                          \
 2306|    347|    }
tlsv1_3_client_method:
 2270|  3.76k|    {                                                                      \
 2271|  3.76k|        static const SSL_METHOD func_name##_data = {                       \
 2272|  3.76k|            version,                                                       \
 2273|  3.76k|            flags,                                                         \
 2274|  3.76k|            mask,                                                          \
 2275|  3.76k|            ossl_ssl_connection_new,                                       \
 2276|  3.76k|            ossl_ssl_connection_free,                                      \
 2277|  3.76k|            ossl_ssl_connection_reset,                                     \
 2278|  3.76k|            tls1_new,                                                      \
 2279|  3.76k|            tls1_clear,                                                    \
 2280|  3.76k|            tls1_free,                                                     \
 2281|  3.76k|            s_accept,                                                      \
 2282|  3.76k|            s_connect,                                                     \
 2283|  3.76k|            ssl3_read,                                                     \
 2284|  3.76k|            ssl3_peek,                                                     \
 2285|  3.76k|            ssl3_write,                                                    \
 2286|  3.76k|            ssl3_shutdown,                                                 \
 2287|  3.76k|            ssl3_renegotiate,                                              \
 2288|  3.76k|            ssl3_renegotiate_check,                                        \
 2289|  3.76k|            ssl3_read_bytes,                                               \
 2290|  3.76k|            ssl3_write_bytes,                                              \
 2291|  3.76k|            ssl3_dispatch_alert,                                           \
 2292|  3.76k|            ssl3_ctrl,                                                     \
 2293|  3.76k|            ssl3_ctx_ctrl,                                                 \
 2294|  3.76k|            ssl3_get_cipher_by_char,                                       \
 2295|  3.76k|            ssl3_put_cipher_by_char,                                       \
 2296|  3.76k|            ssl3_pending,                                                  \
 2297|  3.76k|            ssl3_num_ciphers,                                              \
 2298|  3.76k|            ssl3_get_cipher,                                               \
 2299|  3.76k|            tls1_default_timeout,                                          \
 2300|  3.76k|            &enc_data,                                                     \
 2301|  3.76k|            ssl_undefined_void_function,                                   \
 2302|  3.76k|            ssl3_callback_ctrl,                                            \
 2303|  3.76k|            ssl3_ctx_callback_ctrl,                                        \
 2304|  3.76k|        };                                                                 \
 2305|  3.76k|        return &func_name##_data;                                          \
 2306|  3.76k|    }
tlsv1_2_client_method:
 2270|  3.76k|    {                                                                      \
 2271|  3.76k|        static const SSL_METHOD func_name##_data = {                       \
 2272|  3.76k|            version,                                                       \
 2273|  3.76k|            flags,                                                         \
 2274|  3.76k|            mask,                                                          \
 2275|  3.76k|            ossl_ssl_connection_new,                                       \
 2276|  3.76k|            ossl_ssl_connection_free,                                      \
 2277|  3.76k|            ossl_ssl_connection_reset,                                     \
 2278|  3.76k|            tls1_new,                                                      \
 2279|  3.76k|            tls1_clear,                                                    \
 2280|  3.76k|            tls1_free,                                                     \
 2281|  3.76k|            s_accept,                                                      \
 2282|  3.76k|            s_connect,                                                     \
 2283|  3.76k|            ssl3_read,                                                     \
 2284|  3.76k|            ssl3_peek,                                                     \
 2285|  3.76k|            ssl3_write,                                                    \
 2286|  3.76k|            ssl3_shutdown,                                                 \
 2287|  3.76k|            ssl3_renegotiate,                                              \
 2288|  3.76k|            ssl3_renegotiate_check,                                        \
 2289|  3.76k|            ssl3_read_bytes,                                               \
 2290|  3.76k|            ssl3_write_bytes,                                              \
 2291|  3.76k|            ssl3_dispatch_alert,                                           \
 2292|  3.76k|            ssl3_ctrl,                                                     \
 2293|  3.76k|            ssl3_ctx_ctrl,                                                 \
 2294|  3.76k|            ssl3_get_cipher_by_char,                                       \
 2295|  3.76k|            ssl3_put_cipher_by_char,                                       \
 2296|  3.76k|            ssl3_pending,                                                  \
 2297|  3.76k|            ssl3_num_ciphers,                                              \
 2298|  3.76k|            ssl3_get_cipher,                                               \
 2299|  3.76k|            tls1_default_timeout,                                          \
 2300|  3.76k|            &enc_data,                                                     \
 2301|  3.76k|            ssl_undefined_void_function,                                   \
 2302|  3.76k|            ssl3_callback_ctrl,                                            \
 2303|  3.76k|            ssl3_ctx_callback_ctrl,                                        \
 2304|  3.76k|        };                                                                 \
 2305|  3.76k|        return &func_name##_data;                                          \
 2306|  3.76k|    }
tlsv1_1_client_method:
 2270|  3.76k|    {                                                                      \
 2271|  3.76k|        static const SSL_METHOD func_name##_data = {                       \
 2272|  3.76k|            version,                                                       \
 2273|  3.76k|            flags,                                                         \
 2274|  3.76k|            mask,                                                          \
 2275|  3.76k|            ossl_ssl_connection_new,                                       \
 2276|  3.76k|            ossl_ssl_connection_free,                                      \
 2277|  3.76k|            ossl_ssl_connection_reset,                                     \
 2278|  3.76k|            tls1_new,                                                      \
 2279|  3.76k|            tls1_clear,                                                    \
 2280|  3.76k|            tls1_free,                                                     \
 2281|  3.76k|            s_accept,                                                      \
 2282|  3.76k|            s_connect,                                                     \
 2283|  3.76k|            ssl3_read,                                                     \
 2284|  3.76k|            ssl3_peek,                                                     \
 2285|  3.76k|            ssl3_write,                                                    \
 2286|  3.76k|            ssl3_shutdown,                                                 \
 2287|  3.76k|            ssl3_renegotiate,                                              \
 2288|  3.76k|            ssl3_renegotiate_check,                                        \
 2289|  3.76k|            ssl3_read_bytes,                                               \
 2290|  3.76k|            ssl3_write_bytes,                                              \
 2291|  3.76k|            ssl3_dispatch_alert,                                           \
 2292|  3.76k|            ssl3_ctrl,                                                     \
 2293|  3.76k|            ssl3_ctx_ctrl,                                                 \
 2294|  3.76k|            ssl3_get_cipher_by_char,                                       \
 2295|  3.76k|            ssl3_put_cipher_by_char,                                       \
 2296|  3.76k|            ssl3_pending,                                                  \
 2297|  3.76k|            ssl3_num_ciphers,                                              \
 2298|  3.76k|            ssl3_get_cipher,                                               \
 2299|  3.76k|            tls1_default_timeout,                                          \
 2300|  3.76k|            &enc_data,                                                     \
 2301|  3.76k|            ssl_undefined_void_function,                                   \
 2302|  3.76k|            ssl3_callback_ctrl,                                            \
 2303|  3.76k|            ssl3_ctx_callback_ctrl,                                        \
 2304|  3.76k|        };                                                                 \
 2305|  3.76k|        return &func_name##_data;                                          \
 2306|  3.76k|    }
tlsv1_client_method:
 2270|  3.76k|    {                                                                      \
 2271|  3.76k|        static const SSL_METHOD func_name##_data = {                       \
 2272|  3.76k|            version,                                                       \
 2273|  3.76k|            flags,                                                         \
 2274|  3.76k|            mask,                                                          \
 2275|  3.76k|            ossl_ssl_connection_new,                                       \
 2276|  3.76k|            ossl_ssl_connection_free,                                      \
 2277|  3.76k|            ossl_ssl_connection_reset,                                     \
 2278|  3.76k|            tls1_new,                                                      \
 2279|  3.76k|            tls1_clear,                                                    \
 2280|  3.76k|            tls1_free,                                                     \
 2281|  3.76k|            s_accept,                                                      \
 2282|  3.76k|            s_connect,                                                     \
 2283|  3.76k|            ssl3_read,                                                     \
 2284|  3.76k|            ssl3_peek,                                                     \
 2285|  3.76k|            ssl3_write,                                                    \
 2286|  3.76k|            ssl3_shutdown,                                                 \
 2287|  3.76k|            ssl3_renegotiate,                                              \
 2288|  3.76k|            ssl3_renegotiate_check,                                        \
 2289|  3.76k|            ssl3_read_bytes,                                               \
 2290|  3.76k|            ssl3_write_bytes,                                              \
 2291|  3.76k|            ssl3_dispatch_alert,                                           \
 2292|  3.76k|            ssl3_ctrl,                                                     \
 2293|  3.76k|            ssl3_ctx_ctrl,                                                 \
 2294|  3.76k|            ssl3_get_cipher_by_char,                                       \
 2295|  3.76k|            ssl3_put_cipher_by_char,                                       \
 2296|  3.76k|            ssl3_pending,                                                  \
 2297|  3.76k|            ssl3_num_ciphers,                                              \
 2298|  3.76k|            ssl3_get_cipher,                                               \
 2299|  3.76k|            tls1_default_timeout,                                          \
 2300|  3.76k|            &enc_data,                                                     \
 2301|  3.76k|            ssl_undefined_void_function,                                   \
 2302|  3.76k|            ssl3_callback_ctrl,                                            \
 2303|  3.76k|            ssl3_ctx_callback_ctrl,                                        \
 2304|  3.76k|        };                                                                 \
 2305|  3.76k|        return &func_name##_data;                                          \
 2306|  3.76k|    }
statem_lib.c:ssl_tsan_counter:
 2947|    342|{
 2948|    342|    if (ssl_tsan_lock(ctx)) {
  ------------------
  |  Branch (2948:9): [True: 342, False: 0]
  ------------------
 2949|       |        tsan_counter(stat);
  ------------------
  |  |  167|    342|#define tsan_counter(ptr) tsan_add((ptr), 1)
  |  |  ------------------
  |  |  |  |   63|    342|#define tsan_add(ptr, n) atomic_fetch_add_explicit((ptr), (n), memory_order_relaxed)
  |  |  ------------------
  ------------------
 2950|    342|        ssl_tsan_unlock(ctx);
 2951|    342|    }
 2952|    342|}
statem_lib.c:ssl_tsan_lock:
 2930|    342|{
 2931|       |#ifdef TSAN_REQUIRES_LOCKING
 2932|       |    if (!CRYPTO_THREAD_write_lock(ctx->tsan_lock))
 2933|       |        return 0;
 2934|       |#endif
 2935|    342|    return 1;
 2936|    342|}
statem_lib.c:ssl_tsan_unlock:
 2939|    342|{
 2940|       |#ifdef TSAN_REQUIRES_LOCKING
 2941|       |    CRYPTO_THREAD_unlock(ctx->tsan_lock);
 2942|       |#endif
 2943|    342|}

ssl_ctx_system_config:
  130|    347|{
  131|    347|    return ssl_do_config(NULL, ctx, NULL, 1);
  132|    347|}
ssl_mcnf.c:ssl_do_config:
   37|    347|{
   38|    347|    SSL_CONF_CTX *cctx = NULL;
   39|    347|    size_t i, idx, cmd_count;
   40|    347|    int err = 1;
   41|    347|    unsigned int flags;
   42|    347|    unsigned int conf_diagnostics = 0;
   43|    347|    const SSL_METHOD *meth;
   44|    347|    const SSL_CONF_CMD *cmds;
   45|    347|    OSSL_LIB_CTX *libctx = NULL, *prev_libctx = NULL;
   46|    347|    CONF_IMODULE *imod = NULL;
   47|       |
   48|    347|    if (s == NULL && ctx == NULL) {
  ------------------
  |  Branch (48:9): [True: 347, False: 0]
  |  Branch (48:22): [True: 0, False: 347]
  ------------------
   49|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
   50|      0|        goto err;
   51|      0|    }
   52|    347|    if (name == NULL && system)
  ------------------
  |  Branch (52:9): [True: 347, False: 0]
  |  Branch (52:25): [True: 347, False: 0]
  ------------------
   53|    347|        name = "system_default";
   54|       |
   55|    347|    if (name == NULL) {
  ------------------
  |  Branch (55:9): [True: 0, False: 347]
  ------------------
   56|      0|        ERR_raise_data(ERR_LIB_SSL, SSL_R_INVALID_CONFIGURATION_NAME,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_SSL, SSL_R_INVALID_CONFIGURATION_NAME,
  ------------------
  |  |   70|      0|#define ERR_LIB_SSL 20
  ------------------
                      ERR_raise_data(ERR_LIB_SSL, SSL_R_INVALID_CONFIGURATION_NAME,
  ------------------
  |  |  151|      0|#define SSL_R_INVALID_CONFIGURATION_NAME 113
  ------------------
   57|      0|            "name not specified (name == NULL)");
   58|      0|        goto err;
   59|      0|    }
   60|       |
   61|    347|    libctx = s != NULL ? s->ctx->libctx : ctx->libctx;
  ------------------
  |  Branch (61:14): [True: 0, False: 347]
  ------------------
   62|    347|    imod = ssl_do_lookup_module(libctx);
   63|    347|    if (!conf_ssl_name_find(imod, name, &idx)) {
  ------------------
  |  Branch (63:9): [True: 347, False: 0]
  ------------------
   64|    347|        if (!system)
  ------------------
  |  Branch (64:13): [True: 0, False: 347]
  ------------------
   65|      0|            ERR_raise_data(ERR_LIB_SSL, SSL_R_INVALID_CONFIGURATION_NAME,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                          ERR_raise_data(ERR_LIB_SSL, SSL_R_INVALID_CONFIGURATION_NAME,
  ------------------
  |  |   70|      0|#define ERR_LIB_SSL 20
  ------------------
                          ERR_raise_data(ERR_LIB_SSL, SSL_R_INVALID_CONFIGURATION_NAME,
  ------------------
  |  |  151|      0|#define SSL_R_INVALID_CONFIGURATION_NAME 113
  ------------------
   66|      0|                "name=%s", name);
   67|    347|        goto err;
   68|    347|    }
   69|       |
   70|      0|    cmds = conf_ssl_get(imod, idx, &name, &cmd_count);
   71|      0|    flags = SSL_CONF_FLAG_FILE;
  ------------------
  |  |  626|      0|#define SSL_CONF_FLAG_FILE 0x2
  ------------------
   72|      0|    if (!system)
  ------------------
  |  Branch (72:9): [True: 0, False: 0]
  ------------------
   73|      0|        flags |= SSL_CONF_FLAG_CERTIFICATE | SSL_CONF_FLAG_REQUIRE_PRIVATE;
  ------------------
  |  |  630|      0|#define SSL_CONF_FLAG_CERTIFICATE 0x20
  ------------------
                      flags |= SSL_CONF_FLAG_CERTIFICATE | SSL_CONF_FLAG_REQUIRE_PRIVATE;
  ------------------
  |  |  631|      0|#define SSL_CONF_FLAG_REQUIRE_PRIVATE 0x40
  ------------------
   74|       |
   75|      0|    cctx = SSL_CONF_CTX_new();
   76|      0|    if (cctx == NULL) {
  ------------------
  |  Branch (76:9): [True: 0, False: 0]
  ------------------
   77|       |        /* this is a fatal error, always report */
   78|      0|        system = 0;
   79|      0|        goto err;
   80|      0|    }
   81|       |
   82|      0|    if (s != NULL) {
  ------------------
  |  Branch (82:9): [True: 0, False: 0]
  ------------------
   83|      0|        meth = s->method;
   84|      0|        SSL_CONF_CTX_set_ssl(cctx, s);
   85|      0|        libctx = s->ctx->libctx;
   86|      0|    } else {
   87|      0|        meth = ctx->method;
   88|      0|        SSL_CONF_CTX_set_ssl_ctx(cctx, ctx);
   89|      0|        libctx = ctx->libctx;
   90|      0|    }
   91|       |
   92|      0|    conf_diagnostics = OSSL_LIB_CTX_get_conf_diagnostics(libctx);
   93|      0|    if (conf_diagnostics)
  ------------------
  |  Branch (93:9): [True: 0, False: 0]
  ------------------
   94|      0|        flags |= SSL_CONF_FLAG_SHOW_ERRORS;
  ------------------
  |  |  629|      0|#define SSL_CONF_FLAG_SHOW_ERRORS 0x10
  ------------------
   95|      0|    if (meth->ssl_accept != ssl_undefined_function)
  ------------------
  |  Branch (95:9): [True: 0, False: 0]
  ------------------
   96|      0|        flags |= SSL_CONF_FLAG_SERVER;
  ------------------
  |  |  628|      0|#define SSL_CONF_FLAG_SERVER 0x8
  ------------------
   97|      0|    if (meth->ssl_connect != ssl_undefined_function)
  ------------------
  |  Branch (97:9): [True: 0, False: 0]
  ------------------
   98|      0|        flags |= SSL_CONF_FLAG_CLIENT;
  ------------------
  |  |  627|      0|#define SSL_CONF_FLAG_CLIENT 0x4
  ------------------
   99|      0|    SSL_CONF_CTX_set_flags(cctx, flags);
  100|      0|    prev_libctx = OSSL_LIB_CTX_set0_default(libctx);
  101|      0|    err = 0;
  102|      0|    for (i = 0; i < cmd_count; i++) {
  ------------------
  |  Branch (102:17): [True: 0, False: 0]
  ------------------
  103|      0|        char *cmdstr, *arg;
  104|      0|        int rv;
  105|       |
  106|      0|        conf_ssl_get_cmd(cmds, i, &cmdstr, &arg);
  107|      0|        rv = SSL_CONF_cmd(cctx, cmdstr, arg);
  108|      0|        if (rv <= 0)
  ------------------
  |  Branch (108:13): [True: 0, False: 0]
  ------------------
  109|      0|            ++err;
  110|      0|    }
  111|      0|    if (!SSL_CONF_CTX_finish(cctx))
  ------------------
  |  Branch (111:9): [True: 0, False: 0]
  ------------------
  112|      0|        ++err;
  113|    347|err:
  114|    347|    OSSL_LIB_CTX_set0_default(prev_libctx);
  115|    347|    SSL_CONF_CTX_free(cctx);
  116|    347|    return err == 0 || (system && !conf_diagnostics);
  ------------------
  |  Branch (116:12): [True: 0, False: 347]
  |  Branch (116:25): [True: 347, False: 0]
  |  Branch (116:35): [True: 347, False: 0]
  ------------------
  117|      0|}
ssl_mcnf.c:ssl_do_lookup_module:
   26|    347|{
   27|    347|    CONF_IMODULE *m = OSSL_LIB_CTX_get_data(libctx, OSSL_LIB_CTX_SSL_CONF_IMODULE);
  ------------------
  |  |  120|    347|#define OSSL_LIB_CTX_SSL_CONF_IMODULE 23
  ------------------
   28|       |
   29|    347|    if (m != NULL)
  ------------------
  |  Branch (29:9): [True: 0, False: 347]
  ------------------
   30|      0|        return m;
   31|       |
   32|    347|    libctx = OSSL_LIB_CTX_get0_global_default();
   33|    347|    return OSSL_LIB_CTX_get_data(libctx, OSSL_LIB_CTX_SSL_CONF_IMODULE);
  ------------------
  |  |  120|    347|#define OSSL_LIB_CTX_SSL_CONF_IMODULE 23
  ------------------
   34|    347|}

ssl_session_calculate_timeout:
   48|    684|{
   49|    684|    ss->calc_timeout = ossl_time_add(ss->time, ss->timeout);
   50|    684|}
SSL_SESSION_new:
  102|    342|{
  103|    342|    SSL_SESSION *ss;
  104|       |
  105|    342|    if (!OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS, NULL))
  ------------------
  |  | 2813|    342|#define OPENSSL_INIT_LOAD_SSL_STRINGS 0x00200000L
  ------------------
  |  Branch (105:9): [True: 0, False: 342]
  ------------------
  106|      0|        return NULL;
  107|       |
  108|    342|    ss = OPENSSL_zalloc(sizeof(*ss));
  ------------------
  |  |  109|    342|    CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  109|    342|    if (ss == NULL)
  ------------------
  |  Branch (109:9): [True: 0, False: 342]
  ------------------
  110|      0|        return NULL;
  111|       |
  112|    342|    ss->ext.max_fragment_len_mode = TLSEXT_max_fragment_length_UNSPECIFIED;
  ------------------
  |  |  242|    342|#define TLSEXT_max_fragment_length_UNSPECIFIED 255
  ------------------
  113|    342|    ss->verify_result = 1; /* avoid 0 (= X509_V_OK) just in case */
  114|       |    /* 5 minute timeout by default */
  115|    342|    ss->timeout = ossl_seconds2time(60 * 5 + 4);
  ------------------
  |  |   42|    342|#define ossl_seconds2time(s) ossl_ticks2time((s) * OSSL_TIME_SECOND)
  |  |  ------------------
  |  |  |  |   31|    342|#define OSSL_TIME_SECOND ((uint64_t)1000000000)
  |  |  ------------------
  ------------------
  116|    342|    ss->time = ossl_time_now();
  117|    342|    ssl_session_calculate_timeout(ss);
  118|    342|    if (!CRYPTO_NEW_REF(&ss->references, 1)) {
  ------------------
  |  Branch (118:9): [True: 0, False: 342]
  ------------------
  119|      0|        OPENSSL_free(ss);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  120|      0|        return NULL;
  121|      0|    }
  122|       |
  123|    342|    if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_SSL_SESSION, ss, &ss->ex_data)) {
  ------------------
  |  |  253|    342|#define CRYPTO_EX_INDEX_SSL_SESSION 2
  ------------------
  |  Branch (123:9): [True: 0, False: 342]
  ------------------
  124|      0|        CRYPTO_FREE_REF(&ss->references);
  125|      0|        OPENSSL_free(ss);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  126|      0|        return NULL;
  127|      0|    }
  128|    342|    return ss;
  129|    342|}
ssl_get_new_session:
  434|    342|{
  435|       |    /* This gets used by clients and servers. */
  436|       |
  437|    342|    SSL_SESSION *ss = NULL;
  438|       |
  439|    342|    if ((ss = SSL_SESSION_new()) == NULL) {
  ------------------
  |  Branch (439:9): [True: 0, False: 342]
  ------------------
  440|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_SSL_LIB);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  441|      0|        return 0;
  442|      0|    }
  443|       |
  444|       |    /* If the context has a default timeout, use it */
  445|    342|    if (ossl_time_is_zero(s->session_ctx->session_timeout))
  ------------------
  |  Branch (445:9): [True: 0, False: 342]
  ------------------
  446|      0|        ss->timeout = SSL_CONNECTION_GET_SSL(s)->method->get_timeout();
  ------------------
  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
  447|    342|    else
  448|    342|        ss->timeout = s->session_ctx->session_timeout;
  449|    342|    ssl_session_calculate_timeout(ss);
  450|       |
  451|    342|    SSL_SESSION_free(s->session);
  452|    342|    s->session = NULL;
  453|       |
  454|    342|    if (session) {
  ------------------
  |  Branch (454:9): [True: 0, False: 342]
  ------------------
  455|      0|        if (SSL_CONNECTION_IS_TLS13(s)) {
  ------------------
  |  |  273|      0|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  266|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2196|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (273:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  274|      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 (274:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  275|      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 (275:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  456|       |            /*
  457|       |             * We generate the session id while constructing the
  458|       |             * NewSessionTicket in TLSv1.3.
  459|       |             */
  460|      0|            ss->session_id_length = 0;
  461|      0|        } else if (!ssl_generate_session_id(s, ss)) {
  ------------------
  |  Branch (461:20): [True: 0, False: 0]
  ------------------
  462|       |            /* SSLfatal() already called */
  463|      0|            SSL_SESSION_free(ss);
  464|      0|            return 0;
  465|      0|        }
  466|       |
  467|    342|    } else {
  468|    342|        ss->session_id_length = 0;
  469|    342|    }
  470|       |
  471|    342|    if (s->sid_ctx_length > sizeof(ss->sid_ctx)) {
  ------------------
  |  Branch (471:9): [True: 0, False: 342]
  ------------------
  472|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  473|      0|        SSL_SESSION_free(ss);
  474|      0|        return 0;
  475|      0|    }
  476|    342|    memcpy(ss->sid_ctx, s->sid_ctx, s->sid_ctx_length);
  477|    342|    ss->sid_ctx_length = s->sid_ctx_length;
  478|    342|    s->session = ss;
  479|    342|    ss->ssl_version = s->version;
  480|    342|    ss->verify_result = X509_V_OK;
  ------------------
  |  |  312|    342|#define X509_V_OK 0
  ------------------
  481|       |
  482|       |    /* If client supports extended master secret set it in session */
  483|    342|    if (s->s3.flags & TLS1_FLAGS_RECEIVED_EXTMS)
  ------------------
  |  |  300|    342|#define TLS1_FLAGS_RECEIVED_EXTMS 0x0200
  ------------------
  |  Branch (483:9): [True: 0, False: 342]
  ------------------
  484|      0|        ss->flags |= SSL_SESS_FLAG_EXTMS;
  ------------------
  |  |  577|      0|#define SSL_SESS_FLAG_EXTMS 0x1
  ------------------
  485|       |
  486|    342|    return 1;
  487|    342|}
SSL_SESSION_free:
  869|  2.06k|{
  870|  2.06k|    int i;
  871|       |
  872|  2.06k|    if (ss == NULL)
  ------------------
  |  Branch (872:9): [True: 1.72k, False: 342]
  ------------------
  873|  1.72k|        return;
  874|    342|    CRYPTO_DOWN_REF(&ss->references, &i);
  875|    342|    REF_PRINT_COUNT("SSL_SESSION", i, ss);
  ------------------
  |  |  301|    342|    REF_PRINT_EX(text, val, (void *)object)
  |  |  ------------------
  |  |  |  |  299|    342|    OSSL_TRACE3(REF_COUNT, "%p:%4d:%s\n", (object), (count), (text));
  |  |  |  |  ------------------
  |  |  |  |  |  |  295|    342|    OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|    342|#define OSSL_TRACEV(category, args) ((void)0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  876|    342|    if (i > 0)
  ------------------
  |  Branch (876:9): [True: 0, False: 342]
  ------------------
  877|      0|        return;
  878|    342|    REF_ASSERT_ISNT(i < 0);
  ------------------
  |  |  293|    342|    (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0)
  |  |  ------------------
  |  |  |  Branch (293:12): [True: 0, False: 342]
  |  |  ------------------
  ------------------
  879|       |
  880|    342|    CRYPTO_free_ex_data(CRYPTO_EX_INDEX_SSL_SESSION, ss, &ss->ex_data);
  ------------------
  |  |  253|    342|#define CRYPTO_EX_INDEX_SSL_SESSION 2
  ------------------
  881|       |
  882|    342|    OPENSSL_cleanse(ss->master_key, sizeof(ss->master_key));
  883|    342|    OPENSSL_cleanse(ss->session_id, sizeof(ss->session_id));
  884|    342|    X509_free(ss->peer);
  885|    342|    EVP_PKEY_free(ss->peer_rpk);
  886|    342|    OSSL_STACK_OF_X509_free(ss->peer_chain);
  887|    342|    OPENSSL_free(ss->ext.hostname);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  888|    342|    OPENSSL_free(ss->ext.tick);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  889|    342|#ifndef OPENSSL_NO_PSK
  890|    342|    OPENSSL_free(ss->psk_identity_hint);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  891|    342|    OPENSSL_free(ss->psk_identity);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  892|    342|#endif
  893|    342|#ifndef OPENSSL_NO_SRP
  894|    342|    OPENSSL_free(ss->srp_username);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  895|    342|#endif
  896|    342|    OPENSSL_free(ss->ext.alpn_selected);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  897|    342|    OPENSSL_free(ss->ticket_appdata);
  ------------------
  |  |  132|    342|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  898|    342|    CRYPTO_FREE_REF(&ss->references);
  899|    342|    OPENSSL_clear_free(ss, sizeof(*ss));
  ------------------
  |  |  130|    342|    CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  900|    342|}
SSL_CTX_flush_sessions_ex:
 1235|    347|{
 1236|    347|    STACK_OF(SSL_SESSION) *sk;
  ------------------
  |  |   33|    347|#define STACK_OF(type) struct stack_st_##type
  ------------------
 1237|    347|    SSL_SESSION *current;
 1238|    347|    unsigned long i;
 1239|    347|    const OSSL_TIME timeout = ossl_time_from_time_t(t);
 1240|       |
 1241|    347|    if (!CRYPTO_THREAD_write_lock(s->lock))
  ------------------
  |  Branch (1241:9): [True: 0, False: 347]
  ------------------
 1242|      0|        return;
 1243|       |
 1244|    347|    sk = sk_SSL_SESSION_new_null();
 1245|    347|    i = lh_SSL_SESSION_get_down_load(s->sessions);
 1246|    347|    lh_SSL_SESSION_set_down_load(s->sessions, 0);
 1247|       |
 1248|       |    /*
 1249|       |     * Iterate over the list from the back (oldest), and stop
 1250|       |     * when a session can no longer be removed.
 1251|       |     * Add the session to a temporary list to be freed outside
 1252|       |     * the SSL_CTX lock.
 1253|       |     * But still do the remove_session_cb() within the lock.
 1254|       |     */
 1255|    347|    while (s->session_cache_tail != NULL) {
  ------------------
  |  Branch (1255:12): [True: 0, False: 347]
  ------------------
 1256|      0|        current = s->session_cache_tail;
 1257|      0|        if (t == 0 || sess_timedout(timeout, current)) {
  ------------------
  |  Branch (1257:13): [True: 0, False: 0]
  |  Branch (1257:23): [True: 0, False: 0]
  ------------------
 1258|      0|            lh_SSL_SESSION_delete(s->sessions, current);
 1259|      0|            SSL_SESSION_list_remove(s, current);
 1260|      0|            current->not_resumable = 1;
 1261|      0|            if (s->remove_session_cb != NULL)
  ------------------
  |  Branch (1261:17): [True: 0, False: 0]
  ------------------
 1262|      0|                s->remove_session_cb(s, current);
 1263|       |            /*
 1264|       |             * Throw the session on a stack, it's entirely plausible
 1265|       |             * that while freeing outside the critical section, the
 1266|       |             * session could be re-added, so avoid using the next/prev
 1267|       |             * pointers. If the stack failed to create, or the session
 1268|       |             * couldn't be put on the stack, just free it here
 1269|       |             */
 1270|      0|            if (sk == NULL || !sk_SSL_SESSION_push(sk, current))
  ------------------
  |  Branch (1270:17): [True: 0, False: 0]
  |  Branch (1270:31): [True: 0, False: 0]
  ------------------
 1271|      0|                SSL_SESSION_free(current);
 1272|      0|        } else {
 1273|      0|            break;
 1274|      0|        }
 1275|      0|    }
 1276|       |
 1277|    347|    lh_SSL_SESSION_set_down_load(s->sessions, i);
 1278|    347|    CRYPTO_THREAD_unlock(s->lock);
 1279|       |
 1280|    347|    sk_SSL_SESSION_pop_free(sk, SSL_SESSION_free);
 1281|    347|}
ssl_clear_bad_session:
 1284|  1.03k|{
 1285|  1.03k|    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)))) {
  ------------------
  |  |  216|    342|#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|    342|#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 (1285:9): [True: 342, False: 689]
  |  Branch (1285:33): [True: 342, False: 0]
  |  Branch (1285:73): [True: 342, False: 0]
  |  Branch (1285:115): [True: 0, False: 0]
  ------------------
 1286|      0|        SSL_CTX_remove_session(s->session_ctx, s->session);
 1287|      0|        return 1;
 1288|      0|    } else
 1289|  1.03k|        return 0;
 1290|  1.03k|}
SSL_CTX_sess_set_new_cb:
 1374|    347|{
 1375|    347|    ctx->new_session_cb = cb;
 1376|    347|}

ossl_ech_2bcompressed:
  551|  21.2k|{
  552|  21.2k|    const size_t nexts = OSSL_NELEM(ext_defs);
  ------------------
  |  |   14|  21.2k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  553|       |
  554|       |#ifdef DUPEMALL
  555|       |    return 0;
  556|       |#endif
  557|  21.2k|    if (ind >= nexts)
  ------------------
  |  Branch (557:9): [True: 0, False: 21.2k]
  ------------------
  558|      0|        return -1;
  559|  21.2k|    return ext_defs[ind].ech_handling == OSSL_ECH_HANDLING_COMPRESS;
  ------------------
  |  |   30|  21.2k|#define OSSL_ECH_HANDLING_COMPRESS 2 /* compress outer value into inner */
  ------------------
  560|  21.2k|}
extension_is_relevant:
  746|  10.6k|{
  747|  10.6k|    int is_tls13;
  748|       |
  749|       |    /*
  750|       |     * For HRR we haven't selected the version yet but we know it will be
  751|       |     * TLSv1.3
  752|       |     */
  753|  10.6k|    if ((thisctx & SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST) != 0)
  ------------------
  |  |  305|  10.6k|#define SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST 0x00800
  ------------------
  |  Branch (753:9): [True: 0, False: 10.6k]
  ------------------
  754|      0|        is_tls13 = 1;
  755|  10.6k|    else
  756|  10.6k|        is_tls13 = SSL_CONNECTION_IS_TLS13(s);
  ------------------
  |  |  273|  10.6k|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  266|  21.2k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  10.6k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  |  |  ------------------
  |  |  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2196|  10.6k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (273:37): [True: 10.6k, False: 0]
  |  |  ------------------
  |  |  274|  10.6k|    && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|  10.6k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|  21.2k|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  |  |  |  Branch (274:8): [True: 10.6k, False: 0]
  |  |  ------------------
  |  |  275|  10.6k|    && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   27|  10.6k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   40|  10.6k|#define TLS_ANY_VERSION 0x10000
  |  |  ------------------
  |  |  |  Branch (275:8): [True: 0, False: 10.6k]
  |  |  ------------------
  ------------------
  757|       |
  758|  10.6k|    if ((SSL_CONNECTION_IS_DTLS(s)
  ------------------
  |  |  266|  21.2k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  10.6k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|  10.6k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 0, False: 10.6k]
  |  |  ------------------
  ------------------
  759|      0|            && (extctx & SSL_EXT_TLS_IMPLEMENTATION_ONLY) != 0)
  ------------------
  |  |  291|      0|#define SSL_EXT_TLS_IMPLEMENTATION_ONLY 0x00004
  ------------------
  |  Branch (759:16): [True: 0, False: 0]
  ------------------
  760|       |        /*
  761|       |         * Note that SSL_IS_TLS13() means "TLS 1.3 has been negotiated",
  762|       |         * which is never true when generating the ClientHello.
  763|       |         * However, version negotiation *has* occurred by the time the
  764|       |         * ClientHello extensions are being parsed.
  765|       |         * Be careful to allow TLS 1.3-only extensions when generating
  766|       |         * the ClientHello.
  767|       |         */
  768|  10.6k|        || (is_tls13 && (extctx & SSL_EXT_TLS1_2_AND_BELOW_ONLY) != 0)
  ------------------
  |  |  295|      0|#define SSL_EXT_TLS1_2_AND_BELOW_ONLY 0x00010
  ------------------
  |  Branch (768:13): [True: 0, False: 10.6k]
  |  Branch (768:25): [True: 0, False: 0]
  ------------------
  769|  10.6k|        || (!is_tls13 && (extctx & SSL_EXT_TLS1_3_ONLY) != 0
  ------------------
  |  |  297|  10.6k|#define SSL_EXT_TLS1_3_ONLY 0x00020
  ------------------
  |  Branch (769:13): [True: 10.6k, False: 0]
  |  Branch (769:26): [True: 3.42k, False: 7.18k]
  ------------------
  770|  3.42k|            && (thisctx & SSL_EXT_CLIENT_HELLO) == 0)
  ------------------
  |  |  300|  3.42k|#define SSL_EXT_CLIENT_HELLO 0x00080
  ------------------
  |  Branch (770:16): [True: 0, False: 3.42k]
  ------------------
  771|  10.6k|        || (s->server && !is_tls13 && (extctx & SSL_EXT_TLS1_3_ONLY) != 0)
  ------------------
  |  |  297|      0|#define SSL_EXT_TLS1_3_ONLY 0x00020
  ------------------
  |  Branch (771:13): [True: 0, False: 10.6k]
  |  Branch (771:26): [True: 0, False: 0]
  |  Branch (771:39): [True: 0, False: 0]
  ------------------
  772|  10.6k|        || (s->hit && (extctx & SSL_EXT_IGNORE_ON_RESUMPTION) != 0))
  ------------------
  |  |  299|      0|#define SSL_EXT_IGNORE_ON_RESUMPTION 0x00040
  ------------------
  |  Branch (772:13): [True: 0, False: 10.6k]
  |  Branch (772:23): [True: 0, False: 0]
  ------------------
  773|      0|        return 0;
  774|  10.6k|    return 1;
  775|  10.6k|}
should_add_extension:
 1016|  10.6k|{
 1017|       |    /* Skip if not relevant for our context */
 1018|  10.6k|    if ((extctx & thisctx) == 0)
  ------------------
  |  Branch (1018:9): [True: 0, False: 10.6k]
  ------------------
 1019|      0|        return 0;
 1020|       |
 1021|       |    /* Check if this extension is defined for our protocol. If not, skip */
 1022|  10.6k|    if (!extension_is_relevant(s, extctx, thisctx)
  ------------------
  |  Branch (1022:9): [True: 0, False: 10.6k]
  ------------------
 1023|  10.6k|        || ((extctx & SSL_EXT_TLS1_3_ONLY) != 0
  ------------------
  |  |  297|  10.6k|#define SSL_EXT_TLS1_3_ONLY 0x00020
  ------------------
  |  Branch (1023:13): [True: 3.42k, False: 7.18k]
  ------------------
 1024|  3.42k|            && (thisctx & SSL_EXT_CLIENT_HELLO) != 0
  ------------------
  |  |  300|  3.42k|#define SSL_EXT_CLIENT_HELLO 0x00080
  ------------------
  |  Branch (1024:16): [True: 3.42k, False: 0]
  ------------------
 1025|  3.42k|            && (SSL_CONNECTION_IS_DTLS(s) || max_version < TLS1_3_VERSION)))
  ------------------
  |  |  266|  6.84k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  3.42k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|  3.42k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 0, False: 3.42k]
  |  |  ------------------
  ------------------
                          && (SSL_CONNECTION_IS_DTLS(s) || max_version < TLS1_3_VERSION)))
  ------------------
  |  |   27|  3.42k|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1025:46): [True: 0, False: 3.42k]
  ------------------
 1026|      0|        return 0;
 1027|       |
 1028|  10.6k|    return 1;
 1029|  10.6k|}
tls_construct_extensions:
 1042|    342|{
 1043|    342|    size_t i;
 1044|    342|    int min_version, max_version = 0, reason;
 1045|    342|    const EXTENSION_DEFINITION *thisexd;
 1046|    342|    int for_comp = (context & SSL_EXT_TLS1_3_CERTIFICATE_COMPRESSION) != 0;
  ------------------
  |  |  309|    342|#define SSL_EXT_TLS1_3_CERTIFICATE_COMPRESSION 0x08000
  ------------------
 1047|    342|#ifndef OPENSSL_NO_ECH
 1048|    342|    int pass;
 1049|    342|#endif
 1050|       |
 1051|    342|    if (!WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|    684|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (1051:9): [True: 0, False: 342]
  ------------------
 1052|       |        /*
 1053|       |         * If extensions are of zero length then we don't even add the
 1054|       |         * extensions length bytes to a ClientHello/ServerHello
 1055|       |         * (for non-TLSv1.3).
 1056|       |         */
 1057|    342|        || ((context & (SSL_EXT_CLIENT_HELLO | SSL_EXT_TLS1_2_SERVER_HELLO)) != 0
  ------------------
  |  |  300|    342|#define SSL_EXT_CLIENT_HELLO 0x00080
  ------------------
                      || ((context & (SSL_EXT_CLIENT_HELLO | SSL_EXT_TLS1_2_SERVER_HELLO)) != 0
  ------------------
  |  |  302|    342|#define SSL_EXT_TLS1_2_SERVER_HELLO 0x00100
  ------------------
  |  Branch (1057:13): [True: 342, False: 0]
  ------------------
 1058|    342|            && !WPACKET_set_flags(pkt,
  ------------------
  |  Branch (1058:16): [True: 0, False: 342]
  ------------------
 1059|    342|                WPACKET_FLAGS_ABANDON_ON_ZERO_LENGTH))) {
  ------------------
  |  |  723|    342|#define WPACKET_FLAGS_ABANDON_ON_ZERO_LENGTH 2
  ------------------
 1060|      0|        if (!for_comp)
  ------------------
  |  Branch (1060:13): [True: 0, False: 0]
  ------------------
 1061|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1062|      0|        return 0;
 1063|      0|    }
 1064|       |
 1065|    342|    if ((context & SSL_EXT_CLIENT_HELLO) != 0) {
  ------------------
  |  |  300|    342|#define SSL_EXT_CLIENT_HELLO 0x00080
  ------------------
  |  Branch (1065:9): [True: 342, False: 0]
  ------------------
 1066|    342|        reason = ssl_get_min_max_version(s, &min_version, &max_version, NULL);
 1067|    342|        if (reason != 0) {
  ------------------
  |  Branch (1067:13): [True: 0, False: 342]
  ------------------
 1068|      0|            if (!for_comp)
  ------------------
  |  Branch (1068:17): [True: 0, False: 0]
  ------------------
 1069|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, reason);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1070|      0|            return 0;
 1071|      0|        }
 1072|    342|    }
 1073|       |
 1074|       |    /* Add custom extensions first */
 1075|    342|#ifndef OPENSSL_NO_ECH
 1076|    342|    if ((context & SSL_EXT_CLIENT_HELLO) != 0 && s->ext.ech.attempted == 0)
  ------------------
  |  |  300|    342|#define SSL_EXT_CLIENT_HELLO 0x00080
  ------------------
  |  Branch (1076:9): [True: 342, False: 0]
  |  Branch (1076:50): [True: 342, False: 0]
  ------------------
 1077|       |        /* On the server side with initialise during ClientHello parsing */
 1078|    342|        custom_ext_init(&s->cert->custext);
 1079|       |#else
 1080|       |    if ((context & SSL_EXT_CLIENT_HELLO) != 0)
 1081|       |        /* On the server side with initialise during ClientHello parsing */
 1082|       |        custom_ext_init(&s->cert->custext);
 1083|       |#endif
 1084|    342|    if (!custom_ext_add(s, context, pkt, x, chainidx, max_version)) {
  ------------------
  |  Branch (1084:9): [True: 0, False: 342]
  ------------------
 1085|       |        /* SSLfatal() already called */
 1086|      0|        return 0;
 1087|      0|    }
 1088|       |
 1089|    342|#ifndef OPENSSL_NO_ECH
 1090|       |    /*
 1091|       |     * Two passes if doing real ECH - we first construct the
 1092|       |     * to-be-ECH-compressed extensions, and then go around again
 1093|       |     * constructing those that aren't to be ECH-compressed. We
 1094|       |     * need to ensure this ordering so that all the ECH-compressed
 1095|       |     * extensions are contiguous in the encoding. The actual
 1096|       |     * compression happens later in ech_encode_inner().
 1097|       |     */
 1098|  1.02k|    for (pass = 0; pass <= 1; pass++)
  ------------------
  |  Branch (1098:20): [True: 684, False: 342]
  ------------------
 1099|    684|#endif
 1100|       |
 1101|  21.8k|        for (i = 0, thisexd = ext_defs; i < OSSL_NELEM(ext_defs);
  ------------------
  |  |   14|  21.8k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (1101:41): [True: 21.2k, False: 684]
  ------------------
 1102|  21.2k|            i++, thisexd++) {
 1103|  21.2k|            EXT_RETURN (*construct)(SSL_CONNECTION *s, WPACKET *pkt,
 1104|  21.2k|                unsigned int context,
 1105|  21.2k|                X509 *x, size_t chainidx);
 1106|  21.2k|            EXT_RETURN ret;
 1107|       |
 1108|  21.2k|#ifndef OPENSSL_NO_ECH
 1109|       |            /* do compressed in pass 0, non-compressed in pass 1 */
 1110|  21.2k|            if (ossl_ech_2bcompressed((int)i) == pass)
  ------------------
  |  Branch (1110:17): [True: 10.6k, False: 10.6k]
  ------------------
 1111|  10.6k|                continue;
 1112|       |            /* stash index - needed for COMPRESS ECH handling */
 1113|  10.6k|            s->ext.ech.ext_ind = (int)i;
 1114|  10.6k|#endif
 1115|       |            /* Skip if not relevant for our context */
 1116|  10.6k|            if (!should_add_extension(s, thisexd->context, context, max_version))
  ------------------
  |  Branch (1116:17): [True: 0, False: 10.6k]
  ------------------
 1117|      0|                continue;
 1118|       |
 1119|  10.6k|            construct = s->server ? thisexd->construct_stoc
  ------------------
  |  Branch (1119:25): [True: 0, False: 10.6k]
  ------------------
 1120|  10.6k|                                  : thisexd->construct_ctos;
 1121|       |
 1122|  10.6k|            if (construct == NULL)
  ------------------
  |  Branch (1122:17): [True: 1.02k, False: 9.57k]
  ------------------
 1123|  1.02k|                continue;
 1124|       |
 1125|  9.57k|            ret = construct(s, pkt, context, x, chainidx);
 1126|  9.57k|            if (ret == EXT_RETURN_FAIL) {
  ------------------
  |  Branch (1126:17): [True: 0, False: 9.57k]
  ------------------
 1127|       |                /* SSLfatal() already called */
 1128|      0|                return 0;
 1129|      0|            }
 1130|  9.57k|            if (ret == EXT_RETURN_SENT
  ------------------
  |  Branch (1130:17): [True: 3.98k, False: 5.59k]
  ------------------
 1131|  3.98k|                && (context & (SSL_EXT_CLIENT_HELLO | SSL_EXT_TLS1_3_CERTIFICATE_REQUEST | SSL_EXT_TLS1_3_NEW_SESSION_TICKET)) != 0)
  ------------------
  |  |  300|  3.98k|#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)
  ------------------
  |  |  308|  3.98k|#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)
  ------------------
  |  |  307|  3.98k|#define SSL_EXT_TLS1_3_NEW_SESSION_TICKET 0x02000
  ------------------
  |  Branch (1131:20): [True: 3.98k, False: 0]
  ------------------
 1132|  3.98k|                s->ext.extflags[i] |= SSL_EXT_FLAG_SENT;
  ------------------
  |  | 2074|  3.98k|#define SSL_EXT_FLAG_SENT 0x2
  ------------------
 1133|  9.57k|        }
 1134|       |
 1135|    342|#ifndef OPENSSL_NO_ECH
 1136|       |    /*
 1137|       |     * don't close yet if client in the middle of doing ECH, we'll
 1138|       |     * eventually close this in ech_aad_and_encrypt() after we add
 1139|       |     * the real ECH extension value
 1140|       |     */
 1141|    342|    if (s->server
  ------------------
  |  Branch (1141:9): [True: 0, False: 342]
  ------------------
 1142|    342|        || context != SSL_EXT_CLIENT_HELLO
  ------------------
  |  |  300|    684|#define SSL_EXT_CLIENT_HELLO 0x00080
  ------------------
  |  Branch (1142:12): [True: 0, False: 342]
  ------------------
 1143|    342|        || s->ext.ech.attempted == 0
  ------------------
  |  Branch (1143:12): [True: 342, False: 0]
  ------------------
 1144|      0|        || s->ext.ech.ch_depth == 1
  ------------------
  |  Branch (1144:12): [True: 0, False: 0]
  ------------------
 1145|    342|        || s->ext.ech.grease == OSSL_ECH_IS_GREASE) {
  ------------------
  |  |   37|      0|#define OSSL_ECH_IS_GREASE 1 /* when decryption failed or GREASE wanted */
  ------------------
  |  Branch (1145:12): [True: 0, False: 0]
  ------------------
 1146|    342|        if (!WPACKET_close(pkt)) {
  ------------------
  |  Branch (1146:13): [True: 0, False: 342]
  ------------------
 1147|      0|            if (!for_comp)
  ------------------
  |  Branch (1147:17): [True: 0, False: 0]
  ------------------
 1148|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1149|      0|            return 0;
 1150|      0|        }
 1151|    342|    }
 1152|       |#else
 1153|       |    if (!WPACKET_close(pkt)) {
 1154|       |        if (!for_comp)
 1155|       |            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
 1156|       |        return 0;
 1157|       |    }
 1158|       |#endif
 1159|    342|    return 1;
 1160|    342|}
extensions.c:tls_construct_compress_certificate:
 2067|    342|{
 2068|       |#ifndef OPENSSL_NO_COMP_ALG
 2069|       |    int i;
 2070|       |
 2071|       |    if (!ossl_comp_has_alg(0))
 2072|       |        return EXT_RETURN_NOT_SENT;
 2073|       |
 2074|       |    /* Server: Don't attempt to compress a non-X509 (i.e. an RPK) */
 2075|       |    if (sc->server && sc->ext.server_cert_type != TLSEXT_cert_type_x509) {
 2076|       |        sc->cert_comp_prefs[0] = TLSEXT_comp_cert_none;
 2077|       |        return EXT_RETURN_NOT_SENT;
 2078|       |    }
 2079|       |
 2080|       |    /* Client: If we sent a client cert-type extension, don't indicate compression */
 2081|       |    if (!sc->server && sc->ext.client_cert_type_ctos) {
 2082|       |        sc->cert_comp_prefs[0] = TLSEXT_comp_cert_none;
 2083|       |        return EXT_RETURN_NOT_SENT;
 2084|       |    }
 2085|       |
 2086|       |    /* Do not indicate we support receiving compressed certificates */
 2087|       |    if ((sc->options & SSL_OP_NO_RX_CERTIFICATE_COMPRESSION) != 0)
 2088|       |        return EXT_RETURN_NOT_SENT;
 2089|       |
 2090|       |    if (sc->cert_comp_prefs[0] == TLSEXT_comp_cert_none)
 2091|       |        return EXT_RETURN_NOT_SENT;
 2092|       |#ifndef OPENSSL_NO_ECH
 2093|       |    ECH_SAME_EXT(sc, context, pkt);
 2094|       |#endif
 2095|       |
 2096|       |    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_compress_certificate)
 2097|       |        || !WPACKET_start_sub_packet_u16(pkt)
 2098|       |        || !WPACKET_start_sub_packet_u8(pkt))
 2099|       |        goto err;
 2100|       |
 2101|       |    for (i = 0; sc->cert_comp_prefs[i] != TLSEXT_comp_cert_none; i++) {
 2102|       |        if (!WPACKET_put_bytes_u16(pkt, sc->cert_comp_prefs[i]))
 2103|       |            goto err;
 2104|       |    }
 2105|       |    if (!WPACKET_close(pkt) || !WPACKET_close(pkt))
 2106|       |        goto err;
 2107|       |
 2108|       |    sc->ext.compress_certificate_sent = 1;
 2109|       |    return EXT_RETURN_SENT;
 2110|       |err:
 2111|       |    SSLfatal(sc, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
 2112|       |    return EXT_RETURN_FAIL;
 2113|       |#else
 2114|    342|    return EXT_RETURN_NOT_SENT;
 2115|    342|#endif
 2116|    342|}
extensions.c:tls_construct_certificate_authorities:
 1556|    342|{
 1557|    342|    const STACK_OF(X509_NAME) *ca_sk = get_ca_names(s);
 1558|       |
 1559|    342|    if (ca_sk == NULL || sk_X509_NAME_num(ca_sk) == 0)
  ------------------
  |  |   56|    342|#define sk_X509_NAME_num(sk) OPENSSL_sk_num(ossl_check_const_X509_NAME_sk_type(sk))
  ------------------
  |  Branch (1559:9): [True: 0, False: 342]
  |  Branch (1559:26): [True: 342, False: 0]
  ------------------
 1560|    342|        return EXT_RETURN_NOT_SENT;
 1561|       |
 1562|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_certificate_authorities)
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (1562:9): [True: 0, False: 0]
  ------------------
 1563|      0|        || !WPACKET_start_sub_packet_u16(pkt)) {
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (1563:12): [True: 0, False: 0]
  ------------------
 1564|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1565|      0|        return EXT_RETURN_FAIL;
 1566|      0|    }
 1567|       |
 1568|      0|    if (!construct_ca_names(s, ca_sk, pkt)) {
  ------------------
  |  Branch (1568:9): [True: 0, False: 0]
  ------------------
 1569|       |        /* SSLfatal() already called */
 1570|      0|        return EXT_RETURN_FAIL;
 1571|      0|    }
 1572|       |
 1573|      0|    if (!WPACKET_close(pkt)) {
  ------------------
  |  Branch (1573:9): [True: 0, False: 0]
  ------------------
 1574|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1575|      0|        return EXT_RETURN_FAIL;
 1576|      0|    }
 1577|       |
 1578|      0|    return EXT_RETURN_SENT;
 1579|      0|}

tls_construct_ctos_renegotiate:
   31|    342|{
   32|    342|    if (!s->renegotiate) {
  ------------------
  |  Branch (32:9): [True: 342, False: 0]
  ------------------
   33|       |        /* If not renegotiating, send an empty RI extension to indicate support */
   34|       |
   35|       |#if DTLS_MAX_VERSION_INTERNAL != DTLS1_2_VERSION
   36|       |#error Internal DTLS version error
   37|       |#endif
   38|       |
   39|    342|        if (!SSL_CONNECTION_IS_DTLS(s)
  ------------------
  |  |  266|    684|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|    342|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  ------------------
  |  Branch (39:13): [True: 342, False: 0]
  ------------------
   40|    342|            && (s->min_proto_version >= TLS1_3_VERSION
  ------------------
  |  |   27|    684|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (40:17): [True: 0, False: 342]
  ------------------
   41|    342|                || (ssl_security(s, SSL_SECOP_VERSION, 0, TLS1_VERSION, NULL)
  ------------------
  |  | 2757|    342|#define SSL_SECOP_VERSION (9 | SSL_SECOP_OTHER_NONE)
  |  |  ------------------
  |  |  |  | 2728|    342|#define SSL_SECOP_OTHER_NONE 0
  |  |  ------------------
  ------------------
                              || (ssl_security(s, SSL_SECOP_VERSION, 0, TLS1_VERSION, NULL)
  ------------------
  |  |   24|    342|#define TLS1_VERSION 0x0301
  ------------------
  |  Branch (41:21): [True: 0, False: 342]
  ------------------
   42|      0|                    && s->min_proto_version <= TLS1_VERSION))) {
  ------------------
  |  |   24|      0|#define TLS1_VERSION 0x0301
  ------------------
  |  Branch (42:24): [True: 0, False: 0]
  ------------------
   43|       |            /*
   44|       |             * For TLS <= 1.0 SCSV is used instead, and for TLS 1.3 this
   45|       |             * extension isn't used at all.
   46|       |             */
   47|      0|            return EXT_RETURN_NOT_SENT;
   48|      0|        }
   49|       |
   50|    342|#ifndef OPENSSL_NO_ECH
   51|    342|        ECH_SAME_EXT(s, context, pkt)
  ------------------
  |  |  317|    342|    if (context == SSL_EXT_CLIENT_HELLO && !s->server         \
  |  |  ------------------
  |  |  |  |  300|    684|#define SSL_EXT_CLIENT_HELLO 0x00080
  |  |  ------------------
  |  |  |  Branch (317:9): [True: 342, False: 0]
  |  |  |  Branch (317:44): [True: 342, False: 0]
  |  |  ------------------
  |  |  318|    342|        && s->ext.ech.es != NULL && s->ext.ech.grease == 0) { \
  |  |  ------------------
  |  |  |  Branch (318:12): [True: 0, False: 342]
  |  |  |  Branch (318:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  319|      0|        int ech_iosame_rv = ossl_ech_same_ext(s, pkt);        \
  |  |  320|      0|                                                              \
  |  |  321|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_ERR)           \
  |  |  ------------------
  |  |  |  |  293|      0|#define OSSL_ECH_SAME_EXT_ERR 0 /* bummer something wrong */
  |  |  ------------------
  |  |  |  Branch (321:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  322|      0|            return EXT_RETURN_FAIL;                           \
  |  |  323|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_DONE)          \
  |  |  ------------------
  |  |  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  |  |  ------------------
  |  |  |  Branch (323:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|            return EXT_RETURN_SENT;                           \
  |  |  325|      0|        /* otherwise continue as normal */                    \
  |  |  326|      0|    }
  ------------------
   52|    342|#endif
   53|       |
   54|    342|        if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_renegotiate)
  ------------------
  |  |  911|    684|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (54:13): [True: 0, False: 342]
  ------------------
   55|    342|            || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|    684|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (55:16): [True: 0, False: 342]
  ------------------
   56|    342|            || !WPACKET_put_bytes_u8(pkt, 0)
  ------------------
  |  |  909|    684|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (56:16): [True: 0, False: 342]
  ------------------
   57|    342|            || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (57:16): [True: 0, False: 342]
  ------------------
   58|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
   59|      0|            return EXT_RETURN_FAIL;
   60|      0|        }
   61|       |
   62|    342|        return EXT_RETURN_SENT;
   63|    342|    }
   64|       |
   65|      0|#ifndef OPENSSL_NO_ECH
   66|      0|    ECH_SAME_EXT(s, context, pkt)
  ------------------
  |  |  317|      0|    if (context == SSL_EXT_CLIENT_HELLO && !s->server         \
  |  |  ------------------
  |  |  |  |  300|      0|#define SSL_EXT_CLIENT_HELLO 0x00080
  |  |  ------------------
  |  |  |  Branch (317:9): [True: 0, False: 0]
  |  |  |  Branch (317:44): [True: 0, False: 0]
  |  |  ------------------
  |  |  318|      0|        && s->ext.ech.es != NULL && s->ext.ech.grease == 0) { \
  |  |  ------------------
  |  |  |  Branch (318:12): [True: 0, False: 0]
  |  |  |  Branch (318:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  319|      0|        int ech_iosame_rv = ossl_ech_same_ext(s, pkt);        \
  |  |  320|      0|                                                              \
  |  |  321|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_ERR)           \
  |  |  ------------------
  |  |  |  |  293|      0|#define OSSL_ECH_SAME_EXT_ERR 0 /* bummer something wrong */
  |  |  ------------------
  |  |  |  Branch (321:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  322|      0|            return EXT_RETURN_FAIL;                           \
  |  |  323|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_DONE)          \
  |  |  ------------------
  |  |  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  |  |  ------------------
  |  |  |  Branch (323:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|            return EXT_RETURN_SENT;                           \
  |  |  325|      0|        /* otherwise continue as normal */                    \
  |  |  326|      0|    }
  ------------------
   67|      0|#endif
   68|       |
   69|       |    /* Add a complete RI extension if renegotiating */
   70|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_renegotiate)
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (70:9): [True: 0, False: 0]
  ------------------
   71|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (71:12): [True: 0, False: 0]
  ------------------
   72|      0|        || !WPACKET_sub_memcpy_u8(pkt, s->s3.previous_client_finished,
  ------------------
  |  |  938|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 1)
  ------------------
  |  Branch (72:12): [True: 0, False: 0]
  ------------------
   73|      0|            s->s3.previous_client_finished_len)
   74|      0|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (74:12): [True: 0, False: 0]
  ------------------
   75|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
   76|      0|        return EXT_RETURN_FAIL;
   77|      0|    }
   78|       |
   79|      0|    return EXT_RETURN_SENT;
   80|      0|}
tls_construct_ctos_server_name:
   85|    342|{
   86|    342|    char *chosen = s->ext.hostname;
   87|    342|#ifndef OPENSSL_NO_ECH
   88|    342|    OSSL_HPKE_SUITE suite;
   89|    342|    OSSL_ECHSTORE_ENTRY *ee = NULL;
   90|       |
   91|    342|    if (s->ext.ech.es != NULL) {
  ------------------
  |  Branch (91:9): [True: 0, False: 342]
  ------------------
   92|      0|        if (ossl_ech_pick_matching_cfg(s, &ee, &suite) != 1) {
  ------------------
  |  Branch (92:13): [True: 0, False: 0]
  ------------------
   93|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
   94|      0|            return EXT_RETURN_NOT_SENT;
   95|      0|        }
   96|       |        /* Don't send outer SNI if external API says so */
   97|      0|        if (s->ext.ech.ch_depth == 0 && s->ext.ech.no_outer == 1)
  ------------------
  |  Branch (97:13): [True: 0, False: 0]
  |  Branch (97:41): [True: 0, False: 0]
  ------------------
   98|      0|            return EXT_RETURN_NOT_SENT;
   99|      0|        if (s->ext.ech.ch_depth == 1) /* inner */
  ------------------
  |  Branch (99:13): [True: 0, False: 0]
  ------------------
  100|      0|            chosen = s->ext.hostname;
  101|      0|        if (s->ext.ech.ch_depth == 0) { /* outer */
  ------------------
  |  Branch (101:13): [True: 0, False: 0]
  ------------------
  102|      0|            if (s->ext.ech.outer_hostname != NULL) /* prefer API */
  ------------------
  |  Branch (102:17): [True: 0, False: 0]
  ------------------
  103|      0|                chosen = s->ext.ech.outer_hostname;
  104|      0|            else /* use name from ECHConfig */
  105|      0|                chosen = ee->public_name;
  106|      0|        }
  107|      0|    }
  108|    342|#endif
  109|    342|    if (chosen == NULL)
  ------------------
  |  Branch (109:9): [True: 123, False: 219]
  ------------------
  110|    123|        return EXT_RETURN_NOT_SENT;
  111|       |    /* Add TLS extension servername to the Client Hello message */
  112|    219|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_server_name)
  ------------------
  |  |  911|    438|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (112:9): [True: 0, False: 219]
  ------------------
  113|       |        /* Sub-packet for server_name extension */
  114|    219|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|    438|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (114:12): [True: 0, False: 219]
  ------------------
  115|       |        /* Sub-packet for servername list (always 1 hostname)*/
  116|    219|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|    438|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (116:12): [True: 0, False: 219]
  ------------------
  117|    219|        || !WPACKET_put_bytes_u8(pkt, TLSEXT_NAMETYPE_host_name)
  ------------------
  |  |  909|    438|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (117:12): [True: 0, False: 219]
  ------------------
  118|    219|        || !WPACKET_sub_memcpy_u16(pkt, chosen, strlen(chosen))
  ------------------
  |  |  940|    438|    WPACKET_sub_memcpy__((pkt), (src), (len), 2)
  ------------------
  |  Branch (118:12): [True: 0, False: 219]
  ------------------
  119|    219|        || !WPACKET_close(pkt)
  ------------------
  |  Branch (119:12): [True: 0, False: 219]
  ------------------
  120|    219|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (120:12): [True: 0, False: 219]
  ------------------
  121|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  122|      0|        return EXT_RETURN_FAIL;
  123|      0|    }
  124|    219|    return EXT_RETURN_SENT;
  125|    219|}
tls_construct_ctos_maxfragmentlen:
  131|    342|{
  132|    342|    if (s->ext.max_fragment_len_mode == TLSEXT_max_fragment_length_DISABLED)
  ------------------
  |  |  235|    342|#define TLSEXT_max_fragment_length_DISABLED 0
  ------------------
  |  Branch (132:9): [True: 342, False: 0]
  ------------------
  133|    342|        return EXT_RETURN_NOT_SENT;
  134|      0|#ifndef OPENSSL_NO_ECH
  135|      0|    ECH_SAME_EXT(s, context, pkt)
  ------------------
  |  |  317|      0|    if (context == SSL_EXT_CLIENT_HELLO && !s->server         \
  |  |  ------------------
  |  |  |  |  300|      0|#define SSL_EXT_CLIENT_HELLO 0x00080
  |  |  ------------------
  |  |  |  Branch (317:9): [True: 0, False: 0]
  |  |  |  Branch (317:44): [True: 0, False: 0]
  |  |  ------------------
  |  |  318|      0|        && s->ext.ech.es != NULL && s->ext.ech.grease == 0) { \
  |  |  ------------------
  |  |  |  Branch (318:12): [True: 0, False: 0]
  |  |  |  Branch (318:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  319|      0|        int ech_iosame_rv = ossl_ech_same_ext(s, pkt);        \
  |  |  320|      0|                                                              \
  |  |  321|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_ERR)           \
  |  |  ------------------
  |  |  |  |  293|      0|#define OSSL_ECH_SAME_EXT_ERR 0 /* bummer something wrong */
  |  |  ------------------
  |  |  |  Branch (321:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  322|      0|            return EXT_RETURN_FAIL;                           \
  |  |  323|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_DONE)          \
  |  |  ------------------
  |  |  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  |  |  ------------------
  |  |  |  Branch (323:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|            return EXT_RETURN_SENT;                           \
  |  |  325|      0|        /* otherwise continue as normal */                    \
  |  |  326|      0|    }
  ------------------
  136|      0|#endif
  137|       |
  138|       |    /* Add Max Fragment Length extension if client enabled it. */
  139|       |    /*-
  140|       |     * 4 bytes for this extension type and extension length
  141|       |     * 1 byte for the Max Fragment Length code value.
  142|       |     */
  143|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_max_fragment_length)
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (143:9): [True: 0, False: 0]
  ------------------
  144|       |        /* Sub-packet for Max Fragment Length extension (1 byte) */
  145|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (145:12): [True: 0, False: 0]
  ------------------
  146|      0|        || !WPACKET_put_bytes_u8(pkt, s->ext.max_fragment_len_mode)
  ------------------
  |  |  909|      0|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (146:12): [True: 0, False: 0]
  ------------------
  147|      0|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (147:12): [True: 0, False: 0]
  ------------------
  148|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  149|      0|        return EXT_RETURN_FAIL;
  150|      0|    }
  151|       |
  152|      0|    return EXT_RETURN_SENT;
  153|      0|}
tls_construct_ctos_srp:
  159|    342|{
  160|       |    /* Add SRP username if there is one */
  161|    342|    if (s->srp_ctx.login == NULL)
  ------------------
  |  Branch (161:9): [True: 342, False: 0]
  ------------------
  162|    342|        return EXT_RETURN_NOT_SENT;
  163|      0|#ifndef OPENSSL_NO_ECH
  164|      0|    ECH_SAME_EXT(s, context, pkt)
  ------------------
  |  |  317|      0|    if (context == SSL_EXT_CLIENT_HELLO && !s->server         \
  |  |  ------------------
  |  |  |  |  300|      0|#define SSL_EXT_CLIENT_HELLO 0x00080
  |  |  ------------------
  |  |  |  Branch (317:9): [True: 0, False: 0]
  |  |  |  Branch (317:44): [True: 0, False: 0]
  |  |  ------------------
  |  |  318|      0|        && s->ext.ech.es != NULL && s->ext.ech.grease == 0) { \
  |  |  ------------------
  |  |  |  Branch (318:12): [True: 0, False: 0]
  |  |  |  Branch (318:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  319|      0|        int ech_iosame_rv = ossl_ech_same_ext(s, pkt);        \
  |  |  320|      0|                                                              \
  |  |  321|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_ERR)           \
  |  |  ------------------
  |  |  |  |  293|      0|#define OSSL_ECH_SAME_EXT_ERR 0 /* bummer something wrong */
  |  |  ------------------
  |  |  |  Branch (321:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  322|      0|            return EXT_RETURN_FAIL;                           \
  |  |  323|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_DONE)          \
  |  |  ------------------
  |  |  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  |  |  ------------------
  |  |  |  Branch (323:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|            return EXT_RETURN_SENT;                           \
  |  |  325|      0|        /* otherwise continue as normal */                    \
  |  |  326|      0|    }
  ------------------
  165|      0|#endif
  166|       |
  167|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_srp)
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (167:9): [True: 0, False: 0]
  ------------------
  168|       |        /* Sub-packet for SRP extension */
  169|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (169:12): [True: 0, False: 0]
  ------------------
  170|      0|        || !WPACKET_start_sub_packet_u8(pkt)
  ------------------
  |  |  810|      0|    WPACKET_start_sub_packet_len__((pkt), 1)
  ------------------
  |  Branch (170:12): [True: 0, False: 0]
  ------------------
  171|       |        /* login must not be zero...internal error if so */
  172|      0|        || !WPACKET_set_flags(pkt, WPACKET_FLAGS_NON_ZERO_LENGTH)
  ------------------
  |  |  717|      0|#define WPACKET_FLAGS_NON_ZERO_LENGTH 1
  ------------------
  |  Branch (172:12): [True: 0, False: 0]
  ------------------
  173|      0|        || !WPACKET_memcpy(pkt, s->srp_ctx.login,
  ------------------
  |  Branch (173:12): [True: 0, False: 0]
  ------------------
  174|      0|            strlen(s->srp_ctx.login))
  175|      0|        || !WPACKET_close(pkt)
  ------------------
  |  Branch (175:12): [True: 0, False: 0]
  ------------------
  176|      0|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (176:12): [True: 0, False: 0]
  ------------------
  177|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  178|      0|        return EXT_RETURN_FAIL;
  179|      0|    }
  180|       |
  181|      0|    return EXT_RETURN_SENT;
  182|      0|}
tls_construct_ctos_ec_pt_formats:
  263|    342|{
  264|    342|    const unsigned char *pformats;
  265|    342|    size_t num_formats;
  266|    342|    int reason, min_version, max_version;
  267|       |
  268|    342|    reason = ssl_get_min_max_version(s, &min_version, &max_version, NULL);
  269|    342|    if (reason != 0) {
  ------------------
  |  Branch (269:9): [True: 0, False: 342]
  ------------------
  270|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, reason);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  271|      0|        return EXT_RETURN_FAIL;
  272|      0|    }
  273|    342|    if (!negotiate_dhe(s, ptfmt_check, min_version, max_version))
  ------------------
  |  Branch (273:9): [True: 0, False: 342]
  ------------------
  274|      0|        return EXT_RETURN_NOT_SENT;
  275|       |
  276|    342|    tls1_get_formatlist(s, &pformats, &num_formats);
  277|    342|    if (num_formats == 0)
  ------------------
  |  Branch (277:9): [True: 0, False: 342]
  ------------------
  278|      0|        return EXT_RETURN_NOT_SENT;
  279|    342|#ifndef OPENSSL_NO_ECH
  280|    342|    ECH_SAME_EXT(s, context, pkt)
  ------------------
  |  |  317|    342|    if (context == SSL_EXT_CLIENT_HELLO && !s->server         \
  |  |  ------------------
  |  |  |  |  300|    684|#define SSL_EXT_CLIENT_HELLO 0x00080
  |  |  ------------------
  |  |  |  Branch (317:9): [True: 342, False: 0]
  |  |  |  Branch (317:44): [True: 342, False: 0]
  |  |  ------------------
  |  |  318|    342|        && s->ext.ech.es != NULL && s->ext.ech.grease == 0) { \
  |  |  ------------------
  |  |  |  Branch (318:12): [True: 0, False: 342]
  |  |  |  Branch (318:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  319|      0|        int ech_iosame_rv = ossl_ech_same_ext(s, pkt);        \
  |  |  320|      0|                                                              \
  |  |  321|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_ERR)           \
  |  |  ------------------
  |  |  |  |  293|      0|#define OSSL_ECH_SAME_EXT_ERR 0 /* bummer something wrong */
  |  |  ------------------
  |  |  |  Branch (321:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  322|      0|            return EXT_RETURN_FAIL;                           \
  |  |  323|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_DONE)          \
  |  |  ------------------
  |  |  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  |  |  ------------------
  |  |  |  Branch (323:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|            return EXT_RETURN_SENT;                           \
  |  |  325|      0|        /* otherwise continue as normal */                    \
  |  |  326|      0|    }
  ------------------
  281|    342|#endif
  282|       |
  283|       |    /* Add TLS extension ECPointFormats to the ClientHello message */
  284|    342|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_ec_point_formats)
  ------------------
  |  |  911|    684|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (284:9): [True: 0, False: 342]
  ------------------
  285|       |        /* Sub-packet for formats extension */
  286|    342|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|    684|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (286:12): [True: 0, False: 342]
  ------------------
  287|    342|        || !WPACKET_sub_memcpy_u8(pkt, pformats, num_formats)
  ------------------
  |  |  938|    684|    WPACKET_sub_memcpy__((pkt), (src), (len), 1)
  ------------------
  |  Branch (287:12): [True: 0, False: 342]
  ------------------
  288|    342|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (288:12): [True: 0, False: 342]
  ------------------
  289|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  290|      0|        return EXT_RETURN_FAIL;
  291|      0|    }
  292|       |
  293|    342|    return EXT_RETURN_SENT;
  294|    342|}
tls_construct_ctos_supported_groups:
  299|    342|{
  300|    342|    const uint16_t *pgroups = NULL;
  301|    342|    size_t num_groups = 0, i, tls13added = 0, added = 0;
  302|    342|    int min_version, max_version, reason;
  303|    342|    int dtls = SSL_CONNECTION_IS_DTLS(s);
  ------------------
  |  |  266|    342|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|    342|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  ------------------
  304|    342|    int use_ecdhe, use_ffdhe;
  305|       |
  306|    342|    reason = ssl_get_min_max_version(s, &min_version, &max_version, NULL);
  307|    342|    if (reason != 0) {
  ------------------
  |  Branch (307:9): [True: 0, False: 342]
  ------------------
  308|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, reason);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  309|      0|        return EXT_RETURN_FAIL;
  310|      0|    }
  311|       |
  312|       |    /*
  313|       |     * If we don't support suitable groups, don't send the extension
  314|       |     */
  315|    342|    use_ecdhe = negotiate_dhe(s, ecdhe_check, min_version, max_version);
  316|    342|    use_ffdhe = negotiate_dhe(s, ffdhe_check, min_version, max_version);
  317|    342|    if (!use_ecdhe && !use_ffdhe
  ------------------
  |  Branch (317:9): [True: 0, False: 342]
  |  Branch (317:23): [True: 0, False: 0]
  ------------------
  318|      0|        && (dtls ? DTLS_VERSION_LE(max_version, DTLS1_2_VERSION)
  ------------------
  |  |   65|      0|#define DTLS_VERSION_LE(v1, v2) (dtls_ver_ordinal(v1) >= dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   61|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (61:31): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define DTLS_VERSION_LE(v1, v2) (dtls_ver_ordinal(v1) >= dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   61|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (61:31): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (318:12): [True: 0, False: 0]
  |  Branch (318:13): [True: 0, False: 0]
  ------------------
  319|      0|                 : (max_version <= TLS1_2_VERSION)))
  ------------------
  |  |   26|      0|#define TLS1_2_VERSION 0x0303
  ------------------
  320|      0|        return EXT_RETURN_NOT_SENT;
  321|    342|#ifndef OPENSSL_NO_ECH
  322|    342|    ECH_SAME_EXT(s, context, pkt)
  ------------------
  |  |  317|    342|    if (context == SSL_EXT_CLIENT_HELLO && !s->server         \
  |  |  ------------------
  |  |  |  |  300|    684|#define SSL_EXT_CLIENT_HELLO 0x00080
  |  |  ------------------
  |  |  |  Branch (317:9): [True: 342, False: 0]
  |  |  |  Branch (317:44): [True: 342, False: 0]
  |  |  ------------------
  |  |  318|    342|        && s->ext.ech.es != NULL && s->ext.ech.grease == 0) { \
  |  |  ------------------
  |  |  |  Branch (318:12): [True: 0, False: 342]
  |  |  |  Branch (318:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  319|      0|        int ech_iosame_rv = ossl_ech_same_ext(s, pkt);        \
  |  |  320|      0|                                                              \
  |  |  321|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_ERR)           \
  |  |  ------------------
  |  |  |  |  293|      0|#define OSSL_ECH_SAME_EXT_ERR 0 /* bummer something wrong */
  |  |  ------------------
  |  |  |  Branch (321:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  322|      0|            return EXT_RETURN_FAIL;                           \
  |  |  323|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_DONE)          \
  |  |  ------------------
  |  |  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  |  |  ------------------
  |  |  |  Branch (323:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|            return EXT_RETURN_SENT;                           \
  |  |  325|      0|        /* otherwise continue as normal */                    \
  |  |  326|      0|    }
  ------------------
  323|    342|#endif
  324|       |
  325|       |    /*
  326|       |     * Add TLS extension supported_groups to the ClientHello message
  327|       |     */
  328|    342|    tls1_get_supported_groups(s, &pgroups, &num_groups);
  329|       |
  330|    342|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_supported_groups)
  ------------------
  |  |  911|    684|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (330:9): [True: 0, False: 342]
  ------------------
  331|       |        /* Sub-packet for supported_groups extension */
  332|    342|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|    684|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (332:12): [True: 0, False: 342]
  ------------------
  333|    342|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|    684|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (333:12): [True: 0, False: 342]
  ------------------
  334|    342|        || !WPACKET_set_flags(pkt, WPACKET_FLAGS_NON_ZERO_LENGTH)) {
  ------------------
  |  |  717|    342|#define WPACKET_FLAGS_NON_ZERO_LENGTH 1
  ------------------
  |  Branch (334:12): [True: 0, False: 342]
  ------------------
  335|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  336|      0|        return EXT_RETURN_FAIL;
  337|      0|    }
  338|       |    /* Copy group ID if supported */
  339|  4.10k|    for (i = 0; i < num_groups; i++) {
  ------------------
  |  Branch (339:17): [True: 3.76k, False: 342]
  ------------------
  340|  3.76k|        const TLS_GROUP_INFO *ginfo = NULL;
  341|  3.76k|        uint16_t ctmp = pgroups[i];
  342|  3.76k|        int okfortls13;
  343|       |
  344|  3.76k|        if (!tls_valid_group(s, ctmp, min_version, max_version, &okfortls13,
  ------------------
  |  Branch (344:13): [True: 0, False: 3.76k]
  ------------------
  345|  3.76k|                &ginfo)
  346|  3.76k|            || (!use_ecdhe && is_ecdhe_group(ginfo->group_id))
  ------------------
  |  Branch (346:17): [True: 0, False: 3.76k]
  |  Branch (346:31): [True: 0, False: 0]
  ------------------
  347|  3.76k|            || (!use_ffdhe && is_ffdhe_group(ginfo->group_id))
  ------------------
  |  Branch (347:17): [True: 0, False: 3.76k]
  |  Branch (347:31): [True: 0, False: 0]
  ------------------
  348|       |            /* Note: SSL_SECOP_CURVE_SUPPORTED covers all key exchange groups */
  349|  3.76k|            || !tls_group_allowed(s, ctmp, SSL_SECOP_CURVE_SUPPORTED))
  ------------------
  |  | 2749|  3.76k|#define SSL_SECOP_CURVE_SUPPORTED (4 | SSL_SECOP_OTHER_CURVE)
  |  |  ------------------
  |  |  |  | 2730|  3.76k|#define SSL_SECOP_OTHER_CURVE (2 << 16)
  |  |  ------------------
  ------------------
  |  Branch (349:16): [True: 0, False: 3.76k]
  ------------------
  350|      0|            continue;
  351|       |
  352|  3.76k|        if (!WPACKET_put_bytes_u16(pkt, ctmp)) {
  ------------------
  |  |  911|  3.76k|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (352:13): [True: 0, False: 3.76k]
  ------------------
  353|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  354|      0|            return EXT_RETURN_FAIL;
  355|      0|        }
  356|  3.76k|        if (okfortls13 && max_version == TLS1_3_VERSION)
  ------------------
  |  |   27|  3.76k|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (356:13): [True: 3.76k, False: 0]
  |  Branch (356:27): [True: 3.76k, False: 0]
  ------------------
  357|  3.76k|            tls13added++;
  358|  3.76k|        added++;
  359|  3.76k|    }
  360|    342|    if (!WPACKET_close(pkt) || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (360:9): [True: 0, False: 342]
  |  Branch (360:32): [True: 0, False: 342]
  ------------------
  361|      0|        if (added == 0)
  ------------------
  |  Branch (361:13): [True: 0, False: 0]
  ------------------
  362|      0|            SSLfatal_data(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_SUITABLE_GROUPS,
  ------------------
  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  159|      0|        ossl_statem_fatal)
  ------------------
                          SSLfatal_data(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_SUITABLE_GROUPS,
  ------------------
  |  | 1266|      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,
  ------------------
  |  |  217|      0|#define SSL_R_NO_SUITABLE_GROUPS 295
  ------------------
  363|      0|                "No groups enabled for max supported SSL/TLS version");
  364|      0|        else
  365|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  366|      0|        return EXT_RETURN_FAIL;
  367|      0|    }
  368|       |
  369|    342|    if (tls13added == 0 && max_version == TLS1_3_VERSION) {
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (369:9): [True: 0, False: 342]
  |  Branch (369:28): [True: 0, False: 0]
  ------------------
  370|      0|        SSLfatal_data(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_SUITABLE_GROUPS,
  ------------------
  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  159|      0|        ossl_statem_fatal)
  ------------------
                      SSLfatal_data(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_SUITABLE_GROUPS,
  ------------------
  |  | 1266|      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,
  ------------------
  |  |  217|      0|#define SSL_R_NO_SUITABLE_GROUPS 295
  ------------------
  371|      0|            "No groups enabled for max supported SSL/TLS version");
  372|      0|        return EXT_RETURN_FAIL;
  373|      0|    }
  374|       |
  375|    342|    return EXT_RETURN_SENT;
  376|    342|}
tls_construct_ctos_session_ticket:
  381|    342|{
  382|    342|    size_t ticklen;
  383|       |
  384|    342|    if (!tls_use_ticket(s))
  ------------------
  |  Branch (384:9): [True: 342, False: 0]
  ------------------
  385|    342|        return EXT_RETURN_NOT_SENT;
  386|      0|#ifndef OPENSSL_NO_ECH
  387|      0|    ECH_SAME_EXT(s, context, pkt)
  ------------------
  |  |  317|      0|    if (context == SSL_EXT_CLIENT_HELLO && !s->server         \
  |  |  ------------------
  |  |  |  |  300|      0|#define SSL_EXT_CLIENT_HELLO 0x00080
  |  |  ------------------
  |  |  |  Branch (317:9): [True: 0, False: 0]
  |  |  |  Branch (317:44): [True: 0, False: 0]
  |  |  ------------------
  |  |  318|      0|        && s->ext.ech.es != NULL && s->ext.ech.grease == 0) { \
  |  |  ------------------
  |  |  |  Branch (318:12): [True: 0, False: 0]
  |  |  |  Branch (318:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  319|      0|        int ech_iosame_rv = ossl_ech_same_ext(s, pkt);        \
  |  |  320|      0|                                                              \
  |  |  321|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_ERR)           \
  |  |  ------------------
  |  |  |  |  293|      0|#define OSSL_ECH_SAME_EXT_ERR 0 /* bummer something wrong */
  |  |  ------------------
  |  |  |  Branch (321:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  322|      0|            return EXT_RETURN_FAIL;                           \
  |  |  323|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_DONE)          \
  |  |  ------------------
  |  |  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  |  |  ------------------
  |  |  |  Branch (323:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|            return EXT_RETURN_SENT;                           \
  |  |  325|      0|        /* otherwise continue as normal */                    \
  |  |  326|      0|    }
  ------------------
  388|      0|#endif
  389|       |
  390|      0|    if (!s->new_session && s->session != NULL
  ------------------
  |  Branch (390:9): [True: 0, False: 0]
  |  Branch (390:28): [True: 0, False: 0]
  ------------------
  391|      0|        && s->session->ext.tick != NULL
  ------------------
  |  Branch (391:12): [True: 0, False: 0]
  ------------------
  392|      0|        && s->session->ssl_version != TLS1_3_VERSION) {
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (392:12): [True: 0, False: 0]
  ------------------
  393|      0|        ticklen = s->session->ext.ticklen;
  394|      0|    } else if (s->session && s->ext.session_ticket != NULL
  ------------------
  |  Branch (394:16): [True: 0, False: 0]
  |  Branch (394:30): [True: 0, False: 0]
  ------------------
  395|      0|        && s->ext.session_ticket->data != NULL) {
  ------------------
  |  Branch (395:12): [True: 0, False: 0]
  ------------------
  396|      0|        ticklen = s->ext.session_ticket->length;
  397|      0|        s->session->ext.tick = OPENSSL_malloc(ticklen);
  ------------------
  |  |  107|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  398|      0|        if (s->session->ext.tick == NULL) {
  ------------------
  |  Branch (398:13): [True: 0, False: 0]
  ------------------
  399|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  400|      0|            return EXT_RETURN_FAIL;
  401|      0|        }
  402|      0|        memcpy(s->session->ext.tick,
  403|      0|            s->ext.session_ticket->data, ticklen);
  404|      0|        s->session->ext.ticklen = ticklen;
  405|      0|    } else {
  406|      0|        ticklen = 0;
  407|      0|    }
  408|       |
  409|      0|    if (ticklen == 0 && s->ext.session_ticket != NULL && s->ext.session_ticket->data == NULL)
  ------------------
  |  Branch (409:9): [True: 0, False: 0]
  |  Branch (409:25): [True: 0, False: 0]
  |  Branch (409:58): [True: 0, False: 0]
  ------------------
  410|      0|        return EXT_RETURN_NOT_SENT;
  411|       |
  412|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_session_ticket)
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (412:9): [True: 0, False: 0]
  ------------------
  413|      0|        || !WPACKET_sub_memcpy_u16(pkt, s->session->ext.tick, ticklen)) {
  ------------------
  |  |  940|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 2)
  ------------------
  |  Branch (413:12): [True: 0, False: 0]
  ------------------
  414|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  415|      0|        return EXT_RETURN_FAIL;
  416|      0|    }
  417|       |
  418|      0|    return EXT_RETURN_SENT;
  419|      0|}
tls_construct_ctos_sig_algs:
  424|    342|{
  425|    342|    size_t salglen;
  426|    342|    const uint16_t *salg;
  427|       |
  428|       |    /*
  429|       |     * This used both in the initial hello and as part of renegotiation,
  430|       |     * in the latter case, the client version may be already set and may
  431|       |     * be lower than that initially offered in `client_version`.
  432|       |     */
  433|    342|    if (!SSL_CONNECTION_IS_DTLS(s)) {
  ------------------
  |  |  266|    342|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|    342|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  ------------------
  |  Branch (433:9): [True: 342, False: 0]
  ------------------
  434|    342|        if (s->client_version < TLS1_2_VERSION
  ------------------
  |  |   26|    684|#define TLS1_2_VERSION 0x0303
  ------------------
  |  Branch (434:13): [True: 0, False: 342]
  ------------------
  435|    342|            || (s->ssl.method->version != TLS_ANY_VERSION
  ------------------
  |  |   40|    684|#define TLS_ANY_VERSION 0x10000
  ------------------
  |  Branch (435:17): [True: 0, False: 342]
  ------------------
  436|      0|                && s->version < TLS1_2_VERSION))
  ------------------
  |  |   26|      0|#define TLS1_2_VERSION 0x0303
  ------------------
  |  Branch (436:20): [True: 0, False: 0]
  ------------------
  437|      0|            return EXT_RETURN_NOT_SENT;
  438|    342|    } else {
  439|      0|        if (DTLS_VERSION_LT(s->client_version, DTLS1_2_VERSION)
  ------------------
  |  |   64|      0|#define DTLS_VERSION_LT(v1, v2) (dtls_ver_ordinal(v1) > dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   61|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (61:31): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define DTLS_VERSION_LT(v1, v2) (dtls_ver_ordinal(v1) > dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   61|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (61:31): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (64:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  440|      0|            || (s->ssl.method->version != DTLS_ANY_VERSION
  ------------------
  |  |   35|      0|#define DTLS_ANY_VERSION 0x1FFFF
  ------------------
  |  Branch (440:17): [True: 0, False: 0]
  ------------------
  441|      0|                && DTLS_VERSION_LT(s->version, DTLS1_2_VERSION)))
  ------------------
  |  |   64|      0|#define DTLS_VERSION_LT(v1, v2) (dtls_ver_ordinal(v1) > dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   61|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (61:31): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define DTLS_VERSION_LT(v1, v2) (dtls_ver_ordinal(v1) > dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   61|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (61:31): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (64:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  442|      0|            return EXT_RETURN_NOT_SENT;
  443|      0|    }
  444|       |
  445|    342|#ifndef OPENSSL_NO_ECH
  446|    342|    ECH_SAME_EXT(s, context, pkt)
  ------------------
  |  |  317|    342|    if (context == SSL_EXT_CLIENT_HELLO && !s->server         \
  |  |  ------------------
  |  |  |  |  300|    684|#define SSL_EXT_CLIENT_HELLO 0x00080
  |  |  ------------------
  |  |  |  Branch (317:9): [True: 342, False: 0]
  |  |  |  Branch (317:44): [True: 342, False: 0]
  |  |  ------------------
  |  |  318|    342|        && s->ext.ech.es != NULL && s->ext.ech.grease == 0) { \
  |  |  ------------------
  |  |  |  Branch (318:12): [True: 0, False: 342]
  |  |  |  Branch (318:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  319|      0|        int ech_iosame_rv = ossl_ech_same_ext(s, pkt);        \
  |  |  320|      0|                                                              \
  |  |  321|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_ERR)           \
  |  |  ------------------
  |  |  |  |  293|      0|#define OSSL_ECH_SAME_EXT_ERR 0 /* bummer something wrong */
  |  |  ------------------
  |  |  |  Branch (321:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  322|      0|            return EXT_RETURN_FAIL;                           \
  |  |  323|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_DONE)          \
  |  |  ------------------
  |  |  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  |  |  ------------------
  |  |  |  Branch (323:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|            return EXT_RETURN_SENT;                           \
  |  |  325|      0|        /* otherwise continue as normal */                    \
  |  |  326|      0|    }
  ------------------
  447|    342|#endif
  448|       |
  449|    342|    salglen = tls12_get_psigalgs(s, 1, &salg);
  450|    342|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_signature_algorithms)
  ------------------
  |  |  911|    684|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (450:9): [True: 0, False: 342]
  ------------------
  451|       |        /* Sub-packet for sig-algs extension */
  452|    342|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|    684|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (452:12): [True: 0, False: 342]
  ------------------
  453|       |        /* Sub-packet for the actual list */
  454|    342|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|    684|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (454:12): [True: 0, False: 342]
  ------------------
  455|    342|        || !tls12_copy_sigalgs(s, pkt, salg, salglen)
  ------------------
  |  Branch (455:12): [True: 0, False: 342]
  ------------------
  456|    342|        || !WPACKET_close(pkt)
  ------------------
  |  Branch (456:12): [True: 0, False: 342]
  ------------------
  457|    342|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (457:12): [True: 0, False: 342]
  ------------------
  458|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  459|      0|        return EXT_RETURN_FAIL;
  460|      0|    }
  461|       |
  462|    342|    return EXT_RETURN_SENT;
  463|    342|}
tls_construct_ctos_status_request:
  469|    342|{
  470|    342|    int i;
  471|       |
  472|       |    /* This extension isn't defined for client Certificates */
  473|    342|    if (x != NULL)
  ------------------
  |  Branch (473:9): [True: 0, False: 342]
  ------------------
  474|      0|        return EXT_RETURN_NOT_SENT;
  475|       |
  476|    342|    if (s->ext.status_type != TLSEXT_STATUSTYPE_ocsp)
  ------------------
  |  |  181|    342|#define TLSEXT_STATUSTYPE_ocsp 1
  ------------------
  |  Branch (476:9): [True: 342, False: 0]
  ------------------
  477|    342|        return EXT_RETURN_NOT_SENT;
  478|      0|#ifndef OPENSSL_NO_ECH
  479|      0|    ECH_SAME_EXT(s, context, pkt)
  ------------------
  |  |  317|      0|    if (context == SSL_EXT_CLIENT_HELLO && !s->server         \
  |  |  ------------------
  |  |  |  |  300|      0|#define SSL_EXT_CLIENT_HELLO 0x00080
  |  |  ------------------
  |  |  |  Branch (317:9): [True: 0, False: 0]
  |  |  |  Branch (317:44): [True: 0, False: 0]
  |  |  ------------------
  |  |  318|      0|        && s->ext.ech.es != NULL && s->ext.ech.grease == 0) { \
  |  |  ------------------
  |  |  |  Branch (318:12): [True: 0, False: 0]
  |  |  |  Branch (318:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  319|      0|        int ech_iosame_rv = ossl_ech_same_ext(s, pkt);        \
  |  |  320|      0|                                                              \
  |  |  321|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_ERR)           \
  |  |  ------------------
  |  |  |  |  293|      0|#define OSSL_ECH_SAME_EXT_ERR 0 /* bummer something wrong */
  |  |  ------------------
  |  |  |  Branch (321:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  322|      0|            return EXT_RETURN_FAIL;                           \
  |  |  323|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_DONE)          \
  |  |  ------------------
  |  |  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  |  |  ------------------
  |  |  |  Branch (323:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|            return EXT_RETURN_SENT;                           \
  |  |  325|      0|        /* otherwise continue as normal */                    \
  |  |  326|      0|    }
  ------------------
  480|      0|#endif
  481|       |
  482|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_status_request)
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (482:9): [True: 0, False: 0]
  ------------------
  483|       |        /* Sub-packet for status request extension */
  484|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (484:12): [True: 0, False: 0]
  ------------------
  485|      0|        || !WPACKET_put_bytes_u8(pkt, TLSEXT_STATUSTYPE_ocsp)
  ------------------
  |  |  909|      0|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (485:12): [True: 0, False: 0]
  ------------------
  486|       |        /* Sub-packet for the ids */
  487|      0|        || !WPACKET_start_sub_packet_u16(pkt)) {
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (487:12): [True: 0, False: 0]
  ------------------
  488|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  489|      0|        return EXT_RETURN_FAIL;
  490|      0|    }
  491|      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 (491:17): [True: 0, False: 0]
  ------------------
  492|      0|        unsigned char *idbytes;
  493|      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)))
  ------------------
  494|      0|        int idlen = i2d_OCSP_RESPID(id, NULL);
  495|       |
  496|      0|        if (idlen <= 0
  ------------------
  |  Branch (496:13): [True: 0, False: 0]
  ------------------
  497|       |            /* Sub-packet for an individual id */
  498|      0|            || !WPACKET_sub_allocate_bytes_u16(pkt, idlen, &idbytes)
  ------------------
  |  |  851|      0|    WPACKET_sub_allocate_bytes__((pkt), (len), (bytes), 2)
  ------------------
  |  Branch (498:16): [True: 0, False: 0]
  ------------------
  499|      0|            || i2d_OCSP_RESPID(id, &idbytes) != idlen) {
  ------------------
  |  Branch (499:16): [True: 0, False: 0]
  ------------------
  500|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      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|      0|        || !WPACKET_start_sub_packet_u16(pkt)) {
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (505:12): [True: 0, False: 0]
  ------------------
  506|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  507|      0|        return EXT_RETURN_FAIL;
  508|      0|    }
  509|      0|    if (s->ext.ocsp.exts) {
  ------------------
  |  Branch (509:9): [True: 0, False: 0]
  ------------------
  510|      0|        unsigned char *extbytes;
  511|      0|        int extlen = i2d_X509_EXTENSIONS(s->ext.ocsp.exts, NULL);
  512|       |
  513|      0|        if (extlen < 0) {
  ------------------
  |  Branch (513:13): [True: 0, False: 0]
  ------------------
  514|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  515|      0|            return EXT_RETURN_FAIL;
  516|      0|        }
  517|      0|        if (!WPACKET_allocate_bytes(pkt, extlen, &extbytes)
  ------------------
  |  Branch (517:13): [True: 0, False: 0]
  ------------------
  518|      0|            || i2d_X509_EXTENSIONS(s->ext.ocsp.exts, &extbytes)
  ------------------
  |  Branch (518:16): [True: 0, False: 0]
  ------------------
  519|      0|                != extlen) {
  520|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  521|      0|            return EXT_RETURN_FAIL;
  522|      0|        }
  523|      0|    }
  524|      0|    if (!WPACKET_close(pkt) || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (524:9): [True: 0, False: 0]
  |  Branch (524:32): [True: 0, False: 0]
  ------------------
  525|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  526|      0|        return EXT_RETURN_FAIL;
  527|      0|    }
  528|       |
  529|      0|    return EXT_RETURN_SENT;
  530|      0|}
tls_construct_ctos_npn:
  537|    342|{
  538|    342|    if (SSL_CONNECTION_GET_CTX(s)->ext.npn_select_cb == NULL
  ------------------
  |  |   26|    342|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
  |  Branch (538:9): [True: 342, False: 0]
  ------------------
  539|      0|        || !SSL_IS_FIRST_HANDSHAKE(s))
  ------------------
  |  |  285|      0|#define SSL_IS_FIRST_HANDSHAKE(s) ((s)->s3.tmp.finish_md_len == 0 \
  |  |  ------------------
  |  |  |  Branch (285:36): [True: 0, False: 0]
  |  |  ------------------
  |  |  286|      0|    || (s)->s3.tmp.peer_finish_md_len == 0)
  |  |  ------------------
  |  |  |  Branch (286:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  540|    342|        return EXT_RETURN_NOT_SENT;
  541|      0|#ifndef OPENSSL_NO_ECH
  542|      0|    ECH_SAME_EXT(s, context, pkt)
  ------------------
  |  |  317|      0|    if (context == SSL_EXT_CLIENT_HELLO && !s->server         \
  |  |  ------------------
  |  |  |  |  300|      0|#define SSL_EXT_CLIENT_HELLO 0x00080
  |  |  ------------------
  |  |  |  Branch (317:9): [True: 0, False: 0]
  |  |  |  Branch (317:44): [True: 0, False: 0]
  |  |  ------------------
  |  |  318|      0|        && s->ext.ech.es != NULL && s->ext.ech.grease == 0) { \
  |  |  ------------------
  |  |  |  Branch (318:12): [True: 0, False: 0]
  |  |  |  Branch (318:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  319|      0|        int ech_iosame_rv = ossl_ech_same_ext(s, pkt);        \
  |  |  320|      0|                                                              \
  |  |  321|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_ERR)           \
  |  |  ------------------
  |  |  |  |  293|      0|#define OSSL_ECH_SAME_EXT_ERR 0 /* bummer something wrong */
  |  |  ------------------
  |  |  |  Branch (321:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  322|      0|            return EXT_RETURN_FAIL;                           \
  |  |  323|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_DONE)          \
  |  |  ------------------
  |  |  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  |  |  ------------------
  |  |  |  Branch (323:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|            return EXT_RETURN_SENT;                           \
  |  |  325|      0|        /* otherwise continue as normal */                    \
  |  |  326|      0|    }
  ------------------
  543|      0|#endif
  544|       |
  545|       |    /*
  546|       |     * The client advertises an empty extension to indicate its support
  547|       |     * for Next Protocol Negotiation
  548|       |     */
  549|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_next_proto_neg)
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (549:9): [True: 0, False: 0]
  ------------------
  550|      0|        || !WPACKET_put_bytes_u16(pkt, 0)) {
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (550:12): [True: 0, False: 0]
  ------------------
  551|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  552|      0|        return EXT_RETURN_FAIL;
  553|      0|    }
  554|       |
  555|      0|    return EXT_RETURN_SENT;
  556|      0|}
tls_construct_ctos_alpn:
  562|    342|{
  563|    342|    unsigned char *aval = s->ext.alpn;
  564|    342|    size_t alen = s->ext.alpn_len;
  565|       |
  566|    342|    s->s3.alpn_sent = 0;
  567|    342|    if (!SSL_IS_FIRST_HANDSHAKE(s))
  ------------------
  |  |  285|    342|#define SSL_IS_FIRST_HANDSHAKE(s) ((s)->s3.tmp.finish_md_len == 0 \
  |  |  ------------------
  |  |  |  Branch (285:36): [True: 342, False: 0]
  |  |  ------------------
  |  |  286|    342|    || (s)->s3.tmp.peer_finish_md_len == 0)
  |  |  ------------------
  |  |  |  Branch (286:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  568|      0|        return EXT_RETURN_NOT_SENT;
  569|    342|#ifndef OPENSSL_NO_ECH
  570|       |    /*
  571|       |     * If we have different alpn and alpn_outer values, then we set
  572|       |     * the appropriate one for inner and outer.
  573|       |     * If no alpn is set (for inner or outer), we don't send any.
  574|       |     * If only an inner is set then we send the same in both.
  575|       |     * Logic above is on the basis that alpn's aren't that sensitive,
  576|       |     * usually, so special action is needed to do better.
  577|       |     * We also don't support a way to send alpn only in the inner.
  578|       |     * If you don't want the inner value in the outer, you have to
  579|       |     * pick what to send in the outer and send that.
  580|       |     */
  581|    342|    if (s->ext.ech.ch_depth == 1 && s->ext.alpn == NULL) /* inner */
  ------------------
  |  Branch (581:9): [True: 0, False: 342]
  |  Branch (581:37): [True: 0, False: 0]
  ------------------
  582|      0|        return EXT_RETURN_NOT_SENT;
  583|    342|    if (s->ext.ech.ch_depth == 0 && s->ext.alpn == NULL
  ------------------
  |  Branch (583:9): [True: 342, False: 0]
  |  Branch (583:37): [True: 342, False: 0]
  ------------------
  584|    342|        && s->ext.ech.alpn_outer == NULL) /* outer */
  ------------------
  |  Branch (584:12): [True: 342, False: 0]
  ------------------
  585|    342|        return EXT_RETURN_NOT_SENT;
  586|      0|    if (s->ext.ech.ch_depth == 0 && s->ext.ech.alpn_outer != NULL) {
  ------------------
  |  Branch (586:9): [True: 0, False: 0]
  |  Branch (586:37): [True: 0, False: 0]
  ------------------
  587|      0|        aval = s->ext.ech.alpn_outer;
  588|      0|        alen = s->ext.ech.alpn_outer_len;
  589|      0|    }
  590|      0|#endif
  591|      0|    if (aval == NULL)
  ------------------
  |  Branch (591:9): [True: 0, False: 0]
  ------------------
  592|      0|        return EXT_RETURN_NOT_SENT;
  593|      0|    if (!WPACKET_put_bytes_u16(pkt,
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (593:9): [True: 0, False: 0]
  ------------------
  594|      0|            TLSEXT_TYPE_application_layer_protocol_negotiation)
  595|       |        /* Sub-packet ALPN extension */
  596|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (596:12): [True: 0, False: 0]
  ------------------
  597|      0|        || !WPACKET_sub_memcpy_u16(pkt, aval, alen)
  ------------------
  |  |  940|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 2)
  ------------------
  |  Branch (597:12): [True: 0, False: 0]
  ------------------
  598|      0|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (598:12): [True: 0, False: 0]
  ------------------
  599|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  600|      0|        return EXT_RETURN_FAIL;
  601|      0|    }
  602|      0|    s->s3.alpn_sent = 1;
  603|      0|    return EXT_RETURN_SENT;
  604|      0|}
tls_construct_ctos_use_srtp:
  610|    342|{
  611|    342|    SSL *ssl = SSL_CONNECTION_GET_SSL(s);
  ------------------
  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
  612|    342|    STACK_OF(SRTP_PROTECTION_PROFILE) *clnt = SSL_get_srtp_profiles(ssl);
  ------------------
  |  |   33|    342|#define STACK_OF(type) struct stack_st_##type
  ------------------
  613|    342|    int i, end;
  614|       |
  615|    342|    if (clnt == NULL)
  ------------------
  |  Branch (615:9): [True: 342, False: 0]
  ------------------
  616|    342|        return EXT_RETURN_NOT_SENT;
  617|      0|#ifndef OPENSSL_NO_ECH
  618|      0|    ECH_SAME_EXT(s, context, pkt)
  ------------------
  |  |  317|      0|    if (context == SSL_EXT_CLIENT_HELLO && !s->server         \
  |  |  ------------------
  |  |  |  |  300|      0|#define SSL_EXT_CLIENT_HELLO 0x00080
  |  |  ------------------
  |  |  |  Branch (317:9): [True: 0, False: 0]
  |  |  |  Branch (317:44): [True: 0, False: 0]
  |  |  ------------------
  |  |  318|      0|        && s->ext.ech.es != NULL && s->ext.ech.grease == 0) { \
  |  |  ------------------
  |  |  |  Branch (318:12): [True: 0, False: 0]
  |  |  |  Branch (318:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  319|      0|        int ech_iosame_rv = ossl_ech_same_ext(s, pkt);        \
  |  |  320|      0|                                                              \
  |  |  321|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_ERR)           \
  |  |  ------------------
  |  |  |  |  293|      0|#define OSSL_ECH_SAME_EXT_ERR 0 /* bummer something wrong */
  |  |  ------------------
  |  |  |  Branch (321:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  322|      0|            return EXT_RETURN_FAIL;                           \
  |  |  323|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_DONE)          \
  |  |  ------------------
  |  |  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  |  |  ------------------
  |  |  |  Branch (323:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|            return EXT_RETURN_SENT;                           \
  |  |  325|      0|        /* otherwise continue as normal */                    \
  |  |  326|      0|    }
  ------------------
  619|      0|#endif
  620|       |
  621|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_use_srtp)
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (621:9): [True: 0, False: 0]
  ------------------
  622|       |        /* Sub-packet for SRTP extension */
  623|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (623:12): [True: 0, False: 0]
  ------------------
  624|       |        /* Sub-packet for the protection profile list */
  625|      0|        || !WPACKET_start_sub_packet_u16(pkt)) {
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (625:12): [True: 0, False: 0]
  ------------------
  626|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  627|      0|        return EXT_RETURN_FAIL;
  628|      0|    }
  629|       |
  630|      0|    end = sk_SRTP_PROTECTION_PROFILE_num(clnt);
  ------------------
  |  |  251|      0|#define sk_SRTP_PROTECTION_PROFILE_num(sk) OPENSSL_sk_num(ossl_check_const_SRTP_PROTECTION_PROFILE_sk_type(sk))
  ------------------
  631|      0|    for (i = 0; i < end; i++) {
  ------------------
  |  Branch (631:17): [True: 0, False: 0]
  ------------------
  632|      0|        const SRTP_PROTECTION_PROFILE *prof = sk_SRTP_PROTECTION_PROFILE_value(clnt, i);
  ------------------
  |  |  252|      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)))
  ------------------
  633|       |
  634|      0|        if (prof == NULL || !WPACKET_put_bytes_u16(pkt, prof->id)) {
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (634:13): [True: 0, False: 0]
  |  Branch (634:29): [True: 0, False: 0]
  ------------------
  635|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  636|      0|            return EXT_RETURN_FAIL;
  637|      0|        }
  638|      0|    }
  639|      0|    if (!WPACKET_close(pkt)
  ------------------
  |  Branch (639:9): [True: 0, False: 0]
  ------------------
  640|       |        /* Add an empty use_mki value */
  641|      0|        || !WPACKET_put_bytes_u8(pkt, 0)
  ------------------
  |  |  909|      0|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (641:12): [True: 0, False: 0]
  ------------------
  642|      0|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (642:12): [True: 0, False: 0]
  ------------------
  643|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  644|      0|        return EXT_RETURN_FAIL;
  645|      0|    }
  646|       |
  647|      0|    return EXT_RETURN_SENT;
  648|      0|}
tls_construct_ctos_etm:
  654|    342|{
  655|    342|    if (s->options & SSL_OP_NO_ENCRYPT_THEN_MAC)
  ------------------
  |  |  399|    342|#define SSL_OP_NO_ENCRYPT_THEN_MAC SSL_OP_BIT(19)
  |  |  ------------------
  |  |  |  |  351|    342|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (655:9): [True: 0, False: 342]
  ------------------
  656|      0|        return EXT_RETURN_NOT_SENT;
  657|    342|#ifndef OPENSSL_NO_ECH
  658|    342|    ECH_SAME_EXT(s, context, pkt)
  ------------------
  |  |  317|    342|    if (context == SSL_EXT_CLIENT_HELLO && !s->server         \
  |  |  ------------------
  |  |  |  |  300|    684|#define SSL_EXT_CLIENT_HELLO 0x00080
  |  |  ------------------
  |  |  |  Branch (317:9): [True: 342, False: 0]
  |  |  |  Branch (317:44): [True: 342, False: 0]
  |  |  ------------------
  |  |  318|    342|        && s->ext.ech.es != NULL && s->ext.ech.grease == 0) { \
  |  |  ------------------
  |  |  |  Branch (318:12): [True: 0, False: 342]
  |  |  |  Branch (318:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  319|      0|        int ech_iosame_rv = ossl_ech_same_ext(s, pkt);        \
  |  |  320|      0|                                                              \
  |  |  321|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_ERR)           \
  |  |  ------------------
  |  |  |  |  293|      0|#define OSSL_ECH_SAME_EXT_ERR 0 /* bummer something wrong */
  |  |  ------------------
  |  |  |  Branch (321:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  322|      0|            return EXT_RETURN_FAIL;                           \
  |  |  323|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_DONE)          \
  |  |  ------------------
  |  |  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  |  |  ------------------
  |  |  |  Branch (323:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|            return EXT_RETURN_SENT;                           \
  |  |  325|      0|        /* otherwise continue as normal */                    \
  |  |  326|      0|    }
  ------------------
  659|    342|#endif
  660|       |
  661|    342|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_encrypt_then_mac)
  ------------------
  |  |  911|    684|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (661:9): [True: 0, False: 342]
  ------------------
  662|    342|        || !WPACKET_put_bytes_u16(pkt, 0)) {
  ------------------
  |  |  911|    342|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (662:12): [True: 0, False: 342]
  ------------------
  663|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  664|      0|        return EXT_RETURN_FAIL;
  665|      0|    }
  666|       |
  667|    342|    return EXT_RETURN_SENT;
  668|    342|}
tls_construct_ctos_sct:
  674|    342|{
  675|    342|    if (s->ct_validation_callback == NULL)
  ------------------
  |  Branch (675:9): [True: 342, False: 0]
  ------------------
  676|    342|        return EXT_RETURN_NOT_SENT;
  677|       |
  678|       |    /* Not defined for client Certificates */
  679|      0|    if (x != NULL)
  ------------------
  |  Branch (679:9): [True: 0, False: 0]
  ------------------
  680|      0|        return EXT_RETURN_NOT_SENT;
  681|      0|#ifndef OPENSSL_NO_ECH
  682|      0|    ECH_SAME_EXT(s, context, pkt)
  ------------------
  |  |  317|      0|    if (context == SSL_EXT_CLIENT_HELLO && !s->server         \
  |  |  ------------------
  |  |  |  |  300|      0|#define SSL_EXT_CLIENT_HELLO 0x00080
  |  |  ------------------
  |  |  |  Branch (317:9): [True: 0, False: 0]
  |  |  |  Branch (317:44): [True: 0, False: 0]
  |  |  ------------------
  |  |  318|      0|        && s->ext.ech.es != NULL && s->ext.ech.grease == 0) { \
  |  |  ------------------
  |  |  |  Branch (318:12): [True: 0, False: 0]
  |  |  |  Branch (318:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  319|      0|        int ech_iosame_rv = ossl_ech_same_ext(s, pkt);        \
  |  |  320|      0|                                                              \
  |  |  321|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_ERR)           \
  |  |  ------------------
  |  |  |  |  293|      0|#define OSSL_ECH_SAME_EXT_ERR 0 /* bummer something wrong */
  |  |  ------------------
  |  |  |  Branch (321:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  322|      0|            return EXT_RETURN_FAIL;                           \
  |  |  323|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_DONE)          \
  |  |  ------------------
  |  |  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  |  |  ------------------
  |  |  |  Branch (323:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|            return EXT_RETURN_SENT;                           \
  |  |  325|      0|        /* otherwise continue as normal */                    \
  |  |  326|      0|    }
  ------------------
  683|      0|#endif
  684|       |
  685|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_signed_certificate_timestamp)
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (685:9): [True: 0, False: 0]
  ------------------
  686|      0|        || !WPACKET_put_bytes_u16(pkt, 0)) {
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (686:12): [True: 0, False: 0]
  ------------------
  687|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  688|      0|        return EXT_RETURN_FAIL;
  689|      0|    }
  690|       |
  691|      0|    return EXT_RETURN_SENT;
  692|      0|}
tls_construct_ctos_ems:
  698|    342|{
  699|    342|    if (s->options & SSL_OP_NO_EXTENDED_MASTER_SECRET)
  ------------------
  |  |  357|    342|#define SSL_OP_NO_EXTENDED_MASTER_SECRET SSL_OP_BIT(0)
  |  |  ------------------
  |  |  |  |  351|    342|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (699:9): [True: 0, False: 342]
  ------------------
  700|      0|        return EXT_RETURN_NOT_SENT;
  701|    342|#ifndef OPENSSL_NO_ECH
  702|    342|    ECH_SAME_EXT(s, context, pkt)
  ------------------
  |  |  317|    342|    if (context == SSL_EXT_CLIENT_HELLO && !s->server         \
  |  |  ------------------
  |  |  |  |  300|    684|#define SSL_EXT_CLIENT_HELLO 0x00080
  |  |  ------------------
  |  |  |  Branch (317:9): [True: 342, False: 0]
  |  |  |  Branch (317:44): [True: 342, False: 0]
  |  |  ------------------
  |  |  318|    342|        && s->ext.ech.es != NULL && s->ext.ech.grease == 0) { \
  |  |  ------------------
  |  |  |  Branch (318:12): [True: 0, False: 342]
  |  |  |  Branch (318:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  319|      0|        int ech_iosame_rv = ossl_ech_same_ext(s, pkt);        \
  |  |  320|      0|                                                              \
  |  |  321|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_ERR)           \
  |  |  ------------------
  |  |  |  |  293|      0|#define OSSL_ECH_SAME_EXT_ERR 0 /* bummer something wrong */
  |  |  ------------------
  |  |  |  Branch (321:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  322|      0|            return EXT_RETURN_FAIL;                           \
  |  |  323|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_DONE)          \
  |  |  ------------------
  |  |  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  |  |  ------------------
  |  |  |  Branch (323:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|            return EXT_RETURN_SENT;                           \
  |  |  325|      0|        /* otherwise continue as normal */                    \
  |  |  326|      0|    }
  ------------------
  703|    342|#endif
  704|       |
  705|    342|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_extended_master_secret)
  ------------------
  |  |  911|    684|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (705:9): [True: 0, False: 342]
  ------------------
  706|    342|        || !WPACKET_put_bytes_u16(pkt, 0)) {
  ------------------
  |  |  911|    342|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (706:12): [True: 0, False: 342]
  ------------------
  707|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  708|      0|        return EXT_RETURN_FAIL;
  709|      0|    }
  710|       |
  711|    342|    return EXT_RETURN_SENT;
  712|    342|}
tls_construct_ctos_supported_versions:
  717|    342|{
  718|    342|    int currv, min_version, max_version, reason;
  719|       |
  720|    342|    reason = ssl_get_min_max_version(s, &min_version, &max_version, NULL);
  721|    342|    if (reason != 0) {
  ------------------
  |  Branch (721:9): [True: 0, False: 342]
  ------------------
  722|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, reason);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  723|      0|        return EXT_RETURN_FAIL;
  724|      0|    }
  725|       |
  726|       |    /*
  727|       |     * Don't include this if we can't negotiate TLSv1.3. We can do a straight
  728|       |     * comparison here because we will never be called in DTLS.
  729|       |     */
  730|    342|    if (max_version < TLS1_3_VERSION)
  ------------------
  |  |   27|    342|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (730:9): [True: 0, False: 342]
  ------------------
  731|      0|        return EXT_RETURN_NOT_SENT;
  732|    342|#ifndef OPENSSL_NO_ECH
  733|    342|    ECH_SAME_EXT(s, context, pkt)
  ------------------
  |  |  317|    342|    if (context == SSL_EXT_CLIENT_HELLO && !s->server         \
  |  |  ------------------
  |  |  |  |  300|    684|#define SSL_EXT_CLIENT_HELLO 0x00080
  |  |  ------------------
  |  |  |  Branch (317:9): [True: 342, False: 0]
  |  |  |  Branch (317:44): [True: 342, False: 0]
  |  |  ------------------
  |  |  318|    342|        && s->ext.ech.es != NULL && s->ext.ech.grease == 0) { \
  |  |  ------------------
  |  |  |  Branch (318:12): [True: 0, False: 342]
  |  |  |  Branch (318:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  319|      0|        int ech_iosame_rv = ossl_ech_same_ext(s, pkt);        \
  |  |  320|      0|                                                              \
  |  |  321|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_ERR)           \
  |  |  ------------------
  |  |  |  |  293|      0|#define OSSL_ECH_SAME_EXT_ERR 0 /* bummer something wrong */
  |  |  ------------------
  |  |  |  Branch (321:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  322|      0|            return EXT_RETURN_FAIL;                           \
  |  |  323|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_DONE)          \
  |  |  ------------------
  |  |  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  |  |  ------------------
  |  |  |  Branch (323:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|            return EXT_RETURN_SENT;                           \
  |  |  325|      0|        /* otherwise continue as normal */                    \
  |  |  326|      0|    }
  ------------------
  734|    342|#endif
  735|       |
  736|    342|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_supported_versions)
  ------------------
  |  |  911|    684|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (736:9): [True: 0, False: 342]
  ------------------
  737|    342|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|    684|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (737:12): [True: 0, False: 342]
  ------------------
  738|    342|        || !WPACKET_start_sub_packet_u8(pkt)) {
  ------------------
  |  |  810|    342|    WPACKET_start_sub_packet_len__((pkt), 1)
  ------------------
  |  Branch (738:12): [True: 0, False: 342]
  ------------------
  739|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  740|      0|        return EXT_RETURN_FAIL;
  741|      0|    }
  742|       |
  743|  1.02k|    for (currv = max_version; currv >= min_version; currv--) {
  ------------------
  |  Branch (743:31): [True: 684, False: 342]
  ------------------
  744|    684|        if (!WPACKET_put_bytes_u16(pkt, currv)) {
  ------------------
  |  |  911|    684|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (744:13): [True: 0, False: 684]
  ------------------
  745|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  746|      0|            return EXT_RETURN_FAIL;
  747|      0|        }
  748|    684|    }
  749|    342|    if (!WPACKET_close(pkt) || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (749:9): [True: 0, False: 342]
  |  Branch (749:32): [True: 0, False: 342]
  ------------------
  750|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  751|      0|        return EXT_RETURN_FAIL;
  752|      0|    }
  753|       |
  754|    342|    return EXT_RETURN_SENT;
  755|    342|}
tls_construct_ctos_psk_kex_modes:
  763|    342|{
  764|    342|#ifndef OPENSSL_NO_TLS1_3
  765|    342|    int nodhe = s->options & SSL_OP_ALLOW_NO_DHE_KEX;
  ------------------
  |  |  370|    342|#define SSL_OP_ALLOW_NO_DHE_KEX SSL_OP_BIT(10)
  |  |  ------------------
  |  |  |  |  351|    342|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  766|       |
  767|    342|#ifndef OPENSSL_NO_ECH
  768|    342|    ECH_SAME_EXT(s, context, pkt)
  ------------------
  |  |  317|    342|    if (context == SSL_EXT_CLIENT_HELLO && !s->server         \
  |  |  ------------------
  |  |  |  |  300|    684|#define SSL_EXT_CLIENT_HELLO 0x00080
  |  |  ------------------
  |  |  |  Branch (317:9): [True: 342, False: 0]
  |  |  |  Branch (317:44): [True: 342, False: 0]
  |  |  ------------------
  |  |  318|    342|        && s->ext.ech.es != NULL && s->ext.ech.grease == 0) { \
  |  |  ------------------
  |  |  |  Branch (318:12): [True: 0, False: 342]
  |  |  |  Branch (318:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  319|      0|        int ech_iosame_rv = ossl_ech_same_ext(s, pkt);        \
  |  |  320|      0|                                                              \
  |  |  321|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_ERR)           \
  |  |  ------------------
  |  |  |  |  293|      0|#define OSSL_ECH_SAME_EXT_ERR 0 /* bummer something wrong */
  |  |  ------------------
  |  |  |  Branch (321:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  322|      0|            return EXT_RETURN_FAIL;                           \
  |  |  323|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_DONE)          \
  |  |  ------------------
  |  |  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  |  |  ------------------
  |  |  |  Branch (323:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|            return EXT_RETURN_SENT;                           \
  |  |  325|      0|        /* otherwise continue as normal */                    \
  |  |  326|      0|    }
  ------------------
  769|    342|#endif
  770|       |
  771|    342|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_psk_kex_modes)
  ------------------
  |  |  911|    684|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (771:9): [True: 0, False: 342]
  ------------------
  772|    342|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|    684|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (772:12): [True: 0, False: 342]
  ------------------
  773|    342|        || !WPACKET_start_sub_packet_u8(pkt)
  ------------------
  |  |  810|    684|    WPACKET_start_sub_packet_len__((pkt), 1)
  ------------------
  |  Branch (773:12): [True: 0, False: 342]
  ------------------
  774|    342|        || !WPACKET_put_bytes_u8(pkt, TLSEXT_KEX_MODE_KE_DHE)
  ------------------
  |  |  909|    684|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (774:12): [True: 0, False: 342]
  ------------------
  775|    342|        || (nodhe && !WPACKET_put_bytes_u8(pkt, TLSEXT_KEX_MODE_KE))
  ------------------
  |  |  909|      0|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (775:13): [True: 0, False: 342]
  |  Branch (775:22): [True: 0, False: 0]
  ------------------
  776|    342|        || !WPACKET_close(pkt)
  ------------------
  |  Branch (776:12): [True: 0, False: 342]
  ------------------
  777|    342|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (777:12): [True: 0, False: 342]
  ------------------
  778|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  779|      0|        return EXT_RETURN_FAIL;
  780|      0|    }
  781|       |
  782|    342|    s->ext.psk_kex_mode = TLSEXT_KEX_MODE_FLAG_KE_DHE;
  ------------------
  |  | 2224|    342|#define TLSEXT_KEX_MODE_FLAG_KE_DHE 2
  ------------------
  783|    342|    if (nodhe)
  ------------------
  |  Branch (783:9): [True: 0, False: 342]
  ------------------
  784|      0|        s->ext.psk_kex_mode |= TLSEXT_KEX_MODE_FLAG_KE;
  ------------------
  |  | 2223|      0|#define TLSEXT_KEX_MODE_FLAG_KE 1
  ------------------
  785|    342|#endif
  786|       |
  787|    342|    return EXT_RETURN_SENT;
  788|    342|}
tls_construct_ctos_key_share:
  854|    342|{
  855|    342|#ifndef OPENSSL_NO_TLS1_3
  856|    342|    size_t i, num_groups = 0;
  857|    342|    const uint16_t *pgroups = NULL;
  858|    342|    uint16_t group_id = 0;
  859|    342|    int add_only_one = 0;
  860|    342|    size_t valid_keyshare = 0;
  861|       |
  862|    342|#ifndef OPENSSL_NO_ECH
  863|    342|    ECH_SAME_EXT(s, context, pkt)
  ------------------
  |  |  317|    342|    if (context == SSL_EXT_CLIENT_HELLO && !s->server         \
  |  |  ------------------
  |  |  |  |  300|    684|#define SSL_EXT_CLIENT_HELLO 0x00080
  |  |  ------------------
  |  |  |  Branch (317:9): [True: 342, False: 0]
  |  |  |  Branch (317:44): [True: 342, False: 0]
  |  |  ------------------
  |  |  318|    342|        && s->ext.ech.es != NULL && s->ext.ech.grease == 0) { \
  |  |  ------------------
  |  |  |  Branch (318:12): [True: 0, False: 342]
  |  |  |  Branch (318:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  319|      0|        int ech_iosame_rv = ossl_ech_same_ext(s, pkt);        \
  |  |  320|      0|                                                              \
  |  |  321|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_ERR)           \
  |  |  ------------------
  |  |  |  |  293|      0|#define OSSL_ECH_SAME_EXT_ERR 0 /* bummer something wrong */
  |  |  ------------------
  |  |  |  Branch (321:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  322|      0|            return EXT_RETURN_FAIL;                           \
  |  |  323|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_DONE)          \
  |  |  ------------------
  |  |  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  |  |  ------------------
  |  |  |  Branch (323:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|            return EXT_RETURN_SENT;                           \
  |  |  325|      0|        /* otherwise continue as normal */                    \
  |  |  326|      0|    }
  ------------------
  864|    342|#endif
  865|       |
  866|       |    /* key_share extension */
  867|    342|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_key_share)
  ------------------
  |  |  911|    684|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (867:9): [True: 0, False: 342]
  ------------------
  868|       |        /* Extension data sub-packet */
  869|    342|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|    684|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (869:12): [True: 0, False: 342]
  ------------------
  870|       |        /* KeyShare list sub-packet */
  871|    342|        || !WPACKET_start_sub_packet_u16(pkt)) {
  ------------------
  |  |  812|    342|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (871:12): [True: 0, False: 342]
  ------------------
  872|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  873|      0|        return EXT_RETURN_FAIL;
  874|      0|    }
  875|       |
  876|    342|    tls1_get_requested_keyshare_groups(s, &pgroups, &num_groups);
  877|    342|    if (num_groups == 1 && pgroups[0] == 0) { /* Indication that no * prefix was used */
  ------------------
  |  Branch (877:9): [True: 0, False: 342]
  |  Branch (877:28): [True: 0, False: 0]
  ------------------
  878|      0|        tls1_get_supported_groups(s, &pgroups, &num_groups);
  879|      0|        add_only_one = 1;
  880|      0|    }
  881|       |
  882|       |    /* If neither the default nor the keyshares have any entry --> fatal */
  883|    342|    if (num_groups == 0) {
  ------------------
  |  Branch (883:9): [True: 0, False: 342]
  ------------------
  884|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_SUITABLE_KEY_SHARE);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  885|      0|        return EXT_RETURN_FAIL;
  886|      0|    }
  887|       |
  888|       |    /* Add key shares */
  889|       |
  890|    342|    if (s->s3.group_id != 0 && s->s3.tmp.pkey == NULL) {
  ------------------
  |  Branch (890:9): [True: 0, False: 342]
  |  Branch (890:32): [True: 0, False: 0]
  ------------------
  891|       |        /* new, single key share */
  892|      0|        group_id = s->s3.group_id;
  893|      0|        s->s3.tmp.num_ks_pkey = 0;
  894|      0|        if (!add_key_share(s, pkt, group_id, 0)) {
  ------------------
  |  Branch (894:13): [True: 0, False: 0]
  ------------------
  895|       |            /* SSLfatal() already called */
  896|      0|            return EXT_RETURN_FAIL;
  897|      0|        }
  898|      0|        valid_keyshare++;
  899|    342|    } else {
  900|    342|        if (s->ext.supportedgroups == NULL) /* use default */
  ------------------
  |  Branch (900:13): [True: 0, False: 342]
  ------------------
  901|      0|            add_only_one = 1;
  902|       |
  903|  1.02k|        for (i = 0; i < num_groups; i++) {
  ------------------
  |  Branch (903:21): [True: 684, False: 342]
  ------------------
  904|    684|            if (!tls_group_allowed(s, pgroups[i], SSL_SECOP_CURVE_SUPPORTED))
  ------------------
  |  | 2749|    684|#define SSL_SECOP_CURVE_SUPPORTED (4 | SSL_SECOP_OTHER_CURVE)
  |  |  ------------------
  |  |  |  | 2730|    684|#define SSL_SECOP_OTHER_CURVE (2 << 16)
  |  |  ------------------
  ------------------
  |  Branch (904:17): [True: 0, False: 684]
  ------------------
  905|      0|                continue;
  906|    684|            if (!tls_valid_group(s, pgroups[i], TLS1_3_VERSION, TLS1_3_VERSION,
  ------------------
  |  |   27|    684|#define TLS1_3_VERSION 0x0304
  ------------------
                          if (!tls_valid_group(s, pgroups[i], TLS1_3_VERSION, TLS1_3_VERSION,
  ------------------
  |  |   27|    684|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (906:17): [True: 0, False: 684]
  ------------------
  907|    684|                    NULL, NULL))
  908|      0|                continue;
  909|       |
  910|    684|            group_id = pgroups[i];
  911|       |
  912|    684|            if (group_id == 0) {
  ------------------
  |  Branch (912:17): [True: 0, False: 684]
  ------------------
  913|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_SUITABLE_KEY_SHARE);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  914|      0|                return EXT_RETURN_FAIL;
  915|      0|            }
  916|    684|            if (!add_key_share(s, pkt, group_id, valid_keyshare)) {
  ------------------
  |  Branch (916:17): [True: 0, False: 684]
  ------------------
  917|       |                /* SSLfatal() already called */
  918|      0|                return EXT_RETURN_FAIL;
  919|      0|            }
  920|    684|            valid_keyshare++;
  921|    684|            if (add_only_one)
  ------------------
  |  Branch (921:17): [True: 0, False: 684]
  ------------------
  922|      0|                break;
  923|    684|        }
  924|    342|    }
  925|       |
  926|    342|    if (valid_keyshare == 0) {
  ------------------
  |  Branch (926:9): [True: 0, False: 342]
  ------------------
  927|       |        /* No key shares were allowed */
  928|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_NO_SUITABLE_KEY_SHARE);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  929|      0|        return EXT_RETURN_FAIL;
  930|      0|    }
  931|       |
  932|    342|#ifndef OPENSSL_NO_ECH
  933|       |    /* stash inner key shares */
  934|    342|    if (s->ext.ech.ch_depth == 1 && ossl_ech_stash_keyshares(s) != 1) {
  ------------------
  |  Branch (934:9): [True: 0, False: 342]
  |  Branch (934:37): [True: 0, False: 0]
  ------------------
  935|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  936|      0|        return EXT_RETURN_FAIL;
  937|      0|    }
  938|    342|#endif
  939|       |
  940|    342|    if (!WPACKET_close(pkt) || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (940:9): [True: 0, False: 342]
  |  Branch (940:32): [True: 0, False: 342]
  ------------------
  941|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  942|      0|        return EXT_RETURN_FAIL;
  943|      0|    }
  944|    342|    return EXT_RETURN_SENT;
  945|       |#else
  946|       |    return EXT_RETURN_NOT_SENT;
  947|       |#endif
  948|    342|}
tls_construct_ctos_cookie:
  953|    342|{
  954|    342|    EXT_RETURN ret = EXT_RETURN_FAIL;
  955|       |
  956|       |    /* Should only be set if we've had an HRR */
  957|    342|    if (s->ext.tls13_cookie_len == 0)
  ------------------
  |  Branch (957:9): [True: 342, False: 0]
  ------------------
  958|    342|        return EXT_RETURN_NOT_SENT;
  959|      0|#ifndef OPENSSL_NO_ECH
  960|      0|    ECH_SAME_EXT(s, context, pkt)
  ------------------
  |  |  317|      0|    if (context == SSL_EXT_CLIENT_HELLO && !s->server         \
  |  |  ------------------
  |  |  |  |  300|      0|#define SSL_EXT_CLIENT_HELLO 0x00080
  |  |  ------------------
  |  |  |  Branch (317:9): [True: 0, False: 0]
  |  |  |  Branch (317:44): [True: 0, False: 0]
  |  |  ------------------
  |  |  318|      0|        && s->ext.ech.es != NULL && s->ext.ech.grease == 0) { \
  |  |  ------------------
  |  |  |  Branch (318:12): [True: 0, False: 0]
  |  |  |  Branch (318:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  319|      0|        int ech_iosame_rv = ossl_ech_same_ext(s, pkt);        \
  |  |  320|      0|                                                              \
  |  |  321|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_ERR)           \
  |  |  ------------------
  |  |  |  |  293|      0|#define OSSL_ECH_SAME_EXT_ERR 0 /* bummer something wrong */
  |  |  ------------------
  |  |  |  Branch (321:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  322|      0|            return EXT_RETURN_FAIL;                           \
  |  |  323|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_DONE)          \
  |  |  ------------------
  |  |  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  |  |  ------------------
  |  |  |  Branch (323:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|            return EXT_RETURN_SENT;                           \
  |  |  325|      0|        /* otherwise continue as normal */                    \
  |  |  326|      0|    }
  ------------------
  961|      0|#endif
  962|       |
  963|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_cookie)
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (963:9): [True: 0, False: 0]
  ------------------
  964|       |        /* Extension data sub-packet */
  965|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (965:12): [True: 0, False: 0]
  ------------------
  966|      0|        || !WPACKET_sub_memcpy_u16(pkt, s->ext.tls13_cookie,
  ------------------
  |  |  940|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 2)
  ------------------
  |  Branch (966:12): [True: 0, False: 0]
  ------------------
  967|      0|            s->ext.tls13_cookie_len)
  968|      0|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (968:12): [True: 0, False: 0]
  ------------------
  969|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  970|      0|        goto end;
  971|      0|    }
  972|       |
  973|      0|    ret = EXT_RETURN_SENT;
  974|      0|end:
  975|      0|    OPENSSL_free(s->ext.tls13_cookie);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  976|      0|    s->ext.tls13_cookie = NULL;
  977|      0|    s->ext.tls13_cookie_len = 0;
  978|       |
  979|      0|    return ret;
  980|      0|}
tls_construct_ctos_early_data:
  985|    342|{
  986|    342|#ifndef OPENSSL_NO_PSK
  987|    342|    char identity[PSK_MAX_IDENTITY_LEN + 1];
  988|    342|#endif /* OPENSSL_NO_PSK */
  989|    342|    const unsigned char *id = NULL;
  990|    342|    size_t idlen = 0;
  991|    342|    SSL_SESSION *psksess = NULL;
  992|    342|    SSL_SESSION *edsess = NULL;
  993|    342|    const EVP_MD *handmd = NULL;
  994|    342|    SSL *ussl = SSL_CONNECTION_GET_USER_SSL(s);
  ------------------
  |  |   28|    342|#define SSL_CONNECTION_GET_USER_SSL(sc) ((sc)->user_ssl)
  ------------------
  995|       |
  996|    342|#ifndef OPENSSL_NO_ECH
  997|       |    /*
  998|       |     * If we're attempting ECH and processing the outer CH
  999|       |     * then we only need to check if the extension is to be
 1000|       |     * sent or not - any other processing (with side effects)
 1001|       |     * happened already for the inner CH.
 1002|       |     */
 1003|    342|    if (s->ext.ech.es != NULL && s->ext.ech.ch_depth == 0) {
  ------------------
  |  Branch (1003:9): [True: 0, False: 342]
  |  Branch (1003:34): [True: 0, False: 0]
  ------------------
 1004|       |        /*
 1005|       |         * if we called this for inner and did send then
 1006|       |         * the following two things should be set, if so,
 1007|       |         * then send again in the outer CH.
 1008|       |         */
 1009|      0|        if (s->ext.early_data == SSL_EARLY_DATA_REJECTED
  ------------------
  |  | 2073|      0|#define SSL_EARLY_DATA_REJECTED 1
  ------------------
  |  Branch (1009:13): [True: 0, False: 0]
  ------------------
 1010|      0|            && s->ext.early_data_ok == 1) {
  ------------------
  |  Branch (1010:16): [True: 0, False: 0]
  ------------------
 1011|      0|            if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_early_data)
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (1011:17): [True: 0, False: 0]
  ------------------
 1012|      0|                || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (1012:20): [True: 0, False: 0]
  ------------------
 1013|      0|                || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (1013:20): [True: 0, False: 0]
  ------------------
 1014|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1015|      0|                return EXT_RETURN_FAIL;
 1016|      0|            }
 1017|      0|            return EXT_RETURN_SENT;
 1018|      0|        } else {
 1019|      0|            return EXT_RETURN_NOT_SENT;
 1020|      0|        }
 1021|      0|    }
 1022|    342|#endif
 1023|    342|    if (s->hello_retry_request == SSL_HRR_PENDING)
  ------------------
  |  Branch (1023:9): [True: 0, False: 342]
  ------------------
 1024|      0|        handmd = ssl_handshake_md(s);
 1025|       |
 1026|    342|    if (s->psk_use_session_cb != NULL
  ------------------
  |  Branch (1026:9): [True: 0, False: 342]
  ------------------
 1027|      0|        && (!s->psk_use_session_cb(ussl, handmd, &id, &idlen, &psksess)
  ------------------
  |  Branch (1027:13): [True: 0, False: 0]
  ------------------
 1028|      0|            || (psksess != NULL
  ------------------
  |  Branch (1028:17): [True: 0, False: 0]
  ------------------
 1029|      0|                && psksess->ssl_version != TLS1_3_VERSION))) {
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1029:20): [True: 0, False: 0]
  ------------------
 1030|      0|        SSL_SESSION_free(psksess);
 1031|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_BAD_PSK);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1032|      0|        return EXT_RETURN_FAIL;
 1033|      0|    }
 1034|       |
 1035|    342|#ifndef OPENSSL_NO_PSK
 1036|    342|    if (psksess == NULL && s->psk_client_callback != NULL) {
  ------------------
  |  Branch (1036:9): [True: 342, False: 0]
  |  Branch (1036:28): [True: 0, False: 342]
  ------------------
 1037|      0|        unsigned char psk[PSK_MAX_PSK_LEN];
 1038|      0|        size_t psklen = 0;
 1039|       |
 1040|      0|        memset(identity, 0, sizeof(identity));
 1041|      0|        psklen = s->psk_client_callback(ussl, NULL,
 1042|      0|            identity, sizeof(identity) - 1,
 1043|      0|            psk, sizeof(psk));
 1044|       |
 1045|      0|        if (psklen > PSK_MAX_PSK_LEN) {
  ------------------
  |  |  885|      0|#define PSK_MAX_PSK_LEN 512
  ------------------
  |  Branch (1045:13): [True: 0, False: 0]
  ------------------
 1046|      0|            SSLfatal(s, SSL_AD_HANDSHAKE_FAILURE, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1047|      0|            return EXT_RETURN_FAIL;
 1048|      0|        } else if (psklen > 0) {
  ------------------
  |  Branch (1048:20): [True: 0, False: 0]
  ------------------
 1049|      0|            const unsigned char tls13_aes128gcmsha256_id[] = { 0x13, 0x01 };
 1050|      0|            const SSL_CIPHER *cipher;
 1051|       |
 1052|      0|            idlen = strlen(identity);
 1053|      0|            if (idlen > PSK_MAX_IDENTITY_LEN) {
  ------------------
  |  |  884|      0|#define PSK_MAX_IDENTITY_LEN 256
  ------------------
  |  Branch (1053:17): [True: 0, False: 0]
  ------------------
 1054|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1055|      0|                return EXT_RETURN_FAIL;
 1056|      0|            }
 1057|      0|            id = (unsigned char *)identity;
 1058|       |
 1059|       |            /*
 1060|       |             * We found a PSK using an old style callback. We don't know
 1061|       |             * the digest so we default to SHA256 as per the TLSv1.3 spec
 1062|       |             */
 1063|      0|            cipher = SSL_CIPHER_find(SSL_CONNECTION_GET_SSL(s),
  ------------------
  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
 1064|      0|                tls13_aes128gcmsha256_id);
 1065|      0|            if (cipher == NULL) {
  ------------------
  |  Branch (1065:17): [True: 0, False: 0]
  ------------------
 1066|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1067|      0|                return EXT_RETURN_FAIL;
 1068|      0|            }
 1069|       |
 1070|      0|            psksess = SSL_SESSION_new();
 1071|      0|            if (psksess == NULL
  ------------------
  |  Branch (1071:17): [True: 0, False: 0]
  ------------------
 1072|      0|                || !SSL_SESSION_set1_master_key(psksess, psk, psklen)
  ------------------
  |  Branch (1072:20): [True: 0, False: 0]
  ------------------
 1073|      0|                || !SSL_SESSION_set_cipher(psksess, cipher)
  ------------------
  |  Branch (1073:20): [True: 0, False: 0]
  ------------------
 1074|      0|                || !SSL_SESSION_set_protocol_version(psksess, TLS1_3_VERSION)) {
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1074:20): [True: 0, False: 0]
  ------------------
 1075|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1076|      0|                OPENSSL_cleanse(psk, psklen);
 1077|      0|                return EXT_RETURN_FAIL;
 1078|      0|            }
 1079|      0|            OPENSSL_cleanse(psk, psklen);
 1080|      0|        }
 1081|      0|    }
 1082|    342|#endif /* OPENSSL_NO_PSK */
 1083|       |
 1084|    342|    SSL_SESSION_free(s->psksession);
 1085|    342|    s->psksession = psksess;
 1086|    342|    if (psksess != NULL) {
  ------------------
  |  Branch (1086:9): [True: 0, False: 342]
  ------------------
 1087|      0|        OPENSSL_free(s->psksession_id);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1088|      0|        s->psksession_id = OPENSSL_memdup(id, idlen);
  ------------------
  |  |  134|      0|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1089|      0|        if (s->psksession_id == NULL) {
  ------------------
  |  Branch (1089:13): [True: 0, False: 0]
  ------------------
 1090|      0|            s->psksession_id_len = 0;
 1091|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1092|      0|            return EXT_RETURN_FAIL;
 1093|      0|        }
 1094|      0|        s->psksession_id_len = idlen;
 1095|      0|    }
 1096|       |
 1097|    342|    if (s->early_data_state != SSL_EARLY_DATA_CONNECTING
  ------------------
  |  Branch (1097:9): [True: 342, False: 0]
  ------------------
 1098|      0|        || (s->session->ext.max_early_data == 0
  ------------------
  |  Branch (1098:13): [True: 0, False: 0]
  ------------------
 1099|    342|            && (psksess == NULL || psksess->ext.max_early_data == 0))) {
  ------------------
  |  Branch (1099:17): [True: 0, False: 0]
  |  Branch (1099:36): [True: 0, False: 0]
  ------------------
 1100|    342|        s->max_early_data = 0;
 1101|    342|        return EXT_RETURN_NOT_SENT;
 1102|    342|    }
 1103|      0|    edsess = s->session->ext.max_early_data != 0 ? s->session : psksess;
  ------------------
  |  Branch (1103:14): [True: 0, False: 0]
  ------------------
 1104|      0|    s->max_early_data = edsess->ext.max_early_data;
 1105|       |
 1106|      0|    if (edsess->ext.hostname != NULL) {
  ------------------
  |  Branch (1106:9): [True: 0, False: 0]
  ------------------
 1107|      0|        if (s->ext.hostname == NULL
  ------------------
  |  Branch (1107:13): [True: 0, False: 0]
  ------------------
 1108|      0|            || (s->ext.hostname != NULL
  ------------------
  |  Branch (1108:17): [True: 0, False: 0]
  ------------------
 1109|      0|                && strcmp(s->ext.hostname, edsess->ext.hostname) != 0)) {
  ------------------
  |  Branch (1109:20): [True: 0, False: 0]
  ------------------
 1110|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR,
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1111|      0|                SSL_R_INCONSISTENT_EARLY_DATA_SNI);
 1112|      0|            return EXT_RETURN_FAIL;
 1113|      0|        }
 1114|      0|    }
 1115|       |
 1116|      0|    if ((s->ext.alpn == NULL && edsess->ext.alpn_selected != NULL)) {
  ------------------
  |  Branch (1116:10): [True: 0, False: 0]
  |  Branch (1116:33): [True: 0, False: 0]
  ------------------
 1117|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_INCONSISTENT_EARLY_DATA_ALPN);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1118|      0|        return EXT_RETURN_FAIL;
 1119|      0|    }
 1120|       |
 1121|       |    /*
 1122|       |     * Verify that we are offering an ALPN protocol consistent with the early
 1123|       |     * data.
 1124|       |     */
 1125|      0|    if (edsess->ext.alpn_selected != NULL) {
  ------------------
  |  Branch (1125:9): [True: 0, False: 0]
  ------------------
 1126|      0|        PACKET prots, alpnpkt;
 1127|      0|        int found = 0;
 1128|       |
 1129|      0|        if (!PACKET_buf_init(&prots, s->ext.alpn, s->ext.alpn_len)) {
  ------------------
  |  Branch (1129:13): [True: 0, False: 0]
  ------------------
 1130|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1131|      0|            return EXT_RETURN_FAIL;
 1132|      0|        }
 1133|      0|        while (PACKET_get_length_prefixed_1(&prots, &alpnpkt)) {
  ------------------
  |  Branch (1133:16): [True: 0, False: 0]
  ------------------
 1134|      0|            if (PACKET_equal(&alpnpkt, edsess->ext.alpn_selected,
  ------------------
  |  Branch (1134:17): [True: 0, False: 0]
  ------------------
 1135|      0|                    edsess->ext.alpn_selected_len)) {
 1136|      0|                found = 1;
 1137|      0|                break;
 1138|      0|            }
 1139|      0|        }
 1140|      0|        if (!found) {
  ------------------
  |  Branch (1140:13): [True: 0, False: 0]
  ------------------
 1141|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR,
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1142|      0|                SSL_R_INCONSISTENT_EARLY_DATA_ALPN);
 1143|      0|            return EXT_RETURN_FAIL;
 1144|      0|        }
 1145|      0|    }
 1146|       |
 1147|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_early_data)
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (1147:9): [True: 0, False: 0]
  ------------------
 1148|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (1148:12): [True: 0, False: 0]
  ------------------
 1149|      0|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (1149:12): [True: 0, False: 0]
  ------------------
 1150|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1151|      0|        return EXT_RETURN_FAIL;
 1152|      0|    }
 1153|       |
 1154|       |    /*
 1155|       |     * We set this to rejected here. Later, if the server acknowledges the
 1156|       |     * extension, we set it to accepted.
 1157|       |     */
 1158|      0|    s->ext.early_data = SSL_EARLY_DATA_REJECTED;
  ------------------
  |  | 2073|      0|#define SSL_EARLY_DATA_REJECTED 1
  ------------------
 1159|      0|    s->ext.early_data_ok = 1;
 1160|       |
 1161|      0|    return EXT_RETURN_SENT;
 1162|      0|}
tls_construct_ctos_padding:
 1184|    342|{
 1185|    342|    unsigned char *padbytes;
 1186|    342|    size_t hlen;
 1187|       |
 1188|    342|    if ((s->options & SSL_OP_TLSEXT_PADDING) == 0)
  ------------------
  |  |  364|    342|#define SSL_OP_TLSEXT_PADDING SSL_OP_BIT(4)
  |  |  ------------------
  |  |  |  |  351|    342|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (1188:9): [True: 0, False: 342]
  ------------------
 1189|      0|        return EXT_RETURN_NOT_SENT;
 1190|    342|#ifndef OPENSSL_NO_ECH
 1191|    342|    ECH_SAME_EXT(s, context, pkt);
  ------------------
  |  |  317|    342|    if (context == SSL_EXT_CLIENT_HELLO && !s->server         \
  |  |  ------------------
  |  |  |  |  300|    684|#define SSL_EXT_CLIENT_HELLO 0x00080
  |  |  ------------------
  |  |  |  Branch (317:9): [True: 342, False: 0]
  |  |  |  Branch (317:44): [True: 342, False: 0]
  |  |  ------------------
  |  |  318|    342|        && s->ext.ech.es != NULL && s->ext.ech.grease == 0) { \
  |  |  ------------------
  |  |  |  Branch (318:12): [True: 0, False: 342]
  |  |  |  Branch (318:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  319|      0|        int ech_iosame_rv = ossl_ech_same_ext(s, pkt);        \
  |  |  320|      0|                                                              \
  |  |  321|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_ERR)           \
  |  |  ------------------
  |  |  |  |  293|      0|#define OSSL_ECH_SAME_EXT_ERR 0 /* bummer something wrong */
  |  |  ------------------
  |  |  |  Branch (321:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  322|      0|            return EXT_RETURN_FAIL;                           \
  |  |  323|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_DONE)          \
  |  |  ------------------
  |  |  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  |  |  ------------------
  |  |  |  Branch (323:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|            return EXT_RETURN_SENT;                           \
  |  |  325|      0|        /* otherwise continue as normal */                    \
  |  |  326|      0|    }
  ------------------
 1192|    342|#endif
 1193|       |
 1194|       |    /*
 1195|       |     * Add padding to workaround bugs in F5 terminators. See RFC7685.
 1196|       |     * This code calculates the length of all extensions added so far but
 1197|       |     * excludes the PSK extension (because that MUST be written last). Therefore
 1198|       |     * this extension MUST always appear second to last.
 1199|       |     */
 1200|    342|    if (!WPACKET_get_total_written(pkt, &hlen)) {
  ------------------
  |  Branch (1200:9): [True: 0, False: 342]
  ------------------
 1201|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1202|      0|        return EXT_RETURN_FAIL;
 1203|      0|    }
 1204|       |
 1205|       |    /*
 1206|       |     * If we're going to send a PSK then that will be written out after this
 1207|       |     * extension, so we need to calculate how long it is going to be.
 1208|       |     */
 1209|    342|    if (s->session->ssl_version == TLS1_3_VERSION
  ------------------
  |  |   27|    684|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1209:9): [True: 342, False: 0]
  ------------------
 1210|    342|        && s->session->ext.ticklen != 0
  ------------------
  |  Branch (1210:12): [True: 0, False: 342]
  ------------------
 1211|      0|        && s->session->cipher != NULL) {
  ------------------
  |  Branch (1211:12): [True: 0, False: 0]
  ------------------
 1212|      0|        const EVP_MD *md = ssl_md(SSL_CONNECTION_GET_CTX(s),
  ------------------
  |  |   26|      0|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 1213|      0|            s->session->cipher->algorithm2);
 1214|       |
 1215|      0|        if (md != NULL) {
  ------------------
  |  Branch (1215:13): [True: 0, False: 0]
  ------------------
 1216|       |            /*
 1217|       |             * Add the fixed PSK overhead, the identity length and the binder
 1218|       |             * length.
 1219|       |             */
 1220|      0|            int md_size = EVP_MD_get_size(md);
 1221|       |
 1222|      0|            if (md_size <= 0)
  ------------------
  |  Branch (1222:17): [True: 0, False: 0]
  ------------------
 1223|      0|                return EXT_RETURN_FAIL;
 1224|      0|            hlen += PSK_PRE_BINDER_OVERHEAD + s->session->ext.ticklen
  ------------------
  |  | 1179|      0|#define PSK_PRE_BINDER_OVERHEAD (2 + 2 + 2 + 2 + 4 + 2 + 1)
  ------------------
 1225|      0|                + md_size;
 1226|      0|        }
 1227|      0|    }
 1228|       |
 1229|    342|    if (hlen > F5_WORKAROUND_MIN_MSG_LEN && hlen < F5_WORKAROUND_MAX_MSG_LEN) {
  ------------------
  |  | 1164|    684|#define F5_WORKAROUND_MIN_MSG_LEN 0xff
  ------------------
                  if (hlen > F5_WORKAROUND_MIN_MSG_LEN && hlen < F5_WORKAROUND_MAX_MSG_LEN) {
  ------------------
  |  | 1165|    342|#define F5_WORKAROUND_MAX_MSG_LEN 0x200
  ------------------
  |  Branch (1229:9): [True: 342, False: 0]
  |  Branch (1229:45): [True: 0, False: 342]
  ------------------
 1230|       |        /* Calculate the amount of padding we need to add */
 1231|      0|        hlen = F5_WORKAROUND_MAX_MSG_LEN - hlen;
  ------------------
  |  | 1165|      0|#define F5_WORKAROUND_MAX_MSG_LEN 0x200
  ------------------
 1232|       |
 1233|       |        /*
 1234|       |         * Take off the size of extension header itself (2 bytes for type and
 1235|       |         * 2 bytes for length bytes), but ensure that the extension is at least
 1236|       |         * 1 byte long so as not to have an empty extension last (WebSphere 7.x,
 1237|       |         * 8.x are intolerant of that condition)
 1238|       |         */
 1239|      0|        if (hlen > 4)
  ------------------
  |  Branch (1239:13): [True: 0, False: 0]
  ------------------
 1240|      0|            hlen -= 4;
 1241|      0|        else
 1242|      0|            hlen = 1;
 1243|       |
 1244|      0|        if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_padding)
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (1244:13): [True: 0, False: 0]
  ------------------
 1245|      0|            || !WPACKET_sub_allocate_bytes_u16(pkt, hlen, &padbytes)) {
  ------------------
  |  |  851|      0|    WPACKET_sub_allocate_bytes__((pkt), (len), (bytes), 2)
  ------------------
  |  Branch (1245:16): [True: 0, False: 0]
  ------------------
 1246|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1247|      0|            return EXT_RETURN_FAIL;
 1248|      0|        }
 1249|      0|        memset(padbytes, 0, hlen);
 1250|      0|    }
 1251|       |
 1252|    342|    return EXT_RETURN_SENT;
 1253|    342|}
tls_construct_ctos_psk:
 1261|    342|{
 1262|    342|#ifndef OPENSSL_NO_TLS1_3
 1263|    342|    uint32_t agesec, agems = 0;
 1264|    342|    size_t binderoffset, msglen;
 1265|    342|    int reshashsize = 0, pskhashsize = 0;
 1266|    342|    unsigned char *resbinder = NULL, *pskbinder = NULL, *msgstart = NULL;
 1267|    342|    const EVP_MD *handmd = NULL, *mdres = NULL, *mdpsk = NULL;
 1268|    342|    int dores = 0;
 1269|    342|    SSL_CTX *sctx = SSL_CONNECTION_GET_CTX(s);
  ------------------
  |  |   26|    342|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 1270|    342|    OSSL_TIME t;
 1271|       |
 1272|    342|    s->ext.tick_identity = 0;
 1273|       |
 1274|       |    /*
 1275|       |     * Note: At this stage of the code we only support adding a single
 1276|       |     * resumption PSK. If we add support for multiple PSKs then the length
 1277|       |     * calculations in the padding extension will need to be adjusted.
 1278|       |     */
 1279|       |
 1280|       |    /*
 1281|       |     * If this is an incompatible or new session then we have nothing to resume
 1282|       |     * so don't add this extension.
 1283|       |     */
 1284|    342|    if (s->session->ssl_version != TLS1_3_VERSION
  ------------------
  |  |   27|    684|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1284:9): [True: 0, False: 342]
  ------------------
 1285|    342|        || (s->session->ext.ticklen == 0 && s->psksession == NULL))
  ------------------
  |  Branch (1285:13): [True: 342, False: 0]
  |  Branch (1285:45): [True: 342, False: 0]
  ------------------
 1286|    342|        return EXT_RETURN_NOT_SENT;
 1287|       |
 1288|      0|    if (s->hello_retry_request == SSL_HRR_PENDING)
  ------------------
  |  Branch (1288:9): [True: 0, False: 0]
  ------------------
 1289|      0|        handmd = ssl_handshake_md(s);
 1290|       |
 1291|      0|    if (s->session->ext.ticklen != 0) {
  ------------------
  |  Branch (1291:9): [True: 0, False: 0]
  ------------------
 1292|       |        /* Get the digest associated with the ciphersuite in the session */
 1293|      0|        if (s->session->cipher == NULL) {
  ------------------
  |  Branch (1293:13): [True: 0, False: 0]
  ------------------
 1294|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1295|      0|            return EXT_RETURN_FAIL;
 1296|      0|        }
 1297|      0|        mdres = ssl_md(sctx, s->session->cipher->algorithm2);
 1298|      0|        if (mdres == NULL) {
  ------------------
  |  Branch (1298:13): [True: 0, False: 0]
  ------------------
 1299|       |            /*
 1300|       |             * Don't recognize this cipher so we can't use the session.
 1301|       |             * Ignore it
 1302|       |             */
 1303|      0|            goto dopsksess;
 1304|      0|        }
 1305|       |
 1306|      0|        if (s->hello_retry_request == SSL_HRR_PENDING && mdres != handmd) {
  ------------------
  |  Branch (1306:13): [True: 0, False: 0]
  |  Branch (1306:58): [True: 0, False: 0]
  ------------------
 1307|       |            /*
 1308|       |             * Selected ciphersuite hash does not match the hash for the session
 1309|       |             * so we can't use it.
 1310|       |             */
 1311|      0|            goto dopsksess;
 1312|      0|        }
 1313|       |
 1314|      0|#ifndef OPENSSL_NO_ECH
 1315|       |        /*
 1316|       |         * When doing ECH, we get here twice (for inner then outer). The
 1317|       |         * 2nd time (for outer) we can skip some checks as we know how
 1318|       |         * those went last time.
 1319|       |         */
 1320|      0|        if (s->ext.ech.es != NULL && s->ext.ech.ch_depth == 0) {
  ------------------
  |  Branch (1320:13): [True: 0, False: 0]
  |  Branch (1320:38): [True: 0, False: 0]
  ------------------
 1321|      0|            s->ext.tick_identity = s->ext.ech.tick_identity;
 1322|      0|            dores = (s->ext.tick_identity > 0);
 1323|      0|            goto dopsksess;
 1324|      0|        }
 1325|      0|#endif
 1326|       |
 1327|       |        /*
 1328|       |         * Technically the C standard just says time() returns a time_t and says
 1329|       |         * nothing about the encoding of that type. In practice most
 1330|       |         * implementations follow POSIX which holds it as an integral type in
 1331|       |         * seconds since epoch. We've already made the assumption that we can do
 1332|       |         * this in multiple places in the code, so portability shouldn't be an
 1333|       |         * issue.
 1334|       |         */
 1335|      0|        t = ossl_time_subtract(ossl_time_now(), s->session->time);
 1336|      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)
  |  |  ------------------
  ------------------
 1337|       |
 1338|       |        /*
 1339|       |         * We calculate the age in seconds but the server may work in ms. Due to
 1340|       |         * rounding errors we could overestimate the age by up to 1s. It is
 1341|       |         * better to underestimate it. Otherwise, if the RTT is very short, when
 1342|       |         * the server calculates the age reported by the client it could be
 1343|       |         * bigger than the age calculated on the server - which should never
 1344|       |         * happen.
 1345|       |         */
 1346|      0|        if (agesec > 0)
  ------------------
  |  Branch (1346:13): [True: 0, False: 0]
  ------------------
 1347|      0|            agesec--;
 1348|       |
 1349|      0|        if (s->session->ext.tick_lifetime_hint < agesec) {
  ------------------
  |  Branch (1349:13): [True: 0, False: 0]
  ------------------
 1350|       |            /* Ticket is too old. Ignore it. */
 1351|      0|            goto dopsksess;
 1352|      0|        }
 1353|       |
 1354|       |        /*
 1355|       |         * Calculate age in ms. We're just doing it to nearest second. Should be
 1356|       |         * good enough.
 1357|       |         */
 1358|      0|        agems = agesec * (uint32_t)1000;
 1359|       |
 1360|      0|        if (agesec != 0 && agems / (uint32_t)1000 != agesec) {
  ------------------
  |  Branch (1360:13): [True: 0, False: 0]
  |  Branch (1360:28): [True: 0, False: 0]
  ------------------
 1361|       |            /*
 1362|       |             * Overflow. Shouldn't happen unless this is a *really* old session.
 1363|       |             * If so we just ignore it.
 1364|       |             */
 1365|      0|            goto dopsksess;
 1366|      0|        }
 1367|       |
 1368|       |        /*
 1369|       |         * Obfuscate the age. Overflow here is fine, this addition is supposed
 1370|       |         * to be mod 2^32.
 1371|       |         */
 1372|      0|        agems += s->session->ext.tick_age_add;
 1373|       |
 1374|      0|        reshashsize = EVP_MD_get_size(mdres);
 1375|      0|        if (reshashsize <= 0)
  ------------------
  |  Branch (1375:13): [True: 0, False: 0]
  ------------------
 1376|      0|            goto dopsksess;
 1377|      0|        s->ext.tick_identity++;
 1378|      0|#ifndef OPENSSL_NO_ECH
 1379|       |        /* stash this for re-use in outer CH */
 1380|      0|        if (s->ext.ech.es != NULL && s->ext.ech.ch_depth == 1)
  ------------------
  |  Branch (1380:13): [True: 0, False: 0]
  |  Branch (1380:38): [True: 0, False: 0]
  ------------------
 1381|      0|            s->ext.ech.tick_identity = s->ext.tick_identity;
 1382|      0|#endif
 1383|      0|        dores = 1;
 1384|      0|    }
 1385|       |
 1386|      0|dopsksess:
 1387|      0|    if (!dores && s->psksession == NULL)
  ------------------
  |  Branch (1387:9): [True: 0, False: 0]
  |  Branch (1387:19): [True: 0, False: 0]
  ------------------
 1388|      0|        return EXT_RETURN_NOT_SENT;
 1389|       |
 1390|      0|    if (s->psksession != NULL) {
  ------------------
  |  Branch (1390:9): [True: 0, False: 0]
  ------------------
 1391|      0|        mdpsk = ssl_md(sctx, s->psksession->cipher->algorithm2);
 1392|      0|        if (mdpsk == NULL) {
  ------------------
  |  Branch (1392:13): [True: 0, False: 0]
  ------------------
 1393|       |            /*
 1394|       |             * Don't recognize this cipher so we can't use the session.
 1395|       |             * If this happens it's an application bug.
 1396|       |             */
 1397|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_BAD_PSK);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1398|      0|            return EXT_RETURN_FAIL;
 1399|      0|        }
 1400|       |
 1401|      0|        if (s->hello_retry_request == SSL_HRR_PENDING && mdpsk != handmd) {
  ------------------
  |  Branch (1401:13): [True: 0, False: 0]
  |  Branch (1401:58): [True: 0, False: 0]
  ------------------
 1402|       |            /*
 1403|       |             * Selected ciphersuite hash does not match the hash for the PSK
 1404|       |             * session. This is an application bug.
 1405|       |             */
 1406|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_BAD_PSK);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1407|      0|            return EXT_RETURN_FAIL;
 1408|      0|        }
 1409|       |
 1410|      0|        pskhashsize = EVP_MD_get_size(mdpsk);
 1411|      0|        if (pskhashsize <= 0) {
  ------------------
  |  Branch (1411:13): [True: 0, False: 0]
  ------------------
 1412|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_BAD_PSK);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1413|      0|            return EXT_RETURN_FAIL;
 1414|      0|        }
 1415|      0|    }
 1416|       |
 1417|       |    /* Create the extension, but skip over the binder for now */
 1418|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_psk)
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (1418:9): [True: 0, False: 0]
  ------------------
 1419|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (1419:12): [True: 0, False: 0]
  ------------------
 1420|      0|        || !WPACKET_start_sub_packet_u16(pkt)) {
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (1420:12): [True: 0, False: 0]
  ------------------
 1421|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1422|      0|        return EXT_RETURN_FAIL;
 1423|      0|    }
 1424|       |
 1425|      0|#ifndef OPENSSL_NO_ECH
 1426|       |    /*
 1427|       |     * For ECH if we're processing the outer CH and the inner CH
 1428|       |     * has a PSK, then we want to send a GREASE PSK in the outer.
 1429|       |     * We'll do that by just replacing the ticket value itself
 1430|       |     * with random values of the same length.
 1431|       |     */
 1432|      0|    if (s->ext.ech.es != NULL && s->ext.ech.ch_depth == 0) {
  ------------------
  |  Branch (1432:9): [True: 0, False: 0]
  |  Branch (1432:34): [True: 0, False: 0]
  ------------------
 1433|      0|        unsigned char *rndbuf = NULL, *rndbufp = NULL;
 1434|      0|        size_t totalrndsize = 0;
 1435|       |
 1436|      0|        totalrndsize = s->session->ext.ticklen
 1437|      0|            + sizeof(agems)
 1438|      0|            + s->psksession_id_len
 1439|      0|            + reshashsize
 1440|      0|            + pskhashsize;
 1441|      0|        rndbuf = OPENSSL_malloc(totalrndsize);
  ------------------
  |  |  107|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1442|      0|        if (rndbuf == NULL) {
  ------------------
  |  Branch (1442:13): [True: 0, False: 0]
  ------------------
 1443|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1444|      0|            return EXT_RETURN_FAIL;
 1445|      0|        }
 1446|       |        /* for outer CH allocate a similar sized random value */
 1447|      0|        if (RAND_bytes_ex(sctx->libctx, rndbuf, totalrndsize, 0) <= 0) {
  ------------------
  |  Branch (1447:13): [True: 0, False: 0]
  ------------------
 1448|      0|            OPENSSL_free(rndbuf);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1449|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1450|      0|            return EXT_RETURN_FAIL;
 1451|      0|        }
 1452|       |        /* set agems from random buffer */
 1453|      0|        rndbufp = rndbuf;
 1454|      0|        memcpy(&agems, rndbufp, sizeof(agems));
 1455|      0|        rndbufp += sizeof(agems);
 1456|      0|        if (dores != 0) {
  ------------------
  |  Branch (1456:13): [True: 0, False: 0]
  ------------------
 1457|      0|            if (!WPACKET_sub_memcpy_u16(pkt, rndbufp,
  ------------------
  |  |  940|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 2)
  ------------------
  |  Branch (1457:17): [True: 0, False: 0]
  ------------------
 1458|      0|                    s->session->ext.ticklen)
 1459|      0|                || !WPACKET_put_bytes_u32(pkt, agems)) {
  ------------------
  |  |  915|      0|    WPACKET_put_bytes__((pkt), (val), 4)
  ------------------
  |  Branch (1459:20): [True: 0, False: 0]
  ------------------
 1460|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1461|      0|                OPENSSL_free(rndbuf);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1462|      0|                return EXT_RETURN_FAIL;
 1463|      0|            }
 1464|      0|            rndbufp += s->session->ext.ticklen;
 1465|      0|        }
 1466|      0|        if (s->psksession != NULL) {
  ------------------
  |  Branch (1466:13): [True: 0, False: 0]
  ------------------
 1467|      0|            if (!WPACKET_sub_memcpy_u16(pkt, rndbufp, s->psksession_id_len)
  ------------------
  |  |  940|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 2)
  ------------------
  |  Branch (1467:17): [True: 0, False: 0]
  ------------------
 1468|      0|                || !WPACKET_put_bytes_u32(pkt, 0)) {
  ------------------
  |  |  915|      0|    WPACKET_put_bytes__((pkt), (val), 4)
  ------------------
  |  Branch (1468:20): [True: 0, False: 0]
  ------------------
 1469|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1470|      0|                OPENSSL_free(rndbuf);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1471|      0|                return EXT_RETURN_FAIL;
 1472|      0|            }
 1473|      0|            rndbufp += s->psksession_id_len;
 1474|      0|        }
 1475|      0|        if (!WPACKET_close(pkt)
  ------------------
  |  Branch (1475:13): [True: 0, False: 0]
  ------------------
 1476|      0|            || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (1476:16): [True: 0, False: 0]
  ------------------
 1477|      0|            || (dores == 1
  ------------------
  |  Branch (1477:17): [True: 0, False: 0]
  ------------------
 1478|      0|                && !WPACKET_sub_memcpy_u8(pkt, rndbufp, reshashsize))
  ------------------
  |  |  938|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 1)
  ------------------
  |  Branch (1478:20): [True: 0, False: 0]
  ------------------
 1479|      0|            || (s->psksession != NULL
  ------------------
  |  Branch (1479:17): [True: 0, False: 0]
  ------------------
 1480|      0|                && !WPACKET_sub_memcpy_u8(pkt, rndbufp, pskhashsize))
  ------------------
  |  |  938|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 1)
  ------------------
  |  Branch (1480:20): [True: 0, False: 0]
  ------------------
 1481|      0|            || !WPACKET_close(pkt)
  ------------------
  |  Branch (1481:16): [True: 0, False: 0]
  ------------------
 1482|      0|            || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (1482:16): [True: 0, False: 0]
  ------------------
 1483|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1484|      0|            OPENSSL_free(rndbuf);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1485|      0|            return EXT_RETURN_FAIL;
 1486|      0|        }
 1487|      0|        OPENSSL_free(rndbuf);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1488|      0|        return EXT_RETURN_SENT;
 1489|      0|    }
 1490|      0|#endif /* OPENSSL_NO_ECH */
 1491|      0|    if (dores) {
  ------------------
  |  Branch (1491:9): [True: 0, False: 0]
  ------------------
 1492|      0|        if (!WPACKET_sub_memcpy_u16(pkt, s->session->ext.tick,
  ------------------
  |  |  940|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 2)
  ------------------
  |  Branch (1492:13): [True: 0, False: 0]
  ------------------
 1493|      0|                s->session->ext.ticklen)
 1494|      0|            || !WPACKET_put_bytes_u32(pkt, agems)) {
  ------------------
  |  |  915|      0|    WPACKET_put_bytes__((pkt), (val), 4)
  ------------------
  |  Branch (1494:16): [True: 0, False: 0]
  ------------------
 1495|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1496|      0|            return EXT_RETURN_FAIL;
 1497|      0|        }
 1498|      0|    }
 1499|       |
 1500|      0|    if (s->psksession != NULL) {
  ------------------
  |  Branch (1500:9): [True: 0, False: 0]
  ------------------
 1501|      0|        if (!WPACKET_sub_memcpy_u16(pkt, s->psksession_id,
  ------------------
  |  |  940|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 2)
  ------------------
  |  Branch (1501:13): [True: 0, False: 0]
  ------------------
 1502|      0|                s->psksession_id_len)
 1503|      0|            || !WPACKET_put_bytes_u32(pkt, 0)) {
  ------------------
  |  |  915|      0|    WPACKET_put_bytes__((pkt), (val), 4)
  ------------------
  |  Branch (1503:16): [True: 0, False: 0]
  ------------------
 1504|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1505|      0|            return EXT_RETURN_FAIL;
 1506|      0|        }
 1507|      0|        s->ext.tick_identity++;
 1508|      0|    }
 1509|       |
 1510|      0|    if (!WPACKET_close(pkt)
  ------------------
  |  Branch (1510:9): [True: 0, False: 0]
  ------------------
 1511|      0|        || !WPACKET_get_total_written(pkt, &binderoffset)
  ------------------
  |  Branch (1511:12): [True: 0, False: 0]
  ------------------
 1512|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (1512:12): [True: 0, False: 0]
  ------------------
 1513|      0|        || (dores
  ------------------
  |  Branch (1513:13): [True: 0, False: 0]
  ------------------
 1514|      0|            && !WPACKET_sub_allocate_bytes_u8(pkt, reshashsize, &resbinder))
  ------------------
  |  |  849|      0|    WPACKET_sub_allocate_bytes__((pkt), (len), (bytes), 1)
  ------------------
  |  Branch (1514:16): [True: 0, False: 0]
  ------------------
 1515|      0|        || (s->psksession != NULL
  ------------------
  |  Branch (1515:13): [True: 0, False: 0]
  ------------------
 1516|      0|            && !WPACKET_sub_allocate_bytes_u8(pkt, pskhashsize, &pskbinder))
  ------------------
  |  |  849|      0|    WPACKET_sub_allocate_bytes__((pkt), (len), (bytes), 1)
  ------------------
  |  Branch (1516:16): [True: 0, False: 0]
  ------------------
 1517|      0|        || !WPACKET_close(pkt)
  ------------------
  |  Branch (1517:12): [True: 0, False: 0]
  ------------------
 1518|      0|        || !WPACKET_close(pkt)
  ------------------
  |  Branch (1518:12): [True: 0, False: 0]
  ------------------
 1519|      0|        || !WPACKET_get_total_written(pkt, &msglen)
  ------------------
  |  Branch (1519:12): [True: 0, False: 0]
  ------------------
 1520|       |        /*
 1521|       |         * We need to fill in all the sub-packet lengths now so we can
 1522|       |         * calculate the HMAC of the message up to the binders
 1523|       |         */
 1524|      0|        || !WPACKET_fill_lengths(pkt)) {
  ------------------
  |  Branch (1524:12): [True: 0, False: 0]
  ------------------
 1525|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1526|      0|        return EXT_RETURN_FAIL;
 1527|      0|    }
 1528|       |
 1529|      0|    msgstart = WPACKET_get_curr(pkt) - msglen;
 1530|       |
 1531|      0|    if (dores
  ------------------
  |  Branch (1531:9): [True: 0, False: 0]
  ------------------
 1532|      0|        && tls_psk_do_binder(s, mdres, msgstart, binderoffset, NULL,
  ------------------
  |  Branch (1532:12): [True: 0, False: 0]
  ------------------
 1533|      0|               resbinder, s->session, 1, 0)
 1534|      0|            != 1) {
 1535|       |        /* SSLfatal() already called */
 1536|      0|        return EXT_RETURN_FAIL;
 1537|      0|    }
 1538|       |
 1539|      0|    if (s->psksession != NULL
  ------------------
  |  Branch (1539:9): [True: 0, False: 0]
  ------------------
 1540|      0|        && tls_psk_do_binder(s, mdpsk, msgstart, binderoffset, NULL,
  ------------------
  |  Branch (1540:12): [True: 0, False: 0]
  ------------------
 1541|      0|               pskbinder, s->psksession, 1, 1)
 1542|      0|            != 1) {
 1543|       |        /* SSLfatal() already called */
 1544|      0|        return EXT_RETURN_FAIL;
 1545|      0|    }
 1546|       |
 1547|      0|    return EXT_RETURN_SENT;
 1548|       |#else
 1549|       |    return EXT_RETURN_NOT_SENT;
 1550|       |#endif
 1551|      0|}
tls_construct_ctos_post_handshake_auth:
 1557|    342|{
 1558|    342|#ifndef OPENSSL_NO_TLS1_3
 1559|    342|    if (!s->pha_enabled)
  ------------------
  |  Branch (1559:9): [True: 0, False: 342]
  ------------------
 1560|      0|        return EXT_RETURN_NOT_SENT;
 1561|    342|#ifndef OPENSSL_NO_ECH
 1562|    342|    ECH_SAME_EXT(s, context, pkt)
  ------------------
  |  |  317|    342|    if (context == SSL_EXT_CLIENT_HELLO && !s->server         \
  |  |  ------------------
  |  |  |  |  300|    684|#define SSL_EXT_CLIENT_HELLO 0x00080
  |  |  ------------------
  |  |  |  Branch (317:9): [True: 342, False: 0]
  |  |  |  Branch (317:44): [True: 342, False: 0]
  |  |  ------------------
  |  |  318|    342|        && s->ext.ech.es != NULL && s->ext.ech.grease == 0) { \
  |  |  ------------------
  |  |  |  Branch (318:12): [True: 0, False: 342]
  |  |  |  Branch (318:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  319|      0|        int ech_iosame_rv = ossl_ech_same_ext(s, pkt);        \
  |  |  320|      0|                                                              \
  |  |  321|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_ERR)           \
  |  |  ------------------
  |  |  |  |  293|      0|#define OSSL_ECH_SAME_EXT_ERR 0 /* bummer something wrong */
  |  |  ------------------
  |  |  |  Branch (321:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  322|      0|            return EXT_RETURN_FAIL;                           \
  |  |  323|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_DONE)          \
  |  |  ------------------
  |  |  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  |  |  ------------------
  |  |  |  Branch (323:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|            return EXT_RETURN_SENT;                           \
  |  |  325|      0|        /* otherwise continue as normal */                    \
  |  |  326|      0|    }
  ------------------
 1563|    342|#endif
 1564|       |
 1565|       |    /* construct extension - 0 length, no contents */
 1566|    342|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_post_handshake_auth)
  ------------------
  |  |  911|    684|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (1566:9): [True: 0, False: 342]
  ------------------
 1567|    342|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|    684|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (1567:12): [True: 0, False: 342]
  ------------------
 1568|    342|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (1568:12): [True: 0, False: 342]
  ------------------
 1569|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1570|      0|        return EXT_RETURN_FAIL;
 1571|      0|    }
 1572|       |
 1573|    342|    s->post_handshake_auth = SSL_PHA_EXT_SENT;
 1574|       |
 1575|    342|    return EXT_RETURN_SENT;
 1576|       |#else
 1577|       |    return EXT_RETURN_NOT_SENT;
 1578|       |#endif
 1579|    342|}
tls_construct_ctos_client_cert_type:
 2454|    342|{
 2455|    342|    sc->ext.client_cert_type_ctos = OSSL_CERT_TYPE_CTOS_NONE;
  ------------------
  |  |  375|    342|#define OSSL_CERT_TYPE_CTOS_NONE 0
  ------------------
 2456|    342|    if (sc->client_cert_type == NULL)
  ------------------
  |  Branch (2456:9): [True: 342, False: 0]
  ------------------
 2457|    342|        return EXT_RETURN_NOT_SENT;
 2458|      0|#ifndef OPENSSL_NO_ECH
 2459|      0|    ECH_SAME_EXT(sc, context, pkt)
  ------------------
  |  |  317|      0|    if (context == SSL_EXT_CLIENT_HELLO && !s->server         \
  |  |  ------------------
  |  |  |  |  300|      0|#define SSL_EXT_CLIENT_HELLO 0x00080
  |  |  ------------------
  |  |  |  Branch (317:9): [True: 0, False: 0]
  |  |  |  Branch (317:44): [True: 0, False: 0]
  |  |  ------------------
  |  |  318|      0|        && s->ext.ech.es != NULL && s->ext.ech.grease == 0) { \
  |  |  ------------------
  |  |  |  Branch (318:12): [True: 0, False: 0]
  |  |  |  Branch (318:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  319|      0|        int ech_iosame_rv = ossl_ech_same_ext(s, pkt);        \
  |  |  320|      0|                                                              \
  |  |  321|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_ERR)           \
  |  |  ------------------
  |  |  |  |  293|      0|#define OSSL_ECH_SAME_EXT_ERR 0 /* bummer something wrong */
  |  |  ------------------
  |  |  |  Branch (321:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  322|      0|            return EXT_RETURN_FAIL;                           \
  |  |  323|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_DONE)          \
  |  |  ------------------
  |  |  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  |  |  ------------------
  |  |  |  Branch (323:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|            return EXT_RETURN_SENT;                           \
  |  |  325|      0|        /* otherwise continue as normal */                    \
  |  |  326|      0|    }
  ------------------
 2460|      0|#endif
 2461|       |
 2462|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_client_cert_type)
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (2462:9): [True: 0, False: 0]
  ------------------
 2463|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (2463:12): [True: 0, False: 0]
  ------------------
 2464|      0|        || !WPACKET_sub_memcpy_u8(pkt, sc->client_cert_type, sc->client_cert_type_len)
  ------------------
  |  |  938|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 1)
  ------------------
  |  Branch (2464:12): [True: 0, False: 0]
  ------------------
 2465|      0|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (2465:12): [True: 0, False: 0]
  ------------------
 2466|      0|        SSLfatal(sc, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2467|      0|        return EXT_RETURN_FAIL;
 2468|      0|    }
 2469|      0|    sc->ext.client_cert_type_ctos = OSSL_CERT_TYPE_CTOS_GOOD;
  ------------------
  |  |  376|      0|#define OSSL_CERT_TYPE_CTOS_GOOD 1
  ------------------
 2470|      0|    return EXT_RETURN_SENT;
 2471|      0|}
tls_construct_ctos_server_cert_type:
 2509|    342|{
 2510|    342|    sc->ext.server_cert_type_ctos = OSSL_CERT_TYPE_CTOS_NONE;
  ------------------
  |  |  375|    342|#define OSSL_CERT_TYPE_CTOS_NONE 0
  ------------------
 2511|    342|    if (sc->server_cert_type == NULL)
  ------------------
  |  Branch (2511:9): [True: 342, False: 0]
  ------------------
 2512|    342|        return EXT_RETURN_NOT_SENT;
 2513|      0|#ifndef OPENSSL_NO_ECH
 2514|      0|    ECH_SAME_EXT(sc, context, pkt)
  ------------------
  |  |  317|      0|    if (context == SSL_EXT_CLIENT_HELLO && !s->server         \
  |  |  ------------------
  |  |  |  |  300|      0|#define SSL_EXT_CLIENT_HELLO 0x00080
  |  |  ------------------
  |  |  |  Branch (317:9): [True: 0, False: 0]
  |  |  |  Branch (317:44): [True: 0, False: 0]
  |  |  ------------------
  |  |  318|      0|        && s->ext.ech.es != NULL && s->ext.ech.grease == 0) { \
  |  |  ------------------
  |  |  |  Branch (318:12): [True: 0, False: 0]
  |  |  |  Branch (318:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  319|      0|        int ech_iosame_rv = ossl_ech_same_ext(s, pkt);        \
  |  |  320|      0|                                                              \
  |  |  321|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_ERR)           \
  |  |  ------------------
  |  |  |  |  293|      0|#define OSSL_ECH_SAME_EXT_ERR 0 /* bummer something wrong */
  |  |  ------------------
  |  |  |  Branch (321:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  322|      0|            return EXT_RETURN_FAIL;                           \
  |  |  323|      0|        if (ech_iosame_rv == OSSL_ECH_SAME_EXT_DONE)          \
  |  |  ------------------
  |  |  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  |  |  ------------------
  |  |  |  Branch (323:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  324|      0|            return EXT_RETURN_SENT;                           \
  |  |  325|      0|        /* otherwise continue as normal */                    \
  |  |  326|      0|    }
  ------------------
 2515|      0|#endif
 2516|       |
 2517|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_server_cert_type)
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (2517:9): [True: 0, False: 0]
  ------------------
 2518|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (2518:12): [True: 0, False: 0]
  ------------------
 2519|      0|        || !WPACKET_sub_memcpy_u8(pkt, sc->server_cert_type, sc->server_cert_type_len)
  ------------------
  |  |  938|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 1)
  ------------------
  |  Branch (2519:12): [True: 0, False: 0]
  ------------------
 2520|      0|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (2520:12): [True: 0, False: 0]
  ------------------
 2521|      0|        SSLfatal(sc, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2522|      0|        return EXT_RETURN_FAIL;
 2523|      0|    }
 2524|      0|    sc->ext.server_cert_type_ctos = OSSL_CERT_TYPE_CTOS_GOOD;
  ------------------
  |  |  376|      0|#define OSSL_CERT_TYPE_CTOS_GOOD 1
  ------------------
 2525|      0|    return EXT_RETURN_SENT;
 2526|      0|}
tls_construct_ctos_ech:
 2565|    342|{
 2566|    342|    int rv = 0, hpke_mode = OSSL_HPKE_MODE_BASE;
  ------------------
  |  |   18|    342|#define OSSL_HPKE_MODE_BASE 0 /* Base mode  */
  ------------------
 2567|    342|    SSL_CTX *sctx = SSL_CONNECTION_GET_CTX(s);
  ------------------
  |  |   26|    342|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 2568|    342|    OSSL_ECHSTORE_ENTRY *ee = NULL;
 2569|    342|    OSSL_HPKE_SUITE hpke_suite = OSSL_HPKE_SUITE_DEFAULT;
  ------------------
  |  |   92|    342|    {                                 \
  |  |   93|    342|        OSSL_HPKE_KEM_ID_X25519,      \
  |  |  ------------------
  |  |  |  |   41|    342|#define OSSL_HPKE_KEM_ID_X25519 0x0020 /* Curve25519 */
  |  |  ------------------
  |  |   94|    342|        OSSL_HPKE_KDF_ID_HKDF_SHA256, \
  |  |  ------------------
  |  |  |  |   45|    342|#define OSSL_HPKE_KDF_ID_HKDF_SHA256 0x0001 /* HKDF-SHA256 */
  |  |  ------------------
  |  |   95|    342|        OSSL_HPKE_AEAD_ID_AES_GCM_128 \
  |  |  ------------------
  |  |  |  |   50|    342|#define OSSL_HPKE_AEAD_ID_AES_GCM_128 0x0001 /* AES-GCM-128 */
  |  |  ------------------
  |  |   96|    342|    }
  ------------------
 2570|    342|    unsigned char config_id_to_use = 0x00, info[OSSL_ECH_MAX_INFO_LEN];
 2571|    342|    unsigned char *encoded = NULL, *mypub = NULL;
 2572|    342|    size_t cipherlen = 0, aad_len = 0, lenclen = 0, mypub_len = 0;
 2573|    342|    size_t info_len = OSSL_ECH_MAX_INFO_LEN, clear_len = 0, encoded_len = 0;
  ------------------
  |  |   24|    342|#define OSSL_ECH_MAX_INFO_LEN (OSSL_ECH_MAX_ECHCONFIG_LEN + 8)
  |  |  ------------------
  |  |  |  |   33|    342|#define OSSL_ECH_MAX_ECHCONFIG_LEN 1500 /* max for all encodings */
  |  |  ------------------
  ------------------
 2574|       |    /* whether or not we've been asked to GREASE, one way or another */
 2575|    342|    int grease_opt_set = (s->ext.ech.attempted != 1
  ------------------
  |  Branch (2575:27): [True: 342, False: 0]
  ------------------
 2576|    342|        && ((s->ext.ech.grease == OSSL_ECH_IS_GREASE)
  ------------------
  |  |   37|    342|#define OSSL_ECH_IS_GREASE 1 /* when decryption failed or GREASE wanted */
  ------------------
  |  Branch (2576:13): [True: 0, False: 342]
  ------------------
 2577|    342|            || ((s->options & SSL_OP_ECH_GREASE) != 0)));
  ------------------
  |  |  460|    342|#define SSL_OP_ECH_GREASE SSL_OP_BIT(37)
  |  |  ------------------
  |  |  |  |  351|    342|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (2577:16): [True: 0, False: 342]
  ------------------
 2578|       |
 2579|       |    /* if we're not doing real ECH and not GREASEing then exit */
 2580|    342|    if (s->ext.ech.attempted_type != TLSEXT_TYPE_ech && grease_opt_set == 0)
  ------------------
  |  |  174|    684|#define TLSEXT_TYPE_ech 0xfe0d
  ------------------
  |  Branch (2580:9): [True: 342, False: 0]
  |  Branch (2580:57): [True: 342, False: 0]
  ------------------
 2581|    342|        return EXT_RETURN_NOT_SENT;
 2582|       |    /* send grease if not really attempting ECH */
 2583|      0|    if (grease_opt_set == 1) {
  ------------------
  |  Branch (2583:9): [True: 0, False: 0]
  ------------------
 2584|      0|        if (s->hello_retry_request == SSL_HRR_PENDING
  ------------------
  |  Branch (2584:13): [True: 0, False: 0]
  ------------------
 2585|      0|            && s->ext.ech.sent != NULL) {
  ------------------
  |  Branch (2585:16): [True: 0, False: 0]
  ------------------
 2586|       |            /* re-tx already sent GREASEy ECH */
 2587|      0|            if (WPACKET_memcpy(pkt, s->ext.ech.sent,
  ------------------
  |  Branch (2587:17): [True: 0, False: 0]
  ------------------
 2588|      0|                    s->ext.ech.sent_len)
 2589|      0|                != 1) {
 2590|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2591|      0|                return EXT_RETURN_FAIL;
 2592|      0|            }
 2593|      0|            return EXT_RETURN_SENT;
 2594|      0|        }
 2595|       |        /* if nobody set a type, use the default */
 2596|      0|        if (s->ext.ech.attempted_type == OSSL_ECH_type_unknown)
  ------------------
  |  |   40|      0|#define OSSL_ECH_type_unknown 0xffff
  ------------------
  |  Branch (2596:13): [True: 0, False: 0]
  ------------------
 2597|      0|            s->ext.ech.attempted_type = TLSEXT_TYPE_ech;
  ------------------
  |  |  174|      0|#define TLSEXT_TYPE_ech 0xfe0d
  ------------------
 2598|      0|        if (ossl_ech_send_grease(s, pkt) != 1) {
  ------------------
  |  Branch (2598:13): [True: 0, False: 0]
  ------------------
 2599|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2600|      0|            return EXT_RETURN_NOT_SENT;
 2601|      0|        }
 2602|      0|        return EXT_RETURN_SENT;
 2603|      0|    }
 2604|       |
 2605|       |    /* For the inner CH - we simply include one of these saying "inner" */
 2606|      0|    if (s->ext.ech.ch_depth == 1) {
  ------------------
  |  Branch (2606:9): [True: 0, False: 0]
  ------------------
 2607|      0|        if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_ech)
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (2607:13): [True: 0, False: 0]
  ------------------
 2608|      0|            || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (2608:16): [True: 0, False: 0]
  ------------------
 2609|      0|            || !WPACKET_put_bytes_u8(pkt, OSSL_ECH_INNER_CH_TYPE)
  ------------------
  |  |  909|      0|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (2609:16): [True: 0, False: 0]
  ------------------
 2610|      0|            || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (2610:16): [True: 0, False: 0]
  ------------------
 2611|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2612|      0|            return EXT_RETURN_FAIL;
 2613|      0|        }
 2614|      0|        return EXT_RETURN_SENT;
 2615|      0|    }
 2616|       |
 2617|       |    /*
 2618|       |     * If not GREASEing we prepare sending the outer value - after the
 2619|       |     * entire thing has been constructed, putting in zeros for now where
 2620|       |     * we'd otherwise include ECH ciphertext, we later encode and encrypt.
 2621|       |     * We need to do it that way as we need the rest of the outer CH to
 2622|       |     * be known and used as AAD input before we do encryption.
 2623|       |     */
 2624|      0|    if (s->ext.ech.ch_depth != 0)
  ------------------
  |  Branch (2624:9): [True: 0, False: 0]
  ------------------
 2625|      0|        return EXT_RETURN_NOT_SENT;
 2626|       |    /* Make ClientHelloInner and EncodedClientHelloInner as per spec. */
 2627|      0|    if (ossl_ech_encode_inner(s, &encoded, &encoded_len) != 1) {
  ------------------
  |  Branch (2627:9): [True: 0, False: 0]
  ------------------
 2628|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2629|      0|        goto err;
 2630|      0|    }
 2631|      0|    s->ext.ech.encoded_inner = encoded;
 2632|      0|    s->ext.ech.encoded_inner_len = encoded_len;
 2633|      0|#ifdef OSSL_ECH_SUPERVERBOSE
 2634|      0|    ossl_ech_pbuf("encoded inner CH", encoded, encoded_len);
 2635|      0|#endif
 2636|      0|    rv = ossl_ech_pick_matching_cfg(s, &ee, &hpke_suite);
 2637|      0|    if (rv != 1 || ee == NULL) {
  ------------------
  |  Branch (2637:9): [True: 0, False: 0]
  |  Branch (2637:20): [True: 0, False: 0]
  ------------------
 2638|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2639|      0|        goto err;
 2640|      0|    }
 2641|      0|    s->ext.ech.attempted_type = ee->version;
 2642|      0|    OSSL_TRACE_BEGIN(TLS)
  ------------------
  |  |  219|      0|    do {                           \
  |  |  220|      0|        BIO *trc_out = NULL;       \
  |  |  221|      0|        if (0)
  |  |  ------------------
  |  |  |  Branch (221:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2643|      0|    {
 2644|      0|        BIO_printf(trc_out, "EAAE: selected: version: %4x, config %2x\n",
 2645|      0|            ee->version, ee->config_id);
 2646|      0|    }
 2647|      0|    OSSL_TRACE_END(TLS);
  ------------------
  |  |  224|      0|    }                            \
  |  |  225|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (225:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2648|      0|    config_id_to_use = ee->config_id; /* if requested, use a random config_id instead */
 2649|      0|    if ((s->options & SSL_OP_ECH_IGNORE_CID) != 0) {
  ------------------
  |  |  471|      0|#define SSL_OP_ECH_IGNORE_CID SSL_OP_BIT(39)
  |  |  ------------------
  |  |  |  |  351|      0|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (2649:9): [True: 0, False: 0]
  ------------------
 2650|      0|        int max_iters = 1000, i = 0;
 2651|       |
 2652|       |        /* rejection sample to get a different but random config_id */
 2653|      0|        while (config_id_to_use == ee->config_id) {
  ------------------
  |  Branch (2653:16): [True: 0, False: 0]
  ------------------
 2654|      0|#ifdef OSSL_ECH_SUPERVERBOSE
 2655|      0|            if (i > 0) {
  ------------------
  |  Branch (2655:17): [True: 0, False: 0]
  ------------------
 2656|      0|                OSSL_TRACE_BEGIN(TLS)
  ------------------
  |  |  219|      0|    do {                           \
  |  |  220|      0|        BIO *trc_out = NULL;       \
  |  |  221|      0|        if (0)
  |  |  ------------------
  |  |  |  Branch (221:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2657|      0|                {
 2658|      0|                    BIO_printf(trc_out, "EAAE: rejected random-config %02x\n",
 2659|      0|                        config_id_to_use);
 2660|      0|                }
 2661|      0|                OSSL_TRACE_END(TLS);
  ------------------
  |  |  224|      0|    }                            \
  |  |  225|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (225:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 2662|      0|            }
 2663|      0|#endif
 2664|      0|            if (RAND_bytes_ex(sctx->libctx, &config_id_to_use, 1, 0) <= 0) {
  ------------------
  |  Branch (2664:17): [True: 0, False: 0]
  ------------------
 2665|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2666|      0|                return 0;
 2667|      0|            }
 2668|      0|            if (i++ >= max_iters) {
  ------------------
  |  Branch (2668:17): [True: 0, False: 0]
  ------------------
 2669|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2670|      0|                return 0;
 2671|      0|            }
 2672|      0|        }
 2673|      0|#ifdef OSSL_ECH_SUPERVERBOSE
 2674|      0|        ossl_ech_pbuf("EAAE: random config_id", &config_id_to_use, 1);
 2675|      0|#endif
 2676|      0|    }
 2677|      0|    s->ext.ech.attempted_cid = config_id_to_use;
 2678|      0|#ifdef OSSL_ECH_SUPERVERBOSE
 2679|      0|    ossl_ech_pbuf("EAAE: peer pub", ee->pub, ee->pub_len);
 2680|      0|    ossl_ech_pbuf("EAAE: clear", encoded, encoded_len);
 2681|      0|    ossl_ech_pbuf("EAAE: ECHConfig", ee->encoded, ee->encoded_len);
 2682|      0|#endif
 2683|       |    /*
 2684|       |     * The AAD is the full outer client hello but with the correct number of
 2685|       |     * zeros for where the ECH ciphertext octets will later be placed. So we
 2686|       |     * add the ECH extension to the |pkt| but with zeros for ciphertext, that
 2687|       |     * forms up the AAD, then after we've encrypted, we'll splice in the actual
 2688|       |     * ciphertext.
 2689|       |     * Watch out for the "4" offsets that remove the type and 3-octet length
 2690|       |     * from the encoded CH as per the spec.
 2691|       |     */
 2692|      0|    clear_len = ossl_ech_calc_padding(s, ee, encoded_len);
 2693|      0|    if (clear_len == 0) {
  ------------------
  |  Branch (2693:9): [True: 0, False: 0]
  ------------------
 2694|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2695|      0|        goto err;
 2696|      0|    }
 2697|      0|    lenclen = OSSL_HPKE_get_public_encap_size(hpke_suite);
 2698|      0|    if (s->ext.ech.hpke_ctx == NULL) { /* 1st CH */
  ------------------
  |  Branch (2698:9): [True: 0, False: 0]
  ------------------
 2699|      0|        if (ossl_ech_make_enc_info(ee->encoded, ee->encoded_len,
  ------------------
  |  Branch (2699:13): [True: 0, False: 0]
  ------------------
 2700|      0|                info, &info_len)
 2701|      0|            != 1) {
 2702|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2703|      0|            goto err;
 2704|      0|        }
 2705|      0|#ifdef OSSL_ECH_SUPERVERBOSE
 2706|      0|        ossl_ech_pbuf("EAAE info", info, info_len);
 2707|      0|#endif
 2708|      0|        s->ext.ech.hpke_ctx = OSSL_HPKE_CTX_new(hpke_mode, hpke_suite,
 2709|      0|            OSSL_HPKE_ROLE_SENDER,
  ------------------
  |  |   73|      0|#define OSSL_HPKE_ROLE_SENDER 0
  ------------------
 2710|      0|            sctx->libctx, sctx->propq);
 2711|      0|        if (s->ext.ech.hpke_ctx == NULL) {
  ------------------
  |  Branch (2711:13): [True: 0, False: 0]
  ------------------
 2712|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2713|      0|            goto err;
 2714|      0|        }
 2715|      0|        mypub = OPENSSL_malloc(lenclen);
  ------------------
  |  |  107|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 2716|      0|        if (mypub == NULL) {
  ------------------
  |  Branch (2716:13): [True: 0, False: 0]
  ------------------
 2717|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2718|      0|            goto err;
 2719|      0|        }
 2720|      0|        mypub_len = lenclen;
 2721|      0|        rv = OSSL_HPKE_encap(s->ext.ech.hpke_ctx, mypub, &mypub_len,
 2722|      0|            ee->pub, ee->pub_len, info, info_len);
 2723|      0|        if (rv != 1) {
  ------------------
  |  Branch (2723:13): [True: 0, False: 0]
  ------------------
 2724|      0|            OPENSSL_free(mypub);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 2725|      0|            mypub = NULL;
 2726|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2727|      0|            goto err;
 2728|      0|        }
 2729|      0|        s->ext.ech.pub = mypub;
 2730|      0|        s->ext.ech.pub_len = mypub_len;
 2731|      0|    } else { /* HRR - retrieve public */
 2732|      0|        mypub = s->ext.ech.pub;
 2733|      0|        mypub_len = s->ext.ech.pub_len;
 2734|      0|        if (mypub == NULL || mypub_len == 0) {
  ------------------
  |  Branch (2734:13): [True: 0, False: 0]
  |  Branch (2734:30): [True: 0, False: 0]
  ------------------
 2735|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2736|      0|            goto err;
 2737|      0|        }
 2738|      0|    }
 2739|      0|#ifdef OSSL_ECH_SUPERVERBOSE
 2740|      0|    ossl_ech_pbuf("EAAE: mypub", mypub, mypub_len);
 2741|      0|    WPACKET_get_total_written(pkt, &aad_len); /* use aad_len for tracing */
 2742|      0|    ossl_ech_pbuf("EAAE pkt b4", WPACKET_get_curr(pkt) - aad_len, aad_len);
 2743|      0|#endif
 2744|      0|    cipherlen = OSSL_HPKE_get_ciphertext_size(hpke_suite, clear_len);
 2745|      0|    if (cipherlen <= clear_len || cipherlen > OSSL_ECH_MAX_PAYLOAD_LEN) {
  ------------------
  |  |   31|      0|#define OSSL_ECH_MAX_PAYLOAD_LEN 1500 /* max ECH ciphertext to en/decode */
  ------------------
  |  Branch (2745:9): [True: 0, False: 0]
  |  Branch (2745:35): [True: 0, False: 0]
  ------------------
 2746|      0|        SSLfatal(s, SSL_AD_DECODE_ERROR, SSL_R_BAD_EXTENSION);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2747|      0|        goto err;
 2748|      0|    }
 2749|      0|    s->ext.ech.clearlen = clear_len;
 2750|      0|    s->ext.ech.cipherlen = cipherlen;
 2751|      0|    if (!WPACKET_put_bytes_u16(pkt, TLSEXT_TYPE_ech)
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (2751:9): [True: 0, False: 0]
  ------------------
 2752|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (2752:12): [True: 0, False: 0]
  ------------------
 2753|      0|        || !WPACKET_put_bytes_u8(pkt, OSSL_ECH_OUTER_CH_TYPE)
  ------------------
  |  |  909|      0|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (2753:12): [True: 0, False: 0]
  ------------------
 2754|      0|        || !WPACKET_put_bytes_u16(pkt, hpke_suite.kdf_id)
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (2754:12): [True: 0, False: 0]
  ------------------
 2755|      0|        || !WPACKET_put_bytes_u16(pkt, hpke_suite.aead_id)
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (2755:12): [True: 0, False: 0]
  ------------------
 2756|      0|        || !WPACKET_put_bytes_u8(pkt, config_id_to_use)
  ------------------
  |  |  909|      0|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (2756:12): [True: 0, False: 0]
  ------------------
 2757|      0|        || (s->hello_retry_request == SSL_HRR_PENDING
  ------------------
  |  Branch (2757:13): [True: 0, False: 0]
  ------------------
 2758|      0|            && !WPACKET_put_bytes_u16(pkt, 0x00)) /* no pub */
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (2758:16): [True: 0, False: 0]
  ------------------
 2759|      0|        || (s->hello_retry_request != SSL_HRR_PENDING
  ------------------
  |  Branch (2759:13): [True: 0, False: 0]
  ------------------
 2760|      0|            && !WPACKET_sub_memcpy_u16(pkt, mypub, mypub_len))
  ------------------
  |  |  940|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 2)
  ------------------
  |  Branch (2760:16): [True: 0, False: 0]
  ------------------
 2761|      0|        || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (2761:12): [True: 0, False: 0]
  ------------------
 2762|      0|        || !WPACKET_get_total_written(pkt, &s->ext.ech.cipher_offset)
  ------------------
  |  Branch (2762:12): [True: 0, False: 0]
  ------------------
 2763|      0|        || !WPACKET_memset(pkt, 0, cipherlen)
  ------------------
  |  Branch (2763:12): [True: 0, False: 0]
  ------------------
 2764|      0|        || !WPACKET_close(pkt)
  ------------------
  |  Branch (2764:12): [True: 0, False: 0]
  ------------------
 2765|      0|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (2765:12): [True: 0, False: 0]
  ------------------
 2766|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 2767|      0|        goto err;
 2768|      0|    }
 2769|       |    /* don't count the type + 3-octet length */
 2770|      0|    s->ext.ech.cipher_offset -= 4;
 2771|      0|    return EXT_RETURN_SENT;
 2772|      0|err:
 2773|      0|    return EXT_RETURN_FAIL;
 2774|      0|}
extensions_clnt.c:negotiate_dhe:
  207|  1.02k|{
  208|  1.02k|    int i, end, ret = 0;
  209|  1.02k|    STACK_OF(SSL_CIPHER) *cipher_stack = NULL;
  ------------------
  |  |   33|  1.02k|#define STACK_OF(type) struct stack_st_##type
  ------------------
  210|  1.02k|    const uint16_t *pgroups = NULL;
  211|  1.02k|    size_t num_groups, j;
  212|  1.02k|    SSL *ssl = SSL_CONNECTION_GET_SSL(s);
  ------------------
  |  |   27|  1.02k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
  213|  1.02k|    int dtls = SSL_CONNECTION_IS_DTLS(s);
  ------------------
  |  |  266|  1.02k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  1.02k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|  1.02k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  ------------------
  214|       |
  215|       |    /* See if we support any EC or FFDHE ciphersuites */
  216|  1.02k|    cipher_stack = SSL_get1_supported_ciphers(ssl);
  217|  1.02k|    end = sk_SSL_CIPHER_num(cipher_stack);
  ------------------
  |  | 1028|  1.02k|#define sk_SSL_CIPHER_num(sk) OPENSSL_sk_num(ossl_check_const_SSL_CIPHER_sk_type(sk))
  ------------------
  218|  2.05k|    for (i = 0; i < end; i++) {
  ------------------
  |  Branch (218:17): [True: 2.05k, False: 0]
  ------------------
  219|  2.05k|        const SSL_CIPHER *c = sk_SSL_CIPHER_value(cipher_stack, i);
  ------------------
  |  | 1029|  2.05k|#define sk_SSL_CIPHER_value(sk, idx) ((const SSL_CIPHER *)OPENSSL_sk_value(ossl_check_const_SSL_CIPHER_sk_type(sk), (idx)))
  ------------------
  220|  2.05k|        unsigned long alg_k = c->algorithm_mkey;
  221|  2.05k|        unsigned long alg_a = c->algorithm_auth;
  222|       |
  223|  2.05k|        int is_ffdhe_ciphersuite = (alg_k & (SSL_kDHE | SSL_kDHEPSK));
  ------------------
  |  |   87|  2.05k|#define SSL_kDHE 0x00000002U
  ------------------
                      int is_ffdhe_ciphersuite = (alg_k & (SSL_kDHE | SSL_kDHEPSK));
  ------------------
  |  |   99|  2.05k|#define SSL_kDHEPSK 0x00000100U
  ------------------
  224|  2.05k|        int is_ec_ciphersuite = ((alg_k & (SSL_kECDHE | SSL_kECDHEPSK))
  ------------------
  |  |   89|  2.05k|#define SSL_kECDHE 0x00000004U
  ------------------
                      int is_ec_ciphersuite = ((alg_k & (SSL_kECDHE | SSL_kECDHEPSK))
  ------------------
  |  |   98|  2.05k|#define SSL_kECDHEPSK 0x00000080U
  ------------------
  |  Branch (224:34): [True: 342, False: 1.71k]
  ------------------
  225|  1.71k|            || (alg_a & SSL_aECDSA));
  ------------------
  |  |  118|  1.71k|#define SSL_aECDSA 0x00000008U
  ------------------
  |  Branch (225:16): [True: 0, False: 1.71k]
  ------------------
  226|  2.05k|        int is_tls13 = (dtls ? DTLS_VERSION_GT(c->min_dtls, DTLS1_2_VERSION)
  ------------------
  |  |   62|      0|#define DTLS_VERSION_GT(v1, v2) (dtls_ver_ordinal(v1) < dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   61|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (61:31): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define DTLS_VERSION_GT(v1, v2) (dtls_ver_ordinal(v1) < dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   61|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (61:31): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (226:25): [True: 0, False: 2.05k]
  ------------------
  227|  2.05k|                             : (c->min_tls > TLS1_2_VERSION));
  ------------------
  |  |   26|  2.05k|#define TLS1_2_VERSION 0x0303
  ------------------
  228|       |
  229|  2.05k|        if ((check_type == ffdhe_check && (is_ffdhe_ciphersuite || is_tls13))
  ------------------
  |  Branch (229:14): [True: 342, False: 1.71k]
  |  Branch (229:44): [True: 0, False: 342]
  |  Branch (229:68): [True: 342, False: 0]
  ------------------
  230|  1.71k|            || (check_type == ecdhe_check && (is_ec_ciphersuite || is_tls13))
  ------------------
  |  Branch (230:17): [True: 342, False: 1.36k]
  |  Branch (230:47): [True: 0, False: 342]
  |  Branch (230:68): [True: 342, False: 0]
  ------------------
  231|  1.36k|            || (check_type == ptfmt_check && is_ec_ciphersuite)) {
  ------------------
  |  Branch (231:17): [True: 1.36k, False: 0]
  |  Branch (231:46): [True: 342, False: 1.02k]
  ------------------
  232|  1.02k|            ret = 1;
  233|  1.02k|            break;
  234|  1.02k|        }
  235|  2.05k|    }
  236|  1.02k|    sk_SSL_CIPHER_free(cipher_stack);
  ------------------
  |  | 1034|  1.02k|#define sk_SSL_CIPHER_free(sk) OPENSSL_sk_free(ossl_check_SSL_CIPHER_sk_type(sk))
  ------------------
  237|  1.02k|    if (ret == 0)
  ------------------
  |  Branch (237:9): [True: 0, False: 1.02k]
  ------------------
  238|      0|        return 0;
  239|       |
  240|       |    /* Check we have at least one EC or FFDHE supported group */
  241|  1.02k|    tls1_get_supported_groups(s, &pgroups, &num_groups);
  242|  6.15k|    for (j = 0; j < num_groups; j++) {
  ------------------
  |  Branch (242:17): [True: 6.15k, False: 0]
  ------------------
  243|  6.15k|        uint16_t ctmp = pgroups[j];
  244|  6.15k|        const TLS_GROUP_INFO *ginfo = NULL;
  245|       |
  246|  6.15k|        if (!tls_valid_group(s, ctmp, min_version, max_version, NULL, &ginfo))
  ------------------
  |  Branch (246:13): [True: 0, False: 6.15k]
  ------------------
  247|      0|            continue;
  248|       |
  249|  6.15k|        if (check_type == ffdhe_check && is_ffdhe_group(ginfo->group_id)
  ------------------
  |  Branch (249:13): [True: 3.42k, False: 2.73k]
  |  Branch (249:42): [True: 342, False: 3.07k]
  ------------------
  250|    342|            && tls_group_allowed(s, ctmp, SSL_SECOP_CURVE_SUPPORTED))
  ------------------
  |  | 2749|    342|#define SSL_SECOP_CURVE_SUPPORTED (4 | SSL_SECOP_OTHER_CURVE)
  |  |  ------------------
  |  |  |  | 2730|    342|#define SSL_SECOP_OTHER_CURVE (2 << 16)
  |  |  ------------------
  ------------------
  |  Branch (250:16): [True: 342, False: 0]
  ------------------
  251|    342|            return 1;
  252|       |
  253|  5.81k|        if (check_type != ffdhe_check && is_ecdhe_group(ginfo->group_id)
  ------------------
  |  Branch (253:13): [True: 2.73k, False: 3.07k]
  |  Branch (253:42): [True: 684, False: 2.05k]
  ------------------
  254|    684|            && tls_group_allowed(s, ctmp, SSL_SECOP_CURVE_SUPPORTED))
  ------------------
  |  | 2749|    684|#define SSL_SECOP_CURVE_SUPPORTED (4 | SSL_SECOP_OTHER_CURVE)
  |  |  ------------------
  |  |  |  | 2730|    684|#define SSL_SECOP_OTHER_CURVE (2 << 16)
  |  |  ------------------
  ------------------
  |  Branch (254:16): [True: 684, False: 0]
  ------------------
  255|    684|            return 1;
  256|  5.81k|    }
  257|      0|    return 0;
  258|  1.02k|}
extensions_clnt.c:add_key_share:
  792|    684|{
  793|    684|    unsigned char *encoded_pubkey = NULL;
  794|    684|    EVP_PKEY *key_share_key = NULL;
  795|    684|    size_t encodedlen;
  796|       |
  797|    684|    if (loop_num < s->s3.tmp.num_ks_pkey) {
  ------------------
  |  Branch (797:9): [True: 0, False: 684]
  ------------------
  798|      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 (798:13): [True: 0, False: 0]
  ------------------
  799|      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 (799:16): [True: 0, False: 0]
  ------------------
  800|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  801|      0|            return 0;
  802|      0|        }
  803|       |        /*
  804|       |         * Could happen if we got an HRR that wasn't requesting a new key_share
  805|       |         */
  806|      0|        key_share_key = s->s3.tmp.ks_pkey[loop_num];
  807|    684|    } else {
  808|    684|        key_share_key = ssl_generate_pkey_group(s, group_id);
  809|    684|        if (key_share_key == NULL) {
  ------------------
  |  Branch (809:13): [True: 0, False: 684]
  ------------------
  810|       |            /* SSLfatal() already called */
  811|      0|            return 0;
  812|      0|        }
  813|    684|    }
  814|       |
  815|       |    /* Encode the public key. */
  816|    684|    encodedlen = EVP_PKEY_get1_encoded_public_key(key_share_key,
  817|    684|        &encoded_pubkey);
  818|    684|    if (encodedlen == 0) {
  ------------------
  |  Branch (818:9): [True: 0, False: 684]
  ------------------
  819|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_EC_LIB);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  820|      0|        goto err;
  821|      0|    }
  822|       |
  823|       |    /* Create KeyShareEntry */
  824|    684|    if (!WPACKET_put_bytes_u16(pkt, group_id)
  ------------------
  |  |  911|  1.36k|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (824:9): [True: 0, False: 684]
  ------------------
  825|    684|        || !WPACKET_sub_memcpy_u16(pkt, encoded_pubkey, encodedlen)) {
  ------------------
  |  |  940|    684|    WPACKET_sub_memcpy__((pkt), (src), (len), 2)
  ------------------
  |  Branch (825:12): [True: 0, False: 684]
  ------------------
  826|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  827|      0|        goto err;
  828|      0|    }
  829|       |
  830|       |    /* For backward compatibility, we use the first valid group to add a key share */
  831|    684|    if (loop_num == 0) {
  ------------------
  |  Branch (831:9): [True: 342, False: 342]
  ------------------
  832|    342|        s->s3.tmp.pkey = key_share_key;
  833|    342|        s->s3.group_id = group_id;
  834|    342|    }
  835|       |    /* We ensure in t1_lib.c that the loop number does not exceed OPENSSL_CLIENT_MAX_KEY_SHARES */
  836|    684|    s->s3.tmp.ks_pkey[loop_num] = key_share_key;
  837|    684|    s->s3.tmp.ks_group_id[loop_num] = group_id;
  838|    684|    if (loop_num >= s->s3.tmp.num_ks_pkey)
  ------------------
  |  Branch (838:9): [True: 684, False: 0]
  ------------------
  839|    684|        s->s3.tmp.num_ks_pkey++;
  840|       |
  841|    684|    OPENSSL_free(encoded_pubkey);
  ------------------
  |  |  132|    684|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  842|    684|    return 1;
  843|      0|err:
  844|      0|    if (key_share_key != s->s3.tmp.ks_pkey[loop_num])
  ------------------
  |  Branch (844:9): [True: 0, False: 0]
  ------------------
  845|      0|        EVP_PKEY_free(key_share_key);
  846|      0|    OPENSSL_free(encoded_pubkey);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  847|      0|    return 0;
  848|    684|}

custom_ext_init:
  104|    342|{
  105|    342|    size_t i;
  106|    342|    custom_ext_method *meth = exts->meths;
  107|       |
  108|    342|    for (i = 0; i < exts->meths_count; i++, meth++)
  ------------------
  |  Branch (108:17): [True: 0, False: 342]
  ------------------
  109|      0|        meth->ext_flags &= ~(SSL_EXT_FLAG_SENT | SSL_EXT_FLAG_RECEIVED);
  ------------------
  |  | 2074|      0|#define SSL_EXT_FLAG_SENT 0x2
  ------------------
                      meth->ext_flags &= ~(SSL_EXT_FLAG_SENT | SSL_EXT_FLAG_RECEIVED);
  ------------------
  |  | 2069|      0|#define SSL_EXT_FLAG_RECEIVED 0x1
  ------------------
  110|    342|}
custom_ext_add:
  175|    342|{
  176|    342|    custom_ext_methods *exts = &s->cert->custext;
  177|    342|    custom_ext_method *meth;
  178|    342|    size_t i;
  179|    342|    int al;
  180|    342|    int for_comp = (context & SSL_EXT_TLS1_3_CERTIFICATE_COMPRESSION) != 0;
  ------------------
  |  |  309|    342|#define SSL_EXT_TLS1_3_CERTIFICATE_COMPRESSION 0x08000
  ------------------
  181|       |
  182|    342|    for (i = 0; i < exts->meths_count; i++) {
  ------------------
  |  Branch (182:17): [True: 0, False: 342]
  ------------------
  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) {
  ------------------
  |  |  302|      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) {
  ------------------
  |  |  303|      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) {
  ------------------
  |  |  304|      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) {
  ------------------
  |  |  306|      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) {
  ------------------
  |  |  311|      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) {
  ------------------
  |  |  305|      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))
  ------------------
  |  | 2069|      0|#define SSL_EXT_FLAG_RECEIVED 0x1
  ------------------
  |  Branch (193:17): [True: 0, False: 0]
  ------------------
  194|      0|                continue;
  195|      0|        }
  196|       |
  197|      0|#ifndef OPENSSL_NO_ECH
  198|      0|        if ((context & SSL_EXT_CLIENT_HELLO) != 0
  ------------------
  |  |  300|      0|#define SSL_EXT_CLIENT_HELLO 0x00080
  ------------------
  |  Branch (198:13): [True: 0, False: 0]
  ------------------
  199|      0|            && s->ext.ech.attempted == 1) {
  ------------------
  |  Branch (199:16): [True: 0, False: 0]
  ------------------
  200|      0|            if (s->ext.ech.ch_depth == 1) {
  ------------------
  |  Branch (200:17): [True: 0, False: 0]
  ------------------
  201|       |                /* mark custom CH ext for ECH compression, if doing ECH */
  202|      0|                if (s->ext.ech.n_outer_only >= OSSL_ECH_OUTERS_MAX) {
  ------------------
  |  |   38|      0|#define OSSL_ECH_OUTERS_MAX 20 /* max extensions we compress via outer-exts */
  ------------------
  |  Branch (202:21): [True: 0, False: 0]
  ------------------
  203|      0|                    OSSL_TRACE_BEGIN(TLS)
  ------------------
  |  |  219|      0|    do {                           \
  |  |  220|      0|        BIO *trc_out = NULL;       \
  |  |  221|      0|        if (0)
  |  |  ------------------
  |  |  |  Branch (221:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  204|      0|                    {
  205|      0|                        BIO_printf(trc_out,
  206|      0|                            "Too many outers to compress (max=%d)\n",
  207|      0|                            OSSL_ECH_OUTERS_MAX);
  ------------------
  |  |   38|      0|#define OSSL_ECH_OUTERS_MAX 20 /* max extensions we compress via outer-exts */
  ------------------
  208|      0|                    }
  209|      0|                    OSSL_TRACE_END(TLS);
  ------------------
  |  |  224|      0|    }                            \
  |  |  225|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (225:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  210|      0|                    SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_BAD_EXTENSION);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  211|      0|                    return 0;
  212|      0|                }
  213|      0|                s->ext.ech.outer_only[s->ext.ech.n_outer_only] = meth->ext_type;
  214|      0|                s->ext.ech.n_outer_only++;
  215|      0|                OSSL_TRACE_BEGIN(TLS)
  ------------------
  |  |  219|      0|    do {                           \
  |  |  220|      0|        BIO *trc_out = NULL;       \
  |  |  221|      0|        if (0)
  |  |  ------------------
  |  |  |  Branch (221:13): [Folded, False: 0]
  |  |  ------------------
  ------------------
  216|      0|                {
  217|      0|                    BIO_printf(trc_out, "ECH compressing type "
  218|      0|                                        "0x%04x (tot: %d)\n",
  219|      0|                        (int)meth->ext_type,
  220|      0|                        (int)s->ext.ech.n_outer_only);
  221|      0|                }
  222|      0|                OSSL_TRACE_END(TLS);
  ------------------
  |  |  224|      0|    }                            \
  |  |  225|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (225:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
  223|      0|            }
  224|      0|            if (s->ext.ech.ch_depth == 0) {
  ------------------
  |  Branch (224:17): [True: 0, False: 0]
  ------------------
  225|       |                /*
  226|       |                 * We store/access the index of the extension handler in
  227|       |                 * s->ext.ech.ext_ind, as we'd otherwise not know it here.
  228|       |                 * Be nice were there a better way to handle that.
  229|       |                 */
  230|       |                /* copy over the extension octets (if any) to outer */
  231|      0|                int j, tind = -1;
  232|      0|                RAW_EXTENSION *raws = NULL;
  233|       |
  234|       |                /* we gotta find the relevant index to copy over this ext */
  235|      0|                if (s->clienthello == NULL
  ------------------
  |  Branch (235:21): [True: 0, False: 0]
  ------------------
  236|      0|                    || s->clienthello->pre_proc_exts == NULL) {
  ------------------
  |  Branch (236:24): [True: 0, False: 0]
  ------------------
  237|      0|                    SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_BAD_EXTENSION);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  238|      0|                    return 0;
  239|      0|                }
  240|      0|                raws = s->clienthello->pre_proc_exts;
  241|      0|                for (j = 0; j != (int)s->clienthello->pre_proc_exts_len; j++) {
  ------------------
  |  Branch (241:29): [True: 0, False: 0]
  ------------------
  242|      0|                    if (raws[j].type == meth->ext_type) {
  ------------------
  |  Branch (242:25): [True: 0, False: 0]
  ------------------
  243|      0|                        tind = j;
  244|      0|                        break;
  245|      0|                    }
  246|      0|                }
  247|      0|                if (tind == -1) {
  ------------------
  |  Branch (247:21): [True: 0, False: 0]
  ------------------
  248|      0|                    SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_BAD_EXTENSION);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  249|      0|                    return 0;
  250|      0|                }
  251|      0|                if (ossl_ech_copy_inner2outer(s, meth->ext_type, tind,
  ------------------
  |  Branch (251:21): [True: 0, False: 0]
  ------------------
  252|      0|                        pkt)
  253|      0|                    != OSSL_ECH_SAME_EXT_DONE) {
  ------------------
  |  |  294|      0|#define OSSL_ECH_SAME_EXT_DONE 1 /* proceed with same value in inner/outer */
  ------------------
  254|       |                    /* for custom exts, we really should have found it */
  255|      0|                    SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_BAD_EXTENSION);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  256|      0|                    return 0;
  257|      0|                }
  258|       |                /* we're done with that one now */
  259|      0|                continue;
  260|      0|            }
  261|      0|        }
  262|      0|#endif
  263|       |
  264|       |        /*
  265|       |         * We skip it if the callback is absent - except for a ClientHello where
  266|       |         * we add an empty extension.
  267|       |         */
  268|      0|        if ((context & SSL_EXT_CLIENT_HELLO) == 0 && meth->add_cb == NULL)
  ------------------
  |  |  300|      0|#define SSL_EXT_CLIENT_HELLO 0x00080
  ------------------
  |  Branch (268:13): [True: 0, False: 0]
  |  Branch (268:54): [True: 0, False: 0]
  ------------------
  269|      0|            continue;
  270|       |
  271|      0|        if (meth->add_cb != NULL) {
  ------------------
  |  Branch (271:13): [True: 0, False: 0]
  ------------------
  272|      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)
  ------------------
  273|      0|                meth->ext_type, context, &out,
  274|      0|                &outlen, x, chainidx, &al,
  275|      0|                meth->add_arg);
  276|       |
  277|      0|            if (cb_retval < 0) {
  ------------------
  |  Branch (277:17): [True: 0, False: 0]
  ------------------
  278|      0|                if (!for_comp)
  ------------------
  |  Branch (278:21): [True: 0, False: 0]
  ------------------
  279|      0|                    SSLfatal(s, al, SSL_R_CALLBACK_FAILED);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  280|      0|                return 0; /* error */
  281|      0|            }
  282|      0|            if (cb_retval == 0)
  ------------------
  |  Branch (282:17): [True: 0, False: 0]
  ------------------
  283|      0|                continue; /* skip this extension */
  284|      0|        }
  285|       |
  286|      0|        if (!WPACKET_put_bytes_u16(pkt, meth->ext_type)
  ------------------
  |  |  911|      0|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (286:13): [True: 0, False: 0]
  ------------------
  287|      0|            || !WPACKET_start_sub_packet_u16(pkt)
  ------------------
  |  |  812|      0|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (287:16): [True: 0, False: 0]
  ------------------
  288|      0|            || (outlen > 0 && !WPACKET_memcpy(pkt, out, outlen))
  ------------------
  |  Branch (288:17): [True: 0, False: 0]
  |  Branch (288:31): [True: 0, False: 0]
  ------------------
  289|      0|            || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (289:16): [True: 0, False: 0]
  ------------------
  290|      0|            if (meth->free_cb != NULL)
  ------------------
  |  Branch (290:17): [True: 0, False: 0]
  ------------------
  291|      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)
  ------------------
  292|      0|                    context, out, meth->add_arg);
  293|      0|            if (!for_comp)
  ------------------
  |  Branch (293:17): [True: 0, False: 0]
  ------------------
  294|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  295|      0|            return 0;
  296|      0|        }
  297|      0|        if ((context & SSL_EXT_CLIENT_HELLO) != 0) {
  ------------------
  |  |  300|      0|#define SSL_EXT_CLIENT_HELLO 0x00080
  ------------------
  |  Branch (297:13): [True: 0, False: 0]
  ------------------
  298|       |            /*
  299|       |             * We can't send duplicates: code logic should prevent this.
  300|       |             */
  301|      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 (301:17): [True: 0, False: 0]
  ------------------
  302|      0|                if (meth->free_cb != NULL)
  ------------------
  |  Branch (302:21): [True: 0, False: 0]
  ------------------
  303|      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)
  ------------------
  304|      0|                        context, out, meth->add_arg);
  305|      0|                if (!for_comp)
  ------------------
  |  Branch (305:21): [True: 0, False: 0]
  ------------------
  306|      0|                    SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  307|      0|                return 0;
  308|      0|            }
  309|       |            /*
  310|       |             * Indicate extension has been sent: this is both a sanity check to
  311|       |             * ensure we don't send duplicate extensions and indicates that it
  312|       |             * is not an error if the extension is present in ServerHello.
  313|       |             */
  314|      0|            meth->ext_flags |= SSL_EXT_FLAG_SENT;
  ------------------
  |  | 2074|      0|#define SSL_EXT_FLAG_SENT 0x2
  ------------------
  315|      0|        }
  316|      0|        if (meth->free_cb != NULL)
  ------------------
  |  Branch (316:13): [True: 0, False: 0]
  ------------------
  317|      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)
  ------------------
  318|      0|                context, out, meth->add_arg);
  319|      0|    }
  320|    342|    return 1;
  321|    342|}
custom_exts_copy:
  370|    347|{
  371|    347|    size_t i;
  372|    347|    int err = 0;
  373|       |
  374|    347|    if (src->meths_count > 0) {
  ------------------
  |  Branch (374:9): [True: 0, False: 347]
  ------------------
  375|      0|        dst->meths = OPENSSL_memdup(src->meths,
  ------------------
  |  |  134|      0|    CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  376|      0|            sizeof(*src->meths) * src->meths_count);
  377|      0|        if (dst->meths == NULL)
  ------------------
  |  Branch (377:13): [True: 0, False: 0]
  ------------------
  378|      0|            return 0;
  379|      0|        dst->meths_count = src->meths_count;
  380|       |
  381|      0|        for (i = 0; i < src->meths_count; i++)
  ------------------
  |  Branch (381:21): [True: 0, False: 0]
  ------------------
  382|      0|            custom_ext_copy_old_cb(&dst->meths[i], &src->meths[i], &err);
  383|      0|    }
  384|       |
  385|    347|    if (err) {
  ------------------
  |  Branch (385:9): [True: 0, False: 347]
  ------------------
  386|      0|        custom_exts_free(dst);
  387|      0|        return 0;
  388|      0|    }
  389|       |
  390|    347|    return 1;
  391|    347|}
custom_exts_free:
  441|    694|{
  442|    694|    size_t i;
  443|    694|    custom_ext_method *meth;
  444|       |
  445|    694|    for (i = 0, meth = exts->meths; i < exts->meths_count; i++, meth++) {
  ------------------
  |  Branch (445:37): [True: 0, False: 694]
  ------------------
  446|      0|        if (meth->add_cb != custom_ext_add_old_cb_wrap)
  ------------------
  |  Branch (446:13): [True: 0, False: 0]
  ------------------
  447|      0|            continue;
  448|       |
  449|       |        /* Old style API wrapper. Need to free the arguments too */
  450|      0|        OPENSSL_free(meth->add_arg);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  451|      0|        OPENSSL_free(meth->parse_arg);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  452|      0|    }
  453|    694|    OPENSSL_free(exts->meths);
  ------------------
  |  |  132|    694|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  454|       |    exts->meths = NULL;
  455|    694|    exts->meths_count = 0;
  456|    694|}

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

ossl_statem_client_write_transition:
  539|    684|{
  540|    684|    OSSL_STATEM *st = &s->statem;
  541|       |
  542|       |    /*
  543|       |     * Note that immediately before/after a ClientHello we don't know what
  544|       |     * version we are going to negotiate yet, so we don't take this branch until
  545|       |     * later
  546|       |     */
  547|    684|    if (SSL_CONNECTION_IS_TLS13(s))
  ------------------
  |  |  273|    684|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  266|  1.36k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   27|    684|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  |  |  ------------------
  |  |  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2196|    684|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (273:37): [True: 684, False: 0]
  |  |  ------------------
  |  |  274|    684|    && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|    684|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|  1.36k|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  |  |  |  Branch (274:8): [True: 684, False: 0]
  |  |  ------------------
  |  |  275|    684|    && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   27|    684|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   40|    684|#define TLS_ANY_VERSION 0x10000
  |  |  ------------------
  |  |  |  Branch (275:8): [True: 0, False: 684]
  |  |  ------------------
  ------------------
  548|      0|        return ossl_statem_client13_write_transition(s);
  549|       |
  550|    684|    switch (st->hand_state) {
  551|      0|    default:
  ------------------
  |  Branch (551:5): [True: 0, False: 684]
  ------------------
  552|       |        /* Shouldn't happen */
  553|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  554|      0|        return WRITE_TRAN_ERROR;
  555|       |
  556|      0|    case TLS_ST_OK:
  ------------------
  |  Branch (556:5): [True: 0, False: 684]
  ------------------
  557|      0|        if (!s->renegotiate) {
  ------------------
  |  Branch (557:13): [True: 0, False: 0]
  ------------------
  558|       |            /*
  559|       |             * We haven't requested a renegotiation ourselves so we must have
  560|       |             * received a message from the server. Better read it.
  561|       |             */
  562|      0|            return WRITE_TRAN_FINISHED;
  563|      0|        }
  564|       |        /* Renegotiation */
  565|       |        /* fall thru */
  566|    342|    case TLS_ST_BEFORE:
  ------------------
  |  Branch (566:5): [True: 342, False: 342]
  ------------------
  567|    342|        st->hand_state = TLS_ST_CW_CLNT_HELLO;
  568|    342|        return WRITE_TRAN_CONTINUE;
  569|       |
  570|    342|    case TLS_ST_CW_CLNT_HELLO:
  ------------------
  |  Branch (570:5): [True: 342, False: 342]
  ------------------
  571|    342|        if (s->early_data_state == SSL_EARLY_DATA_CONNECTING
  ------------------
  |  Branch (571:13): [True: 0, False: 342]
  ------------------
  572|      0|            && !SSL_IS_QUIC_HANDSHAKE(s)) {
  ------------------
  |  |  311|      0|#define SSL_IS_QUIC_HANDSHAKE(s) (((s)->s3.flags & TLS1_FLAGS_QUIC) != 0)
  |  |  ------------------
  |  |  |  |   22|      0|#define TLS1_FLAGS_QUIC 0x2000
  |  |  ------------------
  ------------------
  |  Branch (572:16): [True: 0, False: 0]
  ------------------
  573|       |            /*
  574|       |             * We are assuming this is a TLSv1.3 connection, although we haven't
  575|       |             * actually selected a version yet.
  576|       |             */
  577|      0|            if ((s->options & SSL_OP_ENABLE_MIDDLEBOX_COMPAT) != 0)
  ------------------
  |  |  404|      0|#define SSL_OP_ENABLE_MIDDLEBOX_COMPAT SSL_OP_BIT(20)
  |  |  ------------------
  |  |  |  |  351|      0|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (577:17): [True: 0, False: 0]
  ------------------
  578|      0|                st->hand_state = TLS_ST_CW_CHANGE;
  579|      0|            else
  580|      0|                st->hand_state = TLS_ST_EARLY_DATA;
  581|      0|            return WRITE_TRAN_CONTINUE;
  582|      0|        }
  583|       |        /*
  584|       |         * No transition at the end of writing because we don't know what
  585|       |         * we will be sent
  586|       |         */
  587|    342|        s->ts_msg_write = ossl_time_now();
  588|    342|        return WRITE_TRAN_FINISHED;
  589|       |
  590|      0|    case TLS_ST_CR_SRVR_HELLO:
  ------------------
  |  Branch (590:5): [True: 0, False: 684]
  ------------------
  591|       |        /*
  592|       |         * We only get here in TLSv1.3. We just received an HRR, so issue a
  593|       |         * CCS unless middlebox compat mode is off, or we already issued one
  594|       |         * because we did early data.
  595|       |         */
  596|      0|        if ((s->options & SSL_OP_ENABLE_MIDDLEBOX_COMPAT) != 0
  ------------------
  |  |  404|      0|#define SSL_OP_ENABLE_MIDDLEBOX_COMPAT SSL_OP_BIT(20)
  |  |  ------------------
  |  |  |  |  351|      0|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (596:13): [True: 0, False: 0]
  ------------------
  597|      0|            && s->early_data_state != SSL_EARLY_DATA_FINISHED_WRITING)
  ------------------
  |  Branch (597:16): [True: 0, False: 0]
  ------------------
  598|      0|            st->hand_state = TLS_ST_CW_CHANGE;
  599|      0|        else
  600|      0|            st->hand_state = TLS_ST_CW_CLNT_HELLO;
  601|      0|        return WRITE_TRAN_CONTINUE;
  602|       |
  603|      0|    case TLS_ST_EARLY_DATA:
  ------------------
  |  Branch (603:5): [True: 0, False: 684]
  ------------------
  604|      0|        s->ts_msg_write = ossl_time_now();
  605|      0|        return WRITE_TRAN_FINISHED;
  606|       |
  607|      0|    case DTLS_ST_CR_HELLO_VERIFY_REQUEST:
  ------------------
  |  Branch (607:5): [True: 0, False: 684]
  ------------------
  608|      0|        st->hand_state = TLS_ST_CW_CLNT_HELLO;
  609|      0|        return WRITE_TRAN_CONTINUE;
  610|       |
  611|      0|    case TLS_ST_CR_SRVR_DONE:
  ------------------
  |  Branch (611:5): [True: 0, False: 684]
  ------------------
  612|      0|        s->ts_msg_read = ossl_time_now();
  613|      0|        if (s->s3.tmp.cert_req)
  ------------------
  |  Branch (613:13): [True: 0, False: 0]
  ------------------
  614|      0|            st->hand_state = TLS_ST_CW_CERT;
  615|      0|        else
  616|      0|            st->hand_state = TLS_ST_CW_KEY_EXCH;
  617|      0|        return WRITE_TRAN_CONTINUE;
  618|       |
  619|      0|    case TLS_ST_CW_CERT:
  ------------------
  |  Branch (619:5): [True: 0, False: 684]
  ------------------
  620|      0|        st->hand_state = TLS_ST_CW_KEY_EXCH;
  621|      0|        return WRITE_TRAN_CONTINUE;
  622|       |
  623|      0|    case TLS_ST_CW_KEY_EXCH:
  ------------------
  |  Branch (623:5): [True: 0, False: 684]
  ------------------
  624|       |        /*
  625|       |         * For TLS, cert_req is set to 2, so a cert chain of nothing is
  626|       |         * sent, but no verify packet is sent
  627|       |         */
  628|       |        /*
  629|       |         * XXX: For now, we do not support client authentication in ECDH
  630|       |         * cipher suites with ECDH (rather than ECDSA) certificates. We
  631|       |         * need to skip the certificate verify message when client's
  632|       |         * ECDH public key is sent inside the client certificate.
  633|       |         */
  634|      0|        if (s->s3.tmp.cert_req == 1) {
  ------------------
  |  Branch (634:13): [True: 0, False: 0]
  ------------------
  635|      0|            st->hand_state = TLS_ST_CW_CERT_VRFY;
  636|      0|        } else {
  637|      0|            st->hand_state = TLS_ST_CW_CHANGE;
  638|      0|        }
  639|      0|        if (s->s3.flags & TLS1_FLAGS_SKIP_CERT_VERIFY) {
  ------------------
  |  |  293|      0|#define TLS1_FLAGS_SKIP_CERT_VERIFY 0x0010
  ------------------
  |  Branch (639:13): [True: 0, False: 0]
  ------------------
  640|      0|            st->hand_state = TLS_ST_CW_CHANGE;
  641|      0|        }
  642|      0|        return WRITE_TRAN_CONTINUE;
  643|       |
  644|      0|    case TLS_ST_CW_CERT_VRFY:
  ------------------
  |  Branch (644:5): [True: 0, False: 684]
  ------------------
  645|      0|        st->hand_state = TLS_ST_CW_CHANGE;
  646|      0|        return WRITE_TRAN_CONTINUE;
  647|       |
  648|      0|    case TLS_ST_CW_CHANGE:
  ------------------
  |  Branch (648:5): [True: 0, False: 684]
  ------------------
  649|      0|        if (s->hello_retry_request == SSL_HRR_PENDING) {
  ------------------
  |  Branch (649:13): [True: 0, False: 0]
  ------------------
  650|      0|            st->hand_state = TLS_ST_CW_CLNT_HELLO;
  651|      0|        } else if (s->early_data_state == SSL_EARLY_DATA_CONNECTING) {
  ------------------
  |  Branch (651:20): [True: 0, False: 0]
  ------------------
  652|      0|            st->hand_state = TLS_ST_EARLY_DATA;
  653|      0|        } else {
  654|       |#if defined(OPENSSL_NO_NEXTPROTONEG)
  655|       |            st->hand_state = TLS_ST_CW_FINISHED;
  656|       |#else
  657|      0|            if (!SSL_CONNECTION_IS_DTLS(s) && s->s3.npn_seen)
  ------------------
  |  |  266|      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)
  |  |  ------------------
  |  |  |  | 2196|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  ------------------
  |  Branch (657:17): [True: 0, False: 0]
  |  Branch (657:47): [True: 0, False: 0]
  ------------------
  658|      0|                st->hand_state = TLS_ST_CW_NEXT_PROTO;
  659|      0|            else
  660|      0|                st->hand_state = TLS_ST_CW_FINISHED;
  661|      0|#endif
  662|      0|        }
  663|      0|        return WRITE_TRAN_CONTINUE;
  664|       |
  665|      0|#if !defined(OPENSSL_NO_NEXTPROTONEG)
  666|      0|    case TLS_ST_CW_NEXT_PROTO:
  ------------------
  |  Branch (666:5): [True: 0, False: 684]
  ------------------
  667|      0|        st->hand_state = TLS_ST_CW_FINISHED;
  668|      0|        return WRITE_TRAN_CONTINUE;
  669|      0|#endif
  670|       |
  671|      0|    case TLS_ST_CW_FINISHED:
  ------------------
  |  Branch (671:5): [True: 0, False: 684]
  ------------------
  672|      0|        if (s->hit) {
  ------------------
  |  Branch (672:13): [True: 0, False: 0]
  ------------------
  673|      0|            st->hand_state = TLS_ST_OK;
  674|      0|            return WRITE_TRAN_CONTINUE;
  675|      0|        } else {
  676|      0|            return WRITE_TRAN_FINISHED;
  677|      0|        }
  678|       |
  679|      0|    case TLS_ST_CR_FINISHED:
  ------------------
  |  Branch (679:5): [True: 0, False: 684]
  ------------------
  680|      0|        if (s->hit) {
  ------------------
  |  Branch (680:13): [True: 0, False: 0]
  ------------------
  681|      0|            st->hand_state = TLS_ST_CW_CHANGE;
  682|      0|            return WRITE_TRAN_CONTINUE;
  683|      0|        } else {
  684|      0|            st->hand_state = TLS_ST_OK;
  685|      0|            return WRITE_TRAN_CONTINUE;
  686|      0|        }
  687|       |
  688|      0|    case TLS_ST_CR_HELLO_REQ:
  ------------------
  |  Branch (688:5): [True: 0, False: 684]
  ------------------
  689|       |        /*
  690|       |         * If we can renegotiate now then do so, otherwise wait for a more
  691|       |         * convenient time.
  692|       |         */
  693|      0|        if (ssl3_renegotiate_check(SSL_CONNECTION_GET_SSL(s), 1)) {
  ------------------
  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
  |  Branch (693:13): [True: 0, False: 0]
  ------------------
  694|      0|            if (!tls_setup_handshake(s)) {
  ------------------
  |  Branch (694:17): [True: 0, False: 0]
  ------------------
  695|       |                /* SSLfatal() already called */
  696|      0|                return WRITE_TRAN_ERROR;
  697|      0|            }
  698|      0|            st->hand_state = TLS_ST_CW_CLNT_HELLO;
  699|      0|            return WRITE_TRAN_CONTINUE;
  700|      0|        }
  701|      0|        st->hand_state = TLS_ST_OK;
  702|      0|        return WRITE_TRAN_CONTINUE;
  703|    684|    }
  704|    684|}
ossl_statem_client_pre_work:
  711|    342|{
  712|    342|    OSSL_STATEM *st = &s->statem;
  713|       |
  714|    342|    switch (st->hand_state) {
  715|      0|    default:
  ------------------
  |  Branch (715:5): [True: 0, False: 342]
  ------------------
  716|       |        /* No pre work to be done */
  717|      0|        break;
  718|       |
  719|    342|    case TLS_ST_CW_CLNT_HELLO:
  ------------------
  |  Branch (719:5): [True: 342, False: 0]
  ------------------
  720|    342|        s->shutdown = 0;
  721|    342|        if (SSL_CONNECTION_IS_DTLS(s)) {
  ------------------
  |  |  266|    342|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|    342|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 0, False: 342]
  |  |  ------------------
  ------------------
  722|       |            /* every DTLS ClientHello resets Finished MAC */
  723|      0|            if (!ssl3_init_finished_mac(s)) {
  ------------------
  |  Branch (723:17): [True: 0, False: 0]
  ------------------
  724|       |                /* SSLfatal() already called */
  725|      0|                return WORK_ERROR;
  726|      0|            }
  727|    342|        } else if (s->ext.early_data == SSL_EARLY_DATA_REJECTED) {
  ------------------
  |  | 2073|    342|#define SSL_EARLY_DATA_REJECTED 1
  ------------------
  |  Branch (727:20): [True: 0, False: 342]
  ------------------
  728|       |            /*
  729|       |             * This must be a second ClientHello after an HRR following an
  730|       |             * earlier rejected attempt to send early data. Since we were
  731|       |             * previously encrypting the early data we now need to reset the
  732|       |             * write record layer in order to write in plaintext again.
  733|       |             */
  734|      0|            if (!ssl_set_new_record_layer(s,
  ------------------
  |  Branch (734:17): [True: 0, False: 0]
  ------------------
  735|      0|                    TLS_ANY_VERSION,
  ------------------
  |  |   40|      0|#define TLS_ANY_VERSION 0x10000
  ------------------
  736|      0|                    OSSL_RECORD_DIRECTION_WRITE,
  ------------------
  |  |   43|      0|#define OSSL_RECORD_DIRECTION_WRITE 1
  ------------------
  737|      0|                    OSSL_RECORD_PROTECTION_LEVEL_NONE,
  ------------------
  |  | 2923|      0|#define OSSL_RECORD_PROTECTION_LEVEL_NONE 0
  ------------------
  738|      0|                    NULL, 0, NULL, 0, NULL, 0, NULL, 0,
  739|      0|                    NULL, 0, NID_undef, NULL, NULL,
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  740|      0|                    NULL)) {
  741|       |                /* SSLfatal already called */
  742|      0|                return WORK_ERROR;
  743|      0|            }
  744|      0|        }
  745|    342|        break;
  746|       |
  747|    342|    case TLS_ST_CW_CHANGE:
  ------------------
  |  Branch (747:5): [True: 0, False: 342]
  ------------------
  748|      0|        if (SSL_CONNECTION_IS_DTLS(s)) {
  ------------------
  |  |  266|      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)
  |  |  ------------------
  |  |  |  | 2196|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  749|      0|            if (s->hit) {
  ------------------
  |  Branch (749:17): [True: 0, False: 0]
  ------------------
  750|       |                /*
  751|       |                 * We're into the last flight so we don't retransmit these
  752|       |                 * messages unless we need to.
  753|       |                 */
  754|      0|                st->use_timer = 0;
  755|      0|            }
  756|       |#ifndef OPENSSL_NO_SCTP
  757|       |            if (BIO_dgram_is_sctp(SSL_get_wbio(SSL_CONNECTION_GET_SSL(s)))) {
  758|       |                /* Calls SSLfatal() as required */
  759|       |                return dtls_wait_for_dry(s);
  760|       |            }
  761|       |#endif
  762|      0|        }
  763|      0|        break;
  764|       |
  765|      0|    case TLS_ST_PENDING_EARLY_DATA_END:
  ------------------
  |  Branch (765:5): [True: 0, False: 342]
  ------------------
  766|       |        /*
  767|       |         * If we've been called by SSL_do_handshake()/SSL_write(), or we did not
  768|       |         * attempt to write early data before calling SSL_read() then we press
  769|       |         * on with the handshake. Otherwise we pause here.
  770|       |         */
  771|      0|        if (s->early_data_state == SSL_EARLY_DATA_FINISHED_WRITING
  ------------------
  |  Branch (771:13): [True: 0, False: 0]
  ------------------
  772|      0|            || s->early_data_state == SSL_EARLY_DATA_NONE)
  ------------------
  |  Branch (772:16): [True: 0, False: 0]
  ------------------
  773|      0|            return WORK_FINISHED_CONTINUE;
  774|       |        /* Fall through */
  775|       |
  776|      0|    case TLS_ST_EARLY_DATA:
  ------------------
  |  Branch (776:5): [True: 0, False: 342]
  ------------------
  777|      0|        return tls_finish_handshake(s, wst, 0, 1);
  778|       |
  779|      0|    case TLS_ST_OK:
  ------------------
  |  Branch (779:5): [True: 0, False: 342]
  ------------------
  780|       |        /* Calls SSLfatal() as required */
  781|      0|        return tls_finish_handshake(s, wst, 1, 1);
  782|    342|    }
  783|       |
  784|    342|    return WORK_FINISHED_CONTINUE;
  785|    342|}
ossl_statem_client_post_work:
  792|    342|{
  793|    342|    OSSL_STATEM *st = &s->statem;
  794|    342|    SSL *ssl = SSL_CONNECTION_GET_SSL(s);
  ------------------
  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
  795|       |
  796|    342|    s->init_num = 0;
  797|       |
  798|    342|    switch (st->hand_state) {
  799|      0|    default:
  ------------------
  |  Branch (799:5): [True: 0, False: 342]
  ------------------
  800|       |        /* No post work to be done */
  801|      0|        break;
  802|       |
  803|    342|    case TLS_ST_CW_CLNT_HELLO:
  ------------------
  |  Branch (803:5): [True: 342, False: 0]
  ------------------
  804|    342|        if (s->early_data_state == SSL_EARLY_DATA_CONNECTING
  ------------------
  |  Branch (804:13): [True: 0, False: 342]
  ------------------
  805|      0|            && s->max_early_data > 0) {
  ------------------
  |  Branch (805:16): [True: 0, False: 0]
  ------------------
  806|       |            /*
  807|       |             * We haven't selected TLSv1.3 yet so we don't call the change
  808|       |             * cipher state function associated with the SSL_METHOD. Instead
  809|       |             * we call tls13_change_cipher_state() directly.
  810|       |             */
  811|      0|            if ((s->options & SSL_OP_ENABLE_MIDDLEBOX_COMPAT) == 0) {
  ------------------
  |  |  404|      0|#define SSL_OP_ENABLE_MIDDLEBOX_COMPAT SSL_OP_BIT(20)
  |  |  ------------------
  |  |  |  |  351|      0|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (811:17): [True: 0, False: 0]
  ------------------
  812|      0|                if (!tls13_change_cipher_state(s,
  ------------------
  |  Branch (812:21): [True: 0, False: 0]
  ------------------
  813|      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
  |  |  ------------------
  ------------------
  814|       |                    /* SSLfatal() already called */
  815|      0|                    return WORK_ERROR;
  816|      0|                }
  817|      0|            }
  818|       |            /* else we're in compat mode so we delay flushing until after CCS */
  819|    342|        } else if (!statem_flush(s)) {
  ------------------
  |  Branch (819:20): [True: 0, False: 342]
  ------------------
  820|      0|            return WORK_MORE_A;
  821|      0|        }
  822|       |
  823|    342|        if (SSL_CONNECTION_IS_DTLS(s)) {
  ------------------
  |  |  266|    342|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|    342|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 0, False: 342]
  |  |  ------------------
  ------------------
  824|       |            /* Treat the next message as the first packet */
  825|      0|            s->first_packet = 1;
  826|      0|        }
  827|    342|        break;
  828|       |
  829|      0|    case TLS_ST_CW_KEY_EXCH:
  ------------------
  |  Branch (829:5): [True: 0, False: 342]
  ------------------
  830|      0|        if (tls_client_key_exchange_post_work(s) == 0) {
  ------------------
  |  Branch (830:13): [True: 0, False: 0]
  ------------------
  831|       |            /* SSLfatal() already called */
  832|      0|            return WORK_ERROR;
  833|      0|        }
  834|      0|        break;
  835|       |
  836|      0|    case TLS_ST_CW_CHANGE:
  ------------------
  |  Branch (836:5): [True: 0, False: 342]
  ------------------
  837|      0|        if (SSL_CONNECTION_IS_TLS13(s)
  ------------------
  |  |  273|      0|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  266|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2196|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (273:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  274|      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 (274:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  275|      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 (275:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  838|      0|            || s->hello_retry_request == SSL_HRR_PENDING)
  ------------------
  |  Branch (838:16): [True: 0, False: 0]
  ------------------
  839|      0|            break;
  840|      0|        if (s->early_data_state == SSL_EARLY_DATA_CONNECTING
  ------------------
  |  Branch (840:13): [True: 0, False: 0]
  ------------------
  841|      0|            && s->max_early_data > 0) {
  ------------------
  |  Branch (841:16): [True: 0, False: 0]
  ------------------
  842|       |            /*
  843|       |             * We haven't selected TLSv1.3 yet so we don't call the change
  844|       |             * cipher state function associated with the SSL_METHOD. Instead
  845|       |             * we call tls13_change_cipher_state() directly.
  846|       |             */
  847|      0|            if (!tls13_change_cipher_state(s,
  ------------------
  |  Branch (847:17): [True: 0, False: 0]
  ------------------
  848|      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
  |  |  ------------------
  ------------------
  849|      0|                return WORK_ERROR;
  850|      0|            break;
  851|      0|        }
  852|      0|        s->session->cipher = s->s3.tmp.new_cipher;
  853|       |#ifdef OPENSSL_NO_COMP
  854|       |        s->session->compress_meth = 0;
  855|       |#else
  856|      0|        if (s->s3.tmp.new_compression == NULL)
  ------------------
  |  Branch (856:13): [True: 0, False: 0]
  ------------------
  857|      0|            s->session->compress_meth = 0;
  858|      0|        else
  859|      0|            s->session->compress_meth = s->s3.tmp.new_compression->id;
  860|      0|#endif
  861|      0|        if (!ssl->method->ssl3_enc->setup_key_block(s)) {
  ------------------
  |  Branch (861:13): [True: 0, False: 0]
  ------------------
  862|       |            /* SSLfatal() already called */
  863|      0|            return WORK_ERROR;
  864|      0|        }
  865|       |
  866|      0|        if (!ssl->method->ssl3_enc->change_cipher_state(s,
  ------------------
  |  Branch (866:13): [True: 0, False: 0]
  ------------------
  867|      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
  |  |  ------------------
  ------------------
  868|       |            /* SSLfatal() already called */
  869|      0|            return WORK_ERROR;
  870|      0|        }
  871|       |
  872|       |#ifndef OPENSSL_NO_SCTP
  873|       |        if (SSL_CONNECTION_IS_DTLS(s) && s->hit) {
  874|       |            /*
  875|       |             * Change to new shared key of SCTP-Auth, will be ignored if
  876|       |             * no SCTP used.
  877|       |             */
  878|       |            BIO_ctrl(SSL_get_wbio(ssl), BIO_CTRL_DGRAM_SCTP_NEXT_AUTH_KEY,
  879|       |                0, NULL);
  880|       |        }
  881|       |#endif
  882|      0|        break;
  883|       |
  884|      0|    case TLS_ST_CW_FINISHED:
  ------------------
  |  Branch (884:5): [True: 0, False: 342]
  ------------------
  885|       |#ifndef OPENSSL_NO_SCTP
  886|       |        if (wst == WORK_MORE_A && SSL_CONNECTION_IS_DTLS(s) && s->hit == 0) {
  887|       |            /*
  888|       |             * Change to new shared key of SCTP-Auth, will be ignored if
  889|       |             * no SCTP used.
  890|       |             */
  891|       |            BIO_ctrl(SSL_get_wbio(ssl), BIO_CTRL_DGRAM_SCTP_NEXT_AUTH_KEY,
  892|       |                0, NULL);
  893|       |        }
  894|       |#endif
  895|      0|        if (statem_flush(s) != 1)
  ------------------
  |  Branch (895:13): [True: 0, False: 0]
  ------------------
  896|      0|            return WORK_MORE_B;
  897|       |
  898|      0|        if (SSL_CONNECTION_IS_TLS13(s)) {
  ------------------
  |  |  273|      0|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  266|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2196|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (273:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  274|      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 (274:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  275|      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 (275:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  899|      0|            if (!tls13_save_handshake_digest_for_pha(s)) {
  ------------------
  |  Branch (899:17): [True: 0, False: 0]
  ------------------
  900|       |                /* SSLfatal() already called */
  901|      0|                return WORK_ERROR;
  902|      0|            }
  903|      0|            if (s->post_handshake_auth != SSL_PHA_REQUESTED) {
  ------------------
  |  Branch (903:17): [True: 0, False: 0]
  ------------------
  904|      0|                if (!ssl->method->ssl3_enc->change_cipher_state(s,
  ------------------
  |  Branch (904:21): [True: 0, False: 0]
  ------------------
  905|      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
  |  |  ------------------
  ------------------
  906|       |                    /* SSLfatal() already called */
  907|      0|                    return WORK_ERROR;
  908|      0|                }
  909|       |                /*
  910|       |                 * For QUIC we deferred setting up these keys until now so
  911|       |                 * that we can ensure write keys are always set up before read
  912|       |                 * keys.
  913|       |                 */
  914|      0|                if (SSL_IS_QUIC_HANDSHAKE(s)
  ------------------
  |  |  311|      0|#define SSL_IS_QUIC_HANDSHAKE(s) (((s)->s3.flags & TLS1_FLAGS_QUIC) != 0)
  |  |  ------------------
  |  |  |  |   22|      0|#define TLS1_FLAGS_QUIC 0x2000
  |  |  ------------------
  |  |  |  Branch (311:34): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  915|      0|                    && !ssl->method->ssl3_enc->change_cipher_state(s,
  ------------------
  |  Branch (915:24): [True: 0, False: 0]
  ------------------
  916|      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
  |  |  ------------------
  ------------------
  917|       |                    /* SSLfatal() already called */
  918|      0|                    return WORK_ERROR;
  919|      0|                }
  920|      0|            }
  921|      0|        }
  922|      0|        break;
  923|       |
  924|      0|    case TLS_ST_CW_KEY_UPDATE:
  ------------------
  |  Branch (924:5): [True: 0, False: 342]
  ------------------
  925|      0|        if (statem_flush(s) != 1)
  ------------------
  |  Branch (925:13): [True: 0, False: 0]
  ------------------
  926|      0|            return WORK_MORE_A;
  927|      0|        if (!tls13_update_key(s, 1)) {
  ------------------
  |  Branch (927:13): [True: 0, False: 0]
  ------------------
  928|       |            /* SSLfatal() already called */
  929|      0|            return WORK_ERROR;
  930|      0|        }
  931|      0|        break;
  932|    342|    }
  933|       |
  934|    342|    return WORK_FINISHED_CONTINUE;
  935|    342|}
ossl_statem_client_construct_message:
  947|    342|{
  948|    342|    OSSL_STATEM *st = &s->statem;
  949|       |
  950|    342|    switch (st->hand_state) {
  951|      0|    default:
  ------------------
  |  Branch (951:5): [True: 0, False: 342]
  ------------------
  952|       |        /* Shouldn't happen */
  953|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_R_BAD_HANDSHAKE_STATE);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  954|      0|        return 0;
  955|       |
  956|      0|    case TLS_ST_CW_CHANGE:
  ------------------
  |  Branch (956:5): [True: 0, False: 342]
  ------------------
  957|      0|        if (SSL_CONNECTION_IS_DTLS(s))
  ------------------
  |  |  266|      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)
  |  |  ------------------
  |  |  |  | 2196|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  958|      0|            *confunc = dtls_construct_change_cipher_spec;
  959|      0|        else
  960|      0|            *confunc = tls_construct_change_cipher_spec;
  961|      0|        *mt = SSL3_MT_CHANGE_CIPHER_SPEC;
  ------------------
  |  |  337|      0|#define SSL3_MT_CHANGE_CIPHER_SPEC 0x0101
  ------------------
  962|      0|        break;
  963|       |
  964|    342|    case TLS_ST_CW_CLNT_HELLO:
  ------------------
  |  Branch (964:5): [True: 342, False: 0]
  ------------------
  965|    342|        *confunc = tls_construct_client_hello;
  966|    342|        *mt = SSL3_MT_CLIENT_HELLO;
  ------------------
  |  |  313|    342|#define SSL3_MT_CLIENT_HELLO 1
  ------------------
  967|    342|        break;
  968|       |
  969|      0|    case TLS_ST_CW_END_OF_EARLY_DATA:
  ------------------
  |  Branch (969:5): [True: 0, False: 342]
  ------------------
  970|      0|        *confunc = tls_construct_end_of_early_data;
  971|      0|        *mt = SSL3_MT_END_OF_EARLY_DATA;
  ------------------
  |  |  316|      0|#define SSL3_MT_END_OF_EARLY_DATA 5
  ------------------
  972|      0|        break;
  973|       |
  974|      0|    case TLS_ST_PENDING_EARLY_DATA_END:
  ------------------
  |  Branch (974:5): [True: 0, False: 342]
  ------------------
  975|      0|        *confunc = NULL;
  976|      0|        *mt = SSL3_MT_DUMMY;
  ------------------
  |  |   41|      0|#define SSL3_MT_DUMMY -1
  ------------------
  977|      0|        break;
  978|       |
  979|      0|    case TLS_ST_CW_CERT:
  ------------------
  |  Branch (979:5): [True: 0, False: 342]
  ------------------
  980|      0|        *confunc = tls_construct_client_certificate;
  981|      0|        *mt = SSL3_MT_CERTIFICATE;
  ------------------
  |  |  318|      0|#define SSL3_MT_CERTIFICATE 11
  ------------------
  982|      0|        break;
  983|       |
  984|       |#ifndef OPENSSL_NO_COMP_ALG
  985|       |    case TLS_ST_CW_COMP_CERT:
  986|       |        *confunc = tls_construct_client_compressed_certificate;
  987|       |        *mt = SSL3_MT_COMPRESSED_CERTIFICATE;
  988|       |        break;
  989|       |#endif
  990|       |
  991|      0|    case TLS_ST_CW_KEY_EXCH:
  ------------------
  |  Branch (991:5): [True: 0, False: 342]
  ------------------
  992|      0|        *confunc = tls_construct_client_key_exchange;
  993|      0|        *mt = SSL3_MT_CLIENT_KEY_EXCHANGE;
  ------------------
  |  |  323|      0|#define SSL3_MT_CLIENT_KEY_EXCHANGE 16
  ------------------
  994|      0|        break;
  995|       |
  996|      0|    case TLS_ST_CW_CERT_VRFY:
  ------------------
  |  Branch (996:5): [True: 0, False: 342]
  ------------------
  997|      0|        *confunc = tls_construct_cert_verify;
  998|      0|        *mt = SSL3_MT_CERTIFICATE_VERIFY;
  ------------------
  |  |  322|      0|#define SSL3_MT_CERTIFICATE_VERIFY 15
  ------------------
  999|      0|        break;
 1000|       |
 1001|      0|#if !defined(OPENSSL_NO_NEXTPROTONEG)
 1002|      0|    case TLS_ST_CW_NEXT_PROTO:
  ------------------
  |  Branch (1002:5): [True: 0, False: 342]
  ------------------
 1003|      0|        *confunc = tls_construct_next_proto;
 1004|      0|        *mt = SSL3_MT_NEXT_PROTO;
  ------------------
  |  |  331|      0|#define SSL3_MT_NEXT_PROTO 67
  ------------------
 1005|      0|        break;
 1006|      0|#endif
 1007|      0|    case TLS_ST_CW_FINISHED:
  ------------------
  |  Branch (1007:5): [True: 0, False: 342]
  ------------------
 1008|      0|        *confunc = tls_construct_finished;
 1009|      0|        *mt = SSL3_MT_FINISHED;
  ------------------
  |  |  324|      0|#define SSL3_MT_FINISHED 20
  ------------------
 1010|      0|        break;
 1011|       |
 1012|      0|    case TLS_ST_CW_KEY_UPDATE:
  ------------------
  |  Branch (1012:5): [True: 0, False: 342]
  ------------------
 1013|      0|        *confunc = tls_construct_key_update;
 1014|      0|        *mt = SSL3_MT_KEY_UPDATE;
  ------------------
  |  |  328|      0|#define SSL3_MT_KEY_UPDATE 24
  ------------------
 1015|      0|        break;
 1016|    342|    }
 1017|       |
 1018|    342|    return 1;
 1019|    342|}
tls_construct_client_hello:
 1214|    342|{
 1215|    342|    WPACKET inner; /* "fake" pkt for inner */
 1216|    342|    BUF_MEM *inner_mem = NULL;
 1217|    342|    PACKET rpkt; /* we'll decode back the inner ch to help make the outer */
 1218|    342|    SSL_SESSION *sess = NULL;
 1219|    342|    SSL_CTX *sctx = SSL_CONNECTION_GET_CTX(s);
  ------------------
  |  |   26|    342|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 1220|    342|    size_t sess_id_len = 0, innerlen = 0;
 1221|    342|    int mt = SSL3_MT_CLIENT_HELLO, rv = 0;
  ------------------
  |  |  313|    342|#define SSL3_MT_CLIENT_HELLO 1
  ------------------
 1222|    342|    OSSL_HPKE_SUITE suite;
 1223|    342|    OSSL_ECHSTORE_ENTRY *ee = NULL;
 1224|       |    /* Work out what SSL/TLS/DTLS version to use */
 1225|    342|    int protverr = ssl_set_client_hello_version(s);
 1226|       |
 1227|    342|    if (protverr != 0) {
  ------------------
  |  Branch (1227:9): [True: 0, False: 342]
  ------------------
 1228|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, protverr);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1229|      0|        return 0;
 1230|      0|    }
 1231|       |    /* If we're not really attempting ECH, just call existing code.  */
 1232|    342|    if (s->ext.ech.es == NULL)
  ------------------
  |  Branch (1232:9): [True: 342, False: 0]
  ------------------
 1233|    342|        return tls_construct_client_hello_aux(s, pkt);
 1234|       |    /* note version we're attempting and that an attempt is being made */
 1235|      0|    if (s->ext.ech.es->entries != NULL) {
  ------------------
  |  Branch (1235:9): [True: 0, False: 0]
  ------------------
 1236|      0|        if (ossl_ech_pick_matching_cfg(s, &ee, &suite) != 1 || ee == NULL) {
  ------------------
  |  Branch (1236:13): [True: 0, False: 0]
  |  Branch (1236:64): [True: 0, False: 0]
  ------------------
 1237|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_UNSUPPORTED);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1238|      0|            return 0;
 1239|      0|        }
 1240|      0|        if (ee->version != OSSL_ECH_RFC9849_VERSION) {
  ------------------
  |  |   45|      0|#define OSSL_ECH_RFC9849_VERSION 0xfe0d /* official ECHConfig version */
  ------------------
  |  Branch (1240:13): [True: 0, False: 0]
  ------------------
 1241|       |            /* we only support that version for now */
 1242|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_UNSUPPORTED);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1243|      0|            return 0;
 1244|      0|        }
 1245|      0|        s->ext.ech.attempted_type = TLSEXT_TYPE_ech;
  ------------------
  |  |  174|      0|#define TLSEXT_TYPE_ech 0xfe0d
  ------------------
 1246|      0|        s->ext.ech.attempted_cid = ee->config_id;
 1247|      0|        s->ext.ech.attempted = 1;
 1248|      0|        if (s->ext.ech.outer_hostname == NULL && ee->public_name != NULL) {
  ------------------
  |  Branch (1248:13): [True: 0, False: 0]
  |  Branch (1248:50): [True: 0, False: 0]
  ------------------
 1249|      0|            s->ext.ech.outer_hostname = OPENSSL_strdup((char *)ee->public_name);
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1250|      0|            if (s->ext.ech.outer_hostname == NULL) {
  ------------------
  |  Branch (1250:17): [True: 0, False: 0]
  ------------------
 1251|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1252|      0|                return 0;
 1253|      0|            }
 1254|      0|        }
 1255|      0|    }
 1256|       |    /* If doing real ECH and application requested GREASE too, over-ride that */
 1257|      0|    if (s->ext.ech.grease == OSSL_ECH_IS_GREASE && s->ext.ech.attempted == 1)
  ------------------
  |  |   37|      0|#define OSSL_ECH_IS_GREASE 1 /* when decryption failed or GREASE wanted */
  ------------------
  |  Branch (1257:9): [True: 0, False: 0]
  |  Branch (1257:52): [True: 0, False: 0]
  ------------------
 1258|      0|        s->ext.ech.grease = OSSL_ECH_NOT_GREASE;
  ------------------
  |  |   36|      0|#define OSSL_ECH_NOT_GREASE 0 /* when decryption worked */
  ------------------
 1259|       |    /*
 1260|       |     * Session ID is handled "oddly" by not being encoded into inner CH (an
 1261|       |     * optimisation) so is the same for both inner and outer.
 1262|       |     */
 1263|      0|    sess = s->session;
 1264|      0|    if (sess == NULL
  ------------------
  |  Branch (1264:9): [True: 0, False: 0]
  ------------------
 1265|      0|        || !ssl_version_supported(s, sess->ssl_version, NULL)
  ------------------
  |  Branch (1265:12): [True: 0, False: 0]
  ------------------
 1266|      0|        || !SSL_SESSION_is_resumable(sess)) {
  ------------------
  |  Branch (1266:12): [True: 0, False: 0]
  ------------------
 1267|      0|        if (s->hello_retry_request == SSL_HRR_NONE
  ------------------
  |  Branch (1267:13): [True: 0, False: 0]
  ------------------
 1268|      0|            && !ssl_get_new_session(s, 0))
  ------------------
  |  Branch (1268:16): [True: 0, False: 0]
  ------------------
 1269|      0|            return 0; /* SSLfatal() already called */
 1270|      0|    }
 1271|      0|    if (s->new_session || s->session->ssl_version == TLS1_3_VERSION) {
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1271:9): [True: 0, False: 0]
  |  Branch (1271:27): [True: 0, False: 0]
  ------------------
 1272|      0|        if (s->version == TLS1_3_VERSION
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1272:13): [True: 0, False: 0]
  ------------------
 1273|      0|            && (s->options & SSL_OP_ENABLE_MIDDLEBOX_COMPAT) != 0) {
  ------------------
  |  |  404|      0|#define SSL_OP_ENABLE_MIDDLEBOX_COMPAT SSL_OP_BIT(20)
  |  |  ------------------
  |  |  |  |  351|      0|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (1273:16): [True: 0, False: 0]
  ------------------
 1274|      0|            sess_id_len = sizeof(s->tmp_session_id);
 1275|      0|            s->tmp_session_id_len = sess_id_len;
 1276|      0|            if (s->hello_retry_request == SSL_HRR_NONE
  ------------------
  |  Branch (1276:17): [True: 0, False: 0]
  ------------------
 1277|      0|                && RAND_bytes_ex(sctx->libctx, s->tmp_session_id,
  ------------------
  |  Branch (1277:20): [True: 0, False: 0]
  ------------------
 1278|      0|                       sess_id_len, 0)
 1279|      0|                    <= 0) {
 1280|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1281|      0|                return 0;
 1282|      0|            }
 1283|      0|            memcpy(s->session->session_id, s->tmp_session_id, sess_id_len);
 1284|      0|            s->session->session_id_length = sess_id_len;
 1285|      0|        } else {
 1286|      0|            sess_id_len = 0;
 1287|      0|        }
 1288|      0|    } else {
 1289|      0|        assert(s->session->session_id_length <= sizeof(s->session->session_id));
  ------------------
  |  Branch (1289:9): [True: 0, False: 0]
  |  Branch (1289:9): [True: 0, False: 0]
  ------------------
 1290|      0|        sess_id_len = s->session->session_id_length;
 1291|      0|        if (s->version == TLS1_3_VERSION) {
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1291:13): [True: 0, False: 0]
  ------------------
 1292|      0|            s->tmp_session_id_len = sess_id_len;
 1293|      0|            memcpy(s->tmp_session_id, s->session->session_id, sess_id_len);
 1294|      0|        }
 1295|      0|    }
 1296|      0|    if (s->hello_retry_request != SSL_HRR_NONE)
  ------------------
  |  Branch (1296:9): [True: 0, False: 0]
  ------------------
 1297|      0|        s->ext.ech.n_outer_only = 0; /* reset count of "compressed" exts */
 1298|       |    /*
 1299|       |     * Set CH depth flag so that other code (e.g. extension handlers)
 1300|       |     * know where we're at: 1 is "inner CH", 0 is "outer CH"
 1301|       |     */
 1302|      0|    s->ext.ech.ch_depth = 1;
 1303|      0|    if ((inner_mem = BUF_MEM_new()) == NULL
  ------------------
  |  Branch (1303:9): [True: 0, False: 0]
  ------------------
 1304|      0|        || !WPACKET_init(&inner, inner_mem)
  ------------------
  |  Branch (1304:12): [True: 0, False: 0]
  ------------------
 1305|      0|        || !ssl_set_handshake_header(s, &inner, mt)
  ------------------
  |  | 2184|      0|    SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->set_handshake_header((s), (pkt), (htype))
  |  |  ------------------
  |  |  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  ------------------
  |  Branch (1305:12): [True: 0, False: 0]
  ------------------
 1306|      0|        || tls_construct_client_hello_aux(s, &inner) != 1
  ------------------
  |  Branch (1306:12): [True: 0, False: 0]
  ------------------
 1307|      0|        || !WPACKET_close(&inner)
  ------------------
  |  Branch (1307:12): [True: 0, False: 0]
  ------------------
 1308|      0|        || !WPACKET_get_length(&inner, &innerlen)) {
  ------------------
  |  Branch (1308:12): [True: 0, False: 0]
  ------------------
 1309|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1310|      0|        goto err;
 1311|      0|    }
 1312|      0|    OPENSSL_free(s->ext.ech.innerch);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1313|      0|    s->ext.ech.innerch = (unsigned char *)inner_mem->data;
 1314|      0|    inner_mem->data = NULL;
 1315|      0|    s->ext.ech.innerch_len = innerlen;
 1316|       |    /* add inner to transcript */
 1317|      0|    if (ossl_ech_intbuf_add(s, s->ext.ech.innerch, innerlen, 0) != 1) {
  ------------------
  |  Branch (1317:9): [True: 0, False: 0]
  ------------------
 1318|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1319|      0|        goto err;
 1320|      0|    }
 1321|      0|    WPACKET_cleanup(&inner);
 1322|      0|    BUF_MEM_free(inner_mem);
 1323|      0|    inner_mem = NULL;
 1324|      0|#ifdef OSSL_ECH_SUPERVERBOSE
 1325|      0|    ossl_ech_pbuf("inner CH", s->ext.ech.innerch, s->ext.ech.innerch_len);
 1326|      0|    ossl_ech_pbuf("inner, client_random", s->ext.ech.client_random,
 1327|      0|        SSL3_RANDOM_SIZE);
  ------------------
  |  |  137|      0|#define SSL3_RANDOM_SIZE 32
  ------------------
 1328|      0|    ossl_ech_pbuf("inner, session_id", s->session->session_id,
 1329|      0|        s->session->session_id_length);
 1330|      0|#endif
 1331|       |    /* Decode inner so that we can make up encoded inner */
 1332|      0|    if (!PACKET_buf_init(&rpkt, (unsigned char *)s->ext.ech.innerch + 4,
  ------------------
  |  Branch (1332:9): [True: 0, False: 0]
  ------------------
 1333|      0|            s->ext.ech.innerch_len - 4)) {
 1334|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1335|      0|        goto err;
 1336|      0|    }
 1337|       |    /*
 1338|       |     * Parse the full inner CH (usually done on server). This gets us
 1339|       |     * individually encoded extensions so we can choose to compress
 1340|       |     * and/or to re-use the same value in outer.
 1341|       |     */
 1342|      0|    if (!tls_process_client_hello(s, &rpkt)) {
  ------------------
  |  Branch (1342:9): [True: 0, False: 0]
  ------------------
 1343|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1344|      0|        goto err;
 1345|      0|    }
 1346|       |
 1347|      0|    s->ext.ech.ch_depth = 0; /* set depth for outer CH */
 1348|       |    /*
 1349|       |     * If we want different key shares for inner and outer, then
 1350|       |     * zap the one for the inner. The inner key_share is stashed
 1351|       |     * in s.ext.ech.tmp_pkey already.
 1352|       |     */
 1353|      0|    if (ossl_ech_same_key_share() == 0) {
  ------------------
  |  Branch (1353:9): [True: 0, False: 0]
  ------------------
 1354|      0|        EVP_PKEY_free(s->s3.tmp.pkey);
 1355|      0|        s->s3.tmp.pkey = NULL;
 1356|      0|    }
 1357|       |    /* Make second call into CH construction for outer CH. */
 1358|      0|    rv = tls_construct_client_hello_aux(s, pkt);
 1359|      0|    if (rv != 1) {
  ------------------
  |  Branch (1359:9): [True: 0, False: 0]
  ------------------
 1360|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1361|      0|        goto err;
 1362|      0|    }
 1363|      0|#ifdef OSSL_ECH_SUPERVERBOSE
 1364|      0|    ossl_ech_pbuf("outer, client_random", s->s3.client_random,
 1365|      0|        SSL3_RANDOM_SIZE);
  ------------------
  |  |  137|      0|#define SSL3_RANDOM_SIZE 32
  ------------------
 1366|      0|    ossl_ech_pbuf("outer, session_id", s->session->session_id,
 1367|      0|        s->session->session_id_length);
 1368|      0|#endif
 1369|       |    /* Finally, calculate AAD and encrypt using HPKE */
 1370|      0|    if (ossl_ech_aad_and_encrypt(s, pkt) != 1) {
  ------------------
  |  Branch (1370:9): [True: 0, False: 0]
  ------------------
 1371|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1372|      0|        goto err;
 1373|      0|    }
 1374|       |    /* Free up raw exts as needed (happens like this on real server) */
 1375|      0|    if (s->clienthello != NULL
  ------------------
  |  Branch (1375:9): [True: 0, False: 0]
  ------------------
 1376|      0|        && s->clienthello->pre_proc_exts != NULL) {
  ------------------
  |  Branch (1376:12): [True: 0, False: 0]
  ------------------
 1377|      0|        OPENSSL_free(s->clienthello->pre_proc_exts);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1378|      0|        OPENSSL_free(s->clienthello);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1379|      0|        s->clienthello = NULL;
 1380|      0|    }
 1381|      0|    return 1;
 1382|      0|err:
 1383|      0|    if (inner_mem != NULL) {
  ------------------
  |  Branch (1383:9): [True: 0, False: 0]
  ------------------
 1384|      0|        WPACKET_cleanup(&inner);
 1385|      0|        BUF_MEM_free(inner_mem);
 1386|      0|    }
 1387|      0|    if (s->clienthello != NULL) {
  ------------------
  |  Branch (1387:9): [True: 0, False: 0]
  ------------------
 1388|      0|        OPENSSL_free(s->clienthello->pre_proc_exts);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1389|      0|        OPENSSL_free(s->clienthello);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1390|       |        s->clienthello = NULL;
 1391|      0|    }
 1392|      0|    return 0;
 1393|      0|}
statem_clnt.c:tls_construct_client_hello_aux:
 1399|    342|{
 1400|    342|    unsigned char *p;
 1401|    342|    size_t sess_id_len;
 1402|    342|    int i, protverr;
 1403|    342|#ifndef OPENSSL_NO_COMP
 1404|    342|    SSL_COMP *comp;
 1405|    342|#endif
 1406|    342|    SSL_SESSION *sess = s->session;
 1407|    342|    unsigned char *session_id;
 1408|    342|    SSL_CTX *sctx = SSL_CONNECTION_GET_CTX(s);
  ------------------
  |  |   26|    342|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 1409|       |
 1410|       |    /* Work out what SSL/TLS/DTLS version to use */
 1411|    342|    protverr = ssl_set_client_hello_version(s);
 1412|    342|    if (protverr != 0) {
  ------------------
  |  Branch (1412:9): [True: 0, False: 342]
  ------------------
 1413|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, protverr);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1414|      0|        return CON_FUNC_ERROR;
 1415|      0|    }
 1416|       |
 1417|    342|#ifndef OPENSSL_NO_ECH
 1418|       |    /* if we're doing ECH, re-use session ID setup earlier */
 1419|    342|    if (s->ext.ech.es == NULL)
  ------------------
  |  Branch (1419:9): [True: 342, False: 0]
  ------------------
 1420|    342|#endif
 1421|    342|        if (sess == NULL
  ------------------
  |  Branch (1421:13): [True: 342, False: 0]
  ------------------
 1422|      0|            || !ssl_version_supported(s, sess->ssl_version, NULL)
  ------------------
  |  Branch (1422:16): [True: 0, False: 0]
  ------------------
 1423|    342|            || !SSL_SESSION_is_resumable(sess)) {
  ------------------
  |  Branch (1423:16): [True: 0, False: 0]
  ------------------
 1424|    342|            if (s->hello_retry_request == SSL_HRR_NONE
  ------------------
  |  Branch (1424:17): [True: 342, False: 0]
  ------------------
 1425|    342|                && !ssl_get_new_session(s, 0)) {
  ------------------
  |  Branch (1425:20): [True: 0, False: 342]
  ------------------
 1426|       |                /* SSLfatal() already called */
 1427|      0|                return CON_FUNC_ERROR;
 1428|      0|            }
 1429|    342|        }
 1430|       |    /* else use the pre-loaded session */
 1431|       |
 1432|    342|#ifndef OPENSSL_NO_ECH
 1433|       |    /* use different client_random fields for inner and outer */
 1434|    342|    if (s->ext.ech.es != NULL && s->ext.ech.ch_depth == 1)
  ------------------
  |  Branch (1434:9): [True: 0, False: 342]
  |  Branch (1434:34): [True: 0, False: 0]
  ------------------
 1435|      0|        p = s->ext.ech.client_random;
 1436|    342|    else
 1437|    342|#endif
 1438|    342|        p = s->s3.client_random;
 1439|       |
 1440|       |    /*
 1441|       |     * for DTLS if client_random is initialized, reuse it, we are
 1442|       |     * required to use same upon reply to HelloVerify
 1443|       |     */
 1444|    342|    if (SSL_CONNECTION_IS_DTLS(s)) {
  ------------------
  |  |  266|    342|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|    342|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 0, False: 342]
  |  |  ------------------
  ------------------
 1445|      0|        size_t idx;
 1446|      0|        i = 1;
 1447|      0|        for (idx = 0; idx < sizeof(s->s3.client_random); idx++) {
  ------------------
  |  Branch (1447:23): [True: 0, False: 0]
  ------------------
 1448|      0|            if (p[idx]) {
  ------------------
  |  Branch (1448:17): [True: 0, False: 0]
  ------------------
 1449|      0|                i = 0;
 1450|      0|                break;
 1451|      0|            }
 1452|      0|        }
 1453|    342|    } else {
 1454|    342|        i = (s->hello_retry_request == SSL_HRR_NONE);
 1455|    342|    }
 1456|       |
 1457|    342|    if (i && ssl_fill_hello_random(s, 0, p, sizeof(s->s3.client_random), DOWNGRADE_NONE) <= 0) {
  ------------------
  |  Branch (1457:9): [True: 342, False: 0]
  |  Branch (1457:14): [True: 0, False: 342]
  ------------------
 1458|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1459|      0|        return CON_FUNC_ERROR;
 1460|      0|    }
 1461|       |
 1462|       |    /*-
 1463|       |     * version indicates the negotiated version: for example from
 1464|       |     * an SSLv2/v3 compatible client hello). The client_version
 1465|       |     * field is the maximum version we permit and it is also
 1466|       |     * used in RSA encrypted premaster secrets. Some servers can
 1467|       |     * choke if we initially report a higher version then
 1468|       |     * renegotiate to a lower one in the premaster secret. This
 1469|       |     * didn't happen with TLS 1.0 as most servers supported it
 1470|       |     * but it can with TLS 1.1 or later if the server only supports
 1471|       |     * 1.0.
 1472|       |     *
 1473|       |     * Possible scenario with previous logic:
 1474|       |     *      1. Client hello indicates TLS 1.2
 1475|       |     *      2. Server hello says TLS 1.0
 1476|       |     *      3. RSA encrypted premaster secret uses 1.2.
 1477|       |     *      4. Handshake proceeds using TLS 1.0.
 1478|       |     *      5. Server sends hello request to renegotiate.
 1479|       |     *      6. Client hello indicates TLS v1.0 as we now
 1480|       |     *         know that is maximum server supports.
 1481|       |     *      7. Server chokes on RSA encrypted premaster secret
 1482|       |     *         containing version 1.0.
 1483|       |     *
 1484|       |     * For interoperability it should be OK to always use the
 1485|       |     * maximum version we support in client hello and then rely
 1486|       |     * on the checking of version to ensure the servers isn't
 1487|       |     * being inconsistent: for example initially negotiating with
 1488|       |     * TLS 1.0 and renegotiating with TLS 1.2. We do this by using
 1489|       |     * client_version in client hello and not resetting it to
 1490|       |     * the negotiated version.
 1491|       |     *
 1492|       |     * For TLS 1.3 we always set the ClientHello version to 1.2 and rely on the
 1493|       |     * supported_versions extension for the real supported versions.
 1494|       |     */
 1495|    342|    if (!WPACKET_put_bytes_u16(pkt, s->client_version)
  ------------------
  |  |  911|    684|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (1495:9): [True: 0, False: 342]
  ------------------
 1496|    342|        || !WPACKET_memcpy(pkt, p, SSL3_RANDOM_SIZE)) {
  ------------------
  |  |  137|    342|#define SSL3_RANDOM_SIZE 32
  ------------------
  |  Branch (1496:12): [True: 0, False: 342]
  ------------------
 1497|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1498|      0|        return CON_FUNC_ERROR;
 1499|      0|    }
 1500|       |
 1501|       |    /* Session ID */
 1502|    342|    session_id = s->session->session_id;
 1503|    342|#ifndef OPENSSL_NO_ECH
 1504|       |    /* same session ID is used for inner/outer when doing ECH */
 1505|    342|    if (s->ext.ech.es != NULL) {
  ------------------
  |  Branch (1505:9): [True: 0, False: 342]
  ------------------
 1506|      0|        if (s->version != TLS1_3_VERSION) {
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1506:13): [True: 0, False: 0]
  ------------------
 1507|      0|            SSLfatal(s, SSL_AD_PROTOCOL_VERSION, SSL_R_UNSUPPORTED_SSL_VERSION);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1508|      0|            return CON_FUNC_ERROR;
 1509|      0|        }
 1510|      0|        if ((s->options & SSL_OP_ENABLE_MIDDLEBOX_COMPAT) != 0)
  ------------------
  |  |  404|      0|#define SSL_OP_ENABLE_MIDDLEBOX_COMPAT SSL_OP_BIT(20)
  |  |  ------------------
  |  |  |  |  351|      0|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (1510:13): [True: 0, False: 0]
  ------------------
 1511|      0|            sess_id_len = sizeof(s->tmp_session_id);
 1512|      0|        else
 1513|      0|            sess_id_len = 0;
 1514|    342|    } else {
 1515|    342|#endif
 1516|    342|        if (s->new_session || s->session->ssl_version == TLS1_3_VERSION) {
  ------------------
  |  |   27|    342|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1516:13): [True: 0, False: 342]
  |  Branch (1516:31): [True: 342, False: 0]
  ------------------
 1517|    342|            if (s->version == TLS1_3_VERSION
  ------------------
  |  |   27|    684|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1517:17): [True: 342, False: 0]
  ------------------
 1518|    342|                && (s->options & SSL_OP_ENABLE_MIDDLEBOX_COMPAT) != 0) {
  ------------------
  |  |  404|    342|#define SSL_OP_ENABLE_MIDDLEBOX_COMPAT SSL_OP_BIT(20)
  |  |  ------------------
  |  |  |  |  351|    342|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (1518:20): [True: 342, False: 0]
  ------------------
 1519|    342|                sess_id_len = sizeof(s->tmp_session_id);
 1520|    342|                s->tmp_session_id_len = sess_id_len;
 1521|    342|                session_id = s->tmp_session_id;
 1522|    342|                if (s->hello_retry_request == SSL_HRR_NONE
  ------------------
  |  Branch (1522:21): [True: 342, False: 0]
  ------------------
 1523|    342|                    && RAND_bytes_ex(sctx->libctx, s->tmp_session_id,
  ------------------
  |  Branch (1523:24): [True: 0, False: 342]
  ------------------
 1524|    342|                           sess_id_len, 0)
 1525|    342|                        <= 0) {
 1526|      0|                    SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1527|      0|                    return CON_FUNC_ERROR;
 1528|      0|                }
 1529|    342|            } else {
 1530|      0|                sess_id_len = 0;
 1531|      0|            }
 1532|    342|        } else {
 1533|      0|            assert(s->session->session_id_length <= sizeof(s->session->session_id));
  ------------------
  |  Branch (1533:13): [True: 0, False: 0]
  |  Branch (1533:13): [True: 0, False: 0]
  ------------------
 1534|      0|            sess_id_len = s->session->session_id_length;
 1535|      0|            if (s->version == TLS1_3_VERSION) {
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1535:17): [True: 0, False: 0]
  ------------------
 1536|      0|                s->tmp_session_id_len = sess_id_len;
 1537|      0|                memcpy(s->tmp_session_id, s->session->session_id, sess_id_len);
 1538|      0|            }
 1539|      0|        }
 1540|    342|#ifndef OPENSSL_NO_ECH
 1541|    342|    }
 1542|    342|#endif
 1543|       |
 1544|    342|    if (!WPACKET_start_sub_packet_u8(pkt)
  ------------------
  |  |  810|    684|    WPACKET_start_sub_packet_len__((pkt), 1)
  ------------------
  |  Branch (1544:9): [True: 0, False: 342]
  ------------------
 1545|    342|        || (sess_id_len != 0 && !WPACKET_memcpy(pkt, session_id, sess_id_len))
  ------------------
  |  Branch (1545:13): [True: 342, False: 0]
  |  Branch (1545:33): [True: 0, False: 342]
  ------------------
 1546|    342|        || !WPACKET_close(pkt)) {
  ------------------
  |  Branch (1546:12): [True: 0, False: 342]
  ------------------
 1547|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1548|      0|        return CON_FUNC_ERROR;
 1549|      0|    }
 1550|       |
 1551|       |    /* cookie stuff for DTLS */
 1552|    342|    if (SSL_CONNECTION_IS_DTLS(s)) {
  ------------------
  |  |  266|    342|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|    342|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 0, False: 342]
  |  |  ------------------
  ------------------
 1553|      0|        if (s->d1->cookie_len > sizeof(s->d1->cookie)
  ------------------
  |  Branch (1553:13): [True: 0, False: 0]
  ------------------
 1554|      0|            || !WPACKET_sub_memcpy_u8(pkt, s->d1->cookie,
  ------------------
  |  |  938|      0|    WPACKET_sub_memcpy__((pkt), (src), (len), 1)
  ------------------
  |  Branch (1554:16): [True: 0, False: 0]
  ------------------
 1555|      0|                s->d1->cookie_len)) {
 1556|      0|            SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1557|      0|            return CON_FUNC_ERROR;
 1558|      0|        }
 1559|      0|    }
 1560|       |
 1561|       |    /* Ciphers supported */
 1562|    342|    if (!WPACKET_start_sub_packet_u16(pkt)) {
  ------------------
  |  |  812|    342|    WPACKET_start_sub_packet_len__((pkt), 2)
  ------------------
  |  Branch (1562:9): [True: 0, False: 342]
  ------------------
 1563|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1564|      0|        return CON_FUNC_ERROR;
 1565|      0|    }
 1566|       |
 1567|    342|    if (!ssl_cipher_list_to_bytes(s, SSL_get_ciphers(SSL_CONNECTION_GET_SSL(s)),
  ------------------
  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
  |  Branch (1567:9): [True: 0, False: 342]
  ------------------
 1568|    342|            pkt)) {
 1569|       |        /* SSLfatal() already called */
 1570|      0|        return CON_FUNC_ERROR;
 1571|      0|    }
 1572|    342|    if (!WPACKET_close(pkt)) {
  ------------------
  |  Branch (1572:9): [True: 0, False: 342]
  ------------------
 1573|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1574|      0|        return CON_FUNC_ERROR;
 1575|      0|    }
 1576|       |
 1577|       |    /* COMPRESSION */
 1578|    342|    if (!WPACKET_start_sub_packet_u8(pkt)) {
  ------------------
  |  |  810|    342|    WPACKET_start_sub_packet_len__((pkt), 1)
  ------------------
  |  Branch (1578:9): [True: 0, False: 342]
  ------------------
 1579|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1580|      0|        return CON_FUNC_ERROR;
 1581|      0|    }
 1582|    342|#ifndef OPENSSL_NO_COMP
 1583|    342|    if (ssl_allow_compression(s)
  ------------------
  |  Branch (1583:9): [True: 0, False: 342]
  ------------------
 1584|      0|        && sctx->comp_methods
  ------------------
  |  Branch (1584:12): [True: 0, False: 0]
  ------------------
 1585|      0|        && (SSL_CONNECTION_IS_DTLS(s)
  ------------------
  |  |  266|      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)
  |  |  ------------------
  |  |  |  | 2196|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1586|      0|            || s->s3.tmp.max_ver < TLS1_3_VERSION)) {
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (1586:16): [True: 0, False: 0]
  ------------------
 1587|      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))
  ------------------
 1588|      0|        for (i = 0; i < compnum; i++) {
  ------------------
  |  Branch (1588:21): [True: 0, False: 0]
  ------------------
 1589|      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)))
  ------------------
 1590|      0|            if (!WPACKET_put_bytes_u8(pkt, comp->id)) {
  ------------------
  |  |  909|      0|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (1590:17): [True: 0, False: 0]
  ------------------
 1591|      0|                SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1592|      0|                return CON_FUNC_ERROR;
 1593|      0|            }
 1594|      0|        }
 1595|      0|    }
 1596|    342|#endif
 1597|       |    /* Add the NULL method */
 1598|    342|    if (!WPACKET_put_bytes_u8(pkt, 0) || !WPACKET_close(pkt)) {
  ------------------
  |  |  909|    684|    WPACKET_put_bytes__((pkt), (val), 1)
  ------------------
  |  Branch (1598:9): [True: 0, False: 342]
  |  Branch (1598:42): [True: 0, False: 342]
  ------------------
 1599|      0|        SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1600|      0|        return CON_FUNC_ERROR;
 1601|      0|    }
 1602|       |
 1603|       |    /* TLS extensions */
 1604|    342|    if (!tls_construct_extensions(s, pkt, SSL_EXT_CLIENT_HELLO, NULL, 0)) {
  ------------------
  |  |  300|    342|#define SSL_EXT_CLIENT_HELLO 0x00080
  ------------------
  |  Branch (1604:9): [True: 0, False: 342]
  ------------------
 1605|       |        /* SSLfatal() already called */
 1606|      0|        return CON_FUNC_ERROR;
 1607|      0|    }
 1608|       |
 1609|    342|    return CON_FUNC_SUCCESS;
 1610|    342|}

ssl3_do_write:
   64|    342|{
   65|    342|    int ret;
   66|    342|    size_t written = 0;
   67|    342|    SSL *ssl = SSL_CONNECTION_GET_SSL(s);
  ------------------
  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
   68|    342|    SSL *ussl = SSL_CONNECTION_GET_USER_SSL(s);
  ------------------
  |  |   28|    342|#define SSL_CONNECTION_GET_USER_SSL(sc) ((sc)->user_ssl)
  ------------------
   69|       |
   70|       |    /*
   71|       |     * If we're running the test suite then we may need to mutate the message
   72|       |     * we've been asked to write. Does not happen in normal operation.
   73|       |     */
   74|    342|    if (s->statem.mutate_handshake_cb != NULL
  ------------------
  |  Branch (74:9): [True: 0, False: 342]
  ------------------
   75|      0|        && !s->statem.write_in_progress
  ------------------
  |  Branch (75:12): [True: 0, False: 0]
  ------------------
   76|      0|        && type == SSL3_RT_HANDSHAKE
  ------------------
  |  |  221|    342|#define SSL3_RT_HANDSHAKE 22
  ------------------
  |  Branch (76:12): [True: 0, False: 0]
  ------------------
   77|      0|        && s->init_num >= SSL3_HM_HEADER_LENGTH) {
  ------------------
  |  |  141|      0|#define SSL3_HM_HEADER_LENGTH 4
  ------------------
  |  Branch (77:12): [True: 0, False: 0]
  ------------------
   78|      0|        unsigned char *msg;
   79|      0|        size_t msglen;
   80|       |
   81|      0|        if (!s->statem.mutate_handshake_cb((unsigned char *)s->init_buf->data,
  ------------------
  |  Branch (81:13): [True: 0, False: 0]
  ------------------
   82|      0|                s->init_num,
   83|      0|                &msg, &msglen,
   84|      0|                s->statem.mutatearg))
   85|      0|            return -1;
   86|      0|        if (msglen < SSL3_HM_HEADER_LENGTH
  ------------------
  |  |  141|      0|#define SSL3_HM_HEADER_LENGTH 4
  ------------------
  |  Branch (86:13): [True: 0, False: 0]
  ------------------
   87|      0|            || !BUF_MEM_grow(s->init_buf, msglen))
  ------------------
  |  Branch (87:16): [True: 0, False: 0]
  ------------------
   88|      0|            return -1;
   89|      0|        memcpy(s->init_buf->data, msg, msglen);
   90|      0|        s->init_num = msglen;
   91|      0|        s->init_msg = s->init_buf->data + SSL3_HM_HEADER_LENGTH;
  ------------------
  |  |  141|      0|#define SSL3_HM_HEADER_LENGTH 4
  ------------------
   92|      0|        s->statem.finish_mutate_handshake_cb(s->statem.mutatearg);
   93|      0|        s->statem.write_in_progress = 1;
   94|      0|    }
   95|       |
   96|    342|    ret = ssl3_write_bytes(ssl, type, &s->init_buf->data[s->init_off],
   97|    342|        s->init_num, &written);
   98|    342|    if (ret <= 0)
  ------------------
  |  Branch (98:9): [True: 0, False: 342]
  ------------------
   99|      0|        return -1;
  100|    342|    if (type == SSL3_RT_HANDSHAKE)
  ------------------
  |  |  221|    342|#define SSL3_RT_HANDSHAKE 22
  ------------------
  |  Branch (100:9): [True: 342, False: 0]
  ------------------
  101|       |        /*
  102|       |         * should not be done for 'Hello Request's, but in that case we'll
  103|       |         * ignore the result anyway
  104|       |         * TLS1.3 KeyUpdate and NewSessionTicket do not need to be added
  105|       |         */
  106|    342|        if (!SSL_CONNECTION_IS_TLS13(s)
  ------------------
  |  |  273|    684|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  266|    684|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  |  |  ------------------
  |  |  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2196|    342|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (273:37): [True: 342, False: 0]
  |  |  ------------------
  |  |  274|    342|    && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|    684|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  |  |  |  Branch (274:8): [True: 342, False: 0]
  |  |  ------------------
  |  |  275|    684|    && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   40|    342|#define TLS_ANY_VERSION 0x10000
  |  |  ------------------
  |  |  |  Branch (275:8): [True: 0, False: 342]
  |  |  ------------------
  ------------------
  107|      0|            || (s->statem.hand_state != TLS_ST_SW_SESSION_TICKET
  ------------------
  |  Branch (107:17): [True: 0, False: 0]
  ------------------
  108|      0|                && s->statem.hand_state != TLS_ST_CW_KEY_UPDATE
  ------------------
  |  Branch (108:20): [True: 0, False: 0]
  ------------------
  109|      0|                && s->statem.hand_state != TLS_ST_SW_KEY_UPDATE))
  ------------------
  |  Branch (109:20): [True: 0, False: 0]
  ------------------
  110|    342|            if (!ssl3_finish_mac(s,
  ------------------
  |  Branch (110:17): [True: 0, False: 342]
  ------------------
  111|    342|                    (unsigned char *)&s->init_buf->data[s->init_off],
  112|    342|                    written))
  113|      0|                return -1;
  114|    342|    if (written == s->init_num) {
  ------------------
  |  Branch (114:9): [True: 342, False: 0]
  ------------------
  115|    342|        s->statem.write_in_progress = 0;
  116|    342|        if (s->msg_callback)
  ------------------
  |  Branch (116:13): [True: 0, False: 342]
  ------------------
  117|      0|            s->msg_callback(1, s->version, type, s->init_buf->data,
  118|      0|                (size_t)(s->init_off + s->init_num), ussl,
  119|      0|                s->msg_callback_arg);
  120|    342|        return 1;
  121|    342|    }
  122|      0|    s->init_off += written;
  123|      0|    s->init_num -= written;
  124|      0|    return 0;
  125|    342|}
tls_close_construct_packet:
  128|    342|{
  129|    342|    size_t msglen;
  130|       |
  131|    342|    if ((htype != SSL3_MT_CHANGE_CIPHER_SPEC && !WPACKET_close(pkt))
  ------------------
  |  |  337|    684|#define SSL3_MT_CHANGE_CIPHER_SPEC 0x0101
  ------------------
  |  Branch (131:10): [True: 342, False: 0]
  |  Branch (131:49): [True: 0, False: 342]
  ------------------
  132|    342|        || !WPACKET_get_length(pkt, &msglen)
  ------------------
  |  Branch (132:12): [True: 0, False: 342]
  ------------------
  133|    342|        || msglen > INT_MAX)
  ------------------
  |  Branch (133:12): [True: 0, False: 342]
  ------------------
  134|      0|        return 0;
  135|    342|    s->init_num = (int)msglen;
  136|    342|    s->init_off = 0;
  137|       |
  138|    342|    return 1;
  139|    342|}
tls_setup_handshake:
  142|    342|{
  143|    342|    int ver_min, ver_max, ok;
  144|    342|    SSL *ssl = SSL_CONNECTION_GET_SSL(s);
  ------------------
  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
  145|    342|    SSL_CTX *sctx = SSL_CONNECTION_GET_CTX(s);
  ------------------
  |  |   26|    342|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
  146|       |
  147|    342|    if (!ssl3_init_finished_mac(s)) {
  ------------------
  |  Branch (147:9): [True: 0, False: 342]
  ------------------
  148|       |        /* SSLfatal() already called */
  149|      0|        return 0;
  150|      0|    }
  151|       |
  152|       |    /* Reset any extension flags */
  153|    342|    memset(s->ext.extflags, 0, sizeof(s->ext.extflags));
  154|       |
  155|    342|    if (ssl_get_min_max_version(s, &ver_min, &ver_max, NULL) != 0) {
  ------------------
  |  Branch (155:9): [True: 0, False: 342]
  ------------------
  156|      0|        SSLfatal(s, SSL_AD_PROTOCOL_VERSION, SSL_R_NO_PROTOCOLS_AVAILABLE);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  157|      0|        return 0;
  158|      0|    }
  159|       |
  160|       |    /* Sanity check that we have MD5-SHA1 if we need it */
  161|    342|    if (sctx->ssl_digest_methods[SSL_MD_MD5_SHA1_IDX] == NULL) {
  ------------------
  |  |  202|    342|#define SSL_MD_MD5_SHA1_IDX 9
  ------------------
  |  Branch (161:9): [True: 0, False: 342]
  ------------------
  162|      0|        int negotiated_minversion;
  163|      0|        int md5sha1_needed_maxversion = SSL_CONNECTION_IS_DTLS(s)
  ------------------
  |  |  266|      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)
  |  |  ------------------
  |  |  |  | 2196|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  164|      0|            ? DTLS1_VERSION
  ------------------
  |  |   28|      0|#define DTLS1_VERSION 0xFEFF
  ------------------
  165|      0|            : TLS1_1_VERSION;
  ------------------
  |  |   25|      0|#define TLS1_1_VERSION 0x0302
  ------------------
  166|       |
  167|       |        /* We don't have MD5-SHA1 - do we need it? */
  168|      0|        if (ssl_version_cmp(s, ver_max, md5sha1_needed_maxversion) <= 0) {
  ------------------
  |  Branch (168:13): [True: 0, False: 0]
  ------------------
  169|      0|            SSLfatal_data(s, SSL_AD_HANDSHAKE_FAILURE,
  ------------------
  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  159|      0|        ossl_statem_fatal)
  ------------------
                          SSLfatal_data(s, SSL_AD_HANDSHAKE_FAILURE,
  ------------------
  |  | 1242|      0|#define SSL_AD_HANDSHAKE_FAILURE SSL3_AD_HANDSHAKE_FAILURE
  |  |  ------------------
  |  |  |  |  256|      0|#define SSL3_AD_HANDSHAKE_FAILURE 40 /* fatal */
  |  |  ------------------
  ------------------
  170|      0|                SSL_R_NO_SUITABLE_DIGEST_ALGORITHM,
  ------------------
  |  |  216|      0|#define SSL_R_NO_SUITABLE_DIGEST_ALGORITHM 297
  ------------------
  171|      0|                "The max supported SSL/TLS version needs the"
  172|      0|                " MD5-SHA1 digest but it is not available"
  173|      0|                " in the loaded providers. Use (D)TLSv1.2 or"
  174|      0|                " above, or load different providers");
  175|      0|            return 0;
  176|      0|        }
  177|       |
  178|      0|        ok = 1;
  179|       |
  180|       |        /* Don't allow TLSv1.1 or below to be negotiated */
  181|      0|        negotiated_minversion = SSL_CONNECTION_IS_DTLS(s) ? DTLS1_2_VERSION : TLS1_2_VERSION;
  ------------------
  |  |  266|      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)
  |  |  ------------------
  |  |  |  | 2196|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (266: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
  ------------------
  182|      0|        if (ssl_version_cmp(s, ver_min, negotiated_minversion) < 0)
  ------------------
  |  Branch (182:13): [True: 0, False: 0]
  ------------------
  183|      0|            ok = SSL_set_min_proto_version(ssl, negotiated_minversion);
  ------------------
  |  | 1591|      0|    SSL_ctrl(s, SSL_CTRL_SET_MIN_PROTO_VERSION, version, NULL)
  |  |  ------------------
  |  |  |  | 1403|      0|#define SSL_CTRL_SET_MIN_PROTO_VERSION 123
  |  |  ------------------
  ------------------
  184|      0|        if (!ok) {
  ------------------
  |  Branch (184:13): [True: 0, False: 0]
  ------------------
  185|       |            /* Shouldn't happen */
  186|      0|            SSLfatal(s, SSL_AD_HANDSHAKE_FAILURE, ERR_R_INTERNAL_ERROR);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
  187|      0|            return 0;
  188|      0|        }
  189|      0|    }
  190|       |
  191|    342|    ok = 0;
  192|    342|    if (s->server) {
  ------------------
  |  Branch (192:9): [True: 0, False: 342]
  ------------------
  193|      0|        STACK_OF(SSL_CIPHER) *ciphers = SSL_get_ciphers(ssl);
  ------------------
  |  |   33|      0|#define STACK_OF(type) struct stack_st_##type
  ------------------
  194|      0|        int i;
  195|       |
  196|       |        /*
  197|       |         * Sanity check that the maximum version we accept has ciphers
  198|       |         * enabled. For clients we do this check during construction of the
  199|       |         * ClientHello.
  200|       |         */
  201|      0|        for (i = 0; i < sk_SSL_CIPHER_num(ciphers); i++) {
  ------------------
  |  | 1028|      0|#define sk_SSL_CIPHER_num(sk) OPENSSL_sk_num(ossl_check_const_SSL_CIPHER_sk_type(sk))
  ------------------
  |  Branch (201:21): [True: 0, False: 0]
  ------------------
  202|      0|            const SSL_CIPHER *c = sk_SSL_CIPHER_value(ciphers, i);
  ------------------
  |  | 1029|      0|#define sk_SSL_CIPHER_value(sk, idx) ((const SSL_CIPHER *)OPENSSL_sk_value(ossl_check_const_SSL_CIPHER_sk_type(sk), (idx)))
  ------------------
  203|      0|            int cipher_minprotover = SSL_CONNECTION_IS_DTLS(s)
  ------------------
  |  |  266|      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)
  |  |  ------------------
  |  |  |  | 2196|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  204|      0|                ? c->min_dtls
  205|      0|                : c->min_tls;
  206|      0|            int cipher_maxprotover = SSL_CONNECTION_IS_DTLS(s)
  ------------------
  |  |  266|      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)
  |  |  ------------------
  |  |  |  | 2196|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  207|      0|                ? c->max_dtls
  208|      0|                : c->max_tls;
  209|       |
  210|      0|            if (ssl_version_cmp(s, ver_max, cipher_minprotover) >= 0
  ------------------
  |  Branch (210:17): [True: 0, False: 0]
  ------------------
  211|      0|                && ssl_version_cmp(s, ver_max, cipher_maxprotover) <= 0) {
  ------------------
  |  Branch (211:20): [True: 0, False: 0]
  ------------------
  212|      0|                ok = 1;
  213|      0|                break;
  214|      0|            }
  215|      0|        }
  216|      0|        if (!ok) {
  ------------------
  |  Branch (216:13): [True: 0, False: 0]
  ------------------
  217|      0|            SSLfatal_data(s, SSL_AD_HANDSHAKE_FAILURE,
  ------------------
  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  159|      0|        ossl_statem_fatal)
  ------------------
                          SSLfatal_data(s, SSL_AD_HANDSHAKE_FAILURE,
  ------------------
  |  | 1242|      0|#define SSL_AD_HANDSHAKE_FAILURE SSL3_AD_HANDSHAKE_FAILURE
  |  |  ------------------
  |  |  |  |  256|      0|#define SSL3_AD_HANDSHAKE_FAILURE 40 /* fatal */
  |  |  ------------------
  ------------------
  218|      0|                SSL_R_NO_CIPHERS_AVAILABLE,
  ------------------
  |  |  198|      0|#define SSL_R_NO_CIPHERS_AVAILABLE 181
  ------------------
  219|      0|                "No ciphers enabled for max supported "
  220|      0|                "SSL/TLS version");
  221|      0|            return 0;
  222|      0|        }
  223|      0|        if (SSL_IS_FIRST_HANDSHAKE(s)) {
  ------------------
  |  |  285|      0|#define SSL_IS_FIRST_HANDSHAKE(s) ((s)->s3.tmp.finish_md_len == 0 \
  |  |  ------------------
  |  |  |  Branch (285:36): [True: 0, False: 0]
  |  |  ------------------
  |  |  286|      0|    || (s)->s3.tmp.peer_finish_md_len == 0)
  |  |  ------------------
  |  |  |  Branch (286:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  224|       |            /* N.B. s->session_ctx == s->ctx here */
  225|      0|            ssl_tsan_counter(s->session_ctx, &s->session_ctx->stats.sess_accept);
  226|      0|        } else {
  227|       |            /* N.B. s->ctx may not equal s->session_ctx */
  228|      0|            ssl_tsan_counter(sctx, &sctx->stats.sess_accept_renegotiate);
  229|       |
  230|      0|            s->s3.tmp.cert_request = 0;
  231|      0|        }
  232|    342|    } else {
  233|    342|        if (SSL_IS_FIRST_HANDSHAKE(s))
  ------------------
  |  |  285|    342|#define SSL_IS_FIRST_HANDSHAKE(s) ((s)->s3.tmp.finish_md_len == 0 \
  |  |  ------------------
  |  |  |  Branch (285:36): [True: 342, False: 0]
  |  |  ------------------
  |  |  286|    342|    || (s)->s3.tmp.peer_finish_md_len == 0)
  |  |  ------------------
  |  |  |  Branch (286:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  234|    342|            ssl_tsan_counter(s->session_ctx, &s->session_ctx->stats.sess_connect);
  235|      0|        else
  236|      0|            ssl_tsan_counter(s->session_ctx,
  237|      0|                &s->session_ctx->stats.sess_connect_renegotiate);
  238|       |
  239|       |        /* mark client_random uninitialized */
  240|    342|        memset(s->s3.client_random, 0, sizeof(s->s3.client_random));
  241|    342|        s->hit = 0;
  242|       |
  243|    342|        s->s3.tmp.cert_req = 0;
  244|       |
  245|    342|        if (SSL_CONNECTION_IS_DTLS(s))
  ------------------
  |  |  266|    342|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|    342|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 0, False: 342]
  |  |  ------------------
  ------------------
  246|      0|            s->statem.use_timer = 1;
  247|    342|    }
  248|       |
  249|    342|    return 1;
  250|    342|}
tls_get_message_header:
 1539|  6.51k|{
 1540|       |    /* s->init_num < SSL3_HM_HEADER_LENGTH */
 1541|  6.51k|    int skip_message, i;
 1542|  6.51k|    uint8_t recvd_type;
 1543|  6.51k|    unsigned char *p;
 1544|  6.51k|    size_t l, readbytes;
 1545|  6.51k|    SSL *ssl = SSL_CONNECTION_GET_SSL(s);
  ------------------
  |  |   27|  6.51k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
 1546|  6.51k|    SSL *ussl = SSL_CONNECTION_GET_USER_SSL(s);
  ------------------
  |  |   28|  6.51k|#define SSL_CONNECTION_GET_USER_SSL(sc) ((sc)->user_ssl)
  ------------------
 1547|       |
 1548|  6.51k|    p = (unsigned char *)s->init_buf->data;
 1549|       |
 1550|  6.51k|    do {
 1551|  6.51k|        while (s->init_num < SSL3_HM_HEADER_LENGTH) {
  ------------------
  |  |  141|  6.51k|#define SSL3_HM_HEADER_LENGTH 4
  ------------------
  |  Branch (1551:16): [True: 6.51k, False: 0]
  ------------------
 1552|  6.51k|            i = ssl->method->ssl_read_bytes(ssl, SSL3_RT_HANDSHAKE, &recvd_type,
  ------------------
  |  |  221|  6.51k|#define SSL3_RT_HANDSHAKE 22
  ------------------
 1553|  6.51k|                &p[s->init_num],
 1554|  6.51k|                SSL3_HM_HEADER_LENGTH - s->init_num,
  ------------------
  |  |  141|  6.51k|#define SSL3_HM_HEADER_LENGTH 4
  ------------------
 1555|  6.51k|                0, &readbytes);
 1556|  6.51k|            if (i <= 0) {
  ------------------
  |  Branch (1556:17): [True: 6.51k, False: 0]
  ------------------
 1557|  6.51k|                s->rwstate = SSL_READING;
  ------------------
  |  |  957|  6.51k|#define SSL_READING 3
  ------------------
 1558|  6.51k|                return 0;
 1559|  6.51k|            }
 1560|      0|            if (recvd_type == SSL3_RT_CHANGE_CIPHER_SPEC) {
  ------------------
  |  |  219|      0|#define SSL3_RT_CHANGE_CIPHER_SPEC 20
  ------------------
  |  Branch (1560:17): [True: 0, False: 0]
  ------------------
 1561|       |                /*
 1562|       |                 * A ChangeCipherSpec must be a single byte and may not occur
 1563|       |                 * in the middle of a handshake message.
 1564|       |                 */
 1565|      0|                if (s->init_num != 0 || readbytes != 1 || p[0] != SSL3_MT_CCS) {
  ------------------
  |  |  339|      0|#define SSL3_MT_CCS 1
  ------------------
  |  Branch (1565:21): [True: 0, False: 0]
  |  Branch (1565:41): [True: 0, False: 0]
  |  Branch (1565:59): [True: 0, False: 0]
  ------------------
 1566|      0|                    SSLfatal(s, SSL_AD_UNEXPECTED_MESSAGE,
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1567|      0|                        SSL_R_BAD_CHANGE_CIPHER_SPEC);
 1568|      0|                    return 0;
 1569|      0|                }
 1570|      0|                if (s->statem.hand_state == TLS_ST_BEFORE
  ------------------
  |  Branch (1570:21): [True: 0, False: 0]
  ------------------
 1571|      0|                    && (s->s3.flags & TLS1_FLAGS_STATELESS) != 0) {
  ------------------
  |  |  304|      0|#define TLS1_FLAGS_STATELESS 0x0800
  ------------------
  |  Branch (1571:24): [True: 0, False: 0]
  ------------------
 1572|       |                    /*
 1573|       |                     * We are stateless and we received a CCS. Probably this is
 1574|       |                     * from a client between the first and second ClientHellos.
 1575|       |                     * We should ignore this, but return an error because we do
 1576|       |                     * not return success until we see the second ClientHello
 1577|       |                     * with a valid cookie.
 1578|       |                     */
 1579|      0|                    return 0;
 1580|      0|                }
 1581|      0|                s->s3.tmp.message_type = *mt = SSL3_MT_CHANGE_CIPHER_SPEC;
  ------------------
  |  |  337|      0|#define SSL3_MT_CHANGE_CIPHER_SPEC 0x0101
  ------------------
 1582|      0|                s->init_num = readbytes - 1;
 1583|      0|                s->init_msg = s->init_buf->data;
 1584|      0|                s->s3.tmp.message_size = readbytes;
 1585|      0|                return 1;
 1586|      0|            } else if (recvd_type != SSL3_RT_HANDSHAKE) {
  ------------------
  |  |  221|      0|#define SSL3_RT_HANDSHAKE 22
  ------------------
  |  Branch (1586:24): [True: 0, False: 0]
  ------------------
 1587|      0|                SSLfatal(s, SSL_AD_UNEXPECTED_MESSAGE,
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1588|      0|                    SSL_R_CCS_RECEIVED_EARLY);
 1589|      0|                return 0;
 1590|      0|            }
 1591|      0|            s->init_num += readbytes;
 1592|      0|        }
 1593|       |
 1594|      0|        skip_message = 0;
 1595|      0|        if (!s->server)
  ------------------
  |  Branch (1595:13): [True: 0, False: 0]
  ------------------
 1596|      0|            if (s->statem.hand_state != TLS_ST_OK
  ------------------
  |  Branch (1596:17): [True: 0, False: 0]
  ------------------
 1597|      0|                && p[0] == SSL3_MT_HELLO_REQUEST)
  ------------------
  |  |  312|      0|#define SSL3_MT_HELLO_REQUEST 0
  ------------------
  |  Branch (1597:20): [True: 0, False: 0]
  ------------------
 1598|       |                /*
 1599|       |                 * The server may always send 'Hello Request' messages --
 1600|       |                 * we are doing a handshake anyway now, so ignore them if
 1601|       |                 * their format is correct. Does not count for 'Finished'
 1602|       |                 * MAC.
 1603|       |                 */
 1604|      0|                if (p[1] == 0 && p[2] == 0 && p[3] == 0) {
  ------------------
  |  Branch (1604:21): [True: 0, False: 0]
  |  Branch (1604:34): [True: 0, False: 0]
  |  Branch (1604:47): [True: 0, False: 0]
  ------------------
 1605|      0|                    s->init_num = 0;
 1606|      0|                    skip_message = 1;
 1607|       |
 1608|      0|                    if (s->msg_callback)
  ------------------
  |  Branch (1608:25): [True: 0, False: 0]
  ------------------
 1609|      0|                        s->msg_callback(0, s->version, SSL3_RT_HANDSHAKE,
  ------------------
  |  |  221|      0|#define SSL3_RT_HANDSHAKE 22
  ------------------
 1610|      0|                            p, SSL3_HM_HEADER_LENGTH, ussl,
  ------------------
  |  |  141|      0|#define SSL3_HM_HEADER_LENGTH 4
  ------------------
 1611|      0|                            s->msg_callback_arg);
 1612|      0|                }
 1613|      0|    } while (skip_message);
  ------------------
  |  Branch (1613:14): [True: 0, False: 0]
  ------------------
 1614|       |    /* s->init_num == SSL3_HM_HEADER_LENGTH */
 1615|       |
 1616|      0|    *mt = *p;
 1617|      0|    s->s3.tmp.message_type = *(p++);
 1618|       |
 1619|      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)
  ------------------
 1620|       |    /* BUF_MEM_grow takes an 'int' parameter */
 1621|      0|    if (l > (INT_MAX - SSL3_HM_HEADER_LENGTH)) {
  ------------------
  |  |  141|      0|#define SSL3_HM_HEADER_LENGTH 4
  ------------------
  |  Branch (1621:9): [True: 0, False: 0]
  ------------------
 1622|      0|        SSLfatal(s, SSL_AD_ILLEGAL_PARAMETER, SSL_R_EXCESSIVE_MESSAGE_SIZE);
  ------------------
  |  |  155|      0|#define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
  |  |  ------------------
  |  |  |  |  157|      0|    (ERR_new(),                                                  \
  |  |  |  |  158|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  159|      0|        ossl_statem_fatal)
  |  |  ------------------
  ------------------
 1623|      0|        return 0;
 1624|      0|    }
 1625|      0|    s->s3.tmp.message_size = l;
 1626|       |
 1627|      0|    s->init_msg = s->init_buf->data + SSL3_HM_HEADER_LENGTH;
  ------------------
  |  |  141|      0|#define SSL3_HM_HEADER_LENGTH 4
  ------------------
 1628|      0|    s->init_num = 0;
 1629|       |
 1630|      0|    return 1;
 1631|      0|}
ssl_allow_compression:
 1790|    342|{
 1791|    342|    if (s->options & SSL_OP_NO_COMPRESSION)
  ------------------
  |  |  395|    342|#define SSL_OP_NO_COMPRESSION SSL_OP_BIT(17)
  |  |  ------------------
  |  |  |  |  351|    342|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (1791:9): [True: 342, False: 0]
  ------------------
 1792|    342|        return 0;
 1793|      0|    return ssl_security(s, SSL_SECOP_COMPRESSION, 0, 0, NULL);
  ------------------
  |  | 2769|      0|#define SSL_SECOP_COMPRESSION (15 | SSL_SECOP_OTHER_NONE)
  |  |  ------------------
  |  |  |  | 2728|      0|#define SSL_SECOP_OTHER_NONE 0
  |  |  ------------------
  ------------------
 1794|    342|}
ssl_version_cmp:
 1805|   112k|{
 1806|   112k|    int dtls = SSL_CONNECTION_IS_DTLS(s);
  ------------------
  |  |  266|   112k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|   112k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|   112k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  ------------------
 1807|       |
 1808|   112k|    if (versiona == versionb)
  ------------------
  |  Branch (1808:9): [True: 53.6k, False: 59.1k]
  ------------------
 1809|  53.6k|        return 0;
 1810|  59.1k|    if (!dtls)
  ------------------
  |  Branch (1810:9): [True: 59.1k, False: 0]
  ------------------
 1811|  59.1k|        return versiona < versionb ? -1 : 1;
  ------------------
  |  Branch (1811:16): [True: 44.4k, False: 14.7k]
  ------------------
 1812|      0|    return DTLS_VERSION_LT(versiona, versionb) ? -1 : 1;
  ------------------
  |  |   64|      0|#define DTLS_VERSION_LT(v1, v2) (dtls_ver_ordinal(v1) > dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   61|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (61:31): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define DTLS_VERSION_LT(v1, v2) (dtls_ver_ordinal(v1) > dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   61|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (61:31): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (64:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1813|  59.1k|}
ssl_set_version_bound:
 2059|    694|{
 2060|    694|    int valid_tls;
 2061|    694|    int valid_dtls;
 2062|       |
 2063|    694|    if (version == 0) {
  ------------------
  |  Branch (2063:9): [True: 347, False: 347]
  ------------------
 2064|    347|        *bound = version;
 2065|    347|        return 1;
 2066|    347|    }
 2067|       |
 2068|    347|    valid_tls = version > SSL3_VERSION && version <= TLS_MAX_VERSION_INTERNAL;
  ------------------
  |  |   23|    694|#define SSL3_VERSION 0x0300
  ------------------
                  valid_tls = version > SSL3_VERSION && version <= TLS_MAX_VERSION_INTERNAL;
  ------------------
  |  |   54|    347|#define TLS_MAX_VERSION_INTERNAL TLS1_3_VERSION
  |  |  ------------------
  |  |  |  |   27|    694|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  ------------------
  |  Branch (2068:17): [True: 347, False: 0]
  |  Branch (2068:43): [True: 347, False: 0]
  ------------------
 2069|    347|    valid_dtls =
 2070|       |        /* We support client side pre-standardisation version of DTLS */
 2071|    347|        (version == DTLS1_BAD_VER)
  ------------------
  |  |   30|    347|#define DTLS1_BAD_VER 0x0100
  ------------------
  |  Branch (2071:9): [True: 0, False: 347]
  ------------------
 2072|    347|        || (DTLS_VERSION_LE(version, DTLS_MAX_VERSION_INTERNAL)
  ------------------
  |  |   65|    694|#define DTLS_VERSION_LE(v1, v2) (dtls_ver_ordinal(v1) >= dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   61|    347|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|    347|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (61:31): [True: 0, False: 347]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define DTLS_VERSION_LE(v1, v2) (dtls_ver_ordinal(v1) >= dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   61|    347|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|    347|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (61:31): [Folded, False: 347]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (65:33): [True: 0, False: 347]
  |  |  ------------------
  ------------------
 2073|      0|            && DTLS_VERSION_GE(version, DTLS1_VERSION));
  ------------------
  |  |   63|      0|#define DTLS_VERSION_GE(v1, v2) (dtls_ver_ordinal(v1) <= dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   61|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (61:31): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define DTLS_VERSION_GE(v1, v2) (dtls_ver_ordinal(v1) <= dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   61|      0|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (61:31): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (63:33): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2074|       |
 2075|    347|    if (!valid_tls && !valid_dtls)
  ------------------
  |  Branch (2075:9): [True: 0, False: 347]
  |  Branch (2075:23): [True: 0, False: 0]
  ------------------
 2076|      0|        return 0;
 2077|       |
 2078|       |    /*-
 2079|       |     * Restrict TLS methods to TLS protocol versions.
 2080|       |     * Restrict DTLS methods to DTLS protocol versions.
 2081|       |     * Note, DTLS version numbers are decreasing, use comparison macros.
 2082|       |     *
 2083|       |     * Note that for both lower-bounds we use explicit versions, not
 2084|       |     * (D)TLS_MIN_VERSION.  This is because we don't want to break user
 2085|       |     * configurations.  If the MIN (supported) version ever rises, the user's
 2086|       |     * "floor" remains valid even if no longer available.  We don't expect the
 2087|       |     * MAX ceiling to ever get lower, so making that variable makes sense.
 2088|       |     *
 2089|       |     * We ignore attempts to set bounds on version-inflexible methods,
 2090|       |     * returning success.
 2091|       |     */
 2092|    347|    switch (method_version) {
 2093|      0|    default:
  ------------------
  |  Branch (2093:5): [True: 0, False: 347]
  ------------------
 2094|      0|        break;
 2095|       |
 2096|    347|    case TLS_ANY_VERSION:
  ------------------
  |  |   40|    347|#define TLS_ANY_VERSION 0x10000
  ------------------
  |  Branch (2096:5): [True: 347, False: 0]
  ------------------
 2097|    347|        if (valid_tls)
  ------------------
  |  Branch (2097:13): [True: 347, False: 0]
  ------------------
 2098|    347|            *bound = version;
 2099|    347|        break;
 2100|       |
 2101|      0|    case DTLS_ANY_VERSION:
  ------------------
  |  |   35|      0|#define DTLS_ANY_VERSION 0x1FFFF
  ------------------
  |  Branch (2101:5): [True: 0, False: 347]
  ------------------
 2102|      0|        if (valid_dtls)
  ------------------
  |  Branch (2102:13): [True: 0, False: 0]
  ------------------
 2103|      0|            *bound = version;
 2104|      0|        break;
 2105|    347|    }
 2106|    347|    return 1;
 2107|    347|}
ssl_get_min_max_version:
 2451|  3.76k|{
 2452|  3.76k|    int version, tmp_real_max;
 2453|  3.76k|    int hole;
 2454|  3.76k|    const SSL_METHOD *method;
 2455|  3.76k|    const version_info *table;
 2456|  3.76k|    const version_info *vent;
 2457|  3.76k|    const SSL *ssl = SSL_CONNECTION_GET_SSL(s);
  ------------------
  |  |   27|  3.76k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
 2458|       |
 2459|  3.76k|    switch (ssl->method->version) {
 2460|      0|    default:
  ------------------
  |  Branch (2460:5): [True: 0, False: 3.76k]
  ------------------
 2461|       |        /*
 2462|       |         * If this SSL handle is not from a version flexible method we don't
 2463|       |         * (and never did) check min/max FIPS or Suite B constraints.  Hope
 2464|       |         * that's OK.  It is up to the caller to not choose fixed protocol
 2465|       |         * versions they don't want.  If not, then easy to fix, just return
 2466|       |         * ssl_method_error(s, s->method)
 2467|       |         */
 2468|      0|        *min_version = *max_version = s->version;
 2469|       |        /*
 2470|       |         * Providing a real_max only makes sense where we're using a version
 2471|       |         * flexible method.
 2472|       |         */
 2473|      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 (2473:13): [True: 0, False: 0]
  ------------------
 2474|      0|            return ERR_R_INTERNAL_ERROR;
  ------------------
  |  |  308|      0|#define ERR_R_INTERNAL_ERROR (259 | ERR_R_FATAL)
  |  |  ------------------
  |  |  |  |  304|      0|#define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  219|      0|#define ERR_RFLAG_FATAL (0x1 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  211|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define ERR_R_FATAL (ERR_RFLAG_FATAL | ERR_RFLAG_COMMON)
  |  |  |  |  ------------------
  |  |  |  |  |  |  220|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  211|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2475|      0|        return 0;
 2476|  3.76k|    case TLS_ANY_VERSION:
  ------------------
  |  |   40|  3.76k|#define TLS_ANY_VERSION 0x10000
  ------------------
  |  Branch (2476:5): [True: 3.76k, False: 0]
  ------------------
 2477|  3.76k|        table = tls_version_table;
 2478|  3.76k|        break;
 2479|      0|    case DTLS_ANY_VERSION:
  ------------------
  |  |   35|      0|#define DTLS_ANY_VERSION 0x1FFFF
  ------------------
  |  Branch (2479:5): [True: 0, False: 3.76k]
  ------------------
 2480|      0|        table = dtls_version_table;
 2481|      0|        break;
 2482|  3.76k|    }
 2483|       |
 2484|       |    /*
 2485|       |     * SSL_OP_NO_X disables all protocols above X *if* there are some protocols
 2486|       |     * below X enabled. This is required in order to maintain the "version
 2487|       |     * capability" vector contiguous. Any versions with a NULL client method
 2488|       |     * (protocol version client is disabled at compile-time) is also a "hole".
 2489|       |     *
 2490|       |     * Our initial state is hole == 1, version == 0.  That is, versions above
 2491|       |     * the first version in the method table are disabled (a "hole" above
 2492|       |     * the valid protocol entries) and we don't have a selected version yet.
 2493|       |     *
 2494|       |     * Whenever "hole == 1", and we hit an enabled method, its version becomes
 2495|       |     * the selected version.  We're no longer in a hole, so "hole" becomes 0.
 2496|       |     *
 2497|       |     * If "hole == 0" and we hit an enabled method, we support a contiguous
 2498|       |     * range of at least two methods.  If we hit a disabled method,
 2499|       |     * then hole becomes true again, but nothing else changes yet,
 2500|       |     * because all the remaining methods may be disabled too.
 2501|       |     * If we again hit an enabled method after the new hole, it becomes
 2502|       |     * selected, as we start from scratch.
 2503|       |     */
 2504|  3.76k|    *min_version = version = 0;
 2505|  3.76k|    hole = 1;
 2506|  3.76k|    if (real_max != NULL)
  ------------------
  |  Branch (2506:9): [True: 0, False: 3.76k]
  ------------------
 2507|      0|        *real_max = 0;
 2508|  3.76k|    tmp_real_max = 0;
 2509|  18.8k|    for (vent = table; vent->version != 0; ++vent) {
  ------------------
  |  Branch (2509:24): [True: 15.0k, False: 3.76k]
  ------------------
 2510|       |        /*
 2511|       |         * A table entry with a NULL client method is still a hole in the
 2512|       |         * "version capability" vector.
 2513|       |         */
 2514|  15.0k|        if (vent->cmeth == NULL) {
  ------------------
  |  Branch (2514:13): [True: 0, False: 15.0k]
  ------------------
 2515|      0|            hole = 1;
 2516|      0|            tmp_real_max = 0;
 2517|      0|            continue;
 2518|      0|        }
 2519|  15.0k|        method = vent->cmeth();
 2520|       |
 2521|  15.0k|        if (hole == 1 && tmp_real_max == 0)
  ------------------
  |  Branch (2521:13): [True: 7.52k, False: 7.52k]
  |  Branch (2521:26): [True: 3.76k, False: 3.76k]
  ------------------
 2522|  3.76k|            tmp_real_max = vent->version;
 2523|       |
 2524|  15.0k|        if (ssl_method_error(s, method) != 0) {
  ------------------
  |  Branch (2524:13): [True: 7.52k, False: 7.52k]
  ------------------
 2525|  7.52k|            hole = 1;
 2526|  7.52k|        } else if (!hole) {
  ------------------
  |  Branch (2526:20): [True: 3.76k, False: 3.76k]
  ------------------
 2527|  3.76k|            *min_version = method->version;
 2528|  3.76k|        } else {
 2529|  3.76k|            if (real_max != NULL && tmp_real_max != 0)
  ------------------
  |  Branch (2529:17): [True: 0, False: 3.76k]
  |  Branch (2529:37): [True: 0, False: 0]
  ------------------
 2530|      0|                *real_max = tmp_real_max;
 2531|  3.76k|            version = method->version;
 2532|  3.76k|            *min_version = version;
 2533|  3.76k|            hole = 0;
 2534|  3.76k|        }
 2535|  15.0k|    }
 2536|       |
 2537|  3.76k|    *max_version = version;
 2538|       |
 2539|       |    /* Fail if everything is disabled */
 2540|  3.76k|    if (version == 0)
  ------------------
  |  Branch (2540:9): [True: 0, False: 3.76k]
  ------------------
 2541|      0|        return SSL_R_NO_PROTOCOLS_AVAILABLE;
  ------------------
  |  |  208|      0|#define SSL_R_NO_PROTOCOLS_AVAILABLE 191
  ------------------
 2542|       |
 2543|  3.76k|    return 0;
 2544|  3.76k|}
ssl_set_client_hello_version:
 2555|    684|{
 2556|    684|    int ver_min, ver_max, ret;
 2557|       |
 2558|       |    /*
 2559|       |     * In a renegotiation we always send the same client_version that we sent
 2560|       |     * last time, regardless of which version we eventually negotiated.
 2561|       |     */
 2562|    684|    if (!SSL_IS_FIRST_HANDSHAKE(s))
  ------------------
  |  |  285|    684|#define SSL_IS_FIRST_HANDSHAKE(s) ((s)->s3.tmp.finish_md_len == 0 \
  |  |  ------------------
  |  |  |  Branch (285:36): [True: 684, False: 0]
  |  |  ------------------
  |  |  286|    684|    || (s)->s3.tmp.peer_finish_md_len == 0)
  |  |  ------------------
  |  |  |  Branch (286:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2563|      0|        return 0;
 2564|       |
 2565|    684|    ret = ssl_get_min_max_version(s, &ver_min, &ver_max, NULL);
 2566|       |
 2567|    684|    if (ret != 0)
  ------------------
  |  Branch (2567:9): [True: 0, False: 684]
  ------------------
 2568|      0|        return ret;
 2569|       |
 2570|    684|    s->version = ver_max;
 2571|       |
 2572|    684|    if (SSL_CONNECTION_IS_DTLS(s)) {
  ------------------
  |  |  266|    684|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|    684|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|    684|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 0, False: 684]
  |  |  ------------------
  ------------------
 2573|      0|        if (ver_max == DTLS1_BAD_VER) {
  ------------------
  |  |   30|      0|#define DTLS1_BAD_VER 0x0100
  ------------------
  |  Branch (2573:13): [True: 0, False: 0]
  ------------------
 2574|       |            /*
 2575|       |             * Even though this is technically before version negotiation,
 2576|       |             * because we have asked for DTLS1_BAD_VER we will never negotiate
 2577|       |             * anything else, and this has impacts on the record layer for when
 2578|       |             * we read the ServerHello. So we need to tell the record layer
 2579|       |             * about this immediately.
 2580|       |             */
 2581|      0|            if (!ssl_set_record_protocol_version(s, ver_max))
  ------------------
  |  Branch (2581:17): [True: 0, False: 0]
  ------------------
 2582|      0|                return 0;
 2583|      0|        }
 2584|    684|    } else if (ver_max > TLS1_2_VERSION) {
  ------------------
  |  |   26|    684|#define TLS1_2_VERSION 0x0303
  ------------------
  |  Branch (2584:16): [True: 684, False: 0]
  ------------------
 2585|       |        /* TLS1.3 always uses TLS1.2 in the legacy_version field */
 2586|    684|        ver_max = TLS1_2_VERSION;
  ------------------
  |  |   26|    684|#define TLS1_2_VERSION 0x0303
  ------------------
 2587|    684|    }
 2588|       |
 2589|    684|    s->client_version = ver_max;
 2590|    684|    return 0;
 2591|    684|}
get_ca_names:
 2738|    342|{
 2739|    342|    const STACK_OF(X509_NAME) *ca_sk = NULL;
 2740|    342|    SSL *ssl = SSL_CONNECTION_GET_SSL(s);
  ------------------
  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
 2741|       |
 2742|    342|    if (s->server) {
  ------------------
  |  Branch (2742:9): [True: 0, False: 342]
  ------------------
 2743|      0|        ca_sk = SSL_get_client_CA_list(ssl);
 2744|      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 (2744:13): [True: 0, False: 0]
  |  Branch (2744:30): [True: 0, False: 0]
  ------------------
 2745|      0|            ca_sk = NULL;
 2746|      0|    }
 2747|       |
 2748|    342|    if (ca_sk == NULL)
  ------------------
  |  Branch (2748:9): [True: 342, False: 0]
  ------------------
 2749|    342|        ca_sk = SSL_get0_CA_list(ssl);
 2750|       |
 2751|    342|    return ca_sk;
 2752|    342|}
statem_lib.c:ssl_method_error:
 1880|  15.0k|{
 1881|  15.0k|    int version = method->version;
 1882|       |
 1883|  15.0k|    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)
  ------------------
  |  | 2757|  7.52k|#define SSL_SECOP_VERSION (9 | SSL_SECOP_OTHER_NONE)
  |  |  ------------------
  |  |  |  | 2728|  7.52k|#define SSL_SECOP_OTHER_NONE 0
  |  |  ------------------
  ------------------
  |  Branch (1883:10): [True: 15.0k, False: 0]
  |  Branch (1883:39): [True: 7.52k, False: 7.52k]
  |  Branch (1883:97): [True: 0, False: 7.52k]
  ------------------
 1884|  7.52k|        return SSL_R_VERSION_TOO_LOW;
  ------------------
  |  |  368|  7.52k|#define SSL_R_VERSION_TOO_LOW 396
  ------------------
 1885|       |
 1886|  7.52k|    if (s->max_proto_version != 0 && ssl_version_cmp(s, version, s->max_proto_version) > 0)
  ------------------
  |  Branch (1886:9): [True: 0, False: 7.52k]
  |  Branch (1886:38): [True: 0, False: 0]
  ------------------
 1887|      0|        return SSL_R_VERSION_TOO_HIGH;
  ------------------
  |  |  367|      0|#define SSL_R_VERSION_TOO_HIGH 166
  ------------------
 1888|       |
 1889|  7.52k|    if ((s->options & method->mask) != 0)
  ------------------
  |  Branch (1889:9): [True: 0, False: 7.52k]
  ------------------
 1890|      0|        return SSL_R_UNSUPPORTED_PROTOCOL;
  ------------------
  |  |  362|      0|#define SSL_R_UNSUPPORTED_PROTOCOL 258
  ------------------
 1891|  7.52k|    if ((method->flags & SSL_METHOD_NO_SUITEB) != 0 && tls1_suiteb(s))
  ------------------
  |  | 2265|  7.52k|#define SSL_METHOD_NO_SUITEB (1U << 1)
  ------------------
                  if ((method->flags & SSL_METHOD_NO_SUITEB) != 0 && tls1_suiteb(s))
  ------------------
  |  | 2035|      0|#define tls1_suiteb(s) (s->cert->cert_flags & SSL_CERT_FLAG_SUITEB_128_LOS)
  |  |  ------------------
  |  |  |  |  584|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
  |  |  ------------------
  |  |  |  Branch (2035:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1891:9): [True: 0, False: 7.52k]
  ------------------
 1892|      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
  ------------------
 1893|       |
 1894|  7.52k|    return 0;
 1895|  7.52k|}

tls1_default_timeout:
   99|    347|{
  100|       |    /*
  101|       |     * 2 hours, the 24 hours mentioned in the TLSv1 spec is way too long for
  102|       |     * http, the cache would over fill
  103|       |     */
  104|    347|    return ossl_seconds2time(60 * 60 * 2);
  ------------------
  |  |   42|    347|#define ossl_seconds2time(s) ossl_ticks2time((s) * OSSL_TIME_SECOND)
  |  |  ------------------
  |  |  |  |   31|    347|#define OSSL_TIME_SECOND ((uint64_t)1000000000)
  |  |  ------------------
  ------------------
  105|    347|}
tls1_new:
  108|    347|{
  109|    347|    if (!ssl3_new(s))
  ------------------
  |  Branch (109:9): [True: 0, False: 347]
  ------------------
  110|      0|        return 0;
  111|    347|    if (!s->method->ssl_clear(s))
  ------------------
  |  Branch (111:9): [True: 0, False: 347]
  ------------------
  112|      0|        return 0;
  113|       |
  114|    347|    return 1;
  115|    347|}
tls1_free:
  118|    347|{
  119|    347|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|    347|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|    347|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 347]
  |  |  |  |  ------------------
  |  |  |  |   33|    347|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|    347|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 347, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|    347|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|    347|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1231:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
  120|       |
  121|    347|    if (sc == NULL)
  ------------------
  |  Branch (121:9): [True: 0, False: 347]
  ------------------
  122|      0|        return;
  123|       |
  124|    347|    OPENSSL_free(sc->ext.session_ticket);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  125|    347|    ssl3_free(s);
  126|    347|}
tls1_clear:
  129|  1.38k|{
  130|  1.38k|    SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
  ------------------
  |  |   39|  1.38k|    SSL_CONNECTION_FROM_SSL_int(ssl, SSL_CONNECTION_NO_CONST)
  |  |  ------------------
  |  |  |  |   32|  1.38k|    ((ssl) == NULL ? NULL                                                                                          \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (32:6): [True: 0, False: 1.38k]
  |  |  |  |  ------------------
  |  |  |  |   33|  1.38k|                   : ((ssl)->type == SSL_TYPE_SSL_CONNECTION                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1225|  1.38k|#define SSL_TYPE_SSL_CONNECTION 0
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (33:23): [True: 1.38k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   34|  1.38k|                             ? (c SSL_CONNECTION *)(ssl)                                                           \
  |  |  |  |   35|  1.38k|                             : (SSL_TYPE_IS_QUIC((ssl)->type)                                                      \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|#define SSL_TYPE_IS_QUIC(x) (((x) & 0x80) != 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1231:29): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   36|      0|                                       ? (c SSL_CONNECTION *)ossl_quic_obj_get0_handshake_layer((QUIC_OBJ *)(ssl)) \
  |  |  |  |   37|      0|                                       : NULL)))
  |  |  ------------------
  ------------------
  131|       |
  132|  1.38k|    if (sc == NULL)
  ------------------
  |  Branch (132:9): [True: 0, False: 1.38k]
  ------------------
  133|      0|        return 0;
  134|       |
  135|  1.38k|    if (!ssl3_clear(s))
  ------------------
  |  Branch (135:9): [True: 0, False: 1.38k]
  ------------------
  136|      0|        return 0;
  137|       |
  138|  1.38k|    if (s->method->version == TLS_ANY_VERSION)
  ------------------
  |  |   40|  1.38k|#define TLS_ANY_VERSION 0x10000
  ------------------
  |  Branch (138:9): [True: 1.38k, False: 0]
  ------------------
  139|  1.38k|        sc->version = TLS_MAX_VERSION_INTERNAL;
  ------------------
  |  |   54|  1.38k|#define TLS_MAX_VERSION_INTERNAL TLS1_3_VERSION
  |  |  ------------------
  |  |  |  |   27|  1.38k|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  ------------------
  140|      0|    else
  141|      0|        sc->version = s->method->version;
  142|       |
  143|  1.38k|    return 1;
  144|  1.38k|}
ssl_load_groups:
  382|    347|{
  383|    347|    if (!OSSL_PROVIDER_do_all(ctx->libctx, discover_provider_groups, ctx))
  ------------------
  |  Branch (383:9): [True: 0, False: 347]
  ------------------
  384|      0|        return 0;
  385|       |
  386|    347|    return SSL_CTX_set1_groups_list(ctx, TLS_DEFAULT_GROUP_LIST);
  ------------------
  |  | 1531|    347|    SSL_CTX_ctrl(ctx, SSL_CTRL_SET_GROUPS_LIST, 0, (char *)(s))
  |  |  ------------------
  |  |  |  | 1379|    347|#define SSL_CTRL_SET_GROUPS_LIST 92
  |  |  ------------------
  ------------------
  387|    347|}
ssl_load_sigalgs:
  696|    347|{
  697|    347|    size_t i;
  698|    347|    SSL_CERT_LOOKUP lu;
  699|       |
  700|    347|    if (!OSSL_PROVIDER_do_all(ctx->libctx, discover_provider_sigalgs, ctx))
  ------------------
  |  Branch (700:9): [True: 0, False: 347]
  ------------------
  701|      0|        return 0;
  702|       |
  703|       |    /* now populate ctx->ssl_cert_info */
  704|    347|    if (ctx->sigalg_list_len > 0) {
  ------------------
  |  Branch (704:9): [True: 347, False: 0]
  ------------------
  705|    347|        OPENSSL_free(ctx->ssl_cert_info);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  706|    347|        ctx->ssl_cert_info = OPENSSL_calloc(ctx->sigalg_list_len, sizeof(lu));
  ------------------
  |  |  113|    347|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  707|    347|        if (ctx->ssl_cert_info == NULL)
  ------------------
  |  Branch (707:13): [True: 0, False: 347]
  ------------------
  708|      0|            return 0;
  709|  1.73k|        for (i = 0; i < ctx->sigalg_list_len; i++) {
  ------------------
  |  Branch (709:21): [True: 1.38k, False: 347]
  ------------------
  710|  1.38k|            const char *keytype = inferred_keytype(&ctx->sigalg_list[i]);
  711|  1.38k|            ctx->ssl_cert_info[i].pkey_nid = OBJ_txt2nid(keytype);
  712|  1.38k|            ctx->ssl_cert_info[i].amask = SSL_aANY;
  ------------------
  |  |  128|  1.38k|#define SSL_aANY 0x00000000U
  ------------------
  713|  1.38k|        }
  714|    347|    }
  715|       |
  716|       |    /*
  717|       |     * For now, leave it at this: legacy sigalgs stay in their own
  718|       |     * data structures until "legacy cleanup" occurs.
  719|       |     */
  720|       |
  721|    347|    return 1;
  722|    347|}
tls1_group_id_lookup:
  738|  16.7k|{
  739|  16.7k|    size_t i;
  740|       |
  741|   150k|    for (i = 0; i < ctx->group_list_len; i++) {
  ------------------
  |  Branch (741:17): [True: 150k, False: 0]
  ------------------
  742|   150k|        if (ctx->group_list[i].group_id == group_id)
  ------------------
  |  Branch (742:13): [True: 16.7k, False: 134k]
  ------------------
  743|  16.7k|            return &ctx->group_list[i];
  744|   150k|    }
  745|       |
  746|      0|    return NULL;
  747|  16.7k|}
tls1_group_id2nid:
  760|  5.47k|{
  761|  5.47k|    size_t i;
  762|       |
  763|  5.47k|    if (group_id == 0)
  ------------------
  |  Branch (763:9): [True: 0, False: 5.47k]
  ------------------
  764|      0|        return NID_undef;
  ------------------
  |  |   18|      0|#define NID_undef                       0
  ------------------
  765|       |
  766|       |    /*
  767|       |     * Return well known Group NIDs - for backwards compatibility. This won't
  768|       |     * work for groups we don't know about.
  769|       |     */
  770|   195k|    for (i = 0; i < OSSL_NELEM(nid_to_group); i++) {
  ------------------
  |  |   14|   195k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (770:17): [True: 193k, False: 1.71k]
  ------------------
  771|   193k|        if (nid_to_group[i].group_id == group_id)
  ------------------
  |  Branch (771:13): [True: 3.76k, False: 190k]
  ------------------
  772|  3.76k|            return nid_to_group[i].nid;
  773|   193k|    }
  774|  1.71k|    if (!include_unknown)
  ------------------
  |  Branch (774:9): [True: 1.71k, False: 0]
  ------------------
  775|  1.71k|        return NID_undef;
  ------------------
  |  |   18|  1.71k|#define NID_undef                       0
  ------------------
  776|      0|    return TLSEXT_nid_unknown | (int)group_id;
  ------------------
  |  |  227|      0|#define TLSEXT_nid_unknown 0x1000000
  ------------------
  777|  1.71k|}
tls1_get_supported_groups:
  801|  1.36k|{
  802|  1.36k|    SSL_CTX *sctx = SSL_CONNECTION_GET_CTX(s);
  ------------------
  |  |   26|  1.36k|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
  803|       |
  804|       |    /* For Suite B mode only include P-256, P-384 */
  805|  1.36k|    switch (tls1_suiteb(s)) {
  ------------------
  |  | 2035|  1.36k|#define tls1_suiteb(s) (s->cert->cert_flags & SSL_CERT_FLAG_SUITEB_128_LOS)
  |  |  ------------------
  |  |  |  |  584|  1.36k|#define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
  |  |  ------------------
  ------------------
  806|      0|    case SSL_CERT_FLAG_SUITEB_128_LOS:
  ------------------
  |  |  584|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
  ------------------
  |  Branch (806:5): [True: 0, False: 1.36k]
  ------------------
  807|      0|        *pgroups = suiteb_curves;
  808|      0|        *pgroupslen = OSSL_NELEM(suiteb_curves);
  ------------------
  |  |   14|      0|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  809|      0|        break;
  810|       |
  811|      0|    case SSL_CERT_FLAG_SUITEB_128_LOS_ONLY:
  ------------------
  |  |  580|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS_ONLY 0x10000
  ------------------
  |  Branch (811:5): [True: 0, False: 1.36k]
  ------------------
  812|      0|        *pgroups = suiteb_curves;
  813|      0|        *pgroupslen = 1;
  814|      0|        break;
  815|       |
  816|      0|    case SSL_CERT_FLAG_SUITEB_192_LOS:
  ------------------
  |  |  582|      0|#define SSL_CERT_FLAG_SUITEB_192_LOS 0x20000
  ------------------
  |  Branch (816:5): [True: 0, False: 1.36k]
  ------------------
  817|      0|        *pgroups = suiteb_curves + 1;
  818|      0|        *pgroupslen = 1;
  819|      0|        break;
  820|       |
  821|  1.36k|    default:
  ------------------
  |  Branch (821:5): [True: 1.36k, False: 0]
  ------------------
  822|  1.36k|        if (s->ext.supportedgroups == NULL) {
  ------------------
  |  Branch (822:13): [True: 0, False: 1.36k]
  ------------------
  823|      0|            *pgroups = sctx->ext.supportedgroups;
  824|      0|            *pgroupslen = sctx->ext.supportedgroups_len;
  825|  1.36k|        } else {
  826|  1.36k|            *pgroups = s->ext.supportedgroups;
  827|  1.36k|            *pgroupslen = s->ext.supportedgroups_len;
  828|  1.36k|        }
  829|  1.36k|        break;
  830|  1.36k|    }
  831|  1.36k|}
tls1_get_requested_keyshare_groups:
  848|    342|{
  849|    342|    SSL_CTX *sctx = SSL_CONNECTION_GET_CTX(s);
  ------------------
  |  |   26|    342|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
  850|       |
  851|    342|    if (s->ext.supportedgroups == NULL) {
  ------------------
  |  Branch (851:9): [True: 0, False: 342]
  ------------------
  852|      0|        *pgroups = sctx->ext.supportedgroups;
  853|      0|        *pgroupslen = sctx->ext.supportedgroups_len;
  854|    342|    } else {
  855|    342|        *pgroups = s->ext.keyshares;
  856|    342|        *pgroupslen = s->ext.keyshares_len;
  857|    342|    }
  858|    342|}
tls_valid_group:
  877|  10.6k|{
  878|  10.6k|    const TLS_GROUP_INFO *ginfo = tls1_group_id_lookup(SSL_CONNECTION_GET_CTX(s),
  ------------------
  |  |   26|  10.6k|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
  879|  10.6k|        group_id);
  880|  10.6k|    int ret = 0;
  881|  10.6k|    int group_minversion, group_maxversion;
  882|       |
  883|  10.6k|    if (okfortls13 != NULL)
  ------------------
  |  Branch (883:9): [True: 3.76k, False: 6.84k]
  ------------------
  884|  3.76k|        *okfortls13 = 0;
  885|       |
  886|  10.6k|    if (ginfo == NULL)
  ------------------
  |  Branch (886:9): [True: 0, False: 10.6k]
  ------------------
  887|      0|        goto end;
  888|       |
  889|  10.6k|    group_minversion = SSL_CONNECTION_IS_DTLS(s) ? ginfo->mindtls : ginfo->mintls;
  ------------------
  |  |  266|  10.6k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  10.6k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|  10.6k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 0, False: 10.6k]
  |  |  ------------------
  ------------------
  890|  10.6k|    group_maxversion = SSL_CONNECTION_IS_DTLS(s) ? ginfo->maxdtls : ginfo->maxtls;
  ------------------
  |  |  266|  10.6k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  10.6k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|  10.6k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 0, False: 10.6k]
  |  |  ------------------
  ------------------
  891|       |
  892|  10.6k|    if (group_minversion < 0 || group_maxversion < 0)
  ------------------
  |  Branch (892:9): [True: 0, False: 10.6k]
  |  Branch (892:33): [True: 0, False: 10.6k]
  ------------------
  893|      0|        goto end;
  894|  10.6k|    if (group_maxversion == 0)
  ------------------
  |  Branch (894:9): [True: 10.6k, False: 0]
  ------------------
  895|  10.6k|        ret = 1;
  896|      0|    else
  897|      0|        ret = (ssl_version_cmp(s, minversion, group_maxversion) <= 0);
  898|  10.6k|    if (group_minversion > 0)
  ------------------
  |  Branch (898:9): [True: 10.6k, False: 0]
  ------------------
  899|  10.6k|        ret &= (ssl_version_cmp(s, maxversion, group_minversion) >= 0);
  900|       |
  901|  10.6k|    if (!SSL_CONNECTION_IS_DTLS(s)) {
  ------------------
  |  |  266|  10.6k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  10.6k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|  10.6k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  ------------------
  |  Branch (901:9): [True: 10.6k, False: 0]
  ------------------
  902|  10.6k|        if (ret && okfortls13 != NULL && maxversion == TLS1_3_VERSION)
  ------------------
  |  |   27|  3.76k|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (902:13): [True: 10.6k, False: 0]
  |  Branch (902:20): [True: 3.76k, False: 6.84k]
  |  Branch (902:42): [True: 3.76k, False: 0]
  ------------------
  903|  3.76k|            *okfortls13 = (group_maxversion == 0)
  ------------------
  |  Branch (903:27): [True: 3.76k, False: 0]
  ------------------
  904|      0|                || (group_maxversion >= TLS1_3_VERSION);
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (904:20): [True: 0, False: 0]
  ------------------
  905|  10.6k|    }
  906|  10.6k|end:
  907|  10.6k|    if (giptr != NULL)
  ------------------
  |  Branch (907:9): [True: 9.91k, False: 684]
  ------------------
  908|  9.91k|        *giptr = ginfo;
  909|  10.6k|    return ret;
  910|  10.6k|}
tls_group_allowed:
  914|  5.47k|{
  915|  5.47k|    const TLS_GROUP_INFO *ginfo = tls1_group_id_lookup(SSL_CONNECTION_GET_CTX(s),
  ------------------
  |  |   26|  5.47k|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
  916|  5.47k|        group);
  917|  5.47k|    unsigned char gtmp[2];
  918|       |
  919|  5.47k|    if (ginfo == NULL)
  ------------------
  |  Branch (919:9): [True: 0, False: 5.47k]
  ------------------
  920|      0|        return 0;
  921|       |
  922|  5.47k|    gtmp[0] = group >> 8;
  923|  5.47k|    gtmp[1] = group & 0xff;
  924|  5.47k|    return ssl_security(s, op, ginfo->secbits,
  925|  5.47k|        tls1_group_id2nid(ginfo->group_id, 0), (void *)gtmp);
  926|  5.47k|}
tls1_set_groups_list:
 1716|    347|{
 1717|    347|    size_t i = 0, j;
 1718|    347|    int ret = 0, parse_ret = 0;
 1719|    347|    gid_cb_st gcb;
 1720|       |
 1721|       |    /* Sanity check */
 1722|    347|    if (ctx == NULL) {
  ------------------
  |  Branch (1722:9): [True: 0, False: 347]
  ------------------
 1723|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_NULL_PARAMETER);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1724|      0|        return 0;
 1725|      0|    }
 1726|       |
 1727|    347|    memset(&gcb, 0, sizeof(gcb));
 1728|    347|    gcb.gidmax = GROUPLIST_INCREMENT;
  ------------------
  |  | 1215|    347|#define GROUPLIST_INCREMENT 32 /* Memory allocation chunk size (64 Bytes chunks ~= cache line) */
  ------------------
 1729|    347|    gcb.tplmax = GROUPLIST_INCREMENT;
  ------------------
  |  | 1215|    347|#define GROUPLIST_INCREMENT 32 /* Memory allocation chunk size (64 Bytes chunks ~= cache line) */
  ------------------
 1730|    347|    gcb.ksidmax = GROUPLIST_INCREMENT;
  ------------------
  |  | 1215|    347|#define GROUPLIST_INCREMENT 32 /* Memory allocation chunk size (64 Bytes chunks ~= cache line) */
  ------------------
 1731|    347|    gcb.ctx = ctx;
 1732|       |
 1733|       |    /* Prepare initial chunks of memory for groups, tuples and keyshares groupIDs */
 1734|    347|    gcb.gid_arr = OPENSSL_malloc_array(gcb.gidmax, sizeof(*gcb.gid_arr));
  ------------------
  |  |  111|    347|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1735|    347|    if (gcb.gid_arr == NULL)
  ------------------
  |  Branch (1735:9): [True: 0, False: 347]
  ------------------
 1736|      0|        goto end;
 1737|    347|    gcb.tuplcnt_arr = OPENSSL_malloc_array(gcb.tplmax, sizeof(*gcb.tuplcnt_arr));
  ------------------
  |  |  111|    347|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1738|    347|    if (gcb.tuplcnt_arr == NULL)
  ------------------
  |  Branch (1738:9): [True: 0, False: 347]
  ------------------
 1739|      0|        goto end;
 1740|    347|    gcb.tuplcnt_arr[0] = 0;
 1741|    347|    gcb.ksid_arr = OPENSSL_malloc_array(gcb.ksidmax, sizeof(*gcb.ksid_arr));
  ------------------
  |  |  111|    347|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1742|    347|    if (gcb.ksid_arr == NULL)
  ------------------
  |  Branch (1742:9): [True: 0, False: 347]
  ------------------
 1743|      0|        goto end;
 1744|       |
 1745|    347|    while (str[0] != '\0' && isspace((unsigned char)*str))
  ------------------
  |  Branch (1745:12): [True: 347, False: 0]
  |  Branch (1745:30): [True: 0, False: 347]
  ------------------
 1746|      0|        str++;
 1747|    347|    if (str[0] == '\0')
  ------------------
  |  Branch (1747:9): [True: 0, False: 347]
  ------------------
 1748|      0|        goto empty_list;
 1749|       |
 1750|       |    /*
 1751|       |     * Start the (potentially recursive) tuple processing by calling CONF_parse_list
 1752|       |     * with the TUPLE_DELIMITER_CHARACTER (which will call tuple_cb after cleaning spaces)
 1753|       |     */
 1754|    347|    parse_ret = CONF_parse_list(str, TUPLE_DELIMITER_CHARACTER, 1, tuple_cb, &gcb);
  ------------------
  |  | 1226|    347|#define TUPLE_DELIMITER_CHARACTER '/'
  ------------------
 1755|       |
 1756|    347|    if (parse_ret == 0)
  ------------------
  |  Branch (1756:9): [True: 0, False: 347]
  ------------------
 1757|      0|        goto end;
 1758|    347|    if (parse_ret == -1) {
  ------------------
  |  Branch (1758:9): [True: 0, False: 347]
  ------------------
 1759|      0|        ERR_raise_data(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |   70|      0|#define ERR_LIB_SSL 20
  ------------------
                      ERR_raise_data(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |  311|      0|#define ERR_R_PASSED_INVALID_ARGUMENT (262 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  220|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  211|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1760|      0|            "Syntax error in '%s'", str);
 1761|      0|        goto end;
 1762|      0|    }
 1763|       |
 1764|       |    /*
 1765|       |     * We check whether a tuple was completely emptied by using "-" prefix
 1766|       |     * excessively, in which case we remove the tuple
 1767|       |     */
 1768|  2.08k|    for (i = j = 0; j < gcb.tplcnt; j++) {
  ------------------
  |  Branch (1768:21): [True: 1.73k, False: 347]
  ------------------
 1769|  1.73k|        if (gcb.tuplcnt_arr[j] == 0)
  ------------------
  |  Branch (1769:13): [True: 0, False: 1.73k]
  ------------------
 1770|      0|            continue;
 1771|       |        /* If there's a gap, move to first unfilled slot */
 1772|  1.73k|        if (j == i)
  ------------------
  |  Branch (1772:13): [True: 1.73k, False: 0]
  ------------------
 1773|  1.73k|            ++i;
 1774|      0|        else
 1775|      0|            gcb.tuplcnt_arr[i++] = gcb.tuplcnt_arr[j];
 1776|  1.73k|    }
 1777|    347|    gcb.tplcnt = i;
 1778|       |
 1779|    347|    if (gcb.ksidcnt > OPENSSL_CLIENT_MAX_KEY_SHARES) {
  ------------------
  |  |   28|    347|#define OPENSSL_CLIENT_MAX_KEY_SHARES 4
  ------------------
  |  Branch (1779:9): [True: 0, False: 347]
  ------------------
 1780|      0|        ERR_raise_data(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  ------------------
  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  ------------------
  |  |  361|      0|        ERR_set_error)
  ------------------
                      ERR_raise_data(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |   70|      0|#define ERR_LIB_SSL 20
  ------------------
                      ERR_raise_data(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT,
  ------------------
  |  |  311|      0|#define ERR_R_PASSED_INVALID_ARGUMENT (262 | ERR_RFLAG_COMMON)
  |  |  ------------------
  |  |  |  |  220|      0|#define ERR_RFLAG_COMMON (0x2 << ERR_RFLAGS_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |  211|      0|#define ERR_RFLAGS_OFFSET 18L
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1781|      0|            "To many keyshares requested in '%s' (max = %d)",
 1782|      0|            str, OPENSSL_CLIENT_MAX_KEY_SHARES);
  ------------------
  |  |   28|      0|#define OPENSSL_CLIENT_MAX_KEY_SHARES 4
  ------------------
 1783|      0|        goto end;
 1784|      0|    }
 1785|       |
 1786|       |    /*
 1787|       |     * For backward compatibility we let the rest of the code know that a key share
 1788|       |     * for the first valid group should be added if no "*" prefix was used anywhere
 1789|       |     */
 1790|    347|    if (gcb.gidcnt > 0 && gcb.ksidcnt == 0) {
  ------------------
  |  Branch (1790:9): [True: 347, False: 0]
  |  Branch (1790:27): [True: 0, False: 347]
  ------------------
 1791|       |        /*
 1792|       |         * No key share group prefix character was used, hence we indicate that a single
 1793|       |         * key share should be sent and flag that it should come from the supported_groups list
 1794|       |         */
 1795|      0|        gcb.ksidcnt = 1;
 1796|      0|        gcb.ksid_arr[0] = 0;
 1797|      0|    }
 1798|       |
 1799|    347|empty_list:
 1800|       |    /*
 1801|       |     * A call to tls1_set_groups_list with any of the args (other than ctx) set
 1802|       |     * to NULL only does a syntax check, hence we're done here and report success
 1803|       |     */
 1804|    347|    if (grpext == NULL || ksext == NULL || tplext == NULL || grpextlen == NULL || ksextlen == NULL || tplextlen == NULL) {
  ------------------
  |  Branch (1804:9): [True: 0, False: 347]
  |  Branch (1804:27): [True: 0, False: 347]
  |  Branch (1804:44): [True: 0, False: 347]
  |  Branch (1804:62): [True: 0, False: 347]
  |  Branch (1804:83): [True: 0, False: 347]
  |  Branch (1804:103): [True: 0, False: 347]
  ------------------
 1805|      0|        ret = 1;
 1806|      0|        goto end;
 1807|      0|    }
 1808|       |
 1809|       |    /*
 1810|       |     * tuple_cb and gid_cb combo ensures there are no duplicates or unknown groups so we
 1811|       |     * can just go ahead and set the results (after disposing the existing)
 1812|       |     */
 1813|    347|    OPENSSL_free(*grpext);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1814|    347|    *grpext = gcb.gid_arr;
 1815|    347|    *grpextlen = gcb.gidcnt;
 1816|    347|    OPENSSL_free(*ksext);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1817|    347|    *ksext = gcb.ksid_arr;
 1818|    347|    *ksextlen = gcb.ksidcnt;
 1819|    347|    OPENSSL_free(*tplext);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1820|    347|    *tplext = gcb.tuplcnt_arr;
 1821|    347|    *tplextlen = gcb.tplcnt;
 1822|       |
 1823|    347|    return 1;
 1824|       |
 1825|      0|end:
 1826|      0|    OPENSSL_free(gcb.gid_arr);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1827|      0|    OPENSSL_free(gcb.tuplcnt_arr);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1828|      0|    OPENSSL_free(gcb.ksid_arr);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1829|      0|    return ret;
 1830|    347|}
tls1_get_formatlist:
 1888|    342|{
 1889|       |    /*
 1890|       |     * If we have a custom point format list use it otherwise use default
 1891|       |     */
 1892|    342|    if (s->ext.ecpointformats) {
  ------------------
  |  Branch (1892:9): [True: 0, False: 342]
  ------------------
 1893|      0|        *pformats = s->ext.ecpointformats;
 1894|      0|        *num_formats = s->ext.ecpointformats_len;
 1895|    342|    } else if ((s->options & SSL_OP_LEGACY_EC_POINT_FORMATS) != 0) {
  ------------------
  |  |  456|    342|#define SSL_OP_LEGACY_EC_POINT_FORMATS SSL_OP_BIT(36)
  |  |  ------------------
  |  |  |  |  351|    342|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (1895:16): [True: 0, False: 342]
  ------------------
 1896|      0|        *pformats = ecformats_all;
 1897|       |        /* For Suite B we don't support char2 fields */
 1898|      0|        if (tls1_suiteb(s))
  ------------------
  |  | 2035|      0|#define tls1_suiteb(s) (s->cert->cert_flags & SSL_CERT_FLAG_SUITEB_128_LOS)
  |  |  ------------------
  |  |  |  |  584|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
  |  |  ------------------
  |  |  |  Branch (2035:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1899|      0|            *num_formats = sizeof(ecformats_all) - 1;
 1900|      0|        else
 1901|      0|            *num_formats = sizeof(ecformats_all);
 1902|    342|    } else {
 1903|    342|        *pformats = ecformats_default;
 1904|    342|        *num_formats = sizeof(ecformats_default);
 1905|    342|    }
 1906|    342|}
ssl_setup_sigalgs:
 2337|    347|{
 2338|    347|    size_t i, cache_idx, sigalgs_len, enabled;
 2339|    347|    const SIGALG_LOOKUP *lu;
 2340|    347|    SIGALG_LOOKUP *cache = NULL;
 2341|    347|    uint16_t *tls12_sigalgs_list = NULL;
 2342|    347|    EVP_PKEY *tmpkey = EVP_PKEY_new();
 2343|    347|    int istls;
 2344|    347|    int ret = 0;
 2345|       |
 2346|    347|    if (ctx == NULL)
  ------------------
  |  Branch (2346:9): [True: 0, False: 347]
  ------------------
 2347|      0|        goto err;
 2348|       |
 2349|    347|    istls = !SSL_CTX_IS_DTLS(ctx);
  ------------------
  |  |  270|    347|    (ctx->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|    347|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  ------------------
 2350|       |
 2351|    347|    sigalgs_len = OSSL_NELEM(sigalg_lookup_tbl) + ctx->sigalg_list_len;
  ------------------
  |  |   14|    347|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
 2352|       |
 2353|    347|    cache = OPENSSL_calloc(sigalgs_len, sizeof(const SIGALG_LOOKUP));
  ------------------
  |  |  113|    347|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 2354|    347|    if (cache == NULL || tmpkey == NULL)
  ------------------
  |  Branch (2354:9): [True: 0, False: 347]
  |  Branch (2354:26): [True: 0, False: 347]
  ------------------
 2355|      0|        goto err;
 2356|       |
 2357|    347|    tls12_sigalgs_list = OPENSSL_calloc(sigalgs_len, sizeof(uint16_t));
  ------------------
  |  |  113|    347|    CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_calloc(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 2358|    347|    if (tls12_sigalgs_list == NULL)
  ------------------
  |  Branch (2358:9): [True: 0, False: 347]
  ------------------
 2359|      0|        goto err;
 2360|       |
 2361|    347|    ERR_set_mark();
 2362|       |    /* First fill cache and tls12_sigalgs list from legacy algorithm list */
 2363|    347|    for (i = 0, lu = sigalg_lookup_tbl;
 2364|  11.1k|        i < OSSL_NELEM(sigalg_lookup_tbl); lu++, i++) {
  ------------------
  |  |   14|  11.1k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (2364:9): [True: 10.7k, False: 347]
  ------------------
 2365|  10.7k|        EVP_PKEY_CTX *pctx;
 2366|       |
 2367|  10.7k|        cache[i] = *lu;
 2368|       |
 2369|       |        /*
 2370|       |         * Check hash is available.
 2371|       |         * This test is not perfect. A provider could have support
 2372|       |         * for a signature scheme, but not a particular hash. However the hash
 2373|       |         * could be available from some other loaded provider. In that case it
 2374|       |         * could be that the signature is available, and the hash is available
 2375|       |         * independently - but not as a combination. We ignore this for now.
 2376|       |         */
 2377|  10.7k|        if (lu->hash != NID_undef
  ------------------
  |  |   18|  21.5k|#define NID_undef                       0
  ------------------
  |  Branch (2377:13): [True: 10.0k, False: 694]
  ------------------
 2378|  10.0k|            && ctx->ssl_digest_methods[lu->hash_idx] == NULL) {
  ------------------
  |  Branch (2378:16): [True: 1.73k, False: 8.32k]
  ------------------
 2379|  1.73k|            cache[i].available = 0;
 2380|  1.73k|            continue;
 2381|  1.73k|        }
 2382|       |
 2383|  9.02k|        if (!EVP_PKEY_set_type(tmpkey, lu->sig)) {
  ------------------
  |  Branch (2383:13): [True: 0, False: 9.02k]
  ------------------
 2384|      0|            cache[i].available = 0;
 2385|      0|            continue;
 2386|      0|        }
 2387|  9.02k|        pctx = EVP_PKEY_CTX_new_from_pkey(ctx->libctx, tmpkey, ctx->propq);
 2388|       |        /* If unable to create pctx we assume the sig algorithm is unavailable */
 2389|  9.02k|        if (pctx == NULL)
  ------------------
  |  Branch (2389:13): [True: 0, False: 9.02k]
  ------------------
 2390|      0|            cache[i].available = 0;
 2391|  9.02k|        EVP_PKEY_CTX_free(pctx);
 2392|  9.02k|    }
 2393|       |
 2394|       |    /* Now complete cache and tls12_sigalgs list with provider sig information */
 2395|    347|    cache_idx = OSSL_NELEM(sigalg_lookup_tbl);
  ------------------
  |  |   14|    347|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
 2396|  1.73k|    for (i = 0; i < ctx->sigalg_list_len; i++) {
  ------------------
  |  Branch (2396:17): [True: 1.38k, False: 347]
  ------------------
 2397|  1.38k|        TLS_SIGALG_INFO si = ctx->sigalg_list[i];
 2398|  1.38k|        cache[cache_idx].name = si.name;
 2399|  1.38k|        cache[cache_idx].name12 = si.sigalg_name;
 2400|  1.38k|        cache[cache_idx].sigalg = si.code_point;
 2401|  1.38k|        tls12_sigalgs_list[cache_idx] = si.code_point;
 2402|  1.38k|        cache[cache_idx].hash = si.hash_name ? OBJ_txt2nid(si.hash_name) : NID_undef;
  ------------------
  |  |   18|  2.77k|#define NID_undef                       0
  ------------------
  |  Branch (2402:33): [True: 0, False: 1.38k]
  ------------------
 2403|  1.38k|        cache[cache_idx].hash_idx = ssl_get_md_idx(cache[cache_idx].hash);
 2404|  1.38k|        cache[cache_idx].sig = OBJ_txt2nid(si.sigalg_name);
 2405|  1.38k|        cache[cache_idx].sig_idx = (int)(i + SSL_PKEY_NUM);
  ------------------
  |  |  336|  1.38k|#define SSL_PKEY_NUM 9
  ------------------
 2406|  1.38k|        cache[cache_idx].sigandhash = OBJ_txt2nid(si.sigalg_name);
 2407|  1.38k|        cache[cache_idx].curve = NID_undef;
  ------------------
  |  |   18|  1.38k|#define NID_undef                       0
  ------------------
 2408|  1.38k|        cache[cache_idx].mintls = TLS1_3_VERSION;
  ------------------
  |  |   27|  1.38k|#define TLS1_3_VERSION 0x0304
  ------------------
 2409|  1.38k|        cache[cache_idx].maxtls = TLS1_3_VERSION;
  ------------------
  |  |   27|  1.38k|#define TLS1_3_VERSION 0x0304
  ------------------
 2410|  1.38k|        cache[cache_idx].mindtls = -1;
 2411|  1.38k|        cache[cache_idx].maxdtls = -1;
 2412|       |        /* Compatibility with TLS 1.3 is checked on load */
 2413|  1.38k|        cache[cache_idx].available = istls;
 2414|  1.38k|        cache[cache_idx].advertise = 0;
 2415|  1.38k|        cache_idx++;
 2416|  1.38k|    }
 2417|    347|    ERR_pop_to_mark();
 2418|       |
 2419|    347|    enabled = 0;
 2420|  12.1k|    for (i = 0; i < OSSL_NELEM(tls12_sigalgs); ++i) {
  ------------------
  |  |   14|  12.1k|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (2420:17): [True: 11.7k, False: 347]
  ------------------
 2421|  11.7k|        SIGALG_LOOKUP *ent = cache;
 2422|  11.7k|        size_t j;
 2423|       |
 2424|   206k|        for (j = 0; j < sigalgs_len; ent++, j++) {
  ------------------
  |  Branch (2424:21): [True: 206k, False: 0]
  ------------------
 2425|   206k|            if (ent->sigalg != tls12_sigalgs[i])
  ------------------
  |  Branch (2425:17): [True: 194k, False: 11.7k]
  ------------------
 2426|   194k|                continue;
 2427|       |            /* Dedup by marking cache entry as default enabled. */
 2428|  11.7k|            if (ent->available && !ent->advertise) {
  ------------------
  |  Branch (2428:17): [True: 10.0k, False: 1.73k]
  |  Branch (2428:35): [True: 10.0k, False: 0]
  ------------------
 2429|  10.0k|                ent->advertise = 1;
 2430|  10.0k|                tls12_sigalgs_list[enabled++] = tls12_sigalgs[i];
 2431|  10.0k|            }
 2432|  11.7k|            break;
 2433|   206k|        }
 2434|  11.7k|    }
 2435|       |
 2436|       |    /* Append any provider sigalgs not yet handled */
 2437|  1.73k|    for (i = OSSL_NELEM(sigalg_lookup_tbl); i < sigalgs_len; ++i) {
  ------------------
  |  |   14|    347|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (2437:45): [True: 1.38k, False: 347]
  ------------------
 2438|  1.38k|        SIGALG_LOOKUP *ent = &cache[i];
 2439|       |
 2440|  1.38k|        if (ent->available && !ent->advertise)
  ------------------
  |  Branch (2440:13): [True: 1.38k, False: 0]
  |  Branch (2440:31): [True: 347, False: 1.04k]
  ------------------
 2441|    347|            tls12_sigalgs_list[enabled++] = ent->sigalg;
 2442|  1.38k|    }
 2443|       |
 2444|    347|    ctx->sigalg_lookup_cache = cache;
 2445|    347|    ctx->sigalg_lookup_cache_len = sigalgs_len;
 2446|    347|    ctx->tls12_sigalgs = tls12_sigalgs_list;
 2447|    347|    ctx->tls12_sigalgs_len = enabled;
 2448|    347|    cache = NULL;
 2449|    347|    tls12_sigalgs_list = NULL;
 2450|       |
 2451|    347|    ret = 1;
 2452|    347|err:
 2453|    347|    OPENSSL_free(cache);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 2454|    347|    OPENSSL_free(tls12_sigalgs_list);
  ------------------
  |  |  132|    347|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 2455|    347|    EVP_PKEY_free(tmpkey);
 2456|    347|    return ret;
 2457|    347|}
tls1_lookup_md:
 2557|  14.3k|{
 2558|  14.3k|    const EVP_MD *md;
 2559|       |
 2560|  14.3k|    if (lu == NULL)
  ------------------
  |  Branch (2560:9): [True: 0, False: 14.3k]
  ------------------
 2561|      0|        return 0;
 2562|       |    /* lu->hash == NID_undef means no associated digest */
 2563|  14.3k|    if (lu->hash == NID_undef) {
  ------------------
  |  |   18|  14.3k|#define NID_undef                       0
  ------------------
  |  Branch (2563:9): [True: 2.05k, False: 12.3k]
  ------------------
 2564|  2.05k|        md = NULL;
 2565|  12.3k|    } else {
 2566|  12.3k|        md = ssl_md(ctx, lu->hash_idx);
 2567|  12.3k|        if (md == NULL)
  ------------------
  |  Branch (2567:13): [True: 0, False: 12.3k]
  ------------------
 2568|      0|            return 0;
 2569|  12.3k|    }
 2570|  14.3k|    if (pmd)
  ------------------
  |  Branch (2570:9): [True: 14.3k, False: 0]
  ------------------
 2571|  14.3k|        *pmd = md;
 2572|  14.3k|    return 1;
 2573|  14.3k|}
tls12_get_psigalgs:
 2694|  1.71k|{
 2695|       |    /*
 2696|       |     * If Suite B mode use Suite B sigalgs only, ignore any other
 2697|       |     * preferences.
 2698|       |     */
 2699|  1.71k|    switch (tls1_suiteb(s)) {
  ------------------
  |  | 2035|  1.71k|#define tls1_suiteb(s) (s->cert->cert_flags & SSL_CERT_FLAG_SUITEB_128_LOS)
  |  |  ------------------
  |  |  |  |  584|  1.71k|#define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
  |  |  ------------------
  |  |  |  Branch (2035:24): [True: 0, False: 1.71k]
  |  |  ------------------
  ------------------
 2700|      0|    case SSL_CERT_FLAG_SUITEB_128_LOS:
  ------------------
  |  |  584|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS 0x30000
  ------------------
  |  Branch (2700:5): [True: 0, False: 1.71k]
  ------------------
 2701|      0|        *psigs = suiteb_sigalgs;
 2702|      0|        return OSSL_NELEM(suiteb_sigalgs);
  ------------------
  |  |   14|      0|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
 2703|       |
 2704|      0|    case SSL_CERT_FLAG_SUITEB_128_LOS_ONLY:
  ------------------
  |  |  580|      0|#define SSL_CERT_FLAG_SUITEB_128_LOS_ONLY 0x10000
  ------------------
  |  Branch (2704:5): [True: 0, False: 1.71k]
  ------------------
 2705|      0|        *psigs = suiteb_sigalgs;
 2706|      0|        return 1;
 2707|       |
 2708|      0|    case SSL_CERT_FLAG_SUITEB_192_LOS:
  ------------------
  |  |  582|      0|#define SSL_CERT_FLAG_SUITEB_192_LOS 0x20000
  ------------------
  |  Branch (2708:5): [True: 0, False: 1.71k]
  ------------------
 2709|      0|        *psigs = suiteb_sigalgs + 1;
 2710|      0|        return 1;
 2711|  1.71k|    }
 2712|       |    /*
 2713|       |     *  We use client_sigalgs (if not NULL) if we're a server
 2714|       |     *  and sending a certificate request or if we're a client and
 2715|       |     *  determining which shared algorithm to use.
 2716|       |     */
 2717|  1.71k|    if ((s->server == sent) && s->cert->client_sigalgs != NULL) {
  ------------------
  |  Branch (2717:9): [True: 0, False: 1.71k]
  |  Branch (2717:32): [True: 0, False: 0]
  ------------------
 2718|      0|        *psigs = s->cert->client_sigalgs;
 2719|      0|        return s->cert->client_sigalgslen;
 2720|  1.71k|    } else if (s->cert->conf_sigalgs) {
  ------------------
  |  Branch (2720:16): [True: 0, False: 1.71k]
  ------------------
 2721|      0|        *psigs = s->cert->conf_sigalgs;
 2722|      0|        return s->cert->conf_sigalgslen;
 2723|  1.71k|    } else {
 2724|  1.71k|        *psigs = SSL_CONNECTION_GET_CTX(s)->tls12_sigalgs;
  ------------------
  |  |   26|  1.71k|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 2725|  1.71k|        return SSL_CONNECTION_GET_CTX(s)->tls12_sigalgs_len;
  ------------------
  |  |   26|  1.71k|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 2726|  1.71k|    }
 2727|  1.71k|}
ssl_set_client_disabled:
 3028|  1.36k|{
 3029|  1.36k|    s->s3.tmp.mask_a = 0;
 3030|  1.36k|    s->s3.tmp.mask_k = 0;
 3031|  1.36k|    ssl_set_sig_mask(&s->s3.tmp.mask_a, s, SSL_SECOP_SIGALG_MASK);
  ------------------
  |  | 2767|  1.36k|#define SSL_SECOP_SIGALG_MASK (14 | SSL_SECOP_OTHER_SIGALG)
  |  |  ------------------
  |  |  |  | 2733|  1.36k|#define SSL_SECOP_OTHER_SIGALG (5 << 16)
  |  |  ------------------
  ------------------
 3032|  1.36k|    if (ssl_get_min_max_version(s, &s->s3.tmp.min_ver,
  ------------------
  |  Branch (3032:9): [True: 0, False: 1.36k]
  ------------------
 3033|  1.36k|            &s->s3.tmp.max_ver, NULL)
 3034|  1.36k|        != 0)
 3035|      0|        return 0;
 3036|  1.36k|#ifndef OPENSSL_NO_PSK
 3037|       |    /* with PSK there must be client callback set */
 3038|  1.36k|    if (!s->psk_client_callback) {
  ------------------
  |  Branch (3038:9): [True: 1.36k, False: 0]
  ------------------
 3039|  1.36k|        s->s3.tmp.mask_a |= SSL_aPSK;
  ------------------
  |  |  120|  1.36k|#define SSL_aPSK 0x00000010U
  ------------------
 3040|  1.36k|        s->s3.tmp.mask_k |= SSL_PSK;
  ------------------
  |  |  105|  1.36k|#define SSL_PSK (SSL_kPSK | SSL_kRSAPSK | SSL_kECDHEPSK | SSL_kDHEPSK)
  |  |  ------------------
  |  |  |  |   91|  1.36k|#define SSL_kPSK 0x00000008U
  |  |  ------------------
  |  |               #define SSL_PSK (SSL_kPSK | SSL_kRSAPSK | SSL_kECDHEPSK | SSL_kDHEPSK)
  |  |  ------------------
  |  |  |  |   97|  1.36k|#define SSL_kRSAPSK 0x00000040U
  |  |  ------------------
  |  |               #define SSL_PSK (SSL_kPSK | SSL_kRSAPSK | SSL_kECDHEPSK | SSL_kDHEPSK)
  |  |  ------------------
  |  |  |  |   98|  1.36k|#define SSL_kECDHEPSK 0x00000080U
  |  |  ------------------
  |  |               #define SSL_PSK (SSL_kPSK | SSL_kRSAPSK | SSL_kECDHEPSK | SSL_kDHEPSK)
  |  |  ------------------
  |  |  |  |   99|  1.36k|#define SSL_kDHEPSK 0x00000100U
  |  |  ------------------
  ------------------
 3041|  1.36k|    }
 3042|  1.36k|#endif /* OPENSSL_NO_PSK */
 3043|  1.36k|#ifndef OPENSSL_NO_SRP
 3044|  1.36k|    if (!(s->srp_ctx.srp_Mask & SSL_kSRP)) {
  ------------------
  |  |   95|  1.36k|#define SSL_kSRP 0x00000020U
  ------------------
  |  Branch (3044:9): [True: 1.36k, False: 0]
  ------------------
 3045|  1.36k|        s->s3.tmp.mask_a |= SSL_aSRP;
  ------------------
  |  |  124|  1.36k|#define SSL_aSRP 0x00000040U
  ------------------
 3046|  1.36k|        s->s3.tmp.mask_k |= SSL_kSRP;
  ------------------
  |  |   95|  1.36k|#define SSL_kSRP 0x00000020U
  ------------------
 3047|  1.36k|    }
 3048|  1.36k|#endif
 3049|  1.36k|    return 1;
 3050|  1.36k|}
ssl_cipher_disabled:
 3063|  82.0k|{
 3064|  82.0k|    int minversion = SSL_CONNECTION_IS_DTLS(s) ? c->min_dtls : c->min_tls;
  ------------------
  |  |  266|  82.0k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  82.0k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|  82.0k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 0, False: 82.0k]
  |  |  ------------------
  ------------------
 3065|  82.0k|    int maxversion = SSL_CONNECTION_IS_DTLS(s) ? c->max_dtls : c->max_tls;
  ------------------
  |  |  266|  82.0k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  82.0k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|  82.0k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 0, False: 82.0k]
  |  |  ------------------
  ------------------
 3066|       |
 3067|  82.0k|    if (c->algorithm_mkey & s->s3.tmp.mask_k
  ------------------
  |  Branch (3067:9): [True: 41.0k, False: 41.0k]
  ------------------
 3068|  41.0k|        || c->algorithm_auth & s->s3.tmp.mask_a)
  ------------------
  |  Branch (3068:12): [True: 0, False: 41.0k]
  ------------------
 3069|  41.0k|        return 1;
 3070|  41.0k|    if (s->s3.tmp.max_ver == 0)
  ------------------
  |  Branch (3070:9): [True: 0, False: 41.0k]
  ------------------
 3071|      0|        return 1;
 3072|       |
 3073|  41.0k|    if (SSL_IS_QUIC_INT_HANDSHAKE(s))
  ------------------
  |  |  312|  41.0k|#define SSL_IS_QUIC_INT_HANDSHAKE(s) (((s)->s3.flags & TLS1_FLAGS_QUIC_INTERNAL) != 0)
  |  |  ------------------
  |  |  |  |   24|  41.0k|#define TLS1_FLAGS_QUIC_INTERNAL 0x4000
  |  |  ------------------
  |  |  |  Branch (312:38): [True: 0, False: 41.0k]
  |  |  ------------------
  ------------------
 3074|       |        /* For QUIC, only allow these ciphersuites. */
 3075|      0|        switch (SSL_CIPHER_get_id(c)) {
 3076|      0|        case TLS1_3_CK_AES_128_GCM_SHA256:
  ------------------
  |  |  639|      0|#define TLS1_3_CK_AES_128_GCM_SHA256 0x03001301
  ------------------
  |  Branch (3076:9): [True: 0, False: 0]
  ------------------
 3077|      0|        case TLS1_3_CK_AES_256_GCM_SHA384:
  ------------------
  |  |  640|      0|#define TLS1_3_CK_AES_256_GCM_SHA384 0x03001302
  ------------------
  |  Branch (3077:9): [True: 0, False: 0]
  ------------------
 3078|      0|        case TLS1_3_CK_CHACHA20_POLY1305_SHA256:
  ------------------
  |  |  641|      0|#define TLS1_3_CK_CHACHA20_POLY1305_SHA256 0x03001303
  ------------------
  |  Branch (3078:9): [True: 0, False: 0]
  ------------------
 3079|      0|            break;
 3080|      0|        default:
  ------------------
  |  Branch (3080:9): [True: 0, False: 0]
  ------------------
 3081|      0|            return 1;
 3082|      0|        }
 3083|       |
 3084|       |    /*
 3085|       |     * For historical reasons we will allow ECHDE to be selected by a server
 3086|       |     * in SSLv3 if we are a client
 3087|       |     */
 3088|  41.0k|    if (minversion == TLS1_VERSION
  ------------------
  |  |   24|  82.0k|#define TLS1_VERSION 0x0301
  ------------------
  |  Branch (3088:9): [True: 5.47k, False: 35.5k]
  ------------------
 3089|  5.47k|        && ecdhe
  ------------------
  |  Branch (3089:12): [True: 0, False: 5.47k]
  ------------------
 3090|      0|        && (c->algorithm_mkey & (SSL_kECDHE | SSL_kECDHEPSK)) != 0)
  ------------------
  |  |   89|      0|#define SSL_kECDHE 0x00000004U
  ------------------
                      && (c->algorithm_mkey & (SSL_kECDHE | SSL_kECDHEPSK)) != 0)
  ------------------
  |  |   98|      0|#define SSL_kECDHEPSK 0x00000080U
  ------------------
  |  Branch (3090:12): [True: 0, False: 0]
  ------------------
 3091|      0|        minversion = SSL3_VERSION;
  ------------------
  |  |   23|      0|#define SSL3_VERSION 0x0300
  ------------------
 3092|       |
 3093|  41.0k|    if (ssl_version_cmp(s, minversion, s->s3.tmp.max_ver) > 0
  ------------------
  |  Branch (3093:9): [True: 0, False: 41.0k]
  ------------------
 3094|  41.0k|        || ssl_version_cmp(s, maxversion, s->s3.tmp.min_ver) < 0)
  ------------------
  |  Branch (3094:12): [True: 0, False: 41.0k]
  ------------------
 3095|      0|        return 1;
 3096|       |
 3097|  41.0k|    return !ssl_security(s, op, c->strength_bits, 0, (void *)c);
 3098|  41.0k|}
tls_use_ticket:
 3101|    342|{
 3102|    342|    if ((s->options & SSL_OP_NO_TICKET))
  ------------------
  |  |  384|    342|#define SSL_OP_NO_TICKET SSL_OP_BIT(14)
  |  |  ------------------
  |  |  |  |  351|    342|#define SSL_OP_BIT(n) ((uint64_t)1 << (uint64_t)n)
  |  |  ------------------
  ------------------
  |  Branch (3102:9): [True: 342, False: 0]
  ------------------
 3103|    342|        return 0;
 3104|      0|    return ssl_security(s, SSL_SECOP_TICKET, 0, 0, NULL);
  ------------------
  |  | 2759|      0|#define SSL_SECOP_TICKET (10 | SSL_SECOP_OTHER_NONE)
  |  |  ------------------
  |  |  |  | 2728|      0|#define SSL_SECOP_OTHER_NONE 0
  |  |  ------------------
  ------------------
 3105|    342|}
ssl_set_sig_mask:
 3575|  1.36k|{
 3576|  1.36k|    const uint16_t *sigalgs;
 3577|  1.36k|    size_t i, sigalgslen;
 3578|  1.36k|    uint32_t disabled_mask = SSL_aRSA | SSL_aDSS | SSL_aECDSA;
  ------------------
  |  |  112|  1.36k|#define SSL_aRSA 0x00000001U
  ------------------
                  uint32_t disabled_mask = SSL_aRSA | SSL_aDSS | SSL_aECDSA;
  ------------------
  |  |  114|  1.36k|#define SSL_aDSS 0x00000002U
  ------------------
                  uint32_t disabled_mask = SSL_aRSA | SSL_aDSS | SSL_aECDSA;
  ------------------
  |  |  118|  1.36k|#define SSL_aECDSA 0x00000008U
  ------------------
 3579|       |    /*
 3580|       |     * Go through all signature algorithms seeing if we support any
 3581|       |     * in disabled_mask.
 3582|       |     */
 3583|  1.36k|    sigalgslen = tls12_get_psigalgs(s, 1, &sigalgs);
 3584|  42.4k|    for (i = 0; i < sigalgslen; i++, sigalgs++) {
  ------------------
  |  Branch (3584:17): [True: 41.0k, False: 1.36k]
  ------------------
 3585|  41.0k|        const SIGALG_LOOKUP *lu = tls1_lookup_sigalg(SSL_CONNECTION_GET_CTX(s), *sigalgs);
  ------------------
  |  |   26|  41.0k|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 3586|  41.0k|        const SSL_CERT_LOOKUP *clu;
 3587|       |
 3588|  41.0k|        if (lu == NULL)
  ------------------
  |  Branch (3588:13): [True: 0, False: 41.0k]
  ------------------
 3589|      0|            continue;
 3590|       |
 3591|  41.0k|        clu = ssl_cert_lookup_by_idx(lu->sig_idx,
 3592|  41.0k|            SSL_CONNECTION_GET_CTX(s));
  ------------------
  |  |   26|  41.0k|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 3593|  41.0k|        if (clu == NULL)
  ------------------
  |  Branch (3593:13): [True: 0, False: 41.0k]
  ------------------
 3594|      0|            continue;
 3595|       |
 3596|       |        /* If algorithm is disabled see if we can enable it */
 3597|  41.0k|        if ((clu->amask & disabled_mask) != 0
  ------------------
  |  Branch (3597:13): [True: 4.10k, False: 36.9k]
  ------------------
 3598|  4.10k|            && tls12_sigalg_allowed(s, op, lu))
  ------------------
  |  Branch (3598:16): [True: 4.10k, False: 0]
  ------------------
 3599|  4.10k|            disabled_mask &= ~clu->amask;
 3600|  41.0k|    }
 3601|  1.36k|    *pmask_a |= disabled_mask;
 3602|  1.36k|}
tls12_copy_sigalgs:
 3606|    342|{
 3607|    342|    size_t i;
 3608|    342|    int rv = 0;
 3609|       |
 3610|  10.6k|    for (i = 0; i < psiglen; i++, psig++) {
  ------------------
  |  Branch (3610:17): [True: 10.2k, False: 342]
  ------------------
 3611|  10.2k|        const SIGALG_LOOKUP *lu = tls1_lookup_sigalg(SSL_CONNECTION_GET_CTX(s), *psig);
  ------------------
  |  |   26|  10.2k|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 3612|       |
 3613|  10.2k|        if (lu == NULL || !tls_sigalg_compat(s, lu))
  ------------------
  |  Branch (3613:13): [True: 0, False: 10.2k]
  |  Branch (3613:27): [True: 1.02k, False: 9.23k]
  ------------------
 3614|  1.02k|            continue;
 3615|  9.23k|        if (!WPACKET_put_bytes_u16(pkt, *psig))
  ------------------
  |  |  911|  9.23k|    WPACKET_put_bytes__((pkt), (val), 2)
  ------------------
  |  Branch (3615:13): [True: 0, False: 9.23k]
  ------------------
 3616|      0|            return 0;
 3617|       |        /*
 3618|       |         * If TLS 1.3 must have at least one valid TLS 1.3 message
 3619|       |         * signing algorithm: i.e. neither RSA nor SHA1/SHA224
 3620|       |         */
 3621|  9.23k|        if (rv == 0 && (!SSL_CONNECTION_IS_TLS13(s) || (lu->sig != EVP_PKEY_RSA && lu->hash != NID_sha1 && lu->hash != NID_sha224)))
  ------------------
  |  |  273|    684|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  266|    684|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  |  |  ------------------
  |  |  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2196|    342|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (273:37): [True: 342, False: 0]
  |  |  ------------------
  |  |  274|    342|    && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|    684|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  |  |  |  Branch (274:8): [True: 342, False: 0]
  |  |  ------------------
  |  |  275|    684|    && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   27|    342|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   40|    342|#define TLS_ANY_VERSION 0x10000
  |  |  ------------------
  |  |  |  Branch (275:8): [True: 0, False: 342]
  |  |  ------------------
  ------------------
                      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)))
  ------------------
  |  | 2348|      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)))
  ------------------
  |  | 3306|      0|#define NID_sha224              675
  ------------------
  |  Branch (3621:13): [True: 342, False: 8.89k]
  |  Branch (3621:57): [True: 0, False: 0]
  |  Branch (3621:84): [True: 0, False: 0]
  |  Branch (3621:108): [True: 0, False: 0]
  ------------------
 3622|    342|            rv = 1;
 3623|  9.23k|    }
 3624|    342|    if (rv == 0)
  ------------------
  |  Branch (3624:9): [True: 0, False: 342]
  ------------------
 3625|       |        ERR_raise(ERR_LIB_SSL, SSL_R_NO_SUITABLE_SIGNATURE_ALGORITHM);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 3626|    342|    return rv;
 3627|    342|}
t1_lib.c:discover_provider_groups:
  372|    347|{
  373|    347|    struct provider_ctx_data_st pgd;
  374|       |
  375|    347|    pgd.ctx = vctx;
  376|    347|    pgd.provider = provider;
  377|    347|    return OSSL_PROVIDER_get_capabilities(provider, "TLS-GROUP",
  378|    347|        add_provider_groups, &pgd);
  379|    347|}
t1_lib.c:add_provider_groups:
  234|  9.36k|{
  235|  9.36k|    struct provider_ctx_data_st *pgd = data;
  236|  9.36k|    SSL_CTX *ctx = pgd->ctx;
  237|  9.36k|    const OSSL_PARAM *p;
  238|  9.36k|    TLS_GROUP_INFO *ginf = NULL;
  239|  9.36k|    EVP_KEYMGMT *keymgmt;
  240|  9.36k|    unsigned int gid;
  241|  9.36k|    unsigned int is_kem = 0;
  242|  9.36k|    int ret = 0;
  243|       |
  244|  9.36k|    if (ctx->group_list_max_len == ctx->group_list_len) {
  ------------------
  |  Branch (244:9): [True: 1.04k, False: 8.32k]
  ------------------
  245|  1.04k|        TLS_GROUP_INFO *tmp = NULL;
  246|       |
  247|  1.04k|        if (ctx->group_list_max_len == 0)
  ------------------
  |  Branch (247:13): [True: 347, False: 694]
  ------------------
  248|    347|            tmp = OPENSSL_malloc_array(TLS_GROUP_LIST_MALLOC_BLOCK_SIZE,
  ------------------
  |  |  111|    347|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  249|  1.04k|                sizeof(TLS_GROUP_INFO));
  250|    694|        else
  251|    694|            tmp = OPENSSL_realloc_array(ctx->group_list,
  ------------------
  |  |  125|    694|    CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  252|  1.04k|                ctx->group_list_max_len
  253|  1.04k|                    + TLS_GROUP_LIST_MALLOC_BLOCK_SIZE,
  254|  1.04k|                sizeof(TLS_GROUP_INFO));
  255|  1.04k|        if (tmp == NULL)
  ------------------
  |  Branch (255:13): [True: 0, False: 1.04k]
  ------------------
  256|      0|            return 0;
  257|  1.04k|        ctx->group_list = tmp;
  258|  1.04k|        memset(tmp + ctx->group_list_max_len,
  259|  1.04k|            0,
  260|  1.04k|            sizeof(TLS_GROUP_INFO) * TLS_GROUP_LIST_MALLOC_BLOCK_SIZE);
  ------------------
  |  |  231|  1.04k|#define TLS_GROUP_LIST_MALLOC_BLOCK_SIZE 10
  ------------------
  261|  1.04k|        ctx->group_list_max_len += TLS_GROUP_LIST_MALLOC_BLOCK_SIZE;
  ------------------
  |  |  231|  1.04k|#define TLS_GROUP_LIST_MALLOC_BLOCK_SIZE 10
  ------------------
  262|  1.04k|    }
  263|       |
  264|  9.36k|    ginf = &ctx->group_list[ctx->group_list_len];
  265|       |
  266|  9.36k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_GROUP_NAME);
  ------------------
  |  |  153|  9.36k|# define OSSL_CAPABILITY_TLS_GROUP_NAME "tls-group-name"
  ------------------
  267|  9.36k|    if (p == NULL || p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|  9.36k|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (267:9): [True: 0, False: 9.36k]
  |  Branch (267:22): [True: 0, False: 9.36k]
  ------------------
  268|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  269|      0|        goto err;
  270|      0|    }
  271|  9.36k|    ginf->tlsname = OPENSSL_strdup(p->data);
  ------------------
  |  |  136|  9.36k|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  272|  9.36k|    if (ginf->tlsname == NULL)
  ------------------
  |  Branch (272:9): [True: 0, False: 9.36k]
  ------------------
  273|      0|        goto err;
  274|       |
  275|  9.36k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_GROUP_NAME_INTERNAL);
  ------------------
  |  |  154|  9.36k|# define OSSL_CAPABILITY_TLS_GROUP_NAME_INTERNAL "tls-group-name-internal"
  ------------------
  276|  9.36k|    if (p == NULL || p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|  9.36k|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (276:9): [True: 0, False: 9.36k]
  |  Branch (276:22): [True: 0, False: 9.36k]
  ------------------
  277|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  278|      0|        goto err;
  279|      0|    }
  280|  9.36k|    ginf->realname = OPENSSL_strdup(p->data);
  ------------------
  |  |  136|  9.36k|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  281|  9.36k|    if (ginf->realname == NULL)
  ------------------
  |  Branch (281:9): [True: 0, False: 9.36k]
  ------------------
  282|      0|        goto err;
  283|       |
  284|  9.36k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_GROUP_ID);
  ------------------
  |  |  147|  9.36k|# define OSSL_CAPABILITY_TLS_GROUP_ID "tls-group-id"
  ------------------
  285|  9.36k|    if (p == NULL || !OSSL_PARAM_get_uint(p, &gid) || gid > UINT16_MAX) {
  ------------------
  |  Branch (285:9): [True: 0, False: 9.36k]
  |  Branch (285:22): [True: 0, False: 9.36k]
  |  Branch (285:55): [True: 0, False: 9.36k]
  ------------------
  286|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  287|      0|        goto err;
  288|      0|    }
  289|  9.36k|    ginf->group_id = (uint16_t)gid;
  290|       |
  291|  9.36k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_GROUP_ALG);
  ------------------
  |  |  146|  9.36k|# define OSSL_CAPABILITY_TLS_GROUP_ALG "tls-group-alg"
  ------------------
  292|  9.36k|    if (p == NULL || p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|  9.36k|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (292:9): [True: 0, False: 9.36k]
  |  Branch (292:22): [True: 0, False: 9.36k]
  ------------------
  293|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  294|      0|        goto err;
  295|      0|    }
  296|  9.36k|    ginf->algorithm = OPENSSL_strdup(p->data);
  ------------------
  |  |  136|  9.36k|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  297|  9.36k|    if (ginf->algorithm == NULL)
  ------------------
  |  Branch (297:9): [True: 0, False: 9.36k]
  ------------------
  298|      0|        goto err;
  299|       |
  300|  9.36k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_GROUP_SECURITY_BITS);
  ------------------
  |  |  155|  9.36k|# define OSSL_CAPABILITY_TLS_GROUP_SECURITY_BITS "tls-group-sec-bits"
  ------------------
  301|  9.36k|    if (p == NULL || !OSSL_PARAM_get_uint(p, &ginf->secbits)) {
  ------------------
  |  Branch (301:9): [True: 0, False: 9.36k]
  |  Branch (301:22): [True: 0, False: 9.36k]
  ------------------
  302|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  303|      0|        goto err;
  304|      0|    }
  305|       |
  306|  9.36k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_GROUP_IS_KEM);
  ------------------
  |  |  148|  9.36k|# define OSSL_CAPABILITY_TLS_GROUP_IS_KEM "tls-group-is-kem"
  ------------------
  307|  9.36k|    if (p != NULL && (!OSSL_PARAM_get_uint(p, &is_kem) || is_kem > 1)) {
  ------------------
  |  Branch (307:9): [True: 9.36k, False: 0]
  |  Branch (307:23): [True: 0, False: 9.36k]
  |  Branch (307:59): [True: 0, False: 9.36k]
  ------------------
  308|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  309|      0|        goto err;
  310|      0|    }
  311|  9.36k|    ginf->is_kem = 1 & is_kem;
  312|       |
  313|  9.36k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_GROUP_MIN_TLS);
  ------------------
  |  |  152|  9.36k|# define OSSL_CAPABILITY_TLS_GROUP_MIN_TLS "tls-min-tls"
  ------------------
  314|  9.36k|    if (p == NULL || !OSSL_PARAM_get_int(p, &ginf->mintls)) {
  ------------------
  |  Branch (314:9): [True: 0, False: 9.36k]
  |  Branch (314:22): [True: 0, False: 9.36k]
  ------------------
  315|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  316|      0|        goto err;
  317|      0|    }
  318|       |
  319|  9.36k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_GROUP_MAX_TLS);
  ------------------
  |  |  150|  9.36k|# define OSSL_CAPABILITY_TLS_GROUP_MAX_TLS "tls-max-tls"
  ------------------
  320|  9.36k|    if (p == NULL || !OSSL_PARAM_get_int(p, &ginf->maxtls)) {
  ------------------
  |  Branch (320:9): [True: 0, False: 9.36k]
  |  Branch (320:22): [True: 0, False: 9.36k]
  ------------------
  321|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  322|      0|        goto err;
  323|      0|    }
  324|       |
  325|  9.36k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_GROUP_MIN_DTLS);
  ------------------
  |  |  151|  9.36k|# define OSSL_CAPABILITY_TLS_GROUP_MIN_DTLS "tls-min-dtls"
  ------------------
  326|  9.36k|    if (p == NULL || !OSSL_PARAM_get_int(p, &ginf->mindtls)) {
  ------------------
  |  Branch (326:9): [True: 0, False: 9.36k]
  |  Branch (326:22): [True: 0, False: 9.36k]
  ------------------
  327|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  328|      0|        goto err;
  329|      0|    }
  330|       |
  331|  9.36k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_GROUP_MAX_DTLS);
  ------------------
  |  |  149|  9.36k|# define OSSL_CAPABILITY_TLS_GROUP_MAX_DTLS "tls-max-dtls"
  ------------------
  332|  9.36k|    if (p == NULL || !OSSL_PARAM_get_int(p, &ginf->maxdtls)) {
  ------------------
  |  Branch (332:9): [True: 0, False: 9.36k]
  |  Branch (332:22): [True: 0, False: 9.36k]
  ------------------
  333|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  334|      0|        goto err;
  335|      0|    }
  336|       |
  337|  9.36k|    if (ginf->group_id >= OSSL_TLS_GROUP_ID_ffdhe2048
  ------------------
  |  |   55|  18.7k|#define OSSL_TLS_GROUP_ID_ffdhe2048 0x0100
  ------------------
  |  Branch (337:9): [True: 4.16k, False: 5.20k]
  ------------------
  338|  4.16k|        && ginf->group_id <= OSSL_TLS_GROUP_ID_ffdhe8192) {
  ------------------
  |  |   59|  4.16k|#define OSSL_TLS_GROUP_ID_ffdhe8192 0x0104
  ------------------
  |  Branch (338:12): [True: 1.73k, False: 2.42k]
  ------------------
  339|  1.73k|        if (ginf->mintls > TLS1_2_VERSION)
  ------------------
  |  |   26|  1.73k|#define TLS1_2_VERSION 0x0303
  ------------------
  |  Branch (339:13): [True: 1.73k, False: 0]
  ------------------
  340|  1.73k|            ginf->mintls = TLS1_VERSION;
  ------------------
  |  |   24|  1.73k|#define TLS1_VERSION 0x0301
  ------------------
  341|  1.73k|        if (DTLS_VERSION_GT(ginf->mindtls, DTLS1_2_VERSION))
  ------------------
  |  |   62|  1.73k|#define DTLS_VERSION_GT(v1, v2) (dtls_ver_ordinal(v1) < dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   61|  1.73k|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|  1.73k|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (61:31): [True: 0, False: 1.73k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define DTLS_VERSION_GT(v1, v2) (dtls_ver_ordinal(v1) < dtls_ver_ordinal(v2))
  |  |  ------------------
  |  |  |  |   61|  1.73k|#define dtls_ver_ordinal(v1) (((v1) == DTLS1_BAD_VER) ? 0xff00 : (v1))
  |  |  |  |  ------------------
  |  |  |  |  |  |   30|  1.73k|#define DTLS1_BAD_VER 0x0100
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (61:31): [Folded, False: 1.73k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (62:33): [True: 1.73k, False: 0]
  |  |  ------------------
  ------------------
  342|  1.73k|            ginf->mindtls = DTLS1_VERSION;
  ------------------
  |  |   28|  1.73k|#define DTLS1_VERSION 0xFEFF
  ------------------
  343|  1.73k|    }
  344|       |
  345|       |    /*
  346|       |     * Now check that the algorithm is actually usable for our property query
  347|       |     * string. Regardless of the result we still return success because we have
  348|       |     * successfully processed this group, even though we may decide not to use
  349|       |     * it.
  350|       |     */
  351|  9.36k|    ret = 1;
  352|  9.36k|    ERR_set_mark();
  353|  9.36k|    keymgmt = EVP_KEYMGMT_fetch(ctx->libctx, ginf->algorithm, ctx->propq);
  354|  9.36k|    if (keymgmt != NULL) {
  ------------------
  |  Branch (354:9): [True: 9.36k, False: 0]
  ------------------
  355|       |        /* We have successfully fetched the algorithm, we can use the group. */
  356|  9.36k|        ctx->group_list_len++;
  357|  9.36k|        ginf = NULL;
  358|  9.36k|        EVP_KEYMGMT_free(keymgmt);
  359|  9.36k|    }
  360|  9.36k|    ERR_pop_to_mark();
  361|  9.36k|err:
  362|  9.36k|    if (ginf != NULL) {
  ------------------
  |  Branch (362:9): [True: 0, False: 9.36k]
  ------------------
  363|      0|        OPENSSL_free(ginf->tlsname);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  364|      0|        OPENSSL_free(ginf->realname);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  365|      0|        OPENSSL_free(ginf->algorithm);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  366|       |        ginf->algorithm = ginf->tlsname = ginf->realname = NULL;
  367|      0|    }
  368|  9.36k|    return ret;
  369|  9.36k|}
t1_lib.c:discover_provider_sigalgs:
  681|    347|{
  682|    347|    struct provider_ctx_data_st pgd;
  683|       |
  684|    347|    pgd.ctx = vctx;
  685|    347|    pgd.provider = provider;
  686|    347|    OSSL_PROVIDER_get_capabilities(provider, "TLS-SIGALG",
  687|    347|        add_provider_sigalgs, &pgd);
  688|       |    /*
  689|       |     * Always OK, even if provider doesn't support the capability:
  690|       |     * Reconsider testing retval when legacy sigalgs are also loaded this way.
  691|       |     */
  692|    347|    return 1;
  693|    347|}
t1_lib.c:add_provider_sigalgs:
  401|  1.38k|{
  402|  1.38k|    struct provider_ctx_data_st *pgd = data;
  403|  1.38k|    SSL_CTX *ctx = pgd->ctx;
  404|  1.38k|    OSSL_PROVIDER *provider = pgd->provider;
  405|  1.38k|    const OSSL_PARAM *p;
  406|  1.38k|    TLS_SIGALG_INFO *sinf = NULL;
  407|  1.38k|    EVP_KEYMGMT *keymgmt;
  408|  1.38k|    const char *keytype;
  409|  1.38k|    unsigned int code_point = 0;
  410|  1.38k|    int ret = 0;
  411|       |
  412|  1.38k|    if (ctx->sigalg_list_max_len == ctx->sigalg_list_len) {
  ------------------
  |  Branch (412:9): [True: 347, False: 1.04k]
  ------------------
  413|    347|        TLS_SIGALG_INFO *tmp = NULL;
  414|       |
  415|    347|        if (ctx->sigalg_list_max_len == 0)
  ------------------
  |  Branch (415:13): [True: 347, False: 0]
  ------------------
  416|    347|            tmp = OPENSSL_malloc_array(TLS_SIGALG_LIST_MALLOC_BLOCK_SIZE,
  ------------------
  |  |  111|    347|    CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc_array(num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  417|    347|                sizeof(TLS_SIGALG_INFO));
  418|      0|        else
  419|      0|            tmp = OPENSSL_realloc_array(ctx->sigalg_list,
  ------------------
  |  |  125|      0|    CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  420|    347|                ctx->sigalg_list_max_len
  421|    347|                    + TLS_SIGALG_LIST_MALLOC_BLOCK_SIZE,
  422|    347|                sizeof(TLS_SIGALG_INFO));
  423|    347|        if (tmp == NULL)
  ------------------
  |  Branch (423:13): [True: 0, False: 347]
  ------------------
  424|      0|            return 0;
  425|    347|        ctx->sigalg_list = tmp;
  426|    347|        memset(tmp + ctx->sigalg_list_max_len, 0,
  427|    347|            sizeof(TLS_SIGALG_INFO) * TLS_SIGALG_LIST_MALLOC_BLOCK_SIZE);
  ------------------
  |  |  398|    347|#define TLS_SIGALG_LIST_MALLOC_BLOCK_SIZE 10
  ------------------
  428|    347|        ctx->sigalg_list_max_len += TLS_SIGALG_LIST_MALLOC_BLOCK_SIZE;
  ------------------
  |  |  398|    347|#define TLS_SIGALG_LIST_MALLOC_BLOCK_SIZE 10
  ------------------
  429|    347|    }
  430|       |
  431|  1.38k|    sinf = &ctx->sigalg_list[ctx->sigalg_list_len];
  432|       |
  433|       |    /* First, mandatory parameters */
  434|  1.38k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_NAME);
  ------------------
  |  |  166|  1.38k|# define OSSL_CAPABILITY_TLS_SIGALG_NAME "tls-sigalg-name"
  ------------------
  435|  1.38k|    if (p == NULL || p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|  1.38k|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (435:9): [True: 0, False: 1.38k]
  |  Branch (435:22): [True: 0, False: 1.38k]
  ------------------
  436|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  437|      0|        goto err;
  438|      0|    }
  439|  1.38k|    OPENSSL_free(sinf->sigalg_name);
  ------------------
  |  |  132|  1.38k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  440|  1.38k|    sinf->sigalg_name = OPENSSL_strdup(p->data);
  ------------------
  |  |  136|  1.38k|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  441|  1.38k|    if (sinf->sigalg_name == NULL)
  ------------------
  |  Branch (441:9): [True: 0, False: 1.38k]
  ------------------
  442|      0|        goto err;
  443|       |
  444|  1.38k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_IANA_NAME);
  ------------------
  |  |  159|  1.38k|# define OSSL_CAPABILITY_TLS_SIGALG_IANA_NAME "tls-sigalg-iana-name"
  ------------------
  445|  1.38k|    if (p == NULL || p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|  1.38k|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (445:9): [True: 0, False: 1.38k]
  |  Branch (445:22): [True: 0, False: 1.38k]
  ------------------
  446|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  447|      0|        goto err;
  448|      0|    }
  449|  1.38k|    OPENSSL_free(sinf->name);
  ------------------
  |  |  132|  1.38k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  450|  1.38k|    sinf->name = OPENSSL_strdup(p->data);
  ------------------
  |  |  136|  1.38k|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  451|  1.38k|    if (sinf->name == NULL)
  ------------------
  |  Branch (451:9): [True: 0, False: 1.38k]
  ------------------
  452|      0|        goto err;
  453|       |
  454|  1.38k|    p = OSSL_PARAM_locate_const(params,
  455|  1.38k|        OSSL_CAPABILITY_TLS_SIGALG_CODE_POINT);
  ------------------
  |  |  156|  1.38k|# define OSSL_CAPABILITY_TLS_SIGALG_CODE_POINT "tls-sigalg-code-point"
  ------------------
  456|  1.38k|    if (p == NULL
  ------------------
  |  Branch (456:9): [True: 0, False: 1.38k]
  ------------------
  457|  1.38k|        || !OSSL_PARAM_get_uint(p, &code_point)
  ------------------
  |  Branch (457:12): [True: 0, False: 1.38k]
  ------------------
  458|  1.38k|        || code_point > UINT16_MAX) {
  ------------------
  |  Branch (458:12): [True: 0, False: 1.38k]
  ------------------
  459|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  460|      0|        goto err;
  461|      0|    }
  462|  1.38k|    sinf->code_point = (uint16_t)code_point;
  463|       |
  464|  1.38k|    p = OSSL_PARAM_locate_const(params,
  465|  1.38k|        OSSL_CAPABILITY_TLS_SIGALG_SECURITY_BITS);
  ------------------
  |  |  168|  1.38k|# define OSSL_CAPABILITY_TLS_SIGALG_SECURITY_BITS "tls-sigalg-sec-bits"
  ------------------
  466|  1.38k|    if (p == NULL || !OSSL_PARAM_get_uint(p, &sinf->secbits)) {
  ------------------
  |  Branch (466:9): [True: 0, False: 1.38k]
  |  Branch (466:22): [True: 0, False: 1.38k]
  ------------------
  467|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  468|      0|        goto err;
  469|      0|    }
  470|       |
  471|       |    /* Now, optional parameters */
  472|  1.38k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_OID);
  ------------------
  |  |  167|  1.38k|# define OSSL_CAPABILITY_TLS_SIGALG_OID "tls-sigalg-oid"
  ------------------
  473|  1.38k|    if (p == NULL) {
  ------------------
  |  Branch (473:9): [True: 0, False: 1.38k]
  ------------------
  474|      0|        sinf->sigalg_oid = NULL;
  475|  1.38k|    } else if (p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|  1.38k|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (475:16): [True: 0, False: 1.38k]
  ------------------
  476|      0|        goto err;
  477|  1.38k|    } else {
  478|  1.38k|        OPENSSL_free(sinf->sigalg_oid);
  ------------------
  |  |  132|  1.38k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  479|  1.38k|        sinf->sigalg_oid = OPENSSL_strdup(p->data);
  ------------------
  |  |  136|  1.38k|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  480|  1.38k|        if (sinf->sigalg_oid == NULL)
  ------------------
  |  Branch (480:13): [True: 0, False: 1.38k]
  ------------------
  481|      0|            goto err;
  482|  1.38k|    }
  483|       |
  484|  1.38k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_SIG_NAME);
  ------------------
  |  |  169|  1.38k|# define OSSL_CAPABILITY_TLS_SIGALG_SIG_NAME "tls-sigalg-sig-name"
  ------------------
  485|  1.38k|    if (p == NULL) {
  ------------------
  |  Branch (485:9): [True: 1.38k, False: 0]
  ------------------
  486|  1.38k|        sinf->sig_name = NULL;
  487|  1.38k|    } else if (p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|      0|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (487:16): [True: 0, False: 0]
  ------------------
  488|      0|        goto err;
  489|      0|    } else {
  490|      0|        OPENSSL_free(sinf->sig_name);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  491|      0|        sinf->sig_name = OPENSSL_strdup(p->data);
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  492|      0|        if (sinf->sig_name == NULL)
  ------------------
  |  Branch (492:13): [True: 0, False: 0]
  ------------------
  493|      0|            goto err;
  494|      0|    }
  495|       |
  496|  1.38k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_SIG_OID);
  ------------------
  |  |  170|  1.38k|# define OSSL_CAPABILITY_TLS_SIGALG_SIG_OID "tls-sigalg-sig-oid"
  ------------------
  497|  1.38k|    if (p == NULL) {
  ------------------
  |  Branch (497:9): [True: 1.38k, False: 0]
  ------------------
  498|  1.38k|        sinf->sig_oid = NULL;
  499|  1.38k|    } else if (p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|      0|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (499:16): [True: 0, False: 0]
  ------------------
  500|      0|        goto err;
  501|      0|    } else {
  502|      0|        OPENSSL_free(sinf->sig_oid);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  503|      0|        sinf->sig_oid = OPENSSL_strdup(p->data);
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  504|      0|        if (sinf->sig_oid == NULL)
  ------------------
  |  Branch (504:13): [True: 0, False: 0]
  ------------------
  505|      0|            goto err;
  506|      0|    }
  507|       |
  508|  1.38k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_HASH_NAME);
  ------------------
  |  |  157|  1.38k|# define OSSL_CAPABILITY_TLS_SIGALG_HASH_NAME "tls-sigalg-hash-name"
  ------------------
  509|  1.38k|    if (p == NULL) {
  ------------------
  |  Branch (509:9): [True: 1.38k, False: 0]
  ------------------
  510|  1.38k|        sinf->hash_name = NULL;
  511|  1.38k|    } else if (p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|      0|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (511:16): [True: 0, False: 0]
  ------------------
  512|      0|        goto err;
  513|      0|    } else {
  514|      0|        OPENSSL_free(sinf->hash_name);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  515|      0|        sinf->hash_name = OPENSSL_strdup(p->data);
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  516|      0|        if (sinf->hash_name == NULL)
  ------------------
  |  Branch (516:13): [True: 0, False: 0]
  ------------------
  517|      0|            goto err;
  518|      0|    }
  519|       |
  520|  1.38k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_HASH_OID);
  ------------------
  |  |  158|  1.38k|# define OSSL_CAPABILITY_TLS_SIGALG_HASH_OID "tls-sigalg-hash-oid"
  ------------------
  521|  1.38k|    if (p == NULL) {
  ------------------
  |  Branch (521:9): [True: 1.38k, False: 0]
  ------------------
  522|  1.38k|        sinf->hash_oid = NULL;
  523|  1.38k|    } else if (p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|      0|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (523:16): [True: 0, False: 0]
  ------------------
  524|      0|        goto err;
  525|      0|    } else {
  526|      0|        OPENSSL_free(sinf->hash_oid);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  527|      0|        sinf->hash_oid = OPENSSL_strdup(p->data);
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  528|      0|        if (sinf->hash_oid == NULL)
  ------------------
  |  Branch (528:13): [True: 0, False: 0]
  ------------------
  529|      0|            goto err;
  530|      0|    }
  531|       |
  532|  1.38k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_KEYTYPE);
  ------------------
  |  |  160|  1.38k|# define OSSL_CAPABILITY_TLS_SIGALG_KEYTYPE "tls-sigalg-keytype"
  ------------------
  533|  1.38k|    if (p == NULL) {
  ------------------
  |  Branch (533:9): [True: 1.38k, False: 0]
  ------------------
  534|  1.38k|        sinf->keytype = NULL;
  535|  1.38k|    } else if (p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|      0|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (535:16): [True: 0, False: 0]
  ------------------
  536|      0|        goto err;
  537|      0|    } else {
  538|      0|        OPENSSL_free(sinf->keytype);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  539|      0|        sinf->keytype = OPENSSL_strdup(p->data);
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  540|      0|        if (sinf->keytype == NULL)
  ------------------
  |  Branch (540:13): [True: 0, False: 0]
  ------------------
  541|      0|            goto err;
  542|      0|    }
  543|       |
  544|  1.38k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_KEYTYPE_OID);
  ------------------
  |  |  161|  1.38k|# define OSSL_CAPABILITY_TLS_SIGALG_KEYTYPE_OID "tls-sigalg-keytype-oid"
  ------------------
  545|  1.38k|    if (p == NULL) {
  ------------------
  |  Branch (545:9): [True: 1.38k, False: 0]
  ------------------
  546|  1.38k|        sinf->keytype_oid = NULL;
  547|  1.38k|    } else if (p->data_type != OSSL_PARAM_UTF8_STRING) {
  ------------------
  |  |  117|      0|#define OSSL_PARAM_UTF8_STRING 4
  ------------------
  |  Branch (547:16): [True: 0, False: 0]
  ------------------
  548|      0|        goto err;
  549|      0|    } else {
  550|      0|        OPENSSL_free(sinf->keytype_oid);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  551|      0|        sinf->keytype_oid = OPENSSL_strdup(p->data);
  ------------------
  |  |  136|      0|    CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  552|      0|        if (sinf->keytype_oid == NULL)
  ------------------
  |  Branch (552:13): [True: 0, False: 0]
  ------------------
  553|      0|            goto err;
  554|      0|    }
  555|       |
  556|       |    /* Optional, not documented prior to 3.5 */
  557|  1.38k|    sinf->mindtls = sinf->maxdtls = -1;
  558|  1.38k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_MIN_DTLS);
  ------------------
  |  |  164|  1.38k|# define OSSL_CAPABILITY_TLS_SIGALG_MIN_DTLS "tls-min-dtls"
  ------------------
  559|  1.38k|    if (p != NULL && !OSSL_PARAM_get_int(p, &sinf->mindtls)) {
  ------------------
  |  Branch (559:9): [True: 1.38k, False: 0]
  |  Branch (559:22): [True: 0, False: 1.38k]
  ------------------
  560|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  561|      0|        goto err;
  562|      0|    }
  563|  1.38k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_MAX_DTLS);
  ------------------
  |  |  162|  1.38k|# define OSSL_CAPABILITY_TLS_SIGALG_MAX_DTLS "tls-max-dtls"
  ------------------
  564|  1.38k|    if (p != NULL && !OSSL_PARAM_get_int(p, &sinf->maxdtls)) {
  ------------------
  |  Branch (564:9): [True: 1.38k, False: 0]
  |  Branch (564:22): [True: 0, False: 1.38k]
  ------------------
  565|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  566|      0|        goto err;
  567|      0|    }
  568|       |    /* DTLS version numbers grow downward */
  569|  1.38k|    if ((sinf->maxdtls != 0) && (sinf->maxdtls != -1) && ((sinf->maxdtls > sinf->mindtls))) {
  ------------------
  |  Branch (569:9): [True: 1.38k, False: 0]
  |  Branch (569:33): [True: 0, False: 1.38k]
  |  Branch (569:58): [True: 0, False: 0]
  ------------------
  570|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  571|      0|        goto err;
  572|      0|    }
  573|       |    /* No provider sigalgs are supported in DTLS, reset after checking. */
  574|  1.38k|    sinf->mindtls = sinf->maxdtls = -1;
  575|       |
  576|       |    /* The remaining parameters below are mandatory again */
  577|  1.38k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_MIN_TLS);
  ------------------
  |  |  165|  1.38k|# define OSSL_CAPABILITY_TLS_SIGALG_MIN_TLS "tls-min-tls"
  ------------------
  578|  1.38k|    if (p == NULL || !OSSL_PARAM_get_int(p, &sinf->mintls)) {
  ------------------
  |  Branch (578:9): [True: 0, False: 1.38k]
  |  Branch (578:22): [True: 0, False: 1.38k]
  ------------------
  579|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  580|      0|        goto err;
  581|      0|    }
  582|  1.38k|    p = OSSL_PARAM_locate_const(params, OSSL_CAPABILITY_TLS_SIGALG_MAX_TLS);
  ------------------
  |  |  163|  1.38k|# define OSSL_CAPABILITY_TLS_SIGALG_MAX_TLS "tls-max-tls"
  ------------------
  583|  1.38k|    if (p == NULL || !OSSL_PARAM_get_int(p, &sinf->maxtls)) {
  ------------------
  |  Branch (583:9): [True: 0, False: 1.38k]
  |  Branch (583:22): [True: 0, False: 1.38k]
  ------------------
  584|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  585|      0|        goto err;
  586|      0|    }
  587|  1.38k|    if ((sinf->maxtls != 0) && (sinf->maxtls != -1) && ((sinf->maxtls < sinf->mintls))) {
  ------------------
  |  Branch (587:9): [True: 0, False: 1.38k]
  |  Branch (587:32): [True: 0, False: 0]
  |  Branch (587:56): [True: 0, False: 0]
  ------------------
  588|      0|        ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  589|      0|        goto err;
  590|      0|    }
  591|  1.38k|    if ((sinf->mintls != 0) && (sinf->mintls != -1) && ((sinf->mintls > TLS1_3_VERSION)))
  ------------------
  |  |   27|  1.38k|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (591:9): [True: 1.38k, False: 0]
  |  Branch (591:32): [True: 1.38k, False: 0]
  |  Branch (591:56): [True: 0, False: 1.38k]
  ------------------
  592|      0|        sinf->mintls = sinf->maxtls = -1;
  593|  1.38k|    if ((sinf->maxtls != 0) && (sinf->maxtls != -1) && ((sinf->maxtls < TLS1_3_VERSION)))
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (593:9): [True: 0, False: 1.38k]
  |  Branch (593:32): [True: 0, False: 0]
  |  Branch (593:56): [True: 0, False: 0]
  ------------------
  594|      0|        sinf->mintls = sinf->maxtls = -1;
  595|       |
  596|       |    /* Ignore unusable sigalgs */
  597|  1.38k|    if (sinf->mintls == -1 && sinf->mindtls == -1) {
  ------------------
  |  Branch (597:9): [True: 0, False: 1.38k]
  |  Branch (597:31): [True: 0, False: 0]
  ------------------
  598|      0|        ret = 1;
  599|      0|        goto err;
  600|      0|    }
  601|       |
  602|       |    /*
  603|       |     * Now check that the algorithm is actually usable for our property query
  604|       |     * string. Regardless of the result we still return success because we have
  605|       |     * successfully processed this signature, even though we may decide not to
  606|       |     * use it.
  607|       |     */
  608|  1.38k|    ret = 1;
  609|  1.38k|    ERR_set_mark();
  610|  1.38k|    keytype = inferred_keytype(sinf);
  611|  1.38k|    keymgmt = EVP_KEYMGMT_fetch(ctx->libctx, keytype, ctx->propq);
  612|  1.38k|    if (keymgmt != NULL) {
  ------------------
  |  Branch (612:9): [True: 1.38k, False: 0]
  ------------------
  613|       |        /*
  614|       |         * We have successfully fetched the algorithm - however if the provider
  615|       |         * doesn't match this one then we ignore it.
  616|       |         *
  617|       |         * Note: We're cheating a little here. Technically if the same algorithm
  618|       |         * is available from more than one provider then it is undefined which
  619|       |         * implementation you will get back. Theoretically this could be
  620|       |         * different every time...we assume here that you'll always get the
  621|       |         * same one back if you repeat the exact same fetch. Is this a reasonable
  622|       |         * assumption to make (in which case perhaps we should document this
  623|       |         * behaviour)?
  624|       |         */
  625|  1.38k|        if (EVP_KEYMGMT_get0_provider(keymgmt) == provider) {
  ------------------
  |  Branch (625:13): [True: 1.38k, False: 0]
  ------------------
  626|       |            /*
  627|       |             * We have a match - so we could use this signature;
  628|       |             * Check proper object registration first, though.
  629|       |             * Don't care about return value as this may have been
  630|       |             * done within providers or previous calls to
  631|       |             * add_provider_sigalgs.
  632|       |             */
  633|  1.38k|            OBJ_create(sinf->sigalg_oid, sinf->sigalg_name, NULL);
  634|       |            /* sanity check: Without successful registration don't use alg */
  635|  1.38k|            if ((OBJ_txt2nid(sinf->sigalg_name) == NID_undef) || (OBJ_nid2obj(OBJ_txt2nid(sinf->sigalg_name)) == NULL)) {
  ------------------
  |  |   18|  1.38k|#define NID_undef                       0
  ------------------
  |  Branch (635:17): [True: 0, False: 1.38k]
  |  Branch (635:66): [True: 0, False: 1.38k]
  ------------------
  636|      0|                ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_INVALID_ARGUMENT);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
  637|      0|                goto err;
  638|      0|            }
  639|  1.38k|            if (sinf->sig_name != NULL)
  ------------------
  |  Branch (639:17): [True: 0, False: 1.38k]
  ------------------
  640|      0|                OBJ_create(sinf->sig_oid, sinf->sig_name, NULL);
  641|  1.38k|            if (sinf->keytype != NULL)
  ------------------
  |  Branch (641:17): [True: 0, False: 1.38k]
  ------------------
  642|      0|                OBJ_create(sinf->keytype_oid, sinf->keytype, NULL);
  643|  1.38k|            if (sinf->hash_name != NULL)
  ------------------
  |  Branch (643:17): [True: 0, False: 1.38k]
  ------------------
  644|      0|                OBJ_create(sinf->hash_oid, sinf->hash_name, NULL);
  645|  1.38k|            OBJ_add_sigid(OBJ_txt2nid(sinf->sigalg_name),
  646|  1.38k|                (sinf->hash_name != NULL
  ------------------
  |  Branch (646:18): [True: 0, False: 1.38k]
  ------------------
  647|  1.38k|                        ? OBJ_txt2nid(sinf->hash_name)
  648|  1.38k|                        : NID_undef),
  ------------------
  |  |   18|  1.38k|#define NID_undef                       0
  ------------------
  649|  1.38k|                OBJ_txt2nid(keytype));
  650|  1.38k|            ctx->sigalg_list_len++;
  651|  1.38k|            sinf = NULL;
  652|  1.38k|        }
  653|  1.38k|        EVP_KEYMGMT_free(keymgmt);
  654|  1.38k|    }
  655|  1.38k|    ERR_pop_to_mark();
  656|  1.38k|err:
  657|  1.38k|    if (sinf != NULL) {
  ------------------
  |  Branch (657:9): [True: 0, False: 1.38k]
  ------------------
  658|      0|        OPENSSL_free(sinf->name);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  659|      0|        sinf->name = NULL;
  660|      0|        OPENSSL_free(sinf->sigalg_name);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  661|      0|        sinf->sigalg_name = NULL;
  662|      0|        OPENSSL_free(sinf->sigalg_oid);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  663|      0|        sinf->sigalg_oid = NULL;
  664|      0|        OPENSSL_free(sinf->sig_name);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  665|      0|        sinf->sig_name = NULL;
  666|      0|        OPENSSL_free(sinf->sig_oid);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  667|      0|        sinf->sig_oid = NULL;
  668|      0|        OPENSSL_free(sinf->hash_name);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  669|      0|        sinf->hash_name = NULL;
  670|      0|        OPENSSL_free(sinf->hash_oid);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  671|      0|        sinf->hash_oid = NULL;
  672|      0|        OPENSSL_free(sinf->keytype);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  673|      0|        sinf->keytype = NULL;
  674|      0|        OPENSSL_free(sinf->keytype_oid);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
  675|       |        sinf->keytype_oid = NULL;
  676|      0|    }
  677|  1.38k|    return ret;
  678|  1.38k|}
t1_lib.c:inferred_keytype:
  390|  2.77k|{
  391|  2.77k|    return (sinf->keytype != NULL
  ------------------
  |  Branch (391:13): [True: 0, False: 2.77k]
  ------------------
  392|  2.77k|            ? sinf->keytype
  393|  2.77k|            : (sinf->sig_name != NULL
  ------------------
  |  Branch (393:16): [True: 0, False: 2.77k]
  ------------------
  394|  2.77k|                      ? sinf->sig_name
  395|  2.77k|                      : sinf->sigalg_name));
  396|  2.77k|}
t1_lib.c:tuple_cb:
 1668|  1.73k|{
 1669|  1.73k|    gid_cb_st *garg = arg;
 1670|  1.73k|    int retval = 1; /* We assume success */
 1671|  1.73k|    char *restored_tuple_string;
 1672|       |
 1673|       |    /* Sanity checks */
 1674|  1.73k|    if (garg == NULL || tuple == NULL || len <= 0) {
  ------------------
  |  Branch (1674:9): [True: 0, False: 1.73k]
  |  Branch (1674:25): [True: 0, False: 1.73k]
  |  Branch (1674:42): [True: 0, False: 1.73k]
  ------------------
 1675|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_UNSUPPORTED_CONFIG_VALUE);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1676|      0|        return 0;
 1677|      0|    }
 1678|       |
 1679|  1.73k|    if (garg->inner && !garg->first && !close_tuple(garg))
  ------------------
  |  Branch (1679:9): [True: 0, False: 1.73k]
  |  Branch (1679:24): [True: 0, False: 0]
  |  Branch (1679:40): [True: 0, False: 0]
  ------------------
 1680|      0|        return 0;
 1681|  1.73k|    garg->first = 0;
 1682|       |
 1683|       |    /* Convert to \0-terminated string */
 1684|  1.73k|    restored_tuple_string = OPENSSL_malloc(len + 1 /* \0 */);
  ------------------
  |  |  107|  1.73k|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1685|  1.73k|    if (restored_tuple_string == NULL)
  ------------------
  |  Branch (1685:9): [True: 0, False: 1.73k]
  ------------------
 1686|      0|        return 0;
 1687|  1.73k|    memcpy(restored_tuple_string, tuple, len);
 1688|  1.73k|    restored_tuple_string[len] = '\0';
 1689|       |
 1690|       |    /* Analyze group list of this tuple */
 1691|  1.73k|    retval = CONF_parse_list(restored_tuple_string, GROUP_DELIMITER_CHARACTER, 1, gid_cb, arg);
  ------------------
  |  | 1230|  1.73k|#define GROUP_DELIMITER_CHARACTER ':'
  ------------------
 1692|       |
 1693|       |    /* We don't need the \o-terminated string anymore */
 1694|  1.73k|    OPENSSL_free(restored_tuple_string);
  ------------------
  |  |  132|  1.73k|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1695|       |
 1696|  1.73k|    if (!garg->inner && !close_tuple(garg))
  ------------------
  |  Branch (1696:9): [True: 1.73k, False: 0]
  |  Branch (1696:25): [True: 0, False: 1.73k]
  ------------------
 1697|      0|        return 0;
 1698|  1.73k|    return retval;
 1699|  1.73k|}
t1_lib.c:close_tuple:
 1639|  1.73k|{
 1640|  1.73k|    size_t gidcnt = garg->tuplcnt_arr[garg->tplcnt];
 1641|       |
 1642|  1.73k|    if (gidcnt > 0 && garg->want_keyshare > 0) {
  ------------------
  |  Branch (1642:9): [True: 1.73k, False: 0]
  |  Branch (1642:23): [True: 0, False: 1.73k]
  ------------------
 1643|      0|        uint16_t gid = garg->gid_arr[garg->gidcnt - gidcnt];
 1644|       |
 1645|       |        /*
 1646|       |         * All groups in the tuple that were marked for keyshare prediction
 1647|       |         * were unknown (unrecognised); select the first known group instead.
 1648|       |         */
 1649|      0|        garg->ksid_arr[garg->ksidcnt++] = gid;
 1650|      0|    }
 1651|       |    /* Reset keyshare state for the next tuple */
 1652|  1.73k|    garg->want_keyshare = 0;
 1653|       |
 1654|  1.73k|    if (gidcnt == 0)
  ------------------
  |  Branch (1654:9): [True: 0, False: 1.73k]
  ------------------
 1655|      0|        return 1; /* Discard empty tuple; no need to open a new slot */
 1656|       |
 1657|       |    /* Grow before the increment: the new active slot will be at tplcnt + 1 */
 1658|  1.73k|    if (!grow_tuples(garg))
  ------------------
  |  Branch (1658:9): [True: 0, False: 1.73k]
  ------------------
 1659|      0|        return 0;
 1660|       |
 1661|       |    /* Promote closed tuple and initialise the new active tuple slot */
 1662|  1.73k|    garg->tuplcnt_arr[++garg->tplcnt] = 0;
 1663|  1.73k|    return 1;
 1664|  1.73k|}
t1_lib.c:grow_tuples:
 1613|  1.73k|{
 1614|       |    /*
 1615|       |     * tplcnt + 1 is the index close_tuple() will write to after incrementing;
 1616|       |     * reallocate before it would reach the end of the allocated array.
 1617|       |     */
 1618|  1.73k|    if (garg->tplcnt + 1 >= garg->tplmax) {
  ------------------
  |  Branch (1618:9): [True: 0, False: 1.73k]
  ------------------
 1619|      0|        size_t *tmp = OPENSSL_realloc_array(garg->tuplcnt_arr,
  ------------------
  |  |  125|      0|    CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1620|      0|            garg->tplmax + GROUPLIST_INCREMENT,
 1621|      0|            sizeof(*garg->tuplcnt_arr));
 1622|       |
 1623|      0|        if (tmp == NULL)
  ------------------
  |  Branch (1623:13): [True: 0, False: 0]
  ------------------
 1624|      0|            return 0;
 1625|      0|        garg->tplmax += GROUPLIST_INCREMENT;
  ------------------
  |  | 1215|      0|#define GROUPLIST_INCREMENT 32 /* Memory allocation chunk size (64 Bytes chunks ~= cache line) */
  ------------------
 1626|      0|        garg->tuplcnt_arr = tmp;
 1627|      0|    }
 1628|  1.73k|    return 1;
 1629|  1.73k|}
t1_lib.c:gid_cb:
 1292|  3.81k|{
 1293|  3.81k|    gid_cb_st *garg = arg;
 1294|  3.81k|    size_t i, j, k;
 1295|  3.81k|    uint16_t gid = 0;
 1296|  3.81k|    int found_group = 0;
 1297|  3.81k|    char etmp[GROUP_NAME_BUFFER_LENGTH];
 1298|  3.81k|    int retval = 1; /* We assume success */
 1299|  3.81k|    const char *current_prefix;
 1300|  3.81k|    int ignore_unknown = 0;
 1301|  3.81k|    int add_keyshare = 0;
 1302|  3.81k|    int remove_group = 0;
 1303|  3.81k|    size_t restored_prefix_index = 0;
 1304|  3.81k|    char *restored_default_group_string;
 1305|  3.81k|    int continue_while_loop = 1;
 1306|       |
 1307|       |    /* Sanity checks */
 1308|  3.81k|    if (garg == NULL || elem == NULL || len <= 0) {
  ------------------
  |  Branch (1308:9): [True: 0, False: 3.81k]
  |  Branch (1308:25): [True: 0, False: 3.81k]
  |  Branch (1308:41): [True: 0, False: 3.81k]
  ------------------
 1309|      0|        ERR_raise(ERR_LIB_SSL, SSL_R_UNSUPPORTED_CONFIG_VALUE);
  ------------------
  |  |  357|      0|#define ERR_raise(lib, reason) ERR_raise_data((lib), (reason), NULL)
  |  |  ------------------
  |  |  |  |  359|      0|    (ERR_new(),                                                  \
  |  |  |  |  360|      0|        ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  |  |  ------------------
  |  |  |  |                       ERR_set_debug(OPENSSL_FILE, OPENSSL_LINE, OPENSSL_FUNC), \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      0|#define OPENSSL_FUNC __func__
  |  |  |  |  ------------------
  |  |  |  |  361|      0|        ERR_set_error)
  |  |  ------------------
  ------------------
 1310|      0|        return 0;
 1311|      0|    }
 1312|       |
 1313|       |    /* Check the possible prefixes (remark: Leading and trailing spaces already cleared) */
 1314|  8.32k|    while (continue_while_loop && len > 0
  ------------------
  |  Branch (1314:12): [True: 8.32k, False: 0]
  |  Branch (1314:35): [True: 8.32k, False: 0]
  ------------------
 1315|  8.32k|        && ((current_prefix = strchr(prefixes, elem[0])) != NULL
  ------------------
  |  Branch (1315:13): [True: 4.51k, False: 3.81k]
  ------------------
 1316|  4.51k|            || OPENSSL_strncasecmp(current_prefix = (char *)DEFAULT_GROUPNAME_FIRST_CHARACTER, elem, 1) == 0)) {
  ------------------
  |  Branch (1316:16): [True: 0, False: 3.81k]
  ------------------
 1317|       |
 1318|  4.51k|        switch (*current_prefix) {
 1319|      0|        case TUPLE_DELIMITER_CHARACTER:
  ------------------
  |  | 1226|      0|#define TUPLE_DELIMITER_CHARACTER '/'
  ------------------
  |  Branch (1319:9): [True: 0, False: 4.51k]
  ------------------
 1320|       |            /* tuple delimiter not allowed here -> syntax error */
 1321|      0|            return -1;
 1322|      0|            break;
 1323|      0|        case GROUP_DELIMITER_CHARACTER:
  ------------------
  |  | 1230|      0|#define GROUP_DELIMITER_CHARACTER ':'
  ------------------
  |  Branch (1323:9): [True: 0, False: 4.51k]
  ------------------
 1324|      0|            return -1; /* Not a valid prefix for a single group name-> syntax error */
 1325|      0|            break;
 1326|    694|        case KEY_SHARE_INDICATOR_CHARACTER:
  ------------------
  |  | 1238|    694|#define KEY_SHARE_INDICATOR_CHARACTER '*'
  ------------------
  |  Branch (1326:9): [True: 694, False: 3.81k]
  ------------------
 1327|    694|            if (add_keyshare)
  ------------------
  |  Branch (1327:17): [True: 0, False: 694]
  ------------------
 1328|      0|                return -1; /* Only single key share prefix allowed -> syntax error */
 1329|    694|            add_keyshare = 1;
 1330|    694|            ++elem;
 1331|    694|            --len;
 1332|    694|            break;
 1333|      0|        case REMOVE_GROUP_INDICATOR_CHARACTER:
  ------------------
  |  | 1242|      0|#define REMOVE_GROUP_INDICATOR_CHARACTER '-'
  ------------------
  |  Branch (1333:9): [True: 0, False: 4.51k]
  ------------------
 1334|      0|            if (remove_group)
  ------------------
  |  Branch (1334:17): [True: 0, False: 0]
  ------------------
 1335|      0|                return -1; /* Only single remove group prefix allowed -> syntax error */
 1336|      0|            remove_group = 1;
 1337|      0|            ++elem;
 1338|      0|            --len;
 1339|      0|            break;
 1340|  3.81k|        case IGNORE_UNKNOWN_GROUP_CHARACTER:
  ------------------
  |  | 1234|  3.81k|#define IGNORE_UNKNOWN_GROUP_CHARACTER '?'
  ------------------
  |  Branch (1340:9): [True: 3.81k, False: 694]
  ------------------
 1341|  3.81k|            if (ignore_unknown)
  ------------------
  |  Branch (1341:17): [True: 0, False: 3.81k]
  ------------------
 1342|      0|                return -1; /* Only single ? allowed -> syntax error */
 1343|  3.81k|            ignore_unknown = 1;
 1344|  3.81k|            ++elem;
 1345|  3.81k|            --len;
 1346|  3.81k|            break;
 1347|      0|        default:
  ------------------
  |  Branch (1347:9): [True: 0, False: 4.51k]
  ------------------
 1348|       |            /*
 1349|       |             * Check whether a DEFAULT[_XYZ] 'pseudo group' (= a built-in
 1350|       |             * list of groups) should be added
 1351|       |             */
 1352|      0|            for (i = 0; i < OSSL_NELEM(default_group_strings); i++) {
  ------------------
  |  |   14|      0|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (1352:25): [True: 0, False: 0]
  ------------------
 1353|      0|                if ((size_t)len == (strlen(default_group_strings[i].list_name))
  ------------------
  |  Branch (1353:21): [True: 0, False: 0]
  ------------------
 1354|      0|                    && OPENSSL_strncasecmp(default_group_strings[i].list_name, elem, len) == 0) {
  ------------------
  |  Branch (1354:24): [True: 0, False: 0]
  ------------------
 1355|      0|                    int saved_first;
 1356|       |
 1357|       |                    /*
 1358|       |                     * We're asked to insert an entire list of groups from a
 1359|       |                     * DEFAULT[_XYZ] 'pseudo group' which we do by
 1360|       |                     * recursively calling this function (indirectly via
 1361|       |                     * CONF_parse_list and tuple_cb); essentially, we treat a DEFAULT
 1362|       |                     * group string like a tuple which is appended to the current tuple
 1363|       |                     * rather then starting a new tuple.
 1364|       |                     */
 1365|      0|                    if (ignore_unknown || remove_group)
  ------------------
  |  Branch (1365:25): [True: 0, False: 0]
  |  Branch (1365:43): [True: 0, False: 0]
  ------------------
 1366|      0|                        return -1; /* removal or ignore not allowed here -> syntax error */
 1367|       |
 1368|       |                    /*
 1369|       |                     * First, we restore any keyshare prefix in a new zero-terminated string
 1370|       |                     * (if not already present)
 1371|       |                     */
 1372|      0|                    restored_default_group_string = OPENSSL_malloc(1 /* max prefix length */ + strlen(default_group_strings[i].group_string) + 1 /* \0 */);
  ------------------
  |  |  107|      0|    CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1373|      0|                    if (restored_default_group_string == NULL)
  ------------------
  |  Branch (1373:25): [True: 0, False: 0]
  ------------------
 1374|      0|                        return 0;
 1375|      0|                    if (add_keyshare
  ------------------
  |  Branch (1375:25): [True: 0, False: 0]
  ------------------
 1376|       |                        /* Remark: we tolerate a duplicated keyshare indicator here */
 1377|      0|                        && default_group_strings[i].group_string[0]
  ------------------
  |  Branch (1377:28): [True: 0, False: 0]
  ------------------
 1378|      0|                            != KEY_SHARE_INDICATOR_CHARACTER)
  ------------------
  |  | 1238|      0|#define KEY_SHARE_INDICATOR_CHARACTER '*'
  ------------------
 1379|      0|                        restored_default_group_string[restored_prefix_index++] = KEY_SHARE_INDICATOR_CHARACTER;
  ------------------
  |  | 1238|      0|#define KEY_SHARE_INDICATOR_CHARACTER '*'
  ------------------
 1380|       |
 1381|      0|                    memcpy(restored_default_group_string + restored_prefix_index,
 1382|      0|                        default_group_strings[i].group_string,
 1383|      0|                        strlen(default_group_strings[i].group_string));
 1384|      0|                    restored_default_group_string[strlen(default_group_strings[i].group_string) + restored_prefix_index] = '\0';
 1385|       |                    /*
 1386|       |                     * Append first tuple of result to current tuple, and don't
 1387|       |                     * terminate the last tuple until we return to a top-level
 1388|       |                     * tuple_cb.
 1389|       |                     */
 1390|      0|                    saved_first = garg->first;
 1391|      0|                    garg->inner = garg->first = 1;
 1392|      0|                    retval = CONF_parse_list(restored_default_group_string,
 1393|      0|                        TUPLE_DELIMITER_CHARACTER, 1, tuple_cb, garg);
  ------------------
  |  | 1226|      0|#define TUPLE_DELIMITER_CHARACTER '/'
  ------------------
 1394|      0|                    garg->inner = 0;
 1395|      0|                    garg->first = saved_first;
 1396|       |                    /* We don't need the \0-terminated string anymore */
 1397|      0|                    OPENSSL_free(restored_default_group_string);
  ------------------
  |  |  132|      0|    CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1398|       |
 1399|      0|                    return retval;
 1400|      0|                }
 1401|      0|            }
 1402|       |            /*
 1403|       |             * If we reached this point, a group name started with a 'd' or 'D', but no request
 1404|       |             * for a DEFAULT[_XYZ] 'pseudo group' was detected, hence processing of the group
 1405|       |             * name can continue as usual (= the while loop checking prefixes can end)
 1406|       |             */
 1407|      0|            continue_while_loop = 0;
 1408|      0|            break;
 1409|  4.51k|        }
 1410|  4.51k|    }
 1411|       |
 1412|  3.81k|    if (len == 0)
  ------------------
  |  Branch (1412:9): [True: 0, False: 3.81k]
  ------------------
 1413|      0|        return -1; /* Seems we have prefxes without a group name -> syntax error */
 1414|       |
 1415|       |    /* Memory management in case more groups are present compared to initial allocation */
 1416|  3.81k|    if (garg->gidcnt == garg->gidmax) {
  ------------------
  |  Branch (1416:9): [True: 0, False: 3.81k]
  ------------------
 1417|      0|        uint16_t *tmp = OPENSSL_realloc_array(garg->gid_arr,
  ------------------
  |  |  125|      0|    CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1418|      0|            garg->gidmax + GROUPLIST_INCREMENT,
 1419|      0|            sizeof(*garg->gid_arr));
 1420|       |
 1421|      0|        if (tmp == NULL)
  ------------------
  |  Branch (1421:13): [True: 0, False: 0]
  ------------------
 1422|      0|            return 0;
 1423|       |
 1424|      0|        garg->gidmax += GROUPLIST_INCREMENT;
  ------------------
  |  | 1215|      0|#define GROUPLIST_INCREMENT 32 /* Memory allocation chunk size (64 Bytes chunks ~= cache line) */
  ------------------
 1425|      0|        garg->gid_arr = tmp;
 1426|      0|    }
 1427|       |    /* Memory management for key share groups */
 1428|  3.81k|    if (garg->ksidcnt == garg->ksidmax) {
  ------------------
  |  Branch (1428:9): [True: 0, False: 3.81k]
  ------------------
 1429|      0|        uint16_t *tmp = OPENSSL_realloc_array(garg->ksid_arr,
  ------------------
  |  |  125|      0|    CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  345|       |#define OPENSSL_FILE __FILE__
  |  |  ------------------
  |  |                   CRYPTO_realloc_array(addr, num, size, OPENSSL_FILE, OPENSSL_LINE)
  |  |  ------------------
  |  |  |  |  346|       |#define OPENSSL_LINE __LINE__
  |  |  ------------------
  ------------------
 1430|      0|            garg->ksidmax + GROUPLIST_INCREMENT,
 1431|      0|            sizeof(*garg->ksid_arr));
 1432|       |
 1433|      0|        if (tmp == NULL)
  ------------------
  |  Branch (1433:13): [True: 0, False: 0]
  ------------------
 1434|      0|            return 0;
 1435|      0|        garg->ksidmax += GROUPLIST_INCREMENT;
  ------------------
  |  | 1215|      0|#define GROUPLIST_INCREMENT 32 /* Memory allocation chunk size (64 Bytes chunks ~= cache line) */
  ------------------
 1436|      0|        garg->ksid_arr = tmp;
 1437|      0|    }
 1438|       |
 1439|  3.81k|    if (len > (int)(sizeof(etmp) - 1))
  ------------------
  |  Branch (1439:9): [True: 0, False: 3.81k]
  ------------------
 1440|      0|        return -1; /* group name to long  -> syntax error */
 1441|       |
 1442|       |    /*
 1443|       |     * Prepare addition or removal of a single group by converting
 1444|       |     * a group name into its groupID equivalent
 1445|       |     */
 1446|       |
 1447|       |    /* Create a \0-terminated string and get the gid for this group if possible */
 1448|  3.81k|    memcpy(etmp, elem, len);
 1449|  3.81k|    etmp[len] = 0;
 1450|       |
 1451|       |    /* Get the groupID */
 1452|  3.81k|    gid = tls1_group_name2id(garg->ctx, etmp);
 1453|       |    /*
 1454|       |     * Handle the case where no valid groupID was returned
 1455|       |     * e.g. for an unknown group, which we'd ignore (only) if relevant prefix was set
 1456|       |     */
 1457|  3.81k|    if (gid == 0) {
  ------------------
  |  Branch (1457:9): [True: 0, False: 3.81k]
  ------------------
 1458|       |        /* Is it one of the GOST groups ? */
 1459|      0|        for (i = 0; i < OSSL_NELEM(name2id_arr); i++) {
  ------------------
  |  |   14|      0|#define OSSL_NELEM(x) (sizeof(x) / sizeof((x)[0]))
  ------------------
  |  Branch (1459:21): [True: 0, False: 0]
  ------------------
 1460|      0|            if (OPENSSL_strcasecmp(etmp, name2id_arr[i].group_name) == 0) {
  ------------------
  |  Branch (1460:17): [True: 0, False: 0]
  ------------------
 1461|      0|                gid = name2id_arr[i].groupID;
 1462|      0|                break;
 1463|      0|            }
 1464|      0|        }
 1465|      0|        if (gid == 0) { /* still not found */
  ------------------
  |  Branch (1465:13): [True: 0, False: 0]
  ------------------
 1466|       |            /* If unknown, next known tuple element gets a keyshare */
 1467|      0|            if (add_keyshare && !remove_group && garg->want_keyshare == 0)
  ------------------
  |  Branch (1467:17): [True: 0, False: 0]
  |  Branch (1467:33): [True: 0, False: 0]
  |  Branch (1467:50): [True: 0, False: 0]
  ------------------
 1468|      0|                garg->want_keyshare = 1;
 1469|       |            /* Unknown group - ignore if ignore_unknown; trigger error otherwise */
 1470|      0|            retval = ignore_unknown;
 1471|      0|            goto done;
 1472|      0|        }
 1473|      0|    }
 1474|       |
 1475|       |    /* Make sure that at least one provider is supporting this groupID */
 1476|  3.81k|    found_group = 0;
 1477|  38.5k|    for (j = 0; j < garg->ctx->group_list_len; j++)
  ------------------
  |  Branch (1477:17): [True: 38.5k, False: 0]
  ------------------
 1478|  38.5k|        if (garg->ctx->group_list[j].group_id == gid) {
  ------------------
  |  Branch (1478:13): [True: 3.81k, False: 34.7k]
  ------------------
 1479|  3.81k|            found_group = 1;
 1480|  3.81k|            break;
 1481|  3.81k|        }
 1482|       |
 1483|       |    /*
 1484|       |     * No provider supports this group - ignore if
 1485|       |     * ignore_unknown; trigger error otherwise
 1486|       |     */
 1487|  3.81k|    if (found_group == 0) {
  ------------------
  |  Branch (1487:9): [True: 0, False: 3.81k]
  ------------------
 1488|       |        /* If unknown, next known tuple element gets a keyshare */
 1489|      0|        if (add_keyshare && !remove_group && garg->want_keyshare == 0)
  ------------------
  |  Branch (1489:13): [True: 0, False: 0]
  |  Branch (1489:29): [True: 0, False: 0]
  |  Branch (1489:46): [True: 0, False: 0]
  ------------------
 1490|      0|            garg->want_keyshare = 1;
 1491|      0|        retval = ignore_unknown;
 1492|      0|        goto done;
 1493|      0|    }
 1494|       |    /* Remove group (and keyshare) from anywhere in the list if present, ignore if not present */
 1495|  3.81k|    if (remove_group) {
  ------------------
  |  Branch (1495:9): [True: 0, False: 3.81k]
  ------------------
 1496|      0|        size_t n = 0; /* tuple size */
 1497|      0|        size_t tpl_start_idx = 0; /* Index of 1st group in tuple of removed group */
 1498|      0|        size_t ks_check_idx = 0; /* Index after last known retained keyshare */
 1499|       |
 1500|      0|        j = 0; /* tuple index */
 1501|      0|        k = 0; /* keyshare index */
 1502|      0|        n = garg->tuplcnt_arr[j];
 1503|       |
 1504|      0|        for (i = 0; i < garg->gidcnt; ++i) {
  ------------------
  |  Branch (1504:21): [True: 0, False: 0]
  ------------------
 1505|      0|            if (garg->gid_arr[i] == gid)
  ------------------
  |  Branch (1505:17): [True: 0, False: 0]
  ------------------
 1506|      0|                break;
 1507|       |            /* Skip keyshare slots associated with groups prior to that removed */
 1508|      0|            if (k < garg->ksidcnt && garg->gid_arr[i] == garg->ksid_arr[k]) {
  ------------------
  |  Branch (1508:17): [True: 0, False: 0]
  |  Branch (1508:38): [True: 0, False: 0]
  ------------------
 1509|      0|                ++k;
 1510|       |                /* Skip each retained keyshare as we go */
 1511|      0|                ks_check_idx = i + 1;
 1512|      0|            }
 1513|      0|            if (--n == 0) {
  ------------------
  |  Branch (1513:17): [True: 0, False: 0]
  ------------------
 1514|      0|                if (j < garg->tplcnt)
  ------------------
  |  Branch (1514:21): [True: 0, False: 0]
  ------------------
 1515|      0|                    n = garg->tuplcnt_arr[++j];
 1516|      0|                tpl_start_idx = i + 1;
 1517|      0|            }
 1518|      0|        }
 1519|       |
 1520|       |        /* Nothing to remove? */
 1521|      0|        if (i >= garg->gidcnt)
  ------------------
  |  Branch (1521:13): [True: 0, False: 0]
  ------------------
 1522|      0|            goto done;
 1523|       |
 1524|      0|        garg->gidcnt--;
 1525|      0|        garg->tuplcnt_arr[j]--;
 1526|      0|        memmove(garg->gid_arr + i, garg->gid_arr + i + 1,
 1527|      0|            (garg->gidcnt - i) * sizeof(gid));
 1528|       |
 1529|       |        /* Handle keyshare removal */
 1530|      0|        if (k < garg->ksidcnt && garg->ksid_arr[k] == gid) {
  ------------------
  |  Branch (1530:13): [True: 0, False: 0]
  |  Branch (1530:34): [True: 0, False: 0]
  ------------------
 1531|      0|            int drop_ks;
 1532|       |
 1533|       |            /*
 1534|       |             * Simply drop the group's keyshare unless it is the last one in a
 1535|       |             * still non-empty tuple.
 1536|       |             *
 1537|       |             * If `ks_check_idx` is larger than the tuple start index at least
 1538|       |             * one keyshare belonging to the tuple is retained, so we drop this
 1539|       |             * one.  Also if the tuple is the current one (isn't closed yet),
 1540|       |             * floating is handled at tuple close time.
 1541|       |             *
 1542|       |             * Otherwise, iterate through the tuple check whether any keyshares
 1543|       |             * remain *after* the index of the group we're removing.  The first
 1544|       |             * of these, if any, is at index `k+1` in the keyshare list, which
 1545|       |             * is the only slow we need to check.
 1546|       |             */
 1547|      0|            drop_ks = ks_check_idx > tpl_start_idx || j >= garg->tplcnt;
  ------------------
  |  Branch (1547:23): [True: 0, False: 0]
  |  Branch (1547:55): [True: 0, False: 0]
  ------------------
 1548|       |
 1549|      0|            if (!drop_ks) {
  ------------------
  |  Branch (1549:17): [True: 0, False: 0]
  ------------------
 1550|      0|                size_t end; /* End index of affected tuple */
 1551|       |
 1552|       |                /* Removing the first keyshare of an already completed tuple */
 1553|      0|                for (end = tpl_start_idx + garg->tuplcnt_arr[j]; i < end; ++i) {
  ------------------
  |  Branch (1553:66): [True: 0, False: 0]
  ------------------
 1554|       |                    /* Any other keyshares for the same tuple? */
 1555|      0|                    if (k + 1 < garg->ksidcnt
  ------------------
  |  Branch (1555:25): [True: 0, False: 0]
  ------------------
 1556|      0|                        && garg->gid_arr[i] == garg->ksid_arr[k + 1])
  ------------------
  |  Branch (1556:28): [True: 0, False: 0]
  ------------------
 1557|      0|                        break;
 1558|      0|                }
 1559|       |                /* Float keyshare to first group when no others found */
 1560|      0|                if (i >= end)
  ------------------
  |  Branch (1560:21): [True: 0, False: 0]
  ------------------
 1561|      0|                    garg->ksid_arr[k] = garg->gid_arr[tpl_start_idx];
 1562|      0|                else
 1563|      0|                    drop_ks = 1;
 1564|      0|            }
 1565|      0|            if (drop_ks) {
  ------------------
  |  Branch (1565:17): [True: 0, False: 0]
  ------------------
 1566|      0|                garg->ksidcnt--;
 1567|      0|                memmove(garg->ksid_arr + k, garg->ksid_arr + k + 1,
 1568|      0|                    (garg->ksidcnt - k) * sizeof(gid));
 1569|      0|            }
 1570|      0|        }
 1571|       |
 1572|       |        /*
 1573|       |         * Adjust closed or current tuple's group count, if a closed tuple
 1574|       |         * count reaches zero excise the resulting empty tuple.  The current
 1575|       |         * (not yet closed) tuple at the end of the list stays even if empty.
 1576|       |         */
 1577|      0|        if (garg->tuplcnt_arr[j] == 0 && j < garg->tplcnt) {
  ------------------
  |  Branch (1577:13): [True: 0, False: 0]
  |  Branch (1577:42): [True: 0, False: 0]
  ------------------
 1578|      0|            garg->tplcnt--;
 1579|      0|            memmove(garg->tuplcnt_arr + j, garg->tuplcnt_arr + j + 1,
 1580|      0|                (garg->tplcnt - j) * sizeof(size_t));
 1581|      0|        }
 1582|  3.81k|    } else { /* Processing addition of a single new group */
 1583|       |
 1584|       |        /* Check for duplicates */
 1585|  22.9k|        for (i = 0; i < garg->gidcnt; i++)
  ------------------
  |  Branch (1585:21): [True: 19.0k, False: 3.81k]
  ------------------
 1586|  19.0k|            if (garg->gid_arr[i] == gid) {
  ------------------
  |  Branch (1586:17): [True: 0, False: 19.0k]
  ------------------
 1587|       |                /* Duplicate group anywhere in the list of groups - ignore */
 1588|      0|                goto done;
 1589|      0|            }
 1590|       |
 1591|       |        /* Add the current group to the 'flat' list of groups */
 1592|  3.81k|        garg->gid_arr[garg->gidcnt++] = gid;
 1593|       |        /* and update the book keeping for the number of groups in current tuple */
 1594|  3.81k|        garg->tuplcnt_arr[garg->tplcnt]++;
 1595|       |
 1596|       |        /* We want to add a key share for the current group */
 1597|  3.81k|        if (add_keyshare) {
  ------------------
  |  Branch (1597:13): [True: 694, False: 3.12k]
  ------------------
 1598|    694|            garg->ksid_arr[garg->ksidcnt++] = gid;
 1599|    694|            garg->want_keyshare = -1;
 1600|    694|        }
 1601|  3.81k|    }
 1602|       |
 1603|  3.81k|done:
 1604|  3.81k|    return retval;
 1605|  3.81k|}
t1_lib.c:tls1_group_name2id:
  725|  3.81k|{
  726|  3.81k|    size_t i;
  727|       |
  728|  38.5k|    for (i = 0; i < ctx->group_list_len; i++) {
  ------------------
  |  Branch (728:17): [True: 38.5k, False: 0]
  ------------------
  729|  38.5k|        if (OPENSSL_strcasecmp(ctx->group_list[i].tlsname, name) == 0
  ------------------
  |  Branch (729:13): [True: 3.81k, False: 34.7k]
  ------------------
  730|  34.7k|            || OPENSSL_strcasecmp(ctx->group_list[i].realname, name) == 0)
  ------------------
  |  Branch (730:16): [True: 0, False: 34.7k]
  ------------------
  731|  3.81k|            return ctx->group_list[i].group_id;
  732|  38.5k|    }
  733|       |
  734|      0|    return 0;
  735|  3.81k|}
t1_lib.c:tls1_lookup_sigalg:
 2549|  51.3k|{
 2550|  51.3k|    const SIGALG_LOOKUP *lu = tls1_find_sigalg(ctx, sigalg);
 2551|       |
 2552|  51.3k|    return (lu != NULL && lu->available) ? lu : NULL;
  ------------------
  |  Branch (2552:13): [True: 51.3k, False: 0]
  |  Branch (2552:27): [True: 51.3k, False: 0]
  ------------------
 2553|  51.3k|}
t1_lib.c:tls_sigalg_compat:
 2813|  10.2k|{
 2814|  10.2k|    int minversion, maxversion;
 2815|  10.2k|    int minproto, maxproto;
 2816|       |
 2817|  10.2k|    if (!lu->available)
  ------------------
  |  Branch (2817:9): [True: 0, False: 10.2k]
  ------------------
 2818|      0|        return 0;
 2819|       |
 2820|  10.2k|    if (SSL_CONNECTION_IS_DTLS(sc)) {
  ------------------
  |  |  266|  10.2k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  10.2k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|  10.2k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  |  |  |  Branch (266:5): [True: 0, False: 10.2k]
  |  |  ------------------
  ------------------
 2821|      0|        if (sc->ssl.method->version == DTLS_ANY_VERSION) {
  ------------------
  |  |   35|      0|#define DTLS_ANY_VERSION 0x1FFFF
  ------------------
  |  Branch (2821:13): [True: 0, False: 0]
  ------------------
 2822|      0|            minproto = sc->min_proto_version;
 2823|      0|            maxproto = sc->max_proto_version;
 2824|      0|        } else {
 2825|      0|            maxproto = minproto = sc->version;
 2826|      0|        }
 2827|      0|        minversion = lu->mindtls;
 2828|      0|        maxversion = lu->maxdtls;
 2829|  10.2k|    } else {
 2830|  10.2k|        if (sc->ssl.method->version == TLS_ANY_VERSION) {
  ------------------
  |  |   40|  10.2k|#define TLS_ANY_VERSION 0x10000
  ------------------
  |  Branch (2830:13): [True: 10.2k, False: 0]
  ------------------
 2831|  10.2k|            minproto = sc->min_proto_version;
 2832|  10.2k|            maxproto = sc->max_proto_version;
 2833|  10.2k|        } else {
 2834|      0|            maxproto = minproto = sc->version;
 2835|      0|        }
 2836|  10.2k|        minversion = lu->mintls;
 2837|  10.2k|        maxversion = lu->maxtls;
 2838|  10.2k|    }
 2839|  10.2k|    if (minversion == -1 || maxversion == -1
  ------------------
  |  Branch (2839:9): [True: 0, False: 10.2k]
  |  Branch (2839:29): [True: 0, False: 10.2k]
  ------------------
 2840|  10.2k|        || (minversion != 0 && maxproto != 0
  ------------------
  |  Branch (2840:13): [True: 10.2k, False: 0]
  |  Branch (2840:32): [True: 0, False: 10.2k]
  ------------------
 2841|      0|            && ssl_version_cmp(sc, minversion, maxproto) > 0)
  ------------------
  |  Branch (2841:16): [True: 0, False: 0]
  ------------------
 2842|  10.2k|        || (maxversion != 0 && minproto != 0
  ------------------
  |  Branch (2842:13): [True: 4.44k, False: 5.81k]
  |  Branch (2842:32): [True: 4.44k, False: 0]
  ------------------
 2843|  4.44k|            && ssl_version_cmp(sc, maxversion, minproto) < 0)
  ------------------
  |  Branch (2843:16): [True: 0, False: 4.44k]
  ------------------
 2844|  10.2k|        || !tls12_sigalg_allowed(sc, SSL_SECOP_SIGALG_SUPPORTED, lu))
  ------------------
  |  | 2761|  10.2k|#define SSL_SECOP_SIGALG_SUPPORTED (11 | SSL_SECOP_OTHER_SIGALG)
  |  |  ------------------
  |  |  |  | 2733|  10.2k|#define SSL_SECOP_OTHER_SIGALG (5 << 16)
  |  |  ------------------
  ------------------
  |  Branch (2844:12): [True: 1.02k, False: 9.23k]
  ------------------
 2845|  1.02k|        return 0;
 2846|  9.23k|    return 1;
 2847|  10.2k|}
t1_lib.c:sigalg_security_bits:
 2765|  14.3k|{
 2766|  14.3k|    const EVP_MD *md = NULL;
 2767|  14.3k|    int secbits = 0;
 2768|       |
 2769|  14.3k|    if (!tls1_lookup_md(ctx, lu, &md))
  ------------------
  |  Branch (2769:9): [True: 0, False: 14.3k]
  ------------------
 2770|      0|        return 0;
 2771|  14.3k|    if (md != NULL) {
  ------------------
  |  Branch (2771:9): [True: 12.3k, False: 2.05k]
  ------------------
 2772|  12.3k|        int md_type = EVP_MD_get_type(md);
 2773|       |
 2774|       |        /* Security bits: half digest bits */
 2775|  12.3k|        secbits = EVP_MD_get_size(md) * 4;
 2776|  12.3k|        if (secbits <= 0)
  ------------------
  |  Branch (2776:13): [True: 0, False: 12.3k]
  ------------------
 2777|      0|            return 0;
 2778|       |        /*
 2779|       |         * SHA1 and MD5 are known to be broken. Reduce security bits so that
 2780|       |         * they're no longer accepted at security level 1. The real values don't
 2781|       |         * really matter as long as they're lower than 80, which is our
 2782|       |         * security level 1.
 2783|       |         * https://eprint.iacr.org/2020/014 puts a chosen-prefix attack for
 2784|       |         * SHA1 at 2^63.4 and MD5+SHA1 at 2^67.2
 2785|       |         * https://documents.epfl.ch/users/l/le/lenstra/public/papers/lat.pdf
 2786|       |         * puts a chosen-prefix attack for MD5 at 2^39.
 2787|       |         */
 2788|  12.3k|        if (md_type == NID_sha1)
  ------------------
  |  | 2348|  12.3k|#define NID_sha1                64
  ------------------
  |  Branch (2788:13): [True: 1.02k, False: 11.2k]
  ------------------
 2789|  1.02k|            secbits = 64;
 2790|  11.2k|        else if (md_type == NID_md5_sha1)
  ------------------
  |  | 1247|  11.2k|#define NID_md5_sha1            114
  ------------------
  |  Branch (2790:18): [True: 0, False: 11.2k]
  ------------------
 2791|      0|            secbits = 67;
 2792|  11.2k|        else if (md_type == NID_md5)
  ------------------
  |  | 1242|  11.2k|#define NID_md5         4
  ------------------
  |  Branch (2792:18): [True: 0, False: 11.2k]
  ------------------
 2793|      0|            secbits = 39;
 2794|  12.3k|    } else {
 2795|       |        /* Values from https://tools.ietf.org/html/rfc8032#section-8.5 */
 2796|  2.05k|        if (lu->sigalg == TLSEXT_SIGALG_ed25519)
  ------------------
  |  |   43|  2.05k|#define TLSEXT_SIGALG_ed25519 0x0807
  ------------------
  |  Branch (2796:13): [True: 342, False: 1.71k]
  ------------------
 2797|    342|            secbits = 128;
 2798|  1.71k|        else if (lu->sigalg == TLSEXT_SIGALG_ed448)
  ------------------
  |  |   44|  1.71k|#define TLSEXT_SIGALG_ed448 0x0808
  ------------------
  |  Branch (2798:18): [True: 342, False: 1.36k]
  ------------------
 2799|    342|            secbits = 224;
 2800|  2.05k|    }
 2801|       |    /*
 2802|       |     * For provider-based sigalgs we have secbits information available
 2803|       |     * in the (provider-loaded) sigalg_list structure
 2804|       |     */
 2805|  14.3k|    if ((secbits == 0) && (lu->sig_idx >= SSL_PKEY_NUM)
  ------------------
  |  |  336|  1.36k|#define SSL_PKEY_NUM 9
  ------------------
  |  Branch (2805:9): [True: 1.36k, False: 12.9k]
  |  Branch (2805:27): [True: 1.36k, False: 0]
  ------------------
 2806|  1.36k|        && ((lu->sig_idx - SSL_PKEY_NUM) < (int)ctx->sigalg_list_len)) {
  ------------------
  |  |  336|  1.36k|#define SSL_PKEY_NUM 9
  ------------------
  |  Branch (2806:12): [True: 1.36k, False: 0]
  ------------------
 2807|  1.36k|        secbits = ctx->sigalg_list[lu->sig_idx - SSL_PKEY_NUM].secbits;
  ------------------
  |  |  336|  1.36k|#define SSL_PKEY_NUM 9
  ------------------
 2808|  1.36k|    }
 2809|  14.3k|    return secbits;
 2810|  14.3k|}
t1_lib.c:tls12_sigalg_allowed:
 3498|  14.3k|{
 3499|  14.3k|    unsigned char sigalgstr[2];
 3500|  14.3k|    int secbits;
 3501|       |
 3502|  14.3k|    if (lu == NULL || !lu->available)
  ------------------
  |  Branch (3502:9): [True: 0, False: 14.3k]
  |  Branch (3502:23): [True: 0, False: 14.3k]
  ------------------
 3503|      0|        return 0;
 3504|       |    /* DSA is not allowed in TLS 1.3 */
 3505|  14.3k|    if (SSL_CONNECTION_IS_TLS13(s) && lu->sig == EVP_PKEY_DSA)
  ------------------
  |  |  273|  28.7k|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  266|  28.7k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  |   27|  14.3k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  |  |  ------------------
  |  |  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2196|  14.3k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (273:37): [True: 14.3k, False: 0]
  |  |  ------------------
  |  |  274|  14.3k|    && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|  14.3k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version >= TLS1_3_VERSION \
  |  |  ------------------
  |  |  |  |   27|  28.7k|#define TLS1_3_VERSION 0x0304
  |  |  ------------------
  |  |  |  Branch (274:8): [True: 14.3k, False: 0]
  |  |  ------------------
  |  |  275|  28.7k|    && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   27|  14.3k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   && SSL_CONNECTION_GET_SSL(s)->method->version != TLS_ANY_VERSION)
  |  |  ------------------
  |  |  |  |   40|  14.3k|#define TLS_ANY_VERSION 0x10000
  |  |  ------------------
  |  |  |  Branch (275:8): [True: 0, False: 14.3k]
  |  |  ------------------
  ------------------
                  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 (3505:39): [True: 0, False: 0]
  ------------------
 3506|      0|        return 0;
 3507|       |    /*
 3508|       |     * At some point we should fully axe DSA/etc. in ClientHello as per TLS 1.3
 3509|       |     * spec
 3510|       |     */
 3511|  14.3k|    if (!s->server && !SSL_CONNECTION_IS_DTLS(s)
  ------------------
  |  |  266|  28.7k|    (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  |   27|  14.3k|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  |  |  ------------------
  |  |                   (SSL_CONNECTION_GET_SSL(s)->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
  |  |  ------------------
  |  |  |  | 2196|  14.3k|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  ------------------
  ------------------
  |  Branch (3511:9): [True: 14.3k, False: 0]
  |  Branch (3511:23): [True: 14.3k, False: 0]
  ------------------
 3512|  14.3k|        && s->s3.tmp.min_ver >= TLS1_3_VERSION
  ------------------
  |  |   27|  28.7k|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (3512:12): [True: 0, False: 14.3k]
  ------------------
 3513|      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
  ------------------
  |  |  194|      0|#define SSL_MD_SHA1_IDX 1
  ------------------
  |  Branch (3513:13): [True: 0, False: 0]
  |  Branch (3513:40): [True: 0, False: 0]
  ------------------
 3514|      0|            || lu->hash_idx == SSL_MD_MD5_IDX
  ------------------
  |  |  193|      0|#define SSL_MD_MD5_IDX 0
  ------------------
  |  Branch (3514:16): [True: 0, False: 0]
  ------------------
 3515|      0|            || lu->hash_idx == SSL_MD_SHA224_IDX))
  ------------------
  |  |  203|      0|#define SSL_MD_SHA224_IDX 10
  ------------------
  |  Branch (3515:16): [True: 0, False: 0]
  ------------------
 3516|      0|        return 0;
 3517|       |
 3518|       |    /* See if public key algorithm allowed */
 3519|  14.3k|    if (ssl_cert_is_disabled(SSL_CONNECTION_GET_CTX(s), lu->sig_idx))
  ------------------
  |  |   26|  14.3k|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
  |  Branch (3519:9): [True: 0, False: 14.3k]
  ------------------
 3520|      0|        return 0;
 3521|       |
 3522|  14.3k|    if (lu->sig == NID_id_GostR3410_2012_256
  ------------------
  |  | 4794|  28.7k|#define NID_id_GostR3410_2012_256               979
  ------------------
  |  Branch (3522:9): [True: 0, False: 14.3k]
  ------------------
 3523|  14.3k|        || lu->sig == NID_id_GostR3410_2012_512
  ------------------
  |  | 4799|  28.7k|#define NID_id_GostR3410_2012_512               980
  ------------------
  |  Branch (3523:12): [True: 0, False: 14.3k]
  ------------------
 3524|  14.3k|        || lu->sig == NID_id_GostR3410_2001) {
  ------------------
  |  | 4583|  14.3k|#define NID_id_GostR3410_2001           811
  ------------------
  |  Branch (3524:12): [True: 0, False: 14.3k]
  ------------------
 3525|       |        /* We never allow GOST sig algs on the server with TLSv1.3 */
 3526|      0|        if (s->server && SSL_CONNECTION_IS_TLS13(s))
  ------------------
  |  |  273|      0|#define SSL_CONNECTION_IS_TLS13(s) (!SSL_CONNECTION_IS_DTLS(s)      \
  |  |  ------------------
  |  |  |  |  266|      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)
  |  |  |  |  ------------------
  |  |  |  |  |  | 2196|      0|#define SSL_ENC_FLAG_DTLS 0x8
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (273:37): [True: 0, False: 0]
  |  |  ------------------
  |  |  274|      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 (274:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  275|      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 (275:8): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (3526:13): [True: 0, False: 0]
  ------------------
 3527|      0|            return 0;
 3528|      0|        if (!s->server
  ------------------
  |  Branch (3528:13): [True: 0, False: 0]
  ------------------
 3529|      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 (3529:16): [True: 0, False: 0]
  ------------------
 3530|      0|            && s->s3.tmp.max_ver >= TLS1_3_VERSION) {
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (3530:16): [True: 0, False: 0]
  ------------------
 3531|      0|            int i, num;
 3532|      0|            STACK_OF(SSL_CIPHER) *sk;
  ------------------
  |  |   33|      0|#define STACK_OF(type) struct stack_st_##type
  ------------------
 3533|       |
 3534|       |            /*
 3535|       |             * We're a client that could negotiate TLSv1.3. We only allow GOST
 3536|       |             * sig algs if we could negotiate TLSv1.2 or below and we have GOST
 3537|       |             * ciphersuites enabled.
 3538|       |             */
 3539|       |
 3540|      0|            if (s->s3.tmp.min_ver >= TLS1_3_VERSION)
  ------------------
  |  |   27|      0|#define TLS1_3_VERSION 0x0304
  ------------------
  |  Branch (3540:17): [True: 0, False: 0]
  ------------------
 3541|      0|                return 0;
 3542|       |
 3543|      0|            sk = SSL_get_ciphers(SSL_CONNECTION_GET_SSL(s));
  ------------------
  |  |   27|      0|#define SSL_CONNECTION_GET_SSL(sc) (&(sc)->ssl)
  ------------------
 3544|      0|            num = sk != NULL ? sk_SSL_CIPHER_num(sk) : 0;
  ------------------
  |  | 1028|      0|#define sk_SSL_CIPHER_num(sk) OPENSSL_sk_num(ossl_check_const_SSL_CIPHER_sk_type(sk))
  ------------------
  |  Branch (3544:19): [True: 0, False: 0]
  ------------------
 3545|      0|            for (i = 0; i < num; i++) {
  ------------------
  |  Branch (3545:25): [True: 0, False: 0]
  ------------------
 3546|      0|                const SSL_CIPHER *c;
 3547|       |
 3548|      0|                c = sk_SSL_CIPHER_value(sk, i);
  ------------------
  |  | 1029|      0|#define sk_SSL_CIPHER_value(sk, idx) ((const SSL_CIPHER *)OPENSSL_sk_value(ossl_check_const_SSL_CIPHER_sk_type(sk), (idx)))
  ------------------
 3549|       |                /* Skip disabled ciphers */
 3550|      0|                if (ssl_cipher_disabled(s, c, SSL_SECOP_CIPHER_SUPPORTED, 0))
  ------------------
  |  | 2743|      0|#define SSL_SECOP_CIPHER_SUPPORTED (1 | SSL_SECOP_OTHER_CIPHER)
  |  |  ------------------
  |  |  |  | 2729|      0|#define SSL_SECOP_OTHER_CIPHER (1 << 16)
  |  |  ------------------
  ------------------
  |  Branch (3550:21): [True: 0, False: 0]
  ------------------
 3551|      0|                    continue;
 3552|       |
 3553|      0|                if ((c->algorithm_mkey & (SSL_kGOST | SSL_kGOST18)) != 0)
  ------------------
  |  |   93|      0|#define SSL_kGOST 0x00000010U
  ------------------
                              if ((c->algorithm_mkey & (SSL_kGOST | SSL_kGOST18)) != 0)
  ------------------
  |  |  101|      0|#define SSL_kGOST18 0x00000200U
  ------------------
  |  Branch (3553:21): [True: 0, False: 0]
  ------------------
 3554|      0|                    break;
 3555|      0|            }
 3556|      0|            if (i == num)
  ------------------
  |  Branch (3556:17): [True: 0, False: 0]
  ------------------
 3557|      0|                return 0;
 3558|      0|        }
 3559|      0|    }
 3560|       |
 3561|       |    /* Finally see if security callback allows it */
 3562|  14.3k|    secbits = sigalg_security_bits(SSL_CONNECTION_GET_CTX(s), lu);
  ------------------
  |  |   26|  14.3k|#define SSL_CONNECTION_GET_CTX(sc) ((sc)->ssl.ctx)
  ------------------
 3563|  14.3k|    sigalgstr[0] = (lu->sigalg >> 8) & 0xff;
 3564|  14.3k|    sigalgstr[1] = lu->sigalg & 0xff;
 3565|  14.3k|    return ssl_security(s, op, secbits, lu->hash, (void *)sigalgstr);
 3566|  14.3k|}
t1_lib.c:tls1_find_sigalg:
 2537|  51.3k|{
 2538|  51.3k|    const SIGALG_LOOKUP *lu = ctx->sigalg_lookup_cache;
 2539|       |
 2540|   829k|    for (size_t i = 0; i < ctx->sigalg_lookup_cache_len; lu++, i++)
  ------------------
  |  Branch (2540:24): [True: 829k, False: 0]
  ------------------
 2541|   829k|        if (lu->sigalg == sigalg)
  ------------------
  |  Branch (2541:13): [True: 51.3k, False: 778k]
  ------------------
 2542|  51.3k|            return lu;
 2543|      0|    return NULL;
 2544|  51.3k|}

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

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

_ZN12proto_fuzzer14MockConnectionC2Ev:
   66|  9.33k|MockConnection::MockConnection() : server_fd_(-1), client_fd_(-1), drain_limit_(0) {
   67|  9.33k|  int fds[2];
   68|       |
   69|  9.33k|  if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds) != 0) {
  ------------------
  |  Branch (69:7): [True: 0, False: 9.33k]
  ------------------
   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|  9.33k|  if (!FdFitsInFdSet(fds[0]) || !FdFitsInFdSet(fds[1])) {
  ------------------
  |  Branch (74:7): [True: 0, False: 9.33k]
  |  Branch (74:33): [True: 0, False: 9.33k]
  ------------------
   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|  9.33k|  int flags = fcntl(fds[0], F_GETFL, 0);
   82|  9.33k|  if (flags < 0 || fcntl(fds[0], F_SETFL, flags | O_NONBLOCK) < 0) {
  ------------------
  |  Branch (82:7): [True: 0, False: 9.33k]
  |  Branch (82:20): [True: 0, False: 9.33k]
  ------------------
   83|      0|    close(fds[0]);
   84|      0|    close(fds[1]);
   85|      0|    return;
   86|      0|  }
   87|       |
   88|       |  // Success: store the file descriptors.
   89|  9.33k|  server_fd_ = fds[0];
   90|  9.33k|  client_fd_ = fds[1];
   91|  9.33k|}
_ZN12proto_fuzzer14MockConnectionD2Ev:
   94|  9.33k|MockConnection::~MockConnection() {
   95|  9.33k|  if (server_fd_ >= 0) {
  ------------------
  |  Branch (95:7): [True: 9.33k, False: 0]
  ------------------
   96|  9.33k|    close(server_fd_);
   97|  9.33k|  }
   98|  9.33k|  if (client_fd_ >= 0) {
  ------------------
  |  Branch (98:7): [True: 0, False: 9.33k]
  ------------------
   99|      0|    close(client_fd_);
  100|      0|  }
  101|  9.33k|}
_ZNK12proto_fuzzer14MockConnection2okEv:
  104|  9.33k|bool MockConnection::ok() const { return server_fd_ >= 0; }
_ZN12proto_fuzzer14MockConnection14take_client_fdEv:
  112|  9.33k|curl_socket_t MockConnection::take_client_fd() {
  113|  9.33k|  int fd = client_fd_;
  114|  9.33k|  client_fd_ = -1;
  115|  9.33k|  return static_cast<curl_socket_t>(fd);
  116|  9.33k|}
_ZN12proto_fuzzer14MockConnection8WriteAllEPKhm:
  123|  25.9k|bool MockConnection::WriteAll(const unsigned char* data, std::size_t size) {
  124|  25.9k|  if (server_fd_ < 0) {
  ------------------
  |  Branch (124:7): [True: 0, False: 25.9k]
  ------------------
  125|      0|    return false;
  126|      0|  }
  127|  25.9k|  std::size_t written = 0;
  128|  51.8k|  while (written < size) {
  ------------------
  |  Branch (128:10): [True: 25.9k, False: 25.9k]
  ------------------
  129|  25.9k|    ssize_t n = ::write(server_fd_, data + written, size - written);
  130|  25.9k|    if (n <= 0) {
  ------------------
  |  Branch (130:9): [True: 0, False: 25.9k]
  ------------------
  131|      0|      return false;
  132|      0|    }
  133|  25.9k|    written += static_cast<std::size_t>(n);
  134|  25.9k|  }
  135|  25.9k|  return true;
  136|  25.9k|}
_ZN12proto_fuzzer14MockConnection13DrainIncomingEv:
  142|  48.1k|void MockConnection::DrainIncoming() {
  143|  48.1k|  if (server_fd_ < 0) {
  ------------------
  |  Branch (143:7): [True: 0, False: 48.1k]
  ------------------
  144|      0|    return;
  145|      0|  }
  146|  48.1k|  unsigned char scratch[4096];
  147|  48.1k|  std::size_t drained = 0;
  148|  68.0k|  while (drain_limit_ == 0 || drained < drain_limit_) {
  ------------------
  |  Branch (148:10): [True: 43.9k, False: 24.1k]
  |  Branch (148:31): [True: 14.6k, False: 9.52k]
  ------------------
  149|  58.5k|    std::size_t want = sizeof(scratch);
  150|  58.5k|    if (drain_limit_ != 0) {
  ------------------
  |  Branch (150:9): [True: 14.6k, False: 43.9k]
  ------------------
  151|  14.6k|      const std::size_t remaining = drain_limit_ - drained;
  152|  14.6k|      if (remaining < want) {
  ------------------
  |  Branch (152:11): [True: 12.1k, False: 2.54k]
  ------------------
  153|  12.1k|        want = remaining;
  154|  12.1k|      }
  155|  14.6k|    }
  156|  58.5k|    ssize_t n = ::read(server_fd_, scratch, want);
  157|  58.5k|    if (n <= 0) {
  ------------------
  |  Branch (157:9): [True: 38.6k, False: 19.8k]
  ------------------
  158|  38.6k|      break;
  159|  38.6k|    }
  160|  19.8k|    drained += static_cast<std::size_t>(n);
  161|  19.8k|  }
  162|  48.1k|}
_ZN12proto_fuzzer14MockConnection17ApplyBackpressureEim:
  171|  9.33k|void MockConnection::ApplyBackpressure(int recv_buf_bytes, std::size_t drain_limit) {
  172|  9.33k|  if (recv_buf_bytes > 0) {
  ------------------
  |  Branch (172:7): [True: 651, False: 8.68k]
  ------------------
  173|    651|    if (server_fd_ >= 0) {
  ------------------
  |  Branch (173:9): [True: 651, False: 0]
  ------------------
  174|    651|      (void)setsockopt(server_fd_, SOL_SOCKET, SO_RCVBUF, &recv_buf_bytes, sizeof(recv_buf_bytes));
  175|    651|    }
  176|    651|    if (client_fd_ >= 0) {
  ------------------
  |  Branch (176:9): [True: 651, False: 0]
  ------------------
  177|    651|      (void)setsockopt(client_fd_, SOL_SOCKET, SO_SNDBUF, &recv_buf_bytes, sizeof(recv_buf_bytes));
  178|    651|    }
  179|    651|  }
  180|  9.33k|  drain_limit_ = drain_limit;
  181|  9.33k|}
_ZN12proto_fuzzer14MockConnection13ReadAvailableEPNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  187|  8.64k|void MockConnection::ReadAvailable(std::string* out) {
  188|  8.64k|  if (server_fd_ < 0 || out == nullptr) {
  ------------------
  |  Branch (188:7): [True: 0, False: 8.64k]
  |  Branch (188:25): [True: 0, False: 8.64k]
  ------------------
  189|      0|    return;
  190|      0|  }
  191|  8.64k|  unsigned char scratch[4096];
  192|  11.0k|  while (true) {
  ------------------
  |  Branch (192:10): [True: 11.0k, Folded]
  ------------------
  193|  11.0k|    ssize_t n = ::read(server_fd_, scratch, sizeof(scratch));
  194|  11.0k|    if (n <= 0) {
  ------------------
  |  Branch (194:9): [True: 8.64k, False: 2.42k]
  ------------------
  195|  8.64k|      break;
  196|  8.64k|    }
  197|  2.42k|    out->append(reinterpret_cast<const char*>(scratch), static_cast<std::size_t>(n));
  198|  2.42k|  }
  199|  8.64k|}
_ZN12proto_fuzzer14MockConnection13ShutdownWriteEv:
  202|  7.34k|void MockConnection::ShutdownWrite() {
  203|  7.34k|  if (server_fd_ < 0) {
  ------------------
  |  Branch (203:7): [True: 0, False: 7.34k]
  ------------------
  204|      0|    return;
  205|      0|  }
  206|  7.34k|  ::shutdown(server_fd_, SHUT_WR);
  207|  7.34k|}
_ZN12proto_fuzzer10MockServerC2Ev:
  215|  7.69k|MockServer::MockServer() : next_chunk_(0), initial_sent_(false) {}
_ZN12proto_fuzzer10MockServerD2Ev:
  218|  7.69k|MockServer::~MockServer() = default;
_ZN12proto_fuzzer10MockServer9SetScriptENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_6vectorIS7_NS5_IS7_EEEE:
  225|  7.69k|void MockServer::SetScript(std::string initial_response, std::vector<std::string> on_readable) {
  226|  7.69k|  initial_response_ = std::move(initial_response);
  227|  7.69k|  on_readable_ = std::move(on_readable);
  228|  7.69k|  next_chunk_ = 0;
  229|  7.69k|  initial_sent_ = false;
  230|  7.69k|}
_ZNK12proto_fuzzer10MockServer15has_more_chunksEv:
  233|  26.0k|bool MockServer::has_more_chunks() const { return next_chunk_ < on_readable_.size(); }
_ZN12proto_fuzzer10MockServer16HandleOpenSocketEv:
  240|  8.17k|curl_socket_t MockServer::HandleOpenSocket() {
  241|  8.17k|  if (connection_) {
  ------------------
  |  Branch (241:7): [True: 813, False: 7.36k]
  ------------------
  242|       |    // This mock supports exactly one connection per scenario.
  243|    813|    return CURL_SOCKET_BAD;
  ------------------
  |  |  145|    813|#define CURL_SOCKET_BAD (-1)
  ------------------
  244|    813|  }
  245|  7.36k|  connection_ = std::make_unique<MockConnection>();
  246|  7.36k|  if (!connection_->ok()) {
  ------------------
  |  Branch (246:7): [True: 0, False: 7.36k]
  ------------------
  247|      0|    connection_.reset();
  248|      0|    return CURL_SOCKET_BAD;
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  249|      0|  }
  250|  7.36k|  ApplyPendingBackpressure();
  251|  7.36k|  if (!initial_response_.empty()) {
  ------------------
  |  Branch (251:7): [True: 4.91k, False: 2.44k]
  ------------------
  252|  4.91k|    if (!connection_->WriteAll(reinterpret_cast<const unsigned char*>(initial_response_.data()),
  ------------------
  |  Branch (252:9): [True: 0, False: 4.91k]
  ------------------
  253|  4.91k|                               initial_response_.size())) {
  254|      0|      connection_.reset();
  255|      0|      return CURL_SOCKET_BAD;
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  256|      0|    }
  257|  4.91k|  }
  258|  7.36k|  initial_sent_ = true;
  259|  7.36k|  if (on_readable_.empty()) {
  ------------------
  |  Branch (259:7): [True: 3.07k, False: 4.28k]
  ------------------
  260|  3.07k|    connection_->ShutdownWrite();
  261|  3.07k|  }
  262|  7.36k|  return connection_->take_client_fd();
  263|  7.36k|}
_ZN12proto_fuzzer10MockServer16DeliverNextChunkEv:
  267|  16.3k|void MockServer::DeliverNextChunk() {
  268|  16.3k|  if (!connection_ || next_chunk_ >= on_readable_.size()) {
  ------------------
  |  Branch (268:7): [True: 0, False: 16.3k]
  |  Branch (268:23): [True: 0, False: 16.3k]
  ------------------
  269|      0|    return;
  270|      0|  }
  271|  16.3k|  connection_->DrainIncoming();
  272|  16.3k|  const std::string& chunk = on_readable_[next_chunk_++];
  273|  16.3k|  if (!chunk.empty()) {
  ------------------
  |  Branch (273:7): [True: 15.5k, False: 804]
  ------------------
  274|  15.5k|    connection_->WriteAll(reinterpret_cast<const unsigned char*>(chunk.data()), chunk.size());
  275|  15.5k|  }
  276|  16.3k|  if (next_chunk_ >= on_readable_.size()) {
  ------------------
  |  Branch (276:7): [True: 3.72k, False: 12.6k]
  ------------------
  277|  3.72k|    connection_->ShutdownWrite();
  278|  3.72k|  }
  279|  16.3k|}
_ZN12proto_fuzzer10MockServer7RunLoopEPvS1_RKN4curl6fuzzer5proto8ScenarioE:
  287|  7.69k|void MockServer::RunLoop(CURLM* multi, CURL* easy, const curl::fuzzer::proto::Scenario& scenario) {
  288|  7.69k|  (void)easy;
  289|  7.69k|  const auto& conn = scenario.connection();
  290|  7.69k|  SetScript(conn.initial_response(), BuildChunkList(conn));
  291|       |
  292|  7.69k|  int still_running = 1;
  293|  7.69k|  int idle_iterations = 0;
  294|  7.69k|  CURLMcode rc = CURLM_OK;
  295|       |
  296|  33.6k|  while (still_running && idle_iterations < kMaxIdleIterations) {
  ------------------
  |  Branch (296:10): [True: 33.6k, False: 0]
  |  Branch (296:27): [True: 33.6k, False: 7]
  ------------------
  297|  33.6k|    rc = curl_multi_perform(multi, &still_running);
  298|  33.6k|    if (rc != CURLM_OK) {
  ------------------
  |  Branch (298:9): [True: 0, False: 33.6k]
  ------------------
  299|      0|      break;
  300|      0|    }
  301|  33.6k|    if (!still_running) {
  ------------------
  |  Branch (301:9): [True: 7.68k, False: 26.0k]
  ------------------
  302|  7.68k|      break;
  303|  7.68k|    }
  304|       |
  305|  26.0k|    int ready = WaitOnMultiFdset(multi, &rc);
  306|  26.0k|    if (rc != CURLM_OK) {
  ------------------
  |  Branch (306:9): [True: 0, False: 26.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|  26.0k|    if (connection_) {
  ------------------
  |  Branch (314:9): [True: 26.0k, False: 0]
  ------------------
  315|  26.0k|      connection_->DrainIncoming();
  316|  26.0k|    }
  317|  26.0k|    if (has_more_chunks()) {
  ------------------
  |  Branch (317:9): [True: 16.3k, False: 9.65k]
  ------------------
  318|  16.3k|      DeliverNextChunk();
  319|  16.3k|      idle_iterations = 0;
  320|  16.3k|    } else if (ready == 0) {
  ------------------
  |  Branch (320:16): [True: 9.61k, False: 47]
  ------------------
  321|  9.61k|      ++idle_iterations;
  322|  9.61k|    } else {
  323|     47|      idle_iterations = 0;
  324|     47|    }
  325|  26.0k|  }
  326|  7.69k|}
mock_server.cc:_ZN12proto_fuzzer12_GLOBAL__N_113FdFitsInFdSetEi:
   33|  18.6k|bool FdFitsInFdSet(int fd) { return fd >= 0 && fd < FD_SETSIZE; }
  ------------------
  |  Branch (33:37): [True: 18.6k, False: 0]
  |  Branch (33:48): [True: 18.6k, False: 0]
  ------------------
mock_server.cc:_ZN12proto_fuzzer12_GLOBAL__N_114BuildChunkListERKN4curl6fuzzer5proto10ConnectionE:
   43|  7.69k|std::vector<std::string> BuildChunkList(const curl::fuzzer::proto::Connection& conn) {
   44|  7.69k|  std::vector<std::string> chunks;
   45|  7.69k|  chunks.reserve(kMaxResponseChunks);
   46|  7.69k|  const std::size_t raw_budget = std::min<std::size_t>(kMaxResponseChunks, conn.on_readable_size());
   47|  19.5k|  for (std::size_t i = 0; i < raw_budget; ++i) {
  ------------------
  |  Branch (47:27): [True: 11.8k, False: 7.69k]
  ------------------
   48|  11.8k|    chunks.emplace_back(conn.on_readable(i));
   49|  11.8k|  }
   50|  7.69k|  const std::size_t frame_budget = kMaxResponseChunks - chunks.size();
   51|  7.69k|  const std::size_t frame_count = std::min<std::size_t>(frame_budget, conn.server_frames_size());
   52|  13.6k|  for (std::size_t i = 0; i < frame_count; ++i) {
  ------------------
  |  Branch (52:27): [True: 5.93k, False: 7.69k]
  ------------------
   53|  5.93k|    chunks.emplace_back(SerializeWebSocketFrame(conn.server_frames(static_cast<int>(i))));
   54|  5.93k|  }
   55|  7.69k|  return chunks;
   56|  7.69k|}

_ZN12proto_fuzzer34MockServerBaseOpenSocketTrampolineEPv12curlsocktypeP13curl_sockaddr:
   37|  10.1k|                                                 struct curl_sockaddr* /*address*/) {
   38|  10.1k|  return static_cast<MockServerBase*>(clientp)->HandleOpenSocket();
   39|  10.1k|}
_ZN12proto_fuzzer14MockServerBaseC2Ev:
   42|  9.97k|MockServerBase::MockServerBase() : connection_(nullptr), pending_recv_buf_bytes_(0), pending_drain_limit_(0) {}
_ZN12proto_fuzzer14MockServerBaseD2Ev:
   47|  9.97k|MockServerBase::~MockServerBase() = default;
_ZN12proto_fuzzer14MockServerBase10connectionEv:
   50|  3.54k|MockConnection* MockServerBase::connection() { return connection_.get(); }
_ZN12proto_fuzzer14MockServerBase7InstallEPv:
   54|  9.97k|void MockServerBase::Install(CURL* easy) {
   55|  9.97k|  curl_easy_setopt(easy, CURLOPT_OPENSOCKETFUNCTION, &MockServerBaseOpenSocketTrampoline);
  ------------------
  |  | 3361|  9.97k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  9.97k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
   56|  9.97k|  curl_easy_setopt(easy, CURLOPT_OPENSOCKETDATA, this);
  ------------------
  |  | 3361|  9.97k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  9.97k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
   57|  9.97k|  curl_easy_setopt(easy, CURLOPT_SOCKOPTFUNCTION, &SockOptTrampoline);
  ------------------
  |  | 3361|  9.97k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  9.97k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
   58|  9.97k|}
_ZN12proto_fuzzer14MockServerBase13DriveScenarioEPvRKN4curl6fuzzer5proto8ScenarioE:
   63|  9.97k|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|  9.97k|  const auto& bp = scenario.connection().backpressure();
   68|  9.97k|  pending_recv_buf_bytes_ = static_cast<int>(bp.recv_buf_bytes());
   69|  9.97k|  pending_drain_limit_ = static_cast<std::size_t>(bp.drain_limit());
   70|       |
   71|  9.97k|  CURLM* multi = curl_multi_init();
   72|  9.97k|  if (multi == nullptr) {
  ------------------
  |  Branch (72:7): [True: 0, False: 9.97k]
  ------------------
   73|      0|    return;
   74|      0|  }
   75|  9.97k|  if (curl_multi_add_handle(multi, easy) == CURLM_OK) {
  ------------------
  |  Branch (75:7): [True: 9.97k, False: 0]
  ------------------
   76|  9.97k|    RunLoop(multi, easy, scenario);
   77|  9.97k|    curl_multi_remove_handle(multi, easy);
   78|  9.97k|  }
   79|  9.97k|  curl_multi_cleanup(multi);
   80|  9.97k|}
_ZN12proto_fuzzer14MockServerBase24ApplyPendingBackpressureEv:
   85|  9.33k|void MockServerBase::ApplyPendingBackpressure() {
   86|  9.33k|  if (connection_) {
  ------------------
  |  Branch (86:7): [True: 9.33k, False: 0]
  ------------------
   87|  9.33k|    connection_->ApplyBackpressure(pending_recv_buf_bytes_, pending_drain_limit_);
   88|  9.33k|  }
   89|  9.33k|}
_ZN12proto_fuzzer14MockServerBase16WaitOnMultiFdsetEPvP9CURLMcode:
   93|   143k|int MockServerBase::WaitOnMultiFdset(CURLM* multi, CURLMcode* rc) {
   94|   143k|  fd_set readfds;
   95|   143k|  fd_set writefds;
   96|   143k|  fd_set excfds;
   97|   143k|  FD_ZERO(&readfds);
  ------------------
  |  Branch (97:3): [True: 2.29M, False: 143k]
  |  Branch (97:3): [Folded, False: 143k]
  ------------------
   98|   143k|  FD_ZERO(&writefds);
  ------------------
  |  Branch (98:3): [True: 2.29M, False: 143k]
  |  Branch (98:3): [Folded, False: 143k]
  ------------------
   99|   143k|  FD_ZERO(&excfds);
  ------------------
  |  Branch (99:3): [True: 2.29M, False: 143k]
  |  Branch (99:3): [Folded, False: 143k]
  ------------------
  100|   143k|  int maxfd = -1;
  101|   143k|  *rc = curl_multi_fdset(multi, &readfds, &writefds, &excfds, &maxfd);
  102|   143k|  if (*rc != CURLM_OK) {
  ------------------
  |  Branch (102:7): [True: 0, False: 143k]
  ------------------
  103|      0|    return -1;
  104|      0|  }
  105|   143k|  if (maxfd < 0) {
  ------------------
  |  Branch (105:7): [True: 0, False: 143k]
  ------------------
  106|      0|    return 0;
  107|      0|  }
  108|   143k|  struct timeval timeout;
  109|   143k|  timeout.tv_sec = 0;
  110|   143k|  timeout.tv_usec = kSelectTimeoutUs;
  111|   143k|  return ::select(maxfd + 1, &readfds, &writefds, &excfds, &timeout);
  112|   143k|}
mock_server_base.cc:_ZN12proto_fuzzer12_GLOBAL__N_117SockOptTrampolineEPvi12curlsocktype:
   26|  9.33k|int SockOptTrampoline(void* /*clientp*/, curl_socket_t /*curlfd*/, curlsocktype /*purpose*/) {
   27|  9.33k|  return CURL_SOCKOPT_ALREADY_CONNECTED;
  ------------------
  |  |  421|  9.33k|#define CURL_SOCKOPT_ALREADY_CONNECTED 2
  ------------------
   28|  9.33k|}

_ZN12proto_fuzzer20ApplyBaselineOptionsEPv:
  115|  9.97k|struct curl_slist* ApplyBaselineOptions(CURL* easy) {
  116|  9.97k|  curl_easy_setopt(easy, CURLOPT_WRITEFUNCTION, &SilentWriteCallback);
  ------------------
  |  | 3361|  9.97k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  9.97k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  117|  9.97k|  curl_easy_setopt(easy, CURLOPT_HEADERFUNCTION, &SilentWriteCallback);
  ------------------
  |  | 3361|  9.97k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  9.97k|#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|  9.97k|  g_read_state.remaining = kMaxUploadBytes;
  124|  9.97k|  curl_easy_setopt(easy, CURLOPT_READFUNCTION, &BoundedReadCallback);
  ------------------
  |  | 3361|  9.97k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  9.97k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  125|  9.97k|  curl_easy_setopt(easy, CURLOPT_READDATA, &g_read_state);
  ------------------
  |  | 3361|  9.97k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  9.97k|#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|  9.97k|  curl_easy_setopt(easy, CURLOPT_PROTOCOLS_STR, kProtocolsAllowed);
  ------------------
  |  | 3361|  9.97k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  9.97k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  130|  9.97k|  curl_easy_setopt(easy, CURLOPT_REDIR_PROTOCOLS_STR, kProtocolsAllowed);
  ------------------
  |  | 3361|  9.97k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  9.97k|#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|  9.97k|  struct curl_slist* connect_to = curl_slist_append(nullptr, kConnectToOverride);
  135|  9.97k|  curl_easy_setopt(easy, CURLOPT_CONNECT_TO, connect_to);
  ------------------
  |  | 3361|  9.97k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  9.97k|#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|  9.97k|  curl_easy_setopt(easy, CURLOPT_CONNECTTIMEOUT_MS, kConnectTimeoutMs);
  ------------------
  |  | 3361|  9.97k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  9.97k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  139|  9.97k|  curl_easy_setopt(easy, CURLOPT_TIMEOUT_MS, kTimeoutMs);
  ------------------
  |  | 3361|  9.97k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  9.97k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  140|  9.97k|  curl_easy_setopt(easy, CURLOPT_MAX_RECV_SPEED_LARGE, static_cast<curl_off_t>(kMaxRecvSpeed));
  ------------------
  |  | 3361|  9.97k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  9.97k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  141|       |
  142|       |  // Prevent scenarios from leaking state onto the filesystem.
  143|  9.97k|  curl_easy_setopt(easy, CURLOPT_COOKIEJAR, kDevNull);
  ------------------
  |  | 3361|  9.97k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  9.97k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  144|  9.97k|  curl_easy_setopt(easy, CURLOPT_ALTSVC, kDevNull);
  ------------------
  |  | 3361|  9.97k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  9.97k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  145|  9.97k|  curl_easy_setopt(easy, CURLOPT_HSTS, kDevNull);
  ------------------
  |  | 3361|  9.97k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  9.97k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  146|  9.97k|  curl_easy_setopt(easy, CURLOPT_NETRC_FILE, kDevNull);
  ------------------
  |  | 3361|  9.97k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  9.97k|#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|  9.97k|  if (std::getenv(kVerboseEnvVar) != nullptr) {
  ------------------
  |  Branch (150:7): [True: 0, False: 9.97k]
  ------------------
  151|      0|    curl_easy_setopt(easy, CURLOPT_VERBOSE, 1L);
  ------------------
  |  | 3361|      0|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|      0|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  152|      0|  }
  153|  9.97k|  return connect_to;
  154|  9.97k|}
_ZN12proto_fuzzer14ApplySetOptionEPvRKN4curl6fuzzer5proto9SetOptionEPNSt3__16vectorINS7_12basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEENSC_ISE_EEEE:
  167|  64.8k|                        std::vector<std::string>* string_storage) {
  168|  64.8k|  const OptionDescriptor* desc = Lookup(option.option_id());
  169|  64.8k|  if (desc == nullptr) {
  ------------------
  |  Branch (169:7): [True: 6.64k, False: 58.1k]
  ------------------
  170|  6.64k|    return CURLE_UNKNOWN_OPTION;
  171|  6.64k|  }
  172|       |
  173|  58.1k|  switch (desc->kind) {
  ------------------
  |  Branch (173:11): [True: 58.1k, False: 0]
  ------------------
  174|       |    // Store a copy of the string in string_storage and pass a pointer to the copy to curl_easy_setopt.
  175|  19.7k|    case OptionValueKind::kString: {
  ------------------
  |  Branch (175:5): [True: 19.7k, False: 38.4k]
  ------------------
  176|  19.7k|      const std::string& src = option.string_value();
  177|  19.7k|      string_storage->emplace_back(src.data(), src.size());
  178|  19.7k|      const std::string& stored = string_storage->back();
  179|       |
  180|       |      // Handling for POSTFIELDS to set the size.
  181|  19.7k|      if (desc->curlopt == CURLOPT_POSTFIELDS) {
  ------------------
  |  Branch (181:11): [True: 3.29k, False: 16.4k]
  ------------------
  182|  3.29k|        curl_easy_setopt(easy, CURLOPT_POSTFIELDSIZE_LARGE, static_cast<curl_off_t>(stored.size()));
  ------------------
  |  | 3361|  3.29k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  3.29k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  183|  3.29k|      }
  184|       |
  185|  19.7k|      return curl_easy_setopt(easy, desc->curlopt, stored.c_str());
  ------------------
  |  | 3361|  19.7k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  19.7k|#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|  15.9k|    case OptionValueKind::kUint: {
  ------------------
  |  Branch (189:5): [True: 15.9k, False: 42.1k]
  ------------------
  190|  15.9k|      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|  15.9k|      if (static_cast<int>(desc->curlopt) >= 30000) {
  ------------------
  |  Branch (193:11): [True: 1.11k, False: 14.8k]
  ------------------
  194|  1.11k|        return curl_easy_setopt(easy, desc->curlopt, static_cast<curl_off_t>(raw));
  ------------------
  |  | 3361|  1.11k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  1.11k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  195|  1.11k|      }
  196|  14.8k|      return curl_easy_setopt(easy, desc->curlopt, static_cast<long>(raw));
  ------------------
  |  | 3361|  14.8k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  14.8k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  197|  15.9k|    }
  198|       |
  199|       |    // Decode the bool_value and pass it as a long flag (0 or 1).
  200|  22.4k|    case OptionValueKind::kBool: {
  ------------------
  |  Branch (200:5): [True: 22.4k, False: 35.7k]
  ------------------
  201|  22.4k|      long flag = option.bool_value() ? 1L : 0L;
  ------------------
  |  Branch (201:19): [True: 2.87k, False: 19.5k]
  ------------------
  202|  22.4k|      return curl_easy_setopt(easy, desc->curlopt, flag);
  ------------------
  |  | 3361|  22.4k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  22.4k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  203|  15.9k|    }
  204|  58.1k|  }
  205|      0|  return CURLE_UNKNOWN_OPTION;
  206|  58.1k|}
option_apply.cc:_ZN12proto_fuzzer12_GLOBAL__N_119SilentWriteCallbackEPvmmS1_:
   59|  57.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.16k|size_t BoundedReadCallback(char* buffer, size_t size, size_t nitems, void* userdata) {
   75|  1.16k|  if (userdata == nullptr) {
  ------------------
  |  Branch (75:7): [True: 0, False: 1.16k]
  ------------------
   76|      0|    return 0;
   77|      0|  }
   78|  1.16k|  auto* state = static_cast<ReadState*>(userdata);
   79|  1.16k|  const std::size_t cap = size * nitems;
   80|  1.16k|  const std::size_t n = std::min(cap, state->remaining);
   81|  1.16k|  if (n == 0) {
  ------------------
  |  Branch (81:7): [True: 476, False: 685]
  ------------------
   82|    476|    return 0;  // signals EOF to curl
   83|    476|  }
   84|       |  // Fill with a deterministic byte pattern; content doesn't matter for fuzz
   85|       |  // coverage of the reader framing / encoder path.
   86|  10.6M|  for (std::size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (86:27): [True: 10.6M, False: 685]
  ------------------
   87|  10.6M|    buffer[i] = 'U';
   88|  10.6M|  }
   89|    685|  state->remaining -= n;
   90|    685|  return n;
   91|  1.16k|}
option_apply.cc:_ZN12proto_fuzzer12_GLOBAL__N_16LookupEN4curl6fuzzer5proto12CurlOptionIdE:
   98|  64.8k|const OptionDescriptor* Lookup(curl::fuzzer::proto::CurlOptionId id) {
   99|   632k|  for (std::size_t i = 0; i < kOptionManifestSize; ++i) {
  ------------------
  |  Branch (99:27): [True: 625k, False: 6.64k]
  ------------------
  100|   625k|    if (kOptionManifest[i].id == id) {
  ------------------
  |  Branch (100:9): [True: 58.1k, False: 567k]
  ------------------
  101|  58.1k|      return &kOptionManifest[i];
  102|  58.1k|    }
  103|   625k|  }
  104|  6.64k|  return nullptr;
  105|  64.8k|}

_ZN12proto_fuzzer14ScenarioRunnerC2Ev:
   79|  10.0k|ScenarioRunner::ScenarioRunner() = default;
_ZN12proto_fuzzer14ScenarioRunnerD2Ev:
   83|  10.0k|ScenarioRunner::~ScenarioRunner() = default;
_ZN12proto_fuzzer14ScenarioRunner3RunERKN4curl6fuzzer5proto8ScenarioE:
   93|  10.0k|int ScenarioRunner::Run(const curl::fuzzer::proto::Scenario& scenario) {
   94|  10.0k|  const char* prefix = SchemePrefix(scenario.scheme());
   95|  10.0k|  if (prefix == nullptr || scenario.host_path().empty()) {
  ------------------
  |  Branch (95:7): [True: 45, False: 9.98k]
  |  Branch (95:28): [True: 5, False: 9.97k]
  ------------------
   96|     50|    return 0;
   97|     50|  }
   98|       |
   99|  9.97k|  std::unique_ptr<MockServerBase> mock = MakeMockServerForScenario(scenario);
  100|  9.97k|  if (!mock) {
  ------------------
  |  Branch (100:7): [True: 0, False: 9.97k]
  ------------------
  101|      0|    return 0;
  102|      0|  }
  103|       |
  104|  9.97k|  CurlEasyPtr easy(curl_easy_init());
  105|  9.97k|  if (!easy) {
  ------------------
  |  Branch (105:7): [True: 0, False: 9.97k]
  ------------------
  106|      0|    return 0;
  107|      0|  }
  108|       |
  109|  9.97k|  std::vector<std::string> string_storage;
  110|  9.97k|  string_storage.reserve(scenario.options_size());
  111|       |
  112|  9.97k|  struct curl_slist* connect_to = ApplyBaselineOptions(easy.get());
  113|       |
  114|  9.97k|  std::string url = std::string(prefix) + "://" + scenario.host_path();
  115|  9.97k|  curl_easy_setopt(easy.get(), CURLOPT_URL, url.c_str());
  ------------------
  |  | 3361|  9.97k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  9.97k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  116|       |
  117|  9.97k|  mock->Install(easy.get());
  118|       |
  119|  64.8k|  for (const auto& option : scenario.options()) {
  ------------------
  |  Branch (119:27): [True: 64.8k, False: 9.97k]
  ------------------
  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|  64.8k|    (void)ApplySetOption(easy.get(), option, &string_storage);
  123|  64.8k|  }
  124|       |
  125|  9.97k|  mock->DriveScenario(easy.get(), scenario);
  126|       |
  127|  9.97k|  easy.reset();
  128|  9.97k|  curl_slist_free_all(connect_to);
  129|  9.97k|  return 0;
  130|  9.97k|}
scenario_runner.cc:_ZN12proto_fuzzer12_GLOBAL__N_112SchemePrefixEN4curl6fuzzer5proto6SchemeE:
   36|  10.0k|const char* SchemePrefix(curl::fuzzer::proto::Scheme scheme) {
   37|  10.0k|  switch (scheme) {
   38|  7.56k|    case curl::fuzzer::proto::SCHEME_HTTP:
  ------------------
  |  Branch (38:5): [True: 7.56k, False: 2.46k]
  ------------------
   39|  7.56k|      return "http";
   40|    131|    case curl::fuzzer::proto::SCHEME_HTTPS:
  ------------------
  |  Branch (40:5): [True: 131, False: 9.89k]
  ------------------
   41|    131|      return "https";
   42|  1.77k|    case curl::fuzzer::proto::SCHEME_WS:
  ------------------
  |  Branch (42:5): [True: 1.77k, False: 8.25k]
  ------------------
   43|  1.77k|      return "ws";
   44|    509|    case curl::fuzzer::proto::SCHEME_WSS:
  ------------------
  |  Branch (44:5): [True: 509, False: 9.51k]
  ------------------
   45|    509|      return "wss";
   46|     45|    case curl::fuzzer::proto::SCHEME_UNSPECIFIED:
  ------------------
  |  Branch (46:5): [True: 45, False: 9.98k]
  ------------------
   47|     45|    default:
  ------------------
  |  Branch (47:5): [True: 0, False: 10.0k]
  ------------------
   48|     45|      return nullptr;
   49|  10.0k|  }
   50|  10.0k|}
scenario_runner.cc:_ZN12proto_fuzzer12_GLOBAL__N_125MakeMockServerForScenarioERKN4curl6fuzzer5proto8ScenarioE:
   56|  9.97k|std::unique_ptr<MockServerBase> MakeMockServerForScenario(const curl::fuzzer::proto::Scenario& scenario) {
   57|  9.97k|  switch (scenario.scheme()) {
   58|  7.56k|    case curl::fuzzer::proto::SCHEME_HTTP:
  ------------------
  |  Branch (58:5): [True: 7.56k, False: 2.41k]
  ------------------
   59|  7.69k|    case curl::fuzzer::proto::SCHEME_HTTPS:
  ------------------
  |  Branch (59:5): [True: 130, False: 9.84k]
  ------------------
   60|  7.69k|      return std::make_unique<MockServer>();
   61|  1.77k|    case curl::fuzzer::proto::SCHEME_WS:
  ------------------
  |  Branch (61:5): [True: 1.77k, False: 8.20k]
  ------------------
   62|  2.28k|    case curl::fuzzer::proto::SCHEME_WSS:
  ------------------
  |  Branch (62:5): [True: 508, False: 9.46k]
  ------------------
   63|  2.28k|      return std::make_unique<WebSocketMockServer>();
   64|      0|    case curl::fuzzer::proto::SCHEME_UNSPECIFIED:
  ------------------
  |  Branch (64:5): [True: 0, False: 9.97k]
  ------------------
   65|      0|    default:
  ------------------
  |  Branch (65:5): [True: 0, False: 9.97k]
  ------------------
   66|      0|      return nullptr;
   67|  9.97k|  }
   68|  9.97k|}
scenario_runner.cc:_ZNK12proto_fuzzer12_GLOBAL__N_115CurlEasyDeleterclEPv:
   29|  9.97k|  void operator()(CURL* h) const noexcept {
   30|  9.97k|    if (h) curl_easy_cleanup(h);
  ------------------
  |  Branch (30:9): [True: 9.97k, False: 0]
  ------------------
   31|  9.97k|  }

_ZN12proto_fuzzer19WebSocketMockServerC2Ev:
  182|  2.28k|    : next_chunk_(0), manual_delivery_(false), handshake_sent_(false), ws_probe_fired_(false), easy_handle_(nullptr) {}
_ZN12proto_fuzzer19WebSocketMockServerD2Ev:
  185|  2.28k|WebSocketMockServer::~WebSocketMockServer() = default;
_ZN12proto_fuzzer19WebSocketMockServer7InstallEPv:
  191|  2.28k|void WebSocketMockServer::Install(CURL* easy) {
  192|  2.28k|  MockServerBase::Install(easy);
  193|  2.28k|  easy_handle_ = easy;
  194|  2.28k|  ws_probe_fired_ = false;
  195|  2.28k|  curl_easy_setopt(easy, CURLOPT_WRITEFUNCTION, &WebSocketWriteCallback);
  ------------------
  |  | 3361|  2.28k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  2.28k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  196|  2.28k|  curl_easy_setopt(easy, CURLOPT_WRITEDATA, this);
  ------------------
  |  | 3361|  2.28k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  2.28k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  197|  2.28k|  curl_easy_setopt(easy, CURLOPT_HEADERFUNCTION, &WebSocketWriteCallback);
  ------------------
  |  | 3361|  2.28k|  curl_easy_setopt curl_exactly_three_arguments(handle, opt, param)
  |  |  ------------------
  |  |  |  | 3359|  2.28k|#define curl_exactly_three_arguments(a, b, c) (a, b, c)
  |  |  ------------------
  ------------------
  198|  2.28k|}
_ZNK12proto_fuzzer19WebSocketMockServer14ws_probe_firedEv:
  201|  4.60k|bool WebSocketMockServer::ws_probe_fired() const { return ws_probe_fired_; }
_ZN12proto_fuzzer19WebSocketMockServer16MarkWsProbeFiredEv:
  205|    393|void WebSocketMockServer::MarkWsProbeFired() { ws_probe_fired_ = true; }
_ZNK12proto_fuzzer19WebSocketMockServer11easy_handleEv:
  208|  4.60k|CURL* WebSocketMockServer::easy_handle() const { return easy_handle_; }
_ZN12proto_fuzzer19WebSocketMockServer9SetFramesENSt3__16vectorINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS6_IS8_EEEE:
  213|  2.28k|void WebSocketMockServer::SetFrames(std::vector<std::string> frames) {
  214|  2.28k|  frames_ = std::move(frames);
  215|  2.28k|  next_chunk_ = 0;
  216|  2.28k|}
_ZN12proto_fuzzer19WebSocketMockServer17SetManualDeliveryEb:
  221|  2.28k|void WebSocketMockServer::SetManualDelivery(bool manual) { manual_delivery_ = manual; }
_ZNK12proto_fuzzer19WebSocketMockServer15manual_deliveryEv:
  224|   119k|bool WebSocketMockServer::manual_delivery() const { return manual_delivery_; }
_ZNK12proto_fuzzer19WebSocketMockServer14handshake_sentEv:
  227|   233k|bool WebSocketMockServer::handshake_sent() const { return handshake_sent_; }
_ZNK12proto_fuzzer19WebSocketMockServer15has_more_chunksEv:
  230|   106k|bool WebSocketMockServer::has_more_chunks() const { return next_chunk_ < frames_.size(); }
_ZNK12proto_fuzzer19WebSocketMockServer16remaining_chunksEv:
  233|  2.69k|std::size_t WebSocketMockServer::remaining_chunks() const {
  234|  2.69k|  return next_chunk_ >= frames_.size() ? 0 : frames_.size() - next_chunk_;
  ------------------
  |  Branch (234:10): [True: 464, False: 2.22k]
  ------------------
  235|  2.69k|}
_ZNK12proto_fuzzer19WebSocketMockServer9PeekChunkEm:
  240|  2.22k|const std::string& WebSocketMockServer::PeekChunk(std::size_t index) const { return frames_[next_chunk_ + index]; }
_ZN12proto_fuzzer19WebSocketMockServer12ConsumeChunkEv:
  243|  2.22k|void WebSocketMockServer::ConsumeChunk() {
  244|  2.22k|  if (next_chunk_ < frames_.size()) {
  ------------------
  |  Branch (244:7): [True: 2.22k, False: 0]
  ------------------
  245|  2.22k|    ++next_chunk_;
  246|  2.22k|  }
  247|  2.22k|}
_ZN12proto_fuzzer19WebSocketMockServer16HandleOpenSocketEv:
  254|  1.97k|curl_socket_t WebSocketMockServer::HandleOpenSocket() {
  255|  1.97k|  if (connection_) {
  ------------------
  |  Branch (255:7): [True: 0, False: 1.97k]
  ------------------
  256|      0|    return CURL_SOCKET_BAD;
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  257|      0|  }
  258|  1.97k|  connection_ = std::make_unique<MockConnection>();
  259|  1.97k|  if (!connection_->ok()) {
  ------------------
  |  Branch (259:7): [True: 0, False: 1.97k]
  ------------------
  260|      0|    connection_.reset();
  261|      0|    return CURL_SOCKET_BAD;
  ------------------
  |  |  145|      0|#define CURL_SOCKET_BAD (-1)
  ------------------
  262|      0|  }
  263|  1.97k|  ApplyPendingBackpressure();
  264|       |  // Wait for curl's Upgrade request before we write anything — the drive
  265|       |  // loop calls TryAdvanceHandshake() to drive that exchange.
  266|  1.97k|  return connection_->take_client_fd();
  267|  1.97k|}
_ZN12proto_fuzzer19WebSocketMockServer12PushRawBytesEPKhm:
  274|  2.05k|bool WebSocketMockServer::PushRawBytes(const unsigned char* data, std::size_t size) {
  275|  2.05k|  if (!connection_) {
  ------------------
  |  Branch (275:7): [True: 0, False: 2.05k]
  ------------------
  276|      0|    return false;
  277|      0|  }
  278|  2.05k|  connection_->DrainIncoming();
  279|  2.05k|  return connection_->WriteAll(data, size);
  280|  2.05k|}
_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.80k, False: 196]
  ------------------
  292|  1.80k|    connection_->WriteAll(reinterpret_cast<const unsigned char*>(chunk.data()), chunk.size());
  293|  1.80k|  }
  294|  2.00k|  if (next_chunk_ >= frames_.size()) {
  ------------------
  |  Branch (294:7): [True: 550, False: 1.45k]
  ------------------
  295|    550|    connection_->ShutdownWrite();
  296|    550|  }
  297|  2.00k|}
_ZN12proto_fuzzer19WebSocketMockServer19TryAdvanceHandshakeEv:
  303|  8.95k|bool WebSocketMockServer::TryAdvanceHandshake() {
  304|  8.95k|  if (handshake_sent_ || !connection_) {
  ------------------
  |  Branch (304:7): [True: 0, False: 8.95k]
  |  Branch (304:26): [True: 311, False: 8.64k]
  ------------------
  305|    311|    return handshake_sent_;
  306|    311|  }
  307|  8.64k|  connection_->ReadAvailable(&ws_request_buffer_);
  308|  8.64k|  if (ws_request_buffer_.find("\r\n\r\n") == std::string::npos) {
  ------------------
  |  Branch (308:7): [True: 7.02k, False: 1.61k]
  ------------------
  309|  7.02k|    return false;
  310|  7.02k|  }
  311|  1.61k|  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.61k|  std::string accept = key.empty() ? std::string("AAAAAAAAAAAAAAAAAAAAAAAAAAA=") : ComputeWebSocketAccept(key);
  ------------------
  |  Branch (314:24): [True: 16, False: 1.59k]
  ------------------
  315|  1.61k|  std::string response =
  316|  1.61k|      "HTTP/1.1 101 Switching Protocols\r\n"
  317|  1.61k|      "Upgrade: websocket\r\n"
  318|  1.61k|      "Connection: Upgrade\r\n"
  319|  1.61k|      "Sec-WebSocket-Accept: " +
  320|  1.61k|      accept + "\r\n\r\n";
  321|  1.61k|  connection_->WriteAll(reinterpret_cast<const unsigned char*>(response.data()), response.size());
  322|  1.61k|  handshake_sent_ = true;
  323|  1.61k|  return true;
  324|  8.64k|}
_ZN12proto_fuzzer19WebSocketMockServer7RunLoopEPvS1_RKN4curl6fuzzer5proto8ScenarioE:
  335|  2.28k|void WebSocketMockServer::RunLoop(CURLM* multi, CURL* easy, const curl::fuzzer::proto::Scenario& scenario) {
  336|  2.28k|  SetManualDelivery(ScenarioRequestsManualWsDrive(scenario));
  337|       |  // initial_response is unused in WS mode; we synthesise the 101 dynamically
  338|       |  // from curl's Upgrade request.
  339|  2.28k|  SetFrames(BuildFrameChunks(scenario.connection()));
  340|       |
  341|  2.28k|  int still_running = 1;
  342|  2.28k|  int idle_iterations = 0;
  343|  2.28k|  CURLMcode rc = CURLM_OK;
  344|       |
  345|   119k|  while (still_running && idle_iterations < kMaxIdleIterations) {
  ------------------
  |  Branch (345:10): [True: 119k, False: 0]
  |  Branch (345:27): [True: 119k, False: 7]
  ------------------
  346|   119k|    rc = curl_multi_perform(multi, &still_running);
  347|   119k|    if (rc != CURLM_OK) {
  ------------------
  |  Branch (347:9): [True: 0, False: 119k]
  ------------------
  348|      0|      break;
  349|      0|    }
  350|       |    // Drive the 101 handshake on every iteration; no-op once sent.
  351|   119k|    if (!handshake_sent()) {
  ------------------
  |  Branch (351:9): [True: 8.95k, False: 110k]
  ------------------
  352|  8.95k|      if (TryAdvanceHandshake()) {
  ------------------
  |  Branch (352:11): [True: 1.61k, False: 7.34k]
  ------------------
  353|  1.61k|        idle_iterations = 0;
  354|  1.61k|      }
  355|  8.95k|    }
  356|   119k|    if (!still_running) {
  ------------------
  |  Branch (356:9): [True: 2.27k, False: 117k]
  ------------------
  357|  2.27k|      break;
  358|  2.27k|    }
  359|       |
  360|   117k|    int ready = WaitOnMultiFdset(multi, &rc);
  361|   117k|    if (rc != CURLM_OK) {
  ------------------
  |  Branch (361:9): [True: 0, False: 117k]
  ------------------
  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|   117k|    if (!manual_delivery() && handshake_sent() && has_more_chunks()) {
  ------------------
  |  Branch (367:9): [True: 112k, False: 4.59k]
  |  Branch (367:31): [True: 106k, False: 6.61k]
  |  Branch (367:51): [True: 2.00k, False: 104k]
  ------------------
  368|  2.00k|      DeliverNextChunk();
  369|  2.00k|      idle_iterations = 0;
  370|   115k|    } else if (ready == 0) {
  ------------------
  |  Branch (370:16): [True: 114k, False: 1.16k]
  ------------------
  371|   114k|      ++idle_iterations;
  372|   114k|    } else {
  373|  1.16k|      idle_iterations = 0;
  374|  1.16k|    }
  375|   117k|  }
  376|       |
  377|  2.28k|  if (!manual_delivery() || !handshake_sent()) {
  ------------------
  |  Branch (377:7): [True: 1.80k, False: 476]
  |  Branch (377:29): [True: 12, False: 464]
  ------------------
  378|  1.81k|    return;
  379|  1.81k|  }
  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.69k|  while (remaining_chunks() > 0) {
  ------------------
  |  Branch (383:10): [True: 2.22k, False: 464]
  ------------------
  384|  2.22k|    const std::string& chunk = PeekChunk(0);
  385|  2.22k|    if (!chunk.empty()) {
  ------------------
  |  Branch (385:9): [True: 2.05k, False: 171]
  ------------------
  386|  2.05k|      PushRawBytes(reinterpret_cast<const unsigned char*>(chunk.data()), chunk.size());
  387|  2.05k|    }
  388|  2.22k|    ConsumeChunk();
  389|  2.22k|    DrainWsRecv(easy);
  390|  2.22k|  }
  391|       |  // Final drain in case frame parsing produced more work after the last push.
  392|    464|  DrainWsRecv(easy);
  393|       |
  394|    464|  const auto& probes = scenario.connection().manual_probes();
  395|    464|  static const unsigned char kPayload[] = "hello-from-proto-fuzzer";
  396|    464|  const std::size_t payload_len = sizeof(kPayload) - 1;
  397|       |
  398|    464|  if (probes.flag_matrix()) {
  ------------------
  |  Branch (398:7): [True: 88, False: 376]
  ------------------
  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|     88|    std::size_t iteration = 0;
  403|  1.67k|    for (unsigned int flags : kWsSendFlagMatrix) {
  ------------------
  |  Branch (403:29): [True: 1.67k, False: 88]
  ------------------
  404|  1.67k|      if (iteration++ >= kMaxWsSendIterations) {
  ------------------
  |  Branch (404:11): [True: 0, False: 1.67k]
  ------------------
  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|  1.67k|      (void)curl_ws_start_frame(easy, flags, static_cast<curl_off_t>(payload_len));
  412|  1.67k|      std::size_t sent = 0;
  413|  1.67k|      curl_off_t fragsize = (flags & CURLWS_OFFSET) ? static_cast<curl_off_t>(payload_len) : 0;
  ------------------
  |  |   45|  1.67k|#define CURLWS_OFFSET     (1 << 5)
  ------------------
  |  Branch (413:29): [True: 176, False: 1.49k]
  ------------------
  414|  1.67k|      (void)curl_ws_send(easy, kPayload, payload_len, &sent, fragsize, flags);
  415|  1.67k|      if (connection() != nullptr) {
  ------------------
  |  Branch (415:11): [True: 1.67k, False: 0]
  ------------------
  416|  1.67k|        connection()->DrainIncoming();
  417|  1.67k|      }
  418|  1.67k|    }
  419|     88|  }
  420|       |
  421|    464|  if (probes.unaligned_send()) {
  ------------------
  |  Branch (421:7): [True: 56, False: 408]
  ------------------
  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|     56|    constexpr curl_off_t kBigFrag = 200;
  426|     56|    (void)curl_ws_start_frame(easy, CURLWS_TEXT | CURLWS_OFFSET, kBigFrag);
  ------------------
  |  |   40|     56|#define CURLWS_TEXT       (1 << 0)
  ------------------
                  (void)curl_ws_start_frame(easy, CURLWS_TEXT | CURLWS_OFFSET, kBigFrag);
  ------------------
  |  |   45|     56|#define CURLWS_OFFSET     (1 << 5)
  ------------------
  427|     56|    std::size_t sent = 0;
  428|     56|    (void)curl_ws_send(easy, kPayload, payload_len, &sent, kBigFrag, CURLWS_TEXT | CURLWS_OFFSET);
  ------------------
  |  |   40|     56|#define CURLWS_TEXT       (1 << 0)
  ------------------
                  (void)curl_ws_send(easy, kPayload, payload_len, &sent, kBigFrag, CURLWS_TEXT | CURLWS_OFFSET);
  ------------------
  |  |   45|     56|#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|     56|    std::size_t sent2 = 0;
  432|     56|    constexpr std::size_t kOverrun = 500;
  433|     56|    unsigned char overrun[kOverrun];
  434|     56|    std::fill(overrun, overrun + kOverrun, 'X');
  435|     56|    (void)curl_ws_send(easy, overrun, kOverrun, &sent2, kBigFrag, CURLWS_TEXT | CURLWS_OFFSET);
  ------------------
  |  |   40|     56|#define CURLWS_TEXT       (1 << 0)
  ------------------
                  (void)curl_ws_send(easy, overrun, kOverrun, &sent2, kBigFrag, CURLWS_TEXT | CURLWS_OFFSET);
  ------------------
  |  |   45|     56|#define CURLWS_OFFSET     (1 << 5)
  ------------------
  436|     56|    if (connection() != nullptr) {
  ------------------
  |  Branch (436:9): [True: 56, False: 0]
  ------------------
  437|     56|      connection()->DrainIncoming();
  438|     56|    }
  439|     56|  }
  440|       |
  441|    464|  if (probes.raw_send()) {
  ------------------
  |  Branch (441:7): [True: 46, False: 418]
  ------------------
  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|     46|    std::size_t sent = 0;
  447|     46|    (void)curl_ws_send(easy, kPayload, payload_len, &sent, 0, 0);
  448|     46|    if (connection() != nullptr) {
  ------------------
  |  Branch (448:9): [True: 46, False: 0]
  ------------------
  449|     46|      connection()->DrainIncoming();
  450|     46|    }
  451|     46|  }
  452|    464|}
websocket_mock_server.cc:_ZN12proto_fuzzer12_GLOBAL__N_122WebSocketWriteCallbackEPvmmS1_:
  139|  12.6k|size_t WebSocketWriteCallback(void* /*contents*/, size_t size, size_t nmemb, void* userdata) {
  140|  12.6k|  auto* server = static_cast<WebSocketMockServer*>(userdata);
  141|  12.6k|  if (server != nullptr) {
  ------------------
  |  Branch (141:7): [True: 4.60k, False: 8.07k]
  ------------------
  142|  4.60k|    CURL* easy = server->easy_handle();
  143|  4.60k|    if (easy != nullptr) {
  ------------------
  |  Branch (143:9): [True: 4.60k, False: 0]
  ------------------
  144|  4.60k|      (void)curl_ws_meta(easy);
  145|  4.60k|      if (!server->ws_probe_fired()) {
  ------------------
  |  Branch (145:11): [True: 393, False: 4.21k]
  ------------------
  146|    393|        server->MarkWsProbeFired();
  147|    393|        static unsigned char kProbe[16384];
  148|    393|        std::fill(kProbe, kProbe + sizeof(kProbe), 'P');
  149|    393|        std::size_t sent = 0;
  150|    393|        (void)curl_ws_send(easy, kProbe, sizeof(kProbe), &sent, 0, 0);
  151|    393|      }
  152|  4.60k|    }
  153|  4.60k|  }
  154|  12.6k|  return size * nmemb;
  155|  12.6k|}
websocket_mock_server.cc:_ZN12proto_fuzzer12_GLOBAL__N_119ExtractWebSocketKeyERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   71|  1.61k|std::string ExtractWebSocketKey(const std::string& request) {
   72|  1.61k|  static const char kHeader[] = "Sec-WebSocket-Key:";
   73|  1.61k|  std::size_t pos = request.find(kHeader);
   74|  1.61k|  if (pos == std::string::npos) {
  ------------------
  |  Branch (74:7): [True: 2, False: 1.61k]
  ------------------
   75|      2|    return {};
   76|      2|  }
   77|  1.61k|  pos += sizeof(kHeader) - 1;
   78|  4.90k|  while (pos < request.size() && (request[pos] == ' ' || request[pos] == '\t')) {
  ------------------
  |  Branch (78:10): [True: 4.90k, False: 1]
  |  Branch (78:35): [True: 2.41k, False: 2.49k]
  |  Branch (78:58): [True: 887, False: 1.61k]
  ------------------
   79|  3.29k|    ++pos;
   80|  3.29k|  }
   81|  1.61k|  std::size_t end = request.find("\r\n", pos);
   82|  1.61k|  if (end == std::string::npos) {
  ------------------
  |  Branch (82:7): [True: 10, False: 1.60k]
  ------------------
   83|     10|    return {};
   84|     10|  }
   85|  2.29k|  while (end > pos && (request[end - 1] == ' ' || request[end - 1] == '\t')) {
  ------------------
  |  Branch (85:10): [True: 2.28k, False: 4]
  |  Branch (85:24): [True: 321, False: 1.96k]
  |  Branch (85:51): [True: 367, False: 1.59k]
  ------------------
   86|    688|    --end;
   87|    688|  }
   88|  1.60k|  return request.substr(pos, end - pos);
   89|  1.61k|}
websocket_mock_server.cc:_ZN12proto_fuzzer12_GLOBAL__N_122ComputeWebSocketAcceptERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   94|  1.59k|std::string ComputeWebSocketAccept(const std::string& key) { return proto_fuzzer::ComputeWebSocketAcceptKey(key); }
websocket_mock_server.cc:_ZN12proto_fuzzer12_GLOBAL__N_129ScenarioRequestsManualWsDriveERKN4curl6fuzzer5proto8ScenarioE:
  117|  2.28k|bool ScenarioRequestsManualWsDrive(const curl::fuzzer::proto::Scenario& scenario) {
  118|  26.2k|  for (const auto& opt : scenario.options()) {
  ------------------
  |  Branch (118:24): [True: 26.2k, False: 1.80k]
  ------------------
  119|  26.2k|    if (opt.option_id() != curl::fuzzer::proto::CURLOPT_CONNECT_ONLY) {
  ------------------
  |  Branch (119:9): [True: 24.7k, False: 1.53k]
  ------------------
  120|  24.7k|      continue;
  121|  24.7k|    }
  122|  1.53k|    if (opt.value_case() == curl::fuzzer::proto::SetOption::ValueCase::kUintValue && opt.uint_value() == 2) {
  ------------------
  |  Branch (122:9): [True: 1.07k, False: 466]
  |  Branch (122:86): [True: 476, False: 595]
  ------------------
  123|    476|      return true;
  124|    476|    }
  125|  1.53k|  }
  126|  1.80k|  return false;
  127|  2.28k|}
websocket_mock_server.cc:_ZN12proto_fuzzer12_GLOBAL__N_116BuildFrameChunksERKN4curl6fuzzer5proto10ConnectionE:
  100|  2.28k|std::vector<std::string> BuildFrameChunks(const curl::fuzzer::proto::Connection& conn) {
  101|  2.28k|  std::vector<std::string> chunks;
  102|  2.28k|  chunks.reserve(kMaxResponseChunks);
  103|  2.28k|  const std::size_t raw_budget = std::min<std::size_t>(kMaxResponseChunks, conn.on_readable_size());
  104|  4.51k|  for (std::size_t i = 0; i < raw_budget; ++i) {
  ------------------
  |  Branch (104:27): [True: 2.23k, False: 2.28k]
  ------------------
  105|  2.23k|    chunks.emplace_back(conn.on_readable(i));
  106|  2.23k|  }
  107|  2.28k|  const std::size_t frame_budget = kMaxResponseChunks - chunks.size();
  108|  2.28k|  const std::size_t frame_count = std::min<std::size_t>(frame_budget, conn.server_frames_size());
  109|  4.73k|  for (std::size_t i = 0; i < frame_count; ++i) {
  ------------------
  |  Branch (109:27): [True: 2.44k, False: 2.28k]
  ------------------
  110|  2.44k|    chunks.emplace_back(SerializeWebSocketFrame(conn.server_frames(static_cast<int>(i))));
  111|  2.44k|  }
  112|  2.28k|  return chunks;
  113|  2.28k|}
websocket_mock_server.cc:_ZN12proto_fuzzer12_GLOBAL__N_111DrainWsRecvEPv:
  159|  2.69k|void DrainWsRecv(CURL* easy) {
  160|  9.65k|  for (std::size_t i = 0; i < kMaxWsRecvIterations; ++i) {
  ------------------
  |  Branch (160:27): [True: 9.62k, False: 25]
  ------------------
  161|  9.62k|    unsigned char buffer[4096];
  162|  9.62k|    std::size_t nread = 0;
  163|  9.62k|    const struct curl_ws_frame* meta = nullptr;
  164|  9.62k|    CURLcode rr = curl_ws_recv(easy, buffer, sizeof(buffer), &nread, &meta);
  165|  9.62k|    if (rr == CURLE_AGAIN) {
  ------------------
  |  Branch (165:9): [True: 1.61k, False: 8.01k]
  ------------------
  166|  1.61k|      break;
  167|  1.61k|    }
  168|  8.01k|    if (rr != CURLE_OK && rr != CURLE_GOT_NOTHING) {
  ------------------
  |  Branch (168:9): [True: 1.05k, False: 6.95k]
  |  Branch (168:27): [True: 1.05k, False: 0]
  ------------------
  169|  1.05k|      break;
  170|  1.05k|    }
  171|  6.95k|    if (nread == 0 && meta == nullptr) {
  ------------------
  |  Branch (171:9): [True: 5.29k, False: 1.66k]
  |  Branch (171:23): [True: 0, False: 5.29k]
  ------------------
  172|      0|      break;
  173|      0|    }
  174|  6.95k|  }
  175|  2.69k|}

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

_ZN12proto_fuzzer23SerializeWebSocketFrameERKN4curl6fuzzer5proto14WebSocketFrameE:
   59|  8.38k|std::string SerializeWebSocketFrame(const curl::fuzzer::proto::WebSocketFrame& frame) {
   60|  8.38k|  std::string out;
   61|  8.38k|  const std::string& payload = frame.payload();
   62|  8.38k|  const std::size_t payload_len = payload.size();
   63|       |
   64|       |  // Byte 0: FIN | RSV1 | RSV2 | RSV3 | opcode(4 bits).
   65|  8.38k|  std::uint8_t byte0 = 0;
   66|  8.38k|  if (frame.fin()) byte0 |= 0x80;
  ------------------
  |  Branch (66:7): [True: 1.75k, False: 6.63k]
  ------------------
   67|  8.38k|  if (frame.rsv1()) byte0 |= 0x40;
  ------------------
  |  Branch (67:7): [True: 1.24k, False: 7.13k]
  ------------------
   68|  8.38k|  if (frame.rsv2()) byte0 |= 0x20;
  ------------------
  |  Branch (68:7): [True: 1.24k, False: 7.13k]
  ------------------
   69|  8.38k|  if (frame.rsv3()) byte0 |= 0x10;
  ------------------
  |  Branch (69:7): [True: 1.29k, False: 7.09k]
  ------------------
   70|  8.38k|  byte0 |= static_cast<std::uint8_t>(frame.opcode() & 0x0F);
   71|  8.38k|  out.push_back(static_cast<char>(byte0));
   72|       |
   73|       |  // Byte 1: MASK bit | payload-length indicator (7 bits).
   74|  8.38k|  const std::uint32_t length_form = ResolveLengthForm(frame.length_form(), payload_len);
   75|  8.38k|  std::uint8_t byte1 = frame.masked() ? 0x80 : 0x00;
  ------------------
  |  Branch (75:24): [True: 2.53k, False: 5.84k]
  ------------------
   76|  8.38k|  switch (length_form) {
   77|  7.48k|    case kLenForm7:
  ------------------
  |  Branch (77:5): [True: 7.48k, False: 901]
  ------------------
   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|  7.48k|      byte1 |= static_cast<std::uint8_t>(payload_len & 0x7F);
   83|  7.48k|      out.push_back(static_cast<char>(byte1));
   84|  7.48k|      break;
   85|    371|    case kLenForm16:
  ------------------
  |  Branch (85:5): [True: 371, False: 8.01k]
  ------------------
   86|    371|      byte1 |= 126;
   87|    371|      out.push_back(static_cast<char>(byte1));
   88|    371|      AppendBigEndian(&out, static_cast<std::uint64_t>(payload_len & 0xFFFF), 2);
   89|    371|      break;
   90|    530|    case kLenForm64:
  ------------------
  |  Branch (90:5): [True: 530, False: 7.85k]
  ------------------
   91|    530|    default:
  ------------------
  |  Branch (91:5): [True: 0, False: 8.38k]
  ------------------
   92|    530|      byte1 |= 127;
   93|    530|      out.push_back(static_cast<char>(byte1));
   94|    530|      AppendBigEndian(&out, static_cast<std::uint64_t>(payload_len), 8);
   95|    530|      break;
   96|  8.38k|  }
   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|  8.38k|  if (frame.masked()) {
  ------------------
  |  Branch (102:7): [True: 2.53k, False: 5.84k]
  ------------------
  103|  2.53k|    const std::uint32_t key = frame.mask_key();
  104|  2.53k|    std::uint8_t key_bytes[4] = {
  105|  2.53k|        static_cast<std::uint8_t>((key >> 24) & 0xFF),
  106|  2.53k|        static_cast<std::uint8_t>((key >> 16) & 0xFF),
  107|  2.53k|        static_cast<std::uint8_t>((key >> 8) & 0xFF),
  108|  2.53k|        static_cast<std::uint8_t>(key & 0xFF),
  109|  2.53k|    };
  110|  10.1k|    for (unsigned char b : key_bytes) {
  ------------------
  |  Branch (110:26): [True: 10.1k, False: 2.53k]
  ------------------
  111|  10.1k|      out.push_back(static_cast<char>(b));
  112|  10.1k|    }
  113|  2.53k|    out.reserve(out.size() + payload_len);
  114|   267k|    for (std::size_t i = 0; i < payload_len; ++i) {
  ------------------
  |  Branch (114:29): [True: 265k, False: 2.53k]
  ------------------
  115|   265k|      out.push_back(static_cast<char>(static_cast<std::uint8_t>(payload[i]) ^ key_bytes[i & 0x3]));
  116|   265k|    }
  117|  5.84k|  } else {
  118|  5.84k|    out.append(payload);
  119|  5.84k|  }
  120|       |
  121|  8.38k|  return out;
  122|  8.38k|}
ws_frame.cc:_ZN12proto_fuzzer12_GLOBAL__N_117ResolveLengthFormEjm:
   30|  8.38k|std::uint32_t ResolveLengthForm(std::uint32_t form, std::size_t payload_len) {
   31|  8.38k|  if (form == kLenForm7 || form == kLenForm16 || form == kLenForm64) {
  ------------------
  |  Branch (31:7): [True: 102, False: 8.28k]
  |  Branch (31:28): [True: 130, False: 8.15k]
  |  Branch (31:50): [True: 530, False: 7.62k]
  ------------------
   32|    762|    return form;
   33|    762|  }
   34|  7.62k|  if (payload_len < 126) {
  ------------------
  |  Branch (34:7): [True: 7.38k, False: 241]
  ------------------
   35|  7.38k|    return kLenForm7;
   36|  7.38k|  }
   37|    241|  if (payload_len <= 0xFFFF) {
  ------------------
  |  Branch (37:7): [True: 241, False: 0]
  ------------------
   38|    241|    return kLenForm16;
   39|    241|  }
   40|      0|  return kLenForm64;
   41|    241|}
ws_frame.cc:_ZN12proto_fuzzer12_GLOBAL__N_115AppendBigEndianEPNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEmm:
   44|    901|void AppendBigEndian(std::string* out, std::uint64_t value, std::size_t width) {
   45|  5.88k|  for (std::size_t i = 0; i < width; ++i) {
  ------------------
  |  Branch (45:27): [True: 4.98k, False: 901]
  ------------------
   46|  4.98k|    std::size_t shift = (width - 1 - i) * 8;
   47|  4.98k|    out->push_back(static_cast<char>((value >> shift) & 0xFF));
   48|  4.98k|  }
   49|    901|}

