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

_ZN3glz12beve_to_jsonITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__16vectorIcNS2_9allocatorIcEEEENS2_12basic_stringIcNS2_11char_traitsIcEES5_EEEENS_9error_ctxERKT0_RT1_:
  789|  12.7k|   {
  790|  12.7k|      size_t ix{}; // write index
  791|       |
  792|  12.7k|      auto* it = beve.data();
  793|  12.7k|      auto* end = it + beve.size();
  794|       |
  795|  12.7k|      context ctx{};
  796|       |
  797|  12.7k|      if (it >= end) {
  ------------------
  |  Branch (797:11): [True: 0, False: 12.7k]
  ------------------
  798|      0|         return {0, error_code::unexpected_end};
  799|      0|      }
  800|       |
  801|  12.7k|      bool needs_separator = false;
  802|       |
  803|  5.46M|      while (it < end) {
  ------------------
  |  Branch (803:14): [True: 5.46M, False: 3.61k]
  ------------------
  804|  5.46M|         const bool is_delimiter = uint8_t(*it) == tag::delimiter;
  805|       |
  806|  5.46M|         if (needs_separator && !is_delimiter) {
  ------------------
  |  Branch (806:14): [True: 5.44M, False: 14.5k]
  |  Branch (806:33): [True: 5.44M, False: 1.02k]
  ------------------
  807|  5.44M|            if (!detail::emit_char(ctx, '\n', out, ix)) {
  ------------------
  |  Branch (807:17): [True: 0, False: 5.44M]
  ------------------
  808|      0|               return {ix, ctx.error};
  809|      0|            }
  810|  5.44M|         }
  811|  5.46M|         needs_separator = !is_delimiter;
  812|       |
  813|  5.46M|         detail::beve_to_json_value<Opts>(ctx, it, end, out, ix, 0);
  814|  5.46M|         if (bool(ctx.error)) {
  ------------------
  |  Branch (814:14): [True: 9.17k, False: 5.45M]
  ------------------
  815|  9.17k|            return {ix, ctx.error};
  816|  9.17k|         }
  817|  5.46M|      }
  818|       |
  819|  3.61k|      if constexpr (resizable<JSONBuffer>) {
  820|  3.61k|         out.resize(ix);
  821|  3.61k|      }
  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.61k|      return {ix};
  826|  12.7k|   }
_ZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_j:
  114|  13.3M|      {
  115|  13.3M|         if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (115:14): [True: 802, False: 13.3M]
  ------------------
  116|    802|            ctx.error = error_code::syntax_error;
  117|    802|            return;
  118|    802|         }
  119|  13.3M|         const auto tag = uint8_t(*it);
  120|  13.3M|         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|  13.3M|         const bool opens_level = type != tag::null && type != tag::number && type != tag::string;
  ------------------
  |  Branch (125:35): [True: 3.00M, False: 10.3M]
  |  Branch (125:56): [True: 2.94M, False: 55.3k]
  |  Branch (125:79): [True: 2.92M, False: 24.1k]
  ------------------
  126|  13.3M|         if (opens_level && recursive_depth >= max_recursive_depth_limit) [[unlikely]] {
  ------------------
  |  Branch (126:14): [True: 2.92M, False: 10.4M]
  |  Branch (126:29): [True: 7, False: 2.92M]
  ------------------
  127|      7|            ctx.error = error_code::exceeded_max_recursive_depth;
  128|      7|            return;
  129|      7|         }
  130|       |
  131|  13.3M|         switch (type) {
  132|  10.3M|         case tag::null: {
  ------------------
  |  Branch (132:10): [True: 10.3M, False: 3.00M]
  ------------------
  133|  10.3M|            if (tag & tag::boolean) {
  ------------------
  |  Branch (133:17): [True: 694k, False: 9.69M]
  ------------------
  134|   694k|               if (tag >> 4) {
  ------------------
  |  Branch (134:20): [True: 305k, False: 388k]
  ------------------
  135|   305k|                  if (!emit_literal<"true">(ctx, out, ix)) return;
  ------------------
  |  Branch (135:23): [True: 0, False: 305k]
  ------------------
  136|   305k|               }
  137|   388k|               else {
  138|   388k|                  if (!emit_literal<"false">(ctx, out, ix)) return;
  ------------------
  |  Branch (138:23): [True: 0, False: 388k]
  ------------------
  139|   388k|               }
  140|   694k|            }
  141|  9.69M|            else {
  142|  9.69M|               if (!emit_literal<"null">(ctx, out, ix)) return;
  ------------------
  |  Branch (142:20): [True: 0, False: 9.69M]
  ------------------
  143|  9.69M|            }
  144|  10.3M|            ++it;
  145|  10.3M|            break;
  146|  10.3M|         }
  147|  55.3k|         case tag::number: {
  ------------------
  |  Branch (147:10): [True: 55.3k, False: 13.3M]
  ------------------
  148|  55.3k|            ++it;
  149|  55.3k|            beve_to_json_number<Opts>(tag, ctx, it, end, out, ix);
  150|  55.3k|            if (bool(ctx.error)) return;
  ------------------
  |  Branch (150:17): [True: 306, False: 55.0k]
  ------------------
  151|  55.0k|            break;
  152|  55.3k|         }
  153|  55.0k|         case tag::string: {
  ------------------
  |  Branch (153:10): [True: 24.1k, False: 13.3M]
  ------------------
  154|  24.1k|            ++it;
  155|  24.1k|            const auto n = int_from_compressed(ctx, it, end);
  156|  24.1k|            if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (156:17): [True: 181, False: 23.9k]
  ------------------
  157|    181|               return;
  158|    181|            }
  159|  23.9k|            if (uint64_t(end - it) < n) [[unlikely]] {
  ------------------
  |  Branch (159:17): [True: 210, False: 23.7k]
  ------------------
  160|    210|               ctx.error = error_code::unexpected_end;
  161|    210|               return;
  162|    210|            }
  163|  23.7k|            const sv value{reinterpret_cast<const char*>(it), n};
  164|  23.7k|            detail::emit_untrusted_string<Opts>(ctx, value, out, ix);
  165|  23.7k|            if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (165:17): [True: 116, False: 23.6k]
  ------------------
  166|    116|               return;
  167|  23.6k|            it += n;
  168|  23.6k|            break;
  169|  23.7k|         }
  170|  11.7k|         case tag::object: {
  ------------------
  |  Branch (170:10): [True: 11.7k, False: 13.3M]
  ------------------
  171|  11.7k|            ++it;
  172|       |
  173|  11.7k|            if (!emit_char(ctx, '{', out, ix)) return;
  ------------------
  |  Branch (173:17): [True: 0, False: 11.7k]
  ------------------
  174|  11.7k|            {
  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|  11.7k|               const indent_guard indent{ctx, Opts.prettify ? check_indentation_width(Opts) : 1};
  ------------------
  |  Branch (177:47): [Folded, False: 11.7k]
  ------------------
  178|       |
  179|       |               if constexpr (Opts.prettify) {
  180|       |                  if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  181|       |               }
  182|       |
  183|  11.7k|               const auto key_type = (tag & 0b000'11'000) >> 3;
  184|  11.7k|               switch (key_type) {
  185|  7.57k|               case 0: {
  ------------------
  |  Branch (185:16): [True: 7.57k, False: 4.18k]
  ------------------
  186|       |                  // string key
  187|  7.57k|                  const auto n_fields = int_from_compressed(ctx, it, end);
  188|  7.57k|                  if (bool(ctx.error)) {
  ------------------
  |  Branch (188:23): [True: 159, False: 7.41k]
  ------------------
  189|    159|                     return;
  190|    159|                  }
  191|  1.10M|                  for (size_t i = 0; i < n_fields; ++i) {
  ------------------
  |  Branch (191:38): [True: 1.10M, False: 4.55k]
  ------------------
  192|       |                     // convert the key
  193|  1.10M|                     const auto n = int_from_compressed(ctx, it, end);
  194|  1.10M|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (194:26): [True: 642, False: 1.09M]
  ------------------
  195|    642|                        return;
  196|    642|                     }
  197|  1.09M|                     if (uint64_t(end - it) < n) [[unlikely]] {
  ------------------
  |  Branch (197:26): [True: 330, False: 1.09M]
  ------------------
  198|    330|                        ctx.error = error_code::unexpected_end;
  199|    330|                        return;
  200|    330|                     }
  201|  1.09M|                     const sv key{reinterpret_cast<const char*>(it), n};
  202|  1.09M|                     detail::emit_untrusted_string<Opts>(ctx, key, out, ix);
  203|  1.09M|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (203:26): [True: 168, False: 1.09M]
  ------------------
  204|    168|                        return;
  205|       |                     if constexpr (Opts.prettify) {
  206|       |                        if (!emit_literal<": ">(ctx, out, ix)) return;
  207|       |                     }
  208|  1.09M|                     else {
  209|  1.09M|                        if (!emit_char(ctx, ':', out, ix)) return;
  ------------------
  |  Branch (209:29): [True: 0, False: 1.09M]
  ------------------
  210|  1.09M|                     }
  211|  1.09M|                     it += n;
  212|  1.09M|                     beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  213|  1.09M|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (213:26): [True: 1.71k, False: 1.09M]
  ------------------
  214|  1.71k|                        return;
  215|  1.71k|                     }
  216|  1.09M|                     if (i != n_fields - 1) {
  ------------------
  |  Branch (216:26): [True: 1.09M, False: 673]
  ------------------
  217|  1.09M|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (217:29): [True: 0, False: 1.09M]
  ------------------
  218|       |                        if constexpr (Opts.prettify) {
  219|       |                           if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  220|       |                        }
  221|  1.09M|                     }
  222|  1.09M|                  }
  223|  4.55k|                  break;
  224|  7.41k|               }
  225|  4.55k|               case 1:
  ------------------
  |  Branch (225:16): [True: 2.74k, False: 9.01k]
  ------------------
  226|  2.74k|                  [[fallthrough]]; // signed integer key
  227|  4.15k|               case 2: {
  ------------------
  |  Branch (227:16): [True: 1.41k, False: 10.3k]
  ------------------
  228|       |                  // unsigned integer key
  229|  4.15k|                  const auto n_fields = int_from_compressed(ctx, it, end);
  230|  4.15k|                  if (bool(ctx.error)) {
  ------------------
  |  Branch (230:23): [True: 78, False: 4.08k]
  ------------------
  231|     78|                     return;
  232|     78|                  }
  233|   532k|                  for (size_t i = 0; i < n_fields; ++i) {
  ------------------
  |  Branch (233:38): [True: 529k, False: 3.34k]
  ------------------
  234|       |                     // convert the key
  235|   529k|                     if (!emit_char(ctx, '"', out, ix)) return;
  ------------------
  |  Branch (235:26): [True: 0, False: 529k]
  ------------------
  236|   529k|                     beve_to_json_number<Opts>(tag, ctx, it, end, out, ix);
  237|   529k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (237:26): [True: 251, False: 529k]
  ------------------
  238|    251|                        return;
  239|    251|                     }
  240|   529k|                     if (!emit_char(ctx, '"', out, ix)) return;
  ------------------
  |  Branch (240:26): [True: 0, False: 529k]
  ------------------
  241|       |                     if constexpr (Opts.prettify) {
  242|       |                        if (!emit_literal<": ">(ctx, out, ix)) return;
  243|       |                     }
  244|   529k|                     else {
  245|   529k|                        if (!emit_char(ctx, ':', out, ix)) return;
  ------------------
  |  Branch (245:29): [True: 0, False: 529k]
  ------------------
  246|   529k|                     }
  247|   529k|                     beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  248|   529k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (248:26): [True: 486, False: 528k]
  ------------------
  249|    486|                        return;
  250|    486|                     }
  251|   528k|                     if (i != n_fields - 1) {
  ------------------
  |  Branch (251:26): [True: 528k, False: 371]
  ------------------
  252|   528k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (252:29): [True: 0, False: 528k]
  ------------------
  253|       |                        if constexpr (Opts.prettify) {
  254|       |                           if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  255|       |                        }
  256|   528k|                     }
  257|   528k|                  }
  258|  3.34k|                  break;
  259|  4.08k|               }
  260|  3.34k|               default: {
  ------------------
  |  Branch (260:16): [True: 30, False: 11.7k]
  ------------------
  261|     30|                  ctx.error = error_code::syntax_error;
  262|     30|                  return;
  263|  4.08k|               }
  264|  11.7k|               }
  265|  11.7k|            }
  266|       |
  267|       |            if constexpr (Opts.prettify) {
  268|       |               if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  269|       |            }
  270|  7.90k|            if (!emit_char(ctx, '}', out, ix)) return;
  ------------------
  |  Branch (270:17): [True: 0, False: 7.90k]
  ------------------
  271|  7.90k|            break;
  272|  7.90k|         }
  273|   301k|         case tag::typed_array: {
  ------------------
  |  Branch (273:10): [True: 301k, False: 13.0M]
  ------------------
  274|       |            // Check for aligned typed array (tag == 0x5C)
  275|   301k|            if (tag == tag::aligned_typed_array) {
  ------------------
  |  Branch (275:17): [True: 22.1k, False: 279k]
  ------------------
  276|  22.1k|               ++it; // skip aligned header
  277|  22.1k|               if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (277:20): [True: 6, False: 22.1k]
  ------------------
  278|      6|                  ctx.error = error_code::syntax_error;
  279|      6|                  return;
  280|      6|               }
  281|       |               // Read the numeric header byte
  282|  22.1k|               const auto numeric_tag = uint8_t(*it);
  283|  22.1k|               if ((numeric_tag & 0b00000'111) != tag::typed_array) [[unlikely]] {
  ------------------
  |  Branch (283:20): [True: 19, False: 22.1k]
  ------------------
  284|     19|                  ctx.error = error_code::syntax_error;
  285|     19|                  return;
  286|     19|               }
  287|  22.1k|               ++it; // skip numeric header
  288|  22.1k|               const auto value_type_inner = (numeric_tag & 0b000'11'000) >> 3;
  289|  22.1k|               const uint8_t byte_count_inner = byte_count_lookup[numeric_tag >> 5];
  290|       |
  291|  22.1k|               const auto n = int_from_compressed(ctx, it, end);
  292|  22.1k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (292:20): [True: 243, False: 21.9k]
  ------------------
  293|    243|                  return;
  294|    243|               }
  295|       |
  296|       |               // Read padding length byte and skip padding
  297|  21.9k|               if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (297:20): [True: 123, False: 21.7k]
  ------------------
  298|    123|                  ctx.error = error_code::unexpected_end;
  299|    123|                  return;
  300|    123|               }
  301|  21.7k|               const uint8_t padding = uint8_t(*it);
  302|  21.7k|               ++it;
  303|  21.7k|               if (padding >= byte_count_inner) [[unlikely]] {
  ------------------
  |  Branch (303:20): [True: 23, False: 21.7k]
  ------------------
  304|     23|                  ctx.error = error_code::syntax_error;
  305|     23|                  return;
  306|     23|               }
  307|  21.7k|               if (typed_array_out_of_bounds(ctx, it, end, n, byte_count_inner, padding)) return;
  ------------------
  |  Branch (307:20): [True: 112, False: 21.6k]
  ------------------
  308|  21.6k|               it += padding;
  309|       |
  310|       |               // Now decode as a normal numeric typed array
  311|  21.6k|               if (!emit_char(ctx, '[', out, ix)) return;
  ------------------
  |  Branch (311:20): [True: 0, False: 21.6k]
  ------------------
  312|       |
  313|  21.6k|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|  21.6k|                  for (size_t i = 0; i < n; ++i) {
  315|  21.6k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  316|  21.6k|                        ctx.error = error_code::unexpected_end;
  317|  21.6k|                        return;
  318|  21.6k|                     }
  319|  21.6k|                     using V = std::remove_cvref_t<T>;
  320|  21.6k|                     std::memcpy(&value, it, sizeof(V));
  321|  21.6k|                     if constexpr (std::endian::native == std::endian::big) {
  322|  21.6k|                        byteswap_le(value);
  323|  21.6k|                     }
  324|  21.6k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|  21.6k|                     it += sizeof(T);
  326|  21.6k|                     if (i != n - 1) {
  327|  21.6k|                        if (!emit_char(ctx, ',', out, ix)) return;
  328|  21.6k|                     }
  329|  21.6k|                  }
  330|  21.6k|               };
  331|       |
  332|  21.6k|               switch (value_type_inner) {
  333|  2.33k|               case 0: {
  ------------------
  |  Branch (333:16): [True: 2.33k, False: 19.3k]
  ------------------
  334|  2.33k|                  switch (byte_count_inner) {
  335|  1.49k|                  case 4:
  ------------------
  |  Branch (335:19): [True: 1.49k, False: 833]
  ------------------
  336|  1.49k|                     write_aligned_array(float{});
  337|  1.49k|                     break;
  338|    824|                  case 8:
  ------------------
  |  Branch (338:19): [True: 824, False: 1.50k]
  ------------------
  339|    824|                     write_aligned_array(double{});
  340|    824|                     break;
  341|      9|                  default:
  ------------------
  |  Branch (341:19): [True: 9, False: 2.32k]
  ------------------
  342|      9|                     ctx.error = error_code::syntax_error;
  343|      9|                     return;
  344|  2.33k|                  }
  345|  2.32k|                  break;
  346|  2.33k|               }
  347|  4.98k|               case 1: {
  ------------------
  |  Branch (347:16): [True: 4.98k, False: 16.6k]
  ------------------
  348|  4.98k|                  switch (byte_count_inner) {
  349|  1.61k|                  case 1:
  ------------------
  |  Branch (349:19): [True: 1.61k, False: 3.36k]
  ------------------
  350|  1.61k|                     write_aligned_array(int8_t{});
  351|  1.61k|                     break;
  352|  1.03k|                  case 2:
  ------------------
  |  Branch (352:19): [True: 1.03k, False: 3.95k]
  ------------------
  353|  1.03k|                     write_aligned_array(int16_t{});
  354|  1.03k|                     break;
  355|  1.65k|                  case 4:
  ------------------
  |  Branch (355:19): [True: 1.65k, False: 3.33k]
  ------------------
  356|  1.65k|                     write_aligned_array(int32_t{});
  357|  1.65k|                     break;
  358|    685|                  case 8:
  ------------------
  |  Branch (358:19): [True: 685, False: 4.29k]
  ------------------
  359|    685|                     write_aligned_array(int64_t{});
  360|    685|                     break;
  361|      3|                  default:
  ------------------
  |  Branch (361:19): [True: 3, False: 4.97k]
  ------------------
  362|      3|                     ctx.error = error_code::syntax_error;
  363|      3|                     return;
  364|  4.98k|                  }
  365|  4.97k|                  break;
  366|  4.98k|               }
  367|  14.3k|               case 2: {
  ------------------
  |  Branch (367:16): [True: 14.3k, False: 7.31k]
  ------------------
  368|  14.3k|                  switch (byte_count_inner) {
  369|  7.99k|                  case 1:
  ------------------
  |  Branch (369:19): [True: 7.99k, False: 6.34k]
  ------------------
  370|  7.99k|                     write_aligned_array(uint8_t{});
  371|  7.99k|                     break;
  372|  1.05k|                  case 2:
  ------------------
  |  Branch (372:19): [True: 1.05k, False: 13.2k]
  ------------------
  373|  1.05k|                     write_aligned_array(uint16_t{});
  374|  1.05k|                     break;
  375|    527|                  case 4:
  ------------------
  |  Branch (375:19): [True: 527, False: 13.8k]
  ------------------
  376|    527|                     write_aligned_array(uint32_t{});
  377|    527|                     break;
  378|  4.75k|                  case 8:
  ------------------
  |  Branch (378:19): [True: 4.75k, False: 9.57k]
  ------------------
  379|  4.75k|                     write_aligned_array(uint64_t{});
  380|  4.75k|                     break;
  381|      3|                  default:
  ------------------
  |  Branch (381:19): [True: 3, False: 14.3k]
  ------------------
  382|      3|                     ctx.error = error_code::syntax_error;
  383|      3|                     return;
  384|  14.3k|                  }
  385|  14.3k|                  break;
  386|  14.3k|               }
  387|  14.3k|               default:
  ------------------
  |  Branch (387:16): [True: 1, False: 21.6k]
  ------------------
  388|      1|                  ctx.error = error_code::syntax_error;
  389|      1|                  return;
  390|  21.6k|               }
  391|       |
  392|  21.6k|               if (!emit_char(ctx, ']', out, ix)) return;
  ------------------
  |  Branch (392:20): [True: 0, False: 21.6k]
  ------------------
  393|  21.6k|               break;
  394|  21.6k|            }
  395|       |
  396|   279k|            ++it;
  397|   279k|            const auto value_type = (tag & 0b000'11'000) >> 3;
  398|   279k|            const uint8_t byte_count = byte_count_lookup[tag >> 5];
  399|       |
  400|   279k|            auto write_array = [&]<class T>(T&& value) {
  401|   279k|               const auto n = int_from_compressed(ctx, it, end);
  402|   279k|               if (bool(ctx.error)) [[unlikely]] {
  403|   279k|                  return;
  404|   279k|               }
  405|   279k|               for (size_t i = 0; i < n; ++i) {
  406|   279k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  407|   279k|                     ctx.error = error_code::unexpected_end;
  408|   279k|                     return;
  409|   279k|                  }
  410|   279k|                  using V = std::remove_cvref_t<T>;
  411|   279k|                  std::memcpy(&value, it, sizeof(V));
  412|   279k|                  if constexpr (std::endian::native == std::endian::big) {
  413|   279k|                     byteswap_le(value);
  414|   279k|                  }
  415|   279k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   279k|                  it += sizeof(T);
  417|   279k|                  if (i != n - 1) {
  418|   279k|                     if (!emit_char(ctx, ',', out, ix)) return;
  419|   279k|                  }
  420|   279k|               }
  421|   279k|            };
  422|       |
  423|   279k|            if (!emit_char(ctx, '[', out, ix)) return;
  ------------------
  |  Branch (423:17): [True: 0, False: 279k]
  ------------------
  424|       |
  425|   279k|            switch (value_type) {
  426|  4.69k|            case 0: {
  ------------------
  |  Branch (426:13): [True: 4.69k, False: 274k]
  ------------------
  427|       |               // floating point
  428|  4.69k|               switch (byte_count) {
  429|  2.82k|               case 4: {
  ------------------
  |  Branch (429:16): [True: 2.82k, False: 1.87k]
  ------------------
  430|  2.82k|                  write_array(float{});
  431|  2.82k|                  break;
  432|      0|               }
  433|  1.81k|               case 8: {
  ------------------
  |  Branch (433:16): [True: 1.81k, False: 2.88k]
  ------------------
  434|  1.81k|                  write_array(double{});
  435|  1.81k|                  break;
  436|      0|               }
  437|     62|               default: {
  ------------------
  |  Branch (437:16): [True: 62, False: 4.63k]
  ------------------
  438|     62|                  ctx.error = error_code::syntax_error;
  439|     62|                  return;
  440|      0|               }
  441|  4.69k|               }
  442|  4.63k|               break;
  443|  4.69k|            }
  444|  36.9k|            case 1: {
  ------------------
  |  Branch (444:13): [True: 36.9k, False: 242k]
  ------------------
  445|       |               // signed integer
  446|  36.9k|               switch (byte_count) {
  447|  20.7k|               case 1: {
  ------------------
  |  Branch (447:16): [True: 20.7k, False: 16.1k]
  ------------------
  448|  20.7k|                  write_array(int8_t{});
  449|  20.7k|                  break;
  450|      0|               }
  451|  10.1k|               case 2: {
  ------------------
  |  Branch (451:16): [True: 10.1k, False: 26.8k]
  ------------------
  452|  10.1k|                  write_array(int16_t{});
  453|  10.1k|                  break;
  454|      0|               }
  455|  4.25k|               case 4: {
  ------------------
  |  Branch (455:16): [True: 4.25k, False: 32.6k]
  ------------------
  456|  4.25k|                  write_array(int32_t{});
  457|  4.25k|                  break;
  458|      0|               }
  459|  1.78k|               case 8: {
  ------------------
  |  Branch (459:16): [True: 1.78k, False: 35.1k]
  ------------------
  460|  1.78k|                  write_array(int64_t{});
  461|  1.78k|                  break;
  462|      0|               }
  463|     25|               default: {
  ------------------
  |  Branch (463:16): [True: 25, False: 36.9k]
  ------------------
  464|     25|                  ctx.error = error_code::syntax_error;
  465|     25|                  return;
  466|      0|               }
  467|  36.9k|               }
  468|  36.9k|               break;
  469|  36.9k|            }
  470|  45.5k|            case 2: {
  ------------------
  |  Branch (470:13): [True: 45.5k, False: 233k]
  ------------------
  471|       |               // unsigned integer
  472|  45.5k|               switch (byte_count) {
  473|  21.1k|               case 1: {
  ------------------
  |  Branch (473:16): [True: 21.1k, False: 24.4k]
  ------------------
  474|  21.1k|                  write_array(uint8_t{});
  475|  21.1k|                  break;
  476|      0|               }
  477|  2.02k|               case 2: {
  ------------------
  |  Branch (477:16): [True: 2.02k, False: 43.5k]
  ------------------
  478|  2.02k|                  write_array(uint16_t{});
  479|  2.02k|                  break;
  480|      0|               }
  481|  9.95k|               case 4: {
  ------------------
  |  Branch (481:16): [True: 9.95k, False: 35.6k]
  ------------------
  482|  9.95k|                  write_array(uint32_t{});
  483|  9.95k|                  break;
  484|      0|               }
  485|  12.4k|               case 8: {
  ------------------
  |  Branch (485:16): [True: 12.4k, False: 33.1k]
  ------------------
  486|  12.4k|                  write_array(uint64_t{});
  487|  12.4k|                  break;
  488|      0|               }
  489|     14|               default: {
  ------------------
  |  Branch (489:16): [True: 14, False: 45.5k]
  ------------------
  490|     14|                  ctx.error = error_code::syntax_error;
  491|     14|                  return;
  492|      0|               }
  493|  45.5k|               }
  494|  45.5k|               break;
  495|  45.5k|            }
  496|   192k|            case 3: {
  ------------------
  |  Branch (496:13): [True: 192k, False: 87.1k]
  ------------------
  497|       |               // string or boolean
  498|   192k|               const auto string_or_boolean = (tag & 0b001'00'000) >> 5;
  499|   192k|               switch (string_or_boolean) {
  500|   190k|               case 0: {
  ------------------
  |  Branch (500:16): [True: 190k, False: 1.75k]
  ------------------
  501|       |                  // boolean array (bit packed, LSB first)
  502|   190k|                  const auto n = int_from_compressed(ctx, it, end);
  503|   190k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (503:23): [True: 37, False: 190k]
  ------------------
  504|     37|                     return;
  505|     37|                  }
  506|   190k|                  const auto num_bytes = (n + 7) / 8;
  507|   190k|                  if (uint64_t(end - it) < num_bytes) [[unlikely]] {
  ------------------
  |  Branch (507:23): [True: 121, False: 190k]
  ------------------
  508|    121|                     ctx.error = error_code::unexpected_end;
  509|    121|                     return;
  510|    121|                  }
  511|   190k|                  if (num_bytes && !packed_bool_padding_is_zero(uint8_t(*(it + (num_bytes - 1))), n)) [[unlikely]] {
  ------------------
  |  Branch (511:23): [True: 177k, False: 12.6k]
  |  Branch (511:36): [True: 16, False: 177k]
  ------------------
  512|     16|                     ctx.error = error_code::syntax_error;
  513|     16|                     return;
  514|     16|                  }
  515|   513M|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (515:38): [True: 512M, False: 190k]
  ------------------
  516|   512M|                     if (i != 0) {
  ------------------
  |  Branch (516:26): [True: 512M, False: 177k]
  ------------------
  517|   512M|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (517:29): [True: 0, False: 512M]
  ------------------
  518|   512M|                     }
  519|   512M|                     const bool x = (uint8_t(it[i / 8]) >> (i % 8)) & uint8_t(1);
  520|   512M|                     if (x) {
  ------------------
  |  Branch (520:26): [True: 84.9M, False: 427M]
  ------------------
  521|  84.9M|                        if (!emit_literal<"true">(ctx, out, ix)) return;
  ------------------
  |  Branch (521:29): [True: 0, False: 84.9M]
  ------------------
  522|  84.9M|                     }
  523|   427M|                     else {
  524|   427M|                        if (!emit_literal<"false">(ctx, out, ix)) return;
  ------------------
  |  Branch (524:29): [True: 0, False: 427M]
  ------------------
  525|   427M|                     }
  526|   512M|                  }
  527|   190k|                  it += num_bytes;
  528|   190k|                  break;
  529|   190k|               }
  530|  1.75k|               case 1: {
  ------------------
  |  Branch (530:16): [True: 1.75k, False: 190k]
  ------------------
  531|       |                  // array of strings
  532|  1.75k|                  const auto n_strings = int_from_compressed(ctx, it, end);
  533|  1.75k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (533:23): [True: 60, False: 1.69k]
  ------------------
  534|     60|                     return;
  535|     60|                  }
  536|  20.2k|                  for (size_t i = 0; i < n_strings; ++i) {
  ------------------
  |  Branch (536:38): [True: 19.0k, False: 1.24k]
  ------------------
  537|  19.0k|                     const auto n = int_from_compressed(ctx, it, end);
  538|  19.0k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (538:26): [True: 277, False: 18.7k]
  ------------------
  539|    277|                        return;
  540|    277|                     }
  541|  18.7k|                     if (uint64_t(end - it) < n) [[unlikely]] {
  ------------------
  |  Branch (541:26): [True: 125, False: 18.6k]
  ------------------
  542|    125|                        ctx.error = error_code::unexpected_end;
  543|    125|                        return;
  544|    125|                     }
  545|  18.6k|                     const sv value{reinterpret_cast<const char*>(it), n};
  546|  18.6k|                     detail::emit_untrusted_string<Opts>(ctx, value, out, ix);
  547|  18.6k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (547:26): [True: 50, False: 18.5k]
  ------------------
  548|     50|                        return;
  549|  18.5k|                     it += n;
  550|  18.5k|                     if (i != n_strings - 1) {
  ------------------
  |  Branch (550:26): [True: 18.3k, False: 248]
  ------------------
  551|  18.3k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (551:29): [True: 0, False: 18.3k]
  ------------------
  552|  18.3k|                     }
  553|  18.5k|                  }
  554|  1.24k|                  break;
  555|  1.69k|               }
  556|  1.24k|               default: {
  ------------------
  |  Branch (556:16): [True: 0, False: 192k]
  ------------------
  557|      0|                  ctx.error = error_code::syntax_error;
  558|      0|                  return;
  559|  1.69k|               }
  560|   192k|               }
  561|   191k|               break;
  562|   192k|            }
  563|   191k|            default: {
  ------------------
  |  Branch (563:13): [True: 0, False: 279k]
  ------------------
  564|      0|               ctx.error = error_code::syntax_error;
  565|      0|               return;
  566|   192k|            }
  567|   279k|            }
  568|       |
  569|   278k|            if (!emit_char(ctx, ']', out, ix)) return;
  ------------------
  |  Branch (569:17): [True: 0, False: 278k]
  ------------------
  570|       |
  571|   278k|            break;
  572|   278k|         }
  573|   278k|         case tag::generic_array: {
  ------------------
  |  Branch (573:10): [True: 18.2k, False: 13.3M]
  ------------------
  574|  18.2k|            ++it;
  575|  18.2k|            const auto n = int_from_compressed(ctx, it, end);
  576|  18.2k|            if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (576:17): [True: 169, False: 18.0k]
  ------------------
  577|    169|               return;
  578|    169|            }
  579|  18.0k|            if (!emit_char(ctx, '[', out, ix)) return;
  ------------------
  |  Branch (579:17): [True: 0, False: 18.0k]
  ------------------
  580|  1.29M|            for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (580:32): [True: 1.28M, False: 13.7k]
  ------------------
  581|  1.28M|               beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  582|  1.28M|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (582:20): [True: 4.29k, False: 1.28M]
  ------------------
  583|  4.29k|                  return;
  584|  4.29k|               }
  585|  1.28M|               if (i != n - 1) {
  ------------------
  |  Branch (585:20): [True: 1.27M, False: 1.35k]
  ------------------
  586|  1.27M|                  if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (586:23): [True: 0, False: 1.27M]
  ------------------
  587|  1.27M|               }
  588|  1.28M|            }
  589|  13.7k|            if (!emit_char(ctx, ']', out, ix)) return;
  ------------------
  |  Branch (589:17): [True: 0, False: 13.7k]
  ------------------
  590|  13.7k|            break;
  591|  13.7k|         }
  592|  2.59M|         case tag::extensions: {
  ------------------
  |  Branch (592:10): [True: 2.59M, False: 10.7M]
  ------------------
  593|  2.59M|            const uint8_t extension = tag >> 3;
  594|  2.59M|            switch (extension) {
  595|  66.3k|            case 0: {
  ------------------
  |  Branch (595:13): [True: 66.3k, False: 2.52M]
  ------------------
  596|       |               // delimiter
  597|  66.3k|               ++it;
  598|  66.3k|               if (!emit_char(ctx, '\n', out, ix)) return;
  ------------------
  |  Branch (598:20): [True: 0, False: 66.3k]
  ------------------
  599|  66.3k|               break;
  600|  66.3k|            }
  601|  66.3k|            case 1: {
  ------------------
  |  Branch (601:13): [True: 5.09k, False: 2.58M]
  ------------------
  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|  5.09k|               ++it;
  606|  5.09k|               skip_compressed_int(ctx, it, end);
  607|  5.09k|               if (bool(ctx.error)) return;
  ------------------
  |  Branch (607:20): [True: 4, False: 5.08k]
  ------------------
  608|       |
  609|  5.08k|               beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  610|  5.08k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (610:20): [True: 1.03k, False: 4.04k]
  ------------------
  611|  1.03k|                  return;
  612|  1.03k|               }
  613|  4.04k|               break;
  614|  5.08k|            }
  615|  2.51M|            case 2: {
  ------------------
  |  Branch (615:13): [True: 2.51M, False: 75.1k]
  ------------------
  616|       |               // matrices
  617|  2.51M|               ++it;
  618|  2.51M|               if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (618:20): [True: 29, False: 2.51M]
  ------------------
  619|     29|                  ctx.error = error_code::syntax_error;
  620|     29|                  return;
  621|     29|               }
  622|  2.51M|               const auto matrix_header = uint8_t(*it);
  623|  2.51M|               ++it;
  624|       |
  625|  2.51M|               if (!emit_char(ctx, '{', out, ix)) return;
  ------------------
  |  Branch (625:20): [True: 0, False: 2.51M]
  ------------------
  626|  2.51M|               {
  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|  2.51M|                  const indent_guard indent{ctx, Opts.prettify ? check_indentation_width(Opts) : 1};
  ------------------
  |  Branch (629:50): [Folded, False: 2.51M]
  ------------------
  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|  2.51M|                  else {
  639|  2.51M|                     if (!emit_literal<R"("layout":)">(ctx, out, ix)) return;
  ------------------
  |  Branch (639:26): [True: 0, False: 2.51M]
  ------------------
  640|  2.51M|                  }
  641|       |
  642|  2.51M|                  const auto layout = matrix_header & 0b0000000'1;
  643|  2.51M|                  if (layout) {
  ------------------
  |  Branch (643:23): [True: 73.0k, False: 2.44M]
  ------------------
  644|  73.0k|                     if (!emit_literal<R"("layout_right")">(ctx, out, ix)) return;
  ------------------
  |  Branch (644:26): [True: 0, False: 73.0k]
  ------------------
  645|  73.0k|                  }
  646|  2.44M|                  else {
  647|  2.44M|                     if (!emit_literal<R"("layout_left")">(ctx, out, ix)) return;
  ------------------
  |  Branch (647:26): [True: 0, False: 2.44M]
  ------------------
  648|  2.44M|                  }
  649|       |
  650|  2.51M|                  if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (650:23): [True: 0, False: 2.51M]
  ------------------
  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|  2.51M|                  else {
  659|  2.51M|                     if (!emit_literal<R"("extents":)">(ctx, out, ix)) return;
  ------------------
  |  Branch (659:26): [True: 0, False: 2.51M]
  ------------------
  660|  2.51M|                  }
  661|       |
  662|  2.51M|                  beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  663|  2.51M|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (663:23): [True: 23.4k, False: 2.49M]
  ------------------
  664|  23.4k|                     return;
  665|  23.4k|                  }
  666|       |
  667|  2.49M|                  if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (667:23): [True: 0, False: 2.49M]
  ------------------
  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|  2.49M|                  else {
  676|  2.49M|                     if (!emit_literal<R"("value":)">(ctx, out, ix)) return;
  ------------------
  |  Branch (676:26): [True: 0, False: 2.49M]
  ------------------
  677|  2.49M|                  }
  678|       |
  679|  2.49M|                  beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  680|  2.49M|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (680:23): [True: 2.04k, False: 2.49M]
  ------------------
  681|  2.04k|                     return;
  682|  2.04k|                  }
  683|  2.49M|               }
  684|       |
  685|       |               if constexpr (Opts.prettify) {
  686|       |                  if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  687|       |               }
  688|  2.49M|               if (!emit_char(ctx, '}', out, ix)) return;
  ------------------
  |  Branch (688:20): [True: 0, False: 2.49M]
  ------------------
  689|  2.49M|               break;
  690|  2.49M|            }
  691|  2.49M|            case 3: {
  ------------------
  |  Branch (691:13): [True: 3.55k, False: 2.58M]
  ------------------
  692|       |               // complex numbers
  693|  3.55k|               ++it;
  694|  3.55k|               if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (694:20): [True: 2, False: 3.55k]
  ------------------
  695|      2|                  ctx.error = error_code::syntax_error;
  696|      2|                  return;
  697|      2|               }
  698|  3.55k|               const auto complex_header = uint8_t(*it);
  699|  3.55k|               ++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.55k|               const uint8_t number_tag = tag::number | (complex_header & 0b111'11'000);
  704|       |
  705|       |               // Writes one complex value as [re,im]
  706|  3.55k|               auto write_complex = [&]() -> bool {
  707|  3.55k|                  if (!emit_char(ctx, '[', out, ix)) return false;
  708|  3.55k|                  beve_to_json_number<Opts>(number_tag, ctx, it, end, out, ix);
  709|  3.55k|                  if (bool(ctx.error)) [[unlikely]] {
  710|  3.55k|                     return false;
  711|  3.55k|                  }
  712|  3.55k|                  if (!emit_char(ctx, ',', out, ix)) return false;
  713|  3.55k|                  beve_to_json_number<Opts>(number_tag, ctx, it, end, out, ix);
  714|  3.55k|                  if (bool(ctx.error)) [[unlikely]] {
  715|  3.55k|                     return false;
  716|  3.55k|                  }
  717|  3.55k|                  return emit_char(ctx, ']', out, ix);
  718|  3.55k|               };
  719|       |
  720|       |               // Writes n complex values as [[re,im],...]
  721|  3.55k|               auto write_complex_array = [&](const size_t n) -> bool {
  722|  3.55k|                  if (!emit_char(ctx, '[', out, ix)) return false;
  723|  3.55k|                  for (size_t i = 0; i < n; ++i) {
  724|  3.55k|                     if (!write_complex()) return false;
  725|  3.55k|                     if (i != n - 1) {
  726|  3.55k|                        if (!emit_char(ctx, ',', out, ix)) return false;
  727|  3.55k|                     }
  728|  3.55k|                  }
  729|  3.55k|                  return emit_char(ctx, ']', out, ix);
  730|  3.55k|               };
  731|       |
  732|  3.55k|               switch (complex_header & glz::extension::complex_subtype_mask) {
  733|    237|               case glz::extension::complex_number: {
  ------------------
  |  Branch (733:16): [True: 237, False: 3.32k]
  ------------------
  734|    237|                  if (!write_complex()) return;
  ------------------
  |  Branch (734:23): [True: 26, False: 211]
  ------------------
  735|    211|                  break;
  736|    237|               }
  737|  2.13k|               case glz::extension::complex_array: {
  ------------------
  |  Branch (737:16): [True: 2.13k, False: 1.42k]
  ------------------
  738|  2.13k|                  const auto n = int_from_compressed(ctx, it, end);
  739|  2.13k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (739:23): [True: 33, False: 2.10k]
  ------------------
  740|     33|                     return;
  741|     33|                  }
  742|  2.10k|                  if (!write_complex_array(n)) return;
  ------------------
  |  Branch (742:23): [True: 490, False: 1.61k]
  ------------------
  743|  1.61k|                  break;
  744|  2.10k|               }
  745|  1.61k|               case glz::extension::complex_aligned_array: {
  ------------------
  |  Branch (745:16): [True: 1.17k, False: 2.38k]
  ------------------
  746|       |                  // Alignment is a storage property: the JSON matches an unaligned complex array
  747|  1.17k|                  const auto n = read_aligned_complex_header(ctx, it, end, complex_header);
  748|  1.17k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (748:23): [True: 238, False: 935]
  ------------------
  749|    238|                     return;
  750|    238|                  }
  751|    935|                  if (!write_complex_array(n)) return;
  ------------------
  |  Branch (751:23): [True: 1, False: 934]
  ------------------
  752|    934|                  break;
  753|    935|               }
  754|    934|               default: {
  ------------------
  |  Branch (754:16): [True: 10, False: 3.54k]
  ------------------
  755|       |                  // Undefined complex sub-type
  756|     10|                  ctx.error = error_code::syntax_error;
  757|     10|                  return;
  758|    935|               }
  759|  3.55k|               }
  760|       |
  761|  2.75k|               break;
  762|  3.55k|            }
  763|  2.75k|            default: {
  ------------------
  |  Branch (763:13): [True: 92, False: 2.59M]
  ------------------
  764|     92|               ctx.error = error_code::syntax_error;
  765|     92|               return;
  766|  3.55k|            }
  767|  2.59M|            }
  768|  2.56M|            break;
  769|  2.59M|         }
  770|  2.56M|         default: {
  ------------------
  |  Branch (770:10): [True: 180, False: 13.3M]
  ------------------
  771|    180|            ctx.error = error_code::syntax_error;
  772|    180|            return;
  773|  2.59M|         }
  774|  13.3M|         }
  775|  13.3M|      }
_ZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_:
   15|  2.30M|      {
   16|  2.30M|         const auto number_type = (tag & 0b000'11'000) >> 3;
   17|  2.30M|         const uint8_t byte_count = byte_count_lookup[tag >> 5];
   18|       |
   19|  2.30M|         auto write_number = [&]<class T>(T&& value) {
   20|  2.30M|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
   21|  2.30M|               ctx.error = error_code::syntax_error;
   22|  2.30M|               return;
   23|  2.30M|            }
   24|  2.30M|            using V = std::remove_cvref_t<T>;
   25|  2.30M|            std::memcpy(&value, it, sizeof(V));
   26|  2.30M|            if constexpr (std::endian::native == std::endian::big) {
   27|  2.30M|               byteswap_le(value);
   28|  2.30M|            }
   29|  2.30M|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|  2.30M|            it += sizeof(T);
   31|  2.30M|         };
   32|       |
   33|  2.30M|         switch (number_type) {
   34|   260k|         case 0: {
  ------------------
  |  Branch (34:10): [True: 260k, False: 2.04M]
  ------------------
   35|       |            // floating point
   36|   260k|            switch (byte_count) {
   37|  80.1k|            case 4: {
  ------------------
  |  Branch (37:13): [True: 80.1k, False: 180k]
  ------------------
   38|  80.1k|               write_number(float{});
   39|  80.1k|               break;
   40|      0|            }
   41|   180k|            case 8: {
  ------------------
  |  Branch (41:13): [True: 180k, False: 80.2k]
  ------------------
   42|   180k|               write_number(double{});
   43|   180k|               break;
   44|      0|            }
   45|    102|            default: {
  ------------------
  |  Branch (45:13): [True: 102, False: 260k]
  ------------------
   46|    102|               ctx.error = error_code::syntax_error;
   47|    102|               return;
   48|      0|            }
   49|   260k|            }
   50|   260k|            break;
   51|   260k|         }
   52|  1.21M|         case 1: {
  ------------------
  |  Branch (52:10): [True: 1.21M, False: 1.09M]
  ------------------
   53|       |            // signed integer
   54|  1.21M|            switch (byte_count) {
   55|   118k|            case 1: {
  ------------------
  |  Branch (55:13): [True: 118k, False: 1.09M]
  ------------------
   56|   118k|               write_number(int8_t{});
   57|   118k|               break;
   58|      0|            }
   59|   909k|            case 2: {
  ------------------
  |  Branch (59:13): [True: 909k, False: 305k]
  ------------------
   60|   909k|               write_number(int16_t{});
   61|   909k|               break;
   62|      0|            }
   63|  64.2k|            case 4: {
  ------------------
  |  Branch (63:13): [True: 64.2k, False: 1.15M]
  ------------------
   64|  64.2k|               write_number(int32_t{});
   65|  64.2k|               break;
   66|      0|            }
   67|   122k|            case 8: {
  ------------------
  |  Branch (67:13): [True: 122k, False: 1.09M]
  ------------------
   68|   122k|               write_number(int64_t{});
   69|   122k|               break;
   70|      0|            }
   71|     62|            default: {
  ------------------
  |  Branch (71:13): [True: 62, False: 1.21M]
  ------------------
   72|     62|               ctx.error = error_code::syntax_error;
   73|     62|               return;
   74|      0|            }
   75|  1.21M|            }
   76|  1.21M|            break;
   77|  1.21M|         }
   78|  1.21M|         case 2: {
  ------------------
  |  Branch (78:10): [True: 832k, False: 1.47M]
  ------------------
   79|       |            // unsigned integer
   80|   832k|            switch (byte_count) {
   81|   164k|            case 1: {
  ------------------
  |  Branch (81:13): [True: 164k, False: 668k]
  ------------------
   82|   164k|               write_number(uint8_t{});
   83|   164k|               break;
   84|      0|            }
   85|   588k|            case 2: {
  ------------------
  |  Branch (85:13): [True: 588k, False: 244k]
  ------------------
   86|   588k|               write_number(uint16_t{});
   87|   588k|               break;
   88|      0|            }
   89|  26.6k|            case 4: {
  ------------------
  |  Branch (89:13): [True: 26.6k, False: 805k]
  ------------------
   90|  26.6k|               write_number(uint32_t{});
   91|  26.6k|               break;
   92|      0|            }
   93|  52.9k|            case 8: {
  ------------------
  |  Branch (93:13): [True: 52.9k, False: 779k]
  ------------------
   94|  52.9k|               write_number(uint64_t{});
   95|  52.9k|               break;
   96|      0|            }
   97|     45|            default: {
  ------------------
  |  Branch (97:13): [True: 45, False: 832k]
  ------------------
   98|     45|               ctx.error = error_code::syntax_error;
   99|     45|               return;
  100|      0|            }
  101|   832k|            }
  102|   832k|            break;
  103|   832k|         }
  104|   832k|         default: {
  ------------------
  |  Branch (104:10): [True: 30, False: 2.30M]
  ------------------
  105|     30|            ctx.error = error_code::syntax_error;
  106|     30|            return;
  107|   832k|         }
  108|  2.30M|         }
  109|  2.30M|      }
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIfEEDaSU_:
   19|  80.1k|         auto write_number = [&]<class T>(T&& value) {
   20|  80.1k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 69, False: 80.0k]
  ------------------
   21|     69|               ctx.error = error_code::syntax_error;
   22|     69|               return;
   23|     69|            }
   24|  80.0k|            using V = std::remove_cvref_t<T>;
   25|  80.0k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|  80.0k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|  80.0k|            it += sizeof(T);
   31|  80.0k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIdEEDaSU_:
   19|   180k|         auto write_number = [&]<class T>(T&& value) {
   20|   180k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 43, False: 180k]
  ------------------
   21|     43|               ctx.error = error_code::syntax_error;
   22|     43|               return;
   23|     43|            }
   24|   180k|            using V = std::remove_cvref_t<T>;
   25|   180k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   180k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   180k|            it += sizeof(T);
   31|   180k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIaEEDaSU_:
   19|   118k|         auto write_number = [&]<class T>(T&& value) {
   20|   118k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 181, False: 118k]
  ------------------
   21|    181|               ctx.error = error_code::syntax_error;
   22|    181|               return;
   23|    181|            }
   24|   118k|            using V = std::remove_cvref_t<T>;
   25|   118k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   118k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   118k|            it += sizeof(T);
   31|   118k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIsEEDaSU_:
   19|   909k|         auto write_number = [&]<class T>(T&& value) {
   20|   909k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 103, False: 909k]
  ------------------
   21|    103|               ctx.error = error_code::syntax_error;
   22|    103|               return;
   23|    103|            }
   24|   909k|            using V = std::remove_cvref_t<T>;
   25|   909k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   909k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   909k|            it += sizeof(T);
   31|   909k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIiEEDaSU_:
   19|  64.2k|         auto write_number = [&]<class T>(T&& value) {
   20|  64.2k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 49, False: 64.2k]
  ------------------
   21|     49|               ctx.error = error_code::syntax_error;
   22|     49|               return;
   23|     49|            }
   24|  64.2k|            using V = std::remove_cvref_t<T>;
   25|  64.2k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|  64.2k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|  64.2k|            it += sizeof(T);
   31|  64.2k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIlEEDaSU_:
   19|   122k|         auto write_number = [&]<class T>(T&& value) {
   20|   122k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 44, False: 122k]
  ------------------
   21|     44|               ctx.error = error_code::syntax_error;
   22|     44|               return;
   23|     44|            }
   24|   122k|            using V = std::remove_cvref_t<T>;
   25|   122k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   122k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   122k|            it += sizeof(T);
   31|   122k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIhEEDaSU_:
   19|   164k|         auto write_number = [&]<class T>(T&& value) {
   20|   164k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 152, False: 164k]
  ------------------
   21|    152|               ctx.error = error_code::syntax_error;
   22|    152|               return;
   23|    152|            }
   24|   164k|            using V = std::remove_cvref_t<T>;
   25|   164k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   164k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   164k|            it += sizeof(T);
   31|   164k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clItEEDaSU_:
   19|   588k|         auto write_number = [&]<class T>(T&& value) {
   20|   588k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 103, False: 588k]
  ------------------
   21|    103|               ctx.error = error_code::syntax_error;
   22|    103|               return;
   23|    103|            }
   24|   588k|            using V = std::remove_cvref_t<T>;
   25|   588k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   588k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   588k|            it += sizeof(T);
   31|   588k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIjEEDaSU_:
   19|  26.6k|         auto write_number = [&]<class T>(T&& value) {
   20|  26.6k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 46, False: 26.5k]
  ------------------
   21|     46|               ctx.error = error_code::syntax_error;
   22|     46|               return;
   23|     46|            }
   24|  26.5k|            using V = std::remove_cvref_t<T>;
   25|  26.5k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|  26.5k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|  26.5k|            it += sizeof(T);
   31|  26.5k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clImEEDaSU_:
   19|  52.9k|         auto write_number = [&]<class T>(T&& value) {
   20|  52.9k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 45, False: 52.9k]
  ------------------
   21|     45|               ctx.error = error_code::syntax_error;
   22|     45|               return;
   23|     45|            }
   24|  52.9k|            using V = std::remove_cvref_t<T>;
   25|  52.9k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|  52.9k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|  52.9k|            it += sizeof(T);
   31|  52.9k|         };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIfEEDaSR_:
  313|  1.49k|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|   781k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 780k, False: 1.49k]
  ------------------
  315|   780k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 780k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|   780k|                     using V = std::remove_cvref_t<T>;
  320|   780k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|   780k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|   780k|                     it += sizeof(T);
  326|   780k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 779k, False: 954]
  ------------------
  327|   779k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 779k]
  ------------------
  328|   779k|                     }
  329|   780k|                  }
  330|  1.49k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIdEEDaSR_:
  313|    824|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|   112k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 111k, False: 824]
  ------------------
  315|   111k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 111k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|   111k|                     using V = std::remove_cvref_t<T>;
  320|   111k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|   111k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|   111k|                     it += sizeof(T);
  326|   111k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 111k, False: 504]
  ------------------
  327|   111k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 111k]
  ------------------
  328|   111k|                     }
  329|   111k|                  }
  330|    824|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIaEEDaSR_:
  313|  1.61k|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|   286k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 284k, False: 1.61k]
  ------------------
  315|   284k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 284k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|   284k|                     using V = std::remove_cvref_t<T>;
  320|   284k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|   284k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|   284k|                     it += sizeof(T);
  326|   284k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 283k, False: 1.34k]
  ------------------
  327|   283k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 283k]
  ------------------
  328|   283k|                     }
  329|   284k|                  }
  330|  1.61k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIsEEDaSR_:
  313|  1.03k|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|   955k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 954k, False: 1.03k]
  ------------------
  315|   954k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 954k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|   954k|                     using V = std::remove_cvref_t<T>;
  320|   954k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|   954k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|   954k|                     it += sizeof(T);
  326|   954k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 953k, False: 677]
  ------------------
  327|   953k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 953k]
  ------------------
  328|   953k|                     }
  329|   954k|                  }
  330|  1.03k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIiEEDaSR_:
  313|  1.65k|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|   146k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 145k, False: 1.65k]
  ------------------
  315|   145k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 145k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|   145k|                     using V = std::remove_cvref_t<T>;
  320|   145k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|   145k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|   145k|                     it += sizeof(T);
  326|   145k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 143k, False: 1.37k]
  ------------------
  327|   143k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 143k]
  ------------------
  328|   143k|                     }
  329|   145k|                  }
  330|  1.65k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIlEEDaSR_:
  313|    685|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|   126k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 126k, False: 685]
  ------------------
  315|   126k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 126k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|   126k|                     using V = std::remove_cvref_t<T>;
  320|   126k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|   126k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|   126k|                     it += sizeof(T);
  326|   126k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 125k, False: 464]
  ------------------
  327|   125k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 125k]
  ------------------
  328|   125k|                     }
  329|   126k|                  }
  330|    685|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIhEEDaSR_:
  313|  7.99k|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|  1.66M|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 1.65M, False: 7.99k]
  ------------------
  315|  1.65M|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 1.65M]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|  1.65M|                     using V = std::remove_cvref_t<T>;
  320|  1.65M|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|  1.65M|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|  1.65M|                     it += sizeof(T);
  326|  1.65M|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 1.64M, False: 7.69k]
  ------------------
  327|  1.64M|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 1.64M]
  ------------------
  328|  1.64M|                     }
  329|  1.65M|                  }
  330|  7.99k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clItEEDaSR_:
  313|  1.05k|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|   907k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 906k, False: 1.05k]
  ------------------
  315|   906k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 906k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|   906k|                     using V = std::remove_cvref_t<T>;
  320|   906k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|   906k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|   906k|                     it += sizeof(T);
  326|   906k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 905k, False: 605]
  ------------------
  327|   905k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 905k]
  ------------------
  328|   905k|                     }
  329|   906k|                  }
  330|  1.05k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIjEEDaSR_:
  313|    527|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|   101k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 100k, False: 527]
  ------------------
  315|   100k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 100k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|   100k|                     using V = std::remove_cvref_t<T>;
  320|   100k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|   100k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|   100k|                     it += sizeof(T);
  326|   100k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 100k, False: 311]
  ------------------
  327|   100k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 100k]
  ------------------
  328|   100k|                     }
  329|   100k|                  }
  330|    527|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clImEEDaSR_:
  313|  4.75k|               auto write_aligned_array = [&]<class T>(T&& value) {
  314|  58.2k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (314:38): [True: 53.4k, False: 4.75k]
  ------------------
  315|  53.4k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (315:26): [True: 0, False: 53.4k]
  ------------------
  316|      0|                        ctx.error = error_code::unexpected_end;
  317|      0|                        return;
  318|      0|                     }
  319|  53.4k|                     using V = std::remove_cvref_t<T>;
  320|  53.4k|                     std::memcpy(&value, it, sizeof(V));
  321|       |                     if constexpr (std::endian::native == std::endian::big) {
  322|       |                        byteswap_le(value);
  323|       |                     }
  324|  53.4k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  325|  53.4k|                     it += sizeof(T);
  326|  53.4k|                     if (i != n - 1) {
  ------------------
  |  Branch (326:26): [True: 52.8k, False: 620]
  ------------------
  327|  52.8k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (327:29): [True: 0, False: 52.8k]
  ------------------
  328|  52.8k|                     }
  329|  53.4k|                  }
  330|  4.75k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIfEEDaSR_:
  400|  2.82k|            auto write_array = [&]<class T>(T&& value) {
  401|  2.82k|               const auto n = int_from_compressed(ctx, it, end);
  402|  2.82k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 45, False: 2.77k]
  ------------------
  403|     45|                  return;
  404|     45|               }
  405|  1.22M|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 1.22M, False: 2.45k]
  ------------------
  406|  1.22M|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 321, False: 1.22M]
  ------------------
  407|    321|                     ctx.error = error_code::unexpected_end;
  408|    321|                     return;
  409|    321|                  }
  410|  1.22M|                  using V = std::remove_cvref_t<T>;
  411|  1.22M|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|  1.22M|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|  1.22M|                  it += sizeof(T);
  417|  1.22M|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 1.22M, False: 1.49k]
  ------------------
  418|  1.22M|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 1.22M]
  ------------------
  419|  1.22M|                  }
  420|  1.22M|               }
  421|  2.77k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIdEEDaSR_:
  400|  1.81k|            auto write_array = [&]<class T>(T&& value) {
  401|  1.81k|               const auto n = int_from_compressed(ctx, it, end);
  402|  1.81k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 49, False: 1.76k]
  ------------------
  403|     49|                  return;
  404|     49|               }
  405|   542k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 541k, False: 1.45k]
  ------------------
  406|   541k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 309, False: 540k]
  ------------------
  407|    309|                     ctx.error = error_code::unexpected_end;
  408|    309|                     return;
  409|    309|                  }
  410|   540k|                  using V = std::remove_cvref_t<T>;
  411|   540k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   540k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   540k|                  it += sizeof(T);
  417|   540k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 540k, False: 404]
  ------------------
  418|   540k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 540k]
  ------------------
  419|   540k|                  }
  420|   540k|               }
  421|  1.76k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIaEEDaSR_:
  400|  20.7k|            auto write_array = [&]<class T>(T&& value) {
  401|  20.7k|               const auto n = int_from_compressed(ctx, it, end);
  402|  20.7k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 53, False: 20.6k]
  ------------------
  403|     53|                  return;
  404|     53|               }
  405|   386k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 366k, False: 20.4k]
  ------------------
  406|   366k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 235, False: 366k]
  ------------------
  407|    235|                     ctx.error = error_code::unexpected_end;
  408|    235|                     return;
  409|    235|                  }
  410|   366k|                  using V = std::remove_cvref_t<T>;
  411|   366k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   366k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   366k|                  it += sizeof(T);
  417|   366k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 357k, False: 8.75k]
  ------------------
  418|   357k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 357k]
  ------------------
  419|   357k|                  }
  420|   366k|               }
  421|  20.6k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIsEEDaSR_:
  400|  10.1k|            auto write_array = [&]<class T>(T&& value) {
  401|  10.1k|               const auto n = int_from_compressed(ctx, it, end);
  402|  10.1k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 45, False: 10.0k]
  ------------------
  403|     45|                  return;
  404|     45|               }
  405|   153k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 143k, False: 9.82k]
  ------------------
  406|   143k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 252, False: 143k]
  ------------------
  407|    252|                     ctx.error = error_code::unexpected_end;
  408|    252|                     return;
  409|    252|                  }
  410|   143k|                  using V = std::remove_cvref_t<T>;
  411|   143k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   143k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   143k|                  it += sizeof(T);
  417|   143k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 142k, False: 660]
  ------------------
  418|   142k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 142k]
  ------------------
  419|   142k|                  }
  420|   143k|               }
  421|  10.0k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIiEEDaSR_:
  400|  4.25k|            auto write_array = [&]<class T>(T&& value) {
  401|  4.25k|               const auto n = int_from_compressed(ctx, it, end);
  402|  4.25k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 57, False: 4.19k]
  ------------------
  403|     57|                  return;
  404|     57|               }
  405|   767k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 763k, False: 3.96k]
  ------------------
  406|   763k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 236, False: 763k]
  ------------------
  407|    236|                     ctx.error = error_code::unexpected_end;
  408|    236|                     return;
  409|    236|                  }
  410|   763k|                  using V = std::remove_cvref_t<T>;
  411|   763k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   763k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   763k|                  it += sizeof(T);
  417|   763k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 761k, False: 2.16k]
  ------------------
  418|   761k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 761k]
  ------------------
  419|   761k|                  }
  420|   763k|               }
  421|  4.19k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIlEEDaSR_:
  400|  1.78k|            auto write_array = [&]<class T>(T&& value) {
  401|  1.78k|               const auto n = int_from_compressed(ctx, it, end);
  402|  1.78k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 29, False: 1.75k]
  ------------------
  403|     29|                  return;
  404|     29|               }
  405|   597k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 595k, False: 1.45k]
  ------------------
  406|   595k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 297, False: 595k]
  ------------------
  407|    297|                     ctx.error = error_code::unexpected_end;
  408|    297|                     return;
  409|    297|                  }
  410|   595k|                  using V = std::remove_cvref_t<T>;
  411|   595k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   595k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   595k|                  it += sizeof(T);
  417|   595k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 595k, False: 371]
  ------------------
  418|   595k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 595k]
  ------------------
  419|   595k|                  }
  420|   595k|               }
  421|  1.75k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIhEEDaSR_:
  400|  21.1k|            auto write_array = [&]<class T>(T&& value) {
  401|  21.1k|               const auto n = int_from_compressed(ctx, it, end);
  402|  21.1k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 52, False: 21.0k]
  ------------------
  403|     52|                  return;
  404|     52|               }
  405|   236k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 216k, False: 20.8k]
  ------------------
  406|   216k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 222, False: 215k]
  ------------------
  407|    222|                     ctx.error = error_code::unexpected_end;
  408|    222|                     return;
  409|    222|                  }
  410|   215k|                  using V = std::remove_cvref_t<T>;
  411|   215k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   215k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   215k|                  it += sizeof(T);
  417|   215k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 205k, False: 10.6k]
  ------------------
  418|   205k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 205k]
  ------------------
  419|   205k|                  }
  420|   215k|               }
  421|  21.0k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clItEEDaSR_:
  400|  2.02k|            auto write_array = [&]<class T>(T&& value) {
  401|  2.02k|               const auto n = int_from_compressed(ctx, it, end);
  402|  2.02k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 59, False: 1.96k]
  ------------------
  403|     59|                  return;
  404|     59|               }
  405|   997k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 995k, False: 1.68k]
  ------------------
  406|   995k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 281, False: 995k]
  ------------------
  407|    281|                     ctx.error = error_code::unexpected_end;
  408|    281|                     return;
  409|    281|                  }
  410|   995k|                  using V = std::remove_cvref_t<T>;
  411|   995k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   995k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   995k|                  it += sizeof(T);
  417|   995k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 994k, False: 621]
  ------------------
  418|   994k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 994k]
  ------------------
  419|   994k|                  }
  420|   995k|               }
  421|  1.96k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIjEEDaSR_:
  400|  9.95k|            auto write_array = [&]<class T>(T&& value) {
  401|  9.95k|               const auto n = int_from_compressed(ctx, it, end);
  402|  9.95k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 47, False: 9.91k]
  ------------------
  403|     47|                  return;
  404|     47|               }
  405|   669k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 660k, False: 9.65k]
  ------------------
  406|   660k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 252, False: 660k]
  ------------------
  407|    252|                     ctx.error = error_code::unexpected_end;
  408|    252|                     return;
  409|    252|                  }
  410|   660k|                  using V = std::remove_cvref_t<T>;
  411|   660k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   660k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   660k|                  it += sizeof(T);
  417|   660k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 658k, False: 1.09k]
  ------------------
  418|   658k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 658k]
  ------------------
  419|   658k|                  }
  420|   660k|               }
  421|  9.91k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clImEEDaSR_:
  400|  12.4k|            auto write_array = [&]<class T>(T&& value) {
  401|  12.4k|               const auto n = int_from_compressed(ctx, it, end);
  402|  12.4k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (402:20): [True: 159, False: 12.2k]
  ------------------
  403|    159|                  return;
  404|    159|               }
  405|   824k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (405:35): [True: 812k, False: 11.9k]
  ------------------
  406|   812k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (406:23): [True: 295, False: 812k]
  ------------------
  407|    295|                     ctx.error = error_code::unexpected_end;
  408|    295|                     return;
  409|    295|                  }
  410|   812k|                  using V = std::remove_cvref_t<T>;
  411|   812k|                  std::memcpy(&value, it, sizeof(V));
  412|       |                  if constexpr (std::endian::native == std::endian::big) {
  413|       |                     byteswap_le(value);
  414|       |                  }
  415|   812k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  416|   812k|                  it += sizeof(T);
  417|   812k|                  if (i != n - 1) {
  ------------------
  |  Branch (417:23): [True: 811k, False: 369]
  ------------------
  418|   811k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (418:26): [True: 0, False: 811k]
  ------------------
  419|   811k|                  }
  420|   812k|               }
  421|  12.2k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlvE_clEv:
  706|   861k|               auto write_complex = [&]() -> bool {
  707|   861k|                  if (!emit_char(ctx, '[', out, ix)) return false;
  ------------------
  |  Branch (707:23): [True: 0, False: 861k]
  ------------------
  708|   861k|                  beve_to_json_number<Opts>(number_tag, ctx, it, end, out, ix);
  709|   861k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (709:23): [True: 385, False: 861k]
  ------------------
  710|    385|                     return false;
  711|    385|                  }
  712|   861k|                  if (!emit_char(ctx, ',', out, ix)) return false;
  ------------------
  |  Branch (712:23): [True: 0, False: 861k]
  ------------------
  713|   861k|                  beve_to_json_number<Opts>(number_tag, ctx, it, end, out, ix);
  714|   861k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (714:23): [True: 132, False: 861k]
  ------------------
  715|    132|                     return false;
  716|    132|                  }
  717|   861k|                  return emit_char(ctx, ']', out, ix);
  718|   861k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlmE_clEm:
  721|  3.03k|               auto write_complex_array = [&](const size_t n) -> bool {
  722|  3.03k|                  if (!emit_char(ctx, '[', out, ix)) return false;
  ------------------
  |  Branch (722:23): [True: 0, False: 3.03k]
  ------------------
  723|   864k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (723:38): [True: 861k, False: 2.54k]
  ------------------
  724|   861k|                     if (!write_complex()) return false;
  ------------------
  |  Branch (724:26): [True: 491, False: 860k]
  ------------------
  725|   860k|                     if (i != n - 1) {
  ------------------
  |  Branch (725:26): [True: 860k, False: 642]
  ------------------
  726|   860k|                        if (!emit_char(ctx, ',', out, ix)) return false;
  ------------------
  |  Branch (726:29): [True: 0, False: 860k]
  ------------------
  727|   860k|                     }
  728|   860k|                  }
  729|  2.54k|                  return emit_char(ctx, ']', out, ix);
  730|  3.03k|               };

