LLVMFuzzerTestOneInput:
   16|  12.1k|{
   17|       |   // use a vector with null termination instead of a std::string to avoid
   18|       |   // small string optimization to hide bounds problems
   19|  12.1k|   std::vector<char> buffer{Data, Data + Size};
   20|       |
   21|       |   // non-null terminated
   22|  12.1k|   {
   23|  12.1k|      const auto& input = buffer;
   24|  12.1k|      [[maybe_unused]] auto s = glz::read_beve<my_struct>(input);
   25|       |
   26|  12.1k|      std::string json_output{};
   27|  12.1k|      [[maybe_unused]] auto ec = glz::beve_to_json(input, json_output);
   28|  12.1k|   }
   29|       |
   30|       |   // null terminated
   31|  12.1k|   {
   32|  12.1k|      buffer.push_back('\0');
   33|  12.1k|      const auto& input = buffer;
   34|  12.1k|      [[maybe_unused]] auto s = glz::read_beve<my_struct>(input);
   35|  12.1k|   }
   36|       |
   37|  12.1k|   return 0;
   38|  12.1k|}

_ZN3glz12beve_to_jsonITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__16vectorIcNS2_9allocatorIcEEEENS2_12basic_stringIcNS2_11char_traitsIcEES5_EEEENS_9error_ctxERKT0_RT1_:
  789|  12.1k|   {
  790|  12.1k|      size_t ix{}; // write index
  791|       |
  792|  12.1k|      auto* it = beve.data();
  793|  12.1k|      auto* end = it + beve.size();
  794|       |
  795|  12.1k|      context ctx{};
  796|       |
  797|  12.1k|      if (it >= end) {
  ------------------
  |  Branch (797:11): [True: 0, False: 12.1k]
  ------------------
  798|      0|         return {0, error_code::unexpected_end};
  799|      0|      }
  800|       |
  801|  12.1k|      bool needs_separator = false;
  802|       |
  803|  6.74M|      while (it < end) {
  ------------------
  |  Branch (803:14): [True: 6.74M, False: 3.38k]
  ------------------
  804|  6.74M|         const bool is_delimiter = uint8_t(*it) == tag::delimiter;
  805|       |
  806|  6.74M|         if (needs_separator && !is_delimiter) {
  ------------------
  |  Branch (806:14): [True: 6.73M, False: 13.9k]
  |  Branch (806:33): [True: 6.73M, False: 1.05k]
  ------------------
  807|  6.73M|            if (!detail::emit_char(ctx, '\n', out, ix)) {
  ------------------
  |  Branch (807:17): [True: 0, False: 6.73M]
  ------------------
  808|      0|               return {ix, ctx.error};
  809|      0|            }
  810|  6.73M|         }
  811|  6.74M|         needs_separator = !is_delimiter;
  812|       |
  813|  6.74M|         detail::beve_to_json_value<Opts>(ctx, it, end, out, ix, 0);
  814|  6.74M|         if (bool(ctx.error)) {
  ------------------
  |  Branch (814:14): [True: 8.81k, False: 6.73M]
  ------------------
  815|  8.81k|            return {ix, ctx.error};
  816|  8.81k|         }
  817|  6.74M|      }
  818|       |
  819|  3.38k|      if constexpr (resizable<JSONBuffer>) {
  820|  3.38k|         out.resize(ix);
  821|  3.38k|      }
  822|       |
  823|       |      // count is the number of bytes written. A resizable buffer carries its own size, but a
  824|       |      // fixed-size one has no other way to learn how much of it now holds JSON.
  825|  3.38k|      return {ix};
  826|  12.1k|   }
_ZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_j:
  114|  26.5M|      {
  115|  26.5M|         if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (115:14): [True: 798, False: 26.5M]
  ------------------
  116|    798|            ctx.error = error_code::syntax_error;
  117|    798|            return;
  118|    798|         }
  119|  26.5M|         const auto tag = uint8_t(*it);
  120|  26.5M|         const auto type = tag & 0b00000'111;
  121|       |
  122|       |         // `recursive_depth` is the number of levels enclosing this value. Containers, and the
  123|       |         // extensions that wrap a value, open another; scalars do not, so as in the readers a scalar
  124|       |         // may sit inside the deepest container the limit allows.
  125|  26.5M|         const bool opens_level = type != tag::null && type != tag::number && type != tag::string;
  ------------------
  |  Branch (125:35): [True: 8.92M, False: 17.5M]
  |  Branch (125:56): [True: 8.81M, False: 106k]
  |  Branch (125:79): [True: 8.80M, False: 16.9k]
  ------------------
  126|  26.5M|         if (opens_level && recursive_depth >= max_recursive_depth_limit) [[unlikely]] {
  ------------------
  |  Branch (126:14): [True: 8.80M, False: 17.7M]
  |  Branch (126:29): [True: 11, False: 8.80M]
  ------------------
  127|     11|            ctx.error = error_code::exceeded_max_recursive_depth;
  128|     11|            return;
  129|     11|         }
  130|       |
  131|  26.5M|         switch (type) {
  132|  17.5M|         case tag::null: {
  ------------------
  |  Branch (132:10): [True: 17.5M, False: 8.92M]
  ------------------
  133|  17.5M|            if (tag & tag::boolean) {
  ------------------
  |  Branch (133:17): [True: 2.43M, False: 15.1M]
  ------------------
  134|  2.43M|               if (tag >> 4) {
  ------------------
  |  Branch (134:20): [True: 975k, False: 1.46M]
  ------------------
  135|   975k|                  if (!emit_literal<"true">(ctx, out, ix)) return;
  ------------------
  |  Branch (135:23): [True: 0, False: 975k]
  ------------------
  136|   975k|               }
  137|  1.46M|               else {
  138|  1.46M|                  if (!emit_literal<"false">(ctx, out, ix)) return;
  ------------------
  |  Branch (138:23): [True: 0, False: 1.46M]
  ------------------
  139|  1.46M|               }
  140|  2.43M|            }
  141|  15.1M|            else {
  142|  15.1M|               if (!emit_literal<"null">(ctx, out, ix)) return;
  ------------------
  |  Branch (142:20): [True: 0, False: 15.1M]
  ------------------
  143|  15.1M|            }
  144|  17.5M|            ++it;
  145|  17.5M|            break;
  146|  17.5M|         }
  147|   106k|         case tag::number: {
  ------------------
  |  Branch (147:10): [True: 106k, False: 26.3M]
  ------------------
  148|   106k|            ++it;
  149|   106k|            beve_to_json_number<Opts>(tag, ctx, it, end, out, ix);
  150|   106k|            if (bool(ctx.error)) return;
  ------------------
  |  Branch (150:17): [True: 257, False: 106k]
  ------------------
  151|   106k|            break;
  152|   106k|         }
  153|   106k|         case tag::string: {
  ------------------
  |  Branch (153:10): [True: 16.9k, False: 26.4M]
  ------------------
  154|  16.9k|            ++it;
  155|  16.9k|            const auto n = int_from_compressed(ctx, it, end);
  156|  16.9k|            if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (156:17): [True: 160, False: 16.7k]
  ------------------
  157|    160|               return;
  158|    160|            }
  159|  16.7k|            if (uint64_t(end - it) < n) [[unlikely]] {
  ------------------
  |  Branch (159:17): [True: 178, False: 16.6k]
  ------------------
  160|    178|               ctx.error = error_code::unexpected_end;
  161|    178|               return;
  162|    178|            }
  163|  16.6k|            const sv value{reinterpret_cast<const char*>(it), n};
  164|  16.6k|            detail::emit_untrusted_string<Opts>(ctx, value, out, ix);
  165|  16.6k|            if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (165:17): [True: 133, False: 16.4k]
  ------------------
  166|    133|               return;
  167|  16.4k|            it += n;
  168|  16.4k|            break;
  169|  16.6k|         }
  170|  14.2k|         case tag::object: {
  ------------------
  |  Branch (170:10): [True: 14.2k, False: 26.4M]
  ------------------
  171|  14.2k|            ++it;
  172|       |
  173|  14.2k|            if (!emit_char(ctx, '{', out, ix)) return;
  ------------------
  |  Branch (173:17): [True: 0, False: 14.2k]
  ------------------
  174|  14.2k|            {
  175|       |               // The indentation this object adds belongs to it, so every way out -- including an
  176|       |               // error return from a nested value -- puts the depth back.
  177|  14.2k|               const indent_guard indent{ctx, Opts.prettify ? check_indentation_width(Opts) : 1};
  ------------------
  |  Branch (177:47): [Folded, False: 14.2k]
  ------------------
  178|       |
  179|       |               if constexpr (Opts.prettify) {
  180|       |                  if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  181|       |               }
  182|       |
  183|  14.2k|               const auto key_type = (tag & 0b000'11'000) >> 3;
  184|  14.2k|               switch (key_type) {
  185|  9.38k|               case 0: {
  ------------------
  |  Branch (185:16): [True: 9.38k, False: 4.88k]
  ------------------
  186|       |                  // string key
  187|  9.38k|                  const auto n_fields = int_from_compressed(ctx, it, end);
  188|  9.38k|                  if (bool(ctx.error)) {
  ------------------
  |  Branch (188:23): [True: 154, False: 9.23k]
  ------------------
  189|    154|                     return;
  190|    154|                  }
  191|  1.64M|                  for (size_t i = 0; i < n_fields; ++i) {
  ------------------
  |  Branch (191:38): [True: 1.63M, False: 6.24k]
  ------------------
  192|       |                     // convert the key
  193|  1.63M|                     const auto n = int_from_compressed(ctx, it, end);
  194|  1.63M|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (194:26): [True: 645, False: 1.63M]
  ------------------
  195|    645|                        return;
  196|    645|                     }
  197|  1.63M|                     if (uint64_t(end - it) < n) [[unlikely]] {
  ------------------
  |  Branch (197:26): [True: 366, False: 1.63M]
  ------------------
  198|    366|                        ctx.error = error_code::unexpected_end;
  199|    366|                        return;
  200|    366|                     }
  201|  1.63M|                     const sv key{reinterpret_cast<const char*>(it), n};
  202|  1.63M|                     detail::emit_untrusted_string<Opts>(ctx, key, out, ix);
  203|  1.63M|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (203:26): [True: 194, False: 1.63M]
  ------------------
  204|    194|                        return;
  205|       |                     if constexpr (Opts.prettify) {
  206|       |                        if (!emit_literal<": ">(ctx, out, ix)) return;
  207|       |                     }
  208|  1.63M|                     else {
  209|  1.63M|                        if (!emit_char(ctx, ':', out, ix)) return;
  ------------------
  |  Branch (209:29): [True: 0, False: 1.63M]
  ------------------
  210|  1.63M|                     }
  211|  1.63M|                     it += n;
  212|  1.63M|                     beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  213|  1.63M|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (213:26): [True: 1.78k, False: 1.63M]
  ------------------
  214|  1.78k|                        return;
  215|  1.78k|                     }
  216|  1.63M|                     if (i != n_fields - 1) {
  ------------------
  |  Branch (216:26): [True: 1.63M, False: 511]
  ------------------
  217|  1.63M|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (217:29): [True: 0, False: 1.63M]
  ------------------
  218|       |                        if constexpr (Opts.prettify) {
  219|       |                           if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  220|       |                        }
  221|  1.63M|                     }
  222|  1.63M|                  }
  223|  6.24k|                  break;
  224|  9.23k|               }
  225|  6.24k|               case 1:
  ------------------
  |  Branch (225:16): [True: 3.33k, False: 10.9k]
  ------------------
  226|  3.33k|                  [[fallthrough]]; // signed integer key
  227|  4.84k|               case 2: {
  ------------------
  |  Branch (227:16): [True: 1.51k, False: 12.7k]
  ------------------
  228|       |                  // unsigned integer key
  229|  4.84k|                  const auto n_fields = int_from_compressed(ctx, it, end);
  230|  4.84k|                  if (bool(ctx.error)) {
  ------------------
  |  Branch (230:23): [True: 60, False: 4.78k]
  ------------------
  231|     60|                     return;
  232|     60|                  }
  233|   653k|                  for (size_t i = 0; i < n_fields; ++i) {
  ------------------
  |  Branch (233:38): [True: 650k, False: 3.32k]
  ------------------
  234|       |                     // convert the key
  235|   650k|                     if (!emit_char(ctx, '"', out, ix)) return;
  ------------------
  |  Branch (235:26): [True: 0, False: 650k]
  ------------------
  236|   650k|                     beve_to_json_number<Opts>(tag, ctx, it, end, out, ix);
  237|   650k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (237:26): [True: 216, False: 649k]
  ------------------
  238|    216|                        return;
  239|    216|                     }
  240|   649k|                     if (!emit_char(ctx, '"', out, ix)) return;
  ------------------
  |  Branch (240:26): [True: 0, False: 649k]
  ------------------
  241|       |                     if constexpr (Opts.prettify) {
  242|       |                        if (!emit_literal<": ">(ctx, out, ix)) return;
  243|       |                     }
  244|   649k|                     else {
  245|   649k|                        if (!emit_char(ctx, ':', out, ix)) return;
  ------------------
  |  Branch (245:29): [True: 0, False: 649k]
  ------------------
  246|   649k|                     }
  247|   649k|                     beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  248|   649k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (248:26): [True: 1.24k, False: 648k]
  ------------------
  249|  1.24k|                        return;
  250|  1.24k|                     }
  251|   648k|                     if (i != n_fields - 1) {
  ------------------
  |  Branch (251:26): [True: 648k, False: 326]
  ------------------
  252|   648k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (252:29): [True: 0, False: 648k]
  ------------------
  253|       |                        if constexpr (Opts.prettify) {
  254|       |                           if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  255|       |                        }
  256|   648k|                     }
  257|   648k|                  }
  258|  3.32k|                  break;
  259|  4.78k|               }
  260|  3.32k|               default: {
  ------------------
  |  Branch (260:16): [True: 43, False: 14.2k]
  ------------------
  261|     43|                  ctx.error = error_code::syntax_error;
  262|     43|                  return;
  263|  4.78k|               }
  264|  14.2k|               }
  265|  14.2k|            }
  266|       |
  267|       |            if constexpr (Opts.prettify) {
  268|       |               if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  269|       |            }
  270|  9.57k|            if (!emit_char(ctx, '}', out, ix)) return;
  ------------------
  |  Branch (270:17): [True: 0, False: 9.57k]
  ------------------
  271|  9.57k|            break;
  272|  9.57k|         }
  273|   342k|         case tag::typed_array: {
  ------------------
  |  Branch (273:10): [True: 342k, False: 26.1M]
  ------------------
  274|       |            // Check for aligned typed array (tag == 0x5C)
  275|   342k|            if (tag == tag::aligned_typed_array) {
  ------------------
  |  Branch (275:17): [True: 18.8k, False: 323k]
  ------------------
  276|  18.8k|               ++it; // skip aligned header
  277|  18.8k|               if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (277:20): [True: 8, False: 18.8k]
  ------------------
  278|      8|                  ctx.error = error_code::syntax_error;
  279|      8|                  return;
  280|      8|               }
  281|       |               // Read the numeric header byte
  282|  18.8k|               const auto numeric_tag = uint8_t(*it);
  283|  18.8k|               if ((numeric_tag & 0b00000'111) != tag::typed_array) [[unlikely]] {
  ------------------
  |  Branch (283:20): [True: 15, False: 18.8k]
  ------------------
  284|     15|                  ctx.error = error_code::syntax_error;
  285|     15|                  return;
  286|     15|               }
  287|  18.8k|               ++it; // skip numeric header
  288|  18.8k|               const auto value_type_inner = (numeric_tag & 0b000'11'000) >> 3;
  289|  18.8k|               const uint8_t byte_count_inner = byte_count_lookup[numeric_tag >> 5];
  290|       |
  291|  18.8k|               const auto n = int_from_compressed(ctx, it, end);
  292|  18.8k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (292:20): [True: 241, False: 18.5k]
  ------------------
  293|    241|                  return;
  294|    241|               }
  295|       |
  296|       |               // Read padding length byte and skip padding
  297|  18.5k|               if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (297:20): [True: 176, False: 18.4k]
  ------------------
  298|    176|                  ctx.error = error_code::unexpected_end;
  299|    176|                  return;
  300|    176|               }
  301|  18.4k|               const uint8_t padding = uint8_t(*it);
  302|  18.4k|               ++it;
  303|  18.4k|               if (padding >= byte_count_inner) [[unlikely]] {
  ------------------
  |  Branch (303:20): [True: 18, False: 18.3k]
  ------------------
  304|     18|                  ctx.error = error_code::syntax_error;
  305|     18|                  return;
  306|     18|               }
  307|  18.3k|               if (typed_array_out_of_bounds(ctx, it, end, n, byte_count_inner, padding)) return;
  ------------------
  |  Branch (307:20): [True: 104, False: 18.2k]
  ------------------
  308|  18.2k|               it += padding;
  309|       |
  310|       |               // Now decode as a normal numeric typed array
  311|  18.2k|               if (!emit_char(ctx, '[', out, ix)) return;
  ------------------
  |  Branch (311:20): [True: 0, False: 18.2k]
  ------------------
  312|       |
  313|  18.2k|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|  18.2k|                  for (size_t i = 0; i < n; ++i) {
  315|  18.2k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  316|  18.2k|                        ctx.error = error_code::unexpected_end;
  317|  18.2k|                        return;
  318|  18.2k|                     }
  319|  18.2k|                     using V = std::remove_cvref_t<T>;
  320|  18.2k|                     std::memcpy(&value, it, sizeof(V));
  321|  18.2k|                     if constexpr (std::endian::native == std::endian::big) {
  322|  18.2k|                        byteswap_le(value);
  323|  18.2k|                     }
  324|  18.2k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|  18.2k|                     it += sizeof(T);
  326|  18.2k|                     if (i != n - 1) {
  327|  18.2k|                        if (!emit_char(ctx, ',', out, ix)) return;
  328|  18.2k|                     }
  329|  18.2k|                  }
  330|  18.2k|               };
  331|       |
  332|  18.2k|               switch (value_type_inner) {
  333|  2.12k|               case 0: {
  ------------------
  |  Branch (333:16): [True: 2.12k, False: 16.1k]
  ------------------
  334|  2.12k|                  switch (byte_count_inner) {
  335|    758|                  case 4:
  ------------------
  |  Branch (335:19): [True: 758, False: 1.36k]
  ------------------
  336|    758|                     write_aligned_array(float{});
  337|    758|                     break;
  338|  1.36k|                  case 8:
  ------------------
  |  Branch (338:19): [True: 1.36k, False: 764]
  ------------------
  339|  1.36k|                     write_aligned_array(double{});
  340|  1.36k|                     break;
  341|      6|                  default:
  ------------------
  |  Branch (341:19): [True: 6, False: 2.11k]
  ------------------
  342|      6|                     ctx.error = error_code::syntax_error;
  343|      6|                     return;
  344|  2.12k|                  }
  345|  2.11k|                  break;
  346|  2.12k|               }
  347|  6.98k|               case 1: {
  ------------------
  |  Branch (347:16): [True: 6.98k, False: 11.3k]
  ------------------
  348|  6.98k|                  switch (byte_count_inner) {
  349|  2.33k|                  case 1:
  ------------------
  |  Branch (349:19): [True: 2.33k, False: 4.64k]
  ------------------
  350|  2.33k|                     write_aligned_array(int8_t{});
  351|  2.33k|                     break;
  352|  1.29k|                  case 2:
  ------------------
  |  Branch (352:19): [True: 1.29k, False: 5.68k]
  ------------------
  353|  1.29k|                     write_aligned_array(int16_t{});
  354|  1.29k|                     break;
  355|  2.46k|                  case 4:
  ------------------
  |  Branch (355:19): [True: 2.46k, False: 4.51k]
  ------------------
  356|  2.46k|                     write_aligned_array(int32_t{});
  357|  2.46k|                     break;
  358|    884|                  case 8:
  ------------------
  |  Branch (358:19): [True: 884, False: 6.09k]
  ------------------
  359|    884|                     write_aligned_array(int64_t{});
  360|    884|                     break;
  361|      2|                  default:
  ------------------
  |  Branch (361:19): [True: 2, False: 6.97k]
  ------------------
  362|      2|                     ctx.error = error_code::syntax_error;
  363|      2|                     return;
  364|  6.98k|                  }
  365|  6.97k|                  break;
  366|  6.98k|               }
  367|  9.17k|               case 2: {
  ------------------
  |  Branch (367:16): [True: 9.17k, False: 9.10k]
  ------------------
  368|  9.17k|                  switch (byte_count_inner) {
  369|    644|                  case 1:
  ------------------
  |  Branch (369:19): [True: 644, False: 8.53k]
  ------------------
  370|    644|                     write_aligned_array(uint8_t{});
  371|    644|                     break;
  372|  3.80k|                  case 2:
  ------------------
  |  Branch (372:19): [True: 3.80k, False: 5.36k]
  ------------------
  373|  3.80k|                     write_aligned_array(uint16_t{});
  374|  3.80k|                     break;
  375|    579|                  case 4:
  ------------------
  |  Branch (375:19): [True: 579, False: 8.59k]
  ------------------
  376|    579|                     write_aligned_array(uint32_t{});
  377|    579|                     break;
  378|  4.14k|                  case 8:
  ------------------
  |  Branch (378:19): [True: 4.14k, False: 5.03k]
  ------------------
  379|  4.14k|                     write_aligned_array(uint64_t{});
  380|  4.14k|                     break;
  381|      2|                  default:
  ------------------
  |  Branch (381:19): [True: 2, False: 9.17k]
  ------------------
  382|      2|                     ctx.error = error_code::syntax_error;
  383|      2|                     return;
  384|  9.17k|                  }
  385|  9.17k|                  break;
  386|  9.17k|               }
  387|  9.17k|               default:
  ------------------
  |  Branch (387:16): [True: 1, False: 18.2k]
  ------------------
  388|      1|                  ctx.error = error_code::syntax_error;
  389|      1|                  return;
  390|  18.2k|               }
  391|       |
  392|  18.2k|               if (!emit_char(ctx, ']', out, ix)) return;
  ------------------
  |  Branch (392:20): [True: 0, False: 18.2k]
  ------------------
  393|  18.2k|               break;
  394|  18.2k|            }
  395|       |
  396|   323k|            ++it;
  397|   323k|            const auto value_type = (tag & 0b000'11'000) >> 3;
  398|   323k|            const uint8_t byte_count = byte_count_lookup[tag >> 5];
  399|       |
  400|   323k|            auto write_array = [&]<class T>(T&& value) {
  401|   323k|               const auto n = int_from_compressed(ctx, it, end);
  402|   323k|               if (bool(ctx.error)) [[unlikely]] {
  403|   323k|                  return;
  404|   323k|               }
  405|   323k|               for (size_t i = 0; i < n; ++i) {
  406|   323k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  407|   323k|                     ctx.error = error_code::unexpected_end;
  408|   323k|                     return;
  409|   323k|                  }
  410|   323k|                  using V = std::remove_cvref_t<T>;
  411|   323k|                  std::memcpy(&value, it, sizeof(V));
  412|   323k|                  if constexpr (std::endian::native == std::endian::big) {
  413|   323k|                     byteswap_le(value);
  414|   323k|                  }
  415|   323k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   323k|                  it += sizeof(T);
  417|   323k|                  if (i != n - 1) {
  418|   323k|                     if (!emit_char(ctx, ',', out, ix)) return;
  419|   323k|                  }
  420|   323k|               }
  421|   323k|            };
  422|       |
  423|   323k|            if (!emit_char(ctx, '[', out, ix)) return;
  ------------------
  |  Branch (423:17): [True: 0, False: 323k]
  ------------------
  424|       |
  425|   323k|            switch (value_type) {
  426|  5.39k|            case 0: {
  ------------------
  |  Branch (426:13): [True: 5.39k, False: 318k]
  ------------------
  427|       |               // floating point
  428|  5.39k|               switch (byte_count) {
  429|  3.41k|               case 4: {
  ------------------
  |  Branch (429:16): [True: 3.41k, False: 1.97k]
  ------------------
  430|  3.41k|                  write_array(float{});
  431|  3.41k|                  break;
  432|      0|               }
  433|  1.92k|               case 8: {
  ------------------
  |  Branch (433:16): [True: 1.92k, False: 3.46k]
  ------------------
  434|  1.92k|                  write_array(double{});
  435|  1.92k|                  break;
  436|      0|               }
  437|     52|               default: {
  ------------------
  |  Branch (437:16): [True: 52, False: 5.33k]
  ------------------
  438|     52|                  ctx.error = error_code::syntax_error;
  439|     52|                  return;
  440|      0|               }
  441|  5.39k|               }
  442|  5.33k|               break;
  443|  5.39k|            }
  444|  27.7k|            case 1: {
  ------------------
  |  Branch (444:13): [True: 27.7k, False: 295k]
  ------------------
  445|       |               // signed integer
  446|  27.7k|               switch (byte_count) {
  447|  9.66k|               case 1: {
  ------------------
  |  Branch (447:16): [True: 9.66k, False: 18.1k]
  ------------------
  448|  9.66k|                  write_array(int8_t{});
  449|  9.66k|                  break;
  450|      0|               }
  451|  5.88k|               case 2: {
  ------------------
  |  Branch (451:16): [True: 5.88k, False: 21.8k]
  ------------------
  452|  5.88k|                  write_array(int16_t{});
  453|  5.88k|                  break;
  454|      0|               }
  455|  10.7k|               case 4: {
  ------------------
  |  Branch (455:16): [True: 10.7k, False: 17.0k]
  ------------------
  456|  10.7k|                  write_array(int32_t{});
  457|  10.7k|                  break;
  458|      0|               }
  459|  1.46k|               case 8: {
  ------------------
  |  Branch (459:16): [True: 1.46k, False: 26.3k]
  ------------------
  460|  1.46k|                  write_array(int64_t{});
  461|  1.46k|                  break;
  462|      0|               }
  463|     12|               default: {
  ------------------
  |  Branch (463:16): [True: 12, False: 27.7k]
  ------------------
  464|     12|                  ctx.error = error_code::syntax_error;
  465|     12|                  return;
  466|      0|               }
  467|  27.7k|               }
  468|  27.7k|               break;
  469|  27.7k|            }
  470|  59.3k|            case 2: {
  ------------------
  |  Branch (470:13): [True: 59.3k, False: 264k]
  ------------------
  471|       |               // unsigned integer
  472|  59.3k|               switch (byte_count) {
  473|  40.7k|               case 1: {
  ------------------
  |  Branch (473:16): [True: 40.7k, False: 18.6k]
  ------------------
  474|  40.7k|                  write_array(uint8_t{});
  475|  40.7k|                  break;
  476|      0|               }
  477|  2.55k|               case 2: {
  ------------------
  |  Branch (477:16): [True: 2.55k, False: 56.8k]
  ------------------
  478|  2.55k|                  write_array(uint16_t{});
  479|  2.55k|                  break;
  480|      0|               }
  481|  1.87k|               case 4: {
  ------------------
  |  Branch (481:16): [True: 1.87k, False: 57.4k]
  ------------------
  482|  1.87k|                  write_array(uint32_t{});
  483|  1.87k|                  break;
  484|      0|               }
  485|  14.1k|               case 8: {
  ------------------
  |  Branch (485:16): [True: 14.1k, False: 45.1k]
  ------------------
  486|  14.1k|                  write_array(uint64_t{});
  487|  14.1k|                  break;
  488|      0|               }
  489|     19|               default: {
  ------------------
  |  Branch (489:16): [True: 19, False: 59.3k]
  ------------------
  490|     19|                  ctx.error = error_code::syntax_error;
  491|     19|                  return;
  492|      0|               }
  493|  59.3k|               }
  494|  59.3k|               break;
  495|  59.3k|            }
  496|   231k|            case 3: {
  ------------------
  |  Branch (496:13): [True: 231k, False: 92.5k]
  ------------------
  497|       |               // string or boolean
  498|   231k|               const auto string_or_boolean = (tag & 0b001'00'000) >> 5;
  499|   231k|               switch (string_or_boolean) {
  500|   229k|               case 0: {
  ------------------
  |  Branch (500:16): [True: 229k, False: 1.85k]
  ------------------
  501|       |                  // boolean array (bit packed, LSB first)
  502|   229k|                  const auto n = int_from_compressed(ctx, it, end);
  503|   229k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (503:23): [True: 54, False: 229k]
  ------------------
  504|     54|                     return;
  505|     54|                  }
  506|   229k|                  const auto num_bytes = (n + 7) / 8;
  507|   229k|                  if (uint64_t(end - it) < num_bytes) [[unlikely]] {
  ------------------
  |  Branch (507:23): [True: 143, False: 229k]
  ------------------
  508|    143|                     ctx.error = error_code::unexpected_end;
  509|    143|                     return;
  510|    143|                  }
  511|   229k|                  if (num_bytes && !packed_bool_padding_is_zero(uint8_t(*(it + (num_bytes - 1))), n)) [[unlikely]] {
  ------------------
  |  Branch (511:23): [True: 213k, False: 15.0k]
  |  Branch (511:36): [True: 15, False: 213k]
  ------------------
  512|     15|                     ctx.error = error_code::syntax_error;
  513|     15|                     return;
  514|     15|                  }
  515|   469M|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (515:38): [True: 469M, False: 229k]
  ------------------
  516|   469M|                     if (i != 0) {
  ------------------
  |  Branch (516:26): [True: 468M, False: 213k]
  ------------------
  517|   468M|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (517:29): [True: 0, False: 468M]
  ------------------
  518|   468M|                     }
  519|   469M|                     const bool x = (uint8_t(it[i / 8]) >> (i % 8)) & uint8_t(1);
  520|   469M|                     if (x) {
  ------------------
  |  Branch (520:26): [True: 87.3M, False: 381M]
  ------------------
  521|  87.3M|                        if (!emit_literal<"true">(ctx, out, ix)) return;
  ------------------
  |  Branch (521:29): [True: 0, False: 87.3M]
  ------------------
  522|  87.3M|                     }
  523|   381M|                     else {
  524|   381M|                        if (!emit_literal<"false">(ctx, out, ix)) return;
  ------------------
  |  Branch (524:29): [True: 0, False: 381M]
  ------------------
  525|   381M|                     }
  526|   469M|                  }
  527|   229k|                  it += num_bytes;
  528|   229k|                  break;
  529|   229k|               }
  530|  1.85k|               case 1: {
  ------------------
  |  Branch (530:16): [True: 1.85k, False: 229k]
  ------------------
  531|       |                  // array of strings
  532|  1.85k|                  const auto n_strings = int_from_compressed(ctx, it, end);
  533|  1.85k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (533:23): [True: 45, False: 1.80k]
  ------------------
  534|     45|                     return;
  535|     45|                  }
  536|   140k|                  for (size_t i = 0; i < n_strings; ++i) {
  ------------------
  |  Branch (536:38): [True: 138k, False: 1.36k]
  ------------------
  537|   138k|                     const auto n = int_from_compressed(ctx, it, end);
  538|   138k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (538:26): [True: 271, False: 138k]
  ------------------
  539|    271|                        return;
  540|    271|                     }
  541|   138k|                     if (uint64_t(end - it) < n) [[unlikely]] {
  ------------------
  |  Branch (541:26): [True: 116, False: 138k]
  ------------------
  542|    116|                        ctx.error = error_code::unexpected_end;
  543|    116|                        return;
  544|    116|                     }
  545|   138k|                     const sv value{reinterpret_cast<const char*>(it), n};
  546|   138k|                     detail::emit_untrusted_string<Opts>(ctx, value, out, ix);
  547|   138k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (547:26): [True: 54, False: 138k]
  ------------------
  548|     54|                        return;
  549|   138k|                     it += n;
  550|   138k|                     if (i != n_strings - 1) {
  ------------------
  |  Branch (550:26): [True: 138k, False: 346]
  ------------------
  551|   138k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (551:29): [True: 0, False: 138k]
  ------------------
  552|   138k|                     }
  553|   138k|                  }
  554|  1.36k|                  break;
  555|  1.80k|               }
  556|  1.36k|               default: {
  ------------------
  |  Branch (556:16): [True: 0, False: 231k]
  ------------------
  557|      0|                  ctx.error = error_code::syntax_error;
  558|      0|                  return;
  559|  1.80k|               }
  560|   231k|               }
  561|   230k|               break;
  562|   231k|            }
  563|   230k|            default: {
  ------------------
  |  Branch (563:13): [True: 0, False: 323k]
  ------------------
  564|      0|               ctx.error = error_code::syntax_error;
  565|      0|               return;
  566|   231k|            }
  567|   323k|            }
  568|       |
  569|   322k|            if (!emit_char(ctx, ']', out, ix)) return;
  ------------------
  |  Branch (569:17): [True: 0, False: 322k]
  ------------------
  570|       |
  571|   322k|            break;
  572|   322k|         }
  573|   322k|         case tag::generic_array: {
  ------------------
  |  Branch (573:10): [True: 16.0k, False: 26.4M]
  ------------------
  574|  16.0k|            ++it;
  575|  16.0k|            const auto n = int_from_compressed(ctx, it, end);
  576|  16.0k|            if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (576:17): [True: 50, False: 15.9k]
  ------------------
  577|     50|               return;
  578|     50|            }
  579|  15.9k|            if (!emit_char(ctx, '[', out, ix)) return;
  ------------------
  |  Branch (579:17): [True: 0, False: 15.9k]
  ------------------
  580|   955k|            for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (580:32): [True: 942k, False: 12.9k]
  ------------------
  581|   942k|               beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  582|   942k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (582:20): [True: 2.98k, False: 939k]
  ------------------
  583|  2.98k|                  return;
  584|  2.98k|               }
  585|   939k|               if (i != n - 1) {
  ------------------
  |  Branch (585:20): [True: 938k, False: 898]
  ------------------
  586|   938k|                  if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (586:23): [True: 0, False: 938k]
  ------------------
  587|   938k|               }
  588|   939k|            }
  589|  12.9k|            if (!emit_char(ctx, ']', out, ix)) return;
  ------------------
  |  Branch (589:17): [True: 0, False: 12.9k]
  ------------------
  590|  12.9k|            break;
  591|  12.9k|         }
  592|  8.42M|         case tag::extensions: {
  ------------------
  |  Branch (592:10): [True: 8.42M, False: 18.0M]
  ------------------
  593|  8.42M|            const uint8_t extension = tag >> 3;
  594|  8.42M|            switch (extension) {
  595|   140k|            case 0: {
  ------------------
  |  Branch (595:13): [True: 140k, False: 8.28M]
  ------------------
  596|       |               // delimiter
  597|   140k|               ++it;
  598|   140k|               if (!emit_char(ctx, '\n', out, ix)) return;
  ------------------
  |  Branch (598:20): [True: 0, False: 140k]
  ------------------
  599|   140k|               break;
  600|   140k|            }
  601|   140k|            case 1: {
  ------------------
  |  Branch (601:13): [True: 2.15k, False: 8.42M]
  ------------------
  602|       |               // legacy (Version 1) type tag: transcode by dropping the positional index and
  603|       |               // emitting the value. Version 2 variants are ordinary objects/values transcoded by
  604|       |               // their normal cases and never reach here.
  605|  2.15k|               ++it;
  606|  2.15k|               skip_compressed_int(ctx, it, end);
  607|  2.15k|               if (bool(ctx.error)) return;
  ------------------
  |  Branch (607:20): [True: 3, False: 2.15k]
  ------------------
  608|       |
  609|  2.15k|               beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  610|  2.15k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (610:20): [True: 1.29k, False: 855]
  ------------------
  611|  1.29k|                  return;
  612|  1.29k|               }
  613|    855|               break;
  614|  2.15k|            }
  615|  8.28M|            case 2: {
  ------------------
  |  Branch (615:13): [True: 8.28M, False: 146k]
  ------------------
  616|       |               // matrices
  617|  8.28M|               ++it;
  618|  8.28M|               if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (618:20): [True: 34, False: 8.28M]
  ------------------
  619|     34|                  ctx.error = error_code::syntax_error;
  620|     34|                  return;
  621|     34|               }
  622|  8.28M|               const auto matrix_header = uint8_t(*it);
  623|  8.28M|               ++it;
  624|       |
  625|  8.28M|               if (!emit_char(ctx, '{', out, ix)) return;
  ------------------
  |  Branch (625:20): [True: 0, False: 8.28M]
  ------------------
  626|  8.28M|               {
  627|       |                  // The indentation this matrix adds belongs to it, so every way out -- including an
  628|       |                  // error return from a nested value -- puts the depth back.
  629|  8.28M|                  const indent_guard indent{ctx, Opts.prettify ? check_indentation_width(Opts) : 1};
  ------------------
  |  Branch (629:50): [Folded, False: 8.28M]
  ------------------
  630|       |
  631|       |                  if constexpr (Opts.prettify) {
  632|       |                     if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  633|       |                  }
  634|       |
  635|       |                  if constexpr (Opts.prettify) {
  636|       |                     if (!emit_literal<R"("layout": )">(ctx, out, ix)) return;
  637|       |                  }
  638|  8.28M|                  else {
  639|  8.28M|                     if (!emit_literal<R"("layout":)">(ctx, out, ix)) return;
  ------------------
  |  Branch (639:26): [True: 0, False: 8.28M]
  ------------------
  640|  8.28M|                  }
  641|       |
  642|  8.28M|                  const auto layout = matrix_header & 0b0000000'1;
  643|  8.28M|                  if (layout) {
  ------------------
  |  Branch (643:23): [True: 190k, False: 8.09M]
  ------------------
  644|   190k|                     if (!emit_literal<R"("layout_right")">(ctx, out, ix)) return;
  ------------------
  |  Branch (644:26): [True: 0, False: 190k]
  ------------------
  645|   190k|                  }
  646|  8.09M|                  else {
  647|  8.09M|                     if (!emit_literal<R"("layout_left")">(ctx, out, ix)) return;
  ------------------
  |  Branch (647:26): [True: 0, False: 8.09M]
  ------------------
  648|  8.09M|                  }
  649|       |
  650|  8.28M|                  if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (650:23): [True: 0, False: 8.28M]
  ------------------
  651|       |                  if constexpr (Opts.prettify) {
  652|       |                     if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  653|       |                  }
  654|       |
  655|       |                  if constexpr (Opts.prettify) {
  656|       |                     if (!emit_literal<R"("extents": )">(ctx, out, ix)) return;
  657|       |                  }
  658|  8.28M|                  else {
  659|  8.28M|                     if (!emit_literal<R"("extents":)">(ctx, out, ix)) return;
  ------------------
  |  Branch (659:26): [True: 0, False: 8.28M]
  ------------------
  660|  8.28M|                  }
  661|       |
  662|  8.28M|                  beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  663|  8.28M|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (663:23): [True: 33.6k, False: 8.24M]
  ------------------
  664|  33.6k|                     return;
  665|  33.6k|                  }
  666|       |
  667|  8.24M|                  if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (667:23): [True: 0, False: 8.24M]
  ------------------
  668|       |                  if constexpr (Opts.prettify) {
  669|       |                     if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  670|       |                  }
  671|       |
  672|       |                  if constexpr (Opts.prettify) {
  673|       |                     if (!emit_literal<R"("value": )">(ctx, out, ix)) return;
  674|       |                  }
  675|  8.24M|                  else {
  676|  8.24M|                     if (!emit_literal<R"("value":)">(ctx, out, ix)) return;
  ------------------
  |  Branch (676:26): [True: 0, False: 8.24M]
  ------------------
  677|  8.24M|                  }
  678|       |
  679|  8.24M|                  beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  680|  8.24M|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (680:23): [True: 2.56k, False: 8.24M]
  ------------------
  681|  2.56k|                     return;
  682|  2.56k|                  }
  683|  8.24M|               }
  684|       |
  685|       |               if constexpr (Opts.prettify) {
  686|       |                  if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  687|       |               }
  688|  8.24M|               if (!emit_char(ctx, '}', out, ix)) return;
  ------------------
  |  Branch (688:20): [True: 0, False: 8.24M]
  ------------------
  689|  8.24M|               break;
  690|  8.24M|            }
  691|  8.24M|            case 3: {
  ------------------
  |  Branch (691:13): [True: 3.85k, False: 8.42M]
  ------------------
  692|       |               // complex numbers
  693|  3.85k|               ++it;
  694|  3.85k|               if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (694:20): [True: 3, False: 3.85k]
  ------------------
  695|      3|                  ctx.error = error_code::syntax_error;
  696|      3|                  return;
  697|      3|               }
  698|  3.85k|               const auto complex_header = uint8_t(*it);
  699|  3.85k|               ++it;
  700|       |
  701|       |               // The COMPLEX HEADER carries the component's numerical type (bits 3-4) and BYTE COUNT
  702|       |               // (bits 5-7) in the same positions as a number tag.
  703|  3.85k|               const uint8_t number_tag = tag::number | (complex_header & 0b111'11'000);
  704|       |
  705|       |               // Writes one complex value as [re,im]
  706|  3.85k|               auto write_complex = [&]() -> bool {
  707|  3.85k|                  if (!emit_char(ctx, '[', out, ix)) return false;
  708|  3.85k|                  beve_to_json_number<Opts>(number_tag, ctx, it, end, out, ix);
  709|  3.85k|                  if (bool(ctx.error)) [[unlikely]] {
  710|  3.85k|                     return false;
  711|  3.85k|                  }
  712|  3.85k|                  if (!emit_char(ctx, ',', out, ix)) return false;
  713|  3.85k|                  beve_to_json_number<Opts>(number_tag, ctx, it, end, out, ix);
  714|  3.85k|                  if (bool(ctx.error)) [[unlikely]] {
  715|  3.85k|                     return false;
  716|  3.85k|                  }
  717|  3.85k|                  return emit_char(ctx, ']', out, ix);
  718|  3.85k|               };
  719|       |
  720|       |               // Writes n complex values as [[re,im],...]
  721|  3.85k|               auto write_complex_array = [&](const size_t n) -> bool {
  722|  3.85k|                  if (!emit_char(ctx, '[', out, ix)) return false;
  723|  3.85k|                  for (size_t i = 0; i < n; ++i) {
  724|  3.85k|                     if (!write_complex()) return false;
  725|  3.85k|                     if (i != n - 1) {
  726|  3.85k|                        if (!emit_char(ctx, ',', out, ix)) return false;
  727|  3.85k|                     }
  728|  3.85k|                  }
  729|  3.85k|                  return emit_char(ctx, ']', out, ix);
  730|  3.85k|               };
  731|       |
  732|  3.85k|               switch (complex_header & glz::extension::complex_subtype_mask) {
  733|    338|               case glz::extension::complex_number: {
  ------------------
  |  Branch (733:16): [True: 338, False: 3.51k]
  ------------------
  734|    338|                  if (!write_complex()) return;
  ------------------
  |  Branch (734:23): [True: 31, False: 307]
  ------------------
  735|    307|                  break;
  736|    338|               }
  737|  2.23k|               case glz::extension::complex_array: {
  ------------------
  |  Branch (737:16): [True: 2.23k, False: 1.62k]
  ------------------
  738|  2.23k|                  const auto n = int_from_compressed(ctx, it, end);
  739|  2.23k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (739:23): [True: 37, False: 2.19k]
  ------------------
  740|     37|                     return;
  741|     37|                  }
  742|  2.19k|                  if (!write_complex_array(n)) return;
  ------------------
  |  Branch (742:23): [True: 424, False: 1.76k]
  ------------------
  743|  1.76k|                  break;
  744|  2.19k|               }
  745|  1.76k|               case glz::extension::complex_aligned_array: {
  ------------------
  |  Branch (745:16): [True: 1.26k, False: 2.58k]
  ------------------
  746|       |                  // Alignment is a storage property: the JSON matches an unaligned complex array
  747|  1.26k|                  const auto n = read_aligned_complex_header(ctx, it, end, complex_header);
  748|  1.26k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (748:23): [True: 191, False: 1.07k]
  ------------------
  749|    191|                     return;
  750|    191|                  }
  751|  1.07k|                  if (!write_complex_array(n)) return;
  ------------------
  |  Branch (751:23): [True: 1, False: 1.07k]
  ------------------
  752|  1.07k|                  break;
  753|  1.07k|               }
  754|  1.07k|               default: {
  ------------------
  |  Branch (754:16): [True: 21, False: 3.83k]
  ------------------
  755|       |                  // Undefined complex sub-type
  756|     21|                  ctx.error = error_code::syntax_error;
  757|     21|                  return;
  758|  1.07k|               }
  759|  3.85k|               }
  760|       |
  761|  3.14k|               break;
  762|  3.85k|            }
  763|  3.14k|            default: {
  ------------------
  |  Branch (763:13): [True: 105, False: 8.42M]
  ------------------
  764|    105|               ctx.error = error_code::syntax_error;
  765|    105|               return;
  766|  3.85k|            }
  767|  8.42M|            }
  768|  8.39M|            break;
  769|  8.42M|         }
  770|  8.39M|         default: {
  ------------------
  |  Branch (770:10): [True: 219, False: 26.5M]
  ------------------
  771|    219|            ctx.error = error_code::syntax_error;
  772|    219|            return;
  773|  8.42M|         }
  774|  26.5M|         }
  775|  26.5M|      }
_ZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_:
   15|  2.19M|      {
   16|  2.19M|         const auto number_type = (tag & 0b000'11'000) >> 3;
   17|  2.19M|         const uint8_t byte_count = byte_count_lookup[tag >> 5];
   18|       |
   19|  2.19M|         auto write_number = [&]<class T>(T&& value) {
   20|  2.19M|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
   21|  2.19M|               ctx.error = error_code::syntax_error;
   22|  2.19M|               return;
   23|  2.19M|            }
   24|  2.19M|            using V = std::remove_cvref_t<T>;
   25|  2.19M|            std::memcpy(&value, it, sizeof(V));
   26|  2.19M|            if constexpr (std::endian::native == std::endian::big) {
   27|  2.19M|               byteswap_le(value);
   28|  2.19M|            }
   29|  2.19M|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|  2.19M|            it += sizeof(T);
   31|  2.19M|         };
   32|       |
   33|  2.19M|         switch (number_type) {
   34|   417k|         case 0: {
  ------------------
  |  Branch (34:10): [True: 417k, False: 1.77M]
  ------------------
   35|       |            // floating point
   36|   417k|            switch (byte_count) {
   37|   241k|            case 4: {
  ------------------
  |  Branch (37:13): [True: 241k, False: 175k]
  ------------------
   38|   241k|               write_number(float{});
   39|   241k|               break;
   40|      0|            }
   41|   175k|            case 8: {
  ------------------
  |  Branch (41:13): [True: 175k, False: 241k]
  ------------------
   42|   175k|               write_number(double{});
   43|   175k|               break;
   44|      0|            }
   45|     97|            default: {
  ------------------
  |  Branch (45:13): [True: 97, False: 417k]
  ------------------
   46|     97|               ctx.error = error_code::syntax_error;
   47|     97|               return;
   48|      0|            }
   49|   417k|            }
   50|   417k|            break;
   51|   417k|         }
   52|   996k|         case 1: {
  ------------------
  |  Branch (52:10): [True: 996k, False: 1.19M]
  ------------------
   53|       |            // signed integer
   54|   996k|            switch (byte_count) {
   55|   247k|            case 1: {
  ------------------
  |  Branch (55:13): [True: 247k, False: 749k]
  ------------------
   56|   247k|               write_number(int8_t{});
   57|   247k|               break;
   58|      0|            }
   59|   494k|            case 2: {
  ------------------
  |  Branch (59:13): [True: 494k, False: 502k]
  ------------------
   60|   494k|               write_number(int16_t{});
   61|   494k|               break;
   62|      0|            }
   63|   121k|            case 4: {
  ------------------
  |  Branch (63:13): [True: 121k, False: 875k]
  ------------------
   64|   121k|               write_number(int32_t{});
   65|   121k|               break;
   66|      0|            }
   67|   133k|            case 8: {
  ------------------
  |  Branch (67:13): [True: 133k, False: 862k]
  ------------------
   68|   133k|               write_number(int64_t{});
   69|   133k|               break;
   70|      0|            }
   71|     42|            default: {
  ------------------
  |  Branch (71:13): [True: 42, False: 996k]
  ------------------
   72|     42|               ctx.error = error_code::syntax_error;
   73|     42|               return;
   74|      0|            }
   75|   996k|            }
   76|   996k|            break;
   77|   996k|         }
   78|   996k|         case 2: {
  ------------------
  |  Branch (78:10): [True: 778k, False: 1.41M]
  ------------------
   79|       |            // unsigned integer
   80|   778k|            switch (byte_count) {
   81|   125k|            case 1: {
  ------------------
  |  Branch (81:13): [True: 125k, False: 653k]
  ------------------
   82|   125k|               write_number(uint8_t{});
   83|   125k|               break;
   84|      0|            }
   85|   537k|            case 2: {
  ------------------
  |  Branch (85:13): [True: 537k, False: 240k]
  ------------------
   86|   537k|               write_number(uint16_t{});
   87|   537k|               break;
   88|      0|            }
   89|  23.9k|            case 4: {
  ------------------
  |  Branch (89:13): [True: 23.9k, False: 754k]
  ------------------
   90|  23.9k|               write_number(uint32_t{});
   91|  23.9k|               break;
   92|      0|            }
   93|  91.3k|            case 8: {
  ------------------
  |  Branch (93:13): [True: 91.3k, False: 687k]
  ------------------
   94|  91.3k|               write_number(uint64_t{});
   95|  91.3k|               break;
   96|      0|            }
   97|     41|            default: {
  ------------------
  |  Branch (97:13): [True: 41, False: 778k]
  ------------------
   98|     41|               ctx.error = error_code::syntax_error;
   99|     41|               return;
  100|      0|            }
  101|   778k|            }
  102|   778k|            break;
  103|   778k|         }
  104|   778k|         default: {
  ------------------
  |  Branch (104:10): [True: 27, False: 2.19M]
  ------------------
  105|     27|            ctx.error = error_code::syntax_error;
  106|     27|            return;
  107|   778k|         }
  108|  2.19M|         }
  109|  2.19M|      }
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIfEEDaSU_:
   19|   241k|         auto write_number = [&]<class T>(T&& value) {
   20|   241k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 76, False: 241k]
  ------------------
   21|     76|               ctx.error = error_code::syntax_error;
   22|     76|               return;
   23|     76|            }
   24|   241k|            using V = std::remove_cvref_t<T>;
   25|   241k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   241k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   241k|            it += sizeof(T);
   31|   241k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIdEEDaSU_:
   19|   175k|         auto write_number = [&]<class T>(T&& value) {
   20|   175k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 47, False: 175k]
  ------------------
   21|     47|               ctx.error = error_code::syntax_error;
   22|     47|               return;
   23|     47|            }
   24|   175k|            using V = std::remove_cvref_t<T>;
   25|   175k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   175k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   175k|            it += sizeof(T);
   31|   175k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIaEEDaSU_:
   19|   247k|         auto write_number = [&]<class T>(T&& value) {
   20|   247k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 138, False: 246k]
  ------------------
   21|    138|               ctx.error = error_code::syntax_error;
   22|    138|               return;
   23|    138|            }
   24|   246k|            using V = std::remove_cvref_t<T>;
   25|   246k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   246k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   246k|            it += sizeof(T);
   31|   246k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIsEEDaSU_:
   19|   494k|         auto write_number = [&]<class T>(T&& value) {
   20|   494k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 69, False: 493k]
  ------------------
   21|     69|               ctx.error = error_code::syntax_error;
   22|     69|               return;
   23|     69|            }
   24|   493k|            using V = std::remove_cvref_t<T>;
   25|   493k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   493k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   493k|            it += sizeof(T);
   31|   493k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIiEEDaSU_:
   19|   121k|         auto write_number = [&]<class T>(T&& value) {
   20|   121k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 32, False: 121k]
  ------------------
   21|     32|               ctx.error = error_code::syntax_error;
   22|     32|               return;
   23|     32|            }
   24|   121k|            using V = std::remove_cvref_t<T>;
   25|   121k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   121k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   121k|            it += sizeof(T);
   31|   121k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIlEEDaSU_:
   19|   133k|         auto write_number = [&]<class T>(T&& value) {
   20|   133k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 56, False: 133k]
  ------------------
   21|     56|               ctx.error = error_code::syntax_error;
   22|     56|               return;
   23|     56|            }
   24|   133k|            using V = std::remove_cvref_t<T>;
   25|   133k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   133k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   133k|            it += sizeof(T);
   31|   133k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIhEEDaSU_:
   19|   125k|         auto write_number = [&]<class T>(T&& value) {
   20|   125k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 152, False: 125k]
  ------------------
   21|    152|               ctx.error = error_code::syntax_error;
   22|    152|               return;
   23|    152|            }
   24|   125k|            using V = std::remove_cvref_t<T>;
   25|   125k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   125k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   125k|            it += sizeof(T);
   31|   125k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clItEEDaSU_:
   19|   537k|         auto write_number = [&]<class T>(T&& value) {
   20|   537k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 84, False: 537k]
  ------------------
   21|     84|               ctx.error = error_code::syntax_error;
   22|     84|               return;
   23|     84|            }
   24|   537k|            using V = std::remove_cvref_t<T>;
   25|   537k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   537k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   537k|            it += sizeof(T);
   31|   537k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIjEEDaSU_:
   19|  23.9k|         auto write_number = [&]<class T>(T&& value) {
   20|  23.9k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 40, False: 23.9k]
  ------------------
   21|     40|               ctx.error = error_code::syntax_error;
   22|     40|               return;
   23|     40|            }
   24|  23.9k|            using V = std::remove_cvref_t<T>;
   25|  23.9k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|  23.9k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|  23.9k|            it += sizeof(T);
   31|  23.9k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clImEEDaSU_:
   19|  91.3k|         auto write_number = [&]<class T>(T&& value) {
   20|  91.3k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 28, False: 91.2k]
  ------------------
   21|     28|               ctx.error = error_code::syntax_error;
   22|     28|               return;
   23|     28|            }
   24|  91.2k|            using V = std::remove_cvref_t<T>;
   25|  91.2k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|  91.2k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|  91.2k|            it += sizeof(T);
   31|  91.2k|         };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIfEEDaSR_:
  313|    758|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|   170k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 169k, False: 758]
  ------------------
  315|   169k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 169k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|   169k|                     using V = std::remove_cvref_t<T>;
  320|   169k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|   169k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|   169k|                     it += sizeof(T);
  326|   169k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 169k, False: 315]
  ------------------
  327|   169k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 169k]
  ------------------
  328|   169k|                     }
  329|   169k|                  }
  330|    758|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIdEEDaSR_:
  313|  1.36k|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|  69.2k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 67.9k, False: 1.36k]
  ------------------
  315|  67.9k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 67.9k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|  67.9k|                     using V = std::remove_cvref_t<T>;
  320|  67.9k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|  67.9k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|  67.9k|                     it += sizeof(T);
  326|  67.9k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 66.9k, False: 960]
  ------------------
  327|  66.9k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 66.9k]
  ------------------
  328|  66.9k|                     }
  329|  67.9k|                  }
  330|  1.36k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIaEEDaSR_:
  313|  2.33k|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|   236k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 233k, False: 2.33k]
  ------------------
  315|   233k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 233k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|   233k|                     using V = std::remove_cvref_t<T>;
  320|   233k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|   233k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|   233k|                     it += sizeof(T);
  326|   233k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 231k, False: 2.03k]
  ------------------
  327|   231k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 231k]
  ------------------
  328|   231k|                     }
  329|   233k|                  }
  330|  2.33k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIsEEDaSR_:
  313|  1.29k|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|  1.12M|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 1.12M, False: 1.29k]
  ------------------
  315|  1.12M|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 1.12M]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|  1.12M|                     using V = std::remove_cvref_t<T>;
  320|  1.12M|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|  1.12M|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|  1.12M|                     it += sizeof(T);
  326|  1.12M|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 1.12M, False: 900]
  ------------------
  327|  1.12M|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 1.12M]
  ------------------
  328|  1.12M|                     }
  329|  1.12M|                  }
  330|  1.29k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIiEEDaSR_:
  313|  2.46k|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|   177k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 174k, False: 2.46k]
  ------------------
  315|   174k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 174k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|   174k|                     using V = std::remove_cvref_t<T>;
  320|   174k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|   174k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|   174k|                     it += sizeof(T);
  326|   174k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 172k, False: 2.02k]
  ------------------
  327|   172k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 172k]
  ------------------
  328|   172k|                     }
  329|   174k|                  }
  330|  2.46k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIlEEDaSR_:
  313|    884|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|   283k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 282k, False: 884]
  ------------------
  315|   282k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 282k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|   282k|                     using V = std::remove_cvref_t<T>;
  320|   282k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|   282k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|   282k|                     it += sizeof(T);
  326|   282k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 282k, False: 653]
  ------------------
  327|   282k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 282k]
  ------------------
  328|   282k|                     }
  329|   282k|                  }
  330|    884|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIhEEDaSR_:
  313|    644|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|  2.06M|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 2.06M, False: 644]
  ------------------
  315|  2.06M|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 2.06M]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|  2.06M|                     using V = std::remove_cvref_t<T>;
  320|  2.06M|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|  2.06M|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|  2.06M|                     it += sizeof(T);
  326|  2.06M|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 2.06M, False: 300]
  ------------------
  327|  2.06M|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 2.06M]
  ------------------
  328|  2.06M|                     }
  329|  2.06M|                  }
  330|    644|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clItEEDaSR_:
  313|  3.80k|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|   973k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 969k, False: 3.80k]
  ------------------
  315|   969k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 969k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|   969k|                     using V = std::remove_cvref_t<T>;
  320|   969k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|   969k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|   969k|                     it += sizeof(T);
  326|   969k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 966k, False: 3.14k]
  ------------------
  327|   966k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 966k]
  ------------------
  328|   966k|                     }
  329|   969k|                  }
  330|  3.80k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIjEEDaSR_:
  313|    579|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|   162k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 161k, False: 579]
  ------------------
  315|   161k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 161k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|   161k|                     using V = std::remove_cvref_t<T>;
  320|   161k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|   161k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|   161k|                     it += sizeof(T);
  326|   161k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 161k, False: 352]
  ------------------
  327|   161k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 161k]
  ------------------
  328|   161k|                     }
  329|   161k|                  }
  330|    579|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clImEEDaSR_:
  313|  4.14k|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|   105k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 101k, False: 4.14k]
  ------------------
  315|   101k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 101k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|   101k|                     using V = std::remove_cvref_t<T>;
  320|   101k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|   101k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|   101k|                     it += sizeof(T);
  326|   101k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 100k, False: 684]
  ------------------
  327|   100k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 100k]
  ------------------
  328|   100k|                     }
  329|   101k|                  }
  330|  4.14k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIfEEDaSR_:
  400|  3.41k|            auto write_array = [&]<class T>(T&& value) {
  401|  3.41k|               const auto n = int_from_compressed(ctx, it, end);
  402|  3.41k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 43, False: 3.37k]
  ------------------
  403|     43|                  return;
  404|     43|               }
  405|  1.20M|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 1.20M, False: 3.07k]
  ------------------
  406|  1.20M|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 294, False: 1.20M]
  ------------------
  407|    294|                     ctx.error = error_code::unexpected_end;
  408|    294|                     return;
  409|    294|                  }
  410|  1.20M|                  using V = std::remove_cvref_t<T>;
  411|  1.20M|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|  1.20M|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|  1.20M|                  it += sizeof(T);
  417|  1.20M|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 1.20M, False: 1.25k]
  ------------------
  418|  1.20M|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 1.20M]
  ------------------
  419|  1.20M|                  }
  420|  1.20M|               }
  421|  3.37k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIdEEDaSR_:
  400|  1.92k|            auto write_array = [&]<class T>(T&& value) {
  401|  1.92k|               const auto n = int_from_compressed(ctx, it, end);
  402|  1.92k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 55, False: 1.86k]
  ------------------
  403|     55|                  return;
  404|     55|               }
  405|   873k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 872k, False: 1.52k]
  ------------------
  406|   872k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 342, False: 872k]
  ------------------
  407|    342|                     ctx.error = error_code::unexpected_end;
  408|    342|                     return;
  409|    342|                  }
  410|   872k|                  using V = std::remove_cvref_t<T>;
  411|   872k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   872k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   872k|                  it += sizeof(T);
  417|   872k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 871k, False: 356]
  ------------------
  418|   871k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 871k]
  ------------------
  419|   871k|                  }
  420|   872k|               }
  421|  1.86k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIaEEDaSR_:
  400|  9.66k|            auto write_array = [&]<class T>(T&& value) {
  401|  9.66k|               const auto n = int_from_compressed(ctx, it, end);
  402|  9.66k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 53, False: 9.60k]
  ------------------
  403|     53|                  return;
  404|     53|               }
  405|   392k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 382k, False: 9.40k]
  ------------------
  406|   382k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 201, False: 382k]
  ------------------
  407|    201|                     ctx.error = error_code::unexpected_end;
  408|    201|                     return;
  409|    201|                  }
  410|   382k|                  using V = std::remove_cvref_t<T>;
  411|   382k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   382k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   382k|                  it += sizeof(T);
  417|   382k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 377k, False: 5.39k]
  ------------------
  418|   377k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 377k]
  ------------------
  419|   377k|                  }
  420|   382k|               }
  421|  9.60k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIsEEDaSR_:
  400|  5.88k|            auto write_array = [&]<class T>(T&& value) {
  401|  5.88k|               const auto n = int_from_compressed(ctx, it, end);
  402|  5.88k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 48, False: 5.84k]
  ------------------
  403|     48|                  return;
  404|     48|               }
  405|   413k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 407k, False: 5.64k]
  ------------------
  406|   407k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 197, False: 407k]
  ------------------
  407|    197|                     ctx.error = error_code::unexpected_end;
  408|    197|                     return;
  409|    197|                  }
  410|   407k|                  using V = std::remove_cvref_t<T>;
  411|   407k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   407k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   407k|                  it += sizeof(T);
  417|   407k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 405k, False: 2.06k]
  ------------------
  418|   405k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 405k]
  ------------------
  419|   405k|                  }
  420|   407k|               }
  421|  5.84k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIiEEDaSR_:
  400|  10.7k|            auto write_array = [&]<class T>(T&& value) {
  401|  10.7k|               const auto n = int_from_compressed(ctx, it, end);
  402|  10.7k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 50, False: 10.7k]
  ------------------
  403|     50|                  return;
  404|     50|               }
  405|   620k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 609k, False: 10.4k]
  ------------------
  406|   609k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 235, False: 609k]
  ------------------
  407|    235|                     ctx.error = error_code::unexpected_end;
  408|    235|                     return;
  409|    235|                  }
  410|   609k|                  using V = std::remove_cvref_t<T>;
  411|   609k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   609k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   609k|                  it += sizeof(T);
  417|   609k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 600k, False: 9.23k]
  ------------------
  418|   600k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 600k]
  ------------------
  419|   600k|                  }
  420|   609k|               }
  421|  10.7k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIlEEDaSR_:
  400|  1.46k|            auto write_array = [&]<class T>(T&& value) {
  401|  1.46k|               const auto n = int_from_compressed(ctx, it, end);
  402|  1.46k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 55, False: 1.41k]
  ------------------
  403|     55|                  return;
  404|     55|               }
  405|   515k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 514k, False: 1.11k]
  ------------------
  406|   514k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 300, False: 513k]
  ------------------
  407|    300|                     ctx.error = error_code::unexpected_end;
  408|    300|                     return;
  409|    300|                  }
  410|   513k|                  using V = std::remove_cvref_t<T>;
  411|   513k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   513k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   513k|                  it += sizeof(T);
  417|   513k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 513k, False: 252]
  ------------------
  418|   513k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 513k]
  ------------------
  419|   513k|                  }
  420|   513k|               }
  421|  1.41k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIhEEDaSR_:
  400|  40.7k|            auto write_array = [&]<class T>(T&& value) {
  401|  40.7k|               const auto n = int_from_compressed(ctx, it, end);
  402|  40.7k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 36, False: 40.7k]
  ------------------
  403|     36|                  return;
  404|     36|               }
  405|   787k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 747k, False: 40.4k]
  ------------------
  406|   747k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 210, False: 746k]
  ------------------
  407|    210|                     ctx.error = error_code::unexpected_end;
  408|    210|                     return;
  409|    210|                  }
  410|   746k|                  using V = std::remove_cvref_t<T>;
  411|   746k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   746k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   746k|                  it += sizeof(T);
  417|   746k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 734k, False: 12.4k]
  ------------------
  418|   734k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 734k]
  ------------------
  419|   734k|                  }
  420|   746k|               }
  421|  40.7k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clItEEDaSR_:
  400|  2.55k|            auto write_array = [&]<class T>(T&& value) {
  401|  2.55k|               const auto n = int_from_compressed(ctx, it, end);
  402|  2.55k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 58, False: 2.49k]
  ------------------
  403|     58|                  return;
  404|     58|               }
  405|   312k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 310k, False: 2.22k]
  ------------------
  406|   310k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 271, False: 310k]
  ------------------
  407|    271|                     ctx.error = error_code::unexpected_end;
  408|    271|                     return;
  409|    271|                  }
  410|   310k|                  using V = std::remove_cvref_t<T>;
  411|   310k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   310k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   310k|                  it += sizeof(T);
  417|   310k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 309k, False: 1.09k]
  ------------------
  418|   309k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 309k]
  ------------------
  419|   309k|                  }
  420|   310k|               }
  421|  2.49k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIjEEDaSR_:
  400|  1.87k|            auto write_array = [&]<class T>(T&& value) {
  401|  1.87k|               const auto n = int_from_compressed(ctx, it, end);
  402|  1.87k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 55, False: 1.81k]
  ------------------
  403|     55|                  return;
  404|     55|               }
  405|   716k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 715k, False: 1.61k]
  ------------------
  406|   715k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 206, False: 714k]
  ------------------
  407|    206|                     ctx.error = error_code::unexpected_end;
  408|    206|                     return;
  409|    206|                  }
  410|   714k|                  using V = std::remove_cvref_t<T>;
  411|   714k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   714k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   714k|                  it += sizeof(T);
  417|   714k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 714k, False: 447]
  ------------------
  418|   714k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 714k]
  ------------------
  419|   714k|                  }
  420|   714k|               }
  421|  1.81k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clImEEDaSR_:
  400|  14.1k|            auto write_array = [&]<class T>(T&& value) {
  401|  14.1k|               const auto n = int_from_compressed(ctx, it, end);
  402|  14.1k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 151, False: 14.0k]
  ------------------
  403|    151|                  return;
  404|    151|               }
  405|   138k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 124k, False: 13.7k]
  ------------------
  406|   124k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 262, False: 124k]
  ------------------
  407|    262|                     ctx.error = error_code::unexpected_end;
  408|    262|                     return;
  409|    262|                  }
  410|   124k|                  using V = std::remove_cvref_t<T>;
  411|   124k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   124k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   124k|                  it += sizeof(T);
  417|   124k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 123k, False: 406]
  ------------------
  418|   123k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 123k]
  ------------------
  419|   123k|                  }
  420|   124k|               }
  421|  14.0k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlvE_clEv:
  706|   718k|               auto write_complex = [&]() -> bool {
  707|   718k|                  if (!emit_char(ctx, '[', out, ix)) return false;
  ------------------
  |  Branch (707:23): [True: 0, False: 718k]
  ------------------
  708|   718k|                  beve_to_json_number<Opts>(number_tag, ctx, it, end, out, ix);
  709|   718k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (709:23): [True: 316, False: 717k]
  ------------------
  710|    316|                     return false;
  711|    316|                  }
  712|   717k|                  if (!emit_char(ctx, ',', out, ix)) return false;
  ------------------
  |  Branch (712:23): [True: 0, False: 717k]
  ------------------
  713|   717k|                  beve_to_json_number<Opts>(number_tag, ctx, it, end, out, ix);
  714|   717k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (714:23): [True: 140, False: 717k]
  ------------------
  715|    140|                     return false;
  716|    140|                  }
  717|   717k|                  return emit_char(ctx, ']', out, ix);
  718|   717k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlmE_clEm:
  721|  3.26k|               auto write_complex_array = [&](const size_t n) -> bool {
  722|  3.26k|                  if (!emit_char(ctx, '[', out, ix)) return false;
  ------------------
  |  Branch (722:23): [True: 0, False: 3.26k]
  ------------------
  723|   720k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (723:38): [True: 717k, False: 2.84k]
  ------------------
  724|   717k|                     if (!write_complex()) return false;
  ------------------
  |  Branch (724:26): [True: 425, False: 717k]
  ------------------
  725|   717k|                     if (i != n - 1) {
  ------------------
  |  Branch (725:26): [True: 716k, False: 846]
  ------------------
  726|   716k|                        if (!emit_char(ctx, ',', out, ix)) return false;
  ------------------
  |  Branch (726:29): [True: 0, False: 716k]
  ------------------
  727|   716k|                     }
  728|   717k|                  }
  729|  2.84k|                  return emit_char(ctx, ']', out, ix);
  730|  3.26k|               };

_ZN3glz11invalid_endITkNS_10is_contextENS_7contextERPKcS3_EEbRT_OT0_T1_:
   23|  65.6k|   {
   24|  65.6k|      if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (24:11): [True: 775, False: 64.8k]
  ------------------
   25|    775|         ctx.error = error_code::unexpected_end;
   26|    775|         return true;
   27|    775|      }
   28|  64.8k|      else [[likely]] {
   29|  64.8k|         return false;
   30|  64.8k|      }
   31|  65.6k|   }
_ZN3glz19int_from_compressedIRNS_7contextERPKcS4_EEmOT_OT0_T1_:
  256|  2.19M|   {
  257|  2.19M|      if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (257:11): [True: 1.27k, False: 2.19M]
  ------------------
  258|  1.27k|         ctx.error = error_code::unexpected_end;
  259|  1.27k|         return 0;
  260|  1.27k|      }
  261|       |
  262|  2.19M|      uint8_t header;
  263|  2.19M|      std::memcpy(&header, it, 1);
  264|  2.19M|      const uint8_t config = header & 0b000000'11;
  265|       |
  266|  2.19M|      if (size_t(end - it) < byte_count_lookup[config]) [[unlikely]] {
  ------------------
  |  Branch (266:11): [True: 1.31k, False: 2.19M]
  ------------------
  267|  1.31k|         ctx.error = error_code::unexpected_end;
  268|  1.31k|         return 0;
  269|  1.31k|      }
  270|       |
  271|  2.19M|      switch (config) {
  272|  2.12M|      case 0:
  ------------------
  |  Branch (272:7): [True: 2.12M, False: 68.8k]
  ------------------
  273|  2.12M|         ++it;
  274|  2.12M|         return header >> 2;
  275|  48.7k|      case 1: {
  ------------------
  |  Branch (275:7): [True: 48.7k, False: 2.14M]
  ------------------
  276|  48.7k|         uint16_t h;
  277|  48.7k|         std::memcpy(&h, it, 2);
  278|       |         if constexpr (std::endian::native == std::endian::big) {
  279|       |            h = std::byteswap(h);
  280|       |         }
  281|  48.7k|         it += 2;
  282|  48.7k|         return h >> 2;
  283|      0|      }
  284|  9.87k|      case 2: {
  ------------------
  |  Branch (284:7): [True: 9.87k, False: 2.18M]
  ------------------
  285|  9.87k|         uint32_t h;
  286|  9.87k|         std::memcpy(&h, it, 4);
  287|       |         if constexpr (std::endian::native == std::endian::big) {
  288|       |            h = std::byteswap(h);
  289|       |         }
  290|  9.87k|         it += 4;
  291|  9.87k|         return h >> 2;
  292|      0|      }
  293|  10.1k|      case 3: {
  ------------------
  |  Branch (293:7): [True: 10.1k, False: 2.18M]
  ------------------
  294|       |         // On 32-bit systems it's impossible to address more than 4 GBiB of memory, so we should verify first if we are
  295|       |         // running in 64-bit mode here
  296|  10.1k|         if constexpr (sizeof(size_t) > sizeof(uint32_t)) {
  297|  10.1k|            uint64_t h;
  298|  10.1k|            std::memcpy(&h, it, 8);
  299|       |            if constexpr (std::endian::native == std::endian::big) {
  300|       |               h = std::byteswap(h);
  301|       |            }
  302|  10.1k|            it += 8;
  303|  10.1k|            h = h >> 2;
  304|  10.1k|            static constexpr uint64_t safety_limit = 1ull << 48; // 2^48
  305|  10.1k|            if (h > safety_limit) [[unlikely]] {
  ------------------
  |  Branch (305:17): [True: 1.34k, False: 8.83k]
  ------------------
  306|  1.34k|               ctx.error = error_code::unexpected_end;
  307|  1.34k|               return 0;
  308|  1.34k|            }
  309|  8.83k|            return h;
  310|       |         }
  311|       |         else {
  312|       |            // 8-byte length encoding not supported on 32-bit systems
  313|       |            ctx.error = error_code::invalid_length;
  314|       |            return 0;
  315|       |         }
  316|  10.1k|      }
  317|  10.1k|      default:
  ------------------
  |  Branch (317:7): [True: 0, False: 2.19M]
  ------------------
  318|  10.1k|         ctx.error = error_code::syntax_error;
  319|  10.1k|         return 0;
  320|  2.19M|      }
  321|  2.19M|   }
_ZN3glz25typed_array_out_of_boundsITkNS_10is_contextENS_7contextERPKcS4_EEbRT_OT0_OT1_mmm:
   48|  25.1k|   {
   49|  25.1k|      const uint64_t available = uint64_t(end - it);
   50|  25.1k|      if constexpr (sizeof(size_t) > sizeof(uint32_t)) {
   51|  25.1k|         if (available < padding + count * element_size) [[unlikely]] {
  ------------------
  |  Branch (51:14): [True: 615, False: 24.5k]
  ------------------
   52|    615|            ctx.error = error_code::unexpected_end;
   53|    615|            return true;
   54|    615|         }
   55|       |      }
   56|       |      else {
   57|       |         if (available < padding || count > (available - padding) / element_size) [[unlikely]] {
   58|       |            ctx.error = error_code::unexpected_end;
   59|       |            return true;
   60|       |         }
   61|       |      }
   62|  24.5k|      return false;
   63|  25.1k|   }
_ZN3glz27packed_bool_padding_is_zeroEhm:
  363|   213k|   {
  364|   213k|      const size_t used_bits = count % 8;
  365|   213k|      return used_bits == 0 || (last_byte >> used_bits) == 0;
  ------------------
  |  Branch (365:14): [True: 15.3k, False: 198k]
  |  Branch (365:32): [True: 198k, False: 15]
  ------------------
  366|   213k|   }
_ZN3glz19skip_compressed_intITkNS_10is_contextERNS_7contextERPKcS4_EEvOT_OT0_T1_:
  324|  2.15k|   {
  325|  2.15k|      if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (325:11): [True: 2, False: 2.15k]
  ------------------
  326|      2|         return;
  327|      2|      }
  328|       |
  329|  2.15k|      uint8_t header;
  330|  2.15k|      std::memcpy(&header, it, 1);
  331|  2.15k|      const uint8_t config = header & 0b000000'11;
  332|       |
  333|  2.15k|      if (size_t(end - it) < byte_count_lookup[config]) [[unlikely]] {
  ------------------
  |  Branch (333:11): [True: 1, False: 2.15k]
  ------------------
  334|      1|         ctx.error = error_code::unexpected_end;
  335|      1|         return;
  336|      1|      }
  337|       |
  338|  2.15k|      switch (config) {
  339|  1.15k|      case 0:
  ------------------
  |  Branch (339:7): [True: 1.15k, False: 1.00k]
  ------------------
  340|  1.15k|         ++it;
  341|  1.15k|         return;
  342|    221|      case 1: {
  ------------------
  |  Branch (342:7): [True: 221, False: 1.92k]
  ------------------
  343|    221|         it += 2;
  344|    221|         return;
  345|      0|      }
  346|    544|      case 2: {
  ------------------
  |  Branch (346:7): [True: 544, False: 1.60k]
  ------------------
  347|    544|         it += 4;
  348|    544|         return;
  349|      0|      }
  350|    235|      case 3: {
  ------------------
  |  Branch (350:7): [True: 235, False: 1.91k]
  ------------------
  351|    235|         it += 8;
  352|    235|         return;
  353|      0|      }
  354|      0|      default:
  ------------------
  |  Branch (354:7): [True: 0, False: 2.15k]
  ------------------
  355|      0|         return;
  356|  2.15k|      }
  357|  2.15k|   }
_ZN3glz27read_aligned_complex_headerITkNS_10is_contextERNS_7contextERPKcS4_EEmOT_OT0_T1_h:
  382|  1.26k|   {
  383|  1.26k|      if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (383:11): [True: 2, False: 1.26k]
  ------------------
  384|      2|         return 0;
  385|      2|      }
  386|  1.26k|      if (uint8_t(*it) != tag::aligned_typed_array) [[unlikely]] {
  ------------------
  |  Branch (386:11): [True: 11, False: 1.25k]
  ------------------
  387|     11|         ctx.error = error_code::syntax_error;
  388|     11|         return 0;
  389|     11|      }
  390|  1.25k|      ++it;
  391|       |
  392|  1.25k|      if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (392:11): [True: 1, False: 1.25k]
  ------------------
  393|      1|         return 0;
  394|      1|      }
  395|       |      // The COMPLEX HEADER holds the numerical type (bits 3-4) and BYTE COUNT (bits 5-7) where a numeric
  396|       |      // typed array header does, so the two agree exactly when those bits match. Category 3 is not numeric.
  397|  1.25k|      constexpr uint8_t numeric_bits = 0b111'11'000;
  398|  1.25k|      const uint8_t expected_numeric_header = tag::typed_array | (complex_header & numeric_bits);
  399|  1.25k|      if (uint8_t(*it) != expected_numeric_header || ((complex_header >> 3) & 0b11) == 3) [[unlikely]] {
  ------------------
  |  Branch (399:11): [True: 12, False: 1.23k]
  |  Branch (399:54): [True: 1, False: 1.23k]
  ------------------
  400|     13|         ctx.error = error_code::syntax_error;
  401|     13|         return 0;
  402|     13|      }
  403|  1.23k|      ++it;
  404|       |
  405|  1.23k|      const size_t components = int_from_compressed(ctx, it, end);
  406|  1.23k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (406:11): [True: 34, False: 1.20k]
  ------------------
  407|     34|         return 0;
  408|     34|      }
  409|  1.20k|      if (components % 2 != 0) [[unlikely]] {
  ------------------
  |  Branch (409:11): [True: 30, False: 1.17k]
  ------------------
  410|     30|         ctx.error = error_code::syntax_error;
  411|     30|         return 0;
  412|     30|      }
  413|       |
  414|  1.17k|      if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (414:11): [True: 32, False: 1.14k]
  ------------------
  415|     32|         return 0;
  416|     32|      }
  417|  1.14k|      const uint8_t padding = uint8_t(*it);
  418|  1.14k|      ++it;
  419|  1.14k|      const size_t component_size = byte_count_lookup[complex_header >> 5];
  420|  1.14k|      if (padding >= component_size) [[unlikely]] {
  ------------------
  |  Branch (420:11): [True: 15, False: 1.12k]
  ------------------
  421|     15|         ctx.error = error_code::syntax_error;
  422|     15|         return 0;
  423|     15|      }
  424|  1.12k|      if (typed_array_out_of_bounds(ctx, it, end, components, component_size, padding)) {
  ------------------
  |  Branch (424:11): [True: 53, False: 1.07k]
  ------------------
  425|     53|         return 0;
  426|     53|      }
  427|  1.07k|      it += padding;
  428|  1.07k|      return components / 2;
  429|  1.12k|   }

_ZN3glz9read_beveITkNS_14read_supportedIL_ZNS_4BEVEEEEE9my_structRKNSt3__16vectorIcNS3_9allocatorIcEEEEEENS3_8expectedIT_NS_9error_ctxEEEOT0_:
 3329|  24.3k|   {
 3330|  24.3k|      T value{};
 3331|  24.3k|      const auto pe = read<opts{.format = BEVE}>(value, std::forward<Buffer>(buffer));
 3332|  24.3k|      if (pe) [[unlikely]] {
  ------------------
  |  Branch (3332:11): [True: 24.3k, False: 71]
  ------------------
 3333|  24.3k|         return unexpected(pe);
 3334|  24.3k|      }
 3335|     71|      return value;
 3336|  24.3k|   }
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEER9my_structTkNS_10is_contextERNS_7contextERPKcS9_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   57|  24.3k|      {
   58|       |         if constexpr (const_value_v<T>) {
   59|       |            if constexpr (check_error_on_const_read(Opts)) {
   60|       |               ctx.error = error_code::attempt_const_read;
   61|       |            }
   62|       |            else {
   63|       |               // do not read anything into the const value
   64|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   65|       |            }
   66|       |         }
   67|  24.3k|         else {
   68|  24.3k|            using V = std::remove_cvref_t<T>;
   69|  24.3k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   70|  24.3k|                                             end);
   71|  24.3k|         }
   72|  24.3k|      }
_ZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_:
 3018|  24.3k|      {
 3019|  24.3k|         constexpr uint8_t type = 0; // string key
 3020|  24.3k|         constexpr uint8_t header = tag::object | type;
 3021|       |
 3022|  24.3k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (3022:14): [True: 0, False: 24.3k]
  ------------------
 3023|      0|            return;
 3024|      0|         }
 3025|  24.3k|         const auto tag = uint8_t(*it);
 3026|  24.3k|         if (tag != header) [[unlikely]] {
  ------------------
  |  Branch (3026:14): [True: 19.5k, False: 4.87k]
  ------------------
 3027|  19.5k|            ctx.error = error_code::syntax_error;
 3028|  19.5k|            return;
 3029|  19.5k|         }
 3030|       |
 3031|  4.87k|         depth_guard guard{ctx};
 3032|  4.87k|         if (!guard) [[unlikely]] {
  ------------------
  |  Branch (3032:14): [True: 0, False: 4.87k]
  ------------------
 3033|      0|            return;
 3034|      0|         }
 3035|       |
 3036|  4.87k|         ++it;
 3037|       |
 3038|  4.87k|         static constexpr auto N = reflect<T>::size;
 3039|       |         if constexpr (N == 0) {
 3040|       |            (void)value;
 3041|       |         }
 3042|       |
 3043|  4.87k|         static constexpr bit_array<N> all_fields = [] {
 3044|  4.87k|            bit_array<N> arr{};
 3045|  4.87k|            for (size_t i = 0; i < N; ++i) {
 3046|  4.87k|               arr[i] = true;
 3047|  4.87k|            }
 3048|  4.87k|            return arr;
 3049|  4.87k|         }();
 3050|       |
 3051|  4.87k|         decltype(auto) fields = [&]() -> decltype(auto) {
 3052|  4.87k|            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3053|  4.87k|               return bit_array<N>{};
 3054|  4.87k|            }
 3055|  4.87k|            else {
 3056|  4.87k|               return nullptr;
 3057|  4.87k|            }
 3058|  4.87k|         }();
 3059|       |
 3060|  4.87k|         const auto n_keys = int_from_compressed(ctx, it, end);
 3061|  4.87k|         if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (3061:14): [True: 162, False: 4.71k]
  ------------------
 3062|    162|            return;
 3063|    162|         }
 3064|       |
 3065|  20.0k|         for (size_t i = 0; i < n_keys; ++i) {
  ------------------
  |  Branch (3065:29): [True: 15.3k, False: 4.71k]
  ------------------
 3066|       |            if constexpr (Opts.partial_read) {
 3067|       |               if ((all_fields & fields) == all_fields) {
 3068|       |                  return;
 3069|       |               }
 3070|       |            }
 3071|       |
 3072|  15.3k|            if constexpr (N > 0) {
 3073|  15.3k|               static constexpr auto HashInfo = hash_info<T>;
 3074|       |
 3075|  15.3k|               const auto n = int_from_compressed(ctx, it, end);
 3076|  15.3k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (3076:20): [True: 698, False: 14.6k]
  ------------------
 3077|    698|                  return;
 3078|    698|               }
 3079|  14.6k|               if (uint64_t(end - it) < n || it == end) [[unlikely]] {
  ------------------
  |  Branch (3079:20): [True: 459, False: 14.2k]
  |  Branch (3079:46): [True: 237, False: 13.9k]
  ------------------
 3080|    696|                  ctx.error = error_code::unexpected_end;
 3081|    696|                  return;
 3082|    696|               }
 3083|       |
 3084|       |               if constexpr (not Tag.sv().empty() && not has_member_with_name<T>(Tag.sv())) {
 3085|       |                  // Discriminator key injected by the variant reader: skip it (and its value) without
 3086|       |                  // consulting error_on_unknown_keys, while the alternative's real keys stay checked.
 3087|       |                  if (sv{it, n} == Tag.sv()) {
 3088|       |                     it += n;
 3089|       |                     skip_value<BEVE>::op<Opts>(ctx, it, end);
 3090|       |                     if (bool(ctx.error)) [[unlikely]] {
 3091|       |                        return;
 3092|       |                     }
 3093|       |                     continue;
 3094|       |                  }
 3095|       |               }
 3096|       |
 3097|  13.9k|               const auto index = decode_hash_with_size<BEVE, T, HashInfo, HashInfo.type>::op(it, end, n);
 3098|       |
 3099|  13.9k|               if (index < N) [[likely]] {
  ------------------
  |  Branch (3099:20): [True: 13.2k, False: 718]
  ------------------
 3100|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3101|       |                     fields[index] = true;
 3102|       |                  }
 3103|       |
 3104|  13.2k|                  const sv key{it, n};
 3105|  13.2k|                  it += n;
 3106|       |
 3107|  13.2k|                  visit<N>(
 3108|  13.2k|                     [&]<size_t I>() {
 3109|  13.2k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 3110|  13.2k|                        static constexpr auto Length = TargetKey.size();
 3111|  13.2k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
 3112|       |                           // An `else` branch rather than an early return, so a skipped field's reader is
 3113|       |                           // never instantiated -- see `skipped_by_meta`.
 3114|  13.2k|                           if constexpr (skipped_by_meta<T, I, operation::parse>) {
 3115|  13.2k|                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3116|  13.2k|                           }
 3117|  13.2k|                           else {
 3118|       |                              // Check for null value skipping on read
 3119|  13.2k|                              if constexpr (check_skip_null_members_on_read(Opts)) {
 3120|  13.2k|                                 if (invalid_end(ctx, it, end)) {
 3121|  13.2k|                                    return;
 3122|  13.2k|                                 }
 3123|  13.2k|                                 if (uint8_t(*it) == tag::null) {
 3124|  13.2k|                                    ++it; // Skip the null tag
 3125|  13.2k|                                    return;
 3126|  13.2k|                                 }
 3127|  13.2k|                              }
 3128|       |
 3129|  13.2k|                              if constexpr (reflectable<T>) {
 3130|  13.2k|                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3131|  13.2k|                              }
 3132|  13.2k|                              else {
 3133|  13.2k|                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3134|  13.2k|                              }
 3135|  13.2k|                           }
 3136|  13.2k|                        }
 3137|  13.2k|                        else {
 3138|  13.2k|                           if constexpr (Opts.error_on_unknown_keys) {
 3139|  13.2k|                              ctx.error = error_code::unknown_key;
 3140|  13.2k|                              return;
 3141|  13.2k|                           }
 3142|  13.2k|                           else {
 3143|  13.2k|                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3144|  13.2k|                              if (bool(ctx.error)) [[unlikely]]
 3145|  13.2k|                                 return;
 3146|  13.2k|                           }
 3147|  13.2k|                        }
 3148|  13.2k|                     },
 3149|  13.2k|                     index);
 3150|       |
 3151|  13.2k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (3151:23): [True: 2.53k, False: 10.7k]
  ------------------
 3152|  2.53k|                     return;
 3153|  2.53k|                  }
 3154|  13.2k|               }
 3155|    718|               else [[unlikely]] {
 3156|    718|                  if constexpr (Opts.error_on_unknown_keys) {
 3157|    718|                     ctx.error = error_code::unknown_key;
 3158|    718|                     return;
 3159|       |                  }
 3160|       |                  else {
 3161|       |                     it += n;
 3162|       |                     skip_value<BEVE>::op<Opts>(ctx, it, end);
 3163|       |                     if (bool(ctx.error)) [[unlikely]]
 3164|       |                        return;
 3165|       |                  }
 3166|    718|               }
 3167|       |            }
 3168|       |            else if constexpr (Opts.error_on_unknown_keys) {
 3169|       |               ctx.error = error_code::unknown_key;
 3170|       |               return;
 3171|       |            }
 3172|       |            else {
 3173|       |               skip_value<BEVE>::op<Opts>(ctx, it, end);
 3174|       |               if (bool(ctx.error)) [[unlikely]]
 3175|       |                  return;
 3176|       |            }
 3177|  15.3k|         }
 3178|       |
 3179|       |         if constexpr (Opts.error_on_missing_keys) {
 3180|       |            constexpr auto req_fields = required_fields<T, Opts>();
 3181|       |            if ((req_fields & fields) != req_fields) {
 3182|       |               for (size_t i = 0; i < N; ++i) {
 3183|       |                  if (not fields[i] && req_fields[i]) {
 3184|       |                     ctx.custom_error_message = reflect<T>::keys[i];
 3185|       |                     break;
 3186|       |                  }
 3187|       |               }
 3188|       |               ctx.error = error_code::missing_key;
 3189|       |               return;
 3190|       |            }
 3191|       |         }
 3192|  4.71k|      }
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlvE0_clEv:
 3051|  4.87k|         decltype(auto) fields = [&]() -> decltype(auto) {
 3052|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3053|       |               return bit_array<N>{};
 3054|       |            }
 3055|  4.87k|            else {
 3056|  4.87k|               return nullptr;
 3057|  4.87k|            }
 3058|  4.87k|         }();
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlTnmvE_clILm0EEEDav:
 3108|  2.56k|                     [&]<size_t I>() {
 3109|  2.56k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 3110|  2.56k|                        static constexpr auto Length = TargetKey.size();
 3111|  2.56k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
  ------------------
  |  Branch (3111:29): [True: 2.56k, False: 4]
  |  Branch (3111:46): [True: 2.56k, False: 0]
  ------------------
 3112|       |                           // An `else` branch rather than an early return, so a skipped field's reader is
 3113|       |                           // never instantiated -- see `skipped_by_meta`.
 3114|       |                           if constexpr (skipped_by_meta<T, I, operation::parse>) {
 3115|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3116|       |                           }
 3117|  2.56k|                           else {
 3118|       |                              // Check for null value skipping on read
 3119|       |                              if constexpr (check_skip_null_members_on_read(Opts)) {
 3120|       |                                 if (invalid_end(ctx, it, end)) {
 3121|       |                                    return;
 3122|       |                                 }
 3123|       |                                 if (uint8_t(*it) == tag::null) {
 3124|       |                                    ++it; // Skip the null tag
 3125|       |                                    return;
 3126|       |                                 }
 3127|       |                              }
 3128|       |
 3129|  2.56k|                              if constexpr (reflectable<T>) {
 3130|  2.56k|                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3131|       |                              }
 3132|       |                              else {
 3133|       |                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3134|       |                              }
 3135|  2.56k|                           }
 3136|  2.56k|                        }
 3137|      4|                        else {
 3138|      4|                           if constexpr (Opts.error_on_unknown_keys) {
 3139|      4|                              ctx.error = error_code::unknown_key;
 3140|      4|                              return;
 3141|       |                           }
 3142|       |                           else {
 3143|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3144|       |                              if (bool(ctx.error)) [[unlikely]]
 3145|       |                                 return;
 3146|       |                           }
 3147|      4|                        }
 3148|  2.56k|                     },
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   57|  2.56k|      {
   58|       |         if constexpr (const_value_v<T>) {
   59|       |            if constexpr (check_error_on_const_read(Opts)) {
   60|       |               ctx.error = error_code::attempt_const_read;
   61|       |            }
   62|       |            else {
   63|       |               // do not read anything into the const value
   64|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   65|       |            }
   66|       |         }
   67|  2.56k|         else {
   68|  2.56k|            using V = std::remove_cvref_t<T>;
   69|  2.56k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   70|  2.56k|                                             end);
   71|  2.56k|         }
   72|  2.56k|      }
_ZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qntcl15check_no_headerTL0__EEEvOT0_OT1_OT2_T3_:
  347|  2.56k|      {
  348|  2.56k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (348:14): [True: 6, False: 2.55k]
  ------------------
  349|      6|            return;
  350|      6|         }
  351|  2.55k|         const auto tag = uint8_t(*it);
  352|  2.55k|         ++it;
  353|  2.55k|         op<no_header_on<Opts>()>(value, tag, ctx, it, end);
  354|  2.55k|      }
_ZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_:
  221|  2.55k|      {
  222|  2.55k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (222:14): [True: 29, False: 2.52k]
  ------------------
  223|     29|            return;
  224|     29|         }
  225|       |
  226|  2.52k|         using V = std::decay_t<decltype(value)>;
  227|       |
  228|  2.52k|         constexpr auto is_volatile = std::is_volatile_v<std::remove_reference_t<decltype(value)>>;
  229|       |
  230|  2.52k|         if (tag != header) {
  ------------------
  |  Branch (230:14): [True: 2.19k, False: 335]
  ------------------
  231|  2.19k|            if constexpr (check_allow_conversions(Opts)) {
  232|  2.19k|               if constexpr (num_t<T>) {
  233|  2.19k|                  if ((tag & 0b00000111) != tag::number) {
  ------------------
  |  Branch (233:23): [True: 20, False: 2.17k]
  ------------------
  234|     20|                     ctx.error = error_code::syntax_error;
  235|     20|                     return;
  236|     20|                  }
  237|       |
  238|  2.17k|                  auto decode = [&](auto&& i) {
  239|  2.17k|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  240|  2.17k|                        ctx.error = error_code::unexpected_end;
  241|  2.17k|                        return;
  242|  2.17k|                     }
  243|  2.17k|                     using I = std::decay_t<decltype(i)>;
  244|  2.17k|                     std::memcpy(&i, it, sizeof(I));
  245|  2.17k|                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|  2.17k|                        byteswap_le(i);
  247|  2.17k|                     }
  248|  2.17k|                     value = static_cast<V>(i);
  249|  2.17k|                     it += sizeof(i);
  250|  2.17k|                  };
  251|       |
  252|  2.17k|                  switch (tag) {
  253|      7|                  case tag::f32: {
  ------------------
  |  Branch (253:19): [True: 7, False: 2.16k]
  ------------------
  254|      7|                     if constexpr (std::integral<V>) {
  255|       |                        // We do not allow cross conversions from floats to integral types
  256|      7|                        ctx.error = error_code::syntax_error;
  257|       |                     }
  258|       |                     else {
  259|       |                        static_assert(sizeof(float) == 4);
  260|       |                        // TODO: use float32_t in C++23
  261|       |                        decode(float{});
  262|       |                     }
  263|      7|                     return;
  264|      0|                  }
  265|      3|                  case tag::f64: {
  ------------------
  |  Branch (265:19): [True: 3, False: 2.16k]
  ------------------
  266|      3|                     if constexpr (std::integral<V>) {
  267|       |                        // We do not allow cross conversions from floats to integral types
  268|      3|                        ctx.error = error_code::syntax_error;
  269|       |                     }
  270|       |                     else {
  271|       |                        static_assert(sizeof(double) == 8);
  272|       |                        // TODO: use float64_t in C++23
  273|       |                        decode(double{});
  274|       |                     }
  275|      3|                     return;
  276|      0|                  }
  277|    454|                  case tag::i8: {
  ------------------
  |  Branch (277:19): [True: 454, False: 1.71k]
  ------------------
  278|    454|                     decode(int8_t{});
  279|    454|                     return;
  280|      0|                  }
  281|    235|                  case tag::i16: {
  ------------------
  |  Branch (281:19): [True: 235, False: 1.93k]
  ------------------
  282|    235|                     decode(int16_t{});
  283|    235|                     return;
  284|      0|                  }
  285|      0|                  case tag::i32: {
  ------------------
  |  Branch (285:19): [True: 0, False: 2.17k]
  ------------------
  286|      0|                     decode(int32_t{});
  287|      0|                     return;
  288|      0|                  }
  289|    257|                  case tag::i64: {
  ------------------
  |  Branch (289:19): [True: 257, False: 1.91k]
  ------------------
  290|    257|                     decode(int64_t{});
  291|    257|                     return;
  292|      0|                  }
  293|    382|                  case tag::u8: {
  ------------------
  |  Branch (293:19): [True: 382, False: 1.78k]
  ------------------
  294|    382|                     decode(uint8_t{});
  295|    382|                     return;
  296|      0|                  }
  297|    241|                  case tag::u16: {
  ------------------
  |  Branch (297:19): [True: 241, False: 1.92k]
  ------------------
  298|    241|                     decode(uint16_t{});
  299|    241|                     return;
  300|      0|                  }
  301|    303|                  case tag::u32: {
  ------------------
  |  Branch (301:19): [True: 303, False: 1.86k]
  ------------------
  302|    303|                     decode(uint32_t{});
  303|    303|                     return;
  304|      0|                  }
  305|    285|                  case tag::u64: {
  ------------------
  |  Branch (305:19): [True: 285, False: 1.88k]
  ------------------
  306|    285|                     decode(uint64_t{});
  307|    285|                     return;
  308|      0|                  }
  309|      3|                  default: {
  ------------------
  |  Branch (309:19): [True: 3, False: 2.16k]
  ------------------
  310|      3|                     ctx.error = error_code::syntax_error;
  311|      3|                     return;
  312|      0|                  }
  313|  2.17k|                  }
  314|  2.17k|               }
  315|       |            }
  316|       |            else {
  317|       |               ctx.error = error_code::syntax_error;
  318|       |               return;
  319|       |            }
  320|  2.19k|         }
  321|       |
  322|  2.52k|         if (size_t(end - it) < sizeof(V)) [[unlikely]] {
  ------------------
  |  Branch (322:14): [True: 7, False: 2.51k]
  ------------------
  323|      7|            ctx.error = error_code::unexpected_end;
  324|      7|            return;
  325|      7|         }
  326|       |
  327|       |         if constexpr (is_volatile) {
  328|       |            V temp;
  329|       |            std::memcpy(&temp, it, sizeof(V));
  330|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  331|       |               byteswap_le(temp);
  332|       |            }
  333|       |            value = temp;
  334|       |         }
  335|  2.51k|         else {
  336|  2.51k|            std::memcpy(&value, it, sizeof(V));
  337|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  338|       |               byteswap_le(value);
  339|       |            }
  340|  2.51k|         }
  341|  2.51k|         it += sizeof(V);
  342|  2.51k|      }
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIaEEDaSI_:
  238|    454|                  auto decode = [&](auto&& i) {
  239|    454|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 0, False: 454]
  ------------------
  240|      0|                        ctx.error = error_code::unexpected_end;
  241|      0|                        return;
  242|      0|                     }
  243|    454|                     using I = std::decay_t<decltype(i)>;
  244|    454|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    454|                     value = static_cast<V>(i);
  249|    454|                     it += sizeof(i);
  250|    454|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIsEEDaSI_:
  238|    235|                  auto decode = [&](auto&& i) {
  239|    235|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 3, False: 232]
  ------------------
  240|      3|                        ctx.error = error_code::unexpected_end;
  241|      3|                        return;
  242|      3|                     }
  243|    232|                     using I = std::decay_t<decltype(i)>;
  244|    232|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    232|                     value = static_cast<V>(i);
  249|    232|                     it += sizeof(i);
  250|    232|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIlEEDaSI_:
  238|    257|                  auto decode = [&](auto&& i) {
  239|    257|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 11, False: 246]
  ------------------
  240|     11|                        ctx.error = error_code::unexpected_end;
  241|     11|                        return;
  242|     11|                     }
  243|    246|                     using I = std::decay_t<decltype(i)>;
  244|    246|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    246|                     value = static_cast<V>(i);
  249|    246|                     it += sizeof(i);
  250|    246|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIhEEDaSI_:
  238|    382|                  auto decode = [&](auto&& i) {
  239|    382|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 0, False: 382]
  ------------------
  240|      0|                        ctx.error = error_code::unexpected_end;
  241|      0|                        return;
  242|      0|                     }
  243|    382|                     using I = std::decay_t<decltype(i)>;
  244|    382|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    382|                     value = static_cast<V>(i);
  249|    382|                     it += sizeof(i);
  250|    382|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clItEEDaSI_:
  238|    241|                  auto decode = [&](auto&& i) {
  239|    241|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 3, False: 238]
  ------------------
  240|      3|                        ctx.error = error_code::unexpected_end;
  241|      3|                        return;
  242|      3|                     }
  243|    238|                     using I = std::decay_t<decltype(i)>;
  244|    238|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    238|                     value = static_cast<V>(i);
  249|    238|                     it += sizeof(i);
  250|    238|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIjEEDaSI_:
  238|    303|                  auto decode = [&](auto&& i) {
  239|    303|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 5, False: 298]
  ------------------
  240|      5|                        ctx.error = error_code::unexpected_end;
  241|      5|                        return;
  242|      5|                     }
  243|    298|                     using I = std::decay_t<decltype(i)>;
  244|    298|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    298|                     value = static_cast<V>(i);
  249|    298|                     it += sizeof(i);
  250|    298|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clImEEDaSI_:
  238|    285|                  auto decode = [&](auto&& i) {
  239|    285|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 7, False: 278]
  ------------------
  240|      7|                        ctx.error = error_code::unexpected_end;
  241|      7|                        return;
  242|      7|                     }
  243|    278|                     using I = std::decay_t<decltype(i)>;
  244|    278|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    278|                     value = static_cast<V>(i);
  249|    278|                     it += sizeof(i);
  250|    278|                  };
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlTnmvE_clILm1EEEDav:
 3108|  2.90k|                     [&]<size_t I>() {
 3109|  2.90k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 3110|  2.90k|                        static constexpr auto Length = TargetKey.size();
 3111|  2.90k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
  ------------------
  |  Branch (3111:29): [True: 2.89k, False: 7]
  |  Branch (3111:46): [True: 2.89k, False: 0]
  ------------------
 3112|       |                           // An `else` branch rather than an early return, so a skipped field's reader is
 3113|       |                           // never instantiated -- see `skipped_by_meta`.
 3114|       |                           if constexpr (skipped_by_meta<T, I, operation::parse>) {
 3115|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3116|       |                           }
 3117|  2.89k|                           else {
 3118|       |                              // Check for null value skipping on read
 3119|       |                              if constexpr (check_skip_null_members_on_read(Opts)) {
 3120|       |                                 if (invalid_end(ctx, it, end)) {
 3121|       |                                    return;
 3122|       |                                 }
 3123|       |                                 if (uint8_t(*it) == tag::null) {
 3124|       |                                    ++it; // Skip the null tag
 3125|       |                                    return;
 3126|       |                                 }
 3127|       |                              }
 3128|       |
 3129|  2.89k|                              if constexpr (reflectable<T>) {
 3130|  2.89k|                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3131|       |                              }
 3132|       |                              else {
 3133|       |                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3134|       |                              }
 3135|  2.89k|                           }
 3136|  2.89k|                        }
 3137|      7|                        else {
 3138|      7|                           if constexpr (Opts.error_on_unknown_keys) {
 3139|      7|                              ctx.error = error_code::unknown_key;
 3140|      7|                              return;
 3141|       |                           }
 3142|       |                           else {
 3143|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3144|       |                              if (bool(ctx.error)) [[unlikely]]
 3145|       |                                 return;
 3146|       |                           }
 3147|      7|                        }
 3148|  2.90k|                     },
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   57|  2.89k|      {
   58|       |         if constexpr (const_value_v<T>) {
   59|       |            if constexpr (check_error_on_const_read(Opts)) {
   60|       |               ctx.error = error_code::attempt_const_read;
   61|       |            }
   62|       |            else {
   63|       |               // do not read anything into the const value
   64|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   65|       |            }
   66|       |         }
   67|  2.89k|         else {
   68|  2.89k|            using V = std::remove_cvref_t<T>;
   69|  2.89k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   70|  2.89k|                                             end);
   71|  2.89k|         }
   72|  2.89k|      }
_ZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qntcl15check_no_headerTL0__EEEvOT0_OT1_OT2_T3_:
  347|  2.89k|      {
  348|  2.89k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (348:14): [True: 6, False: 2.88k]
  ------------------
  349|      6|            return;
  350|      6|         }
  351|  2.88k|         const auto tag = uint8_t(*it);
  352|  2.88k|         ++it;
  353|  2.88k|         op<no_header_on<Opts>()>(value, tag, ctx, it, end);
  354|  2.88k|      }
_ZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_:
  221|  2.88k|      {
  222|  2.88k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (222:14): [True: 31, False: 2.85k]
  ------------------
  223|     31|            return;
  224|     31|         }
  225|       |
  226|  2.85k|         using V = std::decay_t<decltype(value)>;
  227|       |
  228|  2.85k|         constexpr auto is_volatile = std::is_volatile_v<std::remove_reference_t<decltype(value)>>;
  229|       |
  230|  2.85k|         if (tag != header) {
  ------------------
  |  Branch (230:14): [True: 2.63k, False: 225]
  ------------------
  231|  2.63k|            if constexpr (check_allow_conversions(Opts)) {
  232|  2.63k|               if constexpr (num_t<T>) {
  233|  2.63k|                  if ((tag & 0b00000111) != tag::number) {
  ------------------
  |  Branch (233:23): [True: 39, False: 2.59k]
  ------------------
  234|     39|                     ctx.error = error_code::syntax_error;
  235|     39|                     return;
  236|     39|                  }
  237|       |
  238|  2.59k|                  auto decode = [&](auto&& i) {
  239|  2.59k|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  240|  2.59k|                        ctx.error = error_code::unexpected_end;
  241|  2.59k|                        return;
  242|  2.59k|                     }
  243|  2.59k|                     using I = std::decay_t<decltype(i)>;
  244|  2.59k|                     std::memcpy(&i, it, sizeof(I));
  245|  2.59k|                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|  2.59k|                        byteswap_le(i);
  247|  2.59k|                     }
  248|  2.59k|                     value = static_cast<V>(i);
  249|  2.59k|                     it += sizeof(i);
  250|  2.59k|                  };
  251|       |
  252|  2.59k|                  switch (tag) {
  253|    315|                  case tag::f32: {
  ------------------
  |  Branch (253:19): [True: 315, False: 2.27k]
  ------------------
  254|       |                     if constexpr (std::integral<V>) {
  255|       |                        // We do not allow cross conversions from floats to integral types
  256|       |                        ctx.error = error_code::syntax_error;
  257|       |                     }
  258|    315|                     else {
  259|    315|                        static_assert(sizeof(float) == 4);
  260|       |                        // TODO: use float32_t in C++23
  261|    315|                        decode(float{});
  262|    315|                     }
  263|    315|                     return;
  264|      0|                  }
  265|      0|                  case tag::f64: {
  ------------------
  |  Branch (265:19): [True: 0, False: 2.59k]
  ------------------
  266|       |                     if constexpr (std::integral<V>) {
  267|       |                        // We do not allow cross conversions from floats to integral types
  268|       |                        ctx.error = error_code::syntax_error;
  269|       |                     }
  270|      0|                     else {
  271|      0|                        static_assert(sizeof(double) == 8);
  272|       |                        // TODO: use float64_t in C++23
  273|      0|                        decode(double{});
  274|      0|                     }
  275|      0|                     return;
  276|      0|                  }
  277|    410|                  case tag::i8: {
  ------------------
  |  Branch (277:19): [True: 410, False: 2.18k]
  ------------------
  278|    410|                     decode(int8_t{});
  279|    410|                     return;
  280|      0|                  }
  281|    267|                  case tag::i16: {
  ------------------
  |  Branch (281:19): [True: 267, False: 2.32k]
  ------------------
  282|    267|                     decode(int16_t{});
  283|    267|                     return;
  284|      0|                  }
  285|    223|                  case tag::i32: {
  ------------------
  |  Branch (285:19): [True: 223, False: 2.37k]
  ------------------
  286|    223|                     decode(int32_t{});
  287|    223|                     return;
  288|      0|                  }
  289|    295|                  case tag::i64: {
  ------------------
  |  Branch (289:19): [True: 295, False: 2.29k]
  ------------------
  290|    295|                     decode(int64_t{});
  291|    295|                     return;
  292|      0|                  }
  293|    321|                  case tag::u8: {
  ------------------
  |  Branch (293:19): [True: 321, False: 2.27k]
  ------------------
  294|    321|                     decode(uint8_t{});
  295|    321|                     return;
  296|      0|                  }
  297|    237|                  case tag::u16: {
  ------------------
  |  Branch (297:19): [True: 237, False: 2.35k]
  ------------------
  298|    237|                     decode(uint16_t{});
  299|    237|                     return;
  300|      0|                  }
  301|    213|                  case tag::u32: {
  ------------------
  |  Branch (301:19): [True: 213, False: 2.38k]
  ------------------
  302|    213|                     decode(uint32_t{});
  303|    213|                     return;
  304|      0|                  }
  305|    309|                  case tag::u64: {
  ------------------
  |  Branch (305:19): [True: 309, False: 2.28k]
  ------------------
  306|    309|                     decode(uint64_t{});
  307|    309|                     return;
  308|      0|                  }
  309|      3|                  default: {
  ------------------
  |  Branch (309:19): [True: 3, False: 2.59k]
  ------------------
  310|      3|                     ctx.error = error_code::syntax_error;
  311|      3|                     return;
  312|      0|                  }
  313|  2.59k|                  }
  314|  2.59k|               }
  315|       |            }
  316|       |            else {
  317|       |               ctx.error = error_code::syntax_error;
  318|       |               return;
  319|       |            }
  320|  2.63k|         }
  321|       |
  322|  2.85k|         if (size_t(end - it) < sizeof(V)) [[unlikely]] {
  ------------------
  |  Branch (322:14): [True: 7, False: 2.85k]
  ------------------
  323|      7|            ctx.error = error_code::unexpected_end;
  324|      7|            return;
  325|      7|         }
  326|       |
  327|       |         if constexpr (is_volatile) {
  328|       |            V temp;
  329|       |            std::memcpy(&temp, it, sizeof(V));
  330|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  331|       |               byteswap_le(temp);
  332|       |            }
  333|       |            value = temp;
  334|       |         }
  335|  2.85k|         else {
  336|  2.85k|            std::memcpy(&value, it, sizeof(V));
  337|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  338|       |               byteswap_le(value);
  339|       |            }
  340|  2.85k|         }
  341|  2.85k|         it += sizeof(V);
  342|  2.85k|      }
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIfEEDaSI_:
  238|    315|                  auto decode = [&](auto&& i) {
  239|    315|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 7, False: 308]
  ------------------
  240|      7|                        ctx.error = error_code::unexpected_end;
  241|      7|                        return;
  242|      7|                     }
  243|    308|                     using I = std::decay_t<decltype(i)>;
  244|    308|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    308|                     value = static_cast<V>(i);
  249|    308|                     it += sizeof(i);
  250|    308|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIaEEDaSI_:
  238|    410|                  auto decode = [&](auto&& i) {
  239|    410|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 0, False: 410]
  ------------------
  240|      0|                        ctx.error = error_code::unexpected_end;
  241|      0|                        return;
  242|      0|                     }
  243|    410|                     using I = std::decay_t<decltype(i)>;
  244|    410|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    410|                     value = static_cast<V>(i);
  249|    410|                     it += sizeof(i);
  250|    410|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIsEEDaSI_:
  238|    267|                  auto decode = [&](auto&& i) {
  239|    267|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 3, False: 264]
  ------------------
  240|      3|                        ctx.error = error_code::unexpected_end;
  241|      3|                        return;
  242|      3|                     }
  243|    264|                     using I = std::decay_t<decltype(i)>;
  244|    264|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    264|                     value = static_cast<V>(i);
  249|    264|                     it += sizeof(i);
  250|    264|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIiEEDaSI_:
  238|    223|                  auto decode = [&](auto&& i) {
  239|    223|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 7, False: 216]
  ------------------
  240|      7|                        ctx.error = error_code::unexpected_end;
  241|      7|                        return;
  242|      7|                     }
  243|    216|                     using I = std::decay_t<decltype(i)>;
  244|    216|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    216|                     value = static_cast<V>(i);
  249|    216|                     it += sizeof(i);
  250|    216|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIlEEDaSI_:
  238|    295|                  auto decode = [&](auto&& i) {
  239|    295|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 11, False: 284]
  ------------------
  240|     11|                        ctx.error = error_code::unexpected_end;
  241|     11|                        return;
  242|     11|                     }
  243|    284|                     using I = std::decay_t<decltype(i)>;
  244|    284|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    284|                     value = static_cast<V>(i);
  249|    284|                     it += sizeof(i);
  250|    284|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIhEEDaSI_:
  238|    321|                  auto decode = [&](auto&& i) {
  239|    321|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 0, False: 321]
  ------------------
  240|      0|                        ctx.error = error_code::unexpected_end;
  241|      0|                        return;
  242|      0|                     }
  243|    321|                     using I = std::decay_t<decltype(i)>;
  244|    321|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    321|                     value = static_cast<V>(i);
  249|    321|                     it += sizeof(i);
  250|    321|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clItEEDaSI_:
  238|    237|                  auto decode = [&](auto&& i) {
  239|    237|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 3, False: 234]
  ------------------
  240|      3|                        ctx.error = error_code::unexpected_end;
  241|      3|                        return;
  242|      3|                     }
  243|    234|                     using I = std::decay_t<decltype(i)>;
  244|    234|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    234|                     value = static_cast<V>(i);
  249|    234|                     it += sizeof(i);
  250|    234|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIjEEDaSI_:
  238|    213|                  auto decode = [&](auto&& i) {
  239|    213|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 5, False: 208]
  ------------------
  240|      5|                        ctx.error = error_code::unexpected_end;
  241|      5|                        return;
  242|      5|                     }
  243|    208|                     using I = std::decay_t<decltype(i)>;
  244|    208|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    208|                     value = static_cast<V>(i);
  249|    208|                     it += sizeof(i);
  250|    208|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clImEEDaSI_:
  238|    309|                  auto decode = [&](auto&& i) {
  239|    309|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 11, False: 298]
  ------------------
  240|     11|                        ctx.error = error_code::unexpected_end;
  241|     11|                        return;
  242|     11|                     }
  243|    298|                     using I = std::decay_t<decltype(i)>;
  244|    298|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    298|                     value = static_cast<V>(i);
  249|    298|                     it += sizeof(i);
  250|    298|                  };
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlTnmvE_clILm2EEEDav:
 3108|  2.28k|                     [&]<size_t I>() {
 3109|  2.28k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 3110|  2.28k|                        static constexpr auto Length = TargetKey.size();
 3111|  2.28k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
  ------------------
  |  Branch (3111:29): [True: 2.27k, False: 14]
  |  Branch (3111:46): [True: 2.19k, False: 76]
  ------------------
 3112|       |                           // An `else` branch rather than an early return, so a skipped field's reader is
 3113|       |                           // never instantiated -- see `skipped_by_meta`.
 3114|       |                           if constexpr (skipped_by_meta<T, I, operation::parse>) {
 3115|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3116|       |                           }
 3117|  2.19k|                           else {
 3118|       |                              // Check for null value skipping on read
 3119|       |                              if constexpr (check_skip_null_members_on_read(Opts)) {
 3120|       |                                 if (invalid_end(ctx, it, end)) {
 3121|       |                                    return;
 3122|       |                                 }
 3123|       |                                 if (uint8_t(*it) == tag::null) {
 3124|       |                                    ++it; // Skip the null tag
 3125|       |                                    return;
 3126|       |                                 }
 3127|       |                              }
 3128|       |
 3129|  2.19k|                              if constexpr (reflectable<T>) {
 3130|  2.19k|                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3131|       |                              }
 3132|       |                              else {
 3133|       |                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3134|       |                              }
 3135|  2.19k|                           }
 3136|  2.19k|                        }
 3137|     90|                        else {
 3138|     90|                           if constexpr (Opts.error_on_unknown_keys) {
 3139|     90|                              ctx.error = error_code::unknown_key;
 3140|     90|                              return;
 3141|       |                           }
 3142|       |                           else {
 3143|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3144|       |                              if (bool(ctx.error)) [[unlikely]]
 3145|       |                                 return;
 3146|       |                           }
 3147|     90|                        }
 3148|  2.28k|                     },
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEETkNS_10is_contextERNS_7contextERPKcSF_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   57|  2.19k|      {
   58|       |         if constexpr (const_value_v<T>) {
   59|       |            if constexpr (check_error_on_const_read(Opts)) {
   60|       |               ctx.error = error_code::attempt_const_read;
   61|       |            }
   62|       |            else {
   63|       |               // do not read anything into the const value
   64|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   65|       |            }
   66|       |         }
   67|  2.19k|         else {
   68|  2.19k|            using V = std::remove_cvref_t<T>;
   69|  2.19k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   70|  2.19k|                                             end);
   71|  2.19k|         }
   72|  2.19k|      }
_ZN3glz4fromILj1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSF_Qntcl15check_no_headerTL0__EEEvOT0_OT1_OT2_T3_:
 1518|  2.19k|      {
 1519|  2.19k|         constexpr uint8_t header = tag::string;
 1520|       |
 1521|  2.19k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (1521:14): [True: 3, False: 2.19k]
  ------------------
 1522|      3|            return;
 1523|      3|         }
 1524|  2.19k|         const auto tag = uint8_t(*it);
 1525|  2.19k|         if (tag != header) [[unlikely]] {
  ------------------
  |  Branch (1525:14): [True: 11, False: 2.18k]
  ------------------
 1526|     11|            ctx.error = error_code::syntax_error;
 1527|     11|            return;
 1528|     11|         }
 1529|       |
 1530|  2.18k|         ++it;
 1531|  2.18k|         const auto n = int_from_compressed(ctx, it, end);
 1532|  2.18k|         if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1532:14): [True: 148, False: 2.03k]
  ------------------
 1533|    148|            return;
 1534|    148|         }
 1535|  2.03k|         if (uint64_t(end - it) < n) [[unlikely]] {
  ------------------
  |  Branch (1535:14): [True: 157, False: 1.87k]
  ------------------
 1536|    157|            ctx.error = error_code::unexpected_end;
 1537|    157|            return;
 1538|    157|         }
 1539|       |         if constexpr (check_max_string_length(Opts) > 0) {
 1540|       |            if (n > check_max_string_length(Opts)) [[unlikely]] {
 1541|       |               ctx.error = error_code::invalid_length;
 1542|       |               return;
 1543|       |            }
 1544|       |         }
 1545|       |         if constexpr (has_runtime_max_string_length<std::decay_t<decltype(ctx)>>) {
 1546|       |            if (ctx.max_string_length > 0 && n > ctx.max_string_length) [[unlikely]] {
 1547|       |               ctx.error = error_code::invalid_length;
 1548|       |               return;
 1549|       |            }
 1550|       |         }
 1551|       |
 1552|  1.87k|         store(value, ctx, it, n);
 1553|  1.87k|         if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1553:14): [True: 0, False: 1.87k]
  ------------------
 1554|      0|            return;
 1555|      0|         }
 1556|  1.87k|         it += n;
 1557|  1.87k|      }
_ZN3glz4fromILj1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE5storeIRS7_TkNS_10is_contextERNS_7contextERPKcEEvOT_OT0_OT1_m:
 1458|  1.87k|      {
 1459|       |         if constexpr (string_view_t<T>) {
 1460|       |            value = {it, n};
 1461|       |         }
 1462|       |         else if constexpr (array_char_t<T>) {
 1463|       |            // Fixed-size std::array<char, N> cannot be resized, so the decoded payload must
 1464|       |            // fit within it. Any trailing bytes are zero-filled to keep the buffer
 1465|       |            // deterministic when a shorter payload is read into a larger array.
 1466|       |            if (n > value.size()) [[unlikely]] {
 1467|       |               ctx.error = error_code::syntax_error;
 1468|       |               return;
 1469|       |            }
 1470|       |            std::memcpy(value.data(), it, n);
 1471|       |            if (n < value.size()) {
 1472|       |               std::memset(value.data() + n, 0, value.size() - n);
 1473|       |            }
 1474|       |         }
 1475|  1.87k|         else {
 1476|  1.87k|            if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
  ------------------
  |  Branch (1476:17): [True: 0, False: 1.87k]
  ------------------
 1477|      0|               return;
 1478|      0|            }
 1479|  1.87k|            value.resize(n);
 1480|  1.87k|            std::memcpy(value.data(), it, n);
 1481|  1.87k|         }
 1482|  1.87k|      }
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlTnmvE_clILm3EEEDav:
 3108|  5.51k|                     [&]<size_t I>() {
 3109|  5.51k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 3110|  5.51k|                        static constexpr auto Length = TargetKey.size();
 3111|  5.51k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
  ------------------
  |  Branch (3111:29): [True: 5.51k, False: 5]
  |  Branch (3111:46): [True: 5.48k, False: 33]
  ------------------
 3112|       |                           // An `else` branch rather than an early return, so a skipped field's reader is
 3113|       |                           // never instantiated -- see `skipped_by_meta`.
 3114|       |                           if constexpr (skipped_by_meta<T, I, operation::parse>) {
 3115|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3116|       |                           }
 3117|  5.48k|                           else {
 3118|       |                              // Check for null value skipping on read
 3119|       |                              if constexpr (check_skip_null_members_on_read(Opts)) {
 3120|       |                                 if (invalid_end(ctx, it, end)) {
 3121|       |                                    return;
 3122|       |                                 }
 3123|       |                                 if (uint8_t(*it) == tag::null) {
 3124|       |                                    ++it; // Skip the null tag
 3125|       |                                    return;
 3126|       |                                 }
 3127|       |                              }
 3128|       |
 3129|  5.48k|                              if constexpr (reflectable<T>) {
 3130|  5.48k|                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3131|       |                              }
 3132|       |                              else {
 3133|       |                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3134|       |                              }
 3135|  5.48k|                           }
 3136|  5.48k|                        }
 3137|     38|                        else {
 3138|     38|                           if constexpr (Opts.error_on_unknown_keys) {
 3139|     38|                              ctx.error = error_code::unknown_key;
 3140|     38|                              return;
 3141|       |                           }
 3142|       |                           else {
 3143|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3144|       |                              if (bool(ctx.error)) [[unlikely]]
 3145|       |                                 return;
 3146|       |                           }
 3147|     38|                        }
 3148|  5.51k|                     },
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERNSt3__15arrayImLm3EEETkNS_10is_contextERNS_7contextERPKcSB_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   57|  5.48k|      {
   58|       |         if constexpr (const_value_v<T>) {
   59|       |            if constexpr (check_error_on_const_read(Opts)) {
   60|       |               ctx.error = error_code::attempt_const_read;
   61|       |            }
   62|       |            else {
   63|       |               // do not read anything into the const value
   64|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   65|       |            }
   66|       |         }
   67|  5.48k|         else {
   68|  5.48k|            using V = std::remove_cvref_t<T>;
   69|  5.48k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   70|  5.48k|                                             end);
   71|  5.48k|         }
   72|  5.48k|      }
_ZN3glz4fromILj1ENSt3__15arrayImLm3EEEE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERS3_TkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_:
 1906|  5.48k|      {
 1907|  5.48k|         using V = range_value_t<std::decay_t<T>>;
 1908|       |
 1909|  5.48k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (1909:14): [True: 2, False: 5.47k]
  ------------------
 1910|      2|            return;
 1911|      2|         }
 1912|  5.47k|         const auto tag = uint8_t(*it);
 1913|       |
 1914|       |         if constexpr (boolean_like<V>) {
 1915|       |            constexpr uint8_t type = uint8_t(3) << 3;
 1916|       |            constexpr uint8_t header = tag::typed_array | type;
 1917|       |
 1918|       |            if (tag != header) [[unlikely]] {
 1919|       |               ctx.error = error_code::syntax_error;
 1920|       |               return;
 1921|       |            }
 1922|       |
 1923|       |            ++it;
 1924|       |            std::conditional_t<Opts.partial_read, size_t, const size_t> n = int_from_compressed(ctx, it, end);
 1925|       |            if (bool(ctx.error)) [[unlikely]] {
 1926|       |               return;
 1927|       |            }
 1928|       |
 1929|       |            if constexpr (Opts.partial_read) {
 1930|       |               n = value.size();
 1931|       |            }
 1932|       |
 1933|       |            const auto num_bytes = (n + 7) / 8;
 1934|       |            if (uint64_t(end - it) < num_bytes) [[unlikely]] {
 1935|       |               ctx.error = error_code::invalid_length;
 1936|       |               return;
 1937|       |            }
 1938|       |            // A partial read takes a prefix of the array, so the bits after it are data, not padding
 1939|       |            if constexpr (not Opts.partial_read) {
 1940|       |               if (num_bytes && !packed_bool_padding_is_zero(uint8_t(*(it + (num_bytes - 1))), n)) [[unlikely]] {
 1941|       |                  ctx.error = error_code::syntax_error;
 1942|       |                  return;
 1943|       |               }
 1944|       |            }
 1945|       |            if constexpr (check_max_array_size(Opts) > 0) {
 1946|       |               if (n > check_max_array_size(Opts)) [[unlikely]] {
 1947|       |                  ctx.error = error_code::invalid_length;
 1948|       |                  return;
 1949|       |               }
 1950|       |            }
 1951|       |            if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 1952|       |               if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 1953|       |                  ctx.error = error_code::invalid_length;
 1954|       |                  return;
 1955|       |               }
 1956|       |            }
 1957|       |
 1958|       |            if constexpr (resizable<T>) {
 1959|       |               if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 1960|       |                  return;
 1961|       |               }
 1962|       |               value.resize(n);
 1963|       |
 1964|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 1965|       |                  value.shrink_to_fit();
 1966|       |               }
 1967|       |            }
 1968|       |            else {
 1969|       |               if (n > value.size()) {
 1970|       |                  ctx.error = error_code::syntax_error;
 1971|       |                  return;
 1972|       |               }
 1973|       |            }
 1974|       |
 1975|       |            for (size_t byte_i{}, i{}; byte_i < num_bytes; ++byte_i, ++it) {
 1976|       |               if (invalid_end(ctx, it, end)) {
 1977|       |                  return;
 1978|       |               }
 1979|       |               uint8_t byte;
 1980|       |               std::memcpy(&byte, it, 1);
 1981|       |               for (size_t bit_i = 0; bit_i < 8 && i < n; ++bit_i, ++i) {
 1982|       |                  value[i] = byte >> bit_i & uint8_t(1);
 1983|       |               }
 1984|       |            }
 1985|       |         }
 1986|  5.47k|         else if constexpr (beve_num_array_t<V>) {
 1987|       |            // NV is the arithmetic wire type: V for plain numbers, the rep for chrono
 1988|       |            // durations / count-based time points (which are bit-compatible with it).
 1989|  5.47k|            using NV = beve_num_array_value_t<V>;
 1990|  5.47k|            constexpr uint8_t type = std::floating_point<NV> ? 0 : (std::is_signed_v<NV> ? 0b000'01'000 : 0b000'10'000);
  ------------------
  |  Branch (1990:38): [Folded, False: 5.47k]
  |  Branch (1990:69): [Folded, False: 5.47k]
  ------------------
 1991|  5.47k|            constexpr uint8_t header = tag::typed_array | type | (byte_count<NV> << 5);
 1992|       |
 1993|  5.47k|            auto validate_and_resize = [&](size_t n) -> bool {
 1994|  5.47k|               if constexpr (check_max_array_size(Opts) > 0) {
 1995|  5.47k|                  if (n > check_max_array_size(Opts)) [[unlikely]] {
 1996|  5.47k|                     ctx.error = error_code::invalid_length;
 1997|  5.47k|                     return false;
 1998|  5.47k|                  }
 1999|  5.47k|               }
 2000|  5.47k|               if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 2001|  5.47k|                  if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 2002|  5.47k|                     ctx.error = error_code::invalid_length;
 2003|  5.47k|                     return false;
 2004|  5.47k|                  }
 2005|  5.47k|               }
 2006|       |
 2007|  5.47k|               if constexpr (resizable<T>) {
 2008|  5.47k|                  if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 2009|  5.47k|                     return false;
 2010|  5.47k|                  }
 2011|  5.47k|                  value.resize(n);
 2012|       |
 2013|  5.47k|                  if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2014|  5.47k|                     value.shrink_to_fit();
 2015|  5.47k|                  }
 2016|  5.47k|               }
 2017|  5.47k|               else {
 2018|  5.47k|                  if (n > value.size()) {
 2019|  5.47k|                     ctx.error = error_code::syntax_error;
 2020|  5.47k|                     return false;
 2021|  5.47k|                  }
 2022|  5.47k|               }
 2023|  5.47k|               return true;
 2024|  5.47k|            };
 2025|       |
 2026|  5.47k|            auto prepare = [&](const size_t element_size) -> size_t {
 2027|  5.47k|               ++it;
 2028|  5.47k|               if (invalid_end(ctx, it, end)) {
 2029|  5.47k|                  return 0;
 2030|  5.47k|               }
 2031|       |
 2032|  5.47k|               std::conditional_t<Opts.partial_read, size_t, const size_t> n = int_from_compressed(ctx, it, end);
 2033|  5.47k|               if (bool(ctx.error)) [[unlikely]] {
 2034|  5.47k|                  return 0;
 2035|  5.47k|               }
 2036|       |
 2037|  5.47k|               if constexpr (Opts.partial_read) {
 2038|  5.47k|                  n = value.size();
 2039|  5.47k|               }
 2040|       |
 2041|  5.47k|               if (typed_array_out_of_bounds(ctx, it, end, n, element_size)) return 0;
 2042|  5.47k|               if (!validate_and_resize(n)) {
 2043|  5.47k|                  return 0;
 2044|  5.47k|               }
 2045|       |
 2046|  5.47k|               return n;
 2047|  5.47k|            };
 2048|       |
 2049|  5.47k|            size_t n = 0;
 2050|       |
 2051|  5.47k|            if (tag == tag::aligned_typed_array) {
  ------------------
  |  Branch (2051:17): [True: 2.68k, False: 2.79k]
  ------------------
 2052|       |               // Aligned typed array: ALIGNED_HEADER | NUMERIC_HEADER | SIZE | PADDING_LENGTH | PADDING | DATA
 2053|  2.68k|               ++it; // skip aligned header byte
 2054|  2.68k|               if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (2054:20): [True: 3, False: 2.68k]
  ------------------
 2055|      3|                  return;
 2056|      3|               }
 2057|  2.68k|               const auto numeric_tag = uint8_t(*it);
 2058|       |               // Verify bits 0-2 are typed_array tag
 2059|  2.68k|               if ((numeric_tag & 0b00000'111) != tag::typed_array) [[unlikely]] {
  ------------------
  |  Branch (2059:20): [True: 15, False: 2.66k]
  ------------------
 2060|     15|                  ctx.error = error_code::syntax_error;
 2061|     15|                  return;
 2062|     15|               }
 2063|       |               // Verify it's a numeric type (category 0, 1, or 2, not 3)
 2064|  2.66k|               if (((numeric_tag >> 3) & 0b11) == 3) [[unlikely]] {
  ------------------
  |  Branch (2064:20): [True: 2, False: 2.66k]
  ------------------
 2065|      2|                  ctx.error = error_code::syntax_error;
 2066|      2|                  return;
 2067|      2|               }
 2068|       |
 2069|  2.66k|               if (numeric_tag != header) {
  ------------------
  |  Branch (2069:20): [True: 2.01k, False: 648]
  ------------------
 2070|  2.01k|                  if constexpr (check_allow_conversions(Opts)) {
 2071|  2.01k|                     const uint8_t elem_byte_count = byte_count_lookup[numeric_tag >> 5];
 2072|  2.01k|                     ++it; // skip numeric header
 2073|  2.01k|                     std::conditional_t<Opts.partial_read, size_t, const size_t> count =
 2074|  2.01k|                        int_from_compressed(ctx, it, end);
 2075|  2.01k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2075:26): [True: 132, False: 1.88k]
  ------------------
 2076|    132|                        return;
 2077|    132|                     }
 2078|       |                     if constexpr (Opts.partial_read) {
 2079|       |                        count = value.size();
 2080|       |                     }
 2081|       |
 2082|       |                     // Read padding length byte and skip padding
 2083|  1.88k|                     if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (2083:26): [True: 121, False: 1.76k]
  ------------------
 2084|    121|                        return;
 2085|    121|                     }
 2086|  1.76k|                     const uint8_t padding = uint8_t(*it);
 2087|  1.76k|                     ++it;
 2088|  1.76k|                     if (padding >= elem_byte_count) [[unlikely]] {
  ------------------
  |  Branch (2088:26): [True: 8, False: 1.75k]
  ------------------
 2089|      8|                        ctx.error = error_code::syntax_error;
 2090|      8|                        return;
 2091|      8|                     }
 2092|  1.75k|                     if (typed_array_out_of_bounds(ctx, it, end, count, elem_byte_count, padding)) return;
  ------------------
  |  Branch (2092:26): [True: 91, False: 1.66k]
  ------------------
 2093|  1.66k|                     it += padding;
 2094|       |
 2095|  1.66k|                     if (!validate_and_resize(count)) {
  ------------------
  |  Branch (2095:26): [True: 81, False: 1.58k]
  ------------------
 2096|     81|                        return;
 2097|     81|                     }
 2098|       |
 2099|  4.74k|                     for (auto&& x : value) {
  ------------------
  |  Branch (2099:36): [True: 4.74k, False: 1.58k]
  ------------------
 2100|  4.74k|                        const uint8_t number_tag = tag::number | (numeric_tag & 0b11111000);
 2101|  4.74k|                        parse<BEVE>::op<no_header_on<Opts>()>(x, number_tag, ctx, it, end);
 2102|  4.74k|                     }
 2103|  1.58k|                     return;
 2104|       |                  }
 2105|       |                  else {
 2106|       |                     ctx.error = error_code::syntax_error;
 2107|       |                     return;
 2108|       |                  }
 2109|  2.01k|               }
 2110|       |
 2111|      0|               ++it; // skip numeric header
 2112|  2.66k|               std::conditional_t<Opts.partial_read, size_t, const size_t> count = int_from_compressed(ctx, it, end);
 2113|  2.66k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2113:20): [True: 148, False: 2.51k]
  ------------------
 2114|    148|                  return;
 2115|    148|               }
 2116|       |               if constexpr (Opts.partial_read) {
 2117|       |                  count = value.size();
 2118|       |               }
 2119|       |
 2120|       |               // Read padding length byte and skip padding
 2121|  2.51k|               if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (2121:20): [True: 112, False: 2.40k]
  ------------------
 2122|    112|                  return;
 2123|    112|               }
 2124|  2.40k|               const uint8_t padding = uint8_t(*it);
 2125|  2.40k|               ++it;
 2126|  2.40k|               if (padding >= sizeof(V)) [[unlikely]] {
  ------------------
  |  Branch (2126:20): [True: 2, False: 2.40k]
  ------------------
 2127|      2|                  ctx.error = error_code::syntax_error;
 2128|      2|                  return;
 2129|      2|               }
 2130|       |
 2131|  2.40k|               if (typed_array_out_of_bounds(ctx, it, end, count, sizeof(V), padding)) return;
  ------------------
  |  Branch (2131:20): [True: 56, False: 2.34k]
  ------------------
 2132|  2.34k|               it += padding;
 2133|       |
 2134|  2.34k|               if (!validate_and_resize(count)) {
  ------------------
  |  Branch (2134:20): [True: 43, False: 2.30k]
  ------------------
 2135|     43|                  return;
 2136|     43|               }
 2137|  2.30k|               n = count;
 2138|  2.30k|            }
 2139|  2.79k|            else if (tag != header) {
  ------------------
  |  Branch (2139:22): [True: 1.79k, False: 1.00k]
  ------------------
 2140|  1.79k|               if constexpr (check_allow_conversions(Opts)) {
 2141|  1.79k|                  if (tag != header) [[unlikely]] {
  ------------------
  |  Branch (2141:23): [True: 1.79k, False: 0]
  ------------------
 2142|  1.79k|                     if constexpr (check_allow_conversions(Opts)) {
 2143|  1.79k|                        if ((tag & 0b00000111) != tag::typed_array) {
  ------------------
  |  Branch (2143:29): [True: 20, False: 1.77k]
  ------------------
 2144|     20|                           ctx.error = error_code::syntax_error;
 2145|     20|                           return;
 2146|     20|                        }
 2147|       |
 2148|  1.77k|                        const uint8_t byte_count = byte_count_lookup[tag >> 5];
 2149|  1.77k|                        prepare(byte_count);
 2150|  1.77k|                        if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2150:29): [True: 361, False: 1.41k]
  ------------------
 2151|    361|                           return;
 2152|    361|                        }
 2153|       |
 2154|  4.23k|                        for (auto&& x : value) {
  ------------------
  |  Branch (2154:39): [True: 4.23k, False: 1.41k]
  ------------------
 2155|  4.23k|                           const uint8_t number_tag = tag::number | (tag & 0b11111000);
 2156|  4.23k|                           parse<BEVE>::op<no_header_on<Opts>()>(x, number_tag, ctx, it, end);
 2157|  4.23k|                        }
 2158|  1.41k|                        return;
 2159|       |                     }
 2160|       |                     else {
 2161|       |                        ctx.error = error_code::syntax_error;
 2162|       |                        return;
 2163|       |                     }
 2164|  1.79k|                  }
 2165|       |               }
 2166|       |               else {
 2167|       |                  ctx.error = error_code::syntax_error;
 2168|       |                  return;
 2169|       |               }
 2170|  1.79k|            }
 2171|  1.00k|            else {
 2172|  1.00k|               n = prepare(sizeof(V));
 2173|  1.00k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2173:20): [True: 292, False: 708]
  ------------------
 2174|    292|                  return;
 2175|    292|               }
 2176|  1.00k|            }
 2177|       |
 2178|  4.80k|            if constexpr (contiguous<T>) {
 2179|  4.80k|               constexpr auto is_volatile =
 2180|  4.80k|                  std::is_volatile_v<std::remove_reference_t<std::remove_pointer_t<decltype(value.data())>>>;
 2181|       |
 2182|       |               if constexpr (is_volatile) {
 2183|       |                  for (size_t i = 0; i < n; ++i) {
 2184|       |                     if (size_t(end - it) < sizeof(V)) [[unlikely]] {
 2185|       |                        ctx.error = error_code::unexpected_end;
 2186|       |                        return;
 2187|       |                     }
 2188|       |
 2189|       |                     NV temp;
 2190|       |                     std::memcpy(&temp, it, sizeof(NV));
 2191|       |                     if constexpr (std::endian::native == std::endian::big) {
 2192|       |                        byteswap_le(temp);
 2193|       |                     }
 2194|       |                     value[i] = beve_num_array_construct<V>(temp);
 2195|       |                     it += sizeof(NV);
 2196|       |                  }
 2197|       |               }
 2198|       |               else if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
 2199|       |                  // On big endian, read and swap each element (through the rep so a chrono
 2200|       |                  // element is byteswapped as its underlying number).
 2201|       |                  if (typed_array_out_of_bounds(ctx, it, end, n, sizeof(V))) return;
 2202|       |                  for (size_t i = 0; i < n; ++i) {
 2203|       |                     NV temp;
 2204|       |                     std::memcpy(&temp, it, sizeof(NV));
 2205|       |                     byteswap_le(temp);
 2206|       |                     value[i] = beve_num_array_construct<V>(temp);
 2207|       |                     it += sizeof(NV);
 2208|       |                  }
 2209|       |               }
 2210|  4.80k|               else {
 2211|       |                  // Little endian or single-byte: bulk memcpy. A chrono element is
 2212|       |                  // bit-identical to its rep, so the raw wire bytes populate it directly.
 2213|  4.80k|                  if (typed_array_out_of_bounds(ctx, it, end, n, sizeof(V))) return;
  ------------------
  |  Branch (2213:23): [True: 0, False: 4.80k]
  ------------------
 2214|  4.80k|                  if (n) {
  ------------------
  |  Branch (2214:23): [True: 140, False: 4.66k]
  ------------------
 2215|    140|                     std::memcpy(value.data(), it, n * sizeof(V));
 2216|    140|                     it += n * sizeof(V);
 2217|    140|                  }
 2218|  4.80k|               }
 2219|       |            }
 2220|       |            else {
 2221|       |               for (auto&& x : value) {
 2222|       |                  if (size_t(end - it) < sizeof(V)) [[unlikely]] {
 2223|       |                     ctx.error = error_code::unexpected_end;
 2224|       |                     return;
 2225|       |                  }
 2226|       |
 2227|       |                  NV temp;
 2228|       |                  std::memcpy(&temp, it, sizeof(NV));
 2229|       |                  if constexpr (std::endian::native == std::endian::big) {
 2230|       |                     byteswap_le(temp);
 2231|       |                  }
 2232|       |                  x = beve_num_array_construct<V>(temp);
 2233|       |                  it += sizeof(NV);
 2234|       |               }
 2235|       |            }
 2236|       |         }
 2237|       |         else if constexpr (str_t<V>) {
 2238|       |            constexpr uint8_t type = uint8_t(3) << 3;
 2239|       |            constexpr uint8_t string_indicator = uint8_t(1) << 5;
 2240|       |            constexpr uint8_t header = tag::typed_array | type | string_indicator;
 2241|       |
 2242|       |            if (tag != header) [[unlikely]] {
 2243|       |               ctx.error = error_code::syntax_error;
 2244|       |               return;
 2245|       |            }
 2246|       |
 2247|       |            ++it;
 2248|       |            std::conditional_t<Opts.partial_read, size_t, const size_t> n = int_from_compressed(ctx, it, end);
 2249|       |            if (bool(ctx.error)) [[unlikely]] {
 2250|       |               return;
 2251|       |            }
 2252|       |
 2253|       |            if constexpr (Opts.partial_read) {
 2254|       |               n = value.size();
 2255|       |            }
 2256|       |
 2257|       |            // Each string needs at least 1 byte for length header
 2258|       |            if (uint64_t(end - it) < n) [[unlikely]] {
 2259|       |               ctx.error = error_code::invalid_length;
 2260|       |               return;
 2261|       |            }
 2262|       |            if constexpr (check_max_array_size(Opts) > 0) {
 2263|       |               if (n > check_max_array_size(Opts)) [[unlikely]] {
 2264|       |                  ctx.error = error_code::invalid_length;
 2265|       |                  return;
 2266|       |               }
 2267|       |            }
 2268|       |            if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 2269|       |               if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 2270|       |                  ctx.error = error_code::invalid_length;
 2271|       |                  return;
 2272|       |               }
 2273|       |            }
 2274|       |
 2275|       |            if constexpr (resizable<T>) {
 2276|       |               if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 2277|       |                  return;
 2278|       |               }
 2279|       |               value.resize(n);
 2280|       |
 2281|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2282|       |                  value.shrink_to_fit();
 2283|       |               }
 2284|       |            }
 2285|       |
 2286|       |            for (auto&& x : value) {
 2287|       |               const auto length = int_from_compressed(ctx, it, end);
 2288|       |               if (bool(ctx.error)) [[unlikely]] {
 2289|       |                  return;
 2290|       |               }
 2291|       |               if (uint64_t(end - it) < length) [[unlikely]] {
 2292|       |                  ctx.error = error_code::unexpected_end;
 2293|       |                  return;
 2294|       |               }
 2295|       |               if constexpr (check_max_string_length(Opts) > 0) {
 2296|       |                  if (length > check_max_string_length(Opts)) [[unlikely]] {
 2297|       |                     ctx.error = error_code::invalid_length;
 2298|       |                     return;
 2299|       |                  }
 2300|       |               }
 2301|       |               if constexpr (has_runtime_max_string_length<std::decay_t<decltype(ctx)>>) {
 2302|       |                  if (ctx.max_string_length > 0 && length > ctx.max_string_length) [[unlikely]] {
 2303|       |                     ctx.error = error_code::invalid_length;
 2304|       |                     return;
 2305|       |                  }
 2306|       |               }
 2307|       |
 2308|       |               x.resize(length);
 2309|       |
 2310|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<decltype(x)>) {
 2311|       |                  x.shrink_to_fit();
 2312|       |               }
 2313|       |
 2314|       |               std::memcpy(x.data(), it, length);
 2315|       |               it += length;
 2316|       |            }
 2317|       |         }
 2318|       |         else if constexpr (complex_t<V>) {
 2319|       |            constexpr uint8_t header = tag::extensions | 0b00011'000;
 2320|       |            if (tag != header) [[unlikely]] {
 2321|       |               ctx.error = error_code::syntax_error;
 2322|       |               return;
 2323|       |            }
 2324|       |            ++it;
 2325|       |
 2326|       |            using X = typename V::value_type;
 2327|       |            // Accepts complex arrays (sub-type 1) and aligned complex arrays (sub-type 2), whose DATA is laid out
 2328|       |            // identically once the header has been read
 2329|       |            std::conditional_t<Opts.partial_read, size_t, const size_t> n =
 2330|       |               detail::read_beve_complex_array_header<X>(ctx, it, end);
 2331|       |            if (bool(ctx.error)) [[unlikely]] {
 2332|       |               return;
 2333|       |            }
 2334|       |
 2335|       |            if constexpr (Opts.partial_read) {
 2336|       |               n = value.size();
 2337|       |            }
 2338|       |
 2339|       |            if (typed_array_out_of_bounds(ctx, it, end, n, sizeof(V))) return;
 2340|       |            if constexpr (check_max_array_size(Opts) > 0) {
 2341|       |               if (n > check_max_array_size(Opts)) [[unlikely]] {
 2342|       |                  ctx.error = error_code::invalid_length;
 2343|       |                  return;
 2344|       |               }
 2345|       |            }
 2346|       |            if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 2347|       |               if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 2348|       |                  ctx.error = error_code::invalid_length;
 2349|       |                  return;
 2350|       |               }
 2351|       |            }
 2352|       |
 2353|       |            if constexpr (resizable<T>) {
 2354|       |               if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 2355|       |                  return;
 2356|       |               }
 2357|       |               value.resize(n);
 2358|       |
 2359|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2360|       |                  value.shrink_to_fit();
 2361|       |               }
 2362|       |            }
 2363|       |            else {
 2364|       |               if (n > value.size()) {
 2365|       |                  ctx.error = error_code::syntax_error;
 2366|       |                  return;
 2367|       |               }
 2368|       |            }
 2369|       |
 2370|       |            if constexpr (contiguous<T>) {
 2371|       |               if constexpr (std::endian::native == std::endian::big && sizeof(X) > 1) {
 2372|       |                  // On big endian, read and swap each complex element's components
 2373|       |                  for (size_t i = 0; i < n; ++i) {
 2374|       |                     std::memcpy(&value[i], it, sizeof(V));
 2375|       |                     X real_part = value[i].real();
 2376|       |                     X imag_part = value[i].imag();
 2377|       |                     byteswap_le(real_part);
 2378|       |                     byteswap_le(imag_part);
 2379|       |                     value[i] = V(real_part, imag_part);
 2380|       |                     it += sizeof(V);
 2381|       |                  }
 2382|       |               }
 2383|       |               else {
 2384|       |                  // Little endian or single-byte: bulk memcpy
 2385|       |                  if (n) {
 2386|       |                     std::memcpy(value.data(), it, n * sizeof(V));
 2387|       |                     it += n * sizeof(V);
 2388|       |                  }
 2389|       |               }
 2390|       |            }
 2391|       |            else {
 2392|       |               for (auto&& x : value) {
 2393|       |                  std::memcpy(&x, it, sizeof(V));
 2394|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(X) > 1) {
 2395|       |                     X real_part = x.real();
 2396|       |                     X imag_part = x.imag();
 2397|       |                     byteswap_le(real_part);
 2398|       |                     byteswap_le(imag_part);
 2399|       |                     x = V(real_part, imag_part);
 2400|       |                  }
 2401|       |                  it += sizeof(V);
 2402|       |               }
 2403|       |            }
 2404|       |         }
 2405|       |         else {
 2406|       |            if ((tag & 0b00000'111) != tag::generic_array) [[unlikely]] {
 2407|       |               ctx.error = error_code::syntax_error;
 2408|       |               return;
 2409|       |            }
 2410|       |
 2411|       |            depth_guard guard{ctx};
 2412|       |            if (!guard) [[unlikely]] {
 2413|       |               return;
 2414|       |            }
 2415|       |
 2416|       |            ++it;
 2417|       |            std::conditional_t<check_partial_read(Opts), size_t, const size_t> n = int_from_compressed(ctx, it, end);
 2418|       |            if (bool(ctx.error)) [[unlikely]] {
 2419|       |               return;
 2420|       |            }
 2421|       |
 2422|       |            if constexpr (Opts.partial_read) {
 2423|       |               n = value.size();
 2424|       |            }
 2425|       |
 2426|       |            // Each element needs at least 1 byte for its tag
 2427|       |            if (uint64_t(end - it) < n) [[unlikely]] {
 2428|       |               ctx.error = error_code::invalid_length;
 2429|       |               return;
 2430|       |            }
 2431|       |            if constexpr (check_max_array_size(Opts) > 0) {
 2432|       |               if (n > check_max_array_size(Opts)) [[unlikely]] {
 2433|       |                  ctx.error = error_code::invalid_length;
 2434|       |                  return;
 2435|       |               }
 2436|       |            }
 2437|       |            if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 2438|       |               if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 2439|       |                  ctx.error = error_code::invalid_length;
 2440|       |                  return;
 2441|       |               }
 2442|       |            }
 2443|       |
 2444|       |            if constexpr (resizable<T>) {
 2445|       |               if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 2446|       |                  return;
 2447|       |               }
 2448|       |               value.resize(n);
 2449|       |
 2450|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2451|       |                  value.shrink_to_fit();
 2452|       |               }
 2453|       |            }
 2454|       |
 2455|       |            for (auto&& item : value) {
 2456|       |               parse<BEVE>::op<Opts>(item, ctx, it, end);
 2457|       |            }
 2458|       |         }
 2459|  5.47k|      }
_ZZN3glz4fromILj1ENSt3__15arrayImLm3EEEE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERS3_TkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_ENKUlmE_clEm:
 1993|  4.15k|            auto validate_and_resize = [&](size_t n) -> bool {
 1994|       |               if constexpr (check_max_array_size(Opts) > 0) {
 1995|       |                  if (n > check_max_array_size(Opts)) [[unlikely]] {
 1996|       |                     ctx.error = error_code::invalid_length;
 1997|       |                     return false;
 1998|       |                  }
 1999|       |               }
 2000|       |               if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 2001|       |                  if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 2002|       |                     ctx.error = error_code::invalid_length;
 2003|       |                     return false;
 2004|       |                  }
 2005|       |               }
 2006|       |
 2007|       |               if constexpr (resizable<T>) {
 2008|       |                  if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 2009|       |                     return false;
 2010|       |                  }
 2011|       |                  value.resize(n);
 2012|       |
 2013|       |                  if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2014|       |                     value.shrink_to_fit();
 2015|       |                  }
 2016|       |               }
 2017|  4.15k|               else {
 2018|  4.15k|                  if (n > value.size()) {
  ------------------
  |  Branch (2018:23): [True: 161, False: 3.99k]
  ------------------
 2019|    161|                     ctx.error = error_code::syntax_error;
 2020|    161|                     return false;
 2021|    161|                  }
 2022|  4.15k|               }
 2023|  3.99k|               return true;
 2024|  4.15k|            };
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmRKhTkNS_10is_contextERNS_7contextERPKcSA_Qcl15check_no_headerT_EEEvOT0_OT1_OT2_OT3_T4_:
   37|  8.98k|      {
   38|       |         if constexpr (const_value_v<T>) {
   39|       |            if constexpr (check_error_on_const_read(Opts)) {
   40|       |               ctx.error = error_code::attempt_const_read;
   41|       |            }
   42|       |            else {
   43|       |               // do not read anything into the const value
   44|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   45|       |            }
   46|       |         }
   47|  8.98k|         else {
   48|  8.98k|            using V = std::remove_cvref_t<T>;
   49|  8.98k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Tag>(tag), std::forward<Ctx>(ctx),
   50|  8.98k|                                             std::forward<It0>(it), end);
   51|  8.98k|         }
   52|  8.98k|      }
_ZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_:
  221|  8.98k|      {
  222|  8.98k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (222:14): [True: 414, False: 8.57k]
  ------------------
  223|    414|            return;
  224|    414|         }
  225|       |
  226|  8.57k|         using V = std::decay_t<decltype(value)>;
  227|       |
  228|  8.57k|         constexpr auto is_volatile = std::is_volatile_v<std::remove_reference_t<decltype(value)>>;
  229|       |
  230|  8.57k|         if (tag != header) {
  ------------------
  |  Branch (230:14): [True: 8.57k, False: 0]
  ------------------
  231|  8.57k|            if constexpr (check_allow_conversions(Opts)) {
  232|  8.57k|               if constexpr (num_t<T>) {
  233|  8.57k|                  if ((tag & 0b00000111) != tag::number) {
  ------------------
  |  Branch (233:23): [True: 0, False: 8.57k]
  ------------------
  234|      0|                     ctx.error = error_code::syntax_error;
  235|      0|                     return;
  236|      0|                  }
  237|       |
  238|  8.57k|                  auto decode = [&](auto&& i) {
  239|  8.57k|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  240|  8.57k|                        ctx.error = error_code::unexpected_end;
  241|  8.57k|                        return;
  242|  8.57k|                     }
  243|  8.57k|                     using I = std::decay_t<decltype(i)>;
  244|  8.57k|                     std::memcpy(&i, it, sizeof(I));
  245|  8.57k|                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|  8.57k|                        byteswap_le(i);
  247|  8.57k|                     }
  248|  8.57k|                     value = static_cast<V>(i);
  249|  8.57k|                     it += sizeof(i);
  250|  8.57k|                  };
  251|       |
  252|  8.57k|                  switch (tag) {
  253|     18|                  case tag::f32: {
  ------------------
  |  Branch (253:19): [True: 18, False: 8.55k]
  ------------------
  254|     18|                     if constexpr (std::integral<V>) {
  255|       |                        // We do not allow cross conversions from floats to integral types
  256|     18|                        ctx.error = error_code::syntax_error;
  257|       |                     }
  258|       |                     else {
  259|       |                        static_assert(sizeof(float) == 4);
  260|       |                        // TODO: use float32_t in C++23
  261|       |                        decode(float{});
  262|       |                     }
  263|     18|                     return;
  264|      0|                  }
  265|     21|                  case tag::f64: {
  ------------------
  |  Branch (265:19): [True: 21, False: 8.55k]
  ------------------
  266|     21|                     if constexpr (std::integral<V>) {
  267|       |                        // We do not allow cross conversions from floats to integral types
  268|     21|                        ctx.error = error_code::syntax_error;
  269|       |                     }
  270|       |                     else {
  271|       |                        static_assert(sizeof(double) == 8);
  272|       |                        // TODO: use float64_t in C++23
  273|       |                        decode(double{});
  274|       |                     }
  275|     21|                     return;
  276|      0|                  }
  277|  2.71k|                  case tag::i8: {
  ------------------
  |  Branch (277:19): [True: 2.71k, False: 5.86k]
  ------------------
  278|  2.71k|                     decode(int8_t{});
  279|  2.71k|                     return;
  280|      0|                  }
  281|  1.66k|                  case tag::i16: {
  ------------------
  |  Branch (281:19): [True: 1.66k, False: 6.90k]
  ------------------
  282|  1.66k|                     decode(int16_t{});
  283|  1.66k|                     return;
  284|      0|                  }
  285|    787|                  case tag::i32: {
  ------------------
  |  Branch (285:19): [True: 787, False: 7.78k]
  ------------------
  286|    787|                     decode(int32_t{});
  287|    787|                     return;
  288|      0|                  }
  289|    472|                  case tag::i64: {
  ------------------
  |  Branch (289:19): [True: 472, False: 8.10k]
  ------------------
  290|    472|                     decode(int64_t{});
  291|    472|                     return;
  292|      0|                  }
  293|  1.71k|                  case tag::u8: {
  ------------------
  |  Branch (293:19): [True: 1.71k, False: 6.86k]
  ------------------
  294|  1.71k|                     decode(uint8_t{});
  295|  1.71k|                     return;
  296|      0|                  }
  297|    563|                  case tag::u16: {
  ------------------
  |  Branch (297:19): [True: 563, False: 8.01k]
  ------------------
  298|    563|                     decode(uint16_t{});
  299|    563|                     return;
  300|      0|                  }
  301|    598|                  case tag::u32: {
  ------------------
  |  Branch (301:19): [True: 598, False: 7.97k]
  ------------------
  302|    598|                     decode(uint32_t{});
  303|    598|                     return;
  304|      0|                  }
  305|      0|                  case tag::u64: {
  ------------------
  |  Branch (305:19): [True: 0, False: 8.57k]
  ------------------
  306|      0|                     decode(uint64_t{});
  307|      0|                     return;
  308|      0|                  }
  309|     27|                  default: {
  ------------------
  |  Branch (309:19): [True: 27, False: 8.54k]
  ------------------
  310|     27|                     ctx.error = error_code::syntax_error;
  311|     27|                     return;
  312|      0|                  }
  313|  8.57k|                  }
  314|  8.57k|               }
  315|       |            }
  316|       |            else {
  317|       |               ctx.error = error_code::syntax_error;
  318|       |               return;
  319|       |            }
  320|  8.57k|         }
  321|       |
  322|  8.57k|         if (size_t(end - it) < sizeof(V)) [[unlikely]] {
  ------------------
  |  Branch (322:14): [True: 0, False: 8.57k]
  ------------------
  323|      0|            ctx.error = error_code::unexpected_end;
  324|      0|            return;
  325|      0|         }
  326|       |
  327|       |         if constexpr (is_volatile) {
  328|       |            V temp;
  329|       |            std::memcpy(&temp, it, sizeof(V));
  330|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  331|       |               byteswap_le(temp);
  332|       |            }
  333|       |            value = temp;
  334|       |         }
  335|  8.57k|         else {
  336|  8.57k|            std::memcpy(&value, it, sizeof(V));
  337|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  338|       |               byteswap_le(value);
  339|       |            }
  340|  8.57k|         }
  341|  8.57k|         it += sizeof(V);
  342|  8.57k|      }
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIaEEDaSI_:
  238|  2.71k|                  auto decode = [&](auto&& i) {
  239|  2.71k|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 0, False: 2.71k]
  ------------------
  240|      0|                        ctx.error = error_code::unexpected_end;
  241|      0|                        return;
  242|      0|                     }
  243|  2.71k|                     using I = std::decay_t<decltype(i)>;
  244|  2.71k|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|  2.71k|                     value = static_cast<V>(i);
  249|  2.71k|                     it += sizeof(i);
  250|  2.71k|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIsEEDaSI_:
  238|  1.66k|                  auto decode = [&](auto&& i) {
  239|  1.66k|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 36, False: 1.63k]
  ------------------
  240|     36|                        ctx.error = error_code::unexpected_end;
  241|     36|                        return;
  242|     36|                     }
  243|  1.63k|                     using I = std::decay_t<decltype(i)>;
  244|  1.63k|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|  1.63k|                     value = static_cast<V>(i);
  249|  1.63k|                     it += sizeof(i);
  250|  1.63k|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIiEEDaSI_:
  238|    787|                  auto decode = [&](auto&& i) {
  239|    787|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 73, False: 714]
  ------------------
  240|     73|                        ctx.error = error_code::unexpected_end;
  241|     73|                        return;
  242|     73|                     }
  243|    714|                     using I = std::decay_t<decltype(i)>;
  244|    714|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    714|                     value = static_cast<V>(i);
  249|    714|                     it += sizeof(i);
  250|    714|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIlEEDaSI_:
  238|    472|                  auto decode = [&](auto&& i) {
  239|    472|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 60, False: 412]
  ------------------
  240|     60|                        ctx.error = error_code::unexpected_end;
  241|     60|                        return;
  242|     60|                     }
  243|    412|                     using I = std::decay_t<decltype(i)>;
  244|    412|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    412|                     value = static_cast<V>(i);
  249|    412|                     it += sizeof(i);
  250|    412|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIhEEDaSI_:
  238|  1.71k|                  auto decode = [&](auto&& i) {
  239|  1.71k|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 0, False: 1.71k]
  ------------------
  240|      0|                        ctx.error = error_code::unexpected_end;
  241|      0|                        return;
  242|      0|                     }
  243|  1.71k|                     using I = std::decay_t<decltype(i)>;
  244|  1.71k|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|  1.71k|                     value = static_cast<V>(i);
  249|  1.71k|                     it += sizeof(i);
  250|  1.71k|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clItEEDaSI_:
  238|    563|                  auto decode = [&](auto&& i) {
  239|    563|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 42, False: 521]
  ------------------
  240|     42|                        ctx.error = error_code::unexpected_end;
  241|     42|                        return;
  242|     42|                     }
  243|    521|                     using I = std::decay_t<decltype(i)>;
  244|    521|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    521|                     value = static_cast<V>(i);
  249|    521|                     it += sizeof(i);
  250|    521|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIjEEDaSI_:
  238|    598|                  auto decode = [&](auto&& i) {
  239|    598|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (239:26): [True: 48, False: 550]
  ------------------
  240|     48|                        ctx.error = error_code::unexpected_end;
  241|     48|                        return;
  242|     48|                     }
  243|    550|                     using I = std::decay_t<decltype(i)>;
  244|    550|                     std::memcpy(&i, it, sizeof(I));
  245|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  246|       |                        byteswap_le(i);
  247|       |                     }
  248|    550|                     value = static_cast<V>(i);
  249|    550|                     it += sizeof(i);
  250|    550|                  };
_ZZN3glz4fromILj1ENSt3__15arrayImLm3EEEE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERS3_TkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_ENKUlmE0_clEm:
 2026|  2.77k|            auto prepare = [&](const size_t element_size) -> size_t {
 2027|  2.77k|               ++it;
 2028|  2.77k|               if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (2028:20): [True: 11, False: 2.76k]
  ------------------
 2029|     11|                  return 0;
 2030|     11|               }
 2031|       |
 2032|  2.76k|               std::conditional_t<Opts.partial_read, size_t, const size_t> n = int_from_compressed(ctx, it, end);
 2033|  2.76k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2033:20): [True: 294, False: 2.46k]
  ------------------
 2034|    294|                  return 0;
 2035|    294|               }
 2036|       |
 2037|       |               if constexpr (Opts.partial_read) {
 2038|       |                  n = value.size();
 2039|       |               }
 2040|       |
 2041|  2.46k|               if (typed_array_out_of_bounds(ctx, it, end, n, element_size)) return 0;
  ------------------
  |  Branch (2041:20): [True: 311, False: 2.15k]
  ------------------
 2042|  2.15k|               if (!validate_and_resize(n)) {
  ------------------
  |  Branch (2042:20): [True: 37, False: 2.12k]
  ------------------
 2043|     37|                  return 0;
 2044|     37|               }
 2045|       |
 2046|  2.12k|               return n;
 2047|  2.15k|            };

_ZN3glz12ensure_spaceINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT0_RT_m:
  265|  1.06G|   {
  266|  1.06G|      using Buffer = std::remove_cvref_t<B>;
  267|       |
  268|  1.06G|      if constexpr (vector_like<Buffer>) {
  269|  1.06G|         if (required > b.size()) [[unlikely]] {
  ------------------
  |  Branch (269:14): [True: 44.0k, False: 1.06G]
  ------------------
  270|  44.0k|            grow_buffer(b, required);
  271|  44.0k|         }
  272|  1.06G|         return true;
  273|       |      }
  274|       |      else if constexpr (has_bounded_capacity<Buffer>) {
  275|       |         if (required > buffer_traits<Buffer>::capacity(b)) [[unlikely]] {
  276|       |            ctx.error = error_code::buffer_overflow;
  277|       |            return false;
  278|       |         }
  279|       |         return true;
  280|       |      }
  281|       |      else {
  282|       |         return true; // Raw pointer or other - trust caller
  283|       |      }
  284|  1.06G|   }
_ZN3glz11grow_bufferINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvRT_m:
  143|  44.0k|   {
  144|  44.0k|      using traits = buffer_traits<std::remove_cvref_t<B>>;
  145|  44.0k|      if constexpr (requires { traits::grow(b, required); }) {
  146|  44.0k|         traits::grow(b, required);
  147|       |      }
  148|       |      else {
  149|       |         // A user specialization written before `grow` existed: keep the growth it used to get.
  150|       |         resize_unfilled(b, 2 * required);
  151|       |      }
  152|  44.0k|   }
_ZN3glz13buffer_traitsINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE4growERS7_mQL_ZNS_13buffer_traits12is_resizableEE:
  118|  44.0k|      {
  119|  44.0k|         resize_unfilled(b, 2 * required);
  120|  44.0k|      }
_ZN3glz15resize_unfilledINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvRT_m:
   63|  44.0k|   {
   64|  44.0k|      if constexpr (requires { b.resize_and_overwrite(n, [](auto*, size_t written) { return written; }); }) {
   65|  44.0k|         b.resize_and_overwrite(n, [](auto*, size_t written) noexcept { return written; });
   66|       |      }
   67|       |      else {
   68|       |         b.resize(n);
   69|       |      }
   70|  44.0k|   }
_ZZN3glz15resize_unfilledINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvRT_mENKUlPS8_mE_clIcEEDaSA_m:
   65|  44.0k|         b.resize_and_overwrite(n, [](auto*, size_t written) noexcept { return written; });

_ZN3glz10get_memberIR9my_structRiEEDcOT_OT0_:
  677|  2.56k|   {
  678|  2.56k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|  2.56k|      else {
  700|  2.56k|         return element;
  701|  2.56k|      }
  702|  2.56k|   }
_ZN3glz10get_memberIR9my_structRdEEDcOT_OT0_:
  677|  2.89k|   {
  678|  2.89k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|  2.89k|      else {
  700|  2.89k|         return element;
  701|  2.89k|      }
  702|  2.89k|   }
_ZN3glz10get_memberIR9my_structRNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEDcOT_OT0_:
  677|  2.19k|   {
  678|  2.19k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|  2.19k|      else {
  700|  2.19k|         return element;
  701|  2.19k|      }
  702|  2.19k|   }
_ZN3glz10get_memberIR9my_structRNSt3__15arrayImLm3EEEEEDcOT_OT0_:
  677|  5.48k|   {
  678|  5.48k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|  5.48k|      else {
  700|  5.48k|         return element;
  701|  5.48k|      }
  702|  5.48k|   }
_ZN3glz8str_viewINSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKS5_EES5_OT0_:
  341|  1.79M|   {
  342|  1.79M|      if constexpr (std::same_as<std::decay_t<T>, std::string_view>) {
  343|  1.79M|         return value; // already the answer; rebuilding it from data() and size() costs instructions
  344|       |      }
  345|       |      else if constexpr (!char_array_t<T> && std::is_pointer_v<std::decay_t<T>>) {
  346|       |         return value ? std::string_view{value} : std::string_view{};
  347|       |      }
  348|       |      else if constexpr (has_data<T> && has_size<T>) {
  349|       |         return std::string_view{value.data(), value.size()};
  350|       |      }
  351|       |      else {
  352|       |         return std::string_view{value};
  353|       |      }
  354|  1.79M|   }

_ZN3glz10call_scopeINS_7contextEEC2ERS1_:
  272|  24.3k|      explicit call_scope(Ctx& c) noexcept : ctx(c), depth(c.depth)
  273|  24.3k|      {
  274|  24.3k|         ctx.error = error_code::none;
  275|  24.3k|         ctx.custom_error_message = {};
  276|  24.3k|      }
_ZN3glz11depth_guardINS_7contextEEC2ERS1_m:
  215|  4.87k|      depth_guard(Ctx& c, const size_t limit = max_recursive_depth_limit) noexcept : ctx(c)
  216|  4.87k|      {
  217|  4.87k|         if (ctx.depth >= limit) [[unlikely]] {
  ------------------
  |  Branch (217:14): [True: 0, False: 4.87k]
  ------------------
  218|      0|            ctx.error = error_code::exceeded_max_recursive_depth;
  219|      0|            return;
  220|      0|         }
  221|  4.87k|         ++ctx.depth;
  222|  4.87k|         entered = true;
  223|  4.87k|      }
_ZNK3glz11depth_guardINS_7contextEEcvbEv:
  228|  4.87k|      explicit operator bool() const noexcept { return entered; }
_ZN3glz11depth_guardINS_7contextEED2Ev:
  225|  4.87k|      {
  226|  4.87k|         if (entered) --ctx.depth;
  ------------------
  |  Branch (226:14): [True: 4.87k, False: 0]
  ------------------
  227|  4.87k|      }
_ZN3glz10call_scopeINS_7contextEED2Ev:
  277|  24.3k|      ~call_scope() { ctx.depth = depth; }
_ZNK3glz9error_ctxcvbEv:
  148|  24.3k|      operator bool() const noexcept { return ec != error_code::none; }
_ZN3glz12indent_guardINS_7contextEEC2ERS1_m:
  241|  8.29M|      indent_guard(Ctx& c, const size_t indentation_step) noexcept : ctx(c), step(indentation_step)
  242|  8.29M|      {
  243|  8.29M|         ctx.depth += step;
  244|  8.29M|      }
_ZN3glz12indent_guardINS_7contextEED2Ev:
  245|  8.29M|      ~indent_guard() { ctx.depth -= step; }

_ZN3glz4readITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEE9my_structTkNS_10contiguousERKNSt3__16vectorIcNS3_9allocatorIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSA_OSB_:
  232|  24.3k|   {
  233|  24.3k|      format_context_t<Opts.format> ctx{};
  234|  24.3k|      return read<Opts>(value, buffer, ctx);
  235|  24.3k|   }
_ZN3glz4readITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEE9my_structTkNS_10contiguousERKNSt3__16vectorIcNS3_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSC_OSD_OT2_:
  152|  24.3k|   {
  153|  24.3k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  24.3k|      call_scope scope{ctx};
  156|       |
  157|  24.3k|      if constexpr (Opts.format != NDJSON) {
  158|  24.3k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (158:14): [True: 0, False: 24.3k]
  ------------------
  159|      0|            ctx.error = error_code::no_read_input;
  160|      0|            return {0, ctx.error, ctx.custom_error_message};
  161|      0|         }
  162|  24.3k|      }
  163|       |
  164|       |      // The reader used to grow the caller's buffer by `padding_bytes` here and shrink it back on
  165|       |      // the way out, so that its fixed width loads could run off the end of the document into
  166|       |      // defined bytes. Every one of those loads is now bounded against `end` instead (see
  167|       |      // `chunk_min`), which costs the last chunk of the buffer its chunked path and nothing else --
  168|       |      // measurably less than the round trip did. `std::string::resize` is an ABI entry point on
  169|       |      // both libc++ and libstdc++, so neither call inlined and the parse was spilled around both
  170|       |      // for what amounted to a sixteen byte store; the price did not scale with the document, so on
  171|       |      // a small one it was the bulk of the call. A caller who does have that slack can still say so
  172|       |      // and get the unbounded loads back, and nobody else pays for the buffer being touched at all.
  173|  24.3k|      ctx.padded_input = check_is_padded(Opts);
  174|       |
  175|  24.3k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  176|       |
  177|  24.3k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  178|  24.3k|      auto start = it;
  179|       |
  180|       |      // Bound the speculative re-parsing a variant resolution may do, in bytes, relative to this
  181|       |      // input. Seeded per read so a reused context starts fresh. See charge_speculation.
  182|  24.3k|      if constexpr (requires { ctx.speculation_budget; }) {
  183|  24.3k|         const size_t proportional = max_speculative_parse_factor * size_t(end - it);
  184|  24.3k|         ctx.speculation_budget =
  185|  24.3k|            (proportional > min_speculative_parse_bytes ? proportional : min_speculative_parse_bytes) + 2;
  ------------------
  |  Branch (185:14): [True: 994, False: 23.4k]
  ------------------
  186|  24.3k|      }
  187|       |
  188|       |      // A YAML context marks its outermost parse with stream_begin and seeds its expansion budgets
  189|       |      // there, so clearing it here is what makes those budgets per-read like the one above. A
  190|       |      // reused context would otherwise carry a spent budget into the next document and reject a
  191|       |      // valid one, and would leave stream_begin pointing into the buffer of the previous read.
  192|       |      // Nested YAML parses do not route through glz::read, so they still cannot reseed themselves.
  193|       |      if constexpr (requires { ctx.stream_begin; }) {
  194|       |         ctx.stream_begin = nullptr;
  195|       |      }
  196|       |
  197|       |      // Normalized off before dispatching: no reader branches on it any more, so leaving it set
  198|       |      // would split every instantiation below between callers who declared padding and callers who
  199|       |      // did not, for a flag none of them reads.
  200|  24.3k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  201|       |
  202|  24.3k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (202:11): [True: 24.3k, False: 71]
  ------------------
  203|  24.3k|         goto finish;
  204|  24.3k|      }
  205|       |
  206|       |      // The JSON RFC 8259 defines: JSON-text = ws value ws
  207|       |      // So, trailing whitespace is permitted and sometimes we want to
  208|       |      // validate this, even though this memory will not affect Glaze.
  209|       |      if constexpr (check_validate_trailing_whitespace(Opts)) {
  210|       |         if (it < end) {
  211|       |            skip_ws<ParseOpts>(ctx, it, end);
  212|       |            if (bool(ctx.error)) [[unlikely]] {
  213|       |               goto finish;
  214|       |            }
  215|       |            if (it != end) [[unlikely]] {
  216|       |               ctx.error = error_code::syntax_error;
  217|       |            }
  218|       |         }
  219|       |      }
  220|       |
  221|  24.3k|   finish:
  222|       |      // ParseOpts, not Opts: this reads `null_terminated` to tell a value that ended with the
  223|       |      // buffer from one that ran out, and it has to be told the same thing the parse was.
  224|  24.3k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  225|       |
  226|  24.3k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  227|     71|   }
_ZN3glz14read_iteratorsITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETkNS_10contiguousERKNSt3__16vectorIcNS2_9allocatorIcEEEEEEDaOT0_:
   40|  24.3k|   {
   41|  24.3k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
   42|       |
   43|  24.3k|      auto it = reinterpret_cast<const char*>(buffer.data());
   44|  24.3k|      auto end = it + buffer.size();
   45|       |
   46|  24.3k|      return std::pair{it, end};
   47|  24.3k|   }
_ZN3glz16exceeds_capacityINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT_mRT0_:
   28|  1.87k|   {
   29|       |      if constexpr (fixed_capacity_container<decltype(value)>) {
   30|       |         if (n > value.max_size()) [[unlikely]] {
   31|       |            ctx.error = error_code::exceeded_static_array_size;
   32|       |            return true;
   33|       |         }
   34|       |      }
   35|  1.87k|      return false;
   36|  1.87k|   }
_ZN3glz23finalize_top_level_readITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextEEEvOT0_PKcS7_S7_:
  131|  24.3k|   {
  132|       |      if constexpr (Opts.format == JSON && !check_null_terminated(Opts)) {
  133|       |         // Deliberately not [[unlikely]]: a body that ends with the buffer lands here on every
  134|       |         // successful read, which is the ordinary case for a registry parsing a wire span.
  135|       |         // start < it, not !=, because a streaming origin can be empty or overshoot on an error
  136|       |         // path; neither is an absent value.
  137|       |         if (ctx.error == error_code::end_reached && ctx.depth == 0 && it == end && start < it) {
  138|       |            context ws_ctx{}; // only written to when skip_ws parses a comment; the result is unused
  139|       |            const char* consumed = start;
  140|       |            skip_ws<Opts>(ws_ctx, consumed, it);
  141|       |            if (consumed == it) {
  142|       |               ctx.error = error_code::no_read_input;
  143|       |            }
  144|       |         }
  145|       |      }
  146|  24.3k|      finalize_read_context(ctx);
  147|  24.3k|   }
_ZN3glz21finalize_read_contextITkNS_10is_contextERNS_7contextEEEvOT_:
  109|  24.3k|   {
  110|  24.3k|      settle_partial_read_complete(ctx);
  111|  24.3k|      settle_end_reached(ctx);
  112|  24.3k|   }
_ZN3glz28settle_partial_read_completeITkNS_10is_contextERNS_7contextEEEvOT_:
  102|  24.3k|   {
  103|  24.3k|      if (ctx.error == error_code::partial_read_complete) {
  ------------------
  |  Branch (103:11): [True: 0, False: 24.3k]
  ------------------
  104|      0|         ctx.error = error_code::none;
  105|      0|      }
  106|  24.3k|   }
_ZN3glz18settle_end_reachedITkNS_10is_contextERNS_7contextEEEvOT_:
   88|  24.3k|   {
   89|  24.3k|      if (ctx.error == error_code::end_reached) {
  ------------------
  |  Branch (89:11): [True: 0, False: 24.3k]
  ------------------
   90|      0|         ctx.error = (ctx.depth == 0) ? error_code::none : error_code::unexpected_end;
  ------------------
  |  Branch (90:22): [True: 0, False: 0]
  ------------------
   91|      0|      }
   92|  24.3k|   }

_ZN3glz21decode_hash_with_sizeILj1E9my_structXtlNS_11hash_info_tIS1_Lm256EEELNS_9hash_typeE1EtlNSt3__15arrayIhLm256EEEtlA256_hLh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh3ELh4ELh4ELh1ELh4ELh4ELh4ELh2ELh0ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4EEELm1ELm5EEELS4_1EE2opIRPKcSD_EEmOT_OT0_m:
 2805|  13.9k|      {
 2806|  13.9k|         if (n < HashInfo.min_length || n > HashInfo.max_length) [[unlikely]] {
  ------------------
  |  Branch (2806:14): [True: 466, False: 13.5k]
  |  Branch (2806:41): [True: 182, False: 13.3k]
  ------------------
 2807|    648|            return N;
 2808|    648|         }
 2809|  13.3k|         return decode_hash_with_size_impl<Format, T, HashInfo, Type>::op(it, end, n);
 2810|  13.9k|      }
_ZN3glz26decode_hash_with_size_implILj1E9my_structXtlNS_11hash_info_tIS1_Lm256EEELNS_9hash_typeE1EtlNSt3__15arrayIhLm256EEEtlA256_hLh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh3ELh4ELh4ELh1ELh4ELh4ELh4ELh2ELh0ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4EEELm1ELm5EEELS4_1EE2opIRPKcSD_EEmOT_OT0_m:
 2858|  13.3k|      {
 2859|       |         // unique_index < min_length <= n, so it[unique_index] is within the key (the wrapper has
 2860|       |         // already rejected lengths outside [min_length, max_length]).
 2861|       |         if constexpr (HashInfo.sized_hash) {
 2862|       |            const auto h = bitmix(uint16_t(it[HashInfo.unique_index]) | (uint16_t(n) << 8), HashInfo.seed);
 2863|       |            return HashInfo.table[h % bsize];
 2864|       |         }
 2865|  13.3k|         else {
 2866|       |            if constexpr (N == 2) {
 2867|       |               // Avoids using a hash table
 2868|       |               constexpr auto first_key_char = reflect<T>::keys[0][uindex];
 2869|       |               return size_t(bool(it[uindex] ^ first_key_char));
 2870|       |            }
 2871|  13.3k|            else {
 2872|  13.3k|               return HashInfo.table[uint8_t(it[uindex])];
 2873|  13.3k|            }
 2874|  13.3k|         }
 2875|  13.3k|      }

_ZN3glz3getILm0ETkNS_12tuple_detail9indexableENS_5tupleIJRiRdRNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERNS5_5arrayImLm3EEEEEEEEDcOT0_:
  116|  2.56k|   {
  117|  2.56k|      using D = std::remove_cvref_t<Tup>;
  118|  2.56k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  2.56k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  2.56k|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|  2.56k|         else {
  128|  2.56k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  2.56k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  2.56k|   }
_ZN3glz3tieIJidNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_5arrayImLm3EEEEEENS_5tupleIJDpRT_EEESD_:
  325|  13.1k|   {
  326|  13.1k|      return {{{ts}...}};
  327|  13.1k|   }
_ZN3glz3getILm1ETkNS_12tuple_detail9indexableENS_5tupleIJRiRdRNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERNS5_5arrayImLm3EEEEEEEEDcOT0_:
  116|  2.89k|   {
  117|  2.89k|      using D = std::remove_cvref_t<Tup>;
  118|  2.89k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  2.89k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  2.89k|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|  2.89k|         else {
  128|  2.89k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  2.89k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  2.89k|   }
_ZN3glz3getILm2ETkNS_12tuple_detail9indexableENS_5tupleIJRiRdRNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERNS5_5arrayImLm3EEEEEEEEDcOT0_:
  116|  2.19k|   {
  117|  2.19k|      using D = std::remove_cvref_t<Tup>;
  118|  2.19k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  2.19k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  2.19k|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|  2.19k|         else {
  128|  2.19k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  2.19k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  2.19k|   }
_ZN3glz3getILm3ETkNS_12tuple_detail9indexableENS_5tupleIJRiRdRNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERNS5_5arrayImLm3EEEEEEEEDcOT0_:
  116|  5.48k|   {
  117|  5.48k|      using D = std::remove_cvref_t<Tup>;
  118|  5.48k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  5.48k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  5.48k|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|  5.48k|         else {
  128|  5.48k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  5.48k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  5.48k|   }

_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERfTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  205|  1.61M|      {
  206|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  207|       |            // more efficient strings in C++23:
  208|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  209|       |          }*/
  210|       |
  211|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  212|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  213|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  214|       |            if (const auto k = ix + 64; k > b.size()) {
  215|       |               grow_buffer(b, k);
  216|       |            }
  217|       |         }
  218|       |
  219|  1.61M|         using V = std::decay_t<decltype(value)>;
  220|       |
  221|  1.61M|         if constexpr (std::floating_point<V>) {
  222|  1.61M|            using opts_type = std::decay_t<decltype(Opts)>;
  223|  1.61M|            constexpr bool use_float_format = requires { opts_type::float_format; };
  224|       |
  225|       |            // User-specified float_format takes priority over all other options
  226|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  227|       |#if GLZ_USE_STD_FORMAT_FLOAT
  228|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  229|       |               // Format string is validated at compile-time via std::format_string
  230|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  231|       |
  232|       |               if constexpr (check_write_unchecked(Opts)) {
  233|       |                  // Caller guarantees buffer has enough space
  234|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  235|       |                  auto result = std::format_to(start, fmt, V(value));
  236|       |                  ix += size_t(result - start);
  237|       |               }
  238|       |               else {
  239|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  240|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  241|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  242|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  243|       |                  const auto available = b.size() - ix;
  244|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  245|       |
  246|       |                  if (static_cast<size_t>(size) > available) {
  247|       |                     // Output was truncated - size tells us exactly how much space we need
  248|       |                     if constexpr (resizable<B>) {
  249|       |                        grow_buffer(b, ix + size);
  250|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  251|       |                     }
  252|       |                     else {
  253|       |                        ctx.error = error_code::unexpected_end;
  254|       |                        return;
  255|       |                     }
  256|       |                  }
  257|       |                  ix += size;
  258|       |               }
  259|       |#else
  260|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  261|       |               // Convert std::format spec to printf format at compile time
  262|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  263|       |
  264|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  265|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  266|       |
  267|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  268|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  269|       |
  270|       |               if (len < 0) {
  271|       |                  ctx.error = error_code::unexpected_end;
  272|       |                  return;
  273|       |               }
  274|       |
  275|       |               if (static_cast<size_t>(len) >= available) {
  276|       |                  // Output was truncated, need to resize and retry
  277|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  278|       |                     grow_buffer(b, ix + static_cast<size_t>(len) + 1);
  279|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  280|       |                                   static_cast<double>(value));
  281|       |                  }
  282|       |                  else {
  283|       |                     ctx.error = error_code::unexpected_end;
  284|       |                     return;
  285|       |                  }
  286|       |               }
  287|       |               ix += static_cast<size_t>(len);
  288|       |#endif
  289|       |            }
  290|       |            else if constexpr (uint8_t(check_float_max_write_precision(Opts)) > 0 &&
  291|       |                               uint8_t(check_float_max_write_precision(Opts)) < sizeof(V)) {
  292|       |               // we cast to a lower precision floating point value before writing out
  293|       |               if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 8) {
  294|       |                  const auto reduced = static_cast<double>(value);
  295|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  296|       |                  const auto end = glz::to_chars(start, reduced);
  297|       |                  ix += size_t(end - start);
  298|       |               }
  299|       |               else if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 4) {
  300|       |                  const auto reduced = static_cast<float>(value);
  301|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  302|       |                  const auto end = glz::to_chars(start, reduced);
  303|       |                  ix += size_t(end - start);
  304|       |               }
  305|       |               else {
  306|       |                  static_assert(false_v<V>, "invalid float_max_write_precision");
  307|       |               }
  308|       |            }
  309|       |            // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  310|       |            // tables are dropped (recomputed on the fly). Much faster than the
  311|       |            // old simple_float::to_chars path at essentially the same footprint.
  312|       |            // See discussion #2519.
  313|       |            else if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  314|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  315|       |               const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  316|       |               ix += size_t(end - start);
  317|       |            }
  318|  1.61M|            else if constexpr (is_any_of<V, float, double>) {
  319|  1.61M|               const auto start = reinterpret_cast<char*>(&b[ix]);
  320|  1.61M|               const auto end = glz::to_chars(start, value);
  321|  1.61M|               ix += size_t(end - start);
  322|       |            }
  323|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  324|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  325|       |            else if constexpr (is_float128<V>) {
  326|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  327|       |               const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  328|       |               if (ec != std::errc()) {
  329|       |                  ctx.error = error_code::unexpected_end;
  330|       |                  return;
  331|       |               }
  332|       |               ix += size_t(ptr - start);
  333|       |            }
  334|       |#endif
  335|       |            else {
  336|       |               static_assert(false_v<V>, "type is not supported");
  337|       |            }
  338|       |         }
  339|       |         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  340|       |            // Small integers: always use to_chars (400B tables)
  341|       |            // The 40KB digit_quads table doesn't help for these small ranges
  342|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  343|       |            const auto end = glz::to_chars(start, value);
  344|       |            ix += size_t(end - start);
  345|       |         }
  346|       |         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  347|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  348|       |            if constexpr (is_size_optimized(Opts)) {
  349|       |               // Size mode: use glz::to_chars (400B lookup tables)
  350|       |               const auto end = glz::to_chars(start, value);
  351|       |               ix += size_t(end - start);
  352|       |            }
  353|       |            else {
  354|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  355|       |               const auto end = glz::to_chars_40kb(start, value);
  356|       |               ix += size_t(end - start);
  357|       |            }
  358|       |         }
  359|       |         else if constexpr (std::integral<V>) {
  360|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  361|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  362|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  363|       |            if constexpr (is_size_optimized(Opts)) {
  364|       |               // Size mode: use glz::to_chars (400B lookup tables)
  365|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  366|       |               ix += size_t(end - start);
  367|       |            }
  368|       |            else {
  369|       |               // Normal mode: use to_chars_40kb
  370|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  371|       |               ix += size_t(end - start);
  372|       |            }
  373|       |         }
  374|       |         else {
  375|       |            static_assert(false_v<V>, "type is not supported");
  376|       |         }
  377|  1.61M|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERdTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  205|  1.11M|      {
  206|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  207|       |            // more efficient strings in C++23:
  208|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  209|       |          }*/
  210|       |
  211|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  212|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  213|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  214|       |            if (const auto k = ix + 64; k > b.size()) {
  215|       |               grow_buffer(b, k);
  216|       |            }
  217|       |         }
  218|       |
  219|  1.11M|         using V = std::decay_t<decltype(value)>;
  220|       |
  221|  1.11M|         if constexpr (std::floating_point<V>) {
  222|  1.11M|            using opts_type = std::decay_t<decltype(Opts)>;
  223|  1.11M|            constexpr bool use_float_format = requires { opts_type::float_format; };
  224|       |
  225|       |            // User-specified float_format takes priority over all other options
  226|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  227|       |#if GLZ_USE_STD_FORMAT_FLOAT
  228|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  229|       |               // Format string is validated at compile-time via std::format_string
  230|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  231|       |
  232|       |               if constexpr (check_write_unchecked(Opts)) {
  233|       |                  // Caller guarantees buffer has enough space
  234|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  235|       |                  auto result = std::format_to(start, fmt, V(value));
  236|       |                  ix += size_t(result - start);
  237|       |               }
  238|       |               else {
  239|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  240|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  241|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  242|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  243|       |                  const auto available = b.size() - ix;
  244|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  245|       |
  246|       |                  if (static_cast<size_t>(size) > available) {
  247|       |                     // Output was truncated - size tells us exactly how much space we need
  248|       |                     if constexpr (resizable<B>) {
  249|       |                        grow_buffer(b, ix + size);
  250|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  251|       |                     }
  252|       |                     else {
  253|       |                        ctx.error = error_code::unexpected_end;
  254|       |                        return;
  255|       |                     }
  256|       |                  }
  257|       |                  ix += size;
  258|       |               }
  259|       |#else
  260|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  261|       |               // Convert std::format spec to printf format at compile time
  262|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  263|       |
  264|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  265|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  266|       |
  267|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  268|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  269|       |
  270|       |               if (len < 0) {
  271|       |                  ctx.error = error_code::unexpected_end;
  272|       |                  return;
  273|       |               }
  274|       |
  275|       |               if (static_cast<size_t>(len) >= available) {
  276|       |                  // Output was truncated, need to resize and retry
  277|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  278|       |                     grow_buffer(b, ix + static_cast<size_t>(len) + 1);
  279|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  280|       |                                   static_cast<double>(value));
  281|       |                  }
  282|       |                  else {
  283|       |                     ctx.error = error_code::unexpected_end;
  284|       |                     return;
  285|       |                  }
  286|       |               }
  287|       |               ix += static_cast<size_t>(len);
  288|       |#endif
  289|       |            }
  290|       |            else if constexpr (uint8_t(check_float_max_write_precision(Opts)) > 0 &&
  291|       |                               uint8_t(check_float_max_write_precision(Opts)) < sizeof(V)) {
  292|       |               // we cast to a lower precision floating point value before writing out
  293|       |               if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 8) {
  294|       |                  const auto reduced = static_cast<double>(value);
  295|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  296|       |                  const auto end = glz::to_chars(start, reduced);
  297|       |                  ix += size_t(end - start);
  298|       |               }
  299|       |               else if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 4) {
  300|       |                  const auto reduced = static_cast<float>(value);
  301|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  302|       |                  const auto end = glz::to_chars(start, reduced);
  303|       |                  ix += size_t(end - start);
  304|       |               }
  305|       |               else {
  306|       |                  static_assert(false_v<V>, "invalid float_max_write_precision");
  307|       |               }
  308|       |            }
  309|       |            // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  310|       |            // tables are dropped (recomputed on the fly). Much faster than the
  311|       |            // old simple_float::to_chars path at essentially the same footprint.
  312|       |            // See discussion #2519.
  313|       |            else if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  314|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  315|       |               const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  316|       |               ix += size_t(end - start);
  317|       |            }
  318|  1.11M|            else if constexpr (is_any_of<V, float, double>) {
  319|  1.11M|               const auto start = reinterpret_cast<char*>(&b[ix]);
  320|  1.11M|               const auto end = glz::to_chars(start, value);
  321|  1.11M|               ix += size_t(end - start);
  322|       |            }
  323|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  324|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  325|       |            else if constexpr (is_float128<V>) {
  326|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  327|       |               const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  328|       |               if (ec != std::errc()) {
  329|       |                  ctx.error = error_code::unexpected_end;
  330|       |                  return;
  331|       |               }
  332|       |               ix += size_t(ptr - start);
  333|       |            }
  334|       |#endif
  335|       |            else {
  336|       |               static_assert(false_v<V>, "type is not supported");
  337|       |            }
  338|       |         }
  339|       |         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  340|       |            // Small integers: always use to_chars (400B tables)
  341|       |            // The 40KB digit_quads table doesn't help for these small ranges
  342|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  343|       |            const auto end = glz::to_chars(start, value);
  344|       |            ix += size_t(end - start);
  345|       |         }
  346|       |         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  347|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  348|       |            if constexpr (is_size_optimized(Opts)) {
  349|       |               // Size mode: use glz::to_chars (400B lookup tables)
  350|       |               const auto end = glz::to_chars(start, value);
  351|       |               ix += size_t(end - start);
  352|       |            }
  353|       |            else {
  354|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  355|       |               const auto end = glz::to_chars_40kb(start, value);
  356|       |               ix += size_t(end - start);
  357|       |            }
  358|       |         }
  359|       |         else if constexpr (std::integral<V>) {
  360|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  361|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  362|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  363|       |            if constexpr (is_size_optimized(Opts)) {
  364|       |               // Size mode: use glz::to_chars (400B lookup tables)
  365|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  366|       |               ix += size_t(end - start);
  367|       |            }
  368|       |            else {
  369|       |               // Normal mode: use to_chars_40kb
  370|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  371|       |               ix += size_t(end - start);
  372|       |            }
  373|       |         }
  374|       |         else {
  375|       |            static_assert(false_v<V>, "type is not supported");
  376|       |         }
  377|  1.11M|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERaTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  205|   863k|      {
  206|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  207|       |            // more efficient strings in C++23:
  208|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  209|       |          }*/
  210|       |
  211|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  212|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  213|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  214|       |            if (const auto k = ix + 64; k > b.size()) {
  215|       |               grow_buffer(b, k);
  216|       |            }
  217|       |         }
  218|       |
  219|   863k|         using V = std::decay_t<decltype(value)>;
  220|       |
  221|       |         if constexpr (std::floating_point<V>) {
  222|       |            using opts_type = std::decay_t<decltype(Opts)>;
  223|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  224|       |
  225|       |            // User-specified float_format takes priority over all other options
  226|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  227|       |#if GLZ_USE_STD_FORMAT_FLOAT
  228|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  229|       |               // Format string is validated at compile-time via std::format_string
  230|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  231|       |
  232|       |               if constexpr (check_write_unchecked(Opts)) {
  233|       |                  // Caller guarantees buffer has enough space
  234|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  235|       |                  auto result = std::format_to(start, fmt, V(value));
  236|       |                  ix += size_t(result - start);
  237|       |               }
  238|       |               else {
  239|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  240|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  241|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  242|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  243|       |                  const auto available = b.size() - ix;
  244|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  245|       |
  246|       |                  if (static_cast<size_t>(size) > available) {
  247|       |                     // Output was truncated - size tells us exactly how much space we need
  248|       |                     if constexpr (resizable<B>) {
  249|       |                        grow_buffer(b, ix + size);
  250|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  251|       |                     }
  252|       |                     else {
  253|       |                        ctx.error = error_code::unexpected_end;
  254|       |                        return;
  255|       |                     }
  256|       |                  }
  257|       |                  ix += size;
  258|       |               }
  259|       |#else
  260|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  261|       |               // Convert std::format spec to printf format at compile time
  262|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  263|       |
  264|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  265|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  266|       |
  267|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  268|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  269|       |
  270|       |               if (len < 0) {
  271|       |                  ctx.error = error_code::unexpected_end;
  272|       |                  return;
  273|       |               }
  274|       |
  275|       |               if (static_cast<size_t>(len) >= available) {
  276|       |                  // Output was truncated, need to resize and retry
  277|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  278|       |                     grow_buffer(b, ix + static_cast<size_t>(len) + 1);
  279|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  280|       |                                   static_cast<double>(value));
  281|       |                  }
  282|       |                  else {
  283|       |                     ctx.error = error_code::unexpected_end;
  284|       |                     return;
  285|       |                  }
  286|       |               }
  287|       |               ix += static_cast<size_t>(len);
  288|       |#endif
  289|       |            }
  290|       |            else if constexpr (uint8_t(check_float_max_write_precision(Opts)) > 0 &&
  291|       |                               uint8_t(check_float_max_write_precision(Opts)) < sizeof(V)) {
  292|       |               // we cast to a lower precision floating point value before writing out
  293|       |               if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 8) {
  294|       |                  const auto reduced = static_cast<double>(value);
  295|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  296|       |                  const auto end = glz::to_chars(start, reduced);
  297|       |                  ix += size_t(end - start);
  298|       |               }
  299|       |               else if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 4) {
  300|       |                  const auto reduced = static_cast<float>(value);
  301|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  302|       |                  const auto end = glz::to_chars(start, reduced);
  303|       |                  ix += size_t(end - start);
  304|       |               }
  305|       |               else {
  306|       |                  static_assert(false_v<V>, "invalid float_max_write_precision");
  307|       |               }
  308|       |            }
  309|       |            // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  310|       |            // tables are dropped (recomputed on the fly). Much faster than the
  311|       |            // old simple_float::to_chars path at essentially the same footprint.
  312|       |            // See discussion #2519.
  313|       |            else if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  314|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  315|       |               const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  316|       |               ix += size_t(end - start);
  317|       |            }
  318|       |            else if constexpr (is_any_of<V, float, double>) {
  319|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  320|       |               const auto end = glz::to_chars(start, value);
  321|       |               ix += size_t(end - start);
  322|       |            }
  323|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  324|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  325|       |            else if constexpr (is_float128<V>) {
  326|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  327|       |               const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  328|       |               if (ec != std::errc()) {
  329|       |                  ctx.error = error_code::unexpected_end;
  330|       |                  return;
  331|       |               }
  332|       |               ix += size_t(ptr - start);
  333|       |            }
  334|       |#endif
  335|       |            else {
  336|       |               static_assert(false_v<V>, "type is not supported");
  337|       |            }
  338|       |         }
  339|   863k|         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  340|       |            // Small integers: always use to_chars (400B tables)
  341|       |            // The 40KB digit_quads table doesn't help for these small ranges
  342|   863k|            const auto start = reinterpret_cast<char*>(&b[ix]);
  343|   863k|            const auto end = glz::to_chars(start, value);
  344|   863k|            ix += size_t(end - start);
  345|       |         }
  346|       |         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  347|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  348|       |            if constexpr (is_size_optimized(Opts)) {
  349|       |               // Size mode: use glz::to_chars (400B lookup tables)
  350|       |               const auto end = glz::to_chars(start, value);
  351|       |               ix += size_t(end - start);
  352|       |            }
  353|       |            else {
  354|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  355|       |               const auto end = glz::to_chars_40kb(start, value);
  356|       |               ix += size_t(end - start);
  357|       |            }
  358|       |         }
  359|       |         else if constexpr (std::integral<V>) {
  360|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  361|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  362|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  363|       |            if constexpr (is_size_optimized(Opts)) {
  364|       |               // Size mode: use glz::to_chars (400B lookup tables)
  365|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  366|       |               ix += size_t(end - start);
  367|       |            }
  368|       |            else {
  369|       |               // Normal mode: use to_chars_40kb
  370|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  371|       |               ix += size_t(end - start);
  372|       |            }
  373|       |         }
  374|       |         else {
  375|       |            static_assert(false_v<V>, "type is not supported");
  376|       |         }
  377|   863k|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERsTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  205|  2.03M|      {
  206|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  207|       |            // more efficient strings in C++23:
  208|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  209|       |          }*/
  210|       |
  211|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  212|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  213|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  214|       |            if (const auto k = ix + 64; k > b.size()) {
  215|       |               grow_buffer(b, k);
  216|       |            }
  217|       |         }
  218|       |
  219|  2.03M|         using V = std::decay_t<decltype(value)>;
  220|       |
  221|       |         if constexpr (std::floating_point<V>) {
  222|       |            using opts_type = std::decay_t<decltype(Opts)>;
  223|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  224|       |
  225|       |            // User-specified float_format takes priority over all other options
  226|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  227|       |#if GLZ_USE_STD_FORMAT_FLOAT
  228|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  229|       |               // Format string is validated at compile-time via std::format_string
  230|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  231|       |
  232|       |               if constexpr (check_write_unchecked(Opts)) {
  233|       |                  // Caller guarantees buffer has enough space
  234|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  235|       |                  auto result = std::format_to(start, fmt, V(value));
  236|       |                  ix += size_t(result - start);
  237|       |               }
  238|       |               else {
  239|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  240|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  241|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  242|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  243|       |                  const auto available = b.size() - ix;
  244|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  245|       |
  246|       |                  if (static_cast<size_t>(size) > available) {
  247|       |                     // Output was truncated - size tells us exactly how much space we need
  248|       |                     if constexpr (resizable<B>) {
  249|       |                        grow_buffer(b, ix + size);
  250|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  251|       |                     }
  252|       |                     else {
  253|       |                        ctx.error = error_code::unexpected_end;
  254|       |                        return;
  255|       |                     }
  256|       |                  }
  257|       |                  ix += size;
  258|       |               }
  259|       |#else
  260|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  261|       |               // Convert std::format spec to printf format at compile time
  262|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  263|       |
  264|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  265|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  266|       |
  267|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  268|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  269|       |
  270|       |               if (len < 0) {
  271|       |                  ctx.error = error_code::unexpected_end;
  272|       |                  return;
  273|       |               }
  274|       |
  275|       |               if (static_cast<size_t>(len) >= available) {
  276|       |                  // Output was truncated, need to resize and retry
  277|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  278|       |                     grow_buffer(b, ix + static_cast<size_t>(len) + 1);
  279|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  280|       |                                   static_cast<double>(value));
  281|       |                  }
  282|       |                  else {
  283|       |                     ctx.error = error_code::unexpected_end;
  284|       |                     return;
  285|       |                  }
  286|       |               }
  287|       |               ix += static_cast<size_t>(len);
  288|       |#endif
  289|       |            }
  290|       |            else if constexpr (uint8_t(check_float_max_write_precision(Opts)) > 0 &&
  291|       |                               uint8_t(check_float_max_write_precision(Opts)) < sizeof(V)) {
  292|       |               // we cast to a lower precision floating point value before writing out
  293|       |               if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 8) {
  294|       |                  const auto reduced = static_cast<double>(value);
  295|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  296|       |                  const auto end = glz::to_chars(start, reduced);
  297|       |                  ix += size_t(end - start);
  298|       |               }
  299|       |               else if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 4) {
  300|       |                  const auto reduced = static_cast<float>(value);
  301|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  302|       |                  const auto end = glz::to_chars(start, reduced);
  303|       |                  ix += size_t(end - start);
  304|       |               }
  305|       |               else {
  306|       |                  static_assert(false_v<V>, "invalid float_max_write_precision");
  307|       |               }
  308|       |            }
  309|       |            // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  310|       |            // tables are dropped (recomputed on the fly). Much faster than the
  311|       |            // old simple_float::to_chars path at essentially the same footprint.
  312|       |            // See discussion #2519.
  313|       |            else if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  314|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  315|       |               const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  316|       |               ix += size_t(end - start);
  317|       |            }
  318|       |            else if constexpr (is_any_of<V, float, double>) {
  319|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  320|       |               const auto end = glz::to_chars(start, value);
  321|       |               ix += size_t(end - start);
  322|       |            }
  323|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  324|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  325|       |            else if constexpr (is_float128<V>) {
  326|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  327|       |               const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  328|       |               if (ec != std::errc()) {
  329|       |                  ctx.error = error_code::unexpected_end;
  330|       |                  return;
  331|       |               }
  332|       |               ix += size_t(ptr - start);
  333|       |            }
  334|       |#endif
  335|       |            else {
  336|       |               static_assert(false_v<V>, "type is not supported");
  337|       |            }
  338|       |         }
  339|  2.03M|         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  340|       |            // Small integers: always use to_chars (400B tables)
  341|       |            // The 40KB digit_quads table doesn't help for these small ranges
  342|  2.03M|            const auto start = reinterpret_cast<char*>(&b[ix]);
  343|  2.03M|            const auto end = glz::to_chars(start, value);
  344|  2.03M|            ix += size_t(end - start);
  345|       |         }
  346|       |         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  347|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  348|       |            if constexpr (is_size_optimized(Opts)) {
  349|       |               // Size mode: use glz::to_chars (400B lookup tables)
  350|       |               const auto end = glz::to_chars(start, value);
  351|       |               ix += size_t(end - start);
  352|       |            }
  353|       |            else {
  354|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  355|       |               const auto end = glz::to_chars_40kb(start, value);
  356|       |               ix += size_t(end - start);
  357|       |            }
  358|       |         }
  359|       |         else if constexpr (std::integral<V>) {
  360|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  361|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  362|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  363|       |            if constexpr (is_size_optimized(Opts)) {
  364|       |               // Size mode: use glz::to_chars (400B lookup tables)
  365|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  366|       |               ix += size_t(end - start);
  367|       |            }
  368|       |            else {
  369|       |               // Normal mode: use to_chars_40kb
  370|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  371|       |               ix += size_t(end - start);
  372|       |            }
  373|       |         }
  374|       |         else {
  375|       |            static_assert(false_v<V>, "type is not supported");
  376|       |         }
  377|  2.03M|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERiTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  205|   905k|      {
  206|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  207|       |            // more efficient strings in C++23:
  208|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  209|       |          }*/
  210|       |
  211|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  212|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  213|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  214|       |            if (const auto k = ix + 64; k > b.size()) {
  215|       |               grow_buffer(b, k);
  216|       |            }
  217|       |         }
  218|       |
  219|   905k|         using V = std::decay_t<decltype(value)>;
  220|       |
  221|       |         if constexpr (std::floating_point<V>) {
  222|       |            using opts_type = std::decay_t<decltype(Opts)>;
  223|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  224|       |
  225|       |            // User-specified float_format takes priority over all other options
  226|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  227|       |#if GLZ_USE_STD_FORMAT_FLOAT
  228|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  229|       |               // Format string is validated at compile-time via std::format_string
  230|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  231|       |
  232|       |               if constexpr (check_write_unchecked(Opts)) {
  233|       |                  // Caller guarantees buffer has enough space
  234|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  235|       |                  auto result = std::format_to(start, fmt, V(value));
  236|       |                  ix += size_t(result - start);
  237|       |               }
  238|       |               else {
  239|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  240|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  241|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  242|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  243|       |                  const auto available = b.size() - ix;
  244|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  245|       |
  246|       |                  if (static_cast<size_t>(size) > available) {
  247|       |                     // Output was truncated - size tells us exactly how much space we need
  248|       |                     if constexpr (resizable<B>) {
  249|       |                        grow_buffer(b, ix + size);
  250|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  251|       |                     }
  252|       |                     else {
  253|       |                        ctx.error = error_code::unexpected_end;
  254|       |                        return;
  255|       |                     }
  256|       |                  }
  257|       |                  ix += size;
  258|       |               }
  259|       |#else
  260|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  261|       |               // Convert std::format spec to printf format at compile time
  262|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  263|       |
  264|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  265|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  266|       |
  267|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  268|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  269|       |
  270|       |               if (len < 0) {
  271|       |                  ctx.error = error_code::unexpected_end;
  272|       |                  return;
  273|       |               }
  274|       |
  275|       |               if (static_cast<size_t>(len) >= available) {
  276|       |                  // Output was truncated, need to resize and retry
  277|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  278|       |                     grow_buffer(b, ix + static_cast<size_t>(len) + 1);
  279|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  280|       |                                   static_cast<double>(value));
  281|       |                  }
  282|       |                  else {
  283|       |                     ctx.error = error_code::unexpected_end;
  284|       |                     return;
  285|       |                  }
  286|       |               }
  287|       |               ix += static_cast<size_t>(len);
  288|       |#endif
  289|       |            }
  290|       |            else if constexpr (uint8_t(check_float_max_write_precision(Opts)) > 0 &&
  291|       |                               uint8_t(check_float_max_write_precision(Opts)) < sizeof(V)) {
  292|       |               // we cast to a lower precision floating point value before writing out
  293|       |               if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 8) {
  294|       |                  const auto reduced = static_cast<double>(value);
  295|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  296|       |                  const auto end = glz::to_chars(start, reduced);
  297|       |                  ix += size_t(end - start);
  298|       |               }
  299|       |               else if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 4) {
  300|       |                  const auto reduced = static_cast<float>(value);
  301|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  302|       |                  const auto end = glz::to_chars(start, reduced);
  303|       |                  ix += size_t(end - start);
  304|       |               }
  305|       |               else {
  306|       |                  static_assert(false_v<V>, "invalid float_max_write_precision");
  307|       |               }
  308|       |            }
  309|       |            // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  310|       |            // tables are dropped (recomputed on the fly). Much faster than the
  311|       |            // old simple_float::to_chars path at essentially the same footprint.
  312|       |            // See discussion #2519.
  313|       |            else if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  314|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  315|       |               const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  316|       |               ix += size_t(end - start);
  317|       |            }
  318|       |            else if constexpr (is_any_of<V, float, double>) {
  319|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  320|       |               const auto end = glz::to_chars(start, value);
  321|       |               ix += size_t(end - start);
  322|       |            }
  323|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  324|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  325|       |            else if constexpr (is_float128<V>) {
  326|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  327|       |               const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  328|       |               if (ec != std::errc()) {
  329|       |                  ctx.error = error_code::unexpected_end;
  330|       |                  return;
  331|       |               }
  332|       |               ix += size_t(ptr - start);
  333|       |            }
  334|       |#endif
  335|       |            else {
  336|       |               static_assert(false_v<V>, "type is not supported");
  337|       |            }
  338|       |         }
  339|       |         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  340|       |            // Small integers: always use to_chars (400B tables)
  341|       |            // The 40KB digit_quads table doesn't help for these small ranges
  342|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  343|       |            const auto end = glz::to_chars(start, value);
  344|       |            ix += size_t(end - start);
  345|       |         }
  346|   905k|         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  347|   905k|            const auto start = reinterpret_cast<char*>(&b[ix]);
  348|       |            if constexpr (is_size_optimized(Opts)) {
  349|       |               // Size mode: use glz::to_chars (400B lookup tables)
  350|       |               const auto end = glz::to_chars(start, value);
  351|       |               ix += size_t(end - start);
  352|       |            }
  353|   905k|            else {
  354|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  355|   905k|               const auto end = glz::to_chars_40kb(start, value);
  356|   905k|               ix += size_t(end - start);
  357|   905k|            }
  358|       |         }
  359|       |         else if constexpr (std::integral<V>) {
  360|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  361|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  362|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  363|       |            if constexpr (is_size_optimized(Opts)) {
  364|       |               // Size mode: use glz::to_chars (400B lookup tables)
  365|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  366|       |               ix += size_t(end - start);
  367|       |            }
  368|       |            else {
  369|       |               // Normal mode: use to_chars_40kb
  370|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  371|       |               ix += size_t(end - start);
  372|       |            }
  373|       |         }
  374|       |         else {
  375|       |            static_assert(false_v<V>, "type is not supported");
  376|       |         }
  377|   905k|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERlTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  205|   930k|      {
  206|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  207|       |            // more efficient strings in C++23:
  208|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  209|       |          }*/
  210|       |
  211|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  212|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  213|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  214|       |            if (const auto k = ix + 64; k > b.size()) {
  215|       |               grow_buffer(b, k);
  216|       |            }
  217|       |         }
  218|       |
  219|   930k|         using V = std::decay_t<decltype(value)>;
  220|       |
  221|       |         if constexpr (std::floating_point<V>) {
  222|       |            using opts_type = std::decay_t<decltype(Opts)>;
  223|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  224|       |
  225|       |            // User-specified float_format takes priority over all other options
  226|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  227|       |#if GLZ_USE_STD_FORMAT_FLOAT
  228|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  229|       |               // Format string is validated at compile-time via std::format_string
  230|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  231|       |
  232|       |               if constexpr (check_write_unchecked(Opts)) {
  233|       |                  // Caller guarantees buffer has enough space
  234|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  235|       |                  auto result = std::format_to(start, fmt, V(value));
  236|       |                  ix += size_t(result - start);
  237|       |               }
  238|       |               else {
  239|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  240|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  241|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  242|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  243|       |                  const auto available = b.size() - ix;
  244|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  245|       |
  246|       |                  if (static_cast<size_t>(size) > available) {
  247|       |                     // Output was truncated - size tells us exactly how much space we need
  248|       |                     if constexpr (resizable<B>) {
  249|       |                        grow_buffer(b, ix + size);
  250|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  251|       |                     }
  252|       |                     else {
  253|       |                        ctx.error = error_code::unexpected_end;
  254|       |                        return;
  255|       |                     }
  256|       |                  }
  257|       |                  ix += size;
  258|       |               }
  259|       |#else
  260|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  261|       |               // Convert std::format spec to printf format at compile time
  262|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  263|       |
  264|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  265|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  266|       |
  267|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  268|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  269|       |
  270|       |               if (len < 0) {
  271|       |                  ctx.error = error_code::unexpected_end;
  272|       |                  return;
  273|       |               }
  274|       |
  275|       |               if (static_cast<size_t>(len) >= available) {
  276|       |                  // Output was truncated, need to resize and retry
  277|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  278|       |                     grow_buffer(b, ix + static_cast<size_t>(len) + 1);
  279|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  280|       |                                   static_cast<double>(value));
  281|       |                  }
  282|       |                  else {
  283|       |                     ctx.error = error_code::unexpected_end;
  284|       |                     return;
  285|       |                  }
  286|       |               }
  287|       |               ix += static_cast<size_t>(len);
  288|       |#endif
  289|       |            }
  290|       |            else if constexpr (uint8_t(check_float_max_write_precision(Opts)) > 0 &&
  291|       |                               uint8_t(check_float_max_write_precision(Opts)) < sizeof(V)) {
  292|       |               // we cast to a lower precision floating point value before writing out
  293|       |               if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 8) {
  294|       |                  const auto reduced = static_cast<double>(value);
  295|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  296|       |                  const auto end = glz::to_chars(start, reduced);
  297|       |                  ix += size_t(end - start);
  298|       |               }
  299|       |               else if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 4) {
  300|       |                  const auto reduced = static_cast<float>(value);
  301|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  302|       |                  const auto end = glz::to_chars(start, reduced);
  303|       |                  ix += size_t(end - start);
  304|       |               }
  305|       |               else {
  306|       |                  static_assert(false_v<V>, "invalid float_max_write_precision");
  307|       |               }
  308|       |            }
  309|       |            // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  310|       |            // tables are dropped (recomputed on the fly). Much faster than the
  311|       |            // old simple_float::to_chars path at essentially the same footprint.
  312|       |            // See discussion #2519.
  313|       |            else if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  314|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  315|       |               const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  316|       |               ix += size_t(end - start);
  317|       |            }
  318|       |            else if constexpr (is_any_of<V, float, double>) {
  319|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  320|       |               const auto end = glz::to_chars(start, value);
  321|       |               ix += size_t(end - start);
  322|       |            }
  323|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  324|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  325|       |            else if constexpr (is_float128<V>) {
  326|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  327|       |               const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  328|       |               if (ec != std::errc()) {
  329|       |                  ctx.error = error_code::unexpected_end;
  330|       |                  return;
  331|       |               }
  332|       |               ix += size_t(ptr - start);
  333|       |            }
  334|       |#endif
  335|       |            else {
  336|       |               static_assert(false_v<V>, "type is not supported");
  337|       |            }
  338|       |         }
  339|       |         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  340|       |            // Small integers: always use to_chars (400B tables)
  341|       |            // The 40KB digit_quads table doesn't help for these small ranges
  342|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  343|       |            const auto end = glz::to_chars(start, value);
  344|       |            ix += size_t(end - start);
  345|       |         }
  346|   930k|         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  347|   930k|            const auto start = reinterpret_cast<char*>(&b[ix]);
  348|       |            if constexpr (is_size_optimized(Opts)) {
  349|       |               // Size mode: use glz::to_chars (400B lookup tables)
  350|       |               const auto end = glz::to_chars(start, value);
  351|       |               ix += size_t(end - start);
  352|       |            }
  353|   930k|            else {
  354|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  355|   930k|               const auto end = glz::to_chars_40kb(start, value);
  356|   930k|               ix += size_t(end - start);
  357|   930k|            }
  358|       |         }
  359|       |         else if constexpr (std::integral<V>) {
  360|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  361|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  362|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  363|       |            if constexpr (is_size_optimized(Opts)) {
  364|       |               // Size mode: use glz::to_chars (400B lookup tables)
  365|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  366|       |               ix += size_t(end - start);
  367|       |            }
  368|       |            else {
  369|       |               // Normal mode: use to_chars_40kb
  370|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  371|       |               ix += size_t(end - start);
  372|       |            }
  373|       |         }
  374|       |         else {
  375|       |            static_assert(false_v<V>, "type is not supported");
  376|       |         }
  377|   930k|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERhTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  205|  2.93M|      {
  206|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  207|       |            // more efficient strings in C++23:
  208|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  209|       |          }*/
  210|       |
  211|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  212|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  213|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  214|       |            if (const auto k = ix + 64; k > b.size()) {
  215|       |               grow_buffer(b, k);
  216|       |            }
  217|       |         }
  218|       |
  219|  2.93M|         using V = std::decay_t<decltype(value)>;
  220|       |
  221|       |         if constexpr (std::floating_point<V>) {
  222|       |            using opts_type = std::decay_t<decltype(Opts)>;
  223|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  224|       |
  225|       |            // User-specified float_format takes priority over all other options
  226|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  227|       |#if GLZ_USE_STD_FORMAT_FLOAT
  228|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  229|       |               // Format string is validated at compile-time via std::format_string
  230|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  231|       |
  232|       |               if constexpr (check_write_unchecked(Opts)) {
  233|       |                  // Caller guarantees buffer has enough space
  234|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  235|       |                  auto result = std::format_to(start, fmt, V(value));
  236|       |                  ix += size_t(result - start);
  237|       |               }
  238|       |               else {
  239|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  240|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  241|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  242|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  243|       |                  const auto available = b.size() - ix;
  244|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  245|       |
  246|       |                  if (static_cast<size_t>(size) > available) {
  247|       |                     // Output was truncated - size tells us exactly how much space we need
  248|       |                     if constexpr (resizable<B>) {
  249|       |                        grow_buffer(b, ix + size);
  250|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  251|       |                     }
  252|       |                     else {
  253|       |                        ctx.error = error_code::unexpected_end;
  254|       |                        return;
  255|       |                     }
  256|       |                  }
  257|       |                  ix += size;
  258|       |               }
  259|       |#else
  260|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  261|       |               // Convert std::format spec to printf format at compile time
  262|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  263|       |
  264|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  265|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  266|       |
  267|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  268|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  269|       |
  270|       |               if (len < 0) {
  271|       |                  ctx.error = error_code::unexpected_end;
  272|       |                  return;
  273|       |               }
  274|       |
  275|       |               if (static_cast<size_t>(len) >= available) {
  276|       |                  // Output was truncated, need to resize and retry
  277|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  278|       |                     grow_buffer(b, ix + static_cast<size_t>(len) + 1);
  279|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  280|       |                                   static_cast<double>(value));
  281|       |                  }
  282|       |                  else {
  283|       |                     ctx.error = error_code::unexpected_end;
  284|       |                     return;
  285|       |                  }
  286|       |               }
  287|       |               ix += static_cast<size_t>(len);
  288|       |#endif
  289|       |            }
  290|       |            else if constexpr (uint8_t(check_float_max_write_precision(Opts)) > 0 &&
  291|       |                               uint8_t(check_float_max_write_precision(Opts)) < sizeof(V)) {
  292|       |               // we cast to a lower precision floating point value before writing out
  293|       |               if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 8) {
  294|       |                  const auto reduced = static_cast<double>(value);
  295|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  296|       |                  const auto end = glz::to_chars(start, reduced);
  297|       |                  ix += size_t(end - start);
  298|       |               }
  299|       |               else if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 4) {
  300|       |                  const auto reduced = static_cast<float>(value);
  301|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  302|       |                  const auto end = glz::to_chars(start, reduced);
  303|       |                  ix += size_t(end - start);
  304|       |               }
  305|       |               else {
  306|       |                  static_assert(false_v<V>, "invalid float_max_write_precision");
  307|       |               }
  308|       |            }
  309|       |            // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  310|       |            // tables are dropped (recomputed on the fly). Much faster than the
  311|       |            // old simple_float::to_chars path at essentially the same footprint.
  312|       |            // See discussion #2519.
  313|       |            else if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  314|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  315|       |               const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  316|       |               ix += size_t(end - start);
  317|       |            }
  318|       |            else if constexpr (is_any_of<V, float, double>) {
  319|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  320|       |               const auto end = glz::to_chars(start, value);
  321|       |               ix += size_t(end - start);
  322|       |            }
  323|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  324|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  325|       |            else if constexpr (is_float128<V>) {
  326|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  327|       |               const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  328|       |               if (ec != std::errc()) {
  329|       |                  ctx.error = error_code::unexpected_end;
  330|       |                  return;
  331|       |               }
  332|       |               ix += size_t(ptr - start);
  333|       |            }
  334|       |#endif
  335|       |            else {
  336|       |               static_assert(false_v<V>, "type is not supported");
  337|       |            }
  338|       |         }
  339|  2.93M|         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  340|       |            // Small integers: always use to_chars (400B tables)
  341|       |            // The 40KB digit_quads table doesn't help for these small ranges
  342|  2.93M|            const auto start = reinterpret_cast<char*>(&b[ix]);
  343|  2.93M|            const auto end = glz::to_chars(start, value);
  344|  2.93M|            ix += size_t(end - start);
  345|       |         }
  346|       |         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  347|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  348|       |            if constexpr (is_size_optimized(Opts)) {
  349|       |               // Size mode: use glz::to_chars (400B lookup tables)
  350|       |               const auto end = glz::to_chars(start, value);
  351|       |               ix += size_t(end - start);
  352|       |            }
  353|       |            else {
  354|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  355|       |               const auto end = glz::to_chars_40kb(start, value);
  356|       |               ix += size_t(end - start);
  357|       |            }
  358|       |         }
  359|       |         else if constexpr (std::integral<V>) {
  360|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  361|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  362|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  363|       |            if constexpr (is_size_optimized(Opts)) {
  364|       |               // Size mode: use glz::to_chars (400B lookup tables)
  365|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  366|       |               ix += size_t(end - start);
  367|       |            }
  368|       |            else {
  369|       |               // Normal mode: use to_chars_40kb
  370|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  371|       |               ix += size_t(end - start);
  372|       |            }
  373|       |         }
  374|       |         else {
  375|       |            static_assert(false_v<V>, "type is not supported");
  376|       |         }
  377|  2.93M|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERtTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  205|  1.81M|      {
  206|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  207|       |            // more efficient strings in C++23:
  208|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  209|       |          }*/
  210|       |
  211|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  212|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  213|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  214|       |            if (const auto k = ix + 64; k > b.size()) {
  215|       |               grow_buffer(b, k);
  216|       |            }
  217|       |         }
  218|       |
  219|  1.81M|         using V = std::decay_t<decltype(value)>;
  220|       |
  221|       |         if constexpr (std::floating_point<V>) {
  222|       |            using opts_type = std::decay_t<decltype(Opts)>;
  223|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  224|       |
  225|       |            // User-specified float_format takes priority over all other options
  226|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  227|       |#if GLZ_USE_STD_FORMAT_FLOAT
  228|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  229|       |               // Format string is validated at compile-time via std::format_string
  230|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  231|       |
  232|       |               if constexpr (check_write_unchecked(Opts)) {
  233|       |                  // Caller guarantees buffer has enough space
  234|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  235|       |                  auto result = std::format_to(start, fmt, V(value));
  236|       |                  ix += size_t(result - start);
  237|       |               }
  238|       |               else {
  239|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  240|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  241|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  242|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  243|       |                  const auto available = b.size() - ix;
  244|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  245|       |
  246|       |                  if (static_cast<size_t>(size) > available) {
  247|       |                     // Output was truncated - size tells us exactly how much space we need
  248|       |                     if constexpr (resizable<B>) {
  249|       |                        grow_buffer(b, ix + size);
  250|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  251|       |                     }
  252|       |                     else {
  253|       |                        ctx.error = error_code::unexpected_end;
  254|       |                        return;
  255|       |                     }
  256|       |                  }
  257|       |                  ix += size;
  258|       |               }
  259|       |#else
  260|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  261|       |               // Convert std::format spec to printf format at compile time
  262|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  263|       |
  264|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  265|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  266|       |
  267|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  268|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  269|       |
  270|       |               if (len < 0) {
  271|       |                  ctx.error = error_code::unexpected_end;
  272|       |                  return;
  273|       |               }
  274|       |
  275|       |               if (static_cast<size_t>(len) >= available) {
  276|       |                  // Output was truncated, need to resize and retry
  277|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  278|       |                     grow_buffer(b, ix + static_cast<size_t>(len) + 1);
  279|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  280|       |                                   static_cast<double>(value));
  281|       |                  }
  282|       |                  else {
  283|       |                     ctx.error = error_code::unexpected_end;
  284|       |                     return;
  285|       |                  }
  286|       |               }
  287|       |               ix += static_cast<size_t>(len);
  288|       |#endif
  289|       |            }
  290|       |            else if constexpr (uint8_t(check_float_max_write_precision(Opts)) > 0 &&
  291|       |                               uint8_t(check_float_max_write_precision(Opts)) < sizeof(V)) {
  292|       |               // we cast to a lower precision floating point value before writing out
  293|       |               if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 8) {
  294|       |                  const auto reduced = static_cast<double>(value);
  295|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  296|       |                  const auto end = glz::to_chars(start, reduced);
  297|       |                  ix += size_t(end - start);
  298|       |               }
  299|       |               else if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 4) {
  300|       |                  const auto reduced = static_cast<float>(value);
  301|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  302|       |                  const auto end = glz::to_chars(start, reduced);
  303|       |                  ix += size_t(end - start);
  304|       |               }
  305|       |               else {
  306|       |                  static_assert(false_v<V>, "invalid float_max_write_precision");
  307|       |               }
  308|       |            }
  309|       |            // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  310|       |            // tables are dropped (recomputed on the fly). Much faster than the
  311|       |            // old simple_float::to_chars path at essentially the same footprint.
  312|       |            // See discussion #2519.
  313|       |            else if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  314|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  315|       |               const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  316|       |               ix += size_t(end - start);
  317|       |            }
  318|       |            else if constexpr (is_any_of<V, float, double>) {
  319|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  320|       |               const auto end = glz::to_chars(start, value);
  321|       |               ix += size_t(end - start);
  322|       |            }
  323|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  324|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  325|       |            else if constexpr (is_float128<V>) {
  326|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  327|       |               const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  328|       |               if (ec != std::errc()) {
  329|       |                  ctx.error = error_code::unexpected_end;
  330|       |                  return;
  331|       |               }
  332|       |               ix += size_t(ptr - start);
  333|       |            }
  334|       |#endif
  335|       |            else {
  336|       |               static_assert(false_v<V>, "type is not supported");
  337|       |            }
  338|       |         }
  339|  1.81M|         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  340|       |            // Small integers: always use to_chars (400B tables)
  341|       |            // The 40KB digit_quads table doesn't help for these small ranges
  342|  1.81M|            const auto start = reinterpret_cast<char*>(&b[ix]);
  343|  1.81M|            const auto end = glz::to_chars(start, value);
  344|  1.81M|            ix += size_t(end - start);
  345|       |         }
  346|       |         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  347|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  348|       |            if constexpr (is_size_optimized(Opts)) {
  349|       |               // Size mode: use glz::to_chars (400B lookup tables)
  350|       |               const auto end = glz::to_chars(start, value);
  351|       |               ix += size_t(end - start);
  352|       |            }
  353|       |            else {
  354|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  355|       |               const auto end = glz::to_chars_40kb(start, value);
  356|       |               ix += size_t(end - start);
  357|       |            }
  358|       |         }
  359|       |         else if constexpr (std::integral<V>) {
  360|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  361|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  362|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  363|       |            if constexpr (is_size_optimized(Opts)) {
  364|       |               // Size mode: use glz::to_chars (400B lookup tables)
  365|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  366|       |               ix += size_t(end - start);
  367|       |            }
  368|       |            else {
  369|       |               // Normal mode: use to_chars_40kb
  370|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  371|       |               ix += size_t(end - start);
  372|       |            }
  373|       |         }
  374|       |         else {
  375|       |            static_assert(false_v<V>, "type is not supported");
  376|       |         }
  377|  1.81M|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERjTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  205|   900k|      {
  206|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  207|       |            // more efficient strings in C++23:
  208|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  209|       |          }*/
  210|       |
  211|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  212|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  213|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  214|       |            if (const auto k = ix + 64; k > b.size()) {
  215|       |               grow_buffer(b, k);
  216|       |            }
  217|       |         }
  218|       |
  219|   900k|         using V = std::decay_t<decltype(value)>;
  220|       |
  221|       |         if constexpr (std::floating_point<V>) {
  222|       |            using opts_type = std::decay_t<decltype(Opts)>;
  223|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  224|       |
  225|       |            // User-specified float_format takes priority over all other options
  226|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  227|       |#if GLZ_USE_STD_FORMAT_FLOAT
  228|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  229|       |               // Format string is validated at compile-time via std::format_string
  230|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  231|       |
  232|       |               if constexpr (check_write_unchecked(Opts)) {
  233|       |                  // Caller guarantees buffer has enough space
  234|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  235|       |                  auto result = std::format_to(start, fmt, V(value));
  236|       |                  ix += size_t(result - start);
  237|       |               }
  238|       |               else {
  239|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  240|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  241|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  242|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  243|       |                  const auto available = b.size() - ix;
  244|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  245|       |
  246|       |                  if (static_cast<size_t>(size) > available) {
  247|       |                     // Output was truncated - size tells us exactly how much space we need
  248|       |                     if constexpr (resizable<B>) {
  249|       |                        grow_buffer(b, ix + size);
  250|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  251|       |                     }
  252|       |                     else {
  253|       |                        ctx.error = error_code::unexpected_end;
  254|       |                        return;
  255|       |                     }
  256|       |                  }
  257|       |                  ix += size;
  258|       |               }
  259|       |#else
  260|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  261|       |               // Convert std::format spec to printf format at compile time
  262|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  263|       |
  264|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  265|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  266|       |
  267|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  268|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  269|       |
  270|       |               if (len < 0) {
  271|       |                  ctx.error = error_code::unexpected_end;
  272|       |                  return;
  273|       |               }
  274|       |
  275|       |               if (static_cast<size_t>(len) >= available) {
  276|       |                  // Output was truncated, need to resize and retry
  277|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  278|       |                     grow_buffer(b, ix + static_cast<size_t>(len) + 1);
  279|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  280|       |                                   static_cast<double>(value));
  281|       |                  }
  282|       |                  else {
  283|       |                     ctx.error = error_code::unexpected_end;
  284|       |                     return;
  285|       |                  }
  286|       |               }
  287|       |               ix += static_cast<size_t>(len);
  288|       |#endif
  289|       |            }
  290|       |            else if constexpr (uint8_t(check_float_max_write_precision(Opts)) > 0 &&
  291|       |                               uint8_t(check_float_max_write_precision(Opts)) < sizeof(V)) {
  292|       |               // we cast to a lower precision floating point value before writing out
  293|       |               if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 8) {
  294|       |                  const auto reduced = static_cast<double>(value);
  295|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  296|       |                  const auto end = glz::to_chars(start, reduced);
  297|       |                  ix += size_t(end - start);
  298|       |               }
  299|       |               else if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 4) {
  300|       |                  const auto reduced = static_cast<float>(value);
  301|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  302|       |                  const auto end = glz::to_chars(start, reduced);
  303|       |                  ix += size_t(end - start);
  304|       |               }
  305|       |               else {
  306|       |                  static_assert(false_v<V>, "invalid float_max_write_precision");
  307|       |               }
  308|       |            }
  309|       |            // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  310|       |            // tables are dropped (recomputed on the fly). Much faster than the
  311|       |            // old simple_float::to_chars path at essentially the same footprint.
  312|       |            // See discussion #2519.
  313|       |            else if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  314|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  315|       |               const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  316|       |               ix += size_t(end - start);
  317|       |            }
  318|       |            else if constexpr (is_any_of<V, float, double>) {
  319|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  320|       |               const auto end = glz::to_chars(start, value);
  321|       |               ix += size_t(end - start);
  322|       |            }
  323|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  324|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  325|       |            else if constexpr (is_float128<V>) {
  326|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  327|       |               const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  328|       |               if (ec != std::errc()) {
  329|       |                  ctx.error = error_code::unexpected_end;
  330|       |                  return;
  331|       |               }
  332|       |               ix += size_t(ptr - start);
  333|       |            }
  334|       |#endif
  335|       |            else {
  336|       |               static_assert(false_v<V>, "type is not supported");
  337|       |            }
  338|       |         }
  339|       |         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  340|       |            // Small integers: always use to_chars (400B tables)
  341|       |            // The 40KB digit_quads table doesn't help for these small ranges
  342|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  343|       |            const auto end = glz::to_chars(start, value);
  344|       |            ix += size_t(end - start);
  345|       |         }
  346|   900k|         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  347|   900k|            const auto start = reinterpret_cast<char*>(&b[ix]);
  348|       |            if constexpr (is_size_optimized(Opts)) {
  349|       |               // Size mode: use glz::to_chars (400B lookup tables)
  350|       |               const auto end = glz::to_chars(start, value);
  351|       |               ix += size_t(end - start);
  352|       |            }
  353|   900k|            else {
  354|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  355|   900k|               const auto end = glz::to_chars_40kb(start, value);
  356|   900k|               ix += size_t(end - start);
  357|   900k|            }
  358|       |         }
  359|       |         else if constexpr (std::integral<V>) {
  360|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  361|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  362|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  363|       |            if constexpr (is_size_optimized(Opts)) {
  364|       |               // Size mode: use glz::to_chars (400B lookup tables)
  365|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  366|       |               ix += size_t(end - start);
  367|       |            }
  368|       |            else {
  369|       |               // Normal mode: use to_chars_40kb
  370|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  371|       |               ix += size_t(end - start);
  372|       |            }
  373|       |         }
  374|       |         else {
  375|       |            static_assert(false_v<V>, "type is not supported");
  376|       |         }
  377|   900k|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERmTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  205|   317k|      {
  206|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  207|       |            // more efficient strings in C++23:
  208|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  209|       |          }*/
  210|       |
  211|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  212|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  213|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  214|       |            if (const auto k = ix + 64; k > b.size()) {
  215|       |               grow_buffer(b, k);
  216|       |            }
  217|       |         }
  218|       |
  219|   317k|         using V = std::decay_t<decltype(value)>;
  220|       |
  221|       |         if constexpr (std::floating_point<V>) {
  222|       |            using opts_type = std::decay_t<decltype(Opts)>;
  223|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  224|       |
  225|       |            // User-specified float_format takes priority over all other options
  226|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  227|       |#if GLZ_USE_STD_FORMAT_FLOAT
  228|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  229|       |               // Format string is validated at compile-time via std::format_string
  230|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  231|       |
  232|       |               if constexpr (check_write_unchecked(Opts)) {
  233|       |                  // Caller guarantees buffer has enough space
  234|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  235|       |                  auto result = std::format_to(start, fmt, V(value));
  236|       |                  ix += size_t(result - start);
  237|       |               }
  238|       |               else {
  239|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  240|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  241|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  242|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  243|       |                  const auto available = b.size() - ix;
  244|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  245|       |
  246|       |                  if (static_cast<size_t>(size) > available) {
  247|       |                     // Output was truncated - size tells us exactly how much space we need
  248|       |                     if constexpr (resizable<B>) {
  249|       |                        grow_buffer(b, ix + size);
  250|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  251|       |                     }
  252|       |                     else {
  253|       |                        ctx.error = error_code::unexpected_end;
  254|       |                        return;
  255|       |                     }
  256|       |                  }
  257|       |                  ix += size;
  258|       |               }
  259|       |#else
  260|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  261|       |               // Convert std::format spec to printf format at compile time
  262|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  263|       |
  264|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  265|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  266|       |
  267|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  268|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  269|       |
  270|       |               if (len < 0) {
  271|       |                  ctx.error = error_code::unexpected_end;
  272|       |                  return;
  273|       |               }
  274|       |
  275|       |               if (static_cast<size_t>(len) >= available) {
  276|       |                  // Output was truncated, need to resize and retry
  277|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  278|       |                     grow_buffer(b, ix + static_cast<size_t>(len) + 1);
  279|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  280|       |                                   static_cast<double>(value));
  281|       |                  }
  282|       |                  else {
  283|       |                     ctx.error = error_code::unexpected_end;
  284|       |                     return;
  285|       |                  }
  286|       |               }
  287|       |               ix += static_cast<size_t>(len);
  288|       |#endif
  289|       |            }
  290|       |            else if constexpr (uint8_t(check_float_max_write_precision(Opts)) > 0 &&
  291|       |                               uint8_t(check_float_max_write_precision(Opts)) < sizeof(V)) {
  292|       |               // we cast to a lower precision floating point value before writing out
  293|       |               if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 8) {
  294|       |                  const auto reduced = static_cast<double>(value);
  295|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  296|       |                  const auto end = glz::to_chars(start, reduced);
  297|       |                  ix += size_t(end - start);
  298|       |               }
  299|       |               else if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 4) {
  300|       |                  const auto reduced = static_cast<float>(value);
  301|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  302|       |                  const auto end = glz::to_chars(start, reduced);
  303|       |                  ix += size_t(end - start);
  304|       |               }
  305|       |               else {
  306|       |                  static_assert(false_v<V>, "invalid float_max_write_precision");
  307|       |               }
  308|       |            }
  309|       |            // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  310|       |            // tables are dropped (recomputed on the fly). Much faster than the
  311|       |            // old simple_float::to_chars path at essentially the same footprint.
  312|       |            // See discussion #2519.
  313|       |            else if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  314|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  315|       |               const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  316|       |               ix += size_t(end - start);
  317|       |            }
  318|       |            else if constexpr (is_any_of<V, float, double>) {
  319|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  320|       |               const auto end = glz::to_chars(start, value);
  321|       |               ix += size_t(end - start);
  322|       |            }
  323|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  324|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  325|       |            else if constexpr (is_float128<V>) {
  326|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  327|       |               const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  328|       |               if (ec != std::errc()) {
  329|       |                  ctx.error = error_code::unexpected_end;
  330|       |                  return;
  331|       |               }
  332|       |               ix += size_t(ptr - start);
  333|       |            }
  334|       |#endif
  335|       |            else {
  336|       |               static_assert(false_v<V>, "type is not supported");
  337|       |            }
  338|       |         }
  339|       |         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  340|       |            // Small integers: always use to_chars (400B tables)
  341|       |            // The 40KB digit_quads table doesn't help for these small ranges
  342|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  343|       |            const auto end = glz::to_chars(start, value);
  344|       |            ix += size_t(end - start);
  345|       |         }
  346|   317k|         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  347|   317k|            const auto start = reinterpret_cast<char*>(&b[ix]);
  348|       |            if constexpr (is_size_optimized(Opts)) {
  349|       |               // Size mode: use glz::to_chars (400B lookup tables)
  350|       |               const auto end = glz::to_chars(start, value);
  351|       |               ix += size_t(end - start);
  352|       |            }
  353|   317k|            else {
  354|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  355|   317k|               const auto end = glz::to_chars_40kb(start, value);
  356|   317k|               ix += size_t(end - start);
  357|   317k|            }
  358|       |         }
  359|       |         else if constexpr (std::integral<V>) {
  360|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  361|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  362|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  363|       |            if constexpr (is_size_optimized(Opts)) {
  364|       |               // Size mode: use glz::to_chars (400B lookup tables)
  365|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  366|       |               ix += size_t(end - start);
  367|       |            }
  368|       |            else {
  369|       |               // Normal mode: use to_chars_40kb
  370|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  371|       |               ix += size_t(end - start);
  372|       |            }
  373|       |         }
  374|       |         else {
  375|       |            static_assert(false_v<V>, "type is not supported");
  376|       |         }
  377|   317k|      }

_ZN3glz6detail9emit_charINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT0_cRT_Rm:
 1154|   530M|      {
 1155|   530M|         if (!ensure_space(ctx, out, ix + 1)) [[unlikely]] {
  ------------------
  |  Branch (1155:14): [True: 0, False: 530M]
  ------------------
 1156|      0|            return false;
 1157|      0|         }
 1158|   530M|         dump<false>(c, out, ix);
 1159|   530M|         return true;
 1160|   530M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm5EEEtlA5_cLc116ELc114ELc117ELc101EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  88.3M|      {
 1165|  88.3M|         static constexpr auto s = str.sv();
 1166|  88.3M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 88.3M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  88.3M|         dump<false>(s, out, ix);
 1170|  88.3M|         return true;
 1171|  88.3M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm6EEEtlA6_cLc102ELc97ELc108ELc115ELc101EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|   383M|      {
 1165|   383M|         static constexpr auto s = str.sv();
 1166|   383M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 383M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|   383M|         dump<false>(s, out, ix);
 1170|   383M|         return true;
 1171|   383M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm5EEEtlA5_cLc110ELc117ELc108ELc108EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  15.1M|      {
 1165|  15.1M|         static constexpr auto s = str.sv();
 1166|  15.1M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 15.1M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  15.1M|         dump<false>(s, out, ix);
 1170|  15.1M|         return true;
 1171|  15.1M|      }
_ZN3glz2toILj10EfE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERfTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  1.61M|      {
  815|  1.61M|         if constexpr (not check_write_unchecked(Opts)) {
  816|  1.61M|            static_assert(required_padding<T>());
  817|  1.61M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 1.61M]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  1.61M|         }
  821|       |
  822|  1.61M|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|  1.61M|         else {
  832|  1.61M|            write_chars::op<O>(value, ctx, b, ix);
  833|  1.61M|         }
  834|  1.61M|      }
_ZN3glz16required_paddingIfEEmv:
  538|  1.61M|   {
  539|  1.61M|      constexpr auto value = []() -> size_t {
  540|  1.61M|         if constexpr (boolean_like<T>) {
  541|  1.61M|            return 8;
  542|  1.61M|         }
  543|  1.61M|         else if constexpr (num_t<T>) {
  544|  1.61M|            if constexpr (std::floating_point<T>) {
  545|  1.61M|               if constexpr (sizeof(T) > 8) {
  546|  1.61M|                  return 64;
  547|  1.61M|               }
  548|  1.61M|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  1.61M|                  return zmij::double_buffer_size + 4;
  551|  1.61M|               }
  552|  1.61M|               else {
  553|  1.61M|                  return zmij::float_buffer_size + 4;
  554|  1.61M|               }
  555|  1.61M|            }
  556|  1.61M|            else if constexpr (sizeof(T) > 4) {
  557|  1.61M|               return 24;
  558|  1.61M|            }
  559|  1.61M|            else if constexpr (sizeof(T) > 2) {
  560|  1.61M|               return 16;
  561|  1.61M|            }
  562|  1.61M|            else {
  563|  1.61M|               return 8;
  564|  1.61M|            }
  565|  1.61M|         }
  566|  1.61M|         else if constexpr (nullable_like<T>) {
  567|  1.61M|            if constexpr (has_value_type<T>) {
  568|  1.61M|               return required_padding<typename T::value_type>();
  569|  1.61M|            }
  570|  1.61M|            else if constexpr (has_element_type<T>) {
  571|  1.61M|               return required_padding<typename T::element_type>();
  572|  1.61M|            }
  573|  1.61M|            else {
  574|  1.61M|               return 0;
  575|  1.61M|            }
  576|  1.61M|         }
  577|  1.61M|         else if constexpr (always_null_t<T>) {
  578|  1.61M|            return 8;
  579|  1.61M|         }
  580|  1.61M|         else {
  581|  1.61M|            return 0;
  582|  1.61M|         }
  583|  1.61M|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|  1.61M|      return value;
  591|  1.61M|   }
_ZN3glz2toILj10EdE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERdTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  1.11M|      {
  815|  1.11M|         if constexpr (not check_write_unchecked(Opts)) {
  816|  1.11M|            static_assert(required_padding<T>());
  817|  1.11M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 1.11M]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  1.11M|         }
  821|       |
  822|  1.11M|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|  1.11M|         else {
  832|  1.11M|            write_chars::op<O>(value, ctx, b, ix);
  833|  1.11M|         }
  834|  1.11M|      }
_ZN3glz16required_paddingIdEEmv:
  538|  1.11M|   {
  539|  1.11M|      constexpr auto value = []() -> size_t {
  540|  1.11M|         if constexpr (boolean_like<T>) {
  541|  1.11M|            return 8;
  542|  1.11M|         }
  543|  1.11M|         else if constexpr (num_t<T>) {
  544|  1.11M|            if constexpr (std::floating_point<T>) {
  545|  1.11M|               if constexpr (sizeof(T) > 8) {
  546|  1.11M|                  return 64;
  547|  1.11M|               }
  548|  1.11M|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  1.11M|                  return zmij::double_buffer_size + 4;
  551|  1.11M|               }
  552|  1.11M|               else {
  553|  1.11M|                  return zmij::float_buffer_size + 4;
  554|  1.11M|               }
  555|  1.11M|            }
  556|  1.11M|            else if constexpr (sizeof(T) > 4) {
  557|  1.11M|               return 24;
  558|  1.11M|            }
  559|  1.11M|            else if constexpr (sizeof(T) > 2) {
  560|  1.11M|               return 16;
  561|  1.11M|            }
  562|  1.11M|            else {
  563|  1.11M|               return 8;
  564|  1.11M|            }
  565|  1.11M|         }
  566|  1.11M|         else if constexpr (nullable_like<T>) {
  567|  1.11M|            if constexpr (has_value_type<T>) {
  568|  1.11M|               return required_padding<typename T::value_type>();
  569|  1.11M|            }
  570|  1.11M|            else if constexpr (has_element_type<T>) {
  571|  1.11M|               return required_padding<typename T::element_type>();
  572|  1.11M|            }
  573|  1.11M|            else {
  574|  1.11M|               return 0;
  575|  1.11M|            }
  576|  1.11M|         }
  577|  1.11M|         else if constexpr (always_null_t<T>) {
  578|  1.11M|            return 8;
  579|  1.11M|         }
  580|  1.11M|         else {
  581|  1.11M|            return 0;
  582|  1.11M|         }
  583|  1.11M|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|  1.11M|      return value;
  591|  1.11M|   }
_ZN3glz2toILj10EaE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERaTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|   863k|      {
  815|   863k|         if constexpr (not check_write_unchecked(Opts)) {
  816|   863k|            static_assert(required_padding<T>());
  817|   863k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 863k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|   863k|         }
  821|       |
  822|   863k|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|   863k|         else {
  832|   863k|            write_chars::op<O>(value, ctx, b, ix);
  833|   863k|         }
  834|   863k|      }
_ZN3glz16required_paddingIaEEmv:
  538|   863k|   {
  539|   863k|      constexpr auto value = []() -> size_t {
  540|   863k|         if constexpr (boolean_like<T>) {
  541|   863k|            return 8;
  542|   863k|         }
  543|   863k|         else if constexpr (num_t<T>) {
  544|   863k|            if constexpr (std::floating_point<T>) {
  545|   863k|               if constexpr (sizeof(T) > 8) {
  546|   863k|                  return 64;
  547|   863k|               }
  548|   863k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|   863k|                  return zmij::double_buffer_size + 4;
  551|   863k|               }
  552|   863k|               else {
  553|   863k|                  return zmij::float_buffer_size + 4;
  554|   863k|               }
  555|   863k|            }
  556|   863k|            else if constexpr (sizeof(T) > 4) {
  557|   863k|               return 24;
  558|   863k|            }
  559|   863k|            else if constexpr (sizeof(T) > 2) {
  560|   863k|               return 16;
  561|   863k|            }
  562|   863k|            else {
  563|   863k|               return 8;
  564|   863k|            }
  565|   863k|         }
  566|   863k|         else if constexpr (nullable_like<T>) {
  567|   863k|            if constexpr (has_value_type<T>) {
  568|   863k|               return required_padding<typename T::value_type>();
  569|   863k|            }
  570|   863k|            else if constexpr (has_element_type<T>) {
  571|   863k|               return required_padding<typename T::element_type>();
  572|   863k|            }
  573|   863k|            else {
  574|   863k|               return 0;
  575|   863k|            }
  576|   863k|         }
  577|   863k|         else if constexpr (always_null_t<T>) {
  578|   863k|            return 8;
  579|   863k|         }
  580|   863k|         else {
  581|   863k|            return 0;
  582|   863k|         }
  583|   863k|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|   863k|      return value;
  591|   863k|   }
_ZN3glz2toILj10EsE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERsTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  2.03M|      {
  815|  2.03M|         if constexpr (not check_write_unchecked(Opts)) {
  816|  2.03M|            static_assert(required_padding<T>());
  817|  2.03M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 2.03M]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  2.03M|         }
  821|       |
  822|  2.03M|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|  2.03M|         else {
  832|  2.03M|            write_chars::op<O>(value, ctx, b, ix);
  833|  2.03M|         }
  834|  2.03M|      }
_ZN3glz16required_paddingIsEEmv:
  538|  2.03M|   {
  539|  2.03M|      constexpr auto value = []() -> size_t {
  540|  2.03M|         if constexpr (boolean_like<T>) {
  541|  2.03M|            return 8;
  542|  2.03M|         }
  543|  2.03M|         else if constexpr (num_t<T>) {
  544|  2.03M|            if constexpr (std::floating_point<T>) {
  545|  2.03M|               if constexpr (sizeof(T) > 8) {
  546|  2.03M|                  return 64;
  547|  2.03M|               }
  548|  2.03M|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  2.03M|                  return zmij::double_buffer_size + 4;
  551|  2.03M|               }
  552|  2.03M|               else {
  553|  2.03M|                  return zmij::float_buffer_size + 4;
  554|  2.03M|               }
  555|  2.03M|            }
  556|  2.03M|            else if constexpr (sizeof(T) > 4) {
  557|  2.03M|               return 24;
  558|  2.03M|            }
  559|  2.03M|            else if constexpr (sizeof(T) > 2) {
  560|  2.03M|               return 16;
  561|  2.03M|            }
  562|  2.03M|            else {
  563|  2.03M|               return 8;
  564|  2.03M|            }
  565|  2.03M|         }
  566|  2.03M|         else if constexpr (nullable_like<T>) {
  567|  2.03M|            if constexpr (has_value_type<T>) {
  568|  2.03M|               return required_padding<typename T::value_type>();
  569|  2.03M|            }
  570|  2.03M|            else if constexpr (has_element_type<T>) {
  571|  2.03M|               return required_padding<typename T::element_type>();
  572|  2.03M|            }
  573|  2.03M|            else {
  574|  2.03M|               return 0;
  575|  2.03M|            }
  576|  2.03M|         }
  577|  2.03M|         else if constexpr (always_null_t<T>) {
  578|  2.03M|            return 8;
  579|  2.03M|         }
  580|  2.03M|         else {
  581|  2.03M|            return 0;
  582|  2.03M|         }
  583|  2.03M|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|  2.03M|      return value;
  591|  2.03M|   }
_ZN3glz2toILj10EiE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERiTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|   905k|      {
  815|   905k|         if constexpr (not check_write_unchecked(Opts)) {
  816|   905k|            static_assert(required_padding<T>());
  817|   905k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 905k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|   905k|         }
  821|       |
  822|   905k|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|   905k|         else {
  832|   905k|            write_chars::op<O>(value, ctx, b, ix);
  833|   905k|         }
  834|   905k|      }
_ZN3glz16required_paddingIiEEmv:
  538|   905k|   {
  539|   905k|      constexpr auto value = []() -> size_t {
  540|   905k|         if constexpr (boolean_like<T>) {
  541|   905k|            return 8;
  542|   905k|         }
  543|   905k|         else if constexpr (num_t<T>) {
  544|   905k|            if constexpr (std::floating_point<T>) {
  545|   905k|               if constexpr (sizeof(T) > 8) {
  546|   905k|                  return 64;
  547|   905k|               }
  548|   905k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|   905k|                  return zmij::double_buffer_size + 4;
  551|   905k|               }
  552|   905k|               else {
  553|   905k|                  return zmij::float_buffer_size + 4;
  554|   905k|               }
  555|   905k|            }
  556|   905k|            else if constexpr (sizeof(T) > 4) {
  557|   905k|               return 24;
  558|   905k|            }
  559|   905k|            else if constexpr (sizeof(T) > 2) {
  560|   905k|               return 16;
  561|   905k|            }
  562|   905k|            else {
  563|   905k|               return 8;
  564|   905k|            }
  565|   905k|         }
  566|   905k|         else if constexpr (nullable_like<T>) {
  567|   905k|            if constexpr (has_value_type<T>) {
  568|   905k|               return required_padding<typename T::value_type>();
  569|   905k|            }
  570|   905k|            else if constexpr (has_element_type<T>) {
  571|   905k|               return required_padding<typename T::element_type>();
  572|   905k|            }
  573|   905k|            else {
  574|   905k|               return 0;
  575|   905k|            }
  576|   905k|         }
  577|   905k|         else if constexpr (always_null_t<T>) {
  578|   905k|            return 8;
  579|   905k|         }
  580|   905k|         else {
  581|   905k|            return 0;
  582|   905k|         }
  583|   905k|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|   905k|      return value;
  591|   905k|   }
_ZN3glz2toILj10ElE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERlTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|   930k|      {
  815|   930k|         if constexpr (not check_write_unchecked(Opts)) {
  816|   930k|            static_assert(required_padding<T>());
  817|   930k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 930k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|   930k|         }
  821|       |
  822|   930k|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|   930k|         else {
  832|   930k|            write_chars::op<O>(value, ctx, b, ix);
  833|   930k|         }
  834|   930k|      }
_ZN3glz16required_paddingIlEEmv:
  538|   930k|   {
  539|   930k|      constexpr auto value = []() -> size_t {
  540|   930k|         if constexpr (boolean_like<T>) {
  541|   930k|            return 8;
  542|   930k|         }
  543|   930k|         else if constexpr (num_t<T>) {
  544|   930k|            if constexpr (std::floating_point<T>) {
  545|   930k|               if constexpr (sizeof(T) > 8) {
  546|   930k|                  return 64;
  547|   930k|               }
  548|   930k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|   930k|                  return zmij::double_buffer_size + 4;
  551|   930k|               }
  552|   930k|               else {
  553|   930k|                  return zmij::float_buffer_size + 4;
  554|   930k|               }
  555|   930k|            }
  556|   930k|            else if constexpr (sizeof(T) > 4) {
  557|   930k|               return 24;
  558|   930k|            }
  559|   930k|            else if constexpr (sizeof(T) > 2) {
  560|   930k|               return 16;
  561|   930k|            }
  562|   930k|            else {
  563|   930k|               return 8;
  564|   930k|            }
  565|   930k|         }
  566|   930k|         else if constexpr (nullable_like<T>) {
  567|   930k|            if constexpr (has_value_type<T>) {
  568|   930k|               return required_padding<typename T::value_type>();
  569|   930k|            }
  570|   930k|            else if constexpr (has_element_type<T>) {
  571|   930k|               return required_padding<typename T::element_type>();
  572|   930k|            }
  573|   930k|            else {
  574|   930k|               return 0;
  575|   930k|            }
  576|   930k|         }
  577|   930k|         else if constexpr (always_null_t<T>) {
  578|   930k|            return 8;
  579|   930k|         }
  580|   930k|         else {
  581|   930k|            return 0;
  582|   930k|         }
  583|   930k|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|   930k|      return value;
  591|   930k|   }
_ZN3glz2toILj10EhE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERhTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  2.93M|      {
  815|  2.93M|         if constexpr (not check_write_unchecked(Opts)) {
  816|  2.93M|            static_assert(required_padding<T>());
  817|  2.93M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 2.93M]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  2.93M|         }
  821|       |
  822|  2.93M|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|  2.93M|         else {
  832|  2.93M|            write_chars::op<O>(value, ctx, b, ix);
  833|  2.93M|         }
  834|  2.93M|      }
_ZN3glz16required_paddingIhEEmv:
  538|  2.93M|   {
  539|  2.93M|      constexpr auto value = []() -> size_t {
  540|  2.93M|         if constexpr (boolean_like<T>) {
  541|  2.93M|            return 8;
  542|  2.93M|         }
  543|  2.93M|         else if constexpr (num_t<T>) {
  544|  2.93M|            if constexpr (std::floating_point<T>) {
  545|  2.93M|               if constexpr (sizeof(T) > 8) {
  546|  2.93M|                  return 64;
  547|  2.93M|               }
  548|  2.93M|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  2.93M|                  return zmij::double_buffer_size + 4;
  551|  2.93M|               }
  552|  2.93M|               else {
  553|  2.93M|                  return zmij::float_buffer_size + 4;
  554|  2.93M|               }
  555|  2.93M|            }
  556|  2.93M|            else if constexpr (sizeof(T) > 4) {
  557|  2.93M|               return 24;
  558|  2.93M|            }
  559|  2.93M|            else if constexpr (sizeof(T) > 2) {
  560|  2.93M|               return 16;
  561|  2.93M|            }
  562|  2.93M|            else {
  563|  2.93M|               return 8;
  564|  2.93M|            }
  565|  2.93M|         }
  566|  2.93M|         else if constexpr (nullable_like<T>) {
  567|  2.93M|            if constexpr (has_value_type<T>) {
  568|  2.93M|               return required_padding<typename T::value_type>();
  569|  2.93M|            }
  570|  2.93M|            else if constexpr (has_element_type<T>) {
  571|  2.93M|               return required_padding<typename T::element_type>();
  572|  2.93M|            }
  573|  2.93M|            else {
  574|  2.93M|               return 0;
  575|  2.93M|            }
  576|  2.93M|         }
  577|  2.93M|         else if constexpr (always_null_t<T>) {
  578|  2.93M|            return 8;
  579|  2.93M|         }
  580|  2.93M|         else {
  581|  2.93M|            return 0;
  582|  2.93M|         }
  583|  2.93M|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|  2.93M|      return value;
  591|  2.93M|   }
_ZN3glz2toILj10EtE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERtTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  1.81M|      {
  815|  1.81M|         if constexpr (not check_write_unchecked(Opts)) {
  816|  1.81M|            static_assert(required_padding<T>());
  817|  1.81M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 1.81M]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  1.81M|         }
  821|       |
  822|  1.81M|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|  1.81M|         else {
  832|  1.81M|            write_chars::op<O>(value, ctx, b, ix);
  833|  1.81M|         }
  834|  1.81M|      }
_ZN3glz16required_paddingItEEmv:
  538|  1.81M|   {
  539|  1.81M|      constexpr auto value = []() -> size_t {
  540|  1.81M|         if constexpr (boolean_like<T>) {
  541|  1.81M|            return 8;
  542|  1.81M|         }
  543|  1.81M|         else if constexpr (num_t<T>) {
  544|  1.81M|            if constexpr (std::floating_point<T>) {
  545|  1.81M|               if constexpr (sizeof(T) > 8) {
  546|  1.81M|                  return 64;
  547|  1.81M|               }
  548|  1.81M|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  1.81M|                  return zmij::double_buffer_size + 4;
  551|  1.81M|               }
  552|  1.81M|               else {
  553|  1.81M|                  return zmij::float_buffer_size + 4;
  554|  1.81M|               }
  555|  1.81M|            }
  556|  1.81M|            else if constexpr (sizeof(T) > 4) {
  557|  1.81M|               return 24;
  558|  1.81M|            }
  559|  1.81M|            else if constexpr (sizeof(T) > 2) {
  560|  1.81M|               return 16;
  561|  1.81M|            }
  562|  1.81M|            else {
  563|  1.81M|               return 8;
  564|  1.81M|            }
  565|  1.81M|         }
  566|  1.81M|         else if constexpr (nullable_like<T>) {
  567|  1.81M|            if constexpr (has_value_type<T>) {
  568|  1.81M|               return required_padding<typename T::value_type>();
  569|  1.81M|            }
  570|  1.81M|            else if constexpr (has_element_type<T>) {
  571|  1.81M|               return required_padding<typename T::element_type>();
  572|  1.81M|            }
  573|  1.81M|            else {
  574|  1.81M|               return 0;
  575|  1.81M|            }
  576|  1.81M|         }
  577|  1.81M|         else if constexpr (always_null_t<T>) {
  578|  1.81M|            return 8;
  579|  1.81M|         }
  580|  1.81M|         else {
  581|  1.81M|            return 0;
  582|  1.81M|         }
  583|  1.81M|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|  1.81M|      return value;
  591|  1.81M|   }
_ZN3glz2toILj10EjE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERjTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|   900k|      {
  815|   900k|         if constexpr (not check_write_unchecked(Opts)) {
  816|   900k|            static_assert(required_padding<T>());
  817|   900k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 900k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|   900k|         }
  821|       |
  822|   900k|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|   900k|         else {
  832|   900k|            write_chars::op<O>(value, ctx, b, ix);
  833|   900k|         }
  834|   900k|      }
_ZN3glz16required_paddingIjEEmv:
  538|   900k|   {
  539|   900k|      constexpr auto value = []() -> size_t {
  540|   900k|         if constexpr (boolean_like<T>) {
  541|   900k|            return 8;
  542|   900k|         }
  543|   900k|         else if constexpr (num_t<T>) {
  544|   900k|            if constexpr (std::floating_point<T>) {
  545|   900k|               if constexpr (sizeof(T) > 8) {
  546|   900k|                  return 64;
  547|   900k|               }
  548|   900k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|   900k|                  return zmij::double_buffer_size + 4;
  551|   900k|               }
  552|   900k|               else {
  553|   900k|                  return zmij::float_buffer_size + 4;
  554|   900k|               }
  555|   900k|            }
  556|   900k|            else if constexpr (sizeof(T) > 4) {
  557|   900k|               return 24;
  558|   900k|            }
  559|   900k|            else if constexpr (sizeof(T) > 2) {
  560|   900k|               return 16;
  561|   900k|            }
  562|   900k|            else {
  563|   900k|               return 8;
  564|   900k|            }
  565|   900k|         }
  566|   900k|         else if constexpr (nullable_like<T>) {
  567|   900k|            if constexpr (has_value_type<T>) {
  568|   900k|               return required_padding<typename T::value_type>();
  569|   900k|            }
  570|   900k|            else if constexpr (has_element_type<T>) {
  571|   900k|               return required_padding<typename T::element_type>();
  572|   900k|            }
  573|   900k|            else {
  574|   900k|               return 0;
  575|   900k|            }
  576|   900k|         }
  577|   900k|         else if constexpr (always_null_t<T>) {
  578|   900k|            return 8;
  579|   900k|         }
  580|   900k|         else {
  581|   900k|            return 0;
  582|   900k|         }
  583|   900k|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|   900k|      return value;
  591|   900k|   }
_ZN3glz2toILj10EmE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERmTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|   317k|      {
  815|   317k|         if constexpr (not check_write_unchecked(Opts)) {
  816|   317k|            static_assert(required_padding<T>());
  817|   317k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 317k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|   317k|         }
  821|       |
  822|   317k|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|   317k|         else {
  832|   317k|            write_chars::op<O>(value, ctx, b, ix);
  833|   317k|         }
  834|   317k|      }
_ZN3glz16required_paddingImEEmv:
  538|   317k|   {
  539|   317k|      constexpr auto value = []() -> size_t {
  540|   317k|         if constexpr (boolean_like<T>) {
  541|   317k|            return 8;
  542|   317k|         }
  543|   317k|         else if constexpr (num_t<T>) {
  544|   317k|            if constexpr (std::floating_point<T>) {
  545|   317k|               if constexpr (sizeof(T) > 8) {
  546|   317k|                  return 64;
  547|   317k|               }
  548|   317k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|   317k|                  return zmij::double_buffer_size + 4;
  551|   317k|               }
  552|   317k|               else {
  553|   317k|                  return zmij::float_buffer_size + 4;
  554|   317k|               }
  555|   317k|            }
  556|   317k|            else if constexpr (sizeof(T) > 4) {
  557|   317k|               return 24;
  558|   317k|            }
  559|   317k|            else if constexpr (sizeof(T) > 2) {
  560|   317k|               return 16;
  561|   317k|            }
  562|   317k|            else {
  563|   317k|               return 8;
  564|   317k|            }
  565|   317k|         }
  566|   317k|         else if constexpr (nullable_like<T>) {
  567|   317k|            if constexpr (has_value_type<T>) {
  568|   317k|               return required_padding<typename T::value_type>();
  569|   317k|            }
  570|   317k|            else if constexpr (has_element_type<T>) {
  571|   317k|               return required_padding<typename T::element_type>();
  572|   317k|            }
  573|   317k|            else {
  574|   317k|               return 0;
  575|   317k|            }
  576|   317k|         }
  577|   317k|         else if constexpr (always_null_t<T>) {
  578|   317k|            return 8;
  579|   317k|         }
  580|   317k|         else {
  581|   317k|            return 0;
  582|   317k|         }
  583|   317k|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|   317k|      return value;
  591|   317k|   }
_ZN3glz6detail21emit_untrusted_stringITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEvRT1_NS3_17basic_string_viewIcS6_EERT0_Rm:
 1140|  1.79M|      {
 1141|  1.79M|         to<JSON, std::string_view>::template op<untrusted_string_emit_opts<Opts>>(s, ctx, out, ix);
 1142|  1.79M|      }
_ZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj256EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  845|  1.79M|      {
  846|       |         if constexpr (check_string_as_number(Opts)) {
  847|       |            const sv str = [&]() -> const sv {
  848|       |               if constexpr (array_char_t<T>) {
  849|       |                  const auto* start = value.data();
  850|       |                  const auto* end = static_cast<const char*>(std::memchr(start, '\0', value.size()));
  851|       |                  return sv{start, end ? size_t(end - start) : value.size()};
  852|       |               }
  853|       |               else if constexpr (u8str_t<T>) {
  854|       |                  return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  855|       |               }
  856|       |               else {
  857|       |                  return str_view<T>(value);
  858|       |               }
  859|       |            }();
  860|       |            if (!ensure_space(ctx, b, ix + str.size() + write_padding_bytes)) [[unlikely]] {
  861|       |               return;
  862|       |            }
  863|       |            dump_maybe_empty<false>(str, b, ix);
  864|       |         }
  865|       |         else if constexpr (char_t<T>) {
  866|       |            if constexpr (check_unquoted(Opts)) {
  867|       |               dump(value, b, ix);
  868|       |            }
  869|       |            else {
  870|       |               // 8 bytes is enough for quotes and escaped character (worst case: \uXXXX = 6 + 2 quotes)
  871|       |               if (!ensure_space(ctx, b, ix + 8)) [[unlikely]] {
  872|       |                  return;
  873|       |               }
  874|       |
  875|       |               std::memcpy(&b[ix], "\"", 1);
  876|       |               ++ix;
  877|       |               if (const auto escaped = char_escape_table[uint8_t(value)]; escaped) {
  878|       |                  std::memcpy(&b[ix], &escaped, 2);
  879|       |                  ix += 2;
  880|       |               }
  881|       |               else if (value == '\0') {
  882|       |                  // null character treated as empty string
  883|       |               }
  884|       |               else if constexpr (check_escape_control_characters(Opts)) {
  885|       |                  if (uint8_t(value) < 0x20) {
  886|       |                     // Write as \uXXXX format
  887|       |                     char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
  888|       |                     constexpr char hex_digits[] = "0123456789ABCDEF";
  889|       |                     unicode_escape[4] = hex_digits[(value >> 4) & 0xF];
  890|       |                     unicode_escape[5] = hex_digits[value & 0xF];
  891|       |                     std::memcpy(&b[ix], unicode_escape, 6);
  892|       |                     ix += 6;
  893|       |                  }
  894|       |                  else {
  895|       |                     std::memcpy(&b[ix], &value, 1);
  896|       |                     ++ix;
  897|       |                  }
  898|       |               }
  899|       |               else {
  900|       |                  if constexpr (check_reject_control_characters(Opts)) {
  901|       |                     if (uint8_t(value) < 0x20) [[unlikely]] {
  902|       |                        ctx.error = error_code::invalid_control_character;
  903|       |                     }
  904|       |                  }
  905|       |                  std::memcpy(&b[ix], &value, 1);
  906|       |                  ++ix;
  907|       |               }
  908|       |               std::memcpy(&b[ix], "\"", 1);
  909|       |               ++ix;
  910|       |            }
  911|       |         }
  912|  1.79M|         else {
  913|       |            if constexpr (check_raw_string(Opts)) {
  914|       |               const sv str = [&]() -> const sv {
  915|       |                  if constexpr (u8str_t<T>) {
  916|       |                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  917|       |                  }
  918|       |                  else {
  919|       |                     return str_view<T>(value);
  920|       |                  }
  921|       |               }();
  922|       |
  923|       |               // We need space for quotes and the string length: 2 + n.
  924|       |               // Use +8 for extra buffer
  925|       |               if (!ensure_space(ctx, b, ix + 8 + str.size())) [[unlikely]] {
  926|       |                  return;
  927|       |               }
  928|       |               // now we don't have to check writing
  929|       |
  930|       |               if constexpr (not check_unquoted(Opts)) {
  931|       |                  std::memcpy(&b[ix], "\"", 1);
  932|       |                  ++ix;
  933|       |               }
  934|       |               if (str.size()) [[likely]] {
  935|       |                  const auto n = str.size();
  936|       |                  std::memcpy(&b[ix], str.data(), n);
  937|       |                  ix += n;
  938|       |               }
  939|       |               if constexpr (not check_unquoted(Opts)) {
  940|       |                  std::memcpy(&b[ix], "\"", 1);
  941|       |                  ++ix;
  942|       |               }
  943|       |            }
  944|  1.79M|            else {
  945|  1.79M|               const sv str = [&]() -> const sv {
  946|  1.79M|                  if constexpr (array_char_t<T>) {
  947|  1.79M|                     return sv{value.data(), value.size()};
  948|  1.79M|                  }
  949|  1.79M|                  else if constexpr (u8str_t<T>) {
  950|  1.79M|                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  951|  1.79M|                  }
  952|  1.79M|                  else {
  953|  1.79M|                     return str_view<T>(value);
  954|  1.79M|                  }
  955|  1.79M|               }();
  956|  1.79M|               const auto n = str.size();
  957|       |
  958|       |               // In the case n == 0 we need two characters for quotes.
  959|       |               // For each individual character we need room for two characters to handle escapes.
  960|       |               // When using Unicode escapes, we might need up to 6 characters (\uXXXX) per character
  961|       |               if constexpr (check_escape_control_characters(Opts)) {
  962|       |                  if constexpr (has_bounded_capacity<B>) {
  963|       |                     // 6 bytes per character is a ceiling only a string of nothing but control
  964|       |                     // characters reaches. A resizable buffer merely over-allocates against it,
  965|       |                     // but a fixed buffer has nowhere to grow, so the ceiling would reject output
  966|       |                     // that fits. Measuring the string answers exactly, at the cost of a pass over
  967|       |                     // it, so bracket the measurement between two O(1) bounds and only pay it when
  968|       |                     // the answer is still in doubt: the ceiling fitting means yes, and the floor
  969|       |                     // of one byte per character not fitting means no.
  970|       |                     const size_t capacity = buffer_traits<std::remove_cvref_t<B>>::capacity(b);
  971|       |                     size_t required = ix + 10 + 6 * n;
  972|       |                     if (required > capacity) [[unlikely]] {
  973|       |                        required = ix + 10 + n;
  974|       |                        if (required <= capacity) {
  975|       |                           required = ix + 10 + detail::escaped_string_size(str);
  976|       |                        }
  977|       |                     }
  978|       |                     if (!ensure_space(ctx, b, required)) [[unlikely]] {
  979|       |                        return;
  980|       |                     }
  981|       |                  }
  982|       |                  // We need 2 + 6 * n characters in the worst case (all control chars)
  983|       |                  else if (!ensure_space(ctx, b, ix + 10 + 6 * n)) [[unlikely]] {
  984|       |                     return;
  985|       |                  }
  986|       |               }
  987|  1.79M|               else {
  988|       |                  // Using the original sizing
  989|  1.79M|                  if (!ensure_space(ctx, b, ix + 10 + 2 * n)) [[unlikely]] {
  ------------------
  |  Branch (989:23): [True: 0, False: 1.79M]
  ------------------
  990|      0|                     return;
  991|      0|                  }
  992|  1.79M|               }
  993|       |               // now we don't have to check writing
  994|       |
  995|       |               if constexpr (check_unquoted(Opts)) {
  996|       |                  if (n) {
  997|       |                     std::memcpy(&b[ix], str.data(), n);
  998|       |                     ix += n;
  999|       |                  }
 1000|       |               }
 1001|  1.79M|               else {
 1002|  1.79M|                  std::memcpy(&b[ix], "\"", 1);
 1003|  1.79M|                  ++ix;
 1004|       |
 1005|  1.79M|                  const auto* c = str.data();
 1006|  1.79M|                  const auto* const e = c + n;
 1007|  1.79M|                  const auto start = &b[ix];
 1008|  1.79M|                  auto data = start;
 1009|       |
 1010|       |                  // By default we don't escape control characters for performance. Invalid JSON characters
 1011|       |                  // result in null characters in the output, making the JSON invalid — these would then be
 1012|       |                  // detected upon reading. Enable the `escape_control_characters` option to properly escape
 1013|       |                  // control characters (0x00–0x1F) as \uXXXX sequences.
 1014|       |
 1015|       |                  // Escape handler: writes the escaped form of *c into data, advances both pointers
 1016|  1.79M|                  auto write_escape = [&]() {
 1017|  1.79M|                     if constexpr (check_escape_control_characters(Opts)) {
 1018|  1.79M|                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
 1019|  1.79M|                           std::memcpy(data, &escaped, 2);
 1020|  1.79M|                           data += 2;
 1021|  1.79M|                        }
 1022|  1.79M|                        else {
 1023|  1.79M|                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1024|  1.79M|                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1025|  1.79M|                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1026|  1.79M|                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1027|  1.79M|                           std::memcpy(data, unicode_escape, 6);
 1028|  1.79M|                           data += 6;
 1029|  1.79M|                        }
 1030|  1.79M|                     }
 1031|  1.79M|                     else {
 1032|  1.79M|                        if constexpr (check_reject_control_characters(Opts)) {
 1033|       |                           // A control character with no two-character escape cannot be written
 1034|       |                           // without \uXXXX. The table entry is zero, so the memcpy below would
 1035|       |                           // put two NULs where one byte was. Flag it and let the loop finish:
 1036|       |                           // returning early here would leave c un-advanced and the SIMD scan
 1037|       |                           // would find the same byte forever. The output is abandoned anyway.
 1038|  1.79M|                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
 1039|  1.79M|                              ctx.error = error_code::invalid_control_character;
 1040|  1.79M|                           }
 1041|  1.79M|                        }
 1042|  1.79M|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  1.79M|                        data += 2;
 1044|  1.79M|                     }
 1045|  1.79M|                     ++c;
 1046|  1.79M|                  };
 1047|       |
 1048|       |                  // Adding a helper here means adding a branch to string_escape_simd() in
 1049|       |                  // simd/backends.hpp, which names the widest one this cascade invokes, and a row
 1050|       |                  // to known_builds in tests/json_test/utf8_validation_test.cpp, which checks it.
 1051|       |#if defined(GLZ_USE_AVX2)
 1052|       |                  detail::avx2_string_escape(c, e, data, n, write_escape);
 1053|       |#endif
 1054|  1.79M|#if defined(GLZ_USE_SSE2)
 1055|  1.79M|                  detail::sse2_string_escape(c, e, data, n, write_escape);
 1056|       |#elif defined(GLZ_USE_NEON)
 1057|       |                  detail::neon_string_escape(c, e, data, n, write_escape);
 1058|       |#endif
 1059|       |
 1060|       |                  // SWAR: 8 bytes at a time
 1061|  1.79M|                  if (n > 7) {
  ------------------
  |  Branch (1061:23): [True: 1.47k, False: 1.78M]
  ------------------
 1062|  4.15k|                     for (const auto end_m7 = e - 7; c < end_m7;) {
  ------------------
  |  Branch (1062:54): [True: 2.68k, False: 1.47k]
  ------------------
 1063|  2.68k|                        std::memcpy(data, c, 8);
 1064|  2.68k|                        uint64_t swar;
 1065|  2.68k|                        std::memcpy(&swar, c, 8);
 1066|       |                        if constexpr (std::endian::native == std::endian::big) {
 1067|       |                           swar = std::byteswap(swar);
 1068|       |                        }
 1069|       |
 1070|  2.68k|                        constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1071|  2.68k|                        const uint64_t lo7 = swar & lo7_mask;
 1072|  2.68k|                        const uint64_t quote = (lo7 ^ repeat_byte8('"')) + lo7_mask;
 1073|  2.68k|                        const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1074|  2.68k|                        const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1075|  2.68k|                        uint64_t next = ~((quote & backslash & less_32) | swar);
 1076|       |
 1077|  2.68k|                        next &= repeat_byte8(0b10000000);
 1078|  2.68k|                        if (next == 0) {
  ------------------
  |  Branch (1078:29): [True: 781, False: 1.90k]
  ------------------
 1079|    781|                           data += 8;
 1080|    781|                           c += 8;
 1081|    781|                           continue;
 1082|    781|                        }
 1083|       |
 1084|  1.90k|                        const auto length = (countr_zero(next) >> 3);
 1085|  1.90k|                        c += length;
 1086|  1.90k|                        data += length;
 1087|  1.90k|                        write_escape();
 1088|  1.90k|                     }
 1089|  1.47k|                  }
 1090|       |
 1091|       |                  // Scalar tail
 1092|  1.80M|                  for (; c < e; ++c) {
  ------------------
  |  Branch (1092:26): [True: 19.0k, False: 1.79M]
  ------------------
 1093|  19.0k|                     if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
  ------------------
  |  Branch (1093:79): [True: 1.73k, False: 17.3k]
  ------------------
 1094|  1.73k|                        std::memcpy(data, &escaped, 2);
 1095|  1.73k|                        data += 2;
 1096|  1.73k|                     }
 1097|       |                     else if constexpr (check_escape_control_characters(Opts)) {
 1098|       |                        if (uint8_t(*c) < 0x20) {
 1099|       |                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1100|       |                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1101|       |                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1102|       |                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1103|       |                           std::memcpy(data, unicode_escape, 6);
 1104|       |                           data += 6;
 1105|       |                        }
 1106|       |                        else {
 1107|       |                           std::memcpy(data, c, 1);
 1108|       |                           ++data;
 1109|       |                        }
 1110|       |                     }
 1111|  17.3k|                     else {
 1112|  17.3k|                        if constexpr (check_reject_control_characters(Opts)) {
 1113|  17.3k|                           if (uint8_t(*c) < 0x20) [[unlikely]] {
  ------------------
  |  Branch (1113:32): [True: 1.29k, False: 16.0k]
  ------------------
 1114|  1.29k|                              ctx.error = error_code::invalid_control_character;
 1115|  1.29k|                           }
 1116|  17.3k|                        }
 1117|  17.3k|                        std::memcpy(data, c, 1);
 1118|  17.3k|                        ++data;
 1119|  17.3k|                     }
 1120|  19.0k|                  }
 1121|       |
 1122|  1.79M|                  ix += size_t(data - start);
 1123|       |
 1124|  1.79M|                  std::memcpy(&b[ix], "\"", 1);
 1125|  1.79M|                  ++ix;
 1126|  1.79M|               }
 1127|  1.79M|            }
 1128|  1.79M|         }
 1129|  1.79M|      }
_ZZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj256EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE_clEv:
  945|  1.79M|               const sv str = [&]() -> const sv {
  946|       |                  if constexpr (array_char_t<T>) {
  947|       |                     return sv{value.data(), value.size()};
  948|       |                  }
  949|       |                  else if constexpr (u8str_t<T>) {
  950|       |                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  951|       |                  }
  952|  1.79M|                  else {
  953|  1.79M|                     return str_view<T>(value);
  954|  1.79M|                  }
  955|  1.79M|               }();
_ZZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj256EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE0_clEv:
 1016|  3.08M|                  auto write_escape = [&]() {
 1017|       |                     if constexpr (check_escape_control_characters(Opts)) {
 1018|       |                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
 1019|       |                           std::memcpy(data, &escaped, 2);
 1020|       |                           data += 2;
 1021|       |                        }
 1022|       |                        else {
 1023|       |                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1024|       |                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1025|       |                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1026|       |                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1027|       |                           std::memcpy(data, unicode_escape, 6);
 1028|       |                           data += 6;
 1029|       |                        }
 1030|       |                     }
 1031|  3.08M|                     else {
 1032|  3.08M|                        if constexpr (check_reject_control_characters(Opts)) {
 1033|       |                           // A control character with no two-character escape cannot be written
 1034|       |                           // without \uXXXX. The table entry is zero, so the memcpy below would
 1035|       |                           // put two NULs where one byte was. Flag it and let the loop finish:
 1036|       |                           // returning early here would leave c un-advanced and the SIMD scan
 1037|       |                           // would find the same byte forever. The output is abandoned anyway.
 1038|  3.08M|                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
  ------------------
  |  Branch (1038:32): [True: 2.98M, False: 100k]
  ------------------
 1039|  2.98M|                              ctx.error = error_code::invalid_control_character;
 1040|  2.98M|                           }
 1041|  3.08M|                        }
 1042|  3.08M|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  3.08M|                        data += 2;
 1044|  3.08M|                     }
 1045|  3.08M|                     ++c;
 1046|  3.08M|                  };
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm10EEEtlA10_cLc34ELc108ELc97ELc121ELc111ELc117ELc116ELc34ELc58EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  8.28M|      {
 1165|  8.28M|         static constexpr auto s = str.sv();
 1166|  8.28M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 8.28M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  8.28M|         dump<false>(s, out, ix);
 1170|  8.28M|         return true;
 1171|  8.28M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm15EEEtlA15_cLc34ELc108ELc97ELc121ELc111ELc117ELc116ELc95ELc114ELc105ELc103ELc104ELc116ELc34EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|   190k|      {
 1165|   190k|         static constexpr auto s = str.sv();
 1166|   190k|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 190k]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|   190k|         dump<false>(s, out, ix);
 1170|   190k|         return true;
 1171|   190k|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm14EEEtlA14_cLc34ELc108ELc97ELc121ELc111ELc117ELc116ELc95ELc108ELc101ELc102ELc116ELc34EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  8.09M|      {
 1165|  8.09M|         static constexpr auto s = str.sv();
 1166|  8.09M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 8.09M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  8.09M|         dump<false>(s, out, ix);
 1170|  8.09M|         return true;
 1171|  8.09M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm11EEEtlA11_cLc34ELc101ELc120ELc116ELc101ELc110ELc116ELc115ELc34ELc58EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  8.28M|      {
 1165|  8.28M|         static constexpr auto s = str.sv();
 1166|  8.28M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 8.28M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  8.28M|         dump<false>(s, out, ix);
 1170|  8.28M|         return true;
 1171|  8.28M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm9EEEtlA9_cLc34ELc118ELc97ELc108ELc117ELc101ELc34ELc58EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  8.24M|      {
 1165|  8.24M|         static constexpr auto s = str.sv();
 1166|  8.24M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 8.24M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  8.24M|         dump<false>(s, out, ix);
 1170|  8.24M|         return true;
 1171|  8.24M|      }

_ZN3glz6to_tieIR9my_structLm4EQleT0_L_ZNS_6detail25max_pure_reflection_countEEEEDcOT_:
  137|  13.1k|   {
  138|       |      if constexpr (N == 0) {
  139|       |         return tuple{};
  140|       |      }
  141|       |      else if constexpr (N == 1) {
  142|       |         auto& [p] = t;
  143|       |         return glz::tie(p);
  144|       |      }
  145|       |      else if constexpr (N == 2) {
  146|       |         auto& [p0, p1] = t;
  147|       |         return glz::tie(p0, p1);
  148|       |      }
  149|       |      else if constexpr (N == 3) {
  150|       |         auto& [p0, p1, p2] = t;
  151|       |         return glz::tie(p0, p1, p2);
  152|       |      }
  153|  13.1k|      else if constexpr (N == 4) {
  154|  13.1k|         auto& [p0, p1, p2, p3] = t;
  155|  13.1k|         return glz::tie(p0, p1, p2, p3);
  156|       |      }
  157|       |      else if constexpr (N == 5) {
  158|       |         auto& [p0, p1, p2, p3, p4] = t;
  159|       |         return glz::tie(p0, p1, p2, p3, p4);
  160|       |      }
  161|       |      else if constexpr (N == 6) {
  162|       |         auto& [p0, p1, p2, p3, p4, p5] = t;
  163|       |         return glz::tie(p0, p1, p2, p3, p4, p5);
  164|       |      }
  165|       |      else if constexpr (N == 7) {
  166|       |         auto& [p0, p1, p2, p3, p4, p5, p6] = t;
  167|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6);
  168|       |      }
  169|       |      else if constexpr (N == 8) {
  170|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7] = t;
  171|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7);
  172|       |      }
  173|       |      else if constexpr (N == 9) {
  174|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8] = t;
  175|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8);
  176|       |      }
  177|       |      else if constexpr (N == 10) {
  178|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9] = t;
  179|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9);
  180|       |      }
  181|       |      else if constexpr (N == 11) {
  182|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10] = t;
  183|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);
  184|       |      }
  185|       |      else if constexpr (N == 12) {
  186|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11] = t;
  187|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11);
  188|       |      }
  189|       |      else if constexpr (N == 13) {
  190|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12] = t;
  191|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12);
  192|       |      }
  193|       |      else if constexpr (N == 14) {
  194|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13] = t;
  195|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13);
  196|       |      }
  197|       |      else if constexpr (N == 15) {
  198|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14] = t;
  199|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14);
  200|       |      }
  201|       |      else if constexpr (N == 16) {
  202|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15] = t;
  203|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15);
  204|       |      }
  205|       |      else if constexpr (N == 17) {
  206|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16] = t;
  207|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16);
  208|       |      }
  209|       |      else if constexpr (N == 18) {
  210|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17] = t;
  211|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17);
  212|       |      }
  213|       |      else if constexpr (N == 19) {
  214|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18] = t;
  215|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18);
  216|       |      }
  217|       |      else if constexpr (N == 20) {
  218|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19] = t;
  219|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19);
  220|       |      }
  221|       |      else if constexpr (N == 21) {
  222|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20] = t;
  223|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20);
  224|       |      }
  225|       |      else if constexpr (N == 22) {
  226|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21] = t;
  227|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  228|       |                         p21);
  229|       |      }
  230|       |      else if constexpr (N == 23) {
  231|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21,
  232|       |                p22] = t;
  233|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  234|       |                         p21, p22);
  235|       |      }
  236|       |      else if constexpr (N == 24) {
  237|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  238|       |                p23] = t;
  239|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  240|       |                         p21, p22, p23);
  241|       |      }
  242|       |      else if constexpr (N == 25) {
  243|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  244|       |                p23, p24] = t;
  245|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  246|       |                         p21, p22, p23, p24);
  247|       |      }
  248|       |      else if constexpr (N == 26) {
  249|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  250|       |                p23, p24, p25] = t;
  251|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  252|       |                         p21, p22, p23, p24, p25);
  253|       |      }
  254|       |      else if constexpr (N == 27) {
  255|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  256|       |                p23, p24, p25, p26] = t;
  257|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  258|       |                         p21, p22, p23, p24, p25, p26);
  259|       |      }
  260|       |      else if constexpr (N == 28) {
  261|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  262|       |                p23, p24, p25, p26, p27] = t;
  263|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  264|       |                         p21, p22, p23, p24, p25, p26, p27);
  265|       |      }
  266|       |      else if constexpr (N == 29) {
  267|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  268|       |                p23, p24, p25, p26, p27, p28] = t;
  269|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  270|       |                         p21, p22, p23, p24, p25, p26, p27, p28);
  271|       |      }
  272|       |      else if constexpr (N == 30) {
  273|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  274|       |                p23, p24, p25, p26, p27, p28, p29] = t;
  275|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  276|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29);
  277|       |      }
  278|       |      else if constexpr (N == 31) {
  279|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  280|       |                p23, p24, p25, p26, p27, p28, p29, p30] = t;
  281|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  282|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30);
  283|       |      }
  284|       |      else if constexpr (N == 32) {
  285|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  286|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31] = t;
  287|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  288|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31);
  289|       |      }
  290|       |      else if constexpr (N == 33) {
  291|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  292|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32] = t;
  293|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  294|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32);
  295|       |      }
  296|       |      else if constexpr (N == 34) {
  297|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  298|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33] = t;
  299|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  300|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33);
  301|       |      }
  302|       |      else if constexpr (N == 35) {
  303|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  304|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34] = t;
  305|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  306|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34);
  307|       |      }
  308|       |      else if constexpr (N == 36) {
  309|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  310|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35] = t;
  311|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  312|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35);
  313|       |      }
  314|       |      else if constexpr (N == 37) {
  315|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  316|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36] = t;
  317|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  318|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36);
  319|       |      }
  320|       |      else if constexpr (N == 38) {
  321|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  322|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37] = t;
  323|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  324|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37);
  325|       |      }
  326|       |      else if constexpr (N == 39) {
  327|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  328|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38] = t;
  329|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  330|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38);
  331|       |      }
  332|       |      else if constexpr (N == 40) {
  333|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  334|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39] = t;
  335|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  336|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39);
  337|       |      }
  338|       |      else if constexpr (N == 41) {
  339|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  340|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40] = t;
  341|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  342|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  343|       |                         p40);
  344|       |      }
  345|       |      else if constexpr (N == 42) {
  346|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  347|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41] = t;
  348|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  349|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  350|       |                         p40, p41);
  351|       |      }
  352|       |      else if constexpr (N == 43) {
  353|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  354|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42] = t;
  355|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  356|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  357|       |                         p40, p41, p42);
  358|       |      }
  359|       |      else if constexpr (N == 44) {
  360|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  361|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42,
  362|       |                p43] = t;
  363|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  364|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  365|       |                         p40, p41, p42, p43);
  366|       |      }
  367|       |      else if constexpr (N == 45) {
  368|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  369|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  370|       |                p44] = t;
  371|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  372|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  373|       |                         p40, p41, p42, p43, p44);
  374|       |      }
  375|       |      else if constexpr (N == 46) {
  376|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  377|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  378|       |                p44, p45] = t;
  379|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  380|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  381|       |                         p40, p41, p42, p43, p44, p45);
  382|       |      }
  383|       |      else if constexpr (N == 47) {
  384|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  385|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  386|       |                p44, p45, p46] = t;
  387|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  388|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  389|       |                         p40, p41, p42, p43, p44, p45, p46);
  390|       |      }
  391|       |      else if constexpr (N == 48) {
  392|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  393|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  394|       |                p44, p45, p46, p47] = t;
  395|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  396|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  397|       |                         p40, p41, p42, p43, p44, p45, p46, p47);
  398|       |      }
  399|       |      else if constexpr (N == 49) {
  400|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  401|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  402|       |                p44, p45, p46, p47, p48] = t;
  403|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  404|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  405|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48);
  406|       |      }
  407|       |      else if constexpr (N == 50) {
  408|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  409|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  410|       |                p44, p45, p46, p47, p48, p49] = t;
  411|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  412|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  413|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49);
  414|       |      }
  415|       |      else if constexpr (N == 51) {
  416|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  417|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  418|       |                p44, p45, p46, p47, p48, p49, p50] = t;
  419|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  420|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  421|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50);
  422|       |      }
  423|       |      else if constexpr (N == 52) {
  424|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  425|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  426|       |                p44, p45, p46, p47, p48, p49, p50, p51] = t;
  427|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  428|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  429|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51);
  430|       |      }
  431|       |      else if constexpr (N == 53) {
  432|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  433|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  434|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52] = t;
  435|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  436|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  437|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52);
  438|       |      }
  439|       |      else if constexpr (N == 54) {
  440|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  441|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  442|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53] = t;
  443|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  444|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  445|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53);
  446|       |      }
  447|       |      else if constexpr (N == 55) {
  448|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  449|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  450|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54] = t;
  451|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  452|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  453|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54);
  454|       |      }
  455|       |      else if constexpr (N == 56) {
  456|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  457|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  458|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55] = t;
  459|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  460|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  461|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55);
  462|       |      }
  463|       |      else if constexpr (N == 57) {
  464|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  465|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  466|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56] = t;
  467|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  468|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  469|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56);
  470|       |      }
  471|       |      else if constexpr (N == 58) {
  472|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  473|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  474|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57] = t;
  475|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  476|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  477|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57);
  478|       |      }
  479|       |      else if constexpr (N == 59) {
  480|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  481|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  482|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58] = t;
  483|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  484|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  485|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58);
  486|       |      }
  487|       |      else if constexpr (N == 60) {
  488|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  489|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  490|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59] = t;
  491|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  492|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  493|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  494|       |                         p59);
  495|       |      }
  496|       |      else if constexpr (N == 61) {
  497|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  498|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  499|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60] = t;
  500|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  501|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  502|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  503|       |                         p59, p60);
  504|       |      }
  505|       |      else if constexpr (N == 62) {
  506|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  507|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  508|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61] = t;
  509|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  510|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  511|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  512|       |                         p59, p60, p61);
  513|       |      }
  514|       |      else if constexpr (N == 63) {
  515|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  516|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  517|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62] = t;
  518|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  519|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  520|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  521|       |                         p59, p60, p61, p62);
  522|       |      }
  523|       |      else if constexpr (N == 64) {
  524|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  525|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  526|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63] = t;
  527|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  528|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  529|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  530|       |                         p59, p60, p61, p62, p63);
  531|       |      }
  532|       |      else if constexpr (N == 65) {
  533|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  534|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  535|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63,
  536|       |                p64] = t;
  537|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  538|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  539|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  540|       |                         p59, p60, p61, p62, p63, p64);
  541|       |      }
  542|       |      else if constexpr (N == 66) {
  543|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  544|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  545|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  546|       |                p65] = t;
  547|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  548|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  549|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  550|       |                         p59, p60, p61, p62, p63, p64, p65);
  551|       |      }
  552|       |      else if constexpr (N == 67) {
  553|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  554|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  555|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  556|       |                p65, p66] = t;
  557|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  558|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  559|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  560|       |                         p59, p60, p61, p62, p63, p64, p65, p66);
  561|       |      }
  562|       |      else if constexpr (N == 68) {
  563|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  564|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  565|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  566|       |                p65, p66, p67] = t;
  567|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  568|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  569|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  570|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67);
  571|       |      }
  572|       |      else if constexpr (N == 69) {
  573|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  574|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  575|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  576|       |                p65, p66, p67, p68] = t;
  577|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  578|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  579|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  580|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68);
  581|       |      }
  582|       |      else if constexpr (N == 70) {
  583|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  584|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  585|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  586|       |                p65, p66, p67, p68, p69] = t;
  587|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  588|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  589|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  590|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69);
  591|       |      }
  592|       |      else if constexpr (N == 71) {
  593|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  594|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  595|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  596|       |                p65, p66, p67, p68, p69, p70] = t;
  597|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  598|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  599|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  600|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70);
  601|       |      }
  602|       |      else if constexpr (N == 72) {
  603|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  604|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  605|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  606|       |                p65, p66, p67, p68, p69, p70, p71] = t;
  607|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  608|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  609|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  610|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71);
  611|       |      }
  612|       |      else if constexpr (N == 73) {
  613|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  614|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  615|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  616|       |                p65, p66, p67, p68, p69, p70, p71, p72] = t;
  617|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  618|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  619|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  620|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72);
  621|       |      }
  622|       |      else if constexpr (N == 74) {
  623|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  624|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  625|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  626|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73] = t;
  627|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  628|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  629|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  630|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73);
  631|       |      }
  632|       |      else if constexpr (N == 75) {
  633|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  634|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  635|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  636|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74] = t;
  637|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  638|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  639|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  640|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74);
  641|       |      }
  642|       |      else if constexpr (N == 76) {
  643|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  644|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  645|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  646|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75] = t;
  647|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  648|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  649|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  650|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75);
  651|       |      }
  652|       |      else if constexpr (N == 77) {
  653|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  654|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  655|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  656|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76] = t;
  657|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  658|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  659|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  660|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76);
  661|       |      }
  662|       |      else if constexpr (N == 78) {
  663|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  664|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  665|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  666|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77] = t;
  667|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  668|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  669|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  670|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77);
  671|       |      }
  672|       |      else if constexpr (N == 79) {
  673|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  674|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  675|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  676|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78] = t;
  677|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  678|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  679|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  680|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  681|       |                         p78);
  682|       |      }
  683|       |      else if constexpr (N == 80) {
  684|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  685|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  686|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  687|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79] = t;
  688|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  689|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  690|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  691|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  692|       |                         p78, p79);
  693|       |      }
  694|       |      else if constexpr (N == 81) {
  695|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  696|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  697|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  698|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80] = t;
  699|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  700|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  701|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  702|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  703|       |                         p78, p79, p80);
  704|       |      }
  705|       |      else if constexpr (N == 82) {
  706|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  707|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  708|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  709|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81] = t;
  710|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  711|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  712|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  713|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  714|       |                         p78, p79, p80, p81);
  715|       |      }
  716|       |      else if constexpr (N == 83) {
  717|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  718|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  719|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  720|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82] = t;
  721|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  722|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  723|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  724|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  725|       |                         p78, p79, p80, p81, p82);
  726|       |      }
  727|       |      else if constexpr (N == 84) {
  728|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  729|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  730|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  731|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83] = t;
  732|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  733|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  734|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  735|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  736|       |                         p78, p79, p80, p81, p82, p83);
  737|       |      }
  738|       |      else if constexpr (N == 85) {
  739|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  740|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  741|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  742|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84] = t;
  743|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  744|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  745|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  746|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  747|       |                         p78, p79, p80, p81, p82, p83, p84);
  748|       |      }
  749|       |      else if constexpr (N == 86) {
  750|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  751|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  752|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  753|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84,
  754|       |                p85] = t;
  755|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  756|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  757|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  758|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  759|       |                         p78, p79, p80, p81, p82, p83, p84, p85);
  760|       |      }
  761|       |      else if constexpr (N == 87) {
  762|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  763|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  764|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  765|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  766|       |                p86] = t;
  767|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  768|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  769|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  770|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  771|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86);
  772|       |      }
  773|       |      else if constexpr (N == 88) {
  774|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  775|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  776|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  777|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  778|       |                p86, p87] = t;
  779|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  780|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  781|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  782|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  783|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87);
  784|       |      }
  785|       |      else if constexpr (N == 89) {
  786|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  787|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  788|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  789|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  790|       |                p86, p87, p88] = t;
  791|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  792|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  793|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  794|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  795|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88);
  796|       |      }
  797|       |      else if constexpr (N == 90) {
  798|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  799|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  800|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  801|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  802|       |                p86, p87, p88, p89] = t;
  803|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  804|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  805|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  806|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  807|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89);
  808|       |      }
  809|       |      else if constexpr (N == 91) {
  810|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  811|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  812|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  813|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  814|       |                p86, p87, p88, p89, p90] = t;
  815|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  816|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  817|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  818|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  819|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90);
  820|       |      }
  821|       |      else if constexpr (N == 92) {
  822|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  823|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  824|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  825|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  826|       |                p86, p87, p88, p89, p90, p91] = t;
  827|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  828|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  829|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  830|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  831|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91);
  832|       |      }
  833|       |      else if constexpr (N == 93) {
  834|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  835|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  836|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  837|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  838|       |                p86, p87, p88, p89, p90, p91, p92] = t;
  839|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  840|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  841|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  842|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  843|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92);
  844|       |      }
  845|       |      else if constexpr (N == 94) {
  846|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  847|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  848|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  849|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  850|       |                p86, p87, p88, p89, p90, p91, p92, p93] = t;
  851|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  852|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  853|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  854|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  855|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93);
  856|       |      }
  857|       |      else if constexpr (N == 95) {
  858|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  859|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  860|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  861|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  862|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94] = t;
  863|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  864|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  865|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  866|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  867|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94);
  868|       |      }
  869|       |      else if constexpr (N == 96) {
  870|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  871|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  872|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  873|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  874|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95] = t;
  875|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  876|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  877|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  878|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  879|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95);
  880|       |      }
  881|       |      else if constexpr (N == 97) {
  882|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  883|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  884|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  885|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  886|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96] = t;
  887|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  888|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  889|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  890|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  891|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96);
  892|       |      }
  893|       |      else if constexpr (N == 98) {
  894|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  895|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  896|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  897|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  898|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97] = t;
  899|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  900|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  901|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  902|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  903|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  904|       |                         p97);
  905|       |      }
  906|       |      else if constexpr (N == 99) {
  907|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  908|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  909|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  910|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  911|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98] = t;
  912|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  913|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  914|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  915|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  916|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  917|       |                         p97, p98);
  918|       |      }
  919|       |      else if constexpr (N == 100) {
  920|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  921|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  922|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  923|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  924|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99] = t;
  925|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  926|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  927|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  928|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  929|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  930|       |                         p97, p98, p99);
  931|       |      }
  932|       |      else if constexpr (N == 101) {
  933|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  934|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  935|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  936|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  937|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100] = t;
  938|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  939|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  940|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  941|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  942|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  943|       |                         p97, p98, p99, p100);
  944|       |      }
  945|       |      else if constexpr (N == 102) {
  946|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  947|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  948|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  949|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  950|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101] = t;
  951|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  952|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  953|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  954|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  955|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  956|       |                         p97, p98, p99, p100, p101);
  957|       |      }
  958|       |      else if constexpr (N == 103) {
  959|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  960|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  961|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  962|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  963|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102] = t;
  964|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  965|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  966|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  967|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  968|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  969|       |                         p97, p98, p99, p100, p101, p102);
  970|       |      }
  971|       |      else if constexpr (N == 104) {
  972|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  973|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  974|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  975|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  976|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103] = t;
  977|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  978|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  979|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  980|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  981|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  982|       |                         p97, p98, p99, p100, p101, p102, p103);
  983|       |      }
  984|       |      else if constexpr (N == 105) {
  985|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  986|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  987|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  988|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  989|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104] = t;
  990|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  991|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  992|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  993|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  994|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  995|       |                         p97, p98, p99, p100, p101, p102, p103, p104);
  996|       |      }
  997|       |      else if constexpr (N == 106) {
  998|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  999|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1000|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1001|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1002|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1003|       |                p105] = t;
 1004|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1005|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1006|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1007|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1008|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1009|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105);
 1010|       |      }
 1011|       |      else if constexpr (N == 107) {
 1012|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1013|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1014|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1015|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1016|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1017|       |                p105, p106] = t;
 1018|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1019|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1020|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1021|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1022|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1023|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106);
 1024|       |      }
 1025|       |      else if constexpr (N == 108) {
 1026|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1027|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1028|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1029|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1030|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1031|       |                p105, p106, p107] = t;
 1032|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1033|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1034|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1035|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1036|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1037|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107);
 1038|       |      }
 1039|       |      else if constexpr (N == 109) {
 1040|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1041|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1042|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1043|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1044|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1045|       |                p105, p106, p107, p108] = t;
 1046|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1047|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1048|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1049|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1050|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1051|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108);
 1052|       |      }
 1053|       |      else if constexpr (N == 110) {
 1054|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1055|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1056|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1057|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1058|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1059|       |                p105, p106, p107, p108, p109] = t;
 1060|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1061|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1062|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1063|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1064|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1065|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109);
 1066|       |      }
 1067|       |      else if constexpr (N == 111) {
 1068|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1069|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1070|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1071|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1072|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1073|       |                p105, p106, p107, p108, p109, p110] = t;
 1074|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1075|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1076|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1077|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1078|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1079|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110);
 1080|       |      }
 1081|       |      else if constexpr (N == 112) {
 1082|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1083|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1084|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1085|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1086|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1087|       |                p105, p106, p107, p108, p109, p110, p111] = t;
 1088|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1089|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1090|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1091|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1092|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1093|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111);
 1094|       |      }
 1095|       |      else if constexpr (N == 113) {
 1096|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1097|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1098|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1099|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1100|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1101|       |                p105, p106, p107, p108, p109, p110, p111, p112] = t;
 1102|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1103|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1104|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1105|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1106|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1107|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112);
 1108|       |      }
 1109|       |      else if constexpr (N == 114) {
 1110|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1111|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1112|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1113|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1114|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1115|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113] = t;
 1116|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1117|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1118|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1119|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1120|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1121|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1122|       |                         p113);
 1123|       |      }
 1124|       |      else if constexpr (N == 115) {
 1125|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1126|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1127|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1128|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1129|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1130|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114] = t;
 1131|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1132|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1133|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1134|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1135|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1136|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1137|       |                         p113, p114);
 1138|       |      }
 1139|       |      else if constexpr (N == 116) {
 1140|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1141|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1142|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1143|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1144|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1145|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115] = t;
 1146|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1147|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1148|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1149|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1150|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1151|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1152|       |                         p113, p114, p115);
 1153|       |      }
 1154|       |      else if constexpr (N == 117) {
 1155|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1156|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1157|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1158|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1159|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1160|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116] = t;
 1161|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1162|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1163|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1164|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1165|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1166|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1167|       |                         p113, p114, p115, p116);
 1168|       |      }
 1169|       |      else if constexpr (N == 118) {
 1170|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1171|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1172|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1173|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1174|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1175|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117] = t;
 1176|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1177|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1178|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1179|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1180|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1181|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1182|       |                         p113, p114, p115, p116, p117);
 1183|       |      }
 1184|       |      else if constexpr (N == 119) {
 1185|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1186|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1187|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1188|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1189|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1190|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118] = t;
 1191|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1192|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1193|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1194|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1195|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1196|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1197|       |                         p113, p114, p115, p116, p117, p118);
 1198|       |      }
 1199|       |      else if constexpr (N == 120) {
 1200|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1201|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1202|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1203|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1204|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1205|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119] = t;
 1206|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1207|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1208|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1209|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1210|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1211|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1212|       |                         p113, p114, p115, p116, p117, p118, p119);
 1213|       |      }
 1214|       |      else if constexpr (N == 121) {
 1215|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1216|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1217|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1218|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1219|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1220|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120] = t;
 1221|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1222|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1223|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1224|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1225|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1226|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1227|       |                         p113, p114, p115, p116, p117, p118, p119, p120);
 1228|       |      }
 1229|       |      else if constexpr (N == 122) {
 1230|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1231|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1232|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1233|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1234|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1235|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121] =
 1236|       |            t;
 1237|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1238|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1239|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1240|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1241|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1242|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1243|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121);
 1244|       |      }
 1245|       |      else if constexpr (N == 123) {
 1246|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1247|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1248|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1249|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1250|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1251|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1252|       |                p122] = t;
 1253|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1254|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1255|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1256|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1257|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1258|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1259|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122);
 1260|       |      }
 1261|       |      else if constexpr (N == 124) {
 1262|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1263|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1264|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1265|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1266|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1267|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1268|       |                p122, p123] = t;
 1269|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1270|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1271|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1272|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1273|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1274|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1275|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123);
 1276|       |      }
 1277|       |      else if constexpr (N == 125) {
 1278|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1279|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1280|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1281|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1282|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1283|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1284|       |                p122, p123, p124] = t;
 1285|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1286|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1287|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1288|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1289|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1290|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1291|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124);
 1292|       |      }
 1293|       |      else if constexpr (N == 126) {
 1294|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1295|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1296|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1297|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1298|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1299|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1300|       |                p122, p123, p124, p125] = t;
 1301|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1302|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1303|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1304|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1305|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1306|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1307|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125);
 1308|       |      }
 1309|       |      else if constexpr (N == 127) {
 1310|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1311|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1312|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1313|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1314|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1315|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1316|       |                p122, p123, p124, p125, p126] = t;
 1317|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1318|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1319|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1320|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1321|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1322|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1323|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126);
 1324|       |      }
 1325|       |      else if constexpr (N == 128) {
 1326|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1327|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1328|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1329|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1330|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1331|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1332|       |                p122, p123, p124, p125, p126, p127] = t;
 1333|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1334|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1335|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1336|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1337|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1338|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1339|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126, p127);
 1340|       |      }
 1341|  13.1k|   }

_ZN3glz6detail18sse2_string_escapeIcRZNS_2toILj10ENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj256EEERNS3_12basic_stringIcS6_NS3_9allocatorIcEEEERKS7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_EUlvE0_EEvRPKcSV_RPT_mSP_:
   20|  1.79M|   {
   21|       |      // SSE2: 16 bytes at a time with direct comparison instructions
   22|  1.79M|      if (n > 15) {
  ------------------
  |  Branch (22:11): [True: 978, False: 1.78M]
  ------------------
   23|    978|         const __m128i quote_vec = _mm_set1_epi8('"');
   24|    978|         const __m128i bs_vec = _mm_set1_epi8('\\');
   25|    978|         const __m128i ctrl_mask = _mm_set1_epi8(static_cast<int8_t>(0xE0));
   26|    978|         const __m128i zero = _mm_setzero_si128();
   27|       |
   28|  3.17M|         for (const char* end_m15 = e - 15; c < end_m15;) {
  ------------------
  |  Branch (28:45): [True: 3.17M, False: 978]
  ------------------
   29|  3.17M|            __m128i v = _mm_loadu_si128(reinterpret_cast<const __m128i*>(c));
   30|  3.17M|            _mm_storeu_si128(reinterpret_cast<__m128i*>(data), v);
   31|       |
   32|  3.17M|            const uint32_t mask = static_cast<uint32_t>(
   33|  3.17M|               _mm_movemask_epi8(_mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(v, quote_vec), _mm_cmpeq_epi8(v, bs_vec)),
   34|  3.17M|                                              _mm_cmpeq_epi8(_mm_and_si128(v, ctrl_mask), zero))));
   35|       |
   36|  3.17M|            if (mask == 0) {
  ------------------
  |  Branch (36:17): [True: 88.0k, False: 3.08M]
  ------------------
   37|  88.0k|               data += 16;
   38|  88.0k|               c += 16;
   39|  88.0k|               continue;
   40|  88.0k|            }
   41|       |
   42|  3.08M|            const uint32_t length = countr_zero(mask);
   43|  3.08M|            c += length;
   44|  3.08M|            data += length;
   45|  3.08M|            write_escape();
   46|  3.08M|         }
   47|    978|      }
   48|  1.79M|   }

_ZN3glz11countr_zeroEj:
   16|  3.08M|   {
   17|       |#ifdef _MSC_VER
   18|       |      return std::countr_zero(x);
   19|       |#else
   20|  3.08M|#if __has_builtin(__builtin_ctzl)
   21|  3.08M|      return __builtin_ctzl(x);
   22|       |#else
   23|       |      return std::countr_zero(x);
   24|       |#endif
   25|  3.08M|#endif
   26|  3.08M|   }
_ZN3glz11countr_zeroEm:
   29|  1.90k|   {
   30|       |#ifdef _MSC_VER
   31|       |      return std::countr_zero(x);
   32|       |#else
   33|  1.90k|#if __has_builtin(__builtin_ctzll)
   34|  1.90k|      return __builtin_ctzll(x);
   35|       |#else
   36|       |      return std::countr_zero(x);
   37|       |#endif
   38|  1.90k|#endif
   39|  1.90k|   }

_ZN3glz7compareILm1EcEEbPKT0_S3_:
  122|  5.45k|   {
  123|       |      if constexpr (Count > 8) {
  124|       |         return 0 == std::memcmp(lhs, rhs, Count);
  125|       |         // return internal_compare(lhs, rhs, Count);
  126|       |      }
  127|       |      else if constexpr (Count == 8) {
  128|       |         uint64_t l, r;
  129|       |         std::memcpy(&l, lhs, 8);
  130|       |         std::memcpy(&r, rhs, 8);
  131|       |         return l == r;
  132|       |      }
  133|       |      else if constexpr (Count == 7) {
  134|       |         uint32_t l, r;
  135|       |         std::memcpy(&l, lhs, 4);
  136|       |         std::memcpy(&r, rhs, 4);
  137|       |         uint32_t l2, r2;
  138|       |         std::memcpy(&l2, lhs + 3, 4);
  139|       |         std::memcpy(&r2, rhs + 3, 4);
  140|       |         return (l == r) & (l2 == r2);
  141|       |      }
  142|       |      else if constexpr (Count == 6) {
  143|       |         uint32_t l, r;
  144|       |         std::memcpy(&l, lhs, 4);
  145|       |         std::memcpy(&r, rhs, 4);
  146|       |         uint16_t l2, r2;
  147|       |         std::memcpy(&l2, lhs + 4, 2);
  148|       |         std::memcpy(&r2, rhs + 4, 2);
  149|       |         return (l == r) & (l2 == r2);
  150|       |      }
  151|       |      else if constexpr (Count == 5) {
  152|       |         uint32_t l, r;
  153|       |         std::memcpy(&l, lhs, 4);
  154|       |         std::memcpy(&r, rhs, 4);
  155|       |         return (l == r) & (lhs[4] == rhs[4]);
  156|       |      }
  157|       |      else if constexpr (Count == 4) {
  158|       |         uint32_t l, r;
  159|       |         std::memcpy(&l, lhs, 4);
  160|       |         std::memcpy(&r, rhs, 4);
  161|       |         return l == r;
  162|       |      }
  163|       |      else if constexpr (Count == 3) {
  164|       |         uint16_t l, r;
  165|       |         std::memcpy(&l, lhs, 2);
  166|       |         std::memcpy(&r, rhs, 2);
  167|       |         return (l == r) & (lhs[2] == rhs[2]);
  168|       |      }
  169|       |      else if constexpr (Count == 2) {
  170|       |         uint16_t l, r;
  171|       |         std::memcpy(&l, lhs, 2);
  172|       |         std::memcpy(&r, rhs, 2);
  173|       |         return l == r;
  174|       |      }
  175|  5.45k|      else if constexpr (Count == 1) {
  176|  5.45k|         return *lhs == *rhs;
  177|       |      }
  178|       |      else if constexpr (Count == 0) {
  179|       |         return true;
  180|       |      }
  181|  5.45k|   }
_ZN3glz7compareILm5EcEEbPKT0_S3_:
  122|  2.27k|   {
  123|       |      if constexpr (Count > 8) {
  124|       |         return 0 == std::memcmp(lhs, rhs, Count);
  125|       |         // return internal_compare(lhs, rhs, Count);
  126|       |      }
  127|       |      else if constexpr (Count == 8) {
  128|       |         uint64_t l, r;
  129|       |         std::memcpy(&l, lhs, 8);
  130|       |         std::memcpy(&r, rhs, 8);
  131|       |         return l == r;
  132|       |      }
  133|       |      else if constexpr (Count == 7) {
  134|       |         uint32_t l, r;
  135|       |         std::memcpy(&l, lhs, 4);
  136|       |         std::memcpy(&r, rhs, 4);
  137|       |         uint32_t l2, r2;
  138|       |         std::memcpy(&l2, lhs + 3, 4);
  139|       |         std::memcpy(&r2, rhs + 3, 4);
  140|       |         return (l == r) & (l2 == r2);
  141|       |      }
  142|       |      else if constexpr (Count == 6) {
  143|       |         uint32_t l, r;
  144|       |         std::memcpy(&l, lhs, 4);
  145|       |         std::memcpy(&r, rhs, 4);
  146|       |         uint16_t l2, r2;
  147|       |         std::memcpy(&l2, lhs + 4, 2);
  148|       |         std::memcpy(&r2, rhs + 4, 2);
  149|       |         return (l == r) & (l2 == r2);
  150|       |      }
  151|  2.27k|      else if constexpr (Count == 5) {
  152|  2.27k|         uint32_t l, r;
  153|  2.27k|         std::memcpy(&l, lhs, 4);
  154|  2.27k|         std::memcpy(&r, rhs, 4);
  155|  2.27k|         return (l == r) & (lhs[4] == rhs[4]);
  156|       |      }
  157|       |      else if constexpr (Count == 4) {
  158|       |         uint32_t l, r;
  159|       |         std::memcpy(&l, lhs, 4);
  160|       |         std::memcpy(&r, rhs, 4);
  161|       |         return l == r;
  162|       |      }
  163|       |      else if constexpr (Count == 3) {
  164|       |         uint16_t l, r;
  165|       |         std::memcpy(&l, lhs, 2);
  166|       |         std::memcpy(&r, rhs, 2);
  167|       |         return (l == r) & (lhs[2] == rhs[2]);
  168|       |      }
  169|       |      else if constexpr (Count == 2) {
  170|       |         uint16_t l, r;
  171|       |         std::memcpy(&l, lhs, 2);
  172|       |         std::memcpy(&r, rhs, 2);
  173|       |         return l == r;
  174|       |      }
  175|       |      else if constexpr (Count == 1) {
  176|       |         return *lhs == *rhs;
  177|       |      }
  178|       |      else if constexpr (Count == 0) {
  179|       |         return true;
  180|       |      }
  181|  2.27k|   }
_ZN3glz7compareILm3EcEEbPKT0_S3_:
  122|  5.51k|   {
  123|       |      if constexpr (Count > 8) {
  124|       |         return 0 == std::memcmp(lhs, rhs, Count);
  125|       |         // return internal_compare(lhs, rhs, Count);
  126|       |      }
  127|       |      else if constexpr (Count == 8) {
  128|       |         uint64_t l, r;
  129|       |         std::memcpy(&l, lhs, 8);
  130|       |         std::memcpy(&r, rhs, 8);
  131|       |         return l == r;
  132|       |      }
  133|       |      else if constexpr (Count == 7) {
  134|       |         uint32_t l, r;
  135|       |         std::memcpy(&l, lhs, 4);
  136|       |         std::memcpy(&r, rhs, 4);
  137|       |         uint32_t l2, r2;
  138|       |         std::memcpy(&l2, lhs + 3, 4);
  139|       |         std::memcpy(&r2, rhs + 3, 4);
  140|       |         return (l == r) & (l2 == r2);
  141|       |      }
  142|       |      else if constexpr (Count == 6) {
  143|       |         uint32_t l, r;
  144|       |         std::memcpy(&l, lhs, 4);
  145|       |         std::memcpy(&r, rhs, 4);
  146|       |         uint16_t l2, r2;
  147|       |         std::memcpy(&l2, lhs + 4, 2);
  148|       |         std::memcpy(&r2, rhs + 4, 2);
  149|       |         return (l == r) & (l2 == r2);
  150|       |      }
  151|       |      else if constexpr (Count == 5) {
  152|       |         uint32_t l, r;
  153|       |         std::memcpy(&l, lhs, 4);
  154|       |         std::memcpy(&r, rhs, 4);
  155|       |         return (l == r) & (lhs[4] == rhs[4]);
  156|       |      }
  157|       |      else if constexpr (Count == 4) {
  158|       |         uint32_t l, r;
  159|       |         std::memcpy(&l, lhs, 4);
  160|       |         std::memcpy(&r, rhs, 4);
  161|       |         return l == r;
  162|       |      }
  163|  5.51k|      else if constexpr (Count == 3) {
  164|  5.51k|         uint16_t l, r;
  165|  5.51k|         std::memcpy(&l, lhs, 2);
  166|  5.51k|         std::memcpy(&r, rhs, 2);
  167|  5.51k|         return (l == r) & (lhs[2] == rhs[2]);
  168|       |      }
  169|       |      else if constexpr (Count == 2) {
  170|       |         uint16_t l, r;
  171|       |         std::memcpy(&l, lhs, 2);
  172|       |         std::memcpy(&r, rhs, 2);
  173|       |         return l == r;
  174|       |      }
  175|       |      else if constexpr (Count == 1) {
  176|       |         return *lhs == *rhs;
  177|       |      }
  178|       |      else if constexpr (Count == 0) {
  179|       |         return true;
  180|       |      }
  181|  5.51k|   }

_ZN3glz4dumpILb0ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEETkNS_10byte_sizedEcEEvT1_RT0_Rm:
  150|   530M|   {
  151|       |      if constexpr (Checked && vector_like<B>) {
  152|       |         if (ix == b.size()) [[unlikely]] {
  153|       |            grow_buffer(b, b.size() == 0 ? 64 : ix + 1);
  154|       |         }
  155|       |      }
  156|   530M|      assign_maybe_cast(c, b, ix);
  157|   530M|      ++ix;
  158|   530M|   }
_ZN3glz17assign_maybe_castITkNS_10byte_sizedEcNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvT_RT0_Rm:
   95|   530M|   {
   96|   530M|      using V = std::decay_t<decltype(b[0])>;
   97|   530M|      using C = std::decay_t<decltype(c)>;
   98|   530M|      if constexpr (std::same_as<V, C>) {
   99|   530M|         b[ix] = c;
  100|       |      }
  101|       |      else {
  102|       |         b[ix] = static_cast<V>(c);
  103|       |      }
  104|   530M|   }
_ZN3glz4dumpILb0ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvNS1_17basic_string_viewIcS4_EERT0_Rm:
  192|   519M|   {
  193|   519M|      const auto n = str.size();
  194|   519M|      if constexpr (vector_like<B>) {
  195|       |         if constexpr (Checked) {
  196|       |            const auto k = ix + n;
  197|       |            if (ix + n > b.size()) [[unlikely]] {
  198|       |               grow_buffer(b, k);
  199|       |            }
  200|       |         }
  201|   519M|      }
  202|   519M|      std::memcpy(&b[ix], str.data(), n);
  203|   519M|      ix += n;
  204|   519M|   }

_ZN3glz5visitILm4EZNS_4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_EUlTnmvE_EEvOT0_m:
   86|  13.2k|   {
   87|  13.2k|      if constexpr (N > 0) {
   88|  13.2k|         assert(index < N && "glz::visit index out of range");
  ------------------
  |  Branch (88:10): [True: 13.2k, False: 0]
  |  Branch (88:10): [True: 13.2k, Folded]
  |  Branch (88:10): [True: 13.2k, False: 0]
  ------------------
   89|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   90|       |         if constexpr (N == 1) {
   91|       |            (void)index;
   92|       |            (void)(lambda.template operator()<0>());
   93|       |         }
   94|       |         else if constexpr (N == 2) {
   95|       |            switch (index) {
   96|       |            case 0:
   97|       |               lambda.template operator()<0>();
   98|       |               break;
   99|       |            case 1:
  100|       |               lambda.template operator()<1>();
  101|       |               break;
  102|       |            default:
  103|       |               std::unreachable();
  104|       |            }
  105|       |         }
  106|       |         else if constexpr (N == 3) {
  107|       |            switch (index) {
  108|       |            case 0:
  109|       |               lambda.template operator()<0>();
  110|       |               break;
  111|       |            case 1:
  112|       |               lambda.template operator()<1>();
  113|       |               break;
  114|       |            case 2:
  115|       |               lambda.template operator()<2>();
  116|       |               break;
  117|       |            default:
  118|       |               std::unreachable();
  119|       |            }
  120|       |         }
  121|  13.2k|         else if constexpr (N == 4) {
  122|  13.2k|            switch (index) {
  123|  2.56k|            case 0:
  ------------------
  |  Branch (123:13): [True: 2.56k, False: 10.7k]
  ------------------
  124|  2.56k|               lambda.template operator()<0>();
  125|  2.56k|               break;
  126|  2.90k|            case 1:
  ------------------
  |  Branch (126:13): [True: 2.90k, False: 10.3k]
  ------------------
  127|  2.90k|               lambda.template operator()<1>();
  128|  2.90k|               break;
  129|  2.28k|            case 2:
  ------------------
  |  Branch (129:13): [True: 2.28k, False: 10.9k]
  ------------------
  130|  2.28k|               lambda.template operator()<2>();
  131|  2.28k|               break;
  132|  5.51k|            case 3:
  ------------------
  |  Branch (132:13): [True: 5.51k, False: 7.75k]
  ------------------
  133|  5.51k|               lambda.template operator()<3>();
  134|  5.51k|               break;
  135|      0|            default:
  ------------------
  |  Branch (135:13): [True: 0, False: 13.2k]
  ------------------
  136|      0|               std::unreachable();
  137|  13.2k|            }
  138|       |         }
  139|       |         else if constexpr (N == 5) {
  140|       |            switch (index) {
  141|       |            case 0:
  142|       |               lambda.template operator()<0>();
  143|       |               break;
  144|       |            case 1:
  145|       |               lambda.template operator()<1>();
  146|       |               break;
  147|       |            case 2:
  148|       |               lambda.template operator()<2>();
  149|       |               break;
  150|       |            case 3:
  151|       |               lambda.template operator()<3>();
  152|       |               break;
  153|       |            case 4:
  154|       |               lambda.template operator()<4>();
  155|       |               break;
  156|       |            default:
  157|       |               std::unreachable();
  158|       |            }
  159|       |         }
  160|       |         else if constexpr (N == 6) {
  161|       |            switch (index) {
  162|       |            case 0:
  163|       |               lambda.template operator()<0>();
  164|       |               break;
  165|       |            case 1:
  166|       |               lambda.template operator()<1>();
  167|       |               break;
  168|       |            case 2:
  169|       |               lambda.template operator()<2>();
  170|       |               break;
  171|       |            case 3:
  172|       |               lambda.template operator()<3>();
  173|       |               break;
  174|       |            case 4:
  175|       |               lambda.template operator()<4>();
  176|       |               break;
  177|       |            case 5:
  178|       |               lambda.template operator()<5>();
  179|       |               break;
  180|       |            default:
  181|       |               std::unreachable();
  182|       |            }
  183|       |         }
  184|       |         else if constexpr (N == 7) {
  185|       |            switch (index) {
  186|       |            case 0:
  187|       |               lambda.template operator()<0>();
  188|       |               break;
  189|       |            case 1:
  190|       |               lambda.template operator()<1>();
  191|       |               break;
  192|       |            case 2:
  193|       |               lambda.template operator()<2>();
  194|       |               break;
  195|       |            case 3:
  196|       |               lambda.template operator()<3>();
  197|       |               break;
  198|       |            case 4:
  199|       |               lambda.template operator()<4>();
  200|       |               break;
  201|       |            case 5:
  202|       |               lambda.template operator()<5>();
  203|       |               break;
  204|       |            case 6:
  205|       |               lambda.template operator()<6>();
  206|       |               break;
  207|       |            default:
  208|       |               std::unreachable();
  209|       |            }
  210|       |         }
  211|       |         else if constexpr (N == 8) {
  212|       |            switch (index) {
  213|       |            case 0:
  214|       |               lambda.template operator()<0>();
  215|       |               break;
  216|       |            case 1:
  217|       |               lambda.template operator()<1>();
  218|       |               break;
  219|       |            case 2:
  220|       |               lambda.template operator()<2>();
  221|       |               break;
  222|       |            case 3:
  223|       |               lambda.template operator()<3>();
  224|       |               break;
  225|       |            case 4:
  226|       |               lambda.template operator()<4>();
  227|       |               break;
  228|       |            case 5:
  229|       |               lambda.template operator()<5>();
  230|       |               break;
  231|       |            case 6:
  232|       |               lambda.template operator()<6>();
  233|       |               break;
  234|       |            case 7:
  235|       |               lambda.template operator()<7>();
  236|       |               break;
  237|       |            default:
  238|       |               std::unreachable();
  239|       |            }
  240|       |         }
  241|       |         else if constexpr (N == 9) {
  242|       |            switch (index) {
  243|       |            case 0:
  244|       |               lambda.template operator()<0>();
  245|       |               break;
  246|       |            case 1:
  247|       |               lambda.template operator()<1>();
  248|       |               break;
  249|       |            case 2:
  250|       |               lambda.template operator()<2>();
  251|       |               break;
  252|       |            case 3:
  253|       |               lambda.template operator()<3>();
  254|       |               break;
  255|       |            case 4:
  256|       |               lambda.template operator()<4>();
  257|       |               break;
  258|       |            case 5:
  259|       |               lambda.template operator()<5>();
  260|       |               break;
  261|       |            case 6:
  262|       |               lambda.template operator()<6>();
  263|       |               break;
  264|       |            case 7:
  265|       |               lambda.template operator()<7>();
  266|       |               break;
  267|       |            case 8:
  268|       |               lambda.template operator()<8>();
  269|       |               break;
  270|       |            default:
  271|       |               std::unreachable();
  272|       |            }
  273|       |         }
  274|       |         else if constexpr (N == 10) {
  275|       |            switch (index) {
  276|       |            case 0:
  277|       |               lambda.template operator()<0>();
  278|       |               break;
  279|       |            case 1:
  280|       |               lambda.template operator()<1>();
  281|       |               break;
  282|       |            case 2:
  283|       |               lambda.template operator()<2>();
  284|       |               break;
  285|       |            case 3:
  286|       |               lambda.template operator()<3>();
  287|       |               break;
  288|       |            case 4:
  289|       |               lambda.template operator()<4>();
  290|       |               break;
  291|       |            case 5:
  292|       |               lambda.template operator()<5>();
  293|       |               break;
  294|       |            case 6:
  295|       |               lambda.template operator()<6>();
  296|       |               break;
  297|       |            case 7:
  298|       |               lambda.template operator()<7>();
  299|       |               break;
  300|       |            case 8:
  301|       |               lambda.template operator()<8>();
  302|       |               break;
  303|       |            case 9:
  304|       |               lambda.template operator()<9>();
  305|       |               break;
  306|       |            default:
  307|       |               std::unreachable();
  308|       |            }
  309|       |         }
  310|       |         else {
  311|       |#ifdef _MSC_VER
  312|       |            using Lambda = std::decay_t<decltype(lambda)>;
  313|       |            static const auto jump_table = []<size_t... I>(std::index_sequence<I...>) {
  314|       |               return std::array{make_jump_function<I, Lambda>()...};
  315|       |            }(std::make_index_sequence<N>{});
  316|       |#else
  317|       |            static constexpr auto jump_table = []<size_t... I>(std::index_sequence<I...>) {
  318|       |               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
  319|       |            }(std::make_index_sequence<N>{});
  320|       |#endif
  321|       |
  322|       |#if defined(__clang_major__) && (__clang_major__ >= 19)
  323|       |            [[assume(index < N)]];
  324|       |#endif
  325|       |            jump_table[index](lambda);
  326|       |
  327|       |            // This code runs significantly slower on Clang
  328|       |            // Simple tests with assembly show that this should be faster,
  329|       |            // but full Glaze assembly need to be looked into
  330|       |            /*[&, index]<size_t... I>(std::index_sequence<I...>) {
  331|       |               (void)((index == I ? lambda.template operator()<I>() : void()), ...);
  332|       |            }(std::make_index_sequence<N>{});*/
  333|       |         }
  334|  13.2k|      }
  335|  13.2k|   }

_ZN3glz8to_charsIaQsr3stdE7same_asIu14__remove_cvrefIT_EaEEEPcS3_S1_:
  277|   863k|   {
  278|   863k|      *buf = '-';
  279|   863k|      return to_chars(buf + (val < 0), uint8_t(val ^ (val >> 7)) - (val >> 7));
  280|   863k|   }
_ZN3glz8to_charsIiQsr3stdE7same_asIu14__remove_cvrefIT_EiEEEPcS3_S1_:
  213|  2.89M|   {
  214|  2.89M|      *buf = '-';
  215|  2.89M|      return to_chars(buf + (val < 0), uint32_t(val ^ (val >> 31)) - (val >> 31));
  216|  2.89M|   }
_ZN3glz8to_charsIjQsr3stdE7same_asIu14__remove_cvrefIT_EjEEEPcS3_S1_:
  191|  2.89M|   {
  192|  2.89M|      using namespace itoa_impl;
  193|  2.89M|      if (val < 100) {
  ------------------
  |  Branch (193:11): [True: 1.36M, False: 1.53M]
  ------------------
  194|  1.36M|         return u32_2(buf, val);
  195|  1.36M|      }
  196|  1.53M|      else if (val < 10000) {
  ------------------
  |  Branch (196:16): [True: 1.26M, False: 271k]
  ------------------
  197|  1.26M|         return u32_4(buf, val);
  198|  1.26M|      }
  199|   271k|      else if (val < 1000000) {
  ------------------
  |  Branch (199:16): [True: 271k, False: 0]
  ------------------
  200|   271k|         return u32_6(buf, val);
  201|   271k|      }
  202|      0|      else if (val < 100000000) {
  ------------------
  |  Branch (202:16): [True: 0, False: 0]
  ------------------
  203|      0|         return u32_8(buf, val);
  204|      0|      }
  205|      0|      else {
  206|      0|         return u32_10(buf, val);
  207|      0|      }
  208|  2.89M|   }
_ZN3glz9itoa_impl5u32_2EPcj:
   74|  4.89M|      {
   75|  4.89M|         const uint32_t lz = val < 10;
   76|  4.89M|         std::memcpy(buf, char_table + ((val * 2) | lz), 2);
   77|  4.89M|         return buf + 2 - lz;
   78|  4.89M|      }
_ZN3glz9itoa_impl5u32_4EPcj:
   81|  1.74M|      {
   82|  1.74M|         const uint32_t aa = (val * 5243) >> 19; // val / 100
   83|  1.74M|         const uint32_t lz = aa < 10;
   84|  1.74M|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
   85|  1.74M|         std::memcpy(buf + 2 - lz, &digit_pairs[val - aa * 100], 2);
   86|  1.74M|         return buf + 4 - lz;
   87|  1.74M|      }
_ZN3glz9itoa_impl5u32_6EPcj:
   90|   271k|      {
   91|   271k|         const uint32_t aa = uint32_t((uint64_t(val) * 429497) >> 32); // val / 10000
   92|   271k|         const uint32_t bbcc = val - aa * 10000;
   93|   271k|         const uint32_t bb = (bbcc * 5243) >> 19; // bbcc / 100
   94|   271k|         const uint32_t lz = aa < 10;
   95|   271k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
   96|   271k|         std::memcpy(buf + 2 - lz, &digit_pairs[bb], 2);
   97|   271k|         std::memcpy(buf + 4 - lz, &digit_pairs[bbcc - bb * 100], 2);
   98|   271k|         return buf + 6 - lz;
   99|   271k|      }
_ZN3glz8to_charsIsQsr3stdE7same_asIu14__remove_cvrefIT_EsEEEPcS3_S1_:
  306|  2.03M|   {
  307|  2.03M|      *buf = '-';
  308|  2.03M|      return to_chars(buf + (val < 0), uint16_t(val ^ (val >> 15)) - (val >> 15));
  309|  2.03M|   }
_ZN3glz8to_charsIhQsr3stdE7same_asIu14__remove_cvrefIT_EhEEEPcS3_S1_:
  259|  2.93M|   {
  260|  2.93M|      using namespace itoa_impl;
  261|  2.93M|      if (val < 100) {
  ------------------
  |  Branch (261:11): [True: 2.74M, False: 189k]
  ------------------
  262|  2.74M|         return u32_2(buf, val);
  263|  2.74M|      }
  264|   189k|      else {
  265|       |         // 100-255: 3 digits
  266|   189k|         const uint32_t q = val / 100;
  267|   189k|         *buf = char('0' + q);
  268|   189k|         std::memcpy(buf + 1, &digit_pairs[val - q * 100], 2);
  269|   189k|         return buf + 3;
  270|   189k|      }
  271|  2.93M|   }
_ZN3glz8to_charsItQsr3stdE7same_asIu14__remove_cvrefIT_EtEEEPcS3_S1_:
  286|  1.81M|   {
  287|  1.81M|      using namespace itoa_impl;
  288|  1.81M|      if (val < 100) {
  ------------------
  |  Branch (288:11): [True: 785k, False: 1.03M]
  ------------------
  289|   785k|         return u32_2(buf, val);
  290|   785k|      }
  291|  1.03M|      else if (val < 10000) {
  ------------------
  |  Branch (291:16): [True: 481k, False: 550k]
  ------------------
  292|   481k|         return u32_4(buf, val);
  293|   481k|      }
  294|   550k|      else {
  295|       |         // 10000-65535: 5 digits
  296|   550k|         const uint32_t q = val / 10000;
  297|   550k|         *buf = char('0' + q);
  298|   550k|         return u64_len_4(buf + 1, val - q * 10000);
  299|   550k|      }
  300|  1.81M|   }
_ZN3glz9itoa_impl9u64_len_4EPcj:
  148|   550k|      {
  149|   550k|         const uint32_t aa = (val * 5243) >> 19;
  150|   550k|         std::memcpy(buf, &digit_pairs[aa], 2);
  151|   550k|         std::memcpy(buf + 2, &digit_pairs[val - aa * 100], 2);
  152|   550k|         return buf + 4;
  153|   550k|      }

_ZN3glz13to_chars_40kbIiQsr3stdE7same_asIu14__remove_cvrefIT_EiEEEPcS3_S1_:
  282|   905k|   {
  283|   905k|      *buf = '-';
  284|   905k|      return to_chars_40kb(buf + (val < 0),
  285|   905k|                           static_cast<uint32_t>((static_cast<uint32_t>(val) ^ (val >> 31)) - (val >> 31)));
  286|   905k|   }
_ZN3glz13to_chars_40kbIjQsr3stdE7same_asIu14__remove_cvrefIT_EjEEEPcS3_S1_:
  260|  1.80M|   {
  261|  1.80M|      using namespace itoa_40kb_impl;
  262|  1.80M|      if (val < 10000) {
  ------------------
  |  Branch (262:11): [True: 683k, False: 1.12M]
  ------------------
  263|   683k|         if (val < 100)
  ------------------
  |  Branch (263:14): [True: 668k, False: 15.4k]
  ------------------
  264|   668k|            return u32_2(buf, val);
  265|  15.4k|         else
  266|  15.4k|            return u32_4(buf, val);
  267|   683k|      }
  268|  1.12M|      else if (val < 100000000) {
  ------------------
  |  Branch (268:16): [True: 71.3k, False: 1.05M]
  ------------------
  269|  71.3k|         if (val < 1000000)
  ------------------
  |  Branch (269:14): [True: 24.2k, False: 47.0k]
  ------------------
  270|  24.2k|            return u32_6(buf, val);
  271|  47.0k|         else
  272|  47.0k|            return u32_8(buf, val);
  273|  71.3k|      }
  274|  1.05M|      else {
  275|  1.05M|         return u32_10(buf, val);
  276|  1.05M|      }
  277|  1.80M|   }
_ZN3glz14itoa_40kb_impl5u32_2EPcj:
   62|   668k|      {
   63|   668k|         const uint64_t lz = val < 10;
   64|       |         // Use OR since val*2 is always even (bit 0 is 0)
   65|   668k|         std::memcpy(buf, char_table + ((val * 2) | lz), 2);
   66|   668k|         return buf + 2 - lz;
   67|   668k|      }
_ZN3glz14itoa_40kb_impl5u32_4EPcj:
   70|  15.4k|      {
   71|  15.4k|         const uint32_t aa = (val * 5243) >> 19;
   72|  15.4k|         const uint64_t lz = val < 1000;
   73|  15.4k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
   74|  15.4k|         std::memcpy(buf + 2 - lz, &digit_pairs[val - aa * 100], 2);
   75|  15.4k|         return buf + 4 - lz;
   76|  15.4k|      }
_ZN3glz14itoa_40kb_impl5u32_6EPcj:
   79|  24.2k|      {
   80|  24.2k|         const uint32_t aa = static_cast<uint32_t>((static_cast<uint64_t>(val) * 429497ULL) >> 32);
   81|  24.2k|         const uint64_t lz = val < 100000;
   82|  24.2k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
   83|  24.2k|         std::memcpy(buf + 2 - lz, &digit_quads[val - aa * 10000], 4);
   84|  24.2k|         return buf + 6 - lz;
   85|  24.2k|      }
_ZN3glz14itoa_40kb_impl5u32_8EPcj:
   88|  47.0k|      {
   89|  47.0k|         const uint64_t aabb = (static_cast<uint64_t>(val) * 109951163ULL) >> 40;
   90|  47.0k|         const uint64_t aa = (aabb * 5243ULL) >> 19;
   91|  47.0k|         const uint64_t lz = val < 10000000;
   92|  47.0k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
   93|  47.0k|         std::memcpy(buf + 2 - lz, &digit_pairs[aabb - aa * 100], 2);
   94|  47.0k|         std::memcpy(buf + 4 - lz, &digit_quads[val - aabb * 10000], 4);
   95|  47.0k|         return buf + 8 - lz;
   96|  47.0k|      }
_ZN3glz14itoa_40kb_impl6u32_10EPcj:
   99|  1.05M|      {
  100|  1.05M|         const uint64_t high = div_1e8(val);
  101|  1.05M|         const uint64_t low = val - high * 100000000;
  102|  1.05M|         const uint64_t lz = high < 10;
  103|  1.05M|         std::memcpy(buf, char_table + ((high * 2) | lz), 2);
  104|  1.05M|         const uint64_t aabb = (low * 109951163ULL) >> 40;
  105|  1.05M|         const uint64_t ccdd = low - aabb * 10000;
  106|  1.05M|         std::memcpy(buf + 2 - lz, &digit_quads[aabb], 4);
  107|  1.05M|         std::memcpy(buf + 6 - lz, &digit_quads[ccdd], 4);
  108|  1.05M|         return buf + 10 - lz;
  109|  1.05M|      }
_ZN3glz14itoa_40kb_impl7div_1e8Em:
   50|  2.70M|      {
   51|  2.70M|         constexpr __uint128_t multiplier = 0xabcc77118461cefdULL;
   52|  2.70M|         constexpr uint64_t shift = 90;
   53|  2.70M|         return static_cast<uint64_t>((static_cast<__uint128_t>(value) * multiplier) >> shift);
   54|  2.70M|      }
_ZN3glz13to_chars_40kbIlQsr3stdE7same_asIu14__remove_cvrefIT_ElEEEPcS3_S1_:
  328|   930k|   {
  329|   930k|      *buf = '-';
  330|   930k|      return to_chars_40kb(buf + (val < 0),
  331|   930k|                           static_cast<uint64_t>((static_cast<uint64_t>(val) ^ (val >> 63)) - (val >> 63)));
  332|   930k|   }
_ZN3glz13to_chars_40kbImQsr3stdE7same_asIu14__remove_cvrefIT_EmEEEPcS3_S1_:
  291|  1.24M|   {
  292|  1.24M|      using namespace itoa_40kb_impl;
  293|  1.24M|      if (val < 10000) {
  ------------------
  |  Branch (293:11): [True: 362k, False: 885k]
  ------------------
  294|   362k|         if (val < 100)
  ------------------
  |  Branch (294:14): [True: 352k, False: 10.8k]
  ------------------
  295|   352k|            return u64_2(buf, val);
  296|  10.8k|         else
  297|  10.8k|            return u64_4(buf, val);
  298|   362k|      }
  299|   885k|      else if (val < 100000000) {
  ------------------
  |  Branch (299:16): [True: 16.2k, False: 868k]
  ------------------
  300|  16.2k|         if (val < 1000000)
  ------------------
  |  Branch (300:14): [True: 6.24k, False: 9.98k]
  ------------------
  301|  6.24k|            return u64_6(buf, val);
  302|  9.98k|         else
  303|  9.98k|            return u64_8(buf, val);
  304|  16.2k|      }
  305|   868k|      else if (val < 1000000000000ULL) {
  ------------------
  |  Branch (305:16): [True: 29.1k, False: 839k]
  ------------------
  306|  29.1k|         if (val < 10000000000ULL)
  ------------------
  |  Branch (306:14): [True: 12.4k, False: 16.7k]
  ------------------
  307|  12.4k|            return u64_10(buf, val);
  308|  16.7k|         else
  309|  16.7k|            return u64_12(buf, val);
  310|  29.1k|      }
  311|   839k|      else if (val < 10000000000000000ULL) {
  ------------------
  |  Branch (311:16): [True: 49.7k, False: 789k]
  ------------------
  312|  49.7k|         if (val < 100000000000000ULL)
  ------------------
  |  Branch (312:14): [True: 19.8k, False: 29.9k]
  ------------------
  313|  19.8k|            return u64_14(buf, val);
  314|  29.9k|         else
  315|  29.9k|            return u64_16(buf, val);
  316|  49.7k|      }
  317|   789k|      else if (val < 1000000000000000000ULL) {
  ------------------
  |  Branch (317:16): [True: 79.0k, False: 710k]
  ------------------
  318|  79.0k|         return u64_18(buf, val);
  319|  79.0k|      }
  320|   710k|      else {
  321|   710k|         return u64_20(buf, val);
  322|   710k|      }
  323|  1.24M|   }
_ZN3glz14itoa_40kb_impl5u64_2EPcm:
  114|   352k|      {
  115|   352k|         const uint64_t lz = val < 10;
  116|   352k|         std::memcpy(buf, char_table + ((val * 2) | lz), 2);
  117|   352k|         return buf + 2 - lz;
  118|   352k|      }
_ZN3glz14itoa_40kb_impl5u64_4EPcm:
  121|  10.8k|      {
  122|  10.8k|         const uint64_t aa = (val * 5243ULL) >> 19;
  123|  10.8k|         const uint64_t lz = val < 1000;
  124|  10.8k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  125|  10.8k|         std::memcpy(buf + 2 - lz, &digit_pairs[val - aa * 100], 2);
  126|  10.8k|         return buf + 4 - lz;
  127|  10.8k|      }
_ZN3glz14itoa_40kb_impl5u64_6EPcm:
  130|  6.24k|      {
  131|  6.24k|         const uint64_t aa = (val * 429497ULL) >> 32;
  132|  6.24k|         const uint64_t lz = val < 100000;
  133|  6.24k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  134|  6.24k|         std::memcpy(buf + 2 - lz, &digit_quads[val - aa * 10000], 4);
  135|  6.24k|         return buf + 6 - lz;
  136|  6.24k|      }
_ZN3glz14itoa_40kb_impl5u64_8EPcm:
  139|  9.98k|      {
  140|  9.98k|         const uint64_t aabb = (val * 109951163ULL) >> 40;
  141|  9.98k|         const uint64_t aa = (aabb * 5243ULL) >> 19;
  142|  9.98k|         const uint64_t lz = val < 10000000;
  143|  9.98k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  144|  9.98k|         std::memcpy(buf + 2 - lz, &digit_pairs[aabb - aa * 100], 2);
  145|  9.98k|         std::memcpy(buf + 4 - lz, &digit_quads[val - aabb * 10000], 4);
  146|  9.98k|         return buf + 8 - lz;
  147|  9.98k|      }
_ZN3glz14itoa_40kb_impl6u64_10EPcm:
  150|  12.4k|      {
  151|  12.4k|         const uint64_t high = div_1e8(val);
  152|  12.4k|         const uint64_t low = val - high * 100000000;
  153|  12.4k|         const uint64_t lz = high < 10;
  154|  12.4k|         std::memcpy(buf, char_table + ((high * 2) | lz), 2);
  155|  12.4k|         const uint64_t aabb = (low * 109951163ULL) >> 40;
  156|  12.4k|         const uint64_t ccdd = low - aabb * 10000;
  157|  12.4k|         std::memcpy(buf + 2 - lz, &digit_quads[aabb], 4);
  158|  12.4k|         std::memcpy(buf + 6 - lz, &digit_quads[ccdd], 4);
  159|  12.4k|         return buf + 10 - lz;
  160|  12.4k|      }
_ZN3glz14itoa_40kb_impl6u64_12EPcm:
  163|  16.7k|      {
  164|  16.7k|         const uint64_t high = div_1e8(val);
  165|  16.7k|         const uint64_t low = val - high * 100000000;
  166|  16.7k|         const uint64_t aa = (high * 5243ULL) >> 19;
  167|  16.7k|         const uint64_t lz = aa < 10;
  168|  16.7k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  169|  16.7k|         std::memcpy(buf + 2 - lz, &digit_pairs[high - aa * 100], 2);
  170|  16.7k|         const uint64_t aabb = (low * 109951163ULL) >> 40;
  171|  16.7k|         const uint64_t ccdd = low - aabb * 10000;
  172|  16.7k|         std::memcpy(buf + 4 - lz, &digit_quads[aabb], 4);
  173|  16.7k|         std::memcpy(buf + 8 - lz, &digit_quads[ccdd], 4);
  174|  16.7k|         return buf + 12 - lz;
  175|  16.7k|      }
_ZN3glz14itoa_40kb_impl6u64_14EPcm:
  178|  19.8k|      {
  179|  19.8k|         const uint64_t high = div_1e8(val);
  180|  19.8k|         const uint64_t low = val - high * 100000000;
  181|  19.8k|         const uint64_t aa = (high * 429497ULL) >> 32;
  182|  19.8k|         const uint64_t lz = aa < 10;
  183|  19.8k|         const uint64_t bbcc = high - aa * 10000;
  184|  19.8k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  185|  19.8k|         std::memcpy(buf + 2 - lz, &digit_quads[bbcc], 4);
  186|  19.8k|         const uint64_t aabb = (low * 109951163ULL) >> 40;
  187|  19.8k|         const uint64_t ccdd = low - aabb * 10000;
  188|  19.8k|         std::memcpy(buf + 6 - lz, &digit_quads[aabb], 4);
  189|  19.8k|         std::memcpy(buf + 10 - lz, &digit_quads[ccdd], 4);
  190|  19.8k|         return buf + 14 - lz;
  191|  19.8k|      }
_ZN3glz14itoa_40kb_impl6u64_16EPcm:
  194|  29.9k|      {
  195|  29.9k|         const uint64_t high = div_1e8(val);
  196|  29.9k|         const uint64_t low = val - high * 100000000;
  197|  29.9k|         uint64_t aabb = (high * 109951163ULL) >> 40;
  198|  29.9k|         uint64_t ccdd = high - aabb * 10000;
  199|  29.9k|         const uint64_t aa = (aabb * 5243ULL) >> 19;
  200|  29.9k|         const uint64_t lz = aa < 10;
  201|  29.9k|         const uint64_t bb = aabb - aa * 100;
  202|  29.9k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  203|  29.9k|         std::memcpy(buf + 2 - lz, &digit_pairs[bb], 2);
  204|  29.9k|         std::memcpy(buf + 4 - lz, &digit_quads[ccdd], 4);
  205|  29.9k|         aabb = (low * 109951163ULL) >> 40;
  206|  29.9k|         ccdd = low - aabb * 10000;
  207|  29.9k|         std::memcpy(buf + 8 - lz, &digit_quads[aabb], 4);
  208|  29.9k|         std::memcpy(buf + 12 - lz, &digit_quads[ccdd], 4);
  209|  29.9k|         return buf + 16 - lz;
  210|  29.9k|      }
_ZN3glz14itoa_40kb_impl6u64_18EPcm:
  213|  79.0k|      {
  214|  79.0k|         const uint64_t high = div_1e8(val);
  215|  79.0k|         const uint64_t low = val - high * 100000000;
  216|  79.0k|         const uint64_t high10 = div_1e8(high);
  217|  79.0k|         const uint64_t low10 = high - high10 * 100000000;
  218|  79.0k|         const uint64_t lz = high10 < 10;
  219|  79.0k|         std::memcpy(buf, char_table + ((high10 * 2) | lz), 2);
  220|  79.0k|         uint64_t aabb = (low10 * 109951163ULL) >> 40;
  221|  79.0k|         uint64_t ccdd = low10 - aabb * 10000;
  222|  79.0k|         std::memcpy(buf + 2 - lz, &digit_quads[aabb], 4);
  223|  79.0k|         std::memcpy(buf + 6 - lz, &digit_quads[ccdd], 4);
  224|  79.0k|         aabb = (low * 109951163ULL) >> 40;
  225|  79.0k|         ccdd = low - aabb * 10000;
  226|  79.0k|         std::memcpy(buf + 10 - lz, &digit_quads[aabb], 4);
  227|  79.0k|         std::memcpy(buf + 14 - lz, &digit_quads[ccdd], 4);
  228|  79.0k|         return buf + 18 - lz;
  229|  79.0k|      }
_ZN3glz14itoa_40kb_impl6u64_20EPcm:
  232|   710k|      {
  233|   710k|         const uint64_t high = div_1e8(val);
  234|   710k|         const uint64_t low = val - high * 100000000;
  235|   710k|         const uint64_t high12 = div_1e8(high);
  236|   710k|         const uint64_t low12 = high - high12 * 100000000;
  237|   710k|         const uint64_t aa = (high12 * 5243ULL) >> 19;
  238|   710k|         const uint64_t lz = aa < 10;
  239|   710k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  240|   710k|         std::memcpy(buf + 2 - lz, &digit_pairs[high12 - aa * 100], 2);
  241|   710k|         uint64_t aabb = (low12 * 109951163ULL) >> 40;
  242|   710k|         uint64_t ccdd = low12 - aabb * 10000;
  243|   710k|         std::memcpy(buf + 4 - lz, &digit_quads[aabb], 4);
  244|   710k|         std::memcpy(buf + 8 - lz, &digit_quads[ccdd], 4);
  245|   710k|         aabb = (low * 109951163ULL) >> 40;
  246|   710k|         ccdd = low - aabb * 10000;
  247|   710k|         std::memcpy(buf + 12 - lz, &digit_quads[aabb], 4);
  248|   710k|         std::memcpy(buf + 16 - lz, &digit_quads[ccdd], 4);
  249|   710k|         return buf + 20 - lz;
  250|   710k|      }

_ZN3glz8to_charsITkNSt3__114floating_pointEfLb0EEEPcS2_T_:
 1118|  1.61M|   {
 1119|  1.61M|      static_assert(std::is_same_v<T, float> || std::is_same_v<T, double>);
 1120|  1.61M|      return zmij::detail::write<T, OptSize>(val, buf);
 1121|  1.61M|   }
_ZN3glz4zmij6detail5writeIfLb0EEEPcT_S3_:
  975|  1.61M|      {
  976|  1.61M|         using namespace detail_impl;
  977|  1.61M|         using traits = float_traits<Float>;
  978|  1.61M|         auto bits = traits::to_bits(value);
  979|  1.61M|         auto bin_exp = traits::get_exp(bits);
  980|  1.61M|         auto bin_sig = traits::get_sig(bits);
  981|       |
  982|  1.61M|         *buffer = '-';
  983|  1.61M|         buffer += traits::is_negative(bits);
  984|       |
  985|  1.61M|         const auto* c = &consts_v<OptSize>;
  986|  1.61M|         ZMIJ_ASM(("" : "+r"(c)));
  ------------------
  |  |  126|  1.61M|#define ZMIJ_ASM(x) asm x
  ------------------
  987|  1.61M|         int64_t threshold = traits::num_bits == 64 ? static_cast<int64_t>(c->threshold) : 10'000'000;
  ------------------
  |  Branch (987:30): [Folded, False: 1.61M]
  ------------------
  988|       |
  989|  1.61M|         to_decimal_result dec;
  990|  1.61M|         bool is_normal = unsigned(bin_exp - 1) < unsigned(traits::exp_mask - 1);
  991|  1.61M|         if (!is_normal) [[unlikely]] {
  ------------------
  |  Branch (991:14): [True: 542k, False: 1.07M]
  ------------------
  992|   542k|            if (bin_exp != 0) {
  ------------------
  |  Branch (992:17): [True: 3.97k, False: 538k]
  ------------------
  993|       |#if GLZ_ZMIJ_EMIT_INF_NAN
  994|       |               memcpy(buffer, bin_sig == 0 ? "inf" : "nan", 4);
  995|       |               return buffer + 3;
  996|       |#else
  997|       |               // Undo the speculative '-' for sign-bit-set NaN/Inf: JSON "null"
  998|       |               // never carries a sign.
  999|  3.97k|               buffer -= traits::is_negative(bits);
 1000|  3.97k|               memcpy(buffer, "null", 4);
 1001|  3.97k|               return buffer + 4;
 1002|  3.97k|#endif
 1003|  3.97k|            }
 1004|   538k|            if (bin_sig == 0) {
  ------------------
  |  Branch (1004:17): [True: 495k, False: 43.3k]
  ------------------
 1005|   495k|               memcpy(buffer, "0", 2);
 1006|   495k|               return buffer + 1;
 1007|   495k|            }
 1008|  43.3k|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig, 1, true, *c);
 1009|  43.3k|            int64_t dec_sig = dec.sig * 10 + (dec.has_last_digit ? dec.last_digit : 0);
  ------------------
  |  Branch (1009:47): [True: 39.9k, False: 3.39k]
  ------------------
 1010|  43.3k|            int32_t dec_exp = dec.exp;
 1011|   181k|            while (dec_sig < threshold) {
  ------------------
  |  Branch (1011:20): [True: 138k, False: 43.3k]
  ------------------
 1012|   138k|               dec_sig *= 10;
 1013|   138k|               --dec_exp;
 1014|   138k|            }
 1015|  43.3k|            int64_t d = static_cast<int64_t>(detail_impl::div10(static_cast<uint64_t>(dec_sig)));
 1016|  43.3k|            int32_t last_digit = static_cast<int32_t>(dec_sig - d * 10);
 1017|  43.3k|            dec = {d, dec_exp, last_digit, last_digit != 0};
 1018|  43.3k|         }
 1019|  1.07M|         else {
 1020|  1.07M|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig | traits::implicit_bit,
 1021|  1.07M|                                                                                     bin_exp, bin_sig != 0, *c);
 1022|  1.07M|         }
 1023|  1.11M|         bool extra_digit = dec.sig >= threshold;
 1024|  1.11M|         int dec_exp = dec.exp + traits::max_digits10 - 2 + extra_digit;
 1025|  1.11M|         if (traits::num_bits == 32 && dec.sig < 1'000'000) [[unlikely]] {
  ------------------
  |  Branch (1025:14): [True: 1.11M, Folded]
  |  Branch (1025:40): [True: 2.02k, False: 1.11M]
  ------------------
 1026|  2.02k|            dec.sig = 10 * dec.sig + (dec.has_last_digit ? dec.last_digit : 0);
  ------------------
  |  Branch (1026:39): [True: 1.67k, False: 353]
  ------------------
 1027|  2.02k|            dec.has_last_digit = false;
 1028|  2.02k|            --dec_exp;
 1029|  2.02k|         }
 1030|       |
 1031|  1.11M|         char* start = buffer;
 1032|  1.11M|         auto dig = to_digits<traits::num_bits, OptSize>(static_cast<uint64_t>(dec.sig), extra_digit, *c);
 1033|  1.11M|         constexpr int bcd_size = traits::num_bits == 64 ? 16 : 8;
  ------------------
  |  Branch (1033:35): [Folded, False: 1.11M]
  ------------------
 1034|  1.11M|         if (dec_exp >= traits::min_fixed_dec_exp && dec_exp <= traits::max_fixed_dec_exp) {
  ------------------
  |  Branch (1034:14): [True: 356k, False: 759k]
  |  Branch (1034:54): [True: 40.7k, False: 315k]
  ------------------
 1035|  40.7k|            memcpy(start, &zeros_v, 8);
 1036|  40.7k|            const auto& fmt = dec_exp_formats.get<traits>(dec_exp);
 1037|  40.7k|            buffer += fmt.start_pos;
 1038|  40.7k|            memcpy(buffer, &dig.digits, bcd_size);
 1039|  40.7k|            memmove(buffer, buffer + !extra_digit, bcd_size);
 1040|  40.7k|            buffer[bcd_size + extra_digit - 1] = static_cast<char>('0' + (dec.has_last_digit ? dec.last_digit : 0));
  ------------------
  |  Branch (1040:75): [True: 17.8k, False: 22.8k]
  ------------------
 1041|  40.7k|            memmove(start + fmt.shift_pos, start + fmt.point_pos, bcd_size);
 1042|  40.7k|            start[fmt.point_pos] = '.';
 1043|  40.7k|            int num_digits = dec.has_last_digit ? bcd_size : dig.num_digits - 1;
  ------------------
  |  Branch (1043:30): [True: 17.8k, False: 22.8k]
  ------------------
 1044|  40.7k|            return buffer + fmt.exp_pos[num_digits + extra_digit - 1];
 1045|  40.7k|         }
 1046|  1.07M|         buffer += extra_digit;
 1047|  1.07M|         memcpy(buffer, &dig.digits, bcd_size);
 1048|  1.07M|         buffer[bcd_size] = static_cast<char>('0' + dec.last_digit);
 1049|  1.07M|         buffer += dec.has_last_digit ? bcd_size + 1 : dig.num_digits;
  ------------------
  |  Branch (1049:20): [True: 485k, False: 589k]
  ------------------
 1050|  1.07M|         start[0] = start[1];
 1051|  1.07M|         start[1] = '.';
 1052|  1.07M|         buffer -= (buffer - 1 == start + 1);
 1053|       |
 1054|  1.07M|         if constexpr (exp_string_table<OptSize>::enable) {
 1055|  1.07M|            uint64_t exp_data = exp_strings_v<OptSize>.data[dec_exp + exp_string_table<OptSize>::offset];
 1056|  1.07M|            int len = int(exp_data >> 48);
 1057|  1.07M|            if (is_big_endian) exp_data = bswap64(exp_data);
  ------------------
  |  Branch (1057:17): [Folded, False: 1.07M]
  ------------------
 1058|  1.07M|            memcpy(buffer, &exp_data, traits::max_exponent10 >= 100 ? 8 : 4);
  ------------------
  |  Branch (1058:39): [Folded, False: 1.07M]
  ------------------
 1059|  1.07M|            return buffer + len;
 1060|  1.07M|         }
 1061|       |         // Glaze emits uppercase 'E', omits '+' on positive exponents, and
 1062|       |         // drops the leading zero on single-digit exponents (E7, not E07).
 1063|       |         // Branchless: write "E-" always, then advance past the '-' only when
 1064|       |         // the exponent is negative.
 1065|      0|         bool neg = dec_exp < 0;
 1066|  1.07M|         buffer[0] = 'E';
 1067|  1.07M|         buffer[1] = '-';
 1068|  1.07M|         buffer += 1 + unsigned(neg);
 1069|  1.07M|         dec_exp = neg ? -dec_exp : dec_exp;
  ------------------
  |  Branch (1069:20): [True: 0, False: 1.07M]
  ------------------
 1070|  1.07M|         unsigned hundreds_written = 0;
 1071|       |         if constexpr (traits::max_exponent10 >= 100) {
 1072|       |            int32_t digit = 0;
 1073|       |            if constexpr (use_umul128_hi64) {
 1074|       |               digit = static_cast<int32_t>(umul128_hi64(static_cast<uint64_t>(dec_exp), 0x290000000000000ull));
 1075|       |            }
 1076|       |            else {
 1077|       |               digit = static_cast<int32_t>((uint32_t(dec_exp) * div100_sig) >> div100_exp);
 1078|       |            }
 1079|       |            *buffer = static_cast<char>('0' + digit);
 1080|       |            hundreds_written = unsigned(dec_exp >= 100);
 1081|       |            buffer += hundreds_written;
 1082|       |            dec_exp -= digit * 100;
 1083|       |         }
 1084|       |         // dec_exp now in [0, 99]. Skip the tens digit only when no higher
 1085|       |         // digit has been written (i.e. true leading zero, not interior).
 1086|  1.07M|         const char* d2 = digits2(dec_exp);
 1087|  1.07M|         *buffer = d2[0];
 1088|  1.07M|         buffer += hundreds_written | unsigned(dec_exp >= 10);
 1089|  1.07M|         *buffer = d2[1];
 1090|  1.07M|         return buffer + 1;
 1091|  1.11M|      }
_ZN3glz4zmij11detail_impl12float_traitsIfE7to_bitsEf:
  358|  1.61M|         {
  359|  1.61M|            sig_type bits;
  360|  1.61M|            memcpy(&bits, &value, sizeof(value));
  361|  1.61M|            return bits;
  362|  1.61M|         }
_ZN3glz4zmij11detail_impl12float_traitsIfE7get_expEj:
  367|  1.61M|         {
  368|  1.61M|            return static_cast<int32_t>((bits << 1) >> (num_sig_bits + 1));
  369|  1.61M|         }
_ZN3glz4zmij11detail_impl12float_traitsIfE7get_sigEj:
  365|  1.61M|         static auto get_sig(sig_type bits) noexcept -> sig_type { return bits & (implicit_bit - 1); }
_ZN3glz4zmij11detail_impl12float_traitsIfE11is_negativeEj:
  364|  1.61M|         static auto is_negative(sig_type bits) noexcept -> bool { return bits >> (num_bits - 1); }
_ZN3glz4zmij11detail_impl10to_decimalIfjLb0EEENS1_17to_decimal_resultET0_lbRKNS1_9constantsIXT1_EEE:
  868|  1.11M|      {
  869|  1.11M|         using traits = float_traits<Float>;
  870|  1.11M|         int64_t bin_exp = raw_exp - traits::exp_offset;
  871|  1.11M|         constexpr int num_bits = std::numeric_limits<UInt>::digits;
  872|       |
  873|  1.11M|         constexpr uint64_t log10_2_sig = 78'913;
  874|  1.11M|         constexpr int32_t log10_2_exp = 18;
  875|  1.11M|         int32_t dec_exp = 0;
  876|       |         if constexpr (use_umul128_hi64) {
  877|       |            dec_exp =
  878|       |               static_cast<int32_t>(umul128_hi64(static_cast<uint64_t>(bin_exp), log10_2_sig << (64 - log10_2_exp)));
  879|       |         }
  880|  1.11M|         else {
  881|  1.11M|            dec_exp = compute_dec_exp(bin_exp);
  882|  1.11M|         }
  883|  1.11M|         uint64_t even = 1 - (bin_sig & 1);
  884|  1.11M|         constexpr int32_t extra_shift = exp_shift_table<OptSize>::extra_shift;
  885|       |
  886|  1.11M|         if (!regular) [[unlikely]] {
  ------------------
  |  Branch (886:14): [True: 12.6k, False: 1.10M]
  ------------------
  887|  12.6k|            int32_t irregular_dec_exp = compute_dec_exp(bin_exp, false);
  888|  12.6k|            int32_t shift = compute_exp_shift(bin_exp, irregular_dec_exp + 1) + extra_shift;
  889|  12.6k|            uint128 pow10 = c.pow10_significands[-irregular_dec_exp - 1];
  890|  12.6k|            uint128 p = umul192_hi128(pow10.hi, pow10.lo, bin_sig << shift);
  891|       |
  892|  12.6k|            int64_t integral = p.hi >> extra_shift;
  893|  12.6k|            uint64_t fractional = p.hi << (64 - extra_shift) | p.lo >> extra_shift;
  894|       |
  895|  12.6k|            uint64_t half_ulp = pow10.hi >> (extra_shift + 1 - shift);
  896|  12.6k|            bool round_up = half_ulp > ~uint64_t(0) - fractional;
  897|  12.6k|            bool round_down = (half_ulp >> 1) > fractional;
  898|  12.6k|            integral += round_up;
  899|       |
  900|  12.6k|            int32_t digit = static_cast<int32_t>(umul128_add_hi64(fractional, 10, (uint64_t(1) << 63) - 1));
  901|  12.6k|            int32_t lo = static_cast<int32_t>(umul128_add_hi64(fractional - (half_ulp >> 1), 10, ~uint64_t(0)));
  902|  12.6k|            if (digit < lo) digit = lo;
  ------------------
  |  Branch (902:17): [True: 1.57k, False: 11.1k]
  ------------------
  903|  12.6k|            return {integral, irregular_dec_exp, digit, (round_up + round_down) == 0};
  904|  12.6k|         }
  905|       |
  906|  1.10M|         if constexpr (num_bits == 32) {
  907|  1.10M|            constexpr int32_t float_extra_shift = 34;
  908|  1.10M|            int32_t shift = compute_exp_shift(bin_exp, dec_exp + 1) + float_extra_shift;
  909|  1.10M|            uint64_t pow10_hi = c.pow10_significands[-dec_exp - 1].hi;
  910|  1.10M|            uint64_t p = umul128_hi64(pow10_hi + 1, uint64_t(bin_sig) << shift);
  911|       |
  912|  1.10M|            int64_t integral = p >> float_extra_shift;
  913|  1.10M|            uint64_t fractional = p & ((1ull << float_extra_shift) - 1);
  914|       |
  915|  1.10M|            uint64_t half_ulp = (pow10_hi >> (65 - shift)) + even;
  916|  1.10M|            bool round_up = (fractional + half_ulp) >> float_extra_shift;
  917|  1.10M|            bool round_down = half_ulp > fractional;
  918|  1.10M|            integral += round_up;
  919|       |
  920|  1.10M|            uint64_t prod = fractional * 10;
  921|  1.10M|            int32_t digit = static_cast<int32_t>(prod >> float_extra_shift);
  922|  1.10M|            uint64_t rem = prod & ((1ull << float_extra_shift) - 1);
  923|  1.10M|            digit +=
  924|  1.10M|               rem > (1ull << (float_extra_shift - 1)) || (rem == (1ull << (float_extra_shift - 1)) && (digit & 1));
  ------------------
  |  Branch (924:16): [True: 497k, False: 605k]
  |  Branch (924:60): [True: 1.29k, False: 604k]
  |  Branch (924:104): [True: 624, False: 675]
  ------------------
  925|  1.10M|            return {integral, dec_exp, digit, (round_up + round_down) == 0};
  926|       |         }
  927|       |         else {
  928|       |            int32_t shift = exp_shift_table<OptSize>::enable ? exp_shifts_v<OptSize>.data[bin_exp + traits::exp_offset]
  929|       |                                                             : compute_exp_shift(bin_exp, dec_exp + 1) + extra_shift;
  930|       |            ZMIJ_ASM(("" : "+r"(dec_exp)));
  931|       |            uint128 pow10 = c.pow10_significands[-dec_exp - 1];
  932|       |            uint128 p = umul192_hi128(pow10.hi, pow10.lo, bin_sig << shift);
  933|       |            int64_t integral = p.hi >> extra_shift;
  934|       |            uint64_t fractional = p.hi << (64 - extra_shift) | p.lo >> extra_shift;
  935|       |            uint64_t half_ulp = (pow10.hi >> (extra_shift + 1 - shift)) + even;
  936|       |            bool round_up = fractional + half_ulp < fractional;
  937|       |            bool round_down = half_ulp > fractional;
  938|       |            integral += round_up;
  939|       |
  940|       |            int32_t digit = static_cast<int32_t>(umul128_add_hi64(fractional, 10, c.biased_half));
  941|       |            if (fractional == (1ull << 62)) [[unlikely]] {
  942|       |               digit = 2;
  943|       |            }
  944|       |            return {integral, dec_exp, digit, (round_up + round_down) == 0};
  945|       |         }
  946|  1.10M|      }
_ZN3glz4zmij11detail_impl15compute_dec_expElb:
  333|  1.95M|      {
  334|  1.95M|         assert(bin_exp >= -1334 && bin_exp <= 2620);
  ------------------
  |  Branch (334:10): [True: 1.95M, False: 0]
  |  Branch (334:10): [True: 1.95M, False: 0]
  |  Branch (334:10): [True: 1.95M, False: 0]
  ------------------
  335|  1.95M|         constexpr int log10_3_over_4_sig = 131'072;
  336|  1.95M|         constexpr int log10_2_sig = 315'653, log10_2_exp = 20;
  337|  1.95M|         return static_cast<int32_t>((bin_exp * log10_2_sig - !regular * log10_3_over_4_sig) >> log10_2_exp);
  338|  1.95M|      }
_ZN3glz4zmij11detail_impl17compute_exp_shiftEli:
  457|  1.12M|      {
  458|  1.12M|         assert(dec_exp >= -350 && dec_exp <= 350);
  ------------------
  |  Branch (458:10): [True: 1.12M, False: 0]
  |  Branch (458:10): [True: 1.12M, False: 0]
  |  Branch (458:10): [True: 1.12M, False: 0]
  ------------------
  459|  1.12M|         constexpr int log2_pow10_sig = 217'707, log2_pow10_exp = 16;
  460|  1.12M|         int pow10_bin_exp = -dec_exp * log2_pow10_sig >> log2_pow10_exp;
  461|  1.12M|         return static_cast<int32_t>(bin_exp + pow10_bin_exp + 1);
  462|  1.12M|      }
_ZNK3glz4zmij11detail_impl23pow10_significand_tableILb0EEixEi:
  440|  1.93M|         {
  441|  1.93M|            constexpr int dec_exp_min = -293;
  442|  1.93M|            int i = dec_exp - dec_exp_min;
  443|  1.93M|            if (compress) return compute(i);
  ------------------
  |  Branch (443:17): [Folded, False: 1.93M]
  ------------------
  444|  1.93M|            if (!split_tables) return {data[i * 2], data[i * 2 + 1]};
  ------------------
  |  Branch (444:17): [True: 1.93M, Folded]
  ------------------
  445|       |
  446|      0|            const uint64_t* hi = data + num_pow10s + dec_exp_min - 1;
  447|      0|            const uint64_t* lo = hi + num_pow10s;
  448|       |
  449|      0|            if !consteval {
  450|      0|               ZMIJ_ASM(volatile("" : "+r"(hi), "+r"(lo)));
  ------------------
  |  |  126|      0|#define ZMIJ_ASM(x) asm x
  ------------------
  451|      0|            }
  452|      0|            return {hi[-dec_exp], lo[-dec_exp]};
  453|  1.93M|         }
_ZN3glz4zmij11detail_impl13umul192_hi128Emmm:
  308|   833k|      {
  309|   833k|         uint128_t p = umul128(x_hi, y);
  310|   833k|         uint64_t lo = uint64_t(p) + uint64_t(umul128(x_lo, y) >> 64);
  311|   833k|         return {uint64_t(p >> 64) + (lo < uint64_t(p)), lo};
  312|   833k|      }
_ZN3glz4zmij11detail_impl7umul128Emm:
  265|  2.89M|      {
  266|  2.89M|#if ZMIJ_USE_INT128
  267|  2.89M|         return uint128_t(x) * y;
  268|       |#else
  269|       |#if defined(_M_AMD64)
  270|       |         if !consteval {
  271|       |            uint64_t hi = 0;
  272|       |            uint64_t lo = _umul128(x, y, &hi);
  273|       |            return {hi, lo};
  274|       |         }
  275|       |#elif defined(_M_ARM64)
  276|       |         if !consteval {
  277|       |            return {__umulh(x, y), x * y};
  278|       |         }
  279|       |#endif
  280|       |         uint64_t a = x >> 32;
  281|       |         uint64_t b = uint32_t(x);
  282|       |         uint64_t c = y >> 32;
  283|       |         uint64_t d = uint32_t(y);
  284|       |
  285|       |         uint64_t ac = a * c;
  286|       |         uint64_t bc = b * c;
  287|       |         uint64_t ad = a * d;
  288|       |         uint64_t bd = b * d;
  289|       |
  290|       |         uint64_t cs = (bd >> 32) + uint32_t(ad) + uint32_t(bc);
  291|       |         return {ac + (ad >> 32) + (bc >> 32) + (cs >> 32), (cs << 32) + uint32_t(bd)};
  292|       |#endif
  293|  2.89M|      }
_ZN3glz4zmij11detail_impl16umul128_add_hi64Emmm:
  298|   853k|      {
  299|   853k|#if ZMIJ_USE_INT128
  300|   853k|         return uint64_t((uint128_t(x) * y + c) >> 64);
  301|       |#else
  302|       |         auto p = umul128(x, y);
  303|       |         return p.hi + (p.lo + c < p.lo);
  304|       |#endif
  305|   853k|      }
_ZN3glz4zmij11detail_impl12umul128_hi64Emm:
  295|  1.23M|      constexpr auto umul128_hi64(uint64_t x, uint64_t y) noexcept -> uint64_t { return uint64_t(umul128(x, y) >> 64); }
_ZN3glz4zmij11detail_impl5div10Em:
  326|   127k|      {
  327|   127k|         assert(x <= (1ull << 62));
  ------------------
  |  Branch (327:10): [True: 127k, False: 0]
  ------------------
  328|   127k|         constexpr uint64_t div10_sig64 = (1ull << 63) / 5 + 1;
  329|   127k|         return ZMIJ_USE_INT128 ? umul128_hi64(x, div10_sig64) : x / 10;
  ------------------
  |  |  247|   127k|#define ZMIJ_USE_INT128 1
  |  |  ------------------
  |  |  |  Branch (247:25): [True: 127k, Folded]
  |  |  ------------------
  ------------------
  330|   127k|      }
_ZN3glz4zmij11detail_impl9to_digitsILi32ELb0EEENS1_10dec_digitsIXT_EEEmbRKNS1_9constantsIXT0_EEE:
  809|  1.11M|      {
  810|  1.11M|         if constexpr (num_bits == 32) {
  811|  1.11M|            auto result = to_bcd8<OptSize>(value);
  812|  1.11M|            return {result.bcd + zeros_v, result.len};
  813|       |         }
  814|       |         else {
  815|       |#if !ZMIJ_USE_NEON && !ZMIJ_USE_SSE
  816|       |            uint32_t bbccddee = uint32_t(value / 100'000'000);
  817|       |            uint32_t ffgghhii = uint32_t(value % 100'000'000);
  818|       |            auto hi = to_bcd8<OptSize>(bbccddee);
  819|       |            if (ffgghhii == 0) return {{hi.bcd + zeros_v, zeros_v}, hi.len};
  820|       |            auto lo = to_bcd8<OptSize>(ffgghhii);
  821|       |            return {{hi.bcd + zeros_v, lo.bcd + zeros_v}, 8 + lo.len};
  822|       |#elif ZMIJ_USE_NEON
  823|       |            auto unshuffled_digits = to_unshuffled_digits(value, c);
  824|       |            uint8x16_t digits = vrev64q_u8(unshuffled_digits);
  825|       |            uint16x8_t str = vaddq_u16(vreinterpretq_u16_u8(digits), vreinterpretq_u16_s8(vdupq_n_s8('0')));
  826|       |
  827|       |            // vcgtzq_s8 is AArch64-only; the portable spelling (ARMv7 NEON and
  828|       |            // up) is "compare greater-than against a zero vector".
  829|       |            uint16x8_t is_not_zero = vreinterpretq_u16_u8(vcgtq_s8(vreinterpretq_s8_u8(digits), vdupq_n_s8(0)));
  830|       |            uint64_t zeroes = vget_lane_u64(vreinterpret_u64_u8(vshrn_n_u16(is_not_zero, 4)), 0);
  831|       |            return {str, 16 - (clz(zeroes) >> 2)};
  832|       |#else
  833|       |            uint32_t abbccddee = uint32_t(value / 100'000'000);
  834|       |            uint32_t ffgghhii = uint32_t(value % 100'000'000);
  835|       |
  836|       |            const __m128i zeros = _mm_load_si128(m128ptr(&c.zeros));
  837|       |            auto unshuffled_bcd = to_unshuffled_digits(abbccddee, ffgghhii, c);
  838|       |#if ZMIJ_USE_SSE4_1
  839|       |            const __m128i bswap = _mm_load_si128(m128ptr(&c.bswap));
  840|       |            auto bcd = _mm_shuffle_epi8(unshuffled_bcd, bswap);
  841|       |#else
  842|       |            auto bcd = _mm_shuffle_epi32(unshuffled_bcd, _MM_SHUFFLE(0, 1, 2, 3));
  843|       |#endif
  844|       |
  845|       |            __m128i mask128 = _mm_cmpgt_epi8(bcd, _mm_setzero_si128());
  846|       |            uint64_t mask = _mm_movemask_epi8(mask128);
  847|       |#if defined(__LZCNT__) && !defined(ZMIJ_NO_BUILTINS)
  848|       |            int len = 32 - _lzcnt_u32(mask);
  849|       |#else
  850|       |            int len = 63 - clz((mask << 1) | 1);
  851|       |#endif
  852|       |            return {_mm_or_si128(bcd, zeros), len};
  853|       |#endif
  854|       |         }
  855|  1.11M|      }
_ZN3glz4zmij11detail_impl7to_bcd8ILb0EEENS1_10bcd_resultEm:
  753|  1.11M|      {
  754|  1.11M|         if (!ZMIJ_USE_SSE && !ZMIJ_USE_NEON) {
  ------------------
  |  |   63|  1.11M|#define ZMIJ_USE_SSE ZMIJ_USE_SIMD
  |  |  ------------------
  |  |  |  |   41|  2.23M|#define ZMIJ_USE_SIMD 1
  |  |  ------------------
  ------------------
                       if (!ZMIJ_USE_SSE && !ZMIJ_USE_NEON) {
  ------------------
  |  |   55|      0|#define ZMIJ_USE_NEON 0
  ------------------
  |  Branch (754:14): [Folded, False: 1.11M]
  |  Branch (754:31): [True: 0, Folded]
  ------------------
  755|      0|            uint64_t abcd_efgh = abcdefgh + neg10k_v * ((abcdefgh * div10k_sig) >> div10k_exp);
  756|      0|            uint64_t ab_cd_ef_gh = abcd_efgh + neg100_v * (((abcd_efgh * div100_sig) >> div100_exp) & 0x7f0000007f);
  757|      0|            uint64_t a_b_c_d_e_f_g_h =
  758|      0|               ab_cd_ef_gh + neg10_v * (((ab_cd_ef_gh * div10_sig) >> div10_exp) & 0xf000f000f000f);
  759|      0|            uint64_t bcd = is_big_endian ? a_b_c_d_e_f_g_h : bswap64(a_b_c_d_e_f_g_h);
  ------------------
  |  Branch (759:28): [Folded, False: 0]
  ------------------
  760|      0|            return {bcd, count_trailing_nonzeros(bcd)};
  761|      0|         }
  762|       |
  763|  1.11M|         const auto* c = &consts_v<OptSize>;
  764|  1.11M|         ZMIJ_ASM(("" : "+r"(c)));
  ------------------
  |  |  126|  1.11M|#define ZMIJ_ASM(x) asm x
  ------------------
  765|       |
  766|       |#if ZMIJ_USE_NEON
  767|       |         uint64_t abcd_efgh_64 = abcdefgh + neg10k_v * ((abcdefgh * div10k_sig) >> div10k_exp);
  768|       |         int32x4_t abcd_efgh = vcombine_s32(vreinterpret_s32_u64(vcreate_u64(abcd_efgh_64)), vdup_n_s32(0));
  769|       |         uint8x16_t digits_128 = to_bcd_4x4(abcd_efgh, *c);
  770|       |         uint8x8_t digits = vget_low_u8(digits_128);
  771|       |         uint64_t bcd = vget_lane_u64(vreinterpret_u64_u8(vrev64_u8(digits)), 0);
  772|       |         return {bcd, count_trailing_nonzeros(bcd)};
  773|       |#elif ZMIJ_USE_SSE4_1
  774|       |         uint64_t abcd_efgh = abcdefgh + neg10k_v * ((abcdefgh * div10k_sig) >> div10k_exp);
  775|       |         uint64_t unshuffled_bcd = lo_u64(to_bcd_4x4(_mm_set_epi64x(0, abcd_efgh), *c));
  776|       |         int len = unshuffled_bcd ? 8 - ctz(unshuffled_bcd) / 8 : 0;
  777|       |         return {bswap64(unshuffled_bcd), len};
  778|       |#elif ZMIJ_USE_SSE
  779|       |         uint64_t abcd_efgh =
  780|  1.11M|            (abcdefgh << 32) - uint64_t((10000ull << 32) - 1) * ((abcdefgh * div10k_sig) >> div10k_exp);
  781|  1.11M|         uint64_t bcd = lo_u64(to_bcd_4x4(_mm_set_epi64x(0, abcd_efgh), *c));
  782|  1.11M|         return {bcd, count_trailing_nonzeros(bcd)};
  783|  1.11M|#endif
  784|  1.11M|      }
_ZN3glz4zmij11detail_impl6lo_u64EDv2_x:
  700|  1.11M|      {
  701|  1.11M|#if defined(__x86_64__) || defined(_M_X64)
  702|  1.11M|         return uint64_t(_mm_cvtsi128_si64(x));
  703|       |#else
  704|       |         uint64_t result;
  705|       |         _mm_storel_epi64(reinterpret_cast<__m128i*>(&result), x);
  706|       |         return result;
  707|       |#endif
  708|  1.11M|      }
_ZN3glz4zmij11detail_impl10to_bcd_4x4ILb0EEEDv2_xS3_RKNS1_9constantsIXT_EEE:
  712|  1.93M|      {
  713|  1.93M|         const __m128i div100 = _mm_load_si128(m128ptr(&c.div100));
  714|  1.93M|         const __m128i div10 = _mm_load_si128(m128ptr(&c.div10));
  715|       |#if ZMIJ_USE_SSE4_1
  716|       |         const __m128i neg100 = _mm_load_si128(m128ptr(&c.neg100));
  717|       |         const __m128i neg10 = _mm_load_si128(m128ptr(&c.neg10));
  718|       |
  719|       |         __m128i z = _mm_add_epi64(y, _mm_mullo_epi32(neg100, _mm_srli_epi32(_mm_mulhi_epu16(y, div100), 3)));
  720|       |         return _mm_add_epi16(z, _mm_mullo_epi16(neg10, _mm_mulhi_epu16(z, div10)));
  721|       |#else
  722|  1.93M|         const __m128i hundred = _mm_load_si128(m128ptr(&c.hundred));
  723|  1.93M|         const __m128i moddiv10 = _mm_load_si128(m128ptr(&c.moddiv10));
  724|       |
  725|  1.93M|         __m128i y_div_100 = _mm_srli_epi16(_mm_mulhi_epu16(y, div100), 3);
  726|  1.93M|         __m128i y_mod_100 = _mm_sub_epi16(y, _mm_mullo_epi16(y_div_100, hundred));
  727|  1.93M|         __m128i z = _mm_or_si128(_mm_slli_epi32(y_mod_100, 16), y_div_100);
  728|  1.93M|         return _mm_sub_epi16(_mm_slli_epi16(z, 8), _mm_mullo_epi16(moddiv10, _mm_mulhi_epu16(z, div10)));
  729|  1.93M|#endif
  730|  1.93M|      }
_ZN3glz4zmij11detail_impl23count_trailing_nonzerosEm:
  568|  1.11M|      {
  569|  1.11M|         if (is_big_endian) x = bswap64(x);
  ------------------
  |  Branch (569:14): [Folded, False: 1.11M]
  ------------------
  570|  1.11M|         return (size_t(70) - clz((x << 1) | 1)) / 8;
  571|  1.11M|      }
_ZN3glz4zmij11detail_impl3clzEm:
  187|  1.93M|      {
  188|  1.93M|         assert(x != 0);
  ------------------
  |  Branch (188:10): [True: 1.93M, False: 0]
  ------------------
  189|  1.93M|#if ZMIJ_HAS_BUILTIN(__builtin_clzll)
  190|  1.93M|         return __builtin_clzll(x);
  191|       |#elif defined(_M_AMD64) && defined(__AVX2__)
  192|       |         return __lzcnt64(x);
  193|       |#elif defined(_M_AMD64) || defined(_M_ARM64)
  194|       |         unsigned long idx;
  195|       |         _BitScanReverse64(&idx, x);
  196|       |         return 63 - idx;
  197|       |#elif ZMIJ_MSC_VER
  198|       |         unsigned long idx;
  199|       |         if (_BitScanReverse(&idx, uint32_t(x >> 32))) return 31 - idx;
  200|       |         _BitScanReverse(&idx, uint32_t(x));
  201|       |         return 63 - idx;
  202|       |#else
  203|       |         int n = 64;
  204|       |         for (; x > 0; x >>= 1) --n;
  205|       |         return n;
  206|       |#endif
  207|  1.93M|      }
_ZNK3glz4zmij11detail_impl20dec_exp_format_table3getINS1_12float_traitsIfEEEERKNS2_5entryEi:
  559|  40.7k|         {
  560|  40.7k|            constexpr auto min = traits::min_fixed_dec_exp, max = Traits::max_fixed_dec_exp;
  561|  40.7k|            unsigned i = unsigned(dec_exp - min);
  562|  40.7k|            return data[i <= unsigned(max - min) ? i : num_entries - 1];
  ------------------
  |  Branch (562:25): [True: 40.7k, False: 0]
  ------------------
  563|  40.7k|         }
_ZN3glz8to_charsITkNSt3__114floating_pointEdLb0EEEPcS2_T_:
 1118|  1.11M|   {
 1119|  1.11M|      static_assert(std::is_same_v<T, float> || std::is_same_v<T, double>);
 1120|  1.11M|      return zmij::detail::write<T, OptSize>(val, buf);
 1121|  1.11M|   }
_ZN3glz4zmij6detail5writeIdLb0EEEPcT_S3_:
  975|  1.11M|      {
  976|  1.11M|         using namespace detail_impl;
  977|  1.11M|         using traits = float_traits<Float>;
  978|  1.11M|         auto bits = traits::to_bits(value);
  979|  1.11M|         auto bin_exp = traits::get_exp(bits);
  980|  1.11M|         auto bin_sig = traits::get_sig(bits);
  981|       |
  982|  1.11M|         *buffer = '-';
  983|  1.11M|         buffer += traits::is_negative(bits);
  984|       |
  985|  1.11M|         const auto* c = &consts_v<OptSize>;
  986|  1.11M|         ZMIJ_ASM(("" : "+r"(c)));
  ------------------
  |  |  126|  1.11M|#define ZMIJ_ASM(x) asm x
  ------------------
  987|  1.11M|         int64_t threshold = traits::num_bits == 64 ? static_cast<int64_t>(c->threshold) : 10'000'000;
  ------------------
  |  Branch (987:30): [True: 1.11M, Folded]
  ------------------
  988|       |
  989|  1.11M|         to_decimal_result dec;
  990|  1.11M|         bool is_normal = unsigned(bin_exp - 1) < unsigned(traits::exp_mask - 1);
  991|  1.11M|         if (!is_normal) [[unlikely]] {
  ------------------
  |  Branch (991:14): [True: 378k, False: 736k]
  ------------------
  992|   378k|            if (bin_exp != 0) {
  ------------------
  |  Branch (992:17): [True: 2.62k, False: 375k]
  ------------------
  993|       |#if GLZ_ZMIJ_EMIT_INF_NAN
  994|       |               memcpy(buffer, bin_sig == 0 ? "inf" : "nan", 4);
  995|       |               return buffer + 3;
  996|       |#else
  997|       |               // Undo the speculative '-' for sign-bit-set NaN/Inf: JSON "null"
  998|       |               // never carries a sign.
  999|  2.62k|               buffer -= traits::is_negative(bits);
 1000|  2.62k|               memcpy(buffer, "null", 4);
 1001|  2.62k|               return buffer + 4;
 1002|  2.62k|#endif
 1003|  2.62k|            }
 1004|   375k|            if (bin_sig == 0) {
  ------------------
  |  Branch (1004:17): [True: 291k, False: 84.2k]
  ------------------
 1005|   291k|               memcpy(buffer, "0", 2);
 1006|   291k|               return buffer + 1;
 1007|   291k|            }
 1008|  84.2k|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig, 1, true, *c);
 1009|  84.2k|            int64_t dec_sig = dec.sig * 10 + (dec.has_last_digit ? dec.last_digit : 0);
  ------------------
  |  Branch (1009:47): [True: 48.0k, False: 36.1k]
  ------------------
 1010|  84.2k|            int32_t dec_exp = dec.exp;
 1011|   492k|            while (dec_sig < threshold) {
  ------------------
  |  Branch (1011:20): [True: 407k, False: 84.2k]
  ------------------
 1012|   407k|               dec_sig *= 10;
 1013|   407k|               --dec_exp;
 1014|   407k|            }
 1015|  84.2k|            int64_t d = static_cast<int64_t>(detail_impl::div10(static_cast<uint64_t>(dec_sig)));
 1016|  84.2k|            int32_t last_digit = static_cast<int32_t>(dec_sig - d * 10);
 1017|  84.2k|            dec = {d, dec_exp, last_digit, last_digit != 0};
 1018|  84.2k|         }
 1019|   736k|         else {
 1020|   736k|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig | traits::implicit_bit,
 1021|   736k|                                                                                     bin_exp, bin_sig != 0, *c);
 1022|   736k|         }
 1023|   821k|         bool extra_digit = dec.sig >= threshold;
 1024|   821k|         int dec_exp = dec.exp + traits::max_digits10 - 2 + extra_digit;
 1025|   821k|         if (traits::num_bits == 32 && dec.sig < 1'000'000) [[unlikely]] {
  ------------------
  |  Branch (1025:14): [Folded, False: 821k]
  |  Branch (1025:40): [True: 0, False: 0]
  ------------------
 1026|      0|            dec.sig = 10 * dec.sig + (dec.has_last_digit ? dec.last_digit : 0);
  ------------------
  |  Branch (1026:39): [True: 0, False: 0]
  ------------------
 1027|      0|            dec.has_last_digit = false;
 1028|      0|            --dec_exp;
 1029|      0|         }
 1030|       |
 1031|   821k|         char* start = buffer;
 1032|   821k|         auto dig = to_digits<traits::num_bits, OptSize>(static_cast<uint64_t>(dec.sig), extra_digit, *c);
 1033|   821k|         constexpr int bcd_size = traits::num_bits == 64 ? 16 : 8;
  ------------------
  |  Branch (1033:35): [True: 0, Folded]
  ------------------
 1034|   821k|         if (dec_exp >= traits::min_fixed_dec_exp && dec_exp <= traits::max_fixed_dec_exp) {
  ------------------
  |  Branch (1034:14): [True: 309k, False: 511k]
  |  Branch (1034:54): [True: 5.91k, False: 303k]
  ------------------
 1035|  5.91k|            memcpy(start, &zeros_v, 8);
 1036|  5.91k|            const auto& fmt = dec_exp_formats.get<traits>(dec_exp);
 1037|  5.91k|            buffer += fmt.start_pos;
 1038|  5.91k|            memcpy(buffer, &dig.digits, bcd_size);
 1039|  5.91k|            memmove(buffer, buffer + !extra_digit, bcd_size);
 1040|  5.91k|            buffer[bcd_size + extra_digit - 1] = static_cast<char>('0' + (dec.has_last_digit ? dec.last_digit : 0));
  ------------------
  |  Branch (1040:75): [True: 3.29k, False: 2.61k]
  ------------------
 1041|  5.91k|            memmove(start + fmt.shift_pos, start + fmt.point_pos, bcd_size);
 1042|  5.91k|            start[fmt.point_pos] = '.';
 1043|  5.91k|            int num_digits = dec.has_last_digit ? bcd_size : dig.num_digits - 1;
  ------------------
  |  Branch (1043:30): [True: 3.29k, False: 2.61k]
  ------------------
 1044|  5.91k|            return buffer + fmt.exp_pos[num_digits + extra_digit - 1];
 1045|  5.91k|         }
 1046|   815k|         buffer += extra_digit;
 1047|   815k|         memcpy(buffer, &dig.digits, bcd_size);
 1048|   815k|         buffer[bcd_size] = static_cast<char>('0' + dec.last_digit);
 1049|   815k|         buffer += dec.has_last_digit ? bcd_size + 1 : dig.num_digits;
  ------------------
  |  Branch (1049:20): [True: 538k, False: 276k]
  ------------------
 1050|   815k|         start[0] = start[1];
 1051|   815k|         start[1] = '.';
 1052|   815k|         buffer -= (buffer - 1 == start + 1);
 1053|       |
 1054|   815k|         if constexpr (exp_string_table<OptSize>::enable) {
 1055|   815k|            uint64_t exp_data = exp_strings_v<OptSize>.data[dec_exp + exp_string_table<OptSize>::offset];
 1056|   815k|            int len = int(exp_data >> 48);
 1057|   815k|            if (is_big_endian) exp_data = bswap64(exp_data);
  ------------------
  |  Branch (1057:17): [Folded, False: 815k]
  ------------------
 1058|   815k|            memcpy(buffer, &exp_data, traits::max_exponent10 >= 100 ? 8 : 4);
  ------------------
  |  Branch (1058:39): [True: 815k, Folded]
  ------------------
 1059|   815k|            return buffer + len;
 1060|   815k|         }
 1061|       |         // Glaze emits uppercase 'E', omits '+' on positive exponents, and
 1062|       |         // drops the leading zero on single-digit exponents (E7, not E07).
 1063|       |         // Branchless: write "E-" always, then advance past the '-' only when
 1064|       |         // the exponent is negative.
 1065|      0|         bool neg = dec_exp < 0;
 1066|   815k|         buffer[0] = 'E';
 1067|   815k|         buffer[1] = '-';
 1068|   815k|         buffer += 1 + unsigned(neg);
 1069|   815k|         dec_exp = neg ? -dec_exp : dec_exp;
  ------------------
  |  Branch (1069:20): [True: 0, False: 815k]
  ------------------
 1070|   815k|         unsigned hundreds_written = 0;
 1071|   815k|         if constexpr (traits::max_exponent10 >= 100) {
 1072|   815k|            int32_t digit = 0;
 1073|       |            if constexpr (use_umul128_hi64) {
 1074|       |               digit = static_cast<int32_t>(umul128_hi64(static_cast<uint64_t>(dec_exp), 0x290000000000000ull));
 1075|       |            }
 1076|   815k|            else {
 1077|   815k|               digit = static_cast<int32_t>((uint32_t(dec_exp) * div100_sig) >> div100_exp);
 1078|   815k|            }
 1079|   815k|            *buffer = static_cast<char>('0' + digit);
 1080|   815k|            hundreds_written = unsigned(dec_exp >= 100);
 1081|   815k|            buffer += hundreds_written;
 1082|   815k|            dec_exp -= digit * 100;
 1083|   815k|         }
 1084|       |         // dec_exp now in [0, 99]. Skip the tens digit only when no higher
 1085|       |         // digit has been written (i.e. true leading zero, not interior).
 1086|   815k|         const char* d2 = digits2(dec_exp);
 1087|   815k|         *buffer = d2[0];
 1088|   815k|         buffer += hundreds_written | unsigned(dec_exp >= 10);
 1089|   815k|         *buffer = d2[1];
 1090|   815k|         return buffer + 1;
 1091|   821k|      }
_ZN3glz4zmij11detail_impl12float_traitsIdE7to_bitsEd:
  358|  1.11M|         {
  359|  1.11M|            sig_type bits;
  360|  1.11M|            memcpy(&bits, &value, sizeof(value));
  361|  1.11M|            return bits;
  362|  1.11M|         }
_ZN3glz4zmij11detail_impl12float_traitsIdE7get_expEm:
  367|  1.11M|         {
  368|  1.11M|            return static_cast<int32_t>((bits << 1) >> (num_sig_bits + 1));
  369|  1.11M|         }
_ZN3glz4zmij11detail_impl12float_traitsIdE7get_sigEm:
  365|  1.11M|         static auto get_sig(sig_type bits) noexcept -> sig_type { return bits & (implicit_bit - 1); }
_ZN3glz4zmij11detail_impl12float_traitsIdE11is_negativeEm:
  364|  1.11M|         static auto is_negative(sig_type bits) noexcept -> bool { return bits >> (num_bits - 1); }
_ZN3glz4zmij11detail_impl10to_decimalIdmLb0EEENS1_17to_decimal_resultET0_lbRKNS1_9constantsIXT1_EEE:
  868|   821k|      {
  869|   821k|         using traits = float_traits<Float>;
  870|   821k|         int64_t bin_exp = raw_exp - traits::exp_offset;
  871|   821k|         constexpr int num_bits = std::numeric_limits<UInt>::digits;
  872|       |
  873|   821k|         constexpr uint64_t log10_2_sig = 78'913;
  874|   821k|         constexpr int32_t log10_2_exp = 18;
  875|   821k|         int32_t dec_exp = 0;
  876|       |         if constexpr (use_umul128_hi64) {
  877|       |            dec_exp =
  878|       |               static_cast<int32_t>(umul128_hi64(static_cast<uint64_t>(bin_exp), log10_2_sig << (64 - log10_2_exp)));
  879|       |         }
  880|   821k|         else {
  881|   821k|            dec_exp = compute_dec_exp(bin_exp);
  882|   821k|         }
  883|   821k|         uint64_t even = 1 - (bin_sig & 1);
  884|   821k|         constexpr int32_t extra_shift = exp_shift_table<OptSize>::extra_shift;
  885|       |
  886|   821k|         if (!regular) [[unlikely]] {
  ------------------
  |  Branch (886:14): [True: 7.31k, False: 813k]
  ------------------
  887|  7.31k|            int32_t irregular_dec_exp = compute_dec_exp(bin_exp, false);
  888|  7.31k|            int32_t shift = compute_exp_shift(bin_exp, irregular_dec_exp + 1) + extra_shift;
  889|  7.31k|            uint128 pow10 = c.pow10_significands[-irregular_dec_exp - 1];
  890|  7.31k|            uint128 p = umul192_hi128(pow10.hi, pow10.lo, bin_sig << shift);
  891|       |
  892|  7.31k|            int64_t integral = p.hi >> extra_shift;
  893|  7.31k|            uint64_t fractional = p.hi << (64 - extra_shift) | p.lo >> extra_shift;
  894|       |
  895|  7.31k|            uint64_t half_ulp = pow10.hi >> (extra_shift + 1 - shift);
  896|  7.31k|            bool round_up = half_ulp > ~uint64_t(0) - fractional;
  897|  7.31k|            bool round_down = (half_ulp >> 1) > fractional;
  898|  7.31k|            integral += round_up;
  899|       |
  900|  7.31k|            int32_t digit = static_cast<int32_t>(umul128_add_hi64(fractional, 10, (uint64_t(1) << 63) - 1));
  901|  7.31k|            int32_t lo = static_cast<int32_t>(umul128_add_hi64(fractional - (half_ulp >> 1), 10, ~uint64_t(0)));
  902|  7.31k|            if (digit < lo) digit = lo;
  ------------------
  |  Branch (902:17): [True: 544, False: 6.77k]
  ------------------
  903|  7.31k|            return {integral, irregular_dec_exp, digit, (round_up + round_down) == 0};
  904|  7.31k|         }
  905|       |
  906|       |         if constexpr (num_bits == 32) {
  907|       |            constexpr int32_t float_extra_shift = 34;
  908|       |            int32_t shift = compute_exp_shift(bin_exp, dec_exp + 1) + float_extra_shift;
  909|       |            uint64_t pow10_hi = c.pow10_significands[-dec_exp - 1].hi;
  910|       |            uint64_t p = umul128_hi64(pow10_hi + 1, uint64_t(bin_sig) << shift);
  911|       |
  912|       |            int64_t integral = p >> float_extra_shift;
  913|       |            uint64_t fractional = p & ((1ull << float_extra_shift) - 1);
  914|       |
  915|       |            uint64_t half_ulp = (pow10_hi >> (65 - shift)) + even;
  916|       |            bool round_up = (fractional + half_ulp) >> float_extra_shift;
  917|       |            bool round_down = half_ulp > fractional;
  918|       |            integral += round_up;
  919|       |
  920|       |            uint64_t prod = fractional * 10;
  921|       |            int32_t digit = static_cast<int32_t>(prod >> float_extra_shift);
  922|       |            uint64_t rem = prod & ((1ull << float_extra_shift) - 1);
  923|       |            digit +=
  924|       |               rem > (1ull << (float_extra_shift - 1)) || (rem == (1ull << (float_extra_shift - 1)) && (digit & 1));
  925|       |            return {integral, dec_exp, digit, (round_up + round_down) == 0};
  926|       |         }
  927|   813k|         else {
  928|   813k|            int32_t shift = exp_shift_table<OptSize>::enable ? exp_shifts_v<OptSize>.data[bin_exp + traits::exp_offset]
  ------------------
  |  Branch (928:29): [True: 813k, Folded]
  ------------------
  929|   813k|                                                             : compute_exp_shift(bin_exp, dec_exp + 1) + extra_shift;
  930|   813k|            ZMIJ_ASM(("" : "+r"(dec_exp)));
  ------------------
  |  |  126|   813k|#define ZMIJ_ASM(x) asm x
  ------------------
  931|   813k|            uint128 pow10 = c.pow10_significands[-dec_exp - 1];
  932|   813k|            uint128 p = umul192_hi128(pow10.hi, pow10.lo, bin_sig << shift);
  933|   813k|            int64_t integral = p.hi >> extra_shift;
  934|   813k|            uint64_t fractional = p.hi << (64 - extra_shift) | p.lo >> extra_shift;
  935|   813k|            uint64_t half_ulp = (pow10.hi >> (extra_shift + 1 - shift)) + even;
  936|   813k|            bool round_up = fractional + half_ulp < fractional;
  937|   813k|            bool round_down = half_ulp > fractional;
  938|   813k|            integral += round_up;
  939|       |
  940|   813k|            int32_t digit = static_cast<int32_t>(umul128_add_hi64(fractional, 10, c.biased_half));
  941|   813k|            if (fractional == (1ull << 62)) [[unlikely]] {
  ------------------
  |  Branch (941:17): [True: 233, False: 813k]
  ------------------
  942|    233|               digit = 2;
  943|    233|            }
  944|   813k|            return {integral, dec_exp, digit, (round_up + round_down) == 0};
  945|   813k|         }
  946|   813k|      }
_ZN3glz4zmij11detail_impl9to_digitsILi64ELb0EEENS1_10dec_digitsIXT_EEEmbRKNS1_9constantsIXT0_EEE:
  809|   821k|      {
  810|       |         if constexpr (num_bits == 32) {
  811|       |            auto result = to_bcd8<OptSize>(value);
  812|       |            return {result.bcd + zeros_v, result.len};
  813|       |         }
  814|   821k|         else {
  815|       |#if !ZMIJ_USE_NEON && !ZMIJ_USE_SSE
  816|       |            uint32_t bbccddee = uint32_t(value / 100'000'000);
  817|       |            uint32_t ffgghhii = uint32_t(value % 100'000'000);
  818|       |            auto hi = to_bcd8<OptSize>(bbccddee);
  819|       |            if (ffgghhii == 0) return {{hi.bcd + zeros_v, zeros_v}, hi.len};
  820|       |            auto lo = to_bcd8<OptSize>(ffgghhii);
  821|       |            return {{hi.bcd + zeros_v, lo.bcd + zeros_v}, 8 + lo.len};
  822|       |#elif ZMIJ_USE_NEON
  823|       |            auto unshuffled_digits = to_unshuffled_digits(value, c);
  824|       |            uint8x16_t digits = vrev64q_u8(unshuffled_digits);
  825|       |            uint16x8_t str = vaddq_u16(vreinterpretq_u16_u8(digits), vreinterpretq_u16_s8(vdupq_n_s8('0')));
  826|       |
  827|       |            // vcgtzq_s8 is AArch64-only; the portable spelling (ARMv7 NEON and
  828|       |            // up) is "compare greater-than against a zero vector".
  829|       |            uint16x8_t is_not_zero = vreinterpretq_u16_u8(vcgtq_s8(vreinterpretq_s8_u8(digits), vdupq_n_s8(0)));
  830|       |            uint64_t zeroes = vget_lane_u64(vreinterpret_u64_u8(vshrn_n_u16(is_not_zero, 4)), 0);
  831|       |            return {str, 16 - (clz(zeroes) >> 2)};
  832|       |#else
  833|   821k|            uint32_t abbccddee = uint32_t(value / 100'000'000);
  834|   821k|            uint32_t ffgghhii = uint32_t(value % 100'000'000);
  835|       |
  836|   821k|            const __m128i zeros = _mm_load_si128(m128ptr(&c.zeros));
  837|   821k|            auto unshuffled_bcd = to_unshuffled_digits(abbccddee, ffgghhii, c);
  838|       |#if ZMIJ_USE_SSE4_1
  839|       |            const __m128i bswap = _mm_load_si128(m128ptr(&c.bswap));
  840|       |            auto bcd = _mm_shuffle_epi8(unshuffled_bcd, bswap);
  841|       |#else
  842|   821k|            auto bcd = _mm_shuffle_epi32(unshuffled_bcd, _MM_SHUFFLE(0, 1, 2, 3));
  843|   821k|#endif
  844|       |
  845|   821k|            __m128i mask128 = _mm_cmpgt_epi8(bcd, _mm_setzero_si128());
  846|   821k|            uint64_t mask = _mm_movemask_epi8(mask128);
  847|       |#if defined(__LZCNT__) && !defined(ZMIJ_NO_BUILTINS)
  848|       |            int len = 32 - _lzcnt_u32(mask);
  849|       |#else
  850|   821k|            int len = 63 - clz((mask << 1) | 1);
  851|   821k|#endif
  852|   821k|            return {_mm_or_si128(bcd, zeros), len};
  853|   821k|#endif
  854|   821k|         }
  855|   821k|      }
_ZN3glz4zmij11detail_impl20to_unshuffled_digitsILb0EEEDv2_xjjRKNS1_9constantsIXT_EEE:
  735|   821k|      {
  736|   821k|         const __m128i div10k = _mm_load_si128(m128ptr(&c.div10k));
  737|   821k|         const __m128i neg10k = _mm_load_si128(m128ptr(&c.neg10k));
  738|   821k|         __m128i x = _mm_set_epi64x(bbccddee, ffgghhii);
  739|   821k|         __m128i y = _mm_add_epi64(x, _mm_mul_epu32(neg10k, _mm_srli_epi64(_mm_mul_epu32(x, div10k), div10k_exp)));
  740|   821k|         return to_bcd_4x4(y, c);
  741|   821k|      }
_ZNK3glz4zmij11detail_impl20dec_exp_format_table3getINS1_12float_traitsIdEEEERKNS2_5entryEi:
  559|  5.91k|         {
  560|  5.91k|            constexpr auto min = traits::min_fixed_dec_exp, max = Traits::max_fixed_dec_exp;
  561|  5.91k|            unsigned i = unsigned(dec_exp - min);
  562|  5.91k|            return data[i <= unsigned(max - min) ? i : num_entries - 1];
  ------------------
  |  Branch (562:25): [True: 5.91k, False: 0]
  ------------------
  563|  5.91k|         }