_ZN3glz11invalid_endITkNS_10is_contextENS_7contextERPKcS3_EEbRT_OT0_T1_:
   23|  71.4k|   {
   24|  71.4k|      if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (24:11): [True: 512, False: 70.9k]
  ------------------
   25|    512|         ctx.error = error_code::unexpected_end;
   26|    512|         return true;
   27|    512|      }
   28|  70.9k|      else [[likely]] {
   29|  70.9k|         return false;
   30|  70.9k|      }
   31|  71.4k|   }
_ZN3glz19int_from_compressedIRNS_7contextERPKcS4_EEmOT_OT0_T1_:
  256|  1.50M|   {
  257|  1.50M|      if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (257:11): [True: 1.55k, False: 1.50M]
  ------------------
  258|  1.55k|         ctx.error = error_code::unexpected_end;
  259|  1.55k|         return 0;
  260|  1.55k|      }
  261|       |
  262|  1.50M|      uint8_t header;
  263|  1.50M|      std::memcpy(&header, it, 1);
  264|  1.50M|      const uint8_t config = header & 0b000000'11;
  265|       |
  266|  1.50M|      if (size_t(end - it) < byte_count_lookup[config]) [[unlikely]] {
  ------------------
  |  Branch (266:11): [True: 1.48k, False: 1.50M]
  ------------------
  267|  1.48k|         ctx.error = error_code::unexpected_end;
  268|  1.48k|         return 0;
  269|  1.48k|      }
  270|       |
  271|  1.50M|      switch (config) {
  272|  1.43M|      case 0:
  ------------------
  |  Branch (272:7): [True: 1.43M, False: 69.8k]
  ------------------
  273|  1.43M|         ++it;
  274|  1.43M|         return header >> 2;
  275|  50.0k|      case 1: {
  ------------------
  |  Branch (275:7): [True: 50.0k, False: 1.45M]
  ------------------
  276|  50.0k|         uint16_t h;
  277|  50.0k|         std::memcpy(&h, it, 2);
  278|       |         if constexpr (std::endian::native == std::endian::big) {
  279|       |            h = std::byteswap(h);
  280|       |         }
  281|  50.0k|         it += 2;
  282|  50.0k|         return h >> 2;
  283|      0|      }
  284|  9.93k|      case 2: {
  ------------------
  |  Branch (284:7): [True: 9.93k, False: 1.49M]
  ------------------
  285|  9.93k|         uint32_t h;
  286|  9.93k|         std::memcpy(&h, it, 4);
  287|       |         if constexpr (std::endian::native == std::endian::big) {
  288|       |            h = std::byteswap(h);
  289|       |         }
  290|  9.93k|         it += 4;
  291|  9.93k|         return h >> 2;
  292|      0|      }
  293|  9.89k|      case 3: {
  ------------------
  |  Branch (293:7): [True: 9.89k, False: 1.49M]
  ------------------
  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|  9.89k|         if constexpr (sizeof(size_t) > sizeof(uint32_t)) {
  297|  9.89k|            uint64_t h;
  298|  9.89k|            std::memcpy(&h, it, 8);
  299|       |            if constexpr (std::endian::native == std::endian::big) {
  300|       |               h = std::byteswap(h);
  301|       |            }
  302|  9.89k|            it += 8;
  303|  9.89k|            h = h >> 2;
  304|  9.89k|            static constexpr uint64_t safety_limit = 1ull << 48; // 2^48
  305|  9.89k|            if (h > safety_limit) [[unlikely]] {
  ------------------
  |  Branch (305:17): [True: 1.39k, False: 8.49k]
  ------------------
  306|  1.39k|               ctx.error = error_code::unexpected_end;
  307|  1.39k|               return 0;
  308|  1.39k|            }
  309|  8.49k|            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|  9.89k|      }
  317|  9.89k|      default:
  ------------------
  |  Branch (317:7): [True: 0, False: 1.50M]
  ------------------
  318|  9.89k|         ctx.error = error_code::syntax_error;
  319|  9.89k|         return 0;
  320|  1.50M|      }
  321|  1.50M|   }
_ZN3glz25typed_array_out_of_boundsITkNS_10is_contextENS_7contextERPKcS4_EEbRT_OT0_OT1_mmm:
   48|  29.1k|   {
   49|  29.1k|      const uint64_t available = uint64_t(end - it);
   50|  29.1k|      if constexpr (sizeof(size_t) > sizeof(uint32_t)) {
   51|  29.1k|         if (available < padding + count * element_size) [[unlikely]] {
  ------------------
  |  Branch (51:14): [True: 538, False: 28.6k]
  ------------------
   52|    538|            ctx.error = error_code::unexpected_end;
   53|    538|            return true;
   54|    538|         }
   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|  28.6k|      return false;
   63|  29.1k|   }
_ZN3glz27packed_bool_padding_is_zeroEhm:
  363|   177k|   {
  364|   177k|      const size_t used_bits = count % 8;
  365|   177k|      return used_bits == 0 || (last_byte >> used_bits) == 0;
  ------------------
  |  Branch (365:14): [True: 12.5k, False: 164k]
  |  Branch (365:32): [True: 164k, False: 16]
  ------------------
  366|   177k|   }
_ZN3glz19skip_compressed_intITkNS_10is_contextERNS_7contextERPKcS4_EEvOT_OT0_T1_:
  324|  5.09k|   {
  325|  5.09k|      if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (325:11): [True: 3, False: 5.08k]
  ------------------
  326|      3|         return;
  327|      3|      }
  328|       |
  329|  5.08k|      uint8_t header;
  330|  5.08k|      std::memcpy(&header, it, 1);
  331|  5.08k|      const uint8_t config = header & 0b000000'11;
  332|       |
  333|  5.08k|      if (size_t(end - it) < byte_count_lookup[config]) [[unlikely]] {
  ------------------
  |  Branch (333:11): [True: 1, False: 5.08k]
  ------------------
  334|      1|         ctx.error = error_code::unexpected_end;
  335|      1|         return;
  336|      1|      }
  337|       |
  338|  5.08k|      switch (config) {
  339|  4.08k|      case 0:
  ------------------
  |  Branch (339:7): [True: 4.08k, False: 1.00k]
  ------------------
  340|  4.08k|         ++it;
  341|  4.08k|         return;
  342|    240|      case 1: {
  ------------------
  |  Branch (342:7): [True: 240, False: 4.84k]
  ------------------
  343|    240|         it += 2;
  344|    240|         return;
  345|      0|      }
  346|    554|      case 2: {
  ------------------
  |  Branch (346:7): [True: 554, False: 4.53k]
  ------------------
  347|    554|         it += 4;
  348|    554|         return;
  349|      0|      }
  350|    206|      case 3: {
  ------------------
  |  Branch (350:7): [True: 206, False: 4.88k]
  ------------------
  351|    206|         it += 8;
  352|    206|         return;
  353|      0|      }
  354|      0|      default:
  ------------------
  |  Branch (354:7): [True: 0, False: 5.08k]
  ------------------
  355|      0|         return;
  356|  5.08k|      }
  357|  5.08k|   }
_ZN3glz27read_aligned_complex_headerITkNS_10is_contextERNS_7contextERPKcS4_EEmOT_OT0_T1_h:
  382|  1.17k|   {
  383|  1.17k|      if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (383:11): [True: 1, False: 1.17k]
  ------------------
  384|      1|         return 0;
  385|      1|      }
  386|  1.17k|      if (uint8_t(*it) != tag::aligned_typed_array) [[unlikely]] {
  ------------------
  |  Branch (386:11): [True: 15, False: 1.15k]
  ------------------
  387|     15|         ctx.error = error_code::syntax_error;
  388|     15|         return 0;
  389|     15|      }
  390|  1.15k|      ++it;
  391|       |
  392|  1.15k|      if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (392:11): [True: 1, False: 1.15k]
  ------------------
  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.15k|      constexpr uint8_t numeric_bits = 0b111'11'000;
  398|  1.15k|      const uint8_t expected_numeric_header = tag::typed_array | (complex_header & numeric_bits);
  399|  1.15k|      if (uint8_t(*it) != expected_numeric_header || ((complex_header >> 3) & 0b11) == 3) [[unlikely]] {
  ------------------
  |  Branch (399:11): [True: 13, False: 1.14k]
  |  Branch (399:54): [True: 1, False: 1.14k]
  ------------------
  400|     14|         ctx.error = error_code::syntax_error;
  401|     14|         return 0;
  402|     14|      }
  403|  1.14k|      ++it;
  404|       |
  405|  1.14k|      const size_t components = int_from_compressed(ctx, it, end);
  406|  1.14k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (406:11): [True: 37, False: 1.10k]
  ------------------
  407|     37|         return 0;
  408|     37|      }
  409|  1.10k|      if (components % 2 != 0) [[unlikely]] {
  ------------------
  |  Branch (409:11): [True: 56, False: 1.04k]
  ------------------
  410|     56|         ctx.error = error_code::syntax_error;
  411|     56|         return 0;
  412|     56|      }
  413|       |
  414|  1.04k|      if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (414:11): [True: 44, False: 1.00k]
  ------------------
  415|     44|         return 0;
  416|     44|      }
  417|  1.00k|      const uint8_t padding = uint8_t(*it);
  418|  1.00k|      ++it;
  419|  1.00k|      const size_t component_size = byte_count_lookup[complex_header >> 5];
  420|  1.00k|      if (padding >= component_size) [[unlikely]] {
  ------------------
  |  Branch (420:11): [True: 15, False: 990]
  ------------------
  421|     15|         ctx.error = error_code::syntax_error;
  422|     15|         return 0;
  423|     15|      }
  424|    990|      if (typed_array_out_of_bounds(ctx, it, end, components, component_size, padding)) {
  ------------------
  |  Branch (424:11): [True: 55, False: 935]
  ------------------
  425|     55|         return 0;
  426|     55|      }
  427|    935|      it += padding;
  428|    935|      return components / 2;
  429|    990|   }

_ZN3glz9read_beveITkNS_14read_supportedIL_ZNS_4BEVEEEEE9my_structRKNSt3__16vectorIcNS3_9allocatorIcEEEEEENS3_8expectedIT_NS_9error_ctxEEEOT0_:
 3396|  25.5k|   {
 3397|  25.5k|      T value{};
 3398|  25.5k|      const auto pe = read<opts{.format = BEVE}>(value, std::forward<Buffer>(buffer));
 3399|  25.5k|      if (pe) [[unlikely]] {
  ------------------
  |  Branch (3399:11): [True: 25.5k, False: 81]
  ------------------
 3400|  25.5k|         return unexpected(pe);
 3401|  25.5k|      }
 3402|     81|      return value;
 3403|  25.5k|   }
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEER9my_structTkNS_10is_contextERNS_7contextERPKcS9_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   59|  25.5k|      {
   60|       |         if constexpr (const_value_v<T>) {
   61|       |            if constexpr (check_error_on_const_read(Opts)) {
   62|       |               ctx.error = error_code::attempt_const_read;
   63|       |            }
   64|       |            else {
   65|       |               // do not read anything into the const value
   66|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   67|       |            }
   68|       |         }
   69|  25.5k|         else {
   70|  25.5k|            using V = std::remove_cvref_t<T>;
   71|  25.5k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   72|  25.5k|                                             end);
   73|  25.5k|         }
   74|  25.5k|      }
_ZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_:
 3081|  25.5k|      {
 3082|  25.5k|         constexpr uint8_t type = 0; // string key
 3083|  25.5k|         constexpr uint8_t header = tag::object | type;
 3084|       |
 3085|  25.5k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (3085:14): [True: 0, False: 25.5k]
  ------------------
 3086|      0|            return;
 3087|      0|         }
 3088|  25.5k|         const auto tag = uint8_t(*it);
 3089|  25.5k|         if (tag != header) [[unlikely]] {
  ------------------
  |  Branch (3089:14): [True: 20.3k, False: 5.22k]
  ------------------
 3090|  20.3k|            ctx.error = error_code::syntax_error;
 3091|  20.3k|            return;
 3092|  20.3k|         }
 3093|       |
 3094|  5.22k|         depth_guard guard{ctx};
 3095|  5.22k|         if (!guard) [[unlikely]] {
  ------------------
  |  Branch (3095:14): [True: 0, False: 5.22k]
  ------------------
 3096|      0|            return;
 3097|      0|         }
 3098|       |
 3099|  5.22k|         ++it;
 3100|       |
 3101|  5.22k|         static constexpr auto N = reflect<T>::size;
 3102|       |         if constexpr (N == 0) {
 3103|       |            (void)value;
 3104|       |         }
 3105|       |
 3106|  5.22k|         static constexpr bit_array<N> all_fields = [] {
 3107|  5.22k|            bit_array<N> arr{};
 3108|  5.22k|            for (size_t i = 0; i < N; ++i) {
 3109|  5.22k|               arr[i] = true;
 3110|  5.22k|            }
 3111|  5.22k|            return arr;
 3112|  5.22k|         }();
 3113|       |
 3114|  5.22k|         decltype(auto) fields = [&]() -> decltype(auto) {
 3115|  5.22k|            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3116|  5.22k|               return bit_array<N>{};
 3117|  5.22k|            }
 3118|  5.22k|            else {
 3119|  5.22k|               return nullptr;
 3120|  5.22k|            }
 3121|  5.22k|         }();
 3122|       |
 3123|  5.22k|         const auto n_keys = int_from_compressed(ctx, it, end);
 3124|  5.22k|         if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (3124:14): [True: 183, False: 5.04k]
  ------------------
 3125|    183|            return;
 3126|    183|         }
 3127|       |
 3128|  22.4k|         for (size_t i = 0; i < n_keys; ++i) {
  ------------------
  |  Branch (3128:29): [True: 17.3k, False: 5.04k]
  ------------------
 3129|       |            if constexpr (Opts.partial_read) {
 3130|       |               if ((all_fields & fields) == all_fields) {
 3131|       |                  return;
 3132|       |               }
 3133|       |            }
 3134|       |
 3135|  17.3k|            if constexpr (N > 0) {
 3136|  17.3k|               static constexpr auto HashInfo = hash_info<T>;
 3137|       |
 3138|  17.3k|               const auto n = int_from_compressed(ctx, it, end);
 3139|  17.3k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (3139:20): [True: 851, False: 16.5k]
  ------------------
 3140|    851|                  return;
 3141|    851|               }
 3142|  16.5k|               if (uint64_t(end - it) < n || it == end) [[unlikely]] {
  ------------------
  |  Branch (3142:20): [True: 487, False: 16.0k]
  |  Branch (3142:46): [True: 364, False: 15.6k]
  ------------------
 3143|    851|                  ctx.error = error_code::unexpected_end;
 3144|    851|                  return;
 3145|    851|               }
 3146|       |
 3147|       |               if constexpr (not Tag.sv().empty() && not has_member_with_name<T>(Tag.sv())) {
 3148|       |                  // Discriminator key injected by the variant reader: skip it (and its value) without
 3149|       |                  // consulting error_on_unknown_keys, while the alternative's real keys stay checked.
 3150|       |                  if (sv{it, n} == Tag.sv()) {
 3151|       |                     it += n;
 3152|       |                     skip_value<BEVE>::op<Opts>(ctx, it, end);
 3153|       |                     if (bool(ctx.error)) [[unlikely]] {
 3154|       |                        return;
 3155|       |                     }
 3156|       |                     continue;
 3157|       |                  }
 3158|       |               }
 3159|       |
 3160|  15.6k|               const auto index = decode_hash_with_size<BEVE, T, HashInfo, HashInfo.type>::op(it, end, n);
 3161|       |
 3162|  15.6k|               if (index < N) [[likely]] {
  ------------------
  |  Branch (3162:20): [True: 14.9k, False: 692]
  ------------------
 3163|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3164|       |                     fields[index] = true;
 3165|       |                  }
 3166|       |
 3167|  14.9k|                  const sv key{it, n};
 3168|  14.9k|                  it += n;
 3169|       |
 3170|  14.9k|                  visit<N>(
 3171|  14.9k|                     [&]<size_t I>() {
 3172|  14.9k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 3173|  14.9k|                        static constexpr auto Length = TargetKey.size();
 3174|  14.9k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
 3175|       |                           // An `else` branch rather than an early return, so a skipped field's reader is
 3176|       |                           // never instantiated -- see `skipped_by_meta`.
 3177|  14.9k|                           if constexpr (skipped_by_meta<T, I, operation::parse>) {
 3178|  14.9k|                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3179|  14.9k|                           }
 3180|  14.9k|                           else {
 3181|       |                              // Check for null value skipping on read
 3182|  14.9k|                              if constexpr (check_skip_null_members_on_read(Opts)) {
 3183|  14.9k|                                 if (invalid_end(ctx, it, end)) {
 3184|  14.9k|                                    return;
 3185|  14.9k|                                 }
 3186|  14.9k|                                 if (uint8_t(*it) == tag::null) {
 3187|  14.9k|                                    ++it; // Skip the null tag
 3188|  14.9k|                                    return;
 3189|  14.9k|                                 }
 3190|  14.9k|                              }
 3191|       |
 3192|  14.9k|                              if constexpr (reflectable<T>) {
 3193|  14.9k|                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3194|  14.9k|                              }
 3195|  14.9k|                              else {
 3196|  14.9k|                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3197|  14.9k|                              }
 3198|  14.9k|                           }
 3199|  14.9k|                        }
 3200|  14.9k|                        else {
 3201|  14.9k|                           if constexpr (Opts.error_on_unknown_keys) {
 3202|  14.9k|                              ctx.error = error_code::unknown_key;
 3203|  14.9k|                              return;
 3204|  14.9k|                           }
 3205|  14.9k|                           else {
 3206|  14.9k|                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3207|  14.9k|                              if (bool(ctx.error)) [[unlikely]]
 3208|  14.9k|                                 return;
 3209|  14.9k|                           }
 3210|  14.9k|                        }
 3211|  14.9k|                     },
 3212|  14.9k|                     index);
 3213|       |
 3214|  14.9k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (3214:23): [True: 2.57k, False: 12.4k]
  ------------------
 3215|  2.57k|                     return;
 3216|  2.57k|                  }
 3217|  14.9k|               }
 3218|    692|               else [[unlikely]] {
 3219|    692|                  if constexpr (Opts.error_on_unknown_keys) {
 3220|    692|                     ctx.error = error_code::unknown_key;
 3221|    692|                     return;
 3222|       |                  }
 3223|       |                  else {
 3224|       |                     it += n;
 3225|       |                     skip_value<BEVE>::op<Opts>(ctx, it, end);
 3226|       |                     if (bool(ctx.error)) [[unlikely]]
 3227|       |                        return;
 3228|       |                  }
 3229|    692|               }
 3230|       |            }
 3231|       |            else if constexpr (Opts.error_on_unknown_keys) {
 3232|       |               ctx.error = error_code::unknown_key;
 3233|       |               return;
 3234|       |            }
 3235|       |            else {
 3236|       |               skip_value<BEVE>::op<Opts>(ctx, it, end);
 3237|       |               if (bool(ctx.error)) [[unlikely]]
 3238|       |                  return;
 3239|       |            }
 3240|  17.3k|         }
 3241|       |
 3242|       |         if constexpr (Opts.error_on_missing_keys) {
 3243|       |            constexpr auto req_fields = required_fields<T, Opts>();
 3244|       |            if ((req_fields & fields) != req_fields) {
 3245|       |               for (size_t i = 0; i < N; ++i) {
 3246|       |                  if (not fields[i] && req_fields[i]) {
 3247|       |                     ctx.custom_error_message = reflect<T>::keys[i];
 3248|       |                     break;
 3249|       |                  }
 3250|       |               }
 3251|       |               ctx.error = error_code::missing_key;
 3252|       |               return;
 3253|       |            }
 3254|       |         }
 3255|       |
 3256|  5.04k|         check_self_constraint<BEVE, Opts>(value, ctx);
 3257|  5.04k|      }
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlvE0_clEv:
 3114|  5.22k|         decltype(auto) fields = [&]() -> decltype(auto) {
 3115|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3116|       |               return bit_array<N>{};
 3117|       |            }
 3118|  5.22k|            else {
 3119|  5.22k|               return nullptr;
 3120|  5.22k|            }
 3121|  5.22k|         }();
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlTnmvE_clILm0EEEDav:
 3171|  2.94k|                     [&]<size_t I>() {
 3172|  2.94k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 3173|  2.94k|                        static constexpr auto Length = TargetKey.size();
 3174|  2.94k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
  ------------------
  |  Branch (3174:29): [True: 2.94k, False: 5]
  |  Branch (3174:46): [True: 2.94k, False: 0]
  ------------------
 3175|       |                           // An `else` branch rather than an early return, so a skipped field's reader is
 3176|       |                           // never instantiated -- see `skipped_by_meta`.
 3177|       |                           if constexpr (skipped_by_meta<T, I, operation::parse>) {
 3178|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3179|       |                           }
 3180|  2.94k|                           else {
 3181|       |                              // Check for null value skipping on read
 3182|       |                              if constexpr (check_skip_null_members_on_read(Opts)) {
 3183|       |                                 if (invalid_end(ctx, it, end)) {
 3184|       |                                    return;
 3185|       |                                 }
 3186|       |                                 if (uint8_t(*it) == tag::null) {
 3187|       |                                    ++it; // Skip the null tag
 3188|       |                                    return;
 3189|       |                                 }
 3190|       |                              }
 3191|       |
 3192|  2.94k|                              if constexpr (reflectable<T>) {
 3193|  2.94k|                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3194|       |                              }
 3195|       |                              else {
 3196|       |                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3197|       |                              }
 3198|  2.94k|                           }
 3199|  2.94k|                        }
 3200|      5|                        else {
 3201|      5|                           if constexpr (Opts.error_on_unknown_keys) {
 3202|      5|                              ctx.error = error_code::unknown_key;
 3203|      5|                              return;
 3204|       |                           }
 3205|       |                           else {
 3206|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3207|       |                              if (bool(ctx.error)) [[unlikely]]
 3208|       |                                 return;
 3209|       |                           }
 3210|      5|                        }
 3211|  2.94k|                     },
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   59|  2.94k|      {
   60|       |         if constexpr (const_value_v<T>) {
   61|       |            if constexpr (check_error_on_const_read(Opts)) {
   62|       |               ctx.error = error_code::attempt_const_read;
   63|       |            }
   64|       |            else {
   65|       |               // do not read anything into the const value
   66|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   67|       |            }
   68|       |         }
   69|  2.94k|         else {
   70|  2.94k|            using V = std::remove_cvref_t<T>;
   71|  2.94k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   72|  2.94k|                                             end);
   73|  2.94k|         }
   74|  2.94k|      }
_ZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qntcl15check_no_headerTL0__EEEvOT0_OT1_OT2_T3_:
  350|  2.94k|      {
  351|  2.94k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (351:14): [True: 5, False: 2.93k]
  ------------------
  352|      5|            return;
  353|      5|         }
  354|  2.93k|         const auto tag = uint8_t(*it);
  355|  2.93k|         ++it;
  356|  2.93k|         op<no_header_on<Opts>()>(value, tag, ctx, it, end);
  357|  2.93k|      }
_ZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_:
  223|  2.93k|      {
  224|  2.93k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (224:14): [True: 30, False: 2.90k]
  ------------------
  225|     30|            return;
  226|     30|         }
  227|       |
  228|  2.90k|         using V = std::decay_t<decltype(value)>;
  229|       |
  230|  2.90k|         constexpr auto is_volatile = std::is_volatile_v<std::remove_reference_t<decltype(value)>>;
  231|       |
  232|  2.90k|         if (tag != header) {
  ------------------
  |  Branch (232:14): [True: 2.59k, False: 311]
  ------------------
  233|  2.59k|            if constexpr (check_allow_conversions(Opts)) {
  234|       |               // char and glaze_enum_t values convert here as well. The tag fixes how many bytes the
  235|       |               // value occupies, so reading sizeof(V) bytes under a wider or narrower tag would leave
  236|       |               // the cursor inside the value and parse its remaining bytes as whatever comes next.
  237|  2.59k|               if ((tag & 0b00000111) != tag::number) {
  ------------------
  |  Branch (237:20): [True: 19, False: 2.57k]
  ------------------
  238|     19|                  ctx.error = error_code::syntax_error;
  239|     19|                  return;
  240|     19|               }
  241|       |
  242|  2.57k|               auto decode = [&](auto&& i) {
  243|  2.57k|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  244|  2.57k|                     ctx.error = error_code::unexpected_end;
  245|  2.57k|                     return;
  246|  2.57k|                  }
  247|  2.57k|                  using I = std::decay_t<decltype(i)>;
  248|  2.57k|                  std::memcpy(&i, it, sizeof(I));
  249|  2.57k|                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|  2.57k|                     byteswap_le(i);
  251|  2.57k|                  }
  252|  2.57k|                  value = static_cast<V>(i);
  253|  2.57k|                  it += sizeof(i);
  254|  2.57k|               };
  255|       |
  256|  2.57k|               switch (tag) {
  257|      3|               case tag::f32: {
  ------------------
  |  Branch (257:16): [True: 3, False: 2.57k]
  ------------------
  258|      3|                  if constexpr (!std::floating_point<V>) {
  259|       |                     // We do not allow cross conversions from floats to integral or enum types
  260|      3|                     ctx.error = error_code::syntax_error;
  261|       |                  }
  262|       |                  else {
  263|       |                     static_assert(sizeof(float) == 4);
  264|       |                     // TODO: use float32_t in C++23
  265|       |                     decode(float{});
  266|       |                  }
  267|      3|                  return;
  268|      0|               }
  269|      3|               case tag::f64: {
  ------------------
  |  Branch (269:16): [True: 3, False: 2.57k]
  ------------------
  270|      3|                  if constexpr (!std::floating_point<V>) {
  271|       |                     // We do not allow cross conversions from floats to integral or enum types
  272|      3|                     ctx.error = error_code::syntax_error;
  273|       |                  }
  274|       |                  else {
  275|       |                     static_assert(sizeof(double) == 8);
  276|       |                     // TODO: use float64_t in C++23
  277|       |                     decode(double{});
  278|       |                  }
  279|      3|                  return;
  280|      0|               }
  281|    519|               case tag::i8: {
  ------------------
  |  Branch (281:16): [True: 519, False: 2.05k]
  ------------------
  282|    519|                  decode(int8_t{});
  283|    519|                  return;
  284|      0|               }
  285|    209|               case tag::i16: {
  ------------------
  |  Branch (285:16): [True: 209, False: 2.36k]
  ------------------
  286|    209|                  decode(int16_t{});
  287|    209|                  return;
  288|      0|               }
  289|      0|               case tag::i32: {
  ------------------
  |  Branch (289:16): [True: 0, False: 2.57k]
  ------------------
  290|      0|                  decode(int32_t{});
  291|      0|                  return;
  292|      0|               }
  293|    215|               case tag::i64: {
  ------------------
  |  Branch (293:16): [True: 215, False: 2.36k]
  ------------------
  294|    215|                  decode(int64_t{});
  295|    215|                  return;
  296|      0|               }
  297|    322|               case tag::u8: {
  ------------------
  |  Branch (297:16): [True: 322, False: 2.25k]
  ------------------
  298|    322|                  decode(uint8_t{});
  299|    322|                  return;
  300|      0|               }
  301|    283|               case tag::u16: {
  ------------------
  |  Branch (301:16): [True: 283, False: 2.29k]
  ------------------
  302|    283|                  decode(uint16_t{});
  303|    283|                  return;
  304|      0|               }
  305|    479|               case tag::u32: {
  ------------------
  |  Branch (305:16): [True: 479, False: 2.09k]
  ------------------
  306|    479|                  decode(uint32_t{});
  307|    479|                  return;
  308|      0|               }
  309|    541|               case tag::u64: {
  ------------------
  |  Branch (309:16): [True: 541, False: 2.03k]
  ------------------
  310|    541|                  decode(uint64_t{});
  311|    541|                  return;
  312|      0|               }
  313|      3|               default: {
  ------------------
  |  Branch (313:16): [True: 3, False: 2.57k]
  ------------------
  314|      3|                  ctx.error = error_code::syntax_error;
  315|      3|                  return;
  316|      0|               }
  317|  2.57k|               }
  318|       |            }
  319|       |            else {
  320|       |               ctx.error = error_code::syntax_error;
  321|       |               return;
  322|       |            }
  323|  2.59k|         }
  324|       |
  325|  2.90k|         if (size_t(end - it) < sizeof(V)) [[unlikely]] {
  ------------------
  |  Branch (325:14): [True: 5, False: 2.90k]
  ------------------
  326|      5|            ctx.error = error_code::unexpected_end;
  327|      5|            return;
  328|      5|         }
  329|       |
  330|       |         if constexpr (is_volatile) {
  331|       |            V temp;
  332|       |            std::memcpy(&temp, it, sizeof(V));
  333|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  334|       |               byteswap_le(temp);
  335|       |            }
  336|       |            value = temp;
  337|       |         }
  338|  2.90k|         else {
  339|  2.90k|            std::memcpy(&value, it, sizeof(V));
  340|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  341|       |               byteswap_le(value);
  342|       |            }
  343|  2.90k|         }
  344|  2.90k|         it += sizeof(V);
  345|  2.90k|      }
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIaEEDaSI_:
  242|    519|               auto decode = [&](auto&& i) {
  243|    519|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 0, False: 519]
  ------------------
  244|      0|                     ctx.error = error_code::unexpected_end;
  245|      0|                     return;
  246|      0|                  }
  247|    519|                  using I = std::decay_t<decltype(i)>;
  248|    519|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|    519|                  value = static_cast<V>(i);
  253|    519|                  it += sizeof(i);
  254|    519|               };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIsEEDaSI_:
  242|    209|               auto decode = [&](auto&& i) {
  243|    209|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 3, False: 206]
  ------------------
  244|      3|                     ctx.error = error_code::unexpected_end;
  245|      3|                     return;
  246|      3|                  }
  247|    206|                  using I = std::decay_t<decltype(i)>;
  248|    206|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|    206|                  value = static_cast<V>(i);
  253|    206|                  it += sizeof(i);
  254|    206|               };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIlEEDaSI_:
  242|    215|               auto decode = [&](auto&& i) {
  243|    215|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 5, False: 210]
  ------------------
  244|      5|                     ctx.error = error_code::unexpected_end;
  245|      5|                     return;
  246|      5|                  }
  247|    210|                  using I = std::decay_t<decltype(i)>;
  248|    210|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|    210|                  value = static_cast<V>(i);
  253|    210|                  it += sizeof(i);
  254|    210|               };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIhEEDaSI_:
  242|    322|               auto decode = [&](auto&& i) {
  243|    322|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 0, False: 322]
  ------------------
  244|      0|                     ctx.error = error_code::unexpected_end;
  245|      0|                     return;
  246|      0|                  }
  247|    322|                  using I = std::decay_t<decltype(i)>;
  248|    322|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|    322|                  value = static_cast<V>(i);
  253|    322|                  it += sizeof(i);
  254|    322|               };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clItEEDaSI_:
  242|    283|               auto decode = [&](auto&& i) {
  243|    283|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 3, False: 280]
  ------------------
  244|      3|                     ctx.error = error_code::unexpected_end;
  245|      3|                     return;
  246|      3|                  }
  247|    280|                  using I = std::decay_t<decltype(i)>;
  248|    280|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|    280|                  value = static_cast<V>(i);
  253|    280|                  it += sizeof(i);
  254|    280|               };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIjEEDaSI_:
  242|    479|               auto decode = [&](auto&& i) {
  243|    479|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 7, False: 472]
  ------------------
  244|      7|                     ctx.error = error_code::unexpected_end;
  245|      7|                     return;
  246|      7|                  }
  247|    472|                  using I = std::decay_t<decltype(i)>;
  248|    472|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|    472|                  value = static_cast<V>(i);
  253|    472|                  it += sizeof(i);
  254|    472|               };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clImEEDaSI_:
  242|    541|               auto decode = [&](auto&& i) {
  243|    541|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 11, False: 530]
  ------------------
  244|     11|                     ctx.error = error_code::unexpected_end;
  245|     11|                     return;
  246|     11|                  }
  247|    530|                  using I = std::decay_t<decltype(i)>;
  248|    530|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|    530|                  value = static_cast<V>(i);
  253|    530|                  it += sizeof(i);
  254|    530|               };
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlTnmvE_clILm1EEEDav:
 3171|  2.79k|                     [&]<size_t I>() {
 3172|  2.79k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 3173|  2.79k|                        static constexpr auto Length = TargetKey.size();
 3174|  2.79k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
  ------------------
  |  Branch (3174:29): [True: 2.78k, False: 4]
  |  Branch (3174:46): [True: 2.78k, False: 0]
  ------------------
 3175|       |                           // An `else` branch rather than an early return, so a skipped field's reader is
 3176|       |                           // never instantiated -- see `skipped_by_meta`.
 3177|       |                           if constexpr (skipped_by_meta<T, I, operation::parse>) {
 3178|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3179|       |                           }
 3180|  2.78k|                           else {
 3181|       |                              // Check for null value skipping on read
 3182|       |                              if constexpr (check_skip_null_members_on_read(Opts)) {
 3183|       |                                 if (invalid_end(ctx, it, end)) {
 3184|       |                                    return;
 3185|       |                                 }
 3186|       |                                 if (uint8_t(*it) == tag::null) {
 3187|       |                                    ++it; // Skip the null tag
 3188|       |                                    return;
 3189|       |                                 }
 3190|       |                              }
 3191|       |
 3192|  2.78k|                              if constexpr (reflectable<T>) {
 3193|  2.78k|                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3194|       |                              }
 3195|       |                              else {
 3196|       |                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3197|       |                              }
 3198|  2.78k|                           }
 3199|  2.78k|                        }
 3200|      4|                        else {
 3201|      4|                           if constexpr (Opts.error_on_unknown_keys) {
 3202|      4|                              ctx.error = error_code::unknown_key;
 3203|      4|                              return;
 3204|       |                           }
 3205|       |                           else {
 3206|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3207|       |                              if (bool(ctx.error)) [[unlikely]]
 3208|       |                                 return;
 3209|       |                           }
 3210|      4|                        }
 3211|  2.79k|                     },
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   59|  2.78k|      {
   60|       |         if constexpr (const_value_v<T>) {
   61|       |            if constexpr (check_error_on_const_read(Opts)) {
   62|       |               ctx.error = error_code::attempt_const_read;
   63|       |            }
   64|       |            else {
   65|       |               // do not read anything into the const value
   66|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   67|       |            }
   68|       |         }
   69|  2.78k|         else {
   70|  2.78k|            using V = std::remove_cvref_t<T>;
   71|  2.78k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   72|  2.78k|                                             end);
   73|  2.78k|         }
   74|  2.78k|      }
_ZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qntcl15check_no_headerTL0__EEEvOT0_OT1_OT2_T3_:
  350|  2.78k|      {
  351|  2.78k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (351:14): [True: 4, False: 2.78k]
  ------------------
  352|      4|            return;
  353|      4|         }
  354|  2.78k|         const auto tag = uint8_t(*it);
  355|  2.78k|         ++it;
  356|  2.78k|         op<no_header_on<Opts>()>(value, tag, ctx, it, end);
  357|  2.78k|      }
_ZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_:
  223|  2.78k|      {
  224|  2.78k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (224:14): [True: 29, False: 2.75k]
  ------------------
  225|     29|            return;
  226|     29|         }
  227|       |
  228|  2.75k|         using V = std::decay_t<decltype(value)>;
  229|       |
  230|  2.75k|         constexpr auto is_volatile = std::is_volatile_v<std::remove_reference_t<decltype(value)>>;
  231|       |
  232|  2.75k|         if (tag != header) {
  ------------------
  |  Branch (232:14): [True: 2.46k, False: 293]
  ------------------
  233|  2.46k|            if constexpr (check_allow_conversions(Opts)) {
  234|       |               // char and glaze_enum_t values convert here as well. The tag fixes how many bytes the
  235|       |               // value occupies, so reading sizeof(V) bytes under a wider or narrower tag would leave
  236|       |               // the cursor inside the value and parse its remaining bytes as whatever comes next.
  237|  2.46k|               if ((tag & 0b00000111) != tag::number) {
  ------------------
  |  Branch (237:20): [True: 21, False: 2.44k]
  ------------------
  238|     21|                  ctx.error = error_code::syntax_error;
  239|     21|                  return;
  240|     21|               }
  241|       |
  242|  2.44k|               auto decode = [&](auto&& i) {
  243|  2.44k|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  244|  2.44k|                     ctx.error = error_code::unexpected_end;
  245|  2.44k|                     return;
  246|  2.44k|                  }
  247|  2.44k|                  using I = std::decay_t<decltype(i)>;
  248|  2.44k|                  std::memcpy(&i, it, sizeof(I));
  249|  2.44k|                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|  2.44k|                     byteswap_le(i);
  251|  2.44k|                  }
  252|  2.44k|                  value = static_cast<V>(i);
  253|  2.44k|                  it += sizeof(i);
  254|  2.44k|               };
  255|       |
  256|  2.44k|               switch (tag) {
  257|    253|               case tag::f32: {
  ------------------
  |  Branch (257:16): [True: 253, False: 2.18k]
  ------------------
  258|       |                  if constexpr (!std::floating_point<V>) {
  259|       |                     // We do not allow cross conversions from floats to integral or enum types
  260|       |                     ctx.error = error_code::syntax_error;
  261|       |                  }
  262|    253|                  else {
  263|    253|                     static_assert(sizeof(float) == 4);
  264|       |                     // TODO: use float32_t in C++23
  265|    253|                     decode(float{});
  266|    253|                  }
  267|    253|                  return;
  268|      0|               }
  269|      0|               case tag::f64: {
  ------------------
  |  Branch (269:16): [True: 0, False: 2.44k]
  ------------------
  270|       |                  if constexpr (!std::floating_point<V>) {
  271|       |                     // We do not allow cross conversions from floats to integral or enum types
  272|       |                     ctx.error = error_code::syntax_error;
  273|       |                  }
  274|      0|                  else {
  275|      0|                     static_assert(sizeof(double) == 8);
  276|       |                     // TODO: use float64_t in C++23
  277|      0|                     decode(double{});
  278|      0|                  }
  279|      0|                  return;
  280|      0|               }
  281|    391|               case tag::i8: {
  ------------------
  |  Branch (281:16): [True: 391, False: 2.05k]
  ------------------
  282|    391|                  decode(int8_t{});
  283|    391|                  return;
  284|      0|               }
  285|    247|               case tag::i16: {
  ------------------
  |  Branch (285:16): [True: 247, False: 2.19k]
  ------------------
  286|    247|                  decode(int16_t{});
  287|    247|                  return;
  288|      0|               }
  289|    293|               case tag::i32: {
  ------------------
  |  Branch (289:16): [True: 293, False: 2.14k]
  ------------------
  290|    293|                  decode(int32_t{});
  291|    293|                  return;
  292|      0|               }
  293|    203|               case tag::i64: {
  ------------------
  |  Branch (293:16): [True: 203, False: 2.23k]
  ------------------
  294|    203|                  decode(int64_t{});
  295|    203|                  return;
  296|      0|               }
  297|    348|               case tag::u8: {
  ------------------
  |  Branch (297:16): [True: 348, False: 2.09k]
  ------------------
  298|    348|                  decode(uint8_t{});
  299|    348|                  return;
  300|      0|               }
  301|    223|               case tag::u16: {
  ------------------
  |  Branch (301:16): [True: 223, False: 2.21k]
  ------------------
  302|    223|                  decode(uint16_t{});
  303|    223|                  return;
  304|      0|               }
  305|    245|               case tag::u32: {
  ------------------
  |  Branch (305:16): [True: 245, False: 2.19k]
  ------------------
  306|    245|                  decode(uint32_t{});
  307|    245|                  return;
  308|      0|               }
  309|    235|               case tag::u64: {
  ------------------
  |  Branch (309:16): [True: 235, False: 2.20k]
  ------------------
  310|    235|                  decode(uint64_t{});
  311|    235|                  return;
  312|      0|               }
  313|      3|               default: {
  ------------------
  |  Branch (313:16): [True: 3, False: 2.43k]
  ------------------
  314|      3|                  ctx.error = error_code::syntax_error;
  315|      3|                  return;
  316|      0|               }
  317|  2.44k|               }
  318|       |            }
  319|       |            else {
  320|       |               ctx.error = error_code::syntax_error;
  321|       |               return;
  322|       |            }
  323|  2.46k|         }
  324|       |
  325|  2.75k|         if (size_t(end - it) < sizeof(V)) [[unlikely]] {
  ------------------
  |  Branch (325:14): [True: 7, False: 2.74k]
  ------------------
  326|      7|            ctx.error = error_code::unexpected_end;
  327|      7|            return;
  328|      7|         }
  329|       |
  330|       |         if constexpr (is_volatile) {
  331|       |            V temp;
  332|       |            std::memcpy(&temp, it, sizeof(V));
  333|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  334|       |               byteswap_le(temp);
  335|       |            }
  336|       |            value = temp;
  337|       |         }
  338|  2.74k|         else {
  339|  2.74k|            std::memcpy(&value, it, sizeof(V));
  340|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  341|       |               byteswap_le(value);
  342|       |            }
  343|  2.74k|         }
  344|  2.74k|         it += sizeof(V);
  345|  2.74k|      }
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIfEEDaSI_:
  242|    253|               auto decode = [&](auto&& i) {
  243|    253|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 5, False: 248]
  ------------------
  244|      5|                     ctx.error = error_code::unexpected_end;
  245|      5|                     return;
  246|      5|                  }
  247|    248|                  using I = std::decay_t<decltype(i)>;
  248|    248|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|    248|                  value = static_cast<V>(i);
  253|    248|                  it += sizeof(i);
  254|    248|               };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIaEEDaSI_:
  242|    391|               auto decode = [&](auto&& i) {
  243|    391|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 0, False: 391]
  ------------------
  244|      0|                     ctx.error = error_code::unexpected_end;
  245|      0|                     return;
  246|      0|                  }
  247|    391|                  using I = std::decay_t<decltype(i)>;
  248|    391|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|    391|                  value = static_cast<V>(i);
  253|    391|                  it += sizeof(i);
  254|    391|               };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIsEEDaSI_:
  242|    247|               auto decode = [&](auto&& i) {
  243|    247|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 3, False: 244]
  ------------------
  244|      3|                     ctx.error = error_code::unexpected_end;
  245|      3|                     return;
  246|      3|                  }
  247|    244|                  using I = std::decay_t<decltype(i)>;
  248|    244|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|    244|                  value = static_cast<V>(i);
  253|    244|                  it += sizeof(i);
  254|    244|               };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIiEEDaSI_:
  242|    293|               auto decode = [&](auto&& i) {
  243|    293|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 7, False: 286]
  ------------------
  244|      7|                     ctx.error = error_code::unexpected_end;
  245|      7|                     return;
  246|      7|                  }
  247|    286|                  using I = std::decay_t<decltype(i)>;
  248|    286|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|    286|                  value = static_cast<V>(i);
  253|    286|                  it += sizeof(i);
  254|    286|               };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIlEEDaSI_:
  242|    203|               auto decode = [&](auto&& i) {
  243|    203|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 7, False: 196]
  ------------------
  244|      7|                     ctx.error = error_code::unexpected_end;
  245|      7|                     return;
  246|      7|                  }
  247|    196|                  using I = std::decay_t<decltype(i)>;
  248|    196|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|    196|                  value = static_cast<V>(i);
  253|    196|                  it += sizeof(i);
  254|    196|               };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIhEEDaSI_:
  242|    348|               auto decode = [&](auto&& i) {
  243|    348|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 0, False: 348]
  ------------------
  244|      0|                     ctx.error = error_code::unexpected_end;
  245|      0|                     return;
  246|      0|                  }
  247|    348|                  using I = std::decay_t<decltype(i)>;
  248|    348|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|    348|                  value = static_cast<V>(i);
  253|    348|                  it += sizeof(i);
  254|    348|               };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clItEEDaSI_:
  242|    223|               auto decode = [&](auto&& i) {
  243|    223|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 3, False: 220]
  ------------------
  244|      3|                     ctx.error = error_code::unexpected_end;
  245|      3|                     return;
  246|      3|                  }
  247|    220|                  using I = std::decay_t<decltype(i)>;
  248|    220|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|    220|                  value = static_cast<V>(i);
  253|    220|                  it += sizeof(i);
  254|    220|               };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIjEEDaSI_:
  242|    245|               auto decode = [&](auto&& i) {
  243|    245|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 5, False: 240]
  ------------------
  244|      5|                     ctx.error = error_code::unexpected_end;
  245|      5|                     return;
  246|      5|                  }
  247|    240|                  using I = std::decay_t<decltype(i)>;
  248|    240|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|    240|                  value = static_cast<V>(i);
  253|    240|                  it += sizeof(i);
  254|    240|               };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clImEEDaSI_:
  242|    235|               auto decode = [&](auto&& i) {
  243|    235|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 9, False: 226]
  ------------------
  244|      9|                     ctx.error = error_code::unexpected_end;
  245|      9|                     return;
  246|      9|                  }
  247|    226|                  using I = std::decay_t<decltype(i)>;
  248|    226|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|    226|                  value = static_cast<V>(i);
  253|    226|                  it += sizeof(i);
  254|    226|               };
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlTnmvE_clILm2EEEDav:
 3171|  2.27k|                     [&]<size_t I>() {
 3172|  2.27k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 3173|  2.27k|                        static constexpr auto Length = TargetKey.size();
 3174|  2.27k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
  ------------------
  |  Branch (3174:29): [True: 2.26k, False: 11]
  |  Branch (3174:46): [True: 2.20k, False: 65]
  ------------------
 3175|       |                           // An `else` branch rather than an early return, so a skipped field's reader is
 3176|       |                           // never instantiated -- see `skipped_by_meta`.
 3177|       |                           if constexpr (skipped_by_meta<T, I, operation::parse>) {
 3178|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3179|       |                           }
 3180|  2.20k|                           else {
 3181|       |                              // Check for null value skipping on read
 3182|       |                              if constexpr (check_skip_null_members_on_read(Opts)) {
 3183|       |                                 if (invalid_end(ctx, it, end)) {
 3184|       |                                    return;
 3185|       |                                 }
 3186|       |                                 if (uint8_t(*it) == tag::null) {
 3187|       |                                    ++it; // Skip the null tag
 3188|       |                                    return;
 3189|       |                                 }
 3190|       |                              }
 3191|       |
 3192|  2.20k|                              if constexpr (reflectable<T>) {
 3193|  2.20k|                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3194|       |                              }
 3195|       |                              else {
 3196|       |                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3197|       |                              }
 3198|  2.20k|                           }
 3199|  2.20k|                        }
 3200|     76|                        else {
 3201|     76|                           if constexpr (Opts.error_on_unknown_keys) {
 3202|     76|                              ctx.error = error_code::unknown_key;
 3203|     76|                              return;
 3204|       |                           }
 3205|       |                           else {
 3206|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3207|       |                              if (bool(ctx.error)) [[unlikely]]
 3208|       |                                 return;
 3209|       |                           }
 3210|     76|                        }
 3211|  2.27k|                     },
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEETkNS_10is_contextERNS_7contextERPKcSF_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   59|  2.20k|      {
   60|       |         if constexpr (const_value_v<T>) {
   61|       |            if constexpr (check_error_on_const_read(Opts)) {
   62|       |               ctx.error = error_code::attempt_const_read;
   63|       |            }
   64|       |            else {
   65|       |               // do not read anything into the const value
   66|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   67|       |            }
   68|       |         }
   69|  2.20k|         else {
   70|  2.20k|            using V = std::remove_cvref_t<T>;
   71|  2.20k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   72|  2.20k|                                             end);
   73|  2.20k|         }
   74|  2.20k|      }
_ZN3glz4fromILj1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSF_Qntcl15check_no_headerTL0__EEEvOT0_OT1_OT2_T3_:
 1521|  2.20k|      {
 1522|  2.20k|         constexpr uint8_t header = tag::string;
 1523|       |
 1524|  2.20k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (1524:14): [True: 3, False: 2.19k]
  ------------------
 1525|      3|            return;
 1526|      3|         }
 1527|  2.19k|         const auto tag = uint8_t(*it);
 1528|  2.19k|         if (tag != header) [[unlikely]] {
  ------------------
  |  Branch (1528:14): [True: 9, False: 2.19k]
  ------------------
 1529|      9|            ctx.error = error_code::syntax_error;
 1530|      9|            return;
 1531|      9|         }
 1532|       |
 1533|  2.19k|         ++it;
 1534|  2.19k|         const auto n = int_from_compressed(ctx, it, end);
 1535|  2.19k|         if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1535:14): [True: 156, False: 2.03k]
  ------------------
 1536|    156|            return;
 1537|    156|         }
 1538|  2.03k|         if (uint64_t(end - it) < n) [[unlikely]] {
  ------------------
  |  Branch (1538:14): [True: 156, False: 1.87k]
  ------------------
 1539|    156|            ctx.error = error_code::unexpected_end;
 1540|    156|            return;
 1541|    156|         }
 1542|       |         if constexpr (check_max_string_length(Opts) > 0) {
 1543|       |            if (n > check_max_string_length(Opts)) [[unlikely]] {
 1544|       |               ctx.error = error_code::invalid_length;
 1545|       |               return;
 1546|       |            }
 1547|       |         }
 1548|       |         if constexpr (has_runtime_max_string_length<std::decay_t<decltype(ctx)>>) {
 1549|       |            if (ctx.max_string_length > 0 && n > ctx.max_string_length) [[unlikely]] {
 1550|       |               ctx.error = error_code::invalid_length;
 1551|       |               return;
 1552|       |            }
 1553|       |         }
 1554|       |
 1555|  1.87k|         store(value, ctx, it, n);
 1556|  1.87k|         if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1556:14): [True: 0, False: 1.87k]
  ------------------
 1557|      0|            return;
 1558|      0|         }
 1559|  1.87k|         it += n;
 1560|  1.87k|      }
_ZN3glz4fromILj1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE5storeIRS7_TkNS_10is_contextERNS_7contextERPKcEEvOT_OT0_OT1_m:
 1461|  1.87k|      {
 1462|       |         if constexpr (string_view_t<T>) {
 1463|       |            value = {it, n};
 1464|       |         }
 1465|       |         else if constexpr (array_char_t<T>) {
 1466|       |            // Fixed-size std::array<char, N> cannot be resized, so the decoded payload must
 1467|       |            // fit within it. Any trailing bytes are zero-filled to keep the buffer
 1468|       |            // deterministic when a shorter payload is read into a larger array.
 1469|       |            if (n > value.size()) [[unlikely]] {
 1470|       |               ctx.error = error_code::syntax_error;
 1471|       |               return;
 1472|       |            }
 1473|       |            std::memcpy(value.data(), it, n);
 1474|       |            if (n < value.size()) {
 1475|       |               std::memset(value.data() + n, 0, value.size() - n);
 1476|       |            }
 1477|       |         }
 1478|  1.87k|         else {
 1479|  1.87k|            if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
  ------------------
  |  Branch (1479:17): [True: 0, False: 1.87k]
  ------------------
 1480|      0|               return;
 1481|      0|            }
 1482|  1.87k|            value.resize(n);
 1483|  1.87k|            std::memcpy(value.data(), it, n);
 1484|  1.87k|         }
 1485|  1.87k|      }
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlTnmvE_clILm3EEEDav:
 3171|  6.98k|                     [&]<size_t I>() {
 3172|  6.98k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 3173|  6.98k|                        static constexpr auto Length = TargetKey.size();
 3174|  6.98k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
  ------------------
  |  Branch (3174:29): [True: 6.97k, False: 5]
  |  Branch (3174:46): [True: 6.93k, False: 42]
  ------------------
 3175|       |                           // An `else` branch rather than an early return, so a skipped field's reader is
 3176|       |                           // never instantiated -- see `skipped_by_meta`.
 3177|       |                           if constexpr (skipped_by_meta<T, I, operation::parse>) {
 3178|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3179|       |                           }
 3180|  6.93k|                           else {
 3181|       |                              // Check for null value skipping on read
 3182|       |                              if constexpr (check_skip_null_members_on_read(Opts)) {
 3183|       |                                 if (invalid_end(ctx, it, end)) {
 3184|       |                                    return;
 3185|       |                                 }
 3186|       |                                 if (uint8_t(*it) == tag::null) {
 3187|       |                                    ++it; // Skip the null tag
 3188|       |                                    return;
 3189|       |                                 }
 3190|       |                              }
 3191|       |
 3192|  6.93k|                              if constexpr (reflectable<T>) {
 3193|  6.93k|                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3194|       |                              }
 3195|       |                              else {
 3196|       |                                 parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3197|       |                              }
 3198|  6.93k|                           }
 3199|  6.93k|                        }
 3200|     47|                        else {
 3201|     47|                           if constexpr (Opts.error_on_unknown_keys) {
 3202|     47|                              ctx.error = error_code::unknown_key;
 3203|     47|                              return;
 3204|       |                           }
 3205|       |                           else {
 3206|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3207|       |                              if (bool(ctx.error)) [[unlikely]]
 3208|       |                                 return;
 3209|       |                           }
 3210|     47|                        }
 3211|  6.98k|                     },
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERNSt3__15arrayImLm3EEETkNS_10is_contextERNS_7contextERPKcSB_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   59|  6.93k|      {
   60|       |         if constexpr (const_value_v<T>) {
   61|       |            if constexpr (check_error_on_const_read(Opts)) {
   62|       |               ctx.error = error_code::attempt_const_read;
   63|       |            }
   64|       |            else {
   65|       |               // do not read anything into the const value
   66|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   67|       |            }
   68|       |         }
   69|  6.93k|         else {
   70|  6.93k|            using V = std::remove_cvref_t<T>;
   71|  6.93k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   72|  6.93k|                                             end);
   73|  6.93k|         }
   74|  6.93k|      }
_ZN3glz4fromILj1ENSt3__15arrayImLm3EEEE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERS3_TkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_:
 1985|  6.93k|      {
 1986|  6.93k|         using V = range_value_t<std::decay_t<T>>;
 1987|       |
 1988|  6.93k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (1988:14): [True: 2, False: 6.93k]
  ------------------
 1989|      2|            return;
 1990|      2|         }
 1991|  6.93k|         const auto tag = uint8_t(*it);
 1992|       |
 1993|       |         // Elements that have a typed-array form may also arrive as a generic array of individually tagged
 1994|       |         // values, which other writers emit, for example for an empty sequence whose element type is not known
 1995|  6.93k|         if constexpr (boolean_like<V> || beve_num_array_t<V> || str_t<V> || complex_t<V>) {
 1996|  6.93k|            if ((tag & 0b00000'111) == tag::generic_array) {
  ------------------
  |  Branch (1996:17): [True: 1.27k, False: 5.66k]
  ------------------
 1997|  1.27k|               read_generic_array<Opts>(value, ctx, it, end);
 1998|  1.27k|               return;
 1999|  1.27k|            }
 2000|  6.93k|         }
 2001|       |
 2002|       |         if constexpr (boolean_like<V>) {
 2003|       |            constexpr uint8_t type = uint8_t(3) << 3;
 2004|       |            constexpr uint8_t header = tag::typed_array | type;
 2005|       |
 2006|       |            if (tag != header) [[unlikely]] {
 2007|       |               ctx.error = error_code::syntax_error;
 2008|       |               return;
 2009|       |            }
 2010|       |
 2011|       |            ++it;
 2012|       |            std::conditional_t<Opts.partial_read, size_t, const size_t> n = int_from_compressed(ctx, it, end);
 2013|       |            if (bool(ctx.error)) [[unlikely]] {
 2014|       |               return;
 2015|       |            }
 2016|       |
 2017|       |            if constexpr (Opts.partial_read) {
 2018|       |               n = value.size();
 2019|       |            }
 2020|       |
 2021|       |            const auto num_bytes = (n + 7) / 8;
 2022|       |            if (uint64_t(end - it) < num_bytes) [[unlikely]] {
 2023|       |               ctx.error = error_code::invalid_length;
 2024|       |               return;
 2025|       |            }
 2026|       |            // A partial read takes a prefix of the array, so the bits after it are data, not padding
 2027|       |            if constexpr (not Opts.partial_read) {
 2028|       |               if (num_bytes && !packed_bool_padding_is_zero(uint8_t(*(it + (num_bytes - 1))), n)) [[unlikely]] {
 2029|       |                  ctx.error = error_code::syntax_error;
 2030|       |                  return;
 2031|       |               }
 2032|       |            }
 2033|       |            if constexpr (check_max_array_size(Opts) > 0) {
 2034|       |               if (n > check_max_array_size(Opts)) [[unlikely]] {
 2035|       |                  ctx.error = error_code::invalid_length;
 2036|       |                  return;
 2037|       |               }
 2038|       |            }
 2039|       |            if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 2040|       |               if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 2041|       |                  ctx.error = error_code::invalid_length;
 2042|       |                  return;
 2043|       |               }
 2044|       |            }
 2045|       |
 2046|       |            if constexpr (resizable<T>) {
 2047|       |               if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 2048|       |                  return;
 2049|       |               }
 2050|       |               value.resize(n);
 2051|       |
 2052|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2053|       |                  value.shrink_to_fit();
 2054|       |               }
 2055|       |            }
 2056|       |            else {
 2057|       |               if (n > value.size()) {
 2058|       |                  ctx.error = error_code::syntax_error;
 2059|       |                  return;
 2060|       |               }
 2061|       |            }
 2062|       |
 2063|       |            for (size_t byte_i{}, i{}; byte_i < num_bytes; ++byte_i, ++it) {
 2064|       |               if (invalid_end(ctx, it, end)) {
 2065|       |                  return;
 2066|       |               }
 2067|       |               uint8_t byte;
 2068|       |               std::memcpy(&byte, it, 1);
 2069|       |               for (size_t bit_i = 0; bit_i < 8 && i < n; ++bit_i, ++i) {
 2070|       |                  value[i] = byte >> bit_i & uint8_t(1);
 2071|       |               }
 2072|       |            }
 2073|       |         }
 2074|  6.93k|         else if constexpr (beve_num_array_t<V>) {
 2075|       |            // NV is the arithmetic wire type: V for plain numbers, the rep for chrono
 2076|       |            // durations / count-based time points (which are bit-compatible with it).
 2077|  6.93k|            using NV = beve_num_array_value_t<V>;
 2078|  6.93k|            constexpr uint8_t type = std::floating_point<NV> ? 0 : (std::is_signed_v<NV> ? 0b000'01'000 : 0b000'10'000);
  ------------------
  |  Branch (2078:38): [Folded, False: 6.93k]
  |  Branch (2078:69): [Folded, False: 6.93k]
  ------------------
 2079|  6.93k|            constexpr uint8_t header = tag::typed_array | type | (byte_count<NV> << 5);
 2080|       |
 2081|  6.93k|            auto validate_and_resize = [&](size_t n) -> bool {
 2082|  6.93k|               if constexpr (check_max_array_size(Opts) > 0) {
 2083|  6.93k|                  if (n > check_max_array_size(Opts)) [[unlikely]] {
 2084|  6.93k|                     ctx.error = error_code::invalid_length;
 2085|  6.93k|                     return false;
 2086|  6.93k|                  }
 2087|  6.93k|               }
 2088|  6.93k|               if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 2089|  6.93k|                  if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 2090|  6.93k|                     ctx.error = error_code::invalid_length;
 2091|  6.93k|                     return false;
 2092|  6.93k|                  }
 2093|  6.93k|               }
 2094|       |
 2095|  6.93k|               if constexpr (resizable<T>) {
 2096|  6.93k|                  if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 2097|  6.93k|                     return false;
 2098|  6.93k|                  }
 2099|  6.93k|                  value.resize(n);
 2100|       |
 2101|  6.93k|                  if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2102|  6.93k|                     value.shrink_to_fit();
 2103|  6.93k|                  }
 2104|  6.93k|               }
 2105|  6.93k|               else {
 2106|  6.93k|                  if (n > value.size()) {
 2107|  6.93k|                     ctx.error = error_code::syntax_error;
 2108|  6.93k|                     return false;
 2109|  6.93k|                  }
 2110|  6.93k|               }
 2111|  6.93k|               return true;
 2112|  6.93k|            };
 2113|       |
 2114|  6.93k|            auto prepare = [&](const size_t element_size) -> size_t {
 2115|  6.93k|               ++it;
 2116|  6.93k|               if (invalid_end(ctx, it, end)) {
 2117|  6.93k|                  return 0;
 2118|  6.93k|               }
 2119|       |
 2120|  6.93k|               std::conditional_t<Opts.partial_read, size_t, const size_t> n = int_from_compressed(ctx, it, end);
 2121|  6.93k|               if (bool(ctx.error)) [[unlikely]] {
 2122|  6.93k|                  return 0;
 2123|  6.93k|               }
 2124|       |
 2125|  6.93k|               if constexpr (Opts.partial_read) {
 2126|  6.93k|                  n = value.size();
 2127|  6.93k|               }
 2128|       |
 2129|  6.93k|               if (typed_array_out_of_bounds(ctx, it, end, n, element_size)) return 0;
 2130|  6.93k|               if (!validate_and_resize(n)) {
 2131|  6.93k|                  return 0;
 2132|  6.93k|               }
 2133|       |
 2134|  6.93k|               return n;
 2135|  6.93k|            };
 2136|       |
 2137|  6.93k|            size_t n = 0;
 2138|       |
 2139|  6.93k|            if (tag == tag::aligned_typed_array) {
  ------------------
  |  Branch (2139:17): [True: 2.02k, False: 4.90k]
  ------------------
 2140|       |               // Aligned typed array: ALIGNED_HEADER | NUMERIC_HEADER | SIZE | PADDING_LENGTH | PADDING | DATA
 2141|  2.02k|               ++it; // skip aligned header byte
 2142|  2.02k|               if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (2142:20): [True: 2, False: 2.02k]
  ------------------
 2143|      2|                  return;
 2144|      2|               }
 2145|  2.02k|               const auto numeric_tag = uint8_t(*it);
 2146|       |               // Verify bits 0-2 are typed_array tag
 2147|  2.02k|               if ((numeric_tag & 0b00000'111) != tag::typed_array) [[unlikely]] {
  ------------------
  |  Branch (2147:20): [True: 16, False: 2.00k]
  ------------------
 2148|     16|                  ctx.error = error_code::syntax_error;
 2149|     16|                  return;
 2150|     16|               }
 2151|       |               // Verify it's a numeric type (category 0, 1, or 2, not 3)
 2152|  2.00k|               if (((numeric_tag >> 3) & 0b11) == 3) [[unlikely]] {
  ------------------
  |  Branch (2152:20): [True: 2, False: 2.00k]
  ------------------
 2153|      2|                  ctx.error = error_code::syntax_error;
 2154|      2|                  return;
 2155|      2|               }
 2156|       |
 2157|  2.00k|               if (numeric_tag != header) {
  ------------------
  |  Branch (2157:20): [True: 1.37k, False: 628]
  ------------------
 2158|  1.37k|                  if constexpr (check_allow_conversions(Opts)) {
 2159|  1.37k|                     const uint8_t elem_byte_count = byte_count_lookup[numeric_tag >> 5];
 2160|  1.37k|                     ++it; // skip numeric header
 2161|  1.37k|                     std::conditional_t<Opts.partial_read, size_t, const size_t> count =
 2162|  1.37k|                        int_from_compressed(ctx, it, end);
 2163|  1.37k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2163:26): [True: 151, False: 1.22k]
  ------------------
 2164|    151|                        return;
 2165|    151|                     }
 2166|       |                     if constexpr (Opts.partial_read) {
 2167|       |                        count = value.size();
 2168|       |                     }
 2169|       |
 2170|       |                     // Read padding length byte and skip padding
 2171|  1.22k|                     if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (2171:26): [True: 97, False: 1.13k]
  ------------------
 2172|     97|                        return;
 2173|     97|                     }
 2174|  1.13k|                     const uint8_t padding = uint8_t(*it);
 2175|  1.13k|                     ++it;
 2176|  1.13k|                     if (padding >= elem_byte_count) [[unlikely]] {
  ------------------
  |  Branch (2176:26): [True: 4, False: 1.12k]
  ------------------
 2177|      4|                        ctx.error = error_code::syntax_error;
 2178|      4|                        return;
 2179|      4|                     }
 2180|  1.12k|                     if (typed_array_out_of_bounds(ctx, it, end, count, elem_byte_count, padding)) return;
  ------------------
  |  Branch (2180:26): [True: 51, False: 1.07k]
  ------------------
 2181|  1.07k|                     it += padding;
 2182|       |
 2183|  1.07k|                     if (!validate_and_resize(count)) {
  ------------------
  |  Branch (2183:26): [True: 53, False: 1.02k]
  ------------------
 2184|     53|                        return;
 2185|     53|                     }
 2186|       |
 2187|  1.02k|                     auto x_it = value.begin();
 2188|  3.13k|                     for (size_t i = 0; i < count; ++i, ++x_it) {
  ------------------
  |  Branch (2188:41): [True: 2.11k, False: 1.02k]
  ------------------
 2189|  2.11k|                        const uint8_t number_tag = tag::number | (numeric_tag & 0b11111000);
 2190|  2.11k|                        parse<BEVE>::op<no_header_on<Opts>()>(*x_it, number_tag, ctx, it, end);
 2191|  2.11k|                     }
 2192|  1.02k|                     return;
 2193|       |                  }
 2194|       |                  else {
 2195|       |                     ctx.error = error_code::syntax_error;
 2196|       |                     return;
 2197|       |                  }
 2198|  1.37k|               }
 2199|       |
 2200|      0|               ++it; // skip numeric header
 2201|  2.00k|               std::conditional_t<Opts.partial_read, size_t, const size_t> count = int_from_compressed(ctx, it, end);
 2202|  2.00k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2202:20): [True: 137, False: 1.86k]
  ------------------
 2203|    137|                  return;
 2204|    137|               }
 2205|       |               if constexpr (Opts.partial_read) {
 2206|       |                  count = value.size();
 2207|       |               }
 2208|       |
 2209|       |               // Read padding length byte and skip padding
 2210|  1.86k|               if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (2210:20): [True: 109, False: 1.76k]
  ------------------
 2211|    109|                  return;
 2212|    109|               }
 2213|  1.76k|               const uint8_t padding = uint8_t(*it);
 2214|  1.76k|               ++it;
 2215|  1.76k|               if (padding >= sizeof(V)) [[unlikely]] {
  ------------------
  |  Branch (2215:20): [True: 10, False: 1.75k]
  ------------------
 2216|     10|                  ctx.error = error_code::syntax_error;
 2217|     10|                  return;
 2218|     10|               }
 2219|       |
 2220|  1.75k|               if (typed_array_out_of_bounds(ctx, it, end, count, sizeof(V), padding)) return;
  ------------------
  |  Branch (2220:20): [True: 45, False: 1.70k]
  ------------------
 2221|  1.70k|               it += padding;
 2222|       |
 2223|  1.70k|               if (!validate_and_resize(count)) {
  ------------------
  |  Branch (2223:20): [True: 21, False: 1.68k]
  ------------------
 2224|     21|                  return;
 2225|     21|               }
 2226|  1.68k|               n = count;
 2227|  1.68k|            }
 2228|  4.90k|            else if (tag != header) {
  ------------------
  |  Branch (2228:22): [True: 2.03k, False: 2.87k]
  ------------------
 2229|  2.03k|               if constexpr (check_allow_conversions(Opts)) {
 2230|  2.03k|                  if (tag != header) [[unlikely]] {
  ------------------
  |  Branch (2230:23): [True: 2.03k, False: 0]
  ------------------
 2231|  2.03k|                     if constexpr (check_allow_conversions(Opts)) {
 2232|  2.03k|                        if ((tag & 0b00000111) != tag::typed_array) {
  ------------------
  |  Branch (2232:29): [True: 22, False: 2.01k]
  ------------------
 2233|     22|                           ctx.error = error_code::syntax_error;
 2234|     22|                           return;
 2235|     22|                        }
 2236|       |
 2237|  2.01k|                        const uint8_t byte_count = byte_count_lookup[tag >> 5];
 2238|  2.01k|                        const size_t count = prepare(byte_count);
 2239|  2.01k|                        if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2239:29): [True: 338, False: 1.67k]
  ------------------
 2240|    338|                           return;
 2241|    338|                        }
 2242|       |
 2243|  1.67k|                        auto x_it = value.begin();
 2244|  5.05k|                        for (size_t i = 0; i < count; ++i, ++x_it) {
  ------------------
  |  Branch (2244:44): [True: 3.38k, False: 1.67k]
  ------------------
 2245|  3.38k|                           const uint8_t number_tag = tag::number | (tag & 0b11111000);
 2246|  3.38k|                           parse<BEVE>::op<no_header_on<Opts>()>(*x_it, number_tag, ctx, it, end);
 2247|  3.38k|                        }
 2248|  1.67k|                        return;
 2249|       |                     }
 2250|       |                     else {
 2251|       |                        ctx.error = error_code::syntax_error;
 2252|       |                        return;
 2253|       |                     }
 2254|  2.03k|                  }
 2255|       |               }
 2256|       |               else {
 2257|       |                  ctx.error = error_code::syntax_error;
 2258|       |                  return;
 2259|       |               }
 2260|  2.03k|            }
 2261|  2.87k|            else {
 2262|  2.87k|               n = prepare(sizeof(V));
 2263|  2.87k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2263:20): [True: 278, False: 2.59k]
  ------------------
 2264|    278|                  return;
 2265|    278|               }
 2266|  2.87k|            }
 2267|       |
 2268|  6.31k|            if constexpr (contiguous<T>) {
 2269|  6.31k|               constexpr auto is_volatile =
 2270|  6.31k|                  std::is_volatile_v<std::remove_reference_t<std::remove_pointer_t<decltype(value.data())>>>;
 2271|       |
 2272|       |               if constexpr (is_volatile) {
 2273|       |                  for (size_t i = 0; i < n; ++i) {
 2274|       |                     if (size_t(end - it) < sizeof(V)) [[unlikely]] {
 2275|       |                        ctx.error = error_code::unexpected_end;
 2276|       |                        return;
 2277|       |                     }
 2278|       |
 2279|       |                     NV temp;
 2280|       |                     std::memcpy(&temp, it, sizeof(NV));
 2281|       |                     if constexpr (std::endian::native == std::endian::big) {
 2282|       |                        byteswap_le(temp);
 2283|       |                     }
 2284|       |                     value[i] = beve_num_array_construct<V>(temp);
 2285|       |                     it += sizeof(NV);
 2286|       |                  }
 2287|       |               }
 2288|       |               else if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
 2289|       |                  // On big endian, read and swap each element (through the rep so a chrono
 2290|       |                  // element is byteswapped as its underlying number).
 2291|       |                  if (typed_array_out_of_bounds(ctx, it, end, n, sizeof(V))) return;
 2292|       |                  for (size_t i = 0; i < n; ++i) {
 2293|       |                     NV temp;
 2294|       |                     std::memcpy(&temp, it, sizeof(NV));
 2295|       |                     byteswap_le(temp);
 2296|       |                     value[i] = beve_num_array_construct<V>(temp);
 2297|       |                     it += sizeof(NV);
 2298|       |                  }
 2299|       |               }
 2300|  6.31k|               else {
 2301|       |                  // Little endian or single-byte: bulk memcpy. A chrono element is
 2302|       |                  // bit-identical to its rep, so the raw wire bytes populate it directly.
 2303|  6.31k|                  if (typed_array_out_of_bounds(ctx, it, end, n, sizeof(V))) return;
  ------------------
  |  Branch (2303:23): [True: 0, False: 6.31k]
  ------------------
 2304|  6.31k|                  if (n) {
  ------------------
  |  Branch (2304:23): [True: 230, False: 6.08k]
  ------------------
 2305|    230|                     std::memcpy(value.data(), it, n * sizeof(V));
 2306|    230|                     it += n * sizeof(V);
 2307|    230|                  }
 2308|  6.31k|               }
 2309|       |            }
 2310|       |            else {
 2311|       |               auto x_it = value.begin();
 2312|       |               for (size_t i = 0; i < n; ++i, ++x_it) {
 2313|       |                  auto&& x = *x_it;
 2314|       |                  if (size_t(end - it) < sizeof(V)) [[unlikely]] {
 2315|       |                     ctx.error = error_code::unexpected_end;
 2316|       |                     return;
 2317|       |                  }
 2318|       |
 2319|       |                  NV temp;
 2320|       |                  std::memcpy(&temp, it, sizeof(NV));
 2321|       |                  if constexpr (std::endian::native == std::endian::big) {
 2322|       |                     byteswap_le(temp);
 2323|       |                  }
 2324|       |                  x = beve_num_array_construct<V>(temp);
 2325|       |                  it += sizeof(NV);
 2326|       |               }
 2327|       |            }
 2328|       |         }
 2329|       |         else if constexpr (str_t<V>) {
 2330|       |            constexpr uint8_t type = uint8_t(3) << 3;
 2331|       |            constexpr uint8_t string_indicator = uint8_t(1) << 5;
 2332|       |            constexpr uint8_t header = tag::typed_array | type | string_indicator;
 2333|       |
 2334|       |            if (tag != header) [[unlikely]] {
 2335|       |               ctx.error = error_code::syntax_error;
 2336|       |               return;
 2337|       |            }
 2338|       |
 2339|       |            ++it;
 2340|       |            std::conditional_t<Opts.partial_read, size_t, const size_t> n = int_from_compressed(ctx, it, end);
 2341|       |            if (bool(ctx.error)) [[unlikely]] {
 2342|       |               return;
 2343|       |            }
 2344|       |
 2345|       |            if constexpr (Opts.partial_read) {
 2346|       |               n = value.size();
 2347|       |            }
 2348|       |
 2349|       |            // Each string needs at least 1 byte for length header
 2350|       |            if (uint64_t(end - it) < n) [[unlikely]] {
 2351|       |               ctx.error = error_code::invalid_length;
 2352|       |               return;
 2353|       |            }
 2354|       |            if constexpr (check_max_array_size(Opts) > 0) {
 2355|       |               if (n > check_max_array_size(Opts)) [[unlikely]] {
 2356|       |                  ctx.error = error_code::invalid_length;
 2357|       |                  return;
 2358|       |               }
 2359|       |            }
 2360|       |            if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 2361|       |               if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 2362|       |                  ctx.error = error_code::invalid_length;
 2363|       |                  return;
 2364|       |               }
 2365|       |            }
 2366|       |
 2367|       |            if constexpr (resizable<T>) {
 2368|       |               if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 2369|       |                  return;
 2370|       |               }
 2371|       |               value.resize(n);
 2372|       |
 2373|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2374|       |                  value.shrink_to_fit();
 2375|       |               }
 2376|       |            }
 2377|       |            else {
 2378|       |               if (n > value.size()) {
 2379|       |                  ctx.error = error_code::syntax_error;
 2380|       |                  return;
 2381|       |               }
 2382|       |            }
 2383|       |
 2384|       |            auto x_it = value.begin();
 2385|       |            for (size_t i = 0; i < n; ++i, ++x_it) {
 2386|       |               auto&& x = *x_it;
 2387|       |               const auto length = int_from_compressed(ctx, it, end);
 2388|       |               if (bool(ctx.error)) [[unlikely]] {
 2389|       |                  return;
 2390|       |               }
 2391|       |               if (uint64_t(end - it) < length) [[unlikely]] {
 2392|       |                  ctx.error = error_code::unexpected_end;
 2393|       |                  return;
 2394|       |               }
 2395|       |               if constexpr (check_max_string_length(Opts) > 0) {
 2396|       |                  if (length > check_max_string_length(Opts)) [[unlikely]] {
 2397|       |                     ctx.error = error_code::invalid_length;
 2398|       |                     return;
 2399|       |                  }
 2400|       |               }
 2401|       |               if constexpr (has_runtime_max_string_length<std::decay_t<decltype(ctx)>>) {
 2402|       |                  if (ctx.max_string_length > 0 && length > ctx.max_string_length) [[unlikely]] {
 2403|       |                     ctx.error = error_code::invalid_length;
 2404|       |                     return;
 2405|       |                  }
 2406|       |               }
 2407|       |
 2408|       |               x.resize(length);
 2409|       |
 2410|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<decltype(x)>) {
 2411|       |                  x.shrink_to_fit();
 2412|       |               }
 2413|       |
 2414|       |               std::memcpy(x.data(), it, length);
 2415|       |               it += length;
 2416|       |            }
 2417|       |         }
 2418|       |         else if constexpr (complex_t<V>) {
 2419|       |            constexpr uint8_t header = tag::extensions | 0b00011'000;
 2420|       |            if (tag != header) [[unlikely]] {
 2421|       |               ctx.error = error_code::syntax_error;
 2422|       |               return;
 2423|       |            }
 2424|       |            ++it;
 2425|       |
 2426|       |            using X = typename V::value_type;
 2427|       |            // Accepts complex arrays (sub-type 1) and aligned complex arrays (sub-type 2), whose DATA is laid out
 2428|       |            // identically once the header has been read
 2429|       |            std::conditional_t<Opts.partial_read, size_t, const size_t> n =
 2430|       |               detail::read_beve_complex_array_header<X>(ctx, it, end);
 2431|       |            if (bool(ctx.error)) [[unlikely]] {
 2432|       |               return;
 2433|       |            }
 2434|       |
 2435|       |            if constexpr (Opts.partial_read) {
 2436|       |               n = value.size();
 2437|       |            }
 2438|       |
 2439|       |            if (typed_array_out_of_bounds(ctx, it, end, n, sizeof(V))) return;
 2440|       |            if constexpr (check_max_array_size(Opts) > 0) {
 2441|       |               if (n > check_max_array_size(Opts)) [[unlikely]] {
 2442|       |                  ctx.error = error_code::invalid_length;
 2443|       |                  return;
 2444|       |               }
 2445|       |            }
 2446|       |            if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 2447|       |               if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 2448|       |                  ctx.error = error_code::invalid_length;
 2449|       |                  return;
 2450|       |               }
 2451|       |            }
 2452|       |
 2453|       |            if constexpr (resizable<T>) {
 2454|       |               if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 2455|       |                  return;
 2456|       |               }
 2457|       |               value.resize(n);
 2458|       |
 2459|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2460|       |                  value.shrink_to_fit();
 2461|       |               }
 2462|       |            }
 2463|       |            else {
 2464|       |               if (n > value.size()) {
 2465|       |                  ctx.error = error_code::syntax_error;
 2466|       |                  return;
 2467|       |               }
 2468|       |            }
 2469|       |
 2470|       |            if constexpr (contiguous<T>) {
 2471|       |               if constexpr (std::endian::native == std::endian::big && sizeof(X) > 1) {
 2472|       |                  // On big endian, read and swap each complex element's components
 2473|       |                  for (size_t i = 0; i < n; ++i) {
 2474|       |                     std::memcpy(&value[i], it, sizeof(V));
 2475|       |                     X real_part = value[i].real();
 2476|       |                     X imag_part = value[i].imag();
 2477|       |                     byteswap_le(real_part);
 2478|       |                     byteswap_le(imag_part);
 2479|       |                     value[i] = V(real_part, imag_part);
 2480|       |                     it += sizeof(V);
 2481|       |                  }
 2482|       |               }
 2483|       |               else {
 2484|       |                  // Little endian or single-byte: bulk memcpy
 2485|       |                  if (n) {
 2486|       |                     std::memcpy(value.data(), it, n * sizeof(V));
 2487|       |                     it += n * sizeof(V);
 2488|       |                  }
 2489|       |               }
 2490|       |            }
 2491|       |            else {
 2492|       |               auto x_it = value.begin();
 2493|       |               for (size_t i = 0; i < n; ++i, ++x_it) {
 2494|       |                  auto&& x = *x_it;
 2495|       |                  std::memcpy(&x, it, sizeof(V));
 2496|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(X) > 1) {
 2497|       |                     X real_part = x.real();
 2498|       |                     X imag_part = x.imag();
 2499|       |                     byteswap_le(real_part);
 2500|       |                     byteswap_le(imag_part);
 2501|       |                     x = V(real_part, imag_part);
 2502|       |                  }
 2503|       |                  it += sizeof(V);
 2504|       |               }
 2505|       |            }
 2506|       |         }
 2507|       |         else {
 2508|       |            if ((tag & 0b00000'111) != tag::generic_array) [[unlikely]] {
 2509|       |               ctx.error = error_code::syntax_error;
 2510|       |               return;
 2511|       |            }
 2512|       |            read_generic_array<Opts>(value, ctx, it, end);
 2513|       |         }
 2514|  6.93k|      }
_ZN3glz4fromILj1ENSt3__15arrayImLm3EEEE18read_generic_arrayITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERS3_TkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_:
 1926|  1.27k|      {
 1927|  1.27k|         depth_guard guard{ctx};
 1928|  1.27k|         if (!guard) [[unlikely]] {
  ------------------
  |  Branch (1928:14): [True: 0, False: 1.27k]
  ------------------
 1929|      0|            return;
 1930|      0|         }
 1931|       |
 1932|  1.27k|         ++it;
 1933|  1.27k|         std::conditional_t<check_partial_read(Opts), size_t, const size_t> n = int_from_compressed(ctx, it, end);
 1934|  1.27k|         if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1934:14): [True: 149, False: 1.12k]
  ------------------
 1935|    149|            return;
 1936|    149|         }
 1937|       |
 1938|       |         if constexpr (Opts.partial_read) {
 1939|       |            n = value.size();
 1940|       |         }
 1941|       |
 1942|       |         // Each element needs at least 1 byte for its tag
 1943|  1.12k|         if (uint64_t(end - it) < n) [[unlikely]] {
  ------------------
  |  Branch (1943:14): [True: 123, False: 998]
  ------------------
 1944|    123|            ctx.error = error_code::invalid_length;
 1945|    123|            return;
 1946|    123|         }
 1947|       |         if constexpr (check_max_array_size(Opts) > 0) {
 1948|       |            if (n > check_max_array_size(Opts)) [[unlikely]] {
 1949|       |               ctx.error = error_code::invalid_length;
 1950|       |               return;
 1951|       |            }
 1952|       |         }
 1953|       |         if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 1954|       |            if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 1955|       |               ctx.error = error_code::invalid_length;
 1956|       |               return;
 1957|       |            }
 1958|       |         }
 1959|       |
 1960|       |         if constexpr (resizable<T>) {
 1961|       |            if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 1962|       |               return;
 1963|       |            }
 1964|       |            value.resize(n);
 1965|       |
 1966|       |            if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 1967|       |               value.shrink_to_fit();
 1968|       |            }
 1969|       |         }
 1970|    998|         else {
 1971|    998|            if (n > value.size()) {
  ------------------
  |  Branch (1971:17): [True: 20, False: 978]
  ------------------
 1972|     20|               ctx.error = error_code::syntax_error;
 1973|     20|               return;
 1974|     20|            }
 1975|    998|         }
 1976|       |
 1977|    978|         auto item_it = value.begin();
 1978|  3.02k|         for (size_t i = 0; i < n; ++i, ++item_it) {
  ------------------
  |  Branch (1978:29): [True: 2.02k, False: 998]
  ------------------
 1979|  2.02k|            parse<BEVE>::op<Opts>(*item_it, ctx, it, end);
 1980|  2.02k|         }
 1981|    998|      }
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   59|  2.02k|      {
   60|       |         if constexpr (const_value_v<T>) {
   61|       |            if constexpr (check_error_on_const_read(Opts)) {
   62|       |               ctx.error = error_code::attempt_const_read;
   63|       |            }
   64|       |            else {
   65|       |               // do not read anything into the const value
   66|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   67|       |            }
   68|       |         }
   69|  2.02k|         else {
   70|  2.02k|            using V = std::remove_cvref_t<T>;
   71|  2.02k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   72|  2.02k|                                             end);
   73|  2.02k|         }
   74|  2.02k|      }
_ZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qntcl15check_no_headerTL0__EEEvOT0_OT1_OT2_T3_:
  350|  2.02k|      {
  351|  2.02k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (351:14): [True: 83, False: 1.94k]
  ------------------
  352|     83|            return;
  353|     83|         }
  354|  1.94k|         const auto tag = uint8_t(*it);
  355|  1.94k|         ++it;
  356|  1.94k|         op<no_header_on<Opts>()>(value, tag, ctx, it, end);
  357|  1.94k|      }
_ZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_:
  223|  7.44k|      {
  224|  7.44k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (224:14): [True: 87, False: 7.35k]
  ------------------
  225|     87|            return;
  226|     87|         }
  227|       |
  228|  7.35k|         using V = std::decay_t<decltype(value)>;
  229|       |
  230|  7.35k|         constexpr auto is_volatile = std::is_volatile_v<std::remove_reference_t<decltype(value)>>;
  231|       |
  232|  7.35k|         if (tag != header) {
  ------------------
  |  Branch (232:14): [True: 7.05k, False: 297]
  ------------------
  233|  7.05k|            if constexpr (check_allow_conversions(Opts)) {
  234|       |               // char and glaze_enum_t values convert here as well. The tag fixes how many bytes the
  235|       |               // value occupies, so reading sizeof(V) bytes under a wider or narrower tag would leave
  236|       |               // the cursor inside the value and parse its remaining bytes as whatever comes next.
  237|  7.05k|               if ((tag & 0b00000111) != tag::number) {
  ------------------
  |  Branch (237:20): [True: 127, False: 6.93k]
  ------------------
  238|    127|                  ctx.error = error_code::syntax_error;
  239|    127|                  return;
  240|    127|               }
  241|       |
  242|  6.93k|               auto decode = [&](auto&& i) {
  243|  6.93k|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  244|  6.93k|                     ctx.error = error_code::unexpected_end;
  245|  6.93k|                     return;
  246|  6.93k|                  }
  247|  6.93k|                  using I = std::decay_t<decltype(i)>;
  248|  6.93k|                  std::memcpy(&i, it, sizeof(I));
  249|  6.93k|                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|  6.93k|                     byteswap_le(i);
  251|  6.93k|                  }
  252|  6.93k|                  value = static_cast<V>(i);
  253|  6.93k|                  it += sizeof(i);
  254|  6.93k|               };
  255|       |
  256|  6.93k|               switch (tag) {
  257|     30|               case tag::f32: {
  ------------------
  |  Branch (257:16): [True: 30, False: 6.90k]
  ------------------
  258|     30|                  if constexpr (!std::floating_point<V>) {
  259|       |                     // We do not allow cross conversions from floats to integral or enum types
  260|     30|                     ctx.error = error_code::syntax_error;
  261|       |                  }
  262|       |                  else {
  263|       |                     static_assert(sizeof(float) == 4);
  264|       |                     // TODO: use float32_t in C++23
  265|       |                     decode(float{});
  266|       |                  }
  267|     30|                  return;
  268|      0|               }
  269|     34|               case tag::f64: {
  ------------------
  |  Branch (269:16): [True: 34, False: 6.89k]
  ------------------
  270|     34|                  if constexpr (!std::floating_point<V>) {
  271|       |                     // We do not allow cross conversions from floats to integral or enum types
  272|     34|                     ctx.error = error_code::syntax_error;
  273|       |                  }
  274|       |                  else {
  275|       |                     static_assert(sizeof(double) == 8);
  276|       |                     // TODO: use float64_t in C++23
  277|       |                     decode(double{});
  278|       |                  }
  279|     34|                  return;
  280|      0|               }
  281|  1.32k|               case tag::i8: {
  ------------------
  |  Branch (281:16): [True: 1.32k, False: 5.60k]
  ------------------
  282|  1.32k|                  decode(int8_t{});
  283|  1.32k|                  return;
  284|      0|               }
  285|    641|               case tag::i16: {
  ------------------
  |  Branch (285:16): [True: 641, False: 6.28k]
  ------------------
  286|    641|                  decode(int16_t{});
  287|    641|                  return;
  288|      0|               }
  289|    832|               case tag::i32: {
  ------------------
  |  Branch (289:16): [True: 832, False: 6.09k]
  ------------------
  290|    832|                  decode(int32_t{});
  291|    832|                  return;
  292|      0|               }
  293|    585|               case tag::i64: {
  ------------------
  |  Branch (293:16): [True: 585, False: 6.34k]
  ------------------
  294|    585|                  decode(int64_t{});
  295|    585|                  return;
  296|      0|               }
  297|  1.75k|               case tag::u8: {
  ------------------
  |  Branch (297:16): [True: 1.75k, False: 5.17k]
  ------------------
  298|  1.75k|                  decode(uint8_t{});
  299|  1.75k|                  return;
  300|      0|               }
  301|    997|               case tag::u16: {
  ------------------
  |  Branch (301:16): [True: 997, False: 5.93k]
  ------------------
  302|    997|                  decode(uint16_t{});
  303|    997|                  return;
  304|      0|               }
  305|    679|               case tag::u32: {
  ------------------
  |  Branch (305:16): [True: 679, False: 6.25k]
  ------------------
  306|    679|                  decode(uint32_t{});
  307|    679|                  return;
  308|      0|               }
  309|      0|               case tag::u64: {
  ------------------
  |  Branch (309:16): [True: 0, False: 6.93k]
  ------------------
  310|      0|                  decode(uint64_t{});
  311|      0|                  return;
  312|      0|               }
  313|     48|               default: {
  ------------------
  |  Branch (313:16): [True: 48, False: 6.88k]
  ------------------
  314|     48|                  ctx.error = error_code::syntax_error;
  315|     48|                  return;
  316|      0|               }
  317|  6.93k|               }
  318|       |            }
  319|       |            else {
  320|       |               ctx.error = error_code::syntax_error;
  321|       |               return;
  322|       |            }
  323|  7.05k|         }
  324|       |
  325|  7.35k|         if (size_t(end - it) < sizeof(V)) [[unlikely]] {
  ------------------
  |  Branch (325:14): [True: 15, False: 7.33k]
  ------------------
  326|     15|            ctx.error = error_code::unexpected_end;
  327|     15|            return;
  328|     15|         }
  329|       |
  330|       |         if constexpr (is_volatile) {
  331|       |            V temp;
  332|       |            std::memcpy(&temp, it, sizeof(V));
  333|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  334|       |               byteswap_le(temp);
  335|       |            }
  336|       |            value = temp;
  337|       |         }
  338|  7.33k|         else {
  339|  7.33k|            std::memcpy(&value, it, sizeof(V));
  340|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  341|       |               byteswap_le(value);
  342|       |            }
  343|  7.33k|         }
  344|  7.33k|         it += sizeof(V);
  345|  7.33k|      }
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIaEEDaSI_:
  242|  1.32k|               auto decode = [&](auto&& i) {
  243|  1.32k|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 0, False: 1.32k]
  ------------------
  244|      0|                     ctx.error = error_code::unexpected_end;
  245|      0|                     return;
  246|      0|                  }
  247|  1.32k|                  using I = std::decay_t<decltype(i)>;
  248|  1.32k|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|  1.32k|                  value = static_cast<V>(i);
  253|  1.32k|                  it += sizeof(i);
  254|  1.32k|               };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIsEEDaSI_:
  242|    641|               auto decode = [&](auto&& i) {
  243|    641|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 2, False: 639]
  ------------------
  244|      2|                     ctx.error = error_code::unexpected_end;
  245|      2|                     return;
  246|      2|                  }
  247|    639|                  using I = std::decay_t<decltype(i)>;
  248|    639|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|    639|                  value = static_cast<V>(i);
  253|    639|                  it += sizeof(i);
  254|    639|               };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIiEEDaSI_:
  242|    832|               auto decode = [&](auto&& i) {
  243|    832|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 13, False: 819]
  ------------------
  244|     13|                     ctx.error = error_code::unexpected_end;
  245|     13|                     return;
  246|     13|                  }
  247|    819|                  using I = std::decay_t<decltype(i)>;
  248|    819|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|    819|                  value = static_cast<V>(i);
  253|    819|                  it += sizeof(i);
  254|    819|               };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIlEEDaSI_:
  242|    585|               auto decode = [&](auto&& i) {
  243|    585|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 16, False: 569]
  ------------------
  244|     16|                     ctx.error = error_code::unexpected_end;
  245|     16|                     return;
  246|     16|                  }
  247|    569|                  using I = std::decay_t<decltype(i)>;
  248|    569|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|    569|                  value = static_cast<V>(i);
  253|    569|                  it += sizeof(i);
  254|    569|               };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIhEEDaSI_:
  242|  1.75k|               auto decode = [&](auto&& i) {
  243|  1.75k|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 0, False: 1.75k]
  ------------------
  244|      0|                     ctx.error = error_code::unexpected_end;
  245|      0|                     return;
  246|      0|                  }
  247|  1.75k|                  using I = std::decay_t<decltype(i)>;
  248|  1.75k|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|  1.75k|                  value = static_cast<V>(i);
  253|  1.75k|                  it += sizeof(i);
  254|  1.75k|               };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clItEEDaSI_:
  242|    997|               auto decode = [&](auto&& i) {
  243|    997|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 3, False: 994]
  ------------------
  244|      3|                     ctx.error = error_code::unexpected_end;
  245|      3|                     return;
  246|      3|                  }
  247|    994|                  using I = std::decay_t<decltype(i)>;
  248|    994|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|    994|                  value = static_cast<V>(i);
  253|    994|                  it += sizeof(i);
  254|    994|               };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIjEEDaSI_:
  242|    679|               auto decode = [&](auto&& i) {
  243|    679|                  if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (243:23): [True: 12, False: 667]
  ------------------
  244|     12|                     ctx.error = error_code::unexpected_end;
  245|     12|                     return;
  246|     12|                  }
  247|    667|                  using I = std::decay_t<decltype(i)>;
  248|    667|                  std::memcpy(&i, it, sizeof(I));
  249|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  250|       |                     byteswap_le(i);
  251|       |                  }
  252|    667|                  value = static_cast<V>(i);
  253|    667|                  it += sizeof(i);
  254|    667|               };
_ZZN3glz4fromILj1ENSt3__15arrayImLm3EEEE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERS3_TkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_ENKUlmE_clEm:
 2081|  4.42k|            auto validate_and_resize = [&](size_t n) -> bool {
 2082|       |               if constexpr (check_max_array_size(Opts) > 0) {
 2083|       |                  if (n > check_max_array_size(Opts)) [[unlikely]] {
 2084|       |                     ctx.error = error_code::invalid_length;
 2085|       |                     return false;
 2086|       |                  }
 2087|       |               }
 2088|       |               if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 2089|       |                  if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 2090|       |                     ctx.error = error_code::invalid_length;
 2091|       |                     return false;
 2092|       |                  }
 2093|       |               }
 2094|       |
 2095|       |               if constexpr (resizable<T>) {
 2096|       |                  if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 2097|       |                     return false;
 2098|       |                  }
 2099|       |                  value.resize(n);
 2100|       |
 2101|       |                  if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2102|       |                     value.shrink_to_fit();
 2103|       |                  }
 2104|       |               }
 2105|  4.42k|               else {
 2106|  4.42k|                  if (n > value.size()) {
  ------------------
  |  Branch (2106:23): [True: 100, False: 4.32k]
  ------------------
 2107|    100|                     ctx.error = error_code::syntax_error;
 2108|    100|                     return false;
 2109|    100|                  }
 2110|  4.42k|               }
 2111|  4.32k|               return true;
 2112|  4.42k|            };
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmRKhTkNS_10is_contextERNS_7contextERPKcSA_Qcl15check_no_headerT_EEEvOT0_OT1_OT2_OT3_T4_:
   39|  5.50k|      {
   40|       |         if constexpr (const_value_v<T>) {
   41|       |            if constexpr (check_error_on_const_read(Opts)) {
   42|       |               ctx.error = error_code::attempt_const_read;
   43|       |            }
   44|       |            else {
   45|       |               // do not read anything into the const value
   46|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   47|       |            }
   48|       |         }
   49|  5.50k|         else {
   50|  5.50k|            using V = std::remove_cvref_t<T>;
   51|  5.50k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Tag>(tag), std::forward<Ctx>(ctx),
   52|  5.50k|                                             std::forward<It0>(it), end);
   53|  5.50k|         }
   54|  5.50k|      }
_ZZN3glz4fromILj1ENSt3__15arrayImLm3EEEE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEERS3_TkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_ENKUlmE0_clEm:
 2114|  3.61k|            auto prepare = [&](const size_t element_size) -> size_t {
 2115|  3.61k|               ++it;
 2116|  3.61k|               if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (2116:20): [True: 12, False: 3.60k]
  ------------------
 2117|     12|                  return 0;
 2118|     12|               }
 2119|       |
 2120|  3.60k|               std::conditional_t<Opts.partial_read, size_t, const size_t> n = int_from_compressed(ctx, it, end);
 2121|  3.60k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2121:20): [True: 303, False: 3.29k]
  ------------------
 2122|    303|                  return 0;
 2123|    303|               }
 2124|       |
 2125|       |               if constexpr (Opts.partial_read) {
 2126|       |                  n = value.size();
 2127|       |               }
 2128|       |
 2129|  3.29k|               if (typed_array_out_of_bounds(ctx, it, end, n, element_size)) return 0;
  ------------------
  |  Branch (2129:20): [True: 275, False: 3.02k]
  ------------------
 2130|  3.02k|               if (!validate_and_resize(n)) {
  ------------------
  |  Branch (2130:20): [True: 26, False: 2.99k]
  ------------------
 2131|     26|                  return 0;
 2132|     26|               }
 2133|       |
 2134|  2.99k|               return n;
 2135|  3.02k|            };

_ZN3glz12ensure_spaceINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT0_RT_m:
  265|  1.09G|   {
  266|  1.09G|      using Buffer = std::remove_cvref_t<B>;
  267|       |
  268|  1.09G|      if constexpr (vector_like<Buffer>) {
  269|  1.09G|         if (required > b.size()) [[unlikely]] {
  ------------------
  |  Branch (269:14): [True: 45.7k, False: 1.09G]
  ------------------
  270|  45.7k|            grow_buffer(b, required);
  271|  45.7k|         }
  272|  1.09G|         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.09G|   }
_ZN3glz11grow_bufferINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvRT_m:
  143|  45.7k|   {
  144|  45.7k|      using traits = buffer_traits<std::remove_cvref_t<B>>;
  145|  45.7k|      if constexpr (requires { traits::grow(b, required); }) {
  146|  45.7k|         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|  45.7k|   }
_ZN3glz13buffer_traitsINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE4growERS7_mQL_ZNS_13buffer_traits12is_resizableEE:
  118|  45.7k|      {
  119|  45.7k|         resize_unfilled(b, 2 * required);
  120|  45.7k|      }
_ZN3glz15resize_unfilledINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvRT_m:
   63|  45.7k|   {
   64|  45.7k|      if constexpr (requires { b.resize_and_overwrite(n, [](auto*, size_t written) { return written; }); }) {
   65|  45.7k|         b.resize_and_overwrite(n, [](auto*, size_t written) noexcept { return written; });
   66|       |      }
   67|       |      else {
   68|       |         b.resize(n);
   69|       |      }
   70|  45.7k|   }
_ZZN3glz15resize_unfilledINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvRT_mENKUlPS8_mE_clIcEEDaSA_m:
   65|  45.7k|         b.resize_and_overwrite(n, [](auto*, size_t written) noexcept { return written; });

_ZN3glz10get_memberIR9my_structRiEEDcOT_OT0_:
  678|  2.94k|   {
  679|  2.94k|      using V = std::decay_t<decltype(element)>;
  680|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  681|       |         return value.*element;
  682|       |      }
  683|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  684|       |         return element;
  685|       |      }
  686|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  687|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  688|       |         // matrix types and reject them from the invocable check
  689|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  690|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  691|       |      }
  692|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  693|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  694|       |            return std::invoke(*element, std::forward<Value>(value));
  695|       |         }
  696|       |         else {
  697|       |            return *element;
  698|       |         }
  699|       |      }
  700|  2.94k|      else {
  701|  2.94k|         return element;
  702|  2.94k|      }
  703|  2.94k|   }
_ZN3glz10get_memberIR9my_structRdEEDcOT_OT0_:
  678|  2.78k|   {
  679|  2.78k|      using V = std::decay_t<decltype(element)>;
  680|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  681|       |         return value.*element;
  682|       |      }
  683|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  684|       |         return element;
  685|       |      }
  686|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  687|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  688|       |         // matrix types and reject them from the invocable check
  689|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  690|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  691|       |      }
  692|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  693|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  694|       |            return std::invoke(*element, std::forward<Value>(value));
  695|       |         }
  696|       |         else {
  697|       |            return *element;
  698|       |         }
  699|       |      }
  700|  2.78k|      else {
  701|  2.78k|         return element;
  702|  2.78k|      }
  703|  2.78k|   }
_ZN3glz10get_memberIR9my_structRNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEDcOT_OT0_:
  678|  2.20k|   {
  679|  2.20k|      using V = std::decay_t<decltype(element)>;
  680|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  681|       |         return value.*element;
  682|       |      }
  683|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  684|       |         return element;
  685|       |      }
  686|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  687|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  688|       |         // matrix types and reject them from the invocable check
  689|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  690|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  691|       |      }
  692|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  693|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  694|       |            return std::invoke(*element, std::forward<Value>(value));
  695|       |         }
  696|       |         else {
  697|       |            return *element;
  698|       |         }
  699|       |      }
  700|  2.20k|      else {
  701|  2.20k|         return element;
  702|  2.20k|      }
  703|  2.20k|   }
_ZN3glz10get_memberIR9my_structRNSt3__15arrayImLm3EEEEEDcOT_OT0_:
  678|  6.93k|   {
  679|  6.93k|      using V = std::decay_t<decltype(element)>;
  680|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  681|       |         return value.*element;
  682|       |      }
  683|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  684|       |         return element;
  685|       |      }
  686|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  687|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  688|       |         // matrix types and reject them from the invocable check
  689|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  690|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  691|       |      }
  692|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  693|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  694|       |            return std::invoke(*element, std::forward<Value>(value));
  695|       |         }
  696|       |         else {
  697|       |            return *element;
  698|       |         }
  699|       |      }
  700|  6.93k|      else {
  701|  6.93k|         return element;
  702|  6.93k|      }
  703|  6.93k|   }
_ZN3glz8str_viewINSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKS5_EES5_OT0_:
  341|  1.14M|   {
  342|  1.14M|      if constexpr (std::same_as<std::decay_t<T>, std::string_view>) {
  343|  1.14M|         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.14M|   }

_ZN3glz21check_self_constraintILj1ETnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEE9my_structTkNS_10is_contextENS_7contextEEEvRT1_RT2_:
  294|     81|   {
  295|       |      if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
  296|       |         if (ctx.error == error_code::none || ctx.error == error_code::end_reached) {
  297|       |            auto wrapper = self_constraint_v<T>(value);
  298|       |            from<Format, decltype(wrapper)>::template op<Opts>(wrapper, ctx, nullptr, nullptr);
  299|       |         }
  300|       |      }
  301|     81|   }

_ZN3glz10call_scopeINS_7contextEEC2ERS1_:
  272|  25.5k|      explicit call_scope(Ctx& c) noexcept : ctx(c), depth(c.depth)
  273|  25.5k|      {
  274|  25.5k|         ctx.error = error_code::none;
  275|  25.5k|         ctx.custom_error_message = {};
  276|  25.5k|      }
_ZN3glz23seed_speculation_budgetITkNS_10is_contextENS_7contextEEEvRT_m:
  312|  25.5k|   {
  313|  25.5k|      if constexpr (requires { ctx.speculation_budget; }) {
  314|  25.5k|         const size_t proportional = max_speculative_parse_factor * input_bytes;
  315|  25.5k|         ctx.speculation_budget =
  316|  25.5k|            (proportional > min_speculative_parse_bytes ? proportional : min_speculative_parse_bytes) + 2;
  ------------------
  |  Branch (316:14): [True: 955, False: 24.6k]
  ------------------
  317|  25.5k|      }
  318|  25.5k|   }
_ZN3glz11depth_guardINS_7contextEEC2ERS1_m:
  215|  6.49k|      depth_guard(Ctx& c, const size_t limit = max_recursive_depth_limit) noexcept : ctx(c)
  216|  6.49k|      {
  217|  6.49k|         if (ctx.depth >= limit) [[unlikely]] {
  ------------------
  |  Branch (217:14): [True: 0, False: 6.49k]
  ------------------
  218|      0|            ctx.error = error_code::exceeded_max_recursive_depth;
  219|      0|            return;
  220|      0|         }
  221|  6.49k|         ++ctx.depth;
  222|  6.49k|         entered = true;
  223|  6.49k|      }
_ZNK3glz11depth_guardINS_7contextEEcvbEv:
  228|  6.49k|      explicit operator bool() const noexcept { return entered; }
_ZN3glz11depth_guardINS_7contextEED2Ev:
  225|  6.49k|      {
  226|  6.49k|         if (entered) --ctx.depth;
  ------------------
  |  Branch (226:14): [True: 6.49k, False: 0]
  ------------------
  227|  6.49k|      }
_ZN3glz10call_scopeINS_7contextEED2Ev:
  277|  25.5k|      ~call_scope() { ctx.depth = depth; }
_ZNK3glz9error_ctxcvbEv:
  148|  25.5k|      operator bool() const noexcept { return ec != error_code::none; }
_ZN3glz12indent_guardINS_7contextEEC2ERS1_m:
  241|  2.52M|      indent_guard(Ctx& c, const size_t indentation_step) noexcept : ctx(c), step(indentation_step)
  242|  2.52M|      {
  243|  2.52M|         ctx.depth += step;
  244|  2.52M|      }
_ZN3glz12indent_guardINS_7contextEED2Ev:
  245|  2.52M|      ~indent_guard() { ctx.depth -= step; }

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

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

_ZN3glz3getILm0ETkNS_12tuple_detail9indexableENS_5tupleIJRiRdRNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERNS5_5arrayImLm3EEEEEEEEDcOT0_:
  116|  2.94k|   {
  117|  2.94k|      using D = std::remove_cvref_t<Tup>;
  118|  2.94k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  2.94k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  2.94k|         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.94k|         else {
  128|  2.94k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  2.94k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  2.94k|   }
_ZN3glz3tieIJidNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_5arrayImLm3EEEEEENS_5tupleIJDpRT_EEESD_:
  325|  14.8k|   {
  326|  14.8k|      return {{{ts}...}};
  327|  14.8k|   }
_ZN3glz3getILm1ETkNS_12tuple_detail9indexableENS_5tupleIJRiRdRNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERNS5_5arrayImLm3EEEEEEEEDcOT0_:
  116|  2.78k|   {
  117|  2.78k|      using D = std::remove_cvref_t<Tup>;
  118|  2.78k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  2.78k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  2.78k|         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.78k|         else {
  128|  2.78k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  2.78k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  2.78k|   }
_ZN3glz3getILm2ETkNS_12tuple_detail9indexableENS_5tupleIJRiRdRNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERNS5_5arrayImLm3EEEEEEEEDcOT0_:
  116|  2.20k|   {
  117|  2.20k|      using D = std::remove_cvref_t<Tup>;
  118|  2.20k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  2.20k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  2.20k|         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.20k|         else {
  128|  2.20k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  2.20k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  2.20k|   }
_ZN3glz3getILm3ETkNS_12tuple_detail9indexableENS_5tupleIJRiRdRNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERNS5_5arrayImLm3EEEEEEEEDcOT0_:
  116|  6.93k|   {
  117|  6.93k|      using D = std::remove_cvref_t<Tup>;
  118|  6.93k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  6.93k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  6.93k|         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|  6.93k|         else {
  128|  6.93k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  6.93k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  6.93k|   }

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

_ZN3glz6detail9emit_charINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT0_cRT_Rm:
 1154|   549M|      {
 1155|   549M|         if (!ensure_space(ctx, out, ix + 1)) [[unlikely]] {
  ------------------
  |  Branch (1155:14): [True: 0, False: 549M]
  ------------------
 1156|      0|            return false;
 1157|      0|         }
 1158|   549M|         dump<false>(c, out, ix);
 1159|   549M|         return true;
 1160|   549M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm5EEEtlA5_cLc116ELc114ELc117ELc101EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  85.2M|      {
 1165|  85.2M|         static constexpr auto s = str.sv();
 1166|  85.2M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 85.2M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  85.2M|         dump<false>(s, out, ix);
 1170|  85.2M|         return true;
 1171|  85.2M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm6EEEtlA6_cLc102ELc97ELc108ELc115ELc101EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|   428M|      {
 1165|   428M|         static constexpr auto s = str.sv();
 1166|   428M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 428M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|   428M|         dump<false>(s, out, ix);
 1170|   428M|         return true;
 1171|   428M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm5EEEtlA5_cLc110ELc117ELc108ELc108EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  9.69M|      {
 1165|  9.69M|         static constexpr auto s = str.sv();
 1166|  9.69M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 9.69M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  9.69M|         dump<false>(s, out, ix);
 1170|  9.69M|         return true;
 1171|  9.69M|      }
_ZN3glz2toILj10EfE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERfTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  2.08M|      {
  815|  2.08M|         if constexpr (not check_write_unchecked(Opts)) {
  816|  2.08M|            static_assert(required_padding<T>());
  817|  2.08M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 2.08M]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  2.08M|         }
  821|       |
  822|  2.08M|         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.08M|         else {
  832|  2.08M|            write_chars::op<O>(value, ctx, b, ix);
  833|  2.08M|         }
  834|  2.08M|      }
_ZN3glz16required_paddingIfEEmv:
  538|  2.08M|   {
  539|  2.08M|      constexpr auto value = []() -> size_t {
  540|  2.08M|         if constexpr (boolean_like<T>) {
  541|  2.08M|            return 8;
  542|  2.08M|         }
  543|  2.08M|         else if constexpr (num_t<T>) {
  544|  2.08M|            if constexpr (std::floating_point<T>) {
  545|  2.08M|               if constexpr (sizeof(T) > 8) {
  546|  2.08M|                  return 64;
  547|  2.08M|               }
  548|  2.08M|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  2.08M|                  return zmij::double_buffer_size + 4;
  551|  2.08M|               }
  552|  2.08M|               else {
  553|  2.08M|                  return zmij::float_buffer_size + 4;
  554|  2.08M|               }
  555|  2.08M|            }
  556|  2.08M|            else if constexpr (sizeof(T) > 4) {
  557|  2.08M|               return 24;
  558|  2.08M|            }
  559|  2.08M|            else if constexpr (sizeof(T) > 2) {
  560|  2.08M|               return 16;
  561|  2.08M|            }
  562|  2.08M|            else {
  563|  2.08M|               return 8;
  564|  2.08M|            }
  565|  2.08M|         }
  566|  2.08M|         else if constexpr (nullable_like<T>) {
  567|  2.08M|            if constexpr (has_value_type<T>) {
  568|  2.08M|               return required_padding<typename T::value_type>();
  569|  2.08M|            }
  570|  2.08M|            else if constexpr (has_element_type<T>) {
  571|  2.08M|               return required_padding<typename T::element_type>();
  572|  2.08M|            }
  573|  2.08M|            else {
  574|  2.08M|               return 0;
  575|  2.08M|            }
  576|  2.08M|         }
  577|  2.08M|         else if constexpr (always_null_t<T>) {
  578|  2.08M|            return 8;
  579|  2.08M|         }
  580|  2.08M|         else {
  581|  2.08M|            return 0;
  582|  2.08M|         }
  583|  2.08M|      }();
  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.08M|      return value;
  591|  2.08M|   }
_ZN3glz2toILj10EdE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERdTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|   832k|      {
  815|   832k|         if constexpr (not check_write_unchecked(Opts)) {
  816|   832k|            static_assert(required_padding<T>());
  817|   832k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 832k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|   832k|         }
  821|       |
  822|   832k|         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|   832k|         else {
  832|   832k|            write_chars::op<O>(value, ctx, b, ix);
  833|   832k|         }
  834|   832k|      }
_ZN3glz16required_paddingIdEEmv:
  538|   832k|   {
  539|   832k|      constexpr auto value = []() -> size_t {
  540|   832k|         if constexpr (boolean_like<T>) {
  541|   832k|            return 8;
  542|   832k|         }
  543|   832k|         else if constexpr (num_t<T>) {
  544|   832k|            if constexpr (std::floating_point<T>) {
  545|   832k|               if constexpr (sizeof(T) > 8) {
  546|   832k|                  return 64;
  547|   832k|               }
  548|   832k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|   832k|                  return zmij::double_buffer_size + 4;
  551|   832k|               }
  552|   832k|               else {
  553|   832k|                  return zmij::float_buffer_size + 4;
  554|   832k|               }
  555|   832k|            }
  556|   832k|            else if constexpr (sizeof(T) > 4) {
  557|   832k|               return 24;
  558|   832k|            }
  559|   832k|            else if constexpr (sizeof(T) > 2) {
  560|   832k|               return 16;
  561|   832k|            }
  562|   832k|            else {
  563|   832k|               return 8;
  564|   832k|            }
  565|   832k|         }
  566|   832k|         else if constexpr (nullable_like<T>) {
  567|   832k|            if constexpr (has_value_type<T>) {
  568|   832k|               return required_padding<typename T::value_type>();
  569|   832k|            }
  570|   832k|            else if constexpr (has_element_type<T>) {
  571|   832k|               return required_padding<typename T::element_type>();
  572|   832k|            }
  573|   832k|            else {
  574|   832k|               return 0;
  575|   832k|            }
  576|   832k|         }
  577|   832k|         else if constexpr (always_null_t<T>) {
  578|   832k|            return 8;
  579|   832k|         }
  580|   832k|         else {
  581|   832k|            return 0;
  582|   832k|         }
  583|   832k|      }();
  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|   832k|      return value;
  591|   832k|   }
_ZN3glz2toILj10EaE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERaTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|   768k|      {
  815|   768k|         if constexpr (not check_write_unchecked(Opts)) {
  816|   768k|            static_assert(required_padding<T>());
  817|   768k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 768k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|   768k|         }
  821|       |
  822|   768k|         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|   768k|         else {
  832|   768k|            write_chars::op<O>(value, ctx, b, ix);
  833|   768k|         }
  834|   768k|      }
_ZN3glz16required_paddingIaEEmv:
  538|   768k|   {
  539|   768k|      constexpr auto value = []() -> size_t {
  540|   768k|         if constexpr (boolean_like<T>) {
  541|   768k|            return 8;
  542|   768k|         }
  543|   768k|         else if constexpr (num_t<T>) {
  544|   768k|            if constexpr (std::floating_point<T>) {
  545|   768k|               if constexpr (sizeof(T) > 8) {
  546|   768k|                  return 64;
  547|   768k|               }
  548|   768k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|   768k|                  return zmij::double_buffer_size + 4;
  551|   768k|               }
  552|   768k|               else {
  553|   768k|                  return zmij::float_buffer_size + 4;
  554|   768k|               }
  555|   768k|            }
  556|   768k|            else if constexpr (sizeof(T) > 4) {
  557|   768k|               return 24;
  558|   768k|            }
  559|   768k|            else if constexpr (sizeof(T) > 2) {
  560|   768k|               return 16;
  561|   768k|            }
  562|   768k|            else {
  563|   768k|               return 8;
  564|   768k|            }
  565|   768k|         }
  566|   768k|         else if constexpr (nullable_like<T>) {
  567|   768k|            if constexpr (has_value_type<T>) {
  568|   768k|               return required_padding<typename T::value_type>();
  569|   768k|            }
  570|   768k|            else if constexpr (has_element_type<T>) {
  571|   768k|               return required_padding<typename T::element_type>();
  572|   768k|            }
  573|   768k|            else {
  574|   768k|               return 0;
  575|   768k|            }
  576|   768k|         }
  577|   768k|         else if constexpr (always_null_t<T>) {
  578|   768k|            return 8;
  579|   768k|         }
  580|   768k|         else {
  581|   768k|            return 0;
  582|   768k|         }
  583|   768k|      }();
  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|   768k|      return value;
  591|   768k|   }
_ZN3glz2toILj10EsE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERsTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  2.00M|      {
  815|  2.00M|         if constexpr (not check_write_unchecked(Opts)) {
  816|  2.00M|            static_assert(required_padding<T>());
  817|  2.00M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 2.00M]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  2.00M|         }
  821|       |
  822|  2.00M|         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.00M|         else {
  832|  2.00M|            write_chars::op<O>(value, ctx, b, ix);
  833|  2.00M|         }
  834|  2.00M|      }
_ZN3glz16required_paddingIsEEmv:
  538|  2.00M|   {
  539|  2.00M|      constexpr auto value = []() -> size_t {
  540|  2.00M|         if constexpr (boolean_like<T>) {
  541|  2.00M|            return 8;
  542|  2.00M|         }
  543|  2.00M|         else if constexpr (num_t<T>) {
  544|  2.00M|            if constexpr (std::floating_point<T>) {
  545|  2.00M|               if constexpr (sizeof(T) > 8) {
  546|  2.00M|                  return 64;
  547|  2.00M|               }
  548|  2.00M|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  2.00M|                  return zmij::double_buffer_size + 4;
  551|  2.00M|               }
  552|  2.00M|               else {
  553|  2.00M|                  return zmij::float_buffer_size + 4;
  554|  2.00M|               }
  555|  2.00M|            }
  556|  2.00M|            else if constexpr (sizeof(T) > 4) {
  557|  2.00M|               return 24;
  558|  2.00M|            }
  559|  2.00M|            else if constexpr (sizeof(T) > 2) {
  560|  2.00M|               return 16;
  561|  2.00M|            }
  562|  2.00M|            else {
  563|  2.00M|               return 8;
  564|  2.00M|            }
  565|  2.00M|         }
  566|  2.00M|         else if constexpr (nullable_like<T>) {
  567|  2.00M|            if constexpr (has_value_type<T>) {
  568|  2.00M|               return required_padding<typename T::value_type>();
  569|  2.00M|            }
  570|  2.00M|            else if constexpr (has_element_type<T>) {
  571|  2.00M|               return required_padding<typename T::element_type>();
  572|  2.00M|            }
  573|  2.00M|            else {
  574|  2.00M|               return 0;
  575|  2.00M|            }
  576|  2.00M|         }
  577|  2.00M|         else if constexpr (always_null_t<T>) {
  578|  2.00M|            return 8;
  579|  2.00M|         }
  580|  2.00M|         else {
  581|  2.00M|            return 0;
  582|  2.00M|         }
  583|  2.00M|      }();
  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.00M|      return value;
  591|  2.00M|   }
_ZN3glz2toILj10EiE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERiTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|   973k|      {
  815|   973k|         if constexpr (not check_write_unchecked(Opts)) {
  816|   973k|            static_assert(required_padding<T>());
  817|   973k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 973k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|   973k|         }
  821|       |
  822|   973k|         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|   973k|         else {
  832|   973k|            write_chars::op<O>(value, ctx, b, ix);
  833|   973k|         }
  834|   973k|      }
_ZN3glz16required_paddingIiEEmv:
  538|   973k|   {
  539|   973k|      constexpr auto value = []() -> size_t {
  540|   973k|         if constexpr (boolean_like<T>) {
  541|   973k|            return 8;
  542|   973k|         }
  543|   973k|         else if constexpr (num_t<T>) {
  544|   973k|            if constexpr (std::floating_point<T>) {
  545|   973k|               if constexpr (sizeof(T) > 8) {
  546|   973k|                  return 64;
  547|   973k|               }
  548|   973k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|   973k|                  return zmij::double_buffer_size + 4;
  551|   973k|               }
  552|   973k|               else {
  553|   973k|                  return zmij::float_buffer_size + 4;
  554|   973k|               }
  555|   973k|            }
  556|   973k|            else if constexpr (sizeof(T) > 4) {
  557|   973k|               return 24;
  558|   973k|            }
  559|   973k|            else if constexpr (sizeof(T) > 2) {
  560|   973k|               return 16;
  561|   973k|            }
  562|   973k|            else {
  563|   973k|               return 8;
  564|   973k|            }
  565|   973k|         }
  566|   973k|         else if constexpr (nullable_like<T>) {
  567|   973k|            if constexpr (has_value_type<T>) {
  568|   973k|               return required_padding<typename T::value_type>();
  569|   973k|            }
  570|   973k|            else if constexpr (has_element_type<T>) {
  571|   973k|               return required_padding<typename T::element_type>();
  572|   973k|            }
  573|   973k|            else {
  574|   973k|               return 0;
  575|   973k|            }
  576|   973k|         }
  577|   973k|         else if constexpr (always_null_t<T>) {
  578|   973k|            return 8;
  579|   973k|         }
  580|   973k|         else {
  581|   973k|            return 0;
  582|   973k|         }
  583|   973k|      }();
  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|   973k|      return value;
  591|   973k|   }
_ZN3glz2toILj10ElE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERlTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|   844k|      {
  815|   844k|         if constexpr (not check_write_unchecked(Opts)) {
  816|   844k|            static_assert(required_padding<T>());
  817|   844k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 844k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|   844k|         }
  821|       |
  822|   844k|         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|   844k|         else {
  832|   844k|            write_chars::op<O>(value, ctx, b, ix);
  833|   844k|         }
  834|   844k|      }
_ZN3glz16required_paddingIlEEmv:
  538|   844k|   {
  539|   844k|      constexpr auto value = []() -> size_t {
  540|   844k|         if constexpr (boolean_like<T>) {
  541|   844k|            return 8;
  542|   844k|         }
  543|   844k|         else if constexpr (num_t<T>) {
  544|   844k|            if constexpr (std::floating_point<T>) {
  545|   844k|               if constexpr (sizeof(T) > 8) {
  546|   844k|                  return 64;
  547|   844k|               }
  548|   844k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|   844k|                  return zmij::double_buffer_size + 4;
  551|   844k|               }
  552|   844k|               else {
  553|   844k|                  return zmij::float_buffer_size + 4;
  554|   844k|               }
  555|   844k|            }
  556|   844k|            else if constexpr (sizeof(T) > 4) {
  557|   844k|               return 24;
  558|   844k|            }
  559|   844k|            else if constexpr (sizeof(T) > 2) {
  560|   844k|               return 16;
  561|   844k|            }
  562|   844k|            else {
  563|   844k|               return 8;
  564|   844k|            }
  565|   844k|         }
  566|   844k|         else if constexpr (nullable_like<T>) {
  567|   844k|            if constexpr (has_value_type<T>) {
  568|   844k|               return required_padding<typename T::value_type>();
  569|   844k|            }
  570|   844k|            else if constexpr (has_element_type<T>) {
  571|   844k|               return required_padding<typename T::element_type>();
  572|   844k|            }
  573|   844k|            else {
  574|   844k|               return 0;
  575|   844k|            }
  576|   844k|         }
  577|   844k|         else if constexpr (always_null_t<T>) {
  578|   844k|            return 8;
  579|   844k|         }
  580|   844k|         else {
  581|   844k|            return 0;
  582|   844k|         }
  583|   844k|      }();
  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|   844k|      return value;
  591|   844k|   }
_ZN3glz2toILj10EhE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERhTkNS_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_paddingIhEEmv:
  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|   }
_ZN3glz2toILj10EtE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERtTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  2.48M|      {
  815|  2.48M|         if constexpr (not check_write_unchecked(Opts)) {
  816|  2.48M|            static_assert(required_padding<T>());
  817|  2.48M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 2.48M]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  2.48M|         }
  821|       |
  822|  2.48M|         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.48M|         else {
  832|  2.48M|            write_chars::op<O>(value, ctx, b, ix);
  833|  2.48M|         }
  834|  2.48M|      }
_ZN3glz16required_paddingItEEmv:
  538|  2.48M|   {
  539|  2.48M|      constexpr auto value = []() -> size_t {
  540|  2.48M|         if constexpr (boolean_like<T>) {
  541|  2.48M|            return 8;
  542|  2.48M|         }
  543|  2.48M|         else if constexpr (num_t<T>) {
  544|  2.48M|            if constexpr (std::floating_point<T>) {
  545|  2.48M|               if constexpr (sizeof(T) > 8) {
  546|  2.48M|                  return 64;
  547|  2.48M|               }
  548|  2.48M|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  2.48M|                  return zmij::double_buffer_size + 4;
  551|  2.48M|               }
  552|  2.48M|               else {
  553|  2.48M|                  return zmij::float_buffer_size + 4;
  554|  2.48M|               }
  555|  2.48M|            }
  556|  2.48M|            else if constexpr (sizeof(T) > 4) {
  557|  2.48M|               return 24;
  558|  2.48M|            }
  559|  2.48M|            else if constexpr (sizeof(T) > 2) {
  560|  2.48M|               return 16;
  561|  2.48M|            }
  562|  2.48M|            else {
  563|  2.48M|               return 8;
  564|  2.48M|            }
  565|  2.48M|         }
  566|  2.48M|         else if constexpr (nullable_like<T>) {
  567|  2.48M|            if constexpr (has_value_type<T>) {
  568|  2.48M|               return required_padding<typename T::value_type>();
  569|  2.48M|            }
  570|  2.48M|            else if constexpr (has_element_type<T>) {
  571|  2.48M|               return required_padding<typename T::element_type>();
  572|  2.48M|            }
  573|  2.48M|            else {
  574|  2.48M|               return 0;
  575|  2.48M|            }
  576|  2.48M|         }
  577|  2.48M|         else if constexpr (always_null_t<T>) {
  578|  2.48M|            return 8;
  579|  2.48M|         }
  580|  2.48M|         else {
  581|  2.48M|            return 0;
  582|  2.48M|         }
  583|  2.48M|      }();
  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.48M|      return value;
  591|  2.48M|   }
_ZN3glz2toILj10EjE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERjTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|   787k|      {
  815|   787k|         if constexpr (not check_write_unchecked(Opts)) {
  816|   787k|            static_assert(required_padding<T>());
  817|   787k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 787k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|   787k|         }
  821|       |
  822|   787k|         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|   787k|         else {
  832|   787k|            write_chars::op<O>(value, ctx, b, ix);
  833|   787k|         }
  834|   787k|      }
_ZN3glz16required_paddingIjEEmv:
  538|   787k|   {
  539|   787k|      constexpr auto value = []() -> size_t {
  540|   787k|         if constexpr (boolean_like<T>) {
  541|   787k|            return 8;
  542|   787k|         }
  543|   787k|         else if constexpr (num_t<T>) {
  544|   787k|            if constexpr (std::floating_point<T>) {
  545|   787k|               if constexpr (sizeof(T) > 8) {
  546|   787k|                  return 64;
  547|   787k|               }
  548|   787k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|   787k|                  return zmij::double_buffer_size + 4;
  551|   787k|               }
  552|   787k|               else {
  553|   787k|                  return zmij::float_buffer_size + 4;
  554|   787k|               }
  555|   787k|            }
  556|   787k|            else if constexpr (sizeof(T) > 4) {
  557|   787k|               return 24;
  558|   787k|            }
  559|   787k|            else if constexpr (sizeof(T) > 2) {
  560|   787k|               return 16;
  561|   787k|            }
  562|   787k|            else {
  563|   787k|               return 8;
  564|   787k|            }
  565|   787k|         }
  566|   787k|         else if constexpr (nullable_like<T>) {
  567|   787k|            if constexpr (has_value_type<T>) {
  568|   787k|               return required_padding<typename T::value_type>();
  569|   787k|            }
  570|   787k|            else if constexpr (has_element_type<T>) {
  571|   787k|               return required_padding<typename T::element_type>();
  572|   787k|            }
  573|   787k|            else {
  574|   787k|               return 0;
  575|   787k|            }
  576|   787k|         }
  577|   787k|         else if constexpr (always_null_t<T>) {
  578|   787k|            return 8;
  579|   787k|         }
  580|   787k|         else {
  581|   787k|            return 0;
  582|   787k|         }
  583|   787k|      }();
  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|   787k|      return value;
  591|   787k|   }
_ZN3glz2toILj10EmE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERmTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|   918k|      {
  815|   918k|         if constexpr (not check_write_unchecked(Opts)) {
  816|   918k|            static_assert(required_padding<T>());
  817|   918k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 918k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|   918k|         }
  821|       |
  822|   918k|         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|   918k|         else {
  832|   918k|            write_chars::op<O>(value, ctx, b, ix);
  833|   918k|         }
  834|   918k|      }
_ZN3glz16required_paddingImEEmv:
  538|   918k|   {
  539|   918k|      constexpr auto value = []() -> size_t {
  540|   918k|         if constexpr (boolean_like<T>) {
  541|   918k|            return 8;
  542|   918k|         }
  543|   918k|         else if constexpr (num_t<T>) {
  544|   918k|            if constexpr (std::floating_point<T>) {
  545|   918k|               if constexpr (sizeof(T) > 8) {
  546|   918k|                  return 64;
  547|   918k|               }
  548|   918k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|   918k|                  return zmij::double_buffer_size + 4;
  551|   918k|               }
  552|   918k|               else {
  553|   918k|                  return zmij::float_buffer_size + 4;
  554|   918k|               }
  555|   918k|            }
  556|   918k|            else if constexpr (sizeof(T) > 4) {
  557|   918k|               return 24;
  558|   918k|            }
  559|   918k|            else if constexpr (sizeof(T) > 2) {
  560|   918k|               return 16;
  561|   918k|            }
  562|   918k|            else {
  563|   918k|               return 8;
  564|   918k|            }
  565|   918k|         }
  566|   918k|         else if constexpr (nullable_like<T>) {
  567|   918k|            if constexpr (has_value_type<T>) {
  568|   918k|               return required_padding<typename T::value_type>();
  569|   918k|            }
  570|   918k|            else if constexpr (has_element_type<T>) {
  571|   918k|               return required_padding<typename T::element_type>();
  572|   918k|            }
  573|   918k|            else {
  574|   918k|               return 0;
  575|   918k|            }
  576|   918k|         }
  577|   918k|         else if constexpr (always_null_t<T>) {
  578|   918k|            return 8;
  579|   918k|         }
  580|   918k|         else {
  581|   918k|            return 0;
  582|   918k|         }
  583|   918k|      }();
  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|   918k|      return value;
  591|   918k|   }
_ZN3glz6detail21emit_untrusted_stringITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEvRT1_NS3_17basic_string_viewIcS6_EERT0_Rm:
 1140|  1.14M|      {
 1141|  1.14M|         to<JSON, std::string_view>::template op<untrusted_string_emit_opts<Opts>>(s, ctx, out, ix);
 1142|  1.14M|      }
_ZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj256EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  845|  1.14M|      {
  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.14M|         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.14M|            else {
  945|  1.14M|               const sv str = [&]() -> const sv {
  946|  1.14M|                  if constexpr (array_char_t<T>) {
  947|  1.14M|                     return sv{value.data(), value.size()};
  948|  1.14M|                  }
  949|  1.14M|                  else if constexpr (u8str_t<T>) {
  950|  1.14M|                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  951|  1.14M|                  }
  952|  1.14M|                  else {
  953|  1.14M|                     return str_view<T>(value);
  954|  1.14M|                  }
  955|  1.14M|               }();
  956|  1.14M|               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.14M|               else {
  988|       |                  // Using the original sizing
  989|  1.14M|                  if (!ensure_space(ctx, b, ix + 10 + 2 * n)) [[unlikely]] {
  ------------------
  |  Branch (989:23): [True: 0, False: 1.14M]
  ------------------
  990|      0|                     return;
  991|      0|                  }
  992|  1.14M|               }
  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.14M|               else {
 1002|  1.14M|                  std::memcpy(&b[ix], "\"", 1);
 1003|  1.14M|                  ++ix;
 1004|       |
 1005|  1.14M|                  const auto* c = str.data();
 1006|  1.14M|                  const auto* const e = c + n;
 1007|  1.14M|                  const auto start = &b[ix];
 1008|  1.14M|                  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.14M|                  auto write_escape = [&]() {
 1017|  1.14M|                     if constexpr (check_escape_control_characters(Opts)) {
 1018|  1.14M|                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
 1019|  1.14M|                           std::memcpy(data, &escaped, 2);
 1020|  1.14M|                           data += 2;
 1021|  1.14M|                        }
 1022|  1.14M|                        else {
 1023|  1.14M|                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1024|  1.14M|                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1025|  1.14M|                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1026|  1.14M|                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1027|  1.14M|                           std::memcpy(data, unicode_escape, 6);
 1028|  1.14M|                           data += 6;
 1029|  1.14M|                        }
 1030|  1.14M|                     }
 1031|  1.14M|                     else {
 1032|  1.14M|                        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.14M|                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
 1039|  1.14M|                              ctx.error = error_code::invalid_control_character;
 1040|  1.14M|                           }
 1041|  1.14M|                        }
 1042|  1.14M|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  1.14M|                        data += 2;
 1044|  1.14M|                     }
 1045|  1.14M|                     ++c;
 1046|  1.14M|                  };
 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.14M|#if defined(GLZ_USE_SSE2)
 1055|  1.14M|                  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.14M|                  if (n > 7) {
  ------------------
  |  Branch (1061:23): [True: 1.00k, False: 1.14M]
  ------------------
 1062|  3.09k|                     for (const auto end_m7 = e - 7; c < end_m7;) {
  ------------------
  |  Branch (1062:54): [True: 2.08k, False: 1.00k]
  ------------------
 1063|  2.08k|                        std::memcpy(data, c, 8);
 1064|  2.08k|                        uint64_t swar;
 1065|  2.08k|                        std::memcpy(&swar, c, 8);
 1066|       |                        if constexpr (std::endian::native == std::endian::big) {
 1067|       |                           swar = std::byteswap(swar);
 1068|       |                        }
 1069|       |
 1070|  2.08k|                        constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1071|  2.08k|                        const uint64_t lo7 = swar & lo7_mask;
 1072|  2.08k|                        const uint64_t quote = (lo7 ^ repeat_byte8('"')) + lo7_mask;
 1073|  2.08k|                        const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1074|  2.08k|                        const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1075|  2.08k|                        uint64_t next = ~((quote & backslash & less_32) | swar);
 1076|       |
 1077|  2.08k|                        next &= repeat_byte8(0b10000000);
 1078|  2.08k|                        if (next == 0) {
  ------------------
  |  Branch (1078:29): [True: 347, False: 1.73k]
  ------------------
 1079|    347|                           data += 8;
 1080|    347|                           c += 8;
 1081|    347|                           continue;
 1082|    347|                        }
 1083|       |
 1084|  1.73k|                        const auto length = (countr_zero(next) >> 3);
 1085|  1.73k|                        c += length;
 1086|  1.73k|                        data += length;
 1087|  1.73k|                        write_escape();
 1088|  1.73k|                     }
 1089|  1.00k|                  }
 1090|       |
 1091|       |                  // Scalar tail
 1092|  1.16M|                  for (; c < e; ++c) {
  ------------------
  |  Branch (1092:26): [True: 20.4k, False: 1.14M]
  ------------------
 1093|  20.4k|                     if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
  ------------------
  |  Branch (1093:79): [True: 1.36k, False: 19.0k]
  ------------------
 1094|  1.36k|                        std::memcpy(data, &escaped, 2);
 1095|  1.36k|                        data += 2;
 1096|  1.36k|                     }
 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|  19.0k|                     else {
 1112|  19.0k|                        if constexpr (check_reject_control_characters(Opts)) {
 1113|  19.0k|                           if (uint8_t(*c) < 0x20) [[unlikely]] {
  ------------------
  |  Branch (1113:32): [True: 1.16k, False: 17.8k]
  ------------------
 1114|  1.16k|                              ctx.error = error_code::invalid_control_character;
 1115|  1.16k|                           }
 1116|  19.0k|                        }
 1117|  19.0k|                        std::memcpy(data, c, 1);
 1118|  19.0k|                        ++data;
 1119|  19.0k|                     }
 1120|  20.4k|                  }
 1121|       |
 1122|  1.14M|                  ix += size_t(data - start);
 1123|       |
 1124|  1.14M|                  std::memcpy(&b[ix], "\"", 1);
 1125|  1.14M|                  ++ix;
 1126|  1.14M|               }
 1127|  1.14M|            }
 1128|  1.14M|         }
 1129|  1.14M|      }
_ZZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj256EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE_clEv:
  945|  1.14M|               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.14M|                  else {
  953|  1.14M|                     return str_view<T>(value);
  954|  1.14M|                  }
  955|  1.14M|               }();
_ZZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj256EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE0_clEv:
 1016|  2.88M|                  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|  2.88M|                     else {
 1032|  2.88M|                        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|  2.88M|                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
  ------------------
  |  Branch (1038:32): [True: 2.80M, False: 81.5k]
  ------------------
 1039|  2.80M|                              ctx.error = error_code::invalid_control_character;
 1040|  2.80M|                           }
 1041|  2.88M|                        }
 1042|  2.88M|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  2.88M|                        data += 2;
 1044|  2.88M|                     }
 1045|  2.88M|                     ++c;
 1046|  2.88M|                  };
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm10EEEtlA10_cLc34ELc108ELc97ELc121ELc111ELc117ELc116ELc34ELc58EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  2.51M|      {
 1165|  2.51M|         static constexpr auto s = str.sv();
 1166|  2.51M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 2.51M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  2.51M|         dump<false>(s, out, ix);
 1170|  2.51M|         return true;
 1171|  2.51M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm15EEEtlA15_cLc34ELc108ELc97ELc121ELc111ELc117ELc116ELc95ELc114ELc105ELc103ELc104ELc116ELc34EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  73.0k|      {
 1165|  73.0k|         static constexpr auto s = str.sv();
 1166|  73.0k|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 73.0k]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  73.0k|         dump<false>(s, out, ix);
 1170|  73.0k|         return true;
 1171|  73.0k|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm14EEEtlA14_cLc34ELc108ELc97ELc121ELc111ELc117ELc116ELc95ELc108ELc101ELc102ELc116ELc34EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  2.44M|      {
 1165|  2.44M|         static constexpr auto s = str.sv();
 1166|  2.44M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 2.44M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  2.44M|         dump<false>(s, out, ix);
 1170|  2.44M|         return true;
 1171|  2.44M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm11EEEtlA11_cLc34ELc101ELc120ELc116ELc101ELc110ELc116ELc115ELc34ELc58EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  2.51M|      {
 1165|  2.51M|         static constexpr auto s = str.sv();
 1166|  2.51M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 2.51M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  2.51M|         dump<false>(s, out, ix);
 1170|  2.51M|         return true;
 1171|  2.51M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm9EEEtlA9_cLc34ELc118ELc97ELc108ELc117ELc101ELc34ELc58EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  2.49M|      {
 1165|  2.49M|         static constexpr auto s = str.sv();
 1166|  2.49M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 2.49M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  2.49M|         dump<false>(s, out, ix);
 1170|  2.49M|         return true;
 1171|  2.49M|      }

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

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

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

_ZN3glz7compareILm1EcEEbPKT0_S3_:
  122|  5.73k|   {
  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.73k|      else if constexpr (Count == 1) {
  176|  5.73k|         return *lhs == *rhs;
  177|       |      }
  178|       |      else if constexpr (Count == 0) {
  179|       |         return true;
  180|       |      }
  181|  5.73k|   }
_ZN3glz7compareILm5EcEEbPKT0_S3_:
  122|  2.26k|   {
  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.26k|      else if constexpr (Count == 5) {
  152|  2.26k|         uint32_t l, r;
  153|  2.26k|         std::memcpy(&l, lhs, 4);
  154|  2.26k|         std::memcpy(&r, rhs, 4);
  155|  2.26k|         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.26k|   }
_ZN3glz7compareILm3EcEEbPKT0_S3_:
  122|  6.97k|   {
  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|  6.97k|      else if constexpr (Count == 3) {
  164|  6.97k|         uint16_t l, r;
  165|  6.97k|         std::memcpy(&l, lhs, 2);
  166|  6.97k|         std::memcpy(&r, rhs, 2);
  167|  6.97k|         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|  6.97k|   }

_ZN3glz4dumpILb0ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEETkNS_10byte_sizedEcEEvT1_RT0_Rm:
  150|   549M|   {
  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|   549M|      assign_maybe_cast(c, b, ix);
  157|   549M|      ++ix;
  158|   549M|   }
_ZN3glz17assign_maybe_castITkNS_10byte_sizedEcNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvT_RT0_Rm:
   95|   549M|   {
   96|   549M|      using V = std::decay_t<decltype(b[0])>;
   97|   549M|      using C = std::decay_t<decltype(c)>;
   98|   549M|      if constexpr (std::same_as<V, C>) {
   99|   549M|         b[ix] = c;
  100|       |      }
  101|       |      else {
  102|       |         b[ix] = static_cast<V>(c);
  103|       |      }
  104|   549M|   }
_ZN3glz4dumpILb0ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvNS1_17basic_string_viewIcS4_EERT0_Rm:
  192|   533M|   {
  193|   533M|      const auto n = str.size();
  194|   533M|      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|   533M|      }
  202|   533M|      std::memcpy(&b[ix], str.data(), n);
  203|   533M|      ix += n;
  204|   533M|   }

_ZN3glz5visitILm4EZNS_4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_EUlTnmvE_EEvOT0_m:
   86|  14.9k|   {
   87|  14.9k|      if constexpr (N > 0) {
   88|  14.9k|         assert(index < N && "glz::visit index out of range");
  ------------------
  |  Branch (88:10): [True: 14.9k, False: 0]
  |  Branch (88:10): [True: 14.9k, Folded]
  |  Branch (88:10): [True: 14.9k, 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|  14.9k|         else if constexpr (N == 4) {
  122|  14.9k|            switch (index) {
  123|  2.94k|            case 0:
  ------------------
  |  Branch (123:13): [True: 2.94k, False: 12.0k]
  ------------------
  124|  2.94k|               lambda.template operator()<0>();
  125|  2.94k|               break;
  126|  2.79k|            case 1:
  ------------------
  |  Branch (126:13): [True: 2.79k, False: 12.2k]
  ------------------
  127|  2.79k|               lambda.template operator()<1>();
  128|  2.79k|               break;
  129|  2.27k|            case 2:
  ------------------
  |  Branch (129:13): [True: 2.27k, False: 12.7k]
  ------------------
  130|  2.27k|               lambda.template operator()<2>();
  131|  2.27k|               break;
  132|  6.98k|            case 3:
  ------------------
  |  Branch (132:13): [True: 6.98k, False: 8.01k]
  ------------------
  133|  6.98k|               lambda.template operator()<3>();
  134|  6.98k|               break;
  135|      0|            default:
  ------------------
  |  Branch (135:13): [True: 0, False: 14.9k]
  ------------------
  136|      0|               std::unreachable();
  137|  14.9k|            }
  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__)
  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|  14.9k|      }
  335|  14.9k|   }

_ZN3glz8to_charsIaQsr3stdE7same_asIu14__remove_cvrefIT_EaEEEPcS3_S1_:
  277|   768k|   {
  278|   768k|      *buf = '-';
  279|       |      // Keep the magnitude uint8_t: arithmetic promotes to int, which has no overload where int32_t is long
  280|       |      // (e.g. arm-none-eabi, ESP32).
  281|   768k|      const uint8_t u = uint8_t(val);
  282|   768k|      return to_chars(buf + (val < 0), uint8_t(val < 0 ? 0u - u : u));
  ------------------
  |  Branch (282:48): [True: 162k, False: 606k]
  ------------------
  283|   768k|   }
_ZN3glz8to_charsIhQsr3stdE7same_asIu14__remove_cvrefIT_EhEEEPcS3_S1_:
  259|  2.80M|   {
  260|  2.80M|      using namespace itoa_impl;
  261|  2.80M|      if (val < 100) {
  ------------------
  |  Branch (261:11): [True: 2.39M, False: 416k]
  ------------------
  262|  2.39M|         return u32_2(buf, val);
  263|  2.39M|      }
  264|   416k|      else {
  265|       |         // 100-255: 3 digits
  266|   416k|         const uint32_t q = val / 100;
  267|   416k|         *buf = char('0' + q);
  268|   416k|         std::memcpy(buf + 1, &digit_pairs[val - q * 100], 2);
  269|   416k|         return buf + 3;
  270|   416k|      }
  271|  2.80M|   }
_ZN3glz9itoa_impl5u32_2EPcj:
   74|  3.88M|      {
   75|  3.88M|         const uint32_t lz = val < 10;
   76|  3.88M|         std::memcpy(buf, char_table + ((val * 2) | lz), 2);
   77|  3.88M|         return buf + 2 - lz;
   78|  3.88M|      }
_ZN3glz8to_charsIsQsr3stdE7same_asIu14__remove_cvrefIT_EsEEEPcS3_S1_:
  309|  2.00M|   {
  310|  2.00M|      *buf = '-';
  311|  2.00M|      const uint16_t u = uint16_t(val); // see int8_t
  312|  2.00M|      return to_chars(buf + (val < 0), uint16_t(val < 0 ? 0u - u : u));
  ------------------
  |  Branch (312:49): [True: 424k, False: 1.58M]
  ------------------
  313|  2.00M|   }
_ZN3glz8to_charsItQsr3stdE7same_asIu14__remove_cvrefIT_EtEEEPcS3_S1_:
  289|  4.49M|   {
  290|  4.49M|      using namespace itoa_impl;
  291|  4.49M|      if (val < 100) {
  ------------------
  |  Branch (291:11): [True: 1.49M, False: 2.99M]
  ------------------
  292|  1.49M|         return u32_2(buf, val);
  293|  1.49M|      }
  294|  2.99M|      else if (val < 10000) {
  ------------------
  |  Branch (294:16): [True: 1.79M, False: 1.19M]
  ------------------
  295|  1.79M|         return u32_4(buf, val);
  296|  1.79M|      }
  297|  1.19M|      else {
  298|       |         // 10000-65535: 5 digits
  299|  1.19M|         const uint32_t q = val / 10000;
  300|  1.19M|         *buf = char('0' + q);
  301|  1.19M|         return u64_len_4(buf + 1, val - q * 10000);
  302|  1.19M|      }
  303|  4.49M|   }
_ZN3glz9itoa_impl5u32_4EPcj:
   81|  1.79M|      {
   82|  1.79M|         const uint32_t aa = (val * 5243) >> 19; // val / 100
   83|  1.79M|         const uint32_t lz = aa < 10;
   84|  1.79M|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
   85|  1.79M|         std::memcpy(buf + 2 - lz, &digit_pairs[val - aa * 100], 2);
   86|  1.79M|         return buf + 4 - lz;
   87|  1.79M|      }
_ZN3glz9itoa_impl9u64_len_4EPcj:
  148|  1.19M|      {
  149|  1.19M|         const uint32_t aa = (val * 5243) >> 19;
  150|  1.19M|         std::memcpy(buf, &digit_pairs[aa], 2);
  151|  1.19M|         std::memcpy(buf + 2, &digit_pairs[val - aa * 100], 2);
  152|  1.19M|         return buf + 4;
  153|  1.19M|      }

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

_ZN3glz8to_charsITkNSt3__114floating_pointEfLb0EEEPcS2_T_:
 1118|  2.08M|   {
 1119|  2.08M|      static_assert(std::is_same_v<T, float> || std::is_same_v<T, double>);
 1120|  2.08M|      return zmij::detail::write<T, OptSize>(val, buf);
 1121|  2.08M|   }
_ZN3glz4zmij6detail5writeIfLb0EEEPcT_S3_:
  975|  2.08M|      {
  976|  2.08M|         using namespace detail_impl;
  977|  2.08M|         using traits = float_traits<Float>;
  978|  2.08M|         auto bits = traits::to_bits(value);
  979|  2.08M|         auto bin_exp = traits::get_exp(bits);
  980|  2.08M|         auto bin_sig = traits::get_sig(bits);
  981|       |
  982|  2.08M|         *buffer = '-';
  983|  2.08M|         buffer += traits::is_negative(bits);
  984|       |
  985|  2.08M|         const auto* c = &consts_v<OptSize>;
  986|  2.08M|         ZMIJ_ASM(("" : "+r"(c)));
  ------------------
  |  |  126|  2.08M|#define ZMIJ_ASM(x) asm x
  ------------------
  987|  2.08M|         int64_t threshold = traits::num_bits == 64 ? static_cast<int64_t>(c->threshold) : 10'000'000;
  ------------------
  |  Branch (987:30): [Folded, False: 2.08M]
  ------------------
  988|       |
  989|  2.08M|         to_decimal_result dec;
  990|  2.08M|         bool is_normal = unsigned(bin_exp - 1) < unsigned(traits::exp_mask - 1);
  991|  2.08M|         if (!is_normal) [[unlikely]] {
  ------------------
  |  Branch (991:14): [True: 767k, False: 1.31M]
  ------------------
  992|   767k|            if (bin_exp != 0) {
  ------------------
  |  Branch (992:17): [True: 5.10k, False: 762k]
  ------------------
  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|  5.10k|               buffer -= traits::is_negative(bits);
 1000|  5.10k|               memcpy(buffer, "null", 4);
 1001|  5.10k|               return buffer + 4;
 1002|  5.10k|#endif
 1003|  5.10k|            }
 1004|   762k|            if (bin_sig == 0) {
  ------------------
  |  Branch (1004:17): [True: 660k, False: 102k]
  ------------------
 1005|   660k|               memcpy(buffer, "0", 2);
 1006|   660k|               return buffer + 1;
 1007|   660k|            }
 1008|   102k|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig, 1, true, *c);
 1009|   102k|            int64_t dec_sig = dec.sig * 10 + (dec.has_last_digit ? dec.last_digit : 0);
  ------------------
  |  Branch (1009:47): [True: 92.1k, False: 10.4k]
  ------------------
 1010|   102k|            int32_t dec_exp = dec.exp;
 1011|   433k|            while (dec_sig < threshold) {
  ------------------
  |  Branch (1011:20): [True: 330k, False: 102k]
  ------------------
 1012|   330k|               dec_sig *= 10;
 1013|   330k|               --dec_exp;
 1014|   330k|            }
 1015|   102k|            int64_t d = static_cast<int64_t>(detail_impl::div10(static_cast<uint64_t>(dec_sig)));
 1016|   102k|            int32_t last_digit = static_cast<int32_t>(dec_sig - d * 10);
 1017|   102k|            dec = {d, dec_exp, last_digit, last_digit != 0};
 1018|   102k|         }
 1019|  1.31M|         else {
 1020|  1.31M|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig | traits::implicit_bit,
 1021|  1.31M|                                                                                     bin_exp, bin_sig != 0, *c);
 1022|  1.31M|         }
 1023|  1.41M|         bool extra_digit = dec.sig >= threshold;
 1024|  1.41M|         int dec_exp = dec.exp + traits::max_digits10 - 2 + extra_digit;
 1025|  1.41M|         if (traits::num_bits == 32 && dec.sig < 1'000'000) [[unlikely]] {
  ------------------
  |  Branch (1025:14): [True: 1.41M, Folded]
  |  Branch (1025:40): [True: 4.01k, False: 1.41M]
  ------------------
 1026|  4.01k|            dec.sig = 10 * dec.sig + (dec.has_last_digit ? dec.last_digit : 0);
  ------------------
  |  Branch (1026:39): [True: 3.46k, False: 556]
  ------------------
 1027|  4.01k|            dec.has_last_digit = false;
 1028|  4.01k|            --dec_exp;
 1029|  4.01k|         }
 1030|       |
 1031|  1.41M|         char* start = buffer;
 1032|  1.41M|         auto dig = to_digits<traits::num_bits, OptSize>(static_cast<uint64_t>(dec.sig), extra_digit, *c);
 1033|  1.41M|         constexpr int bcd_size = traits::num_bits == 64 ? 16 : 8;
  ------------------
  |  Branch (1033:35): [Folded, False: 1.41M]
  ------------------
 1034|  1.41M|         if (dec_exp >= traits::min_fixed_dec_exp && dec_exp <= traits::max_fixed_dec_exp) {
  ------------------
  |  Branch (1034:14): [True: 398k, False: 1.01M]
  |  Branch (1034:54): [True: 65.4k, False: 333k]
  ------------------
 1035|  65.4k|            memcpy(start, &zeros_v, 8);
 1036|  65.4k|            const auto& fmt = dec_exp_formats.get<traits>(dec_exp);
 1037|  65.4k|            buffer += fmt.start_pos;
 1038|  65.4k|            memcpy(buffer, &dig.digits, bcd_size);
 1039|  65.4k|            memmove(buffer, buffer + !extra_digit, bcd_size);
 1040|  65.4k|            buffer[bcd_size + extra_digit - 1] = static_cast<char>('0' + (dec.has_last_digit ? dec.last_digit : 0));
  ------------------
  |  Branch (1040:75): [True: 34.7k, False: 30.7k]
  ------------------
 1041|  65.4k|            memmove(start + fmt.shift_pos, start + fmt.point_pos, bcd_size);
 1042|  65.4k|            start[fmt.point_pos] = '.';
 1043|  65.4k|            int num_digits = dec.has_last_digit ? bcd_size : dig.num_digits - 1;
  ------------------
  |  Branch (1043:30): [True: 34.7k, False: 30.7k]
  ------------------
 1044|  65.4k|            return buffer + fmt.exp_pos[num_digits + extra_digit - 1];
 1045|  65.4k|         }
 1046|  1.35M|         buffer += extra_digit;
 1047|  1.35M|         memcpy(buffer, &dig.digits, bcd_size);
 1048|  1.35M|         buffer[bcd_size] = static_cast<char>('0' + dec.last_digit);
 1049|  1.35M|         buffer += dec.has_last_digit ? bcd_size + 1 : dig.num_digits;
  ------------------
  |  Branch (1049:20): [True: 671k, False: 679k]
  ------------------
 1050|  1.35M|         start[0] = start[1];
 1051|  1.35M|         start[1] = '.';
 1052|  1.35M|         buffer -= (buffer - 1 == start + 1);
 1053|       |
 1054|  1.35M|         if constexpr (exp_string_table<OptSize>::enable) {
 1055|  1.35M|            uint64_t exp_data = exp_strings_v<OptSize>.data[dec_exp + exp_string_table<OptSize>::offset];
 1056|  1.35M|            int len = int(exp_data >> 48);
 1057|  1.35M|            if (is_big_endian) exp_data = bswap64(exp_data);
  ------------------
  |  Branch (1057:17): [Folded, False: 1.35M]
  ------------------
 1058|  1.35M|            memcpy(buffer, &exp_data, traits::max_exponent10 >= 100 ? 8 : 4);
  ------------------
  |  Branch (1058:39): [Folded, False: 1.35M]
  ------------------
 1059|  1.35M|            return buffer + len;
 1060|  1.35M|         }
 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.35M|         buffer[0] = 'E';
 1067|  1.35M|         buffer[1] = '-';
 1068|  1.35M|         buffer += 1 + unsigned(neg);
 1069|  1.35M|         dec_exp = neg ? -dec_exp : dec_exp;
  ------------------
  |  Branch (1069:20): [True: 0, False: 1.35M]
  ------------------
 1070|  1.35M|         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.35M|         const char* d2 = digits2(dec_exp);
 1087|  1.35M|         *buffer = d2[0];
 1088|  1.35M|         buffer += hundreds_written | unsigned(dec_exp >= 10);
 1089|  1.35M|         *buffer = d2[1];
 1090|  1.35M|         return buffer + 1;
 1091|  1.41M|      }
_ZN3glz4zmij11detail_impl12float_traitsIfE7to_bitsEf:
  358|  2.08M|         {
  359|  2.08M|            sig_type bits;
  360|  2.08M|            memcpy(&bits, &value, sizeof(value));
  361|  2.08M|            return bits;
  362|  2.08M|         }
_ZN3glz4zmij11detail_impl12float_traitsIfE7get_expEj:
  367|  2.08M|         {
  368|  2.08M|            return static_cast<int32_t>((bits << 1) >> (num_sig_bits + 1));
  369|  2.08M|         }
_ZN3glz4zmij11detail_impl12float_traitsIfE7get_sigEj:
  365|  2.08M|         static auto get_sig(sig_type bits) noexcept -> sig_type { return bits & (implicit_bit - 1); }
_ZN3glz4zmij11detail_impl12float_traitsIfE11is_negativeEj:
  364|  2.08M|         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.41M|      {
  869|  1.41M|         using traits = float_traits<Float>;
  870|  1.41M|         int64_t bin_exp = raw_exp - traits::exp_offset;
  871|  1.41M|         constexpr int num_bits = std::numeric_limits<UInt>::digits;
  872|       |
  873|  1.41M|         constexpr uint64_t log10_2_sig = 78'913;
  874|  1.41M|         constexpr int32_t log10_2_exp = 18;
  875|  1.41M|         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.41M|         else {
  881|  1.41M|            dec_exp = compute_dec_exp(bin_exp);
  882|  1.41M|         }
  883|  1.41M|         uint64_t even = 1 - (bin_sig & 1);
  884|  1.41M|         constexpr int32_t extra_shift = exp_shift_table<OptSize>::extra_shift;
  885|       |
  886|  1.41M|         if (!regular) [[unlikely]] {
  ------------------
  |  Branch (886:14): [True: 27.7k, False: 1.38M]
  ------------------
  887|  27.7k|            int32_t irregular_dec_exp = compute_dec_exp(bin_exp, false);
  888|  27.7k|            int32_t shift = compute_exp_shift(bin_exp, irregular_dec_exp + 1) + extra_shift;
  889|  27.7k|            uint128 pow10 = c.pow10_significands[-irregular_dec_exp - 1];
  890|  27.7k|            uint128 p = umul192_hi128(pow10.hi, pow10.lo, bin_sig << shift);
  891|       |
  892|  27.7k|            int64_t integral = p.hi >> extra_shift;
  893|  27.7k|            uint64_t fractional = p.hi << (64 - extra_shift) | p.lo >> extra_shift;
  894|       |
  895|  27.7k|            uint64_t half_ulp = pow10.hi >> (extra_shift + 1 - shift);
  896|  27.7k|            bool round_up = half_ulp > ~uint64_t(0) - fractional;
  897|  27.7k|            bool round_down = (half_ulp >> 1) > fractional;
  898|  27.7k|            integral += round_up;
  899|       |
  900|  27.7k|            int32_t digit = static_cast<int32_t>(umul128_add_hi64(fractional, 10, (uint64_t(1) << 63) - 1));
  901|  27.7k|            int32_t lo = static_cast<int32_t>(umul128_add_hi64(fractional - (half_ulp >> 1), 10, ~uint64_t(0)));
  902|  27.7k|            if (digit < lo) digit = lo;
  ------------------
  |  Branch (902:17): [True: 2.58k, False: 25.1k]
  ------------------
  903|  27.7k|            return {integral, irregular_dec_exp, digit, (round_up + round_down) == 0};
  904|  27.7k|         }
  905|       |
  906|  1.38M|         if constexpr (num_bits == 32) {
  907|  1.38M|            constexpr int32_t float_extra_shift = 34;
  908|  1.38M|            int32_t shift = compute_exp_shift(bin_exp, dec_exp + 1) + float_extra_shift;
  909|  1.38M|            uint64_t pow10_hi = c.pow10_significands[-dec_exp - 1].hi;
  910|  1.38M|            uint64_t p = umul128_hi64(pow10_hi + 1, uint64_t(bin_sig) << shift);
  911|       |
  912|  1.38M|            int64_t integral = p >> float_extra_shift;
  913|  1.38M|            uint64_t fractional = p & ((1ull << float_extra_shift) - 1);
  914|       |
  915|  1.38M|            uint64_t half_ulp = (pow10_hi >> (65 - shift)) + even;
  916|  1.38M|            bool round_up = (fractional + half_ulp) >> float_extra_shift;
  917|  1.38M|            bool round_down = half_ulp > fractional;
  918|  1.38M|            integral += round_up;
  919|       |
  920|  1.38M|            uint64_t prod = fractional * 10;
  921|  1.38M|            int32_t digit = static_cast<int32_t>(prod >> float_extra_shift);
  922|  1.38M|            uint64_t rem = prod & ((1ull << float_extra_shift) - 1);
  923|  1.38M|            digit +=
  924|  1.38M|               rem > (1ull << (float_extra_shift - 1)) || (rem == (1ull << (float_extra_shift - 1)) && (digit & 1));
  ------------------
  |  Branch (924:16): [True: 741k, False: 647k]
  |  Branch (924:60): [True: 2.32k, False: 645k]
  |  Branch (924:104): [True: 1.14k, False: 1.17k]
  ------------------
  925|  1.38M|            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.38M|      }
_ZN3glz4zmij11detail_impl15compute_dec_expElb:
  333|  2.00M|      {
  334|  2.00M|         assert(bin_exp >= -1334 && bin_exp <= 2620);
  ------------------
  |  Branch (334:10): [True: 2.00M, False: 0]
  |  Branch (334:10): [True: 2.00M, False: 0]
  |  Branch (334:10): [True: 2.00M, False: 0]
  ------------------
  335|  2.00M|         constexpr int log10_3_over_4_sig = 131'072;
  336|  2.00M|         constexpr int log10_2_sig = 315'653, log10_2_exp = 20;
  337|  2.00M|         return static_cast<int32_t>((bin_exp * log10_2_sig - !regular * log10_3_over_4_sig) >> log10_2_exp);
  338|  2.00M|      }
_ZN3glz4zmij11detail_impl17compute_exp_shiftEli:
  457|  1.42M|      {
  458|  1.42M|         assert(dec_exp >= -350 && dec_exp <= 350);
  ------------------
  |  Branch (458:10): [True: 1.42M, False: 0]
  |  Branch (458:10): [True: 1.42M, False: 0]
  |  Branch (458:10): [True: 1.42M, False: 0]
  ------------------
  459|  1.42M|         constexpr int log2_pow10_sig = 217'707, log2_pow10_exp = 16;
  460|  1.42M|         int pow10_bin_exp = -dec_exp * log2_pow10_sig >> log2_pow10_exp;
  461|  1.42M|         return static_cast<int32_t>(bin_exp + pow10_bin_exp + 1);
  462|  1.42M|      }
_ZNK3glz4zmij11detail_impl23pow10_significand_tableILb0EEixEi:
  440|  1.97M|         {
  441|  1.97M|            constexpr int dec_exp_min = -293;
  442|  1.97M|            int i = dec_exp - dec_exp_min;
  443|  1.97M|            if (compress) return compute(i);
  ------------------
  |  Branch (443:17): [Folded, False: 1.97M]
  ------------------
  444|  1.97M|            if (!split_tables) return {data[i * 2], data[i * 2 + 1]};
  ------------------
  |  Branch (444:17): [True: 1.97M, 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.97M|         }
_ZN3glz4zmij11detail_impl13umul192_hi128Emmm:
  308|   583k|      {
  309|   583k|         uint128_t p = umul128(x_hi, y);
  310|   583k|         uint64_t lo = uint64_t(p) + uint64_t(umul128(x_lo, y) >> 64);
  311|   583k|         return {uint64_t(p >> 64) + (lo < uint64_t(p)), lo};
  312|   583k|      }
_ZN3glz4zmij11detail_impl7umul128Emm:
  265|  2.71M|      {
  266|  2.71M|#if ZMIJ_USE_INT128
  267|  2.71M|         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.71M|      }
_ZN3glz4zmij11detail_impl16umul128_add_hi64Emmm:
  298|   616k|      {
  299|   616k|#if ZMIJ_USE_INT128
  300|   616k|         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|   616k|      }
_ZN3glz4zmij11detail_impl12umul128_hi64Emm:
  295|  1.55M|      constexpr auto umul128_hi64(uint64_t x, uint64_t y) noexcept -> uint64_t { return uint64_t(umul128(x, y) >> 64); }
_ZN3glz4zmij11detail_impl5div10Em:
  326|   161k|      {
  327|   161k|         assert(x <= (1ull << 62));
  ------------------
  |  Branch (327:10): [True: 161k, False: 0]
  ------------------
  328|   161k|         constexpr uint64_t div10_sig64 = (1ull << 63) / 5 + 1;
  329|   161k|         return ZMIJ_USE_INT128 ? umul128_hi64(x, div10_sig64) : x / 10;
  ------------------
  |  |  247|   161k|#define ZMIJ_USE_INT128 1
  |  |  ------------------
  |  |  |  Branch (247:25): [True: 161k, Folded]
  |  |  ------------------
  ------------------
  330|   161k|      }
_ZN3glz4zmij11detail_impl9to_digitsILi32ELb0EEENS1_10dec_digitsIXT_EEEmbRKNS1_9constantsIXT0_EEE:
  809|  1.41M|      {
  810|  1.41M|         if constexpr (num_bits == 32) {
  811|  1.41M|            auto result = to_bcd8<OptSize>(value);
  812|  1.41M|            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.41M|      }
_ZN3glz4zmij11detail_impl7to_bcd8ILb0EEENS1_10bcd_resultEm:
  753|  1.41M|      {
  754|  1.41M|         if (!ZMIJ_USE_SSE && !ZMIJ_USE_NEON) {
  ------------------
  |  |   63|  1.41M|#define ZMIJ_USE_SSE ZMIJ_USE_SIMD
  |  |  ------------------
  |  |  |  |   41|  2.83M|#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.41M]
  |  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.41M|         const auto* c = &consts_v<OptSize>;
  764|  1.41M|         ZMIJ_ASM(("" : "+r"(c)));
  ------------------
  |  |  126|  1.41M|#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.41M|            (abcdefgh << 32) - uint64_t((10000ull << 32) - 1) * ((abcdefgh * div10k_sig) >> div10k_exp);
  781|  1.41M|         uint64_t bcd = lo_u64(to_bcd_4x4(_mm_set_epi64x(0, abcd_efgh), *c));
  782|  1.41M|         return {bcd, count_trailing_nonzeros(bcd)};
  783|  1.41M|#endif
  784|  1.41M|      }
_ZN3glz4zmij11detail_impl6lo_u64EDv2_x:
  700|  1.41M|      {
  701|  1.41M|#if defined(__x86_64__) || defined(_M_X64)
  702|  1.41M|         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.41M|      }
_ZN3glz4zmij11detail_impl10to_bcd_4x4ILb0EEEDv2_xS3_RKNS1_9constantsIXT_EEE:
  712|  1.97M|      {
  713|  1.97M|         const __m128i div100 = _mm_load_si128(m128ptr(&c.div100));
  714|  1.97M|         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.97M|         const __m128i hundred = _mm_load_si128(m128ptr(&c.hundred));
  723|  1.97M|         const __m128i moddiv10 = _mm_load_si128(m128ptr(&c.moddiv10));
  724|       |
  725|  1.97M|         __m128i y_div_100 = _mm_srli_epi16(_mm_mulhi_epu16(y, div100), 3);
  726|  1.97M|         __m128i y_mod_100 = _mm_sub_epi16(y, _mm_mullo_epi16(y_div_100, hundred));
  727|  1.97M|         __m128i z = _mm_or_si128(_mm_slli_epi32(y_mod_100, 16), y_div_100);
  728|  1.97M|         return _mm_sub_epi16(_mm_slli_epi16(z, 8), _mm_mullo_epi16(moddiv10, _mm_mulhi_epu16(z, div10)));
  729|  1.97M|#endif
  730|  1.97M|      }
_ZN3glz4zmij11detail_impl23count_trailing_nonzerosEm:
  568|  1.41M|      {
  569|  1.41M|         if (is_big_endian) x = bswap64(x);
  ------------------
  |  Branch (569:14): [Folded, False: 1.41M]
  ------------------
  570|  1.41M|         return (size_t(70) - clz((x << 1) | 1)) / 8;
  571|  1.41M|      }
_ZN3glz4zmij11detail_impl3clzEm:
  187|  1.97M|      {
  188|  1.97M|         assert(x != 0);
  ------------------
  |  Branch (188:10): [True: 1.97M, False: 0]
  ------------------
  189|  1.97M|#if ZMIJ_HAS_BUILTIN(__builtin_clzll)
  190|  1.97M|         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.97M|      }
_ZNK3glz4zmij11detail_impl20dec_exp_format_table3getINS1_12float_traitsIfEEEERKNS2_5entryEi:
  559|  65.4k|         {
  560|  65.4k|            constexpr auto min = traits::min_fixed_dec_exp, max = Traits::max_fixed_dec_exp;
  561|  65.4k|            unsigned i = unsigned(dec_exp - min);
  562|  65.4k|            return data[i <= unsigned(max - min) ? i : num_entries - 1];
  ------------------
  |  Branch (562:25): [True: 65.4k, False: 0]
  ------------------
  563|  65.4k|         }
_ZN3glz8to_charsITkNSt3__114floating_pointEdLb0EEEPcS2_T_:
 1118|   832k|   {
 1119|   832k|      static_assert(std::is_same_v<T, float> || std::is_same_v<T, double>);
 1120|   832k|      return zmij::detail::write<T, OptSize>(val, buf);
 1121|   832k|   }
_ZN3glz4zmij6detail5writeIdLb0EEEPcT_S3_:
  975|   832k|      {
  976|   832k|         using namespace detail_impl;
  977|   832k|         using traits = float_traits<Float>;
  978|   832k|         auto bits = traits::to_bits(value);
  979|   832k|         auto bin_exp = traits::get_exp(bits);
  980|   832k|         auto bin_sig = traits::get_sig(bits);
  981|       |
  982|   832k|         *buffer = '-';
  983|   832k|         buffer += traits::is_negative(bits);
  984|       |
  985|   832k|         const auto* c = &consts_v<OptSize>;
  986|   832k|         ZMIJ_ASM(("" : "+r"(c)));
  ------------------
  |  |  126|   832k|#define ZMIJ_ASM(x) asm x
  ------------------
  987|   832k|         int64_t threshold = traits::num_bits == 64 ? static_cast<int64_t>(c->threshold) : 10'000'000;
  ------------------
  |  Branch (987:30): [True: 832k, Folded]
  ------------------
  988|       |
  989|   832k|         to_decimal_result dec;
  990|   832k|         bool is_normal = unsigned(bin_exp - 1) < unsigned(traits::exp_mask - 1);
  991|   832k|         if (!is_normal) [[unlikely]] {
  ------------------
  |  Branch (991:14): [True: 336k, False: 496k]
  ------------------
  992|   336k|            if (bin_exp != 0) {
  ------------------
  |  Branch (992:17): [True: 1.70k, False: 334k]
  ------------------
  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|  1.70k|               buffer -= traits::is_negative(bits);
 1000|  1.70k|               memcpy(buffer, "null", 4);
 1001|  1.70k|               return buffer + 4;
 1002|  1.70k|#endif
 1003|  1.70k|            }
 1004|   334k|            if (bin_sig == 0) {
  ------------------
  |  Branch (1004:17): [True: 275k, False: 59.0k]
  ------------------
 1005|   275k|               memcpy(buffer, "0", 2);
 1006|   275k|               return buffer + 1;
 1007|   275k|            }
 1008|  59.0k|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig, 1, true, *c);
 1009|  59.0k|            int64_t dec_sig = dec.sig * 10 + (dec.has_last_digit ? dec.last_digit : 0);
  ------------------
  |  Branch (1009:47): [True: 34.3k, False: 24.6k]
  ------------------
 1010|  59.0k|            int32_t dec_exp = dec.exp;
 1011|   358k|            while (dec_sig < threshold) {
  ------------------
  |  Branch (1011:20): [True: 299k, False: 59.0k]
  ------------------
 1012|   299k|               dec_sig *= 10;
 1013|   299k|               --dec_exp;
 1014|   299k|            }
 1015|  59.0k|            int64_t d = static_cast<int64_t>(detail_impl::div10(static_cast<uint64_t>(dec_sig)));
 1016|  59.0k|            int32_t last_digit = static_cast<int32_t>(dec_sig - d * 10);
 1017|  59.0k|            dec = {d, dec_exp, last_digit, last_digit != 0};
 1018|  59.0k|         }
 1019|   496k|         else {
 1020|   496k|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig | traits::implicit_bit,
 1021|   496k|                                                                                     bin_exp, bin_sig != 0, *c);
 1022|   496k|         }
 1023|   555k|         bool extra_digit = dec.sig >= threshold;
 1024|   555k|         int dec_exp = dec.exp + traits::max_digits10 - 2 + extra_digit;
 1025|   555k|         if (traits::num_bits == 32 && dec.sig < 1'000'000) [[unlikely]] {
  ------------------
  |  Branch (1025:14): [Folded, False: 555k]
  |  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|   555k|         char* start = buffer;
 1032|   555k|         auto dig = to_digits<traits::num_bits, OptSize>(static_cast<uint64_t>(dec.sig), extra_digit, *c);
 1033|   555k|         constexpr int bcd_size = traits::num_bits == 64 ? 16 : 8;
  ------------------
  |  Branch (1033:35): [True: 0, Folded]
  ------------------
 1034|   555k|         if (dec_exp >= traits::min_fixed_dec_exp && dec_exp <= traits::max_fixed_dec_exp) {
  ------------------
  |  Branch (1034:14): [True: 216k, False: 338k]
  |  Branch (1034:54): [True: 5.11k, False: 211k]
  ------------------
 1035|  5.11k|            memcpy(start, &zeros_v, 8);
 1036|  5.11k|            const auto& fmt = dec_exp_formats.get<traits>(dec_exp);
 1037|  5.11k|            buffer += fmt.start_pos;
 1038|  5.11k|            memcpy(buffer, &dig.digits, bcd_size);
 1039|  5.11k|            memmove(buffer, buffer + !extra_digit, bcd_size);
 1040|  5.11k|            buffer[bcd_size + extra_digit - 1] = static_cast<char>('0' + (dec.has_last_digit ? dec.last_digit : 0));
  ------------------
  |  Branch (1040:75): [True: 2.99k, False: 2.12k]
  ------------------
 1041|  5.11k|            memmove(start + fmt.shift_pos, start + fmt.point_pos, bcd_size);
 1042|  5.11k|            start[fmt.point_pos] = '.';
 1043|  5.11k|            int num_digits = dec.has_last_digit ? bcd_size : dig.num_digits - 1;
  ------------------
  |  Branch (1043:30): [True: 2.99k, False: 2.12k]
  ------------------
 1044|  5.11k|            return buffer + fmt.exp_pos[num_digits + extra_digit - 1];
 1045|  5.11k|         }
 1046|   550k|         buffer += extra_digit;
 1047|   550k|         memcpy(buffer, &dig.digits, bcd_size);
 1048|   550k|         buffer[bcd_size] = static_cast<char>('0' + dec.last_digit);
 1049|   550k|         buffer += dec.has_last_digit ? bcd_size + 1 : dig.num_digits;
  ------------------
  |  Branch (1049:20): [True: 340k, False: 210k]
  ------------------
 1050|   550k|         start[0] = start[1];
 1051|   550k|         start[1] = '.';
 1052|   550k|         buffer -= (buffer - 1 == start + 1);
 1053|       |
 1054|   550k|         if constexpr (exp_string_table<OptSize>::enable) {
 1055|   550k|            uint64_t exp_data = exp_strings_v<OptSize>.data[dec_exp + exp_string_table<OptSize>::offset];
 1056|   550k|            int len = int(exp_data >> 48);
 1057|   550k|            if (is_big_endian) exp_data = bswap64(exp_data);
  ------------------
  |  Branch (1057:17): [Folded, False: 550k]
  ------------------
 1058|   550k|            memcpy(buffer, &exp_data, traits::max_exponent10 >= 100 ? 8 : 4);
  ------------------
  |  Branch (1058:39): [True: 550k, Folded]
  ------------------
 1059|   550k|            return buffer + len;
 1060|   550k|         }
 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|   550k|         buffer[0] = 'E';
 1067|   550k|         buffer[1] = '-';
 1068|   550k|         buffer += 1 + unsigned(neg);
 1069|   550k|         dec_exp = neg ? -dec_exp : dec_exp;
  ------------------
  |  Branch (1069:20): [True: 0, False: 550k]
  ------------------
 1070|   550k|         unsigned hundreds_written = 0;
 1071|   550k|         if constexpr (traits::max_exponent10 >= 100) {
 1072|   550k|            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|   550k|            else {
 1077|   550k|               digit = static_cast<int32_t>((uint32_t(dec_exp) * div100_sig) >> div100_exp);
 1078|   550k|            }
 1079|   550k|            *buffer = static_cast<char>('0' + digit);
 1080|   550k|            hundreds_written = unsigned(dec_exp >= 100);
 1081|   550k|            buffer += hundreds_written;
 1082|   550k|            dec_exp -= digit * 100;
 1083|   550k|         }
 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|   550k|         const char* d2 = digits2(dec_exp);
 1087|   550k|         *buffer = d2[0];
 1088|   550k|         buffer += hundreds_written | unsigned(dec_exp >= 10);
 1089|   550k|         *buffer = d2[1];
 1090|   550k|         return buffer + 1;
 1091|   555k|      }
_ZN3glz4zmij11detail_impl12float_traitsIdE7to_bitsEd:
  358|   832k|         {
  359|   832k|            sig_type bits;
  360|   832k|            memcpy(&bits, &value, sizeof(value));
  361|   832k|            return bits;
  362|   832k|         }
_ZN3glz4zmij11detail_impl12float_traitsIdE7get_expEm:
  367|   832k|         {
  368|   832k|            return static_cast<int32_t>((bits << 1) >> (num_sig_bits + 1));
  369|   832k|         }
_ZN3glz4zmij11detail_impl12float_traitsIdE7get_sigEm:
  365|   832k|         static auto get_sig(sig_type bits) noexcept -> sig_type { return bits & (implicit_bit - 1); }
_ZN3glz4zmij11detail_impl12float_traitsIdE11is_negativeEm:
  364|   834k|         static auto is_negative(sig_type bits) noexcept -> bool { return bits >> (num_bits - 1); }
_ZN3glz4zmij11detail_impl10to_decimalIdmLb0EEENS1_17to_decimal_resultET0_lbRKNS1_9constantsIXT1_EEE:
  868|   555k|      {
  869|   555k|         using traits = float_traits<Float>;
  870|   555k|         int64_t bin_exp = raw_exp - traits::exp_offset;
  871|   555k|         constexpr int num_bits = std::numeric_limits<UInt>::digits;
  872|       |
  873|   555k|         constexpr uint64_t log10_2_sig = 78'913;
  874|   555k|         constexpr int32_t log10_2_exp = 18;
  875|   555k|         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|   555k|         else {
  881|   555k|            dec_exp = compute_dec_exp(bin_exp);
  882|   555k|         }
  883|   555k|         uint64_t even = 1 - (bin_sig & 1);
  884|   555k|         constexpr int32_t extra_shift = exp_shift_table<OptSize>::extra_shift;
  885|       |
  886|   555k|         if (!regular) [[unlikely]] {
  ------------------
  |  Branch (886:14): [True: 5.67k, False: 549k]
  ------------------
  887|  5.67k|            int32_t irregular_dec_exp = compute_dec_exp(bin_exp, false);
  888|  5.67k|            int32_t shift = compute_exp_shift(bin_exp, irregular_dec_exp + 1) + extra_shift;
  889|  5.67k|            uint128 pow10 = c.pow10_significands[-irregular_dec_exp - 1];
  890|  5.67k|            uint128 p = umul192_hi128(pow10.hi, pow10.lo, bin_sig << shift);
  891|       |
  892|  5.67k|            int64_t integral = p.hi >> extra_shift;
  893|  5.67k|            uint64_t fractional = p.hi << (64 - extra_shift) | p.lo >> extra_shift;
  894|       |
  895|  5.67k|            uint64_t half_ulp = pow10.hi >> (extra_shift + 1 - shift);
  896|  5.67k|            bool round_up = half_ulp > ~uint64_t(0) - fractional;
  897|  5.67k|            bool round_down = (half_ulp >> 1) > fractional;
  898|  5.67k|            integral += round_up;
  899|       |
  900|  5.67k|            int32_t digit = static_cast<int32_t>(umul128_add_hi64(fractional, 10, (uint64_t(1) << 63) - 1));
  901|  5.67k|            int32_t lo = static_cast<int32_t>(umul128_add_hi64(fractional - (half_ulp >> 1), 10, ~uint64_t(0)));
  902|  5.67k|            if (digit < lo) digit = lo;
  ------------------
  |  Branch (902:17): [True: 519, False: 5.15k]
  ------------------
  903|  5.67k|            return {integral, irregular_dec_exp, digit, (round_up + round_down) == 0};
  904|  5.67k|         }
  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|   549k|         else {
  928|   549k|            int32_t shift = exp_shift_table<OptSize>::enable ? exp_shifts_v<OptSize>.data[bin_exp + traits::exp_offset]
  ------------------
  |  Branch (928:29): [True: 549k, Folded]
  ------------------
  929|   549k|                                                             : compute_exp_shift(bin_exp, dec_exp + 1) + extra_shift;
  930|   549k|            ZMIJ_ASM(("" : "+r"(dec_exp)));
  ------------------
  |  |  126|   549k|#define ZMIJ_ASM(x) asm x
  ------------------
  931|   549k|            uint128 pow10 = c.pow10_significands[-dec_exp - 1];
  932|   549k|            uint128 p = umul192_hi128(pow10.hi, pow10.lo, bin_sig << shift);
  933|   549k|            int64_t integral = p.hi >> extra_shift;
  934|   549k|            uint64_t fractional = p.hi << (64 - extra_shift) | p.lo >> extra_shift;
  935|   549k|            uint64_t half_ulp = (pow10.hi >> (extra_shift + 1 - shift)) + even;
  936|   549k|            bool round_up = fractional + half_ulp < fractional;
  937|   549k|            bool round_down = half_ulp > fractional;
  938|   549k|            integral += round_up;
  939|       |
  940|   549k|            int32_t digit = static_cast<int32_t>(umul128_add_hi64(fractional, 10, c.biased_half));
  941|   549k|            if (fractional == (1ull << 62)) [[unlikely]] {
  ------------------
  |  Branch (941:17): [True: 226, False: 549k]
  ------------------
  942|    226|               digit = 2;
  943|    226|            }
  944|   549k|            return {integral, dec_exp, digit, (round_up + round_down) == 0};
  945|   549k|         }
  946|   549k|      }
_ZN3glz4zmij11detail_impl9to_digitsILi64ELb0EEENS1_10dec_digitsIXT_EEEmbRKNS1_9constantsIXT0_EEE:
  809|   555k|      {
  810|       |         if constexpr (num_bits == 32) {
  811|       |            auto result = to_bcd8<OptSize>(value);
  812|       |            return {result.bcd + zeros_v, result.len};
  813|       |         }
  814|   555k|         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|   555k|            uint32_t abbccddee = uint32_t(value / 100'000'000);
  834|   555k|            uint32_t ffgghhii = uint32_t(value % 100'000'000);
  835|       |
  836|   555k|            const __m128i zeros = _mm_load_si128(m128ptr(&c.zeros));
  837|   555k|            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|   555k|            auto bcd = _mm_shuffle_epi32(unshuffled_bcd, _MM_SHUFFLE(0, 1, 2, 3));
  843|   555k|#endif
  844|       |
  845|   555k|            __m128i mask128 = _mm_cmpgt_epi8(bcd, _mm_setzero_si128());
  846|   555k|            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|   555k|            int len = 63 - clz((mask << 1) | 1);
  851|   555k|#endif
  852|   555k|            return {_mm_or_si128(bcd, zeros), len};
  853|   555k|#endif
  854|   555k|         }
  855|   555k|      }
_ZN3glz4zmij11detail_impl20to_unshuffled_digitsILb0EEEDv2_xjjRKNS1_9constantsIXT_EEE:
  735|   555k|      {
  736|   555k|         const __m128i div10k = _mm_load_si128(m128ptr(&c.div10k));
  737|   555k|         const __m128i neg10k = _mm_load_si128(m128ptr(&c.neg10k));
  738|   555k|         __m128i x = _mm_set_epi64x(bbccddee, ffgghhii);
  739|   555k|         __m128i y = _mm_add_epi64(x, _mm_mul_epu32(neg10k, _mm_srli_epi64(_mm_mul_epu32(x, div10k), div10k_exp)));
  740|   555k|         return to_bcd_4x4(y, c);
  741|   555k|      }
_ZNK3glz4zmij11detail_impl20dec_exp_format_table3getINS1_12float_traitsIdEEEERKNS2_5entryEi:
  559|  5.11k|         {
  560|  5.11k|            constexpr auto min = traits::min_fixed_dec_exp, max = Traits::max_fixed_dec_exp;
  561|  5.11k|            unsigned i = unsigned(dec_exp - min);
  562|  5.11k|            return data[i <= unsigned(max - min) ? i : num_entries - 1];
  ------------------
  |  Branch (562:25): [True: 5.11k, False: 0]
  ------------------
  563|  5.11k|         }

